Annotation of rpl/configure, revision 1.88

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.86      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.57      bertrand   92: as_myself=
1.15      bertrand   93: case $0 in #((
1.1       bertrand   94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
1.15      bertrand  100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
1.1       bertrand  102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
1.15      bertrand  112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
1.1       bertrand  114: fi
                    115: 
1.15      bertrand  116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
1.15      bertrand  129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
1.1       bertrand  133: 
                    134: # CDPATH.
1.15      bertrand  135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  136: 
                    137: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  138:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    139:   emulate sh
                    140:   NULLCMD=:
                    141:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    142:   # is contrary to our usage.  Disable this feature.
                    143:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    144:   setopt NO_GLOB_SUBST
1.1       bertrand  145: else
1.15      bertrand  146:   case \`(set -o) 2>/dev/null\` in #(
                    147:   *posix*) :
                    148:     set -o posix ;; #(
                    149:   *) :
                    150:      ;;
                    151: esac
1.1       bertrand  152: fi
1.15      bertrand  153: "
                    154:   as_required="as_fn_return () { (exit \$1); }
                    155: as_fn_success () { as_fn_return 0; }
                    156: as_fn_failure () { as_fn_return 1; }
                    157: as_fn_ret_success () { return 0; }
                    158: as_fn_ret_failure () { return 1; }
1.1       bertrand  159: 
                    160: exitcode=0
1.15      bertrand  161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    166: 
                    167: else
                    168:   exitcode=1; echo positional parameters were not saved.
                    169: fi
                    170: test x\$exitcode = x0 || exit 1"
                    171:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    172:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    173:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    174:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    175: test \$(( 1 + 1 )) = 2 || exit 1"
                    176:   if (eval "$as_required") 2>/dev/null; then :
                    177:   as_have_required=yes
1.14      bertrand  178: else
1.15      bertrand  179:   as_have_required=no
1.14      bertrand  180: fi
1.15      bertrand  181:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  182: 
                    183: else
1.15      bertrand  184:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    185: as_found=false
1.1       bertrand  186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    187: do
                    188:   IFS=$as_save_IFS
                    189:   test -z "$as_dir" && as_dir=.
1.15      bertrand  190:   as_found=:
                    191:   case $as_dir in #(
1.1       bertrand  192:     /*)
                    193:       for as_base in sh bash ksh sh5; do
1.15      bertrand  194:         # Try only shells that exist, to save several forks.
                    195:         as_shell=$as_dir/$as_base
                    196:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    197:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    198:   CONFIG_SHELL=$as_shell as_have_required=yes
                    199:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    200:   break 2
                    201: fi
                    202: fi
1.1       bertrand  203:       done;;
                    204:        esac
1.15      bertrand  205:   as_found=false
1.1       bertrand  206: done
1.15      bertrand  207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    208:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    209:   CONFIG_SHELL=$SHELL as_have_required=yes
                    210: fi; }
1.1       bertrand  211: IFS=$as_save_IFS
                    212: 
                    213: 
1.15      bertrand  214:       if test "x$CONFIG_SHELL" != x; then :
                    215:   # We cannot yet assume a decent shell, so we have to provide a
                    216:    # neutralization value for shells without unset; and this also
                    217:    # works around shells that cannot unset nonexistent variables.
1.57      bertrand  218:    # Preserve -v and -x to the replacement shell.
1.15      bertrand  219:    BASH_ENV=/dev/null
                    220:    ENV=/dev/null
                    221:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    222:    export CONFIG_SHELL
1.57      bertrand  223:    case $- in # ((((
                    224:      *v*x* | *x*v* ) as_opts=-vx ;;
                    225:      *v* ) as_opts=-v ;;
                    226:      *x* ) as_opts=-x ;;
                    227:      * ) as_opts= ;;
                    228:    esac
                    229:    exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.15      bertrand  230: fi
                    231: 
                    232:     if test x$as_have_required = xno; then :
                    233:   $as_echo "$0: This script requires a shell more modern than all"
                    234:   $as_echo "$0: the shells that I found on your system."
                    235:   if test x${ZSH_VERSION+set} = xset ; then
                    236:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    237:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    238:   else
                    239:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    240: $0: including any error possibly output before this
                    241: $0: message. Then install a modern shell, or manually run
                    242: $0: the script under such a shell if you do have one."
                    243:   fi
                    244:   exit 1
                    245: fi
1.1       bertrand  246: fi
                    247: fi
1.15      bertrand  248: SHELL=${CONFIG_SHELL-/bin/sh}
                    249: export SHELL
                    250: # Unset more variables known to interfere with behavior of common tools.
                    251: CLICOLOR_FORCE= GREP_OPTIONS=
                    252: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  253: 
1.15      bertrand  254: ## --------------------- ##
                    255: ## M4sh Shell Functions. ##
                    256: ## --------------------- ##
                    257: # as_fn_unset VAR
                    258: # ---------------
                    259: # Portably unset VAR.
                    260: as_fn_unset ()
                    261: {
                    262:   { eval $1=; unset $1;}
                    263: }
                    264: as_unset=as_fn_unset
                    265: 
                    266: # as_fn_set_status STATUS
                    267: # -----------------------
                    268: # Set $? to STATUS, without forking.
                    269: as_fn_set_status ()
                    270: {
                    271:   return $1
                    272: } # as_fn_set_status
                    273: 
                    274: # as_fn_exit STATUS
                    275: # -----------------
                    276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    277: as_fn_exit ()
                    278: {
                    279:   set +e
                    280:   as_fn_set_status $1
                    281:   exit $1
                    282: } # as_fn_exit
                    283: 
                    284: # as_fn_mkdir_p
                    285: # -------------
                    286: # Create "$as_dir" as a directory, including parents if necessary.
                    287: as_fn_mkdir_p ()
                    288: {
1.14      bertrand  289: 
1.15      bertrand  290:   case $as_dir in #(
                    291:   -*) as_dir=./$as_dir;;
                    292:   esac
                    293:   test -d "$as_dir" || eval $as_mkdir_p || {
                    294:     as_dirs=
                    295:     while :; do
                    296:       case $as_dir in #(
                    297:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    298:       *) as_qdir=$as_dir;;
                    299:       esac
                    300:       as_dirs="'$as_qdir' $as_dirs"
                    301:       as_dir=`$as_dirname -- "$as_dir" ||
                    302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    303:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    304:     X"$as_dir" : 'X\(//\)$' \| \
                    305:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    306: $as_echo X"$as_dir" |
                    307:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\/\)[^/].*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      /^X\(\/\/\)$/{
                    316:        s//\1/
                    317:        q
                    318:      }
                    319:      /^X\(\/\).*/{
                    320:        s//\1/
                    321:        q
                    322:      }
                    323:      s/.*/./; q'`
                    324:       test -d "$as_dir" && break
                    325:     done
                    326:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  327:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  328: 
                    329: 
1.15      bertrand  330: } # as_fn_mkdir_p
                    331: # as_fn_append VAR VALUE
                    332: # ----------------------
                    333: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    334: # advantage of any shell optimizations that allow amortized linear growth over
                    335: # repeated appends, instead of the typical quadratic growth present in naive
                    336: # implementations.
                    337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    338:   eval 'as_fn_append ()
                    339:   {
                    340:     eval $1+=\$2
                    341:   }'
1.14      bertrand  342: else
1.15      bertrand  343:   as_fn_append ()
                    344:   {
                    345:     eval $1=\$$1\$2
                    346:   }
                    347: fi # as_fn_append
1.1       bertrand  348: 
1.15      bertrand  349: # as_fn_arith ARG...
                    350: # ------------------
                    351: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    353: # must be portable across $(()) and expr.
                    354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    355:   eval 'as_fn_arith ()
                    356:   {
                    357:     as_val=$(( $* ))
                    358:   }'
1.1       bertrand  359: else
1.15      bertrand  360:   as_fn_arith ()
                    361:   {
                    362:     as_val=`expr "$@" || test $? -eq 1`
                    363:   }
                    364: fi # as_fn_arith
1.14      bertrand  365: 
                    366: 
1.36      bertrand  367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    368: # ----------------------------------------
1.15      bertrand  369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  371: # script with STATUS, using 1 if that was 0.
1.15      bertrand  372: as_fn_error ()
                    373: {
1.36      bertrand  374:   as_status=$1; test $as_status -eq 0 && as_status=1
                    375:   if test "$4"; then
                    376:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    377:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  378:   fi
1.36      bertrand  379:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  380:   as_fn_exit $as_status
                    381: } # as_fn_error
1.14      bertrand  382: 
1.15      bertrand  383: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    384:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    385:   as_expr=expr
1.1       bertrand  386: else
1.15      bertrand  387:   as_expr=false
1.14      bertrand  388: fi
                    389: 
1.15      bertrand  390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    391:   as_basename=basename
1.1       bertrand  392: else
1.15      bertrand  393:   as_basename=false
1.14      bertrand  394: fi
                    395: 
1.15      bertrand  396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    397:   as_dirname=dirname
1.1       bertrand  398: else
1.15      bertrand  399:   as_dirname=false
1.1       bertrand  400: fi
                    401: 
1.15      bertrand  402: as_me=`$as_basename -- "$0" ||
                    403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    404:     X"$0" : 'X\(//\)$' \| \
                    405:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    406: $as_echo X/"$0" |
                    407:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      /^X\/\(\/\/\)$/{
                    412:        s//\1/
                    413:        q
                    414:      }
                    415:      /^X\/\(\/\).*/{
                    416:        s//\1/
                    417:        q
                    418:      }
                    419:      s/.*/./; q'`
1.1       bertrand  420: 
1.15      bertrand  421: # Avoid depending upon Character Ranges.
                    422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    425: as_cr_digits='0123456789'
                    426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  427: 
                    428: 
1.15      bertrand  429:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    430:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    431:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    432:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    433:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  434:   sed -n '
                    435:     p
                    436:     /[$]LINENO/=
                    437:   ' <$as_myself |
                    438:     sed '
                    439:       s/[$]LINENO.*/&-/
                    440:       t lineno
                    441:       b
                    442:       :lineno
                    443:       N
                    444:       :loop
                    445:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    446:       t loop
                    447:       s/-\n.*//
                    448:     ' >$as_me.lineno &&
                    449:   chmod +x "$as_me.lineno" ||
1.15      bertrand  450:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  451: 
                    452:   # Don't try to exec as it changes $[0], causing all sort of problems
                    453:   # (the dirname of $[0] is not the place where we might find the
                    454:   # original and so on.  Autoconf is especially sensitive to this).
                    455:   . "./$as_me.lineno"
                    456:   # Exit status is that of the last command.
                    457:   exit
                    458: }
                    459: 
1.15      bertrand  460: ECHO_C= ECHO_N= ECHO_T=
                    461: case `echo -n x` in #(((((
                    462: -n*)
                    463:   case `echo 'xy\c'` in
1.1       bertrand  464:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  465:   xy)  ECHO_C='\c';;
                    466:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    467:        ECHO_T='    ';;
1.1       bertrand  468:   esac;;
                    469: *)
                    470:   ECHO_N='-n';;
                    471: esac
                    472: 
                    473: rm -f conf$$ conf$$.exe conf$$.file
                    474: if test -d conf$$.dir; then
                    475:   rm -f conf$$.dir/conf$$.file
                    476: else
                    477:   rm -f conf$$.dir
1.15      bertrand  478:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  479: fi
1.15      bertrand  480: if (echo >conf$$.file) 2>/dev/null; then
                    481:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s='ln -s'
                    483:     # ... but there are two gotchas:
                    484:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    485:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    486:     # In both cases, we have to default to `cp -p'.
                    487:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    488:       as_ln_s='cp -p'
                    489:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    490:     as_ln_s=ln
                    491:   else
1.1       bertrand  492:     as_ln_s='cp -p'
1.15      bertrand  493:   fi
1.1       bertrand  494: else
                    495:   as_ln_s='cp -p'
                    496: fi
                    497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    498: rmdir conf$$.dir 2>/dev/null
                    499: 
                    500: if mkdir -p . 2>/dev/null; then
1.15      bertrand  501:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  502: else
                    503:   test -d ./-p && rmdir ./-p
                    504:   as_mkdir_p=false
                    505: fi
                    506: 
                    507: if test -x / >/dev/null 2>&1; then
                    508:   as_test_x='test -x'
                    509: else
                    510:   if ls -dL / >/dev/null 2>&1; then
                    511:     as_ls_L_option=L
                    512:   else
                    513:     as_ls_L_option=
                    514:   fi
                    515:   as_test_x='
                    516:     eval sh -c '\''
                    517:       if test -d "$1"; then
1.15      bertrand  518:    test -d "$1/.";
1.1       bertrand  519:       else
1.15      bertrand  520:    case $1 in #(
                    521:    -*)set "./$1";;
1.1       bertrand  522:    esac;
1.15      bertrand  523:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  524:    ???[sx]*):;;*)false;;esac;fi
                    525:     '\'' sh
                    526:   '
                    527: fi
                    528: as_executable_p=$as_test_x
                    529: 
                    530: # Sed expression to map a string onto a valid CPP name.
                    531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    532: 
                    533: # Sed expression to map a string onto a valid variable name.
                    534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    535: 
                    536: 
1.15      bertrand  537: test -n "$DJDIR" || exec 7<&0 </dev/null
                    538: exec 6>&1
1.1       bertrand  539: 
                    540: # Name of the host.
1.36      bertrand  541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  542: # so uname gets run too.
                    543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    544: 
                    545: #
                    546: # Initializations.
                    547: #
                    548: ac_default_prefix=/usr/local
                    549: ac_clean_files=
                    550: ac_config_libobj_dir=.
                    551: LIBOBJS=
                    552: cross_compiling=no
                    553: subdirs=
                    554: MFLAGS=
                    555: MAKEFLAGS=
                    556: 
                    557: # Identity of this package.
                    558: PACKAGE_NAME='rpl'
                    559: PACKAGE_TARNAME='rpl'
1.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.15      bertrand  642: OS
1.69      bertrand  643: HOST
1.15      bertrand  644: GNUPLOT_COMPILATION
                    645: EGREP
                    646: GREP
                    647: libPgSQLlib
                    648: libPgSQLinc
                    649: POSTGRESQL_SUPPORT
                    650: libMySQLlib
                    651: libMySQLinc
                    652: MYSQL_SUPPORT
                    653: DATE
                    654: includeX
                    655: libX
                    656: MOTIF_SUPPORT
                    657: DEBUG
                    658: EXPERIMENTAL_CODE
                    659: VIM_SUPPORT
                    660: POSTSCRIPT_SUPPORT
                    661: FORCE_GNUPLOT_PATH
                    662: GNUPLOT_SUPPORT
                    663: VIM
                    664: GNUPLOT_P
                    665: GV
                    666: GS
                    667: DVIPS
                    668: LATEX
                    669: TEX
                    670: SED
                    671: RANLIB
                    672: LN_S
                    673: RUNPATH
                    674: PROFILAGE
1.80      bertrand  675: subdirs
1.67      bertrand  676: LIBRPLCAS
                    677: RPLCAS
1.66      bertrand  678: ABI
1.88    ! bertrand  679: RPLTOOLS
1.15      bertrand  680: X_EXTRA_LIBS
                    681: X_LIBS
                    682: X_PRE_LIBS
                    683: X_CFLAGS
                    684: CPP
                    685: XMKMF
                    686: ac_ct_FC
                    687: FCFLAGS
                    688: FC
                    689: ac_ct_F77
                    690: FFLAGS
                    691: F77
                    692: am__fastdepCXX_FALSE
                    693: am__fastdepCXX_TRUE
                    694: CXXDEPMODE
                    695: ac_ct_CXX
                    696: CXXFLAGS
                    697: CXX
                    698: am__fastdepCC_FALSE
                    699: am__fastdepCC_TRUE
                    700: CCDEPMODE
                    701: AMDEPBACKSLASH
                    702: AMDEP_FALSE
                    703: AMDEP_TRUE
                    704: am__quote
                    705: am__include
                    706: DEPDIR
                    707: OBJEXT
                    708: EXEEXT
                    709: ac_ct_CC
                    710: CPPFLAGS
                    711: LDFLAGS
                    712: CFLAGS
                    713: CC
                    714: am__untar
                    715: am__tar
                    716: AMTAR
                    717: am__leading_dot
                    718: SET_MAKE
                    719: AWK
                    720: mkdir_p
                    721: MKDIR_P
                    722: INSTALL_STRIP_PROGRAM
                    723: STRIP
                    724: install_sh
                    725: MAKEINFO
                    726: AUTOHEADER
                    727: AUTOMAKE
                    728: AUTOCONF
                    729: ACLOCAL
                    730: VERSION
                    731: PACKAGE
                    732: CYGPATH_W
                    733: am__isrc
                    734: INSTALL_DATA
                    735: INSTALL_SCRIPT
                    736: INSTALL_PROGRAM
                    737: target_os
                    738: target_vendor
                    739: target_cpu
                    740: target
                    741: host_os
                    742: host_vendor
                    743: host_cpu
                    744: host
                    745: build_os
                    746: build_vendor
                    747: build_cpu
                    748: build
                    749: target_alias
                    750: host_alias
                    751: build_alias
                    752: LIBS
                    753: ECHO_T
                    754: ECHO_N
                    755: ECHO_C
                    756: DEFS
                    757: mandir
                    758: localedir
                    759: libdir
                    760: psdir
                    761: pdfdir
                    762: dvidir
                    763: htmldir
                    764: infodir
                    765: docdir
                    766: oldincludedir
                    767: includedir
                    768: localstatedir
                    769: sharedstatedir
                    770: sysconfdir
                    771: datadir
                    772: datarootdir
                    773: libexecdir
                    774: sbindir
                    775: bindir
                    776: program_transform_name
                    777: prefix
                    778: exec_prefix
                    779: PACKAGE_URL
                    780: PACKAGE_BUGREPORT
                    781: PACKAGE_STRING
                    782: PACKAGE_VERSION
                    783: PACKAGE_TARNAME
                    784: PACKAGE_NAME
1.14      bertrand  785: PATH_SEPARATOR
1.15      bertrand  786: SHELL'
                    787: ac_subst_files=''
                    788: ac_user_opts='
                    789: enable_option_checking
                    790: enable_dependency_tracking
                    791: with_x
1.69      bertrand  792: with_32bits_abi
                    793: with_64bits_abi
1.88    ! bertrand  794: with_rpltools
        !           795: enable_rplcas
1.15      bertrand  796: enable_optimization
1.87      bertrand  797: enable_sysv_ipcs
1.30      bertrand  798: enable_full_static
1.15      bertrand  799: enable_final_encoding
                    800: enable_tex
                    801: enable_vim
                    802: enable_embedded_gnuplot
                    803: enable_gnuplot
                    804: enable_motif
                    805: enable_experimental
                    806: enable_debug
                    807: enable_profile
                    808: enable_final_run_path
                    809: with_mysql
                    810: with_postgresql
1.40      bertrand  811: with_bourne_shell
1.15      bertrand  812: with_openssl_arch
                    813: '
                    814:       ac_precious_vars='build_alias
1.1       bertrand  815: host_alias
                    816: target_alias
                    817: CC
                    818: CFLAGS
                    819: LDFLAGS
1.15      bertrand  820: LIBS
1.1       bertrand  821: CPPFLAGS
                    822: CXX
                    823: CXXFLAGS
1.15      bertrand  824: CCC
1.1       bertrand  825: F77
                    826: FFLAGS
                    827: FC
                    828: FCFLAGS
                    829: XMKMF
                    830: CPP'
1.80      bertrand  831: ac_subdirs_all='tools/$LIBXPM
                    832: tools/$OPENMOTIF
                    833: tools/$GNUPLOT
1.69      bertrand  834: tools/$NCURSES
1.1       bertrand  835: tools/$READLINE
                    836: tools/$GSL
                    837: tools/$GPP
                    838: tools/$FILE
                    839: tools/$ICONV
1.9       bertrand  840: tools/$SQLITE
1.76      bertrand  841: tools/$UNITS
                    842: tools/$SIGSEGV'
1.1       bertrand  843: 
                    844: # Initialize some variables set by options.
                    845: ac_init_help=
                    846: ac_init_version=false
1.15      bertrand  847: ac_unrecognized_opts=
                    848: ac_unrecognized_sep=
1.1       bertrand  849: # The variables have the same names as the options, with
                    850: # dashes changed to underlines.
                    851: cache_file=/dev/null
                    852: exec_prefix=NONE
                    853: no_create=
                    854: no_recursion=
                    855: prefix=NONE
                    856: program_prefix=NONE
                    857: program_suffix=NONE
                    858: program_transform_name=s,x,x,
                    859: silent=
                    860: site=
                    861: srcdir=
                    862: verbose=
                    863: x_includes=NONE
                    864: x_libraries=NONE
                    865: 
                    866: # Installation directory options.
                    867: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    868: # and all the variables that are supposed to be based on exec_prefix
                    869: # by default will actually change.
                    870: # Use braces instead of parens because sh, perl, etc. also accept them.
                    871: # (The list follows the same order as the GNU Coding Standards.)
                    872: bindir='${exec_prefix}/bin'
                    873: sbindir='${exec_prefix}/sbin'
                    874: libexecdir='${exec_prefix}/libexec'
                    875: datarootdir='${prefix}/share'
                    876: datadir='${datarootdir}'
                    877: sysconfdir='${prefix}/etc'
                    878: sharedstatedir='${prefix}/com'
                    879: localstatedir='${prefix}/var'
                    880: includedir='${prefix}/include'
                    881: oldincludedir='/usr/include'
                    882: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    883: infodir='${datarootdir}/info'
                    884: htmldir='${docdir}'
                    885: dvidir='${docdir}'
                    886: pdfdir='${docdir}'
                    887: psdir='${docdir}'
                    888: libdir='${exec_prefix}/lib'
                    889: localedir='${datarootdir}/locale'
                    890: mandir='${datarootdir}/man'
                    891: 
                    892: ac_prev=
                    893: ac_dashdash=
                    894: for ac_option
                    895: do
                    896:   # If the previous option needs an argument, assign it.
                    897:   if test -n "$ac_prev"; then
                    898:     eval $ac_prev=\$ac_option
                    899:     ac_prev=
                    900:     continue
                    901:   fi
                    902: 
                    903:   case $ac_option in
1.36      bertrand  904:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    905:   *=)   ac_optarg= ;;
                    906:   *)    ac_optarg=yes ;;
1.1       bertrand  907:   esac
                    908: 
                    909:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    910: 
                    911:   case $ac_dashdash$ac_option in
                    912:   --)
                    913:     ac_dashdash=yes ;;
                    914: 
                    915:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    916:     ac_prev=bindir ;;
                    917:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    918:     bindir=$ac_optarg ;;
                    919: 
                    920:   -build | --build | --buil | --bui | --bu)
                    921:     ac_prev=build_alias ;;
                    922:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    923:     build_alias=$ac_optarg ;;
                    924: 
                    925:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    926:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    927:     ac_prev=cache_file ;;
                    928:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    929:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    930:     cache_file=$ac_optarg ;;
                    931: 
                    932:   --config-cache | -C)
                    933:     cache_file=config.cache ;;
                    934: 
                    935:   -datadir | --datadir | --datadi | --datad)
                    936:     ac_prev=datadir ;;
                    937:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    938:     datadir=$ac_optarg ;;
                    939: 
                    940:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    941:   | --dataroo | --dataro | --datar)
                    942:     ac_prev=datarootdir ;;
                    943:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    944:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    945:     datarootdir=$ac_optarg ;;
                    946: 
                    947:   -disable-* | --disable-*)
1.15      bertrand  948:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  949:     # Reject names that are not valid shell variable names.
1.15      bertrand  950:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  951:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  952:     ac_useropt_orig=$ac_useropt
                    953:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    954:     case $ac_user_opts in
                    955:       *"
                    956: "enable_$ac_useropt"
                    957: "*) ;;
                    958:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    959:     ac_unrecognized_sep=', ';;
                    960:     esac
                    961:     eval enable_$ac_useropt=no ;;
1.1       bertrand  962: 
                    963:   -docdir | --docdir | --docdi | --doc | --do)
                    964:     ac_prev=docdir ;;
                    965:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    966:     docdir=$ac_optarg ;;
                    967: 
                    968:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    969:     ac_prev=dvidir ;;
                    970:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    971:     dvidir=$ac_optarg ;;
                    972: 
                    973:   -enable-* | --enable-*)
1.15      bertrand  974:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  975:     # Reject names that are not valid shell variable names.
1.15      bertrand  976:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  977:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  978:     ac_useropt_orig=$ac_useropt
                    979:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    980:     case $ac_user_opts in
                    981:       *"
                    982: "enable_$ac_useropt"
                    983: "*) ;;
                    984:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    985:     ac_unrecognized_sep=', ';;
                    986:     esac
                    987:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  988: 
                    989:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    990:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    991:   | --exec | --exe | --ex)
                    992:     ac_prev=exec_prefix ;;
                    993:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    994:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    995:   | --exec=* | --exe=* | --ex=*)
                    996:     exec_prefix=$ac_optarg ;;
                    997: 
                    998:   -gas | --gas | --ga | --g)
                    999:     # Obsolete; use --with-gas.
                   1000:     with_gas=yes ;;
                   1001: 
                   1002:   -help | --help | --hel | --he | -h)
                   1003:     ac_init_help=long ;;
                   1004:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1005:     ac_init_help=recursive ;;
                   1006:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1007:     ac_init_help=short ;;
                   1008: 
                   1009:   -host | --host | --hos | --ho)
                   1010:     ac_prev=host_alias ;;
                   1011:   -host=* | --host=* | --hos=* | --ho=*)
                   1012:     host_alias=$ac_optarg ;;
                   1013: 
                   1014:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1015:     ac_prev=htmldir ;;
                   1016:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1017:   | --ht=*)
                   1018:     htmldir=$ac_optarg ;;
                   1019: 
                   1020:   -includedir | --includedir | --includedi | --included | --include \
                   1021:   | --includ | --inclu | --incl | --inc)
                   1022:     ac_prev=includedir ;;
                   1023:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1024:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1025:     includedir=$ac_optarg ;;
                   1026: 
                   1027:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1028:     ac_prev=infodir ;;
                   1029:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1030:     infodir=$ac_optarg ;;
                   1031: 
                   1032:   -libdir | --libdir | --libdi | --libd)
                   1033:     ac_prev=libdir ;;
                   1034:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1035:     libdir=$ac_optarg ;;
                   1036: 
                   1037:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1038:   | --libexe | --libex | --libe)
                   1039:     ac_prev=libexecdir ;;
                   1040:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1041:   | --libexe=* | --libex=* | --libe=*)
                   1042:     libexecdir=$ac_optarg ;;
                   1043: 
                   1044:   -localedir | --localedir | --localedi | --localed | --locale)
                   1045:     ac_prev=localedir ;;
                   1046:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1047:     localedir=$ac_optarg ;;
                   1048: 
                   1049:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1050:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1051:     ac_prev=localstatedir ;;
                   1052:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1053:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1054:     localstatedir=$ac_optarg ;;
                   1055: 
                   1056:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1057:     ac_prev=mandir ;;
                   1058:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1059:     mandir=$ac_optarg ;;
                   1060: 
                   1061:   -nfp | --nfp | --nf)
                   1062:     # Obsolete; use --without-fp.
                   1063:     with_fp=no ;;
                   1064: 
                   1065:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1066:   | --no-cr | --no-c | -n)
                   1067:     no_create=yes ;;
                   1068: 
                   1069:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1070:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1071:     no_recursion=yes ;;
                   1072: 
                   1073:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1074:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1075:   | --oldin | --oldi | --old | --ol | --o)
                   1076:     ac_prev=oldincludedir ;;
                   1077:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1078:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1079:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1080:     oldincludedir=$ac_optarg ;;
                   1081: 
                   1082:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1083:     ac_prev=prefix ;;
                   1084:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1085:     prefix=$ac_optarg ;;
                   1086: 
                   1087:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1088:   | --program-pre | --program-pr | --program-p)
                   1089:     ac_prev=program_prefix ;;
                   1090:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1091:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1092:     program_prefix=$ac_optarg ;;
                   1093: 
                   1094:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1095:   | --program-suf | --program-su | --program-s)
                   1096:     ac_prev=program_suffix ;;
                   1097:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1098:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1099:     program_suffix=$ac_optarg ;;
                   1100: 
                   1101:   -program-transform-name | --program-transform-name \
                   1102:   | --program-transform-nam | --program-transform-na \
                   1103:   | --program-transform-n | --program-transform- \
                   1104:   | --program-transform | --program-transfor \
                   1105:   | --program-transfo | --program-transf \
                   1106:   | --program-trans | --program-tran \
                   1107:   | --progr-tra | --program-tr | --program-t)
                   1108:     ac_prev=program_transform_name ;;
                   1109:   -program-transform-name=* | --program-transform-name=* \
                   1110:   | --program-transform-nam=* | --program-transform-na=* \
                   1111:   | --program-transform-n=* | --program-transform-=* \
                   1112:   | --program-transform=* | --program-transfor=* \
                   1113:   | --program-transfo=* | --program-transf=* \
                   1114:   | --program-trans=* | --program-tran=* \
                   1115:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1116:     program_transform_name=$ac_optarg ;;
                   1117: 
                   1118:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1119:     ac_prev=pdfdir ;;
                   1120:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1121:     pdfdir=$ac_optarg ;;
                   1122: 
                   1123:   -psdir | --psdir | --psdi | --psd | --ps)
                   1124:     ac_prev=psdir ;;
                   1125:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1126:     psdir=$ac_optarg ;;
                   1127: 
                   1128:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1129:   | -silent | --silent | --silen | --sile | --sil)
                   1130:     silent=yes ;;
                   1131: 
                   1132:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1133:     ac_prev=sbindir ;;
                   1134:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1135:   | --sbi=* | --sb=*)
                   1136:     sbindir=$ac_optarg ;;
                   1137: 
                   1138:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1139:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1140:   | --sharedst | --shareds | --shared | --share | --shar \
                   1141:   | --sha | --sh)
                   1142:     ac_prev=sharedstatedir ;;
                   1143:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1144:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1145:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1146:   | --sha=* | --sh=*)
                   1147:     sharedstatedir=$ac_optarg ;;
                   1148: 
                   1149:   -site | --site | --sit)
                   1150:     ac_prev=site ;;
                   1151:   -site=* | --site=* | --sit=*)
                   1152:     site=$ac_optarg ;;
                   1153: 
                   1154:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1155:     ac_prev=srcdir ;;
                   1156:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1157:     srcdir=$ac_optarg ;;
                   1158: 
                   1159:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1160:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1161:     ac_prev=sysconfdir ;;
                   1162:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1163:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1164:     sysconfdir=$ac_optarg ;;
                   1165: 
                   1166:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1167:     ac_prev=target_alias ;;
                   1168:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1169:     target_alias=$ac_optarg ;;
                   1170: 
                   1171:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1172:     verbose=yes ;;
                   1173: 
                   1174:   -version | --version | --versio | --versi | --vers | -V)
                   1175:     ac_init_version=: ;;
                   1176: 
                   1177:   -with-* | --with-*)
1.15      bertrand 1178:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1179:     # Reject names that are not valid shell variable names.
1.15      bertrand 1180:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1181:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1182:     ac_useropt_orig=$ac_useropt
                   1183:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1184:     case $ac_user_opts in
                   1185:       *"
                   1186: "with_$ac_useropt"
                   1187: "*) ;;
                   1188:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1189:     ac_unrecognized_sep=', ';;
                   1190:     esac
                   1191:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1192: 
                   1193:   -without-* | --without-*)
1.15      bertrand 1194:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1195:     # Reject names that are not valid shell variable names.
1.15      bertrand 1196:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1197:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1198:     ac_useropt_orig=$ac_useropt
                   1199:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1200:     case $ac_user_opts in
                   1201:       *"
                   1202: "with_$ac_useropt"
                   1203: "*) ;;
                   1204:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1205:     ac_unrecognized_sep=', ';;
                   1206:     esac
                   1207:     eval with_$ac_useropt=no ;;
1.1       bertrand 1208: 
                   1209:   --x)
                   1210:     # Obsolete; use --with-x.
                   1211:     with_x=yes ;;
                   1212: 
                   1213:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1214:   | --x-incl | --x-inc | --x-in | --x-i)
                   1215:     ac_prev=x_includes ;;
                   1216:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1217:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1218:     x_includes=$ac_optarg ;;
                   1219: 
                   1220:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1221:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1222:     ac_prev=x_libraries ;;
                   1223:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1224:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1225:     x_libraries=$ac_optarg ;;
                   1226: 
1.36      bertrand 1227:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1228: Try \`$0 --help' for more information"
1.1       bertrand 1229:     ;;
                   1230: 
                   1231:   *=*)
                   1232:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1233:     # Reject names that are not valid shell variable names.
1.15      bertrand 1234:     case $ac_envvar in #(
                   1235:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1236:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1237:     esac
1.1       bertrand 1238:     eval $ac_envvar=\$ac_optarg
                   1239:     export $ac_envvar ;;
                   1240: 
                   1241:   *)
                   1242:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1243:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1244:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1245:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1246:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1247:     ;;
                   1248: 
                   1249:   esac
                   1250: done
                   1251: 
                   1252: if test -n "$ac_prev"; then
                   1253:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1254:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1255: fi
                   1256: 
                   1257: if test -n "$ac_unrecognized_opts"; then
                   1258:   case $enable_option_checking in
                   1259:     no) ;;
1.36      bertrand 1260:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1261:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1262:   esac
1.1       bertrand 1263: fi
                   1264: 
1.15      bertrand 1265: # Check all directory arguments for consistency.
1.1       bertrand 1266: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1267:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1268:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1269:        libdir localedir mandir
                   1270: do
                   1271:   eval ac_val=\$$ac_var
1.15      bertrand 1272:   # Remove trailing slashes.
                   1273:   case $ac_val in
                   1274:     */ )
                   1275:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1276:       eval $ac_var=\$ac_val;;
                   1277:   esac
                   1278:   # Be sure to have absolute directory names.
1.1       bertrand 1279:   case $ac_val in
                   1280:     [\\/$]* | ?:[\\/]* )  continue;;
                   1281:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1282:   esac
1.36      bertrand 1283:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1284: done
                   1285: 
                   1286: # There might be people who depend on the old broken behavior: `$host'
                   1287: # used to hold the argument of --host etc.
                   1288: # FIXME: To remove some day.
                   1289: build=$build_alias
                   1290: host=$host_alias
                   1291: target=$target_alias
                   1292: 
                   1293: # FIXME: To remove some day.
                   1294: if test "x$host_alias" != x; then
                   1295:   if test "x$build_alias" = x; then
                   1296:     cross_compiling=maybe
1.36      bertrand 1297:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1298:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1299:   elif test "x$build_alias" != "x$host_alias"; then
                   1300:     cross_compiling=yes
                   1301:   fi
                   1302: fi
                   1303: 
                   1304: ac_tool_prefix=
                   1305: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1306: 
                   1307: test "$silent" = yes && exec 6>/dev/null
                   1308: 
                   1309: 
                   1310: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1311: ac_ls_di=`ls -di .` &&
                   1312: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1313:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1314: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1315:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1316: 
                   1317: 
                   1318: # Find the source files, if location was not specified.
                   1319: if test -z "$srcdir"; then
                   1320:   ac_srcdir_defaulted=yes
                   1321:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1322:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1323: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1324:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1325:     X"$as_myself" : 'X\(//\)$' \| \
                   1326:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1327: $as_echo X"$as_myself" |
1.1       bertrand 1328:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1329:        s//\1/
                   1330:        q
                   1331:      }
                   1332:      /^X\(\/\/\)[^/].*/{
                   1333:        s//\1/
                   1334:        q
                   1335:      }
                   1336:      /^X\(\/\/\)$/{
                   1337:        s//\1/
                   1338:        q
                   1339:      }
                   1340:      /^X\(\/\).*/{
                   1341:        s//\1/
                   1342:        q
                   1343:      }
                   1344:      s/.*/./; q'`
                   1345:   srcdir=$ac_confdir
                   1346:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1347:     srcdir=..
                   1348:   fi
                   1349: else
                   1350:   ac_srcdir_defaulted=no
                   1351: fi
                   1352: if test ! -r "$srcdir/$ac_unique_file"; then
                   1353:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1354:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1355: fi
                   1356: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1357: ac_abs_confdir=`(
1.36      bertrand 1358:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1359:    pwd)`
                   1360: # When building in place, set srcdir=.
                   1361: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1362:   srcdir=.
                   1363: fi
                   1364: # Remove unnecessary trailing slashes from srcdir.
                   1365: # Double slashes in file names in object file debugging info
                   1366: # mess up M-x gdb in Emacs.
                   1367: case $srcdir in
                   1368: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1369: esac
                   1370: for ac_var in $ac_precious_vars; do
                   1371:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1372:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1373:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1374:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1375: done
                   1376: 
                   1377: #
                   1378: # Report the --help message.
                   1379: #
                   1380: if test "$ac_init_help" = "long"; then
                   1381:   # Omit some internal or obsolete options to make the list less imposing.
                   1382:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1383:   cat <<_ACEOF
1.86      bertrand 1384: \`configure' configures rpl 4.1.4 to adapt to many kinds of systems.
1.1       bertrand 1385: 
                   1386: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1387: 
                   1388: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1389: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1390: 
                   1391: Defaults for the options are specified in brackets.
                   1392: 
                   1393: Configuration:
                   1394:   -h, --help              display this help and exit
                   1395:       --help=short        display options specific to this package
                   1396:       --help=recursive    display the short help of all the included packages
                   1397:   -V, --version           display version information and exit
1.36      bertrand 1398:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1399:       --cache-file=FILE   cache test results in FILE [disabled]
                   1400:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1401:   -n, --no-create         do not create output files
                   1402:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1403: 
                   1404: Installation directories:
                   1405:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1406:                           [$ac_default_prefix]
1.1       bertrand 1407:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1408:                           [PREFIX]
1.1       bertrand 1409: 
                   1410: By default, \`make install' will install all the files in
                   1411: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1412: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1413: for instance \`--prefix=\$HOME'.
                   1414: 
                   1415: For better control, use the options below.
                   1416: 
                   1417: Fine tuning of the installation directories:
1.15      bertrand 1418:   --bindir=DIR            user executables [EPREFIX/bin]
                   1419:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1420:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1421:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1422:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1423:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1424:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1425:   --includedir=DIR        C header files [PREFIX/include]
                   1426:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1427:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1428:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1429:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1430:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1431:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1432:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1433:   --htmldir=DIR           html documentation [DOCDIR]
                   1434:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1435:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1436:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1437: _ACEOF
                   1438: 
                   1439:   cat <<\_ACEOF
                   1440: 
                   1441: Program names:
                   1442:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1443:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1444:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1445: 
                   1446: X features:
                   1447:   --x-includes=DIR    X include files are in DIR
                   1448:   --x-libraries=DIR   X library files are in DIR
                   1449: 
                   1450: System types:
                   1451:   --build=BUILD     configure for building on BUILD [guessed]
                   1452:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1453:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1454: _ACEOF
                   1455: fi
                   1456: 
                   1457: if test -n "$ac_init_help"; then
                   1458:   case $ac_init_help in
1.86      bertrand 1459:      short | recursive ) echo "Configuration of rpl 4.1.4:";;
1.1       bertrand 1460:    esac
                   1461:   cat <<\_ACEOF
                   1462: 
                   1463: Optional Features:
1.15      bertrand 1464:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1465:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1466:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1467:   --disable-dependency-tracking  speeds up one-time build
                   1468:   --enable-dependency-tracking   do not reject slow dependency extractors
1.88    ! bertrand 1469:   --enable-rplcas         compile rplcas (default=no)
1.1       bertrand 1470:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.81      bertrand 1471:   --enable-sysv-ipcs      use SystemV IPC functions [default=guessed]
1.30      bertrand 1472:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1473:   --enable-final-encoding force final encoding [default=guessed]
                   1474:   --enable-tex            provide the TeX support [default=guessed]
                   1475:   --enable-vim            provide the vim support [default=guessed]
                   1476:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1477:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1478:   --enable-motif          provide the Motif support [default=guessed]
                   1479:   --enable-experimental   enable experimental code [default=no]
                   1480:   --enable-debug          enable debug code [default=no]
                   1481:   --enable-profile        enable profile code [default=no]
                   1482:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1483: 
                   1484: Optional Packages:
                   1485:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1486:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1487:   --with-x                use the X Window System
1.64      bertrand 1488:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1489:   --with-64bits-abi       force 64bits ABI (multilib)
1.88    ! bertrand 1490:   --with-rpltools         specify rpltools path used for cross compilation
1.1       bertrand 1491:   --with-mysql=PATH         specify directory for installed mysql
                   1492:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1493:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1494:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1495: 
                   1496: Some influential environment variables:
                   1497:   CC          C compiler command
                   1498:   CFLAGS      C compiler flags
                   1499:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1500:               nonstandard directory <lib dir>
                   1501:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1502:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1503:               you have headers in a nonstandard directory <include dir>
                   1504:   CXX         C++ compiler command
                   1505:   CXXFLAGS    C++ compiler flags
                   1506:   F77         Fortran 77 compiler command
                   1507:   FFLAGS      Fortran 77 compiler flags
                   1508:   FC          Fortran compiler command
                   1509:   FCFLAGS     Fortran compiler flags
                   1510:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1511:   CPP         C preprocessor
                   1512: 
                   1513: Use these variables to override the choices made by `configure' or to help
                   1514: it to find libraries and programs with nonstandard names/locations.
                   1515: 
1.15      bertrand 1516: Report bugs to the package provider.
1.1       bertrand 1517: _ACEOF
                   1518: ac_status=$?
                   1519: fi
                   1520: 
                   1521: if test "$ac_init_help" = "recursive"; then
                   1522:   # If there are subdirs, report their specific --help.
                   1523:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1524:     test -d "$ac_dir" ||
                   1525:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1526:       continue
1.1       bertrand 1527:     ac_builddir=.
                   1528: 
                   1529: case "$ac_dir" in
                   1530: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1531: *)
1.15      bertrand 1532:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1533:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1534:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1535:   case $ac_top_builddir_sub in
                   1536:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1537:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1538:   esac ;;
                   1539: esac
                   1540: ac_abs_top_builddir=$ac_pwd
                   1541: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1542: # for backward compatibility:
                   1543: ac_top_builddir=$ac_top_build_prefix
                   1544: 
                   1545: case $srcdir in
                   1546:   .)  # We are building in place.
                   1547:     ac_srcdir=.
                   1548:     ac_top_srcdir=$ac_top_builddir_sub
                   1549:     ac_abs_top_srcdir=$ac_pwd ;;
                   1550:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1551:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1552:     ac_top_srcdir=$srcdir
                   1553:     ac_abs_top_srcdir=$srcdir ;;
                   1554:   *) # Relative name.
                   1555:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1556:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1557:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1558: esac
                   1559: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1560: 
                   1561:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1562:     # Check for guested configure.
                   1563:     if test -f "$ac_srcdir/configure.gnu"; then
                   1564:       echo &&
                   1565:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1566:     elif test -f "$ac_srcdir/configure"; then
                   1567:       echo &&
                   1568:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1569:     else
1.15      bertrand 1570:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1571:     fi || ac_status=$?
                   1572:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1573:   done
                   1574: fi
                   1575: 
                   1576: test -n "$ac_init_help" && exit $ac_status
                   1577: if $ac_init_version; then
                   1578:   cat <<\_ACEOF
1.86      bertrand 1579: rpl configure 4.1.4
1.57      bertrand 1580: generated by GNU Autoconf 2.68
1.1       bertrand 1581: 
1.36      bertrand 1582: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1583: This configure script is free software; the Free Software Foundation
                   1584: gives unlimited permission to copy, distribute and modify it.
                   1585: _ACEOF
                   1586:   exit
                   1587: fi
                   1588: 
1.15      bertrand 1589: ## ------------------------ ##
                   1590: ## Autoconf initialization. ##
                   1591: ## ------------------------ ##
                   1592: 
                   1593: # ac_fn_c_try_compile LINENO
                   1594: # --------------------------
                   1595: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1596: ac_fn_c_try_compile ()
                   1597: {
                   1598:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1599:   rm -f conftest.$ac_objext
                   1600:   if { { ac_try="$ac_compile"
                   1601: case "(($ac_try" in
                   1602:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1603:   *) ac_try_echo=$ac_try;;
                   1604: esac
                   1605: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1606: $as_echo "$ac_try_echo"; } >&5
                   1607:   (eval "$ac_compile") 2>conftest.err
                   1608:   ac_status=$?
                   1609:   if test -s conftest.err; then
                   1610:     grep -v '^ *+' conftest.err >conftest.er1
                   1611:     cat conftest.er1 >&5
                   1612:     mv -f conftest.er1 conftest.err
                   1613:   fi
                   1614:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1615:   test $ac_status = 0; } && {
                   1616:     test -z "$ac_c_werror_flag" ||
                   1617:     test ! -s conftest.err
                   1618:        } && test -s conftest.$ac_objext; then :
                   1619:   ac_retval=0
                   1620: else
                   1621:   $as_echo "$as_me: failed program was:" >&5
                   1622: sed 's/^/| /' conftest.$ac_ext >&5
                   1623: 
                   1624:    ac_retval=1
                   1625: fi
1.57      bertrand 1626:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1627:   as_fn_set_status $ac_retval
1.1       bertrand 1628: 
1.15      bertrand 1629: } # ac_fn_c_try_compile
1.1       bertrand 1630: 
1.15      bertrand 1631: # ac_fn_cxx_try_compile LINENO
                   1632: # ----------------------------
                   1633: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1634: ac_fn_cxx_try_compile ()
1.1       bertrand 1635: {
1.15      bertrand 1636:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1637:   rm -f conftest.$ac_objext
                   1638:   if { { ac_try="$ac_compile"
                   1639: case "(($ac_try" in
                   1640:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1641:   *) ac_try_echo=$ac_try;;
                   1642: esac
                   1643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1644: $as_echo "$ac_try_echo"; } >&5
                   1645:   (eval "$ac_compile") 2>conftest.err
                   1646:   ac_status=$?
                   1647:   if test -s conftest.err; then
                   1648:     grep -v '^ *+' conftest.err >conftest.er1
                   1649:     cat conftest.er1 >&5
                   1650:     mv -f conftest.er1 conftest.err
                   1651:   fi
                   1652:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1653:   test $ac_status = 0; } && {
                   1654:     test -z "$ac_cxx_werror_flag" ||
                   1655:     test ! -s conftest.err
                   1656:        } && test -s conftest.$ac_objext; then :
                   1657:   ac_retval=0
                   1658: else
                   1659:   $as_echo "$as_me: failed program was:" >&5
                   1660: sed 's/^/| /' conftest.$ac_ext >&5
                   1661: 
                   1662:    ac_retval=1
                   1663: fi
1.57      bertrand 1664:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1665:   as_fn_set_status $ac_retval
1.1       bertrand 1666: 
1.15      bertrand 1667: } # ac_fn_cxx_try_compile
1.1       bertrand 1668: 
1.15      bertrand 1669: # ac_fn_f77_try_compile LINENO
                   1670: # ----------------------------
                   1671: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1672: ac_fn_f77_try_compile ()
                   1673: {
                   1674:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1675:   rm -f conftest.$ac_objext
                   1676:   if { { ac_try="$ac_compile"
                   1677: case "(($ac_try" in
                   1678:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1679:   *) ac_try_echo=$ac_try;;
                   1680: esac
                   1681: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1682: $as_echo "$ac_try_echo"; } >&5
                   1683:   (eval "$ac_compile") 2>conftest.err
                   1684:   ac_status=$?
                   1685:   if test -s conftest.err; then
                   1686:     grep -v '^ *+' conftest.err >conftest.er1
                   1687:     cat conftest.er1 >&5
                   1688:     mv -f conftest.er1 conftest.err
                   1689:   fi
                   1690:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1691:   test $ac_status = 0; } && {
                   1692:     test -z "$ac_f77_werror_flag" ||
                   1693:     test ! -s conftest.err
                   1694:        } && test -s conftest.$ac_objext; then :
                   1695:   ac_retval=0
                   1696: else
                   1697:   $as_echo "$as_me: failed program was:" >&5
                   1698: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1699: 
1.15      bertrand 1700:    ac_retval=1
                   1701: fi
1.57      bertrand 1702:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1703:   as_fn_set_status $ac_retval
1.1       bertrand 1704: 
1.15      bertrand 1705: } # ac_fn_f77_try_compile
1.1       bertrand 1706: 
1.15      bertrand 1707: # ac_fn_fc_try_compile LINENO
                   1708: # ---------------------------
                   1709: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1710: ac_fn_fc_try_compile ()
                   1711: {
                   1712:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1713:   rm -f conftest.$ac_objext
                   1714:   if { { ac_try="$ac_compile"
                   1715: case "(($ac_try" in
                   1716:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1717:   *) ac_try_echo=$ac_try;;
                   1718: esac
                   1719: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1720: $as_echo "$ac_try_echo"; } >&5
                   1721:   (eval "$ac_compile") 2>conftest.err
                   1722:   ac_status=$?
                   1723:   if test -s conftest.err; then
                   1724:     grep -v '^ *+' conftest.err >conftest.er1
                   1725:     cat conftest.er1 >&5
                   1726:     mv -f conftest.er1 conftest.err
                   1727:   fi
                   1728:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1729:   test $ac_status = 0; } && {
                   1730:     test -z "$ac_fc_werror_flag" ||
                   1731:     test ! -s conftest.err
                   1732:        } && test -s conftest.$ac_objext; then :
                   1733:   ac_retval=0
                   1734: else
                   1735:   $as_echo "$as_me: failed program was:" >&5
                   1736: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1737: 
1.15      bertrand 1738:    ac_retval=1
                   1739: fi
1.57      bertrand 1740:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1741:   as_fn_set_status $ac_retval
1.1       bertrand 1742: 
1.15      bertrand 1743: } # ac_fn_fc_try_compile
1.1       bertrand 1744: 
1.15      bertrand 1745: # ac_fn_c_try_cpp LINENO
                   1746: # ----------------------
                   1747: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1748: ac_fn_c_try_cpp ()
                   1749: {
                   1750:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1751:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1752: case "(($ac_try" in
                   1753:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1754:   *) ac_try_echo=$ac_try;;
                   1755: esac
                   1756: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1757: $as_echo "$ac_try_echo"; } >&5
                   1758:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1759:   ac_status=$?
                   1760:   if test -s conftest.err; then
                   1761:     grep -v '^ *+' conftest.err >conftest.er1
                   1762:     cat conftest.er1 >&5
                   1763:     mv -f conftest.er1 conftest.err
                   1764:   fi
                   1765:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1766:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1767:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1768:     test ! -s conftest.err
                   1769:        }; then :
                   1770:   ac_retval=0
                   1771: else
                   1772:   $as_echo "$as_me: failed program was:" >&5
                   1773: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1774: 
1.15      bertrand 1775:     ac_retval=1
                   1776: fi
1.57      bertrand 1777:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1778:   as_fn_set_status $ac_retval
1.1       bertrand 1779: 
1.15      bertrand 1780: } # ac_fn_c_try_cpp
1.1       bertrand 1781: 
1.15      bertrand 1782: # ac_fn_c_try_link LINENO
                   1783: # -----------------------
                   1784: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1785: ac_fn_c_try_link ()
                   1786: {
                   1787:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1788:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1789:   if { { ac_try="$ac_link"
                   1790: case "(($ac_try" in
                   1791:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1792:   *) ac_try_echo=$ac_try;;
                   1793: esac
                   1794: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1795: $as_echo "$ac_try_echo"; } >&5
                   1796:   (eval "$ac_link") 2>conftest.err
                   1797:   ac_status=$?
                   1798:   if test -s conftest.err; then
                   1799:     grep -v '^ *+' conftest.err >conftest.er1
                   1800:     cat conftest.er1 >&5
                   1801:     mv -f conftest.er1 conftest.err
                   1802:   fi
                   1803:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1804:   test $ac_status = 0; } && {
                   1805:     test -z "$ac_c_werror_flag" ||
                   1806:     test ! -s conftest.err
                   1807:        } && test -s conftest$ac_exeext && {
                   1808:     test "$cross_compiling" = yes ||
                   1809:     $as_test_x conftest$ac_exeext
                   1810:        }; then :
                   1811:   ac_retval=0
                   1812: else
                   1813:   $as_echo "$as_me: failed program was:" >&5
                   1814: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1815: 
1.15      bertrand 1816:    ac_retval=1
                   1817: fi
                   1818:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1819:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1820:   # interfere with the next link command; also delete a directory that is
                   1821:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1822:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1823:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1824:   as_fn_set_status $ac_retval
1.1       bertrand 1825: 
1.15      bertrand 1826: } # ac_fn_c_try_link
1.1       bertrand 1827: 
1.15      bertrand 1828: # ac_fn_c_check_func LINENO FUNC VAR
                   1829: # ----------------------------------
                   1830: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1831: ac_fn_c_check_func ()
                   1832: {
                   1833:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1834:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1835: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1836: if eval \${$3+:} false; then :
1.15      bertrand 1837:   $as_echo_n "(cached) " >&6
                   1838: else
                   1839:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1840: /* end confdefs.h.  */
                   1841: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1842:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1843: #define $2 innocuous_$2
1.1       bertrand 1844: 
1.15      bertrand 1845: /* System header to define __stub macros and hopefully few prototypes,
                   1846:     which can conflict with char $2 (); below.
                   1847:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1848:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1849: 
1.15      bertrand 1850: #ifdef __STDC__
                   1851: # include <limits.h>
                   1852: #else
                   1853: # include <assert.h>
                   1854: #endif
1.1       bertrand 1855: 
1.15      bertrand 1856: #undef $2
1.1       bertrand 1857: 
1.15      bertrand 1858: /* Override any GCC internal prototype to avoid an error.
                   1859:    Use char because int might match the return type of a GCC
                   1860:    builtin and then its argument prototype would still apply.  */
                   1861: #ifdef __cplusplus
                   1862: extern "C"
                   1863: #endif
                   1864: char $2 ();
                   1865: /* The GNU C library defines this for functions which it implements
                   1866:     to always fail with ENOSYS.  Some functions are actually named
                   1867:     something starting with __ and the normal name is an alias.  */
                   1868: #if defined __stub_$2 || defined __stub___$2
                   1869: choke me
                   1870: #endif
1.1       bertrand 1871: 
1.15      bertrand 1872: int
                   1873: main ()
                   1874: {
                   1875: return $2 ();
                   1876:   ;
                   1877:   return 0;
                   1878: }
1.1       bertrand 1879: _ACEOF
1.15      bertrand 1880: if ac_fn_c_try_link "$LINENO"; then :
                   1881:   eval "$3=yes"
                   1882: else
                   1883:   eval "$3=no"
                   1884: fi
                   1885: rm -f core conftest.err conftest.$ac_objext \
                   1886:     conftest$ac_exeext conftest.$ac_ext
                   1887: fi
                   1888: eval ac_res=\$$3
                   1889:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1890: $as_echo "$ac_res" >&6; }
1.57      bertrand 1891:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1892: 
1.15      bertrand 1893: } # ac_fn_c_check_func
1.1       bertrand 1894: 
1.83      bertrand 1895: # ac_fn_c_try_run LINENO
                   1896: # ----------------------
                   1897: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1898: # that executables *can* be run.
                   1899: ac_fn_c_try_run ()
                   1900: {
                   1901:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1902:   if { { ac_try="$ac_link"
                   1903: case "(($ac_try" in
                   1904:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1905:   *) ac_try_echo=$ac_try;;
                   1906: esac
                   1907: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1908: $as_echo "$ac_try_echo"; } >&5
                   1909:   (eval "$ac_link") 2>&5
                   1910:   ac_status=$?
                   1911:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1912:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1913:   { { case "(($ac_try" in
                   1914:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1915:   *) ac_try_echo=$ac_try;;
                   1916: esac
                   1917: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1918: $as_echo "$ac_try_echo"; } >&5
                   1919:   (eval "$ac_try") 2>&5
                   1920:   ac_status=$?
                   1921:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1922:   test $ac_status = 0; }; }; then :
                   1923:   ac_retval=0
                   1924: else
                   1925:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1926:        $as_echo "$as_me: failed program was:" >&5
                   1927: sed 's/^/| /' conftest.$ac_ext >&5
                   1928: 
                   1929:        ac_retval=$ac_status
                   1930: fi
                   1931:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1932:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1933:   as_fn_set_status $ac_retval
                   1934: 
                   1935: } # ac_fn_c_try_run
                   1936: 
1.33      bertrand 1937: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1938: # -------------------------------------------
                   1939: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1940: # variable VAR accordingly.
                   1941: ac_fn_c_check_type ()
                   1942: {
                   1943:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1944:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1945: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1946: if eval \${$3+:} false; then :
1.33      bertrand 1947:   $as_echo_n "(cached) " >&6
                   1948: else
                   1949:   eval "$3=no"
                   1950:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1951: /* end confdefs.h.  */
                   1952: $4
                   1953: int
                   1954: main ()
                   1955: {
                   1956: if (sizeof ($2))
                   1957:     return 0;
                   1958:   ;
                   1959:   return 0;
                   1960: }
                   1961: _ACEOF
                   1962: if ac_fn_c_try_compile "$LINENO"; then :
                   1963:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1964: /* end confdefs.h.  */
                   1965: $4
                   1966: int
                   1967: main ()
                   1968: {
                   1969: if (sizeof (($2)))
                   1970:        return 0;
                   1971:   ;
                   1972:   return 0;
                   1973: }
                   1974: _ACEOF
                   1975: if ac_fn_c_try_compile "$LINENO"; then :
                   1976: 
                   1977: else
                   1978:   eval "$3=yes"
                   1979: fi
                   1980: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1981: fi
                   1982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1983: fi
                   1984: eval ac_res=\$$3
                   1985:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1986: $as_echo "$ac_res" >&6; }
1.57      bertrand 1987:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1988: 
                   1989: } # ac_fn_c_check_type
                   1990: 
1.15      bertrand 1991: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1992: # --------------------------------------------
                   1993: # Tries to find the compile-time value of EXPR in a program that includes
                   1994: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1995: # computed
                   1996: ac_fn_c_compute_int ()
                   1997: {
                   1998:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1999:   if test "$cross_compiling" = yes; then
                   2000:     # Depending upon the size, compute the lo and hi bounds.
                   2001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2002: /* end confdefs.h.  */
                   2003: $4
                   2004: int
                   2005: main ()
                   2006: {
                   2007: static int test_array [1 - 2 * !(($2) >= 0)];
                   2008: test_array [0] = 0
1.1       bertrand 2009: 
1.15      bertrand 2010:   ;
                   2011:   return 0;
                   2012: }
1.1       bertrand 2013: _ACEOF
1.15      bertrand 2014: if ac_fn_c_try_compile "$LINENO"; then :
                   2015:   ac_lo=0 ac_mid=0
                   2016:   while :; do
                   2017:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2018: /* end confdefs.h.  */
                   2019: $4
                   2020: int
                   2021: main ()
                   2022: {
                   2023: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2024: test_array [0] = 0
1.1       bertrand 2025: 
1.15      bertrand 2026:   ;
                   2027:   return 0;
                   2028: }
                   2029: _ACEOF
                   2030: if ac_fn_c_try_compile "$LINENO"; then :
                   2031:   ac_hi=$ac_mid; break
                   2032: else
                   2033:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2034:            if test $ac_lo -le $ac_mid; then
                   2035:              ac_lo= ac_hi=
                   2036:              break
                   2037:            fi
                   2038:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2039: fi
                   2040: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2041:   done
                   2042: else
                   2043:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2044: /* end confdefs.h.  */
                   2045: $4
                   2046: int
                   2047: main ()
                   2048: {
                   2049: static int test_array [1 - 2 * !(($2) < 0)];
                   2050: test_array [0] = 0
1.1       bertrand 2051: 
1.15      bertrand 2052:   ;
                   2053:   return 0;
                   2054: }
1.1       bertrand 2055: _ACEOF
1.15      bertrand 2056: if ac_fn_c_try_compile "$LINENO"; then :
                   2057:   ac_hi=-1 ac_mid=-1
                   2058:   while :; do
                   2059:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2060: /* end confdefs.h.  */
                   2061: $4
                   2062: int
                   2063: main ()
                   2064: {
                   2065: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2066: test_array [0] = 0
1.1       bertrand 2067: 
1.15      bertrand 2068:   ;
                   2069:   return 0;
                   2070: }
                   2071: _ACEOF
                   2072: if ac_fn_c_try_compile "$LINENO"; then :
                   2073:   ac_lo=$ac_mid; break
                   2074: else
                   2075:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2076:            if test $ac_mid -le $ac_hi; then
                   2077:              ac_lo= ac_hi=
                   2078:              break
                   2079:            fi
                   2080:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2081: fi
                   2082: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2083:   done
1.1       bertrand 2084: else
1.15      bertrand 2085:   ac_lo= ac_hi=
                   2086: fi
                   2087: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2088: fi
1.15      bertrand 2089: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2090: # Binary search between lo and hi bounds.
                   2091: while test "x$ac_lo" != "x$ac_hi"; do
                   2092:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2093:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2094: /* end confdefs.h.  */
                   2095: $4
                   2096: int
                   2097: main ()
                   2098: {
                   2099: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2100: test_array [0] = 0
1.1       bertrand 2101: 
1.15      bertrand 2102:   ;
                   2103:   return 0;
                   2104: }
                   2105: _ACEOF
                   2106: if ac_fn_c_try_compile "$LINENO"; then :
                   2107:   ac_hi=$ac_mid
1.1       bertrand 2108: else
1.15      bertrand 2109:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2110: fi
1.15      bertrand 2111: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2112: done
                   2113: case $ac_lo in #((
                   2114: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2115: '') ac_retval=1 ;;
                   2116: esac
                   2117:   else
                   2118:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2119: /* end confdefs.h.  */
                   2120: $4
                   2121: static long int longval () { return $2; }
                   2122: static unsigned long int ulongval () { return $2; }
                   2123: #include <stdio.h>
                   2124: #include <stdlib.h>
                   2125: int
                   2126: main ()
                   2127: {
1.1       bertrand 2128: 
1.15      bertrand 2129:   FILE *f = fopen ("conftest.val", "w");
                   2130:   if (! f)
                   2131:     return 1;
                   2132:   if (($2) < 0)
                   2133:     {
                   2134:       long int i = longval ();
                   2135:       if (i != ($2))
                   2136:    return 1;
                   2137:       fprintf (f, "%ld", i);
                   2138:     }
                   2139:   else
                   2140:     {
                   2141:       unsigned long int i = ulongval ();
                   2142:       if (i != ($2))
                   2143:    return 1;
                   2144:       fprintf (f, "%lu", i);
                   2145:     }
                   2146:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2147:      on some platforms.  */
                   2148:   return ferror (f) || fclose (f) != 0;
                   2149: 
                   2150:   ;
                   2151:   return 0;
                   2152: }
                   2153: _ACEOF
                   2154: if ac_fn_c_try_run "$LINENO"; then :
                   2155:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2156: else
                   2157:   ac_retval=1
1.14      bertrand 2158: fi
1.15      bertrand 2159: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2160:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2161: rm -f conftest.val
1.14      bertrand 2162: 
1.15      bertrand 2163:   fi
1.57      bertrand 2164:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2165:   as_fn_set_status $ac_retval
1.14      bertrand 2166: 
1.15      bertrand 2167: } # ac_fn_c_compute_int
1.1       bertrand 2168: 
1.15      bertrand 2169: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2170: # -------------------------------------------------------
                   2171: # Tests whether HEADER exists and can be compiled using the include files in
                   2172: # INCLUDES, setting the cache variable VAR accordingly.
                   2173: ac_fn_c_check_header_compile ()
                   2174: {
                   2175:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2176:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2177: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2178: if eval \${$3+:} false; then :
1.15      bertrand 2179:   $as_echo_n "(cached) " >&6
                   2180: else
                   2181:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2182: /* end confdefs.h.  */
                   2183: $4
                   2184: #include <$2>
                   2185: _ACEOF
                   2186: if ac_fn_c_try_compile "$LINENO"; then :
                   2187:   eval "$3=yes"
                   2188: else
                   2189:   eval "$3=no"
                   2190: fi
                   2191: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2192: fi
                   2193: eval ac_res=\$$3
                   2194:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2195: $as_echo "$ac_res" >&6; }
1.57      bertrand 2196:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2197: 
1.15      bertrand 2198: } # ac_fn_c_check_header_compile
1.1       bertrand 2199: 
1.15      bertrand 2200: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2201: # -------------------------------------------------------
                   2202: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2203: # the include files in INCLUDES and setting the cache variable VAR
                   2204: # accordingly.
                   2205: ac_fn_c_check_header_mongrel ()
                   2206: {
                   2207:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2208:   if eval \${$3+:} false; then :
1.15      bertrand 2209:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2210: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2211: if eval \${$3+:} false; then :
1.15      bertrand 2212:   $as_echo_n "(cached) " >&6
                   2213: fi
                   2214: eval ac_res=\$$3
                   2215:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2216: $as_echo "$ac_res" >&6; }
                   2217: else
                   2218:   # Is the header compilable?
                   2219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2220: $as_echo_n "checking $2 usability... " >&6; }
                   2221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2222: /* end confdefs.h.  */
                   2223: $4
                   2224: #include <$2>
                   2225: _ACEOF
                   2226: if ac_fn_c_try_compile "$LINENO"; then :
                   2227:   ac_header_compiler=yes
                   2228: else
                   2229:   ac_header_compiler=no
                   2230: fi
                   2231: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2233: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2234: 
1.15      bertrand 2235: # Is the header present?
                   2236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2237: $as_echo_n "checking $2 presence... " >&6; }
                   2238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2239: /* end confdefs.h.  */
                   2240: #include <$2>
                   2241: _ACEOF
                   2242: if ac_fn_c_try_cpp "$LINENO"; then :
                   2243:   ac_header_preproc=yes
                   2244: else
                   2245:   ac_header_preproc=no
                   2246: fi
1.36      bertrand 2247: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2249: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2250: 
1.15      bertrand 2251: # So?  What about this header?
                   2252: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2253:   yes:no: )
                   2254:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2255: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2256:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2257: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2258:     ;;
                   2259:   no:yes:* )
                   2260:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2261: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2262:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2263: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2264:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2265: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2266:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2267: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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: esac
                   2272:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2273: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2274: if eval \${$3+:} false; then :
1.15      bertrand 2275:   $as_echo_n "(cached) " >&6
                   2276: else
                   2277:   eval "$3=\$ac_header_compiler"
                   2278: fi
                   2279: eval ac_res=\$$3
                   2280:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2281: $as_echo "$ac_res" >&6; }
                   2282: fi
1.57      bertrand 2283:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2284: 
1.15      bertrand 2285: } # ac_fn_c_check_header_mongrel
                   2286: cat >config.log <<_ACEOF
                   2287: This file contains any messages produced by compilers while
                   2288: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2289: 
1.86      bertrand 2290: It was created by rpl $as_me 4.1.4, which was
1.57      bertrand 2291: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2292: 
1.15      bertrand 2293:   $ $0 $@
1.1       bertrand 2294: 
1.15      bertrand 2295: _ACEOF
                   2296: exec 5>>config.log
                   2297: {
                   2298: cat <<_ASUNAME
                   2299: ## --------- ##
                   2300: ## Platform. ##
                   2301: ## --------- ##
1.1       bertrand 2302: 
1.15      bertrand 2303: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2304: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2305: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2306: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2307: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2308: 
1.15      bertrand 2309: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2310: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2311: 
1.15      bertrand 2312: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2313: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2314: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2315: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2316: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2317: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2318: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2319: 
1.15      bertrand 2320: _ASUNAME
1.1       bertrand 2321: 
1.15      bertrand 2322: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2323: for as_dir in $PATH
                   2324: do
                   2325:   IFS=$as_save_IFS
                   2326:   test -z "$as_dir" && as_dir=.
                   2327:     $as_echo "PATH: $as_dir"
                   2328:   done
                   2329: IFS=$as_save_IFS
1.1       bertrand 2330: 
1.15      bertrand 2331: } >&5
1.1       bertrand 2332: 
1.15      bertrand 2333: cat >&5 <<_ACEOF
1.1       bertrand 2334: 
                   2335: 
1.15      bertrand 2336: ## ----------- ##
                   2337: ## Core tests. ##
                   2338: ## ----------- ##
1.1       bertrand 2339: 
1.15      bertrand 2340: _ACEOF
1.1       bertrand 2341: 
                   2342: 
1.15      bertrand 2343: # Keep a trace of the command line.
                   2344: # Strip out --no-create and --no-recursion so they do not pile up.
                   2345: # Strip out --silent because we don't want to record it for future runs.
                   2346: # Also quote any args containing shell meta-characters.
                   2347: # Make two passes to allow for proper duplicate-argument suppression.
                   2348: ac_configure_args=
                   2349: ac_configure_args0=
                   2350: ac_configure_args1=
                   2351: ac_must_keep_next=false
                   2352: for ac_pass in 1 2
                   2353: do
                   2354:   for ac_arg
                   2355:   do
                   2356:     case $ac_arg in
                   2357:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2358:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2359:     | -silent | --silent | --silen | --sile | --sil)
                   2360:       continue ;;
                   2361:     *\'*)
                   2362:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2363:     esac
                   2364:     case $ac_pass in
                   2365:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2366:     2)
                   2367:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2368:       if test $ac_must_keep_next = true; then
                   2369:    ac_must_keep_next=false # Got value, back to normal.
                   2370:       else
                   2371:    case $ac_arg in
                   2372:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2373:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2374:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2375:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2376:        case "$ac_configure_args0 " in
                   2377:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2378:        esac
                   2379:        ;;
                   2380:      -* ) ac_must_keep_next=true ;;
                   2381:    esac
                   2382:       fi
                   2383:       as_fn_append ac_configure_args " '$ac_arg'"
                   2384:       ;;
                   2385:     esac
                   2386:   done
                   2387: done
                   2388: { ac_configure_args0=; unset ac_configure_args0;}
                   2389: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2390: 
1.15      bertrand 2391: # When interrupted or exit'd, cleanup temporary files, and complete
                   2392: # config.log.  We remove comments because anyway the quotes in there
                   2393: # would cause problems or look ugly.
                   2394: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2395: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2396: trap 'exit_status=$?
                   2397:   # Save into config.log some information that might help in debugging.
                   2398:   {
                   2399:     echo
1.1       bertrand 2400: 
1.36      bertrand 2401:     $as_echo "## ---------------- ##
1.15      bertrand 2402: ## Cache variables. ##
1.36      bertrand 2403: ## ---------------- ##"
1.15      bertrand 2404:     echo
                   2405:     # The following way of writing the cache mishandles newlines in values,
                   2406: (
                   2407:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2408:     eval ac_val=\$$ac_var
                   2409:     case $ac_val in #(
                   2410:     *${as_nl}*)
                   2411:       case $ac_var in #(
                   2412:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2413: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2414:       esac
                   2415:       case $ac_var in #(
                   2416:       _ | IFS | as_nl) ;; #(
                   2417:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2418:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2419:       esac ;;
                   2420:     esac
                   2421:   done
                   2422:   (set) 2>&1 |
                   2423:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2424:     *${as_nl}ac_space=\ *)
                   2425:       sed -n \
                   2426:    "s/'\''/'\''\\\\'\'''\''/g;
                   2427:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2428:       ;; #(
                   2429:     *)
                   2430:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2431:       ;;
                   2432:     esac |
                   2433:     sort
                   2434: )
                   2435:     echo
1.1       bertrand 2436: 
1.36      bertrand 2437:     $as_echo "## ----------------- ##
1.15      bertrand 2438: ## Output variables. ##
1.36      bertrand 2439: ## ----------------- ##"
1.15      bertrand 2440:     echo
                   2441:     for ac_var in $ac_subst_vars
                   2442:     do
                   2443:       eval ac_val=\$$ac_var
                   2444:       case $ac_val in
                   2445:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2446:       esac
                   2447:       $as_echo "$ac_var='\''$ac_val'\''"
                   2448:     done | sort
                   2449:     echo
1.1       bertrand 2450: 
1.15      bertrand 2451:     if test -n "$ac_subst_files"; then
1.36      bertrand 2452:       $as_echo "## ------------------- ##
1.15      bertrand 2453: ## File substitutions. ##
1.36      bertrand 2454: ## ------------------- ##"
1.15      bertrand 2455:       echo
                   2456:       for ac_var in $ac_subst_files
                   2457:       do
                   2458:    eval ac_val=\$$ac_var
                   2459:    case $ac_val in
                   2460:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2461:    esac
                   2462:    $as_echo "$ac_var='\''$ac_val'\''"
                   2463:       done | sort
                   2464:       echo
1.14      bertrand 2465:     fi
                   2466: 
1.15      bertrand 2467:     if test -s confdefs.h; then
1.36      bertrand 2468:       $as_echo "## ----------- ##
1.15      bertrand 2469: ## confdefs.h. ##
1.36      bertrand 2470: ## ----------- ##"
1.15      bertrand 2471:       echo
                   2472:       cat confdefs.h
                   2473:       echo
                   2474:     fi
                   2475:     test "$ac_signal" != 0 &&
                   2476:       $as_echo "$as_me: caught signal $ac_signal"
                   2477:     $as_echo "$as_me: exit $exit_status"
                   2478:   } >&5
                   2479:   rm -f core *.core core.conftest.* &&
                   2480:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2481:     exit $exit_status
                   2482: ' 0
                   2483: for ac_signal in 1 2 13 15; do
                   2484:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2485: done
                   2486: ac_signal=0
1.14      bertrand 2487: 
1.15      bertrand 2488: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2489: rm -f -r conftest* confdefs.h
1.14      bertrand 2490: 
1.15      bertrand 2491: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2492: 
1.15      bertrand 2493: # Predefined preprocessor variables.
1.14      bertrand 2494: 
1.15      bertrand 2495: cat >>confdefs.h <<_ACEOF
                   2496: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2497: _ACEOF
1.14      bertrand 2498: 
1.15      bertrand 2499: cat >>confdefs.h <<_ACEOF
                   2500: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2501: _ACEOF
                   2502: 
1.15      bertrand 2503: cat >>confdefs.h <<_ACEOF
                   2504: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2505: _ACEOF
1.14      bertrand 2506: 
1.15      bertrand 2507: cat >>confdefs.h <<_ACEOF
                   2508: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2509: _ACEOF
                   2510: 
1.15      bertrand 2511: cat >>confdefs.h <<_ACEOF
                   2512: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2513: _ACEOF
1.14      bertrand 2514: 
1.15      bertrand 2515: cat >>confdefs.h <<_ACEOF
                   2516: #define PACKAGE_URL "$PACKAGE_URL"
                   2517: _ACEOF
1.14      bertrand 2518: 
                   2519: 
1.15      bertrand 2520: # Let the site file select an alternate cache file if it wants to.
                   2521: # Prefer an explicitly selected file to automatically selected ones.
                   2522: ac_site_file1=NONE
                   2523: ac_site_file2=NONE
                   2524: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2525:   # We do not want a PATH search for config.site.
                   2526:   case $CONFIG_SITE in #((
                   2527:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2528:     */*) ac_site_file1=$CONFIG_SITE;;
                   2529:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2530:   esac
1.15      bertrand 2531: elif test "x$prefix" != xNONE; then
                   2532:   ac_site_file1=$prefix/share/config.site
                   2533:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2534: else
1.15      bertrand 2535:   ac_site_file1=$ac_default_prefix/share/config.site
                   2536:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2537: fi
1.15      bertrand 2538: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2539: do
                   2540:   test "x$ac_site_file" = xNONE && continue
                   2541:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2542:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2543: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2544:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2545:     . "$ac_site_file" \
                   2546:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2547: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2548: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2549: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2550:   fi
                   2551: done
1.14      bertrand 2552: 
1.15      bertrand 2553: if test -r "$cache_file"; then
                   2554:   # Some versions of bash will fail to source /dev/null (special files
                   2555:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2556:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2557:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2558: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2559:     case $cache_file in
                   2560:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2561:       *)                      . "./$cache_file";;
                   2562:     esac
                   2563:   fi
1.14      bertrand 2564: else
1.15      bertrand 2565:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2566: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2567:   >$cache_file
1.14      bertrand 2568: fi
                   2569: 
1.15      bertrand 2570: # Check that the precious variables saved in the cache have kept the same
                   2571: # value.
                   2572: ac_cache_corrupted=false
                   2573: for ac_var in $ac_precious_vars; do
                   2574:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2575:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2576:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2577:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2578:   case $ac_old_set,$ac_new_set in
                   2579:     set,)
                   2580:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2581: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2582:       ac_cache_corrupted=: ;;
                   2583:     ,set)
                   2584:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2585: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2586:       ac_cache_corrupted=: ;;
                   2587:     ,);;
                   2588:     *)
                   2589:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2590:    # differences in whitespace do not lead to failure.
                   2591:    ac_old_val_w=`echo x $ac_old_val`
                   2592:    ac_new_val_w=`echo x $ac_new_val`
                   2593:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2594:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2595: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2596:      ac_cache_corrupted=:
                   2597:    else
                   2598:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2599: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2600:      eval $ac_var=\$ac_old_val
                   2601:    fi
                   2602:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2603: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2604:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2605: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2606:       fi;;
                   2607:   esac
                   2608:   # Pass precious variables to config.status.
                   2609:   if test "$ac_new_set" = set; then
                   2610:     case $ac_new_val in
                   2611:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2612:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2613:     esac
                   2614:     case " $ac_configure_args " in
                   2615:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2616:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2617:     esac
1.14      bertrand 2618:   fi
                   2619: done
1.15      bertrand 2620: if $ac_cache_corrupted; then
                   2621:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2622: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2623:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2624: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2625:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2626: fi
                   2627: ## -------------------- ##
                   2628: ## Main body of script. ##
                   2629: ## -------------------- ##
1.14      bertrand 2630: 
1.15      bertrand 2631: ac_ext=c
                   2632: ac_cpp='$CPP $CPPFLAGS'
                   2633: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2634: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2635: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2636: 
                   2637: 
1.15      bertrand 2638: ac_aux_dir=
                   2639: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2640:   if test -f "$ac_dir/install-sh"; then
                   2641:     ac_aux_dir=$ac_dir
                   2642:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2643:     break
                   2644:   elif test -f "$ac_dir/install.sh"; then
                   2645:     ac_aux_dir=$ac_dir
                   2646:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2647:     break
                   2648:   elif test -f "$ac_dir/shtool"; then
                   2649:     ac_aux_dir=$ac_dir
                   2650:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2651:     break
                   2652:   fi
1.14      bertrand 2653: done
1.15      bertrand 2654: if test -z "$ac_aux_dir"; then
1.36      bertrand 2655:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2656: fi
1.14      bertrand 2657: 
1.15      bertrand 2658: # These three variables are undocumented and unsupported,
                   2659: # and are intended to be withdrawn in a future Autoconf release.
                   2660: # They can cause serious problems if a builder's source tree is in a directory
                   2661: # whose full name contains unusual characters.
                   2662: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2663: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2664: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2665: 
                   2666: 
1.15      bertrand 2667: # Make sure we can run config.sub.
                   2668: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2669:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2670: 
1.15      bertrand 2671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2672: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2673: if ${ac_cv_build+:} false; then :
1.15      bertrand 2674:   $as_echo_n "(cached) " >&6
1.14      bertrand 2675: else
1.15      bertrand 2676:   ac_build_alias=$build_alias
                   2677: test "x$ac_build_alias" = x &&
                   2678:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2679: test "x$ac_build_alias" = x &&
1.36      bertrand 2680:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2681: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2682:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2683: 
                   2684: fi
1.15      bertrand 2685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2686: $as_echo "$ac_cv_build" >&6; }
                   2687: case $ac_cv_build in
                   2688: *-*-*) ;;
1.57      bertrand 2689: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2690: esac
                   2691: build=$ac_cv_build
                   2692: ac_save_IFS=$IFS; IFS='-'
                   2693: set x $ac_cv_build
                   2694: shift
                   2695: build_cpu=$1
                   2696: build_vendor=$2
                   2697: shift; shift
                   2698: # Remember, the first character of IFS is used to create $*,
                   2699: # except with old shells:
                   2700: build_os=$*
                   2701: IFS=$ac_save_IFS
                   2702: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2703: 
                   2704: 
1.15      bertrand 2705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2706: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2707: if ${ac_cv_host+:} false; then :
1.15      bertrand 2708:   $as_echo_n "(cached) " >&6
1.14      bertrand 2709: else
1.15      bertrand 2710:   if test "x$host_alias" = x; then
                   2711:   ac_cv_host=$ac_cv_build
1.14      bertrand 2712: else
1.15      bertrand 2713:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2714:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2715: fi
                   2716: 
                   2717: fi
1.15      bertrand 2718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2719: $as_echo "$ac_cv_host" >&6; }
                   2720: case $ac_cv_host in
                   2721: *-*-*) ;;
1.57      bertrand 2722: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2723: esac
                   2724: host=$ac_cv_host
                   2725: ac_save_IFS=$IFS; IFS='-'
                   2726: set x $ac_cv_host
                   2727: shift
                   2728: host_cpu=$1
                   2729: host_vendor=$2
                   2730: shift; shift
                   2731: # Remember, the first character of IFS is used to create $*,
                   2732: # except with old shells:
                   2733: host_os=$*
                   2734: IFS=$ac_save_IFS
                   2735: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2736: 
                   2737: 
1.15      bertrand 2738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2739: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2740: if ${ac_cv_target+:} false; then :
1.15      bertrand 2741:   $as_echo_n "(cached) " >&6
                   2742: else
                   2743:   if test "x$target_alias" = x; then
                   2744:   ac_cv_target=$ac_cv_host
1.14      bertrand 2745: else
1.15      bertrand 2746:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2747:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2748: fi
1.14      bertrand 2749: 
                   2750: fi
1.15      bertrand 2751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2752: $as_echo "$ac_cv_target" >&6; }
                   2753: case $ac_cv_target in
                   2754: *-*-*) ;;
1.57      bertrand 2755: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2756: esac
                   2757: target=$ac_cv_target
                   2758: ac_save_IFS=$IFS; IFS='-'
                   2759: set x $ac_cv_target
                   2760: shift
                   2761: target_cpu=$1
                   2762: target_vendor=$2
                   2763: shift; shift
                   2764: # Remember, the first character of IFS is used to create $*,
                   2765: # except with old shells:
                   2766: target_os=$*
                   2767: IFS=$ac_save_IFS
                   2768: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2769: 
1.14      bertrand 2770: 
1.15      bertrand 2771: # The aliases save the names the user supplied, while $host etc.
                   2772: # will get canonicalized.
                   2773: test -n "$target_alias" &&
                   2774:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2775:     NONENONEs,x,x, &&
                   2776:   program_prefix=${target_alias}-
1.1       bertrand 2777: 
1.15      bertrand 2778: am__api_version='1.11'
1.1       bertrand 2779: 
1.14      bertrand 2780: # Find a good install program.  We prefer a C program (faster),
                   2781: # so one script is as good as another.  But avoid the broken or
                   2782: # incompatible versions:
                   2783: # SysV /etc/install, /usr/sbin/install
                   2784: # SunOS /usr/etc/install
                   2785: # IRIX /sbin/install
                   2786: # AIX /bin/install
                   2787: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2788: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2789: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2790: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2791: # OS/2's system install, which has a completely different semantic
                   2792: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2793: # Reject install programs that cannot install multiple files.
                   2794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2795: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2796: if test -z "$INSTALL"; then
1.57      bertrand 2797: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2798:   $as_echo_n "(cached) " >&6
1.14      bertrand 2799: else
                   2800:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2801: for as_dir in $PATH
                   2802: do
                   2803:   IFS=$as_save_IFS
                   2804:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2805:     # Account for people who put trailing slashes in PATH elements.
                   2806: case $as_dir/ in #((
                   2807:   ./ | .// | /[cC]/* | \
1.14      bertrand 2808:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2809:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2810:   /usr/ucb/* ) ;;
                   2811:   *)
                   2812:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2813:     # Don't use installbsd from OSF since it installs stuff as root
                   2814:     # by default.
                   2815:     for ac_prog in ginstall scoinst install; do
                   2816:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2817:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2818:      if test $ac_prog = install &&
                   2819:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2820:        # AIX install.  It has an incompatible calling convention.
                   2821:        :
                   2822:      elif test $ac_prog = install &&
                   2823:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2824:        # program-specific install script used by HP pwplus--don't use.
                   2825:        :
                   2826:      else
1.15      bertrand 2827:        rm -rf conftest.one conftest.two conftest.dir
                   2828:        echo one > conftest.one
                   2829:        echo two > conftest.two
                   2830:        mkdir conftest.dir
                   2831:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2832:          test -s conftest.one && test -s conftest.two &&
                   2833:          test -s conftest.dir/conftest.one &&
                   2834:          test -s conftest.dir/conftest.two
                   2835:        then
                   2836:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2837:          break 3
                   2838:        fi
1.14      bertrand 2839:      fi
                   2840:    fi
                   2841:       done
                   2842:     done
                   2843:     ;;
                   2844: esac
1.15      bertrand 2845: 
                   2846:   done
1.14      bertrand 2847: IFS=$as_save_IFS
1.1       bertrand 2848: 
1.15      bertrand 2849: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2850: 
1.14      bertrand 2851: fi
                   2852:   if test "${ac_cv_path_install+set}" = set; then
                   2853:     INSTALL=$ac_cv_path_install
                   2854:   else
                   2855:     # As a last resort, use the slow shell script.  Don't cache a
                   2856:     # value for INSTALL within a source directory, because that will
                   2857:     # break other packages using the cache if that directory is
                   2858:     # removed, or if the value is a relative name.
                   2859:     INSTALL=$ac_install_sh
                   2860:   fi
                   2861: fi
1.15      bertrand 2862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2863: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2864: 
1.14      bertrand 2865: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2866: # It thinks the first close brace ends the variable substitution.
                   2867: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2868: 
1.14      bertrand 2869: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2870: 
1.14      bertrand 2871: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2872: 
1.15      bertrand 2873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2874: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2875: # Just in case
                   2876: sleep 1
                   2877: echo timestamp > conftest.file
                   2878: # Reject unsafe characters in $srcdir or the absolute working directory
                   2879: # name.  Accept space and tab only in the latter.
                   2880: am_lf='
                   2881: '
                   2882: case `pwd` in
                   2883:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2884:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2885: esac
                   2886: case $srcdir in
                   2887:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2888:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2889: esac
                   2890: 
                   2891: # Do `set' in a subshell so we don't clobber the current shell's
                   2892: # arguments.  Must try -L first in case configure is actually a
                   2893: # symlink; some systems play weird games with the mod time of symlinks
                   2894: # (eg FreeBSD returns the mod time of the symlink's containing
                   2895: # directory).
                   2896: if (
                   2897:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2898:    if test "$*" = "X"; then
                   2899:       # -L didn't work.
                   2900:       set X `ls -t "$srcdir/configure" conftest.file`
                   2901:    fi
                   2902:    rm -f conftest.file
                   2903:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2904:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2905: 
                   2906:       # If neither matched, then we have a broken ls.  This can happen
                   2907:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2908:       # broken ls alias from the environment.  This has actually
                   2909:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2910:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2911: alias in your environment" "$LINENO" 5
                   2912:    fi
                   2913: 
                   2914:    test "$2" = conftest.file
                   2915:    )
                   2916: then
                   2917:    # Ok.
                   2918:    :
1.14      bertrand 2919: else
1.36      bertrand 2920:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2921: Check your system clock" "$LINENO" 5
1.14      bertrand 2922: fi
1.15      bertrand 2923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2924: $as_echo "yes" >&6; }
                   2925: test "$program_prefix" != NONE &&
                   2926:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2927: # Use a double $ so make ignores it.
                   2928: test "$program_suffix" != NONE &&
                   2929:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2930: # Double any \ or $.
                   2931: # By default was `s,x,x', remove it if useless.
                   2932: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2933: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2934: 
                   2935: # expand $ac_aux_dir to an absolute path
                   2936: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2937: 
1.15      bertrand 2938: if test x"${MISSING+set}" != xset; then
                   2939:   case $am_aux_dir in
                   2940:   *\ * | *\    *)
                   2941:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2942:   *)
1.15      bertrand 2943:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2944:   esac
1.14      bertrand 2945: fi
1.15      bertrand 2946: # Use eval to expand $SHELL
                   2947: if eval "$MISSING --run true"; then
                   2948:   am_missing_run="$MISSING --run "
1.14      bertrand 2949: else
1.15      bertrand 2950:   am_missing_run=
                   2951:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2952: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2953: fi
                   2954: 
                   2955: if test x"${install_sh}" != xset; then
                   2956:   case $am_aux_dir in
                   2957:   *\ * | *\    *)
                   2958:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2959:   *)
                   2960:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2961:   esac
1.14      bertrand 2962: fi
1.15      bertrand 2963: 
                   2964: # Installed binaries are usually stripped using `strip' when the user
                   2965: # run `make install-strip'.  However `strip' might not be the right
                   2966: # tool to use in cross-compilation environments, therefore Automake
                   2967: # will honor the `STRIP' environment variable to overrule this program.
                   2968: if test "$cross_compiling" != no; then
                   2969:   if test -n "$ac_tool_prefix"; then
                   2970:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2971: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2973: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2974: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2975:   $as_echo_n "(cached) " >&6
1.14      bertrand 2976: else
1.15      bertrand 2977:   if test -n "$STRIP"; then
                   2978:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2979: else
                   2980: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2981: for as_dir in $PATH
                   2982: do
                   2983:   IFS=$as_save_IFS
                   2984:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2985:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2986:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2987:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2988:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2989:     break 2
                   2990:   fi
                   2991: done
1.15      bertrand 2992:   done
1.14      bertrand 2993: IFS=$as_save_IFS
1.1       bertrand 2994: 
1.14      bertrand 2995: fi
                   2996: fi
1.15      bertrand 2997: STRIP=$ac_cv_prog_STRIP
                   2998: if test -n "$STRIP"; then
                   2999:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   3000: $as_echo "$STRIP" >&6; }
1.14      bertrand 3001: else
1.15      bertrand 3002:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3003: $as_echo "no" >&6; }
1.14      bertrand 3004: fi
1.1       bertrand 3005: 
                   3006: 
1.14      bertrand 3007: fi
1.15      bertrand 3008: if test -z "$ac_cv_prog_STRIP"; then
                   3009:   ac_ct_STRIP=$STRIP
                   3010:   # Extract the first word of "strip", so it can be a program name with args.
                   3011: set dummy strip; ac_word=$2
                   3012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3013: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3014: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3015:   $as_echo_n "(cached) " >&6
1.14      bertrand 3016: else
1.15      bertrand 3017:   if test -n "$ac_ct_STRIP"; then
                   3018:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3019: else
1.14      bertrand 3020: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3021: for as_dir in $PATH
1.1       bertrand 3022: do
1.14      bertrand 3023:   IFS=$as_save_IFS
                   3024:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3025:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3026:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3027:     ac_cv_prog_ac_ct_STRIP="strip"
                   3028:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3029:     break 2
1.1       bertrand 3030:   fi
                   3031: done
1.15      bertrand 3032:   done
1.14      bertrand 3033: IFS=$as_save_IFS
1.1       bertrand 3034: 
1.14      bertrand 3035: fi
                   3036: fi
1.15      bertrand 3037: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3038: if test -n "$ac_ct_STRIP"; then
                   3039:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3040: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3041: else
1.15      bertrand 3042:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3043: $as_echo "no" >&6; }
1.1       bertrand 3044: fi
                   3045: 
1.15      bertrand 3046:   if test "x$ac_ct_STRIP" = x; then
                   3047:     STRIP=":"
1.14      bertrand 3048:   else
                   3049:     case $cross_compiling:$ac_tool_warned in
                   3050: yes:)
1.15      bertrand 3051: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3052: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3053: ac_tool_warned=yes ;;
                   3054: esac
1.15      bertrand 3055:     STRIP=$ac_ct_STRIP
1.1       bertrand 3056:   fi
1.14      bertrand 3057: else
1.15      bertrand 3058:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3059: fi
                   3060: 
1.15      bertrand 3061: fi
                   3062: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3063: 
1.15      bertrand 3064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3065: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3066: if test -z "$MKDIR_P"; then
1.57      bertrand 3067:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3068:   $as_echo_n "(cached) " >&6
1.14      bertrand 3069: else
1.15      bertrand 3070:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3071: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3072: do
                   3073:   IFS=$as_save_IFS
                   3074:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3075:     for ac_prog in mkdir gmkdir; do
                   3076:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3077:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3078:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3079:         'mkdir (GNU coreutils) '* | \
                   3080:         'mkdir (coreutils) '* | \
                   3081:         'mkdir (fileutils) '4.1*)
                   3082:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3083:           break 3;;
                   3084:       esac
                   3085:     done
                   3086:        done
                   3087:   done
1.14      bertrand 3088: IFS=$as_save_IFS
1.1       bertrand 3089: 
                   3090: fi
1.15      bertrand 3091: 
                   3092:   test -d ./--version && rmdir ./--version
                   3093:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3094:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3095:   else
                   3096:     # As a last resort, use the slow shell script.  Don't cache a
                   3097:     # value for MKDIR_P within a source directory, because that will
                   3098:     # break other packages using the cache if that directory is
                   3099:     # removed, or if the value is a relative name.
                   3100:     MKDIR_P="$ac_install_sh -d"
                   3101:   fi
1.14      bertrand 3102: fi
1.15      bertrand 3103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3104: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3105: 
1.15      bertrand 3106: mkdir_p="$MKDIR_P"
                   3107: case $mkdir_p in
                   3108:   [\\/$]* | ?:[\\/]*) ;;
                   3109:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3110: esac
1.1       bertrand 3111: 
1.15      bertrand 3112: for ac_prog in gawk mawk nawk awk
                   3113: do
                   3114:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3115: set dummy $ac_prog; ac_word=$2
                   3116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3117: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3118: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3119:   $as_echo_n "(cached) " >&6
1.1       bertrand 3120: else
1.15      bertrand 3121:   if test -n "$AWK"; then
                   3122:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3123: else
1.14      bertrand 3124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3125: for as_dir in $PATH
                   3126: do
                   3127:   IFS=$as_save_IFS
                   3128:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3129:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3130:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3131:     ac_cv_prog_AWK="$ac_prog"
                   3132:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3133:     break 2
                   3134:   fi
                   3135: done
1.15      bertrand 3136:   done
1.14      bertrand 3137: IFS=$as_save_IFS
                   3138: 
                   3139: fi
1.1       bertrand 3140: fi
1.15      bertrand 3141: AWK=$ac_cv_prog_AWK
                   3142: if test -n "$AWK"; then
                   3143:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3144: $as_echo "$AWK" >&6; }
1.14      bertrand 3145: else
1.15      bertrand 3146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3147: $as_echo "no" >&6; }
1.1       bertrand 3148: fi
                   3149: 
                   3150: 
1.15      bertrand 3151:   test -n "$AWK" && break
                   3152: done
1.1       bertrand 3153: 
1.15      bertrand 3154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3155: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3156: set x ${MAKE-make}
                   3157: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3158: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3159:   $as_echo_n "(cached) " >&6
1.14      bertrand 3160: else
1.15      bertrand 3161:   cat >conftest.make <<\_ACEOF
                   3162: SHELL = /bin/sh
                   3163: all:
                   3164:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3165: _ACEOF
1.36      bertrand 3166: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3167: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3168:   *@@@%%%=?*=@@@%%%*)
                   3169:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3170:   *)
                   3171:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3172: esac
                   3173: rm -f conftest.make
                   3174: fi
                   3175: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3176:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3177: $as_echo "yes" >&6; }
                   3178:   SET_MAKE=
1.1       bertrand 3179: else
1.15      bertrand 3180:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3181: $as_echo "no" >&6; }
                   3182:   SET_MAKE="MAKE=${MAKE-make}"
                   3183: fi
1.1       bertrand 3184: 
1.15      bertrand 3185: rm -rf .tst 2>/dev/null
                   3186: mkdir .tst 2>/dev/null
                   3187: if test -d .tst; then
                   3188:   am__leading_dot=.
                   3189: else
                   3190:   am__leading_dot=_
1.14      bertrand 3191: fi
1.15      bertrand 3192: rmdir .tst 2>/dev/null
                   3193: 
                   3194: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3195:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3196:   # is not polluted with repeated "-I."
                   3197:   am__isrc=' -I$(srcdir)'
                   3198:   # test to see if srcdir already configured
                   3199:   if test -f $srcdir/config.status; then
1.36      bertrand 3200:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3201:   fi
1.1       bertrand 3202: fi
1.15      bertrand 3203: 
                   3204: # test whether we have cygpath
                   3205: if test -z "$CYGPATH_W"; then
                   3206:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3207:     CYGPATH_W='cygpath -w'
                   3208:   else
                   3209:     CYGPATH_W=echo
                   3210:   fi
1.1       bertrand 3211: fi
                   3212: 
                   3213: 
1.15      bertrand 3214: # Define the identity of the package.
                   3215:  PACKAGE='rpl'
1.86      bertrand 3216:  VERSION='4.1.4'
1.15      bertrand 3217: 
                   3218: 
                   3219: cat >>confdefs.h <<_ACEOF
                   3220: #define PACKAGE "$PACKAGE"
                   3221: _ACEOF
                   3222: 
                   3223: 
                   3224: cat >>confdefs.h <<_ACEOF
                   3225: #define VERSION "$VERSION"
                   3226: _ACEOF
                   3227: 
                   3228: # Some tools Automake needs.
                   3229: 
                   3230: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3231: 
                   3232: 
                   3233: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3234: 
                   3235: 
                   3236: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3237: 
                   3238: 
                   3239: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3240: 
                   3241: 
                   3242: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3243: 
                   3244: # We need awk for the "check" target.  The system "awk" is bad on
                   3245: # some platforms.
                   3246: # Always define AMTAR for backward compatibility.
                   3247: 
                   3248: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3249: 
                   3250: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3251: 
                   3252: 
                   3253: 
                   3254: 
1.1       bertrand 3255: 
                   3256: 
1.15      bertrand 3257: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3258: 
                   3259: 
1.54      bertrand 3260: NCURSES=ncurses-5.9
1.50      bertrand 3261: READLINE=readline-6.2
1.30      bertrand 3262: UNITS=units-1.88
1.57      bertrand 3263: GSL=gsl-1.15
1.72      bertrand 3264: GPP=gpp-3.0
1.52      bertrand 3265: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3266: FILE=file-5.03
                   3267: ICONV=libiconv-1.13.1
1.87      bertrand 3268: SQLITE=sqlite-3.7.8
1.74      bertrand 3269: OPENSSL=openssl-1.0.0e
1.79      bertrand 3270: OPENMOTIF=openmotif-2.3.3
1.80      bertrand 3271: LIBXPM=libXpm-3.5.9
1.76      bertrand 3272: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3273: 
1.75      bertrand 3274: GMP=gmp-5.0.2
1.55      bertrand 3275: MPFR=mpfr-3.0.1
1.56      bertrand 3276: NTL=ntl-5.5.2
                   3277: COCOA=CoCoALib-0.9943
1.76      bertrand 3278: PARI=pari-2.5.0
1.67      bertrand 3279: GIAC=giac-0.9.3
1.55      bertrand 3280: 
1.15      bertrand 3281: ac_ext=c
                   3282: ac_cpp='$CPP $CPPFLAGS'
                   3283: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3284: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3285: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3286: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3287:   for ac_prog in gcc
1.15      bertrand 3288:   do
                   3289:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3290: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3292: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3293: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3294:   $as_echo_n "(cached) " >&6
1.1       bertrand 3295: else
1.15      bertrand 3296:   if test -n "$CC"; then
                   3297:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3298: else
                   3299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3300: for as_dir in $PATH
                   3301: do
                   3302:   IFS=$as_save_IFS
                   3303:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3304:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3305:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3306:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3307:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3308:     break 2
                   3309:   fi
                   3310: done
1.15      bertrand 3311:   done
1.1       bertrand 3312: IFS=$as_save_IFS
                   3313: 
                   3314: fi
                   3315: fi
1.15      bertrand 3316: CC=$ac_cv_prog_CC
                   3317: if test -n "$CC"; then
                   3318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3319: $as_echo "$CC" >&6; }
1.1       bertrand 3320: else
1.15      bertrand 3321:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3322: $as_echo "no" >&6; }
1.1       bertrand 3323: fi
                   3324: 
                   3325: 
1.15      bertrand 3326:     test -n "$CC" && break
                   3327:   done
                   3328: fi
                   3329: if test -z "$CC"; then
                   3330:   ac_ct_CC=$CC
1.23      bertrand 3331:   for ac_prog in gcc
1.15      bertrand 3332: do
                   3333:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3334: set dummy $ac_prog; ac_word=$2
                   3335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3336: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3337: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3338:   $as_echo_n "(cached) " >&6
1.1       bertrand 3339: else
1.15      bertrand 3340:   if test -n "$ac_ct_CC"; then
                   3341:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3342: else
                   3343: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3344: for as_dir in $PATH
                   3345: do
                   3346:   IFS=$as_save_IFS
                   3347:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3348:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3349:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3350:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3351:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3352:     break 2
                   3353:   fi
                   3354: done
1.15      bertrand 3355:   done
1.1       bertrand 3356: IFS=$as_save_IFS
                   3357: 
                   3358: fi
                   3359: fi
1.15      bertrand 3360: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3361: if test -n "$ac_ct_CC"; then
                   3362:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3363: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3364: else
1.15      bertrand 3365:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3366: $as_echo "no" >&6; }
1.1       bertrand 3367: fi
                   3368: 
                   3369: 
1.15      bertrand 3370:   test -n "$ac_ct_CC" && break
                   3371: done
1.1       bertrand 3372: 
1.15      bertrand 3373:   if test "x$ac_ct_CC" = x; then
                   3374:     CC=""
                   3375:   else
                   3376:     case $cross_compiling:$ac_tool_warned in
                   3377: yes:)
                   3378: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3379: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3380: ac_tool_warned=yes ;;
                   3381: esac
                   3382:     CC=$ac_ct_CC
1.1       bertrand 3383:   fi
                   3384: fi
                   3385: 
                   3386: 
1.15      bertrand 3387: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3388: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3389: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3390: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3391: 
1.15      bertrand 3392: # Provide some information about the compiler.
                   3393: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3394: set X $ac_compile
                   3395: ac_compiler=$2
                   3396: for ac_option in --version -v -V -qversion; do
                   3397:   { { ac_try="$ac_compiler $ac_option >&5"
                   3398: case "(($ac_try" in
                   3399:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3400:   *) ac_try_echo=$ac_try;;
                   3401: esac
                   3402: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3403: $as_echo "$ac_try_echo"; } >&5
                   3404:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3405:   ac_status=$?
                   3406:   if test -s conftest.err; then
                   3407:     sed '10a\
                   3408: ... rest of stderr output deleted ...
                   3409:          10q' conftest.err >conftest.er1
                   3410:     cat conftest.er1 >&5
1.1       bertrand 3411:   fi
1.15      bertrand 3412:   rm -f conftest.er1 conftest.err
                   3413:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3414:   test $ac_status = 0; }
1.1       bertrand 3415: done
                   3416: 
1.15      bertrand 3417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3418: /* end confdefs.h.  */
                   3419: 
                   3420: int
                   3421: main ()
                   3422: {
1.14      bertrand 3423: 
1.15      bertrand 3424:   ;
                   3425:   return 0;
                   3426: }
                   3427: _ACEOF
                   3428: ac_clean_files_save=$ac_clean_files
                   3429: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3430: # Try to create an executable without -o first, disregard a.out.
                   3431: # It will help us diagnose broken compilers, and finding out an intuition
                   3432: # of exeext.
                   3433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3434: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3435: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3436: 
1.15      bertrand 3437: # The possible output files:
                   3438: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3439: 
1.15      bertrand 3440: ac_rmfiles=
                   3441: for ac_file in $ac_files
1.1       bertrand 3442: do
1.15      bertrand 3443:   case $ac_file in
                   3444:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3445:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3446:   esac
1.1       bertrand 3447: done
1.15      bertrand 3448: rm -f $ac_rmfiles
                   3449: 
                   3450: if { { ac_try="$ac_link_default"
                   3451: case "(($ac_try" in
                   3452:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3453:   *) ac_try_echo=$ac_try;;
                   3454: esac
                   3455: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3456: $as_echo "$ac_try_echo"; } >&5
                   3457:   (eval "$ac_link_default") 2>&5
                   3458:   ac_status=$?
                   3459:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3460:   test $ac_status = 0; }; then :
                   3461:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3462: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3463: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3464: # so that the user can short-circuit this test for compilers unknown to
                   3465: # Autoconf.
                   3466: for ac_file in $ac_files ''
                   3467: do
                   3468:   test -f "$ac_file" || continue
                   3469:   case $ac_file in
                   3470:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3471:    ;;
                   3472:     [ab].out )
                   3473:    # We found the default executable, but exeext='' is most
                   3474:    # certainly right.
                   3475:    break;;
                   3476:     *.* )
                   3477:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3478:    then :; else
                   3479:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3480:    fi
                   3481:    # We set ac_cv_exeext here because the later test for it is not
                   3482:    # safe: cross compilers may not add the suffix if given an `-o'
                   3483:    # argument, so we may need to know it at that point already.
                   3484:    # Even if this section looks crufty: it has the advantage of
                   3485:    # actually working.
                   3486:    break;;
                   3487:     * )
                   3488:    break;;
                   3489:   esac
1.14      bertrand 3490: done
1.15      bertrand 3491: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3492: 
1.14      bertrand 3493: else
1.15      bertrand 3494:   ac_file=''
1.1       bertrand 3495: fi
1.15      bertrand 3496: if test -z "$ac_file"; then :
                   3497:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3498: $as_echo "no" >&6; }
                   3499: $as_echo "$as_me: failed program was:" >&5
                   3500: sed 's/^/| /' conftest.$ac_ext >&5
                   3501: 
                   3502: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3503: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3504: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3505: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3506: else
                   3507:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3508: $as_echo "yes" >&6; }
                   3509: fi
                   3510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3511: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3513: $as_echo "$ac_file" >&6; }
                   3514: ac_exeext=$ac_cv_exeext
1.1       bertrand 3515: 
1.15      bertrand 3516: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3517: ac_clean_files=$ac_clean_files_save
                   3518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3519: $as_echo_n "checking for suffix of executables... " >&6; }
                   3520: if { { ac_try="$ac_link"
                   3521: case "(($ac_try" in
                   3522:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3523:   *) ac_try_echo=$ac_try;;
                   3524: esac
                   3525: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3526: $as_echo "$ac_try_echo"; } >&5
                   3527:   (eval "$ac_link") 2>&5
                   3528:   ac_status=$?
                   3529:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3530:   test $ac_status = 0; }; then :
                   3531:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3532: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3533: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3534: # `rm'.
                   3535: for ac_file in conftest.exe conftest conftest.*; do
                   3536:   test -f "$ac_file" || continue
                   3537:   case $ac_file in
                   3538:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3539:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3540:      break;;
                   3541:     * ) break;;
                   3542:   esac
                   3543: done
1.14      bertrand 3544: else
1.15      bertrand 3545:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3546: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3547: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3548: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3549: fi
                   3550: rm -f conftest conftest$ac_cv_exeext
                   3551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3552: $as_echo "$ac_cv_exeext" >&6; }
                   3553: 
                   3554: rm -f conftest.$ac_ext
                   3555: EXEEXT=$ac_cv_exeext
                   3556: ac_exeext=$EXEEXT
                   3557: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3558: /* end confdefs.h.  */
1.15      bertrand 3559: #include <stdio.h>
1.14      bertrand 3560: int
                   3561: main ()
                   3562: {
1.15      bertrand 3563: FILE *f = fopen ("conftest.out", "w");
                   3564:  return ferror (f) || fclose (f) != 0;
                   3565: 
1.14      bertrand 3566:   ;
                   3567:   return 0;
                   3568: }
                   3569: _ACEOF
1.15      bertrand 3570: ac_clean_files="$ac_clean_files conftest.out"
                   3571: # Check that the compiler produces executables we can run.  If not, either
                   3572: # the compiler is broken, or we cross compile.
                   3573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3574: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3575: if test "$cross_compiling" != yes; then
                   3576:   { { ac_try="$ac_link"
1.1       bertrand 3577: case "(($ac_try" in
                   3578:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3579:   *) ac_try_echo=$ac_try;;
                   3580: esac
1.15      bertrand 3581: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3582: $as_echo "$ac_try_echo"; } >&5
                   3583:   (eval "$ac_link") 2>&5
                   3584:   ac_status=$?
                   3585:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3586:   test $ac_status = 0; }
                   3587:   if { ac_try='./conftest$ac_cv_exeext'
                   3588:   { { case "(($ac_try" in
                   3589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3590:   *) ac_try_echo=$ac_try;;
                   3591: esac
                   3592: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3593: $as_echo "$ac_try_echo"; } >&5
                   3594:   (eval "$ac_try") 2>&5
1.1       bertrand 3595:   ac_status=$?
1.15      bertrand 3596:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3597:   test $ac_status = 0; }; }; then
                   3598:     cross_compiling=no
                   3599:   else
                   3600:     if test "$cross_compiling" = maybe; then
                   3601:    cross_compiling=yes
                   3602:     else
                   3603:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3604: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3605: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3606: If you meant to cross compile, use \`--host'.
1.57      bertrand 3607: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3608:     fi
                   3609:   fi
1.14      bertrand 3610: fi
1.15      bertrand 3611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3612: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3613: 
1.15      bertrand 3614: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3615: ac_clean_files=$ac_clean_files_save
                   3616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3617: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3618: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3619:   $as_echo_n "(cached) " >&6
1.14      bertrand 3620: else
1.15      bertrand 3621:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3622: /* end confdefs.h.  */
                   3623: 
                   3624: int
                   3625: main ()
                   3626: {
1.15      bertrand 3627: 
1.1       bertrand 3628:   ;
                   3629:   return 0;
                   3630: }
                   3631: _ACEOF
1.15      bertrand 3632: rm -f conftest.o conftest.obj
                   3633: if { { ac_try="$ac_compile"
1.1       bertrand 3634: case "(($ac_try" in
                   3635:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3636:   *) ac_try_echo=$ac_try;;
                   3637: esac
1.15      bertrand 3638: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3639: $as_echo "$ac_try_echo"; } >&5
                   3640:   (eval "$ac_compile") 2>&5
1.1       bertrand 3641:   ac_status=$?
1.15      bertrand 3642:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3643:   test $ac_status = 0; }; then :
                   3644:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3645:   test -f "$ac_file" || continue;
                   3646:   case $ac_file in
                   3647:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3648:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3649:        break;;
                   3650:   esac
                   3651: done
1.14      bertrand 3652: else
1.15      bertrand 3653:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3654: sed 's/^/| /' conftest.$ac_ext >&5
                   3655: 
1.15      bertrand 3656: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3657: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3658: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3659: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3660: fi
1.15      bertrand 3661: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3662: fi
                   3663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3664: $as_echo "$ac_cv_objext" >&6; }
                   3665: OBJEXT=$ac_cv_objext
                   3666: ac_objext=$OBJEXT
                   3667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3668: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3669: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3670:   $as_echo_n "(cached) " >&6
                   3671: else
                   3672:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3673: /* end confdefs.h.  */
                   3674: 
                   3675: int
                   3676: main ()
                   3677: {
                   3678: #ifndef __GNUC__
                   3679:        choke me
                   3680: #endif
1.14      bertrand 3681: 
1.15      bertrand 3682:   ;
                   3683:   return 0;
                   3684: }
                   3685: _ACEOF
                   3686: if ac_fn_c_try_compile "$LINENO"; then :
                   3687:   ac_compiler_gnu=yes
1.14      bertrand 3688: else
1.15      bertrand 3689:   ac_compiler_gnu=no
1.14      bertrand 3690: fi
1.15      bertrand 3691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3692: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3693: 
1.15      bertrand 3694: fi
                   3695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3696: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3697: if test $ac_compiler_gnu = yes; then
                   3698:   GCC=yes
1.14      bertrand 3699: else
1.15      bertrand 3700:   GCC=
1.14      bertrand 3701: fi
1.15      bertrand 3702: ac_test_CFLAGS=${CFLAGS+set}
                   3703: ac_save_CFLAGS=$CFLAGS
                   3704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3705: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3706: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3707:   $as_echo_n "(cached) " >&6
                   3708: else
                   3709:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3710:    ac_c_werror_flag=yes
                   3711:    ac_cv_prog_cc_g=no
                   3712:    CFLAGS="-g"
                   3713:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3714: /* end confdefs.h.  */
1.14      bertrand 3715: 
1.15      bertrand 3716: int
                   3717: main ()
                   3718: {
1.14      bertrand 3719: 
1.15      bertrand 3720:   ;
                   3721:   return 0;
                   3722: }
                   3723: _ACEOF
                   3724: if ac_fn_c_try_compile "$LINENO"; then :
                   3725:   ac_cv_prog_cc_g=yes
                   3726: else
                   3727:   CFLAGS=""
                   3728:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3729: /* end confdefs.h.  */
1.14      bertrand 3730: 
1.15      bertrand 3731: int
                   3732: main ()
                   3733: {
1.14      bertrand 3734: 
1.15      bertrand 3735:   ;
                   3736:   return 0;
                   3737: }
                   3738: _ACEOF
                   3739: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3740: 
1.15      bertrand 3741: else
                   3742:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3743:     CFLAGS="-g"
                   3744:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3745: /* end confdefs.h.  */
1.14      bertrand 3746: 
1.15      bertrand 3747: int
                   3748: main ()
                   3749: {
1.14      bertrand 3750: 
1.15      bertrand 3751:   ;
                   3752:   return 0;
                   3753: }
                   3754: _ACEOF
                   3755: if ac_fn_c_try_compile "$LINENO"; then :
                   3756:   ac_cv_prog_cc_g=yes
                   3757: fi
                   3758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3759: fi
                   3760: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3761: fi
                   3762: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3763:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3764: fi
                   3765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3766: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3767: if test "$ac_test_CFLAGS" = set; then
                   3768:   CFLAGS=$ac_save_CFLAGS
                   3769: elif test $ac_cv_prog_cc_g = yes; then
                   3770:   if test "$GCC" = yes; then
                   3771:     CFLAGS="-g -O2"
                   3772:   else
                   3773:     CFLAGS="-g"
                   3774:   fi
                   3775: else
                   3776:   if test "$GCC" = yes; then
                   3777:     CFLAGS="-O2"
                   3778:   else
                   3779:     CFLAGS=
                   3780:   fi
                   3781: fi
                   3782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3783: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3784: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3785:   $as_echo_n "(cached) " >&6
1.1       bertrand 3786: else
1.15      bertrand 3787:   ac_cv_prog_cc_c89=no
                   3788: ac_save_CC=$CC
                   3789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3790: /* end confdefs.h.  */
1.15      bertrand 3791: #include <stdarg.h>
                   3792: #include <stdio.h>
                   3793: #include <sys/types.h>
                   3794: #include <sys/stat.h>
                   3795: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3796: struct buf { int x; };
                   3797: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3798: static char *e (p, i)
                   3799:      char **p;
                   3800:      int i;
                   3801: {
                   3802:   return p[i];
                   3803: }
                   3804: static char *f (char * (*g) (char **, int), char **p, ...)
                   3805: {
                   3806:   char *s;
                   3807:   va_list v;
                   3808:   va_start (v,p);
                   3809:   s = g (p, va_arg (v,int));
                   3810:   va_end (v);
                   3811:   return s;
                   3812: }
                   3813: 
                   3814: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3815:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3816:    These don't provoke an error unfortunately, instead are silently treated
                   3817:    as 'x'.  The following induces an error, until -std is added to get
                   3818:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3819:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3820:    that's true only with -std.  */
                   3821: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3822: 
1.15      bertrand 3823: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3824:    inside strings and character constants.  */
                   3825: #define FOO(x) 'x'
                   3826: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3827: 
1.15      bertrand 3828: int test (int i, double x);
                   3829: struct s1 {int (*f) (int a);};
                   3830: struct s2 {int (*f) (double a);};
                   3831: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3832: int argc;
                   3833: char **argv;
1.14      bertrand 3834: int
                   3835: main ()
                   3836: {
1.15      bertrand 3837: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3838:   ;
                   3839:   return 0;
                   3840: }
                   3841: _ACEOF
1.15      bertrand 3842: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3843:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3844: do
                   3845:   CC="$ac_save_CC $ac_arg"
                   3846:   if ac_fn_c_try_compile "$LINENO"; then :
                   3847:   ac_cv_prog_cc_c89=$ac_arg
                   3848: fi
                   3849: rm -f core conftest.err conftest.$ac_objext
                   3850:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3851: done
                   3852: rm -f conftest.$ac_ext
                   3853: CC=$ac_save_CC
                   3854: 
                   3855: fi
                   3856: # AC_CACHE_VAL
                   3857: case "x$ac_cv_prog_cc_c89" in
                   3858:   x)
                   3859:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3860: $as_echo "none needed" >&6; } ;;
                   3861:   xno)
                   3862:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3863: $as_echo "unsupported" >&6; } ;;
                   3864:   *)
                   3865:     CC="$CC $ac_cv_prog_cc_c89"
                   3866:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3867: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3868: esac
1.15      bertrand 3869: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3870: 
                   3871: fi
                   3872: 
1.15      bertrand 3873: ac_ext=c
                   3874: ac_cpp='$CPP $CPPFLAGS'
                   3875: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3876: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3877: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3878: DEPDIR="${am__leading_dot}deps"
                   3879: 
                   3880: ac_config_commands="$ac_config_commands depfiles"
                   3881: 
                   3882: 
                   3883: am_make=${MAKE-make}
                   3884: cat > confinc << 'END'
                   3885: am__doit:
                   3886:    @echo this is the am__doit target
                   3887: .PHONY: am__doit
                   3888: END
                   3889: # If we don't find an include directive, just comment out the code.
                   3890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3891: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3892: am__include="#"
                   3893: am__quote=
                   3894: _am_result=none
                   3895: # First try GNU make style include.
                   3896: echo "include confinc" > confmf
                   3897: # Ignore all kinds of additional output from `make'.
                   3898: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3899: *the\ am__doit\ target*)
                   3900:   am__include=include
                   3901:   am__quote=
                   3902:   _am_result=GNU
                   3903:   ;;
                   3904: esac
                   3905: # Now try BSD make style include.
                   3906: if test "$am__include" = "#"; then
                   3907:    echo '.include "confinc"' > confmf
                   3908:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3909:    *the\ am__doit\ target*)
                   3910:      am__include=.include
                   3911:      am__quote="\""
                   3912:      _am_result=BSD
                   3913:      ;;
                   3914:    esac
1.14      bertrand 3915: fi
                   3916: 
                   3917: 
1.15      bertrand 3918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3919: $as_echo "$_am_result" >&6; }
                   3920: rm -f confinc confmf
                   3921: 
                   3922: # Check whether --enable-dependency-tracking was given.
                   3923: if test "${enable_dependency_tracking+set}" = set; then :
                   3924:   enableval=$enable_dependency_tracking;
                   3925: fi
                   3926: 
                   3927: if test "x$enable_dependency_tracking" != xno; then
                   3928:   am_depcomp="$ac_aux_dir/depcomp"
                   3929:   AMDEPBACKSLASH='\'
                   3930: fi
                   3931:  if test "x$enable_dependency_tracking" != xno; then
                   3932:   AMDEP_TRUE=
                   3933:   AMDEP_FALSE='#'
1.1       bertrand 3934: else
1.15      bertrand 3935:   AMDEP_TRUE='#'
                   3936:   AMDEP_FALSE=
1.14      bertrand 3937: fi
1.1       bertrand 3938: 
1.14      bertrand 3939: 
                   3940: 
1.15      bertrand 3941: depcc="$CC"   am_compiler_list=
1.14      bertrand 3942: 
1.15      bertrand 3943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3944: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3945: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3946:   $as_echo_n "(cached) " >&6
1.14      bertrand 3947: else
1.15      bertrand 3948:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3949:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3950:   # making bogus files that we don't know about and never remove.  For
                   3951:   # instance it was reported that on HP-UX the gcc test will end up
                   3952:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3953:   # in D'.
                   3954:   mkdir conftest.dir
                   3955:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3956:   # using a relative directory.
                   3957:   cp "$am_depcomp" conftest.dir
                   3958:   cd conftest.dir
                   3959:   # We will build objects and dependencies in a subdirectory because
                   3960:   # it helps to detect inapplicable dependency modes.  For instance
                   3961:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3962:   # side effect of compilation, but ICC will put the dependencies in
                   3963:   # the current directory while Tru64 will put them in the object
                   3964:   # directory.
                   3965:   mkdir sub
1.14      bertrand 3966: 
1.15      bertrand 3967:   am_cv_CC_dependencies_compiler_type=none
                   3968:   if test "$am_compiler_list" = ""; then
                   3969:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3970:   fi
                   3971:   am__universal=false
                   3972:   case " $depcc " in #(
                   3973:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3974:      esac
1.14      bertrand 3975: 
1.15      bertrand 3976:   for depmode in $am_compiler_list; do
                   3977:     # Setup a source with many dependencies, because some compilers
                   3978:     # like to wrap large dependency lists on column 80 (with \), and
                   3979:     # we should not choose a depcomp mode which is confused by this.
                   3980:     #
                   3981:     # We need to recreate these files for each test, as the compiler may
                   3982:     # overwrite some of them when testing with obscure command lines.
                   3983:     # This happens at least with the AIX C compiler.
                   3984:     : > sub/conftest.c
                   3985:     for i in 1 2 3 4 5 6; do
                   3986:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3987:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3988:       # Solaris 8's {/usr,}/bin/sh.
                   3989:       touch sub/conftst$i.h
                   3990:     done
                   3991:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3992: 
1.15      bertrand 3993:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3994:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3995:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3996:     # versions had trouble with output in subdirs
                   3997:     am__obj=sub/conftest.${OBJEXT-o}
                   3998:     am__minus_obj="-o $am__obj"
                   3999:     case $depmode in
                   4000:     gcc)
                   4001:       # This depmode causes a compiler race in universal mode.
                   4002:       test "$am__universal" = false || continue
                   4003:       ;;
                   4004:     nosideeffect)
                   4005:       # after this tag, mechanisms are not by side-effect, so they'll
                   4006:       # only be used when explicitly requested
                   4007:       if test "x$enable_dependency_tracking" = xyes; then
                   4008:    continue
                   4009:       else
                   4010:    break
                   4011:       fi
                   4012:       ;;
                   4013:     msvisualcpp | msvcmsys)
                   4014:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4015:       # not run yet.  These depmodes are late enough in the game, and
                   4016:       # so weak that their functioning should not be impacted.
                   4017:       am__obj=conftest.${OBJEXT-o}
                   4018:       am__minus_obj=
                   4019:       ;;
                   4020:     none) break ;;
                   4021:     esac
                   4022:     if depmode=$depmode \
                   4023:        source=sub/conftest.c object=$am__obj \
                   4024:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4025:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4026:          >/dev/null 2>conftest.err &&
                   4027:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4028:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4029:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4030:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4031:       # icc doesn't choke on unknown options, it will just issue warnings
                   4032:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4033:       # that says an option was ignored or not supported.
                   4034:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4035:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4036:       # The diagnosis changed in icc 8.0:
                   4037:       #   icc: Command line remark: option '-MP' not supported
                   4038:       if (grep 'ignoring option' conftest.err ||
                   4039:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4040:         am_cv_CC_dependencies_compiler_type=$depmode
                   4041:         break
                   4042:       fi
                   4043:     fi
                   4044:   done
1.14      bertrand 4045: 
1.15      bertrand 4046:   cd ..
                   4047:   rm -rf conftest.dir
1.14      bertrand 4048: else
1.15      bertrand 4049:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4050: fi
                   4051: 
1.15      bertrand 4052: fi
                   4053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4054: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4055: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4056: 
1.15      bertrand 4057:  if
                   4058:   test "x$enable_dependency_tracking" != xno \
                   4059:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4060:   am__fastdepCC_TRUE=
                   4061:   am__fastdepCC_FALSE='#'
1.1       bertrand 4062: else
1.15      bertrand 4063:   am__fastdepCC_TRUE='#'
                   4064:   am__fastdepCC_FALSE=
                   4065: fi
                   4066: 
1.1       bertrand 4067: 
                   4068: 
1.30      bertrand 4069: EXT_SQL=
                   4070: 
1.15      bertrand 4071: if test x"$CC" != x""; then
                   4072:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4073:            awk -F. '{ printf("%s", $1);}'`
                   4074:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4075:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4076:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4077:        OPTIMISATION_C=-O3
                   4078:    else
1.23      bertrand 4079:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4080:                then
1.15      bertrand 4081:            OPTIMISATION_C=-O3
                   4082:        else
1.23      bertrand 4083:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4084:                OPTIMISATION_C=-O2
                   4085:            else
1.36      bertrand 4086:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4087:            fi
1.15      bertrand 4088:        fi
                   4089:    fi
1.14      bertrand 4090: fi
                   4091: 
1.15      bertrand 4092: if test "x$CC" != xcc; then
                   4093:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4094: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4095: else
1.15      bertrand 4096:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4097: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4098: fi
1.15      bertrand 4099: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4100:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4101: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4102:   $as_echo_n "(cached) " >&6
1.1       bertrand 4103: else
1.15      bertrand 4104:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4105: /* end confdefs.h.  */
                   4106: 
                   4107: int
                   4108: main ()
                   4109: {
1.15      bertrand 4110: 
1.1       bertrand 4111:   ;
                   4112:   return 0;
                   4113: }
                   4114: _ACEOF
1.15      bertrand 4115: # Make sure it works both with $CC and with simple cc.
                   4116: # We do the test twice because some compilers refuse to overwrite an
                   4117: # existing .o file with -o, though they will create one.
                   4118: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4119: rm -f conftest2.*
                   4120: if { { case "(($ac_try" in
                   4121:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4122:   *) ac_try_echo=$ac_try;;
                   4123: esac
                   4124: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4125: $as_echo "$ac_try_echo"; } >&5
                   4126:   (eval "$ac_try") 2>&5
                   4127:   ac_status=$?
                   4128:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4129:   test $ac_status = 0; } &&
                   4130:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4131:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4132:   *) ac_try_echo=$ac_try;;
                   4133: esac
                   4134: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4135: $as_echo "$ac_try_echo"; } >&5
                   4136:   (eval "$ac_try") 2>&5
                   4137:   ac_status=$?
                   4138:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4139:   test $ac_status = 0; };
                   4140: then
                   4141:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4142:   if test "x$CC" != xcc; then
                   4143:     # Test first that cc exists at all.
                   4144:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4145:   { { case "(($ac_try" in
                   4146:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4147:   *) ac_try_echo=$ac_try;;
                   4148: esac
                   4149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4150: $as_echo "$ac_try_echo"; } >&5
                   4151:   (eval "$ac_try") 2>&5
                   4152:   ac_status=$?
                   4153:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4154:   test $ac_status = 0; }; }; then
                   4155:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4156:       rm -f conftest2.*
                   4157:       if { { case "(($ac_try" in
                   4158:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4159:   *) ac_try_echo=$ac_try;;
                   4160: esac
                   4161: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4162: $as_echo "$ac_try_echo"; } >&5
                   4163:   (eval "$ac_try") 2>&5
                   4164:   ac_status=$?
                   4165:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4166:   test $ac_status = 0; } &&
                   4167:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4168:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4169:   *) ac_try_echo=$ac_try;;
                   4170: esac
1.15      bertrand 4171: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4172: $as_echo "$ac_try_echo"; } >&5
                   4173:   (eval "$ac_try") 2>&5
1.14      bertrand 4174:   ac_status=$?
1.15      bertrand 4175:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4176:   test $ac_status = 0; };
                   4177:       then
                   4178:    # cc works too.
                   4179:    :
                   4180:       else
                   4181:    # cc exists but doesn't like -o.
                   4182:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4183:       fi
                   4184:     fi
                   4185:   fi
1.1       bertrand 4186: else
1.15      bertrand 4187:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4188: fi
                   4189: rm -f core conftest*
1.14      bertrand 4190: 
1.1       bertrand 4191: fi
1.15      bertrand 4192: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4193:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4194: $as_echo "yes" >&6; }
                   4195: else
                   4196:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4197: $as_echo "no" >&6; }
                   4198: 
                   4199: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4200: 
                   4201: fi
1.15      bertrand 4202: 
                   4203: # FIXME: we rely on the cache variable name because
                   4204: # there is no other way.
                   4205: set dummy $CC
                   4206: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4207: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4208: if test "$am_t" != yes; then
                   4209:    # Losing compiler, so override with the script.
                   4210:    # FIXME: It is wrong to rewrite CC.
                   4211:    # But if we don't then we get into trouble of one sort or another.
                   4212:    # A longer-term fix would be to have automake use am__CC in this case,
                   4213:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4214:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4215: fi
1.14      bertrand 4216: 
                   4217: 
1.15      bertrand 4218: 
                   4219: if test "$GCC" != yes; then
1.36      bertrand 4220:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4221: fi
                   4222: 
                   4223: ac_ext=cpp
                   4224: ac_cpp='$CXXCPP $CPPFLAGS'
                   4225: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4226: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4227: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4228: if test -z "$CXX"; then
                   4229:   if test -n "$CCC"; then
                   4230:     CXX=$CCC
                   4231:   else
                   4232:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4233:   for ac_prog in g++
1.15      bertrand 4234:   do
                   4235:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4236: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4238: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4239: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4240:   $as_echo_n "(cached) " >&6
1.1       bertrand 4241: else
1.15      bertrand 4242:   if test -n "$CXX"; then
                   4243:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4244: else
1.15      bertrand 4245: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4246: for as_dir in $PATH
                   4247: do
                   4248:   IFS=$as_save_IFS
                   4249:   test -z "$as_dir" && as_dir=.
                   4250:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4251:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4252:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4253:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4254:     break 2
                   4255:   fi
                   4256: done
                   4257:   done
                   4258: IFS=$as_save_IFS
1.14      bertrand 4259: 
                   4260: fi
                   4261: fi
1.15      bertrand 4262: CXX=$ac_cv_prog_CXX
                   4263: if test -n "$CXX"; then
                   4264:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4265: $as_echo "$CXX" >&6; }
1.14      bertrand 4266: else
1.15      bertrand 4267:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4268: $as_echo "no" >&6; }
1.14      bertrand 4269: fi
                   4270: 
                   4271: 
1.15      bertrand 4272:     test -n "$CXX" && break
                   4273:   done
                   4274: fi
                   4275: if test -z "$CXX"; then
                   4276:   ac_ct_CXX=$CXX
1.23      bertrand 4277:   for ac_prog in g++
1.15      bertrand 4278: do
                   4279:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4280: set dummy $ac_prog; ac_word=$2
                   4281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4282: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4283: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4284:   $as_echo_n "(cached) " >&6
                   4285: else
                   4286:   if test -n "$ac_ct_CXX"; then
                   4287:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4288: else
                   4289: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4290: for as_dir in $PATH
                   4291: do
                   4292:   IFS=$as_save_IFS
                   4293:   test -z "$as_dir" && as_dir=.
                   4294:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4295:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4296:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4297:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4298:     break 2
                   4299:   fi
                   4300: done
                   4301:   done
                   4302: IFS=$as_save_IFS
1.14      bertrand 4303: 
1.15      bertrand 4304: fi
                   4305: fi
                   4306: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4307: if test -n "$ac_ct_CXX"; then
                   4308:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4309: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4310: else
1.15      bertrand 4311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4312: $as_echo "no" >&6; }
1.14      bertrand 4313: fi
                   4314: 
                   4315: 
1.15      bertrand 4316:   test -n "$ac_ct_CXX" && break
                   4317: done
1.14      bertrand 4318: 
1.15      bertrand 4319:   if test "x$ac_ct_CXX" = x; then
                   4320:     CXX="g++"
                   4321:   else
                   4322:     case $cross_compiling:$ac_tool_warned in
                   4323: yes:)
                   4324: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4325: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4326: ac_tool_warned=yes ;;
                   4327: esac
                   4328:     CXX=$ac_ct_CXX
                   4329:   fi
                   4330: fi
1.1       bertrand 4331: 
1.15      bertrand 4332:   fi
                   4333: fi
                   4334: # Provide some information about the compiler.
                   4335: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4336: set X $ac_compile
                   4337: ac_compiler=$2
                   4338: for ac_option in --version -v -V -qversion; do
                   4339:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4340: case "(($ac_try" in
                   4341:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4342:   *) ac_try_echo=$ac_try;;
                   4343: esac
1.15      bertrand 4344: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4345: $as_echo "$ac_try_echo"; } >&5
                   4346:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4347:   ac_status=$?
1.15      bertrand 4348:   if test -s conftest.err; then
                   4349:     sed '10a\
                   4350: ... rest of stderr output deleted ...
                   4351:          10q' conftest.err >conftest.er1
                   4352:     cat conftest.er1 >&5
                   4353:   fi
                   4354:   rm -f conftest.er1 conftest.err
                   4355:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4356:   test $ac_status = 0; }
                   4357: done
                   4358: 
                   4359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4360: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4361: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4362:   $as_echo_n "(cached) " >&6
1.14      bertrand 4363: else
1.15      bertrand 4364:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4365: /* end confdefs.h.  */
1.1       bertrand 4366: 
                   4367: int
                   4368: main ()
                   4369: {
1.15      bertrand 4370: #ifndef __GNUC__
                   4371:        choke me
                   4372: #endif
1.1       bertrand 4373: 
                   4374:   ;
                   4375:   return 0;
                   4376: }
                   4377: _ACEOF
1.15      bertrand 4378: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4379:   ac_compiler_gnu=yes
1.1       bertrand 4380: else
1.15      bertrand 4381:   ac_compiler_gnu=no
1.1       bertrand 4382: fi
1.14      bertrand 4383: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4384: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4385: 
1.15      bertrand 4386: fi
                   4387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4388: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4389: if test $ac_compiler_gnu = yes; then
                   4390:   GXX=yes
                   4391: else
                   4392:   GXX=
                   4393: fi
                   4394: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4395: ac_save_CXXFLAGS=$CXXFLAGS
                   4396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4397: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4398: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4399:   $as_echo_n "(cached) " >&6
                   4400: else
                   4401:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4402:    ac_cxx_werror_flag=yes
                   4403:    ac_cv_prog_cxx_g=no
                   4404:    CXXFLAGS="-g"
                   4405:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4406: /* end confdefs.h.  */
1.15      bertrand 4407: 
1.1       bertrand 4408: int
                   4409: main ()
                   4410: {
1.14      bertrand 4411: 
1.1       bertrand 4412:   ;
                   4413:   return 0;
                   4414: }
                   4415: _ACEOF
1.15      bertrand 4416: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4417:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4418: else
1.15      bertrand 4419:   CXXFLAGS=""
                   4420:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4421: /* end confdefs.h.  */
1.1       bertrand 4422: 
1.14      bertrand 4423: int
                   4424: main ()
                   4425: {
1.1       bertrand 4426: 
1.14      bertrand 4427:   ;
                   4428:   return 0;
                   4429: }
                   4430: _ACEOF
1.15      bertrand 4431: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4432: 
                   4433: else
1.15      bertrand 4434:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4435:     CXXFLAGS="-g"
                   4436:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4437: /* end confdefs.h.  */
1.1       bertrand 4438: 
1.14      bertrand 4439: int
                   4440: main ()
                   4441: {
1.1       bertrand 4442: 
1.14      bertrand 4443:   ;
                   4444:   return 0;
                   4445: }
                   4446: _ACEOF
1.15      bertrand 4447: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4448:   ac_cv_prog_cxx_g=yes
                   4449: fi
                   4450: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4451: fi
                   4452: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4453: fi
                   4454: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4455:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4456: fi
                   4457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4458: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4459: if test "$ac_test_CXXFLAGS" = set; then
                   4460:   CXXFLAGS=$ac_save_CXXFLAGS
                   4461: elif test $ac_cv_prog_cxx_g = yes; then
                   4462:   if test "$GXX" = yes; then
                   4463:     CXXFLAGS="-g -O2"
                   4464:   else
                   4465:     CXXFLAGS="-g"
                   4466:   fi
                   4467: else
                   4468:   if test "$GXX" = yes; then
                   4469:     CXXFLAGS="-O2"
                   4470:   else
                   4471:     CXXFLAGS=
                   4472:   fi
                   4473: fi
                   4474: ac_ext=c
                   4475: ac_cpp='$CPP $CPPFLAGS'
                   4476: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4477: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4478: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4479: 
                   4480: depcc="$CXX"  am_compiler_list=
                   4481: 
                   4482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4483: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4484: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4485:   $as_echo_n "(cached) " >&6
                   4486: else
                   4487:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4488:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4489:   # making bogus files that we don't know about and never remove.  For
                   4490:   # instance it was reported that on HP-UX the gcc test will end up
                   4491:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4492:   # in D'.
                   4493:   mkdir conftest.dir
                   4494:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4495:   # using a relative directory.
                   4496:   cp "$am_depcomp" conftest.dir
                   4497:   cd conftest.dir
                   4498:   # We will build objects and dependencies in a subdirectory because
                   4499:   # it helps to detect inapplicable dependency modes.  For instance
                   4500:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4501:   # side effect of compilation, but ICC will put the dependencies in
                   4502:   # the current directory while Tru64 will put them in the object
                   4503:   # directory.
                   4504:   mkdir sub
                   4505: 
                   4506:   am_cv_CXX_dependencies_compiler_type=none
                   4507:   if test "$am_compiler_list" = ""; then
                   4508:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4509:   fi
                   4510:   am__universal=false
                   4511:   case " $depcc " in #(
                   4512:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4513:      esac
                   4514: 
                   4515:   for depmode in $am_compiler_list; do
                   4516:     # Setup a source with many dependencies, because some compilers
                   4517:     # like to wrap large dependency lists on column 80 (with \), and
                   4518:     # we should not choose a depcomp mode which is confused by this.
                   4519:     #
                   4520:     # We need to recreate these files for each test, as the compiler may
                   4521:     # overwrite some of them when testing with obscure command lines.
                   4522:     # This happens at least with the AIX C compiler.
                   4523:     : > sub/conftest.c
                   4524:     for i in 1 2 3 4 5 6; do
                   4525:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4526:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4527:       # Solaris 8's {/usr,}/bin/sh.
                   4528:       touch sub/conftst$i.h
                   4529:     done
                   4530:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4531: 
                   4532:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4533:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4534:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4535:     # versions had trouble with output in subdirs
                   4536:     am__obj=sub/conftest.${OBJEXT-o}
                   4537:     am__minus_obj="-o $am__obj"
                   4538:     case $depmode in
                   4539:     gcc)
                   4540:       # This depmode causes a compiler race in universal mode.
                   4541:       test "$am__universal" = false || continue
                   4542:       ;;
                   4543:     nosideeffect)
                   4544:       # after this tag, mechanisms are not by side-effect, so they'll
                   4545:       # only be used when explicitly requested
                   4546:       if test "x$enable_dependency_tracking" = xyes; then
                   4547:    continue
                   4548:       else
                   4549:    break
                   4550:       fi
                   4551:       ;;
                   4552:     msvisualcpp | msvcmsys)
                   4553:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4554:       # not run yet.  These depmodes are late enough in the game, and
                   4555:       # so weak that their functioning should not be impacted.
                   4556:       am__obj=conftest.${OBJEXT-o}
                   4557:       am__minus_obj=
                   4558:       ;;
                   4559:     none) break ;;
                   4560:     esac
                   4561:     if depmode=$depmode \
                   4562:        source=sub/conftest.c object=$am__obj \
                   4563:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4564:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4565:          >/dev/null 2>conftest.err &&
                   4566:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4567:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4568:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4569:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4570:       # icc doesn't choke on unknown options, it will just issue warnings
                   4571:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4572:       # that says an option was ignored or not supported.
                   4573:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4574:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4575:       # The diagnosis changed in icc 8.0:
                   4576:       #   icc: Command line remark: option '-MP' not supported
                   4577:       if (grep 'ignoring option' conftest.err ||
                   4578:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4579:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4580:         break
                   4581:       fi
                   4582:     fi
                   4583:   done
                   4584: 
                   4585:   cd ..
                   4586:   rm -rf conftest.dir
                   4587: else
                   4588:   am_cv_CXX_dependencies_compiler_type=none
                   4589: fi
                   4590: 
                   4591: fi
                   4592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4593: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4594: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4595: 
                   4596:  if
                   4597:   test "x$enable_dependency_tracking" != xno \
                   4598:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4599:   am__fastdepCXX_TRUE=
                   4600:   am__fastdepCXX_FALSE='#'
                   4601: else
                   4602:   am__fastdepCXX_TRUE='#'
                   4603:   am__fastdepCXX_FALSE=
                   4604: fi
                   4605: 
                   4606: 
                   4607: 
1.87      bertrand 4608: if test "$GXX" != yes; then
1.36      bertrand 4609:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4610: fi
                   4611: 
1.69      bertrand 4612: if test x"$CXX" != x""; then
                   4613:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4614:            awk -F. '{ printf("%s", $1);}'`
                   4615:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4616:            awk -F. '{ printf("%s", $2);}'`
                   4617:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4618:        OPTIMISATION_GXX=-O3
                   4619:    else
                   4620:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4621:            OPTIMISATION_GXX=-O3
                   4622:        else
                   4623:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4624:                OPTIMISATION_GXX=-O2
                   4625:            else
                   4626:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4627:            fi
                   4628:        fi
                   4629:    fi
                   4630: fi
                   4631: 
1.15      bertrand 4632: ac_ext=f
                   4633: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4634: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4635: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4636: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4637:   for ac_prog in gfortran
1.15      bertrand 4638:   do
                   4639:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4640: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4642: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4643: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4644:   $as_echo_n "(cached) " >&6
                   4645: else
                   4646:   if test -n "$F77"; then
                   4647:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4648: else
                   4649: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4650: for as_dir in $PATH
                   4651: do
                   4652:   IFS=$as_save_IFS
                   4653:   test -z "$as_dir" && as_dir=.
                   4654:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4655:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4656:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4657:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4658:     break 2
                   4659:   fi
                   4660: done
                   4661:   done
                   4662: IFS=$as_save_IFS
                   4663: 
                   4664: fi
                   4665: fi
                   4666: F77=$ac_cv_prog_F77
                   4667: if test -n "$F77"; then
                   4668:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4669: $as_echo "$F77" >&6; }
                   4670: else
                   4671:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4672: $as_echo "no" >&6; }
                   4673: fi
                   4674: 
                   4675: 
                   4676:     test -n "$F77" && break
                   4677:   done
                   4678: fi
                   4679: if test -z "$F77"; then
                   4680:   ac_ct_F77=$F77
1.23      bertrand 4681:   for ac_prog in gfortran
1.15      bertrand 4682: do
                   4683:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4684: set dummy $ac_prog; ac_word=$2
                   4685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4686: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4687: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4688:   $as_echo_n "(cached) " >&6
                   4689: else
                   4690:   if test -n "$ac_ct_F77"; then
                   4691:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4692: else
                   4693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4694: for as_dir in $PATH
                   4695: do
                   4696:   IFS=$as_save_IFS
                   4697:   test -z "$as_dir" && as_dir=.
                   4698:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4699:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4700:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4701:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4702:     break 2
                   4703:   fi
                   4704: done
                   4705:   done
                   4706: IFS=$as_save_IFS
                   4707: 
                   4708: fi
                   4709: fi
                   4710: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4711: if test -n "$ac_ct_F77"; then
                   4712:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4713: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4714: else
1.15      bertrand 4715:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4716: $as_echo "no" >&6; }
                   4717: fi
                   4718: 
                   4719: 
                   4720:   test -n "$ac_ct_F77" && break
                   4721: done
1.1       bertrand 4722: 
1.15      bertrand 4723:   if test "x$ac_ct_F77" = x; then
                   4724:     F77=""
                   4725:   else
                   4726:     case $cross_compiling:$ac_tool_warned in
                   4727: yes:)
                   4728: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4729: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4730: ac_tool_warned=yes ;;
                   4731: esac
                   4732:     F77=$ac_ct_F77
                   4733:   fi
1.14      bertrand 4734: fi
1.1       bertrand 4735: 
                   4736: 
1.15      bertrand 4737: # Provide some information about the compiler.
                   4738: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4739: set X $ac_compile
                   4740: ac_compiler=$2
                   4741: for ac_option in --version -v -V -qversion; do
                   4742:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4743: case "(($ac_try" in
                   4744:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4745:   *) ac_try_echo=$ac_try;;
                   4746: esac
1.15      bertrand 4747: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4748: $as_echo "$ac_try_echo"; } >&5
                   4749:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4750:   ac_status=$?
1.15      bertrand 4751:   if test -s conftest.err; then
                   4752:     sed '10a\
                   4753: ... rest of stderr output deleted ...
                   4754:          10q' conftest.err >conftest.er1
                   4755:     cat conftest.er1 >&5
                   4756:   fi
                   4757:   rm -f conftest.er1 conftest.err
                   4758:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4759:   test $ac_status = 0; }
                   4760: done
                   4761: rm -f a.out
                   4762: 
                   4763: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4764: # input file.  (Note that this only needs to work for GNU compilers.)
                   4765: ac_save_ext=$ac_ext
                   4766: ac_ext=F
                   4767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4768: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4769: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4770:   $as_echo_n "(cached) " >&6
1.1       bertrand 4771: else
1.15      bertrand 4772:   cat > conftest.$ac_ext <<_ACEOF
                   4773:       program main
                   4774: #ifndef __GNUC__
                   4775:        choke me
                   4776: #endif
1.14      bertrand 4777: 
1.15      bertrand 4778:       end
                   4779: _ACEOF
                   4780: if ac_fn_f77_try_compile "$LINENO"; then :
                   4781:   ac_compiler_gnu=yes
                   4782: else
                   4783:   ac_compiler_gnu=no
1.1       bertrand 4784: fi
1.15      bertrand 4785: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4786: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4787: 
                   4788: fi
1.15      bertrand 4789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4790: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4791: ac_ext=$ac_save_ext
                   4792: ac_test_FFLAGS=${FFLAGS+set}
                   4793: ac_save_FFLAGS=$FFLAGS
                   4794: FFLAGS=
                   4795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4796: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4797: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4798:   $as_echo_n "(cached) " >&6
                   4799: else
                   4800:   FFLAGS=-g
                   4801: cat > conftest.$ac_ext <<_ACEOF
                   4802:       program main
1.1       bertrand 4803: 
1.15      bertrand 4804:       end
1.14      bertrand 4805: _ACEOF
1.15      bertrand 4806: if ac_fn_f77_try_compile "$LINENO"; then :
                   4807:   ac_cv_prog_f77_g=yes
1.1       bertrand 4808: else
1.15      bertrand 4809:   ac_cv_prog_f77_g=no
1.1       bertrand 4810: fi
1.15      bertrand 4811: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4812: 
                   4813: fi
1.15      bertrand 4814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4815: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4816: if test "$ac_test_FFLAGS" = set; then
                   4817:   FFLAGS=$ac_save_FFLAGS
                   4818: elif test $ac_cv_prog_f77_g = yes; then
                   4819:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4820:     FFLAGS="-g -O2"
                   4821:   else
                   4822:     FFLAGS="-g"
                   4823:   fi
                   4824: else
                   4825:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4826:     FFLAGS="-O2"
                   4827:   else
                   4828:     FFLAGS=
                   4829:   fi
1.1       bertrand 4830: fi
                   4831: 
1.15      bertrand 4832: if test $ac_compiler_gnu = yes; then
                   4833:   G77=yes
1.1       bertrand 4834: else
1.15      bertrand 4835:   G77=
1.1       bertrand 4836: fi
1.15      bertrand 4837: ac_ext=c
                   4838: ac_cpp='$CPP $CPPFLAGS'
                   4839: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4840: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4841: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4842: 
                   4843: 
1.15      bertrand 4844: ac_ext=${ac_fc_srcext-f}
                   4845: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4846: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4847: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4848: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4849:   for ac_prog in gfortran
1.15      bertrand 4850:   do
                   4851:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4852: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4854: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4855: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4856:   $as_echo_n "(cached) " >&6
                   4857: else
                   4858:   if test -n "$FC"; then
                   4859:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4860: else
1.15      bertrand 4861: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4862: for as_dir in $PATH
                   4863: do
                   4864:   IFS=$as_save_IFS
                   4865:   test -z "$as_dir" && as_dir=.
                   4866:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4867:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4868:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4869:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4870:     break 2
                   4871:   fi
                   4872: done
                   4873:   done
                   4874: IFS=$as_save_IFS
1.1       bertrand 4875: 
                   4876: fi
1.15      bertrand 4877: fi
                   4878: FC=$ac_cv_prog_FC
                   4879: if test -n "$FC"; then
                   4880:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4881: $as_echo "$FC" >&6; }
1.14      bertrand 4882: else
1.15      bertrand 4883:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4884: $as_echo "no" >&6; }
1.14      bertrand 4885: fi
                   4886: 
1.1       bertrand 4887: 
1.15      bertrand 4888:     test -n "$FC" && break
                   4889:   done
                   4890: fi
                   4891: if test -z "$FC"; then
                   4892:   ac_ct_FC=$FC
1.23      bertrand 4893:   for ac_prog in gfortran
1.15      bertrand 4894: do
                   4895:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4896: set dummy $ac_prog; ac_word=$2
                   4897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4898: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4899: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4900:   $as_echo_n "(cached) " >&6
                   4901: else
                   4902:   if test -n "$ac_ct_FC"; then
                   4903:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4904: else
                   4905: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4906: for as_dir in $PATH
                   4907: do
                   4908:   IFS=$as_save_IFS
                   4909:   test -z "$as_dir" && as_dir=.
                   4910:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4911:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4912:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4913:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4914:     break 2
                   4915:   fi
                   4916: done
                   4917:   done
                   4918: IFS=$as_save_IFS
1.1       bertrand 4919: 
1.15      bertrand 4920: fi
                   4921: fi
                   4922: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4923: if test -n "$ac_ct_FC"; then
                   4924:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4925: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4926: else
1.15      bertrand 4927:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4928: $as_echo "no" >&6; }
1.1       bertrand 4929: fi
1.14      bertrand 4930: 
1.1       bertrand 4931: 
1.15      bertrand 4932:   test -n "$ac_ct_FC" && break
                   4933: done
1.1       bertrand 4934: 
1.15      bertrand 4935:   if test "x$ac_ct_FC" = x; then
                   4936:     FC=""
                   4937:   else
                   4938:     case $cross_compiling:$ac_tool_warned in
                   4939: yes:)
                   4940: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4941: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4942: ac_tool_warned=yes ;;
1.14      bertrand 4943: esac
1.15      bertrand 4944:     FC=$ac_ct_FC
                   4945:   fi
1.14      bertrand 4946: fi
                   4947: 
                   4948: 
1.15      bertrand 4949: # Provide some information about the compiler.
                   4950: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4951: set X $ac_compile
                   4952: ac_compiler=$2
                   4953: for ac_option in --version -v -V -qversion; do
                   4954:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4955: case "(($ac_try" in
                   4956:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4957:   *) ac_try_echo=$ac_try;;
                   4958: esac
1.15      bertrand 4959: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4960: $as_echo "$ac_try_echo"; } >&5
                   4961:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4962:   ac_status=$?
1.15      bertrand 4963:   if test -s conftest.err; then
                   4964:     sed '10a\
                   4965: ... rest of stderr output deleted ...
                   4966:          10q' conftest.err >conftest.er1
                   4967:     cat conftest.er1 >&5
                   4968:   fi
                   4969:   rm -f conftest.er1 conftest.err
                   4970:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4971:   test $ac_status = 0; }
                   4972: done
                   4973: rm -f a.out
                   4974: 
                   4975: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4976: # input file.  (Note that this only needs to work for GNU compilers.)
                   4977: ac_save_ext=$ac_ext
                   4978: ac_ext=F
                   4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4980: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4981: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4982:   $as_echo_n "(cached) " >&6
1.14      bertrand 4983: else
1.15      bertrand 4984:   cat > conftest.$ac_ext <<_ACEOF
                   4985:       program main
                   4986: #ifndef __GNUC__
                   4987:        choke me
                   4988: #endif
1.14      bertrand 4989: 
1.15      bertrand 4990:       end
                   4991: _ACEOF
                   4992: if ac_fn_fc_try_compile "$LINENO"; then :
                   4993:   ac_compiler_gnu=yes
                   4994: else
                   4995:   ac_compiler_gnu=no
1.14      bertrand 4996: fi
                   4997: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4998: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4999: 
1.15      bertrand 5000: fi
                   5001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   5002: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   5003: ac_ext=$ac_save_ext
                   5004: ac_test_FCFLAGS=${FCFLAGS+set}
                   5005: ac_save_FCFLAGS=$FCFLAGS
                   5006: FCFLAGS=
                   5007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5008: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 5009: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5010:   $as_echo_n "(cached) " >&6
                   5011: else
                   5012:   FCFLAGS=-g
                   5013: cat > conftest.$ac_ext <<_ACEOF
                   5014:       program main
1.1       bertrand 5015: 
1.15      bertrand 5016:       end
1.1       bertrand 5017: _ACEOF
1.15      bertrand 5018: if ac_fn_fc_try_compile "$LINENO"; then :
                   5019:   ac_cv_prog_fc_g=yes
1.1       bertrand 5020: else
1.15      bertrand 5021:   ac_cv_prog_fc_g=no
1.1       bertrand 5022: fi
1.14      bertrand 5023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5024: 
1.15      bertrand 5025: fi
                   5026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5027: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5028: if test "$ac_test_FCFLAGS" = set; then
                   5029:   FCFLAGS=$ac_save_FCFLAGS
                   5030: elif test $ac_cv_prog_fc_g = yes; then
                   5031:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5032:     FCFLAGS="-g -O2"
                   5033:   else
                   5034:     FCFLAGS="-g"
                   5035:   fi
1.1       bertrand 5036: else
1.15      bertrand 5037:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5038:     FCFLAGS="-O2"
                   5039:   else
                   5040:     FCFLAGS=
                   5041:   fi
1.1       bertrand 5042: fi
                   5043: 
1.15      bertrand 5044: ac_ext=c
                   5045: ac_cpp='$CPP $CPPFLAGS'
                   5046: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5047: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5048: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5049: 
                   5050: 
1.88    ! bertrand 5051: if test x"$F77" == x; then
        !          5052:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
        !          5053: fi
        !          5054: 
        !          5055: if test x"$FC" == x; then
1.36      bertrand 5056:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5057: fi
                   5058: 
1.15      bertrand 5059: if test x"$FC" != x""; then
                   5060:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5061:            awk -F. '{ printf("%s", $1);}'`
                   5062:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5063:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5064:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5065:        OPTIMISATION_F=-O3
                   5066:    else
1.23      bertrand 5067:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5068:            OPTIMISATION_F=-O3
                   5069:        else
1.23      bertrand 5070:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5071:                OPTIMISATION_F=-O2
                   5072:            else
1.36      bertrand 5073:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5074:            fi
1.14      bertrand 5075:        fi
                   5076:    fi
                   5077: fi
1.1       bertrand 5078: 
                   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
                   5085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5086: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5087: # On Suns, sometimes $CPP names a directory.
                   5088: if test -n "$CPP" && test -d "$CPP"; then
                   5089:   CPP=
                   5090: fi
                   5091: if test -z "$CPP"; then
1.57      bertrand 5092:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5093:   $as_echo_n "(cached) " >&6
                   5094: else
                   5095:       # Double quotes because CPP needs to be expanded
                   5096:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5097:     do
                   5098:       ac_preproc_ok=false
                   5099: for ac_c_preproc_warn_flag in '' yes
                   5100: do
                   5101:   # Use a header file that comes with gcc, so configuring glibc
                   5102:   # with a fresh cross-compiler works.
                   5103:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5104:   # <limits.h> exists even on freestanding compilers.
                   5105:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5106:   # not just through cpp. "Syntax error" is here to catch this case.
                   5107:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5108: /* end confdefs.h.  */
1.15      bertrand 5109: #ifdef __STDC__
                   5110: # include <limits.h>
                   5111: #else
                   5112: # include <assert.h>
                   5113: #endif
                   5114:             Syntax error
1.1       bertrand 5115: _ACEOF
1.15      bertrand 5116: if ac_fn_c_try_cpp "$LINENO"; then :
                   5117: 
1.1       bertrand 5118: else
1.15      bertrand 5119:   # Broken: fails on valid input.
                   5120: continue
1.1       bertrand 5121: fi
1.36      bertrand 5122: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5123: 
1.15      bertrand 5124:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5125:   # can be detected and how.
                   5126:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5127: /* end confdefs.h.  */
                   5128: #include <ac_nonexistent.h>
                   5129: _ACEOF
                   5130: if ac_fn_c_try_cpp "$LINENO"; then :
                   5131:   # Broken: success on invalid input.
                   5132: continue
                   5133: else
                   5134:   # Passes both tests.
                   5135: ac_preproc_ok=:
                   5136: break
1.1       bertrand 5137: fi
1.36      bertrand 5138: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5139: 
1.15      bertrand 5140: done
                   5141: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5142: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5143: if $ac_preproc_ok; then :
                   5144:   break
1.1       bertrand 5145: fi
                   5146: 
1.15      bertrand 5147:     done
                   5148:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5149: 
1.15      bertrand 5150: fi
                   5151:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5152: else
1.15      bertrand 5153:   ac_cv_prog_CPP=$CPP
                   5154: fi
                   5155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5156: $as_echo "$CPP" >&6; }
                   5157: ac_preproc_ok=false
                   5158: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5159: do
1.15      bertrand 5160:   # Use a header file that comes with gcc, so configuring glibc
                   5161:   # with a fresh cross-compiler works.
                   5162:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5163:   # <limits.h> exists even on freestanding compilers.
                   5164:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5165:   # not just through cpp. "Syntax error" is here to catch this case.
                   5166:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5167: /* end confdefs.h.  */
                   5168: #ifdef __STDC__
                   5169: # include <limits.h>
                   5170: #else
                   5171: # include <assert.h>
                   5172: #endif
                   5173:             Syntax error
                   5174: _ACEOF
                   5175: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5176: 
1.15      bertrand 5177: else
                   5178:   # Broken: fails on valid input.
                   5179: continue
                   5180: fi
1.36      bertrand 5181: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5182: 
1.15      bertrand 5183:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5184:   # can be detected and how.
                   5185:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5186: /* end confdefs.h.  */
                   5187: #include <ac_nonexistent.h>
                   5188: _ACEOF
                   5189: if ac_fn_c_try_cpp "$LINENO"; then :
                   5190:   # Broken: success on invalid input.
                   5191: continue
                   5192: else
                   5193:   # Passes both tests.
                   5194: ac_preproc_ok=:
                   5195: break
                   5196: fi
1.36      bertrand 5197: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5198: 
                   5199: done
1.15      bertrand 5200: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5201: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5202: if $ac_preproc_ok; then :
1.1       bertrand 5203: 
1.15      bertrand 5204: else
                   5205:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5206: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5207: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5208: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5209: fi
1.14      bertrand 5210: 
1.15      bertrand 5211: ac_ext=c
                   5212: ac_cpp='$CPP $CPPFLAGS'
                   5213: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5214: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5215: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5216: 
                   5217: 
1.15      bertrand 5218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5219: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5220: 
                   5221: 
1.15      bertrand 5222: # Check whether --with-x was given.
                   5223: if test "${with_x+set}" = set; then :
                   5224:   withval=$with_x;
1.1       bertrand 5225: fi
1.14      bertrand 5226: 
1.15      bertrand 5227: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5228: if test "x$with_x" = xno; then
                   5229:   # The user explicitly disabled X.
                   5230:   have_x=disabled
1.1       bertrand 5231: else
1.15      bertrand 5232:   case $x_includes,$x_libraries in #(
1.57      bertrand 5233:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5234:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5235:   $as_echo_n "(cached) " >&6
1.1       bertrand 5236: else
1.15      bertrand 5237:   # One or both of the vars are not set, and there is no cached value.
                   5238: ac_x_includes=no ac_x_libraries=no
                   5239: rm -f -r conftest.dir
                   5240: if mkdir conftest.dir; then
                   5241:   cd conftest.dir
                   5242:   cat >Imakefile <<'_ACEOF'
                   5243: incroot:
                   5244:    @echo incroot='${INCROOT}'
                   5245: usrlibdir:
                   5246:    @echo usrlibdir='${USRLIBDIR}'
                   5247: libdir:
                   5248:    @echo libdir='${LIBDIR}'
                   5249: _ACEOF
                   5250:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5251:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5252:     for ac_var in incroot usrlibdir libdir; do
                   5253:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5254:     done
                   5255:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5256:     for ac_extension in a so sl dylib la dll; do
                   5257:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5258:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5259:    ac_im_usrlibdir=$ac_im_libdir; break
                   5260:       fi
                   5261:     done
                   5262:     # Screen out bogus values from the imake configuration.  They are
                   5263:     # bogus both because they are the default anyway, and because
                   5264:     # using them would break gcc on systems where it needs fixed includes.
                   5265:     case $ac_im_incroot in
                   5266:    /usr/include) ac_x_includes= ;;
                   5267:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5268:     esac
                   5269:     case $ac_im_usrlibdir in
                   5270:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5271:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5272:     esac
                   5273:   fi
                   5274:   cd ..
                   5275:   rm -f -r conftest.dir
                   5276: fi
                   5277: 
                   5278: # Standard set of common directories for X headers.
                   5279: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5280: ac_x_header_dirs='
                   5281: /usr/X11/include
                   5282: /usr/X11R7/include
                   5283: /usr/X11R6/include
                   5284: /usr/X11R5/include
                   5285: /usr/X11R4/include
1.1       bertrand 5286: 
1.15      bertrand 5287: /usr/include/X11
                   5288: /usr/include/X11R7
                   5289: /usr/include/X11R6
                   5290: /usr/include/X11R5
                   5291: /usr/include/X11R4
1.1       bertrand 5292: 
1.15      bertrand 5293: /usr/local/X11/include
                   5294: /usr/local/X11R7/include
                   5295: /usr/local/X11R6/include
                   5296: /usr/local/X11R5/include
                   5297: /usr/local/X11R4/include
1.1       bertrand 5298: 
1.15      bertrand 5299: /usr/local/include/X11
                   5300: /usr/local/include/X11R7
                   5301: /usr/local/include/X11R6
                   5302: /usr/local/include/X11R5
                   5303: /usr/local/include/X11R4
1.1       bertrand 5304: 
1.15      bertrand 5305: /usr/X386/include
                   5306: /usr/x386/include
                   5307: /usr/XFree86/include/X11
1.1       bertrand 5308: 
1.15      bertrand 5309: /usr/include
                   5310: /usr/local/include
                   5311: /usr/unsupported/include
                   5312: /usr/athena/include
                   5313: /usr/local/x11r5/include
                   5314: /usr/lpp/Xamples/include
1.1       bertrand 5315: 
1.15      bertrand 5316: /usr/openwin/include
                   5317: /usr/openwin/share/include'
1.1       bertrand 5318: 
1.15      bertrand 5319: if test "$ac_x_includes" = no; then
                   5320:   # Guess where to find include files, by looking for Xlib.h.
                   5321:   # First, try using that file with no special directory specified.
                   5322:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5323: /* end confdefs.h.  */
                   5324: #include <X11/Xlib.h>
                   5325: _ACEOF
                   5326: if ac_fn_c_try_cpp "$LINENO"; then :
                   5327:   # We can compile using X headers with no special include directory.
                   5328: ac_x_includes=
1.1       bertrand 5329: else
1.15      bertrand 5330:   for ac_dir in $ac_x_header_dirs; do
                   5331:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5332:     ac_x_includes=$ac_dir
                   5333:     break
                   5334:   fi
                   5335: done
1.1       bertrand 5336: fi
1.36      bertrand 5337: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5338: fi # $ac_x_includes = no
1.1       bertrand 5339: 
1.15      bertrand 5340: if test "$ac_x_libraries" = no; then
                   5341:   # Check for the libraries.
                   5342:   # See if we find them without any special options.
                   5343:   # Don't add to $LIBS permanently.
                   5344:   ac_save_LIBS=$LIBS
                   5345:   LIBS="-lX11 $LIBS"
                   5346:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5347: /* end confdefs.h.  */
1.15      bertrand 5348: #include <X11/Xlib.h>
1.14      bertrand 5349: int
                   5350: main ()
                   5351: {
1.15      bertrand 5352: XrmInitialize ()
1.14      bertrand 5353:   ;
                   5354:   return 0;
                   5355: }
1.1       bertrand 5356: _ACEOF
1.15      bertrand 5357: if ac_fn_c_try_link "$LINENO"; then :
                   5358:   LIBS=$ac_save_LIBS
                   5359: # We can link X programs with no special library path.
                   5360: ac_x_libraries=
1.1       bertrand 5361: else
1.15      bertrand 5362:   LIBS=$ac_save_LIBS
                   5363: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5364: do
                   5365:   # Don't even attempt the hair of trying to link an X program!
                   5366:   for ac_extension in a so sl dylib la dll; do
                   5367:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5368:       ac_x_libraries=$ac_dir
                   5369:       break 2
                   5370:     fi
                   5371:   done
                   5372: done
                   5373: fi
                   5374: rm -f core conftest.err conftest.$ac_objext \
                   5375:     conftest$ac_exeext conftest.$ac_ext
                   5376: fi # $ac_x_libraries = no
1.1       bertrand 5377: 
1.15      bertrand 5378: case $ac_x_includes,$ac_x_libraries in #(
                   5379:   no,* | *,no | *\'*)
                   5380:     # Didn't find X, or a directory has "'" in its name.
                   5381:     ac_cv_have_x="have_x=no";; #(
                   5382:   *)
                   5383:     # Record where we found X for the cache.
                   5384:     ac_cv_have_x="have_x=yes\
                   5385:    ac_x_includes='$ac_x_includes'\
                   5386:    ac_x_libraries='$ac_x_libraries'"
                   5387: esac
1.1       bertrand 5388: fi
1.15      bertrand 5389: ;; #(
                   5390:     *) have_x=yes;;
                   5391:   esac
                   5392:   eval "$ac_cv_have_x"
                   5393: fi # $with_x != no
1.1       bertrand 5394: 
1.15      bertrand 5395: if test "$have_x" != yes; then
                   5396:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5397: $as_echo "$have_x" >&6; }
                   5398:   no_x=yes
1.14      bertrand 5399: else
1.15      bertrand 5400:   # If each of the values was on the command line, it overrides each guess.
                   5401:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5402:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5403:   # Update the cache value to reflect the command line values.
                   5404:   ac_cv_have_x="have_x=yes\
                   5405:    ac_x_includes='$x_includes'\
                   5406:    ac_x_libraries='$x_libraries'"
                   5407:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5408: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5409: fi
1.1       bertrand 5410: 
1.15      bertrand 5411: if test "$no_x" = yes; then
                   5412:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5413: 
1.15      bertrand 5414: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5415: 
1.15      bertrand 5416:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5417: else
1.15      bertrand 5418:   if test -n "$x_includes"; then
                   5419:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5420:   fi
                   5421: 
                   5422:   # It would also be nice to do this for all -L options, not just this one.
                   5423:   if test -n "$x_libraries"; then
                   5424:     X_LIBS="$X_LIBS -L$x_libraries"
                   5425:     # For Solaris; some versions of Sun CC require a space after -R and
                   5426:     # others require no space.  Words are not sufficient . . . .
                   5427:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5428: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5429:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5430:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5431:     ac_c_werror_flag=yes
                   5432:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5433: /* end confdefs.h.  */
1.1       bertrand 5434: 
1.15      bertrand 5435: int
                   5436: main ()
                   5437: {
1.1       bertrand 5438: 
1.15      bertrand 5439:   ;
                   5440:   return 0;
                   5441: }
                   5442: _ACEOF
                   5443: if ac_fn_c_try_link "$LINENO"; then :
                   5444:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5445: $as_echo "no" >&6; }
                   5446:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5447: else
1.15      bertrand 5448:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5449:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5450: /* end confdefs.h.  */
1.1       bertrand 5451: 
1.14      bertrand 5452: int
                   5453: main ()
                   5454: {
1.15      bertrand 5455: 
                   5456:   ;
1.14      bertrand 5457:   return 0;
                   5458: }
                   5459: _ACEOF
1.15      bertrand 5460: if ac_fn_c_try_link "$LINENO"; then :
                   5461:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5462: $as_echo "yes" >&6; }
                   5463:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5464: else
1.15      bertrand 5465:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5466: $as_echo "neither works" >&6; }
1.14      bertrand 5467: fi
1.15      bertrand 5468: rm -f core conftest.err conftest.$ac_objext \
                   5469:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5470: fi
1.15      bertrand 5471: rm -f core conftest.err conftest.$ac_objext \
                   5472:     conftest$ac_exeext conftest.$ac_ext
                   5473:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5474:     LIBS=$ac_xsave_LIBS
                   5475:   fi
1.1       bertrand 5476: 
1.15      bertrand 5477:   # Check for system-dependent libraries X programs must link with.
                   5478:   # Do this before checking for the system-independent R6 libraries
                   5479:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5480: 
1.15      bertrand 5481:   if test "$ISC" = yes; then
                   5482:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5483:   else
                   5484:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5485:     # libraries were built with DECnet support.  And Karl Berry says
                   5486:     # the Alpha needs dnet_stub (dnet does not exist).
                   5487:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5488:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5489: /* end confdefs.h.  */
1.1       bertrand 5490: 
1.15      bertrand 5491: /* Override any GCC internal prototype to avoid an error.
                   5492:    Use char because int might match the return type of a GCC
                   5493:    builtin and then its argument prototype would still apply.  */
                   5494: #ifdef __cplusplus
                   5495: extern "C"
                   5496: #endif
                   5497: char XOpenDisplay ();
                   5498: int
                   5499: main ()
                   5500: {
                   5501: return XOpenDisplay ();
                   5502:   ;
                   5503:   return 0;
                   5504: }
1.1       bertrand 5505: _ACEOF
1.15      bertrand 5506: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5507: 
                   5508: else
1.15      bertrand 5509:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5510: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5511: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5512:   $as_echo_n "(cached) " >&6
                   5513: else
                   5514:   ac_check_lib_save_LIBS=$LIBS
                   5515: LIBS="-ldnet  $LIBS"
                   5516: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5517: /* end confdefs.h.  */
1.14      bertrand 5518: 
1.15      bertrand 5519: /* Override any GCC internal prototype to avoid an error.
                   5520:    Use char because int might match the return type of a GCC
                   5521:    builtin and then its argument prototype would still apply.  */
                   5522: #ifdef __cplusplus
                   5523: extern "C"
                   5524: #endif
                   5525: char dnet_ntoa ();
                   5526: int
                   5527: main ()
                   5528: {
                   5529: return dnet_ntoa ();
                   5530:   ;
                   5531:   return 0;
                   5532: }
1.1       bertrand 5533: _ACEOF
1.15      bertrand 5534: if ac_fn_c_try_link "$LINENO"; then :
                   5535:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5536: else
1.15      bertrand 5537:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5538: fi
1.15      bertrand 5539: rm -f core conftest.err conftest.$ac_objext \
                   5540:     conftest$ac_exeext conftest.$ac_ext
                   5541: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5542: fi
1.15      bertrand 5543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5544: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5545: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5546:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5547: fi
                   5548: 
1.15      bertrand 5549:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5550:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5551: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5552: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5553:   $as_echo_n "(cached) " >&6
1.14      bertrand 5554: else
1.15      bertrand 5555:   ac_check_lib_save_LIBS=$LIBS
                   5556: LIBS="-ldnet_stub  $LIBS"
                   5557: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5558: /* end confdefs.h.  */
1.15      bertrand 5559: 
                   5560: /* Override any GCC internal prototype to avoid an error.
                   5561:    Use char because int might match the return type of a GCC
                   5562:    builtin and then its argument prototype would still apply.  */
                   5563: #ifdef __cplusplus
                   5564: extern "C"
                   5565: #endif
                   5566: char dnet_ntoa ();
1.1       bertrand 5567: int
                   5568: main ()
                   5569: {
1.15      bertrand 5570: return dnet_ntoa ();
1.1       bertrand 5571:   ;
                   5572:   return 0;
                   5573: }
                   5574: _ACEOF
1.15      bertrand 5575: if ac_fn_c_try_link "$LINENO"; then :
                   5576:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5577: else
1.15      bertrand 5578:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5579: fi
                   5580: rm -f core conftest.err conftest.$ac_objext \
                   5581:     conftest$ac_exeext conftest.$ac_ext
                   5582: LIBS=$ac_check_lib_save_LIBS
                   5583: fi
                   5584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5585: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5586: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5587:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5588: fi
1.14      bertrand 5589: 
1.15      bertrand 5590:     fi
1.1       bertrand 5591: fi
1.15      bertrand 5592: rm -f core conftest.err conftest.$ac_objext \
                   5593:     conftest$ac_exeext conftest.$ac_ext
                   5594:     LIBS="$ac_xsave_LIBS"
                   5595: 
                   5596:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5597:     # to get the SysV transport functions.
                   5598:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5599:     # needs -lnsl.
                   5600:     # The nsl library prevents programs from opening the X display
                   5601:     # on Irix 5.2, according to T.E. Dickey.
                   5602:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5603:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5604:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5605: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5606: 
                   5607: fi
                   5608: 
1.15      bertrand 5609:     if test $ac_cv_func_gethostbyname = no; then
                   5610:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5611: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5612: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5613:   $as_echo_n "(cached) " >&6
1.1       bertrand 5614: else
1.15      bertrand 5615:   ac_check_lib_save_LIBS=$LIBS
                   5616: LIBS="-lnsl  $LIBS"
                   5617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5618: /* end confdefs.h.  */
1.15      bertrand 5619: 
                   5620: /* Override any GCC internal prototype to avoid an error.
                   5621:    Use char because int might match the return type of a GCC
                   5622:    builtin and then its argument prototype would still apply.  */
                   5623: #ifdef __cplusplus
                   5624: extern "C"
                   5625: #endif
                   5626: char gethostbyname ();
1.1       bertrand 5627: int
                   5628: main ()
                   5629: {
1.15      bertrand 5630: return gethostbyname ();
1.1       bertrand 5631:   ;
                   5632:   return 0;
                   5633: }
                   5634: _ACEOF
1.15      bertrand 5635: if ac_fn_c_try_link "$LINENO"; then :
                   5636:   ac_cv_lib_nsl_gethostbyname=yes
                   5637: else
                   5638:   ac_cv_lib_nsl_gethostbyname=no
                   5639: fi
                   5640: rm -f core conftest.err conftest.$ac_objext \
                   5641:     conftest$ac_exeext conftest.$ac_ext
                   5642: LIBS=$ac_check_lib_save_LIBS
                   5643: fi
                   5644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5645: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5646: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5647:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5648: fi
                   5649: 
                   5650:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5651:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5652: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5653: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5654:   $as_echo_n "(cached) " >&6
                   5655: else
                   5656:   ac_check_lib_save_LIBS=$LIBS
                   5657: LIBS="-lbsd  $LIBS"
                   5658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5659: /* end confdefs.h.  */
1.15      bertrand 5660: 
                   5661: /* Override any GCC internal prototype to avoid an error.
                   5662:    Use char because int might match the return type of a GCC
                   5663:    builtin and then its argument prototype would still apply.  */
                   5664: #ifdef __cplusplus
                   5665: extern "C"
                   5666: #endif
                   5667: char gethostbyname ();
1.1       bertrand 5668: int
                   5669: main ()
                   5670: {
1.15      bertrand 5671: return gethostbyname ();
1.1       bertrand 5672:   ;
                   5673:   return 0;
                   5674: }
                   5675: _ACEOF
1.15      bertrand 5676: if ac_fn_c_try_link "$LINENO"; then :
                   5677:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5678: else
1.15      bertrand 5679:   ac_cv_lib_bsd_gethostbyname=no
                   5680: fi
                   5681: rm -f core conftest.err conftest.$ac_objext \
                   5682:     conftest$ac_exeext conftest.$ac_ext
                   5683: LIBS=$ac_check_lib_save_LIBS
                   5684: fi
                   5685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5686: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5687: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5688:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5689: fi
                   5690: 
                   5691:       fi
                   5692:     fi
                   5693: 
                   5694:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5695:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5696:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5697:     # on later versions), says Simon Leinen: it contains gethostby*
                   5698:     # variants that don't use the name server (or something).  -lsocket
                   5699:     # must be given before -lnsl if both are needed.  We assume that
                   5700:     # if connect needs -lnsl, so does gethostbyname.
                   5701:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5702: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5703: 
1.1       bertrand 5704: fi
                   5705: 
1.15      bertrand 5706:     if test $ac_cv_func_connect = no; then
                   5707:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5708: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5709: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5710:   $as_echo_n "(cached) " >&6
1.14      bertrand 5711: else
1.15      bertrand 5712:   ac_check_lib_save_LIBS=$LIBS
                   5713: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5715: /* end confdefs.h.  */
1.1       bertrand 5716: 
1.15      bertrand 5717: /* Override any GCC internal prototype to avoid an error.
                   5718:    Use char because int might match the return type of a GCC
                   5719:    builtin and then its argument prototype would still apply.  */
                   5720: #ifdef __cplusplus
                   5721: extern "C"
                   5722: #endif
                   5723: char connect ();
1.14      bertrand 5724: int
                   5725: main ()
                   5726: {
1.15      bertrand 5727: return connect ();
1.14      bertrand 5728:   ;
                   5729:   return 0;
                   5730: }
                   5731: _ACEOF
1.15      bertrand 5732: if ac_fn_c_try_link "$LINENO"; then :
                   5733:   ac_cv_lib_socket_connect=yes
                   5734: else
                   5735:   ac_cv_lib_socket_connect=no
                   5736: fi
                   5737: rm -f core conftest.err conftest.$ac_objext \
                   5738:     conftest$ac_exeext conftest.$ac_ext
                   5739: LIBS=$ac_check_lib_save_LIBS
                   5740: fi
                   5741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5742: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5743: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5744:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5745: fi
                   5746: 
                   5747:     fi
                   5748: 
                   5749:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5750:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5751: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5752: 
                   5753: fi
                   5754: 
                   5755:     if test $ac_cv_func_remove = no; then
                   5756:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5757: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5758: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5759:   $as_echo_n "(cached) " >&6
                   5760: else
                   5761:   ac_check_lib_save_LIBS=$LIBS
                   5762: LIBS="-lposix  $LIBS"
                   5763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5764: /* end confdefs.h.  */
1.15      bertrand 5765: 
                   5766: /* Override any GCC internal prototype to avoid an error.
                   5767:    Use char because int might match the return type of a GCC
                   5768:    builtin and then its argument prototype would still apply.  */
                   5769: #ifdef __cplusplus
                   5770: extern "C"
                   5771: #endif
                   5772: char remove ();
1.1       bertrand 5773: int
                   5774: main ()
                   5775: {
1.15      bertrand 5776: return remove ();
1.1       bertrand 5777:   ;
                   5778:   return 0;
                   5779: }
                   5780: _ACEOF
1.15      bertrand 5781: if ac_fn_c_try_link "$LINENO"; then :
                   5782:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5783: else
1.15      bertrand 5784:   ac_cv_lib_posix_remove=no
                   5785: fi
                   5786: rm -f core conftest.err conftest.$ac_objext \
                   5787:     conftest$ac_exeext conftest.$ac_ext
                   5788: LIBS=$ac_check_lib_save_LIBS
                   5789: fi
                   5790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5791: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5792: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5793:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5794: fi
1.1       bertrand 5795: 
1.15      bertrand 5796:     fi
1.14      bertrand 5797: 
1.15      bertrand 5798:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5799:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5800: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5801: 
                   5802: fi
                   5803: 
1.15      bertrand 5804:     if test $ac_cv_func_shmat = no; then
                   5805:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5806: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5807: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5808:   $as_echo_n "(cached) " >&6
                   5809: else
                   5810:   ac_check_lib_save_LIBS=$LIBS
                   5811: LIBS="-lipc  $LIBS"
                   5812: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5813: /* end confdefs.h.  */
1.15      bertrand 5814: 
                   5815: /* Override any GCC internal prototype to avoid an error.
                   5816:    Use char because int might match the return type of a GCC
                   5817:    builtin and then its argument prototype would still apply.  */
                   5818: #ifdef __cplusplus
                   5819: extern "C"
                   5820: #endif
                   5821: char shmat ();
1.1       bertrand 5822: int
                   5823: main ()
                   5824: {
1.15      bertrand 5825: return shmat ();
1.1       bertrand 5826:   ;
                   5827:   return 0;
                   5828: }
                   5829: _ACEOF
1.15      bertrand 5830: if ac_fn_c_try_link "$LINENO"; then :
                   5831:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5832: else
1.15      bertrand 5833:   ac_cv_lib_ipc_shmat=no
                   5834: fi
                   5835: rm -f core conftest.err conftest.$ac_objext \
                   5836:     conftest$ac_exeext conftest.$ac_ext
                   5837: LIBS=$ac_check_lib_save_LIBS
                   5838: fi
                   5839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5840: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5841: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5842:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5843: fi
1.14      bertrand 5844: 
1.15      bertrand 5845:     fi
                   5846:   fi
1.1       bertrand 5847: 
1.15      bertrand 5848:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5849:   ac_save_LDFLAGS=$LDFLAGS
                   5850:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5851:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5852:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5853:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5854:   # These have to be linked with before -lX11, unlike the other
                   5855:   # libraries we check for below, so use a different variable.
                   5856:   # John Interrante, Karl Berry
                   5857:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5858: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5859: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5860:   $as_echo_n "(cached) " >&6
1.1       bertrand 5861: else
1.15      bertrand 5862:   ac_check_lib_save_LIBS=$LIBS
                   5863: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5865: /* end confdefs.h.  */
1.15      bertrand 5866: 
                   5867: /* Override any GCC internal prototype to avoid an error.
                   5868:    Use char because int might match the return type of a GCC
                   5869:    builtin and then its argument prototype would still apply.  */
                   5870: #ifdef __cplusplus
                   5871: extern "C"
                   5872: #endif
                   5873: char IceConnectionNumber ();
1.1       bertrand 5874: int
                   5875: main ()
                   5876: {
1.15      bertrand 5877: return IceConnectionNumber ();
1.1       bertrand 5878:   ;
                   5879:   return 0;
                   5880: }
                   5881: _ACEOF
1.15      bertrand 5882: if ac_fn_c_try_link "$LINENO"; then :
                   5883:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5884: else
1.15      bertrand 5885:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5886: fi
                   5887: rm -f core conftest.err conftest.$ac_objext \
                   5888:     conftest$ac_exeext conftest.$ac_ext
                   5889: LIBS=$ac_check_lib_save_LIBS
                   5890: fi
                   5891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5892: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5893: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5894:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5895: fi
                   5896: 
                   5897:   LDFLAGS=$ac_save_LDFLAGS
                   5898: 
                   5899: fi
                   5900: 
1.14      bertrand 5901: 
1.15      bertrand 5902: if test "$ac_x_includes" != "no"; then
                   5903:    if test x"$ac_x_includes" != x; then
                   5904:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5905:        includeX="-I$ac_x_includes"
                   5906:    fi
1.1       bertrand 5907: fi
1.15      bertrand 5908: if test "$ac_x_libraries" != "no"; then
                   5909:    if test x"$ac_x_libraries" != x; then
                   5910:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5911:    fi
1.1       bertrand 5912: fi
1.15      bertrand 5913: 
1.64      bertrand 5914: 
1.69      bertrand 5915: # Check whether --with-32bits-abi was given.
                   5916: if test "${with_32bits_abi+set}" = set; then :
                   5917:   withval=$with_32bits_abi;
1.64      bertrand 5918: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5919:    ABI=
1.64      bertrand 5920: else
1.65      bertrand 5921:    ABI=-m32
                   5922: fi
1.64      bertrand 5923: else
                   5924: 
1.68      bertrand 5925:    ABI=
1.64      bertrand 5926: 
                   5927: 
                   5928: fi
                   5929: 
                   5930: 
1.68      bertrand 5931: if test x$ABI = x; then
1.66      bertrand 5932: 
1.69      bertrand 5933: # Check whether --with-64bits-abi was given.
                   5934: if test "${with_64bits_abi+set}" = set; then :
                   5935:   withval=$with_64bits_abi;
1.67      bertrand 5936: if test "$with-64bits-abi" = "no"; then
                   5937:    ABI=
                   5938: else
                   5939:    ABI=-m64
                   5940: fi
                   5941: else
                   5942: 
1.68      bertrand 5943:    ABI=
1.67      bertrand 5944: 
                   5945: 
                   5946: fi
                   5947: 
1.68      bertrand 5948: fi
1.67      bertrand 5949: 
1.69      bertrand 5950: LDFLAGS="$LDFLAGS $ABI"
                   5951: 
1.67      bertrand 5952: 
1.88    ! bertrand 5953: # Check whether --with-rpltools was given.
        !          5954: if test "${with_rpltools+set}" = set; then :
        !          5955:   withval=$with_rpltools;
        !          5956: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
        !          5957:    as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
        !          5958: else
        !          5959:    RPLTOOLS=$with_rpltools
        !          5960: fi
        !          5961: else
        !          5962: 
        !          5963:    RPLTOOLS=\$\(top_builddir\)
        !          5964: 
        !          5965: 
        !          5966: fi
        !          5967: 
        !          5968: 
        !          5969: 
        !          5970: 
        !          5971: # Check whether --enable-rplcas was given.
        !          5972: if test "${enable_rplcas+set}" = set; then :
        !          5973:   enableval=$enable_rplcas;
        !          5974: if test "$enableval" = "no"; then
1.67      bertrand 5975:    RPLCAS=-URPLCAS
                   5976:    LIBRPLCAS=
                   5977: else
                   5978:    RPLCAS=-DRPLCAS
                   5979:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5980: fi
                   5981: else
                   5982: 
                   5983:    RPLCAS=-URPLCAS
                   5984:    LIBRPLCAS=
                   5985: 
                   5986: 
                   5987: fi
                   5988: 
                   5989: 
                   5990: 
                   5991: 
                   5992: 
1.65      bertrand 5993: 
1.15      bertrand 5994: # Check whether --enable-optimization was given.
                   5995: if test "${enable_optimization+set}" = set; then :
                   5996:   enableval=$enable_optimization;
                   5997: if test "$enableval" = "no"; then
1.69      bertrand 5998:    CFLAGS=$ABI
                   5999:    FFLAGS=$ABI
                   6000:    CXXFLAGS=$ABI
                   6001:    FCFLAGS=$ABI
                   6002: else
                   6003:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   6004:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   6005:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   6006:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 6007: fi
1.15      bertrand 6008: else
1.14      bertrand 6009: 
1.69      bertrand 6010:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   6011:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   6012:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   6013:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 6014: 
                   6015: 
1.15      bertrand 6016: fi
1.1       bertrand 6017: 
                   6018: 
1.87      bertrand 6019: # Check whether --enable-sysv-ipcs was given.
                   6020: if test "${enable_sysv_ipcs+set}" = set; then :
                   6021:   enableval=$enable_sysv_ipcs;
1.36      bertrand 6022: if test "$enableval" = "no"; then
1.88    ! bertrand 6023:    IPCS_SYSV=-UIPCS_SYSV
        !          6024:    POSIX_IPCS=no
1.36      bertrand 6025: else
1.88    ! bertrand 6026:    IPCS_SYSV=-DIPCS_SYSV
        !          6027:    POSIX_IPCS=yes
1.36      bertrand 6028: fi
                   6029: else
1.85      bertrand 6030:   REG=$LDFLAGS
1.88    ! bertrand 6031: POSIX_IPCS=guessed
1.85      bertrand 6032: LDFLAGS=-lrt
                   6033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
                   6034: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
                   6035: if test "$cross_compiling" = yes; then :
                   6036:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6037: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6038: as_fn_error $? "cannot run test program while cross compiling
                   6039: See \`config.log' for more details" "$LINENO" 5; }
                   6040: else
                   6041:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81      bertrand 6042: /* end confdefs.h.  */
                   6043: #include <sys/mman.h>
                   6044: #include <sys/stat.h>
                   6045: #include <fcntl.h>
1.82      bertrand 6046: 
1.81      bertrand 6047: int
                   6048: main ()
                   6049: {
1.85      bertrand 6050:  int fd; char *sem = "/test";
1.81      bertrand 6051: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
                   6052:   close(fd);
                   6053:   shm_unlink(sem);
1.85      bertrand 6054:   fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
                   6055:   close(fd);
                   6056:   sem_unlink(sem);
1.81      bertrand 6057:   return(0);
                   6058: 
                   6059:   ;
                   6060:   return 0;
                   6061: }
                   6062: _ACEOF
1.85      bertrand 6063: if ac_fn_c_try_run "$LINENO"; then :
1.81      bertrand 6064:   IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6065: $as_echo "yes" >&6; }
                   6066: else
                   6067:   IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6068: $as_echo "no" >&6; }
                   6069: 
                   6070: fi
1.85      bertrand 6071: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6072:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6073: fi
                   6074: 
                   6075: LDFLAGS=$REG
1.81      bertrand 6076: 
1.36      bertrand 6077: fi
                   6078: 
                   6079: 
1.88    ! bertrand 6080: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.81      bertrand 6081: REG=$LDFLAGS
                   6082: LDFLAGS=-pthread
1.83      bertrand 6083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
                   6084: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
                   6085: if test "$cross_compiling" = yes; then :
                   6086:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6087: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6088: as_fn_error $? "cannot run test program while cross compiling
                   6089: See \`config.log' for more details" "$LINENO" 5; }
                   6090: else
                   6091:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6092: /* end confdefs.h.  */
                   6093: #include <semaphore.h>
                   6094: 
                   6095: int
                   6096: main ()
                   6097: {
                   6098:  sem_t sem;
1.81      bertrand 6099:  if (sem_init(&sem, 1, 0) != 0) return(1);
                   6100:  sem_destroy(&sem);
                   6101:   return(0);
1.83      bertrand 6102: 
                   6103:   ;
                   6104:   return 0;
                   6105: }
                   6106: _ACEOF
                   6107: if ac_fn_c_try_run "$LINENO"; then :
                   6108:   SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6109: $as_echo "yes" >&6; }
                   6110: else
                   6111:   SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6112: $as_echo "no" >&6; }
                   6113: 
                   6114: fi
                   6115: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6116:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6117: fi
                   6118: 
1.81      bertrand 6119: LDFLAGS=$REG
                   6120: REG=""
                   6121: else
                   6122:    SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   6123: fi
                   6124: 
1.30      bertrand 6125: # Check whether --enable-full-static was given.
                   6126: if test "${enable_full_static+set}" = set; then :
                   6127:   enableval=$enable_full_static;
                   6128: if test "$enableval" = "no"; then
                   6129:    STATIC=no
                   6130: else
                   6131:    STATIC=yes
                   6132: fi
                   6133: else
                   6134:   STATIC=no
                   6135: fi
                   6136: 
                   6137: 
1.15      bertrand 6138: # Check whether --enable-final-encoding was given.
                   6139: if test "${enable_final_encoding+set}" = set; then :
                   6140:   enableval=$enable_final_encoding;
                   6141: if test "$enableval" = "no"; then
                   6142:    FINAL_ENCODING="\$(shell locale charmap | \
                   6143:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6144:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6145: else
1.15      bertrand 6146:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6147:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6148: fi
1.1       bertrand 6149: else
1.35      bertrand 6150: 
                   6151: FORCED_FINAL_ENCODING=0
                   6152: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6153:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6154: fi
                   6155: 
1.14      bertrand 6156: 
1.15      bertrand 6157: # Check whether --enable-tex was given.
                   6158: if test "${enable_tex+set}" = set; then :
                   6159:   enableval=$enable_tex;
                   6160: if test "$enableval" = "no"; then
                   6161:    TEX_SUPPORT=no
                   6162: else
                   6163:    TEX_SUPPORT=yes
1.1       bertrand 6164: fi
1.15      bertrand 6165: else
                   6166:   TEX_SUPPORT=guessed
                   6167: fi
                   6168: 
1.14      bertrand 6169: 
1.15      bertrand 6170: # Check whether --enable-vim was given.
                   6171: if test "${enable_vim+set}" = set; then :
                   6172:   enableval=$enable_vim;
                   6173: if test "$enableval" = "no"; then
                   6174:    VIM_SUPPORT=no
                   6175: else
                   6176:    VIM_SUPPORT=yes
                   6177: fi
                   6178: else
                   6179:   VIM_SUPPORT=guessed
1.1       bertrand 6180: fi
                   6181: 
1.15      bertrand 6182: 
                   6183: # Check whether --enable-embedded-gnuplot was given.
                   6184: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6185:   enableval=$enable_embedded_gnuplot;
                   6186: if test "$enableval" = "no"; then
                   6187:    MYGNUPLOT=no
                   6188: else
                   6189:    MYGNUPLOT=yes
                   6190: fi
1.1       bertrand 6191: else
                   6192: 
1.15      bertrand 6193: MYGNUPLOT=yes
                   6194: fi
                   6195: 
1.14      bertrand 6196: 
1.15      bertrand 6197: # Check whether --enable-gnuplot was given.
                   6198: if test "${enable_gnuplot+set}" = set; then :
                   6199:   enableval=$enable_gnuplot;
                   6200: if test "$enableval" = "no"; then
                   6201:    GNUPLOT_SUPPORT=no
                   6202:    MYGNUPLOT=no
                   6203:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6204: else
                   6205:    GNUPLOT_SUPPORT=yes
                   6206:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6207: fi
1.1       bertrand 6208: else
                   6209: 
1.15      bertrand 6210: if test "$MYGNUPLOT" = "yes"; then
                   6211:    GNUPLOT_SUPPORT=yes
                   6212:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6213: else
                   6214:    GNUPLOT_SUPPORT=guessed
                   6215:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6216: fi
1.1       bertrand 6217: fi
                   6218: 
1.15      bertrand 6219: 
1.80      bertrand 6220: libX=""
                   6221: LIBMOTIF=""
                   6222: INCMOTIF=""
                   6223: BUILD_OPENMOTIF=""
                   6224: 
1.15      bertrand 6225: # Check whether --enable-motif was given.
                   6226: if test "${enable_motif+set}" = set; then :
                   6227:   enableval=$enable_motif;
                   6228: if test "$enableval" = "no"; then
                   6229:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6230: else
1.80      bertrand 6231:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6232: fi
1.1       bertrand 6233: else
1.80      bertrand 6234:   if test "$have_x" == "yes"; then
                   6235:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15      bertrand 6236: else
1.80      bertrand 6237:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15      bertrand 6238: fi
                   6239: fi
1.14      bertrand 6240: 
1.80      bertrand 6241: 
                   6242: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6243:    libX="$X_LIBS -lXt -lX11"
                   6244:    LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
                   6245:            \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
                   6246:    INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
                   6247:            -I\$(top_builddir)/tools/$OPENMOTIF/lib \
                   6248:            -I\$(top_builddir)/tools/$LIBXPM/include"
                   6249:    BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
                   6250: 
                   6251: 
                   6252: subdirs="$subdirs tools/$LIBXPM"
                   6253: 
                   6254:    subdirs="$subdirs tools/$OPENMOTIF"
                   6255: 
1.1       bertrand 6256: fi
                   6257: 
1.15      bertrand 6258: # Check whether --enable-experimental was given.
                   6259: if test "${enable_experimental+set}" = set; then :
                   6260:   enableval=$enable_experimental;
                   6261: if test "$enableval" = "no"; then
                   6262:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6263: else
                   6264:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6265: fi
1.14      bertrand 6266: else
1.15      bertrand 6267:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6268: fi
                   6269: 
1.1       bertrand 6270: 
1.15      bertrand 6271: # Check whether --enable-debug was given.
                   6272: if test "${enable_debug+set}" = set; then :
                   6273:   enableval=$enable_debug;
                   6274: if test "$enableval" = "no"; then
1.24      bertrand 6275:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6276: else
1.24      bertrand 6277:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6278: fi
                   6279: else
1.24      bertrand 6280:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6281: fi
1.1       bertrand 6282: 
1.15      bertrand 6283: 
                   6284: # Check whether --enable-profile was given.
                   6285: if test "${enable_profile+set}" = set; then :
                   6286:   enableval=$enable_profile;
                   6287: if test "$enableval" = "no"; then
                   6288:    PROFILAGE=""
                   6289: else
                   6290:    PROFILAGE="-pg"
                   6291: fi
                   6292: else
                   6293:   PROFILAGE=""
1.1       bertrand 6294: fi
                   6295: 
1.14      bertrand 6296: 
                   6297: 
1.15      bertrand 6298: 
                   6299: if test ! -d tools; then
                   6300:    mkdir tools
                   6301: fi
                   6302: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6303:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6304:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6305:    (cd "$srcdir/tools/"$NCURSES && \
                   6306:            for i in ../$NCURSES*.patch.gz;
                   6307:            do gunzip -c $i | patch -p1;
                   6308:            done);
1.15      bertrand 6309: fi
                   6310: if test ! -d "$srcdir"/tools/$READLINE; then
                   6311:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6312:            (cd "$srcdir/tools" && tar -xf -)
                   6313: fi
                   6314: if test ! -d "$srcdir"/tools/$UNITS; then
                   6315:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6316:            (cd "$srcdir/tools" && tar -xf -)
                   6317: fi
                   6318: if test ! -d "$srcdir"/tools/$GSL; then
                   6319:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6320:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6321:    if test $(uname) = "OS/2"; then
                   6322:        (cd "$srcdir"/tools/$GSL; \
                   6323:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6324:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6325:                \mv -f $TMP ltmain.sh)
                   6326:    fi
1.15      bertrand 6327: fi
                   6328: if test ! -d "$srcdir"/tools/$GPP; then
                   6329:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6330:            (cd "$srcdir/tools" && tar -xf -)
                   6331: fi
                   6332: if test ! -d "$srcdir"/tools/$FILE; then
                   6333:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6334:            (cd "$srcdir/tools" && tar -xf - )
                   6335:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6336: fi
                   6337: if test ! -d "$srcdir"/tools/$ICONV; then
                   6338:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6339:            (cd "$srcdir/tools" && tar -xf -)
                   6340: fi
                   6341: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6342:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6343:            (cd "$srcdir/tools" && tar -xf -)
                   6344: fi
1.76      bertrand 6345: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6346:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6347:            (cd "$srcdir/tools" && tar -xf -)
                   6348: fi
1.80      bertrand 6349: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
                   6350:    gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
                   6351:            (cd "$srcdir/tools" && tar -xf -)
                   6352: fi
                   6353: if test ! -d "$srcdir"/tools/$LIBXPM; then
                   6354:    gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
                   6355:            (cd "$srcdir/tools" && tar -xf -)
                   6356: fi
1.15      bertrand 6357: if test ! -d tools/$OPENSSL; then
                   6358:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6359:            (cd tools && tar -xf -)
1.1       bertrand 6360: fi
1.55      bertrand 6361: if test ! -d rplcas; then
                   6362:    mkdir rplcas
                   6363: fi
                   6364: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6365:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6366:            (cd "$srcdir/rplcas" && tar -xf -)
                   6367: fi
                   6368: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6369:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6370:            (cd "$srcdir/rplcas" && tar -xf -)
                   6371: fi
1.56      bertrand 6372: if test ! -d rplcas/$NTL; then
                   6373:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6374:            (cd rplcas && tar -xf -)
                   6375: fi
                   6376: if test ! -d rplcas/$COCOA; then
                   6377:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6378:            (cd rplcas && tar -xf -)
                   6379: fi
                   6380: if test ! -d rplcas/$PARI; then
                   6381:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6382:            (cd rplcas && tar -xf -)
                   6383: fi
                   6384: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6385:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6386:            (cd "$srcdir/rplcas" && tar -xf -)
                   6387: fi
1.1       bertrand 6388: 
1.84      bertrand 6389: touch tools/openmotif.lib
                   6390: 
1.1       bertrand 6391: 
                   6392: 
1.15      bertrand 6393: # Check whether --enable-final-run-path was given.
                   6394: if test "${enable_final_run_path+set}" = set; then :
                   6395:   enableval=$enable_final_run_path;
                   6396:    if test "x$enable_final_run_path" = "x"; then
                   6397:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6398: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6399:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6400:    else
                   6401:        RUNPATH="$enable_final_run_path"
                   6402:    fi
1.1       bertrand 6403: 
                   6404: else
1.15      bertrand 6405:   RUNPATH="\${prefix}"
1.1       bertrand 6406: 
                   6407: fi
                   6408: 
1.15      bertrand 6409: 
                   6410: 
                   6411: 
                   6412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6413: $as_echo_n "checking whether ln -s works... " >&6; }
                   6414: LN_S=$as_ln_s
                   6415: if test "$LN_S" = "ln -s"; then
                   6416:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6417: $as_echo "yes" >&6; }
                   6418: else
                   6419:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6420: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6421: fi
                   6422: 
1.15      bertrand 6423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6424: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6425: set x ${MAKE-make}
                   6426: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6427: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6428:   $as_echo_n "(cached) " >&6
1.1       bertrand 6429: else
1.15      bertrand 6430:   cat >conftest.make <<\_ACEOF
                   6431: SHELL = /bin/sh
                   6432: all:
                   6433:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6434: _ACEOF
1.36      bertrand 6435: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6436: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6437:   *@@@%%%=?*=@@@%%%*)
                   6438:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6439:   *)
                   6440:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6441: esac
1.15      bertrand 6442: rm -f conftest.make
                   6443: fi
                   6444: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6445:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6446: $as_echo "yes" >&6; }
                   6447:   SET_MAKE=
                   6448: else
                   6449:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6450: $as_echo "no" >&6; }
                   6451:   SET_MAKE="MAKE=${MAKE-make}"
                   6452: fi
1.1       bertrand 6453: 
1.15      bertrand 6454: if test -n "$ac_tool_prefix"; then
                   6455:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6456: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6458: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6459: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6460:   $as_echo_n "(cached) " >&6
                   6461: else
                   6462:   if test -n "$RANLIB"; then
                   6463:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6464: else
1.15      bertrand 6465: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6466: for as_dir in $PATH
                   6467: do
                   6468:   IFS=$as_save_IFS
                   6469:   test -z "$as_dir" && as_dir=.
                   6470:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6471:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6472:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6473:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6474:     break 2
                   6475:   fi
                   6476: done
                   6477:   done
                   6478: IFS=$as_save_IFS
1.1       bertrand 6479: 
                   6480: fi
1.15      bertrand 6481: fi
                   6482: RANLIB=$ac_cv_prog_RANLIB
                   6483: if test -n "$RANLIB"; then
                   6484:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6485: $as_echo "$RANLIB" >&6; }
                   6486: else
                   6487:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6488: $as_echo "no" >&6; }
                   6489: fi
                   6490: 
1.1       bertrand 6491: 
1.15      bertrand 6492: fi
                   6493: if test -z "$ac_cv_prog_RANLIB"; then
                   6494:   ac_ct_RANLIB=$RANLIB
                   6495:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6496: set dummy ranlib; ac_word=$2
                   6497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6498: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6499: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6500:   $as_echo_n "(cached) " >&6
                   6501: else
                   6502:   if test -n "$ac_ct_RANLIB"; then
                   6503:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6504: else
                   6505: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6506: for as_dir in $PATH
                   6507: do
                   6508:   IFS=$as_save_IFS
                   6509:   test -z "$as_dir" && as_dir=.
                   6510:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6511:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6512:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6513:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6514:     break 2
                   6515:   fi
                   6516: done
1.14      bertrand 6517:   done
1.15      bertrand 6518: IFS=$as_save_IFS
                   6519: 
                   6520: fi
                   6521: fi
                   6522: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6523: if test -n "$ac_ct_RANLIB"; then
                   6524:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6525: $as_echo "$ac_ct_RANLIB" >&6; }
                   6526: else
                   6527:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6528: $as_echo "no" >&6; }
                   6529: fi
                   6530: 
                   6531:   if test "x$ac_ct_RANLIB" = x; then
                   6532:     RANLIB=":"
                   6533:   else
                   6534:     case $cross_compiling:$ac_tool_warned in
                   6535: yes:)
                   6536: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6537: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6538: ac_tool_warned=yes ;;
                   6539: esac
                   6540:     RANLIB=$ac_ct_RANLIB
                   6541:   fi
1.14      bertrand 6542: else
1.15      bertrand 6543:   RANLIB="$ac_cv_prog_RANLIB"
                   6544: fi
1.1       bertrand 6545: 
                   6546: 
1.15      bertrand 6547: # Extract the first word of "nawk", so it can be a program name with args.
                   6548: set dummy nawk; ac_word=$2
                   6549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6550: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6551: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6552:   $as_echo_n "(cached) " >&6
                   6553: else
                   6554:   if test -n "$AWK"; then
                   6555:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6556: else
                   6557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6558: for as_dir in $PATH
                   6559: do
                   6560:   IFS=$as_save_IFS
                   6561:   test -z "$as_dir" && as_dir=.
                   6562:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6563:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6564:     ac_cv_prog_AWK="yes"
                   6565:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6566:     break 2
                   6567:   fi
                   6568: done
                   6569:   done
                   6570: IFS=$as_save_IFS
1.1       bertrand 6571: 
1.15      bertrand 6572:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6573: fi
                   6574: fi
                   6575: AWK=$ac_cv_prog_AWK
                   6576: if test -n "$AWK"; then
                   6577:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6578: $as_echo "$AWK" >&6; }
1.1       bertrand 6579: else
1.15      bertrand 6580:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6581: $as_echo "no" >&6; }
                   6582: fi
                   6583: 
1.1       bertrand 6584: 
1.15      bertrand 6585: if test "$AWK" = no; then
1.39      bertrand 6586:    # Extract the first word of "gawk", so it can be a program name with args.
                   6587: set dummy gawk; ac_word=$2
                   6588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6589: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6590: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6591:   $as_echo_n "(cached) " >&6
                   6592: else
                   6593:   if test -n "$AWK"; then
                   6594:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6595: else
                   6596: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6597: for as_dir in $PATH
                   6598: do
                   6599:   IFS=$as_save_IFS
                   6600:   test -z "$as_dir" && as_dir=.
                   6601:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6602:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6603:     ac_cv_prog_AWK="yes"
                   6604:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6605:     break 2
                   6606:   fi
                   6607: done
                   6608:   done
                   6609: IFS=$as_save_IFS
                   6610: 
                   6611:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6612: fi
                   6613: fi
                   6614: AWK=$ac_cv_prog_AWK
                   6615: if test -n "$AWK"; then
                   6616:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6617: $as_echo "$AWK" >&6; }
                   6618: else
                   6619:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6620: $as_echo "no" >&6; }
                   6621: fi
                   6622: 
                   6623: 
                   6624:    if test "$AWK" = no; then
                   6625:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6626:    fi
1.1       bertrand 6627: fi
                   6628: 
1.15      bertrand 6629: # Extract the first word of "sed", so it can be a program name with args.
                   6630: set dummy sed; ac_word=$2
                   6631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6632: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6633: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6634:   $as_echo_n "(cached) " >&6
                   6635: else
                   6636:   if test -n "$SED"; then
                   6637:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6638: else
                   6639: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6640: for as_dir in $PATH
                   6641: do
                   6642:   IFS=$as_save_IFS
                   6643:   test -z "$as_dir" && as_dir=.
                   6644:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6645:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6646:     ac_cv_prog_SED="yes"
                   6647:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6648:     break 2
                   6649:   fi
                   6650: done
1.14      bertrand 6651:   done
1.15      bertrand 6652: IFS=$as_save_IFS
1.1       bertrand 6653: 
1.15      bertrand 6654:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6655: fi
1.15      bertrand 6656: fi
                   6657: SED=$ac_cv_prog_SED
                   6658: if test -n "$SED"; then
                   6659:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6660: $as_echo "$SED" >&6; }
                   6661: else
                   6662:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6663: $as_echo "no" >&6; }
1.14      bertrand 6664: fi
1.1       bertrand 6665: 
                   6666: 
1.15      bertrand 6667: if test "$SED" = no; then
1.36      bertrand 6668:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6669: fi
1.14      bertrand 6670: 
1.15      bertrand 6671: if test "$TEX_SUPPORT" = guessed; then
                   6672:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6673: 
1.15      bertrand 6674:    # Extract the first word of "tex", so it can be a program name with args.
                   6675: set dummy tex; ac_word=$2
                   6676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6677: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6678: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6679:   $as_echo_n "(cached) " >&6
1.1       bertrand 6680: else
1.15      bertrand 6681:   if test -n "$TEX"; then
                   6682:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6683: else
1.15      bertrand 6684: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6685: for as_dir in $PATH
                   6686: do
                   6687:   IFS=$as_save_IFS
                   6688:   test -z "$as_dir" && as_dir=.
                   6689:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6690:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6691:     ac_cv_prog_TEX="yes"
                   6692:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6693:     break 2
                   6694:   fi
                   6695: done
                   6696:   done
                   6697: IFS=$as_save_IFS
1.1       bertrand 6698: 
1.15      bertrand 6699:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6700: fi
                   6701: fi
1.15      bertrand 6702: TEX=$ac_cv_prog_TEX
                   6703: if test -n "$TEX"; then
                   6704:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6705: $as_echo "$TEX" >&6; }
                   6706: else
                   6707:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6708: $as_echo "no" >&6; }
1.1       bertrand 6709: fi
1.14      bertrand 6710: 
                   6711: 
1.15      bertrand 6712:    if test "$TEX" = no; then
                   6713:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6714: Download at http://tex.loria.fr/
                   6715: " >&5
                   6716: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6717: Download at http://tex.loria.fr/
                   6718: " >&2;}
                   6719:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6720:    fi
1.14      bertrand 6721: 
1.15      bertrand 6722:    # Extract the first word of "latex", so it can be a program name with args.
                   6723: set dummy latex; ac_word=$2
                   6724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6725: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6726: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6727:   $as_echo_n "(cached) " >&6
1.1       bertrand 6728: else
1.15      bertrand 6729:   if test -n "$LATEX"; then
                   6730:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6731: else
1.15      bertrand 6732: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6733: for as_dir in $PATH
                   6734: do
                   6735:   IFS=$as_save_IFS
                   6736:   test -z "$as_dir" && as_dir=.
                   6737:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6738:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6739:     ac_cv_prog_LATEX="yes"
                   6740:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6741:     break 2
                   6742:   fi
                   6743: done
                   6744:   done
                   6745: IFS=$as_save_IFS
1.1       bertrand 6746: 
1.15      bertrand 6747:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6748: fi
                   6749: fi
1.15      bertrand 6750: LATEX=$ac_cv_prog_LATEX
                   6751: if test -n "$LATEX"; then
                   6752:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6753: $as_echo "$LATEX" >&6; }
                   6754: else
                   6755:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6756: $as_echo "no" >&6; }
                   6757: fi
1.14      bertrand 6758: 
1.1       bertrand 6759: 
1.15      bertrand 6760:    if test "$LATEX" = no; then
                   6761:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6762: Download at http://tex.loria.fr/
                   6763: " >&5
                   6764: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6765: Download at http://tex.loria.fr/
                   6766: " >&2;}
                   6767:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6768:    fi
1.1       bertrand 6769: 
1.15      bertrand 6770:    # Extract the first word of "dvips", so it can be a program name with args.
                   6771: set dummy dvips; ac_word=$2
                   6772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6773: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6774: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6775:   $as_echo_n "(cached) " >&6
                   6776: else
                   6777:   if test -n "$DVIPS"; then
                   6778:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6779: else
                   6780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6781: for as_dir in $PATH
                   6782: do
                   6783:   IFS=$as_save_IFS
                   6784:   test -z "$as_dir" && as_dir=.
                   6785:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6786:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6787:     ac_cv_prog_DVIPS="yes"
                   6788:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6789:     break 2
                   6790:   fi
                   6791: done
                   6792:   done
                   6793: IFS=$as_save_IFS
1.1       bertrand 6794: 
1.15      bertrand 6795:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6796: fi
1.1       bertrand 6797: fi
1.15      bertrand 6798: DVIPS=$ac_cv_prog_DVIPS
                   6799: if test -n "$DVIPS"; then
                   6800:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6801: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6802: else
1.15      bertrand 6803:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6804: $as_echo "no" >&6; }
                   6805: fi
1.1       bertrand 6806: 
                   6807: 
1.15      bertrand 6808:    if test "$DVIPS" = no; then
                   6809:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6810: Download at http://tex.loria.fr/
                   6811: " >&5
                   6812: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6813: Download at http://tex.loria.fr/
                   6814: " >&2;}
                   6815:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6816:    fi
1.1       bertrand 6817: 
1.15      bertrand 6818:    # Extract the first word of "gs", so it can be a program name with args.
                   6819: set dummy gs; ac_word=$2
                   6820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6821: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6822: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6823:   $as_echo_n "(cached) " >&6
                   6824: else
                   6825:   if test -n "$GS"; then
                   6826:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6827: else
1.15      bertrand 6828: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6829: for as_dir in $PATH
                   6830: do
                   6831:   IFS=$as_save_IFS
                   6832:   test -z "$as_dir" && as_dir=.
                   6833:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6834:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6835:     ac_cv_prog_GS="yes"
                   6836:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6837:     break 2
                   6838:   fi
                   6839: done
                   6840:   done
                   6841: IFS=$as_save_IFS
1.1       bertrand 6842: 
1.15      bertrand 6843:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6844: fi
                   6845: fi
                   6846: GS=$ac_cv_prog_GS
                   6847: if test -n "$GS"; then
                   6848:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6849: $as_echo "$GS" >&6; }
                   6850: else
                   6851:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6852: $as_echo "no" >&6; }
1.1       bertrand 6853: fi
                   6854: 
1.15      bertrand 6855: 
                   6856:    if test "$GS" = no; then
                   6857:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6858: Download at http://ftp.lip6.fr/
                   6859: " >&5
                   6860: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6861: Download at http://ftp.lip6.fr/
                   6862: " >&2;}
                   6863:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6864:    fi
                   6865: 
                   6866:    # Extract the first word of "gv", so it can be a program name with args.
                   6867: set dummy gv; ac_word=$2
                   6868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6869: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6870: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6871:   $as_echo_n "(cached) " >&6
                   6872: else
                   6873:   if test -n "$GV"; then
                   6874:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6875: else
                   6876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6877: for as_dir in $PATH
                   6878: do
                   6879:   IFS=$as_save_IFS
                   6880:   test -z "$as_dir" && as_dir=.
                   6881:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6882:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6883:     ac_cv_prog_GV="yes"
                   6884:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6885:     break 2
                   6886:   fi
                   6887: done
1.14      bertrand 6888:   done
1.15      bertrand 6889: IFS=$as_save_IFS
1.1       bertrand 6890: 
1.15      bertrand 6891:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6892: fi
1.1       bertrand 6893: fi
1.15      bertrand 6894: GV=$ac_cv_prog_GV
                   6895: if test -n "$GV"; then
                   6896:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6897: $as_echo "$GV" >&6; }
                   6898: else
                   6899:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6900: $as_echo "no" >&6; }
1.1       bertrand 6901: fi
1.14      bertrand 6902: 
                   6903: 
1.15      bertrand 6904:    if test "$GV" = no; then
                   6905:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6906: Download at http://ftp.lip6.fr/
                   6907: " >&5
                   6908: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6909: Download at http://ftp.lip6.fr/
                   6910: " >&2;}
                   6911:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6912:    fi
1.1       bertrand 6913: else
1.15      bertrand 6914:    if test "$TEX_SUPPORT" = no; then
                   6915:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6916:    else
                   6917:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6918:    fi
1.1       bertrand 6919: fi
                   6920: 
1.15      bertrand 6921: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6922:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6923: set dummy gnuplot; ac_word=$2
                   6924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6925: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6926: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6927:   $as_echo_n "(cached) " >&6
1.14      bertrand 6928: else
1.15      bertrand 6929:   if test -n "$GNUPLOT_P"; then
                   6930:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6931: else
1.15      bertrand 6932: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6933: for as_dir in $PATH
                   6934: do
                   6935:   IFS=$as_save_IFS
                   6936:   test -z "$as_dir" && as_dir=.
                   6937:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6938:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6939:     ac_cv_prog_GNUPLOT_P="yes"
                   6940:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6941:     break 2
                   6942:   fi
                   6943: done
                   6944:   done
                   6945: IFS=$as_save_IFS
1.1       bertrand 6946: 
1.15      bertrand 6947:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6948: fi
                   6949: fi
1.15      bertrand 6950: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6951: if test -n "$GNUPLOT_P"; then
                   6952:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6953: $as_echo "$GNUPLOT_P" >&6; }
                   6954: else
                   6955:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6956: $as_echo "no" >&6; }
1.1       bertrand 6957: fi
                   6958: 
                   6959: 
1.15      bertrand 6960:    if test "$GNUPLOT_P" = no; then
                   6961:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6962: Download at http://www.gnuplot.vt.edu/
                   6963: " >&5
                   6964: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6965: Download at http://www.gnuplot.vt.edu/
                   6966: " >&2;}
                   6967:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6968:    else
                   6969:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6970:    fi
                   6971: else
                   6972:    if test "$GNUPLOT_SUPPORT" = no; then
                   6973:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6974:    else
                   6975:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6976:    fi
                   6977: fi
1.1       bertrand 6978: 
1.15      bertrand 6979: if test "$VIM_SUPPORT" = guessed; then
                   6980:    # Extract the first word of "vim", so it can be a program name with args.
                   6981: set dummy vim; ac_word=$2
                   6982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6983: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6984: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 6985:   $as_echo_n "(cached) " >&6
1.1       bertrand 6986: else
1.15      bertrand 6987:   if test -n "$VIM"; then
                   6988:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6989: else
1.15      bertrand 6990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6991: for as_dir in $PATH
                   6992: do
                   6993:   IFS=$as_save_IFS
                   6994:   test -z "$as_dir" && as_dir=.
                   6995:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6996:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6997:     ac_cv_prog_VIM="yes"
                   6998:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6999:     break 2
                   7000:   fi
                   7001: done
                   7002:   done
                   7003: IFS=$as_save_IFS
1.1       bertrand 7004: 
1.15      bertrand 7005:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 7006: fi
                   7007: fi
1.15      bertrand 7008: VIM=$ac_cv_prog_VIM
                   7009: if test -n "$VIM"; then
                   7010:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   7011: $as_echo "$VIM" >&6; }
1.1       bertrand 7012: else
1.15      bertrand 7013:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7014: $as_echo "no" >&6; }
                   7015: fi
1.1       bertrand 7016: 
                   7017: 
1.15      bertrand 7018:    if test "$VIM" = no; then
                   7019:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   7020: Download at http://www.vim.org/
                   7021: " >&5
                   7022: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   7023: Download at http://www.vim.org/
                   7024: " >&2;}
                   7025:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7026:    else
                   7027:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7028:    fi
1.1       bertrand 7029: else
1.15      bertrand 7030:    if test "$VIM_SUPPORT" = no; then
                   7031:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7032:    else
                   7033:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7034:    fi
1.1       bertrand 7035: fi
                   7036: 
1.14      bertrand 7037: 
                   7038: 
1.1       bertrand 7039: 
                   7040: 
1.15      bertrand 7041: 
                   7042: 
                   7043: 
                   7044: 
                   7045: 
                   7046: 
                   7047: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7048: 
                   7049: 
                   7050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7051: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7052: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7053:   $as_echo_n "(cached) " >&6
1.1       bertrand 7054: else
1.15      bertrand 7055:   ac_check_lib_save_LIBS=$LIBS
                   7056: LIBS="-lm  $LIBS"
                   7057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7058: /* end confdefs.h.  */
1.15      bertrand 7059: 
                   7060: 
1.1       bertrand 7061: int
                   7062: main ()
                   7063: {
1.15      bertrand 7064: return main ();
1.1       bertrand 7065:   ;
                   7066:   return 0;
                   7067: }
                   7068: _ACEOF
1.15      bertrand 7069: if ac_fn_c_try_link "$LINENO"; then :
                   7070:   ac_cv_lib_m_main=yes
1.1       bertrand 7071: else
1.15      bertrand 7072:   ac_cv_lib_m_main=no
                   7073: fi
                   7074: rm -f core conftest.err conftest.$ac_objext \
                   7075:     conftest$ac_exeext conftest.$ac_ext
                   7076: LIBS=$ac_check_lib_save_LIBS
                   7077: fi
                   7078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7079: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7080: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7081:   cat >>confdefs.h <<_ACEOF
                   7082: #define HAVE_LIBM 1
                   7083: _ACEOF
1.14      bertrand 7084: 
1.15      bertrand 7085:   LIBS="-lm $LIBS"
1.1       bertrand 7086: 
1.15      bertrand 7087: else
1.36      bertrand 7088:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7089: fi
                   7090: 
1.87      bertrand 7091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
                   7092: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
                   7093: if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
                   7094:   $as_echo_n "(cached) " >&6
                   7095: else
                   7096:   ac_check_lib_save_LIBS=$LIBS
                   7097: LIBS="-lc  $LIBS"
                   7098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7099: /* end confdefs.h.  */
                   7100: 
                   7101: /* Override any GCC internal prototype to avoid an error.
                   7102:    Use char because int might match the return type of a GCC
                   7103:    builtin and then its argument prototype would still apply.  */
                   7104: #ifdef __cplusplus
                   7105: extern "C"
                   7106: #endif
                   7107: char pthread_mutex_init ();
                   7108: int
                   7109: main ()
                   7110: {
                   7111: return pthread_mutex_init ();
                   7112:   ;
                   7113:   return 0;
                   7114: }
                   7115: _ACEOF
                   7116: if ac_fn_c_try_link "$LINENO"; then :
                   7117:   ac_cv_lib_c_pthread_mutex_init=yes
                   7118: else
                   7119:   ac_cv_lib_c_pthread_mutex_init=no
                   7120: fi
                   7121: rm -f core conftest.err conftest.$ac_objext \
                   7122:     conftest$ac_exeext conftest.$ac_ext
                   7123: LIBS=$ac_check_lib_save_LIBS
                   7124: fi
                   7125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
                   7126: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
                   7127: if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
                   7128:   cat >>confdefs.h <<_ACEOF
                   7129: #define HAVE_LIBC 1
                   7130: _ACEOF
                   7131: 
                   7132:   LIBS="-lc $LIBS"
                   7133: 
                   7134: else
                   7135:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15      bertrand 7136: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7137: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7138:   $as_echo_n "(cached) " >&6
1.1       bertrand 7139: else
1.15      bertrand 7140:   ac_check_lib_save_LIBS=$LIBS
                   7141: LIBS="-lpthread  $LIBS"
                   7142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7143: /* end confdefs.h.  */
1.15      bertrand 7144: 
                   7145: 
1.14      bertrand 7146: int
                   7147: main ()
                   7148: {
1.15      bertrand 7149: return main ();
1.14      bertrand 7150:   ;
                   7151:   return 0;
                   7152: }
                   7153: _ACEOF
1.15      bertrand 7154: if ac_fn_c_try_link "$LINENO"; then :
                   7155:   ac_cv_lib_pthread_main=yes
                   7156: else
                   7157:   ac_cv_lib_pthread_main=no
                   7158: fi
                   7159: rm -f core conftest.err conftest.$ac_objext \
                   7160:     conftest$ac_exeext conftest.$ac_ext
                   7161: LIBS=$ac_check_lib_save_LIBS
                   7162: fi
                   7163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7164: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7165: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7166:   cat >>confdefs.h <<_ACEOF
                   7167: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7168: _ACEOF
                   7169: 
1.15      bertrand 7170:   LIBS="-lpthread $LIBS"
                   7171: 
1.1       bertrand 7172: else
1.36      bertrand 7173:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7174: fi
1.14      bertrand 7175: 
1.87      bertrand 7176: fi
                   7177: 
1.1       bertrand 7178: 
1.33      bertrand 7179: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7180: #include <sys/sem.h>
                   7181: 
                   7182: "
1.57      bertrand 7183: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7184:   SEMUN=-DUNION_SEMUN
                   7185: else
                   7186:   SEMUN=-UUNION_SEMUN
                   7187: fi
                   7188: 
                   7189: 
1.34      bertrand 7190: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7191: #include <sys/types.h>
1.34      bertrand 7192: #include <netinet/in.h>
                   7193: 
                   7194: "
1.57      bertrand 7195: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7196:   IPV6=-DIPV6
                   7197: else
                   7198:   IPV6=-UIPV6
                   7199: fi
                   7200: 
                   7201: 
1.15      bertrand 7202: if test "$CYGWIN" != yes; then
                   7203:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7204: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7205: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7206:   $as_echo_n "(cached) " >&6
1.1       bertrand 7207: else
1.15      bertrand 7208:   ac_check_lib_save_LIBS=$LIBS
                   7209: LIBS="-ldl  $LIBS"
                   7210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7211: /* end confdefs.h.  */
                   7212: 
1.15      bertrand 7213: /* Override any GCC internal prototype to avoid an error.
                   7214:    Use char because int might match the return type of a GCC
                   7215:    builtin and then its argument prototype would still apply.  */
                   7216: #ifdef __cplusplus
                   7217: extern "C"
                   7218: #endif
                   7219: char dlopen ();
1.1       bertrand 7220: int
                   7221: main ()
                   7222: {
1.15      bertrand 7223: return dlopen ();
1.1       bertrand 7224:   ;
                   7225:   return 0;
                   7226: }
                   7227: _ACEOF
1.15      bertrand 7228: if ac_fn_c_try_link "$LINENO"; then :
                   7229:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7230: else
1.15      bertrand 7231:   ac_cv_lib_dl_dlopen=no
                   7232: fi
                   7233: rm -f core conftest.err conftest.$ac_objext \
                   7234:     conftest$ac_exeext conftest.$ac_ext
                   7235: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7236: fi
1.15      bertrand 7237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7238: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7239: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7240:   LIBS="$LIBS -ldl"
1.14      bertrand 7241: else
1.15      bertrand 7242:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7243: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7244: fi
                   7245: 
1.14      bertrand 7246: fi
1.1       bertrand 7247: 
1.15      bertrand 7248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7249: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7250: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7251:   $as_echo_n "(cached) " >&6
                   7252: else
                   7253:   ac_check_lib_save_LIBS=$LIBS
                   7254: LIBS="-lrt  $LIBS"
                   7255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7256: /* end confdefs.h.  */
1.15      bertrand 7257: 
                   7258: /* Override any GCC internal prototype to avoid an error.
                   7259:    Use char because int might match the return type of a GCC
                   7260:    builtin and then its argument prototype would still apply.  */
                   7261: #ifdef __cplusplus
                   7262: extern "C"
                   7263: #endif
                   7264: char nanosleep ();
1.1       bertrand 7265: int
                   7266: main ()
                   7267: {
1.15      bertrand 7268: return nanosleep ();
1.1       bertrand 7269:   ;
                   7270:   return 0;
                   7271: }
                   7272: _ACEOF
1.15      bertrand 7273: if ac_fn_c_try_link "$LINENO"; then :
                   7274:   ac_cv_lib_rt_nanosleep=yes
                   7275: else
                   7276:   ac_cv_lib_rt_nanosleep=no
                   7277: fi
                   7278: rm -f core conftest.err conftest.$ac_objext \
                   7279:     conftest$ac_exeext conftest.$ac_ext
                   7280: LIBS=$ac_check_lib_save_LIBS
                   7281: fi
                   7282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7283: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7284: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7285:   LIBS="$LIBS -lrt"
1.1       bertrand 7286: else
1.15      bertrand 7287:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7288: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7289: fi
1.1       bertrand 7290: 
                   7291: 
1.15      bertrand 7292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7293: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7294: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7295:   $as_echo_n "(cached) " >&6
1.1       bertrand 7296: else
1.15      bertrand 7297:   ac_check_lib_save_LIBS=$LIBS
                   7298: LIBS="-lsocket  $LIBS"
                   7299: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7300: /* end confdefs.h.  */
1.15      bertrand 7301: 
                   7302: /* Override any GCC internal prototype to avoid an error.
                   7303:    Use char because int might match the return type of a GCC
                   7304:    builtin and then its argument prototype would still apply.  */
                   7305: #ifdef __cplusplus
                   7306: extern "C"
                   7307: #endif
                   7308: char bind ();
1.1       bertrand 7309: int
                   7310: main ()
                   7311: {
1.15      bertrand 7312: return bind ();
1.1       bertrand 7313:   ;
                   7314:   return 0;
                   7315: }
                   7316: _ACEOF
1.15      bertrand 7317: if ac_fn_c_try_link "$LINENO"; then :
                   7318:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7319: else
1.15      bertrand 7320:   ac_cv_lib_socket_bind=no
1.1       bertrand 7321: fi
1.15      bertrand 7322: rm -f core conftest.err conftest.$ac_objext \
                   7323:     conftest$ac_exeext conftest.$ac_ext
                   7324: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7325: fi
1.15      bertrand 7326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7327: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7328: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7329:   LIBS="$LIBS -lsocket"
                   7330: else
                   7331:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7332: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7333: fi
                   7334: 
                   7335: 
1.15      bertrand 7336: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7337: 
                   7338: # Check whether --with-mysql was given.
                   7339: if test "${with_mysql+set}" = set; then :
                   7340:   withval=$with_mysql;
                   7341: else
                   7342:   with_mysql=check
                   7343: fi
1.14      bertrand 7344: 
                   7345: 
1.15      bertrand 7346: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7347:    libMySQLinc="-I/usr/include"
1.30      bertrand 7348:    libMySQLlib="/usr/lib"
1.14      bertrand 7349: 
1.15      bertrand 7350:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7351: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7352:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7353:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7354:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7355: /* end confdefs.h.  */
1.15      bertrand 7356: #include "mysql.h"
1.1       bertrand 7357: int
                   7358: main ()
                   7359: {
1.15      bertrand 7360: 
1.1       bertrand 7361:   ;
                   7362:   return 0;
                   7363: }
                   7364: _ACEOF
1.15      bertrand 7365: if ac_fn_c_try_compile "$LINENO"; then :
                   7366:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7367: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7368:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7369: else
1.15      bertrand 7370:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7371: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7372: fi
1.14      bertrand 7373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7374:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7375: 
1.15      bertrand 7376:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7377:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7378: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7379:        saved_CFLAGS="$CFLAGS"
                   7380:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7381:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7382: /* end confdefs.h.  */
1.15      bertrand 7383: #include "mysql.h"
1.1       bertrand 7384: int
                   7385: main ()
                   7386: {
                   7387: 
                   7388:   ;
                   7389:   return 0;
                   7390: }
                   7391: _ACEOF
1.15      bertrand 7392: if ac_fn_c_try_compile "$LINENO"; then :
                   7393:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7394: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7395:                        libMySQLinc=$libMySQLinc
                   7396: else
                   7397:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7398: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7399: fi
                   7400: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7401:        CFLAGS=$saved_CFLAGS
                   7402:        libMySQLinc=$libMySQLinc/mysql
                   7403:    fi
                   7404: 
                   7405:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7406:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7407: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7408:        saved_CFLAGS="$CFLAGS"
                   7409:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7410:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7411: /* end confdefs.h.  */
1.15      bertrand 7412: #include "mysql.h"
1.1       bertrand 7413: int
                   7414: main ()
                   7415: {
                   7416: 
                   7417:   ;
                   7418:   return 0;
                   7419: }
                   7420: _ACEOF
1.15      bertrand 7421: if ac_fn_c_try_compile "$LINENO"; then :
                   7422:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7423: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7424:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7425: else
1.15      bertrand 7426:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7427: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7428: fi
                   7429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7430:        CFLAGS=$saved_CFLAGS
                   7431:        libMySQLinc=$libMySQLinc/../local/include
                   7432:        libMySQLlib=$libMySQLlib/../local/lib
                   7433:    fi
1.1       bertrand 7434: 
1.15      bertrand 7435:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7436:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7437: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7438:        saved_CFLAGS="$CFLAGS"
                   7439:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7440:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7441: /* end confdefs.h.  */
1.15      bertrand 7442: #include "mysql.h"
1.1       bertrand 7443: int
                   7444: main ()
                   7445: {
                   7446: 
                   7447:   ;
                   7448:   return 0;
                   7449: }
                   7450: _ACEOF
1.15      bertrand 7451: if ac_fn_c_try_compile "$LINENO"; then :
                   7452:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7453: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7454:                        libMySQLinc=$libMySQLinc/mysql
                   7455: else
                   7456:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7457: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7458: fi
                   7459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7460:        CFLAGS=$saved_CFLAGS
                   7461:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7462:        libMySQLlib=$libMySQLlib/../local/lib
                   7463:    fi
                   7464: else
                   7465:    if test "x$with_mysql" != xno; then
                   7466:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7467:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7468: 
                   7469:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7470: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7471:        saved_CFLAGS="$CFLAGS"
                   7472:        CFLAGS="$CFLAGS $libMySQLinc"
                   7473:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7474: /* end confdefs.h.  */
1.15      bertrand 7475: #include "mysql.h"
1.1       bertrand 7476: int
                   7477: main ()
                   7478: {
                   7479: 
                   7480:   ;
                   7481:   return 0;
                   7482: }
                   7483: _ACEOF
1.15      bertrand 7484: if ac_fn_c_try_compile "$LINENO"; then :
                   7485:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7486: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7487:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7488: else
1.15      bertrand 7489:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7490: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7491: fi
                   7492: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7493:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7494: 
1.15      bertrand 7495:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7496:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7497: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7498:            saved_CFLAGS="$CFLAGS"
                   7499:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7500:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7501: /* end confdefs.h.  */
1.15      bertrand 7502: #include "mysql.h"
1.1       bertrand 7503: int
                   7504: main ()
                   7505: {
                   7506: 
                   7507:   ;
                   7508:   return 0;
                   7509: }
                   7510: _ACEOF
1.15      bertrand 7511: if ac_fn_c_try_compile "$LINENO"; then :
                   7512:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7513: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7514:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7515: else
1.15      bertrand 7516:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7517: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7518: fi
                   7519: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7520:            CFLAGS=$saved_CFLAGS
                   7521:            libMySQLinc=$libMySQLinc/mysql
                   7522:        fi
                   7523:    else
                   7524:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7525:    fi
                   7526: fi
1.14      bertrand 7527: 
1.15      bertrand 7528: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7529:    MYSQL_LIB=no
1.14      bertrand 7530: 
1.15      bertrand 7531:    if test $MYSQL_LIB = no; then
                   7532:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7533: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7534:        saved_LIBS="$LIBS"
1.30      bertrand 7535:        if test $STATIC = no; then
                   7536:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7537:        else
                   7538:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7539:        fi
1.15      bertrand 7540:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7541: /* end confdefs.h.  */
1.15      bertrand 7542: #include "mysql.h"
1.1       bertrand 7543: int
                   7544: main ()
                   7545: {
1.15      bertrand 7546: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7547:   ;
                   7548:   return 0;
                   7549: }
                   7550: _ACEOF
1.15      bertrand 7551: if ac_fn_c_try_link "$LINENO"; then :
                   7552:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7553: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7554: else
1.15      bertrand 7555:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7556: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7557: fi
                   7558: rm -f core conftest.err conftest.$ac_objext \
                   7559:     conftest$ac_exeext conftest.$ac_ext
                   7560:        LIBS=$saved_LIBS;
1.30      bertrand 7561:        if test $STATIC = no; then
                   7562:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7563:        else
                   7564:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7565:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7566:        fi
1.15      bertrand 7567:    fi
1.14      bertrand 7568: 
1.15      bertrand 7569:    if test $MYSQL_LIB = no; then
                   7570:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7571:    fi
1.14      bertrand 7572: fi
1.15      bertrand 7573: 
                   7574: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7575:    libMySQLinc=
                   7576:    libMySQLlib=
1.1       bertrand 7577: fi
1.14      bertrand 7578: 
                   7579: 
                   7580: 
1.1       bertrand 7581: 
                   7582: 
1.15      bertrand 7583: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7584: 
                   7585: # Check whether --with-postgresql was given.
                   7586: if test "${with_postgresql+set}" = set; then :
                   7587:   withval=$with_postgresql;
1.14      bertrand 7588: else
1.15      bertrand 7589:   with_postgresql=check
                   7590: fi
                   7591: 
                   7592: 
                   7593: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7594: # no [--without], valeur [--with=valeur].
                   7595: 
                   7596: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7597:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7598:    libPgSQLlib="/usr/lib"
1.15      bertrand 7599: 
                   7600:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7601: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7602:    saved_CFLAGS="$CFLAGS"
                   7603:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7604:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7605: /* end confdefs.h.  */
1.15      bertrand 7606: #include "libpq-fe.h"
1.1       bertrand 7607: int
                   7608: main ()
                   7609: {
1.15      bertrand 7610: 
1.1       bertrand 7611:   ;
                   7612:   return 0;
                   7613: }
                   7614: _ACEOF
1.15      bertrand 7615: if ac_fn_c_try_compile "$LINENO"; then :
                   7616:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7617: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7618: else
1.15      bertrand 7619:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7620: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7621: fi
1.14      bertrand 7622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7623:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7624: 
1.15      bertrand 7625:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7626:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7627: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7628:        saved_CFLAGS="$CFLAGS"
                   7629:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7630:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7631: /* end confdefs.h.  */
1.15      bertrand 7632: #include "libpq-fe.h"
1.1       bertrand 7633: int
                   7634: main ()
                   7635: {
                   7636: 
                   7637:   ;
                   7638:   return 0;
                   7639: }
                   7640: _ACEOF
1.15      bertrand 7641: if ac_fn_c_try_compile "$LINENO"; then :
                   7642:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7643: $as_echo "yes" >&6; };
                   7644:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7645: else
                   7646:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7647: $as_echo "no" >&6; };
                   7648:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7649: fi
                   7650: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7651:        CFLAGS=$saved_CFLAGS
                   7652:        libPgSQLinc=$libPgSQLinc/postgresql
                   7653:    fi
                   7654: 
                   7655:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7656:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7657: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7658:        saved_CFLAGS="$CFLAGS"
                   7659:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7660:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7661: /* end confdefs.h.  */
1.15      bertrand 7662: #include "libpq-fe.h"
1.1       bertrand 7663: int
                   7664: main ()
                   7665: {
                   7666: 
                   7667:   ;
                   7668:   return 0;
                   7669: }
                   7670: _ACEOF
1.15      bertrand 7671: if ac_fn_c_try_compile "$LINENO"; then :
                   7672:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7673: $as_echo "yes" >&6; };
                   7674:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7675: else
1.15      bertrand 7676:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7677: $as_echo "no" >&6; };
                   7678:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7679: fi
                   7680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7681:        CFLAGS=$saved_CFLAGS
                   7682:        libPgSQLinc=$libPgSQLinc/pgsql
                   7683:    fi
1.1       bertrand 7684: 
1.15      bertrand 7685:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7686:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7687: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7688:        saved_CFLAGS="$CFLAGS"
                   7689:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7690:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7691: /* end confdefs.h.  */
1.15      bertrand 7692: #include "libpq-fe.h"
1.1       bertrand 7693: int
                   7694: main ()
                   7695: {
                   7696: 
                   7697:   ;
                   7698:   return 0;
                   7699: }
                   7700: _ACEOF
1.15      bertrand 7701: if ac_fn_c_try_compile "$LINENO"; then :
                   7702:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7703: $as_echo "yes" >&6; };
                   7704:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7705: else
                   7706:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7707: $as_echo "no" >&6; };
                   7708:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7709: fi
                   7710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7711:        CFLAGS=$saved_CFLAGS
                   7712:        libPgSQLinc=$libPgSQLinc/../local/include
                   7713:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7714:    fi
                   7715: 
                   7716:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7717:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7718: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7719:        saved_CFLAGS="$CFLAGS"
                   7720:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7721:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7722: /* end confdefs.h.  */
1.15      bertrand 7723: #include "libpq-fe.h"
1.1       bertrand 7724: int
                   7725: main ()
                   7726: {
                   7727: 
                   7728:   ;
                   7729:   return 0;
                   7730: }
                   7731: _ACEOF
1.15      bertrand 7732: if ac_fn_c_try_compile "$LINENO"; then :
                   7733:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7734: $as_echo "yes" >&6; };
                   7735:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7736: else
1.15      bertrand 7737:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7738: $as_echo "no" >&6; };
                   7739:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7740: fi
                   7741: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7742:        CFLAGS=$saved_CFLAGS
                   7743:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7744:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7745:    fi
1.14      bertrand 7746: 
1.15      bertrand 7747:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7748:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7749: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7750:        saved_CFLAGS="$CFLAGS"
                   7751:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7752:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7753: /* end confdefs.h.  */
1.15      bertrand 7754: #include "libpq-fe.h"
1.1       bertrand 7755: int
                   7756: main ()
                   7757: {
                   7758: 
                   7759:   ;
                   7760:   return 0;
                   7761: }
                   7762: _ACEOF
1.15      bertrand 7763: if ac_fn_c_try_compile "$LINENO"; then :
                   7764:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7765: $as_echo "yes" >&6; };
                   7766:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7767: else
1.15      bertrand 7768:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7769: $as_echo "no" >&6; };
                   7770:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7771: fi
                   7772: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7773:        CFLAGS=$saved_CFLAGS
                   7774:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7775:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7776:    fi
1.14      bertrand 7777: else
1.15      bertrand 7778:    if test "x$with_postgresql" != xno; then
                   7779:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7780:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7781: 
                   7782:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7783: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7784:        saved_CFLAGS="$CFLAGS"
                   7785:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7786:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7787: /* end confdefs.h.  */
1.15      bertrand 7788: #include "libpq-fe.h"
1.1       bertrand 7789: int
                   7790: main ()
                   7791: {
                   7792: 
                   7793:   ;
                   7794:   return 0;
                   7795: }
                   7796: _ACEOF
1.15      bertrand 7797: if ac_fn_c_try_compile "$LINENO"; then :
                   7798:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7799: $as_echo "yes" >&6; };
                   7800:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7801: else
1.15      bertrand 7802:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7803: $as_echo "no" >&6; };
                   7804:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7805: fi
1.15      bertrand 7806: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7807:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7808: 
1.15      bertrand 7809:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7810:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7811: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7812:            saved_CFLAGS="$CFLAGS"
                   7813:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7814:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7815: /* end confdefs.h.  */
1.15      bertrand 7816: #include "libpq-fe.h"
1.1       bertrand 7817: int
                   7818: main ()
                   7819: {
1.15      bertrand 7820: 
1.1       bertrand 7821:   ;
                   7822:   return 0;
                   7823: }
                   7824: _ACEOF
1.15      bertrand 7825: if ac_fn_c_try_compile "$LINENO"; then :
                   7826:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7827: $as_echo "yes" >&6; };
                   7828:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7829: else
1.15      bertrand 7830:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7831: $as_echo "no" >&6; };
                   7832:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7833: fi
                   7834: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7835:            CFLAGS=$saved_CFLAGS
                   7836:            libPgSQLinc=$libPgSQLinc/postgresql
                   7837:        fi
1.14      bertrand 7838: 
1.15      bertrand 7839:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7840:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7841: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7842:            saved_CFLAGS="$CFLAGS"
                   7843:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7844:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7845: /* end confdefs.h.  */
1.15      bertrand 7846: #include "libpq-fe.h"
1.1       bertrand 7847: int
                   7848: main ()
                   7849: {
1.15      bertrand 7850: 
1.1       bertrand 7851:   ;
                   7852:   return 0;
                   7853: }
                   7854: _ACEOF
1.15      bertrand 7855: if ac_fn_c_try_compile "$LINENO"; then :
                   7856:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7857: $as_echo "yes" >&6; };
                   7858:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7859: else
1.15      bertrand 7860:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7861: $as_echo "no" >&6; };
                   7862:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7863: fi
1.15      bertrand 7864: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7865:            CFLAGS=$saved_CFLAGS
                   7866:            libPgSQLinc=$libPgSQLinc/pgsql
                   7867:        fi
                   7868:    else
                   7869:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7870:    fi
1.1       bertrand 7871: fi
                   7872: 
1.15      bertrand 7873: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7874:    POSTGRESQL_LIB=no
1.1       bertrand 7875: 
1.15      bertrand 7876:    if test $POSTGRESQL_LIB = no; then
                   7877:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7878: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7879:        saved_LIBS="$LIBS"
1.30      bertrand 7880:        if test $STATIC = no; then
                   7881:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7882:        else
                   7883:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7884:        fi
1.15      bertrand 7885:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7886: /* end confdefs.h.  */
1.15      bertrand 7887: #include "libpq-fe.h"
1.1       bertrand 7888: int
                   7889: main ()
                   7890: {
1.15      bertrand 7891: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7892:             PQconnectdb(conninfo);
1.1       bertrand 7893:   ;
                   7894:   return 0;
                   7895: }
                   7896: _ACEOF
1.15      bertrand 7897: if ac_fn_c_try_link "$LINENO"; then :
                   7898:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7899: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7900: else
1.15      bertrand 7901:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7902: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7903: fi
                   7904: rm -f core conftest.err conftest.$ac_objext \
                   7905:     conftest$ac_exeext conftest.$ac_ext
                   7906:        LIBS=$saved_LIBS;
1.30      bertrand 7907:        if test $STATIC = no; then
                   7908:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7909:        else
                   7910:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7911:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7912:        fi
1.15      bertrand 7913:    fi
                   7914: fi
                   7915: 
                   7916: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7917:    libPgSQLinc=
                   7918:    libPgSQLlib=
                   7919: fi
                   7920: 
                   7921: 
                   7922: 
                   7923: 
1.14      bertrand 7924: 
1.40      bertrand 7925: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7926: # no [--without], valeur [--with=valeur].
                   7927: 
                   7928: # Check whether --with-bourne_shell was given.
                   7929: if test "${with_bourne_shell+set}" = set; then :
                   7930:   withval=$with_bourne_shell;
                   7931: else
                   7932:   with_bourne_shell=no
                   7933: fi
                   7934: 
                   7935: 
                   7936: if test "x$with_bourne_shell" = xyes; then
                   7937:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7938: fi
                   7939: 
                   7940: if test "x$with_bourne_shell" = xno; then
                   7941:    if test $(uname) = "OS/2"; then
1.86      bertrand 7942:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
                   7943: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40      bertrand 7944:    fi
                   7945: 
                   7946:    BSH_PATH=
                   7947: else
                   7948:    if test ! -x $with_bourne_shell; then
                   7949:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7950:    fi
                   7951: 
                   7952:    if test $(uname) = "OS/2"; then
1.41      bertrand 7953:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7954:                sed -e '1,$s/\//\\\\\\\\/g')
                   7955:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7956:    else
                   7957:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7958: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7959:        BSH_PATH=
                   7960:    fi
                   7961: fi
                   7962: 
1.15      bertrand 7963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7964: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7965: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7966:   $as_echo_n "(cached) " >&6
                   7967: else
                   7968:   if test -z "$GREP"; then
                   7969:   ac_path_GREP_found=false
                   7970:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7971:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7972: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7973: do
                   7974:   IFS=$as_save_IFS
                   7975:   test -z "$as_dir" && as_dir=.
                   7976:     for ac_prog in grep ggrep; do
                   7977:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7978:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7979:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7980: # Check for GNU ac_path_GREP and select it if it is found.
                   7981:   # Check for GNU $ac_path_GREP
                   7982: case `"$ac_path_GREP" --version 2>&1` in
                   7983: *GNU*)
                   7984:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7985: *)
                   7986:   ac_count=0
                   7987:   $as_echo_n 0123456789 >"conftest.in"
                   7988:   while :
                   7989:   do
                   7990:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7991:     mv "conftest.tmp" "conftest.in"
                   7992:     cp "conftest.in" "conftest.nl"
                   7993:     $as_echo 'GREP' >> "conftest.nl"
                   7994:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7995:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7996:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7997:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7998:       # Best one so far, save it but keep looking for a better one
                   7999:       ac_cv_path_GREP="$ac_path_GREP"
                   8000:       ac_path_GREP_max=$ac_count
                   8001:     fi
                   8002:     # 10*(2^10) chars as input seems more than enough
                   8003:     test $ac_count -gt 10 && break
                   8004:   done
                   8005:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8006: esac
1.14      bertrand 8007: 
1.15      bertrand 8008:       $ac_path_GREP_found && break 3
                   8009:     done
                   8010:   done
                   8011:   done
                   8012: IFS=$as_save_IFS
                   8013:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 8014:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8015:   fi
                   8016: else
                   8017:   ac_cv_path_GREP=$GREP
1.1       bertrand 8018: fi
                   8019: 
                   8020: fi
1.15      bertrand 8021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   8022: $as_echo "$ac_cv_path_GREP" >&6; }
                   8023:  GREP="$ac_cv_path_GREP"
                   8024: 
                   8025: 
                   8026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   8027: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 8028: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 8029:   $as_echo_n "(cached) " >&6
                   8030: else
                   8031:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   8032:    then ac_cv_path_EGREP="$GREP -E"
                   8033:    else
                   8034:      if test -z "$EGREP"; then
                   8035:   ac_path_EGREP_found=false
                   8036:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8037:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8038: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8039: do
                   8040:   IFS=$as_save_IFS
                   8041:   test -z "$as_dir" && as_dir=.
                   8042:     for ac_prog in egrep; do
                   8043:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8044:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8045:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8046: # Check for GNU ac_path_EGREP and select it if it is found.
                   8047:   # Check for GNU $ac_path_EGREP
                   8048: case `"$ac_path_EGREP" --version 2>&1` in
                   8049: *GNU*)
                   8050:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8051: *)
                   8052:   ac_count=0
                   8053:   $as_echo_n 0123456789 >"conftest.in"
                   8054:   while :
                   8055:   do
                   8056:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8057:     mv "conftest.tmp" "conftest.in"
                   8058:     cp "conftest.in" "conftest.nl"
                   8059:     $as_echo 'EGREP' >> "conftest.nl"
                   8060:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8061:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8062:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8063:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8064:       # Best one so far, save it but keep looking for a better one
                   8065:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8066:       ac_path_EGREP_max=$ac_count
                   8067:     fi
                   8068:     # 10*(2^10) chars as input seems more than enough
                   8069:     test $ac_count -gt 10 && break
                   8070:   done
                   8071:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8072: esac
                   8073: 
                   8074:       $ac_path_EGREP_found && break 3
                   8075:     done
                   8076:   done
                   8077:   done
                   8078: IFS=$as_save_IFS
                   8079:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8080:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8081:   fi
1.1       bertrand 8082: else
1.15      bertrand 8083:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8084: fi
                   8085: 
1.15      bertrand 8086:    fi
1.1       bertrand 8087: fi
1.15      bertrand 8088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8089: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8090:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8091: 
                   8092: 
1.15      bertrand 8093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8094: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8095: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8096:   $as_echo_n "(cached) " >&6
1.1       bertrand 8097: else
1.15      bertrand 8098:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8099: /* end confdefs.h.  */
                   8100: #include <stdlib.h>
                   8101: #include <stdarg.h>
                   8102: #include <string.h>
                   8103: #include <float.h>
                   8104: 
                   8105: int
                   8106: main ()
                   8107: {
                   8108: 
                   8109:   ;
                   8110:   return 0;
                   8111: }
                   8112: _ACEOF
1.15      bertrand 8113: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8114:   ac_cv_header_stdc=yes
                   8115: else
1.15      bertrand 8116:   ac_cv_header_stdc=no
1.1       bertrand 8117: fi
                   8118: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8119: 
                   8120: if test $ac_cv_header_stdc = yes; then
                   8121:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8122:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8123: /* end confdefs.h.  */
                   8124: #include <string.h>
                   8125: 
                   8126: _ACEOF
                   8127: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8128:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8129: 
1.1       bertrand 8130: else
                   8131:   ac_cv_header_stdc=no
                   8132: fi
                   8133: rm -f conftest*
                   8134: 
                   8135: fi
                   8136: 
                   8137: if test $ac_cv_header_stdc = yes; then
                   8138:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8139:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8140: /* end confdefs.h.  */
                   8141: #include <stdlib.h>
                   8142: 
                   8143: _ACEOF
                   8144: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8145:   $EGREP "free" >/dev/null 2>&1; then :
                   8146: 
1.1       bertrand 8147: else
                   8148:   ac_cv_header_stdc=no
                   8149: fi
                   8150: rm -f conftest*
                   8151: 
                   8152: fi
                   8153: 
                   8154: if test $ac_cv_header_stdc = yes; then
                   8155:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8156:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8157:   :
                   8158: else
1.15      bertrand 8159:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8160: /* end confdefs.h.  */
                   8161: #include <ctype.h>
                   8162: #include <stdlib.h>
                   8163: #if ((' ' & 0x0FF) == 0x020)
                   8164: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8165: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8166: #else
                   8167: # define ISLOWER(c) \
                   8168:           (('a' <= (c) && (c) <= 'i') \
                   8169:             || ('j' <= (c) && (c) <= 'r') \
                   8170:             || ('s' <= (c) && (c) <= 'z'))
                   8171: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8172: #endif
                   8173: 
                   8174: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8175: int
                   8176: main ()
                   8177: {
                   8178:   int i;
                   8179:   for (i = 0; i < 256; i++)
                   8180:     if (XOR (islower (i), ISLOWER (i))
                   8181:    || toupper (i) != TOUPPER (i))
                   8182:       return 2;
                   8183:   return 0;
                   8184: }
                   8185: _ACEOF
1.15      bertrand 8186: if ac_fn_c_try_run "$LINENO"; then :
                   8187: 
1.14      bertrand 8188: else
1.15      bertrand 8189:   ac_cv_header_stdc=no
                   8190: fi
                   8191: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8192:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8193: fi
1.1       bertrand 8194: 
                   8195: fi
                   8196: fi
1.15      bertrand 8197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8198: $as_echo "$ac_cv_header_stdc" >&6; }
                   8199: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8200: 
1.15      bertrand 8201: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8202: 
1.1       bertrand 8203: fi
                   8204: 
1.15      bertrand 8205: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8206: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8207:          inttypes.h stdint.h unistd.h
                   8208: do :
                   8209:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8210: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8211: "
1.36      bertrand 8212: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8213:   cat >>confdefs.h <<_ACEOF
                   8214: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8215: _ACEOF
1.1       bertrand 8216: 
                   8217: fi
                   8218: 
1.15      bertrand 8219: done
                   8220: 
                   8221: 
                   8222: # The cast to long int works around a bug in the HP C Compiler
                   8223: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8224: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8225: # This bug is HP SR number 8606223364.
                   8226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8227: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8228: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8229:   $as_echo_n "(cached) " >&6
                   8230: else
                   8231:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8232: 
                   8233: else
1.15      bertrand 8234:   if test "$ac_cv_type_void_p" = yes; then
                   8235:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8236: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8237: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8238: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8239:    else
                   8240:      ac_cv_sizeof_void_p=0
                   8241:    fi
                   8242: fi
1.1       bertrand 8243: 
                   8244: fi
1.15      bertrand 8245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8246: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8247: 
1.1       bertrand 8248: 
                   8249: 
1.15      bertrand 8250: cat >>confdefs.h <<_ACEOF
                   8251: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8252: _ACEOF
1.1       bertrand 8253: 
1.15      bertrand 8254: 
                   8255: # The cast to long int works around a bug in the HP C Compiler
                   8256: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8257: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8258: # This bug is HP SR number 8606223364.
                   8259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8260: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8261: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8262:   $as_echo_n "(cached) " >&6
                   8263: else
                   8264:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8265: 
                   8266: else
                   8267:   if test "$ac_cv_type_char" = yes; then
                   8268:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8269: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8270: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8271: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8272:    else
                   8273:      ac_cv_sizeof_char=0
                   8274:    fi
                   8275: fi
                   8276: 
1.1       bertrand 8277: fi
1.15      bertrand 8278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8279: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8280: 
                   8281: 
                   8282: 
1.15      bertrand 8283: cat >>confdefs.h <<_ACEOF
                   8284: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8285: _ACEOF
1.1       bertrand 8286: 
                   8287: 
1.15      bertrand 8288: # The cast to long int works around a bug in the HP C Compiler
                   8289: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8290: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8291: # This bug is HP SR number 8606223364.
                   8292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8293: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8294: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8295:   $as_echo_n "(cached) " >&6
                   8296: else
                   8297:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8298: 
1.15      bertrand 8299: else
                   8300:   if test "$ac_cv_type_short_int" = yes; then
                   8301:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8302: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8303: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8304: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8305:    else
                   8306:      ac_cv_sizeof_short_int=0
                   8307:    fi
                   8308: fi
1.1       bertrand 8309: 
1.15      bertrand 8310: fi
                   8311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8312: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8313: 
                   8314: 
                   8315: 
1.15      bertrand 8316: cat >>confdefs.h <<_ACEOF
                   8317: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8318: _ACEOF
1.1       bertrand 8319: 
                   8320: 
1.15      bertrand 8321: # The cast to long int works around a bug in the HP C Compiler
                   8322: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8323: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8324: # This bug is HP SR number 8606223364.
                   8325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8326: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8327: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8328:   $as_echo_n "(cached) " >&6
                   8329: else
                   8330:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8331: 
1.15      bertrand 8332: else
                   8333:   if test "$ac_cv_type_int" = yes; then
                   8334:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8335: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8336: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8337: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8338:    else
                   8339:      ac_cv_sizeof_int=0
                   8340:    fi
                   8341: fi
1.1       bertrand 8342: 
1.15      bertrand 8343: fi
                   8344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8345: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8346: 
                   8347: 
                   8348: 
1.15      bertrand 8349: cat >>confdefs.h <<_ACEOF
                   8350: #define SIZEOF_INT $ac_cv_sizeof_int
                   8351: _ACEOF
1.1       bertrand 8352: 
                   8353: 
1.15      bertrand 8354: # The cast to long int works around a bug in the HP C Compiler
                   8355: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8356: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8357: # This bug is HP SR number 8606223364.
                   8358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8359: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8360: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8361:   $as_echo_n "(cached) " >&6
                   8362: else
                   8363:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8364: 
1.14      bertrand 8365: else
1.15      bertrand 8366:   if test "$ac_cv_type_long_int" = yes; then
                   8367:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8368: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8369: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8370: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8371:    else
                   8372:      ac_cv_sizeof_long_int=0
                   8373:    fi
                   8374: fi
1.1       bertrand 8375: 
                   8376: fi
1.15      bertrand 8377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8378: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8379: 
1.1       bertrand 8380: 
                   8381: 
1.15      bertrand 8382: cat >>confdefs.h <<_ACEOF
                   8383: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8384: _ACEOF
1.15      bertrand 8385: 
                   8386: 
                   8387: # The cast to long int works around a bug in the HP C Compiler
                   8388: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8389: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8390: # This bug is HP SR number 8606223364.
                   8391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8392: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8393: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8394:   $as_echo_n "(cached) " >&6
                   8395: else
                   8396:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8397: 
1.14      bertrand 8398: else
1.15      bertrand 8399:   if test "$ac_cv_type_long_long_int" = yes; then
                   8400:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8401: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8402: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8403: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8404:    else
                   8405:      ac_cv_sizeof_long_long_int=0
                   8406:    fi
                   8407: fi
1.1       bertrand 8408: 
1.14      bertrand 8409: fi
1.15      bertrand 8410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8411: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8412: 
                   8413: 
                   8414: 
                   8415: cat >>confdefs.h <<_ACEOF
                   8416: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8417: _ACEOF
1.1       bertrand 8418: 
                   8419: 
1.15      bertrand 8420: # The cast to long int works around a bug in the HP C Compiler
                   8421: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8422: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8423: # This bug is HP SR number 8606223364.
                   8424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8425: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8426: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8427:   $as_echo_n "(cached) " >&6
                   8428: else
                   8429:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8430: 
                   8431: else
1.15      bertrand 8432:   if test "$ac_cv_type_float" = yes; then
                   8433:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8434: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8435: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8436: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8437:    else
                   8438:      ac_cv_sizeof_float=0
                   8439:    fi
1.14      bertrand 8440: fi
                   8441: 
1.1       bertrand 8442: fi
1.15      bertrand 8443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8444: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8445: 
                   8446: 
                   8447: 
                   8448: cat >>confdefs.h <<_ACEOF
                   8449: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8450: _ACEOF
1.1       bertrand 8451: 
                   8452: 
1.15      bertrand 8453: # The cast to long int works around a bug in the HP C Compiler
                   8454: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8455: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8456: # This bug is HP SR number 8606223364.
                   8457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8458: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8459: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8460:   $as_echo_n "(cached) " >&6
                   8461: else
                   8462:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8463: 
1.15      bertrand 8464: else
                   8465:   if test "$ac_cv_type_double" = yes; then
                   8466:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8467: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8468: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8469: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8470:    else
                   8471:      ac_cv_sizeof_double=0
                   8472:    fi
                   8473: fi
1.1       bertrand 8474: 
1.15      bertrand 8475: fi
                   8476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8477: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8478: 
1.1       bertrand 8479: 
                   8480: 
1.15      bertrand 8481: cat >>confdefs.h <<_ACEOF
                   8482: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8483: _ACEOF
1.15      bertrand 8484: 
                   8485: 
                   8486: # The cast to long int works around a bug in the HP C Compiler
                   8487: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8488: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8489: # This bug is HP SR number 8606223364.
                   8490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8491: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8492: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8493:   $as_echo_n "(cached) " >&6
                   8494: else
                   8495:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8496: 
1.14      bertrand 8497: else
1.15      bertrand 8498:   if test "$ac_cv_type_long_double" = yes; then
                   8499:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8500: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8501: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8502: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8503:    else
                   8504:      ac_cv_sizeof_long_double=0
                   8505:    fi
                   8506: fi
1.1       bertrand 8507: 
                   8508: fi
1.15      bertrand 8509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8510: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8511: 
1.1       bertrand 8512: 
                   8513: 
1.15      bertrand 8514: cat >>confdefs.h <<_ACEOF
                   8515: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8516: _ACEOF
                   8517: 
                   8518: 
1.15      bertrand 8519: 
                   8520: ac_header_dirent=no
                   8521: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8522:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8524: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8525: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8526:   $as_echo_n "(cached) " >&6
1.1       bertrand 8527: else
1.15      bertrand 8528:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8529: /* end confdefs.h.  */
                   8530: #include <sys/types.h>
1.15      bertrand 8531: #include <$ac_hdr>
1.1       bertrand 8532: 
1.15      bertrand 8533: int
                   8534: main ()
                   8535: {
                   8536: if ((DIR *) 0)
                   8537: return 0;
                   8538:   ;
                   8539:   return 0;
                   8540: }
1.1       bertrand 8541: _ACEOF
1.15      bertrand 8542: if ac_fn_c_try_compile "$LINENO"; then :
                   8543:   eval "$as_ac_Header=yes"
1.1       bertrand 8544: else
1.15      bertrand 8545:   eval "$as_ac_Header=no"
                   8546: fi
                   8547: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8548: fi
1.15      bertrand 8549: eval ac_res=\$$as_ac_Header
                   8550:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8551: $as_echo "$ac_res" >&6; }
1.36      bertrand 8552: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8553:   cat >>confdefs.h <<_ACEOF
                   8554: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8555: _ACEOF
1.1       bertrand 8556: 
1.15      bertrand 8557: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8558: fi
                   8559: 
1.15      bertrand 8560: done
                   8561: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8562: if test $ac_header_dirent = dirent.h; then
                   8563:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8564: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8565: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8566:   $as_echo_n "(cached) " >&6
                   8567: else
                   8568:   ac_func_search_save_LIBS=$LIBS
                   8569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8570: /* end confdefs.h.  */
                   8571: 
                   8572: /* Override any GCC internal prototype to avoid an error.
                   8573:    Use char because int might match the return type of a GCC
                   8574:    builtin and then its argument prototype would still apply.  */
                   8575: #ifdef __cplusplus
                   8576: extern "C"
                   8577: #endif
                   8578: char opendir ();
                   8579: int
                   8580: main ()
                   8581: {
                   8582: return opendir ();
                   8583:   ;
                   8584:   return 0;
                   8585: }
1.14      bertrand 8586: _ACEOF
1.15      bertrand 8587: for ac_lib in '' dir; do
                   8588:   if test -z "$ac_lib"; then
                   8589:     ac_res="none required"
                   8590:   else
                   8591:     ac_res=-l$ac_lib
                   8592:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8593:   fi
                   8594:   if ac_fn_c_try_link "$LINENO"; then :
                   8595:   ac_cv_search_opendir=$ac_res
                   8596: fi
                   8597: rm -f core conftest.err conftest.$ac_objext \
                   8598:     conftest$ac_exeext
1.57      bertrand 8599:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8600:   break
                   8601: fi
                   8602: done
1.57      bertrand 8603: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8604: 
1.15      bertrand 8605: else
                   8606:   ac_cv_search_opendir=no
                   8607: fi
                   8608: rm conftest.$ac_ext
                   8609: LIBS=$ac_func_search_save_LIBS
                   8610: fi
                   8611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8612: $as_echo "$ac_cv_search_opendir" >&6; }
                   8613: ac_res=$ac_cv_search_opendir
                   8614: if test "$ac_res" != no; then :
                   8615:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8616: 
1.14      bertrand 8617: fi
1.1       bertrand 8618: 
                   8619: else
1.15      bertrand 8620:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8621: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8622: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8623:   $as_echo_n "(cached) " >&6
                   8624: else
                   8625:   ac_func_search_save_LIBS=$LIBS
                   8626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8627: /* end confdefs.h.  */
1.15      bertrand 8628: 
                   8629: /* Override any GCC internal prototype to avoid an error.
                   8630:    Use char because int might match the return type of a GCC
                   8631:    builtin and then its argument prototype would still apply.  */
                   8632: #ifdef __cplusplus
                   8633: extern "C"
                   8634: #endif
                   8635: char opendir ();
1.1       bertrand 8636: int
                   8637: main ()
                   8638: {
1.15      bertrand 8639: return opendir ();
1.1       bertrand 8640:   ;
                   8641:   return 0;
                   8642: }
                   8643: _ACEOF
1.15      bertrand 8644: for ac_lib in '' x; do
                   8645:   if test -z "$ac_lib"; then
                   8646:     ac_res="none required"
                   8647:   else
                   8648:     ac_res=-l$ac_lib
                   8649:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8650:   fi
                   8651:   if ac_fn_c_try_link "$LINENO"; then :
                   8652:   ac_cv_search_opendir=$ac_res
                   8653: fi
                   8654: rm -f core conftest.err conftest.$ac_objext \
                   8655:     conftest$ac_exeext
1.57      bertrand 8656:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8657:   break
                   8658: fi
                   8659: done
1.57      bertrand 8660: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8661: 
1.1       bertrand 8662: else
1.15      bertrand 8663:   ac_cv_search_opendir=no
                   8664: fi
                   8665: rm conftest.$ac_ext
                   8666: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8667: fi
1.15      bertrand 8668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8669: $as_echo "$ac_cv_search_opendir" >&6; }
                   8670: ac_res=$ac_cv_search_opendir
                   8671: if test "$ac_res" != no; then :
                   8672:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8673: 
1.1       bertrand 8674: fi
                   8675: 
                   8676: fi
                   8677: 
1.15      bertrand 8678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8679: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8680: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8681:   $as_echo_n "(cached) " >&6
1.1       bertrand 8682: else
1.15      bertrand 8683:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8684: /* end confdefs.h.  */
1.15      bertrand 8685: #include <stdlib.h>
                   8686: #include <stdarg.h>
                   8687: #include <string.h>
                   8688: #include <float.h>
                   8689: 
1.1       bertrand 8690: int
                   8691: main ()
                   8692: {
1.15      bertrand 8693: 
1.1       bertrand 8694:   ;
                   8695:   return 0;
                   8696: }
                   8697: _ACEOF
1.15      bertrand 8698: if ac_fn_c_try_compile "$LINENO"; then :
                   8699:   ac_cv_header_stdc=yes
1.14      bertrand 8700: else
1.15      bertrand 8701:   ac_cv_header_stdc=no
                   8702: fi
                   8703: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8704: 
                   8705: if test $ac_cv_header_stdc = yes; then
                   8706:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8707:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8708: /* end confdefs.h.  */
                   8709: #include <string.h>
                   8710: 
                   8711: _ACEOF
                   8712: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8713:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8714: 
1.15      bertrand 8715: else
                   8716:   ac_cv_header_stdc=no
1.1       bertrand 8717: fi
1.15      bertrand 8718: rm -f conftest*
1.14      bertrand 8719: 
1.1       bertrand 8720: fi
                   8721: 
1.15      bertrand 8722: if test $ac_cv_header_stdc = yes; then
                   8723:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8724:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8725: /* end confdefs.h.  */
                   8726: #include <stdlib.h>
                   8727: 
1.14      bertrand 8728: _ACEOF
1.15      bertrand 8729: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8730:   $EGREP "free" >/dev/null 2>&1; then :
                   8731: 
                   8732: else
                   8733:   ac_cv_header_stdc=no
                   8734: fi
                   8735: rm -f conftest*
1.1       bertrand 8736: 
                   8737: fi
                   8738: 
1.15      bertrand 8739: if test $ac_cv_header_stdc = yes; then
                   8740:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8741:   if test "$cross_compiling" = yes; then :
                   8742:   :
1.1       bertrand 8743: else
1.15      bertrand 8744:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8745: /* end confdefs.h.  */
1.15      bertrand 8746: #include <ctype.h>
                   8747: #include <stdlib.h>
                   8748: #if ((' ' & 0x0FF) == 0x020)
                   8749: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8750: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8751: #else
                   8752: # define ISLOWER(c) \
                   8753:           (('a' <= (c) && (c) <= 'i') \
                   8754:             || ('j' <= (c) && (c) <= 'r') \
                   8755:             || ('s' <= (c) && (c) <= 'z'))
                   8756: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8757: #endif
1.1       bertrand 8758: 
1.15      bertrand 8759: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8760: int
                   8761: main ()
                   8762: {
1.15      bertrand 8763:   int i;
                   8764:   for (i = 0; i < 256; i++)
                   8765:     if (XOR (islower (i), ISLOWER (i))
                   8766:    || toupper (i) != TOUPPER (i))
                   8767:       return 2;
1.1       bertrand 8768:   return 0;
                   8769: }
                   8770: _ACEOF
1.15      bertrand 8771: if ac_fn_c_try_run "$LINENO"; then :
                   8772: 
1.14      bertrand 8773: else
1.15      bertrand 8774:   ac_cv_header_stdc=no
                   8775: fi
                   8776: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8777:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8778: fi
1.14      bertrand 8779: 
1.1       bertrand 8780: fi
                   8781: fi
1.15      bertrand 8782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8783: $as_echo "$ac_cv_header_stdc" >&6; }
                   8784: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8785: 
1.15      bertrand 8786: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8787: 
                   8788: fi
                   8789: 
1.15      bertrand 8790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8791: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8792: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8793:   $as_echo_n "(cached) " >&6
1.1       bertrand 8794: else
1.15      bertrand 8795:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8796: /* end confdefs.h.  */
1.14      bertrand 8797: #include <sys/types.h>
1.15      bertrand 8798: #include <sys/wait.h>
                   8799: #ifndef WEXITSTATUS
                   8800: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8801: #endif
                   8802: #ifndef WIFEXITED
                   8803: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8804: #endif
1.1       bertrand 8805: 
                   8806: int
                   8807: main ()
                   8808: {
1.15      bertrand 8809:   int s;
                   8810:   wait (&s);
                   8811:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8812:   ;
                   8813:   return 0;
                   8814: }
                   8815: _ACEOF
1.15      bertrand 8816: if ac_fn_c_try_compile "$LINENO"; then :
                   8817:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8818: else
1.15      bertrand 8819:   ac_cv_header_sys_wait_h=no
                   8820: fi
                   8821: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8822: fi
                   8823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8824: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8825: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8826: 
1.15      bertrand 8827: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8828: 
                   8829: fi
                   8830: 
1.15      bertrand 8831: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8832:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8833:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8834: do :
                   8835:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8836: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8837: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8838:   cat >>confdefs.h <<_ACEOF
                   8839: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8840: _ACEOF
                   8841: 
                   8842: fi
                   8843: 
1.15      bertrand 8844: done
                   8845: 
1.1       bertrand 8846: 
1.15      bertrand 8847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8848: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8849: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8850:   $as_echo_n "(cached) " >&6
1.1       bertrand 8851: else
1.15      bertrand 8852:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8853: /* end confdefs.h.  */
                   8854: 
                   8855: int
                   8856: main ()
                   8857: {
1.15      bertrand 8858: /* FIXME: Include the comments suggested by Paul. */
                   8859: #ifndef __cplusplus
                   8860:   /* Ultrix mips cc rejects this.  */
                   8861:   typedef int charset[2];
                   8862:   const charset cs;
                   8863:   /* SunOS 4.1.1 cc rejects this.  */
                   8864:   char const *const *pcpcc;
                   8865:   char **ppc;
                   8866:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8867:   struct point {int x, y;};
                   8868:   static struct point const zero = {0,0};
                   8869:   /* AIX XL C 1.02.0.0 rejects this.
                   8870:      It does not let you subtract one const X* pointer from another in
                   8871:      an arm of an if-expression whose if-part is not a constant
                   8872:      expression */
                   8873:   const char *g = "string";
                   8874:   pcpcc = &g + (g ? g-g : 0);
                   8875:   /* HPUX 7.0 cc rejects these. */
                   8876:   ++pcpcc;
                   8877:   ppc = (char**) pcpcc;
                   8878:   pcpcc = (char const *const *) ppc;
                   8879:   { /* SCO 3.2v4 cc rejects this.  */
                   8880:     char *t;
                   8881:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8882: 
                   8883:     *t++ = 0;
                   8884:     if (s) return 0;
                   8885:   }
                   8886:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8887:     int x[] = {25, 17};
                   8888:     const int *foo = &x[0];
                   8889:     ++foo;
                   8890:   }
                   8891:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8892:     typedef const int *iptr;
                   8893:     iptr p = 0;
                   8894:     ++p;
                   8895:   }
                   8896:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8897:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8898:     struct s { int j; const int *ap[3]; };
                   8899:     struct s *b; b->j = 5;
                   8900:   }
                   8901:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8902:     const int foo = 10;
                   8903:     if (!foo) return 0;
                   8904:   }
                   8905:   return !cs[0] && !zero.x;
                   8906: #endif
                   8907: 
1.14      bertrand 8908:   ;
1.1       bertrand 8909:   return 0;
                   8910: }
                   8911: _ACEOF
1.15      bertrand 8912: if ac_fn_c_try_compile "$LINENO"; then :
                   8913:   ac_cv_c_const=yes
1.14      bertrand 8914: else
1.15      bertrand 8915:   ac_cv_c_const=no
1.1       bertrand 8916: fi
1.14      bertrand 8917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8918: fi
1.15      bertrand 8919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8920: $as_echo "$ac_cv_c_const" >&6; }
                   8921: if test $ac_cv_c_const = no; then
1.1       bertrand 8922: 
1.15      bertrand 8923: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8924: 
1.15      bertrand 8925: fi
1.1       bertrand 8926: 
1.15      bertrand 8927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8928: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8929: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8930:   $as_echo_n "(cached) " >&6
1.1       bertrand 8931: else
1.15      bertrand 8932:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8933: /* end confdefs.h.  */
1.15      bertrand 8934: #include <sys/types.h>
                   8935: 
1.1       bertrand 8936: _ACEOF
1.15      bertrand 8937: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8938:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8939:   ac_cv_type_uid_t=yes
1.1       bertrand 8940: else
1.15      bertrand 8941:   ac_cv_type_uid_t=no
                   8942: fi
                   8943: rm -f conftest*
1.14      bertrand 8944: 
1.1       bertrand 8945: fi
1.15      bertrand 8946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8947: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8948: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8949: 
1.15      bertrand 8950: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8951: 
                   8952: 
1.15      bertrand 8953: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8954: 
                   8955: fi
                   8956: 
1.15      bertrand 8957: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8958: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8959: 
                   8960: else
1.15      bertrand 8961: 
                   8962: cat >>confdefs.h <<_ACEOF
                   8963: #define pid_t int
1.14      bertrand 8964: _ACEOF
                   8965: 
1.15      bertrand 8966: fi
1.14      bertrand 8967: 
1.15      bertrand 8968: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8969: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8970: 
1.15      bertrand 8971: else
1.1       bertrand 8972: 
1.15      bertrand 8973: cat >>confdefs.h <<_ACEOF
                   8974: #define size_t unsigned int
1.1       bertrand 8975: _ACEOF
1.14      bertrand 8976: 
1.1       bertrand 8977: fi
                   8978: 
1.15      bertrand 8979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8980: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 8981: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 8982:   $as_echo_n "(cached) " >&6
1.1       bertrand 8983: else
1.15      bertrand 8984:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8985: /* end confdefs.h.  */
1.15      bertrand 8986: #include <sys/types.h>
                   8987: #include <sys/time.h>
                   8988: #include <time.h>
1.1       bertrand 8989: 
1.14      bertrand 8990: int
                   8991: main ()
                   8992: {
1.15      bertrand 8993: if ((struct tm *) 0)
                   8994: return 0;
1.14      bertrand 8995:   ;
                   8996:   return 0;
                   8997: }
1.1       bertrand 8998: _ACEOF
1.15      bertrand 8999: if ac_fn_c_try_compile "$LINENO"; then :
                   9000:   ac_cv_header_time=yes
1.1       bertrand 9001: else
1.15      bertrand 9002:   ac_cv_header_time=no
1.1       bertrand 9003: fi
1.15      bertrand 9004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9005: fi
1.15      bertrand 9006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   9007: $as_echo "$ac_cv_header_time" >&6; }
                   9008: if test $ac_cv_header_time = yes; then
1.1       bertrand 9009: 
1.15      bertrand 9010: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 9011: 
                   9012: fi
                   9013: 
1.15      bertrand 9014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   9015: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 9016: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 9017:   $as_echo_n "(cached) " >&6
1.1       bertrand 9018: else
1.15      bertrand 9019:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 9020: /* end confdefs.h.  */
1.15      bertrand 9021: #include <sys/types.h>
                   9022: #include <time.h>
1.1       bertrand 9023: 
                   9024: int
                   9025: main ()
                   9026: {
1.15      bertrand 9027: struct tm tm;
                   9028:                     int *p = &tm.tm_sec;
                   9029:                     return !p;
1.1       bertrand 9030:   ;
                   9031:   return 0;
                   9032: }
                   9033: _ACEOF
1.15      bertrand 9034: if ac_fn_c_try_compile "$LINENO"; then :
                   9035:   ac_cv_struct_tm=time.h
1.1       bertrand 9036: else
1.15      bertrand 9037:   ac_cv_struct_tm=sys/time.h
                   9038: fi
                   9039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9040: fi
                   9041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   9042: $as_echo "$ac_cv_struct_tm" >&6; }
                   9043: if test $ac_cv_struct_tm = sys/time.h; then
                   9044: 
                   9045: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9046: 
1.1       bertrand 9047: fi
                   9048: 
                   9049: 
1.15      bertrand 9050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9051: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9052: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9053:   $as_echo_n "(cached) " >&6
1.1       bertrand 9054: else
1.15      bertrand 9055:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9056: /* end confdefs.h.  */
1.15      bertrand 9057: #include <sys/types.h>
                   9058: #include <signal.h>
1.1       bertrand 9059: 
                   9060: int
                   9061: main ()
                   9062: {
1.15      bertrand 9063: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9064:   ;
                   9065:   return 0;
                   9066: }
                   9067: _ACEOF
1.15      bertrand 9068: if ac_fn_c_try_compile "$LINENO"; then :
                   9069:   ac_cv_type_signal=int
1.1       bertrand 9070: else
1.15      bertrand 9071:   ac_cv_type_signal=void
1.1       bertrand 9072: fi
1.15      bertrand 9073: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9074: fi
1.15      bertrand 9075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9076: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9077: 
1.15      bertrand 9078: cat >>confdefs.h <<_ACEOF
                   9079: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9080: _ACEOF
1.1       bertrand 9081: 
1.15      bertrand 9082: 
                   9083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9084: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9085: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9086:   $as_echo_n "(cached) " >&6
                   9087: else
                   9088:   if test "$cross_compiling" = yes; then :
                   9089:   ac_cv_func_strcoll_works=no
                   9090: else
                   9091:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9092: /* end confdefs.h.  */
                   9093: $ac_includes_default
                   9094: int
                   9095: main ()
                   9096: {
                   9097: return (strcoll ("abc", "def") >= 0 ||
                   9098:     strcoll ("ABC", "DEF") >= 0 ||
                   9099:     strcoll ("123", "456") >= 0)
                   9100:   ;
                   9101:   return 0;
                   9102: }
                   9103: _ACEOF
                   9104: if ac_fn_c_try_run "$LINENO"; then :
                   9105:   ac_cv_func_strcoll_works=yes
                   9106: else
                   9107:   ac_cv_func_strcoll_works=no
                   9108: fi
                   9109: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9110:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9111: fi
1.1       bertrand 9112: 
                   9113: fi
1.15      bertrand 9114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9115: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9116: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9117: 
1.15      bertrand 9118: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9119: 
1.15      bertrand 9120: fi
1.1       bertrand 9121: 
1.15      bertrand 9122: for ac_func in strftime
                   9123: do :
                   9124:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9125: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9126:   cat >>confdefs.h <<_ACEOF
                   9127: #define HAVE_STRFTIME 1
                   9128: _ACEOF
1.1       bertrand 9129: 
                   9130: else
1.15      bertrand 9131:   # strftime is in -lintl on SCO UNIX.
                   9132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9133: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9134: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9135:   $as_echo_n "(cached) " >&6
                   9136: else
                   9137:   ac_check_lib_save_LIBS=$LIBS
                   9138: LIBS="-lintl  $LIBS"
                   9139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9140: /* end confdefs.h.  */
                   9141: 
                   9142: /* Override any GCC internal prototype to avoid an error.
                   9143:    Use char because int might match the return type of a GCC
                   9144:    builtin and then its argument prototype would still apply.  */
                   9145: #ifdef __cplusplus
                   9146: extern "C"
                   9147: #endif
1.15      bertrand 9148: char strftime ();
1.1       bertrand 9149: int
                   9150: main ()
                   9151: {
1.15      bertrand 9152: return strftime ();
1.1       bertrand 9153:   ;
                   9154:   return 0;
                   9155: }
                   9156: _ACEOF
1.15      bertrand 9157: if ac_fn_c_try_link "$LINENO"; then :
                   9158:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9159: else
1.15      bertrand 9160:   ac_cv_lib_intl_strftime=no
                   9161: fi
                   9162: rm -f core conftest.err conftest.$ac_objext \
                   9163:     conftest$ac_exeext conftest.$ac_ext
                   9164: LIBS=$ac_check_lib_save_LIBS
                   9165: fi
                   9166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9167: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9168: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9169:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9170: 
                   9171: LIBS="-lintl $LIBS"
                   9172: fi
                   9173: 
                   9174: fi
                   9175: done
                   9176: 
                   9177: for ac_func in vprintf
                   9178: do :
                   9179:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9180: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9181:   cat >>confdefs.h <<_ACEOF
                   9182: #define HAVE_VPRINTF 1
                   9183: _ACEOF
                   9184: 
                   9185: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9186: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9187: 
                   9188: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9189: 
                   9190: fi
                   9191: 
                   9192: fi
1.15      bertrand 9193: done
                   9194: 
                   9195: 
                   9196: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9197:        strerror strspn strstr strtod
                   9198: do :
                   9199:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9200: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9201: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9202:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9203: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9204: _ACEOF
                   9205: 
                   9206: fi
                   9207: done
                   9208: 
                   9209: 
1.15      bertrand 9210: 
                   9211: # Check whether --with-openssl_arch was given.
                   9212: if test "${with_openssl_arch+set}" = set; then :
                   9213:   withval=$with_openssl_arch;
                   9214: else
                   9215:   with_openssl_arch=none
                   9216: fi
                   9217: 
                   9218: 
1.31      bertrand 9219: if test $(uname) = "OS/2"; then
1.34      bertrand 9220:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9221: else
1.31      bertrand 9222:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9223:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9224:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9225:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9226:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9227:    elif test "x$with_openssl_arch" = xlist; then
                   9228:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9229:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9230:    else
1.67      bertrand 9231:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9232:    fi
1.15      bertrand 9233: fi
1.1       bertrand 9234: 
                   9235: if test "$MYGNUPLOT" = "yes"; then
                   9236:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9237:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9238:                (cd "$srcdir/tools" && tar -xf -)
                   9239:    fi
1.80      bertrand 9240:    subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9241: 
                   9242:    GNUPLOT_COMPILATION=$GNUPLOT
                   9243: else
                   9244:    GNUPLOT_COMPILATION=
                   9245: fi
                   9246: 
                   9247: 
                   9248: 
1.88    ! bertrand 9249: HOST=$target
1.69      bertrand 9250: 
                   9251: 
1.87      bertrand 9252: my_save_cflags="$CFLAGS"
                   9253: FPCFLAGS=""
                   9254: 
                   9255: CFLAGS=-malign-double
                   9256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
                   9257: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
                   9258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9259: /* end confdefs.h.  */
                   9260: 
                   9261: int
                   9262: main ()
                   9263: {
1.1       bertrand 9264: 
1.87      bertrand 9265:   ;
                   9266:   return 0;
                   9267: }
                   9268: _ACEOF
                   9269: if ac_fn_c_try_compile "$LINENO"; then :
                   9270:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9271: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
                   9272: else
                   9273:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9274: $as_echo "no" >&6; }
                   9275: fi
                   9276: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9277: CFLAGS=-mieee-fp
                   9278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
                   9279: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
                   9280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9281: /* end confdefs.h.  */
                   9282: 
                   9283: int
                   9284: main ()
                   9285: {
1.1       bertrand 9286: 
1.87      bertrand 9287:   ;
                   9288:   return 0;
                   9289: }
                   9290: _ACEOF
                   9291: if ac_fn_c_try_compile "$LINENO"; then :
                   9292:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9293: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
                   9294: else
                   9295:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9296: $as_echo "no" >&6; }
                   9297: fi
                   9298: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9299: CFLAGS=-mieee
                   9300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
                   9301: $as_echo_n "checking whether CC supports -mieee... " >&6; }
                   9302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9303: /* end confdefs.h.  */
1.1       bertrand 9304: 
1.87      bertrand 9305: int
                   9306: main ()
                   9307: {
1.1       bertrand 9308: 
1.87      bertrand 9309:   ;
                   9310:   return 0;
                   9311: }
                   9312: _ACEOF
                   9313: if ac_fn_c_try_compile "$LINENO"; then :
                   9314:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9315: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
                   9316: else
                   9317:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9318: $as_echo "no" >&6; }
                   9319: fi
                   9320: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9321: CFLAGS=$my_save_cflags
1.1       bertrand 9322: 
1.87      bertrand 9323: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
                   9324: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9325: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9326: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1       bertrand 9327: 
1.87      bertrand 9328: case $target_os in
1.8       bertrand 9329: 
                   9330:    cygwin*)
                   9331:        OS=Cygwin
                   9332:    break ;;
                   9333: 
                   9334:    interix*)
                   9335:        OS=Interix
                   9336:    break ;;
                   9337: 
                   9338:    *)
                   9339:        OS=$(uname)
                   9340:    break ;;
                   9341: 
                   9342: esac
                   9343: 
                   9344: 
                   9345: 
1.1       bertrand 9346: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9347: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9348: MALLOC=
1.1       bertrand 9349: 
1.22      bertrand 9350: case $OS in
1.17      bertrand 9351: 
                   9352:     Darwin)
1.31      bertrand 9353:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9354:        NESTED_FUNCTIONS=-fnested-functions
1.23      bertrand 9355:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9356:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9357:                --disable-shared --enable-static --enable-threads \
                   9358:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9359:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9360:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9361:        C_STANDARD=-std=gnu99
1.75      bertrand 9362:        ELF=
1.17      bertrand 9363:    break ;;
                   9364: 
1.31      bertrand 9365:     Cygwin)
                   9366:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9367:        NESTED_FUNCTIONS=
1.31      bertrand 9368:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9369:                --disable-shared --enable-static --enable-threads \
                   9370:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9371:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9372:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9373:        C_STANDARD=-std=gnu99
1.75      bertrand 9374:        ELF=
1.17      bertrand 9375:    break ;;
                   9376: 
1.34      bertrand 9377:    Interix)
                   9378:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9379:        NESTED_FUNCTIONS=
                   9380:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9381:                --disable-shared --enable-static --enable-threads \
                   9382:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9383:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9384:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9385:        C_STANDARD=-std=gnu99
1.75      bertrand 9386:        ELF=
1.34      bertrand 9387:    break;;
                   9388: 
1.31      bertrand 9389:     AIX)
                   9390:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9391:        NESTED_FUNCTIONS=
1.31      bertrand 9392:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9393:                --disable-shared --enable-static --enable-threads \
                   9394:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9395:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9396:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9397:        C_STANDARD=-std=gnu99
1.75      bertrand 9398:        ELF=
1.18      bertrand 9399:    break ;;
                   9400: 
1.31      bertrand 9401:     OS/2)
1.37      bertrand 9402:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9403:            FINAL_ENCODING=CP850; \
                   9404:        fi;
1.31      bertrand 9405:        OS=OS2
                   9406:        NESTED_FUNCTIONS=
                   9407:        EXPORT_DYNAMIC=-Zmap
                   9408:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9409:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9410:                --enable-threads \
                   9411:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9412:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9413:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9414:        C_STANDARD=
1.75      bertrand 9415:        ELF=
1.31      bertrand 9416:    break;;
                   9417: 
1.35      bertrand 9418:    OpenBSD)
1.37      bertrand 9419:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9420:            FINAL_ENCODING=UTF-8; \
                   9421:        fi;
                   9422:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9423:        NESTED_FUNCTIONS=
                   9424:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9425:                --disable-shared --enable-static --enable-threads \
                   9426:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9427:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9428:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9429:        C_STANDARD=-std=gnu99
1.75      bertrand 9430:        ELF=
1.35      bertrand 9431:    break;;
                   9432: 
1.49      bertrand 9433:     SunOS)
                   9434:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9435:        NESTED_FUNCTIONS=
                   9436: 
                   9437:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9438:                --disable-shared --enable-static --enable-threads \
                   9439:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9440:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9441:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9442:        C_STANDARD=-std=gnu99
                   9443:        MALLOC=-lumem
1.75      bertrand 9444:        ELF=
                   9445:    break ;;
                   9446: 
                   9447:     NetBSD)
                   9448:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9449:        NESTED_FUNCTIONS=
                   9450: 
                   9451:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9452:                --disable-shared --enable-static --enable-threads \
                   9453:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9454:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9455:                LDFLAGS=\"$LDFLAGS\""
                   9456:        C_STANDARD=-std=gnu99
                   9457:        GCCBIN=`which gcc`
                   9458:        GCCLIB=`dirname $GCCBIN`/../lib
                   9459:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9460:    break ;;
                   9461: 
1.17      bertrand 9462:     *)
1.31      bertrand 9463:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9464:        NESTED_FUNCTIONS=
1.36      bertrand 9465: 
1.31      bertrand 9466:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9467:                --disable-shared --enable-static --enable-threads \
                   9468:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9469:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9470:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9471:        C_STANDARD=-std=gnu99
1.75      bertrand 9472:        ELF=
1.17      bertrand 9473:    break ;;
                   9474: 
                   9475: esac
                   9476: 
                   9477: 
                   9478: 
                   9479: 
1.1       bertrand 9480: 
                   9481: 
                   9482: 
                   9483: 
                   9484: 
                   9485: 
                   9486: 
                   9487: 
                   9488: 
                   9489: 
                   9490: 
                   9491: 
                   9492: 
                   9493: 
                   9494: 
                   9495: 
                   9496: 
                   9497: 
                   9498: 
1.9       bertrand 9499: 
1.24      bertrand 9500: 
1.30      bertrand 9501: 
1.33      bertrand 9502: 
                   9503: 
                   9504: 
1.34      bertrand 9505: 
1.35      bertrand 9506: 
1.49      bertrand 9507: 
1.55      bertrand 9508: 
                   9509: 
1.56      bertrand 9510: 
                   9511: 
                   9512: 
                   9513: 
1.69      bertrand 9514: 
1.75      bertrand 9515: 
1.78      bertrand 9516: 
1.80      bertrand 9517: 
                   9518: 
                   9519: 
1.82      bertrand 9520: 
1.69      bertrand 9521: subdirs="$subdirs tools/$NCURSES"
                   9522: 
                   9523: subdirs="$subdirs tools/$READLINE"
                   9524: 
                   9525: subdirs="$subdirs tools/$GSL"
                   9526: 
                   9527: subdirs="$subdirs tools/$GPP"
                   9528: 
                   9529: subdirs="$subdirs tools/$FILE"
                   9530: 
                   9531: subdirs="$subdirs tools/$ICONV"
                   9532: 
                   9533: subdirs="$subdirs tools/$SQLITE"
                   9534: 
                   9535: subdirs="$subdirs tools/$UNITS"
                   9536: 
1.76      bertrand 9537: subdirs="$subdirs tools/$SIGSEGV"
                   9538: 
1.69      bertrand 9539: 
1.1       bertrand 9540: ac_config_files="$ac_config_files Makefile"
                   9541: 
                   9542: ac_config_files="$ac_config_files COPYING"
                   9543: 
                   9544: ac_config_files="$ac_config_files tools/Makefile"
                   9545: 
                   9546: ac_config_files="$ac_config_files src/Makefile"
                   9547: 
                   9548: ac_config_files="$ac_config_files man/Makefile"
                   9549: 
                   9550: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9551: 
                   9552: ac_config_files="$ac_config_files doc/Makefile"
                   9553: 
                   9554: ac_config_files="$ac_config_files scripts/Makefile"
                   9555: 
                   9556: ac_config_files="$ac_config_files scripts/mkrplso"
                   9557: 
                   9558: ac_config_files="$ac_config_files scripts/rplcc"
                   9559: 
                   9560: ac_config_files="$ac_config_files scripts/rpllink"
                   9561: 
                   9562: ac_config_files="$ac_config_files rpltags/Makefile"
                   9563: 
                   9564: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9565: 
1.9       bertrand 9566: ac_config_files="$ac_config_files rplsums/Makefile"
                   9567: 
1.55      bertrand 9568: ac_config_files="$ac_config_files rplcas/Makefile"
                   9569: 
1.39      bertrand 9570: ac_config_files="$ac_config_files rplawk/Makefile"
                   9571: 
1.1       bertrand 9572: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9573: 
                   9574: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9575: 
                   9576: 
                   9577: ac_config_files="$ac_config_files man/rpl.1"
                   9578: 
                   9579: ac_config_files="$ac_config_files man/rplcc.1"
                   9580: 
                   9581: ac_config_files="$ac_config_files man/rpllink.1"
                   9582: 
                   9583: ac_config_files="$ac_config_files man/rpltags.1"
                   9584: 
                   9585: ac_config_files="$ac_config_files man/mkrplso.1"
                   9586: 
                   9587: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9588: 
                   9589: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9590: 
                   9591: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9592: 
                   9593: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9594: 
                   9595: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9596: 
                   9597: 
                   9598: cat >confcache <<\_ACEOF
                   9599: # This file is a shell script that caches the results of configure
                   9600: # tests run on this system so they can be shared between configure
                   9601: # scripts and configure runs, see configure's option --config-cache.
                   9602: # It is not useful on other systems.  If it contains results you don't
                   9603: # want to keep, you may remove or edit it.
                   9604: #
                   9605: # config.status only pays attention to the cache file if you give it
                   9606: # the --recheck option to rerun configure.
                   9607: #
                   9608: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9609: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9610: # following values.
                   9611: 
                   9612: _ACEOF
                   9613: 
                   9614: # The following way of writing the cache mishandles newlines in values,
                   9615: # but we know of no workaround that is simple, portable, and efficient.
                   9616: # So, we kill variables containing newlines.
                   9617: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9618: # and sets the high bit in the cache file unless we assign to the vars.
                   9619: (
                   9620:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9621:     eval ac_val=\$$ac_var
                   9622:     case $ac_val in #(
                   9623:     *${as_nl}*)
                   9624:       case $ac_var in #(
1.15      bertrand 9625:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9626: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9627:       esac
                   9628:       case $ac_var in #(
                   9629:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9630:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9631:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9632:       esac ;;
                   9633:     esac
                   9634:   done
                   9635: 
                   9636:   (set) 2>&1 |
                   9637:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9638:     *${as_nl}ac_space=\ *)
1.15      bertrand 9639:       # `set' does not quote correctly, so add quotes: double-quote
                   9640:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9641:       sed -n \
                   9642:    "s/'/'\\\\''/g;
                   9643:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9644:       ;; #(
                   9645:     *)
                   9646:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9647:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9648:       ;;
                   9649:     esac |
                   9650:     sort
                   9651: ) |
                   9652:   sed '
                   9653:      /^ac_cv_env_/b end
                   9654:      t clear
                   9655:      :clear
                   9656:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9657:      t end
                   9658:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9659:      :end' >>confcache
                   9660: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9661:   if test -w "$cache_file"; then
1.57      bertrand 9662:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9663:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9664: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9665:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9666:    cat confcache >"$cache_file"
                   9667:       else
                   9668:         case $cache_file in #(
                   9669:         */* | ?:*)
                   9670:      mv -f confcache "$cache_file"$$ &&
                   9671:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9672:         *)
                   9673:      mv -f confcache "$cache_file" ;;
                   9674:    esac
                   9675:       fi
                   9676:     fi
1.1       bertrand 9677:   else
1.15      bertrand 9678:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9679: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9680:   fi
                   9681: fi
                   9682: rm -f confcache
                   9683: 
                   9684: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9685: # Let make expand exec_prefix.
                   9686: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9687: 
                   9688: DEFS=-DHAVE_CONFIG_H
                   9689: 
                   9690: ac_libobjs=
                   9691: ac_ltlibobjs=
1.36      bertrand 9692: U=
1.1       bertrand 9693: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9694:   # 1. Remove the extension, and $U if already installed.
                   9695:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9696:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9697:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9698:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9699:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9700:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9701: done
                   9702: LIBOBJS=$ac_libobjs
                   9703: 
                   9704: LTLIBOBJS=$ac_ltlibobjs
                   9705: 
                   9706: 
1.15      bertrand 9707:  if test -n "$EXEEXT"; then
                   9708:   am__EXEEXT_TRUE=
                   9709:   am__EXEEXT_FALSE='#'
                   9710: else
                   9711:   am__EXEEXT_TRUE='#'
                   9712:   am__EXEEXT_FALSE=
                   9713: fi
                   9714: 
1.1       bertrand 9715: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9716:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9717: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9718: fi
                   9719: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9720:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9721: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9722: fi
                   9723: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9724:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9725: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9726: fi
                   9727: 
1.57      bertrand 9728: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9729: ac_write_fail=0
1.1       bertrand 9730: ac_clean_files_save=$ac_clean_files
                   9731: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9732: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9733: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9734: as_write_fail=0
                   9735: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9736: #! $SHELL
                   9737: # Generated by $as_me.
                   9738: # Run this file to recreate the current configuration.
                   9739: # Compiler output produced by configure, useful for debugging
                   9740: # configure, is in config.log if it exists.
                   9741: 
                   9742: debug=false
                   9743: ac_cs_recheck=false
                   9744: ac_cs_silent=false
1.15      bertrand 9745: 
1.14      bertrand 9746: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9747: export SHELL
                   9748: _ASEOF
                   9749: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9750: ## -------------------- ##
                   9751: ## M4sh Initialization. ##
                   9752: ## -------------------- ##
1.1       bertrand 9753: 
                   9754: # Be more Bourne compatible
                   9755: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9756: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9757:   emulate sh
                   9758:   NULLCMD=:
1.15      bertrand 9759:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9760:   # is contrary to our usage.  Disable this feature.
                   9761:   alias -g '${1+"$@"}'='"$@"'
                   9762:   setopt NO_GLOB_SUBST
                   9763: else
1.15      bertrand 9764:   case `(set -o) 2>/dev/null` in #(
                   9765:   *posix*) :
                   9766:     set -o posix ;; #(
                   9767:   *) :
                   9768:      ;;
1.1       bertrand 9769: esac
                   9770: fi
                   9771: 
                   9772: 
1.15      bertrand 9773: as_nl='
                   9774: '
                   9775: export as_nl
                   9776: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9777: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9778: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9779: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9780: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9781: # but without wasting forks for bash or zsh.
                   9782: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9783:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9784:   as_echo='print -r --'
                   9785:   as_echo_n='print -rn --'
                   9786: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9787:   as_echo='printf %s\n'
                   9788:   as_echo_n='printf %s'
                   9789: else
                   9790:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9791:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9792:     as_echo_n='/usr/ucb/echo -n'
                   9793:   else
                   9794:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9795:     as_echo_n_body='eval
                   9796:       arg=$1;
                   9797:       case $arg in #(
                   9798:       *"$as_nl"*)
                   9799:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9800:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9801:       esac;
                   9802:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9803:     '
                   9804:     export as_echo_n_body
                   9805:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9806:   fi
                   9807:   export as_echo_body
                   9808:   as_echo='sh -c $as_echo_body as_echo'
                   9809: fi
1.14      bertrand 9810: 
                   9811: # The user is always right.
                   9812: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9813:   PATH_SEPARATOR=:
                   9814:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9815:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9816:       PATH_SEPARATOR=';'
                   9817:   }
1.1       bertrand 9818: fi
                   9819: 
                   9820: 
                   9821: # IFS
                   9822: # We need space, tab and new line, in precisely that order.  Quoting is
                   9823: # there to prevent editors from complaining about space-tab.
                   9824: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9825: # splitting by setting IFS to empty value.)
                   9826: IFS=" ""   $as_nl"
                   9827: 
                   9828: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9829: as_myself=
1.15      bertrand 9830: case $0 in #((
1.1       bertrand 9831:   *[\\/]* ) as_myself=$0 ;;
                   9832:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9833: for as_dir in $PATH
                   9834: do
                   9835:   IFS=$as_save_IFS
                   9836:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9837:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9838:   done
1.1       bertrand 9839: IFS=$as_save_IFS
                   9840: 
                   9841:      ;;
                   9842: esac
                   9843: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9844: # in which case we are not to be found in the path.
                   9845: if test "x$as_myself" = x; then
                   9846:   as_myself=$0
                   9847: fi
                   9848: if test ! -f "$as_myself"; then
1.15      bertrand 9849:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9850:   exit 1
1.1       bertrand 9851: fi
                   9852: 
1.15      bertrand 9853: # Unset variables that we do not need and which cause bugs (e.g. in
                   9854: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9855: # suppresses any "Segmentation fault" message there.  '((' could
                   9856: # trigger a bug in pdksh 5.2.14.
                   9857: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9858: do eval test x\${$as_var+set} = xset \
                   9859:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9860: done
                   9861: PS1='$ '
                   9862: PS2='> '
                   9863: PS4='+ '
                   9864: 
                   9865: # NLS nuisances.
1.15      bertrand 9866: LC_ALL=C
                   9867: export LC_ALL
                   9868: LANGUAGE=C
                   9869: export LANGUAGE
                   9870: 
                   9871: # CDPATH.
                   9872: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9873: 
                   9874: 
1.36      bertrand 9875: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9876: # ----------------------------------------
1.15      bertrand 9877: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9878: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9879: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9880: as_fn_error ()
                   9881: {
1.36      bertrand 9882:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9883:   if test "$4"; then
                   9884:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9885:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9886:   fi
1.36      bertrand 9887:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9888:   as_fn_exit $as_status
                   9889: } # as_fn_error
                   9890: 
                   9891: 
                   9892: # as_fn_set_status STATUS
                   9893: # -----------------------
                   9894: # Set $? to STATUS, without forking.
                   9895: as_fn_set_status ()
                   9896: {
                   9897:   return $1
                   9898: } # as_fn_set_status
                   9899: 
                   9900: # as_fn_exit STATUS
                   9901: # -----------------
                   9902: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9903: as_fn_exit ()
                   9904: {
                   9905:   set +e
                   9906:   as_fn_set_status $1
                   9907:   exit $1
                   9908: } # as_fn_exit
                   9909: 
                   9910: # as_fn_unset VAR
                   9911: # ---------------
                   9912: # Portably unset VAR.
                   9913: as_fn_unset ()
                   9914: {
                   9915:   { eval $1=; unset $1;}
                   9916: }
                   9917: as_unset=as_fn_unset
                   9918: # as_fn_append VAR VALUE
                   9919: # ----------------------
                   9920: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9921: # advantage of any shell optimizations that allow amortized linear growth over
                   9922: # repeated appends, instead of the typical quadratic growth present in naive
                   9923: # implementations.
                   9924: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9925:   eval 'as_fn_append ()
                   9926:   {
                   9927:     eval $1+=\$2
                   9928:   }'
                   9929: else
                   9930:   as_fn_append ()
                   9931:   {
                   9932:     eval $1=\$$1\$2
                   9933:   }
                   9934: fi # as_fn_append
                   9935: 
                   9936: # as_fn_arith ARG...
                   9937: # ------------------
                   9938: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9939: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9940: # must be portable across $(()) and expr.
                   9941: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9942:   eval 'as_fn_arith ()
                   9943:   {
                   9944:     as_val=$(( $* ))
                   9945:   }'
                   9946: else
                   9947:   as_fn_arith ()
                   9948:   {
                   9949:     as_val=`expr "$@" || test $? -eq 1`
                   9950:   }
                   9951: fi # as_fn_arith
                   9952: 
1.1       bertrand 9953: 
                   9954: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9955:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9956:   as_expr=expr
                   9957: else
                   9958:   as_expr=false
                   9959: fi
                   9960: 
                   9961: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9962:   as_basename=basename
                   9963: else
                   9964:   as_basename=false
                   9965: fi
                   9966: 
1.15      bertrand 9967: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9968:   as_dirname=dirname
                   9969: else
                   9970:   as_dirname=false
                   9971: fi
1.1       bertrand 9972: 
                   9973: as_me=`$as_basename -- "$0" ||
                   9974: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9975:     X"$0" : 'X\(//\)$' \| \
                   9976:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9977: $as_echo X/"$0" |
1.1       bertrand 9978:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9979:        s//\1/
                   9980:        q
                   9981:      }
                   9982:      /^X\/\(\/\/\)$/{
                   9983:        s//\1/
                   9984:        q
                   9985:      }
                   9986:      /^X\/\(\/\).*/{
                   9987:        s//\1/
                   9988:        q
                   9989:      }
1.14      bertrand 9990:      s/.*/./; q'`
                   9991: 
1.15      bertrand 9992: # Avoid depending upon Character Ranges.
                   9993: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9994: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9995: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9996: as_cr_digits='0123456789'
                   9997: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9998: 
                   9999: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 10000: case `echo -n x` in #(((((
1.1       bertrand 10001: -n*)
1.15      bertrand 10002:   case `echo 'xy\c'` in
1.1       bertrand 10003:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 10004:   xy)  ECHO_C='\c';;
                   10005:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   10006:        ECHO_T='    ';;
1.1       bertrand 10007:   esac;;
                   10008: *)
                   10009:   ECHO_N='-n';;
                   10010: esac
                   10011: 
                   10012: rm -f conf$$ conf$$.exe conf$$.file
                   10013: if test -d conf$$.dir; then
                   10014:   rm -f conf$$.dir/conf$$.file
                   10015: else
                   10016:   rm -f conf$$.dir
1.15      bertrand 10017:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 10018: fi
1.15      bertrand 10019: if (echo >conf$$.file) 2>/dev/null; then
                   10020:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10021:     as_ln_s='ln -s'
                   10022:     # ... but there are two gotchas:
                   10023:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   10024:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   10025:     # In both cases, we have to default to `cp -p'.
                   10026:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10027:       as_ln_s='cp -p'
                   10028:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10029:     as_ln_s=ln
                   10030:   else
1.1       bertrand 10031:     as_ln_s='cp -p'
1.15      bertrand 10032:   fi
1.1       bertrand 10033: else
                   10034:   as_ln_s='cp -p'
                   10035: fi
                   10036: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10037: rmdir conf$$.dir 2>/dev/null
                   10038: 
1.15      bertrand 10039: 
                   10040: # as_fn_mkdir_p
                   10041: # -------------
                   10042: # Create "$as_dir" as a directory, including parents if necessary.
                   10043: as_fn_mkdir_p ()
                   10044: {
                   10045: 
                   10046:   case $as_dir in #(
                   10047:   -*) as_dir=./$as_dir;;
                   10048:   esac
                   10049:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10050:     as_dirs=
                   10051:     while :; do
                   10052:       case $as_dir in #(
                   10053:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10054:       *) as_qdir=$as_dir;;
                   10055:       esac
                   10056:       as_dirs="'$as_qdir' $as_dirs"
                   10057:       as_dir=`$as_dirname -- "$as_dir" ||
                   10058: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10059:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10060:     X"$as_dir" : 'X\(//\)$' \| \
                   10061:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10062: $as_echo X"$as_dir" |
                   10063:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10064:        s//\1/
                   10065:        q
                   10066:      }
                   10067:      /^X\(\/\/\)[^/].*/{
                   10068:        s//\1/
                   10069:        q
                   10070:      }
                   10071:      /^X\(\/\/\)$/{
                   10072:        s//\1/
                   10073:        q
                   10074:      }
                   10075:      /^X\(\/\).*/{
                   10076:        s//\1/
                   10077:        q
                   10078:      }
                   10079:      s/.*/./; q'`
                   10080:       test -d "$as_dir" && break
                   10081:     done
                   10082:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10083:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10084: 
                   10085: 
                   10086: } # as_fn_mkdir_p
1.1       bertrand 10087: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10088:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10089: else
                   10090:   test -d ./-p && rmdir ./-p
                   10091:   as_mkdir_p=false
                   10092: fi
                   10093: 
                   10094: if test -x / >/dev/null 2>&1; then
                   10095:   as_test_x='test -x'
                   10096: else
                   10097:   if ls -dL / >/dev/null 2>&1; then
                   10098:     as_ls_L_option=L
                   10099:   else
                   10100:     as_ls_L_option=
                   10101:   fi
                   10102:   as_test_x='
                   10103:     eval sh -c '\''
                   10104:       if test -d "$1"; then
1.15      bertrand 10105:    test -d "$1/.";
1.1       bertrand 10106:       else
1.15      bertrand 10107:    case $1 in #(
                   10108:    -*)set "./$1";;
1.1       bertrand 10109:    esac;
1.15      bertrand 10110:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10111:    ???[sx]*):;;*)false;;esac;fi
                   10112:     '\'' sh
                   10113:   '
                   10114: fi
                   10115: as_executable_p=$as_test_x
                   10116: 
                   10117: # Sed expression to map a string onto a valid CPP name.
                   10118: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10119: 
                   10120: # Sed expression to map a string onto a valid variable name.
                   10121: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10122: 
                   10123: 
                   10124: exec 6>&1
1.15      bertrand 10125: ## ----------------------------------- ##
                   10126: ## Main body of $CONFIG_STATUS script. ##
                   10127: ## ----------------------------------- ##
                   10128: _ASEOF
                   10129: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10130: 
1.15      bertrand 10131: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10132: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10133: # report actual input values of CONFIG_FILES etc. instead of their
                   10134: # values after options handling.
                   10135: ac_log="
1.86      bertrand 10136: This file was extended by rpl $as_me 4.1.4, which was
1.57      bertrand 10137: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10138: 
                   10139:   CONFIG_FILES    = $CONFIG_FILES
                   10140:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10141:   CONFIG_LINKS    = $CONFIG_LINKS
                   10142:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10143:   $ $0 $@
                   10144: 
                   10145: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10146: "
                   10147: 
                   10148: _ACEOF
                   10149: 
1.15      bertrand 10150: case $ac_config_files in *"
                   10151: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10152: esac
                   10153: 
                   10154: case $ac_config_headers in *"
                   10155: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10156: esac
                   10157: 
                   10158: 
                   10159: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10160: # Files that config.status was made for.
                   10161: config_files="$ac_config_files"
                   10162: config_headers="$ac_config_headers"
                   10163: config_commands="$ac_config_commands"
                   10164: 
                   10165: _ACEOF
                   10166: 
1.15      bertrand 10167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10168: ac_cs_usage="\
1.15      bertrand 10169: \`$as_me' instantiates files and other configuration actions
                   10170: from templates according to the current configuration.  Unless the files
                   10171: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10172: 
1.15      bertrand 10173: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10174: 
                   10175:   -h, --help       print this help, then exit
                   10176:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10177:       --config     print configuration, then exit
                   10178:   -q, --quiet, --silent
                   10179:                    do not print progress messages
1.1       bertrand 10180:   -d, --debug      don't remove temporary files
                   10181:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10182:       --file=FILE[:TEMPLATE]
                   10183:                    instantiate the configuration file FILE
                   10184:       --header=FILE[:TEMPLATE]
                   10185:                    instantiate the configuration header FILE
1.1       bertrand 10186: 
                   10187: Configuration files:
                   10188: $config_files
                   10189: 
                   10190: Configuration headers:
                   10191: $config_headers
                   10192: 
                   10193: Configuration commands:
                   10194: $config_commands
                   10195: 
1.15      bertrand 10196: Report bugs to the package provider."
1.1       bertrand 10197: 
                   10198: _ACEOF
1.15      bertrand 10199: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10200: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10201: ac_cs_version="\\
1.86      bertrand 10202: rpl config.status 4.1.4
1.57      bertrand 10203: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10204:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10205: 
1.36      bertrand 10206: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10207: This config.status script is free software; the Free Software Foundation
                   10208: gives unlimited permission to copy, distribute and modify it."
                   10209: 
                   10210: ac_pwd='$ac_pwd'
                   10211: srcdir='$srcdir'
                   10212: INSTALL='$INSTALL'
                   10213: MKDIR_P='$MKDIR_P'
1.15      bertrand 10214: AWK='$AWK'
                   10215: test -n "\$AWK" || AWK=awk
1.1       bertrand 10216: _ACEOF
                   10217: 
1.15      bertrand 10218: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10219: # The default lists apply if the user does not specify any file.
1.1       bertrand 10220: ac_need_defaults=:
                   10221: while test $# != 0
                   10222: do
                   10223:   case $1 in
1.36      bertrand 10224:   --*=?*)
1.1       bertrand 10225:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10226:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10227:     ac_shift=:
                   10228:     ;;
1.36      bertrand 10229:   --*=)
                   10230:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10231:     ac_optarg=
                   10232:     ac_shift=:
                   10233:     ;;
1.1       bertrand 10234:   *)
                   10235:     ac_option=$1
                   10236:     ac_optarg=$2
                   10237:     ac_shift=shift
                   10238:     ;;
                   10239:   esac
                   10240: 
                   10241:   case $ac_option in
                   10242:   # Handling of the options.
                   10243:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10244:     ac_cs_recheck=: ;;
                   10245:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10246:     $as_echo "$ac_cs_version"; exit ;;
                   10247:   --config | --confi | --conf | --con | --co | --c )
                   10248:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10249:   --debug | --debu | --deb | --de | --d | -d )
                   10250:     debug=: ;;
                   10251:   --file | --fil | --fi | --f )
                   10252:     $ac_shift
1.15      bertrand 10253:     case $ac_optarg in
                   10254:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10255:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10256:     esac
                   10257:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10258:     ac_need_defaults=false;;
                   10259:   --header | --heade | --head | --hea )
                   10260:     $ac_shift
1.15      bertrand 10261:     case $ac_optarg in
                   10262:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10263:     esac
                   10264:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10265:     ac_need_defaults=false;;
                   10266:   --he | --h)
                   10267:     # Conflict between --help and --header
1.36      bertrand 10268:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10269: Try \`$0 --help' for more information.";;
1.1       bertrand 10270:   --help | --hel | -h )
1.15      bertrand 10271:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10272:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10273:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10274:     ac_cs_silent=: ;;
                   10275: 
                   10276:   # This is an error.
1.36      bertrand 10277:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10278: Try \`$0 --help' for more information." ;;
1.1       bertrand 10279: 
1.15      bertrand 10280:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10281:      ac_need_defaults=false ;;
                   10282: 
                   10283:   esac
                   10284:   shift
                   10285: done
                   10286: 
                   10287: ac_configure_extra_args=
                   10288: 
                   10289: if $ac_cs_silent; then
                   10290:   exec 6>/dev/null
                   10291:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10292: fi
                   10293: 
                   10294: _ACEOF
1.15      bertrand 10295: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10296: if \$ac_cs_recheck; then
1.15      bertrand 10297:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10298:   shift
                   10299:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10300:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10301:   export CONFIG_SHELL
1.15      bertrand 10302:   exec "\$@"
1.1       bertrand 10303: fi
                   10304: 
                   10305: _ACEOF
1.15      bertrand 10306: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10307: exec 5>>config.log
                   10308: {
                   10309:   echo
                   10310:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10311: ## Running $as_me. ##
                   10312: _ASBOX
1.15      bertrand 10313:   $as_echo "$ac_log"
1.1       bertrand 10314: } >&5
                   10315: 
                   10316: _ACEOF
1.15      bertrand 10317: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10318: #
                   10319: # INIT-COMMANDS
                   10320: #
                   10321: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10322: 
                   10323: _ACEOF
                   10324: 
1.15      bertrand 10325: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10326: 
                   10327: # Handling of arguments.
                   10328: for ac_config_target in $ac_config_targets
                   10329: do
                   10330:   case $ac_config_target in
                   10331:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10332:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10333:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10334:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10335:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10336:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10337:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10338:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10339:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10340:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10341:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10342:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10343:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10344:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10345:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10346:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10347:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10348:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10349:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10350:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10351:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10352:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10353:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10354:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10355:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10356:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10357:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10358:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10359:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10360:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10361: 
1.57      bertrand 10362:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10363:   esac
                   10364: done
                   10365: 
                   10366: 
                   10367: # If the user did not use the arguments to specify the items to instantiate,
                   10368: # then the envvar interface is used.  Set only those that are not.
                   10369: # We use the long form for the default assignment because of an extremely
                   10370: # bizarre bug on SunOS 4.1.3.
                   10371: if $ac_need_defaults; then
                   10372:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10373:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10374:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10375: fi
                   10376: 
                   10377: # Have a temporary directory for convenience.  Make it in the build tree
                   10378: # simply because there is no reason against having it here, and in addition,
                   10379: # creating and moving files from /tmp can sometimes cause problems.
                   10380: # Hook for its removal unless debugging.
                   10381: # Note that there is a small window in which the directory will not be cleaned:
                   10382: # after its creation but before its name has been assigned to `$tmp'.
                   10383: $debug ||
                   10384: {
1.57      bertrand 10385:   tmp= ac_tmp=
1.1       bertrand 10386:   trap 'exit_status=$?
1.57      bertrand 10387:   : "${ac_tmp:=$tmp}"
                   10388:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10389: ' 0
1.15      bertrand 10390:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10391: }
                   10392: # Create a (secure) tmp directory for tmp files.
                   10393: 
                   10394: {
                   10395:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10396:   test -d "$tmp"
1.1       bertrand 10397: }  ||
                   10398: {
                   10399:   tmp=./conf$$-$RANDOM
                   10400:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10401: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10402: ac_tmp=$tmp
1.15      bertrand 10403: 
                   10404: # Set up the scripts for CONFIG_FILES section.
                   10405: # No need to generate them if there are no CONFIG_FILES.
                   10406: # This happens for instance with `./config.status config.h'.
                   10407: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10408: 
1.1       bertrand 10409: 
1.15      bertrand 10410: ac_cr=`echo X | tr X '\015'`
                   10411: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10412: # But we know of no other shell where ac_cr would be empty at this
                   10413: # point, so we can use a bashism as a fallback.
                   10414: if test "x$ac_cr" = x; then
                   10415:   eval ac_cr=\$\'\\r\'
                   10416: fi
                   10417: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10418: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10419:   ac_cs_awk_cr='\\r'
1.15      bertrand 10420: else
                   10421:   ac_cs_awk_cr=$ac_cr
                   10422: fi
1.1       bertrand 10423: 
1.57      bertrand 10424: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10425: _ACEOF
                   10426: 
                   10427: 
1.15      bertrand 10428: {
                   10429:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10430:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10431:   echo "_ACEOF"
                   10432: } >conf$$subs.sh ||
1.36      bertrand 10433:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10434: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10435: ac_delim='%!_!# '
                   10436: for ac_last_try in false false false false false :; do
1.15      bertrand 10437:   . ./conf$$subs.sh ||
1.36      bertrand 10438:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10439: 
1.15      bertrand 10440:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10441:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10442:     break
                   10443:   elif $ac_last_try; then
1.36      bertrand 10444:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10445:   else
                   10446:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10447:   fi
                   10448: done
1.15      bertrand 10449: rm -f conf$$subs.sh
1.1       bertrand 10450: 
1.15      bertrand 10451: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10452: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10453: _ACEOF
                   10454: sed -n '
                   10455: h
                   10456: s/^/S["/; s/!.*/"]=/
                   10457: p
                   10458: g
                   10459: s/^[^!]*!//
                   10460: :repl
                   10461: t repl
                   10462: s/'"$ac_delim"'$//
                   10463: t delim
                   10464: :nl
                   10465: h
                   10466: s/\(.\{148\}\)..*/\1/
                   10467: t more1
                   10468: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10469: p
                   10470: n
                   10471: b repl
                   10472: :more1
                   10473: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10474: p
                   10475: g
                   10476: s/.\{148\}//
                   10477: t nl
                   10478: :delim
                   10479: h
                   10480: s/\(.\{148\}\)..*/\1/
                   10481: t more2
                   10482: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10483: p
                   10484: b
                   10485: :more2
                   10486: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10487: p
                   10488: g
                   10489: s/.\{148\}//
                   10490: t delim
                   10491: ' <conf$$subs.awk | sed '
                   10492: /^[^""]/{
                   10493:   N
                   10494:   s/\n//
                   10495: }
                   10496: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10497: rm -f conf$$subs.awk
                   10498: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10499: _ACAWK
1.57      bertrand 10500: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10501:   for (key in S) S_is_set[key] = 1
                   10502:   FS = ""
1.1       bertrand 10503: 
1.15      bertrand 10504: }
                   10505: {
                   10506:   line = $ 0
                   10507:   nfields = split(line, field, "@")
                   10508:   substed = 0
                   10509:   len = length(field[1])
                   10510:   for (i = 2; i < nfields; i++) {
                   10511:     key = field[i]
                   10512:     keylen = length(key)
                   10513:     if (S_is_set[key]) {
                   10514:       value = S[key]
                   10515:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10516:       len += length(value) + length(field[++i])
                   10517:       substed = 1
                   10518:     } else
                   10519:       len += 1 + keylen
                   10520:   }
1.1       bertrand 10521: 
1.15      bertrand 10522:   print line
                   10523: }
1.1       bertrand 10524: 
1.15      bertrand 10525: _ACAWK
1.14      bertrand 10526: _ACEOF
1.15      bertrand 10527: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10528: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10529:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10530: else
                   10531:   cat
1.57      bertrand 10532: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10533:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10534: _ACEOF
                   10535: 
1.36      bertrand 10536: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10537: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10538: # trailing colons and then remove the whole line if VPATH becomes empty
                   10539: # (actually we leave an empty line to preserve line numbers).
                   10540: if test "x$srcdir" = x.; then
1.36      bertrand 10541:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10542: h
                   10543: s///
                   10544: s/^/:/
                   10545: s/[     ]*$/:/
                   10546: s/:\$(srcdir):/:/g
                   10547: s/:\${srcdir}:/:/g
                   10548: s/:@srcdir@:/:/g
                   10549: s/^:*//
1.1       bertrand 10550: s/:*$//
1.36      bertrand 10551: x
                   10552: s/\(=[  ]*\).*/\1/
                   10553: G
                   10554: s/\n//
1.1       bertrand 10555: s/^[^=]*=[  ]*$//
                   10556: }'
                   10557: fi
                   10558: 
1.15      bertrand 10559: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10560: fi # test -n "$CONFIG_FILES"
                   10561: 
1.15      bertrand 10562: # Set up the scripts for CONFIG_HEADERS section.
                   10563: # No need to generate them if there are no CONFIG_HEADERS.
                   10564: # This happens for instance with `./config.status Makefile'.
                   10565: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10566: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10567: BEGIN {
                   10568: _ACEOF
                   10569: 
                   10570: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10571: # here-document in config.status, that substitutes the proper values into
                   10572: # config.h.in to produce config.h.
                   10573: 
                   10574: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10575: # handling of long lines.
                   10576: ac_delim='%!_!# '
                   10577: for ac_last_try in false false :; do
1.57      bertrand 10578:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10579:   if test -z "$ac_tt"; then
1.15      bertrand 10580:     break
                   10581:   elif $ac_last_try; then
1.36      bertrand 10582:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10583:   else
                   10584:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10585:   fi
                   10586: done
                   10587: 
                   10588: # For the awk script, D is an array of macro values keyed by name,
                   10589: # likewise P contains macro parameters if any.  Preserve backslash
                   10590: # newline sequences.
                   10591: 
                   10592: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10593: sed -n '
                   10594: s/.\{148\}/&'"$ac_delim"'/g
                   10595: t rset
                   10596: :rset
                   10597: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10598: t def
                   10599: d
                   10600: :def
                   10601: s/\\$//
                   10602: t bsnl
                   10603: s/["\\]/\\&/g
                   10604: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10605: D["\1"]=" \3"/p
                   10606: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10607: d
                   10608: :bsnl
                   10609: s/["\\]/\\&/g
                   10610: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10611: D["\1"]=" \3\\\\\\n"\\/p
                   10612: t cont
                   10613: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10614: t cont
                   10615: d
                   10616: :cont
                   10617: n
                   10618: s/.\{148\}/&'"$ac_delim"'/g
                   10619: t clear
                   10620: :clear
                   10621: s/\\$//
                   10622: t bsnlc
                   10623: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10624: d
                   10625: :bsnlc
                   10626: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10627: b cont
                   10628: ' <confdefs.h | sed '
                   10629: s/'"$ac_delim"'/"\\\
                   10630: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10631: 
                   10632: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10633:   for (key in D) D_is_set[key] = 1
                   10634:   FS = ""
                   10635: }
                   10636: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10637:   line = \$ 0
                   10638:   split(line, arg, " ")
                   10639:   if (arg[1] == "#") {
                   10640:     defundef = arg[2]
                   10641:     mac1 = arg[3]
                   10642:   } else {
                   10643:     defundef = substr(arg[1], 2)
                   10644:     mac1 = arg[2]
                   10645:   }
                   10646:   split(mac1, mac2, "(") #)
                   10647:   macro = mac2[1]
                   10648:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10649:   if (D_is_set[macro]) {
                   10650:     # Preserve the white space surrounding the "#".
                   10651:     print prefix "define", macro P[macro] D[macro]
                   10652:     next
                   10653:   } else {
                   10654:     # Replace #undef with comments.  This is necessary, for example,
                   10655:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10656:     # on some systems where configure will not decide to define it.
                   10657:     if (defundef == "undef") {
                   10658:       print "/*", prefix defundef, macro, "*/"
                   10659:       next
                   10660:     }
                   10661:   }
                   10662: }
                   10663: { print }
                   10664: _ACAWK
                   10665: _ACEOF
                   10666: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10667:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10668: fi # test -n "$CONFIG_HEADERS"
                   10669: 
1.1       bertrand 10670: 
1.15      bertrand 10671: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10672: shift
                   10673: for ac_tag
1.1       bertrand 10674: do
                   10675:   case $ac_tag in
                   10676:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10677:   esac
                   10678:   case $ac_mode$ac_tag in
                   10679:   :[FHL]*:*);;
1.57      bertrand 10680:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10681:   :[FH]-) ac_tag=-:-;;
                   10682:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10683:   esac
                   10684:   ac_save_IFS=$IFS
                   10685:   IFS=:
                   10686:   set x $ac_tag
                   10687:   IFS=$ac_save_IFS
                   10688:   shift
                   10689:   ac_file=$1
                   10690:   shift
                   10691: 
                   10692:   case $ac_mode in
                   10693:   :L) ac_source=$1;;
                   10694:   :[FH])
                   10695:     ac_file_inputs=
                   10696:     for ac_f
                   10697:     do
                   10698:       case $ac_f in
1.57      bertrand 10699:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10700:       *) # Look for the file first in the build tree, then in the source tree
                   10701:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10702:     # because $ac_f cannot contain `:'.
                   10703:     test -f "$ac_f" ||
                   10704:       case $ac_f in
                   10705:       [\\/$]*) false;;
                   10706:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10707:       esac ||
1.57      bertrand 10708:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10709:       esac
1.15      bertrand 10710:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10711:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10712:     done
                   10713: 
                   10714:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10715:     # use $as_me), people would be surprised to read:
                   10716:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10717:     configure_input='Generated from '`
                   10718:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10719:    `' by configure.'
1.1       bertrand 10720:     if test x"$ac_file" != x-; then
                   10721:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10722:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10723: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10724:     fi
1.15      bertrand 10725:     # Neutralize special characters interpreted by sed in replacement strings.
                   10726:     case $configure_input in #(
                   10727:     *\&* | *\|* | *\\* )
                   10728:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10729:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10730:     *) ac_sed_conf_input=$configure_input;;
                   10731:     esac
1.1       bertrand 10732: 
                   10733:     case $ac_tag in
1.57      bertrand 10734:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10735:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10736:     esac
                   10737:     ;;
                   10738:   esac
                   10739: 
                   10740:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10741: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10742:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10743:     X"$ac_file" : 'X\(//\)$' \| \
                   10744:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10745: $as_echo X"$ac_file" |
1.1       bertrand 10746:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10747:        s//\1/
                   10748:        q
                   10749:      }
                   10750:      /^X\(\/\/\)[^/].*/{
                   10751:        s//\1/
                   10752:        q
                   10753:      }
                   10754:      /^X\(\/\/\)$/{
                   10755:        s//\1/
                   10756:        q
                   10757:      }
                   10758:      /^X\(\/\).*/{
                   10759:        s//\1/
                   10760:        q
                   10761:      }
                   10762:      s/.*/./; q'`
1.15      bertrand 10763:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10764:   ac_builddir=.
                   10765: 
                   10766: case "$ac_dir" in
                   10767: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10768: *)
1.15      bertrand 10769:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10770:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10771:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10772:   case $ac_top_builddir_sub in
                   10773:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10774:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10775:   esac ;;
                   10776: esac
                   10777: ac_abs_top_builddir=$ac_pwd
                   10778: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10779: # for backward compatibility:
                   10780: ac_top_builddir=$ac_top_build_prefix
                   10781: 
                   10782: case $srcdir in
                   10783:   .)  # We are building in place.
                   10784:     ac_srcdir=.
                   10785:     ac_top_srcdir=$ac_top_builddir_sub
                   10786:     ac_abs_top_srcdir=$ac_pwd ;;
                   10787:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10788:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10789:     ac_top_srcdir=$srcdir
                   10790:     ac_abs_top_srcdir=$srcdir ;;
                   10791:   *) # Relative name.
                   10792:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10793:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10794:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10795: esac
                   10796: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10797: 
                   10798: 
                   10799:   case $ac_mode in
                   10800:   :F)
                   10801:   #
                   10802:   # CONFIG_FILE
                   10803:   #
                   10804: 
                   10805:   case $INSTALL in
                   10806:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10807:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10808:   esac
                   10809:   ac_MKDIR_P=$MKDIR_P
                   10810:   case $MKDIR_P in
                   10811:   [\\/$]* | ?:[\\/]* ) ;;
                   10812:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10813:   esac
                   10814: _ACEOF
                   10815: 
1.15      bertrand 10816: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10817: # If the template does not know about datarootdir, expand it.
                   10818: # FIXME: This hack should be removed a few years after 2.60.
                   10819: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10820: ac_sed_dataroot='
                   10821: /datarootdir/ {
1.1       bertrand 10822:   p
                   10823:   q
                   10824: }
                   10825: /@datadir@/p
                   10826: /@docdir@/p
                   10827: /@infodir@/p
                   10828: /@localedir@/p
1.15      bertrand 10829: /@mandir@/p'
                   10830: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10831: *datarootdir*) ac_datarootdir_seen=yes;;
                   10832: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10833:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10834: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10835: _ACEOF
1.15      bertrand 10836: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10837:   ac_datarootdir_hack='
                   10838:   s&@datadir@&$datadir&g
                   10839:   s&@docdir@&$docdir&g
                   10840:   s&@infodir@&$infodir&g
                   10841:   s&@localedir@&$localedir&g
                   10842:   s&@mandir@&$mandir&g
1.15      bertrand 10843:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10844: esac
                   10845: _ACEOF
                   10846: 
                   10847: # Neutralize VPATH when `$srcdir' = `.'.
                   10848: # Shell code in configure.ac might set extrasub.
                   10849: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10850: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10851: ac_sed_extra="$ac_vpsub
1.1       bertrand 10852: $extrasub
                   10853: _ACEOF
1.15      bertrand 10854: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10855: :t
                   10856: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10857: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10858: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10859: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10860: s&@srcdir@&$ac_srcdir&;t t
                   10861: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10862: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10863: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10864: s&@builddir@&$ac_builddir&;t t
                   10865: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10866: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10867: s&@INSTALL@&$ac_INSTALL&;t t
                   10868: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10869: $ac_datarootdir_hack
1.15      bertrand 10870: "
1.57      bertrand 10871: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10872:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10873: 
                   10874: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10875:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10876:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10877:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10878:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10879: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10880: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10881: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10882: 
1.57      bertrand 10883:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10884:   case $ac_file in
1.57      bertrand 10885:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10886:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10887:   esac \
1.36      bertrand 10888:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10889:  ;;
                   10890:   :H)
                   10891:   #
                   10892:   # CONFIG_HEADER
                   10893:   #
                   10894:   if test x"$ac_file" != x-; then
1.15      bertrand 10895:     {
                   10896:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10897:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10898:     } >"$ac_tmp/config.h" \
1.36      bertrand 10899:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10900:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10901:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10902: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10903:     else
1.15      bertrand 10904:       rm -f "$ac_file"
1.57      bertrand 10905:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10906:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10907:     fi
                   10908:   else
1.15      bertrand 10909:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10910:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10911:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10912:   fi
1.15      bertrand 10913: # Compute "$ac_file"'s index in $config_headers.
                   10914: _am_arg="$ac_file"
1.1       bertrand 10915: _am_stamp_count=1
                   10916: for _am_header in $config_headers :; do
                   10917:   case $_am_header in
                   10918:     $_am_arg | $_am_arg:* )
                   10919:       break ;;
                   10920:     * )
                   10921:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10922:   esac
                   10923: done
                   10924: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10925: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10926:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10927:     X"$_am_arg" : 'X\(//\)$' \| \
                   10928:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10929: $as_echo X"$_am_arg" |
1.1       bertrand 10930:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10931:        s//\1/
                   10932:        q
                   10933:      }
                   10934:      /^X\(\/\/\)[^/].*/{
                   10935:        s//\1/
                   10936:        q
                   10937:      }
                   10938:      /^X\(\/\/\)$/{
                   10939:        s//\1/
                   10940:        q
                   10941:      }
                   10942:      /^X\(\/\).*/{
                   10943:        s//\1/
                   10944:        q
                   10945:      }
                   10946:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10947:  ;;
                   10948: 
1.15      bertrand 10949:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10950: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10951:  ;;
                   10952:   esac
                   10953: 
                   10954: 
                   10955:   case $ac_file$ac_mode in
1.15      bertrand 10956:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10957:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10958:   # are listed without --file.  Let's play safe and only enable the eval
                   10959:   # if we detect the quoting.
                   10960:   case $CONFIG_FILES in
                   10961:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10962:   *)   set x $CONFIG_FILES ;;
                   10963:   esac
                   10964:   shift
                   10965:   for mf
                   10966:   do
                   10967:     # Strip MF so we end up with the name of the file.
                   10968:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10969:     # Check whether this is an Automake generated Makefile or not.
                   10970:     # We used to match only the files named `Makefile.in', but
                   10971:     # some people rename them; so instead we look at the file content.
                   10972:     # Grep'ing the first line is not enough: some people post-process
                   10973:     # each Makefile.in and add a new line on top of each file to say so.
                   10974:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10975:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10976:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10977:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10978: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10979:     X"$mf" : 'X\(//\)[^/]' \| \
                   10980:     X"$mf" : 'X\(//\)$' \| \
                   10981:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10982: $as_echo X"$mf" |
1.1       bertrand 10983:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10984:        s//\1/
                   10985:        q
                   10986:      }
                   10987:      /^X\(\/\/\)[^/].*/{
                   10988:        s//\1/
                   10989:        q
                   10990:      }
                   10991:      /^X\(\/\/\)$/{
                   10992:        s//\1/
                   10993:        q
                   10994:      }
                   10995:      /^X\(\/\).*/{
                   10996:        s//\1/
                   10997:        q
                   10998:      }
                   10999:      s/.*/./; q'`
1.15      bertrand 11000:     else
                   11001:       continue
                   11002:     fi
                   11003:     # Extract the definition of DEPDIR, am__include, and am__quote
                   11004:     # from the Makefile without running `make'.
                   11005:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   11006:     test -z "$DEPDIR" && continue
                   11007:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   11008:     test -z "am__include" && continue
                   11009:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   11010:     # When using ansi2knr, U may be empty or an underscore; expand it
                   11011:     U=`sed -n 's/^U = //p' < "$mf"`
                   11012:     # Find all dependency output files, they are included files with
                   11013:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   11014:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   11015:     # expansion.
                   11016:     for file in `sed -n "
                   11017:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   11018:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   11019:       # Make sure the directory exists.
                   11020:       test -f "$dirpart/$file" && continue
                   11021:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 11022: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11023:     X"$file" : 'X\(//\)[^/]' \| \
                   11024:     X"$file" : 'X\(//\)$' \| \
                   11025:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11026: $as_echo X"$file" |
1.1       bertrand 11027:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11028:        s//\1/
                   11029:        q
                   11030:      }
                   11031:      /^X\(\/\/\)[^/].*/{
                   11032:        s//\1/
                   11033:        q
                   11034:      }
                   11035:      /^X\(\/\/\)$/{
                   11036:        s//\1/
                   11037:        q
                   11038:      }
                   11039:      /^X\(\/\).*/{
                   11040:        s//\1/
                   11041:        q
                   11042:      }
                   11043:      s/.*/./; q'`
1.15      bertrand 11044:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11045:       # echo "creating $dirpart/$file"
                   11046:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11047:     done
                   11048:   done
1.15      bertrand 11049: }
1.1       bertrand 11050:  ;;
                   11051: 
                   11052:   esac
                   11053: done # for ac_tag
                   11054: 
                   11055: 
1.15      bertrand 11056: as_fn_exit 0
1.1       bertrand 11057: _ACEOF
                   11058: ac_clean_files=$ac_clean_files_save
                   11059: 
1.15      bertrand 11060: test $ac_write_fail = 0 ||
1.36      bertrand 11061:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11062: 
1.1       bertrand 11063: 
                   11064: # configure is writing to config.log, and then calls config.status.
                   11065: # config.status does its own redirection, appending to config.log.
                   11066: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11067: # by configure, so config.status won't be able to write to it; its
                   11068: # output is simply discarded.  So we exec the FD to /dev/null,
                   11069: # effectively closing config.log, so it can be properly (re)opened and
                   11070: # appended to by config.status.  When coming back to configure, we
                   11071: # need to make the FD available again.
                   11072: if test "$no_create" != yes; then
                   11073:   ac_cs_success=:
                   11074:   ac_config_status_args=
                   11075:   test "$silent" = yes &&
                   11076:     ac_config_status_args="$ac_config_status_args --quiet"
                   11077:   exec 5>/dev/null
                   11078:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11079:   exec 5>>config.log
                   11080:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11081:   # would make configure fail if this is the last instruction.
1.36      bertrand 11082:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11083: fi
                   11084: 
                   11085: #
                   11086: # CONFIG_SUBDIRS section.
                   11087: #
                   11088: if test "$no_recursion" != yes; then
                   11089: 
1.15      bertrand 11090:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11091:   # so they do not pile up.
1.1       bertrand 11092:   ac_sub_configure_args=
                   11093:   ac_prev=
                   11094:   eval "set x $ac_configure_args"
                   11095:   shift
                   11096:   for ac_arg
                   11097:   do
                   11098:     if test -n "$ac_prev"; then
                   11099:       ac_prev=
                   11100:       continue
                   11101:     fi
                   11102:     case $ac_arg in
                   11103:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11104:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11105:       ac_prev=cache_file ;;
                   11106:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11107:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11108:     | --c=*)
                   11109:       ;;
                   11110:     --config-cache | -C)
                   11111:       ;;
                   11112:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11113:       ac_prev=srcdir ;;
                   11114:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11115:       ;;
                   11116:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11117:       ac_prev=prefix ;;
                   11118:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11119:       ;;
1.15      bertrand 11120:     --disable-option-checking)
                   11121:       ;;
1.1       bertrand 11122:     *)
                   11123:       case $ac_arg in
1.15      bertrand 11124:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11125:       esac
1.15      bertrand 11126:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11127:     esac
                   11128:   done
                   11129: 
                   11130:   # Always prepend --prefix to ensure using the same prefix
                   11131:   # in subdir configurations.
                   11132:   ac_arg="--prefix=$prefix"
                   11133:   case $ac_arg in
1.15      bertrand 11134:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11135:   esac
                   11136:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11137: 
                   11138:   # Pass --silent
                   11139:   if test "$silent" = yes; then
                   11140:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11141:   fi
                   11142: 
1.15      bertrand 11143:   # Always prepend --disable-option-checking to silence warnings, since
                   11144:   # different subdirs can have different --enable and --with options.
                   11145:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11146: 
1.1       bertrand 11147:   ac_popdir=`pwd`
                   11148:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11149: 
                   11150:     # Do not complain, so a configure script can configure whichever
                   11151:     # parts of a large source tree are present.
                   11152:     test -d "$srcdir/$ac_dir" || continue
                   11153: 
                   11154:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11155:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11156:     $as_echo "$ac_msg" >&6
                   11157:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11158:     ac_builddir=.
                   11159: 
                   11160: case "$ac_dir" in
                   11161: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11162: *)
1.15      bertrand 11163:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11164:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11165:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11166:   case $ac_top_builddir_sub in
                   11167:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11168:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11169:   esac ;;
                   11170: esac
                   11171: ac_abs_top_builddir=$ac_pwd
                   11172: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11173: # for backward compatibility:
                   11174: ac_top_builddir=$ac_top_build_prefix
                   11175: 
                   11176: case $srcdir in
                   11177:   .)  # We are building in place.
                   11178:     ac_srcdir=.
                   11179:     ac_top_srcdir=$ac_top_builddir_sub
                   11180:     ac_abs_top_srcdir=$ac_pwd ;;
                   11181:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11182:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11183:     ac_top_srcdir=$srcdir
                   11184:     ac_abs_top_srcdir=$srcdir ;;
                   11185:   *) # Relative name.
                   11186:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11187:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11188:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11189: esac
                   11190: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11191: 
                   11192: 
                   11193:     cd "$ac_dir"
                   11194: 
                   11195:     # Check for guested configure; otherwise get Cygnus style configure.
                   11196:     if test -f "$ac_srcdir/configure.gnu"; then
                   11197:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11198:     elif test -f "$ac_srcdir/configure"; then
                   11199:       ac_sub_configure=$ac_srcdir/configure
                   11200:     elif test -f "$ac_srcdir/configure.in"; then
                   11201:       # This should be Cygnus configure.
                   11202:       ac_sub_configure=$ac_aux_dir/configure
                   11203:     else
1.15      bertrand 11204:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11205: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11206:       ac_sub_configure=
                   11207:     fi
                   11208: 
                   11209:     # The recursion is here.
                   11210:     if test -n "$ac_sub_configure"; then
                   11211:       # Make the cache file name correct relative to the subdirectory.
                   11212:       case $cache_file in
                   11213:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11214:       *) # Relative name.
                   11215:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11216:       esac
                   11217: 
1.15      bertrand 11218:       { $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
                   11219: $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 11220:       # The eval makes quoting arguments work.
                   11221:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11222:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11223:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11224:     fi
                   11225: 
                   11226:     cd "$ac_popdir"
                   11227:   done
                   11228: fi
1.15      bertrand 11229: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11230:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11231: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11232: fi
1.1       bertrand 11233: 

CVSweb interface <joel.bertrand@systella.fr>