Annotation of rpl/configure, revision 1.89

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.89    ! bertrand  676: SHARED_MEMORY
1.67      bertrand  677: LIBRPLCAS
                    678: RPLCAS
1.66      bertrand  679: ABI
1.88      bertrand  680: RPLTOOLS
1.15      bertrand  681: X_EXTRA_LIBS
                    682: X_LIBS
                    683: X_PRE_LIBS
                    684: X_CFLAGS
                    685: CPP
                    686: XMKMF
                    687: ac_ct_FC
                    688: FCFLAGS
                    689: FC
                    690: ac_ct_F77
                    691: FFLAGS
                    692: F77
                    693: am__fastdepCXX_FALSE
                    694: am__fastdepCXX_TRUE
                    695: CXXDEPMODE
                    696: ac_ct_CXX
                    697: CXXFLAGS
                    698: CXX
                    699: am__fastdepCC_FALSE
                    700: am__fastdepCC_TRUE
                    701: CCDEPMODE
                    702: AMDEPBACKSLASH
                    703: AMDEP_FALSE
                    704: AMDEP_TRUE
                    705: am__quote
                    706: am__include
                    707: DEPDIR
                    708: OBJEXT
                    709: EXEEXT
                    710: ac_ct_CC
                    711: CPPFLAGS
                    712: LDFLAGS
                    713: CFLAGS
                    714: CC
                    715: am__untar
                    716: am__tar
                    717: AMTAR
                    718: am__leading_dot
                    719: SET_MAKE
                    720: AWK
                    721: mkdir_p
                    722: MKDIR_P
                    723: INSTALL_STRIP_PROGRAM
                    724: STRIP
                    725: install_sh
                    726: MAKEINFO
                    727: AUTOHEADER
                    728: AUTOMAKE
                    729: AUTOCONF
                    730: ACLOCAL
                    731: VERSION
                    732: PACKAGE
                    733: CYGPATH_W
                    734: am__isrc
                    735: INSTALL_DATA
                    736: INSTALL_SCRIPT
                    737: INSTALL_PROGRAM
                    738: target_os
                    739: target_vendor
                    740: target_cpu
                    741: target
                    742: host_os
                    743: host_vendor
                    744: host_cpu
                    745: host
                    746: build_os
                    747: build_vendor
                    748: build_cpu
                    749: build
                    750: target_alias
                    751: host_alias
                    752: build_alias
                    753: LIBS
                    754: ECHO_T
                    755: ECHO_N
                    756: ECHO_C
                    757: DEFS
                    758: mandir
                    759: localedir
                    760: libdir
                    761: psdir
                    762: pdfdir
                    763: dvidir
                    764: htmldir
                    765: infodir
                    766: docdir
                    767: oldincludedir
                    768: includedir
                    769: localstatedir
                    770: sharedstatedir
                    771: sysconfdir
                    772: datadir
                    773: datarootdir
                    774: libexecdir
                    775: sbindir
                    776: bindir
                    777: program_transform_name
                    778: prefix
                    779: exec_prefix
                    780: PACKAGE_URL
                    781: PACKAGE_BUGREPORT
                    782: PACKAGE_STRING
                    783: PACKAGE_VERSION
                    784: PACKAGE_TARNAME
                    785: PACKAGE_NAME
1.14      bertrand  786: PATH_SEPARATOR
1.15      bertrand  787: SHELL'
                    788: ac_subst_files=''
                    789: ac_user_opts='
                    790: enable_option_checking
                    791: enable_dependency_tracking
                    792: with_x
1.69      bertrand  793: with_32bits_abi
                    794: with_64bits_abi
1.88      bertrand  795: with_rpltools
                    796: enable_rplcas
1.89    ! bertrand  797: enable_shared_memory
1.15      bertrand  798: enable_optimization
1.87      bertrand  799: enable_sysv_ipcs
1.30      bertrand  800: enable_full_static
1.15      bertrand  801: enable_final_encoding
                    802: enable_tex
                    803: enable_vim
                    804: enable_embedded_gnuplot
                    805: enable_gnuplot
                    806: enable_motif
                    807: enable_experimental
                    808: enable_debug
                    809: enable_profile
                    810: enable_final_run_path
                    811: with_mysql
                    812: with_postgresql
1.40      bertrand  813: with_bourne_shell
1.15      bertrand  814: with_openssl_arch
                    815: '
                    816:       ac_precious_vars='build_alias
1.1       bertrand  817: host_alias
                    818: target_alias
                    819: CC
                    820: CFLAGS
                    821: LDFLAGS
1.15      bertrand  822: LIBS
1.1       bertrand  823: CPPFLAGS
                    824: CXX
                    825: CXXFLAGS
1.15      bertrand  826: CCC
1.1       bertrand  827: F77
                    828: FFLAGS
                    829: FC
                    830: FCFLAGS
                    831: XMKMF
                    832: CPP'
1.80      bertrand  833: ac_subdirs_all='tools/$LIBXPM
                    834: tools/$OPENMOTIF
                    835: tools/$GNUPLOT
1.69      bertrand  836: tools/$NCURSES
1.1       bertrand  837: tools/$READLINE
                    838: tools/$GSL
                    839: tools/$GPP
                    840: tools/$FILE
                    841: tools/$ICONV
1.9       bertrand  842: tools/$SQLITE
1.76      bertrand  843: tools/$UNITS
                    844: tools/$SIGSEGV'
1.1       bertrand  845: 
                    846: # Initialize some variables set by options.
                    847: ac_init_help=
                    848: ac_init_version=false
1.15      bertrand  849: ac_unrecognized_opts=
                    850: ac_unrecognized_sep=
1.1       bertrand  851: # The variables have the same names as the options, with
                    852: # dashes changed to underlines.
                    853: cache_file=/dev/null
                    854: exec_prefix=NONE
                    855: no_create=
                    856: no_recursion=
                    857: prefix=NONE
                    858: program_prefix=NONE
                    859: program_suffix=NONE
                    860: program_transform_name=s,x,x,
                    861: silent=
                    862: site=
                    863: srcdir=
                    864: verbose=
                    865: x_includes=NONE
                    866: x_libraries=NONE
                    867: 
                    868: # Installation directory options.
                    869: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    870: # and all the variables that are supposed to be based on exec_prefix
                    871: # by default will actually change.
                    872: # Use braces instead of parens because sh, perl, etc. also accept them.
                    873: # (The list follows the same order as the GNU Coding Standards.)
                    874: bindir='${exec_prefix}/bin'
                    875: sbindir='${exec_prefix}/sbin'
                    876: libexecdir='${exec_prefix}/libexec'
                    877: datarootdir='${prefix}/share'
                    878: datadir='${datarootdir}'
                    879: sysconfdir='${prefix}/etc'
                    880: sharedstatedir='${prefix}/com'
                    881: localstatedir='${prefix}/var'
                    882: includedir='${prefix}/include'
                    883: oldincludedir='/usr/include'
                    884: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    885: infodir='${datarootdir}/info'
                    886: htmldir='${docdir}'
                    887: dvidir='${docdir}'
                    888: pdfdir='${docdir}'
                    889: psdir='${docdir}'
                    890: libdir='${exec_prefix}/lib'
                    891: localedir='${datarootdir}/locale'
                    892: mandir='${datarootdir}/man'
                    893: 
                    894: ac_prev=
                    895: ac_dashdash=
                    896: for ac_option
                    897: do
                    898:   # If the previous option needs an argument, assign it.
                    899:   if test -n "$ac_prev"; then
                    900:     eval $ac_prev=\$ac_option
                    901:     ac_prev=
                    902:     continue
                    903:   fi
                    904: 
                    905:   case $ac_option in
1.36      bertrand  906:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    907:   *=)   ac_optarg= ;;
                    908:   *)    ac_optarg=yes ;;
1.1       bertrand  909:   esac
                    910: 
                    911:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    912: 
                    913:   case $ac_dashdash$ac_option in
                    914:   --)
                    915:     ac_dashdash=yes ;;
                    916: 
                    917:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    918:     ac_prev=bindir ;;
                    919:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    920:     bindir=$ac_optarg ;;
                    921: 
                    922:   -build | --build | --buil | --bui | --bu)
                    923:     ac_prev=build_alias ;;
                    924:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    925:     build_alias=$ac_optarg ;;
                    926: 
                    927:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    928:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    929:     ac_prev=cache_file ;;
                    930:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    931:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    932:     cache_file=$ac_optarg ;;
                    933: 
                    934:   --config-cache | -C)
                    935:     cache_file=config.cache ;;
                    936: 
                    937:   -datadir | --datadir | --datadi | --datad)
                    938:     ac_prev=datadir ;;
                    939:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    940:     datadir=$ac_optarg ;;
                    941: 
                    942:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    943:   | --dataroo | --dataro | --datar)
                    944:     ac_prev=datarootdir ;;
                    945:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    946:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    947:     datarootdir=$ac_optarg ;;
                    948: 
                    949:   -disable-* | --disable-*)
1.15      bertrand  950:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  951:     # Reject names that are not valid shell variable names.
1.15      bertrand  952:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  953:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  954:     ac_useropt_orig=$ac_useropt
                    955:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    956:     case $ac_user_opts in
                    957:       *"
                    958: "enable_$ac_useropt"
                    959: "*) ;;
                    960:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    961:     ac_unrecognized_sep=', ';;
                    962:     esac
                    963:     eval enable_$ac_useropt=no ;;
1.1       bertrand  964: 
                    965:   -docdir | --docdir | --docdi | --doc | --do)
                    966:     ac_prev=docdir ;;
                    967:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    968:     docdir=$ac_optarg ;;
                    969: 
                    970:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    971:     ac_prev=dvidir ;;
                    972:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    973:     dvidir=$ac_optarg ;;
                    974: 
                    975:   -enable-* | --enable-*)
1.15      bertrand  976:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  977:     # Reject names that are not valid shell variable names.
1.15      bertrand  978:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  979:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  980:     ac_useropt_orig=$ac_useropt
                    981:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    982:     case $ac_user_opts in
                    983:       *"
                    984: "enable_$ac_useropt"
                    985: "*) ;;
                    986:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    987:     ac_unrecognized_sep=', ';;
                    988:     esac
                    989:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  990: 
                    991:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    992:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    993:   | --exec | --exe | --ex)
                    994:     ac_prev=exec_prefix ;;
                    995:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    996:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    997:   | --exec=* | --exe=* | --ex=*)
                    998:     exec_prefix=$ac_optarg ;;
                    999: 
                   1000:   -gas | --gas | --ga | --g)
                   1001:     # Obsolete; use --with-gas.
                   1002:     with_gas=yes ;;
                   1003: 
                   1004:   -help | --help | --hel | --he | -h)
                   1005:     ac_init_help=long ;;
                   1006:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1007:     ac_init_help=recursive ;;
                   1008:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1009:     ac_init_help=short ;;
                   1010: 
                   1011:   -host | --host | --hos | --ho)
                   1012:     ac_prev=host_alias ;;
                   1013:   -host=* | --host=* | --hos=* | --ho=*)
                   1014:     host_alias=$ac_optarg ;;
                   1015: 
                   1016:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1017:     ac_prev=htmldir ;;
                   1018:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1019:   | --ht=*)
                   1020:     htmldir=$ac_optarg ;;
                   1021: 
                   1022:   -includedir | --includedir | --includedi | --included | --include \
                   1023:   | --includ | --inclu | --incl | --inc)
                   1024:     ac_prev=includedir ;;
                   1025:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1026:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1027:     includedir=$ac_optarg ;;
                   1028: 
                   1029:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1030:     ac_prev=infodir ;;
                   1031:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1032:     infodir=$ac_optarg ;;
                   1033: 
                   1034:   -libdir | --libdir | --libdi | --libd)
                   1035:     ac_prev=libdir ;;
                   1036:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1037:     libdir=$ac_optarg ;;
                   1038: 
                   1039:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1040:   | --libexe | --libex | --libe)
                   1041:     ac_prev=libexecdir ;;
                   1042:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1043:   | --libexe=* | --libex=* | --libe=*)
                   1044:     libexecdir=$ac_optarg ;;
                   1045: 
                   1046:   -localedir | --localedir | --localedi | --localed | --locale)
                   1047:     ac_prev=localedir ;;
                   1048:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1049:     localedir=$ac_optarg ;;
                   1050: 
                   1051:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1052:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1053:     ac_prev=localstatedir ;;
                   1054:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1055:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1056:     localstatedir=$ac_optarg ;;
                   1057: 
                   1058:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1059:     ac_prev=mandir ;;
                   1060:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1061:     mandir=$ac_optarg ;;
                   1062: 
                   1063:   -nfp | --nfp | --nf)
                   1064:     # Obsolete; use --without-fp.
                   1065:     with_fp=no ;;
                   1066: 
                   1067:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1068:   | --no-cr | --no-c | -n)
                   1069:     no_create=yes ;;
                   1070: 
                   1071:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1072:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1073:     no_recursion=yes ;;
                   1074: 
                   1075:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1076:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1077:   | --oldin | --oldi | --old | --ol | --o)
                   1078:     ac_prev=oldincludedir ;;
                   1079:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1080:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1081:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1082:     oldincludedir=$ac_optarg ;;
                   1083: 
                   1084:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1085:     ac_prev=prefix ;;
                   1086:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1087:     prefix=$ac_optarg ;;
                   1088: 
                   1089:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1090:   | --program-pre | --program-pr | --program-p)
                   1091:     ac_prev=program_prefix ;;
                   1092:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1093:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1094:     program_prefix=$ac_optarg ;;
                   1095: 
                   1096:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1097:   | --program-suf | --program-su | --program-s)
                   1098:     ac_prev=program_suffix ;;
                   1099:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1100:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1101:     program_suffix=$ac_optarg ;;
                   1102: 
                   1103:   -program-transform-name | --program-transform-name \
                   1104:   | --program-transform-nam | --program-transform-na \
                   1105:   | --program-transform-n | --program-transform- \
                   1106:   | --program-transform | --program-transfor \
                   1107:   | --program-transfo | --program-transf \
                   1108:   | --program-trans | --program-tran \
                   1109:   | --progr-tra | --program-tr | --program-t)
                   1110:     ac_prev=program_transform_name ;;
                   1111:   -program-transform-name=* | --program-transform-name=* \
                   1112:   | --program-transform-nam=* | --program-transform-na=* \
                   1113:   | --program-transform-n=* | --program-transform-=* \
                   1114:   | --program-transform=* | --program-transfor=* \
                   1115:   | --program-transfo=* | --program-transf=* \
                   1116:   | --program-trans=* | --program-tran=* \
                   1117:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1118:     program_transform_name=$ac_optarg ;;
                   1119: 
                   1120:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1121:     ac_prev=pdfdir ;;
                   1122:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1123:     pdfdir=$ac_optarg ;;
                   1124: 
                   1125:   -psdir | --psdir | --psdi | --psd | --ps)
                   1126:     ac_prev=psdir ;;
                   1127:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1128:     psdir=$ac_optarg ;;
                   1129: 
                   1130:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1131:   | -silent | --silent | --silen | --sile | --sil)
                   1132:     silent=yes ;;
                   1133: 
                   1134:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1135:     ac_prev=sbindir ;;
                   1136:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1137:   | --sbi=* | --sb=*)
                   1138:     sbindir=$ac_optarg ;;
                   1139: 
                   1140:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1141:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1142:   | --sharedst | --shareds | --shared | --share | --shar \
                   1143:   | --sha | --sh)
                   1144:     ac_prev=sharedstatedir ;;
                   1145:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1146:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1147:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1148:   | --sha=* | --sh=*)
                   1149:     sharedstatedir=$ac_optarg ;;
                   1150: 
                   1151:   -site | --site | --sit)
                   1152:     ac_prev=site ;;
                   1153:   -site=* | --site=* | --sit=*)
                   1154:     site=$ac_optarg ;;
                   1155: 
                   1156:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1157:     ac_prev=srcdir ;;
                   1158:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1159:     srcdir=$ac_optarg ;;
                   1160: 
                   1161:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1162:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1163:     ac_prev=sysconfdir ;;
                   1164:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1165:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1166:     sysconfdir=$ac_optarg ;;
                   1167: 
                   1168:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1169:     ac_prev=target_alias ;;
                   1170:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1171:     target_alias=$ac_optarg ;;
                   1172: 
                   1173:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1174:     verbose=yes ;;
                   1175: 
                   1176:   -version | --version | --versio | --versi | --vers | -V)
                   1177:     ac_init_version=: ;;
                   1178: 
                   1179:   -with-* | --with-*)
1.15      bertrand 1180:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1181:     # Reject names that are not valid shell variable names.
1.15      bertrand 1182:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1183:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1184:     ac_useropt_orig=$ac_useropt
                   1185:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1186:     case $ac_user_opts in
                   1187:       *"
                   1188: "with_$ac_useropt"
                   1189: "*) ;;
                   1190:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1191:     ac_unrecognized_sep=', ';;
                   1192:     esac
                   1193:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1194: 
                   1195:   -without-* | --without-*)
1.15      bertrand 1196:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1197:     # Reject names that are not valid shell variable names.
1.15      bertrand 1198:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1199:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1200:     ac_useropt_orig=$ac_useropt
                   1201:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1202:     case $ac_user_opts in
                   1203:       *"
                   1204: "with_$ac_useropt"
                   1205: "*) ;;
                   1206:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1207:     ac_unrecognized_sep=', ';;
                   1208:     esac
                   1209:     eval with_$ac_useropt=no ;;
1.1       bertrand 1210: 
                   1211:   --x)
                   1212:     # Obsolete; use --with-x.
                   1213:     with_x=yes ;;
                   1214: 
                   1215:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1216:   | --x-incl | --x-inc | --x-in | --x-i)
                   1217:     ac_prev=x_includes ;;
                   1218:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1219:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1220:     x_includes=$ac_optarg ;;
                   1221: 
                   1222:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1223:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1224:     ac_prev=x_libraries ;;
                   1225:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1226:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1227:     x_libraries=$ac_optarg ;;
                   1228: 
1.36      bertrand 1229:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1230: Try \`$0 --help' for more information"
1.1       bertrand 1231:     ;;
                   1232: 
                   1233:   *=*)
                   1234:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1235:     # Reject names that are not valid shell variable names.
1.15      bertrand 1236:     case $ac_envvar in #(
                   1237:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1238:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1239:     esac
1.1       bertrand 1240:     eval $ac_envvar=\$ac_optarg
                   1241:     export $ac_envvar ;;
                   1242: 
                   1243:   *)
                   1244:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1245:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1246:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1247:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1248:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1249:     ;;
                   1250: 
                   1251:   esac
                   1252: done
                   1253: 
                   1254: if test -n "$ac_prev"; then
                   1255:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1256:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1257: fi
                   1258: 
                   1259: if test -n "$ac_unrecognized_opts"; then
                   1260:   case $enable_option_checking in
                   1261:     no) ;;
1.36      bertrand 1262:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1263:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1264:   esac
1.1       bertrand 1265: fi
                   1266: 
1.15      bertrand 1267: # Check all directory arguments for consistency.
1.1       bertrand 1268: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1269:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1270:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1271:        libdir localedir mandir
                   1272: do
                   1273:   eval ac_val=\$$ac_var
1.15      bertrand 1274:   # Remove trailing slashes.
                   1275:   case $ac_val in
                   1276:     */ )
                   1277:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1278:       eval $ac_var=\$ac_val;;
                   1279:   esac
                   1280:   # Be sure to have absolute directory names.
1.1       bertrand 1281:   case $ac_val in
                   1282:     [\\/$]* | ?:[\\/]* )  continue;;
                   1283:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1284:   esac
1.36      bertrand 1285:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1286: done
                   1287: 
                   1288: # There might be people who depend on the old broken behavior: `$host'
                   1289: # used to hold the argument of --host etc.
                   1290: # FIXME: To remove some day.
                   1291: build=$build_alias
                   1292: host=$host_alias
                   1293: target=$target_alias
                   1294: 
                   1295: # FIXME: To remove some day.
                   1296: if test "x$host_alias" != x; then
                   1297:   if test "x$build_alias" = x; then
                   1298:     cross_compiling=maybe
1.36      bertrand 1299:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1300:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1301:   elif test "x$build_alias" != "x$host_alias"; then
                   1302:     cross_compiling=yes
                   1303:   fi
                   1304: fi
                   1305: 
                   1306: ac_tool_prefix=
                   1307: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1308: 
                   1309: test "$silent" = yes && exec 6>/dev/null
                   1310: 
                   1311: 
                   1312: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1313: ac_ls_di=`ls -di .` &&
                   1314: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1315:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1316: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1317:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1318: 
                   1319: 
                   1320: # Find the source files, if location was not specified.
                   1321: if test -z "$srcdir"; then
                   1322:   ac_srcdir_defaulted=yes
                   1323:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1324:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1325: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1326:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1327:     X"$as_myself" : 'X\(//\)$' \| \
                   1328:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1329: $as_echo X"$as_myself" |
1.1       bertrand 1330:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1331:        s//\1/
                   1332:        q
                   1333:      }
                   1334:      /^X\(\/\/\)[^/].*/{
                   1335:        s//\1/
                   1336:        q
                   1337:      }
                   1338:      /^X\(\/\/\)$/{
                   1339:        s//\1/
                   1340:        q
                   1341:      }
                   1342:      /^X\(\/\).*/{
                   1343:        s//\1/
                   1344:        q
                   1345:      }
                   1346:      s/.*/./; q'`
                   1347:   srcdir=$ac_confdir
                   1348:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1349:     srcdir=..
                   1350:   fi
                   1351: else
                   1352:   ac_srcdir_defaulted=no
                   1353: fi
                   1354: if test ! -r "$srcdir/$ac_unique_file"; then
                   1355:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1356:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1357: fi
                   1358: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1359: ac_abs_confdir=`(
1.36      bertrand 1360:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1361:    pwd)`
                   1362: # When building in place, set srcdir=.
                   1363: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1364:   srcdir=.
                   1365: fi
                   1366: # Remove unnecessary trailing slashes from srcdir.
                   1367: # Double slashes in file names in object file debugging info
                   1368: # mess up M-x gdb in Emacs.
                   1369: case $srcdir in
                   1370: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1371: esac
                   1372: for ac_var in $ac_precious_vars; do
                   1373:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1374:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1375:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1376:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1377: done
                   1378: 
                   1379: #
                   1380: # Report the --help message.
                   1381: #
                   1382: if test "$ac_init_help" = "long"; then
                   1383:   # Omit some internal or obsolete options to make the list less imposing.
                   1384:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1385:   cat <<_ACEOF
1.86      bertrand 1386: \`configure' configures rpl 4.1.4 to adapt to many kinds of systems.
1.1       bertrand 1387: 
                   1388: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1389: 
                   1390: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1391: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1392: 
                   1393: Defaults for the options are specified in brackets.
                   1394: 
                   1395: Configuration:
                   1396:   -h, --help              display this help and exit
                   1397:       --help=short        display options specific to this package
                   1398:       --help=recursive    display the short help of all the included packages
                   1399:   -V, --version           display version information and exit
1.36      bertrand 1400:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1401:       --cache-file=FILE   cache test results in FILE [disabled]
                   1402:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1403:   -n, --no-create         do not create output files
                   1404:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1405: 
                   1406: Installation directories:
                   1407:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1408:                           [$ac_default_prefix]
1.1       bertrand 1409:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1410:                           [PREFIX]
1.1       bertrand 1411: 
                   1412: By default, \`make install' will install all the files in
                   1413: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1414: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1415: for instance \`--prefix=\$HOME'.
                   1416: 
                   1417: For better control, use the options below.
                   1418: 
                   1419: Fine tuning of the installation directories:
1.15      bertrand 1420:   --bindir=DIR            user executables [EPREFIX/bin]
                   1421:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1422:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1423:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1424:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1425:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1426:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1427:   --includedir=DIR        C header files [PREFIX/include]
                   1428:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1429:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1430:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1431:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1432:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1433:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1434:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1435:   --htmldir=DIR           html documentation [DOCDIR]
                   1436:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1437:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1438:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1439: _ACEOF
                   1440: 
                   1441:   cat <<\_ACEOF
                   1442: 
                   1443: Program names:
                   1444:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1445:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1446:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1447: 
                   1448: X features:
                   1449:   --x-includes=DIR    X include files are in DIR
                   1450:   --x-libraries=DIR   X library files are in DIR
                   1451: 
                   1452: System types:
                   1453:   --build=BUILD     configure for building on BUILD [guessed]
                   1454:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1455:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1456: _ACEOF
                   1457: fi
                   1458: 
                   1459: if test -n "$ac_init_help"; then
                   1460:   case $ac_init_help in
1.86      bertrand 1461:      short | recursive ) echo "Configuration of rpl 4.1.4:";;
1.1       bertrand 1462:    esac
                   1463:   cat <<\_ACEOF
                   1464: 
                   1465: Optional Features:
1.15      bertrand 1466:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1467:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1468:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1469:   --disable-dependency-tracking  speeds up one-time build
                   1470:   --enable-dependency-tracking   do not reject slow dependency extractors
1.88      bertrand 1471:   --enable-rplcas         compile rplcas (default=no)
1.89    ! bertrand 1472:   --enable-shared-memory  enable shared memory [default=yes]
1.1       bertrand 1473:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.81      bertrand 1474:   --enable-sysv-ipcs      use SystemV IPC functions [default=guessed]
1.30      bertrand 1475:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1476:   --enable-final-encoding force final encoding [default=guessed]
                   1477:   --enable-tex            provide the TeX support [default=guessed]
                   1478:   --enable-vim            provide the vim support [default=guessed]
                   1479:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1480:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1481:   --enable-motif          provide the Motif support [default=guessed]
                   1482:   --enable-experimental   enable experimental code [default=no]
                   1483:   --enable-debug          enable debug code [default=no]
                   1484:   --enable-profile        enable profile code [default=no]
                   1485:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1486: 
                   1487: Optional Packages:
                   1488:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1489:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1490:   --with-x                use the X Window System
1.64      bertrand 1491:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1492:   --with-64bits-abi       force 64bits ABI (multilib)
1.88      bertrand 1493:   --with-rpltools         specify rpltools path used for cross compilation
1.1       bertrand 1494:   --with-mysql=PATH         specify directory for installed mysql
                   1495:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1496:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1497:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1498: 
                   1499: Some influential environment variables:
                   1500:   CC          C compiler command
                   1501:   CFLAGS      C compiler flags
                   1502:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1503:               nonstandard directory <lib dir>
                   1504:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1505:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1506:               you have headers in a nonstandard directory <include dir>
                   1507:   CXX         C++ compiler command
                   1508:   CXXFLAGS    C++ compiler flags
                   1509:   F77         Fortran 77 compiler command
                   1510:   FFLAGS      Fortran 77 compiler flags
                   1511:   FC          Fortran compiler command
                   1512:   FCFLAGS     Fortran compiler flags
                   1513:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1514:   CPP         C preprocessor
                   1515: 
                   1516: Use these variables to override the choices made by `configure' or to help
                   1517: it to find libraries and programs with nonstandard names/locations.
                   1518: 
1.15      bertrand 1519: Report bugs to the package provider.
1.1       bertrand 1520: _ACEOF
                   1521: ac_status=$?
                   1522: fi
                   1523: 
                   1524: if test "$ac_init_help" = "recursive"; then
                   1525:   # If there are subdirs, report their specific --help.
                   1526:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1527:     test -d "$ac_dir" ||
                   1528:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1529:       continue
1.1       bertrand 1530:     ac_builddir=.
                   1531: 
                   1532: case "$ac_dir" in
                   1533: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1534: *)
1.15      bertrand 1535:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1536:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1537:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1538:   case $ac_top_builddir_sub in
                   1539:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1540:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1541:   esac ;;
                   1542: esac
                   1543: ac_abs_top_builddir=$ac_pwd
                   1544: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1545: # for backward compatibility:
                   1546: ac_top_builddir=$ac_top_build_prefix
                   1547: 
                   1548: case $srcdir in
                   1549:   .)  # We are building in place.
                   1550:     ac_srcdir=.
                   1551:     ac_top_srcdir=$ac_top_builddir_sub
                   1552:     ac_abs_top_srcdir=$ac_pwd ;;
                   1553:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1554:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1555:     ac_top_srcdir=$srcdir
                   1556:     ac_abs_top_srcdir=$srcdir ;;
                   1557:   *) # Relative name.
                   1558:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1559:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1560:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1561: esac
                   1562: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1563: 
                   1564:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1565:     # Check for guested configure.
                   1566:     if test -f "$ac_srcdir/configure.gnu"; then
                   1567:       echo &&
                   1568:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1569:     elif test -f "$ac_srcdir/configure"; then
                   1570:       echo &&
                   1571:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1572:     else
1.15      bertrand 1573:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1574:     fi || ac_status=$?
                   1575:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1576:   done
                   1577: fi
                   1578: 
                   1579: test -n "$ac_init_help" && exit $ac_status
                   1580: if $ac_init_version; then
                   1581:   cat <<\_ACEOF
1.86      bertrand 1582: rpl configure 4.1.4
1.57      bertrand 1583: generated by GNU Autoconf 2.68
1.1       bertrand 1584: 
1.36      bertrand 1585: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1586: This configure script is free software; the Free Software Foundation
                   1587: gives unlimited permission to copy, distribute and modify it.
                   1588: _ACEOF
                   1589:   exit
                   1590: fi
                   1591: 
1.15      bertrand 1592: ## ------------------------ ##
                   1593: ## Autoconf initialization. ##
                   1594: ## ------------------------ ##
                   1595: 
                   1596: # ac_fn_c_try_compile LINENO
                   1597: # --------------------------
                   1598: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1599: ac_fn_c_try_compile ()
                   1600: {
                   1601:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1602:   rm -f conftest.$ac_objext
                   1603:   if { { ac_try="$ac_compile"
                   1604: case "(($ac_try" in
                   1605:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1606:   *) ac_try_echo=$ac_try;;
                   1607: esac
                   1608: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1609: $as_echo "$ac_try_echo"; } >&5
                   1610:   (eval "$ac_compile") 2>conftest.err
                   1611:   ac_status=$?
                   1612:   if test -s conftest.err; then
                   1613:     grep -v '^ *+' conftest.err >conftest.er1
                   1614:     cat conftest.er1 >&5
                   1615:     mv -f conftest.er1 conftest.err
                   1616:   fi
                   1617:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1618:   test $ac_status = 0; } && {
                   1619:     test -z "$ac_c_werror_flag" ||
                   1620:     test ! -s conftest.err
                   1621:        } && test -s conftest.$ac_objext; then :
                   1622:   ac_retval=0
                   1623: else
                   1624:   $as_echo "$as_me: failed program was:" >&5
                   1625: sed 's/^/| /' conftest.$ac_ext >&5
                   1626: 
                   1627:    ac_retval=1
                   1628: fi
1.57      bertrand 1629:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1630:   as_fn_set_status $ac_retval
1.1       bertrand 1631: 
1.15      bertrand 1632: } # ac_fn_c_try_compile
1.1       bertrand 1633: 
1.15      bertrand 1634: # ac_fn_cxx_try_compile LINENO
                   1635: # ----------------------------
                   1636: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1637: ac_fn_cxx_try_compile ()
1.1       bertrand 1638: {
1.15      bertrand 1639:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1640:   rm -f conftest.$ac_objext
                   1641:   if { { ac_try="$ac_compile"
                   1642: case "(($ac_try" in
                   1643:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1644:   *) ac_try_echo=$ac_try;;
                   1645: esac
                   1646: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1647: $as_echo "$ac_try_echo"; } >&5
                   1648:   (eval "$ac_compile") 2>conftest.err
                   1649:   ac_status=$?
                   1650:   if test -s conftest.err; then
                   1651:     grep -v '^ *+' conftest.err >conftest.er1
                   1652:     cat conftest.er1 >&5
                   1653:     mv -f conftest.er1 conftest.err
                   1654:   fi
                   1655:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1656:   test $ac_status = 0; } && {
                   1657:     test -z "$ac_cxx_werror_flag" ||
                   1658:     test ! -s conftest.err
                   1659:        } && test -s conftest.$ac_objext; then :
                   1660:   ac_retval=0
                   1661: else
                   1662:   $as_echo "$as_me: failed program was:" >&5
                   1663: sed 's/^/| /' conftest.$ac_ext >&5
                   1664: 
                   1665:    ac_retval=1
                   1666: fi
1.57      bertrand 1667:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1668:   as_fn_set_status $ac_retval
1.1       bertrand 1669: 
1.15      bertrand 1670: } # ac_fn_cxx_try_compile
1.1       bertrand 1671: 
1.15      bertrand 1672: # ac_fn_f77_try_compile LINENO
                   1673: # ----------------------------
                   1674: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1675: ac_fn_f77_try_compile ()
                   1676: {
                   1677:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1678:   rm -f conftest.$ac_objext
                   1679:   if { { ac_try="$ac_compile"
                   1680: case "(($ac_try" in
                   1681:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1682:   *) ac_try_echo=$ac_try;;
                   1683: esac
                   1684: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1685: $as_echo "$ac_try_echo"; } >&5
                   1686:   (eval "$ac_compile") 2>conftest.err
                   1687:   ac_status=$?
                   1688:   if test -s conftest.err; then
                   1689:     grep -v '^ *+' conftest.err >conftest.er1
                   1690:     cat conftest.er1 >&5
                   1691:     mv -f conftest.er1 conftest.err
                   1692:   fi
                   1693:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1694:   test $ac_status = 0; } && {
                   1695:     test -z "$ac_f77_werror_flag" ||
                   1696:     test ! -s conftest.err
                   1697:        } && test -s conftest.$ac_objext; then :
                   1698:   ac_retval=0
                   1699: else
                   1700:   $as_echo "$as_me: failed program was:" >&5
                   1701: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1702: 
1.15      bertrand 1703:    ac_retval=1
                   1704: fi
1.57      bertrand 1705:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1706:   as_fn_set_status $ac_retval
1.1       bertrand 1707: 
1.15      bertrand 1708: } # ac_fn_f77_try_compile
1.1       bertrand 1709: 
1.15      bertrand 1710: # ac_fn_fc_try_compile LINENO
                   1711: # ---------------------------
                   1712: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1713: ac_fn_fc_try_compile ()
                   1714: {
                   1715:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1716:   rm -f conftest.$ac_objext
                   1717:   if { { ac_try="$ac_compile"
                   1718: case "(($ac_try" in
                   1719:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1720:   *) ac_try_echo=$ac_try;;
                   1721: esac
                   1722: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1723: $as_echo "$ac_try_echo"; } >&5
                   1724:   (eval "$ac_compile") 2>conftest.err
                   1725:   ac_status=$?
                   1726:   if test -s conftest.err; then
                   1727:     grep -v '^ *+' conftest.err >conftest.er1
                   1728:     cat conftest.er1 >&5
                   1729:     mv -f conftest.er1 conftest.err
                   1730:   fi
                   1731:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1732:   test $ac_status = 0; } && {
                   1733:     test -z "$ac_fc_werror_flag" ||
                   1734:     test ! -s conftest.err
                   1735:        } && test -s conftest.$ac_objext; then :
                   1736:   ac_retval=0
                   1737: else
                   1738:   $as_echo "$as_me: failed program was:" >&5
                   1739: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1740: 
1.15      bertrand 1741:    ac_retval=1
                   1742: fi
1.57      bertrand 1743:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1744:   as_fn_set_status $ac_retval
1.1       bertrand 1745: 
1.15      bertrand 1746: } # ac_fn_fc_try_compile
1.1       bertrand 1747: 
1.15      bertrand 1748: # ac_fn_c_try_cpp LINENO
                   1749: # ----------------------
                   1750: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1751: ac_fn_c_try_cpp ()
                   1752: {
                   1753:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1754:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1755: case "(($ac_try" in
                   1756:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1757:   *) ac_try_echo=$ac_try;;
                   1758: esac
                   1759: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1760: $as_echo "$ac_try_echo"; } >&5
                   1761:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1762:   ac_status=$?
                   1763:   if test -s conftest.err; then
                   1764:     grep -v '^ *+' conftest.err >conftest.er1
                   1765:     cat conftest.er1 >&5
                   1766:     mv -f conftest.er1 conftest.err
                   1767:   fi
                   1768:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1769:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1770:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1771:     test ! -s conftest.err
                   1772:        }; then :
                   1773:   ac_retval=0
                   1774: else
                   1775:   $as_echo "$as_me: failed program was:" >&5
                   1776: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1777: 
1.15      bertrand 1778:     ac_retval=1
                   1779: fi
1.57      bertrand 1780:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1781:   as_fn_set_status $ac_retval
1.1       bertrand 1782: 
1.15      bertrand 1783: } # ac_fn_c_try_cpp
1.1       bertrand 1784: 
1.15      bertrand 1785: # ac_fn_c_try_link LINENO
                   1786: # -----------------------
                   1787: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1788: ac_fn_c_try_link ()
                   1789: {
                   1790:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1791:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1792:   if { { ac_try="$ac_link"
                   1793: case "(($ac_try" in
                   1794:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1795:   *) ac_try_echo=$ac_try;;
                   1796: esac
                   1797: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1798: $as_echo "$ac_try_echo"; } >&5
                   1799:   (eval "$ac_link") 2>conftest.err
                   1800:   ac_status=$?
                   1801:   if test -s conftest.err; then
                   1802:     grep -v '^ *+' conftest.err >conftest.er1
                   1803:     cat conftest.er1 >&5
                   1804:     mv -f conftest.er1 conftest.err
                   1805:   fi
                   1806:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1807:   test $ac_status = 0; } && {
                   1808:     test -z "$ac_c_werror_flag" ||
                   1809:     test ! -s conftest.err
                   1810:        } && test -s conftest$ac_exeext && {
                   1811:     test "$cross_compiling" = yes ||
                   1812:     $as_test_x conftest$ac_exeext
                   1813:        }; then :
                   1814:   ac_retval=0
                   1815: else
                   1816:   $as_echo "$as_me: failed program was:" >&5
                   1817: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1818: 
1.15      bertrand 1819:    ac_retval=1
                   1820: fi
                   1821:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1822:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1823:   # interfere with the next link command; also delete a directory that is
                   1824:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1825:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1826:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1827:   as_fn_set_status $ac_retval
1.1       bertrand 1828: 
1.15      bertrand 1829: } # ac_fn_c_try_link
1.1       bertrand 1830: 
1.15      bertrand 1831: # ac_fn_c_check_func LINENO FUNC VAR
                   1832: # ----------------------------------
                   1833: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1834: ac_fn_c_check_func ()
                   1835: {
                   1836:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1837:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1838: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1839: if eval \${$3+:} false; then :
1.15      bertrand 1840:   $as_echo_n "(cached) " >&6
                   1841: else
                   1842:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1843: /* end confdefs.h.  */
                   1844: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1845:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1846: #define $2 innocuous_$2
1.1       bertrand 1847: 
1.15      bertrand 1848: /* System header to define __stub macros and hopefully few prototypes,
                   1849:     which can conflict with char $2 (); below.
                   1850:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1851:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1852: 
1.15      bertrand 1853: #ifdef __STDC__
                   1854: # include <limits.h>
                   1855: #else
                   1856: # include <assert.h>
                   1857: #endif
1.1       bertrand 1858: 
1.15      bertrand 1859: #undef $2
1.1       bertrand 1860: 
1.15      bertrand 1861: /* Override any GCC internal prototype to avoid an error.
                   1862:    Use char because int might match the return type of a GCC
                   1863:    builtin and then its argument prototype would still apply.  */
                   1864: #ifdef __cplusplus
                   1865: extern "C"
                   1866: #endif
                   1867: char $2 ();
                   1868: /* The GNU C library defines this for functions which it implements
                   1869:     to always fail with ENOSYS.  Some functions are actually named
                   1870:     something starting with __ and the normal name is an alias.  */
                   1871: #if defined __stub_$2 || defined __stub___$2
                   1872: choke me
                   1873: #endif
1.1       bertrand 1874: 
1.15      bertrand 1875: int
                   1876: main ()
                   1877: {
                   1878: return $2 ();
                   1879:   ;
                   1880:   return 0;
                   1881: }
1.1       bertrand 1882: _ACEOF
1.15      bertrand 1883: if ac_fn_c_try_link "$LINENO"; then :
                   1884:   eval "$3=yes"
                   1885: else
                   1886:   eval "$3=no"
                   1887: fi
                   1888: rm -f core conftest.err conftest.$ac_objext \
                   1889:     conftest$ac_exeext conftest.$ac_ext
                   1890: fi
                   1891: eval ac_res=\$$3
                   1892:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1893: $as_echo "$ac_res" >&6; }
1.57      bertrand 1894:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1895: 
1.15      bertrand 1896: } # ac_fn_c_check_func
1.1       bertrand 1897: 
1.83      bertrand 1898: # ac_fn_c_try_run LINENO
                   1899: # ----------------------
                   1900: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1901: # that executables *can* be run.
                   1902: ac_fn_c_try_run ()
                   1903: {
                   1904:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1905:   if { { ac_try="$ac_link"
                   1906: case "(($ac_try" in
                   1907:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1908:   *) ac_try_echo=$ac_try;;
                   1909: esac
                   1910: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1911: $as_echo "$ac_try_echo"; } >&5
                   1912:   (eval "$ac_link") 2>&5
                   1913:   ac_status=$?
                   1914:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1915:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1916:   { { case "(($ac_try" in
                   1917:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1918:   *) ac_try_echo=$ac_try;;
                   1919: esac
                   1920: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1921: $as_echo "$ac_try_echo"; } >&5
                   1922:   (eval "$ac_try") 2>&5
                   1923:   ac_status=$?
                   1924:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1925:   test $ac_status = 0; }; }; then :
                   1926:   ac_retval=0
                   1927: else
                   1928:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1929:        $as_echo "$as_me: failed program was:" >&5
                   1930: sed 's/^/| /' conftest.$ac_ext >&5
                   1931: 
                   1932:        ac_retval=$ac_status
                   1933: fi
                   1934:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1935:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1936:   as_fn_set_status $ac_retval
                   1937: 
                   1938: } # ac_fn_c_try_run
                   1939: 
1.33      bertrand 1940: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1941: # -------------------------------------------
                   1942: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1943: # variable VAR accordingly.
                   1944: ac_fn_c_check_type ()
                   1945: {
                   1946:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1947:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1948: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1949: if eval \${$3+:} false; then :
1.33      bertrand 1950:   $as_echo_n "(cached) " >&6
                   1951: else
                   1952:   eval "$3=no"
                   1953:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1954: /* end confdefs.h.  */
                   1955: $4
                   1956: int
                   1957: main ()
                   1958: {
                   1959: if (sizeof ($2))
                   1960:     return 0;
                   1961:   ;
                   1962:   return 0;
                   1963: }
                   1964: _ACEOF
                   1965: if ac_fn_c_try_compile "$LINENO"; then :
                   1966:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1967: /* end confdefs.h.  */
                   1968: $4
                   1969: int
                   1970: main ()
                   1971: {
                   1972: if (sizeof (($2)))
                   1973:        return 0;
                   1974:   ;
                   1975:   return 0;
                   1976: }
                   1977: _ACEOF
                   1978: if ac_fn_c_try_compile "$LINENO"; then :
                   1979: 
                   1980: else
                   1981:   eval "$3=yes"
                   1982: fi
                   1983: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1984: fi
                   1985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1986: fi
                   1987: eval ac_res=\$$3
                   1988:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1989: $as_echo "$ac_res" >&6; }
1.57      bertrand 1990:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1991: 
                   1992: } # ac_fn_c_check_type
                   1993: 
1.15      bertrand 1994: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1995: # --------------------------------------------
                   1996: # Tries to find the compile-time value of EXPR in a program that includes
                   1997: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1998: # computed
                   1999: ac_fn_c_compute_int ()
                   2000: {
                   2001:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2002:   if test "$cross_compiling" = yes; then
                   2003:     # Depending upon the size, compute the lo and hi bounds.
                   2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2005: /* end confdefs.h.  */
                   2006: $4
                   2007: int
                   2008: main ()
                   2009: {
                   2010: static int test_array [1 - 2 * !(($2) >= 0)];
                   2011: test_array [0] = 0
1.1       bertrand 2012: 
1.15      bertrand 2013:   ;
                   2014:   return 0;
                   2015: }
1.1       bertrand 2016: _ACEOF
1.15      bertrand 2017: if ac_fn_c_try_compile "$LINENO"; then :
                   2018:   ac_lo=0 ac_mid=0
                   2019:   while :; do
                   2020:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2021: /* end confdefs.h.  */
                   2022: $4
                   2023: int
                   2024: main ()
                   2025: {
                   2026: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2027: test_array [0] = 0
1.1       bertrand 2028: 
1.15      bertrand 2029:   ;
                   2030:   return 0;
                   2031: }
                   2032: _ACEOF
                   2033: if ac_fn_c_try_compile "$LINENO"; then :
                   2034:   ac_hi=$ac_mid; break
                   2035: else
                   2036:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2037:            if test $ac_lo -le $ac_mid; then
                   2038:              ac_lo= ac_hi=
                   2039:              break
                   2040:            fi
                   2041:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2042: fi
                   2043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2044:   done
                   2045: else
                   2046:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2047: /* end confdefs.h.  */
                   2048: $4
                   2049: int
                   2050: main ()
                   2051: {
                   2052: static int test_array [1 - 2 * !(($2) < 0)];
                   2053: test_array [0] = 0
1.1       bertrand 2054: 
1.15      bertrand 2055:   ;
                   2056:   return 0;
                   2057: }
1.1       bertrand 2058: _ACEOF
1.15      bertrand 2059: if ac_fn_c_try_compile "$LINENO"; then :
                   2060:   ac_hi=-1 ac_mid=-1
                   2061:   while :; do
                   2062:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2063: /* end confdefs.h.  */
                   2064: $4
                   2065: int
                   2066: main ()
                   2067: {
                   2068: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2069: test_array [0] = 0
1.1       bertrand 2070: 
1.15      bertrand 2071:   ;
                   2072:   return 0;
                   2073: }
                   2074: _ACEOF
                   2075: if ac_fn_c_try_compile "$LINENO"; then :
                   2076:   ac_lo=$ac_mid; break
                   2077: else
                   2078:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2079:            if test $ac_mid -le $ac_hi; then
                   2080:              ac_lo= ac_hi=
                   2081:              break
                   2082:            fi
                   2083:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2084: fi
                   2085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2086:   done
1.1       bertrand 2087: else
1.15      bertrand 2088:   ac_lo= ac_hi=
                   2089: fi
                   2090: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2091: fi
1.15      bertrand 2092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2093: # Binary search between lo and hi bounds.
                   2094: while test "x$ac_lo" != "x$ac_hi"; do
                   2095:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2097: /* end confdefs.h.  */
                   2098: $4
                   2099: int
                   2100: main ()
                   2101: {
                   2102: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2103: test_array [0] = 0
1.1       bertrand 2104: 
1.15      bertrand 2105:   ;
                   2106:   return 0;
                   2107: }
                   2108: _ACEOF
                   2109: if ac_fn_c_try_compile "$LINENO"; then :
                   2110:   ac_hi=$ac_mid
1.1       bertrand 2111: else
1.15      bertrand 2112:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2113: fi
1.15      bertrand 2114: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2115: done
                   2116: case $ac_lo in #((
                   2117: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2118: '') ac_retval=1 ;;
                   2119: esac
                   2120:   else
                   2121:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2122: /* end confdefs.h.  */
                   2123: $4
                   2124: static long int longval () { return $2; }
                   2125: static unsigned long int ulongval () { return $2; }
                   2126: #include <stdio.h>
                   2127: #include <stdlib.h>
                   2128: int
                   2129: main ()
                   2130: {
1.1       bertrand 2131: 
1.15      bertrand 2132:   FILE *f = fopen ("conftest.val", "w");
                   2133:   if (! f)
                   2134:     return 1;
                   2135:   if (($2) < 0)
                   2136:     {
                   2137:       long int i = longval ();
                   2138:       if (i != ($2))
                   2139:    return 1;
                   2140:       fprintf (f, "%ld", i);
                   2141:     }
                   2142:   else
                   2143:     {
                   2144:       unsigned long int i = ulongval ();
                   2145:       if (i != ($2))
                   2146:    return 1;
                   2147:       fprintf (f, "%lu", i);
                   2148:     }
                   2149:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2150:      on some platforms.  */
                   2151:   return ferror (f) || fclose (f) != 0;
                   2152: 
                   2153:   ;
                   2154:   return 0;
                   2155: }
                   2156: _ACEOF
                   2157: if ac_fn_c_try_run "$LINENO"; then :
                   2158:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2159: else
                   2160:   ac_retval=1
1.14      bertrand 2161: fi
1.15      bertrand 2162: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2163:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2164: rm -f conftest.val
1.14      bertrand 2165: 
1.15      bertrand 2166:   fi
1.57      bertrand 2167:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2168:   as_fn_set_status $ac_retval
1.14      bertrand 2169: 
1.15      bertrand 2170: } # ac_fn_c_compute_int
1.1       bertrand 2171: 
1.15      bertrand 2172: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2173: # -------------------------------------------------------
                   2174: # Tests whether HEADER exists and can be compiled using the include files in
                   2175: # INCLUDES, setting the cache variable VAR accordingly.
                   2176: ac_fn_c_check_header_compile ()
                   2177: {
                   2178:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2179:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2180: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2181: if eval \${$3+:} false; then :
1.15      bertrand 2182:   $as_echo_n "(cached) " >&6
                   2183: else
                   2184:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2185: /* end confdefs.h.  */
                   2186: $4
                   2187: #include <$2>
                   2188: _ACEOF
                   2189: if ac_fn_c_try_compile "$LINENO"; then :
                   2190:   eval "$3=yes"
                   2191: else
                   2192:   eval "$3=no"
                   2193: fi
                   2194: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2195: fi
                   2196: eval ac_res=\$$3
                   2197:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2198: $as_echo "$ac_res" >&6; }
1.57      bertrand 2199:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2200: 
1.15      bertrand 2201: } # ac_fn_c_check_header_compile
1.1       bertrand 2202: 
1.15      bertrand 2203: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2204: # -------------------------------------------------------
                   2205: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2206: # the include files in INCLUDES and setting the cache variable VAR
                   2207: # accordingly.
                   2208: ac_fn_c_check_header_mongrel ()
                   2209: {
                   2210:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2211:   if eval \${$3+:} false; then :
1.15      bertrand 2212:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2213: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2214: if eval \${$3+:} false; then :
1.15      bertrand 2215:   $as_echo_n "(cached) " >&6
                   2216: fi
                   2217: eval ac_res=\$$3
                   2218:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2219: $as_echo "$ac_res" >&6; }
                   2220: else
                   2221:   # Is the header compilable?
                   2222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2223: $as_echo_n "checking $2 usability... " >&6; }
                   2224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2225: /* end confdefs.h.  */
                   2226: $4
                   2227: #include <$2>
                   2228: _ACEOF
                   2229: if ac_fn_c_try_compile "$LINENO"; then :
                   2230:   ac_header_compiler=yes
                   2231: else
                   2232:   ac_header_compiler=no
                   2233: fi
                   2234: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2236: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2237: 
1.15      bertrand 2238: # Is the header present?
                   2239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2240: $as_echo_n "checking $2 presence... " >&6; }
                   2241: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2242: /* end confdefs.h.  */
                   2243: #include <$2>
                   2244: _ACEOF
                   2245: if ac_fn_c_try_cpp "$LINENO"; then :
                   2246:   ac_header_preproc=yes
                   2247: else
                   2248:   ac_header_preproc=no
                   2249: fi
1.36      bertrand 2250: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2252: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2253: 
1.15      bertrand 2254: # So?  What about this header?
                   2255: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2256:   yes:no: )
                   2257:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2258: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2259:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2260: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2261:     ;;
                   2262:   no:yes:* )
                   2263:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2264: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2265:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2266: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2267:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2268: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2269:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2270: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2271:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2272: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2273:     ;;
                   2274: esac
                   2275:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2276: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2277: if eval \${$3+:} false; then :
1.15      bertrand 2278:   $as_echo_n "(cached) " >&6
                   2279: else
                   2280:   eval "$3=\$ac_header_compiler"
                   2281: fi
                   2282: eval ac_res=\$$3
                   2283:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2284: $as_echo "$ac_res" >&6; }
                   2285: fi
1.57      bertrand 2286:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2287: 
1.15      bertrand 2288: } # ac_fn_c_check_header_mongrel
                   2289: cat >config.log <<_ACEOF
                   2290: This file contains any messages produced by compilers while
                   2291: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2292: 
1.86      bertrand 2293: It was created by rpl $as_me 4.1.4, which was
1.57      bertrand 2294: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2295: 
1.15      bertrand 2296:   $ $0 $@
1.1       bertrand 2297: 
1.15      bertrand 2298: _ACEOF
                   2299: exec 5>>config.log
                   2300: {
                   2301: cat <<_ASUNAME
                   2302: ## --------- ##
                   2303: ## Platform. ##
                   2304: ## --------- ##
1.1       bertrand 2305: 
1.15      bertrand 2306: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2307: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2308: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2309: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2310: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2311: 
1.15      bertrand 2312: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2313: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2314: 
1.15      bertrand 2315: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2316: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2317: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2318: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2319: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2320: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2321: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2322: 
1.15      bertrand 2323: _ASUNAME
1.1       bertrand 2324: 
1.15      bertrand 2325: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2326: for as_dir in $PATH
                   2327: do
                   2328:   IFS=$as_save_IFS
                   2329:   test -z "$as_dir" && as_dir=.
                   2330:     $as_echo "PATH: $as_dir"
                   2331:   done
                   2332: IFS=$as_save_IFS
1.1       bertrand 2333: 
1.15      bertrand 2334: } >&5
1.1       bertrand 2335: 
1.15      bertrand 2336: cat >&5 <<_ACEOF
1.1       bertrand 2337: 
                   2338: 
1.15      bertrand 2339: ## ----------- ##
                   2340: ## Core tests. ##
                   2341: ## ----------- ##
1.1       bertrand 2342: 
1.15      bertrand 2343: _ACEOF
1.1       bertrand 2344: 
                   2345: 
1.15      bertrand 2346: # Keep a trace of the command line.
                   2347: # Strip out --no-create and --no-recursion so they do not pile up.
                   2348: # Strip out --silent because we don't want to record it for future runs.
                   2349: # Also quote any args containing shell meta-characters.
                   2350: # Make two passes to allow for proper duplicate-argument suppression.
                   2351: ac_configure_args=
                   2352: ac_configure_args0=
                   2353: ac_configure_args1=
                   2354: ac_must_keep_next=false
                   2355: for ac_pass in 1 2
                   2356: do
                   2357:   for ac_arg
                   2358:   do
                   2359:     case $ac_arg in
                   2360:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2361:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2362:     | -silent | --silent | --silen | --sile | --sil)
                   2363:       continue ;;
                   2364:     *\'*)
                   2365:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2366:     esac
                   2367:     case $ac_pass in
                   2368:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2369:     2)
                   2370:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2371:       if test $ac_must_keep_next = true; then
                   2372:    ac_must_keep_next=false # Got value, back to normal.
                   2373:       else
                   2374:    case $ac_arg in
                   2375:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2376:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2377:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2378:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2379:        case "$ac_configure_args0 " in
                   2380:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2381:        esac
                   2382:        ;;
                   2383:      -* ) ac_must_keep_next=true ;;
                   2384:    esac
                   2385:       fi
                   2386:       as_fn_append ac_configure_args " '$ac_arg'"
                   2387:       ;;
                   2388:     esac
                   2389:   done
                   2390: done
                   2391: { ac_configure_args0=; unset ac_configure_args0;}
                   2392: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2393: 
1.15      bertrand 2394: # When interrupted or exit'd, cleanup temporary files, and complete
                   2395: # config.log.  We remove comments because anyway the quotes in there
                   2396: # would cause problems or look ugly.
                   2397: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2398: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2399: trap 'exit_status=$?
                   2400:   # Save into config.log some information that might help in debugging.
                   2401:   {
                   2402:     echo
1.1       bertrand 2403: 
1.36      bertrand 2404:     $as_echo "## ---------------- ##
1.15      bertrand 2405: ## Cache variables. ##
1.36      bertrand 2406: ## ---------------- ##"
1.15      bertrand 2407:     echo
                   2408:     # The following way of writing the cache mishandles newlines in values,
                   2409: (
                   2410:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2411:     eval ac_val=\$$ac_var
                   2412:     case $ac_val in #(
                   2413:     *${as_nl}*)
                   2414:       case $ac_var in #(
                   2415:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2416: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2417:       esac
                   2418:       case $ac_var in #(
                   2419:       _ | IFS | as_nl) ;; #(
                   2420:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2421:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2422:       esac ;;
                   2423:     esac
                   2424:   done
                   2425:   (set) 2>&1 |
                   2426:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2427:     *${as_nl}ac_space=\ *)
                   2428:       sed -n \
                   2429:    "s/'\''/'\''\\\\'\'''\''/g;
                   2430:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2431:       ;; #(
                   2432:     *)
                   2433:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2434:       ;;
                   2435:     esac |
                   2436:     sort
                   2437: )
                   2438:     echo
1.1       bertrand 2439: 
1.36      bertrand 2440:     $as_echo "## ----------------- ##
1.15      bertrand 2441: ## Output variables. ##
1.36      bertrand 2442: ## ----------------- ##"
1.15      bertrand 2443:     echo
                   2444:     for ac_var in $ac_subst_vars
                   2445:     do
                   2446:       eval ac_val=\$$ac_var
                   2447:       case $ac_val in
                   2448:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2449:       esac
                   2450:       $as_echo "$ac_var='\''$ac_val'\''"
                   2451:     done | sort
                   2452:     echo
1.1       bertrand 2453: 
1.15      bertrand 2454:     if test -n "$ac_subst_files"; then
1.36      bertrand 2455:       $as_echo "## ------------------- ##
1.15      bertrand 2456: ## File substitutions. ##
1.36      bertrand 2457: ## ------------------- ##"
1.15      bertrand 2458:       echo
                   2459:       for ac_var in $ac_subst_files
                   2460:       do
                   2461:    eval ac_val=\$$ac_var
                   2462:    case $ac_val in
                   2463:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2464:    esac
                   2465:    $as_echo "$ac_var='\''$ac_val'\''"
                   2466:       done | sort
                   2467:       echo
1.14      bertrand 2468:     fi
                   2469: 
1.15      bertrand 2470:     if test -s confdefs.h; then
1.36      bertrand 2471:       $as_echo "## ----------- ##
1.15      bertrand 2472: ## confdefs.h. ##
1.36      bertrand 2473: ## ----------- ##"
1.15      bertrand 2474:       echo
                   2475:       cat confdefs.h
                   2476:       echo
                   2477:     fi
                   2478:     test "$ac_signal" != 0 &&
                   2479:       $as_echo "$as_me: caught signal $ac_signal"
                   2480:     $as_echo "$as_me: exit $exit_status"
                   2481:   } >&5
                   2482:   rm -f core *.core core.conftest.* &&
                   2483:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2484:     exit $exit_status
                   2485: ' 0
                   2486: for ac_signal in 1 2 13 15; do
                   2487:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2488: done
                   2489: ac_signal=0
1.14      bertrand 2490: 
1.15      bertrand 2491: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2492: rm -f -r conftest* confdefs.h
1.14      bertrand 2493: 
1.15      bertrand 2494: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2495: 
1.15      bertrand 2496: # Predefined preprocessor variables.
1.14      bertrand 2497: 
1.15      bertrand 2498: cat >>confdefs.h <<_ACEOF
                   2499: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2500: _ACEOF
1.14      bertrand 2501: 
1.15      bertrand 2502: cat >>confdefs.h <<_ACEOF
                   2503: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2504: _ACEOF
                   2505: 
1.15      bertrand 2506: cat >>confdefs.h <<_ACEOF
                   2507: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2508: _ACEOF
1.14      bertrand 2509: 
1.15      bertrand 2510: cat >>confdefs.h <<_ACEOF
                   2511: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2512: _ACEOF
                   2513: 
1.15      bertrand 2514: cat >>confdefs.h <<_ACEOF
                   2515: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2516: _ACEOF
1.14      bertrand 2517: 
1.15      bertrand 2518: cat >>confdefs.h <<_ACEOF
                   2519: #define PACKAGE_URL "$PACKAGE_URL"
                   2520: _ACEOF
1.14      bertrand 2521: 
                   2522: 
1.15      bertrand 2523: # Let the site file select an alternate cache file if it wants to.
                   2524: # Prefer an explicitly selected file to automatically selected ones.
                   2525: ac_site_file1=NONE
                   2526: ac_site_file2=NONE
                   2527: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2528:   # We do not want a PATH search for config.site.
                   2529:   case $CONFIG_SITE in #((
                   2530:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2531:     */*) ac_site_file1=$CONFIG_SITE;;
                   2532:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2533:   esac
1.15      bertrand 2534: elif test "x$prefix" != xNONE; then
                   2535:   ac_site_file1=$prefix/share/config.site
                   2536:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2537: else
1.15      bertrand 2538:   ac_site_file1=$ac_default_prefix/share/config.site
                   2539:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2540: fi
1.15      bertrand 2541: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2542: do
                   2543:   test "x$ac_site_file" = xNONE && continue
                   2544:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2545:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2546: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2547:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2548:     . "$ac_site_file" \
                   2549:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2550: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2551: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2552: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2553:   fi
                   2554: done
1.14      bertrand 2555: 
1.15      bertrand 2556: if test -r "$cache_file"; then
                   2557:   # Some versions of bash will fail to source /dev/null (special files
                   2558:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2559:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2560:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2561: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2562:     case $cache_file in
                   2563:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2564:       *)                      . "./$cache_file";;
                   2565:     esac
                   2566:   fi
1.14      bertrand 2567: else
1.15      bertrand 2568:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2569: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2570:   >$cache_file
1.14      bertrand 2571: fi
                   2572: 
1.15      bertrand 2573: # Check that the precious variables saved in the cache have kept the same
                   2574: # value.
                   2575: ac_cache_corrupted=false
                   2576: for ac_var in $ac_precious_vars; do
                   2577:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2578:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2579:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2580:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2581:   case $ac_old_set,$ac_new_set in
                   2582:     set,)
                   2583:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2584: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2585:       ac_cache_corrupted=: ;;
                   2586:     ,set)
                   2587:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2588: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2589:       ac_cache_corrupted=: ;;
                   2590:     ,);;
                   2591:     *)
                   2592:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2593:    # differences in whitespace do not lead to failure.
                   2594:    ac_old_val_w=`echo x $ac_old_val`
                   2595:    ac_new_val_w=`echo x $ac_new_val`
                   2596:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2597:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2598: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2599:      ac_cache_corrupted=:
                   2600:    else
                   2601:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2602: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2603:      eval $ac_var=\$ac_old_val
                   2604:    fi
                   2605:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2606: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2607:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2608: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2609:       fi;;
                   2610:   esac
                   2611:   # Pass precious variables to config.status.
                   2612:   if test "$ac_new_set" = set; then
                   2613:     case $ac_new_val in
                   2614:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2615:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2616:     esac
                   2617:     case " $ac_configure_args " in
                   2618:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2619:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2620:     esac
1.14      bertrand 2621:   fi
                   2622: done
1.15      bertrand 2623: if $ac_cache_corrupted; then
                   2624:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2625: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2626:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2627: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2628:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2629: fi
                   2630: ## -------------------- ##
                   2631: ## Main body of script. ##
                   2632: ## -------------------- ##
1.14      bertrand 2633: 
1.15      bertrand 2634: ac_ext=c
                   2635: ac_cpp='$CPP $CPPFLAGS'
                   2636: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2637: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2638: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2639: 
                   2640: 
1.15      bertrand 2641: ac_aux_dir=
                   2642: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2643:   if test -f "$ac_dir/install-sh"; then
                   2644:     ac_aux_dir=$ac_dir
                   2645:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2646:     break
                   2647:   elif test -f "$ac_dir/install.sh"; then
                   2648:     ac_aux_dir=$ac_dir
                   2649:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2650:     break
                   2651:   elif test -f "$ac_dir/shtool"; then
                   2652:     ac_aux_dir=$ac_dir
                   2653:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2654:     break
                   2655:   fi
1.14      bertrand 2656: done
1.15      bertrand 2657: if test -z "$ac_aux_dir"; then
1.36      bertrand 2658:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2659: fi
1.14      bertrand 2660: 
1.15      bertrand 2661: # These three variables are undocumented and unsupported,
                   2662: # and are intended to be withdrawn in a future Autoconf release.
                   2663: # They can cause serious problems if a builder's source tree is in a directory
                   2664: # whose full name contains unusual characters.
                   2665: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2666: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2667: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2668: 
                   2669: 
1.15      bertrand 2670: # Make sure we can run config.sub.
                   2671: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2672:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2673: 
1.15      bertrand 2674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2675: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2676: if ${ac_cv_build+:} false; then :
1.15      bertrand 2677:   $as_echo_n "(cached) " >&6
1.14      bertrand 2678: else
1.15      bertrand 2679:   ac_build_alias=$build_alias
                   2680: test "x$ac_build_alias" = x &&
                   2681:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2682: test "x$ac_build_alias" = x &&
1.36      bertrand 2683:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2684: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2685:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2686: 
                   2687: fi
1.15      bertrand 2688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2689: $as_echo "$ac_cv_build" >&6; }
                   2690: case $ac_cv_build in
                   2691: *-*-*) ;;
1.57      bertrand 2692: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2693: esac
                   2694: build=$ac_cv_build
                   2695: ac_save_IFS=$IFS; IFS='-'
                   2696: set x $ac_cv_build
                   2697: shift
                   2698: build_cpu=$1
                   2699: build_vendor=$2
                   2700: shift; shift
                   2701: # Remember, the first character of IFS is used to create $*,
                   2702: # except with old shells:
                   2703: build_os=$*
                   2704: IFS=$ac_save_IFS
                   2705: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2706: 
                   2707: 
1.15      bertrand 2708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2709: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2710: if ${ac_cv_host+:} false; then :
1.15      bertrand 2711:   $as_echo_n "(cached) " >&6
1.14      bertrand 2712: else
1.15      bertrand 2713:   if test "x$host_alias" = x; then
                   2714:   ac_cv_host=$ac_cv_build
1.14      bertrand 2715: else
1.15      bertrand 2716:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2717:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2718: fi
                   2719: 
                   2720: fi
1.15      bertrand 2721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2722: $as_echo "$ac_cv_host" >&6; }
                   2723: case $ac_cv_host in
                   2724: *-*-*) ;;
1.57      bertrand 2725: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2726: esac
                   2727: host=$ac_cv_host
                   2728: ac_save_IFS=$IFS; IFS='-'
                   2729: set x $ac_cv_host
                   2730: shift
                   2731: host_cpu=$1
                   2732: host_vendor=$2
                   2733: shift; shift
                   2734: # Remember, the first character of IFS is used to create $*,
                   2735: # except with old shells:
                   2736: host_os=$*
                   2737: IFS=$ac_save_IFS
                   2738: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2739: 
                   2740: 
1.15      bertrand 2741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2742: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2743: if ${ac_cv_target+:} false; then :
1.15      bertrand 2744:   $as_echo_n "(cached) " >&6
                   2745: else
                   2746:   if test "x$target_alias" = x; then
                   2747:   ac_cv_target=$ac_cv_host
1.14      bertrand 2748: else
1.15      bertrand 2749:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2750:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2751: fi
1.14      bertrand 2752: 
                   2753: fi
1.15      bertrand 2754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2755: $as_echo "$ac_cv_target" >&6; }
                   2756: case $ac_cv_target in
                   2757: *-*-*) ;;
1.57      bertrand 2758: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2759: esac
                   2760: target=$ac_cv_target
                   2761: ac_save_IFS=$IFS; IFS='-'
                   2762: set x $ac_cv_target
                   2763: shift
                   2764: target_cpu=$1
                   2765: target_vendor=$2
                   2766: shift; shift
                   2767: # Remember, the first character of IFS is used to create $*,
                   2768: # except with old shells:
                   2769: target_os=$*
                   2770: IFS=$ac_save_IFS
                   2771: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2772: 
1.14      bertrand 2773: 
1.15      bertrand 2774: # The aliases save the names the user supplied, while $host etc.
                   2775: # will get canonicalized.
                   2776: test -n "$target_alias" &&
                   2777:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2778:     NONENONEs,x,x, &&
                   2779:   program_prefix=${target_alias}-
1.1       bertrand 2780: 
1.15      bertrand 2781: am__api_version='1.11'
1.1       bertrand 2782: 
1.14      bertrand 2783: # Find a good install program.  We prefer a C program (faster),
                   2784: # so one script is as good as another.  But avoid the broken or
                   2785: # incompatible versions:
                   2786: # SysV /etc/install, /usr/sbin/install
                   2787: # SunOS /usr/etc/install
                   2788: # IRIX /sbin/install
                   2789: # AIX /bin/install
                   2790: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2791: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2792: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2793: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2794: # OS/2's system install, which has a completely different semantic
                   2795: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2796: # Reject install programs that cannot install multiple files.
                   2797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2798: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2799: if test -z "$INSTALL"; then
1.57      bertrand 2800: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2801:   $as_echo_n "(cached) " >&6
1.14      bertrand 2802: else
                   2803:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2804: for as_dir in $PATH
                   2805: do
                   2806:   IFS=$as_save_IFS
                   2807:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2808:     # Account for people who put trailing slashes in PATH elements.
                   2809: case $as_dir/ in #((
                   2810:   ./ | .// | /[cC]/* | \
1.14      bertrand 2811:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2812:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2813:   /usr/ucb/* ) ;;
                   2814:   *)
                   2815:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2816:     # Don't use installbsd from OSF since it installs stuff as root
                   2817:     # by default.
                   2818:     for ac_prog in ginstall scoinst install; do
                   2819:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2820:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2821:      if test $ac_prog = install &&
                   2822:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2823:        # AIX install.  It has an incompatible calling convention.
                   2824:        :
                   2825:      elif test $ac_prog = install &&
                   2826:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2827:        # program-specific install script used by HP pwplus--don't use.
                   2828:        :
                   2829:      else
1.15      bertrand 2830:        rm -rf conftest.one conftest.two conftest.dir
                   2831:        echo one > conftest.one
                   2832:        echo two > conftest.two
                   2833:        mkdir conftest.dir
                   2834:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2835:          test -s conftest.one && test -s conftest.two &&
                   2836:          test -s conftest.dir/conftest.one &&
                   2837:          test -s conftest.dir/conftest.two
                   2838:        then
                   2839:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2840:          break 3
                   2841:        fi
1.14      bertrand 2842:      fi
                   2843:    fi
                   2844:       done
                   2845:     done
                   2846:     ;;
                   2847: esac
1.15      bertrand 2848: 
                   2849:   done
1.14      bertrand 2850: IFS=$as_save_IFS
1.1       bertrand 2851: 
1.15      bertrand 2852: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2853: 
1.14      bertrand 2854: fi
                   2855:   if test "${ac_cv_path_install+set}" = set; then
                   2856:     INSTALL=$ac_cv_path_install
                   2857:   else
                   2858:     # As a last resort, use the slow shell script.  Don't cache a
                   2859:     # value for INSTALL within a source directory, because that will
                   2860:     # break other packages using the cache if that directory is
                   2861:     # removed, or if the value is a relative name.
                   2862:     INSTALL=$ac_install_sh
                   2863:   fi
                   2864: fi
1.15      bertrand 2865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2866: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2867: 
1.14      bertrand 2868: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2869: # It thinks the first close brace ends the variable substitution.
                   2870: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2871: 
1.14      bertrand 2872: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2873: 
1.14      bertrand 2874: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2875: 
1.15      bertrand 2876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2877: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2878: # Just in case
                   2879: sleep 1
                   2880: echo timestamp > conftest.file
                   2881: # Reject unsafe characters in $srcdir or the absolute working directory
                   2882: # name.  Accept space and tab only in the latter.
                   2883: am_lf='
                   2884: '
                   2885: case `pwd` in
                   2886:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2887:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2888: esac
                   2889: case $srcdir in
                   2890:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2891:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2892: esac
                   2893: 
                   2894: # Do `set' in a subshell so we don't clobber the current shell's
                   2895: # arguments.  Must try -L first in case configure is actually a
                   2896: # symlink; some systems play weird games with the mod time of symlinks
                   2897: # (eg FreeBSD returns the mod time of the symlink's containing
                   2898: # directory).
                   2899: if (
                   2900:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2901:    if test "$*" = "X"; then
                   2902:       # -L didn't work.
                   2903:       set X `ls -t "$srcdir/configure" conftest.file`
                   2904:    fi
                   2905:    rm -f conftest.file
                   2906:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2907:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2908: 
                   2909:       # If neither matched, then we have a broken ls.  This can happen
                   2910:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2911:       # broken ls alias from the environment.  This has actually
                   2912:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2913:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2914: alias in your environment" "$LINENO" 5
                   2915:    fi
                   2916: 
                   2917:    test "$2" = conftest.file
                   2918:    )
                   2919: then
                   2920:    # Ok.
                   2921:    :
1.14      bertrand 2922: else
1.36      bertrand 2923:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2924: Check your system clock" "$LINENO" 5
1.14      bertrand 2925: fi
1.15      bertrand 2926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2927: $as_echo "yes" >&6; }
                   2928: test "$program_prefix" != NONE &&
                   2929:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2930: # Use a double $ so make ignores it.
                   2931: test "$program_suffix" != NONE &&
                   2932:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2933: # Double any \ or $.
                   2934: # By default was `s,x,x', remove it if useless.
                   2935: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2936: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2937: 
                   2938: # expand $ac_aux_dir to an absolute path
                   2939: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2940: 
1.15      bertrand 2941: if test x"${MISSING+set}" != xset; then
                   2942:   case $am_aux_dir in
                   2943:   *\ * | *\    *)
                   2944:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2945:   *)
1.15      bertrand 2946:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2947:   esac
1.14      bertrand 2948: fi
1.15      bertrand 2949: # Use eval to expand $SHELL
                   2950: if eval "$MISSING --run true"; then
                   2951:   am_missing_run="$MISSING --run "
1.14      bertrand 2952: else
1.15      bertrand 2953:   am_missing_run=
                   2954:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2955: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2956: fi
                   2957: 
                   2958: if test x"${install_sh}" != xset; then
                   2959:   case $am_aux_dir in
                   2960:   *\ * | *\    *)
                   2961:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2962:   *)
                   2963:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2964:   esac
1.14      bertrand 2965: fi
1.15      bertrand 2966: 
                   2967: # Installed binaries are usually stripped using `strip' when the user
                   2968: # run `make install-strip'.  However `strip' might not be the right
                   2969: # tool to use in cross-compilation environments, therefore Automake
                   2970: # will honor the `STRIP' environment variable to overrule this program.
                   2971: if test "$cross_compiling" != no; then
                   2972:   if test -n "$ac_tool_prefix"; then
                   2973:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2974: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2976: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2977: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2978:   $as_echo_n "(cached) " >&6
1.14      bertrand 2979: else
1.15      bertrand 2980:   if test -n "$STRIP"; then
                   2981:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2982: else
                   2983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2984: for as_dir in $PATH
                   2985: do
                   2986:   IFS=$as_save_IFS
                   2987:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2988:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2989:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2990:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2991:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2992:     break 2
                   2993:   fi
                   2994: done
1.15      bertrand 2995:   done
1.14      bertrand 2996: IFS=$as_save_IFS
1.1       bertrand 2997: 
1.14      bertrand 2998: fi
                   2999: fi
1.15      bertrand 3000: STRIP=$ac_cv_prog_STRIP
                   3001: if test -n "$STRIP"; then
                   3002:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   3003: $as_echo "$STRIP" >&6; }
1.14      bertrand 3004: else
1.15      bertrand 3005:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3006: $as_echo "no" >&6; }
1.14      bertrand 3007: fi
1.1       bertrand 3008: 
                   3009: 
1.14      bertrand 3010: fi
1.15      bertrand 3011: if test -z "$ac_cv_prog_STRIP"; then
                   3012:   ac_ct_STRIP=$STRIP
                   3013:   # Extract the first word of "strip", so it can be a program name with args.
                   3014: set dummy strip; ac_word=$2
                   3015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3016: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3017: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3018:   $as_echo_n "(cached) " >&6
1.14      bertrand 3019: else
1.15      bertrand 3020:   if test -n "$ac_ct_STRIP"; then
                   3021:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3022: else
1.14      bertrand 3023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3024: for as_dir in $PATH
1.1       bertrand 3025: do
1.14      bertrand 3026:   IFS=$as_save_IFS
                   3027:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3028:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3029:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3030:     ac_cv_prog_ac_ct_STRIP="strip"
                   3031:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3032:     break 2
1.1       bertrand 3033:   fi
                   3034: done
1.15      bertrand 3035:   done
1.14      bertrand 3036: IFS=$as_save_IFS
1.1       bertrand 3037: 
1.14      bertrand 3038: fi
                   3039: fi
1.15      bertrand 3040: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3041: if test -n "$ac_ct_STRIP"; then
                   3042:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3043: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3044: else
1.15      bertrand 3045:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3046: $as_echo "no" >&6; }
1.1       bertrand 3047: fi
                   3048: 
1.15      bertrand 3049:   if test "x$ac_ct_STRIP" = x; then
                   3050:     STRIP=":"
1.14      bertrand 3051:   else
                   3052:     case $cross_compiling:$ac_tool_warned in
                   3053: yes:)
1.15      bertrand 3054: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3055: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3056: ac_tool_warned=yes ;;
                   3057: esac
1.15      bertrand 3058:     STRIP=$ac_ct_STRIP
1.1       bertrand 3059:   fi
1.14      bertrand 3060: else
1.15      bertrand 3061:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3062: fi
                   3063: 
1.15      bertrand 3064: fi
                   3065: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3066: 
1.15      bertrand 3067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3068: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3069: if test -z "$MKDIR_P"; then
1.57      bertrand 3070:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3071:   $as_echo_n "(cached) " >&6
1.14      bertrand 3072: else
1.15      bertrand 3073:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3074: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3075: do
                   3076:   IFS=$as_save_IFS
                   3077:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3078:     for ac_prog in mkdir gmkdir; do
                   3079:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3080:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3081:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3082:         'mkdir (GNU coreutils) '* | \
                   3083:         'mkdir (coreutils) '* | \
                   3084:         'mkdir (fileutils) '4.1*)
                   3085:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3086:           break 3;;
                   3087:       esac
                   3088:     done
                   3089:        done
                   3090:   done
1.14      bertrand 3091: IFS=$as_save_IFS
1.1       bertrand 3092: 
                   3093: fi
1.15      bertrand 3094: 
                   3095:   test -d ./--version && rmdir ./--version
                   3096:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3097:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3098:   else
                   3099:     # As a last resort, use the slow shell script.  Don't cache a
                   3100:     # value for MKDIR_P within a source directory, because that will
                   3101:     # break other packages using the cache if that directory is
                   3102:     # removed, or if the value is a relative name.
                   3103:     MKDIR_P="$ac_install_sh -d"
                   3104:   fi
1.14      bertrand 3105: fi
1.15      bertrand 3106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3107: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3108: 
1.15      bertrand 3109: mkdir_p="$MKDIR_P"
                   3110: case $mkdir_p in
                   3111:   [\\/$]* | ?:[\\/]*) ;;
                   3112:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3113: esac
1.1       bertrand 3114: 
1.15      bertrand 3115: for ac_prog in gawk mawk nawk awk
                   3116: do
                   3117:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3118: set dummy $ac_prog; ac_word=$2
                   3119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3120: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3121: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3122:   $as_echo_n "(cached) " >&6
1.1       bertrand 3123: else
1.15      bertrand 3124:   if test -n "$AWK"; then
                   3125:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3126: else
1.14      bertrand 3127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3128: for as_dir in $PATH
                   3129: do
                   3130:   IFS=$as_save_IFS
                   3131:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3132:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3133:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3134:     ac_cv_prog_AWK="$ac_prog"
                   3135:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3136:     break 2
                   3137:   fi
                   3138: done
1.15      bertrand 3139:   done
1.14      bertrand 3140: IFS=$as_save_IFS
                   3141: 
                   3142: fi
1.1       bertrand 3143: fi
1.15      bertrand 3144: AWK=$ac_cv_prog_AWK
                   3145: if test -n "$AWK"; then
                   3146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3147: $as_echo "$AWK" >&6; }
1.14      bertrand 3148: else
1.15      bertrand 3149:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3150: $as_echo "no" >&6; }
1.1       bertrand 3151: fi
                   3152: 
                   3153: 
1.15      bertrand 3154:   test -n "$AWK" && break
                   3155: done
1.1       bertrand 3156: 
1.15      bertrand 3157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3158: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3159: set x ${MAKE-make}
                   3160: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3161: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3162:   $as_echo_n "(cached) " >&6
1.14      bertrand 3163: else
1.15      bertrand 3164:   cat >conftest.make <<\_ACEOF
                   3165: SHELL = /bin/sh
                   3166: all:
                   3167:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3168: _ACEOF
1.36      bertrand 3169: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3170: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3171:   *@@@%%%=?*=@@@%%%*)
                   3172:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3173:   *)
                   3174:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3175: esac
                   3176: rm -f conftest.make
                   3177: fi
                   3178: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3179:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3180: $as_echo "yes" >&6; }
                   3181:   SET_MAKE=
1.1       bertrand 3182: else
1.15      bertrand 3183:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3184: $as_echo "no" >&6; }
                   3185:   SET_MAKE="MAKE=${MAKE-make}"
                   3186: fi
1.1       bertrand 3187: 
1.15      bertrand 3188: rm -rf .tst 2>/dev/null
                   3189: mkdir .tst 2>/dev/null
                   3190: if test -d .tst; then
                   3191:   am__leading_dot=.
                   3192: else
                   3193:   am__leading_dot=_
1.14      bertrand 3194: fi
1.15      bertrand 3195: rmdir .tst 2>/dev/null
                   3196: 
                   3197: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3198:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3199:   # is not polluted with repeated "-I."
                   3200:   am__isrc=' -I$(srcdir)'
                   3201:   # test to see if srcdir already configured
                   3202:   if test -f $srcdir/config.status; then
1.36      bertrand 3203:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3204:   fi
1.1       bertrand 3205: fi
1.15      bertrand 3206: 
                   3207: # test whether we have cygpath
                   3208: if test -z "$CYGPATH_W"; then
                   3209:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3210:     CYGPATH_W='cygpath -w'
                   3211:   else
                   3212:     CYGPATH_W=echo
                   3213:   fi
1.1       bertrand 3214: fi
                   3215: 
                   3216: 
1.15      bertrand 3217: # Define the identity of the package.
                   3218:  PACKAGE='rpl'
1.86      bertrand 3219:  VERSION='4.1.4'
1.15      bertrand 3220: 
                   3221: 
                   3222: cat >>confdefs.h <<_ACEOF
                   3223: #define PACKAGE "$PACKAGE"
                   3224: _ACEOF
                   3225: 
                   3226: 
                   3227: cat >>confdefs.h <<_ACEOF
                   3228: #define VERSION "$VERSION"
                   3229: _ACEOF
                   3230: 
                   3231: # Some tools Automake needs.
                   3232: 
                   3233: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3234: 
                   3235: 
                   3236: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3237: 
                   3238: 
                   3239: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3240: 
                   3241: 
                   3242: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3243: 
                   3244: 
                   3245: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3246: 
                   3247: # We need awk for the "check" target.  The system "awk" is bad on
                   3248: # some platforms.
                   3249: # Always define AMTAR for backward compatibility.
                   3250: 
                   3251: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3252: 
                   3253: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3254: 
                   3255: 
                   3256: 
                   3257: 
1.1       bertrand 3258: 
                   3259: 
1.15      bertrand 3260: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3261: 
                   3262: 
1.54      bertrand 3263: NCURSES=ncurses-5.9
1.50      bertrand 3264: READLINE=readline-6.2
1.30      bertrand 3265: UNITS=units-1.88
1.57      bertrand 3266: GSL=gsl-1.15
1.72      bertrand 3267: GPP=gpp-3.0
1.52      bertrand 3268: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3269: FILE=file-5.03
                   3270: ICONV=libiconv-1.13.1
1.87      bertrand 3271: SQLITE=sqlite-3.7.8
1.74      bertrand 3272: OPENSSL=openssl-1.0.0e
1.79      bertrand 3273: OPENMOTIF=openmotif-2.3.3
1.80      bertrand 3274: LIBXPM=libXpm-3.5.9
1.76      bertrand 3275: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3276: 
1.75      bertrand 3277: GMP=gmp-5.0.2
1.55      bertrand 3278: MPFR=mpfr-3.0.1
1.56      bertrand 3279: NTL=ntl-5.5.2
                   3280: COCOA=CoCoALib-0.9943
1.76      bertrand 3281: PARI=pari-2.5.0
1.67      bertrand 3282: GIAC=giac-0.9.3
1.55      bertrand 3283: 
1.15      bertrand 3284: ac_ext=c
                   3285: ac_cpp='$CPP $CPPFLAGS'
                   3286: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3287: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3288: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3289: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3290:   for ac_prog in gcc
1.15      bertrand 3291:   do
                   3292:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3293: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3295: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3296: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3297:   $as_echo_n "(cached) " >&6
1.1       bertrand 3298: else
1.15      bertrand 3299:   if test -n "$CC"; then
                   3300:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3301: else
                   3302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3303: for as_dir in $PATH
                   3304: do
                   3305:   IFS=$as_save_IFS
                   3306:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3307:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3308:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3309:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3310:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3311:     break 2
                   3312:   fi
                   3313: done
1.15      bertrand 3314:   done
1.1       bertrand 3315: IFS=$as_save_IFS
                   3316: 
                   3317: fi
                   3318: fi
1.15      bertrand 3319: CC=$ac_cv_prog_CC
                   3320: if test -n "$CC"; then
                   3321:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3322: $as_echo "$CC" >&6; }
1.1       bertrand 3323: else
1.15      bertrand 3324:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3325: $as_echo "no" >&6; }
1.1       bertrand 3326: fi
                   3327: 
                   3328: 
1.15      bertrand 3329:     test -n "$CC" && break
                   3330:   done
                   3331: fi
                   3332: if test -z "$CC"; then
                   3333:   ac_ct_CC=$CC
1.23      bertrand 3334:   for ac_prog in gcc
1.15      bertrand 3335: do
                   3336:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3337: set dummy $ac_prog; ac_word=$2
                   3338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3339: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3340: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3341:   $as_echo_n "(cached) " >&6
1.1       bertrand 3342: else
1.15      bertrand 3343:   if test -n "$ac_ct_CC"; then
                   3344:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3345: else
                   3346: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3347: for as_dir in $PATH
                   3348: do
                   3349:   IFS=$as_save_IFS
                   3350:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3351:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3352:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3353:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3354:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3355:     break 2
                   3356:   fi
                   3357: done
1.15      bertrand 3358:   done
1.1       bertrand 3359: IFS=$as_save_IFS
                   3360: 
                   3361: fi
                   3362: fi
1.15      bertrand 3363: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3364: if test -n "$ac_ct_CC"; then
                   3365:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3366: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3367: else
1.15      bertrand 3368:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3369: $as_echo "no" >&6; }
1.1       bertrand 3370: fi
                   3371: 
                   3372: 
1.15      bertrand 3373:   test -n "$ac_ct_CC" && break
                   3374: done
1.1       bertrand 3375: 
1.15      bertrand 3376:   if test "x$ac_ct_CC" = x; then
                   3377:     CC=""
                   3378:   else
                   3379:     case $cross_compiling:$ac_tool_warned in
                   3380: yes:)
                   3381: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3382: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3383: ac_tool_warned=yes ;;
                   3384: esac
                   3385:     CC=$ac_ct_CC
1.1       bertrand 3386:   fi
                   3387: fi
                   3388: 
                   3389: 
1.15      bertrand 3390: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3391: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3392: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3393: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3394: 
1.15      bertrand 3395: # Provide some information about the compiler.
                   3396: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3397: set X $ac_compile
                   3398: ac_compiler=$2
                   3399: for ac_option in --version -v -V -qversion; do
                   3400:   { { ac_try="$ac_compiler $ac_option >&5"
                   3401: case "(($ac_try" in
                   3402:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3403:   *) ac_try_echo=$ac_try;;
                   3404: esac
                   3405: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3406: $as_echo "$ac_try_echo"; } >&5
                   3407:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3408:   ac_status=$?
                   3409:   if test -s conftest.err; then
                   3410:     sed '10a\
                   3411: ... rest of stderr output deleted ...
                   3412:          10q' conftest.err >conftest.er1
                   3413:     cat conftest.er1 >&5
1.1       bertrand 3414:   fi
1.15      bertrand 3415:   rm -f conftest.er1 conftest.err
                   3416:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3417:   test $ac_status = 0; }
1.1       bertrand 3418: done
                   3419: 
1.15      bertrand 3420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3421: /* end confdefs.h.  */
                   3422: 
                   3423: int
                   3424: main ()
                   3425: {
1.14      bertrand 3426: 
1.15      bertrand 3427:   ;
                   3428:   return 0;
                   3429: }
                   3430: _ACEOF
                   3431: ac_clean_files_save=$ac_clean_files
                   3432: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3433: # Try to create an executable without -o first, disregard a.out.
                   3434: # It will help us diagnose broken compilers, and finding out an intuition
                   3435: # of exeext.
                   3436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3437: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3438: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3439: 
1.15      bertrand 3440: # The possible output files:
                   3441: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3442: 
1.15      bertrand 3443: ac_rmfiles=
                   3444: for ac_file in $ac_files
1.1       bertrand 3445: do
1.15      bertrand 3446:   case $ac_file in
                   3447:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3448:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3449:   esac
1.1       bertrand 3450: done
1.15      bertrand 3451: rm -f $ac_rmfiles
                   3452: 
                   3453: if { { ac_try="$ac_link_default"
                   3454: case "(($ac_try" in
                   3455:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3456:   *) ac_try_echo=$ac_try;;
                   3457: esac
                   3458: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3459: $as_echo "$ac_try_echo"; } >&5
                   3460:   (eval "$ac_link_default") 2>&5
                   3461:   ac_status=$?
                   3462:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3463:   test $ac_status = 0; }; then :
                   3464:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3465: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3466: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3467: # so that the user can short-circuit this test for compilers unknown to
                   3468: # Autoconf.
                   3469: for ac_file in $ac_files ''
                   3470: do
                   3471:   test -f "$ac_file" || continue
                   3472:   case $ac_file in
                   3473:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3474:    ;;
                   3475:     [ab].out )
                   3476:    # We found the default executable, but exeext='' is most
                   3477:    # certainly right.
                   3478:    break;;
                   3479:     *.* )
                   3480:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3481:    then :; else
                   3482:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3483:    fi
                   3484:    # We set ac_cv_exeext here because the later test for it is not
                   3485:    # safe: cross compilers may not add the suffix if given an `-o'
                   3486:    # argument, so we may need to know it at that point already.
                   3487:    # Even if this section looks crufty: it has the advantage of
                   3488:    # actually working.
                   3489:    break;;
                   3490:     * )
                   3491:    break;;
                   3492:   esac
1.14      bertrand 3493: done
1.15      bertrand 3494: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3495: 
1.14      bertrand 3496: else
1.15      bertrand 3497:   ac_file=''
1.1       bertrand 3498: fi
1.15      bertrand 3499: if test -z "$ac_file"; then :
                   3500:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3501: $as_echo "no" >&6; }
                   3502: $as_echo "$as_me: failed program was:" >&5
                   3503: sed 's/^/| /' conftest.$ac_ext >&5
                   3504: 
                   3505: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3506: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3507: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3508: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3509: else
                   3510:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3511: $as_echo "yes" >&6; }
                   3512: fi
                   3513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3514: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3516: $as_echo "$ac_file" >&6; }
                   3517: ac_exeext=$ac_cv_exeext
1.1       bertrand 3518: 
1.15      bertrand 3519: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3520: ac_clean_files=$ac_clean_files_save
                   3521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3522: $as_echo_n "checking for suffix of executables... " >&6; }
                   3523: if { { ac_try="$ac_link"
                   3524: case "(($ac_try" in
                   3525:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3526:   *) ac_try_echo=$ac_try;;
                   3527: esac
                   3528: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3529: $as_echo "$ac_try_echo"; } >&5
                   3530:   (eval "$ac_link") 2>&5
                   3531:   ac_status=$?
                   3532:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3533:   test $ac_status = 0; }; then :
                   3534:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3535: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3536: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3537: # `rm'.
                   3538: for ac_file in conftest.exe conftest conftest.*; do
                   3539:   test -f "$ac_file" || continue
                   3540:   case $ac_file in
                   3541:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3542:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3543:      break;;
                   3544:     * ) break;;
                   3545:   esac
                   3546: done
1.14      bertrand 3547: else
1.15      bertrand 3548:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3549: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3550: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3551: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3552: fi
                   3553: rm -f conftest conftest$ac_cv_exeext
                   3554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3555: $as_echo "$ac_cv_exeext" >&6; }
                   3556: 
                   3557: rm -f conftest.$ac_ext
                   3558: EXEEXT=$ac_cv_exeext
                   3559: ac_exeext=$EXEEXT
                   3560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3561: /* end confdefs.h.  */
1.15      bertrand 3562: #include <stdio.h>
1.14      bertrand 3563: int
                   3564: main ()
                   3565: {
1.15      bertrand 3566: FILE *f = fopen ("conftest.out", "w");
                   3567:  return ferror (f) || fclose (f) != 0;
                   3568: 
1.14      bertrand 3569:   ;
                   3570:   return 0;
                   3571: }
                   3572: _ACEOF
1.15      bertrand 3573: ac_clean_files="$ac_clean_files conftest.out"
                   3574: # Check that the compiler produces executables we can run.  If not, either
                   3575: # the compiler is broken, or we cross compile.
                   3576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3577: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3578: if test "$cross_compiling" != yes; then
                   3579:   { { ac_try="$ac_link"
1.1       bertrand 3580: case "(($ac_try" in
                   3581:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3582:   *) ac_try_echo=$ac_try;;
                   3583: esac
1.15      bertrand 3584: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3585: $as_echo "$ac_try_echo"; } >&5
                   3586:   (eval "$ac_link") 2>&5
                   3587:   ac_status=$?
                   3588:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3589:   test $ac_status = 0; }
                   3590:   if { ac_try='./conftest$ac_cv_exeext'
                   3591:   { { case "(($ac_try" in
                   3592:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3593:   *) ac_try_echo=$ac_try;;
                   3594: esac
                   3595: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3596: $as_echo "$ac_try_echo"; } >&5
                   3597:   (eval "$ac_try") 2>&5
1.1       bertrand 3598:   ac_status=$?
1.15      bertrand 3599:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3600:   test $ac_status = 0; }; }; then
                   3601:     cross_compiling=no
                   3602:   else
                   3603:     if test "$cross_compiling" = maybe; then
                   3604:    cross_compiling=yes
                   3605:     else
                   3606:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3607: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3608: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3609: If you meant to cross compile, use \`--host'.
1.57      bertrand 3610: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3611:     fi
                   3612:   fi
1.14      bertrand 3613: fi
1.15      bertrand 3614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3615: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3616: 
1.15      bertrand 3617: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3618: ac_clean_files=$ac_clean_files_save
                   3619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3620: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3621: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3622:   $as_echo_n "(cached) " >&6
1.14      bertrand 3623: else
1.15      bertrand 3624:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3625: /* end confdefs.h.  */
                   3626: 
                   3627: int
                   3628: main ()
                   3629: {
1.15      bertrand 3630: 
1.1       bertrand 3631:   ;
                   3632:   return 0;
                   3633: }
                   3634: _ACEOF
1.15      bertrand 3635: rm -f conftest.o conftest.obj
                   3636: if { { ac_try="$ac_compile"
1.1       bertrand 3637: case "(($ac_try" in
                   3638:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3639:   *) ac_try_echo=$ac_try;;
                   3640: esac
1.15      bertrand 3641: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3642: $as_echo "$ac_try_echo"; } >&5
                   3643:   (eval "$ac_compile") 2>&5
1.1       bertrand 3644:   ac_status=$?
1.15      bertrand 3645:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3646:   test $ac_status = 0; }; then :
                   3647:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3648:   test -f "$ac_file" || continue;
                   3649:   case $ac_file in
                   3650:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3651:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3652:        break;;
                   3653:   esac
                   3654: done
1.14      bertrand 3655: else
1.15      bertrand 3656:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3657: sed 's/^/| /' conftest.$ac_ext >&5
                   3658: 
1.15      bertrand 3659: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3660: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3661: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3662: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3663: fi
1.15      bertrand 3664: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3665: fi
                   3666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3667: $as_echo "$ac_cv_objext" >&6; }
                   3668: OBJEXT=$ac_cv_objext
                   3669: ac_objext=$OBJEXT
                   3670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3671: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3672: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3673:   $as_echo_n "(cached) " >&6
                   3674: else
                   3675:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3676: /* end confdefs.h.  */
                   3677: 
                   3678: int
                   3679: main ()
                   3680: {
                   3681: #ifndef __GNUC__
                   3682:        choke me
                   3683: #endif
1.14      bertrand 3684: 
1.15      bertrand 3685:   ;
                   3686:   return 0;
                   3687: }
                   3688: _ACEOF
                   3689: if ac_fn_c_try_compile "$LINENO"; then :
                   3690:   ac_compiler_gnu=yes
1.14      bertrand 3691: else
1.15      bertrand 3692:   ac_compiler_gnu=no
1.14      bertrand 3693: fi
1.15      bertrand 3694: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3695: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3696: 
1.15      bertrand 3697: fi
                   3698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3699: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3700: if test $ac_compiler_gnu = yes; then
                   3701:   GCC=yes
1.14      bertrand 3702: else
1.15      bertrand 3703:   GCC=
1.14      bertrand 3704: fi
1.15      bertrand 3705: ac_test_CFLAGS=${CFLAGS+set}
                   3706: ac_save_CFLAGS=$CFLAGS
                   3707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3708: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3709: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3710:   $as_echo_n "(cached) " >&6
                   3711: else
                   3712:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3713:    ac_c_werror_flag=yes
                   3714:    ac_cv_prog_cc_g=no
                   3715:    CFLAGS="-g"
                   3716:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3717: /* end confdefs.h.  */
1.14      bertrand 3718: 
1.15      bertrand 3719: int
                   3720: main ()
                   3721: {
1.14      bertrand 3722: 
1.15      bertrand 3723:   ;
                   3724:   return 0;
                   3725: }
                   3726: _ACEOF
                   3727: if ac_fn_c_try_compile "$LINENO"; then :
                   3728:   ac_cv_prog_cc_g=yes
                   3729: else
                   3730:   CFLAGS=""
                   3731:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3732: /* end confdefs.h.  */
1.14      bertrand 3733: 
1.15      bertrand 3734: int
                   3735: main ()
                   3736: {
1.14      bertrand 3737: 
1.15      bertrand 3738:   ;
                   3739:   return 0;
                   3740: }
                   3741: _ACEOF
                   3742: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3743: 
1.15      bertrand 3744: else
                   3745:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3746:     CFLAGS="-g"
                   3747:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3748: /* end confdefs.h.  */
1.14      bertrand 3749: 
1.15      bertrand 3750: int
                   3751: main ()
                   3752: {
1.14      bertrand 3753: 
1.15      bertrand 3754:   ;
                   3755:   return 0;
                   3756: }
                   3757: _ACEOF
                   3758: if ac_fn_c_try_compile "$LINENO"; then :
                   3759:   ac_cv_prog_cc_g=yes
                   3760: fi
                   3761: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3762: fi
                   3763: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3764: fi
                   3765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3766:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3767: fi
                   3768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3769: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3770: if test "$ac_test_CFLAGS" = set; then
                   3771:   CFLAGS=$ac_save_CFLAGS
                   3772: elif test $ac_cv_prog_cc_g = yes; then
                   3773:   if test "$GCC" = yes; then
                   3774:     CFLAGS="-g -O2"
                   3775:   else
                   3776:     CFLAGS="-g"
                   3777:   fi
                   3778: else
                   3779:   if test "$GCC" = yes; then
                   3780:     CFLAGS="-O2"
                   3781:   else
                   3782:     CFLAGS=
                   3783:   fi
                   3784: fi
                   3785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3786: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3787: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3788:   $as_echo_n "(cached) " >&6
1.1       bertrand 3789: else
1.15      bertrand 3790:   ac_cv_prog_cc_c89=no
                   3791: ac_save_CC=$CC
                   3792: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3793: /* end confdefs.h.  */
1.15      bertrand 3794: #include <stdarg.h>
                   3795: #include <stdio.h>
                   3796: #include <sys/types.h>
                   3797: #include <sys/stat.h>
                   3798: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3799: struct buf { int x; };
                   3800: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3801: static char *e (p, i)
                   3802:      char **p;
                   3803:      int i;
                   3804: {
                   3805:   return p[i];
                   3806: }
                   3807: static char *f (char * (*g) (char **, int), char **p, ...)
                   3808: {
                   3809:   char *s;
                   3810:   va_list v;
                   3811:   va_start (v,p);
                   3812:   s = g (p, va_arg (v,int));
                   3813:   va_end (v);
                   3814:   return s;
                   3815: }
                   3816: 
                   3817: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3818:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3819:    These don't provoke an error unfortunately, instead are silently treated
                   3820:    as 'x'.  The following induces an error, until -std is added to get
                   3821:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3822:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3823:    that's true only with -std.  */
                   3824: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3825: 
1.15      bertrand 3826: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3827:    inside strings and character constants.  */
                   3828: #define FOO(x) 'x'
                   3829: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3830: 
1.15      bertrand 3831: int test (int i, double x);
                   3832: struct s1 {int (*f) (int a);};
                   3833: struct s2 {int (*f) (double a);};
                   3834: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3835: int argc;
                   3836: char **argv;
1.14      bertrand 3837: int
                   3838: main ()
                   3839: {
1.15      bertrand 3840: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3841:   ;
                   3842:   return 0;
                   3843: }
                   3844: _ACEOF
1.15      bertrand 3845: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3846:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3847: do
                   3848:   CC="$ac_save_CC $ac_arg"
                   3849:   if ac_fn_c_try_compile "$LINENO"; then :
                   3850:   ac_cv_prog_cc_c89=$ac_arg
                   3851: fi
                   3852: rm -f core conftest.err conftest.$ac_objext
                   3853:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3854: done
                   3855: rm -f conftest.$ac_ext
                   3856: CC=$ac_save_CC
                   3857: 
                   3858: fi
                   3859: # AC_CACHE_VAL
                   3860: case "x$ac_cv_prog_cc_c89" in
                   3861:   x)
                   3862:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3863: $as_echo "none needed" >&6; } ;;
                   3864:   xno)
                   3865:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3866: $as_echo "unsupported" >&6; } ;;
                   3867:   *)
                   3868:     CC="$CC $ac_cv_prog_cc_c89"
                   3869:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3870: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3871: esac
1.15      bertrand 3872: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3873: 
                   3874: fi
                   3875: 
1.15      bertrand 3876: ac_ext=c
                   3877: ac_cpp='$CPP $CPPFLAGS'
                   3878: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3879: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3880: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3881: DEPDIR="${am__leading_dot}deps"
                   3882: 
                   3883: ac_config_commands="$ac_config_commands depfiles"
                   3884: 
                   3885: 
                   3886: am_make=${MAKE-make}
                   3887: cat > confinc << 'END'
                   3888: am__doit:
                   3889:    @echo this is the am__doit target
                   3890: .PHONY: am__doit
                   3891: END
                   3892: # If we don't find an include directive, just comment out the code.
                   3893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3894: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3895: am__include="#"
                   3896: am__quote=
                   3897: _am_result=none
                   3898: # First try GNU make style include.
                   3899: echo "include confinc" > confmf
                   3900: # Ignore all kinds of additional output from `make'.
                   3901: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3902: *the\ am__doit\ target*)
                   3903:   am__include=include
                   3904:   am__quote=
                   3905:   _am_result=GNU
                   3906:   ;;
                   3907: esac
                   3908: # Now try BSD make style include.
                   3909: if test "$am__include" = "#"; then
                   3910:    echo '.include "confinc"' > confmf
                   3911:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3912:    *the\ am__doit\ target*)
                   3913:      am__include=.include
                   3914:      am__quote="\""
                   3915:      _am_result=BSD
                   3916:      ;;
                   3917:    esac
1.14      bertrand 3918: fi
                   3919: 
                   3920: 
1.15      bertrand 3921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3922: $as_echo "$_am_result" >&6; }
                   3923: rm -f confinc confmf
                   3924: 
                   3925: # Check whether --enable-dependency-tracking was given.
                   3926: if test "${enable_dependency_tracking+set}" = set; then :
                   3927:   enableval=$enable_dependency_tracking;
                   3928: fi
                   3929: 
                   3930: if test "x$enable_dependency_tracking" != xno; then
                   3931:   am_depcomp="$ac_aux_dir/depcomp"
                   3932:   AMDEPBACKSLASH='\'
                   3933: fi
                   3934:  if test "x$enable_dependency_tracking" != xno; then
                   3935:   AMDEP_TRUE=
                   3936:   AMDEP_FALSE='#'
1.1       bertrand 3937: else
1.15      bertrand 3938:   AMDEP_TRUE='#'
                   3939:   AMDEP_FALSE=
1.14      bertrand 3940: fi
1.1       bertrand 3941: 
1.14      bertrand 3942: 
                   3943: 
1.15      bertrand 3944: depcc="$CC"   am_compiler_list=
1.14      bertrand 3945: 
1.15      bertrand 3946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3947: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3948: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3949:   $as_echo_n "(cached) " >&6
1.14      bertrand 3950: else
1.15      bertrand 3951:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3952:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3953:   # making bogus files that we don't know about and never remove.  For
                   3954:   # instance it was reported that on HP-UX the gcc test will end up
                   3955:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3956:   # in D'.
                   3957:   mkdir conftest.dir
                   3958:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3959:   # using a relative directory.
                   3960:   cp "$am_depcomp" conftest.dir
                   3961:   cd conftest.dir
                   3962:   # We will build objects and dependencies in a subdirectory because
                   3963:   # it helps to detect inapplicable dependency modes.  For instance
                   3964:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3965:   # side effect of compilation, but ICC will put the dependencies in
                   3966:   # the current directory while Tru64 will put them in the object
                   3967:   # directory.
                   3968:   mkdir sub
1.14      bertrand 3969: 
1.15      bertrand 3970:   am_cv_CC_dependencies_compiler_type=none
                   3971:   if test "$am_compiler_list" = ""; then
                   3972:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3973:   fi
                   3974:   am__universal=false
                   3975:   case " $depcc " in #(
                   3976:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3977:      esac
1.14      bertrand 3978: 
1.15      bertrand 3979:   for depmode in $am_compiler_list; do
                   3980:     # Setup a source with many dependencies, because some compilers
                   3981:     # like to wrap large dependency lists on column 80 (with \), and
                   3982:     # we should not choose a depcomp mode which is confused by this.
                   3983:     #
                   3984:     # We need to recreate these files for each test, as the compiler may
                   3985:     # overwrite some of them when testing with obscure command lines.
                   3986:     # This happens at least with the AIX C compiler.
                   3987:     : > sub/conftest.c
                   3988:     for i in 1 2 3 4 5 6; do
                   3989:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3990:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3991:       # Solaris 8's {/usr,}/bin/sh.
                   3992:       touch sub/conftst$i.h
                   3993:     done
                   3994:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3995: 
1.15      bertrand 3996:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3997:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3998:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3999:     # versions had trouble with output in subdirs
                   4000:     am__obj=sub/conftest.${OBJEXT-o}
                   4001:     am__minus_obj="-o $am__obj"
                   4002:     case $depmode in
                   4003:     gcc)
                   4004:       # This depmode causes a compiler race in universal mode.
                   4005:       test "$am__universal" = false || continue
                   4006:       ;;
                   4007:     nosideeffect)
                   4008:       # after this tag, mechanisms are not by side-effect, so they'll
                   4009:       # only be used when explicitly requested
                   4010:       if test "x$enable_dependency_tracking" = xyes; then
                   4011:    continue
                   4012:       else
                   4013:    break
                   4014:       fi
                   4015:       ;;
                   4016:     msvisualcpp | msvcmsys)
                   4017:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4018:       # not run yet.  These depmodes are late enough in the game, and
                   4019:       # so weak that their functioning should not be impacted.
                   4020:       am__obj=conftest.${OBJEXT-o}
                   4021:       am__minus_obj=
                   4022:       ;;
                   4023:     none) break ;;
                   4024:     esac
                   4025:     if depmode=$depmode \
                   4026:        source=sub/conftest.c object=$am__obj \
                   4027:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4028:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4029:          >/dev/null 2>conftest.err &&
                   4030:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4031:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4032:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4033:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4034:       # icc doesn't choke on unknown options, it will just issue warnings
                   4035:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4036:       # that says an option was ignored or not supported.
                   4037:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4038:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4039:       # The diagnosis changed in icc 8.0:
                   4040:       #   icc: Command line remark: option '-MP' not supported
                   4041:       if (grep 'ignoring option' conftest.err ||
                   4042:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4043:         am_cv_CC_dependencies_compiler_type=$depmode
                   4044:         break
                   4045:       fi
                   4046:     fi
                   4047:   done
1.14      bertrand 4048: 
1.15      bertrand 4049:   cd ..
                   4050:   rm -rf conftest.dir
1.14      bertrand 4051: else
1.15      bertrand 4052:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4053: fi
                   4054: 
1.15      bertrand 4055: fi
                   4056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4057: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4058: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4059: 
1.15      bertrand 4060:  if
                   4061:   test "x$enable_dependency_tracking" != xno \
                   4062:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4063:   am__fastdepCC_TRUE=
                   4064:   am__fastdepCC_FALSE='#'
1.1       bertrand 4065: else
1.15      bertrand 4066:   am__fastdepCC_TRUE='#'
                   4067:   am__fastdepCC_FALSE=
                   4068: fi
                   4069: 
1.1       bertrand 4070: 
                   4071: 
1.30      bertrand 4072: EXT_SQL=
                   4073: 
1.15      bertrand 4074: if test x"$CC" != x""; then
                   4075:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4076:            awk -F. '{ printf("%s", $1);}'`
                   4077:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4078:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4079:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4080:        OPTIMISATION_C=-O3
                   4081:    else
1.23      bertrand 4082:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4083:                then
1.15      bertrand 4084:            OPTIMISATION_C=-O3
                   4085:        else
1.23      bertrand 4086:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4087:                OPTIMISATION_C=-O2
                   4088:            else
1.36      bertrand 4089:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4090:            fi
1.15      bertrand 4091:        fi
                   4092:    fi
1.14      bertrand 4093: fi
                   4094: 
1.15      bertrand 4095: if test "x$CC" != xcc; then
                   4096:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4097: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4098: else
1.15      bertrand 4099:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4100: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4101: fi
1.15      bertrand 4102: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4103:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4104: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4105:   $as_echo_n "(cached) " >&6
1.1       bertrand 4106: else
1.15      bertrand 4107:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4108: /* end confdefs.h.  */
                   4109: 
                   4110: int
                   4111: main ()
                   4112: {
1.15      bertrand 4113: 
1.1       bertrand 4114:   ;
                   4115:   return 0;
                   4116: }
                   4117: _ACEOF
1.15      bertrand 4118: # Make sure it works both with $CC and with simple cc.
                   4119: # We do the test twice because some compilers refuse to overwrite an
                   4120: # existing .o file with -o, though they will create one.
                   4121: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4122: rm -f conftest2.*
                   4123: if { { case "(($ac_try" in
                   4124:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4125:   *) ac_try_echo=$ac_try;;
                   4126: esac
                   4127: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4128: $as_echo "$ac_try_echo"; } >&5
                   4129:   (eval "$ac_try") 2>&5
                   4130:   ac_status=$?
                   4131:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4132:   test $ac_status = 0; } &&
                   4133:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4134:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4135:   *) ac_try_echo=$ac_try;;
                   4136: esac
                   4137: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4138: $as_echo "$ac_try_echo"; } >&5
                   4139:   (eval "$ac_try") 2>&5
                   4140:   ac_status=$?
                   4141:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4142:   test $ac_status = 0; };
                   4143: then
                   4144:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4145:   if test "x$CC" != xcc; then
                   4146:     # Test first that cc exists at all.
                   4147:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4148:   { { case "(($ac_try" in
                   4149:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4150:   *) ac_try_echo=$ac_try;;
                   4151: esac
                   4152: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4153: $as_echo "$ac_try_echo"; } >&5
                   4154:   (eval "$ac_try") 2>&5
                   4155:   ac_status=$?
                   4156:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4157:   test $ac_status = 0; }; }; then
                   4158:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4159:       rm -f conftest2.*
                   4160:       if { { case "(($ac_try" in
                   4161:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4162:   *) ac_try_echo=$ac_try;;
                   4163: esac
                   4164: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4165: $as_echo "$ac_try_echo"; } >&5
                   4166:   (eval "$ac_try") 2>&5
                   4167:   ac_status=$?
                   4168:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4169:   test $ac_status = 0; } &&
                   4170:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4171:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4172:   *) ac_try_echo=$ac_try;;
                   4173: esac
1.15      bertrand 4174: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4175: $as_echo "$ac_try_echo"; } >&5
                   4176:   (eval "$ac_try") 2>&5
1.14      bertrand 4177:   ac_status=$?
1.15      bertrand 4178:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4179:   test $ac_status = 0; };
                   4180:       then
                   4181:    # cc works too.
                   4182:    :
                   4183:       else
                   4184:    # cc exists but doesn't like -o.
                   4185:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4186:       fi
                   4187:     fi
                   4188:   fi
1.1       bertrand 4189: else
1.15      bertrand 4190:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4191: fi
                   4192: rm -f core conftest*
1.14      bertrand 4193: 
1.1       bertrand 4194: fi
1.15      bertrand 4195: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4196:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4197: $as_echo "yes" >&6; }
                   4198: else
                   4199:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4200: $as_echo "no" >&6; }
                   4201: 
                   4202: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4203: 
                   4204: fi
1.15      bertrand 4205: 
                   4206: # FIXME: we rely on the cache variable name because
                   4207: # there is no other way.
                   4208: set dummy $CC
                   4209: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4210: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4211: if test "$am_t" != yes; then
                   4212:    # Losing compiler, so override with the script.
                   4213:    # FIXME: It is wrong to rewrite CC.
                   4214:    # But if we don't then we get into trouble of one sort or another.
                   4215:    # A longer-term fix would be to have automake use am__CC in this case,
                   4216:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4217:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4218: fi
1.14      bertrand 4219: 
                   4220: 
1.15      bertrand 4221: 
                   4222: if test "$GCC" != yes; then
1.36      bertrand 4223:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4224: fi
                   4225: 
                   4226: ac_ext=cpp
                   4227: ac_cpp='$CXXCPP $CPPFLAGS'
                   4228: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4229: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4230: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4231: if test -z "$CXX"; then
                   4232:   if test -n "$CCC"; then
                   4233:     CXX=$CCC
                   4234:   else
                   4235:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4236:   for ac_prog in g++
1.15      bertrand 4237:   do
                   4238:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4239: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4241: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4242: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4243:   $as_echo_n "(cached) " >&6
1.1       bertrand 4244: else
1.15      bertrand 4245:   if test -n "$CXX"; then
                   4246:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4247: else
1.15      bertrand 4248: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4249: for as_dir in $PATH
                   4250: do
                   4251:   IFS=$as_save_IFS
                   4252:   test -z "$as_dir" && as_dir=.
                   4253:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4254:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4255:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4256:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4257:     break 2
                   4258:   fi
                   4259: done
                   4260:   done
                   4261: IFS=$as_save_IFS
1.14      bertrand 4262: 
                   4263: fi
                   4264: fi
1.15      bertrand 4265: CXX=$ac_cv_prog_CXX
                   4266: if test -n "$CXX"; then
                   4267:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4268: $as_echo "$CXX" >&6; }
1.14      bertrand 4269: else
1.15      bertrand 4270:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4271: $as_echo "no" >&6; }
1.14      bertrand 4272: fi
                   4273: 
                   4274: 
1.15      bertrand 4275:     test -n "$CXX" && break
                   4276:   done
                   4277: fi
                   4278: if test -z "$CXX"; then
                   4279:   ac_ct_CXX=$CXX
1.23      bertrand 4280:   for ac_prog in g++
1.15      bertrand 4281: do
                   4282:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4283: set dummy $ac_prog; ac_word=$2
                   4284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4285: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4286: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4287:   $as_echo_n "(cached) " >&6
                   4288: else
                   4289:   if test -n "$ac_ct_CXX"; then
                   4290:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4291: else
                   4292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4293: for as_dir in $PATH
                   4294: do
                   4295:   IFS=$as_save_IFS
                   4296:   test -z "$as_dir" && as_dir=.
                   4297:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4298:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4299:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4300:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4301:     break 2
                   4302:   fi
                   4303: done
                   4304:   done
                   4305: IFS=$as_save_IFS
1.14      bertrand 4306: 
1.15      bertrand 4307: fi
                   4308: fi
                   4309: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4310: if test -n "$ac_ct_CXX"; then
                   4311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4312: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4313: else
1.15      bertrand 4314:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4315: $as_echo "no" >&6; }
1.14      bertrand 4316: fi
                   4317: 
                   4318: 
1.15      bertrand 4319:   test -n "$ac_ct_CXX" && break
                   4320: done
1.14      bertrand 4321: 
1.15      bertrand 4322:   if test "x$ac_ct_CXX" = x; then
                   4323:     CXX="g++"
                   4324:   else
                   4325:     case $cross_compiling:$ac_tool_warned in
                   4326: yes:)
                   4327: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4328: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4329: ac_tool_warned=yes ;;
                   4330: esac
                   4331:     CXX=$ac_ct_CXX
                   4332:   fi
                   4333: fi
1.1       bertrand 4334: 
1.15      bertrand 4335:   fi
                   4336: fi
                   4337: # Provide some information about the compiler.
                   4338: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4339: set X $ac_compile
                   4340: ac_compiler=$2
                   4341: for ac_option in --version -v -V -qversion; do
                   4342:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4343: case "(($ac_try" in
                   4344:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4345:   *) ac_try_echo=$ac_try;;
                   4346: esac
1.15      bertrand 4347: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4348: $as_echo "$ac_try_echo"; } >&5
                   4349:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4350:   ac_status=$?
1.15      bertrand 4351:   if test -s conftest.err; then
                   4352:     sed '10a\
                   4353: ... rest of stderr output deleted ...
                   4354:          10q' conftest.err >conftest.er1
                   4355:     cat conftest.er1 >&5
                   4356:   fi
                   4357:   rm -f conftest.er1 conftest.err
                   4358:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4359:   test $ac_status = 0; }
                   4360: done
                   4361: 
                   4362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4363: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4364: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4365:   $as_echo_n "(cached) " >&6
1.14      bertrand 4366: else
1.15      bertrand 4367:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4368: /* end confdefs.h.  */
1.1       bertrand 4369: 
                   4370: int
                   4371: main ()
                   4372: {
1.15      bertrand 4373: #ifndef __GNUC__
                   4374:        choke me
                   4375: #endif
1.1       bertrand 4376: 
                   4377:   ;
                   4378:   return 0;
                   4379: }
                   4380: _ACEOF
1.15      bertrand 4381: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4382:   ac_compiler_gnu=yes
1.1       bertrand 4383: else
1.15      bertrand 4384:   ac_compiler_gnu=no
1.1       bertrand 4385: fi
1.14      bertrand 4386: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4387: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4388: 
1.15      bertrand 4389: fi
                   4390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4391: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4392: if test $ac_compiler_gnu = yes; then
                   4393:   GXX=yes
                   4394: else
                   4395:   GXX=
                   4396: fi
                   4397: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4398: ac_save_CXXFLAGS=$CXXFLAGS
                   4399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4400: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4401: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4402:   $as_echo_n "(cached) " >&6
                   4403: else
                   4404:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4405:    ac_cxx_werror_flag=yes
                   4406:    ac_cv_prog_cxx_g=no
                   4407:    CXXFLAGS="-g"
                   4408:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4409: /* end confdefs.h.  */
1.15      bertrand 4410: 
1.1       bertrand 4411: int
                   4412: main ()
                   4413: {
1.14      bertrand 4414: 
1.1       bertrand 4415:   ;
                   4416:   return 0;
                   4417: }
                   4418: _ACEOF
1.15      bertrand 4419: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4420:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4421: else
1.15      bertrand 4422:   CXXFLAGS=""
                   4423:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4424: /* end confdefs.h.  */
1.1       bertrand 4425: 
1.14      bertrand 4426: int
                   4427: main ()
                   4428: {
1.1       bertrand 4429: 
1.14      bertrand 4430:   ;
                   4431:   return 0;
                   4432: }
                   4433: _ACEOF
1.15      bertrand 4434: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4435: 
                   4436: else
1.15      bertrand 4437:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4438:     CXXFLAGS="-g"
                   4439:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4440: /* end confdefs.h.  */
1.1       bertrand 4441: 
1.14      bertrand 4442: int
                   4443: main ()
                   4444: {
1.1       bertrand 4445: 
1.14      bertrand 4446:   ;
                   4447:   return 0;
                   4448: }
                   4449: _ACEOF
1.15      bertrand 4450: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4451:   ac_cv_prog_cxx_g=yes
                   4452: fi
                   4453: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4454: fi
                   4455: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4456: fi
                   4457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4458:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4459: fi
                   4460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4461: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4462: if test "$ac_test_CXXFLAGS" = set; then
                   4463:   CXXFLAGS=$ac_save_CXXFLAGS
                   4464: elif test $ac_cv_prog_cxx_g = yes; then
                   4465:   if test "$GXX" = yes; then
                   4466:     CXXFLAGS="-g -O2"
                   4467:   else
                   4468:     CXXFLAGS="-g"
                   4469:   fi
                   4470: else
                   4471:   if test "$GXX" = yes; then
                   4472:     CXXFLAGS="-O2"
                   4473:   else
                   4474:     CXXFLAGS=
                   4475:   fi
                   4476: fi
                   4477: ac_ext=c
                   4478: ac_cpp='$CPP $CPPFLAGS'
                   4479: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4480: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4481: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4482: 
                   4483: depcc="$CXX"  am_compiler_list=
                   4484: 
                   4485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4486: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4487: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4488:   $as_echo_n "(cached) " >&6
                   4489: else
                   4490:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4491:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4492:   # making bogus files that we don't know about and never remove.  For
                   4493:   # instance it was reported that on HP-UX the gcc test will end up
                   4494:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4495:   # in D'.
                   4496:   mkdir conftest.dir
                   4497:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4498:   # using a relative directory.
                   4499:   cp "$am_depcomp" conftest.dir
                   4500:   cd conftest.dir
                   4501:   # We will build objects and dependencies in a subdirectory because
                   4502:   # it helps to detect inapplicable dependency modes.  For instance
                   4503:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4504:   # side effect of compilation, but ICC will put the dependencies in
                   4505:   # the current directory while Tru64 will put them in the object
                   4506:   # directory.
                   4507:   mkdir sub
                   4508: 
                   4509:   am_cv_CXX_dependencies_compiler_type=none
                   4510:   if test "$am_compiler_list" = ""; then
                   4511:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4512:   fi
                   4513:   am__universal=false
                   4514:   case " $depcc " in #(
                   4515:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4516:      esac
                   4517: 
                   4518:   for depmode in $am_compiler_list; do
                   4519:     # Setup a source with many dependencies, because some compilers
                   4520:     # like to wrap large dependency lists on column 80 (with \), and
                   4521:     # we should not choose a depcomp mode which is confused by this.
                   4522:     #
                   4523:     # We need to recreate these files for each test, as the compiler may
                   4524:     # overwrite some of them when testing with obscure command lines.
                   4525:     # This happens at least with the AIX C compiler.
                   4526:     : > sub/conftest.c
                   4527:     for i in 1 2 3 4 5 6; do
                   4528:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4529:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4530:       # Solaris 8's {/usr,}/bin/sh.
                   4531:       touch sub/conftst$i.h
                   4532:     done
                   4533:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4534: 
                   4535:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4536:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4537:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4538:     # versions had trouble with output in subdirs
                   4539:     am__obj=sub/conftest.${OBJEXT-o}
                   4540:     am__minus_obj="-o $am__obj"
                   4541:     case $depmode in
                   4542:     gcc)
                   4543:       # This depmode causes a compiler race in universal mode.
                   4544:       test "$am__universal" = false || continue
                   4545:       ;;
                   4546:     nosideeffect)
                   4547:       # after this tag, mechanisms are not by side-effect, so they'll
                   4548:       # only be used when explicitly requested
                   4549:       if test "x$enable_dependency_tracking" = xyes; then
                   4550:    continue
                   4551:       else
                   4552:    break
                   4553:       fi
                   4554:       ;;
                   4555:     msvisualcpp | msvcmsys)
                   4556:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4557:       # not run yet.  These depmodes are late enough in the game, and
                   4558:       # so weak that their functioning should not be impacted.
                   4559:       am__obj=conftest.${OBJEXT-o}
                   4560:       am__minus_obj=
                   4561:       ;;
                   4562:     none) break ;;
                   4563:     esac
                   4564:     if depmode=$depmode \
                   4565:        source=sub/conftest.c object=$am__obj \
                   4566:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4567:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4568:          >/dev/null 2>conftest.err &&
                   4569:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4570:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4571:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4572:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4573:       # icc doesn't choke on unknown options, it will just issue warnings
                   4574:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4575:       # that says an option was ignored or not supported.
                   4576:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4577:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4578:       # The diagnosis changed in icc 8.0:
                   4579:       #   icc: Command line remark: option '-MP' not supported
                   4580:       if (grep 'ignoring option' conftest.err ||
                   4581:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4582:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4583:         break
                   4584:       fi
                   4585:     fi
                   4586:   done
                   4587: 
                   4588:   cd ..
                   4589:   rm -rf conftest.dir
                   4590: else
                   4591:   am_cv_CXX_dependencies_compiler_type=none
                   4592: fi
                   4593: 
                   4594: fi
                   4595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4596: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4597: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4598: 
                   4599:  if
                   4600:   test "x$enable_dependency_tracking" != xno \
                   4601:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4602:   am__fastdepCXX_TRUE=
                   4603:   am__fastdepCXX_FALSE='#'
                   4604: else
                   4605:   am__fastdepCXX_TRUE='#'
                   4606:   am__fastdepCXX_FALSE=
                   4607: fi
                   4608: 
                   4609: 
                   4610: 
1.87      bertrand 4611: if test "$GXX" != yes; then
1.36      bertrand 4612:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4613: fi
                   4614: 
1.69      bertrand 4615: if test x"$CXX" != x""; then
                   4616:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4617:            awk -F. '{ printf("%s", $1);}'`
                   4618:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4619:            awk -F. '{ printf("%s", $2);}'`
                   4620:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4621:        OPTIMISATION_GXX=-O3
                   4622:    else
                   4623:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4624:            OPTIMISATION_GXX=-O3
                   4625:        else
                   4626:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4627:                OPTIMISATION_GXX=-O2
                   4628:            else
                   4629:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4630:            fi
                   4631:        fi
                   4632:    fi
                   4633: fi
                   4634: 
1.15      bertrand 4635: ac_ext=f
                   4636: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4637: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4638: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4639: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4640:   for ac_prog in gfortran
1.15      bertrand 4641:   do
                   4642:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4643: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4645: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4646: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4647:   $as_echo_n "(cached) " >&6
                   4648: else
                   4649:   if test -n "$F77"; then
                   4650:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4651: else
                   4652: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4653: for as_dir in $PATH
                   4654: do
                   4655:   IFS=$as_save_IFS
                   4656:   test -z "$as_dir" && as_dir=.
                   4657:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4658:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4659:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4660:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4661:     break 2
                   4662:   fi
                   4663: done
                   4664:   done
                   4665: IFS=$as_save_IFS
                   4666: 
                   4667: fi
                   4668: fi
                   4669: F77=$ac_cv_prog_F77
                   4670: if test -n "$F77"; then
                   4671:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4672: $as_echo "$F77" >&6; }
                   4673: else
                   4674:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4675: $as_echo "no" >&6; }
                   4676: fi
                   4677: 
                   4678: 
                   4679:     test -n "$F77" && break
                   4680:   done
                   4681: fi
                   4682: if test -z "$F77"; then
                   4683:   ac_ct_F77=$F77
1.23      bertrand 4684:   for ac_prog in gfortran
1.15      bertrand 4685: do
                   4686:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4687: set dummy $ac_prog; ac_word=$2
                   4688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4689: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4690: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4691:   $as_echo_n "(cached) " >&6
                   4692: else
                   4693:   if test -n "$ac_ct_F77"; then
                   4694:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4695: else
                   4696: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4697: for as_dir in $PATH
                   4698: do
                   4699:   IFS=$as_save_IFS
                   4700:   test -z "$as_dir" && as_dir=.
                   4701:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4702:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4703:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4704:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4705:     break 2
                   4706:   fi
                   4707: done
                   4708:   done
                   4709: IFS=$as_save_IFS
                   4710: 
                   4711: fi
                   4712: fi
                   4713: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4714: if test -n "$ac_ct_F77"; then
                   4715:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4716: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4717: else
1.15      bertrand 4718:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4719: $as_echo "no" >&6; }
                   4720: fi
                   4721: 
                   4722: 
                   4723:   test -n "$ac_ct_F77" && break
                   4724: done
1.1       bertrand 4725: 
1.15      bertrand 4726:   if test "x$ac_ct_F77" = x; then
                   4727:     F77=""
                   4728:   else
                   4729:     case $cross_compiling:$ac_tool_warned in
                   4730: yes:)
                   4731: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4732: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4733: ac_tool_warned=yes ;;
                   4734: esac
                   4735:     F77=$ac_ct_F77
                   4736:   fi
1.14      bertrand 4737: fi
1.1       bertrand 4738: 
                   4739: 
1.15      bertrand 4740: # Provide some information about the compiler.
                   4741: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4742: set X $ac_compile
                   4743: ac_compiler=$2
                   4744: for ac_option in --version -v -V -qversion; do
                   4745:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4746: case "(($ac_try" in
                   4747:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4748:   *) ac_try_echo=$ac_try;;
                   4749: esac
1.15      bertrand 4750: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4751: $as_echo "$ac_try_echo"; } >&5
                   4752:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4753:   ac_status=$?
1.15      bertrand 4754:   if test -s conftest.err; then
                   4755:     sed '10a\
                   4756: ... rest of stderr output deleted ...
                   4757:          10q' conftest.err >conftest.er1
                   4758:     cat conftest.er1 >&5
                   4759:   fi
                   4760:   rm -f conftest.er1 conftest.err
                   4761:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4762:   test $ac_status = 0; }
                   4763: done
                   4764: rm -f a.out
                   4765: 
                   4766: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4767: # input file.  (Note that this only needs to work for GNU compilers.)
                   4768: ac_save_ext=$ac_ext
                   4769: ac_ext=F
                   4770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4771: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4772: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4773:   $as_echo_n "(cached) " >&6
1.1       bertrand 4774: else
1.15      bertrand 4775:   cat > conftest.$ac_ext <<_ACEOF
                   4776:       program main
                   4777: #ifndef __GNUC__
                   4778:        choke me
                   4779: #endif
1.14      bertrand 4780: 
1.15      bertrand 4781:       end
                   4782: _ACEOF
                   4783: if ac_fn_f77_try_compile "$LINENO"; then :
                   4784:   ac_compiler_gnu=yes
                   4785: else
                   4786:   ac_compiler_gnu=no
1.1       bertrand 4787: fi
1.15      bertrand 4788: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4789: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4790: 
                   4791: fi
1.15      bertrand 4792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4793: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4794: ac_ext=$ac_save_ext
                   4795: ac_test_FFLAGS=${FFLAGS+set}
                   4796: ac_save_FFLAGS=$FFLAGS
                   4797: FFLAGS=
                   4798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4799: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4800: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4801:   $as_echo_n "(cached) " >&6
                   4802: else
                   4803:   FFLAGS=-g
                   4804: cat > conftest.$ac_ext <<_ACEOF
                   4805:       program main
1.1       bertrand 4806: 
1.15      bertrand 4807:       end
1.14      bertrand 4808: _ACEOF
1.15      bertrand 4809: if ac_fn_f77_try_compile "$LINENO"; then :
                   4810:   ac_cv_prog_f77_g=yes
1.1       bertrand 4811: else
1.15      bertrand 4812:   ac_cv_prog_f77_g=no
1.1       bertrand 4813: fi
1.15      bertrand 4814: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4815: 
                   4816: fi
1.15      bertrand 4817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4818: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4819: if test "$ac_test_FFLAGS" = set; then
                   4820:   FFLAGS=$ac_save_FFLAGS
                   4821: elif test $ac_cv_prog_f77_g = yes; then
                   4822:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4823:     FFLAGS="-g -O2"
                   4824:   else
                   4825:     FFLAGS="-g"
                   4826:   fi
                   4827: else
                   4828:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4829:     FFLAGS="-O2"
                   4830:   else
                   4831:     FFLAGS=
                   4832:   fi
1.1       bertrand 4833: fi
                   4834: 
1.15      bertrand 4835: if test $ac_compiler_gnu = yes; then
                   4836:   G77=yes
1.1       bertrand 4837: else
1.15      bertrand 4838:   G77=
1.1       bertrand 4839: fi
1.15      bertrand 4840: ac_ext=c
                   4841: ac_cpp='$CPP $CPPFLAGS'
                   4842: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4843: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4844: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4845: 
                   4846: 
1.15      bertrand 4847: ac_ext=${ac_fc_srcext-f}
                   4848: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4849: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4850: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4851: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4852:   for ac_prog in gfortran
1.15      bertrand 4853:   do
                   4854:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4855: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4857: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4858: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4859:   $as_echo_n "(cached) " >&6
                   4860: else
                   4861:   if test -n "$FC"; then
                   4862:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4863: else
1.15      bertrand 4864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4865: for as_dir in $PATH
                   4866: do
                   4867:   IFS=$as_save_IFS
                   4868:   test -z "$as_dir" && as_dir=.
                   4869:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4870:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4871:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4872:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4873:     break 2
                   4874:   fi
                   4875: done
                   4876:   done
                   4877: IFS=$as_save_IFS
1.1       bertrand 4878: 
                   4879: fi
1.15      bertrand 4880: fi
                   4881: FC=$ac_cv_prog_FC
                   4882: if test -n "$FC"; then
                   4883:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4884: $as_echo "$FC" >&6; }
1.14      bertrand 4885: else
1.15      bertrand 4886:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4887: $as_echo "no" >&6; }
1.14      bertrand 4888: fi
                   4889: 
1.1       bertrand 4890: 
1.15      bertrand 4891:     test -n "$FC" && break
                   4892:   done
                   4893: fi
                   4894: if test -z "$FC"; then
                   4895:   ac_ct_FC=$FC
1.23      bertrand 4896:   for ac_prog in gfortran
1.15      bertrand 4897: do
                   4898:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4899: set dummy $ac_prog; ac_word=$2
                   4900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4901: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4902: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4903:   $as_echo_n "(cached) " >&6
                   4904: else
                   4905:   if test -n "$ac_ct_FC"; then
                   4906:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4907: else
                   4908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4909: for as_dir in $PATH
                   4910: do
                   4911:   IFS=$as_save_IFS
                   4912:   test -z "$as_dir" && as_dir=.
                   4913:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4914:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4915:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4916:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4917:     break 2
                   4918:   fi
                   4919: done
                   4920:   done
                   4921: IFS=$as_save_IFS
1.1       bertrand 4922: 
1.15      bertrand 4923: fi
                   4924: fi
                   4925: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4926: if test -n "$ac_ct_FC"; then
                   4927:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4928: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4929: else
1.15      bertrand 4930:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4931: $as_echo "no" >&6; }
1.1       bertrand 4932: fi
1.14      bertrand 4933: 
1.1       bertrand 4934: 
1.15      bertrand 4935:   test -n "$ac_ct_FC" && break
                   4936: done
1.1       bertrand 4937: 
1.15      bertrand 4938:   if test "x$ac_ct_FC" = x; then
                   4939:     FC=""
                   4940:   else
                   4941:     case $cross_compiling:$ac_tool_warned in
                   4942: yes:)
                   4943: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4944: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4945: ac_tool_warned=yes ;;
1.14      bertrand 4946: esac
1.15      bertrand 4947:     FC=$ac_ct_FC
                   4948:   fi
1.14      bertrand 4949: fi
                   4950: 
                   4951: 
1.15      bertrand 4952: # Provide some information about the compiler.
                   4953: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4954: set X $ac_compile
                   4955: ac_compiler=$2
                   4956: for ac_option in --version -v -V -qversion; do
                   4957:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4958: case "(($ac_try" in
                   4959:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4960:   *) ac_try_echo=$ac_try;;
                   4961: esac
1.15      bertrand 4962: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4963: $as_echo "$ac_try_echo"; } >&5
                   4964:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4965:   ac_status=$?
1.15      bertrand 4966:   if test -s conftest.err; then
                   4967:     sed '10a\
                   4968: ... rest of stderr output deleted ...
                   4969:          10q' conftest.err >conftest.er1
                   4970:     cat conftest.er1 >&5
                   4971:   fi
                   4972:   rm -f conftest.er1 conftest.err
                   4973:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4974:   test $ac_status = 0; }
                   4975: done
                   4976: rm -f a.out
                   4977: 
                   4978: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4979: # input file.  (Note that this only needs to work for GNU compilers.)
                   4980: ac_save_ext=$ac_ext
                   4981: ac_ext=F
                   4982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4983: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4984: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4985:   $as_echo_n "(cached) " >&6
1.14      bertrand 4986: else
1.15      bertrand 4987:   cat > conftest.$ac_ext <<_ACEOF
                   4988:       program main
                   4989: #ifndef __GNUC__
                   4990:        choke me
                   4991: #endif
1.14      bertrand 4992: 
1.15      bertrand 4993:       end
                   4994: _ACEOF
                   4995: if ac_fn_fc_try_compile "$LINENO"; then :
                   4996:   ac_compiler_gnu=yes
                   4997: else
                   4998:   ac_compiler_gnu=no
1.14      bertrand 4999: fi
                   5000: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 5001: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 5002: 
1.15      bertrand 5003: fi
                   5004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   5005: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   5006: ac_ext=$ac_save_ext
                   5007: ac_test_FCFLAGS=${FCFLAGS+set}
                   5008: ac_save_FCFLAGS=$FCFLAGS
                   5009: FCFLAGS=
                   5010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5011: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 5012: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5013:   $as_echo_n "(cached) " >&6
                   5014: else
                   5015:   FCFLAGS=-g
                   5016: cat > conftest.$ac_ext <<_ACEOF
                   5017:       program main
1.1       bertrand 5018: 
1.15      bertrand 5019:       end
1.1       bertrand 5020: _ACEOF
1.15      bertrand 5021: if ac_fn_fc_try_compile "$LINENO"; then :
                   5022:   ac_cv_prog_fc_g=yes
1.1       bertrand 5023: else
1.15      bertrand 5024:   ac_cv_prog_fc_g=no
1.1       bertrand 5025: fi
1.14      bertrand 5026: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5027: 
1.15      bertrand 5028: fi
                   5029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5030: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5031: if test "$ac_test_FCFLAGS" = set; then
                   5032:   FCFLAGS=$ac_save_FCFLAGS
                   5033: elif test $ac_cv_prog_fc_g = yes; then
                   5034:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5035:     FCFLAGS="-g -O2"
                   5036:   else
                   5037:     FCFLAGS="-g"
                   5038:   fi
1.1       bertrand 5039: else
1.15      bertrand 5040:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5041:     FCFLAGS="-O2"
                   5042:   else
                   5043:     FCFLAGS=
                   5044:   fi
1.1       bertrand 5045: fi
                   5046: 
1.15      bertrand 5047: ac_ext=c
                   5048: ac_cpp='$CPP $CPPFLAGS'
                   5049: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5050: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5051: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5052: 
                   5053: 
1.88      bertrand 5054: if test x"$F77" == x; then
                   5055:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
                   5056: fi
                   5057: 
                   5058: if test x"$FC" == x; then
1.36      bertrand 5059:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5060: fi
                   5061: 
1.15      bertrand 5062: if test x"$FC" != x""; then
                   5063:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5064:            awk -F. '{ printf("%s", $1);}'`
                   5065:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5066:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5067:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5068:        OPTIMISATION_F=-O3
                   5069:    else
1.23      bertrand 5070:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5071:            OPTIMISATION_F=-O3
                   5072:        else
1.23      bertrand 5073:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5074:                OPTIMISATION_F=-O2
                   5075:            else
1.36      bertrand 5076:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5077:            fi
1.14      bertrand 5078:        fi
                   5079:    fi
                   5080: fi
1.1       bertrand 5081: 
                   5082: 
1.15      bertrand 5083: ac_ext=c
                   5084: ac_cpp='$CPP $CPPFLAGS'
                   5085: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5086: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5087: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5089: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5090: # On Suns, sometimes $CPP names a directory.
                   5091: if test -n "$CPP" && test -d "$CPP"; then
                   5092:   CPP=
                   5093: fi
                   5094: if test -z "$CPP"; then
1.57      bertrand 5095:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5096:   $as_echo_n "(cached) " >&6
                   5097: else
                   5098:       # Double quotes because CPP needs to be expanded
                   5099:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5100:     do
                   5101:       ac_preproc_ok=false
                   5102: for ac_c_preproc_warn_flag in '' yes
                   5103: do
                   5104:   # Use a header file that comes with gcc, so configuring glibc
                   5105:   # with a fresh cross-compiler works.
                   5106:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5107:   # <limits.h> exists even on freestanding compilers.
                   5108:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5109:   # not just through cpp. "Syntax error" is here to catch this case.
                   5110:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5111: /* end confdefs.h.  */
1.15      bertrand 5112: #ifdef __STDC__
                   5113: # include <limits.h>
                   5114: #else
                   5115: # include <assert.h>
                   5116: #endif
                   5117:             Syntax error
1.1       bertrand 5118: _ACEOF
1.15      bertrand 5119: if ac_fn_c_try_cpp "$LINENO"; then :
                   5120: 
1.1       bertrand 5121: else
1.15      bertrand 5122:   # Broken: fails on valid input.
                   5123: continue
1.1       bertrand 5124: fi
1.36      bertrand 5125: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5126: 
1.15      bertrand 5127:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5128:   # can be detected and how.
                   5129:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5130: /* end confdefs.h.  */
                   5131: #include <ac_nonexistent.h>
                   5132: _ACEOF
                   5133: if ac_fn_c_try_cpp "$LINENO"; then :
                   5134:   # Broken: success on invalid input.
                   5135: continue
                   5136: else
                   5137:   # Passes both tests.
                   5138: ac_preproc_ok=:
                   5139: break
1.1       bertrand 5140: fi
1.36      bertrand 5141: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5142: 
1.15      bertrand 5143: done
                   5144: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5145: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5146: if $ac_preproc_ok; then :
                   5147:   break
1.1       bertrand 5148: fi
                   5149: 
1.15      bertrand 5150:     done
                   5151:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5152: 
1.15      bertrand 5153: fi
                   5154:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5155: else
1.15      bertrand 5156:   ac_cv_prog_CPP=$CPP
                   5157: fi
                   5158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5159: $as_echo "$CPP" >&6; }
                   5160: ac_preproc_ok=false
                   5161: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5162: do
1.15      bertrand 5163:   # Use a header file that comes with gcc, so configuring glibc
                   5164:   # with a fresh cross-compiler works.
                   5165:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5166:   # <limits.h> exists even on freestanding compilers.
                   5167:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5168:   # not just through cpp. "Syntax error" is here to catch this case.
                   5169:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5170: /* end confdefs.h.  */
                   5171: #ifdef __STDC__
                   5172: # include <limits.h>
                   5173: #else
                   5174: # include <assert.h>
                   5175: #endif
                   5176:             Syntax error
                   5177: _ACEOF
                   5178: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5179: 
1.15      bertrand 5180: else
                   5181:   # Broken: fails on valid input.
                   5182: continue
                   5183: fi
1.36      bertrand 5184: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5185: 
1.15      bertrand 5186:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5187:   # can be detected and how.
                   5188:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5189: /* end confdefs.h.  */
                   5190: #include <ac_nonexistent.h>
                   5191: _ACEOF
                   5192: if ac_fn_c_try_cpp "$LINENO"; then :
                   5193:   # Broken: success on invalid input.
                   5194: continue
                   5195: else
                   5196:   # Passes both tests.
                   5197: ac_preproc_ok=:
                   5198: break
                   5199: fi
1.36      bertrand 5200: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5201: 
                   5202: done
1.15      bertrand 5203: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5204: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5205: if $ac_preproc_ok; then :
1.1       bertrand 5206: 
1.15      bertrand 5207: else
                   5208:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5209: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5210: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5211: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5212: fi
1.14      bertrand 5213: 
1.15      bertrand 5214: ac_ext=c
                   5215: ac_cpp='$CPP $CPPFLAGS'
                   5216: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5217: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5218: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5219: 
                   5220: 
1.15      bertrand 5221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5222: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5223: 
                   5224: 
1.15      bertrand 5225: # Check whether --with-x was given.
                   5226: if test "${with_x+set}" = set; then :
                   5227:   withval=$with_x;
1.1       bertrand 5228: fi
1.14      bertrand 5229: 
1.15      bertrand 5230: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5231: if test "x$with_x" = xno; then
                   5232:   # The user explicitly disabled X.
                   5233:   have_x=disabled
1.1       bertrand 5234: else
1.15      bertrand 5235:   case $x_includes,$x_libraries in #(
1.57      bertrand 5236:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5237:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5238:   $as_echo_n "(cached) " >&6
1.1       bertrand 5239: else
1.15      bertrand 5240:   # One or both of the vars are not set, and there is no cached value.
                   5241: ac_x_includes=no ac_x_libraries=no
                   5242: rm -f -r conftest.dir
                   5243: if mkdir conftest.dir; then
                   5244:   cd conftest.dir
                   5245:   cat >Imakefile <<'_ACEOF'
                   5246: incroot:
                   5247:    @echo incroot='${INCROOT}'
                   5248: usrlibdir:
                   5249:    @echo usrlibdir='${USRLIBDIR}'
                   5250: libdir:
                   5251:    @echo libdir='${LIBDIR}'
                   5252: _ACEOF
                   5253:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5254:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5255:     for ac_var in incroot usrlibdir libdir; do
                   5256:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5257:     done
                   5258:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5259:     for ac_extension in a so sl dylib la dll; do
                   5260:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5261:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5262:    ac_im_usrlibdir=$ac_im_libdir; break
                   5263:       fi
                   5264:     done
                   5265:     # Screen out bogus values from the imake configuration.  They are
                   5266:     # bogus both because they are the default anyway, and because
                   5267:     # using them would break gcc on systems where it needs fixed includes.
                   5268:     case $ac_im_incroot in
                   5269:    /usr/include) ac_x_includes= ;;
                   5270:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5271:     esac
                   5272:     case $ac_im_usrlibdir in
                   5273:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5274:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5275:     esac
                   5276:   fi
                   5277:   cd ..
                   5278:   rm -f -r conftest.dir
                   5279: fi
                   5280: 
                   5281: # Standard set of common directories for X headers.
                   5282: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5283: ac_x_header_dirs='
                   5284: /usr/X11/include
                   5285: /usr/X11R7/include
                   5286: /usr/X11R6/include
                   5287: /usr/X11R5/include
                   5288: /usr/X11R4/include
1.1       bertrand 5289: 
1.15      bertrand 5290: /usr/include/X11
                   5291: /usr/include/X11R7
                   5292: /usr/include/X11R6
                   5293: /usr/include/X11R5
                   5294: /usr/include/X11R4
1.1       bertrand 5295: 
1.15      bertrand 5296: /usr/local/X11/include
                   5297: /usr/local/X11R7/include
                   5298: /usr/local/X11R6/include
                   5299: /usr/local/X11R5/include
                   5300: /usr/local/X11R4/include
1.1       bertrand 5301: 
1.15      bertrand 5302: /usr/local/include/X11
                   5303: /usr/local/include/X11R7
                   5304: /usr/local/include/X11R6
                   5305: /usr/local/include/X11R5
                   5306: /usr/local/include/X11R4
1.1       bertrand 5307: 
1.15      bertrand 5308: /usr/X386/include
                   5309: /usr/x386/include
                   5310: /usr/XFree86/include/X11
1.1       bertrand 5311: 
1.15      bertrand 5312: /usr/include
                   5313: /usr/local/include
                   5314: /usr/unsupported/include
                   5315: /usr/athena/include
                   5316: /usr/local/x11r5/include
                   5317: /usr/lpp/Xamples/include
1.1       bertrand 5318: 
1.15      bertrand 5319: /usr/openwin/include
                   5320: /usr/openwin/share/include'
1.1       bertrand 5321: 
1.15      bertrand 5322: if test "$ac_x_includes" = no; then
                   5323:   # Guess where to find include files, by looking for Xlib.h.
                   5324:   # First, try using that file with no special directory specified.
                   5325:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5326: /* end confdefs.h.  */
                   5327: #include <X11/Xlib.h>
                   5328: _ACEOF
                   5329: if ac_fn_c_try_cpp "$LINENO"; then :
                   5330:   # We can compile using X headers with no special include directory.
                   5331: ac_x_includes=
1.1       bertrand 5332: else
1.15      bertrand 5333:   for ac_dir in $ac_x_header_dirs; do
                   5334:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5335:     ac_x_includes=$ac_dir
                   5336:     break
                   5337:   fi
                   5338: done
1.1       bertrand 5339: fi
1.36      bertrand 5340: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5341: fi # $ac_x_includes = no
1.1       bertrand 5342: 
1.15      bertrand 5343: if test "$ac_x_libraries" = no; then
                   5344:   # Check for the libraries.
                   5345:   # See if we find them without any special options.
                   5346:   # Don't add to $LIBS permanently.
                   5347:   ac_save_LIBS=$LIBS
                   5348:   LIBS="-lX11 $LIBS"
                   5349:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5350: /* end confdefs.h.  */
1.15      bertrand 5351: #include <X11/Xlib.h>
1.14      bertrand 5352: int
                   5353: main ()
                   5354: {
1.15      bertrand 5355: XrmInitialize ()
1.14      bertrand 5356:   ;
                   5357:   return 0;
                   5358: }
1.1       bertrand 5359: _ACEOF
1.15      bertrand 5360: if ac_fn_c_try_link "$LINENO"; then :
                   5361:   LIBS=$ac_save_LIBS
                   5362: # We can link X programs with no special library path.
                   5363: ac_x_libraries=
1.1       bertrand 5364: else
1.15      bertrand 5365:   LIBS=$ac_save_LIBS
                   5366: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5367: do
                   5368:   # Don't even attempt the hair of trying to link an X program!
                   5369:   for ac_extension in a so sl dylib la dll; do
                   5370:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5371:       ac_x_libraries=$ac_dir
                   5372:       break 2
                   5373:     fi
                   5374:   done
                   5375: done
                   5376: fi
                   5377: rm -f core conftest.err conftest.$ac_objext \
                   5378:     conftest$ac_exeext conftest.$ac_ext
                   5379: fi # $ac_x_libraries = no
1.1       bertrand 5380: 
1.15      bertrand 5381: case $ac_x_includes,$ac_x_libraries in #(
                   5382:   no,* | *,no | *\'*)
                   5383:     # Didn't find X, or a directory has "'" in its name.
                   5384:     ac_cv_have_x="have_x=no";; #(
                   5385:   *)
                   5386:     # Record where we found X for the cache.
                   5387:     ac_cv_have_x="have_x=yes\
                   5388:    ac_x_includes='$ac_x_includes'\
                   5389:    ac_x_libraries='$ac_x_libraries'"
                   5390: esac
1.1       bertrand 5391: fi
1.15      bertrand 5392: ;; #(
                   5393:     *) have_x=yes;;
                   5394:   esac
                   5395:   eval "$ac_cv_have_x"
                   5396: fi # $with_x != no
1.1       bertrand 5397: 
1.15      bertrand 5398: if test "$have_x" != yes; then
                   5399:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5400: $as_echo "$have_x" >&6; }
                   5401:   no_x=yes
1.14      bertrand 5402: else
1.15      bertrand 5403:   # If each of the values was on the command line, it overrides each guess.
                   5404:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5405:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5406:   # Update the cache value to reflect the command line values.
                   5407:   ac_cv_have_x="have_x=yes\
                   5408:    ac_x_includes='$x_includes'\
                   5409:    ac_x_libraries='$x_libraries'"
                   5410:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5411: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5412: fi
1.1       bertrand 5413: 
1.15      bertrand 5414: if test "$no_x" = yes; then
                   5415:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5416: 
1.15      bertrand 5417: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5418: 
1.15      bertrand 5419:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5420: else
1.15      bertrand 5421:   if test -n "$x_includes"; then
                   5422:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5423:   fi
                   5424: 
                   5425:   # It would also be nice to do this for all -L options, not just this one.
                   5426:   if test -n "$x_libraries"; then
                   5427:     X_LIBS="$X_LIBS -L$x_libraries"
                   5428:     # For Solaris; some versions of Sun CC require a space after -R and
                   5429:     # others require no space.  Words are not sufficient . . . .
                   5430:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5431: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5432:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5433:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5434:     ac_c_werror_flag=yes
                   5435:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5436: /* end confdefs.h.  */
1.1       bertrand 5437: 
1.15      bertrand 5438: int
                   5439: main ()
                   5440: {
1.1       bertrand 5441: 
1.15      bertrand 5442:   ;
                   5443:   return 0;
                   5444: }
                   5445: _ACEOF
                   5446: if ac_fn_c_try_link "$LINENO"; then :
                   5447:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5448: $as_echo "no" >&6; }
                   5449:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5450: else
1.15      bertrand 5451:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5452:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5453: /* end confdefs.h.  */
1.1       bertrand 5454: 
1.14      bertrand 5455: int
                   5456: main ()
                   5457: {
1.15      bertrand 5458: 
                   5459:   ;
1.14      bertrand 5460:   return 0;
                   5461: }
                   5462: _ACEOF
1.15      bertrand 5463: if ac_fn_c_try_link "$LINENO"; then :
                   5464:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5465: $as_echo "yes" >&6; }
                   5466:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5467: else
1.15      bertrand 5468:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5469: $as_echo "neither works" >&6; }
1.14      bertrand 5470: fi
1.15      bertrand 5471: rm -f core conftest.err conftest.$ac_objext \
                   5472:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5473: fi
1.15      bertrand 5474: rm -f core conftest.err conftest.$ac_objext \
                   5475:     conftest$ac_exeext conftest.$ac_ext
                   5476:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5477:     LIBS=$ac_xsave_LIBS
                   5478:   fi
1.1       bertrand 5479: 
1.15      bertrand 5480:   # Check for system-dependent libraries X programs must link with.
                   5481:   # Do this before checking for the system-independent R6 libraries
                   5482:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5483: 
1.15      bertrand 5484:   if test "$ISC" = yes; then
                   5485:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5486:   else
                   5487:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5488:     # libraries were built with DECnet support.  And Karl Berry says
                   5489:     # the Alpha needs dnet_stub (dnet does not exist).
                   5490:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5491:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5492: /* end confdefs.h.  */
1.1       bertrand 5493: 
1.15      bertrand 5494: /* Override any GCC internal prototype to avoid an error.
                   5495:    Use char because int might match the return type of a GCC
                   5496:    builtin and then its argument prototype would still apply.  */
                   5497: #ifdef __cplusplus
                   5498: extern "C"
                   5499: #endif
                   5500: char XOpenDisplay ();
                   5501: int
                   5502: main ()
                   5503: {
                   5504: return XOpenDisplay ();
                   5505:   ;
                   5506:   return 0;
                   5507: }
1.1       bertrand 5508: _ACEOF
1.15      bertrand 5509: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5510: 
                   5511: else
1.15      bertrand 5512:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5513: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5514: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5515:   $as_echo_n "(cached) " >&6
                   5516: else
                   5517:   ac_check_lib_save_LIBS=$LIBS
                   5518: LIBS="-ldnet  $LIBS"
                   5519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5520: /* end confdefs.h.  */
1.14      bertrand 5521: 
1.15      bertrand 5522: /* Override any GCC internal prototype to avoid an error.
                   5523:    Use char because int might match the return type of a GCC
                   5524:    builtin and then its argument prototype would still apply.  */
                   5525: #ifdef __cplusplus
                   5526: extern "C"
                   5527: #endif
                   5528: char dnet_ntoa ();
                   5529: int
                   5530: main ()
                   5531: {
                   5532: return dnet_ntoa ();
                   5533:   ;
                   5534:   return 0;
                   5535: }
1.1       bertrand 5536: _ACEOF
1.15      bertrand 5537: if ac_fn_c_try_link "$LINENO"; then :
                   5538:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5539: else
1.15      bertrand 5540:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5541: fi
1.15      bertrand 5542: rm -f core conftest.err conftest.$ac_objext \
                   5543:     conftest$ac_exeext conftest.$ac_ext
                   5544: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5545: fi
1.15      bertrand 5546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5547: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5548: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5549:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5550: fi
                   5551: 
1.15      bertrand 5552:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5553:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5554: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5555: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5556:   $as_echo_n "(cached) " >&6
1.14      bertrand 5557: else
1.15      bertrand 5558:   ac_check_lib_save_LIBS=$LIBS
                   5559: LIBS="-ldnet_stub  $LIBS"
                   5560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5561: /* end confdefs.h.  */
1.15      bertrand 5562: 
                   5563: /* Override any GCC internal prototype to avoid an error.
                   5564:    Use char because int might match the return type of a GCC
                   5565:    builtin and then its argument prototype would still apply.  */
                   5566: #ifdef __cplusplus
                   5567: extern "C"
                   5568: #endif
                   5569: char dnet_ntoa ();
1.1       bertrand 5570: int
                   5571: main ()
                   5572: {
1.15      bertrand 5573: return dnet_ntoa ();
1.1       bertrand 5574:   ;
                   5575:   return 0;
                   5576: }
                   5577: _ACEOF
1.15      bertrand 5578: if ac_fn_c_try_link "$LINENO"; then :
                   5579:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5580: else
1.15      bertrand 5581:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5582: fi
                   5583: rm -f core conftest.err conftest.$ac_objext \
                   5584:     conftest$ac_exeext conftest.$ac_ext
                   5585: LIBS=$ac_check_lib_save_LIBS
                   5586: fi
                   5587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5588: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5589: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5590:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5591: fi
1.14      bertrand 5592: 
1.15      bertrand 5593:     fi
1.1       bertrand 5594: fi
1.15      bertrand 5595: rm -f core conftest.err conftest.$ac_objext \
                   5596:     conftest$ac_exeext conftest.$ac_ext
                   5597:     LIBS="$ac_xsave_LIBS"
                   5598: 
                   5599:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5600:     # to get the SysV transport functions.
                   5601:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5602:     # needs -lnsl.
                   5603:     # The nsl library prevents programs from opening the X display
                   5604:     # on Irix 5.2, according to T.E. Dickey.
                   5605:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5606:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5607:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5608: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5609: 
                   5610: fi
                   5611: 
1.15      bertrand 5612:     if test $ac_cv_func_gethostbyname = no; then
                   5613:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5614: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5615: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5616:   $as_echo_n "(cached) " >&6
1.1       bertrand 5617: else
1.15      bertrand 5618:   ac_check_lib_save_LIBS=$LIBS
                   5619: LIBS="-lnsl  $LIBS"
                   5620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5621: /* end confdefs.h.  */
1.15      bertrand 5622: 
                   5623: /* Override any GCC internal prototype to avoid an error.
                   5624:    Use char because int might match the return type of a GCC
                   5625:    builtin and then its argument prototype would still apply.  */
                   5626: #ifdef __cplusplus
                   5627: extern "C"
                   5628: #endif
                   5629: char gethostbyname ();
1.1       bertrand 5630: int
                   5631: main ()
                   5632: {
1.15      bertrand 5633: return gethostbyname ();
1.1       bertrand 5634:   ;
                   5635:   return 0;
                   5636: }
                   5637: _ACEOF
1.15      bertrand 5638: if ac_fn_c_try_link "$LINENO"; then :
                   5639:   ac_cv_lib_nsl_gethostbyname=yes
                   5640: else
                   5641:   ac_cv_lib_nsl_gethostbyname=no
                   5642: fi
                   5643: rm -f core conftest.err conftest.$ac_objext \
                   5644:     conftest$ac_exeext conftest.$ac_ext
                   5645: LIBS=$ac_check_lib_save_LIBS
                   5646: fi
                   5647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5648: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5649: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5650:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5651: fi
                   5652: 
                   5653:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5654:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5655: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5656: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5657:   $as_echo_n "(cached) " >&6
                   5658: else
                   5659:   ac_check_lib_save_LIBS=$LIBS
                   5660: LIBS="-lbsd  $LIBS"
                   5661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5662: /* end confdefs.h.  */
1.15      bertrand 5663: 
                   5664: /* Override any GCC internal prototype to avoid an error.
                   5665:    Use char because int might match the return type of a GCC
                   5666:    builtin and then its argument prototype would still apply.  */
                   5667: #ifdef __cplusplus
                   5668: extern "C"
                   5669: #endif
                   5670: char gethostbyname ();
1.1       bertrand 5671: int
                   5672: main ()
                   5673: {
1.15      bertrand 5674: return gethostbyname ();
1.1       bertrand 5675:   ;
                   5676:   return 0;
                   5677: }
                   5678: _ACEOF
1.15      bertrand 5679: if ac_fn_c_try_link "$LINENO"; then :
                   5680:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5681: else
1.15      bertrand 5682:   ac_cv_lib_bsd_gethostbyname=no
                   5683: fi
                   5684: rm -f core conftest.err conftest.$ac_objext \
                   5685:     conftest$ac_exeext conftest.$ac_ext
                   5686: LIBS=$ac_check_lib_save_LIBS
                   5687: fi
                   5688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5689: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5690: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5691:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5692: fi
                   5693: 
                   5694:       fi
                   5695:     fi
                   5696: 
                   5697:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5698:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5699:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5700:     # on later versions), says Simon Leinen: it contains gethostby*
                   5701:     # variants that don't use the name server (or something).  -lsocket
                   5702:     # must be given before -lnsl if both are needed.  We assume that
                   5703:     # if connect needs -lnsl, so does gethostbyname.
                   5704:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5705: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5706: 
1.1       bertrand 5707: fi
                   5708: 
1.15      bertrand 5709:     if test $ac_cv_func_connect = no; then
                   5710:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5711: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5712: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5713:   $as_echo_n "(cached) " >&6
1.14      bertrand 5714: else
1.15      bertrand 5715:   ac_check_lib_save_LIBS=$LIBS
                   5716: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5718: /* end confdefs.h.  */
1.1       bertrand 5719: 
1.15      bertrand 5720: /* Override any GCC internal prototype to avoid an error.
                   5721:    Use char because int might match the return type of a GCC
                   5722:    builtin and then its argument prototype would still apply.  */
                   5723: #ifdef __cplusplus
                   5724: extern "C"
                   5725: #endif
                   5726: char connect ();
1.14      bertrand 5727: int
                   5728: main ()
                   5729: {
1.15      bertrand 5730: return connect ();
1.14      bertrand 5731:   ;
                   5732:   return 0;
                   5733: }
                   5734: _ACEOF
1.15      bertrand 5735: if ac_fn_c_try_link "$LINENO"; then :
                   5736:   ac_cv_lib_socket_connect=yes
                   5737: else
                   5738:   ac_cv_lib_socket_connect=no
                   5739: fi
                   5740: rm -f core conftest.err conftest.$ac_objext \
                   5741:     conftest$ac_exeext conftest.$ac_ext
                   5742: LIBS=$ac_check_lib_save_LIBS
                   5743: fi
                   5744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5745: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5746: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5747:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5748: fi
                   5749: 
                   5750:     fi
                   5751: 
                   5752:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5753:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5754: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5755: 
                   5756: fi
                   5757: 
                   5758:     if test $ac_cv_func_remove = no; then
                   5759:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5760: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5761: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5762:   $as_echo_n "(cached) " >&6
                   5763: else
                   5764:   ac_check_lib_save_LIBS=$LIBS
                   5765: LIBS="-lposix  $LIBS"
                   5766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5767: /* end confdefs.h.  */
1.15      bertrand 5768: 
                   5769: /* Override any GCC internal prototype to avoid an error.
                   5770:    Use char because int might match the return type of a GCC
                   5771:    builtin and then its argument prototype would still apply.  */
                   5772: #ifdef __cplusplus
                   5773: extern "C"
                   5774: #endif
                   5775: char remove ();
1.1       bertrand 5776: int
                   5777: main ()
                   5778: {
1.15      bertrand 5779: return remove ();
1.1       bertrand 5780:   ;
                   5781:   return 0;
                   5782: }
                   5783: _ACEOF
1.15      bertrand 5784: if ac_fn_c_try_link "$LINENO"; then :
                   5785:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5786: else
1.15      bertrand 5787:   ac_cv_lib_posix_remove=no
                   5788: fi
                   5789: rm -f core conftest.err conftest.$ac_objext \
                   5790:     conftest$ac_exeext conftest.$ac_ext
                   5791: LIBS=$ac_check_lib_save_LIBS
                   5792: fi
                   5793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5794: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5795: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5796:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5797: fi
1.1       bertrand 5798: 
1.15      bertrand 5799:     fi
1.14      bertrand 5800: 
1.15      bertrand 5801:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5802:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5803: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5804: 
                   5805: fi
                   5806: 
1.15      bertrand 5807:     if test $ac_cv_func_shmat = no; then
                   5808:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5809: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5810: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5811:   $as_echo_n "(cached) " >&6
                   5812: else
                   5813:   ac_check_lib_save_LIBS=$LIBS
                   5814: LIBS="-lipc  $LIBS"
                   5815: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5816: /* end confdefs.h.  */
1.15      bertrand 5817: 
                   5818: /* Override any GCC internal prototype to avoid an error.
                   5819:    Use char because int might match the return type of a GCC
                   5820:    builtin and then its argument prototype would still apply.  */
                   5821: #ifdef __cplusplus
                   5822: extern "C"
                   5823: #endif
                   5824: char shmat ();
1.1       bertrand 5825: int
                   5826: main ()
                   5827: {
1.15      bertrand 5828: return shmat ();
1.1       bertrand 5829:   ;
                   5830:   return 0;
                   5831: }
                   5832: _ACEOF
1.15      bertrand 5833: if ac_fn_c_try_link "$LINENO"; then :
                   5834:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5835: else
1.15      bertrand 5836:   ac_cv_lib_ipc_shmat=no
                   5837: fi
                   5838: rm -f core conftest.err conftest.$ac_objext \
                   5839:     conftest$ac_exeext conftest.$ac_ext
                   5840: LIBS=$ac_check_lib_save_LIBS
                   5841: fi
                   5842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5843: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5844: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5845:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5846: fi
1.14      bertrand 5847: 
1.15      bertrand 5848:     fi
                   5849:   fi
1.1       bertrand 5850: 
1.15      bertrand 5851:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5852:   ac_save_LDFLAGS=$LDFLAGS
                   5853:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5854:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5855:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5856:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5857:   # These have to be linked with before -lX11, unlike the other
                   5858:   # libraries we check for below, so use a different variable.
                   5859:   # John Interrante, Karl Berry
                   5860:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5861: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5862: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5863:   $as_echo_n "(cached) " >&6
1.1       bertrand 5864: else
1.15      bertrand 5865:   ac_check_lib_save_LIBS=$LIBS
                   5866: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5868: /* end confdefs.h.  */
1.15      bertrand 5869: 
                   5870: /* Override any GCC internal prototype to avoid an error.
                   5871:    Use char because int might match the return type of a GCC
                   5872:    builtin and then its argument prototype would still apply.  */
                   5873: #ifdef __cplusplus
                   5874: extern "C"
                   5875: #endif
                   5876: char IceConnectionNumber ();
1.1       bertrand 5877: int
                   5878: main ()
                   5879: {
1.15      bertrand 5880: return IceConnectionNumber ();
1.1       bertrand 5881:   ;
                   5882:   return 0;
                   5883: }
                   5884: _ACEOF
1.15      bertrand 5885: if ac_fn_c_try_link "$LINENO"; then :
                   5886:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5887: else
1.15      bertrand 5888:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5889: fi
                   5890: rm -f core conftest.err conftest.$ac_objext \
                   5891:     conftest$ac_exeext conftest.$ac_ext
                   5892: LIBS=$ac_check_lib_save_LIBS
                   5893: fi
                   5894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5895: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5896: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5897:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5898: fi
                   5899: 
                   5900:   LDFLAGS=$ac_save_LDFLAGS
                   5901: 
                   5902: fi
                   5903: 
1.14      bertrand 5904: 
1.15      bertrand 5905: if test "$ac_x_includes" != "no"; then
                   5906:    if test x"$ac_x_includes" != x; then
                   5907:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5908:        includeX="-I$ac_x_includes"
                   5909:    fi
1.1       bertrand 5910: fi
1.15      bertrand 5911: if test "$ac_x_libraries" != "no"; then
                   5912:    if test x"$ac_x_libraries" != x; then
                   5913:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5914:    fi
1.1       bertrand 5915: fi
1.15      bertrand 5916: 
1.64      bertrand 5917: 
1.69      bertrand 5918: # Check whether --with-32bits-abi was given.
                   5919: if test "${with_32bits_abi+set}" = set; then :
                   5920:   withval=$with_32bits_abi;
1.64      bertrand 5921: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5922:    ABI=
1.64      bertrand 5923: else
1.65      bertrand 5924:    ABI=-m32
                   5925: fi
1.64      bertrand 5926: else
                   5927: 
1.68      bertrand 5928:    ABI=
1.64      bertrand 5929: 
                   5930: 
                   5931: fi
                   5932: 
                   5933: 
1.68      bertrand 5934: if test x$ABI = x; then
1.66      bertrand 5935: 
1.69      bertrand 5936: # Check whether --with-64bits-abi was given.
                   5937: if test "${with_64bits_abi+set}" = set; then :
                   5938:   withval=$with_64bits_abi;
1.67      bertrand 5939: if test "$with-64bits-abi" = "no"; then
                   5940:    ABI=
                   5941: else
                   5942:    ABI=-m64
                   5943: fi
                   5944: else
                   5945: 
1.68      bertrand 5946:    ABI=
1.67      bertrand 5947: 
                   5948: 
                   5949: fi
                   5950: 
1.68      bertrand 5951: fi
1.67      bertrand 5952: 
1.69      bertrand 5953: LDFLAGS="$LDFLAGS $ABI"
                   5954: 
1.67      bertrand 5955: 
1.88      bertrand 5956: # Check whether --with-rpltools was given.
                   5957: if test "${with_rpltools+set}" = set; then :
                   5958:   withval=$with_rpltools;
                   5959: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
                   5960:    as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
                   5961: else
                   5962:    RPLTOOLS=$with_rpltools
                   5963: fi
                   5964: else
                   5965: 
                   5966:    RPLTOOLS=\$\(top_builddir\)
                   5967: 
                   5968: 
                   5969: fi
                   5970: 
                   5971: 
                   5972: 
                   5973: 
                   5974: # Check whether --enable-rplcas was given.
                   5975: if test "${enable_rplcas+set}" = set; then :
                   5976:   enableval=$enable_rplcas;
                   5977: if test "$enableval" = "no"; then
1.67      bertrand 5978:    RPLCAS=-URPLCAS
                   5979:    LIBRPLCAS=
                   5980: else
                   5981:    RPLCAS=-DRPLCAS
                   5982:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5983: fi
                   5984: else
                   5985: 
                   5986:    RPLCAS=-URPLCAS
                   5987:    LIBRPLCAS=
                   5988: 
                   5989: 
                   5990: fi
                   5991: 
                   5992: 
                   5993: 
                   5994: 
                   5995: 
1.65      bertrand 5996: 
1.89    ! bertrand 5997: # Check whether --enable-shared-memory was given.
        !          5998: if test "${enable_shared_memory+set}" = set; then :
        !          5999:   enableval=$enable_shared_memory;
        !          6000: if test "$enableval" = "no"; then
        !          6001:    SHARED_MEMORY="-USHARED_MEMORY"
        !          6002: else
        !          6003:    SHARED_MEMORY="-DSHARED_MEMORY"
        !          6004: fi
        !          6005: else
        !          6006: 
        !          6007:    SHARED_MEMORY="-USHARED_MEMORY"
        !          6008: fi
        !          6009: 
        !          6010: 
        !          6011: 
        !          6012: 
1.15      bertrand 6013: # Check whether --enable-optimization was given.
                   6014: if test "${enable_optimization+set}" = set; then :
                   6015:   enableval=$enable_optimization;
                   6016: if test "$enableval" = "no"; then
1.69      bertrand 6017:    CFLAGS=$ABI
                   6018:    FFLAGS=$ABI
                   6019:    CXXFLAGS=$ABI
                   6020:    FCFLAGS=$ABI
                   6021: else
                   6022:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   6023:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   6024:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   6025:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 6026: fi
1.15      bertrand 6027: else
1.14      bertrand 6028: 
1.69      bertrand 6029:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   6030:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   6031:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   6032:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 6033: 
                   6034: 
1.15      bertrand 6035: fi
1.1       bertrand 6036: 
                   6037: 
1.87      bertrand 6038: # Check whether --enable-sysv-ipcs was given.
                   6039: if test "${enable_sysv_ipcs+set}" = set; then :
                   6040:   enableval=$enable_sysv_ipcs;
1.36      bertrand 6041: if test "$enableval" = "no"; then
1.88      bertrand 6042:    IPCS_SYSV=-UIPCS_SYSV
                   6043:    POSIX_IPCS=no
1.36      bertrand 6044: else
1.88      bertrand 6045:    IPCS_SYSV=-DIPCS_SYSV
                   6046:    POSIX_IPCS=yes
1.36      bertrand 6047: fi
                   6048: else
1.85      bertrand 6049:   REG=$LDFLAGS
1.88      bertrand 6050: POSIX_IPCS=guessed
1.85      bertrand 6051: LDFLAGS=-lrt
                   6052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
                   6053: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
                   6054: if test "$cross_compiling" = yes; then :
                   6055:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6056: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6057: as_fn_error $? "cannot run test program while cross compiling
                   6058: See \`config.log' for more details" "$LINENO" 5; }
                   6059: else
                   6060:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81      bertrand 6061: /* end confdefs.h.  */
                   6062: #include <sys/mman.h>
                   6063: #include <sys/stat.h>
                   6064: #include <fcntl.h>
1.82      bertrand 6065: 
1.81      bertrand 6066: int
                   6067: main ()
                   6068: {
1.85      bertrand 6069:  int fd; char *sem = "/test";
1.81      bertrand 6070: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
                   6071:   close(fd);
                   6072:   shm_unlink(sem);
1.85      bertrand 6073:   fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
                   6074:   close(fd);
                   6075:   sem_unlink(sem);
1.81      bertrand 6076:   return(0);
                   6077: 
                   6078:   ;
                   6079:   return 0;
                   6080: }
                   6081: _ACEOF
1.85      bertrand 6082: if ac_fn_c_try_run "$LINENO"; then :
1.81      bertrand 6083:   IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6084: $as_echo "yes" >&6; }
                   6085: else
                   6086:   IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6087: $as_echo "no" >&6; }
                   6088: 
                   6089: fi
1.85      bertrand 6090: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6091:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6092: fi
                   6093: 
                   6094: LDFLAGS=$REG
1.81      bertrand 6095: 
1.36      bertrand 6096: fi
                   6097: 
                   6098: 
1.88      bertrand 6099: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.81      bertrand 6100: REG=$LDFLAGS
                   6101: LDFLAGS=-pthread
1.83      bertrand 6102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
                   6103: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
                   6104: if test "$cross_compiling" = yes; then :
                   6105:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6106: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6107: as_fn_error $? "cannot run test program while cross compiling
                   6108: See \`config.log' for more details" "$LINENO" 5; }
                   6109: else
                   6110:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6111: /* end confdefs.h.  */
                   6112: #include <semaphore.h>
                   6113: 
                   6114: int
                   6115: main ()
                   6116: {
                   6117:  sem_t sem;
1.81      bertrand 6118:  if (sem_init(&sem, 1, 0) != 0) return(1);
                   6119:  sem_destroy(&sem);
                   6120:   return(0);
1.83      bertrand 6121: 
                   6122:   ;
                   6123:   return 0;
                   6124: }
                   6125: _ACEOF
                   6126: if ac_fn_c_try_run "$LINENO"; then :
                   6127:   SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6128: $as_echo "yes" >&6; }
                   6129: else
                   6130:   SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6131: $as_echo "no" >&6; }
                   6132: 
                   6133: fi
                   6134: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6135:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6136: fi
                   6137: 
1.81      bertrand 6138: LDFLAGS=$REG
                   6139: REG=""
                   6140: else
                   6141:    SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   6142: fi
                   6143: 
1.30      bertrand 6144: # Check whether --enable-full-static was given.
                   6145: if test "${enable_full_static+set}" = set; then :
                   6146:   enableval=$enable_full_static;
                   6147: if test "$enableval" = "no"; then
                   6148:    STATIC=no
                   6149: else
                   6150:    STATIC=yes
                   6151: fi
                   6152: else
                   6153:   STATIC=no
                   6154: fi
                   6155: 
                   6156: 
1.15      bertrand 6157: # Check whether --enable-final-encoding was given.
                   6158: if test "${enable_final_encoding+set}" = set; then :
                   6159:   enableval=$enable_final_encoding;
                   6160: if test "$enableval" = "no"; then
                   6161:    FINAL_ENCODING="\$(shell locale charmap | \
                   6162:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6163:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6164: else
1.15      bertrand 6165:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6166:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6167: fi
1.1       bertrand 6168: else
1.35      bertrand 6169: 
                   6170: FORCED_FINAL_ENCODING=0
                   6171: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6172:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6173: fi
                   6174: 
1.14      bertrand 6175: 
1.15      bertrand 6176: # Check whether --enable-tex was given.
                   6177: if test "${enable_tex+set}" = set; then :
                   6178:   enableval=$enable_tex;
                   6179: if test "$enableval" = "no"; then
                   6180:    TEX_SUPPORT=no
                   6181: else
                   6182:    TEX_SUPPORT=yes
1.1       bertrand 6183: fi
1.15      bertrand 6184: else
                   6185:   TEX_SUPPORT=guessed
                   6186: fi
                   6187: 
1.14      bertrand 6188: 
1.15      bertrand 6189: # Check whether --enable-vim was given.
                   6190: if test "${enable_vim+set}" = set; then :
                   6191:   enableval=$enable_vim;
                   6192: if test "$enableval" = "no"; then
                   6193:    VIM_SUPPORT=no
                   6194: else
                   6195:    VIM_SUPPORT=yes
                   6196: fi
                   6197: else
                   6198:   VIM_SUPPORT=guessed
1.1       bertrand 6199: fi
                   6200: 
1.15      bertrand 6201: 
                   6202: # Check whether --enable-embedded-gnuplot was given.
                   6203: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6204:   enableval=$enable_embedded_gnuplot;
                   6205: if test "$enableval" = "no"; then
                   6206:    MYGNUPLOT=no
                   6207: else
                   6208:    MYGNUPLOT=yes
                   6209: fi
1.1       bertrand 6210: else
                   6211: 
1.15      bertrand 6212: MYGNUPLOT=yes
                   6213: fi
                   6214: 
1.14      bertrand 6215: 
1.15      bertrand 6216: # Check whether --enable-gnuplot was given.
                   6217: if test "${enable_gnuplot+set}" = set; then :
                   6218:   enableval=$enable_gnuplot;
                   6219: if test "$enableval" = "no"; then
                   6220:    GNUPLOT_SUPPORT=no
                   6221:    MYGNUPLOT=no
                   6222:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6223: else
                   6224:    GNUPLOT_SUPPORT=yes
                   6225:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6226: fi
1.1       bertrand 6227: else
                   6228: 
1.15      bertrand 6229: if test "$MYGNUPLOT" = "yes"; then
                   6230:    GNUPLOT_SUPPORT=yes
                   6231:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6232: else
                   6233:    GNUPLOT_SUPPORT=guessed
                   6234:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6235: fi
1.1       bertrand 6236: fi
                   6237: 
1.15      bertrand 6238: 
1.80      bertrand 6239: libX=""
                   6240: LIBMOTIF=""
                   6241: INCMOTIF=""
                   6242: BUILD_OPENMOTIF=""
                   6243: 
1.15      bertrand 6244: # Check whether --enable-motif was given.
                   6245: if test "${enable_motif+set}" = set; then :
                   6246:   enableval=$enable_motif;
                   6247: if test "$enableval" = "no"; then
                   6248:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6249: else
1.80      bertrand 6250:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6251: fi
1.1       bertrand 6252: else
1.80      bertrand 6253:   if test "$have_x" == "yes"; then
                   6254:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15      bertrand 6255: else
1.80      bertrand 6256:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15      bertrand 6257: fi
                   6258: fi
1.14      bertrand 6259: 
1.80      bertrand 6260: 
                   6261: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6262:    libX="$X_LIBS -lXt -lX11"
                   6263:    LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
                   6264:            \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
                   6265:    INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
                   6266:            -I\$(top_builddir)/tools/$OPENMOTIF/lib \
                   6267:            -I\$(top_builddir)/tools/$LIBXPM/include"
                   6268:    BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
                   6269: 
                   6270: 
                   6271: subdirs="$subdirs tools/$LIBXPM"
                   6272: 
                   6273:    subdirs="$subdirs tools/$OPENMOTIF"
                   6274: 
1.1       bertrand 6275: fi
                   6276: 
1.15      bertrand 6277: # Check whether --enable-experimental was given.
                   6278: if test "${enable_experimental+set}" = set; then :
                   6279:   enableval=$enable_experimental;
                   6280: if test "$enableval" = "no"; then
                   6281:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6282: else
                   6283:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6284: fi
1.14      bertrand 6285: else
1.15      bertrand 6286:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6287: fi
                   6288: 
1.1       bertrand 6289: 
1.15      bertrand 6290: # Check whether --enable-debug was given.
                   6291: if test "${enable_debug+set}" = set; then :
                   6292:   enableval=$enable_debug;
                   6293: if test "$enableval" = "no"; then
1.24      bertrand 6294:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6295: else
1.24      bertrand 6296:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6297: fi
                   6298: else
1.24      bertrand 6299:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6300: fi
1.1       bertrand 6301: 
1.15      bertrand 6302: 
                   6303: # Check whether --enable-profile was given.
                   6304: if test "${enable_profile+set}" = set; then :
                   6305:   enableval=$enable_profile;
                   6306: if test "$enableval" = "no"; then
                   6307:    PROFILAGE=""
                   6308: else
                   6309:    PROFILAGE="-pg"
                   6310: fi
                   6311: else
                   6312:   PROFILAGE=""
1.1       bertrand 6313: fi
                   6314: 
1.14      bertrand 6315: 
                   6316: 
1.15      bertrand 6317: 
                   6318: if test ! -d tools; then
                   6319:    mkdir tools
                   6320: fi
                   6321: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6322:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6323:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6324:    (cd "$srcdir/tools/"$NCURSES && \
                   6325:            for i in ../$NCURSES*.patch.gz;
                   6326:            do gunzip -c $i | patch -p1;
                   6327:            done);
1.15      bertrand 6328: fi
                   6329: if test ! -d "$srcdir"/tools/$READLINE; then
                   6330:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6331:            (cd "$srcdir/tools" && tar -xf -)
                   6332: fi
                   6333: if test ! -d "$srcdir"/tools/$UNITS; then
                   6334:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6335:            (cd "$srcdir/tools" && tar -xf -)
                   6336: fi
                   6337: if test ! -d "$srcdir"/tools/$GSL; then
                   6338:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6339:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6340:    if test $(uname) = "OS/2"; then
                   6341:        (cd "$srcdir"/tools/$GSL; \
                   6342:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6343:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6344:                \mv -f $TMP ltmain.sh)
                   6345:    fi
1.15      bertrand 6346: fi
                   6347: if test ! -d "$srcdir"/tools/$GPP; then
                   6348:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6349:            (cd "$srcdir/tools" && tar -xf -)
                   6350: fi
                   6351: if test ! -d "$srcdir"/tools/$FILE; then
                   6352:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6353:            (cd "$srcdir/tools" && tar -xf - )
                   6354:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6355: fi
                   6356: if test ! -d "$srcdir"/tools/$ICONV; then
                   6357:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6358:            (cd "$srcdir/tools" && tar -xf -)
                   6359: fi
                   6360: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6361:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6362:            (cd "$srcdir/tools" && tar -xf -)
                   6363: fi
1.76      bertrand 6364: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6365:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6366:            (cd "$srcdir/tools" && tar -xf -)
                   6367: fi
1.80      bertrand 6368: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
                   6369:    gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
                   6370:            (cd "$srcdir/tools" && tar -xf -)
                   6371: fi
                   6372: if test ! -d "$srcdir"/tools/$LIBXPM; then
                   6373:    gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
                   6374:            (cd "$srcdir/tools" && tar -xf -)
                   6375: fi
1.15      bertrand 6376: if test ! -d tools/$OPENSSL; then
                   6377:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6378:            (cd tools && tar -xf -)
1.1       bertrand 6379: fi
1.55      bertrand 6380: if test ! -d rplcas; then
                   6381:    mkdir rplcas
                   6382: fi
                   6383: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6384:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6385:            (cd "$srcdir/rplcas" && tar -xf -)
                   6386: fi
                   6387: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6388:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6389:            (cd "$srcdir/rplcas" && tar -xf -)
                   6390: fi
1.56      bertrand 6391: if test ! -d rplcas/$NTL; then
                   6392:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6393:            (cd rplcas && tar -xf -)
                   6394: fi
                   6395: if test ! -d rplcas/$COCOA; then
                   6396:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6397:            (cd rplcas && tar -xf -)
                   6398: fi
                   6399: if test ! -d rplcas/$PARI; then
                   6400:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6401:            (cd rplcas && tar -xf -)
                   6402: fi
                   6403: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6404:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6405:            (cd "$srcdir/rplcas" && tar -xf -)
                   6406: fi
1.1       bertrand 6407: 
1.84      bertrand 6408: touch tools/openmotif.lib
                   6409: 
1.1       bertrand 6410: 
                   6411: 
1.15      bertrand 6412: # Check whether --enable-final-run-path was given.
                   6413: if test "${enable_final_run_path+set}" = set; then :
                   6414:   enableval=$enable_final_run_path;
                   6415:    if test "x$enable_final_run_path" = "x"; then
                   6416:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6417: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6418:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6419:    else
                   6420:        RUNPATH="$enable_final_run_path"
                   6421:    fi
1.1       bertrand 6422: 
                   6423: else
1.15      bertrand 6424:   RUNPATH="\${prefix}"
1.1       bertrand 6425: 
                   6426: fi
                   6427: 
1.15      bertrand 6428: 
                   6429: 
                   6430: 
                   6431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6432: $as_echo_n "checking whether ln -s works... " >&6; }
                   6433: LN_S=$as_ln_s
                   6434: if test "$LN_S" = "ln -s"; then
                   6435:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6436: $as_echo "yes" >&6; }
                   6437: else
                   6438:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6439: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6440: fi
                   6441: 
1.15      bertrand 6442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6443: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6444: set x ${MAKE-make}
                   6445: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6446: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6447:   $as_echo_n "(cached) " >&6
1.1       bertrand 6448: else
1.15      bertrand 6449:   cat >conftest.make <<\_ACEOF
                   6450: SHELL = /bin/sh
                   6451: all:
                   6452:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6453: _ACEOF
1.36      bertrand 6454: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6455: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6456:   *@@@%%%=?*=@@@%%%*)
                   6457:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6458:   *)
                   6459:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6460: esac
1.15      bertrand 6461: rm -f conftest.make
                   6462: fi
                   6463: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6464:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6465: $as_echo "yes" >&6; }
                   6466:   SET_MAKE=
                   6467: else
                   6468:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6469: $as_echo "no" >&6; }
                   6470:   SET_MAKE="MAKE=${MAKE-make}"
                   6471: fi
1.1       bertrand 6472: 
1.15      bertrand 6473: if test -n "$ac_tool_prefix"; then
                   6474:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6475: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6477: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6478: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6479:   $as_echo_n "(cached) " >&6
                   6480: else
                   6481:   if test -n "$RANLIB"; then
                   6482:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6483: else
1.15      bertrand 6484: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6485: for as_dir in $PATH
                   6486: do
                   6487:   IFS=$as_save_IFS
                   6488:   test -z "$as_dir" && as_dir=.
                   6489:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6490:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6491:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6492:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6493:     break 2
                   6494:   fi
                   6495: done
                   6496:   done
                   6497: IFS=$as_save_IFS
1.1       bertrand 6498: 
                   6499: fi
1.15      bertrand 6500: fi
                   6501: RANLIB=$ac_cv_prog_RANLIB
                   6502: if test -n "$RANLIB"; then
                   6503:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6504: $as_echo "$RANLIB" >&6; }
                   6505: else
                   6506:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6507: $as_echo "no" >&6; }
                   6508: fi
                   6509: 
1.1       bertrand 6510: 
1.15      bertrand 6511: fi
                   6512: if test -z "$ac_cv_prog_RANLIB"; then
                   6513:   ac_ct_RANLIB=$RANLIB
                   6514:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6515: set dummy ranlib; ac_word=$2
                   6516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6517: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6518: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6519:   $as_echo_n "(cached) " >&6
                   6520: else
                   6521:   if test -n "$ac_ct_RANLIB"; then
                   6522:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6523: else
                   6524: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6525: for as_dir in $PATH
                   6526: do
                   6527:   IFS=$as_save_IFS
                   6528:   test -z "$as_dir" && as_dir=.
                   6529:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6530:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6531:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6532:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6533:     break 2
                   6534:   fi
                   6535: done
1.14      bertrand 6536:   done
1.15      bertrand 6537: IFS=$as_save_IFS
                   6538: 
                   6539: fi
                   6540: fi
                   6541: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6542: if test -n "$ac_ct_RANLIB"; then
                   6543:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6544: $as_echo "$ac_ct_RANLIB" >&6; }
                   6545: else
                   6546:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6547: $as_echo "no" >&6; }
                   6548: fi
                   6549: 
                   6550:   if test "x$ac_ct_RANLIB" = x; then
                   6551:     RANLIB=":"
                   6552:   else
                   6553:     case $cross_compiling:$ac_tool_warned in
                   6554: yes:)
                   6555: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6556: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6557: ac_tool_warned=yes ;;
                   6558: esac
                   6559:     RANLIB=$ac_ct_RANLIB
                   6560:   fi
1.14      bertrand 6561: else
1.15      bertrand 6562:   RANLIB="$ac_cv_prog_RANLIB"
                   6563: fi
1.1       bertrand 6564: 
                   6565: 
1.15      bertrand 6566: # Extract the first word of "nawk", so it can be a program name with args.
                   6567: set dummy nawk; ac_word=$2
                   6568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6569: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6570: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6571:   $as_echo_n "(cached) " >&6
                   6572: else
                   6573:   if test -n "$AWK"; then
                   6574:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6575: else
                   6576: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6577: for as_dir in $PATH
                   6578: do
                   6579:   IFS=$as_save_IFS
                   6580:   test -z "$as_dir" && as_dir=.
                   6581:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6582:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6583:     ac_cv_prog_AWK="yes"
                   6584:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6585:     break 2
                   6586:   fi
                   6587: done
                   6588:   done
                   6589: IFS=$as_save_IFS
1.1       bertrand 6590: 
1.15      bertrand 6591:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6592: fi
                   6593: fi
                   6594: AWK=$ac_cv_prog_AWK
                   6595: if test -n "$AWK"; then
                   6596:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6597: $as_echo "$AWK" >&6; }
1.1       bertrand 6598: else
1.15      bertrand 6599:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6600: $as_echo "no" >&6; }
                   6601: fi
                   6602: 
1.1       bertrand 6603: 
1.15      bertrand 6604: if test "$AWK" = no; then
1.39      bertrand 6605:    # Extract the first word of "gawk", so it can be a program name with args.
                   6606: set dummy gawk; ac_word=$2
                   6607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6608: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6609: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6610:   $as_echo_n "(cached) " >&6
                   6611: else
                   6612:   if test -n "$AWK"; then
                   6613:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6614: else
                   6615: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6616: for as_dir in $PATH
                   6617: do
                   6618:   IFS=$as_save_IFS
                   6619:   test -z "$as_dir" && as_dir=.
                   6620:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6621:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6622:     ac_cv_prog_AWK="yes"
                   6623:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6624:     break 2
                   6625:   fi
                   6626: done
                   6627:   done
                   6628: IFS=$as_save_IFS
                   6629: 
                   6630:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6631: fi
                   6632: fi
                   6633: AWK=$ac_cv_prog_AWK
                   6634: if test -n "$AWK"; then
                   6635:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6636: $as_echo "$AWK" >&6; }
                   6637: else
                   6638:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6639: $as_echo "no" >&6; }
                   6640: fi
                   6641: 
                   6642: 
                   6643:    if test "$AWK" = no; then
                   6644:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6645:    fi
1.1       bertrand 6646: fi
                   6647: 
1.15      bertrand 6648: # Extract the first word of "sed", so it can be a program name with args.
                   6649: set dummy sed; ac_word=$2
                   6650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6651: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6652: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6653:   $as_echo_n "(cached) " >&6
                   6654: else
                   6655:   if test -n "$SED"; then
                   6656:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6657: else
                   6658: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6659: for as_dir in $PATH
                   6660: do
                   6661:   IFS=$as_save_IFS
                   6662:   test -z "$as_dir" && as_dir=.
                   6663:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6664:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6665:     ac_cv_prog_SED="yes"
                   6666:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6667:     break 2
                   6668:   fi
                   6669: done
1.14      bertrand 6670:   done
1.15      bertrand 6671: IFS=$as_save_IFS
1.1       bertrand 6672: 
1.15      bertrand 6673:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6674: fi
1.15      bertrand 6675: fi
                   6676: SED=$ac_cv_prog_SED
                   6677: if test -n "$SED"; then
                   6678:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6679: $as_echo "$SED" >&6; }
                   6680: else
                   6681:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6682: $as_echo "no" >&6; }
1.14      bertrand 6683: fi
1.1       bertrand 6684: 
                   6685: 
1.15      bertrand 6686: if test "$SED" = no; then
1.36      bertrand 6687:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6688: fi
1.14      bertrand 6689: 
1.15      bertrand 6690: if test "$TEX_SUPPORT" = guessed; then
                   6691:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6692: 
1.15      bertrand 6693:    # Extract the first word of "tex", so it can be a program name with args.
                   6694: set dummy tex; ac_word=$2
                   6695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6696: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6697: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6698:   $as_echo_n "(cached) " >&6
1.1       bertrand 6699: else
1.15      bertrand 6700:   if test -n "$TEX"; then
                   6701:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6702: else
1.15      bertrand 6703: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6704: for as_dir in $PATH
                   6705: do
                   6706:   IFS=$as_save_IFS
                   6707:   test -z "$as_dir" && as_dir=.
                   6708:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6709:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6710:     ac_cv_prog_TEX="yes"
                   6711:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6712:     break 2
                   6713:   fi
                   6714: done
                   6715:   done
                   6716: IFS=$as_save_IFS
1.1       bertrand 6717: 
1.15      bertrand 6718:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6719: fi
                   6720: fi
1.15      bertrand 6721: TEX=$ac_cv_prog_TEX
                   6722: if test -n "$TEX"; then
                   6723:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6724: $as_echo "$TEX" >&6; }
                   6725: else
                   6726:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6727: $as_echo "no" >&6; }
1.1       bertrand 6728: fi
1.14      bertrand 6729: 
                   6730: 
1.15      bertrand 6731:    if test "$TEX" = no; then
                   6732:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6733: Download at http://tex.loria.fr/
                   6734: " >&5
                   6735: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6736: Download at http://tex.loria.fr/
                   6737: " >&2;}
                   6738:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6739:    fi
1.14      bertrand 6740: 
1.15      bertrand 6741:    # Extract the first word of "latex", so it can be a program name with args.
                   6742: set dummy latex; ac_word=$2
                   6743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6744: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6745: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6746:   $as_echo_n "(cached) " >&6
1.1       bertrand 6747: else
1.15      bertrand 6748:   if test -n "$LATEX"; then
                   6749:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6750: else
1.15      bertrand 6751: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6752: for as_dir in $PATH
                   6753: do
                   6754:   IFS=$as_save_IFS
                   6755:   test -z "$as_dir" && as_dir=.
                   6756:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6757:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6758:     ac_cv_prog_LATEX="yes"
                   6759:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6760:     break 2
                   6761:   fi
                   6762: done
                   6763:   done
                   6764: IFS=$as_save_IFS
1.1       bertrand 6765: 
1.15      bertrand 6766:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6767: fi
                   6768: fi
1.15      bertrand 6769: LATEX=$ac_cv_prog_LATEX
                   6770: if test -n "$LATEX"; then
                   6771:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6772: $as_echo "$LATEX" >&6; }
                   6773: else
                   6774:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6775: $as_echo "no" >&6; }
                   6776: fi
1.14      bertrand 6777: 
1.1       bertrand 6778: 
1.15      bertrand 6779:    if test "$LATEX" = no; then
                   6780:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6781: Download at http://tex.loria.fr/
                   6782: " >&5
                   6783: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6784: Download at http://tex.loria.fr/
                   6785: " >&2;}
                   6786:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6787:    fi
1.1       bertrand 6788: 
1.15      bertrand 6789:    # Extract the first word of "dvips", so it can be a program name with args.
                   6790: set dummy dvips; ac_word=$2
                   6791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6792: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6793: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6794:   $as_echo_n "(cached) " >&6
                   6795: else
                   6796:   if test -n "$DVIPS"; then
                   6797:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6798: else
                   6799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6800: for as_dir in $PATH
                   6801: do
                   6802:   IFS=$as_save_IFS
                   6803:   test -z "$as_dir" && as_dir=.
                   6804:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6805:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6806:     ac_cv_prog_DVIPS="yes"
                   6807:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6808:     break 2
                   6809:   fi
                   6810: done
                   6811:   done
                   6812: IFS=$as_save_IFS
1.1       bertrand 6813: 
1.15      bertrand 6814:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6815: fi
1.1       bertrand 6816: fi
1.15      bertrand 6817: DVIPS=$ac_cv_prog_DVIPS
                   6818: if test -n "$DVIPS"; then
                   6819:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6820: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6821: else
1.15      bertrand 6822:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6823: $as_echo "no" >&6; }
                   6824: fi
1.1       bertrand 6825: 
                   6826: 
1.15      bertrand 6827:    if test "$DVIPS" = no; then
                   6828:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6829: Download at http://tex.loria.fr/
                   6830: " >&5
                   6831: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6832: Download at http://tex.loria.fr/
                   6833: " >&2;}
                   6834:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6835:    fi
1.1       bertrand 6836: 
1.15      bertrand 6837:    # Extract the first word of "gs", so it can be a program name with args.
                   6838: set dummy gs; ac_word=$2
                   6839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6840: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6841: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6842:   $as_echo_n "(cached) " >&6
                   6843: else
                   6844:   if test -n "$GS"; then
                   6845:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6846: else
1.15      bertrand 6847: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6848: for as_dir in $PATH
                   6849: do
                   6850:   IFS=$as_save_IFS
                   6851:   test -z "$as_dir" && as_dir=.
                   6852:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6853:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6854:     ac_cv_prog_GS="yes"
                   6855:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6856:     break 2
                   6857:   fi
                   6858: done
                   6859:   done
                   6860: IFS=$as_save_IFS
1.1       bertrand 6861: 
1.15      bertrand 6862:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6863: fi
                   6864: fi
                   6865: GS=$ac_cv_prog_GS
                   6866: if test -n "$GS"; then
                   6867:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6868: $as_echo "$GS" >&6; }
                   6869: else
                   6870:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6871: $as_echo "no" >&6; }
1.1       bertrand 6872: fi
                   6873: 
1.15      bertrand 6874: 
                   6875:    if test "$GS" = no; then
                   6876:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6877: Download at http://ftp.lip6.fr/
                   6878: " >&5
                   6879: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6880: Download at http://ftp.lip6.fr/
                   6881: " >&2;}
                   6882:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6883:    fi
                   6884: 
                   6885:    # Extract the first word of "gv", so it can be a program name with args.
                   6886: set dummy gv; ac_word=$2
                   6887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6888: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6889: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6890:   $as_echo_n "(cached) " >&6
                   6891: else
                   6892:   if test -n "$GV"; then
                   6893:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6894: else
                   6895: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6896: for as_dir in $PATH
                   6897: do
                   6898:   IFS=$as_save_IFS
                   6899:   test -z "$as_dir" && as_dir=.
                   6900:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6901:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6902:     ac_cv_prog_GV="yes"
                   6903:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6904:     break 2
                   6905:   fi
                   6906: done
1.14      bertrand 6907:   done
1.15      bertrand 6908: IFS=$as_save_IFS
1.1       bertrand 6909: 
1.15      bertrand 6910:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6911: fi
1.1       bertrand 6912: fi
1.15      bertrand 6913: GV=$ac_cv_prog_GV
                   6914: if test -n "$GV"; then
                   6915:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6916: $as_echo "$GV" >&6; }
                   6917: else
                   6918:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6919: $as_echo "no" >&6; }
1.1       bertrand 6920: fi
1.14      bertrand 6921: 
                   6922: 
1.15      bertrand 6923:    if test "$GV" = no; then
                   6924:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6925: Download at http://ftp.lip6.fr/
                   6926: " >&5
                   6927: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6928: Download at http://ftp.lip6.fr/
                   6929: " >&2;}
                   6930:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6931:    fi
1.1       bertrand 6932: else
1.15      bertrand 6933:    if test "$TEX_SUPPORT" = no; then
                   6934:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6935:    else
                   6936:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6937:    fi
1.1       bertrand 6938: fi
                   6939: 
1.15      bertrand 6940: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6941:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6942: set dummy gnuplot; ac_word=$2
                   6943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6944: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6945: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6946:   $as_echo_n "(cached) " >&6
1.14      bertrand 6947: else
1.15      bertrand 6948:   if test -n "$GNUPLOT_P"; then
                   6949:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6950: else
1.15      bertrand 6951: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6952: for as_dir in $PATH
                   6953: do
                   6954:   IFS=$as_save_IFS
                   6955:   test -z "$as_dir" && as_dir=.
                   6956:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6957:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6958:     ac_cv_prog_GNUPLOT_P="yes"
                   6959:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6960:     break 2
                   6961:   fi
                   6962: done
                   6963:   done
                   6964: IFS=$as_save_IFS
1.1       bertrand 6965: 
1.15      bertrand 6966:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6967: fi
                   6968: fi
1.15      bertrand 6969: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6970: if test -n "$GNUPLOT_P"; then
                   6971:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6972: $as_echo "$GNUPLOT_P" >&6; }
                   6973: else
                   6974:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6975: $as_echo "no" >&6; }
1.1       bertrand 6976: fi
                   6977: 
                   6978: 
1.15      bertrand 6979:    if test "$GNUPLOT_P" = no; then
                   6980:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6981: Download at http://www.gnuplot.vt.edu/
                   6982: " >&5
                   6983: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6984: Download at http://www.gnuplot.vt.edu/
                   6985: " >&2;}
                   6986:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6987:    else
                   6988:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6989:    fi
                   6990: else
                   6991:    if test "$GNUPLOT_SUPPORT" = no; then
                   6992:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6993:    else
                   6994:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6995:    fi
                   6996: fi
1.1       bertrand 6997: 
1.15      bertrand 6998: if test "$VIM_SUPPORT" = guessed; then
                   6999:    # Extract the first word of "vim", so it can be a program name with args.
                   7000: set dummy vim; ac_word=$2
                   7001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7002: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 7003: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 7004:   $as_echo_n "(cached) " >&6
1.1       bertrand 7005: else
1.15      bertrand 7006:   if test -n "$VIM"; then
                   7007:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 7008: else
1.15      bertrand 7009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7010: for as_dir in $PATH
                   7011: do
                   7012:   IFS=$as_save_IFS
                   7013:   test -z "$as_dir" && as_dir=.
                   7014:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7015:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7016:     ac_cv_prog_VIM="yes"
                   7017:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7018:     break 2
                   7019:   fi
                   7020: done
                   7021:   done
                   7022: IFS=$as_save_IFS
1.1       bertrand 7023: 
1.15      bertrand 7024:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 7025: fi
                   7026: fi
1.15      bertrand 7027: VIM=$ac_cv_prog_VIM
                   7028: if test -n "$VIM"; then
                   7029:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   7030: $as_echo "$VIM" >&6; }
1.1       bertrand 7031: else
1.15      bertrand 7032:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7033: $as_echo "no" >&6; }
                   7034: fi
1.1       bertrand 7035: 
                   7036: 
1.15      bertrand 7037:    if test "$VIM" = no; then
                   7038:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   7039: Download at http://www.vim.org/
                   7040: " >&5
                   7041: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   7042: Download at http://www.vim.org/
                   7043: " >&2;}
                   7044:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7045:    else
                   7046:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7047:    fi
1.1       bertrand 7048: else
1.15      bertrand 7049:    if test "$VIM_SUPPORT" = no; then
                   7050:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7051:    else
                   7052:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7053:    fi
1.1       bertrand 7054: fi
                   7055: 
1.14      bertrand 7056: 
                   7057: 
1.1       bertrand 7058: 
                   7059: 
1.15      bertrand 7060: 
                   7061: 
                   7062: 
                   7063: 
                   7064: 
                   7065: 
                   7066: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7067: 
                   7068: 
                   7069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7070: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7071: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7072:   $as_echo_n "(cached) " >&6
1.1       bertrand 7073: else
1.15      bertrand 7074:   ac_check_lib_save_LIBS=$LIBS
                   7075: LIBS="-lm  $LIBS"
                   7076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7077: /* end confdefs.h.  */
1.15      bertrand 7078: 
                   7079: 
1.1       bertrand 7080: int
                   7081: main ()
                   7082: {
1.15      bertrand 7083: return main ();
1.1       bertrand 7084:   ;
                   7085:   return 0;
                   7086: }
                   7087: _ACEOF
1.15      bertrand 7088: if ac_fn_c_try_link "$LINENO"; then :
                   7089:   ac_cv_lib_m_main=yes
1.1       bertrand 7090: else
1.15      bertrand 7091:   ac_cv_lib_m_main=no
                   7092: fi
                   7093: rm -f core conftest.err conftest.$ac_objext \
                   7094:     conftest$ac_exeext conftest.$ac_ext
                   7095: LIBS=$ac_check_lib_save_LIBS
                   7096: fi
                   7097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7098: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7099: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7100:   cat >>confdefs.h <<_ACEOF
                   7101: #define HAVE_LIBM 1
                   7102: _ACEOF
1.14      bertrand 7103: 
1.15      bertrand 7104:   LIBS="-lm $LIBS"
1.1       bertrand 7105: 
1.15      bertrand 7106: else
1.36      bertrand 7107:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7108: fi
                   7109: 
1.87      bertrand 7110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
                   7111: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
                   7112: if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
                   7113:   $as_echo_n "(cached) " >&6
                   7114: else
                   7115:   ac_check_lib_save_LIBS=$LIBS
                   7116: LIBS="-lc  $LIBS"
                   7117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7118: /* end confdefs.h.  */
                   7119: 
                   7120: /* Override any GCC internal prototype to avoid an error.
                   7121:    Use char because int might match the return type of a GCC
                   7122:    builtin and then its argument prototype would still apply.  */
                   7123: #ifdef __cplusplus
                   7124: extern "C"
                   7125: #endif
                   7126: char pthread_mutex_init ();
                   7127: int
                   7128: main ()
                   7129: {
                   7130: return pthread_mutex_init ();
                   7131:   ;
                   7132:   return 0;
                   7133: }
                   7134: _ACEOF
                   7135: if ac_fn_c_try_link "$LINENO"; then :
                   7136:   ac_cv_lib_c_pthread_mutex_init=yes
                   7137: else
                   7138:   ac_cv_lib_c_pthread_mutex_init=no
                   7139: fi
                   7140: rm -f core conftest.err conftest.$ac_objext \
                   7141:     conftest$ac_exeext conftest.$ac_ext
                   7142: LIBS=$ac_check_lib_save_LIBS
                   7143: fi
                   7144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
                   7145: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
                   7146: if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
                   7147:   cat >>confdefs.h <<_ACEOF
                   7148: #define HAVE_LIBC 1
                   7149: _ACEOF
                   7150: 
                   7151:   LIBS="-lc $LIBS"
                   7152: 
                   7153: else
                   7154:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15      bertrand 7155: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7156: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7157:   $as_echo_n "(cached) " >&6
1.1       bertrand 7158: else
1.15      bertrand 7159:   ac_check_lib_save_LIBS=$LIBS
                   7160: LIBS="-lpthread  $LIBS"
                   7161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7162: /* end confdefs.h.  */
1.15      bertrand 7163: 
                   7164: 
1.14      bertrand 7165: int
                   7166: main ()
                   7167: {
1.15      bertrand 7168: return main ();
1.14      bertrand 7169:   ;
                   7170:   return 0;
                   7171: }
                   7172: _ACEOF
1.15      bertrand 7173: if ac_fn_c_try_link "$LINENO"; then :
                   7174:   ac_cv_lib_pthread_main=yes
                   7175: else
                   7176:   ac_cv_lib_pthread_main=no
                   7177: fi
                   7178: rm -f core conftest.err conftest.$ac_objext \
                   7179:     conftest$ac_exeext conftest.$ac_ext
                   7180: LIBS=$ac_check_lib_save_LIBS
                   7181: fi
                   7182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7183: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7184: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7185:   cat >>confdefs.h <<_ACEOF
                   7186: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7187: _ACEOF
                   7188: 
1.15      bertrand 7189:   LIBS="-lpthread $LIBS"
                   7190: 
1.1       bertrand 7191: else
1.36      bertrand 7192:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7193: fi
1.14      bertrand 7194: 
1.87      bertrand 7195: fi
                   7196: 
1.1       bertrand 7197: 
1.33      bertrand 7198: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7199: #include <sys/sem.h>
                   7200: 
                   7201: "
1.57      bertrand 7202: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7203:   SEMUN=-DUNION_SEMUN
                   7204: else
                   7205:   SEMUN=-UUNION_SEMUN
                   7206: fi
                   7207: 
                   7208: 
1.34      bertrand 7209: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7210: #include <sys/types.h>
1.34      bertrand 7211: #include <netinet/in.h>
                   7212: 
                   7213: "
1.57      bertrand 7214: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7215:   IPV6=-DIPV6
                   7216: else
                   7217:   IPV6=-UIPV6
                   7218: fi
                   7219: 
                   7220: 
1.15      bertrand 7221: if test "$CYGWIN" != yes; then
                   7222:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7223: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7224: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7225:   $as_echo_n "(cached) " >&6
1.1       bertrand 7226: else
1.15      bertrand 7227:   ac_check_lib_save_LIBS=$LIBS
                   7228: LIBS="-ldl  $LIBS"
                   7229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7230: /* end confdefs.h.  */
                   7231: 
1.15      bertrand 7232: /* Override any GCC internal prototype to avoid an error.
                   7233:    Use char because int might match the return type of a GCC
                   7234:    builtin and then its argument prototype would still apply.  */
                   7235: #ifdef __cplusplus
                   7236: extern "C"
                   7237: #endif
                   7238: char dlopen ();
1.1       bertrand 7239: int
                   7240: main ()
                   7241: {
1.15      bertrand 7242: return dlopen ();
1.1       bertrand 7243:   ;
                   7244:   return 0;
                   7245: }
                   7246: _ACEOF
1.15      bertrand 7247: if ac_fn_c_try_link "$LINENO"; then :
                   7248:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7249: else
1.15      bertrand 7250:   ac_cv_lib_dl_dlopen=no
                   7251: fi
                   7252: rm -f core conftest.err conftest.$ac_objext \
                   7253:     conftest$ac_exeext conftest.$ac_ext
                   7254: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7255: fi
1.15      bertrand 7256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7257: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7258: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7259:   LIBS="$LIBS -ldl"
1.14      bertrand 7260: else
1.15      bertrand 7261:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7262: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7263: fi
                   7264: 
1.14      bertrand 7265: fi
1.1       bertrand 7266: 
1.15      bertrand 7267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7268: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7269: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7270:   $as_echo_n "(cached) " >&6
                   7271: else
                   7272:   ac_check_lib_save_LIBS=$LIBS
                   7273: LIBS="-lrt  $LIBS"
                   7274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7275: /* end confdefs.h.  */
1.15      bertrand 7276: 
                   7277: /* Override any GCC internal prototype to avoid an error.
                   7278:    Use char because int might match the return type of a GCC
                   7279:    builtin and then its argument prototype would still apply.  */
                   7280: #ifdef __cplusplus
                   7281: extern "C"
                   7282: #endif
                   7283: char nanosleep ();
1.1       bertrand 7284: int
                   7285: main ()
                   7286: {
1.15      bertrand 7287: return nanosleep ();
1.1       bertrand 7288:   ;
                   7289:   return 0;
                   7290: }
                   7291: _ACEOF
1.15      bertrand 7292: if ac_fn_c_try_link "$LINENO"; then :
                   7293:   ac_cv_lib_rt_nanosleep=yes
                   7294: else
                   7295:   ac_cv_lib_rt_nanosleep=no
                   7296: fi
                   7297: rm -f core conftest.err conftest.$ac_objext \
                   7298:     conftest$ac_exeext conftest.$ac_ext
                   7299: LIBS=$ac_check_lib_save_LIBS
                   7300: fi
                   7301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7302: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7303: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7304:   LIBS="$LIBS -lrt"
1.1       bertrand 7305: else
1.15      bertrand 7306:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7307: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7308: fi
1.1       bertrand 7309: 
                   7310: 
1.15      bertrand 7311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7312: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7313: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7314:   $as_echo_n "(cached) " >&6
1.1       bertrand 7315: else
1.15      bertrand 7316:   ac_check_lib_save_LIBS=$LIBS
                   7317: LIBS="-lsocket  $LIBS"
                   7318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7319: /* end confdefs.h.  */
1.15      bertrand 7320: 
                   7321: /* Override any GCC internal prototype to avoid an error.
                   7322:    Use char because int might match the return type of a GCC
                   7323:    builtin and then its argument prototype would still apply.  */
                   7324: #ifdef __cplusplus
                   7325: extern "C"
                   7326: #endif
                   7327: char bind ();
1.1       bertrand 7328: int
                   7329: main ()
                   7330: {
1.15      bertrand 7331: return bind ();
1.1       bertrand 7332:   ;
                   7333:   return 0;
                   7334: }
                   7335: _ACEOF
1.15      bertrand 7336: if ac_fn_c_try_link "$LINENO"; then :
                   7337:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7338: else
1.15      bertrand 7339:   ac_cv_lib_socket_bind=no
1.1       bertrand 7340: fi
1.15      bertrand 7341: rm -f core conftest.err conftest.$ac_objext \
                   7342:     conftest$ac_exeext conftest.$ac_ext
                   7343: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7344: fi
1.15      bertrand 7345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7346: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7347: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7348:   LIBS="$LIBS -lsocket"
                   7349: else
                   7350:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7351: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7352: fi
                   7353: 
                   7354: 
1.15      bertrand 7355: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7356: 
                   7357: # Check whether --with-mysql was given.
                   7358: if test "${with_mysql+set}" = set; then :
                   7359:   withval=$with_mysql;
                   7360: else
                   7361:   with_mysql=check
                   7362: fi
1.14      bertrand 7363: 
                   7364: 
1.15      bertrand 7365: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7366:    libMySQLinc="-I/usr/include"
1.30      bertrand 7367:    libMySQLlib="/usr/lib"
1.14      bertrand 7368: 
1.15      bertrand 7369:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7370: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7371:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7372:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7373:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7374: /* end confdefs.h.  */
1.15      bertrand 7375: #include "mysql.h"
1.1       bertrand 7376: int
                   7377: main ()
                   7378: {
1.15      bertrand 7379: 
1.1       bertrand 7380:   ;
                   7381:   return 0;
                   7382: }
                   7383: _ACEOF
1.15      bertrand 7384: if ac_fn_c_try_compile "$LINENO"; then :
                   7385:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7386: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7387:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7388: else
1.15      bertrand 7389:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7390: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7391: fi
1.14      bertrand 7392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7393:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7394: 
1.15      bertrand 7395:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7396:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7397: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7398:        saved_CFLAGS="$CFLAGS"
                   7399:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7400:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7401: /* end confdefs.h.  */
1.15      bertrand 7402: #include "mysql.h"
1.1       bertrand 7403: int
                   7404: main ()
                   7405: {
                   7406: 
                   7407:   ;
                   7408:   return 0;
                   7409: }
                   7410: _ACEOF
1.15      bertrand 7411: if ac_fn_c_try_compile "$LINENO"; then :
                   7412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7413: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7414:                        libMySQLinc=$libMySQLinc
                   7415: else
                   7416:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7417: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7418: fi
                   7419: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7420:        CFLAGS=$saved_CFLAGS
                   7421:        libMySQLinc=$libMySQLinc/mysql
                   7422:    fi
                   7423: 
                   7424:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7425:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7426: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7427:        saved_CFLAGS="$CFLAGS"
                   7428:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7429:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7430: /* end confdefs.h.  */
1.15      bertrand 7431: #include "mysql.h"
1.1       bertrand 7432: int
                   7433: main ()
                   7434: {
                   7435: 
                   7436:   ;
                   7437:   return 0;
                   7438: }
                   7439: _ACEOF
1.15      bertrand 7440: if ac_fn_c_try_compile "$LINENO"; then :
                   7441:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7442: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7443:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7444: else
1.15      bertrand 7445:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7446: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7447: fi
                   7448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7449:        CFLAGS=$saved_CFLAGS
                   7450:        libMySQLinc=$libMySQLinc/../local/include
                   7451:        libMySQLlib=$libMySQLlib/../local/lib
                   7452:    fi
1.1       bertrand 7453: 
1.15      bertrand 7454:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7455:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7456: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7457:        saved_CFLAGS="$CFLAGS"
                   7458:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7459:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7460: /* end confdefs.h.  */
1.15      bertrand 7461: #include "mysql.h"
1.1       bertrand 7462: int
                   7463: main ()
                   7464: {
                   7465: 
                   7466:   ;
                   7467:   return 0;
                   7468: }
                   7469: _ACEOF
1.15      bertrand 7470: if ac_fn_c_try_compile "$LINENO"; then :
                   7471:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7472: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7473:                        libMySQLinc=$libMySQLinc/mysql
                   7474: else
                   7475:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7476: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7477: fi
                   7478: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7479:        CFLAGS=$saved_CFLAGS
                   7480:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7481:        libMySQLlib=$libMySQLlib/../local/lib
                   7482:    fi
                   7483: else
                   7484:    if test "x$with_mysql" != xno; then
                   7485:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7486:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7487: 
                   7488:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7489: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7490:        saved_CFLAGS="$CFLAGS"
                   7491:        CFLAGS="$CFLAGS $libMySQLinc"
                   7492:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7493: /* end confdefs.h.  */
1.15      bertrand 7494: #include "mysql.h"
1.1       bertrand 7495: int
                   7496: main ()
                   7497: {
                   7498: 
                   7499:   ;
                   7500:   return 0;
                   7501: }
                   7502: _ACEOF
1.15      bertrand 7503: if ac_fn_c_try_compile "$LINENO"; then :
                   7504:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7505: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7506:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7507: else
1.15      bertrand 7508:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7509: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7510: fi
                   7511: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7512:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7513: 
1.15      bertrand 7514:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7515:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7516: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7517:            saved_CFLAGS="$CFLAGS"
                   7518:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7519:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7520: /* end confdefs.h.  */
1.15      bertrand 7521: #include "mysql.h"
1.1       bertrand 7522: int
                   7523: main ()
                   7524: {
                   7525: 
                   7526:   ;
                   7527:   return 0;
                   7528: }
                   7529: _ACEOF
1.15      bertrand 7530: if ac_fn_c_try_compile "$LINENO"; then :
                   7531:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7532: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7533:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7534: else
1.15      bertrand 7535:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7536: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7537: fi
                   7538: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7539:            CFLAGS=$saved_CFLAGS
                   7540:            libMySQLinc=$libMySQLinc/mysql
                   7541:        fi
                   7542:    else
                   7543:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7544:    fi
                   7545: fi
1.14      bertrand 7546: 
1.15      bertrand 7547: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7548:    MYSQL_LIB=no
1.14      bertrand 7549: 
1.15      bertrand 7550:    if test $MYSQL_LIB = no; then
                   7551:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7552: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7553:        saved_LIBS="$LIBS"
1.30      bertrand 7554:        if test $STATIC = no; then
                   7555:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7556:        else
                   7557:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7558:        fi
1.15      bertrand 7559:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7560: /* end confdefs.h.  */
1.15      bertrand 7561: #include "mysql.h"
1.1       bertrand 7562: int
                   7563: main ()
                   7564: {
1.15      bertrand 7565: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7566:   ;
                   7567:   return 0;
                   7568: }
                   7569: _ACEOF
1.15      bertrand 7570: if ac_fn_c_try_link "$LINENO"; then :
                   7571:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7572: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7573: else
1.15      bertrand 7574:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7575: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7576: fi
                   7577: rm -f core conftest.err conftest.$ac_objext \
                   7578:     conftest$ac_exeext conftest.$ac_ext
                   7579:        LIBS=$saved_LIBS;
1.30      bertrand 7580:        if test $STATIC = no; then
                   7581:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7582:        else
                   7583:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7584:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7585:        fi
1.15      bertrand 7586:    fi
1.14      bertrand 7587: 
1.15      bertrand 7588:    if test $MYSQL_LIB = no; then
                   7589:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7590:    fi
1.14      bertrand 7591: fi
1.15      bertrand 7592: 
                   7593: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7594:    libMySQLinc=
                   7595:    libMySQLlib=
1.1       bertrand 7596: fi
1.14      bertrand 7597: 
                   7598: 
                   7599: 
1.1       bertrand 7600: 
                   7601: 
1.15      bertrand 7602: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7603: 
                   7604: # Check whether --with-postgresql was given.
                   7605: if test "${with_postgresql+set}" = set; then :
                   7606:   withval=$with_postgresql;
1.14      bertrand 7607: else
1.15      bertrand 7608:   with_postgresql=check
                   7609: fi
                   7610: 
                   7611: 
                   7612: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7613: # no [--without], valeur [--with=valeur].
                   7614: 
                   7615: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7616:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7617:    libPgSQLlib="/usr/lib"
1.15      bertrand 7618: 
                   7619:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7620: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7621:    saved_CFLAGS="$CFLAGS"
                   7622:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7623:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7624: /* end confdefs.h.  */
1.15      bertrand 7625: #include "libpq-fe.h"
1.1       bertrand 7626: int
                   7627: main ()
                   7628: {
1.15      bertrand 7629: 
1.1       bertrand 7630:   ;
                   7631:   return 0;
                   7632: }
                   7633: _ACEOF
1.15      bertrand 7634: if ac_fn_c_try_compile "$LINENO"; then :
                   7635:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7636: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7637: else
1.15      bertrand 7638:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7639: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7640: fi
1.14      bertrand 7641: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7642:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7643: 
1.15      bertrand 7644:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7645:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7646: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7647:        saved_CFLAGS="$CFLAGS"
                   7648:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7649:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7650: /* end confdefs.h.  */
1.15      bertrand 7651: #include "libpq-fe.h"
1.1       bertrand 7652: int
                   7653: main ()
                   7654: {
                   7655: 
                   7656:   ;
                   7657:   return 0;
                   7658: }
                   7659: _ACEOF
1.15      bertrand 7660: if ac_fn_c_try_compile "$LINENO"; then :
                   7661:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7662: $as_echo "yes" >&6; };
                   7663:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7664: else
                   7665:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7666: $as_echo "no" >&6; };
                   7667:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7668: fi
                   7669: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7670:        CFLAGS=$saved_CFLAGS
                   7671:        libPgSQLinc=$libPgSQLinc/postgresql
                   7672:    fi
                   7673: 
                   7674:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7675:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7676: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7677:        saved_CFLAGS="$CFLAGS"
                   7678:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7679:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7680: /* end confdefs.h.  */
1.15      bertrand 7681: #include "libpq-fe.h"
1.1       bertrand 7682: int
                   7683: main ()
                   7684: {
                   7685: 
                   7686:   ;
                   7687:   return 0;
                   7688: }
                   7689: _ACEOF
1.15      bertrand 7690: if ac_fn_c_try_compile "$LINENO"; then :
                   7691:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7692: $as_echo "yes" >&6; };
                   7693:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7694: else
1.15      bertrand 7695:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7696: $as_echo "no" >&6; };
                   7697:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7698: fi
                   7699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7700:        CFLAGS=$saved_CFLAGS
                   7701:        libPgSQLinc=$libPgSQLinc/pgsql
                   7702:    fi
1.1       bertrand 7703: 
1.15      bertrand 7704:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7705:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7706: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7707:        saved_CFLAGS="$CFLAGS"
                   7708:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7709:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7710: /* end confdefs.h.  */
1.15      bertrand 7711: #include "libpq-fe.h"
1.1       bertrand 7712: int
                   7713: main ()
                   7714: {
                   7715: 
                   7716:   ;
                   7717:   return 0;
                   7718: }
                   7719: _ACEOF
1.15      bertrand 7720: if ac_fn_c_try_compile "$LINENO"; then :
                   7721:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7722: $as_echo "yes" >&6; };
                   7723:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7724: else
                   7725:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7726: $as_echo "no" >&6; };
                   7727:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7728: fi
                   7729: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7730:        CFLAGS=$saved_CFLAGS
                   7731:        libPgSQLinc=$libPgSQLinc/../local/include
                   7732:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7733:    fi
                   7734: 
                   7735:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7736:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7737: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7738:        saved_CFLAGS="$CFLAGS"
                   7739:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7740:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7741: /* end confdefs.h.  */
1.15      bertrand 7742: #include "libpq-fe.h"
1.1       bertrand 7743: int
                   7744: main ()
                   7745: {
                   7746: 
                   7747:   ;
                   7748:   return 0;
                   7749: }
                   7750: _ACEOF
1.15      bertrand 7751: if ac_fn_c_try_compile "$LINENO"; then :
                   7752:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7753: $as_echo "yes" >&6; };
                   7754:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7755: else
1.15      bertrand 7756:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7757: $as_echo "no" >&6; };
                   7758:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7759: fi
                   7760: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7761:        CFLAGS=$saved_CFLAGS
                   7762:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7763:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7764:    fi
1.14      bertrand 7765: 
1.15      bertrand 7766:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7767:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7768: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7769:        saved_CFLAGS="$CFLAGS"
                   7770:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7771:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7772: /* end confdefs.h.  */
1.15      bertrand 7773: #include "libpq-fe.h"
1.1       bertrand 7774: int
                   7775: main ()
                   7776: {
                   7777: 
                   7778:   ;
                   7779:   return 0;
                   7780: }
                   7781: _ACEOF
1.15      bertrand 7782: if ac_fn_c_try_compile "$LINENO"; then :
                   7783:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7784: $as_echo "yes" >&6; };
                   7785:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7786: else
1.15      bertrand 7787:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7788: $as_echo "no" >&6; };
                   7789:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7790: fi
                   7791: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7792:        CFLAGS=$saved_CFLAGS
                   7793:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7794:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7795:    fi
1.14      bertrand 7796: else
1.15      bertrand 7797:    if test "x$with_postgresql" != xno; then
                   7798:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7799:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7800: 
                   7801:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7802: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7803:        saved_CFLAGS="$CFLAGS"
                   7804:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7805:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7806: /* end confdefs.h.  */
1.15      bertrand 7807: #include "libpq-fe.h"
1.1       bertrand 7808: int
                   7809: main ()
                   7810: {
                   7811: 
                   7812:   ;
                   7813:   return 0;
                   7814: }
                   7815: _ACEOF
1.15      bertrand 7816: if ac_fn_c_try_compile "$LINENO"; then :
                   7817:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7818: $as_echo "yes" >&6; };
                   7819:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7820: else
1.15      bertrand 7821:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7822: $as_echo "no" >&6; };
                   7823:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7824: fi
1.15      bertrand 7825: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7826:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7827: 
1.15      bertrand 7828:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7829:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7830: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7831:            saved_CFLAGS="$CFLAGS"
                   7832:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7833:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7834: /* end confdefs.h.  */
1.15      bertrand 7835: #include "libpq-fe.h"
1.1       bertrand 7836: int
                   7837: main ()
                   7838: {
1.15      bertrand 7839: 
1.1       bertrand 7840:   ;
                   7841:   return 0;
                   7842: }
                   7843: _ACEOF
1.15      bertrand 7844: if ac_fn_c_try_compile "$LINENO"; then :
                   7845:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7846: $as_echo "yes" >&6; };
                   7847:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7848: else
1.15      bertrand 7849:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7850: $as_echo "no" >&6; };
                   7851:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7852: fi
                   7853: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7854:            CFLAGS=$saved_CFLAGS
                   7855:            libPgSQLinc=$libPgSQLinc/postgresql
                   7856:        fi
1.14      bertrand 7857: 
1.15      bertrand 7858:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7859:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7860: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7861:            saved_CFLAGS="$CFLAGS"
                   7862:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7863:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7864: /* end confdefs.h.  */
1.15      bertrand 7865: #include "libpq-fe.h"
1.1       bertrand 7866: int
                   7867: main ()
                   7868: {
1.15      bertrand 7869: 
1.1       bertrand 7870:   ;
                   7871:   return 0;
                   7872: }
                   7873: _ACEOF
1.15      bertrand 7874: if ac_fn_c_try_compile "$LINENO"; then :
                   7875:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7876: $as_echo "yes" >&6; };
                   7877:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7878: else
1.15      bertrand 7879:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7880: $as_echo "no" >&6; };
                   7881:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7882: fi
1.15      bertrand 7883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7884:            CFLAGS=$saved_CFLAGS
                   7885:            libPgSQLinc=$libPgSQLinc/pgsql
                   7886:        fi
                   7887:    else
                   7888:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7889:    fi
1.1       bertrand 7890: fi
                   7891: 
1.15      bertrand 7892: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7893:    POSTGRESQL_LIB=no
1.1       bertrand 7894: 
1.15      bertrand 7895:    if test $POSTGRESQL_LIB = no; then
                   7896:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7897: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7898:        saved_LIBS="$LIBS"
1.30      bertrand 7899:        if test $STATIC = no; then
                   7900:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7901:        else
                   7902:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7903:        fi
1.15      bertrand 7904:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7905: /* end confdefs.h.  */
1.15      bertrand 7906: #include "libpq-fe.h"
1.1       bertrand 7907: int
                   7908: main ()
                   7909: {
1.15      bertrand 7910: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7911:             PQconnectdb(conninfo);
1.1       bertrand 7912:   ;
                   7913:   return 0;
                   7914: }
                   7915: _ACEOF
1.15      bertrand 7916: if ac_fn_c_try_link "$LINENO"; then :
                   7917:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7918: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7919: else
1.15      bertrand 7920:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7921: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7922: fi
                   7923: rm -f core conftest.err conftest.$ac_objext \
                   7924:     conftest$ac_exeext conftest.$ac_ext
                   7925:        LIBS=$saved_LIBS;
1.30      bertrand 7926:        if test $STATIC = no; then
                   7927:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7928:        else
                   7929:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7930:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7931:        fi
1.15      bertrand 7932:    fi
                   7933: fi
                   7934: 
                   7935: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7936:    libPgSQLinc=
                   7937:    libPgSQLlib=
                   7938: fi
                   7939: 
                   7940: 
                   7941: 
                   7942: 
1.14      bertrand 7943: 
1.40      bertrand 7944: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7945: # no [--without], valeur [--with=valeur].
                   7946: 
                   7947: # Check whether --with-bourne_shell was given.
                   7948: if test "${with_bourne_shell+set}" = set; then :
                   7949:   withval=$with_bourne_shell;
                   7950: else
                   7951:   with_bourne_shell=no
                   7952: fi
                   7953: 
                   7954: 
                   7955: if test "x$with_bourne_shell" = xyes; then
                   7956:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7957: fi
                   7958: 
                   7959: if test "x$with_bourne_shell" = xno; then
                   7960:    if test $(uname) = "OS/2"; then
1.86      bertrand 7961:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
                   7962: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40      bertrand 7963:    fi
                   7964: 
                   7965:    BSH_PATH=
                   7966: else
                   7967:    if test ! -x $with_bourne_shell; then
                   7968:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7969:    fi
                   7970: 
                   7971:    if test $(uname) = "OS/2"; then
1.41      bertrand 7972:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7973:                sed -e '1,$s/\//\\\\\\\\/g')
                   7974:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7975:    else
                   7976:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7977: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7978:        BSH_PATH=
                   7979:    fi
                   7980: fi
                   7981: 
1.15      bertrand 7982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7983: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7984: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7985:   $as_echo_n "(cached) " >&6
                   7986: else
                   7987:   if test -z "$GREP"; then
                   7988:   ac_path_GREP_found=false
                   7989:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7990:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7991: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7992: do
                   7993:   IFS=$as_save_IFS
                   7994:   test -z "$as_dir" && as_dir=.
                   7995:     for ac_prog in grep ggrep; do
                   7996:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7997:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7998:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7999: # Check for GNU ac_path_GREP and select it if it is found.
                   8000:   # Check for GNU $ac_path_GREP
                   8001: case `"$ac_path_GREP" --version 2>&1` in
                   8002: *GNU*)
                   8003:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   8004: *)
                   8005:   ac_count=0
                   8006:   $as_echo_n 0123456789 >"conftest.in"
                   8007:   while :
                   8008:   do
                   8009:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8010:     mv "conftest.tmp" "conftest.in"
                   8011:     cp "conftest.in" "conftest.nl"
                   8012:     $as_echo 'GREP' >> "conftest.nl"
                   8013:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8014:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8015:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8016:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   8017:       # Best one so far, save it but keep looking for a better one
                   8018:       ac_cv_path_GREP="$ac_path_GREP"
                   8019:       ac_path_GREP_max=$ac_count
                   8020:     fi
                   8021:     # 10*(2^10) chars as input seems more than enough
                   8022:     test $ac_count -gt 10 && break
                   8023:   done
                   8024:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8025: esac
1.14      bertrand 8026: 
1.15      bertrand 8027:       $ac_path_GREP_found && break 3
                   8028:     done
                   8029:   done
                   8030:   done
                   8031: IFS=$as_save_IFS
                   8032:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 8033:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8034:   fi
                   8035: else
                   8036:   ac_cv_path_GREP=$GREP
1.1       bertrand 8037: fi
                   8038: 
                   8039: fi
1.15      bertrand 8040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   8041: $as_echo "$ac_cv_path_GREP" >&6; }
                   8042:  GREP="$ac_cv_path_GREP"
                   8043: 
                   8044: 
                   8045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   8046: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 8047: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 8048:   $as_echo_n "(cached) " >&6
                   8049: else
                   8050:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   8051:    then ac_cv_path_EGREP="$GREP -E"
                   8052:    else
                   8053:      if test -z "$EGREP"; then
                   8054:   ac_path_EGREP_found=false
                   8055:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8056:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8057: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8058: do
                   8059:   IFS=$as_save_IFS
                   8060:   test -z "$as_dir" && as_dir=.
                   8061:     for ac_prog in egrep; do
                   8062:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8063:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8064:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8065: # Check for GNU ac_path_EGREP and select it if it is found.
                   8066:   # Check for GNU $ac_path_EGREP
                   8067: case `"$ac_path_EGREP" --version 2>&1` in
                   8068: *GNU*)
                   8069:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8070: *)
                   8071:   ac_count=0
                   8072:   $as_echo_n 0123456789 >"conftest.in"
                   8073:   while :
                   8074:   do
                   8075:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8076:     mv "conftest.tmp" "conftest.in"
                   8077:     cp "conftest.in" "conftest.nl"
                   8078:     $as_echo 'EGREP' >> "conftest.nl"
                   8079:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8080:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8081:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8082:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8083:       # Best one so far, save it but keep looking for a better one
                   8084:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8085:       ac_path_EGREP_max=$ac_count
                   8086:     fi
                   8087:     # 10*(2^10) chars as input seems more than enough
                   8088:     test $ac_count -gt 10 && break
                   8089:   done
                   8090:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8091: esac
                   8092: 
                   8093:       $ac_path_EGREP_found && break 3
                   8094:     done
                   8095:   done
                   8096:   done
                   8097: IFS=$as_save_IFS
                   8098:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8099:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8100:   fi
1.1       bertrand 8101: else
1.15      bertrand 8102:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8103: fi
                   8104: 
1.15      bertrand 8105:    fi
1.1       bertrand 8106: fi
1.15      bertrand 8107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8108: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8109:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8110: 
                   8111: 
1.15      bertrand 8112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8113: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8114: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8115:   $as_echo_n "(cached) " >&6
1.1       bertrand 8116: else
1.15      bertrand 8117:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8118: /* end confdefs.h.  */
                   8119: #include <stdlib.h>
                   8120: #include <stdarg.h>
                   8121: #include <string.h>
                   8122: #include <float.h>
                   8123: 
                   8124: int
                   8125: main ()
                   8126: {
                   8127: 
                   8128:   ;
                   8129:   return 0;
                   8130: }
                   8131: _ACEOF
1.15      bertrand 8132: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8133:   ac_cv_header_stdc=yes
                   8134: else
1.15      bertrand 8135:   ac_cv_header_stdc=no
1.1       bertrand 8136: fi
                   8137: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8138: 
                   8139: if test $ac_cv_header_stdc = yes; then
                   8140:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8141:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8142: /* end confdefs.h.  */
                   8143: #include <string.h>
                   8144: 
                   8145: _ACEOF
                   8146: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8147:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8148: 
1.1       bertrand 8149: else
                   8150:   ac_cv_header_stdc=no
                   8151: fi
                   8152: rm -f conftest*
                   8153: 
                   8154: fi
                   8155: 
                   8156: if test $ac_cv_header_stdc = yes; then
                   8157:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8158:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8159: /* end confdefs.h.  */
                   8160: #include <stdlib.h>
                   8161: 
                   8162: _ACEOF
                   8163: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8164:   $EGREP "free" >/dev/null 2>&1; then :
                   8165: 
1.1       bertrand 8166: else
                   8167:   ac_cv_header_stdc=no
                   8168: fi
                   8169: rm -f conftest*
                   8170: 
                   8171: fi
                   8172: 
                   8173: if test $ac_cv_header_stdc = yes; then
                   8174:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8175:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8176:   :
                   8177: else
1.15      bertrand 8178:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8179: /* end confdefs.h.  */
                   8180: #include <ctype.h>
                   8181: #include <stdlib.h>
                   8182: #if ((' ' & 0x0FF) == 0x020)
                   8183: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8184: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8185: #else
                   8186: # define ISLOWER(c) \
                   8187:           (('a' <= (c) && (c) <= 'i') \
                   8188:             || ('j' <= (c) && (c) <= 'r') \
                   8189:             || ('s' <= (c) && (c) <= 'z'))
                   8190: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8191: #endif
                   8192: 
                   8193: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8194: int
                   8195: main ()
                   8196: {
                   8197:   int i;
                   8198:   for (i = 0; i < 256; i++)
                   8199:     if (XOR (islower (i), ISLOWER (i))
                   8200:    || toupper (i) != TOUPPER (i))
                   8201:       return 2;
                   8202:   return 0;
                   8203: }
                   8204: _ACEOF
1.15      bertrand 8205: if ac_fn_c_try_run "$LINENO"; then :
                   8206: 
1.14      bertrand 8207: else
1.15      bertrand 8208:   ac_cv_header_stdc=no
                   8209: fi
                   8210: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8211:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8212: fi
1.1       bertrand 8213: 
                   8214: fi
                   8215: fi
1.15      bertrand 8216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8217: $as_echo "$ac_cv_header_stdc" >&6; }
                   8218: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8219: 
1.15      bertrand 8220: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8221: 
1.1       bertrand 8222: fi
                   8223: 
1.15      bertrand 8224: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8225: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8226:          inttypes.h stdint.h unistd.h
                   8227: do :
                   8228:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8229: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8230: "
1.36      bertrand 8231: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8232:   cat >>confdefs.h <<_ACEOF
                   8233: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8234: _ACEOF
1.1       bertrand 8235: 
                   8236: fi
                   8237: 
1.15      bertrand 8238: done
                   8239: 
                   8240: 
                   8241: # The cast to long int works around a bug in the HP C Compiler
                   8242: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8243: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8244: # This bug is HP SR number 8606223364.
                   8245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8246: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8247: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8248:   $as_echo_n "(cached) " >&6
                   8249: else
                   8250:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8251: 
                   8252: else
1.15      bertrand 8253:   if test "$ac_cv_type_void_p" = yes; then
                   8254:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8255: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8256: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8257: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8258:    else
                   8259:      ac_cv_sizeof_void_p=0
                   8260:    fi
                   8261: fi
1.1       bertrand 8262: 
                   8263: fi
1.15      bertrand 8264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8265: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8266: 
1.1       bertrand 8267: 
                   8268: 
1.15      bertrand 8269: cat >>confdefs.h <<_ACEOF
                   8270: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8271: _ACEOF
1.1       bertrand 8272: 
1.15      bertrand 8273: 
                   8274: # The cast to long int works around a bug in the HP C Compiler
                   8275: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8276: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8277: # This bug is HP SR number 8606223364.
                   8278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8279: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8280: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8281:   $as_echo_n "(cached) " >&6
                   8282: else
                   8283:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8284: 
                   8285: else
                   8286:   if test "$ac_cv_type_char" = yes; then
                   8287:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8288: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8289: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8290: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8291:    else
                   8292:      ac_cv_sizeof_char=0
                   8293:    fi
                   8294: fi
                   8295: 
1.1       bertrand 8296: fi
1.15      bertrand 8297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8298: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8299: 
                   8300: 
                   8301: 
1.15      bertrand 8302: cat >>confdefs.h <<_ACEOF
                   8303: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8304: _ACEOF
1.1       bertrand 8305: 
                   8306: 
1.15      bertrand 8307: # The cast to long int works around a bug in the HP C Compiler
                   8308: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8309: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8310: # This bug is HP SR number 8606223364.
                   8311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8312: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8313: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8314:   $as_echo_n "(cached) " >&6
                   8315: else
                   8316:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8317: 
1.15      bertrand 8318: else
                   8319:   if test "$ac_cv_type_short_int" = yes; then
                   8320:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8321: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8322: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8323: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8324:    else
                   8325:      ac_cv_sizeof_short_int=0
                   8326:    fi
                   8327: fi
1.1       bertrand 8328: 
1.15      bertrand 8329: fi
                   8330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8331: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8332: 
                   8333: 
                   8334: 
1.15      bertrand 8335: cat >>confdefs.h <<_ACEOF
                   8336: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8337: _ACEOF
1.1       bertrand 8338: 
                   8339: 
1.15      bertrand 8340: # The cast to long int works around a bug in the HP C Compiler
                   8341: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8342: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8343: # This bug is HP SR number 8606223364.
                   8344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8345: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8346: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8347:   $as_echo_n "(cached) " >&6
                   8348: else
                   8349:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8350: 
1.15      bertrand 8351: else
                   8352:   if test "$ac_cv_type_int" = yes; then
                   8353:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8354: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8355: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8356: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8357:    else
                   8358:      ac_cv_sizeof_int=0
                   8359:    fi
                   8360: fi
1.1       bertrand 8361: 
1.15      bertrand 8362: fi
                   8363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8364: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8365: 
                   8366: 
                   8367: 
1.15      bertrand 8368: cat >>confdefs.h <<_ACEOF
                   8369: #define SIZEOF_INT $ac_cv_sizeof_int
                   8370: _ACEOF
1.1       bertrand 8371: 
                   8372: 
1.15      bertrand 8373: # The cast to long int works around a bug in the HP C Compiler
                   8374: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8375: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8376: # This bug is HP SR number 8606223364.
                   8377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8378: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8379: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8380:   $as_echo_n "(cached) " >&6
                   8381: else
                   8382:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8383: 
1.14      bertrand 8384: else
1.15      bertrand 8385:   if test "$ac_cv_type_long_int" = yes; then
                   8386:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8387: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8388: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8389: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8390:    else
                   8391:      ac_cv_sizeof_long_int=0
                   8392:    fi
                   8393: fi
1.1       bertrand 8394: 
                   8395: fi
1.15      bertrand 8396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8397: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8398: 
1.1       bertrand 8399: 
                   8400: 
1.15      bertrand 8401: cat >>confdefs.h <<_ACEOF
                   8402: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8403: _ACEOF
1.15      bertrand 8404: 
                   8405: 
                   8406: # The cast to long int works around a bug in the HP C Compiler
                   8407: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8408: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8409: # This bug is HP SR number 8606223364.
                   8410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8411: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8412: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8413:   $as_echo_n "(cached) " >&6
                   8414: else
                   8415:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8416: 
1.14      bertrand 8417: else
1.15      bertrand 8418:   if test "$ac_cv_type_long_long_int" = yes; then
                   8419:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8420: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8421: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8422: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8423:    else
                   8424:      ac_cv_sizeof_long_long_int=0
                   8425:    fi
                   8426: fi
1.1       bertrand 8427: 
1.14      bertrand 8428: fi
1.15      bertrand 8429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8430: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8431: 
                   8432: 
                   8433: 
                   8434: cat >>confdefs.h <<_ACEOF
                   8435: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8436: _ACEOF
1.1       bertrand 8437: 
                   8438: 
1.15      bertrand 8439: # The cast to long int works around a bug in the HP C Compiler
                   8440: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8441: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8442: # This bug is HP SR number 8606223364.
                   8443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8444: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8445: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8446:   $as_echo_n "(cached) " >&6
                   8447: else
                   8448:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8449: 
                   8450: else
1.15      bertrand 8451:   if test "$ac_cv_type_float" = yes; then
                   8452:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8453: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8454: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8455: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8456:    else
                   8457:      ac_cv_sizeof_float=0
                   8458:    fi
1.14      bertrand 8459: fi
                   8460: 
1.1       bertrand 8461: fi
1.15      bertrand 8462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8463: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8464: 
                   8465: 
                   8466: 
                   8467: cat >>confdefs.h <<_ACEOF
                   8468: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8469: _ACEOF
1.1       bertrand 8470: 
                   8471: 
1.15      bertrand 8472: # The cast to long int works around a bug in the HP C Compiler
                   8473: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8474: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8475: # This bug is HP SR number 8606223364.
                   8476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8477: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8478: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8479:   $as_echo_n "(cached) " >&6
                   8480: else
                   8481:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8482: 
1.15      bertrand 8483: else
                   8484:   if test "$ac_cv_type_double" = yes; then
                   8485:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8486: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8487: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8488: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8489:    else
                   8490:      ac_cv_sizeof_double=0
                   8491:    fi
                   8492: fi
1.1       bertrand 8493: 
1.15      bertrand 8494: fi
                   8495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8496: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8497: 
1.1       bertrand 8498: 
                   8499: 
1.15      bertrand 8500: cat >>confdefs.h <<_ACEOF
                   8501: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8502: _ACEOF
1.15      bertrand 8503: 
                   8504: 
                   8505: # The cast to long int works around a bug in the HP C Compiler
                   8506: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8507: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8508: # This bug is HP SR number 8606223364.
                   8509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8510: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8511: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8512:   $as_echo_n "(cached) " >&6
                   8513: else
                   8514:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8515: 
1.14      bertrand 8516: else
1.15      bertrand 8517:   if test "$ac_cv_type_long_double" = yes; then
                   8518:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8519: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8520: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8521: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8522:    else
                   8523:      ac_cv_sizeof_long_double=0
                   8524:    fi
                   8525: fi
1.1       bertrand 8526: 
                   8527: fi
1.15      bertrand 8528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8529: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8530: 
1.1       bertrand 8531: 
                   8532: 
1.15      bertrand 8533: cat >>confdefs.h <<_ACEOF
                   8534: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8535: _ACEOF
                   8536: 
                   8537: 
1.15      bertrand 8538: 
                   8539: ac_header_dirent=no
                   8540: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8541:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8543: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8544: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8545:   $as_echo_n "(cached) " >&6
1.1       bertrand 8546: else
1.15      bertrand 8547:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8548: /* end confdefs.h.  */
                   8549: #include <sys/types.h>
1.15      bertrand 8550: #include <$ac_hdr>
1.1       bertrand 8551: 
1.15      bertrand 8552: int
                   8553: main ()
                   8554: {
                   8555: if ((DIR *) 0)
                   8556: return 0;
                   8557:   ;
                   8558:   return 0;
                   8559: }
1.1       bertrand 8560: _ACEOF
1.15      bertrand 8561: if ac_fn_c_try_compile "$LINENO"; then :
                   8562:   eval "$as_ac_Header=yes"
1.1       bertrand 8563: else
1.15      bertrand 8564:   eval "$as_ac_Header=no"
                   8565: fi
                   8566: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8567: fi
1.15      bertrand 8568: eval ac_res=\$$as_ac_Header
                   8569:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8570: $as_echo "$ac_res" >&6; }
1.36      bertrand 8571: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8572:   cat >>confdefs.h <<_ACEOF
                   8573: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8574: _ACEOF
1.1       bertrand 8575: 
1.15      bertrand 8576: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8577: fi
                   8578: 
1.15      bertrand 8579: done
                   8580: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8581: if test $ac_header_dirent = dirent.h; then
                   8582:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8583: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8584: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8585:   $as_echo_n "(cached) " >&6
                   8586: else
                   8587:   ac_func_search_save_LIBS=$LIBS
                   8588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8589: /* end confdefs.h.  */
                   8590: 
                   8591: /* Override any GCC internal prototype to avoid an error.
                   8592:    Use char because int might match the return type of a GCC
                   8593:    builtin and then its argument prototype would still apply.  */
                   8594: #ifdef __cplusplus
                   8595: extern "C"
                   8596: #endif
                   8597: char opendir ();
                   8598: int
                   8599: main ()
                   8600: {
                   8601: return opendir ();
                   8602:   ;
                   8603:   return 0;
                   8604: }
1.14      bertrand 8605: _ACEOF
1.15      bertrand 8606: for ac_lib in '' dir; do
                   8607:   if test -z "$ac_lib"; then
                   8608:     ac_res="none required"
                   8609:   else
                   8610:     ac_res=-l$ac_lib
                   8611:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8612:   fi
                   8613:   if ac_fn_c_try_link "$LINENO"; then :
                   8614:   ac_cv_search_opendir=$ac_res
                   8615: fi
                   8616: rm -f core conftest.err conftest.$ac_objext \
                   8617:     conftest$ac_exeext
1.57      bertrand 8618:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8619:   break
                   8620: fi
                   8621: done
1.57      bertrand 8622: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8623: 
1.15      bertrand 8624: else
                   8625:   ac_cv_search_opendir=no
                   8626: fi
                   8627: rm conftest.$ac_ext
                   8628: LIBS=$ac_func_search_save_LIBS
                   8629: fi
                   8630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8631: $as_echo "$ac_cv_search_opendir" >&6; }
                   8632: ac_res=$ac_cv_search_opendir
                   8633: if test "$ac_res" != no; then :
                   8634:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8635: 
1.14      bertrand 8636: fi
1.1       bertrand 8637: 
                   8638: else
1.15      bertrand 8639:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8640: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8641: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8642:   $as_echo_n "(cached) " >&6
                   8643: else
                   8644:   ac_func_search_save_LIBS=$LIBS
                   8645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8646: /* end confdefs.h.  */
1.15      bertrand 8647: 
                   8648: /* Override any GCC internal prototype to avoid an error.
                   8649:    Use char because int might match the return type of a GCC
                   8650:    builtin and then its argument prototype would still apply.  */
                   8651: #ifdef __cplusplus
                   8652: extern "C"
                   8653: #endif
                   8654: char opendir ();
1.1       bertrand 8655: int
                   8656: main ()
                   8657: {
1.15      bertrand 8658: return opendir ();
1.1       bertrand 8659:   ;
                   8660:   return 0;
                   8661: }
                   8662: _ACEOF
1.15      bertrand 8663: for ac_lib in '' x; do
                   8664:   if test -z "$ac_lib"; then
                   8665:     ac_res="none required"
                   8666:   else
                   8667:     ac_res=-l$ac_lib
                   8668:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8669:   fi
                   8670:   if ac_fn_c_try_link "$LINENO"; then :
                   8671:   ac_cv_search_opendir=$ac_res
                   8672: fi
                   8673: rm -f core conftest.err conftest.$ac_objext \
                   8674:     conftest$ac_exeext
1.57      bertrand 8675:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8676:   break
                   8677: fi
                   8678: done
1.57      bertrand 8679: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8680: 
1.1       bertrand 8681: else
1.15      bertrand 8682:   ac_cv_search_opendir=no
                   8683: fi
                   8684: rm conftest.$ac_ext
                   8685: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8686: fi
1.15      bertrand 8687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8688: $as_echo "$ac_cv_search_opendir" >&6; }
                   8689: ac_res=$ac_cv_search_opendir
                   8690: if test "$ac_res" != no; then :
                   8691:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8692: 
1.1       bertrand 8693: fi
                   8694: 
                   8695: fi
                   8696: 
1.15      bertrand 8697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8698: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8699: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8700:   $as_echo_n "(cached) " >&6
1.1       bertrand 8701: else
1.15      bertrand 8702:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8703: /* end confdefs.h.  */
1.15      bertrand 8704: #include <stdlib.h>
                   8705: #include <stdarg.h>
                   8706: #include <string.h>
                   8707: #include <float.h>
                   8708: 
1.1       bertrand 8709: int
                   8710: main ()
                   8711: {
1.15      bertrand 8712: 
1.1       bertrand 8713:   ;
                   8714:   return 0;
                   8715: }
                   8716: _ACEOF
1.15      bertrand 8717: if ac_fn_c_try_compile "$LINENO"; then :
                   8718:   ac_cv_header_stdc=yes
1.14      bertrand 8719: else
1.15      bertrand 8720:   ac_cv_header_stdc=no
                   8721: fi
                   8722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8723: 
                   8724: if test $ac_cv_header_stdc = yes; then
                   8725:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8726:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8727: /* end confdefs.h.  */
                   8728: #include <string.h>
                   8729: 
                   8730: _ACEOF
                   8731: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8732:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8733: 
1.15      bertrand 8734: else
                   8735:   ac_cv_header_stdc=no
1.1       bertrand 8736: fi
1.15      bertrand 8737: rm -f conftest*
1.14      bertrand 8738: 
1.1       bertrand 8739: fi
                   8740: 
1.15      bertrand 8741: if test $ac_cv_header_stdc = yes; then
                   8742:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8743:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8744: /* end confdefs.h.  */
                   8745: #include <stdlib.h>
                   8746: 
1.14      bertrand 8747: _ACEOF
1.15      bertrand 8748: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8749:   $EGREP "free" >/dev/null 2>&1; then :
                   8750: 
                   8751: else
                   8752:   ac_cv_header_stdc=no
                   8753: fi
                   8754: rm -f conftest*
1.1       bertrand 8755: 
                   8756: fi
                   8757: 
1.15      bertrand 8758: if test $ac_cv_header_stdc = yes; then
                   8759:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8760:   if test "$cross_compiling" = yes; then :
                   8761:   :
1.1       bertrand 8762: else
1.15      bertrand 8763:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8764: /* end confdefs.h.  */
1.15      bertrand 8765: #include <ctype.h>
                   8766: #include <stdlib.h>
                   8767: #if ((' ' & 0x0FF) == 0x020)
                   8768: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8769: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8770: #else
                   8771: # define ISLOWER(c) \
                   8772:           (('a' <= (c) && (c) <= 'i') \
                   8773:             || ('j' <= (c) && (c) <= 'r') \
                   8774:             || ('s' <= (c) && (c) <= 'z'))
                   8775: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8776: #endif
1.1       bertrand 8777: 
1.15      bertrand 8778: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8779: int
                   8780: main ()
                   8781: {
1.15      bertrand 8782:   int i;
                   8783:   for (i = 0; i < 256; i++)
                   8784:     if (XOR (islower (i), ISLOWER (i))
                   8785:    || toupper (i) != TOUPPER (i))
                   8786:       return 2;
1.1       bertrand 8787:   return 0;
                   8788: }
                   8789: _ACEOF
1.15      bertrand 8790: if ac_fn_c_try_run "$LINENO"; then :
                   8791: 
1.14      bertrand 8792: else
1.15      bertrand 8793:   ac_cv_header_stdc=no
                   8794: fi
                   8795: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8796:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8797: fi
1.14      bertrand 8798: 
1.1       bertrand 8799: fi
                   8800: fi
1.15      bertrand 8801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8802: $as_echo "$ac_cv_header_stdc" >&6; }
                   8803: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8804: 
1.15      bertrand 8805: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8806: 
                   8807: fi
                   8808: 
1.15      bertrand 8809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8810: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8811: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8812:   $as_echo_n "(cached) " >&6
1.1       bertrand 8813: else
1.15      bertrand 8814:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8815: /* end confdefs.h.  */
1.14      bertrand 8816: #include <sys/types.h>
1.15      bertrand 8817: #include <sys/wait.h>
                   8818: #ifndef WEXITSTATUS
                   8819: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8820: #endif
                   8821: #ifndef WIFEXITED
                   8822: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8823: #endif
1.1       bertrand 8824: 
                   8825: int
                   8826: main ()
                   8827: {
1.15      bertrand 8828:   int s;
                   8829:   wait (&s);
                   8830:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8831:   ;
                   8832:   return 0;
                   8833: }
                   8834: _ACEOF
1.15      bertrand 8835: if ac_fn_c_try_compile "$LINENO"; then :
                   8836:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8837: else
1.15      bertrand 8838:   ac_cv_header_sys_wait_h=no
                   8839: fi
                   8840: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8841: fi
                   8842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8843: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8844: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8845: 
1.15      bertrand 8846: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8847: 
                   8848: fi
                   8849: 
1.15      bertrand 8850: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8851:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8852:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8853: do :
                   8854:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8855: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8856: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8857:   cat >>confdefs.h <<_ACEOF
                   8858: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8859: _ACEOF
                   8860: 
                   8861: fi
                   8862: 
1.15      bertrand 8863: done
                   8864: 
1.1       bertrand 8865: 
1.15      bertrand 8866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8867: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8868: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8869:   $as_echo_n "(cached) " >&6
1.1       bertrand 8870: else
1.15      bertrand 8871:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8872: /* end confdefs.h.  */
                   8873: 
                   8874: int
                   8875: main ()
                   8876: {
1.15      bertrand 8877: /* FIXME: Include the comments suggested by Paul. */
                   8878: #ifndef __cplusplus
                   8879:   /* Ultrix mips cc rejects this.  */
                   8880:   typedef int charset[2];
                   8881:   const charset cs;
                   8882:   /* SunOS 4.1.1 cc rejects this.  */
                   8883:   char const *const *pcpcc;
                   8884:   char **ppc;
                   8885:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8886:   struct point {int x, y;};
                   8887:   static struct point const zero = {0,0};
                   8888:   /* AIX XL C 1.02.0.0 rejects this.
                   8889:      It does not let you subtract one const X* pointer from another in
                   8890:      an arm of an if-expression whose if-part is not a constant
                   8891:      expression */
                   8892:   const char *g = "string";
                   8893:   pcpcc = &g + (g ? g-g : 0);
                   8894:   /* HPUX 7.0 cc rejects these. */
                   8895:   ++pcpcc;
                   8896:   ppc = (char**) pcpcc;
                   8897:   pcpcc = (char const *const *) ppc;
                   8898:   { /* SCO 3.2v4 cc rejects this.  */
                   8899:     char *t;
                   8900:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8901: 
                   8902:     *t++ = 0;
                   8903:     if (s) return 0;
                   8904:   }
                   8905:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8906:     int x[] = {25, 17};
                   8907:     const int *foo = &x[0];
                   8908:     ++foo;
                   8909:   }
                   8910:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8911:     typedef const int *iptr;
                   8912:     iptr p = 0;
                   8913:     ++p;
                   8914:   }
                   8915:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8916:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8917:     struct s { int j; const int *ap[3]; };
                   8918:     struct s *b; b->j = 5;
                   8919:   }
                   8920:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8921:     const int foo = 10;
                   8922:     if (!foo) return 0;
                   8923:   }
                   8924:   return !cs[0] && !zero.x;
                   8925: #endif
                   8926: 
1.14      bertrand 8927:   ;
1.1       bertrand 8928:   return 0;
                   8929: }
                   8930: _ACEOF
1.15      bertrand 8931: if ac_fn_c_try_compile "$LINENO"; then :
                   8932:   ac_cv_c_const=yes
1.14      bertrand 8933: else
1.15      bertrand 8934:   ac_cv_c_const=no
1.1       bertrand 8935: fi
1.14      bertrand 8936: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8937: fi
1.15      bertrand 8938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8939: $as_echo "$ac_cv_c_const" >&6; }
                   8940: if test $ac_cv_c_const = no; then
1.1       bertrand 8941: 
1.15      bertrand 8942: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8943: 
1.15      bertrand 8944: fi
1.1       bertrand 8945: 
1.15      bertrand 8946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8947: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8948: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8949:   $as_echo_n "(cached) " >&6
1.1       bertrand 8950: else
1.15      bertrand 8951:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8952: /* end confdefs.h.  */
1.15      bertrand 8953: #include <sys/types.h>
                   8954: 
1.1       bertrand 8955: _ACEOF
1.15      bertrand 8956: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8957:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8958:   ac_cv_type_uid_t=yes
1.1       bertrand 8959: else
1.15      bertrand 8960:   ac_cv_type_uid_t=no
                   8961: fi
                   8962: rm -f conftest*
1.14      bertrand 8963: 
1.1       bertrand 8964: fi
1.15      bertrand 8965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8966: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8967: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8968: 
1.15      bertrand 8969: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8970: 
                   8971: 
1.15      bertrand 8972: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8973: 
                   8974: fi
                   8975: 
1.15      bertrand 8976: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8977: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8978: 
                   8979: else
1.15      bertrand 8980: 
                   8981: cat >>confdefs.h <<_ACEOF
                   8982: #define pid_t int
1.14      bertrand 8983: _ACEOF
                   8984: 
1.15      bertrand 8985: fi
1.14      bertrand 8986: 
1.15      bertrand 8987: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8988: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8989: 
1.15      bertrand 8990: else
1.1       bertrand 8991: 
1.15      bertrand 8992: cat >>confdefs.h <<_ACEOF
                   8993: #define size_t unsigned int
1.1       bertrand 8994: _ACEOF
1.14      bertrand 8995: 
1.1       bertrand 8996: fi
                   8997: 
1.15      bertrand 8998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8999: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 9000: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 9001:   $as_echo_n "(cached) " >&6
1.1       bertrand 9002: else
1.15      bertrand 9003:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9004: /* end confdefs.h.  */
1.15      bertrand 9005: #include <sys/types.h>
                   9006: #include <sys/time.h>
                   9007: #include <time.h>
1.1       bertrand 9008: 
1.14      bertrand 9009: int
                   9010: main ()
                   9011: {
1.15      bertrand 9012: if ((struct tm *) 0)
                   9013: return 0;
1.14      bertrand 9014:   ;
                   9015:   return 0;
                   9016: }
1.1       bertrand 9017: _ACEOF
1.15      bertrand 9018: if ac_fn_c_try_compile "$LINENO"; then :
                   9019:   ac_cv_header_time=yes
1.1       bertrand 9020: else
1.15      bertrand 9021:   ac_cv_header_time=no
1.1       bertrand 9022: fi
1.15      bertrand 9023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9024: fi
1.15      bertrand 9025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   9026: $as_echo "$ac_cv_header_time" >&6; }
                   9027: if test $ac_cv_header_time = yes; then
1.1       bertrand 9028: 
1.15      bertrand 9029: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 9030: 
                   9031: fi
                   9032: 
1.15      bertrand 9033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   9034: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 9035: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 9036:   $as_echo_n "(cached) " >&6
1.1       bertrand 9037: else
1.15      bertrand 9038:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 9039: /* end confdefs.h.  */
1.15      bertrand 9040: #include <sys/types.h>
                   9041: #include <time.h>
1.1       bertrand 9042: 
                   9043: int
                   9044: main ()
                   9045: {
1.15      bertrand 9046: struct tm tm;
                   9047:                     int *p = &tm.tm_sec;
                   9048:                     return !p;
1.1       bertrand 9049:   ;
                   9050:   return 0;
                   9051: }
                   9052: _ACEOF
1.15      bertrand 9053: if ac_fn_c_try_compile "$LINENO"; then :
                   9054:   ac_cv_struct_tm=time.h
1.1       bertrand 9055: else
1.15      bertrand 9056:   ac_cv_struct_tm=sys/time.h
                   9057: fi
                   9058: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9059: fi
                   9060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   9061: $as_echo "$ac_cv_struct_tm" >&6; }
                   9062: if test $ac_cv_struct_tm = sys/time.h; then
                   9063: 
                   9064: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9065: 
1.1       bertrand 9066: fi
                   9067: 
                   9068: 
1.15      bertrand 9069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9070: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9071: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9072:   $as_echo_n "(cached) " >&6
1.1       bertrand 9073: else
1.15      bertrand 9074:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9075: /* end confdefs.h.  */
1.15      bertrand 9076: #include <sys/types.h>
                   9077: #include <signal.h>
1.1       bertrand 9078: 
                   9079: int
                   9080: main ()
                   9081: {
1.15      bertrand 9082: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9083:   ;
                   9084:   return 0;
                   9085: }
                   9086: _ACEOF
1.15      bertrand 9087: if ac_fn_c_try_compile "$LINENO"; then :
                   9088:   ac_cv_type_signal=int
1.1       bertrand 9089: else
1.15      bertrand 9090:   ac_cv_type_signal=void
1.1       bertrand 9091: fi
1.15      bertrand 9092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9093: fi
1.15      bertrand 9094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9095: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9096: 
1.15      bertrand 9097: cat >>confdefs.h <<_ACEOF
                   9098: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9099: _ACEOF
1.1       bertrand 9100: 
1.15      bertrand 9101: 
                   9102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9103: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9104: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9105:   $as_echo_n "(cached) " >&6
                   9106: else
                   9107:   if test "$cross_compiling" = yes; then :
                   9108:   ac_cv_func_strcoll_works=no
                   9109: else
                   9110:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9111: /* end confdefs.h.  */
                   9112: $ac_includes_default
                   9113: int
                   9114: main ()
                   9115: {
                   9116: return (strcoll ("abc", "def") >= 0 ||
                   9117:     strcoll ("ABC", "DEF") >= 0 ||
                   9118:     strcoll ("123", "456") >= 0)
                   9119:   ;
                   9120:   return 0;
                   9121: }
                   9122: _ACEOF
                   9123: if ac_fn_c_try_run "$LINENO"; then :
                   9124:   ac_cv_func_strcoll_works=yes
                   9125: else
                   9126:   ac_cv_func_strcoll_works=no
                   9127: fi
                   9128: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9129:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9130: fi
1.1       bertrand 9131: 
                   9132: fi
1.15      bertrand 9133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9134: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9135: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9136: 
1.15      bertrand 9137: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9138: 
1.15      bertrand 9139: fi
1.1       bertrand 9140: 
1.15      bertrand 9141: for ac_func in strftime
                   9142: do :
                   9143:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9144: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9145:   cat >>confdefs.h <<_ACEOF
                   9146: #define HAVE_STRFTIME 1
                   9147: _ACEOF
1.1       bertrand 9148: 
                   9149: else
1.15      bertrand 9150:   # strftime is in -lintl on SCO UNIX.
                   9151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9152: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9153: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9154:   $as_echo_n "(cached) " >&6
                   9155: else
                   9156:   ac_check_lib_save_LIBS=$LIBS
                   9157: LIBS="-lintl  $LIBS"
                   9158: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9159: /* end confdefs.h.  */
                   9160: 
                   9161: /* Override any GCC internal prototype to avoid an error.
                   9162:    Use char because int might match the return type of a GCC
                   9163:    builtin and then its argument prototype would still apply.  */
                   9164: #ifdef __cplusplus
                   9165: extern "C"
                   9166: #endif
1.15      bertrand 9167: char strftime ();
1.1       bertrand 9168: int
                   9169: main ()
                   9170: {
1.15      bertrand 9171: return strftime ();
1.1       bertrand 9172:   ;
                   9173:   return 0;
                   9174: }
                   9175: _ACEOF
1.15      bertrand 9176: if ac_fn_c_try_link "$LINENO"; then :
                   9177:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9178: else
1.15      bertrand 9179:   ac_cv_lib_intl_strftime=no
                   9180: fi
                   9181: rm -f core conftest.err conftest.$ac_objext \
                   9182:     conftest$ac_exeext conftest.$ac_ext
                   9183: LIBS=$ac_check_lib_save_LIBS
                   9184: fi
                   9185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9186: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9187: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9188:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9189: 
                   9190: LIBS="-lintl $LIBS"
                   9191: fi
                   9192: 
                   9193: fi
                   9194: done
                   9195: 
                   9196: for ac_func in vprintf
                   9197: do :
                   9198:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9199: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9200:   cat >>confdefs.h <<_ACEOF
                   9201: #define HAVE_VPRINTF 1
                   9202: _ACEOF
                   9203: 
                   9204: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9205: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9206: 
                   9207: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9208: 
                   9209: fi
                   9210: 
                   9211: fi
1.15      bertrand 9212: done
                   9213: 
                   9214: 
                   9215: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9216:        strerror strspn strstr strtod
                   9217: do :
                   9218:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9219: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9220: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9221:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9222: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9223: _ACEOF
                   9224: 
                   9225: fi
                   9226: done
                   9227: 
                   9228: 
1.15      bertrand 9229: 
                   9230: # Check whether --with-openssl_arch was given.
                   9231: if test "${with_openssl_arch+set}" = set; then :
                   9232:   withval=$with_openssl_arch;
                   9233: else
                   9234:   with_openssl_arch=none
                   9235: fi
                   9236: 
                   9237: 
1.31      bertrand 9238: if test $(uname) = "OS/2"; then
1.34      bertrand 9239:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9240: else
1.31      bertrand 9241:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9242:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9243:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9244:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9245:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9246:    elif test "x$with_openssl_arch" = xlist; then
                   9247:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9248:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9249:    else
1.67      bertrand 9250:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9251:    fi
1.15      bertrand 9252: fi
1.1       bertrand 9253: 
                   9254: if test "$MYGNUPLOT" = "yes"; then
                   9255:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9256:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9257:                (cd "$srcdir/tools" && tar -xf -)
                   9258:    fi
1.80      bertrand 9259:    subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9260: 
                   9261:    GNUPLOT_COMPILATION=$GNUPLOT
                   9262: else
                   9263:    GNUPLOT_COMPILATION=
                   9264: fi
                   9265: 
                   9266: 
                   9267: 
1.88      bertrand 9268: HOST=$target
1.69      bertrand 9269: 
                   9270: 
1.87      bertrand 9271: my_save_cflags="$CFLAGS"
                   9272: FPCFLAGS=""
                   9273: 
                   9274: CFLAGS=-malign-double
                   9275: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
                   9276: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
                   9277: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9278: /* end confdefs.h.  */
                   9279: 
                   9280: int
                   9281: main ()
                   9282: {
1.1       bertrand 9283: 
1.87      bertrand 9284:   ;
                   9285:   return 0;
                   9286: }
                   9287: _ACEOF
                   9288: if ac_fn_c_try_compile "$LINENO"; then :
                   9289:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9290: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
                   9291: else
                   9292:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9293: $as_echo "no" >&6; }
                   9294: fi
                   9295: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9296: CFLAGS=-mieee-fp
                   9297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
                   9298: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
                   9299: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9300: /* end confdefs.h.  */
                   9301: 
                   9302: int
                   9303: main ()
                   9304: {
1.1       bertrand 9305: 
1.87      bertrand 9306:   ;
                   9307:   return 0;
                   9308: }
                   9309: _ACEOF
                   9310: if ac_fn_c_try_compile "$LINENO"; then :
                   9311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9312: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
                   9313: else
                   9314:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9315: $as_echo "no" >&6; }
                   9316: fi
                   9317: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9318: CFLAGS=-mieee
                   9319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
                   9320: $as_echo_n "checking whether CC supports -mieee... " >&6; }
                   9321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9322: /* end confdefs.h.  */
1.1       bertrand 9323: 
1.87      bertrand 9324: int
                   9325: main ()
                   9326: {
1.1       bertrand 9327: 
1.87      bertrand 9328:   ;
                   9329:   return 0;
                   9330: }
                   9331: _ACEOF
                   9332: if ac_fn_c_try_compile "$LINENO"; then :
                   9333:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9334: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
                   9335: else
                   9336:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9337: $as_echo "no" >&6; }
                   9338: fi
                   9339: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9340: CFLAGS=$my_save_cflags
1.1       bertrand 9341: 
1.87      bertrand 9342: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
                   9343: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9344: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9345: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1       bertrand 9346: 
1.87      bertrand 9347: case $target_os in
1.8       bertrand 9348: 
                   9349:    cygwin*)
                   9350:        OS=Cygwin
                   9351:    break ;;
                   9352: 
                   9353:    interix*)
                   9354:        OS=Interix
                   9355:    break ;;
                   9356: 
                   9357:    *)
                   9358:        OS=$(uname)
                   9359:    break ;;
                   9360: 
                   9361: esac
                   9362: 
                   9363: 
                   9364: 
1.1       bertrand 9365: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9366: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9367: MALLOC=
1.1       bertrand 9368: 
1.22      bertrand 9369: case $OS in
1.17      bertrand 9370: 
                   9371:     Darwin)
1.31      bertrand 9372:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9373:        NESTED_FUNCTIONS=-fnested-functions
1.23      bertrand 9374:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9375:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9376:                --disable-shared --enable-static --enable-threads \
                   9377:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9378:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9379:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9380:        C_STANDARD=-std=gnu99
1.75      bertrand 9381:        ELF=
1.17      bertrand 9382:    break ;;
                   9383: 
1.31      bertrand 9384:     Cygwin)
                   9385:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9386:        NESTED_FUNCTIONS=
1.31      bertrand 9387:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9388:                --disable-shared --enable-static --enable-threads \
                   9389:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9390:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9391:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9392:        C_STANDARD=-std=gnu99
1.75      bertrand 9393:        ELF=
1.17      bertrand 9394:    break ;;
                   9395: 
1.34      bertrand 9396:    Interix)
                   9397:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9398:        NESTED_FUNCTIONS=
                   9399:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9400:                --disable-shared --enable-static --enable-threads \
                   9401:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9402:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9403:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9404:        C_STANDARD=-std=gnu99
1.75      bertrand 9405:        ELF=
1.34      bertrand 9406:    break;;
                   9407: 
1.31      bertrand 9408:     AIX)
                   9409:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9410:        NESTED_FUNCTIONS=
1.31      bertrand 9411:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9412:                --disable-shared --enable-static --enable-threads \
                   9413:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9414:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9415:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9416:        C_STANDARD=-std=gnu99
1.75      bertrand 9417:        ELF=
1.18      bertrand 9418:    break ;;
                   9419: 
1.31      bertrand 9420:     OS/2)
1.37      bertrand 9421:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9422:            FINAL_ENCODING=CP850; \
                   9423:        fi;
1.31      bertrand 9424:        OS=OS2
                   9425:        NESTED_FUNCTIONS=
                   9426:        EXPORT_DYNAMIC=-Zmap
                   9427:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9428:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9429:                --enable-threads \
                   9430:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9431:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9432:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9433:        C_STANDARD=
1.75      bertrand 9434:        ELF=
1.31      bertrand 9435:    break;;
                   9436: 
1.35      bertrand 9437:    OpenBSD)
1.37      bertrand 9438:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9439:            FINAL_ENCODING=UTF-8; \
                   9440:        fi;
                   9441:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9442:        NESTED_FUNCTIONS=
                   9443:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9444:                --disable-shared --enable-static --enable-threads \
                   9445:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9446:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9447:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9448:        C_STANDARD=-std=gnu99
1.75      bertrand 9449:        ELF=
1.35      bertrand 9450:    break;;
                   9451: 
1.49      bertrand 9452:     SunOS)
                   9453:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9454:        NESTED_FUNCTIONS=
                   9455: 
                   9456:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9457:                --disable-shared --enable-static --enable-threads \
                   9458:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9459:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9460:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9461:        C_STANDARD=-std=gnu99
                   9462:        MALLOC=-lumem
1.75      bertrand 9463:        ELF=
                   9464:    break ;;
                   9465: 
                   9466:     NetBSD)
                   9467:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9468:        NESTED_FUNCTIONS=
                   9469: 
                   9470:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9471:                --disable-shared --enable-static --enable-threads \
                   9472:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9473:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9474:                LDFLAGS=\"$LDFLAGS\""
                   9475:        C_STANDARD=-std=gnu99
                   9476:        GCCBIN=`which gcc`
                   9477:        GCCLIB=`dirname $GCCBIN`/../lib
                   9478:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9479:    break ;;
                   9480: 
1.17      bertrand 9481:     *)
1.31      bertrand 9482:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9483:        NESTED_FUNCTIONS=
1.36      bertrand 9484: 
1.31      bertrand 9485:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9486:                --disable-shared --enable-static --enable-threads \
                   9487:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9488:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9489:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9490:        C_STANDARD=-std=gnu99
1.75      bertrand 9491:        ELF=
1.17      bertrand 9492:    break ;;
                   9493: 
                   9494: esac
                   9495: 
                   9496: 
                   9497: 
                   9498: 
1.1       bertrand 9499: 
                   9500: 
                   9501: 
                   9502: 
                   9503: 
                   9504: 
                   9505: 
                   9506: 
                   9507: 
                   9508: 
                   9509: 
                   9510: 
                   9511: 
                   9512: 
                   9513: 
                   9514: 
                   9515: 
                   9516: 
                   9517: 
1.9       bertrand 9518: 
1.24      bertrand 9519: 
1.30      bertrand 9520: 
1.33      bertrand 9521: 
                   9522: 
                   9523: 
1.34      bertrand 9524: 
1.35      bertrand 9525: 
1.49      bertrand 9526: 
1.55      bertrand 9527: 
                   9528: 
1.56      bertrand 9529: 
                   9530: 
                   9531: 
                   9532: 
1.69      bertrand 9533: 
1.75      bertrand 9534: 
1.78      bertrand 9535: 
1.80      bertrand 9536: 
                   9537: 
                   9538: 
1.82      bertrand 9539: 
1.69      bertrand 9540: subdirs="$subdirs tools/$NCURSES"
                   9541: 
                   9542: subdirs="$subdirs tools/$READLINE"
                   9543: 
                   9544: subdirs="$subdirs tools/$GSL"
                   9545: 
                   9546: subdirs="$subdirs tools/$GPP"
                   9547: 
                   9548: subdirs="$subdirs tools/$FILE"
                   9549: 
                   9550: subdirs="$subdirs tools/$ICONV"
                   9551: 
                   9552: subdirs="$subdirs tools/$SQLITE"
                   9553: 
                   9554: subdirs="$subdirs tools/$UNITS"
                   9555: 
1.76      bertrand 9556: subdirs="$subdirs tools/$SIGSEGV"
                   9557: 
1.69      bertrand 9558: 
1.1       bertrand 9559: ac_config_files="$ac_config_files Makefile"
                   9560: 
                   9561: ac_config_files="$ac_config_files COPYING"
                   9562: 
                   9563: ac_config_files="$ac_config_files tools/Makefile"
                   9564: 
                   9565: ac_config_files="$ac_config_files src/Makefile"
                   9566: 
                   9567: ac_config_files="$ac_config_files man/Makefile"
                   9568: 
                   9569: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9570: 
                   9571: ac_config_files="$ac_config_files doc/Makefile"
                   9572: 
                   9573: ac_config_files="$ac_config_files scripts/Makefile"
                   9574: 
                   9575: ac_config_files="$ac_config_files scripts/mkrplso"
                   9576: 
                   9577: ac_config_files="$ac_config_files scripts/rplcc"
                   9578: 
                   9579: ac_config_files="$ac_config_files scripts/rpllink"
                   9580: 
                   9581: ac_config_files="$ac_config_files rpltags/Makefile"
                   9582: 
                   9583: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9584: 
1.9       bertrand 9585: ac_config_files="$ac_config_files rplsums/Makefile"
                   9586: 
1.55      bertrand 9587: ac_config_files="$ac_config_files rplcas/Makefile"
                   9588: 
1.39      bertrand 9589: ac_config_files="$ac_config_files rplawk/Makefile"
                   9590: 
1.1       bertrand 9591: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9592: 
                   9593: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9594: 
                   9595: 
                   9596: ac_config_files="$ac_config_files man/rpl.1"
                   9597: 
                   9598: ac_config_files="$ac_config_files man/rplcc.1"
                   9599: 
                   9600: ac_config_files="$ac_config_files man/rpllink.1"
                   9601: 
                   9602: ac_config_files="$ac_config_files man/rpltags.1"
                   9603: 
                   9604: ac_config_files="$ac_config_files man/mkrplso.1"
                   9605: 
                   9606: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9607: 
                   9608: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9609: 
                   9610: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9611: 
                   9612: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9613: 
                   9614: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9615: 
                   9616: 
                   9617: cat >confcache <<\_ACEOF
                   9618: # This file is a shell script that caches the results of configure
                   9619: # tests run on this system so they can be shared between configure
                   9620: # scripts and configure runs, see configure's option --config-cache.
                   9621: # It is not useful on other systems.  If it contains results you don't
                   9622: # want to keep, you may remove or edit it.
                   9623: #
                   9624: # config.status only pays attention to the cache file if you give it
                   9625: # the --recheck option to rerun configure.
                   9626: #
                   9627: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9628: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9629: # following values.
                   9630: 
                   9631: _ACEOF
                   9632: 
                   9633: # The following way of writing the cache mishandles newlines in values,
                   9634: # but we know of no workaround that is simple, portable, and efficient.
                   9635: # So, we kill variables containing newlines.
                   9636: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9637: # and sets the high bit in the cache file unless we assign to the vars.
                   9638: (
                   9639:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9640:     eval ac_val=\$$ac_var
                   9641:     case $ac_val in #(
                   9642:     *${as_nl}*)
                   9643:       case $ac_var in #(
1.15      bertrand 9644:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9645: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9646:       esac
                   9647:       case $ac_var in #(
                   9648:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9649:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9650:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9651:       esac ;;
                   9652:     esac
                   9653:   done
                   9654: 
                   9655:   (set) 2>&1 |
                   9656:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9657:     *${as_nl}ac_space=\ *)
1.15      bertrand 9658:       # `set' does not quote correctly, so add quotes: double-quote
                   9659:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9660:       sed -n \
                   9661:    "s/'/'\\\\''/g;
                   9662:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9663:       ;; #(
                   9664:     *)
                   9665:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9666:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9667:       ;;
                   9668:     esac |
                   9669:     sort
                   9670: ) |
                   9671:   sed '
                   9672:      /^ac_cv_env_/b end
                   9673:      t clear
                   9674:      :clear
                   9675:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9676:      t end
                   9677:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9678:      :end' >>confcache
                   9679: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9680:   if test -w "$cache_file"; then
1.57      bertrand 9681:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9682:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9683: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9684:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9685:    cat confcache >"$cache_file"
                   9686:       else
                   9687:         case $cache_file in #(
                   9688:         */* | ?:*)
                   9689:      mv -f confcache "$cache_file"$$ &&
                   9690:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9691:         *)
                   9692:      mv -f confcache "$cache_file" ;;
                   9693:    esac
                   9694:       fi
                   9695:     fi
1.1       bertrand 9696:   else
1.15      bertrand 9697:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9698: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9699:   fi
                   9700: fi
                   9701: rm -f confcache
                   9702: 
                   9703: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9704: # Let make expand exec_prefix.
                   9705: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9706: 
                   9707: DEFS=-DHAVE_CONFIG_H
                   9708: 
                   9709: ac_libobjs=
                   9710: ac_ltlibobjs=
1.36      bertrand 9711: U=
1.1       bertrand 9712: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9713:   # 1. Remove the extension, and $U if already installed.
                   9714:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9715:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9716:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9717:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9718:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9719:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9720: done
                   9721: LIBOBJS=$ac_libobjs
                   9722: 
                   9723: LTLIBOBJS=$ac_ltlibobjs
                   9724: 
                   9725: 
1.15      bertrand 9726:  if test -n "$EXEEXT"; then
                   9727:   am__EXEEXT_TRUE=
                   9728:   am__EXEEXT_FALSE='#'
                   9729: else
                   9730:   am__EXEEXT_TRUE='#'
                   9731:   am__EXEEXT_FALSE=
                   9732: fi
                   9733: 
1.1       bertrand 9734: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9735:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9736: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9737: fi
                   9738: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9739:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9740: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9741: fi
                   9742: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9743:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9744: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9745: fi
                   9746: 
1.57      bertrand 9747: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9748: ac_write_fail=0
1.1       bertrand 9749: ac_clean_files_save=$ac_clean_files
                   9750: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9751: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9752: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9753: as_write_fail=0
                   9754: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9755: #! $SHELL
                   9756: # Generated by $as_me.
                   9757: # Run this file to recreate the current configuration.
                   9758: # Compiler output produced by configure, useful for debugging
                   9759: # configure, is in config.log if it exists.
                   9760: 
                   9761: debug=false
                   9762: ac_cs_recheck=false
                   9763: ac_cs_silent=false
1.15      bertrand 9764: 
1.14      bertrand 9765: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9766: export SHELL
                   9767: _ASEOF
                   9768: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9769: ## -------------------- ##
                   9770: ## M4sh Initialization. ##
                   9771: ## -------------------- ##
1.1       bertrand 9772: 
                   9773: # Be more Bourne compatible
                   9774: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9775: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9776:   emulate sh
                   9777:   NULLCMD=:
1.15      bertrand 9778:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9779:   # is contrary to our usage.  Disable this feature.
                   9780:   alias -g '${1+"$@"}'='"$@"'
                   9781:   setopt NO_GLOB_SUBST
                   9782: else
1.15      bertrand 9783:   case `(set -o) 2>/dev/null` in #(
                   9784:   *posix*) :
                   9785:     set -o posix ;; #(
                   9786:   *) :
                   9787:      ;;
1.1       bertrand 9788: esac
                   9789: fi
                   9790: 
                   9791: 
1.15      bertrand 9792: as_nl='
                   9793: '
                   9794: export as_nl
                   9795: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9796: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9797: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9798: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9799: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9800: # but without wasting forks for bash or zsh.
                   9801: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9802:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9803:   as_echo='print -r --'
                   9804:   as_echo_n='print -rn --'
                   9805: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9806:   as_echo='printf %s\n'
                   9807:   as_echo_n='printf %s'
                   9808: else
                   9809:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9810:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9811:     as_echo_n='/usr/ucb/echo -n'
                   9812:   else
                   9813:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9814:     as_echo_n_body='eval
                   9815:       arg=$1;
                   9816:       case $arg in #(
                   9817:       *"$as_nl"*)
                   9818:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9819:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9820:       esac;
                   9821:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9822:     '
                   9823:     export as_echo_n_body
                   9824:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9825:   fi
                   9826:   export as_echo_body
                   9827:   as_echo='sh -c $as_echo_body as_echo'
                   9828: fi
1.14      bertrand 9829: 
                   9830: # The user is always right.
                   9831: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9832:   PATH_SEPARATOR=:
                   9833:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9834:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9835:       PATH_SEPARATOR=';'
                   9836:   }
1.1       bertrand 9837: fi
                   9838: 
                   9839: 
                   9840: # IFS
                   9841: # We need space, tab and new line, in precisely that order.  Quoting is
                   9842: # there to prevent editors from complaining about space-tab.
                   9843: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9844: # splitting by setting IFS to empty value.)
                   9845: IFS=" ""   $as_nl"
                   9846: 
                   9847: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9848: as_myself=
1.15      bertrand 9849: case $0 in #((
1.1       bertrand 9850:   *[\\/]* ) as_myself=$0 ;;
                   9851:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9852: for as_dir in $PATH
                   9853: do
                   9854:   IFS=$as_save_IFS
                   9855:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9856:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9857:   done
1.1       bertrand 9858: IFS=$as_save_IFS
                   9859: 
                   9860:      ;;
                   9861: esac
                   9862: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9863: # in which case we are not to be found in the path.
                   9864: if test "x$as_myself" = x; then
                   9865:   as_myself=$0
                   9866: fi
                   9867: if test ! -f "$as_myself"; then
1.15      bertrand 9868:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9869:   exit 1
1.1       bertrand 9870: fi
                   9871: 
1.15      bertrand 9872: # Unset variables that we do not need and which cause bugs (e.g. in
                   9873: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9874: # suppresses any "Segmentation fault" message there.  '((' could
                   9875: # trigger a bug in pdksh 5.2.14.
                   9876: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9877: do eval test x\${$as_var+set} = xset \
                   9878:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9879: done
                   9880: PS1='$ '
                   9881: PS2='> '
                   9882: PS4='+ '
                   9883: 
                   9884: # NLS nuisances.
1.15      bertrand 9885: LC_ALL=C
                   9886: export LC_ALL
                   9887: LANGUAGE=C
                   9888: export LANGUAGE
                   9889: 
                   9890: # CDPATH.
                   9891: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9892: 
                   9893: 
1.36      bertrand 9894: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9895: # ----------------------------------------
1.15      bertrand 9896: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9897: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9898: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9899: as_fn_error ()
                   9900: {
1.36      bertrand 9901:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9902:   if test "$4"; then
                   9903:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9904:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9905:   fi
1.36      bertrand 9906:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9907:   as_fn_exit $as_status
                   9908: } # as_fn_error
                   9909: 
                   9910: 
                   9911: # as_fn_set_status STATUS
                   9912: # -----------------------
                   9913: # Set $? to STATUS, without forking.
                   9914: as_fn_set_status ()
                   9915: {
                   9916:   return $1
                   9917: } # as_fn_set_status
                   9918: 
                   9919: # as_fn_exit STATUS
                   9920: # -----------------
                   9921: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9922: as_fn_exit ()
                   9923: {
                   9924:   set +e
                   9925:   as_fn_set_status $1
                   9926:   exit $1
                   9927: } # as_fn_exit
                   9928: 
                   9929: # as_fn_unset VAR
                   9930: # ---------------
                   9931: # Portably unset VAR.
                   9932: as_fn_unset ()
                   9933: {
                   9934:   { eval $1=; unset $1;}
                   9935: }
                   9936: as_unset=as_fn_unset
                   9937: # as_fn_append VAR VALUE
                   9938: # ----------------------
                   9939: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9940: # advantage of any shell optimizations that allow amortized linear growth over
                   9941: # repeated appends, instead of the typical quadratic growth present in naive
                   9942: # implementations.
                   9943: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9944:   eval 'as_fn_append ()
                   9945:   {
                   9946:     eval $1+=\$2
                   9947:   }'
                   9948: else
                   9949:   as_fn_append ()
                   9950:   {
                   9951:     eval $1=\$$1\$2
                   9952:   }
                   9953: fi # as_fn_append
                   9954: 
                   9955: # as_fn_arith ARG...
                   9956: # ------------------
                   9957: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9958: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9959: # must be portable across $(()) and expr.
                   9960: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9961:   eval 'as_fn_arith ()
                   9962:   {
                   9963:     as_val=$(( $* ))
                   9964:   }'
                   9965: else
                   9966:   as_fn_arith ()
                   9967:   {
                   9968:     as_val=`expr "$@" || test $? -eq 1`
                   9969:   }
                   9970: fi # as_fn_arith
                   9971: 
1.1       bertrand 9972: 
                   9973: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9974:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9975:   as_expr=expr
                   9976: else
                   9977:   as_expr=false
                   9978: fi
                   9979: 
                   9980: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9981:   as_basename=basename
                   9982: else
                   9983:   as_basename=false
                   9984: fi
                   9985: 
1.15      bertrand 9986: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9987:   as_dirname=dirname
                   9988: else
                   9989:   as_dirname=false
                   9990: fi
1.1       bertrand 9991: 
                   9992: as_me=`$as_basename -- "$0" ||
                   9993: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9994:     X"$0" : 'X\(//\)$' \| \
                   9995:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9996: $as_echo X/"$0" |
1.1       bertrand 9997:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9998:        s//\1/
                   9999:        q
                   10000:      }
                   10001:      /^X\/\(\/\/\)$/{
                   10002:        s//\1/
                   10003:        q
                   10004:      }
                   10005:      /^X\/\(\/\).*/{
                   10006:        s//\1/
                   10007:        q
                   10008:      }
1.14      bertrand 10009:      s/.*/./; q'`
                   10010: 
1.15      bertrand 10011: # Avoid depending upon Character Ranges.
                   10012: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   10013: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   10014: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   10015: as_cr_digits='0123456789'
                   10016: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 10017: 
                   10018: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 10019: case `echo -n x` in #(((((
1.1       bertrand 10020: -n*)
1.15      bertrand 10021:   case `echo 'xy\c'` in
1.1       bertrand 10022:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 10023:   xy)  ECHO_C='\c';;
                   10024:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   10025:        ECHO_T='    ';;
1.1       bertrand 10026:   esac;;
                   10027: *)
                   10028:   ECHO_N='-n';;
                   10029: esac
                   10030: 
                   10031: rm -f conf$$ conf$$.exe conf$$.file
                   10032: if test -d conf$$.dir; then
                   10033:   rm -f conf$$.dir/conf$$.file
                   10034: else
                   10035:   rm -f conf$$.dir
1.15      bertrand 10036:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 10037: fi
1.15      bertrand 10038: if (echo >conf$$.file) 2>/dev/null; then
                   10039:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10040:     as_ln_s='ln -s'
                   10041:     # ... but there are two gotchas:
                   10042:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   10043:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   10044:     # In both cases, we have to default to `cp -p'.
                   10045:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10046:       as_ln_s='cp -p'
                   10047:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10048:     as_ln_s=ln
                   10049:   else
1.1       bertrand 10050:     as_ln_s='cp -p'
1.15      bertrand 10051:   fi
1.1       bertrand 10052: else
                   10053:   as_ln_s='cp -p'
                   10054: fi
                   10055: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10056: rmdir conf$$.dir 2>/dev/null
                   10057: 
1.15      bertrand 10058: 
                   10059: # as_fn_mkdir_p
                   10060: # -------------
                   10061: # Create "$as_dir" as a directory, including parents if necessary.
                   10062: as_fn_mkdir_p ()
                   10063: {
                   10064: 
                   10065:   case $as_dir in #(
                   10066:   -*) as_dir=./$as_dir;;
                   10067:   esac
                   10068:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10069:     as_dirs=
                   10070:     while :; do
                   10071:       case $as_dir in #(
                   10072:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10073:       *) as_qdir=$as_dir;;
                   10074:       esac
                   10075:       as_dirs="'$as_qdir' $as_dirs"
                   10076:       as_dir=`$as_dirname -- "$as_dir" ||
                   10077: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10078:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10079:     X"$as_dir" : 'X\(//\)$' \| \
                   10080:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10081: $as_echo X"$as_dir" |
                   10082:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10083:        s//\1/
                   10084:        q
                   10085:      }
                   10086:      /^X\(\/\/\)[^/].*/{
                   10087:        s//\1/
                   10088:        q
                   10089:      }
                   10090:      /^X\(\/\/\)$/{
                   10091:        s//\1/
                   10092:        q
                   10093:      }
                   10094:      /^X\(\/\).*/{
                   10095:        s//\1/
                   10096:        q
                   10097:      }
                   10098:      s/.*/./; q'`
                   10099:       test -d "$as_dir" && break
                   10100:     done
                   10101:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10102:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10103: 
                   10104: 
                   10105: } # as_fn_mkdir_p
1.1       bertrand 10106: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10107:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10108: else
                   10109:   test -d ./-p && rmdir ./-p
                   10110:   as_mkdir_p=false
                   10111: fi
                   10112: 
                   10113: if test -x / >/dev/null 2>&1; then
                   10114:   as_test_x='test -x'
                   10115: else
                   10116:   if ls -dL / >/dev/null 2>&1; then
                   10117:     as_ls_L_option=L
                   10118:   else
                   10119:     as_ls_L_option=
                   10120:   fi
                   10121:   as_test_x='
                   10122:     eval sh -c '\''
                   10123:       if test -d "$1"; then
1.15      bertrand 10124:    test -d "$1/.";
1.1       bertrand 10125:       else
1.15      bertrand 10126:    case $1 in #(
                   10127:    -*)set "./$1";;
1.1       bertrand 10128:    esac;
1.15      bertrand 10129:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10130:    ???[sx]*):;;*)false;;esac;fi
                   10131:     '\'' sh
                   10132:   '
                   10133: fi
                   10134: as_executable_p=$as_test_x
                   10135: 
                   10136: # Sed expression to map a string onto a valid CPP name.
                   10137: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10138: 
                   10139: # Sed expression to map a string onto a valid variable name.
                   10140: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10141: 
                   10142: 
                   10143: exec 6>&1
1.15      bertrand 10144: ## ----------------------------------- ##
                   10145: ## Main body of $CONFIG_STATUS script. ##
                   10146: ## ----------------------------------- ##
                   10147: _ASEOF
                   10148: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10149: 
1.15      bertrand 10150: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10151: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10152: # report actual input values of CONFIG_FILES etc. instead of their
                   10153: # values after options handling.
                   10154: ac_log="
1.86      bertrand 10155: This file was extended by rpl $as_me 4.1.4, which was
1.57      bertrand 10156: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10157: 
                   10158:   CONFIG_FILES    = $CONFIG_FILES
                   10159:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10160:   CONFIG_LINKS    = $CONFIG_LINKS
                   10161:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10162:   $ $0 $@
                   10163: 
                   10164: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10165: "
                   10166: 
                   10167: _ACEOF
                   10168: 
1.15      bertrand 10169: case $ac_config_files in *"
                   10170: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10171: esac
                   10172: 
                   10173: case $ac_config_headers in *"
                   10174: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10175: esac
                   10176: 
                   10177: 
                   10178: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10179: # Files that config.status was made for.
                   10180: config_files="$ac_config_files"
                   10181: config_headers="$ac_config_headers"
                   10182: config_commands="$ac_config_commands"
                   10183: 
                   10184: _ACEOF
                   10185: 
1.15      bertrand 10186: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10187: ac_cs_usage="\
1.15      bertrand 10188: \`$as_me' instantiates files and other configuration actions
                   10189: from templates according to the current configuration.  Unless the files
                   10190: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10191: 
1.15      bertrand 10192: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10193: 
                   10194:   -h, --help       print this help, then exit
                   10195:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10196:       --config     print configuration, then exit
                   10197:   -q, --quiet, --silent
                   10198:                    do not print progress messages
1.1       bertrand 10199:   -d, --debug      don't remove temporary files
                   10200:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10201:       --file=FILE[:TEMPLATE]
                   10202:                    instantiate the configuration file FILE
                   10203:       --header=FILE[:TEMPLATE]
                   10204:                    instantiate the configuration header FILE
1.1       bertrand 10205: 
                   10206: Configuration files:
                   10207: $config_files
                   10208: 
                   10209: Configuration headers:
                   10210: $config_headers
                   10211: 
                   10212: Configuration commands:
                   10213: $config_commands
                   10214: 
1.15      bertrand 10215: Report bugs to the package provider."
1.1       bertrand 10216: 
                   10217: _ACEOF
1.15      bertrand 10218: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10219: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10220: ac_cs_version="\\
1.86      bertrand 10221: rpl config.status 4.1.4
1.57      bertrand 10222: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10223:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10224: 
1.36      bertrand 10225: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10226: This config.status script is free software; the Free Software Foundation
                   10227: gives unlimited permission to copy, distribute and modify it."
                   10228: 
                   10229: ac_pwd='$ac_pwd'
                   10230: srcdir='$srcdir'
                   10231: INSTALL='$INSTALL'
                   10232: MKDIR_P='$MKDIR_P'
1.15      bertrand 10233: AWK='$AWK'
                   10234: test -n "\$AWK" || AWK=awk
1.1       bertrand 10235: _ACEOF
                   10236: 
1.15      bertrand 10237: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10238: # The default lists apply if the user does not specify any file.
1.1       bertrand 10239: ac_need_defaults=:
                   10240: while test $# != 0
                   10241: do
                   10242:   case $1 in
1.36      bertrand 10243:   --*=?*)
1.1       bertrand 10244:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10245:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10246:     ac_shift=:
                   10247:     ;;
1.36      bertrand 10248:   --*=)
                   10249:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10250:     ac_optarg=
                   10251:     ac_shift=:
                   10252:     ;;
1.1       bertrand 10253:   *)
                   10254:     ac_option=$1
                   10255:     ac_optarg=$2
                   10256:     ac_shift=shift
                   10257:     ;;
                   10258:   esac
                   10259: 
                   10260:   case $ac_option in
                   10261:   # Handling of the options.
                   10262:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10263:     ac_cs_recheck=: ;;
                   10264:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10265:     $as_echo "$ac_cs_version"; exit ;;
                   10266:   --config | --confi | --conf | --con | --co | --c )
                   10267:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10268:   --debug | --debu | --deb | --de | --d | -d )
                   10269:     debug=: ;;
                   10270:   --file | --fil | --fi | --f )
                   10271:     $ac_shift
1.15      bertrand 10272:     case $ac_optarg in
                   10273:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10274:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10275:     esac
                   10276:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10277:     ac_need_defaults=false;;
                   10278:   --header | --heade | --head | --hea )
                   10279:     $ac_shift
1.15      bertrand 10280:     case $ac_optarg in
                   10281:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10282:     esac
                   10283:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10284:     ac_need_defaults=false;;
                   10285:   --he | --h)
                   10286:     # Conflict between --help and --header
1.36      bertrand 10287:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10288: Try \`$0 --help' for more information.";;
1.1       bertrand 10289:   --help | --hel | -h )
1.15      bertrand 10290:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10291:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10292:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10293:     ac_cs_silent=: ;;
                   10294: 
                   10295:   # This is an error.
1.36      bertrand 10296:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10297: Try \`$0 --help' for more information." ;;
1.1       bertrand 10298: 
1.15      bertrand 10299:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10300:      ac_need_defaults=false ;;
                   10301: 
                   10302:   esac
                   10303:   shift
                   10304: done
                   10305: 
                   10306: ac_configure_extra_args=
                   10307: 
                   10308: if $ac_cs_silent; then
                   10309:   exec 6>/dev/null
                   10310:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10311: fi
                   10312: 
                   10313: _ACEOF
1.15      bertrand 10314: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10315: if \$ac_cs_recheck; then
1.15      bertrand 10316:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10317:   shift
                   10318:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10319:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10320:   export CONFIG_SHELL
1.15      bertrand 10321:   exec "\$@"
1.1       bertrand 10322: fi
                   10323: 
                   10324: _ACEOF
1.15      bertrand 10325: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10326: exec 5>>config.log
                   10327: {
                   10328:   echo
                   10329:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10330: ## Running $as_me. ##
                   10331: _ASBOX
1.15      bertrand 10332:   $as_echo "$ac_log"
1.1       bertrand 10333: } >&5
                   10334: 
                   10335: _ACEOF
1.15      bertrand 10336: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10337: #
                   10338: # INIT-COMMANDS
                   10339: #
                   10340: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10341: 
                   10342: _ACEOF
                   10343: 
1.15      bertrand 10344: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10345: 
                   10346: # Handling of arguments.
                   10347: for ac_config_target in $ac_config_targets
                   10348: do
                   10349:   case $ac_config_target in
                   10350:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10351:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10352:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10353:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10354:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10355:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10356:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10357:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10358:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10359:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10360:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10361:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10362:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10363:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10364:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10365:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10366:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10367:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10368:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10369:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10370:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10371:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10372:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10373:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10374:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10375:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10376:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10377:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10378:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10379:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10380: 
1.57      bertrand 10381:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10382:   esac
                   10383: done
                   10384: 
                   10385: 
                   10386: # If the user did not use the arguments to specify the items to instantiate,
                   10387: # then the envvar interface is used.  Set only those that are not.
                   10388: # We use the long form for the default assignment because of an extremely
                   10389: # bizarre bug on SunOS 4.1.3.
                   10390: if $ac_need_defaults; then
                   10391:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10392:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10393:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10394: fi
                   10395: 
                   10396: # Have a temporary directory for convenience.  Make it in the build tree
                   10397: # simply because there is no reason against having it here, and in addition,
                   10398: # creating and moving files from /tmp can sometimes cause problems.
                   10399: # Hook for its removal unless debugging.
                   10400: # Note that there is a small window in which the directory will not be cleaned:
                   10401: # after its creation but before its name has been assigned to `$tmp'.
                   10402: $debug ||
                   10403: {
1.57      bertrand 10404:   tmp= ac_tmp=
1.1       bertrand 10405:   trap 'exit_status=$?
1.57      bertrand 10406:   : "${ac_tmp:=$tmp}"
                   10407:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10408: ' 0
1.15      bertrand 10409:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10410: }
                   10411: # Create a (secure) tmp directory for tmp files.
                   10412: 
                   10413: {
                   10414:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10415:   test -d "$tmp"
1.1       bertrand 10416: }  ||
                   10417: {
                   10418:   tmp=./conf$$-$RANDOM
                   10419:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10420: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10421: ac_tmp=$tmp
1.15      bertrand 10422: 
                   10423: # Set up the scripts for CONFIG_FILES section.
                   10424: # No need to generate them if there are no CONFIG_FILES.
                   10425: # This happens for instance with `./config.status config.h'.
                   10426: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10427: 
1.1       bertrand 10428: 
1.15      bertrand 10429: ac_cr=`echo X | tr X '\015'`
                   10430: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10431: # But we know of no other shell where ac_cr would be empty at this
                   10432: # point, so we can use a bashism as a fallback.
                   10433: if test "x$ac_cr" = x; then
                   10434:   eval ac_cr=\$\'\\r\'
                   10435: fi
                   10436: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10437: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10438:   ac_cs_awk_cr='\\r'
1.15      bertrand 10439: else
                   10440:   ac_cs_awk_cr=$ac_cr
                   10441: fi
1.1       bertrand 10442: 
1.57      bertrand 10443: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10444: _ACEOF
                   10445: 
                   10446: 
1.15      bertrand 10447: {
                   10448:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10449:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10450:   echo "_ACEOF"
                   10451: } >conf$$subs.sh ||
1.36      bertrand 10452:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10453: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10454: ac_delim='%!_!# '
                   10455: for ac_last_try in false false false false false :; do
1.15      bertrand 10456:   . ./conf$$subs.sh ||
1.36      bertrand 10457:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10458: 
1.15      bertrand 10459:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10460:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10461:     break
                   10462:   elif $ac_last_try; then
1.36      bertrand 10463:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10464:   else
                   10465:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10466:   fi
                   10467: done
1.15      bertrand 10468: rm -f conf$$subs.sh
1.1       bertrand 10469: 
1.15      bertrand 10470: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10471: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10472: _ACEOF
                   10473: sed -n '
                   10474: h
                   10475: s/^/S["/; s/!.*/"]=/
                   10476: p
                   10477: g
                   10478: s/^[^!]*!//
                   10479: :repl
                   10480: t repl
                   10481: s/'"$ac_delim"'$//
                   10482: t delim
                   10483: :nl
                   10484: h
                   10485: s/\(.\{148\}\)..*/\1/
                   10486: t more1
                   10487: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10488: p
                   10489: n
                   10490: b repl
                   10491: :more1
                   10492: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10493: p
                   10494: g
                   10495: s/.\{148\}//
                   10496: t nl
                   10497: :delim
                   10498: h
                   10499: s/\(.\{148\}\)..*/\1/
                   10500: t more2
                   10501: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10502: p
                   10503: b
                   10504: :more2
                   10505: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10506: p
                   10507: g
                   10508: s/.\{148\}//
                   10509: t delim
                   10510: ' <conf$$subs.awk | sed '
                   10511: /^[^""]/{
                   10512:   N
                   10513:   s/\n//
                   10514: }
                   10515: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10516: rm -f conf$$subs.awk
                   10517: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10518: _ACAWK
1.57      bertrand 10519: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10520:   for (key in S) S_is_set[key] = 1
                   10521:   FS = ""
1.1       bertrand 10522: 
1.15      bertrand 10523: }
                   10524: {
                   10525:   line = $ 0
                   10526:   nfields = split(line, field, "@")
                   10527:   substed = 0
                   10528:   len = length(field[1])
                   10529:   for (i = 2; i < nfields; i++) {
                   10530:     key = field[i]
                   10531:     keylen = length(key)
                   10532:     if (S_is_set[key]) {
                   10533:       value = S[key]
                   10534:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10535:       len += length(value) + length(field[++i])
                   10536:       substed = 1
                   10537:     } else
                   10538:       len += 1 + keylen
                   10539:   }
1.1       bertrand 10540: 
1.15      bertrand 10541:   print line
                   10542: }
1.1       bertrand 10543: 
1.15      bertrand 10544: _ACAWK
1.14      bertrand 10545: _ACEOF
1.15      bertrand 10546: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10547: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10548:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10549: else
                   10550:   cat
1.57      bertrand 10551: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10552:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10553: _ACEOF
                   10554: 
1.36      bertrand 10555: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10556: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10557: # trailing colons and then remove the whole line if VPATH becomes empty
                   10558: # (actually we leave an empty line to preserve line numbers).
                   10559: if test "x$srcdir" = x.; then
1.36      bertrand 10560:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10561: h
                   10562: s///
                   10563: s/^/:/
                   10564: s/[     ]*$/:/
                   10565: s/:\$(srcdir):/:/g
                   10566: s/:\${srcdir}:/:/g
                   10567: s/:@srcdir@:/:/g
                   10568: s/^:*//
1.1       bertrand 10569: s/:*$//
1.36      bertrand 10570: x
                   10571: s/\(=[  ]*\).*/\1/
                   10572: G
                   10573: s/\n//
1.1       bertrand 10574: s/^[^=]*=[  ]*$//
                   10575: }'
                   10576: fi
                   10577: 
1.15      bertrand 10578: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10579: fi # test -n "$CONFIG_FILES"
                   10580: 
1.15      bertrand 10581: # Set up the scripts for CONFIG_HEADERS section.
                   10582: # No need to generate them if there are no CONFIG_HEADERS.
                   10583: # This happens for instance with `./config.status Makefile'.
                   10584: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10585: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10586: BEGIN {
                   10587: _ACEOF
                   10588: 
                   10589: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10590: # here-document in config.status, that substitutes the proper values into
                   10591: # config.h.in to produce config.h.
                   10592: 
                   10593: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10594: # handling of long lines.
                   10595: ac_delim='%!_!# '
                   10596: for ac_last_try in false false :; do
1.57      bertrand 10597:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10598:   if test -z "$ac_tt"; then
1.15      bertrand 10599:     break
                   10600:   elif $ac_last_try; then
1.36      bertrand 10601:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10602:   else
                   10603:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10604:   fi
                   10605: done
                   10606: 
                   10607: # For the awk script, D is an array of macro values keyed by name,
                   10608: # likewise P contains macro parameters if any.  Preserve backslash
                   10609: # newline sequences.
                   10610: 
                   10611: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10612: sed -n '
                   10613: s/.\{148\}/&'"$ac_delim"'/g
                   10614: t rset
                   10615: :rset
                   10616: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10617: t def
                   10618: d
                   10619: :def
                   10620: s/\\$//
                   10621: t bsnl
                   10622: s/["\\]/\\&/g
                   10623: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10624: D["\1"]=" \3"/p
                   10625: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10626: d
                   10627: :bsnl
                   10628: s/["\\]/\\&/g
                   10629: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10630: D["\1"]=" \3\\\\\\n"\\/p
                   10631: t cont
                   10632: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10633: t cont
                   10634: d
                   10635: :cont
                   10636: n
                   10637: s/.\{148\}/&'"$ac_delim"'/g
                   10638: t clear
                   10639: :clear
                   10640: s/\\$//
                   10641: t bsnlc
                   10642: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10643: d
                   10644: :bsnlc
                   10645: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10646: b cont
                   10647: ' <confdefs.h | sed '
                   10648: s/'"$ac_delim"'/"\\\
                   10649: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10650: 
                   10651: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10652:   for (key in D) D_is_set[key] = 1
                   10653:   FS = ""
                   10654: }
                   10655: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10656:   line = \$ 0
                   10657:   split(line, arg, " ")
                   10658:   if (arg[1] == "#") {
                   10659:     defundef = arg[2]
                   10660:     mac1 = arg[3]
                   10661:   } else {
                   10662:     defundef = substr(arg[1], 2)
                   10663:     mac1 = arg[2]
                   10664:   }
                   10665:   split(mac1, mac2, "(") #)
                   10666:   macro = mac2[1]
                   10667:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10668:   if (D_is_set[macro]) {
                   10669:     # Preserve the white space surrounding the "#".
                   10670:     print prefix "define", macro P[macro] D[macro]
                   10671:     next
                   10672:   } else {
                   10673:     # Replace #undef with comments.  This is necessary, for example,
                   10674:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10675:     # on some systems where configure will not decide to define it.
                   10676:     if (defundef == "undef") {
                   10677:       print "/*", prefix defundef, macro, "*/"
                   10678:       next
                   10679:     }
                   10680:   }
                   10681: }
                   10682: { print }
                   10683: _ACAWK
                   10684: _ACEOF
                   10685: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10686:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10687: fi # test -n "$CONFIG_HEADERS"
                   10688: 
1.1       bertrand 10689: 
1.15      bertrand 10690: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10691: shift
                   10692: for ac_tag
1.1       bertrand 10693: do
                   10694:   case $ac_tag in
                   10695:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10696:   esac
                   10697:   case $ac_mode$ac_tag in
                   10698:   :[FHL]*:*);;
1.57      bertrand 10699:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10700:   :[FH]-) ac_tag=-:-;;
                   10701:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10702:   esac
                   10703:   ac_save_IFS=$IFS
                   10704:   IFS=:
                   10705:   set x $ac_tag
                   10706:   IFS=$ac_save_IFS
                   10707:   shift
                   10708:   ac_file=$1
                   10709:   shift
                   10710: 
                   10711:   case $ac_mode in
                   10712:   :L) ac_source=$1;;
                   10713:   :[FH])
                   10714:     ac_file_inputs=
                   10715:     for ac_f
                   10716:     do
                   10717:       case $ac_f in
1.57      bertrand 10718:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10719:       *) # Look for the file first in the build tree, then in the source tree
                   10720:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10721:     # because $ac_f cannot contain `:'.
                   10722:     test -f "$ac_f" ||
                   10723:       case $ac_f in
                   10724:       [\\/$]*) false;;
                   10725:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10726:       esac ||
1.57      bertrand 10727:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10728:       esac
1.15      bertrand 10729:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10730:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10731:     done
                   10732: 
                   10733:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10734:     # use $as_me), people would be surprised to read:
                   10735:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10736:     configure_input='Generated from '`
                   10737:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10738:    `' by configure.'
1.1       bertrand 10739:     if test x"$ac_file" != x-; then
                   10740:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10741:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10742: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10743:     fi
1.15      bertrand 10744:     # Neutralize special characters interpreted by sed in replacement strings.
                   10745:     case $configure_input in #(
                   10746:     *\&* | *\|* | *\\* )
                   10747:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10748:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10749:     *) ac_sed_conf_input=$configure_input;;
                   10750:     esac
1.1       bertrand 10751: 
                   10752:     case $ac_tag in
1.57      bertrand 10753:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10754:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10755:     esac
                   10756:     ;;
                   10757:   esac
                   10758: 
                   10759:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10760: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10761:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10762:     X"$ac_file" : 'X\(//\)$' \| \
                   10763:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10764: $as_echo X"$ac_file" |
1.1       bertrand 10765:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10766:        s//\1/
                   10767:        q
                   10768:      }
                   10769:      /^X\(\/\/\)[^/].*/{
                   10770:        s//\1/
                   10771:        q
                   10772:      }
                   10773:      /^X\(\/\/\)$/{
                   10774:        s//\1/
                   10775:        q
                   10776:      }
                   10777:      /^X\(\/\).*/{
                   10778:        s//\1/
                   10779:        q
                   10780:      }
                   10781:      s/.*/./; q'`
1.15      bertrand 10782:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10783:   ac_builddir=.
                   10784: 
                   10785: case "$ac_dir" in
                   10786: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10787: *)
1.15      bertrand 10788:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10789:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10790:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10791:   case $ac_top_builddir_sub in
                   10792:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10793:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10794:   esac ;;
                   10795: esac
                   10796: ac_abs_top_builddir=$ac_pwd
                   10797: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10798: # for backward compatibility:
                   10799: ac_top_builddir=$ac_top_build_prefix
                   10800: 
                   10801: case $srcdir in
                   10802:   .)  # We are building in place.
                   10803:     ac_srcdir=.
                   10804:     ac_top_srcdir=$ac_top_builddir_sub
                   10805:     ac_abs_top_srcdir=$ac_pwd ;;
                   10806:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10807:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10808:     ac_top_srcdir=$srcdir
                   10809:     ac_abs_top_srcdir=$srcdir ;;
                   10810:   *) # Relative name.
                   10811:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10812:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10813:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10814: esac
                   10815: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10816: 
                   10817: 
                   10818:   case $ac_mode in
                   10819:   :F)
                   10820:   #
                   10821:   # CONFIG_FILE
                   10822:   #
                   10823: 
                   10824:   case $INSTALL in
                   10825:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10826:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10827:   esac
                   10828:   ac_MKDIR_P=$MKDIR_P
                   10829:   case $MKDIR_P in
                   10830:   [\\/$]* | ?:[\\/]* ) ;;
                   10831:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10832:   esac
                   10833: _ACEOF
                   10834: 
1.15      bertrand 10835: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10836: # If the template does not know about datarootdir, expand it.
                   10837: # FIXME: This hack should be removed a few years after 2.60.
                   10838: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10839: ac_sed_dataroot='
                   10840: /datarootdir/ {
1.1       bertrand 10841:   p
                   10842:   q
                   10843: }
                   10844: /@datadir@/p
                   10845: /@docdir@/p
                   10846: /@infodir@/p
                   10847: /@localedir@/p
1.15      bertrand 10848: /@mandir@/p'
                   10849: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10850: *datarootdir*) ac_datarootdir_seen=yes;;
                   10851: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10852:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10853: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10854: _ACEOF
1.15      bertrand 10855: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10856:   ac_datarootdir_hack='
                   10857:   s&@datadir@&$datadir&g
                   10858:   s&@docdir@&$docdir&g
                   10859:   s&@infodir@&$infodir&g
                   10860:   s&@localedir@&$localedir&g
                   10861:   s&@mandir@&$mandir&g
1.15      bertrand 10862:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10863: esac
                   10864: _ACEOF
                   10865: 
                   10866: # Neutralize VPATH when `$srcdir' = `.'.
                   10867: # Shell code in configure.ac might set extrasub.
                   10868: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10869: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10870: ac_sed_extra="$ac_vpsub
1.1       bertrand 10871: $extrasub
                   10872: _ACEOF
1.15      bertrand 10873: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10874: :t
                   10875: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10876: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10877: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10878: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10879: s&@srcdir@&$ac_srcdir&;t t
                   10880: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10881: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10882: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10883: s&@builddir@&$ac_builddir&;t t
                   10884: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10885: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10886: s&@INSTALL@&$ac_INSTALL&;t t
                   10887: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10888: $ac_datarootdir_hack
1.15      bertrand 10889: "
1.57      bertrand 10890: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10891:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10892: 
                   10893: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10894:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10895:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10896:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10897:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10898: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10899: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10900: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10901: 
1.57      bertrand 10902:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10903:   case $ac_file in
1.57      bertrand 10904:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10905:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10906:   esac \
1.36      bertrand 10907:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10908:  ;;
                   10909:   :H)
                   10910:   #
                   10911:   # CONFIG_HEADER
                   10912:   #
                   10913:   if test x"$ac_file" != x-; then
1.15      bertrand 10914:     {
                   10915:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10916:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10917:     } >"$ac_tmp/config.h" \
1.36      bertrand 10918:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10919:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10920:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10921: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10922:     else
1.15      bertrand 10923:       rm -f "$ac_file"
1.57      bertrand 10924:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10925:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10926:     fi
                   10927:   else
1.15      bertrand 10928:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10929:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10930:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10931:   fi
1.15      bertrand 10932: # Compute "$ac_file"'s index in $config_headers.
                   10933: _am_arg="$ac_file"
1.1       bertrand 10934: _am_stamp_count=1
                   10935: for _am_header in $config_headers :; do
                   10936:   case $_am_header in
                   10937:     $_am_arg | $_am_arg:* )
                   10938:       break ;;
                   10939:     * )
                   10940:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10941:   esac
                   10942: done
                   10943: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10944: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10945:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10946:     X"$_am_arg" : 'X\(//\)$' \| \
                   10947:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10948: $as_echo X"$_am_arg" |
1.1       bertrand 10949:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10950:        s//\1/
                   10951:        q
                   10952:      }
                   10953:      /^X\(\/\/\)[^/].*/{
                   10954:        s//\1/
                   10955:        q
                   10956:      }
                   10957:      /^X\(\/\/\)$/{
                   10958:        s//\1/
                   10959:        q
                   10960:      }
                   10961:      /^X\(\/\).*/{
                   10962:        s//\1/
                   10963:        q
                   10964:      }
                   10965:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10966:  ;;
                   10967: 
1.15      bertrand 10968:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10969: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10970:  ;;
                   10971:   esac
                   10972: 
                   10973: 
                   10974:   case $ac_file$ac_mode in
1.15      bertrand 10975:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10976:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10977:   # are listed without --file.  Let's play safe and only enable the eval
                   10978:   # if we detect the quoting.
                   10979:   case $CONFIG_FILES in
                   10980:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10981:   *)   set x $CONFIG_FILES ;;
                   10982:   esac
                   10983:   shift
                   10984:   for mf
                   10985:   do
                   10986:     # Strip MF so we end up with the name of the file.
                   10987:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10988:     # Check whether this is an Automake generated Makefile or not.
                   10989:     # We used to match only the files named `Makefile.in', but
                   10990:     # some people rename them; so instead we look at the file content.
                   10991:     # Grep'ing the first line is not enough: some people post-process
                   10992:     # each Makefile.in and add a new line on top of each file to say so.
                   10993:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10994:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10995:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10996:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10997: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10998:     X"$mf" : 'X\(//\)[^/]' \| \
                   10999:     X"$mf" : 'X\(//\)$' \| \
                   11000:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11001: $as_echo X"$mf" |
1.1       bertrand 11002:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11003:        s//\1/
                   11004:        q
                   11005:      }
                   11006:      /^X\(\/\/\)[^/].*/{
                   11007:        s//\1/
                   11008:        q
                   11009:      }
                   11010:      /^X\(\/\/\)$/{
                   11011:        s//\1/
                   11012:        q
                   11013:      }
                   11014:      /^X\(\/\).*/{
                   11015:        s//\1/
                   11016:        q
                   11017:      }
                   11018:      s/.*/./; q'`
1.15      bertrand 11019:     else
                   11020:       continue
                   11021:     fi
                   11022:     # Extract the definition of DEPDIR, am__include, and am__quote
                   11023:     # from the Makefile without running `make'.
                   11024:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   11025:     test -z "$DEPDIR" && continue
                   11026:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   11027:     test -z "am__include" && continue
                   11028:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   11029:     # When using ansi2knr, U may be empty or an underscore; expand it
                   11030:     U=`sed -n 's/^U = //p' < "$mf"`
                   11031:     # Find all dependency output files, they are included files with
                   11032:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   11033:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   11034:     # expansion.
                   11035:     for file in `sed -n "
                   11036:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   11037:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   11038:       # Make sure the directory exists.
                   11039:       test -f "$dirpart/$file" && continue
                   11040:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 11041: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11042:     X"$file" : 'X\(//\)[^/]' \| \
                   11043:     X"$file" : 'X\(//\)$' \| \
                   11044:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11045: $as_echo X"$file" |
1.1       bertrand 11046:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11047:        s//\1/
                   11048:        q
                   11049:      }
                   11050:      /^X\(\/\/\)[^/].*/{
                   11051:        s//\1/
                   11052:        q
                   11053:      }
                   11054:      /^X\(\/\/\)$/{
                   11055:        s//\1/
                   11056:        q
                   11057:      }
                   11058:      /^X\(\/\).*/{
                   11059:        s//\1/
                   11060:        q
                   11061:      }
                   11062:      s/.*/./; q'`
1.15      bertrand 11063:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11064:       # echo "creating $dirpart/$file"
                   11065:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11066:     done
                   11067:   done
1.15      bertrand 11068: }
1.1       bertrand 11069:  ;;
                   11070: 
                   11071:   esac
                   11072: done # for ac_tag
                   11073: 
                   11074: 
1.15      bertrand 11075: as_fn_exit 0
1.1       bertrand 11076: _ACEOF
                   11077: ac_clean_files=$ac_clean_files_save
                   11078: 
1.15      bertrand 11079: test $ac_write_fail = 0 ||
1.36      bertrand 11080:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11081: 
1.1       bertrand 11082: 
                   11083: # configure is writing to config.log, and then calls config.status.
                   11084: # config.status does its own redirection, appending to config.log.
                   11085: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11086: # by configure, so config.status won't be able to write to it; its
                   11087: # output is simply discarded.  So we exec the FD to /dev/null,
                   11088: # effectively closing config.log, so it can be properly (re)opened and
                   11089: # appended to by config.status.  When coming back to configure, we
                   11090: # need to make the FD available again.
                   11091: if test "$no_create" != yes; then
                   11092:   ac_cs_success=:
                   11093:   ac_config_status_args=
                   11094:   test "$silent" = yes &&
                   11095:     ac_config_status_args="$ac_config_status_args --quiet"
                   11096:   exec 5>/dev/null
                   11097:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11098:   exec 5>>config.log
                   11099:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11100:   # would make configure fail if this is the last instruction.
1.36      bertrand 11101:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11102: fi
                   11103: 
                   11104: #
                   11105: # CONFIG_SUBDIRS section.
                   11106: #
                   11107: if test "$no_recursion" != yes; then
                   11108: 
1.15      bertrand 11109:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11110:   # so they do not pile up.
1.1       bertrand 11111:   ac_sub_configure_args=
                   11112:   ac_prev=
                   11113:   eval "set x $ac_configure_args"
                   11114:   shift
                   11115:   for ac_arg
                   11116:   do
                   11117:     if test -n "$ac_prev"; then
                   11118:       ac_prev=
                   11119:       continue
                   11120:     fi
                   11121:     case $ac_arg in
                   11122:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11123:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11124:       ac_prev=cache_file ;;
                   11125:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11126:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11127:     | --c=*)
                   11128:       ;;
                   11129:     --config-cache | -C)
                   11130:       ;;
                   11131:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11132:       ac_prev=srcdir ;;
                   11133:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11134:       ;;
                   11135:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11136:       ac_prev=prefix ;;
                   11137:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11138:       ;;
1.15      bertrand 11139:     --disable-option-checking)
                   11140:       ;;
1.1       bertrand 11141:     *)
                   11142:       case $ac_arg in
1.15      bertrand 11143:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11144:       esac
1.15      bertrand 11145:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11146:     esac
                   11147:   done
                   11148: 
                   11149:   # Always prepend --prefix to ensure using the same prefix
                   11150:   # in subdir configurations.
                   11151:   ac_arg="--prefix=$prefix"
                   11152:   case $ac_arg in
1.15      bertrand 11153:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11154:   esac
                   11155:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11156: 
                   11157:   # Pass --silent
                   11158:   if test "$silent" = yes; then
                   11159:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11160:   fi
                   11161: 
1.15      bertrand 11162:   # Always prepend --disable-option-checking to silence warnings, since
                   11163:   # different subdirs can have different --enable and --with options.
                   11164:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11165: 
1.1       bertrand 11166:   ac_popdir=`pwd`
                   11167:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11168: 
                   11169:     # Do not complain, so a configure script can configure whichever
                   11170:     # parts of a large source tree are present.
                   11171:     test -d "$srcdir/$ac_dir" || continue
                   11172: 
                   11173:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11174:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11175:     $as_echo "$ac_msg" >&6
                   11176:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11177:     ac_builddir=.
                   11178: 
                   11179: case "$ac_dir" in
                   11180: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11181: *)
1.15      bertrand 11182:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11183:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11184:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11185:   case $ac_top_builddir_sub in
                   11186:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11187:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11188:   esac ;;
                   11189: esac
                   11190: ac_abs_top_builddir=$ac_pwd
                   11191: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11192: # for backward compatibility:
                   11193: ac_top_builddir=$ac_top_build_prefix
                   11194: 
                   11195: case $srcdir in
                   11196:   .)  # We are building in place.
                   11197:     ac_srcdir=.
                   11198:     ac_top_srcdir=$ac_top_builddir_sub
                   11199:     ac_abs_top_srcdir=$ac_pwd ;;
                   11200:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11201:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11202:     ac_top_srcdir=$srcdir
                   11203:     ac_abs_top_srcdir=$srcdir ;;
                   11204:   *) # Relative name.
                   11205:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11206:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11207:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11208: esac
                   11209: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11210: 
                   11211: 
                   11212:     cd "$ac_dir"
                   11213: 
                   11214:     # Check for guested configure; otherwise get Cygnus style configure.
                   11215:     if test -f "$ac_srcdir/configure.gnu"; then
                   11216:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11217:     elif test -f "$ac_srcdir/configure"; then
                   11218:       ac_sub_configure=$ac_srcdir/configure
                   11219:     elif test -f "$ac_srcdir/configure.in"; then
                   11220:       # This should be Cygnus configure.
                   11221:       ac_sub_configure=$ac_aux_dir/configure
                   11222:     else
1.15      bertrand 11223:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11224: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11225:       ac_sub_configure=
                   11226:     fi
                   11227: 
                   11228:     # The recursion is here.
                   11229:     if test -n "$ac_sub_configure"; then
                   11230:       # Make the cache file name correct relative to the subdirectory.
                   11231:       case $cache_file in
                   11232:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11233:       *) # Relative name.
                   11234:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11235:       esac
                   11236: 
1.15      bertrand 11237:       { $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
                   11238: $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 11239:       # The eval makes quoting arguments work.
                   11240:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11241:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11242:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11243:     fi
                   11244: 
                   11245:     cd "$ac_popdir"
                   11246:   done
                   11247: fi
1.15      bertrand 11248: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11249:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11250: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11251: fi
1.1       bertrand 11252: 

CVSweb interface <joel.bertrand@systella.fr>