Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # From configure.ac Id: 381cb601a24a5cba9f1a5a52472d1c5e6b748a76 .
      3 # Guess values for system-dependent variables and create Makefiles.
      4 # Generated by GNU Autoconf 2.71.
      5 #
      6 # Copyright 1998-2024 The OpenLDAP Foundation. All rights reserved.
      7 # Restrictions apply, see COPYRIGHT and LICENSE files.
      8 #
      9 #
     10 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
     11 # Inc.
     12 #
     13 #
     14 # This configure script is free software; the Free Software Foundation
     15 # gives unlimited permission to copy, distribute and modify it.
     16 ## -------------------- ##
     17 ## M4sh Initialization. ##
     18 ## -------------------- ##
     19 
     20 # Be more Bourne compatible
     21 DUALCASE=1; export DUALCASE # for MKS sh
     22 as_nop=:
     23 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     24 then :
     25   emulate sh
     26   NULLCMD=:
     27   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     28   # is contrary to our usage.  Disable this feature.
     29   alias -g '${1+"$@"}'='"$@"'
     30   setopt NO_GLOB_SUBST
     31 else $as_nop
     32   case `(set -o) 2>/dev/null` in #(
     33   *posix*) :
     34     set -o posix ;; #(
     35   *) :
     36      ;;
     37 esac
     38 fi
     39 
     40 
     41 
     42 # Reset variables that may have inherited troublesome values from
     43 # the environment.
     44 
     45 # IFS needs to be set, to space, tab, and newline, in precisely that order.
     46 # (If _AS_PATH_WALK were called with IFS unset, it would have the
     47 # side effect of setting IFS to empty, thus disabling word splitting.)
     48 # Quoting is to prevent editors from complaining about space-tab.
     49 as_nl='
     50 '
     51 export as_nl
     52 IFS=" ""	$as_nl"
     53 
     54 PS1='$ '
     55 PS2='> '
     56 PS4='+ '
     57 
     58 # Ensure predictable behavior from utilities with locale-dependent output.
     59 LC_ALL=C
     60 export LC_ALL
     61 LANGUAGE=C
     62 export LANGUAGE
     63 
     64 # We cannot yet rely on "unset" to work, but we need these variables
     65 # to be unset--not just set to an empty or harmless value--now, to
     66 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     67 # also avoids known problems related to "unset" and subshell syntax
     68 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     69 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     70 do eval test \${$as_var+y} \
     71   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     72 done
     73 
     74 # Ensure that fds 0, 1, and 2 are open.
     75 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     76 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     77 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     78 
     79 # The user is always right.
     80 if ${PATH_SEPARATOR+false} :; then
     81   PATH_SEPARATOR=:
     82   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     83     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     84       PATH_SEPARATOR=';'
     85   }
     86 fi
     87 
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   case $as_dir in #(((
     98     '') as_dir=./ ;;
     99     */) ;;
    100     *) as_dir=$as_dir/ ;;
    101   esac
    102     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
    103   done
    104 IFS=$as_save_IFS
    105 
    106      ;;
    107 esac
    108 # We did not find ourselves, most probably we were run as `sh COMMAND'
    109 # in which case we are not to be found in the path.
    110 if test "x$as_myself" = x; then
    111   as_myself=$0
    112 fi
    113 if test ! -f "$as_myself"; then
    114   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    115   exit 1
    116 fi
    117 
    118 
    119 # Use a proper internal environment variable to ensure we don't fall
    120   # into an infinite loop, continuously re-executing ourselves.
    121   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    122     _as_can_reexec=no; export _as_can_reexec;
    123     # We cannot yet assume a decent shell, so we have to provide a
    124 # neutralization value for shells without unset; and this also
    125 # works around shells that cannot unset nonexistent variables.
    126 # Preserve -v and -x to the replacement shell.
    127 BASH_ENV=/dev/null
    128 ENV=/dev/null
    129 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    130 case $- in # ((((
    131   *v*x* | *x*v* ) as_opts=-vx ;;
    132   *v* ) as_opts=-v ;;
    133   *x* ) as_opts=-x ;;
    134   * ) as_opts= ;;
    135 esac
    136 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    137 # Admittedly, this is quite paranoid, since all the known shells bail
    138 # out after a failed `exec'.
    139 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    140 exit 255
    141   fi
    142   # We don't want this to propagate to other subprocesses.
    143           { _as_can_reexec=; unset _as_can_reexec;}
    144 if test "x$CONFIG_SHELL" = x; then
    145   as_bourne_compatible="as_nop=:
    146 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    147 then :
    148   emulate sh
    149   NULLCMD=:
    150   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    151   # is contrary to our usage.  Disable this feature.
    152   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    153   setopt NO_GLOB_SUBST
    154 else \$as_nop
    155   case \`(set -o) 2>/dev/null\` in #(
    156   *posix*) :
    157     set -o posix ;; #(
    158   *) :
    159      ;;
    160 esac
    161 fi
    162 "
    163   as_required="as_fn_return () { (exit \$1); }
    164 as_fn_success () { as_fn_return 0; }
    165 as_fn_failure () { as_fn_return 1; }
    166 as_fn_ret_success () { return 0; }
    167 as_fn_ret_failure () { return 1; }
    168 
    169 exitcode=0
    170 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    171 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    172 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    173 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    174 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    175 then :
    176 
    177 else \$as_nop
    178   exitcode=1; echo positional parameters were not saved.
    179 fi
    180 test x\$exitcode = x0 || exit 1
    181 blah=\$(echo \$(echo blah))
    182 test x\"\$blah\" = xblah || exit 1
    183 test -x / || exit 1"
    184   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    185   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    186   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    187   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    188 
    189   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    190     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    191     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    192     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    193     PATH=/empty FPATH=/empty; export PATH FPATH
    194     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    195       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
    196 test \$(( 1 + 1 )) = 2 || exit 1"
    197   if (eval "$as_required") 2>/dev/null
    198 then :
    199   as_have_required=yes
    200 else $as_nop
    201   as_have_required=no
    202 fi
    203   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    204 then :
    205 
    206 else $as_nop
    207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    208 as_found=false
    209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    210 do
    211   IFS=$as_save_IFS
    212   case $as_dir in #(((
    213     '') as_dir=./ ;;
    214     */) ;;
    215     *) as_dir=$as_dir/ ;;
    216   esac
    217   as_found=:
    218   case $as_dir in #(
    219 	 /*)
    220 	   for as_base in sh bash ksh sh5; do
    221 	     # Try only shells that exist, to save several forks.
    222 	     as_shell=$as_dir$as_base
    223 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    224 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    225 then :
    226   CONFIG_SHELL=$as_shell as_have_required=yes
    227 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    228 then :
    229   break 2
    230 fi
    231 fi
    232 	   done;;
    233        esac
    234   as_found=false
    235 done
    236 IFS=$as_save_IFS
    237 if $as_found
    238 then :
    239 
    240 else $as_nop
    241   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    242 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    243 then :
    244   CONFIG_SHELL=$SHELL as_have_required=yes
    245 fi
    246 fi
    247 
    248 
    249       if test "x$CONFIG_SHELL" != x
    250 then :
    251   export CONFIG_SHELL
    252              # We cannot yet assume a decent shell, so we have to provide a
    253 # neutralization value for shells without unset; and this also
    254 # works around shells that cannot unset nonexistent variables.
    255 # Preserve -v and -x to the replacement shell.
    256 BASH_ENV=/dev/null
    257 ENV=/dev/null
    258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    259 case $- in # ((((
    260   *v*x* | *x*v* ) as_opts=-vx ;;
    261   *v* ) as_opts=-v ;;
    262   *x* ) as_opts=-x ;;
    263   * ) as_opts= ;;
    264 esac
    265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    266 # Admittedly, this is quite paranoid, since all the known shells bail
    267 # out after a failed `exec'.
    268 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    269 exit 255
    270 fi
    271 
    272     if test x$as_have_required = xno
    273 then :
    274   printf "%s\n" "$0: This script requires a shell more modern than all"
    275   printf "%s\n" "$0: the shells that I found on your system."
    276   if test ${ZSH_VERSION+y} ; then
    277     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    278     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    279   else
    280     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org about your system,
    281 $0: including any error possibly output before this
    282 $0: message. Then install a modern shell, or manually run
    283 $0: the script under such a shell if you do have one."
    284   fi
    285   exit 1
    286 fi
    287 fi
    288 fi
    289 SHELL=${CONFIG_SHELL-/bin/sh}
    290 export SHELL
    291 # Unset more variables known to interfere with behavior of common tools.
    292 CLICOLOR_FORCE= GREP_OPTIONS=
    293 unset CLICOLOR_FORCE GREP_OPTIONS
    294 
    295 ## --------------------- ##
    296 ## M4sh Shell Functions. ##
    297 ## --------------------- ##
    298 # as_fn_unset VAR
    299 # ---------------
    300 # Portably unset VAR.
    301 as_fn_unset ()
    302 {
    303   { eval $1=; unset $1;}
    304 }
    305 as_unset=as_fn_unset
    306 
    307 
    308 # as_fn_set_status STATUS
    309 # -----------------------
    310 # Set $? to STATUS, without forking.
    311 as_fn_set_status ()
    312 {
    313   return $1
    314 } # as_fn_set_status
    315 
    316 # as_fn_exit STATUS
    317 # -----------------
    318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    319 as_fn_exit ()
    320 {
    321   set +e
    322   as_fn_set_status $1
    323   exit $1
    324 } # as_fn_exit
    325 # as_fn_nop
    326 # ---------
    327 # Do nothing but, unlike ":", preserve the value of $?.
    328 as_fn_nop ()
    329 {
    330   return $?
    331 }
    332 as_nop=as_fn_nop
    333 
    334 # as_fn_mkdir_p
    335 # -------------
    336 # Create "$as_dir" as a directory, including parents if necessary.
    337 as_fn_mkdir_p ()
    338 {
    339 
    340   case $as_dir in #(
    341   -*) as_dir=./$as_dir;;
    342   esac
    343   test -d "$as_dir" || eval $as_mkdir_p || {
    344     as_dirs=
    345     while :; do
    346       case $as_dir in #(
    347       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    348       *) as_qdir=$as_dir;;
    349       esac
    350       as_dirs="'$as_qdir' $as_dirs"
    351       as_dir=`$as_dirname -- "$as_dir" ||
    352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    353 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    354 	 X"$as_dir" : 'X\(//\)$' \| \
    355 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    356 printf "%s\n" X"$as_dir" |
    357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  /^X\(\/\/\)[^/].*/{
    362 	    s//\1/
    363 	    q
    364 	  }
    365 	  /^X\(\/\/\)$/{
    366 	    s//\1/
    367 	    q
    368 	  }
    369 	  /^X\(\/\).*/{
    370 	    s//\1/
    371 	    q
    372 	  }
    373 	  s/.*/./; q'`
    374       test -d "$as_dir" && break
    375     done
    376     test -z "$as_dirs" || eval "mkdir $as_dirs"
    377   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    378 
    379 
    380 } # as_fn_mkdir_p
    381 
    382 # as_fn_executable_p FILE
    383 # -----------------------
    384 # Test if FILE is an executable regular file.
    385 as_fn_executable_p ()
    386 {
    387   test -f "$1" && test -x "$1"
    388 } # as_fn_executable_p
    389 # as_fn_append VAR VALUE
    390 # ----------------------
    391 # Append the text in VALUE to the end of the definition contained in VAR. Take
    392 # advantage of any shell optimizations that allow amortized linear growth over
    393 # repeated appends, instead of the typical quadratic growth present in naive
    394 # implementations.
    395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    396 then :
    397   eval 'as_fn_append ()
    398   {
    399     eval $1+=\$2
    400   }'
    401 else $as_nop
    402   as_fn_append ()
    403   {
    404     eval $1=\$$1\$2
    405   }
    406 fi # as_fn_append
    407 
    408 # as_fn_arith ARG...
    409 # ------------------
    410 # Perform arithmetic evaluation on the ARGs, and store the result in the
    411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    412 # must be portable across $(()) and expr.
    413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    414 then :
    415   eval 'as_fn_arith ()
    416   {
    417     as_val=$(( $* ))
    418   }'
    419 else $as_nop
    420   as_fn_arith ()
    421   {
    422     as_val=`expr "$@" || test $? -eq 1`
    423   }
    424 fi # as_fn_arith
    425 
    426 # as_fn_nop
    427 # ---------
    428 # Do nothing but, unlike ":", preserve the value of $?.
    429 as_fn_nop ()
    430 {
    431   return $?
    432 }
    433 as_nop=as_fn_nop
    434 
    435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    436 # ----------------------------------------
    437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    439 # script with STATUS, using 1 if that was 0.
    440 as_fn_error ()
    441 {
    442   as_status=$1; test $as_status -eq 0 && as_status=1
    443   if test "$4"; then
    444     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    446   fi
    447   printf "%s\n" "$as_me: error: $2" >&2
    448   as_fn_exit $as_status
    449 } # as_fn_error
    450 
    451 if expr a : '\(a\)' >/dev/null 2>&1 &&
    452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    453   as_expr=expr
    454 else
    455   as_expr=false
    456 fi
    457 
    458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    459   as_basename=basename
    460 else
    461   as_basename=false
    462 fi
    463 
    464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    465   as_dirname=dirname
    466 else
    467   as_dirname=false
    468 fi
    469 
    470 as_me=`$as_basename -- "$0" ||
    471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    472 	 X"$0" : 'X\(//\)$' \| \
    473 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    474 printf "%s\n" X/"$0" |
    475     sed '/^.*\/\([^/][^/]*\)\/*$/{
    476 	    s//\1/
    477 	    q
    478 	  }
    479 	  /^X\/\(\/\/\)$/{
    480 	    s//\1/
    481 	    q
    482 	  }
    483 	  /^X\/\(\/\).*/{
    484 	    s//\1/
    485 	    q
    486 	  }
    487 	  s/.*/./; q'`
    488 
    489 # Avoid depending upon Character Ranges.
    490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    493 as_cr_digits='0123456789'
    494 as_cr_alnum=$as_cr_Letters$as_cr_digits
    495 
    496 
    497   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    498   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    499   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    500   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    501   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    502   sed -n '
    503     p
    504     /[$]LINENO/=
    505   ' <$as_myself |
    506     sed '
    507       s/[$]LINENO.*/&-/
    508       t lineno
    509       b
    510       :lineno
    511       N
    512       :loop
    513       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    514       t loop
    515       s/-\n.*//
    516     ' >$as_me.lineno &&
    517   chmod +x "$as_me.lineno" ||
    518     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    519 
    520   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    521   # already done that, so ensure we don't try to do so again and fall
    522   # in an infinite loop.  This has already happened in practice.
    523   _as_can_reexec=no; export _as_can_reexec
    524   # Don't try to exec as it changes $[0], causing all sort of problems
    525   # (the dirname of $[0] is not the place where we might find the
    526   # original and so on.  Autoconf is especially sensitive to this).
    527   . "./$as_me.lineno"
    528   # Exit status is that of the last command.
    529   exit
    530 }
    531 
    532 
    533 # Determine whether it's possible to make 'echo' print without a newline.
    534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    535 # for compatibility with existing Makefiles.
    536 ECHO_C= ECHO_N= ECHO_T=
    537 case `echo -n x` in #(((((
    538 -n*)
    539   case `echo 'xy\c'` in
    540   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    541   xy)  ECHO_C='\c';;
    542   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    543        ECHO_T='	';;
    544   esac;;
    545 *)
    546   ECHO_N='-n';;
    547 esac
    548 
    549 # For backward compatibility with old third-party macros, we provide
    550 # the shell variables $as_echo and $as_echo_n.  New code should use
    551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    552 as_echo='printf %s\n'
    553 as_echo_n='printf %s'
    554 
    555 
    556 rm -f conf$$ conf$$.exe conf$$.file
    557 if test -d conf$$.dir; then
    558   rm -f conf$$.dir/conf$$.file
    559 else
    560   rm -f conf$$.dir
    561   mkdir conf$$.dir 2>/dev/null
    562 fi
    563 if (echo >conf$$.file) 2>/dev/null; then
    564   if ln -s conf$$.file conf$$ 2>/dev/null; then
    565     as_ln_s='ln -s'
    566     # ... but there are two gotchas:
    567     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    568     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    569     # In both cases, we have to default to `cp -pR'.
    570     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    571       as_ln_s='cp -pR'
    572   elif ln conf$$.file conf$$ 2>/dev/null; then
    573     as_ln_s=ln
    574   else
    575     as_ln_s='cp -pR'
    576   fi
    577 else
    578   as_ln_s='cp -pR'
    579 fi
    580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    581 rmdir conf$$.dir 2>/dev/null
    582 
    583 if mkdir -p . 2>/dev/null; then
    584   as_mkdir_p='mkdir -p "$as_dir"'
    585 else
    586   test -d ./-p && rmdir ./-p
    587   as_mkdir_p=false
    588 fi
    589 
    590 as_test_x='test -x'
    591 as_executable_p=as_fn_executable_p
    592 
    593 # Sed expression to map a string onto a valid CPP name.
    594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    595 
    596 # Sed expression to map a string onto a valid variable name.
    597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    598 
    599 SHELL=${CONFIG_SHELL-/bin/sh}
    600 
    601 
    602 test -n "$DJDIR" || exec 7<&0 </dev/null
    603 exec 6>&1
    604 
    605 # Name of the host.
    606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    607 # so uname gets run too.
    608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    609 
    610 #
    611 # Initializations.
    612 #
    613 ac_default_prefix=/usr/local
    614 ac_clean_files=
    615 ac_config_libobj_dir=.
    616 LIBOBJS=
    617 cross_compiling=no
    618 subdirs=
    619 MFLAGS=
    620 MAKEFLAGS=
    621 
    622 # Identity of this package.
    623 PACKAGE_NAME=''
    624 PACKAGE_TARNAME=''
    625 PACKAGE_VERSION=''
    626 PACKAGE_STRING=''
    627 PACKAGE_BUGREPORT=''
    628 PACKAGE_URL=''
    629 
    630 ac_unique_file="OpenLDAP"
    631 ac_unique_file="build/version.sh"
    632 ac_default_prefix=/usr/local
    633 # Factoring default headers for most tests.
    634 ac_includes_default="\
    635 #include <stddef.h>
    636 #ifdef HAVE_STDIO_H
    637 # include <stdio.h>
    638 #endif
    639 #ifdef HAVE_STDLIB_H
    640 # include <stdlib.h>
    641 #endif
    642 #ifdef HAVE_STRING_H
    643 # include <string.h>
    644 #endif
    645 #ifdef HAVE_INTTYPES_H
    646 # include <inttypes.h>
    647 #endif
    648 #ifdef HAVE_STDINT_H
    649 # include <stdint.h>
    650 #endif
    651 #ifdef HAVE_STRINGS_H
    652 # include <strings.h>
    653 #endif
    654 #ifdef HAVE_SYS_TYPES_H
    655 # include <sys/types.h>
    656 #endif
    657 #ifdef HAVE_SYS_STAT_H
    658 # include <sys/stat.h>
    659 #endif
    660 #ifdef HAVE_UNISTD_H
    661 # include <unistd.h>
    662 #endif"
    663 
    664 ac_header_c_list=
    665 ac_func_c_list=
    666 ac_subst_vars='LTLIBOBJS
    667 SLAPD_SQL_INCLUDES
    668 SLAPD_SQL_LIBS
    669 SLAPD_SQL_LDFLAGS
    670 SLAPD_GMP_LIBS
    671 SLAPD_SLP_LIBS
    672 ARGON2_LIBS
    673 AUTH_LIBS
    674 LIBSLAPI
    675 SLAPI_LIBS
    676 MODULES_LIBS
    677 WITH_TLS_TYPE
    678 TLS_LIBS
    679 SASL_LIBS
    680 MOD_PERL_LDFLAGS
    681 SLAPD_PERL_LDFLAGS
    682 PERL_CPPFLAGS
    683 SLAPD_DYNAMIC_PWMODS
    684 SLAPD_DYNAMIC_OVERLAYS
    685 SLAPD_STATIC_OVERLAYS
    686 SLAPD_DYNAMIC_BACKENDS
    687 SLAPD_STATIC_BACKENDS
    688 SLAPD_NO_STATIC
    689 SLAPD_MODULES_LDFLAGS
    690 SLAPD_MODULES_CPPFLAGS
    691 WRAP_LIBS
    692 LEVENT_LIBS
    693 LUTIL_LIBS
    694 LTHREAD_LIBS
    695 SLAPD_NDB_INCS
    696 SLAPD_NDB_LIBS
    697 BALANCER_LIBS
    698 SLAPD_LIBS
    699 CLIENT_LIBS
    700 LDAP_LIBS
    701 BUILD_PW_ARGON2
    702 BUILD_BALANCER
    703 BUILD_VALSORT
    704 BUILD_UNIQUE
    705 BUILD_TRANSLUCENT
    706 BUILD_SYNCPROV
    707 BUILD_SSSVLV
    708 BUILD_SEQMOD
    709 BUILD_RWM
    710 BUILD_RETCODE
    711 BUILD_REMOTEAUTH
    712 BUILD_REFINT
    713 BUILD_PROXYCACHE
    714 BUILD_PPOLICY
    715 BUILD_OTP
    716 BUILD_NESTGROUP
    717 BUILD_MEMBEROF
    718 BUILD_HOMEDIR
    719 BUILD_LASTMOD
    720 BUILD_DYNLIST
    721 BUILD_DYNGROUP
    722 BUILD_DEREF
    723 BUILD_DENYOP
    724 BUILD_DDS
    725 BUILD_CONSTRAINT
    726 BUILD_COLLECT
    727 BUILD_AUTOCA
    728 BUILD_AUDITLOG
    729 BUILD_ACCESSLOG
    730 BUILD_WT
    731 BUILD_SQL
    732 BUILD_SOCK
    733 BUILD_SHELL
    734 BUILD_PERL
    735 BUILD_RELAY
    736 BUILD_PASSWD
    737 BUILD_NULL
    738 BUILD_NDB
    739 BUILD_ASYNCMETA
    740 BUILD_META
    741 BUILD_MDB
    742 BUILD_LDAP
    743 BUILD_DNSSRV
    744 SLAPD_SLAPI_DEPEND
    745 BUILD_SLAPI
    746 BUILD_SLAPD
    747 DO_VERSIONED_SYMBOLS
    748 OL_VERSIONED_SYMBOLS
    749 BUILD_LIBS_DYNAMIC
    750 BUILD_THREAD
    751 WITH_ACI_ENABLED
    752 WITH_MODULES_ENABLED
    753 WITH_TLS
    754 WITH_SASL
    755 PLAT
    756 LIBSRCS
    757 LIBOBJS
    758 systemdsystemunitdir
    759 WT_LIBS
    760 WT_CFLAGS
    761 PKG_CONFIG_LIBDIR
    762 PKG_CONFIG_PATH
    763 PKG_CONFIG
    764 LTSTATIC
    765 OL_MKDEP_FLAGS
    766 OL_MKDEP
    767 RC
    768 CPP
    769 PERLBIN
    770 LT_SYS_LIBRARY_PATH
    771 OTOOL64
    772 OTOOL
    773 LIPO
    774 NMEDIT
    775 DSYMUTIL
    776 MANIFEST_TOOL
    777 AWK
    778 RANLIB
    779 ac_ct_AR
    780 DLLTOOL
    781 OBJDUMP
    782 LN_S
    783 NM
    784 ac_ct_DUMPBIN
    785 DUMPBIN
    786 LD
    787 FGREP
    788 EGREP
    789 GREP
    790 SED
    791 OBJEXT
    792 EXEEXT
    793 ac_ct_CC
    794 CPPFLAGS
    795 LDFLAGS
    796 CFLAGS
    797 LIBTOOL
    798 SET_MAKE
    799 STRIP
    800 AR
    801 CC
    802 ldap_subdir
    803 top_builddir
    804 OPENLDAP_RELEASE_DATE
    805 OPENLDAP_LIBVERSION
    806 VERSION
    807 PACKAGE
    808 target_os
    809 target_vendor
    810 target_cpu
    811 target
    812 host_os
    813 host_vendor
    814 host_cpu
    815 host
    816 build_os
    817 build_vendor
    818 build_cpu
    819 build
    820 target_alias
    821 host_alias
    822 build_alias
    823 LIBS
    824 ECHO_T
    825 ECHO_N
    826 ECHO_C
    827 DEFS
    828 mandir
    829 localedir
    830 libdir
    831 psdir
    832 pdfdir
    833 dvidir
    834 htmldir
    835 infodir
    836 docdir
    837 oldincludedir
    838 includedir
    839 runstatedir
    840 localstatedir
    841 sharedstatedir
    842 sysconfdir
    843 datadir
    844 datarootdir
    845 libexecdir
    846 sbindir
    847 bindir
    848 program_transform_name
    849 prefix
    850 exec_prefix
    851 PACKAGE_URL
    852 PACKAGE_BUGREPORT
    853 PACKAGE_STRING
    854 PACKAGE_VERSION
    855 PACKAGE_TARNAME
    856 PACKAGE_NAME
    857 PATH_SEPARATOR
    858 SHELL'
    859 ac_subst_files=''
    860 ac_user_opts='
    861 enable_option_checking
    862 with_subdir
    863 enable_debug
    864 enable_dynamic
    865 enable_syslog
    866 enable_ipv6
    867 enable_local
    868 with_cyrus_sasl
    869 with_systemd
    870 with_fetch
    871 with_threads
    872 with_tls
    873 with_yielding_select
    874 with_mp
    875 with_odbc
    876 enable_xxslapdoptions
    877 enable_slapd
    878 enable_dynacl
    879 enable_aci
    880 enable_cleartext
    881 enable_crypt
    882 enable_spasswd
    883 enable_modules
    884 enable_rlookups
    885 enable_slapi
    886 enable_slp
    887 enable_wrappers
    888 enable_xxslapbackends
    889 enable_backends
    890 enable_dnssrv
    891 enable_ldap
    892 enable_mdb
    893 enable_meta
    894 enable_asyncmeta
    895 enable_null
    896 enable_passwd
    897 enable_perl
    898 enable_relay
    899 enable_sock
    900 enable_sql
    901 enable_wt
    902 enable_xxslapoverlays
    903 enable_overlays
    904 enable_accesslog
    905 enable_auditlog
    906 enable_autoca
    907 enable_collect
    908 enable_constraint
    909 enable_dds
    910 enable_deref
    911 enable_dyngroup
    912 enable_dynlist
    913 enable_homedir
    914 enable_memberof
    915 enable_nestgroup
    916 enable_otp
    917 enable_ppolicy
    918 enable_proxycache
    919 enable_refint
    920 enable_remoteauth
    921 enable_retcode
    922 enable_rwm
    923 enable_seqmod
    924 enable_sssvlv
    925 enable_syncprov
    926 enable_translucent
    927 enable_unique
    928 enable_valsort
    929 enable_pwmodoptions
    930 enable_argon2
    931 with_argon2
    932 enable_balanceroptions
    933 enable_balancer
    934 enable_xxliboptions
    935 enable_static
    936 enable_shared
    937 enable_versioning
    938 with_pic
    939 enable_fast_install
    940 with_aix_soname
    941 with_gnu_ld
    942 with_sysroot
    943 enable_libtool_lock
    944 with_xxinstall
    945 '
    946       ac_precious_vars='build_alias
    947 host_alias
    948 target_alias
    949 CC
    950 CFLAGS
    951 LDFLAGS
    952 LIBS
    953 CPPFLAGS
    954 LT_SYS_LIBRARY_PATH
    955 CPP
    956 PKG_CONFIG
    957 PKG_CONFIG_PATH
    958 PKG_CONFIG_LIBDIR
    959 WT_CFLAGS
    960 WT_LIBS
    961 systemdsystemunitdir'
    962 
    963 
    964 # Initialize some variables set by options.
    965 ac_init_help=
    966 ac_init_version=false
    967 ac_unrecognized_opts=
    968 ac_unrecognized_sep=
    969 # The variables have the same names as the options, with
    970 # dashes changed to underlines.
    971 cache_file=/dev/null
    972 exec_prefix=NONE
    973 no_create=
    974 no_recursion=
    975 prefix=NONE
    976 program_prefix=NONE
    977 program_suffix=NONE
    978 program_transform_name=s,x,x,
    979 silent=
    980 site=
    981 srcdir=
    982 verbose=
    983 x_includes=NONE
    984 x_libraries=NONE
    985 
    986 # Installation directory options.
    987 # These are left unexpanded so users can "make install exec_prefix=/foo"
    988 # and all the variables that are supposed to be based on exec_prefix
    989 # by default will actually change.
    990 # Use braces instead of parens because sh, perl, etc. also accept them.
    991 # (The list follows the same order as the GNU Coding Standards.)
    992 bindir='${exec_prefix}/bin'
    993 sbindir='${exec_prefix}/sbin'
    994 libexecdir='${exec_prefix}/libexec'
    995 datarootdir='${prefix}/share'
    996 datadir='${datarootdir}'
    997 sysconfdir='${prefix}/etc'
    998 sharedstatedir='${prefix}/com'
    999 localstatedir='${prefix}/var'
   1000 runstatedir='${localstatedir}/run'
   1001 includedir='${prefix}/include'
   1002 oldincludedir='/usr/include'
   1003 docdir='${datarootdir}/doc/${PACKAGE}'
   1004 infodir='${datarootdir}/info'
   1005 htmldir='${docdir}'
   1006 dvidir='${docdir}'
   1007 pdfdir='${docdir}'
   1008 psdir='${docdir}'
   1009 libdir='${exec_prefix}/lib'
   1010 localedir='${datarootdir}/locale'
   1011 mandir='${datarootdir}/man'
   1012 
   1013 ac_prev=
   1014 ac_dashdash=
   1015 for ac_option
   1016 do
   1017   # If the previous option needs an argument, assign it.
   1018   if test -n "$ac_prev"; then
   1019     eval $ac_prev=\$ac_option
   1020     ac_prev=
   1021     continue
   1022   fi
   1023 
   1024   case $ac_option in
   1025   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1026   *=)   ac_optarg= ;;
   1027   *)    ac_optarg=yes ;;
   1028   esac
   1029 
   1030   case $ac_dashdash$ac_option in
   1031   --)
   1032     ac_dashdash=yes ;;
   1033 
   1034   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1035     ac_prev=bindir ;;
   1036   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1037     bindir=$ac_optarg ;;
   1038 
   1039   -build | --build | --buil | --bui | --bu)
   1040     ac_prev=build_alias ;;
   1041   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1042     build_alias=$ac_optarg ;;
   1043 
   1044   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1045   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1046     ac_prev=cache_file ;;
   1047   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1048   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1049     cache_file=$ac_optarg ;;
   1050 
   1051   --config-cache | -C)
   1052     cache_file=config.cache ;;
   1053 
   1054   -datadir | --datadir | --datadi | --datad)
   1055     ac_prev=datadir ;;
   1056   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1057     datadir=$ac_optarg ;;
   1058 
   1059   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1060   | --dataroo | --dataro | --datar)
   1061     ac_prev=datarootdir ;;
   1062   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1063   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1064     datarootdir=$ac_optarg ;;
   1065 
   1066   -disable-* | --disable-*)
   1067     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1068     # Reject names that are not valid shell variable names.
   1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1070       as_fn_error $? "invalid feature name: \`$ac_useropt'"
   1071     ac_useropt_orig=$ac_useropt
   1072     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1073     case $ac_user_opts in
   1074       *"
   1075 "enable_$ac_useropt"
   1076 "*) ;;
   1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1078 	 ac_unrecognized_sep=', ';;
   1079     esac
   1080     eval enable_$ac_useropt=no ;;
   1081 
   1082   -docdir | --docdir | --docdi | --doc | --do)
   1083     ac_prev=docdir ;;
   1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1085     docdir=$ac_optarg ;;
   1086 
   1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1088     ac_prev=dvidir ;;
   1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1090     dvidir=$ac_optarg ;;
   1091 
   1092   -enable-* | --enable-*)
   1093     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1094     # Reject names that are not valid shell variable names.
   1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1096       as_fn_error $? "invalid feature name: \`$ac_useropt'"
   1097     ac_useropt_orig=$ac_useropt
   1098     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1099     case $ac_user_opts in
   1100       *"
   1101 "enable_$ac_useropt"
   1102 "*) ;;
   1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1104 	 ac_unrecognized_sep=', ';;
   1105     esac
   1106     eval enable_$ac_useropt=\$ac_optarg ;;
   1107 
   1108   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1109   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1110   | --exec | --exe | --ex)
   1111     ac_prev=exec_prefix ;;
   1112   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1113   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1114   | --exec=* | --exe=* | --ex=*)
   1115     exec_prefix=$ac_optarg ;;
   1116 
   1117   -gas | --gas | --ga | --g)
   1118     # Obsolete; use --with-gas.
   1119     with_gas=yes ;;
   1120 
   1121   -help | --help | --hel | --he | -h)
   1122     ac_init_help=long ;;
   1123   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1124     ac_init_help=recursive ;;
   1125   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1126     ac_init_help=short ;;
   1127 
   1128   -host | --host | --hos | --ho)
   1129     ac_prev=host_alias ;;
   1130   -host=* | --host=* | --hos=* | --ho=*)
   1131     host_alias=$ac_optarg ;;
   1132 
   1133   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1134     ac_prev=htmldir ;;
   1135   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1136   | --ht=*)
   1137     htmldir=$ac_optarg ;;
   1138 
   1139   -includedir | --includedir | --includedi | --included | --include \
   1140   | --includ | --inclu | --incl | --inc)
   1141     ac_prev=includedir ;;
   1142   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1143   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1144     includedir=$ac_optarg ;;
   1145 
   1146   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1147     ac_prev=infodir ;;
   1148   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1149     infodir=$ac_optarg ;;
   1150 
   1151   -libdir | --libdir | --libdi | --libd)
   1152     ac_prev=libdir ;;
   1153   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1154     libdir=$ac_optarg ;;
   1155 
   1156   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1157   | --libexe | --libex | --libe)
   1158     ac_prev=libexecdir ;;
   1159   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1160   | --libexe=* | --libex=* | --libe=*)
   1161     libexecdir=$ac_optarg ;;
   1162 
   1163   -localedir | --localedir | --localedi | --localed | --locale)
   1164     ac_prev=localedir ;;
   1165   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1166     localedir=$ac_optarg ;;
   1167 
   1168   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1169   | --localstate | --localstat | --localsta | --localst | --locals)
   1170     ac_prev=localstatedir ;;
   1171   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1172   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1173     localstatedir=$ac_optarg ;;
   1174 
   1175   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1176     ac_prev=mandir ;;
   1177   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1178     mandir=$ac_optarg ;;
   1179 
   1180   -nfp | --nfp | --nf)
   1181     # Obsolete; use --without-fp.
   1182     with_fp=no ;;
   1183 
   1184   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1185   | --no-cr | --no-c | -n)
   1186     no_create=yes ;;
   1187 
   1188   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1189   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1190     no_recursion=yes ;;
   1191 
   1192   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1193   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1194   | --oldin | --oldi | --old | --ol | --o)
   1195     ac_prev=oldincludedir ;;
   1196   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1197   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1198   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1199     oldincludedir=$ac_optarg ;;
   1200 
   1201   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1202     ac_prev=prefix ;;
   1203   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1204     prefix=$ac_optarg ;;
   1205 
   1206   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1207   | --program-pre | --program-pr | --program-p)
   1208     ac_prev=program_prefix ;;
   1209   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1210   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1211     program_prefix=$ac_optarg ;;
   1212 
   1213   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1214   | --program-suf | --program-su | --program-s)
   1215     ac_prev=program_suffix ;;
   1216   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1217   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1218     program_suffix=$ac_optarg ;;
   1219 
   1220   -program-transform-name | --program-transform-name \
   1221   | --program-transform-nam | --program-transform-na \
   1222   | --program-transform-n | --program-transform- \
   1223   | --program-transform | --program-transfor \
   1224   | --program-transfo | --program-transf \
   1225   | --program-trans | --program-tran \
   1226   | --progr-tra | --program-tr | --program-t)
   1227     ac_prev=program_transform_name ;;
   1228   -program-transform-name=* | --program-transform-name=* \
   1229   | --program-transform-nam=* | --program-transform-na=* \
   1230   | --program-transform-n=* | --program-transform-=* \
   1231   | --program-transform=* | --program-transfor=* \
   1232   | --program-transfo=* | --program-transf=* \
   1233   | --program-trans=* | --program-tran=* \
   1234   | --progr-tra=* | --program-tr=* | --program-t=*)
   1235     program_transform_name=$ac_optarg ;;
   1236 
   1237   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1238     ac_prev=pdfdir ;;
   1239   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1240     pdfdir=$ac_optarg ;;
   1241 
   1242   -psdir | --psdir | --psdi | --psd | --ps)
   1243     ac_prev=psdir ;;
   1244   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1245     psdir=$ac_optarg ;;
   1246 
   1247   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1248   | -silent | --silent | --silen | --sile | --sil)
   1249     silent=yes ;;
   1250 
   1251   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1252   | --runstate | --runstat | --runsta | --runst | --runs \
   1253   | --run | --ru | --r)
   1254     ac_prev=runstatedir ;;
   1255   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1256   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1257   | --run=* | --ru=* | --r=*)
   1258     runstatedir=$ac_optarg ;;
   1259 
   1260   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1261     ac_prev=sbindir ;;
   1262   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1263   | --sbi=* | --sb=*)
   1264     sbindir=$ac_optarg ;;
   1265 
   1266   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1267   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1268   | --sharedst | --shareds | --shared | --share | --shar \
   1269   | --sha | --sh)
   1270     ac_prev=sharedstatedir ;;
   1271   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1272   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1273   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1274   | --sha=* | --sh=*)
   1275     sharedstatedir=$ac_optarg ;;
   1276 
   1277   -site | --site | --sit)
   1278     ac_prev=site ;;
   1279   -site=* | --site=* | --sit=*)
   1280     site=$ac_optarg ;;
   1281 
   1282   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1283     ac_prev=srcdir ;;
   1284   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1285     srcdir=$ac_optarg ;;
   1286 
   1287   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1288   | --syscon | --sysco | --sysc | --sys | --sy)
   1289     ac_prev=sysconfdir ;;
   1290   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1291   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1292     sysconfdir=$ac_optarg ;;
   1293 
   1294   -target | --target | --targe | --targ | --tar | --ta | --t)
   1295     ac_prev=target_alias ;;
   1296   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1297     target_alias=$ac_optarg ;;
   1298 
   1299   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1300     verbose=yes ;;
   1301 
   1302   -version | --version | --versio | --versi | --vers | -V)
   1303     ac_init_version=: ;;
   1304 
   1305   -with-* | --with-*)
   1306     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1307     # Reject names that are not valid shell variable names.
   1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1309       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1310     ac_useropt_orig=$ac_useropt
   1311     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1312     case $ac_user_opts in
   1313       *"
   1314 "with_$ac_useropt"
   1315 "*) ;;
   1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1317 	 ac_unrecognized_sep=', ';;
   1318     esac
   1319     eval with_$ac_useropt=\$ac_optarg ;;
   1320 
   1321   -without-* | --without-*)
   1322     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1323     # Reject names that are not valid shell variable names.
   1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1325       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1326     ac_useropt_orig=$ac_useropt
   1327     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1328     case $ac_user_opts in
   1329       *"
   1330 "with_$ac_useropt"
   1331 "*) ;;
   1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1333 	 ac_unrecognized_sep=', ';;
   1334     esac
   1335     eval with_$ac_useropt=no ;;
   1336 
   1337   --x)
   1338     # Obsolete; use --with-x.
   1339     with_x=yes ;;
   1340 
   1341   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1342   | --x-incl | --x-inc | --x-in | --x-i)
   1343     ac_prev=x_includes ;;
   1344   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1345   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1346     x_includes=$ac_optarg ;;
   1347 
   1348   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1349   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1350     ac_prev=x_libraries ;;
   1351   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1352   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1353     x_libraries=$ac_optarg ;;
   1354 
   1355   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1356 Try \`$0 --help' for more information"
   1357     ;;
   1358 
   1359   *=*)
   1360     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1361     # Reject names that are not valid shell variable names.
   1362     case $ac_envvar in #(
   1363       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1364       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1365     esac
   1366     eval $ac_envvar=\$ac_optarg
   1367     export $ac_envvar ;;
   1368 
   1369   *)
   1370     # FIXME: should be removed in autoconf 3.0.
   1371     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1372     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1373       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1374     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1375     ;;
   1376 
   1377   esac
   1378 done
   1379 
   1380 if test -n "$ac_prev"; then
   1381   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1382   as_fn_error $? "missing argument to $ac_option"
   1383 fi
   1384 
   1385 if test -n "$ac_unrecognized_opts"; then
   1386   case $enable_option_checking in
   1387     no) ;;
   1388     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1389     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1390   esac
   1391 fi
   1392 
   1393 # Check all directory arguments for consistency.
   1394 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1395 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1396 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1397 		libdir localedir mandir runstatedir
   1398 do
   1399   eval ac_val=\$$ac_var
   1400   # Remove trailing slashes.
   1401   case $ac_val in
   1402     */ )
   1403       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1404       eval $ac_var=\$ac_val;;
   1405   esac
   1406   # Be sure to have absolute directory names.
   1407   case $ac_val in
   1408     [\\/$]* | ?:[\\/]* )  continue;;
   1409     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1410   esac
   1411   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1412 done
   1413 
   1414 # There might be people who depend on the old broken behavior: `$host'
   1415 # used to hold the argument of --host etc.
   1416 # FIXME: To remove some day.
   1417 build=$build_alias
   1418 host=$host_alias
   1419 target=$target_alias
   1420 
   1421 # FIXME: To remove some day.
   1422 if test "x$host_alias" != x; then
   1423   if test "x$build_alias" = x; then
   1424     cross_compiling=maybe
   1425   elif test "x$build_alias" != "x$host_alias"; then
   1426     cross_compiling=yes
   1427   fi
   1428 fi
   1429 
   1430 ac_tool_prefix=
   1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1432 
   1433 test "$silent" = yes && exec 6>/dev/null
   1434 
   1435 
   1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1437 ac_ls_di=`ls -di .` &&
   1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1439   as_fn_error $? "working directory cannot be determined"
   1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1441   as_fn_error $? "pwd does not report name of working directory"
   1442 
   1443 
   1444 # Find the source files, if location was not specified.
   1445 if test -z "$srcdir"; then
   1446   ac_srcdir_defaulted=yes
   1447   # Try the directory containing this script, then the parent directory.
   1448   ac_confdir=`$as_dirname -- "$as_myself" ||
   1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1450 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1451 	 X"$as_myself" : 'X\(//\)$' \| \
   1452 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1453 printf "%s\n" X"$as_myself" |
   1454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1455 	    s//\1/
   1456 	    q
   1457 	  }
   1458 	  /^X\(\/\/\)[^/].*/{
   1459 	    s//\1/
   1460 	    q
   1461 	  }
   1462 	  /^X\(\/\/\)$/{
   1463 	    s//\1/
   1464 	    q
   1465 	  }
   1466 	  /^X\(\/\).*/{
   1467 	    s//\1/
   1468 	    q
   1469 	  }
   1470 	  s/.*/./; q'`
   1471   srcdir=$ac_confdir
   1472   if test ! -r "$srcdir/$ac_unique_file"; then
   1473     srcdir=..
   1474   fi
   1475 else
   1476   ac_srcdir_defaulted=no
   1477 fi
   1478 if test ! -r "$srcdir/$ac_unique_file"; then
   1479   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1480   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1481 fi
   1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1483 ac_abs_confdir=`(
   1484 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1485 	pwd)`
   1486 # When building in place, set srcdir=.
   1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1488   srcdir=.
   1489 fi
   1490 # Remove unnecessary trailing slashes from srcdir.
   1491 # Double slashes in file names in object file debugging info
   1492 # mess up M-x gdb in Emacs.
   1493 case $srcdir in
   1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1495 esac
   1496 for ac_var in $ac_precious_vars; do
   1497   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1498   eval ac_env_${ac_var}_value=\$${ac_var}
   1499   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1500   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1501 done
   1502 
   1503 #
   1504 # Report the --help message.
   1505 #
   1506 if test "$ac_init_help" = "long"; then
   1507   # Omit some internal or obsolete options to make the list less imposing.
   1508   # This message is too long to be a string in the A/UX 3.1 sh.
   1509   cat <<_ACEOF
   1510 \`configure' configures this package to adapt to many kinds of systems.
   1511 
   1512 Usage: $0 [OPTION]... [VAR=VALUE]...
   1513 
   1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1515 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1516 
   1517 Defaults for the options are specified in brackets.
   1518 
   1519 Configuration:
   1520   -h, --help              display this help and exit
   1521       --help=short        display options specific to this package
   1522       --help=recursive    display the short help of all the included packages
   1523   -V, --version           display version information and exit
   1524   -q, --quiet, --silent   do not print \`checking ...' messages
   1525       --cache-file=FILE   cache test results in FILE [disabled]
   1526   -C, --config-cache      alias for \`--cache-file=config.cache'
   1527   -n, --no-create         do not create output files
   1528       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1529 
   1530 Installation directories:
   1531   --prefix=PREFIX         install architecture-independent files in PREFIX
   1532                           [$ac_default_prefix]
   1533   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1534                           [PREFIX]
   1535 
   1536 By default, \`make install' will install all the files in
   1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1539 for instance \`--prefix=\$HOME'.
   1540 
   1541 For better control, use the options below.
   1542 
   1543 Fine tuning of the installation directories:
   1544   --bindir=DIR            user executables [EPREFIX/bin]
   1545   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1546   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1547   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1548   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1549   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1550   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1551   --libdir=DIR            object code libraries [EPREFIX/lib]
   1552   --includedir=DIR        C header files [PREFIX/include]
   1553   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1554   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1555   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1556   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1557   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1558   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1559   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1560   --htmldir=DIR           html documentation [DOCDIR]
   1561   --dvidir=DIR            dvi documentation [DOCDIR]
   1562   --pdfdir=DIR            pdf documentation [DOCDIR]
   1563   --psdir=DIR             ps documentation [DOCDIR]
   1564 _ACEOF
   1565 
   1566   cat <<\_ACEOF
   1567 
   1568 System types:
   1569   --build=BUILD     configure for building on BUILD [guessed]
   1570   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1571   --target=TARGET   configure for building compilers for TARGET [HOST]
   1572 _ACEOF
   1573 fi
   1574 
   1575 if test -n "$ac_init_help"; then
   1576 
   1577   cat <<\_ACEOF
   1578 
   1579 Optional Features:
   1580   --disable-option-checking  ignore unrecognized --enable/--with options
   1581   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1582   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1583   --enable-debug          enable debugging no|yes|traditional [yes]
   1584   --enable-dynamic        enable linking built binaries with dynamic libs [auto]
   1585   --enable-syslog         enable syslog support [auto]
   1586   --enable-ipv6           enable IPv6 support [auto]
   1587   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
   1588 
   1589 SLAPD (Standalone LDAP Daemon) Options:
   1590   --enable-slapd          enable building slapd [yes]
   1591   --enable-dynacl         enable run-time loadable ACL support (experimental) [no]
   1592   --enable-aci            enable per-object ACIs (experimental) no|yes|mod [no]
   1593   --enable-cleartext      enable cleartext passwords [yes]
   1594   --enable-crypt          enable crypt(3) passwords [no]
   1595   --enable-spasswd        enable (Cyrus) SASL password verification [no]
   1596   --enable-modules        enable dynamic module support [no]
   1597   --enable-rlookups       enable reverse lookups of client hostnames [no]
   1598   --enable-slapi          enable SLAPI support (experimental) [no]
   1599   --enable-slp            enable SLPv2 support [no]
   1600   --enable-wrappers       enable tcp wrapper support [no]
   1601 
   1602 SLAPD Backend Options:
   1603   --enable-backends       enable all available backends no|yes|mod
   1604   --enable-dnssrv         enable dnssrv backend no|yes|mod [no]
   1605   --enable-ldap           enable ldap backend no|yes|mod [no]
   1606   --enable-mdb            enable mdb database backend no|yes|mod [yes]
   1607   --enable-meta           enable metadirectory backend no|yes|mod [no]
   1608   --enable-asyncmeta      enable asynchronous metadirectory backend no|yes|mod [no]
   1609   --enable-null           enable null backend no|yes|mod [no]
   1610   --enable-passwd         enable passwd backend no|yes|mod [no]
   1611   --enable-perl           enable perl backend no|yes|mod [no]
   1612   --enable-relay          enable relay backend no|yes|mod [yes]
   1613   --enable-sock           enable sock backend no|yes|mod [no]
   1614   --enable-sql            enable sql backend no|yes|mod [no]
   1615   --enable-wt             enable WiredTiger backend no|yes|mod [no]
   1616 
   1617 SLAPD Overlay Options:
   1618   --enable-overlays       enable all available overlays no|yes|mod
   1619   --enable-accesslog      In-Directory Access Logging overlay no|yes|mod [no]
   1620   --enable-auditlog       Audit Logging overlay no|yes|mod [no]
   1621   --enable-autoca         Automatic Certificate Authority overlay no|yes|mod [no]
   1622   --enable-collect        Collect overlay no|yes|mod [no]
   1623   --enable-constraint     Attribute Constraint overlay no|yes|mod [no]
   1624   --enable-dds            Dynamic Directory Services overlay no|yes|mod [no]
   1625   --enable-deref          Dereference overlay no|yes|mod [no]
   1626   --enable-dyngroup       Dynamic Group overlay no|yes|mod [no]
   1627   --enable-dynlist        Dynamic List overlay no|yes|mod [no]
   1628   --enable-homedir        Home Directory Management overlay no|yes|mod [no]
   1629   --enable-memberof       Reverse Group Membership overlay no|yes|mod [no]
   1630   --enable-nestgroup      Nested Group overlay no|yes|mod [no]
   1631   --enable-otp            OTP 2-factor authentication overlay no|yes|mod [no]
   1632   --enable-ppolicy        Password Policy overlay no|yes|mod [no]
   1633   --enable-proxycache     Proxy Cache overlay no|yes|mod [no]
   1634   --enable-refint         Referential Integrity overlay no|yes|mod [no]
   1635   --enable-remoteauth     Deferred Authentication overlay no|yes|mod [no]
   1636   --enable-retcode        Return Code testing overlay no|yes|mod [no]
   1637   --enable-rwm            Rewrite/Remap overlay no|yes|mod [no]
   1638   --enable-seqmod         Sequential Modify overlay no|yes|mod [no]
   1639   --enable-sssvlv         ServerSideSort/VLV overlay no|yes|mod [no]
   1640   --enable-syncprov       Syncrepl Provider overlay no|yes|mod [yes]
   1641   --enable-translucent    Translucent Proxy overlay no|yes|mod [no]
   1642   --enable-unique         Attribute Uniqueness overlay no|yes|mod [no]
   1643   --enable-valsort        Value Sorting overlay no|yes|mod [no]
   1644 
   1645 SLAPD Password Module Options:
   1646   --enable-argon2         Argon2 password hashing module no|yes [no]
   1647 
   1648 LLOADD (Load Balancer Daemon) Options:
   1649   --enable-balancer       enable load balancer no|yes|mod [no]
   1650 
   1651 Library Generation & Linking Options
   1652   --enable-static[=PKGS]  build static libraries [default=yes]
   1653   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1654   --enable-versioning     Enable versioned symbols in shared library no|yes|auto [auto]
   1655   --enable-fast-install[=PKGS]
   1656                           optimize for fast installation [default=yes]
   1657   --disable-libtool-lock  avoid locking (might break parallel builds)
   1658 
   1659 Optional Packages:
   1660   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1661   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1662   --with-subdir=DIR       change default subdirectory used for installs
   1663   --with-cyrus-sasl       with Cyrus SASL support [auto]
   1664   --with-systemd          with systemd service notification support [auto]
   1665   --with-fetch            with fetch(3) URL support [auto]
   1666   --with-threads          with threads library auto|nt|posix|pth|lwp|manual [auto]
   1667   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
   1668   --with-yielding-select  with implicitly yielding select [auto]
   1669   --with-mp               with multiple precision statistics
   1670                           auto|longlong|long|bignum|gmp [auto]
   1671   --with-odbc             with specific ODBC support
   1672                           iodbc|unixodbc|odbc32|auto [auto]
   1673   --with-argon2           with argon2 support library auto|libsodium|libargon2 [auto]
   1674   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1675                           both]
   1676   --with-aix-soname=aix|svr4|both
   1677                           shared library versioning (aka "SONAME") variant to
   1678                           provide on AIX, [default=aix].
   1679   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1680   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1681                           compiler's sysroot if not specified).
   1682 
   1683 See INSTALL file for further details.
   1684 
   1685 Some influential environment variables:
   1686   CC          C compiler command
   1687   CFLAGS      C compiler flags
   1688   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1689               nonstandard directory <lib dir>
   1690   LIBS        libraries to pass to the linker, e.g. -l<library>
   1691   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1692               you have headers in a nonstandard directory <include dir>
   1693   LT_SYS_LIBRARY_PATH
   1694               User-defined run-time library search path.
   1695   CPP         C preprocessor
   1696   PKG_CONFIG  path to pkg-config utility
   1697   PKG_CONFIG_PATH
   1698               directories to add to pkg-config's search path
   1699   PKG_CONFIG_LIBDIR
   1700               path overriding pkg-config's built-in search path
   1701   WT_CFLAGS   C compiler flags for WT, overriding pkg-config
   1702   WT_LIBS     linker flags for WT, overriding pkg-config
   1703   systemdsystemunitdir
   1704               value of systemdsystemunitdir for systemd, overriding pkg-config
   1705 
   1706 Use these variables to override the choices made by `configure' or to help
   1707 it to find libraries and programs with nonstandard names/locations.
   1708 
   1709 Report bugs to the package provider.
   1710 _ACEOF
   1711 ac_status=$?
   1712 fi
   1713 
   1714 if test "$ac_init_help" = "recursive"; then
   1715   # If there are subdirs, report their specific --help.
   1716   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1717     test -d "$ac_dir" ||
   1718       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1719       continue
   1720     ac_builddir=.
   1721 
   1722 case "$ac_dir" in
   1723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1724 *)
   1725   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1726   # A ".." for each directory in $ac_dir_suffix.
   1727   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1728   case $ac_top_builddir_sub in
   1729   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1730   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1731   esac ;;
   1732 esac
   1733 ac_abs_top_builddir=$ac_pwd
   1734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1735 # for backward compatibility:
   1736 ac_top_builddir=$ac_top_build_prefix
   1737 
   1738 case $srcdir in
   1739   .)  # We are building in place.
   1740     ac_srcdir=.
   1741     ac_top_srcdir=$ac_top_builddir_sub
   1742     ac_abs_top_srcdir=$ac_pwd ;;
   1743   [\\/]* | ?:[\\/]* )  # Absolute name.
   1744     ac_srcdir=$srcdir$ac_dir_suffix;
   1745     ac_top_srcdir=$srcdir
   1746     ac_abs_top_srcdir=$srcdir ;;
   1747   *) # Relative name.
   1748     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1749     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1750     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1751 esac
   1752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1753 
   1754     cd "$ac_dir" || { ac_status=$?; continue; }
   1755     # Check for configure.gnu first; this name is used for a wrapper for
   1756     # Metaconfig's "Configure" on case-insensitive file systems.
   1757     if test -f "$ac_srcdir/configure.gnu"; then
   1758       echo &&
   1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1760     elif test -f "$ac_srcdir/configure"; then
   1761       echo &&
   1762       $SHELL "$ac_srcdir/configure" --help=recursive
   1763     else
   1764       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1765     fi || ac_status=$?
   1766     cd "$ac_pwd" || { ac_status=$?; break; }
   1767   done
   1768 fi
   1769 
   1770 test -n "$ac_init_help" && exit $ac_status
   1771 if $ac_init_version; then
   1772   cat <<\_ACEOF
   1773 configure
   1774 generated by GNU Autoconf 2.71
   1775 
   1776 Copyright (C) 2021 Free Software Foundation, Inc.
   1777 This configure script is free software; the Free Software Foundation
   1778 gives unlimited permission to copy, distribute and modify it.
   1779 
   1780 Copyright 1998-2024 The OpenLDAP Foundation. All rights reserved.
   1781 Restrictions apply, see COPYRIGHT and LICENSE files.
   1782 _ACEOF
   1783   exit
   1784 fi
   1785 
   1786 ## ------------------------ ##
   1787 ## Autoconf initialization. ##
   1788 ## ------------------------ ##
   1789 
   1790 # ac_fn_c_try_compile LINENO
   1791 # --------------------------
   1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1793 ac_fn_c_try_compile ()
   1794 {
   1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1796   rm -f conftest.$ac_objext conftest.beam
   1797   if { { ac_try="$ac_compile"
   1798 case "(($ac_try" in
   1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1800   *) ac_try_echo=$ac_try;;
   1801 esac
   1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1803 printf "%s\n" "$ac_try_echo"; } >&5
   1804   (eval "$ac_compile") 2>conftest.err
   1805   ac_status=$?
   1806   if test -s conftest.err; then
   1807     grep -v '^ *+' conftest.err >conftest.er1
   1808     cat conftest.er1 >&5
   1809     mv -f conftest.er1 conftest.err
   1810   fi
   1811   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1812   test $ac_status = 0; } && {
   1813 	 test -z "$ac_c_werror_flag" ||
   1814 	 test ! -s conftest.err
   1815        } && test -s conftest.$ac_objext
   1816 then :
   1817   ac_retval=0
   1818 else $as_nop
   1819   printf "%s\n" "$as_me: failed program was:" >&5
   1820 sed 's/^/| /' conftest.$ac_ext >&5
   1821 
   1822 	ac_retval=1
   1823 fi
   1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1825   as_fn_set_status $ac_retval
   1826 
   1827 } # ac_fn_c_try_compile
   1828 
   1829 # ac_fn_c_try_link LINENO
   1830 # -----------------------
   1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1832 ac_fn_c_try_link ()
   1833 {
   1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1835   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1836   if { { ac_try="$ac_link"
   1837 case "(($ac_try" in
   1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1839   *) ac_try_echo=$ac_try;;
   1840 esac
   1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1842 printf "%s\n" "$ac_try_echo"; } >&5
   1843   (eval "$ac_link") 2>conftest.err
   1844   ac_status=$?
   1845   if test -s conftest.err; then
   1846     grep -v '^ *+' conftest.err >conftest.er1
   1847     cat conftest.er1 >&5
   1848     mv -f conftest.er1 conftest.err
   1849   fi
   1850   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1851   test $ac_status = 0; } && {
   1852 	 test -z "$ac_c_werror_flag" ||
   1853 	 test ! -s conftest.err
   1854        } && test -s conftest$ac_exeext && {
   1855 	 test "$cross_compiling" = yes ||
   1856 	 test -x conftest$ac_exeext
   1857        }
   1858 then :
   1859   ac_retval=0
   1860 else $as_nop
   1861   printf "%s\n" "$as_me: failed program was:" >&5
   1862 sed 's/^/| /' conftest.$ac_ext >&5
   1863 
   1864 	ac_retval=1
   1865 fi
   1866   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1867   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1868   # interfere with the next link command; also delete a directory that is
   1869   # left behind by Apple's compiler.  We do this before executing the actions.
   1870   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1872   as_fn_set_status $ac_retval
   1873 
   1874 } # ac_fn_c_try_link
   1875 
   1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1877 # -------------------------------------------------------
   1878 # Tests whether HEADER exists and can be compiled using the include files in
   1879 # INCLUDES, setting the cache variable VAR accordingly.
   1880 ac_fn_c_check_header_compile ()
   1881 {
   1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1884 printf %s "checking for $2... " >&6; }
   1885 if eval test \${$3+y}
   1886 then :
   1887   printf %s "(cached) " >&6
   1888 else $as_nop
   1889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1890 /* end confdefs.h.  */
   1891 $4
   1892 #include <$2>
   1893 _ACEOF
   1894 if ac_fn_c_try_compile "$LINENO"
   1895 then :
   1896   eval "$3=yes"
   1897 else $as_nop
   1898   eval "$3=no"
   1899 fi
   1900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1901 fi
   1902 eval ac_res=\$$3
   1903 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1904 printf "%s\n" "$ac_res" >&6; }
   1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1906 
   1907 } # ac_fn_c_check_header_compile
   1908 
   1909 # ac_fn_c_check_func LINENO FUNC VAR
   1910 # ----------------------------------
   1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1912 ac_fn_c_check_func ()
   1913 {
   1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1915   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1916 printf %s "checking for $2... " >&6; }
   1917 if eval test \${$3+y}
   1918 then :
   1919   printf %s "(cached) " >&6
   1920 else $as_nop
   1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1922 /* end confdefs.h.  */
   1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1925 #define $2 innocuous_$2
   1926 
   1927 /* System header to define __stub macros and hopefully few prototypes,
   1928    which can conflict with char $2 (); below.  */
   1929 
   1930 #include <limits.h>
   1931 #undef $2
   1932 
   1933 /* Override any GCC internal prototype to avoid an error.
   1934    Use char because int might match the return type of a GCC
   1935    builtin and then its argument prototype would still apply.  */
   1936 #ifdef __cplusplus
   1937 extern "C"
   1938 #endif
   1939 char $2 ();
   1940 /* The GNU C library defines this for functions which it implements
   1941     to always fail with ENOSYS.  Some functions are actually named
   1942     something starting with __ and the normal name is an alias.  */
   1943 #if defined __stub_$2 || defined __stub___$2
   1944 choke me
   1945 #endif
   1946 
   1947 int
   1948 main (void)
   1949 {
   1950 return $2 ();
   1951   ;
   1952   return 0;
   1953 }
   1954 _ACEOF
   1955 if ac_fn_c_try_link "$LINENO"
   1956 then :
   1957   eval "$3=yes"
   1958 else $as_nop
   1959   eval "$3=no"
   1960 fi
   1961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1962     conftest$ac_exeext conftest.$ac_ext
   1963 fi
   1964 eval ac_res=\$$3
   1965 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1966 printf "%s\n" "$ac_res" >&6; }
   1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1968 
   1969 } # ac_fn_c_check_func
   1970 
   1971 # ac_fn_c_try_cpp LINENO
   1972 # ----------------------
   1973 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1974 ac_fn_c_try_cpp ()
   1975 {
   1976   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1977   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1978 case "(($ac_try" in
   1979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1980   *) ac_try_echo=$ac_try;;
   1981 esac
   1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1983 printf "%s\n" "$ac_try_echo"; } >&5
   1984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1985   ac_status=$?
   1986   if test -s conftest.err; then
   1987     grep -v '^ *+' conftest.err >conftest.er1
   1988     cat conftest.er1 >&5
   1989     mv -f conftest.er1 conftest.err
   1990   fi
   1991   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1992   test $ac_status = 0; } > conftest.i && {
   1993 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1994 	 test ! -s conftest.err
   1995        }
   1996 then :
   1997   ac_retval=0
   1998 else $as_nop
   1999   printf "%s\n" "$as_me: failed program was:" >&5
   2000 sed 's/^/| /' conftest.$ac_ext >&5
   2001 
   2002     ac_retval=1
   2003 fi
   2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2005   as_fn_set_status $ac_retval
   2006 
   2007 } # ac_fn_c_try_cpp
   2008 
   2009 # ac_fn_c_try_run LINENO
   2010 # ----------------------
   2011 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   2012 # executables *can* be run.
   2013 ac_fn_c_try_run ()
   2014 {
   2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2016   if { { ac_try="$ac_link"
   2017 case "(($ac_try" in
   2018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2019   *) ac_try_echo=$ac_try;;
   2020 esac
   2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2022 printf "%s\n" "$ac_try_echo"; } >&5
   2023   (eval "$ac_link") 2>&5
   2024   ac_status=$?
   2025   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2026   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2027   { { case "(($ac_try" in
   2028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2029   *) ac_try_echo=$ac_try;;
   2030 esac
   2031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2032 printf "%s\n" "$ac_try_echo"; } >&5
   2033   (eval "$ac_try") 2>&5
   2034   ac_status=$?
   2035   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2036   test $ac_status = 0; }; }
   2037 then :
   2038   ac_retval=0
   2039 else $as_nop
   2040   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   2041        printf "%s\n" "$as_me: failed program was:" >&5
   2042 sed 's/^/| /' conftest.$ac_ext >&5
   2043 
   2044        ac_retval=$ac_status
   2045 fi
   2046   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2048   as_fn_set_status $ac_retval
   2049 
   2050 } # ac_fn_c_try_run
   2051 
   2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2053 # -------------------------------------------
   2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2055 # variable VAR accordingly.
   2056 ac_fn_c_check_type ()
   2057 {
   2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2060 printf %s "checking for $2... " >&6; }
   2061 if eval test \${$3+y}
   2062 then :
   2063   printf %s "(cached) " >&6
   2064 else $as_nop
   2065   eval "$3=no"
   2066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2067 /* end confdefs.h.  */
   2068 $4
   2069 int
   2070 main (void)
   2071 {
   2072 if (sizeof ($2))
   2073 	 return 0;
   2074   ;
   2075   return 0;
   2076 }
   2077 _ACEOF
   2078 if ac_fn_c_try_compile "$LINENO"
   2079 then :
   2080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2081 /* end confdefs.h.  */
   2082 $4
   2083 int
   2084 main (void)
   2085 {
   2086 if (sizeof (($2)))
   2087 	    return 0;
   2088   ;
   2089   return 0;
   2090 }
   2091 _ACEOF
   2092 if ac_fn_c_try_compile "$LINENO"
   2093 then :
   2094 
   2095 else $as_nop
   2096   eval "$3=yes"
   2097 fi
   2098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2099 fi
   2100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2101 fi
   2102 eval ac_res=\$$3
   2103 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2104 printf "%s\n" "$ac_res" >&6; }
   2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2106 
   2107 } # ac_fn_c_check_type
   2108 
   2109 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2110 # ----------------------------------------------------
   2111 # Tries to find if the field MEMBER exists in type AGGR, after including
   2112 # INCLUDES, setting cache variable VAR accordingly.
   2113 ac_fn_c_check_member ()
   2114 {
   2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2117 printf %s "checking for $2.$3... " >&6; }
   2118 if eval test \${$4+y}
   2119 then :
   2120   printf %s "(cached) " >&6
   2121 else $as_nop
   2122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2123 /* end confdefs.h.  */
   2124 $5
   2125 int
   2126 main (void)
   2127 {
   2128 static $2 ac_aggr;
   2129 if (ac_aggr.$3)
   2130 return 0;
   2131   ;
   2132   return 0;
   2133 }
   2134 _ACEOF
   2135 if ac_fn_c_try_compile "$LINENO"
   2136 then :
   2137   eval "$4=yes"
   2138 else $as_nop
   2139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2140 /* end confdefs.h.  */
   2141 $5
   2142 int
   2143 main (void)
   2144 {
   2145 static $2 ac_aggr;
   2146 if (sizeof ac_aggr.$3)
   2147 return 0;
   2148   ;
   2149   return 0;
   2150 }
   2151 _ACEOF
   2152 if ac_fn_c_try_compile "$LINENO"
   2153 then :
   2154   eval "$4=yes"
   2155 else $as_nop
   2156   eval "$4=no"
   2157 fi
   2158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2159 fi
   2160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2161 fi
   2162 eval ac_res=\$$4
   2163 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2164 printf "%s\n" "$ac_res" >&6; }
   2165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2166 
   2167 } # ac_fn_c_check_member
   2168 
   2169 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2170 # --------------------------------------------
   2171 # Tries to find the compile-time value of EXPR in a program that includes
   2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2173 # computed
   2174 ac_fn_c_compute_int ()
   2175 {
   2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2177   if test "$cross_compiling" = yes; then
   2178     # Depending upon the size, compute the lo and hi bounds.
   2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2180 /* end confdefs.h.  */
   2181 $4
   2182 int
   2183 main (void)
   2184 {
   2185 static int test_array [1 - 2 * !(($2) >= 0)];
   2186 test_array [0] = 0;
   2187 return test_array [0];
   2188 
   2189   ;
   2190   return 0;
   2191 }
   2192 _ACEOF
   2193 if ac_fn_c_try_compile "$LINENO"
   2194 then :
   2195   ac_lo=0 ac_mid=0
   2196   while :; do
   2197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2198 /* end confdefs.h.  */
   2199 $4
   2200 int
   2201 main (void)
   2202 {
   2203 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2204 test_array [0] = 0;
   2205 return test_array [0];
   2206 
   2207   ;
   2208   return 0;
   2209 }
   2210 _ACEOF
   2211 if ac_fn_c_try_compile "$LINENO"
   2212 then :
   2213   ac_hi=$ac_mid; break
   2214 else $as_nop
   2215   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2216 			if test $ac_lo -le $ac_mid; then
   2217 			  ac_lo= ac_hi=
   2218 			  break
   2219 			fi
   2220 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2221 fi
   2222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2223   done
   2224 else $as_nop
   2225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2226 /* end confdefs.h.  */
   2227 $4
   2228 int
   2229 main (void)
   2230 {
   2231 static int test_array [1 - 2 * !(($2) < 0)];
   2232 test_array [0] = 0;
   2233 return test_array [0];
   2234 
   2235   ;
   2236   return 0;
   2237 }
   2238 _ACEOF
   2239 if ac_fn_c_try_compile "$LINENO"
   2240 then :
   2241   ac_hi=-1 ac_mid=-1
   2242   while :; do
   2243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2244 /* end confdefs.h.  */
   2245 $4
   2246 int
   2247 main (void)
   2248 {
   2249 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2250 test_array [0] = 0;
   2251 return test_array [0];
   2252 
   2253   ;
   2254   return 0;
   2255 }
   2256 _ACEOF
   2257 if ac_fn_c_try_compile "$LINENO"
   2258 then :
   2259   ac_lo=$ac_mid; break
   2260 else $as_nop
   2261   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2262 			if test $ac_mid -le $ac_hi; then
   2263 			  ac_lo= ac_hi=
   2264 			  break
   2265 			fi
   2266 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2267 fi
   2268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2269   done
   2270 else $as_nop
   2271   ac_lo= ac_hi=
   2272 fi
   2273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2274 fi
   2275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2276 # Binary search between lo and hi bounds.
   2277 while test "x$ac_lo" != "x$ac_hi"; do
   2278   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2280 /* end confdefs.h.  */
   2281 $4
   2282 int
   2283 main (void)
   2284 {
   2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2286 test_array [0] = 0;
   2287 return test_array [0];
   2288 
   2289   ;
   2290   return 0;
   2291 }
   2292 _ACEOF
   2293 if ac_fn_c_try_compile "$LINENO"
   2294 then :
   2295   ac_hi=$ac_mid
   2296 else $as_nop
   2297   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2298 fi
   2299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2300 done
   2301 case $ac_lo in #((
   2302 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2303 '') ac_retval=1 ;;
   2304 esac
   2305   else
   2306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2307 /* end confdefs.h.  */
   2308 $4
   2309 static long int longval (void) { return $2; }
   2310 static unsigned long int ulongval (void) { return $2; }
   2311 #include <stdio.h>
   2312 #include <stdlib.h>
   2313 int
   2314 main (void)
   2315 {
   2316 
   2317   FILE *f = fopen ("conftest.val", "w");
   2318   if (! f)
   2319     return 1;
   2320   if (($2) < 0)
   2321     {
   2322       long int i = longval ();
   2323       if (i != ($2))
   2324 	return 1;
   2325       fprintf (f, "%ld", i);
   2326     }
   2327   else
   2328     {
   2329       unsigned long int i = ulongval ();
   2330       if (i != ($2))
   2331 	return 1;
   2332       fprintf (f, "%lu", i);
   2333     }
   2334   /* Do not output a trailing newline, as this causes \r\n confusion
   2335      on some platforms.  */
   2336   return ferror (f) || fclose (f) != 0;
   2337 
   2338   ;
   2339   return 0;
   2340 }
   2341 _ACEOF
   2342 if ac_fn_c_try_run "$LINENO"
   2343 then :
   2344   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2345 else $as_nop
   2346   ac_retval=1
   2347 fi
   2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2349   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2350 rm -f conftest.val
   2351 
   2352   fi
   2353   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2354   as_fn_set_status $ac_retval
   2355 
   2356 } # ac_fn_c_compute_int
   2357 ac_configure_args_raw=
   2358 for ac_arg
   2359 do
   2360   case $ac_arg in
   2361   *\'*)
   2362     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2363   esac
   2364   as_fn_append ac_configure_args_raw " '$ac_arg'"
   2365 done
   2366 
   2367 case $ac_configure_args_raw in
   2368   *$as_nl*)
   2369     ac_safe_unquote= ;;
   2370   *)
   2371     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   2372     ac_unsafe_a="$ac_unsafe_z#~"
   2373     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   2374     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   2375 esac
   2376 
   2377 cat >config.log <<_ACEOF
   2378 This file contains any messages produced by compilers while
   2379 running configure, to aid debugging if configure makes a mistake.
   2380 
   2381 It was created by $as_me, which was
   2382 generated by GNU Autoconf 2.71.  Invocation command line was
   2383 
   2384   $ $0$ac_configure_args_raw
   2385 
   2386 _ACEOF
   2387 exec 5>>config.log
   2388 {
   2389 cat <<_ASUNAME
   2390 ## --------- ##
   2391 ## Platform. ##
   2392 ## --------- ##
   2393 
   2394 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2395 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2396 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2397 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2398 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2399 
   2400 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2401 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2402 
   2403 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2404 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2405 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2406 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2407 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2408 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2409 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2410 
   2411 _ASUNAME
   2412 
   2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2414 for as_dir in $PATH
   2415 do
   2416   IFS=$as_save_IFS
   2417   case $as_dir in #(((
   2418     '') as_dir=./ ;;
   2419     */) ;;
   2420     *) as_dir=$as_dir/ ;;
   2421   esac
   2422     printf "%s\n" "PATH: $as_dir"
   2423   done
   2424 IFS=$as_save_IFS
   2425 
   2426 } >&5
   2427 
   2428 cat >&5 <<_ACEOF
   2429 
   2430 
   2431 ## ----------- ##
   2432 ## Core tests. ##
   2433 ## ----------- ##
   2434 
   2435 _ACEOF
   2436 
   2437 
   2438 # Keep a trace of the command line.
   2439 # Strip out --no-create and --no-recursion so they do not pile up.
   2440 # Strip out --silent because we don't want to record it for future runs.
   2441 # Also quote any args containing shell meta-characters.
   2442 # Make two passes to allow for proper duplicate-argument suppression.
   2443 ac_configure_args=
   2444 ac_configure_args0=
   2445 ac_configure_args1=
   2446 ac_must_keep_next=false
   2447 for ac_pass in 1 2
   2448 do
   2449   for ac_arg
   2450   do
   2451     case $ac_arg in
   2452     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2453     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2454     | -silent | --silent | --silen | --sile | --sil)
   2455       continue ;;
   2456     *\'*)
   2457       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2458     esac
   2459     case $ac_pass in
   2460     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2461     2)
   2462       as_fn_append ac_configure_args1 " '$ac_arg'"
   2463       if test $ac_must_keep_next = true; then
   2464 	ac_must_keep_next=false # Got value, back to normal.
   2465       else
   2466 	case $ac_arg in
   2467 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2468 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2469 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2470 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2471 	    case "$ac_configure_args0 " in
   2472 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2473 	    esac
   2474 	    ;;
   2475 	  -* ) ac_must_keep_next=true ;;
   2476 	esac
   2477       fi
   2478       as_fn_append ac_configure_args " '$ac_arg'"
   2479       ;;
   2480     esac
   2481   done
   2482 done
   2483 { ac_configure_args0=; unset ac_configure_args0;}
   2484 { ac_configure_args1=; unset ac_configure_args1;}
   2485 
   2486 # When interrupted or exit'd, cleanup temporary files, and complete
   2487 # config.log.  We remove comments because anyway the quotes in there
   2488 # would cause problems or look ugly.
   2489 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2491 trap 'exit_status=$?
   2492   # Sanitize IFS.
   2493   IFS=" ""	$as_nl"
   2494   # Save into config.log some information that might help in debugging.
   2495   {
   2496     echo
   2497 
   2498     printf "%s\n" "## ---------------- ##
   2499 ## Cache variables. ##
   2500 ## ---------------- ##"
   2501     echo
   2502     # The following way of writing the cache mishandles newlines in values,
   2503 (
   2504   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2505     eval ac_val=\$$ac_var
   2506     case $ac_val in #(
   2507     *${as_nl}*)
   2508       case $ac_var in #(
   2509       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2510 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2511       esac
   2512       case $ac_var in #(
   2513       _ | IFS | as_nl) ;; #(
   2514       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2515       *) { eval $ac_var=; unset $ac_var;} ;;
   2516       esac ;;
   2517     esac
   2518   done
   2519   (set) 2>&1 |
   2520     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2521     *${as_nl}ac_space=\ *)
   2522       sed -n \
   2523 	"s/'\''/'\''\\\\'\'''\''/g;
   2524 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2525       ;; #(
   2526     *)
   2527       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2528       ;;
   2529     esac |
   2530     sort
   2531 )
   2532     echo
   2533 
   2534     printf "%s\n" "## ----------------- ##
   2535 ## Output variables. ##
   2536 ## ----------------- ##"
   2537     echo
   2538     for ac_var in $ac_subst_vars
   2539     do
   2540       eval ac_val=\$$ac_var
   2541       case $ac_val in
   2542       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2543       esac
   2544       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2545     done | sort
   2546     echo
   2547 
   2548     if test -n "$ac_subst_files"; then
   2549       printf "%s\n" "## ------------------- ##
   2550 ## File substitutions. ##
   2551 ## ------------------- ##"
   2552       echo
   2553       for ac_var in $ac_subst_files
   2554       do
   2555 	eval ac_val=\$$ac_var
   2556 	case $ac_val in
   2557 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2558 	esac
   2559 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2560       done | sort
   2561       echo
   2562     fi
   2563 
   2564     if test -s confdefs.h; then
   2565       printf "%s\n" "## ----------- ##
   2566 ## confdefs.h. ##
   2567 ## ----------- ##"
   2568       echo
   2569       cat confdefs.h
   2570       echo
   2571     fi
   2572     test "$ac_signal" != 0 &&
   2573       printf "%s\n" "$as_me: caught signal $ac_signal"
   2574     printf "%s\n" "$as_me: exit $exit_status"
   2575   } >&5
   2576   rm -f core *.core core.conftest.* &&
   2577     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2578     exit $exit_status
   2579 ' 0
   2580 for ac_signal in 1 2 13 15; do
   2581   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2582 done
   2583 ac_signal=0
   2584 
   2585 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2586 rm -f -r conftest* confdefs.h
   2587 
   2588 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2589 
   2590 # Predefined preprocessor variables.
   2591 
   2592 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2593 
   2594 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2595 
   2596 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2597 
   2598 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2599 
   2600 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2601 
   2602 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2603 
   2604 
   2605 # Let the site file select an alternate cache file if it wants to.
   2606 # Prefer an explicitly selected file to automatically selected ones.
   2607 if test -n "$CONFIG_SITE"; then
   2608   ac_site_files="$CONFIG_SITE"
   2609 elif test "x$prefix" != xNONE; then
   2610   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2611 else
   2612   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2613 fi
   2614 
   2615 for ac_site_file in $ac_site_files
   2616 do
   2617   case $ac_site_file in #(
   2618   */*) :
   2619      ;; #(
   2620   *) :
   2621     ac_site_file=./$ac_site_file ;;
   2622 esac
   2623   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2624     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2625 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2626     sed 's/^/| /' "$ac_site_file" >&5
   2627     . "$ac_site_file" \
   2628       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2629 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2630 as_fn_error $? "failed to load site script $ac_site_file
   2631 See \`config.log' for more details" "$LINENO" 5; }
   2632   fi
   2633 done
   2634 
   2635 
   2636 # Test code for whether the C compiler supports C89 (global declarations)
   2637 ac_c_conftest_c89_globals='
   2638 /* Does the compiler advertise C89 conformance?
   2639    Do not test the value of __STDC__, because some compilers set it to 0
   2640    while being otherwise adequately conformant. */
   2641 #if !defined __STDC__
   2642 # error "Compiler does not advertise C89 conformance"
   2643 #endif
   2644 
   2645 #include <stddef.h>
   2646 #include <stdarg.h>
   2647 struct stat;
   2648 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2649 struct buf { int x; };
   2650 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2651 static char *e (p, i)
   2652      char **p;
   2653      int i;
   2654 {
   2655   return p[i];
   2656 }
   2657 static char *f (char * (*g) (char **, int), char **p, ...)
   2658 {
   2659   char *s;
   2660   va_list v;
   2661   va_start (v,p);
   2662   s = g (p, va_arg (v,int));
   2663   va_end (v);
   2664   return s;
   2665 }
   2666 
   2667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2668    function prototypes and stuff, but not \xHH hex character constants.
   2669    These do not provoke an error unfortunately, instead are silently treated
   2670    as an "x".  The following induces an error, until -std is added to get
   2671    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2672    array size at least.  It is necessary to write \x00 == 0 to get something
   2673    that is true only with -std.  */
   2674 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2675 
   2676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2677    inside strings and character constants.  */
   2678 #define FOO(x) '\''x'\''
   2679 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2680 
   2681 int test (int i, double x);
   2682 struct s1 {int (*f) (int a);};
   2683 struct s2 {int (*f) (double a);};
   2684 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2685                int, int);'
   2686 
   2687 # Test code for whether the C compiler supports C89 (body of main).
   2688 ac_c_conftest_c89_main='
   2689 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2690 '
   2691 
   2692 # Test code for whether the C compiler supports C99 (global declarations)
   2693 ac_c_conftest_c99_globals='
   2694 // Does the compiler advertise C99 conformance?
   2695 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2696 # error "Compiler does not advertise C99 conformance"
   2697 #endif
   2698 
   2699 #include <stdbool.h>
   2700 extern int puts (const char *);
   2701 extern int printf (const char *, ...);
   2702 extern int dprintf (int, const char *, ...);
   2703 extern void *malloc (size_t);
   2704 
   2705 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2706 // dprintf is used instead of fprintf to avoid needing to declare
   2707 // FILE and stderr.
   2708 #define debug(...) dprintf (2, __VA_ARGS__)
   2709 #define showlist(...) puts (#__VA_ARGS__)
   2710 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2711 static void
   2712 test_varargs_macros (void)
   2713 {
   2714   int x = 1234;
   2715   int y = 5678;
   2716   debug ("Flag");
   2717   debug ("X = %d\n", x);
   2718   showlist (The first, second, and third items.);
   2719   report (x>y, "x is %d but y is %d", x, y);
   2720 }
   2721 
   2722 // Check long long types.
   2723 #define BIG64 18446744073709551615ull
   2724 #define BIG32 4294967295ul
   2725 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2726 #if !BIG_OK
   2727   #error "your preprocessor is broken"
   2728 #endif
   2729 #if BIG_OK
   2730 #else
   2731   #error "your preprocessor is broken"
   2732 #endif
   2733 static long long int bignum = -9223372036854775807LL;
   2734 static unsigned long long int ubignum = BIG64;
   2735 
   2736 struct incomplete_array
   2737 {
   2738   int datasize;
   2739   double data[];
   2740 };
   2741 
   2742 struct named_init {
   2743   int number;
   2744   const wchar_t *name;
   2745   double average;
   2746 };
   2747 
   2748 typedef const char *ccp;
   2749 
   2750 static inline int
   2751 test_restrict (ccp restrict text)
   2752 {
   2753   // See if C++-style comments work.
   2754   // Iterate through items via the restricted pointer.
   2755   // Also check for declarations in for loops.
   2756   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2757     continue;
   2758   return 0;
   2759 }
   2760 
   2761 // Check varargs and va_copy.
   2762 static bool
   2763 test_varargs (const char *format, ...)
   2764 {
   2765   va_list args;
   2766   va_start (args, format);
   2767   va_list args_copy;
   2768   va_copy (args_copy, args);
   2769 
   2770   const char *str = "";
   2771   int number = 0;
   2772   float fnumber = 0;
   2773 
   2774   while (*format)
   2775     {
   2776       switch (*format++)
   2777 	{
   2778 	case '\''s'\'': // string
   2779 	  str = va_arg (args_copy, const char *);
   2780 	  break;
   2781 	case '\''d'\'': // int
   2782 	  number = va_arg (args_copy, int);
   2783 	  break;
   2784 	case '\''f'\'': // float
   2785 	  fnumber = va_arg (args_copy, double);
   2786 	  break;
   2787 	default:
   2788 	  break;
   2789 	}
   2790     }
   2791   va_end (args_copy);
   2792   va_end (args);
   2793 
   2794   return *str && number && fnumber;
   2795 }
   2796 '
   2797 
   2798 # Test code for whether the C compiler supports C99 (body of main).
   2799 ac_c_conftest_c99_main='
   2800   // Check bool.
   2801   _Bool success = false;
   2802   success |= (argc != 0);
   2803 
   2804   // Check restrict.
   2805   if (test_restrict ("String literal") == 0)
   2806     success = true;
   2807   char *restrict newvar = "Another string";
   2808 
   2809   // Check varargs.
   2810   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2811   test_varargs_macros ();
   2812 
   2813   // Check flexible array members.
   2814   struct incomplete_array *ia =
   2815     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2816   ia->datasize = 10;
   2817   for (int i = 0; i < ia->datasize; ++i)
   2818     ia->data[i] = i * 1.234;
   2819 
   2820   // Check named initializers.
   2821   struct named_init ni = {
   2822     .number = 34,
   2823     .name = L"Test wide string",
   2824     .average = 543.34343,
   2825   };
   2826 
   2827   ni.number = 58;
   2828 
   2829   int dynamic_array[ni.number];
   2830   dynamic_array[0] = argv[0][0];
   2831   dynamic_array[ni.number - 1] = 543;
   2832 
   2833   // work around unused variable warnings
   2834   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2835 	 || dynamic_array[ni.number - 1] != 543);
   2836 '
   2837 
   2838 # Test code for whether the C compiler supports C11 (global declarations)
   2839 ac_c_conftest_c11_globals='
   2840 // Does the compiler advertise C11 conformance?
   2841 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2842 # error "Compiler does not advertise C11 conformance"
   2843 #endif
   2844 
   2845 // Check _Alignas.
   2846 char _Alignas (double) aligned_as_double;
   2847 char _Alignas (0) no_special_alignment;
   2848 extern char aligned_as_int;
   2849 char _Alignas (0) _Alignas (int) aligned_as_int;
   2850 
   2851 // Check _Alignof.
   2852 enum
   2853 {
   2854   int_alignment = _Alignof (int),
   2855   int_array_alignment = _Alignof (int[100]),
   2856   char_alignment = _Alignof (char)
   2857 };
   2858 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2859 
   2860 // Check _Noreturn.
   2861 int _Noreturn does_not_return (void) { for (;;) continue; }
   2862 
   2863 // Check _Static_assert.
   2864 struct test_static_assert
   2865 {
   2866   int x;
   2867   _Static_assert (sizeof (int) <= sizeof (long int),
   2868                   "_Static_assert does not work in struct");
   2869   long int y;
   2870 };
   2871 
   2872 // Check UTF-8 literals.
   2873 #define u8 syntax error!
   2874 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2875 
   2876 // Check duplicate typedefs.
   2877 typedef long *long_ptr;
   2878 typedef long int *long_ptr;
   2879 typedef long_ptr long_ptr;
   2880 
   2881 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2882 struct anonymous
   2883 {
   2884   union {
   2885     struct { int i; int j; };
   2886     struct { int k; long int l; } w;
   2887   };
   2888   int m;
   2889 } v1;
   2890 '
   2891 
   2892 # Test code for whether the C compiler supports C11 (body of main).
   2893 ac_c_conftest_c11_main='
   2894   _Static_assert ((offsetof (struct anonymous, i)
   2895 		   == offsetof (struct anonymous, w.k)),
   2896 		  "Anonymous union alignment botch");
   2897   v1.i = 2;
   2898   v1.w.k = 5;
   2899   ok |= v1.i != 5;
   2900 '
   2901 
   2902 # Test code for whether the C compiler supports C11 (complete).
   2903 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2904 ${ac_c_conftest_c99_globals}
   2905 ${ac_c_conftest_c11_globals}
   2906 
   2907 int
   2908 main (int argc, char **argv)
   2909 {
   2910   int ok = 0;
   2911   ${ac_c_conftest_c89_main}
   2912   ${ac_c_conftest_c99_main}
   2913   ${ac_c_conftest_c11_main}
   2914   return ok;
   2915 }
   2916 "
   2917 
   2918 # Test code for whether the C compiler supports C99 (complete).
   2919 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2920 ${ac_c_conftest_c99_globals}
   2921 
   2922 int
   2923 main (int argc, char **argv)
   2924 {
   2925   int ok = 0;
   2926   ${ac_c_conftest_c89_main}
   2927   ${ac_c_conftest_c99_main}
   2928   return ok;
   2929 }
   2930 "
   2931 
   2932 # Test code for whether the C compiler supports C89 (complete).
   2933 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2934 
   2935 int
   2936 main (int argc, char **argv)
   2937 {
   2938   int ok = 0;
   2939   ${ac_c_conftest_c89_main}
   2940   return ok;
   2941 }
   2942 "
   2943 
   2944 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2945 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2946 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2947 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2948 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2949 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2950 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2951 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2952 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2953 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
   2954 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
   2955 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
   2956 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
   2957 
   2958 # Auxiliary files required by this configure script.
   2959 ac_aux_files="ltmain.sh config.guess config.sub"
   2960 
   2961 # Locations in which to look for auxiliary files.
   2962 ac_aux_dir_candidates="${srcdir}/build"
   2963 
   2964 # Search for a directory containing all of the required auxiliary files,
   2965 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2966 # If we don't find one directory that contains all the files we need,
   2967 # we report the set of missing files from the *first* directory in
   2968 # $ac_aux_dir_candidates and give up.
   2969 ac_missing_aux_files=""
   2970 ac_first_candidate=:
   2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2973 as_found=false
   2974 for as_dir in $ac_aux_dir_candidates
   2975 do
   2976   IFS=$as_save_IFS
   2977   case $as_dir in #(((
   2978     '') as_dir=./ ;;
   2979     */) ;;
   2980     *) as_dir=$as_dir/ ;;
   2981   esac
   2982   as_found=:
   2983 
   2984   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2985   ac_aux_dir_found=yes
   2986   ac_install_sh=
   2987   for ac_aux in $ac_aux_files
   2988   do
   2989     # As a special case, if "install-sh" is required, that requirement
   2990     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2991     # and $ac_install_sh is set appropriately for whichever one is found.
   2992     if test x"$ac_aux" = x"install-sh"
   2993     then
   2994       if test -f "${as_dir}install-sh"; then
   2995         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2996         ac_install_sh="${as_dir}install-sh -c"
   2997       elif test -f "${as_dir}install.sh"; then
   2998         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2999         ac_install_sh="${as_dir}install.sh -c"
   3000       elif test -f "${as_dir}shtool"; then
   3001         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   3002         ac_install_sh="${as_dir}shtool install -c"
   3003       else
   3004         ac_aux_dir_found=no
   3005         if $ac_first_candidate; then
   3006           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   3007         else
   3008           break
   3009         fi
   3010       fi
   3011     else
   3012       if test -f "${as_dir}${ac_aux}"; then
   3013         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   3014       else
   3015         ac_aux_dir_found=no
   3016         if $ac_first_candidate; then
   3017           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   3018         else
   3019           break
   3020         fi
   3021       fi
   3022     fi
   3023   done
   3024   if test "$ac_aux_dir_found" = yes; then
   3025     ac_aux_dir="$as_dir"
   3026     break
   3027   fi
   3028   ac_first_candidate=false
   3029 
   3030   as_found=false
   3031 done
   3032 IFS=$as_save_IFS
   3033 if $as_found
   3034 then :
   3035 
   3036 else $as_nop
   3037   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   3038 fi
   3039 
   3040 
   3041 # These three variables are undocumented and unsupported,
   3042 # and are intended to be withdrawn in a future Autoconf release.
   3043 # They can cause serious problems if a builder's source tree is in a directory
   3044 # whose full name contains unusual characters.
   3045 if test -f "${ac_aux_dir}config.guess"; then
   3046   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   3047 fi
   3048 if test -f "${ac_aux_dir}config.sub"; then
   3049   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   3050 fi
   3051 if test -f "$ac_aux_dir/configure"; then
   3052   ac_configure="$SHELL ${ac_aux_dir}configure"
   3053 fi
   3054 
   3055 # Check that the precious variables saved in the cache have kept the same
   3056 # value.
   3057 ac_cache_corrupted=false
   3058 for ac_var in $ac_precious_vars; do
   3059   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   3060   eval ac_new_set=\$ac_env_${ac_var}_set
   3061   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   3062   eval ac_new_val=\$ac_env_${ac_var}_value
   3063   case $ac_old_set,$ac_new_set in
   3064     set,)
   3065       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   3066 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   3067       ac_cache_corrupted=: ;;
   3068     ,set)
   3069       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   3070 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   3071       ac_cache_corrupted=: ;;
   3072     ,);;
   3073     *)
   3074       if test "x$ac_old_val" != "x$ac_new_val"; then
   3075 	# differences in whitespace do not lead to failure.
   3076 	ac_old_val_w=`echo x $ac_old_val`
   3077 	ac_new_val_w=`echo x $ac_new_val`
   3078 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   3079 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   3080 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   3081 	  ac_cache_corrupted=:
   3082 	else
   3083 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   3084 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   3085 	  eval $ac_var=\$ac_old_val
   3086 	fi
   3087 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   3088 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   3089 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   3090 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   3091       fi;;
   3092   esac
   3093   # Pass precious variables to config.status.
   3094   if test "$ac_new_set" = set; then
   3095     case $ac_new_val in
   3096     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   3097     *) ac_arg=$ac_var=$ac_new_val ;;
   3098     esac
   3099     case " $ac_configure_args " in
   3100       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   3101       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   3102     esac
   3103   fi
   3104 done
   3105 if $ac_cache_corrupted; then
   3106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3107 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   3109 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   3110   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   3111 	    and start over" "$LINENO" 5
   3112 fi
   3113 ## -------------------- ##
   3114 ## Main body of script. ##
   3115 ## -------------------- ##
   3116 
   3117 ac_ext=c
   3118 ac_cpp='$CPP $CPPFLAGS'
   3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3122 
   3123 
   3124 
   3125 
   3126 
   3127 
   3128 
   3129 
   3130 
   3131 
   3132 
   3133 
   3134 
   3135 
   3136 
   3137 
   3138 
   3139 
   3140 
   3141 
   3142 
   3143 
   3144 
   3145 eval `$ac_aux_dir/version.sh`
   3146 if test -z "$OL_STRING"; then
   3147 	as_fn_error $? "could not determine version" "$LINENO" 5
   3148 fi
   3149 
   3150 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
   3151 	ac_cv_shtool="$ac_aux_dir/shtool"
   3152 else
   3153 	as_fn_error $? "no shtool found in $ac_aux_dir" "$LINENO" 5
   3154 fi
   3155 
   3156 SHTOOL="$ac_cv_shtool"
   3157 
   3158 TB="" TN=""
   3159 if test -t 1; then
   3160 	TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
   3161 	TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
   3162 fi
   3163 
   3164 OPENLDAP_REPO=""
   3165 if test -d $ac_aux_dir/../.git; then
   3166 	OPENLDAP_REPO="(from Git clone) "
   3167 elif test -d $ac_aux_dir/CVS; then
   3168 	OPENLDAP_REPO="(from CVS checkout) "
   3169 fi
   3170 
   3171 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
   3172 
   3173 
   3174 
   3175 
   3176   # Make sure we can run config.sub.
   3177 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   3178   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   3179 
   3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   3181 printf %s "checking build system type... " >&6; }
   3182 if test ${ac_cv_build+y}
   3183 then :
   3184   printf %s "(cached) " >&6
   3185 else $as_nop
   3186   ac_build_alias=$build_alias
   3187 test "x$ac_build_alias" = x &&
   3188   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   3189 test "x$ac_build_alias" = x &&
   3190   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   3191 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   3192   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   3193 
   3194 fi
   3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   3196 printf "%s\n" "$ac_cv_build" >&6; }
   3197 case $ac_cv_build in
   3198 *-*-*) ;;
   3199 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   3200 esac
   3201 build=$ac_cv_build
   3202 ac_save_IFS=$IFS; IFS='-'
   3203 set x $ac_cv_build
   3204 shift
   3205 build_cpu=$1
   3206 build_vendor=$2
   3207 shift; shift
   3208 # Remember, the first character of IFS is used to create $*,
   3209 # except with old shells:
   3210 build_os=$*
   3211 IFS=$ac_save_IFS
   3212 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3213 
   3214 
   3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   3216 printf %s "checking host system type... " >&6; }
   3217 if test ${ac_cv_host+y}
   3218 then :
   3219   printf %s "(cached) " >&6
   3220 else $as_nop
   3221   if test "x$host_alias" = x; then
   3222   ac_cv_host=$ac_cv_build
   3223 else
   3224   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   3225     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   3226 fi
   3227 
   3228 fi
   3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   3230 printf "%s\n" "$ac_cv_host" >&6; }
   3231 case $ac_cv_host in
   3232 *-*-*) ;;
   3233 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   3234 esac
   3235 host=$ac_cv_host
   3236 ac_save_IFS=$IFS; IFS='-'
   3237 set x $ac_cv_host
   3238 shift
   3239 host_cpu=$1
   3240 host_vendor=$2
   3241 shift; shift
   3242 # Remember, the first character of IFS is used to create $*,
   3243 # except with old shells:
   3244 host_os=$*
   3245 IFS=$ac_save_IFS
   3246 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3247 
   3248 
   3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   3250 printf %s "checking target system type... " >&6; }
   3251 if test ${ac_cv_target+y}
   3252 then :
   3253   printf %s "(cached) " >&6
   3254 else $as_nop
   3255   if test "x$target_alias" = x; then
   3256   ac_cv_target=$ac_cv_host
   3257 else
   3258   ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
   3259     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
   3260 fi
   3261 
   3262 fi
   3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   3264 printf "%s\n" "$ac_cv_target" >&6; }
   3265 case $ac_cv_target in
   3266 *-*-*) ;;
   3267 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   3268 esac
   3269 target=$ac_cv_target
   3270 ac_save_IFS=$IFS; IFS='-'
   3271 set x $ac_cv_target
   3272 shift
   3273 target_cpu=$1
   3274 target_vendor=$2
   3275 shift; shift
   3276 # Remember, the first character of IFS is used to create $*,
   3277 # except with old shells:
   3278 target_os=$*
   3279 IFS=$ac_save_IFS
   3280 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3281 
   3282 
   3283 # The aliases save the names the user supplied, while $host etc.
   3284 # will get canonicalized.
   3285 test -n "$target_alias" &&
   3286   test "$program_prefix$program_suffix$program_transform_name" = \
   3287     NONENONEs,x,x, &&
   3288   program_prefix=${target_alias}-
   3289 
   3290 PACKAGE=$OL_PACKAGE
   3291 VERSION=$OL_VERSION
   3292 
   3293 printf "%s\n" "#define OPENLDAP_PACKAGE \"$PACKAGE\"" >>confdefs.h
   3294 
   3295 
   3296 printf "%s\n" "#define OPENLDAP_VERSION \"$VERSION\"" >>confdefs.h
   3297 
   3298 
   3299 
   3300 printf "%s\n" "#define LDAP_VENDOR_VERSION $OL_API_INC" >>confdefs.h
   3301 
   3302 
   3303 printf "%s\n" "#define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR" >>confdefs.h
   3304 
   3305 
   3306 printf "%s\n" "#define LDAP_VENDOR_VERSION_MINOR $OL_MINOR" >>confdefs.h
   3307 
   3308 
   3309 printf "%s\n" "#define LDAP_VENDOR_VERSION_PATCH $OL_PATCH" >>confdefs.h
   3310 
   3311 
   3312 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
   3313 
   3314 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
   3315 
   3316 
   3317 
   3318 
   3319 
   3320 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
   3321 
   3322 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
   3323 
   3324 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
   3325 
   3326 
   3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
   3328 printf %s "checking configure arguments... " >&6; }
   3329 
   3330 
   3331 top_builddir=`pwd`
   3332 
   3333 ldap_subdir="/openldap"
   3334 
   3335 
   3336 # Check whether --with-subdir was given.
   3337 if test ${with_subdir+y}
   3338 then :
   3339   withval=$with_subdir; case "$withval" in
   3340 	no) ldap_subdir=""
   3341 		;;
   3342 	yes)
   3343 		;;
   3344 	/*|\\*)
   3345 		ldap_subdir="$withval"
   3346 		;;
   3347 	*)
   3348 		ldap_subdir="/$withval"
   3349 		;;
   3350 esac
   3351 
   3352 fi
   3353 
   3354 
   3355 # OpenLDAP --enable-debug
   3356 
   3357 	# Check whether --enable-debug was given.
   3358 if test ${enable_debug+y}
   3359 then :
   3360   enableval=$enable_debug;
   3361 	ol_arg=invalid
   3362 	for ol_val in no yes traditional ; do
   3363 		if test "$enableval" = "$ol_val" ; then
   3364 			ol_arg="$ol_val"
   3365 		fi
   3366 	done
   3367 	if test "$ol_arg" = "invalid" ; then
   3368 		as_fn_error $? "bad value $enableval for --enable-debug" "$LINENO" 5
   3369 	fi
   3370 	ol_enable_debug="$ol_arg"
   3371 
   3372 else $as_nop
   3373   	ol_enable_debug=yes
   3374 fi
   3375 
   3376 # end --enable-debug
   3377 # OpenLDAP --enable-dynamic
   3378 
   3379 	# Check whether --enable-dynamic was given.
   3380 if test ${enable_dynamic+y}
   3381 then :
   3382   enableval=$enable_dynamic;
   3383 	ol_arg=invalid
   3384 	for ol_val in auto yes no ; do
   3385 		if test "$enableval" = "$ol_val" ; then
   3386 			ol_arg="$ol_val"
   3387 		fi
   3388 	done
   3389 	if test "$ol_arg" = "invalid" ; then
   3390 		as_fn_error $? "bad value $enableval for --enable-dynamic" "$LINENO" 5
   3391 	fi
   3392 	ol_enable_dynamic="$ol_arg"
   3393 
   3394 else $as_nop
   3395   	ol_enable_dynamic=auto
   3396 fi
   3397 
   3398 # end --enable-dynamic
   3399 # OpenLDAP --enable-syslog
   3400 
   3401 	# Check whether --enable-syslog was given.
   3402 if test ${enable_syslog+y}
   3403 then :
   3404   enableval=$enable_syslog;
   3405 	ol_arg=invalid
   3406 	for ol_val in auto yes no ; do
   3407 		if test "$enableval" = "$ol_val" ; then
   3408 			ol_arg="$ol_val"
   3409 		fi
   3410 	done
   3411 	if test "$ol_arg" = "invalid" ; then
   3412 		as_fn_error $? "bad value $enableval for --enable-syslog" "$LINENO" 5
   3413 	fi
   3414 	ol_enable_syslog="$ol_arg"
   3415 
   3416 else $as_nop
   3417   	ol_enable_syslog=auto
   3418 fi
   3419 
   3420 # end --enable-syslog
   3421 ol_enable_referrals=${ol_enable_referrals-no}
   3422 # OpenLDAP --enable-ipv6
   3423 
   3424 	# Check whether --enable-ipv6 was given.
   3425 if test ${enable_ipv6+y}
   3426 then :
   3427   enableval=$enable_ipv6;
   3428 	ol_arg=invalid
   3429 	for ol_val in auto yes no ; do
   3430 		if test "$enableval" = "$ol_val" ; then
   3431 			ol_arg="$ol_val"
   3432 		fi
   3433 	done
   3434 	if test "$ol_arg" = "invalid" ; then
   3435 		as_fn_error $? "bad value $enableval for --enable-ipv6" "$LINENO" 5
   3436 	fi
   3437 	ol_enable_ipv6="$ol_arg"
   3438 
   3439 else $as_nop
   3440   	ol_enable_ipv6=auto
   3441 fi
   3442 
   3443 # end --enable-ipv6
   3444 # OpenLDAP --enable-local
   3445 
   3446 	# Check whether --enable-local was given.
   3447 if test ${enable_local+y}
   3448 then :
   3449   enableval=$enable_local;
   3450 	ol_arg=invalid
   3451 	for ol_val in auto yes no ; do
   3452 		if test "$enableval" = "$ol_val" ; then
   3453 			ol_arg="$ol_val"
   3454 		fi
   3455 	done
   3456 	if test "$ol_arg" = "invalid" ; then
   3457 		as_fn_error $? "bad value $enableval for --enable-local" "$LINENO" 5
   3458 	fi
   3459 	ol_enable_local="$ol_arg"
   3460 
   3461 else $as_nop
   3462   	ol_enable_local=auto
   3463 fi
   3464 
   3465 # end --enable-local
   3466 
   3467 # OpenLDAP --with-cyrus_sasl
   3468 
   3469 # Check whether --with-cyrus_sasl was given.
   3470 if test ${with_cyrus_sasl+y}
   3471 then :
   3472   withval=$with_cyrus_sasl;
   3473 	ol_arg=invalid
   3474 	for ol_val in auto yes no  ; do
   3475 		if test "$withval" = "$ol_val" ; then
   3476 			ol_arg="$ol_val"
   3477 		fi
   3478 	done
   3479 	if test "$ol_arg" = "invalid" ; then
   3480 		as_fn_error $? "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
   3481 	fi
   3482 	ol_with_cyrus_sasl="$ol_arg"
   3483 
   3484 else $as_nop
   3485   	ol_with_cyrus_sasl="auto"
   3486 fi
   3487 # end --with-cyrus_sasl
   3488 
   3489 # OpenLDAP --with-systemd
   3490 
   3491 # Check whether --with-systemd was given.
   3492 if test ${with_systemd+y}
   3493 then :
   3494   withval=$with_systemd;
   3495 	ol_arg=invalid
   3496 	for ol_val in auto yes no  ; do
   3497 		if test "$withval" = "$ol_val" ; then
   3498 			ol_arg="$ol_val"
   3499 		fi
   3500 	done
   3501 	if test "$ol_arg" = "invalid" ; then
   3502 		as_fn_error $? "bad value $withval for --with-systemd" "$LINENO" 5
   3503 	fi
   3504 	ol_with_systemd="$ol_arg"
   3505 
   3506 else $as_nop
   3507   	ol_with_systemd="auto"
   3508 fi
   3509 # end --with-systemd
   3510 
   3511 # OpenLDAP --with-fetch
   3512 
   3513 # Check whether --with-fetch was given.
   3514 if test ${with_fetch+y}
   3515 then :
   3516   withval=$with_fetch;
   3517 	ol_arg=invalid
   3518 	for ol_val in auto yes no  ; do
   3519 		if test "$withval" = "$ol_val" ; then
   3520 			ol_arg="$ol_val"
   3521 		fi
   3522 	done
   3523 	if test "$ol_arg" = "invalid" ; then
   3524 		as_fn_error $? "bad value $withval for --with-fetch" "$LINENO" 5
   3525 	fi
   3526 	ol_with_fetch="$ol_arg"
   3527 
   3528 else $as_nop
   3529   	ol_with_fetch="auto"
   3530 fi
   3531 # end --with-fetch
   3532 
   3533 # OpenLDAP --with-threads
   3534 
   3535 # Check whether --with-threads was given.
   3536 if test ${with_threads+y}
   3537 then :
   3538   withval=$with_threads;
   3539 	ol_arg=invalid
   3540 	for ol_val in auto nt posix pth lwp yes no manual  ; do
   3541 		if test "$withval" = "$ol_val" ; then
   3542 			ol_arg="$ol_val"
   3543 		fi
   3544 	done
   3545 	if test "$ol_arg" = "invalid" ; then
   3546 		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
   3547 	fi
   3548 	ol_with_threads="$ol_arg"
   3549 
   3550 else $as_nop
   3551   	ol_with_threads="auto"
   3552 fi
   3553 # end --with-threads
   3554 
   3555 # OpenLDAP --with-tls
   3556 
   3557 # Check whether --with-tls was given.
   3558 if test ${with_tls+y}
   3559 then :
   3560   withval=$with_tls;
   3561 	ol_arg=invalid
   3562 	for ol_val in auto openssl gnutls yes no  ; do
   3563 		if test "$withval" = "$ol_val" ; then
   3564 			ol_arg="$ol_val"
   3565 		fi
   3566 	done
   3567 	if test "$ol_arg" = "invalid" ; then
   3568 		as_fn_error $? "bad value $withval for --with-tls" "$LINENO" 5
   3569 	fi
   3570 	ol_with_tls="$ol_arg"
   3571 
   3572 else $as_nop
   3573   	ol_with_tls="auto"
   3574 fi
   3575 # end --with-tls
   3576 
   3577 # OpenLDAP --with-yielding_select
   3578 
   3579 # Check whether --with-yielding_select was given.
   3580 if test ${with_yielding_select+y}
   3581 then :
   3582   withval=$with_yielding_select;
   3583 	ol_arg=invalid
   3584 	for ol_val in auto yes no manual  ; do
   3585 		if test "$withval" = "$ol_val" ; then
   3586 			ol_arg="$ol_val"
   3587 		fi
   3588 	done
   3589 	if test "$ol_arg" = "invalid" ; then
   3590 		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
   3591 	fi
   3592 	ol_with_yielding_select="$ol_arg"
   3593 
   3594 else $as_nop
   3595   	ol_with_yielding_select="auto"
   3596 fi
   3597 # end --with-yielding_select
   3598 
   3599 # OpenLDAP --with-mp
   3600 
   3601 # Check whether --with-mp was given.
   3602 if test ${with_mp+y}
   3603 then :
   3604   withval=$with_mp;
   3605 	ol_arg=invalid
   3606 	for ol_val in auto longlong long bignum gmp yes no ; do
   3607 		if test "$withval" = "$ol_val" ; then
   3608 			ol_arg="$ol_val"
   3609 		fi
   3610 	done
   3611 	if test "$ol_arg" = "invalid" ; then
   3612 		as_fn_error $? "bad value $withval for --with-mp" "$LINENO" 5
   3613 	fi
   3614 	ol_with_mp="$ol_arg"
   3615 
   3616 else $as_nop
   3617   	ol_with_mp="auto"
   3618 fi
   3619 # end --with-mp
   3620 
   3621 # OpenLDAP --with-odbc
   3622 
   3623 # Check whether --with-odbc was given.
   3624 if test ${with_odbc+y}
   3625 then :
   3626   withval=$with_odbc;
   3627 	ol_arg=invalid
   3628 	for ol_val in auto iodbc unixodbc odbc32  ; do
   3629 		if test "$withval" = "$ol_val" ; then
   3630 			ol_arg="$ol_val"
   3631 		fi
   3632 	done
   3633 	if test "$ol_arg" = "invalid" ; then
   3634 		as_fn_error $? "bad value $withval for --with-odbc" "$LINENO" 5
   3635 	fi
   3636 	ol_with_odbc="$ol_arg"
   3637 
   3638 else $as_nop
   3639   	ol_with_odbc="auto"
   3640 fi
   3641 # end --with-odbc
   3642 
   3643 
   3644 
   3645 SlapdOptions="dynacl \
   3646 	aci \
   3647 	cleartext \
   3648 	crypt \
   3649 	spasswd \
   3650 	modules \
   3651 	rlookups \
   3652 	slapi \
   3653 	slp \
   3654 	wrappers"
   3655 
   3656 # Check whether --enable-xxslapdoptions was given.
   3657 if test ${enable_xxslapdoptions+y}
   3658 then :
   3659   enableval=$enable_xxslapdoptions;
   3660 fi
   3661 
   3662 
   3663 # OpenLDAP --enable-slapd
   3664 
   3665 	# Check whether --enable-slapd was given.
   3666 if test ${enable_slapd+y}
   3667 then :
   3668   enableval=$enable_slapd;
   3669 	ol_arg=invalid
   3670 	for ol_val in auto yes no ; do
   3671 		if test "$enableval" = "$ol_val" ; then
   3672 			ol_arg="$ol_val"
   3673 		fi
   3674 	done
   3675 	if test "$ol_arg" = "invalid" ; then
   3676 		as_fn_error $? "bad value $enableval for --enable-slapd" "$LINENO" 5
   3677 	fi
   3678 	ol_enable_slapd="$ol_arg"
   3679 
   3680 else $as_nop
   3681   	ol_enable_slapd=yes
   3682 fi
   3683 
   3684 # end --enable-slapd
   3685 # OpenLDAP --enable-dynacl
   3686 
   3687 	# Check whether --enable-dynacl was given.
   3688 if test ${enable_dynacl+y}
   3689 then :
   3690   enableval=$enable_dynacl;
   3691 	ol_arg=invalid
   3692 	for ol_val in auto yes no ; do
   3693 		if test "$enableval" = "$ol_val" ; then
   3694 			ol_arg="$ol_val"
   3695 		fi
   3696 	done
   3697 	if test "$ol_arg" = "invalid" ; then
   3698 		as_fn_error $? "bad value $enableval for --enable-dynacl" "$LINENO" 5
   3699 	fi
   3700 	ol_enable_dynacl="$ol_arg"
   3701 
   3702 else $as_nop
   3703   	ol_enable_dynacl=no
   3704 fi
   3705 
   3706 # end --enable-dynacl
   3707 # OpenLDAP --enable-aci
   3708 
   3709 	# Check whether --enable-aci was given.
   3710 if test ${enable_aci+y}
   3711 then :
   3712   enableval=$enable_aci;
   3713 	ol_arg=invalid
   3714 	for ol_val in no yes mod ; do
   3715 		if test "$enableval" = "$ol_val" ; then
   3716 			ol_arg="$ol_val"
   3717 		fi
   3718 	done
   3719 	if test "$ol_arg" = "invalid" ; then
   3720 		as_fn_error $? "bad value $enableval for --enable-aci" "$LINENO" 5
   3721 	fi
   3722 	ol_enable_aci="$ol_arg"
   3723 
   3724 else $as_nop
   3725   	ol_enable_aci=no
   3726 fi
   3727 
   3728 # end --enable-aci
   3729 # OpenLDAP --enable-cleartext
   3730 
   3731 	# Check whether --enable-cleartext was given.
   3732 if test ${enable_cleartext+y}
   3733 then :
   3734   enableval=$enable_cleartext;
   3735 	ol_arg=invalid
   3736 	for ol_val in auto yes no ; do
   3737 		if test "$enableval" = "$ol_val" ; then
   3738 			ol_arg="$ol_val"
   3739 		fi
   3740 	done
   3741 	if test "$ol_arg" = "invalid" ; then
   3742 		as_fn_error $? "bad value $enableval for --enable-cleartext" "$LINENO" 5
   3743 	fi
   3744 	ol_enable_cleartext="$ol_arg"
   3745 
   3746 else $as_nop
   3747   	ol_enable_cleartext=yes
   3748 fi
   3749 
   3750 # end --enable-cleartext
   3751 # OpenLDAP --enable-crypt
   3752 
   3753 	# Check whether --enable-crypt was given.
   3754 if test ${enable_crypt+y}
   3755 then :
   3756   enableval=$enable_crypt;
   3757 	ol_arg=invalid
   3758 	for ol_val in auto yes no ; do
   3759 		if test "$enableval" = "$ol_val" ; then
   3760 			ol_arg="$ol_val"
   3761 		fi
   3762 	done
   3763 	if test "$ol_arg" = "invalid" ; then
   3764 		as_fn_error $? "bad value $enableval for --enable-crypt" "$LINENO" 5
   3765 	fi
   3766 	ol_enable_crypt="$ol_arg"
   3767 
   3768 else $as_nop
   3769   	ol_enable_crypt=no
   3770 fi
   3771 
   3772 # end --enable-crypt
   3773 # OpenLDAP --enable-spasswd
   3774 
   3775 	# Check whether --enable-spasswd was given.
   3776 if test ${enable_spasswd+y}
   3777 then :
   3778   enableval=$enable_spasswd;
   3779 	ol_arg=invalid
   3780 	for ol_val in auto yes no ; do
   3781 		if test "$enableval" = "$ol_val" ; then
   3782 			ol_arg="$ol_val"
   3783 		fi
   3784 	done
   3785 	if test "$ol_arg" = "invalid" ; then
   3786 		as_fn_error $? "bad value $enableval for --enable-spasswd" "$LINENO" 5
   3787 	fi
   3788 	ol_enable_spasswd="$ol_arg"
   3789 
   3790 else $as_nop
   3791   	ol_enable_spasswd=no
   3792 fi
   3793 
   3794 # end --enable-spasswd
   3795 # OpenLDAP --enable-modules
   3796 
   3797 	# Check whether --enable-modules was given.
   3798 if test ${enable_modules+y}
   3799 then :
   3800   enableval=$enable_modules;
   3801 	ol_arg=invalid
   3802 	for ol_val in auto yes no ; do
   3803 		if test "$enableval" = "$ol_val" ; then
   3804 			ol_arg="$ol_val"
   3805 		fi
   3806 	done
   3807 	if test "$ol_arg" = "invalid" ; then
   3808 		as_fn_error $? "bad value $enableval for --enable-modules" "$LINENO" 5
   3809 	fi
   3810 	ol_enable_modules="$ol_arg"
   3811 
   3812 else $as_nop
   3813   	ol_enable_modules=no
   3814 fi
   3815 
   3816 # end --enable-modules
   3817 # OpenLDAP --enable-rlookups
   3818 
   3819 	# Check whether --enable-rlookups was given.
   3820 if test ${enable_rlookups+y}
   3821 then :
   3822   enableval=$enable_rlookups;
   3823 	ol_arg=invalid
   3824 	for ol_val in auto yes no ; do
   3825 		if test "$enableval" = "$ol_val" ; then
   3826 			ol_arg="$ol_val"
   3827 		fi
   3828 	done
   3829 	if test "$ol_arg" = "invalid" ; then
   3830 		as_fn_error $? "bad value $enableval for --enable-rlookups" "$LINENO" 5
   3831 	fi
   3832 	ol_enable_rlookups="$ol_arg"
   3833 
   3834 else $as_nop
   3835   	ol_enable_rlookups=no
   3836 fi
   3837 
   3838 # end --enable-rlookups
   3839 # OpenLDAP --enable-slapi
   3840 
   3841 	# Check whether --enable-slapi was given.
   3842 if test ${enable_slapi+y}
   3843 then :
   3844   enableval=$enable_slapi;
   3845 	ol_arg=invalid
   3846 	for ol_val in auto yes no ; do
   3847 		if test "$enableval" = "$ol_val" ; then
   3848 			ol_arg="$ol_val"
   3849 		fi
   3850 	done
   3851 	if test "$ol_arg" = "invalid" ; then
   3852 		as_fn_error $? "bad value $enableval for --enable-slapi" "$LINENO" 5
   3853 	fi
   3854 	ol_enable_slapi="$ol_arg"
   3855 
   3856 else $as_nop
   3857   	ol_enable_slapi=no
   3858 fi
   3859 
   3860 # end --enable-slapi
   3861 # OpenLDAP --enable-slp
   3862 
   3863 	# Check whether --enable-slp was given.
   3864 if test ${enable_slp+y}
   3865 then :
   3866   enableval=$enable_slp;
   3867 	ol_arg=invalid
   3868 	for ol_val in auto yes no ; do
   3869 		if test "$enableval" = "$ol_val" ; then
   3870 			ol_arg="$ol_val"
   3871 		fi
   3872 	done
   3873 	if test "$ol_arg" = "invalid" ; then
   3874 		as_fn_error $? "bad value $enableval for --enable-slp" "$LINENO" 5
   3875 	fi
   3876 	ol_enable_slp="$ol_arg"
   3877 
   3878 else $as_nop
   3879   	ol_enable_slp=no
   3880 fi
   3881 
   3882 # end --enable-slp
   3883 # OpenLDAP --enable-wrappers
   3884 
   3885 	# Check whether --enable-wrappers was given.
   3886 if test ${enable_wrappers+y}
   3887 then :
   3888   enableval=$enable_wrappers;
   3889 	ol_arg=invalid
   3890 	for ol_val in auto yes no ; do
   3891 		if test "$enableval" = "$ol_val" ; then
   3892 			ol_arg="$ol_val"
   3893 		fi
   3894 	done
   3895 	if test "$ol_arg" = "invalid" ; then
   3896 		as_fn_error $? "bad value $enableval for --enable-wrappers" "$LINENO" 5
   3897 	fi
   3898 	ol_enable_wrappers="$ol_arg"
   3899 
   3900 else $as_nop
   3901   	ol_enable_wrappers=no
   3902 fi
   3903 
   3904 # end --enable-wrappers
   3905 
   3906 Backends="dnssrv \
   3907 	ldap \
   3908 	mdb \
   3909 	meta \
   3910 	asyncmeta \
   3911 	null \
   3912 	passwd \
   3913 	perl \
   3914 	relay \
   3915 	sock \
   3916 	sql \
   3917 	wt"
   3918 
   3919 # Check whether --enable-xxslapbackends was given.
   3920 if test ${enable_xxslapbackends+y}
   3921 then :
   3922   enableval=$enable_xxslapbackends;
   3923 fi
   3924 
   3925 
   3926 # OpenLDAP --enable-backends
   3927 
   3928 	# Check whether --enable-backends was given.
   3929 if test ${enable_backends+y}
   3930 then :
   3931   enableval=$enable_backends;
   3932 	ol_arg=invalid
   3933 	for ol_val in no yes mod ; do
   3934 		if test "$enableval" = "$ol_val" ; then
   3935 			ol_arg="$ol_val"
   3936 		fi
   3937 	done
   3938 	if test "$ol_arg" = "invalid" ; then
   3939 		as_fn_error $? "bad value $enableval for --enable-backends" "$LINENO" 5
   3940 	fi
   3941 	ol_enable_backends="$ol_arg"
   3942 
   3943 fi
   3944 
   3945 # end --enable-backends
   3946 # OpenLDAP --enable-dnssrv
   3947 
   3948 	# Check whether --enable-dnssrv was given.
   3949 if test ${enable_dnssrv+y}
   3950 then :
   3951   enableval=$enable_dnssrv;
   3952 	ol_arg=invalid
   3953 	for ol_val in no yes mod ; do
   3954 		if test "$enableval" = "$ol_val" ; then
   3955 			ol_arg="$ol_val"
   3956 		fi
   3957 	done
   3958 	if test "$ol_arg" = "invalid" ; then
   3959 		as_fn_error $? "bad value $enableval for --enable-dnssrv" "$LINENO" 5
   3960 	fi
   3961 	ol_enable_dnssrv="$ol_arg"
   3962 
   3963 else $as_nop
   3964   	ol_enable_dnssrv=${ol_enable_backends:-no}
   3965 fi
   3966 
   3967 # end --enable-dnssrv
   3968 # OpenLDAP --enable-ldap
   3969 
   3970 	# Check whether --enable-ldap was given.
   3971 if test ${enable_ldap+y}
   3972 then :
   3973   enableval=$enable_ldap;
   3974 	ol_arg=invalid
   3975 	for ol_val in no yes mod ; do
   3976 		if test "$enableval" = "$ol_val" ; then
   3977 			ol_arg="$ol_val"
   3978 		fi
   3979 	done
   3980 	if test "$ol_arg" = "invalid" ; then
   3981 		as_fn_error $? "bad value $enableval for --enable-ldap" "$LINENO" 5
   3982 	fi
   3983 	ol_enable_ldap="$ol_arg"
   3984 
   3985 else $as_nop
   3986   	ol_enable_ldap=${ol_enable_backends:-no}
   3987 fi
   3988 
   3989 # end --enable-ldap
   3990 # OpenLDAP --enable-mdb
   3991 
   3992 	# Check whether --enable-mdb was given.
   3993 if test ${enable_mdb+y}
   3994 then :
   3995   enableval=$enable_mdb;
   3996 	ol_arg=invalid
   3997 	for ol_val in no yes mod ; do
   3998 		if test "$enableval" = "$ol_val" ; then
   3999 			ol_arg="$ol_val"
   4000 		fi
   4001 	done
   4002 	if test "$ol_arg" = "invalid" ; then
   4003 		as_fn_error $? "bad value $enableval for --enable-mdb" "$LINENO" 5
   4004 	fi
   4005 	ol_enable_mdb="$ol_arg"
   4006 
   4007 else $as_nop
   4008   	ol_enable_mdb=${ol_enable_backends:-yes}
   4009 fi
   4010 
   4011 # end --enable-mdb
   4012 # OpenLDAP --enable-meta
   4013 
   4014 	# Check whether --enable-meta was given.
   4015 if test ${enable_meta+y}
   4016 then :
   4017   enableval=$enable_meta;
   4018 	ol_arg=invalid
   4019 	for ol_val in no yes mod ; do
   4020 		if test "$enableval" = "$ol_val" ; then
   4021 			ol_arg="$ol_val"
   4022 		fi
   4023 	done
   4024 	if test "$ol_arg" = "invalid" ; then
   4025 		as_fn_error $? "bad value $enableval for --enable-meta" "$LINENO" 5
   4026 	fi
   4027 	ol_enable_meta="$ol_arg"
   4028 
   4029 else $as_nop
   4030   	ol_enable_meta=${ol_enable_backends:-no}
   4031 fi
   4032 
   4033 # end --enable-meta
   4034 # OpenLDAP --enable-asyncmeta
   4035 
   4036 	# Check whether --enable-asyncmeta was given.
   4037 if test ${enable_asyncmeta+y}
   4038 then :
   4039   enableval=$enable_asyncmeta;
   4040 	ol_arg=invalid
   4041 	for ol_val in no yes mod ; do
   4042 		if test "$enableval" = "$ol_val" ; then
   4043 			ol_arg="$ol_val"
   4044 		fi
   4045 	done
   4046 	if test "$ol_arg" = "invalid" ; then
   4047 		as_fn_error $? "bad value $enableval for --enable-asyncmeta" "$LINENO" 5
   4048 	fi
   4049 	ol_enable_asyncmeta="$ol_arg"
   4050 
   4051 else $as_nop
   4052   	ol_enable_asyncmeta=${ol_enable_backends:-no}
   4053 fi
   4054 
   4055 # end --enable-asyncmeta
   4056 # OpenLDAP --enable-null
   4057 
   4058 	# Check whether --enable-null was given.
   4059 if test ${enable_null+y}
   4060 then :
   4061   enableval=$enable_null;
   4062 	ol_arg=invalid
   4063 	for ol_val in no yes mod ; do
   4064 		if test "$enableval" = "$ol_val" ; then
   4065 			ol_arg="$ol_val"
   4066 		fi
   4067 	done
   4068 	if test "$ol_arg" = "invalid" ; then
   4069 		as_fn_error $? "bad value $enableval for --enable-null" "$LINENO" 5
   4070 	fi
   4071 	ol_enable_null="$ol_arg"
   4072 
   4073 else $as_nop
   4074   	ol_enable_null=${ol_enable_backends:-no}
   4075 fi
   4076 
   4077 # end --enable-null
   4078 # OpenLDAP --enable-passwd
   4079 
   4080 	# Check whether --enable-passwd was given.
   4081 if test ${enable_passwd+y}
   4082 then :
   4083   enableval=$enable_passwd;
   4084 	ol_arg=invalid
   4085 	for ol_val in no yes mod ; do
   4086 		if test "$enableval" = "$ol_val" ; then
   4087 			ol_arg="$ol_val"
   4088 		fi
   4089 	done
   4090 	if test "$ol_arg" = "invalid" ; then
   4091 		as_fn_error $? "bad value $enableval for --enable-passwd" "$LINENO" 5
   4092 	fi
   4093 	ol_enable_passwd="$ol_arg"
   4094 
   4095 else $as_nop
   4096   	ol_enable_passwd=${ol_enable_backends:-no}
   4097 fi
   4098 
   4099 # end --enable-passwd
   4100 # OpenLDAP --enable-perl
   4101 
   4102 	# Check whether --enable-perl was given.
   4103 if test ${enable_perl+y}
   4104 then :
   4105   enableval=$enable_perl;
   4106 	ol_arg=invalid
   4107 	for ol_val in no yes mod ; do
   4108 		if test "$enableval" = "$ol_val" ; then
   4109 			ol_arg="$ol_val"
   4110 		fi
   4111 	done
   4112 	if test "$ol_arg" = "invalid" ; then
   4113 		as_fn_error $? "bad value $enableval for --enable-perl" "$LINENO" 5
   4114 	fi
   4115 	ol_enable_perl="$ol_arg"
   4116 
   4117 else $as_nop
   4118   	ol_enable_perl=${ol_enable_backends:-no}
   4119 fi
   4120 
   4121 # end --enable-perl
   4122 # OpenLDAP --enable-relay
   4123 
   4124 	# Check whether --enable-relay was given.
   4125 if test ${enable_relay+y}
   4126 then :
   4127   enableval=$enable_relay;
   4128 	ol_arg=invalid
   4129 	for ol_val in no yes mod ; do
   4130 		if test "$enableval" = "$ol_val" ; then
   4131 			ol_arg="$ol_val"
   4132 		fi
   4133 	done
   4134 	if test "$ol_arg" = "invalid" ; then
   4135 		as_fn_error $? "bad value $enableval for --enable-relay" "$LINENO" 5
   4136 	fi
   4137 	ol_enable_relay="$ol_arg"
   4138 
   4139 else $as_nop
   4140   	ol_enable_relay=${ol_enable_backends:-yes}
   4141 fi
   4142 
   4143 # end --enable-relay
   4144 # OpenLDAP --enable-sock
   4145 
   4146 	# Check whether --enable-sock was given.
   4147 if test ${enable_sock+y}
   4148 then :
   4149   enableval=$enable_sock;
   4150 	ol_arg=invalid
   4151 	for ol_val in no yes mod ; do
   4152 		if test "$enableval" = "$ol_val" ; then
   4153 			ol_arg="$ol_val"
   4154 		fi
   4155 	done
   4156 	if test "$ol_arg" = "invalid" ; then
   4157 		as_fn_error $? "bad value $enableval for --enable-sock" "$LINENO" 5
   4158 	fi
   4159 	ol_enable_sock="$ol_arg"
   4160 
   4161 else $as_nop
   4162   	ol_enable_sock=${ol_enable_backends:-no}
   4163 fi
   4164 
   4165 # end --enable-sock
   4166 # OpenLDAP --enable-sql
   4167 
   4168 	# Check whether --enable-sql was given.
   4169 if test ${enable_sql+y}
   4170 then :
   4171   enableval=$enable_sql;
   4172 	ol_arg=invalid
   4173 	for ol_val in no yes mod ; do
   4174 		if test "$enableval" = "$ol_val" ; then
   4175 			ol_arg="$ol_val"
   4176 		fi
   4177 	done
   4178 	if test "$ol_arg" = "invalid" ; then
   4179 		as_fn_error $? "bad value $enableval for --enable-sql" "$LINENO" 5
   4180 	fi
   4181 	ol_enable_sql="$ol_arg"
   4182 
   4183 else $as_nop
   4184   	ol_enable_sql=${ol_enable_backends:-no}
   4185 fi
   4186 
   4187 # end --enable-sql
   4188 # OpenLDAP --enable-wt
   4189 
   4190 	# Check whether --enable-wt was given.
   4191 if test ${enable_wt+y}
   4192 then :
   4193   enableval=$enable_wt;
   4194 	ol_arg=invalid
   4195 	for ol_val in no yes mod ; do
   4196 		if test "$enableval" = "$ol_val" ; then
   4197 			ol_arg="$ol_val"
   4198 		fi
   4199 	done
   4200 	if test "$ol_arg" = "invalid" ; then
   4201 		as_fn_error $? "bad value $enableval for --enable-wt" "$LINENO" 5
   4202 	fi
   4203 	ol_enable_wt="$ol_arg"
   4204 
   4205 else $as_nop
   4206   	ol_enable_wt=${ol_enable_backends:-no}
   4207 fi
   4208 
   4209 # end --enable-wt
   4210 
   4211 Overlays="accesslog \
   4212 	auditlog \
   4213 	autoca \
   4214 	collect \
   4215 	constraint \
   4216 	dds \
   4217 	deref \
   4218 	dyngroup \
   4219 	dynlist \
   4220 	homedir \
   4221 	memberof \
   4222 	nestgroup \
   4223 	otp \
   4224 	ppolicy \
   4225 	proxycache \
   4226 	refint \
   4227 	remoteauth \
   4228 	retcode \
   4229 	rwm \
   4230 	seqmod \
   4231 	sssvlv \
   4232 	syncprov \
   4233 	translucent \
   4234 	unique \
   4235 	valsort"
   4236 
   4237 Pwmods="argon2"
   4238 
   4239 # Check whether --enable-xxslapoverlays was given.
   4240 if test ${enable_xxslapoverlays+y}
   4241 then :
   4242   enableval=$enable_xxslapoverlays;
   4243 fi
   4244 
   4245 
   4246 # OpenLDAP --enable-overlays
   4247 
   4248 	# Check whether --enable-overlays was given.
   4249 if test ${enable_overlays+y}
   4250 then :
   4251   enableval=$enable_overlays;
   4252 	ol_arg=invalid
   4253 	for ol_val in no yes mod ; do
   4254 		if test "$enableval" = "$ol_val" ; then
   4255 			ol_arg="$ol_val"
   4256 		fi
   4257 	done
   4258 	if test "$ol_arg" = "invalid" ; then
   4259 		as_fn_error $? "bad value $enableval for --enable-overlays" "$LINENO" 5
   4260 	fi
   4261 	ol_enable_overlays="$ol_arg"
   4262 
   4263 fi
   4264 
   4265 # end --enable-overlays
   4266 # OpenLDAP --enable-accesslog
   4267 
   4268 	# Check whether --enable-accesslog was given.
   4269 if test ${enable_accesslog+y}
   4270 then :
   4271   enableval=$enable_accesslog;
   4272 	ol_arg=invalid
   4273 	for ol_val in no yes mod ; do
   4274 		if test "$enableval" = "$ol_val" ; then
   4275 			ol_arg="$ol_val"
   4276 		fi
   4277 	done
   4278 	if test "$ol_arg" = "invalid" ; then
   4279 		as_fn_error $? "bad value $enableval for --enable-accesslog" "$LINENO" 5
   4280 	fi
   4281 	ol_enable_accesslog="$ol_arg"
   4282 
   4283 else $as_nop
   4284   	ol_enable_accesslog=${ol_enable_overlays:-no}
   4285 fi
   4286 
   4287 # end --enable-accesslog
   4288 
   4289 # OpenLDAP --enable-auditlog
   4290 
   4291 	# Check whether --enable-auditlog was given.
   4292 if test ${enable_auditlog+y}
   4293 then :
   4294   enableval=$enable_auditlog;
   4295 	ol_arg=invalid
   4296 	for ol_val in no yes mod ; do
   4297 		if test "$enableval" = "$ol_val" ; then
   4298 			ol_arg="$ol_val"
   4299 		fi
   4300 	done
   4301 	if test "$ol_arg" = "invalid" ; then
   4302 		as_fn_error $? "bad value $enableval for --enable-auditlog" "$LINENO" 5
   4303 	fi
   4304 	ol_enable_auditlog="$ol_arg"
   4305 
   4306 else $as_nop
   4307   	ol_enable_auditlog=${ol_enable_overlays:-no}
   4308 fi
   4309 
   4310 # end --enable-auditlog
   4311 
   4312 # OpenLDAP --enable-autoca
   4313 
   4314 	# Check whether --enable-autoca was given.
   4315 if test ${enable_autoca+y}
   4316 then :
   4317   enableval=$enable_autoca;
   4318 	ol_arg=invalid
   4319 	for ol_val in no yes mod ; do
   4320 		if test "$enableval" = "$ol_val" ; then
   4321 			ol_arg="$ol_val"
   4322 		fi
   4323 	done
   4324 	if test "$ol_arg" = "invalid" ; then
   4325 		as_fn_error $? "bad value $enableval for --enable-autoca" "$LINENO" 5
   4326 	fi
   4327 	ol_enable_autoca="$ol_arg"
   4328 
   4329 else $as_nop
   4330   	ol_enable_autoca=${ol_enable_overlays:-no}
   4331 fi
   4332 
   4333 # end --enable-autoca
   4334 
   4335 # OpenLDAP --enable-collect
   4336 
   4337 	# Check whether --enable-collect was given.
   4338 if test ${enable_collect+y}
   4339 then :
   4340   enableval=$enable_collect;
   4341 	ol_arg=invalid
   4342 	for ol_val in no yes mod ; do
   4343 		if test "$enableval" = "$ol_val" ; then
   4344 			ol_arg="$ol_val"
   4345 		fi
   4346 	done
   4347 	if test "$ol_arg" = "invalid" ; then
   4348 		as_fn_error $? "bad value $enableval for --enable-collect" "$LINENO" 5
   4349 	fi
   4350 	ol_enable_collect="$ol_arg"
   4351 
   4352 else $as_nop
   4353   	ol_enable_collect=${ol_enable_overlays:-no}
   4354 fi
   4355 
   4356 # end --enable-collect
   4357 
   4358 # OpenLDAP --enable-constraint
   4359 
   4360 	# Check whether --enable-constraint was given.
   4361 if test ${enable_constraint+y}
   4362 then :
   4363   enableval=$enable_constraint;
   4364 	ol_arg=invalid
   4365 	for ol_val in no yes mod ; do
   4366 		if test "$enableval" = "$ol_val" ; then
   4367 			ol_arg="$ol_val"
   4368 		fi
   4369 	done
   4370 	if test "$ol_arg" = "invalid" ; then
   4371 		as_fn_error $? "bad value $enableval for --enable-constraint" "$LINENO" 5
   4372 	fi
   4373 	ol_enable_constraint="$ol_arg"
   4374 
   4375 else $as_nop
   4376   	ol_enable_constraint=${ol_enable_overlays:-no}
   4377 fi
   4378 
   4379 # end --enable-constraint
   4380 
   4381 # OpenLDAP --enable-dds
   4382 
   4383 	# Check whether --enable-dds was given.
   4384 if test ${enable_dds+y}
   4385 then :
   4386   enableval=$enable_dds;
   4387 	ol_arg=invalid
   4388 	for ol_val in no yes mod ; do
   4389 		if test "$enableval" = "$ol_val" ; then
   4390 			ol_arg="$ol_val"
   4391 		fi
   4392 	done
   4393 	if test "$ol_arg" = "invalid" ; then
   4394 		as_fn_error $? "bad value $enableval for --enable-dds" "$LINENO" 5
   4395 	fi
   4396 	ol_enable_dds="$ol_arg"
   4397 
   4398 else $as_nop
   4399   	ol_enable_dds=${ol_enable_overlays:-no}
   4400 fi
   4401 
   4402 # end --enable-dds
   4403 
   4404 # OpenLDAP --enable-deref
   4405 
   4406 	# Check whether --enable-deref was given.
   4407 if test ${enable_deref+y}
   4408 then :
   4409   enableval=$enable_deref;
   4410 	ol_arg=invalid
   4411 	for ol_val in no yes mod ; do
   4412 		if test "$enableval" = "$ol_val" ; then
   4413 			ol_arg="$ol_val"
   4414 		fi
   4415 	done
   4416 	if test "$ol_arg" = "invalid" ; then
   4417 		as_fn_error $? "bad value $enableval for --enable-deref" "$LINENO" 5
   4418 	fi
   4419 	ol_enable_deref="$ol_arg"
   4420 
   4421 else $as_nop
   4422   	ol_enable_deref=${ol_enable_overlays:-no}
   4423 fi
   4424 
   4425 # end --enable-deref
   4426 
   4427 # OpenLDAP --enable-dyngroup
   4428 
   4429 	# Check whether --enable-dyngroup was given.
   4430 if test ${enable_dyngroup+y}
   4431 then :
   4432   enableval=$enable_dyngroup;
   4433 	ol_arg=invalid
   4434 	for ol_val in no yes mod ; do
   4435 		if test "$enableval" = "$ol_val" ; then
   4436 			ol_arg="$ol_val"
   4437 		fi
   4438 	done
   4439 	if test "$ol_arg" = "invalid" ; then
   4440 		as_fn_error $? "bad value $enableval for --enable-dyngroup" "$LINENO" 5
   4441 	fi
   4442 	ol_enable_dyngroup="$ol_arg"
   4443 
   4444 else $as_nop
   4445   	ol_enable_dyngroup=${ol_enable_overlays:-no}
   4446 fi
   4447 
   4448 # end --enable-dyngroup
   4449 
   4450 # OpenLDAP --enable-dynlist
   4451 
   4452 	# Check whether --enable-dynlist was given.
   4453 if test ${enable_dynlist+y}
   4454 then :
   4455   enableval=$enable_dynlist;
   4456 	ol_arg=invalid
   4457 	for ol_val in no yes mod ; do
   4458 		if test "$enableval" = "$ol_val" ; then
   4459 			ol_arg="$ol_val"
   4460 		fi
   4461 	done
   4462 	if test "$ol_arg" = "invalid" ; then
   4463 		as_fn_error $? "bad value $enableval for --enable-dynlist" "$LINENO" 5
   4464 	fi
   4465 	ol_enable_dynlist="$ol_arg"
   4466 
   4467 else $as_nop
   4468   	ol_enable_dynlist=${ol_enable_overlays:-no}
   4469 fi
   4470 
   4471 # end --enable-dynlist
   4472 
   4473 # OpenLDAP --enable-homedir
   4474 
   4475 	# Check whether --enable-homedir was given.
   4476 if test ${enable_homedir+y}
   4477 then :
   4478   enableval=$enable_homedir;
   4479 	ol_arg=invalid
   4480 	for ol_val in no yes mod ; do
   4481 		if test "$enableval" = "$ol_val" ; then
   4482 			ol_arg="$ol_val"
   4483 		fi
   4484 	done
   4485 	if test "$ol_arg" = "invalid" ; then
   4486 		as_fn_error $? "bad value $enableval for --enable-homedir" "$LINENO" 5
   4487 	fi
   4488 	ol_enable_homedir="$ol_arg"
   4489 
   4490 else $as_nop
   4491   	ol_enable_homedir=${ol_enable_overlays:-no}
   4492 fi
   4493 
   4494 # end --enable-homedir
   4495 
   4496 # OpenLDAP --enable-memberof
   4497 
   4498 	# Check whether --enable-memberof was given.
   4499 if test ${enable_memberof+y}
   4500 then :
   4501   enableval=$enable_memberof;
   4502 	ol_arg=invalid
   4503 	for ol_val in no yes mod ; do
   4504 		if test "$enableval" = "$ol_val" ; then
   4505 			ol_arg="$ol_val"
   4506 		fi
   4507 	done
   4508 	if test "$ol_arg" = "invalid" ; then
   4509 		as_fn_error $? "bad value $enableval for --enable-memberof" "$LINENO" 5
   4510 	fi
   4511 	ol_enable_memberof="$ol_arg"
   4512 
   4513 else $as_nop
   4514   	ol_enable_memberof=${ol_enable_overlays:-no}
   4515 fi
   4516 
   4517 # end --enable-memberof
   4518 
   4519 # OpenLDAP --enable-nestgroup
   4520 
   4521 	# Check whether --enable-nestgroup was given.
   4522 if test ${enable_nestgroup+y}
   4523 then :
   4524   enableval=$enable_nestgroup;
   4525 	ol_arg=invalid
   4526 	for ol_val in no yes mod ; do
   4527 		if test "$enableval" = "$ol_val" ; then
   4528 			ol_arg="$ol_val"
   4529 		fi
   4530 	done
   4531 	if test "$ol_arg" = "invalid" ; then
   4532 		as_fn_error $? "bad value $enableval for --enable-nestgroup" "$LINENO" 5
   4533 	fi
   4534 	ol_enable_nestgroup="$ol_arg"
   4535 
   4536 else $as_nop
   4537   	ol_enable_nestgroup=${ol_enable_overlays:-no}
   4538 fi
   4539 
   4540 # end --enable-nestgroup
   4541 
   4542 # OpenLDAP --enable-otp
   4543 
   4544 	# Check whether --enable-otp was given.
   4545 if test ${enable_otp+y}
   4546 then :
   4547   enableval=$enable_otp;
   4548 	ol_arg=invalid
   4549 	for ol_val in no yes mod ; do
   4550 		if test "$enableval" = "$ol_val" ; then
   4551 			ol_arg="$ol_val"
   4552 		fi
   4553 	done
   4554 	if test "$ol_arg" = "invalid" ; then
   4555 		as_fn_error $? "bad value $enableval for --enable-otp" "$LINENO" 5
   4556 	fi
   4557 	ol_enable_otp="$ol_arg"
   4558 
   4559 else $as_nop
   4560   	ol_enable_otp=${ol_enable_overlays:-no}
   4561 fi
   4562 
   4563 # end --enable-otp
   4564 
   4565 # OpenLDAP --enable-ppolicy
   4566 
   4567 	# Check whether --enable-ppolicy was given.
   4568 if test ${enable_ppolicy+y}
   4569 then :
   4570   enableval=$enable_ppolicy;
   4571 	ol_arg=invalid
   4572 	for ol_val in no yes mod ; do
   4573 		if test "$enableval" = "$ol_val" ; then
   4574 			ol_arg="$ol_val"
   4575 		fi
   4576 	done
   4577 	if test "$ol_arg" = "invalid" ; then
   4578 		as_fn_error $? "bad value $enableval for --enable-ppolicy" "$LINENO" 5
   4579 	fi
   4580 	ol_enable_ppolicy="$ol_arg"
   4581 
   4582 else $as_nop
   4583   	ol_enable_ppolicy=${ol_enable_overlays:-no}
   4584 fi
   4585 
   4586 # end --enable-ppolicy
   4587 
   4588 # OpenLDAP --enable-proxycache
   4589 
   4590 	# Check whether --enable-proxycache was given.
   4591 if test ${enable_proxycache+y}
   4592 then :
   4593   enableval=$enable_proxycache;
   4594 	ol_arg=invalid
   4595 	for ol_val in no yes mod ; do
   4596 		if test "$enableval" = "$ol_val" ; then
   4597 			ol_arg="$ol_val"
   4598 		fi
   4599 	done
   4600 	if test "$ol_arg" = "invalid" ; then
   4601 		as_fn_error $? "bad value $enableval for --enable-proxycache" "$LINENO" 5
   4602 	fi
   4603 	ol_enable_proxycache="$ol_arg"
   4604 
   4605 else $as_nop
   4606   	ol_enable_proxycache=${ol_enable_overlays:-no}
   4607 fi
   4608 
   4609 # end --enable-proxycache
   4610 
   4611 # OpenLDAP --enable-refint
   4612 
   4613 	# Check whether --enable-refint was given.
   4614 if test ${enable_refint+y}
   4615 then :
   4616   enableval=$enable_refint;
   4617 	ol_arg=invalid
   4618 	for ol_val in no yes mod ; do
   4619 		if test "$enableval" = "$ol_val" ; then
   4620 			ol_arg="$ol_val"
   4621 		fi
   4622 	done
   4623 	if test "$ol_arg" = "invalid" ; then
   4624 		as_fn_error $? "bad value $enableval for --enable-refint" "$LINENO" 5
   4625 	fi
   4626 	ol_enable_refint="$ol_arg"
   4627 
   4628 else $as_nop
   4629   	ol_enable_refint=${ol_enable_overlays:-no}
   4630 fi
   4631 
   4632 # end --enable-refint
   4633 
   4634 # OpenLDAP --enable-remoteauth
   4635 
   4636 	# Check whether --enable-remoteauth was given.
   4637 if test ${enable_remoteauth+y}
   4638 then :
   4639   enableval=$enable_remoteauth;
   4640 	ol_arg=invalid
   4641 	for ol_val in no yes mod ; do
   4642 		if test "$enableval" = "$ol_val" ; then
   4643 			ol_arg="$ol_val"
   4644 		fi
   4645 	done
   4646 	if test "$ol_arg" = "invalid" ; then
   4647 		as_fn_error $? "bad value $enableval for --enable-remoteauth" "$LINENO" 5
   4648 	fi
   4649 	ol_enable_remoteauth="$ol_arg"
   4650 
   4651 else $as_nop
   4652   	ol_enable_remoteauth=${ol_enable_overlays:-no}
   4653 fi
   4654 
   4655 # end --enable-remoteauth
   4656 
   4657 # OpenLDAP --enable-retcode
   4658 
   4659 	# Check whether --enable-retcode was given.
   4660 if test ${enable_retcode+y}
   4661 then :
   4662   enableval=$enable_retcode;
   4663 	ol_arg=invalid
   4664 	for ol_val in no yes mod ; do
   4665 		if test "$enableval" = "$ol_val" ; then
   4666 			ol_arg="$ol_val"
   4667 		fi
   4668 	done
   4669 	if test "$ol_arg" = "invalid" ; then
   4670 		as_fn_error $? "bad value $enableval for --enable-retcode" "$LINENO" 5
   4671 	fi
   4672 	ol_enable_retcode="$ol_arg"
   4673 
   4674 else $as_nop
   4675   	ol_enable_retcode=${ol_enable_overlays:-no}
   4676 fi
   4677 
   4678 # end --enable-retcode
   4679 
   4680 # OpenLDAP --enable-rwm
   4681 
   4682 	# Check whether --enable-rwm was given.
   4683 if test ${enable_rwm+y}
   4684 then :
   4685   enableval=$enable_rwm;
   4686 	ol_arg=invalid
   4687 	for ol_val in no yes mod ; do
   4688 		if test "$enableval" = "$ol_val" ; then
   4689 			ol_arg="$ol_val"
   4690 		fi
   4691 	done
   4692 	if test "$ol_arg" = "invalid" ; then
   4693 		as_fn_error $? "bad value $enableval for --enable-rwm" "$LINENO" 5
   4694 	fi
   4695 	ol_enable_rwm="$ol_arg"
   4696 
   4697 else $as_nop
   4698   	ol_enable_rwm=${ol_enable_overlays:-no}
   4699 fi
   4700 
   4701 # end --enable-rwm
   4702 
   4703 # OpenLDAP --enable-seqmod
   4704 
   4705 	# Check whether --enable-seqmod was given.
   4706 if test ${enable_seqmod+y}
   4707 then :
   4708   enableval=$enable_seqmod;
   4709 	ol_arg=invalid
   4710 	for ol_val in no yes mod ; do
   4711 		if test "$enableval" = "$ol_val" ; then
   4712 			ol_arg="$ol_val"
   4713 		fi
   4714 	done
   4715 	if test "$ol_arg" = "invalid" ; then
   4716 		as_fn_error $? "bad value $enableval for --enable-seqmod" "$LINENO" 5
   4717 	fi
   4718 	ol_enable_seqmod="$ol_arg"
   4719 
   4720 else $as_nop
   4721   	ol_enable_seqmod=${ol_enable_overlays:-no}
   4722 fi
   4723 
   4724 # end --enable-seqmod
   4725 
   4726 # OpenLDAP --enable-sssvlv
   4727 
   4728 	# Check whether --enable-sssvlv was given.
   4729 if test ${enable_sssvlv+y}
   4730 then :
   4731   enableval=$enable_sssvlv;
   4732 	ol_arg=invalid
   4733 	for ol_val in no yes mod ; do
   4734 		if test "$enableval" = "$ol_val" ; then
   4735 			ol_arg="$ol_val"
   4736 		fi
   4737 	done
   4738 	if test "$ol_arg" = "invalid" ; then
   4739 		as_fn_error $? "bad value $enableval for --enable-sssvlv" "$LINENO" 5
   4740 	fi
   4741 	ol_enable_sssvlv="$ol_arg"
   4742 
   4743 else $as_nop
   4744   	ol_enable_sssvlv=${ol_enable_overlays:-no}
   4745 fi
   4746 
   4747 # end --enable-sssvlv
   4748 
   4749 # OpenLDAP --enable-syncprov
   4750 
   4751 	# Check whether --enable-syncprov was given.
   4752 if test ${enable_syncprov+y}
   4753 then :
   4754   enableval=$enable_syncprov;
   4755 	ol_arg=invalid
   4756 	for ol_val in no yes mod ; do
   4757 		if test "$enableval" = "$ol_val" ; then
   4758 			ol_arg="$ol_val"
   4759 		fi
   4760 	done
   4761 	if test "$ol_arg" = "invalid" ; then
   4762 		as_fn_error $? "bad value $enableval for --enable-syncprov" "$LINENO" 5
   4763 	fi
   4764 	ol_enable_syncprov="$ol_arg"
   4765 
   4766 else $as_nop
   4767   	ol_enable_syncprov=${ol_enable_overlays:-yes}
   4768 fi
   4769 
   4770 # end --enable-syncprov
   4771 
   4772 # OpenLDAP --enable-translucent
   4773 
   4774 	# Check whether --enable-translucent was given.
   4775 if test ${enable_translucent+y}
   4776 then :
   4777   enableval=$enable_translucent;
   4778 	ol_arg=invalid
   4779 	for ol_val in no yes mod ; do
   4780 		if test "$enableval" = "$ol_val" ; then
   4781 			ol_arg="$ol_val"
   4782 		fi
   4783 	done
   4784 	if test "$ol_arg" = "invalid" ; then
   4785 		as_fn_error $? "bad value $enableval for --enable-translucent" "$LINENO" 5
   4786 	fi
   4787 	ol_enable_translucent="$ol_arg"
   4788 
   4789 else $as_nop
   4790   	ol_enable_translucent=${ol_enable_overlays:-no}
   4791 fi
   4792 
   4793 # end --enable-translucent
   4794 
   4795 # OpenLDAP --enable-unique
   4796 
   4797 	# Check whether --enable-unique was given.
   4798 if test ${enable_unique+y}
   4799 then :
   4800   enableval=$enable_unique;
   4801 	ol_arg=invalid
   4802 	for ol_val in no yes mod ; do
   4803 		if test "$enableval" = "$ol_val" ; then
   4804 			ol_arg="$ol_val"
   4805 		fi
   4806 	done
   4807 	if test "$ol_arg" = "invalid" ; then
   4808 		as_fn_error $? "bad value $enableval for --enable-unique" "$LINENO" 5
   4809 	fi
   4810 	ol_enable_unique="$ol_arg"
   4811 
   4812 else $as_nop
   4813   	ol_enable_unique=${ol_enable_overlays:-no}
   4814 fi
   4815 
   4816 # end --enable-unique
   4817 
   4818 # OpenLDAP --enable-valsort
   4819 
   4820 	# Check whether --enable-valsort was given.
   4821 if test ${enable_valsort+y}
   4822 then :
   4823   enableval=$enable_valsort;
   4824 	ol_arg=invalid
   4825 	for ol_val in no yes mod ; do
   4826 		if test "$enableval" = "$ol_val" ; then
   4827 			ol_arg="$ol_val"
   4828 		fi
   4829 	done
   4830 	if test "$ol_arg" = "invalid" ; then
   4831 		as_fn_error $? "bad value $enableval for --enable-valsort" "$LINENO" 5
   4832 	fi
   4833 	ol_enable_valsort="$ol_arg"
   4834 
   4835 else $as_nop
   4836   	ol_enable_valsort=${ol_enable_overlays:-no}
   4837 fi
   4838 
   4839 # end --enable-valsort
   4840 
   4841 
   4842 # Check whether --enable-pwmodoptions was given.
   4843 if test ${enable_pwmodoptions+y}
   4844 then :
   4845   enableval=$enable_pwmodoptions;
   4846 fi
   4847 
   4848 # OpenLDAP --enable-argon2
   4849 
   4850 	# Check whether --enable-argon2 was given.
   4851 if test ${enable_argon2+y}
   4852 then :
   4853   enableval=$enable_argon2;
   4854 	ol_arg=invalid
   4855 	for ol_val in no yes ; do
   4856 		if test "$enableval" = "$ol_val" ; then
   4857 			ol_arg="$ol_val"
   4858 		fi
   4859 	done
   4860 	if test "$ol_arg" = "invalid" ; then
   4861 		as_fn_error $? "bad value $enableval for --enable-argon2" "$LINENO" 5
   4862 	fi
   4863 	ol_enable_argon2="$ol_arg"
   4864 
   4865 else $as_nop
   4866   	ol_enable_argon2=${ol_enable_pwmodules:-no}
   4867 fi
   4868 
   4869 # end --enable-argon2
   4870 
   4871 # OpenLDAP --with-argon2
   4872 
   4873 # Check whether --with-argon2 was given.
   4874 if test ${with_argon2+y}
   4875 then :
   4876   withval=$with_argon2;
   4877 	ol_arg=invalid
   4878 	for ol_val in auto libsodium libargon2 yes no  ; do
   4879 		if test "$withval" = "$ol_val" ; then
   4880 			ol_arg="$ol_val"
   4881 		fi
   4882 	done
   4883 	if test "$ol_arg" = "invalid" ; then
   4884 		as_fn_error $? "bad value $withval for --with-argon2" "$LINENO" 5
   4885 	fi
   4886 	ol_with_argon2="$ol_arg"
   4887 
   4888 else $as_nop
   4889   	ol_with_argon2="auto"
   4890 fi
   4891 # end --with-argon2
   4892 
   4893 
   4894 # Check whether --enable-balanceroptions was given.
   4895 if test ${enable_balanceroptions+y}
   4896 then :
   4897   enableval=$enable_balanceroptions;
   4898 fi
   4899 
   4900 # OpenLDAP --enable-balancer
   4901 
   4902 	# Check whether --enable-balancer was given.
   4903 if test ${enable_balancer+y}
   4904 then :
   4905   enableval=$enable_balancer;
   4906 	ol_arg=invalid
   4907 	for ol_val in no yes mod ; do
   4908 		if test "$enableval" = "$ol_val" ; then
   4909 			ol_arg="$ol_val"
   4910 		fi
   4911 	done
   4912 	if test "$ol_arg" = "invalid" ; then
   4913 		as_fn_error $? "bad value $enableval for --enable-balancer" "$LINENO" 5
   4914 	fi
   4915 	ol_enable_balancer="$ol_arg"
   4916 
   4917 else $as_nop
   4918   	ol_enable_balancer=no
   4919 fi
   4920 
   4921 # end --enable-balancer
   4922 
   4923 
   4924 # Check whether --enable-xxliboptions was given.
   4925 if test ${enable_xxliboptions+y}
   4926 then :
   4927   enableval=$enable_xxliboptions;
   4928 fi
   4929 
   4930 # Check whether --enable-static was given.
   4931 if test ${enable_static+y}
   4932 then :
   4933   enableval=$enable_static; p=${PACKAGE-default}
   4934     case $enableval in
   4935     yes) enable_static=yes ;;
   4936     no) enable_static=no ;;
   4937     *)
   4938      enable_static=no
   4939       # Look at the argument we got.  We use all the common list separators.
   4940       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   4941       for pkg in $enableval; do
   4942 	IFS=$lt_save_ifs
   4943 	if test "X$pkg" = "X$p"; then
   4944 	  enable_static=yes
   4945 	fi
   4946       done
   4947       IFS=$lt_save_ifs
   4948       ;;
   4949     esac
   4950 else $as_nop
   4951   enable_static=yes
   4952 fi
   4953 
   4954 
   4955 
   4956 
   4957 
   4958 
   4959 
   4960 
   4961 
   4962 # Check whether --enable-shared was given.
   4963 if test ${enable_shared+y}
   4964 then :
   4965   enableval=$enable_shared; p=${PACKAGE-default}
   4966     case $enableval in
   4967     yes) enable_shared=yes ;;
   4968     no) enable_shared=no ;;
   4969     *)
   4970       enable_shared=no
   4971       # Look at the argument we got.  We use all the common list separators.
   4972       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   4973       for pkg in $enableval; do
   4974 	IFS=$lt_save_ifs
   4975 	if test "X$pkg" = "X$p"; then
   4976 	  enable_shared=yes
   4977 	fi
   4978       done
   4979       IFS=$lt_save_ifs
   4980       ;;
   4981     esac
   4982 else $as_nop
   4983   enable_shared=yes
   4984 fi
   4985 
   4986 
   4987 
   4988 
   4989 
   4990 
   4991 
   4992 
   4993 
   4994 # OpenLDAP --enable-versioning
   4995 
   4996 	# Check whether --enable-versioning was given.
   4997 if test ${enable_versioning+y}
   4998 then :
   4999   enableval=$enable_versioning;
   5000 	ol_arg=invalid
   5001 	for ol_val in no yes auto ; do
   5002 		if test "$enableval" = "$ol_val" ; then
   5003 			ol_arg="$ol_val"
   5004 		fi
   5005 	done
   5006 	if test "$ol_arg" = "invalid" ; then
   5007 		as_fn_error $? "bad value $enableval for --enable-versioning" "$LINENO" 5
   5008 	fi
   5009 	ol_enable_versioning="$ol_arg"
   5010 
   5011 else $as_nop
   5012   	ol_enable_versioning=auto
   5013 fi
   5014 
   5015 # end --enable-versioning
   5016 
   5017 
   5018 if test $ol_enable_slapd = no ; then
   5019 
   5020 	for i in $SlapdOptions; do
   5021 		eval "ol_tmp=\$ol_enable_$i"
   5022 		if test $ol_tmp = yes ; then
   5023 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
   5024 printf "%s\n" "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
   5025 			eval "ol_enable_$i=no"
   5026 		fi
   5027 	done
   5028 
   5029 	for i in $Backends $Overlays $Pwmods; do
   5030 		eval "ol_tmp=\$ol_enable_$i"
   5031 		if test $ol_tmp != no ; then
   5032 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
   5033 printf "%s\n" "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
   5034 			eval "ol_enable_$i=no"
   5035 		fi
   5036 	done
   5037 
   5038 	if test $ol_enable_balancer = mod ; then
   5039 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-balancer=mod argument" >&5
   5040 printf "%s\n" "$as_me: WARNING: slapd disabled, ignoring --enable-balancer=mod argument" >&2;}
   5041 		ol_enable_balancer=no
   5042 	fi
   5043 else
   5044 
   5045 	if test $ol_enable_modules = no; then
   5046 
   5047 		for i in backends overlays balancer $Backends $Overlays; do
   5048 			eval "ol_tmp=\$ol_enable_$i"
   5049 			if test -n "$ol_tmp" && test "$ol_tmp" = mod ; then
   5050 				as_fn_error $? "--enable-$i=mod requires --enable-modules" "$LINENO" 5
   5051 			fi
   5052 		done
   5053 
   5054 		for i in $Pwmods; do
   5055 			eval "ol_tmp=\$ol_enable_$i"
   5056 			if test -n "$ol_tmp" && test "$ol_tmp" = yes ; then
   5057 				as_fn_error $? "--enable-$i=yes requires --enable-modules" "$LINENO" 5
   5058 			fi
   5059 		done
   5060 
   5061 		ol_any_backend=no
   5062 		for i in $Backends; do
   5063 			eval "ol_tmp=\$ol_enable_$i"
   5064 			if test $ol_tmp = yes; then
   5065 				ol_any_backend=yes
   5066 			fi
   5067 		done
   5068 
   5069 		if test $ol_any_backend = no; then
   5070 			as_fn_error $? "slapd requires a backend" "$LINENO" 5
   5071 		fi
   5072 	fi
   5073 fi
   5074 
   5075 if test $ol_enable_aci = yes ; then
   5076 	if test $ol_enable_dynacl = no ; then
   5077 		as_fn_error $? "--enable-aci requires --enable-dynacl" "$LINENO" 5
   5078 	fi
   5079 elif test $ol_enable_aci = mod ; then
   5080 	as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
   5081 fi
   5082 
   5083 if test $ol_enable_modules = yes ; then
   5084 	if test $ol_enable_dynamic = no ; then
   5085 		as_fn_error $? "--enable-modules requires --enable-dynamic" "$LINENO" 5
   5086 	fi
   5087 	ol_enable_dynamic=yes
   5088 fi
   5089 
   5090 if test $ol_enable_balancer != no ; then
   5091 		if test $ol_with_threads = no ; then
   5092 		as_fn_error $? "Load balancer requires threads" "$LINENO" 5
   5093 	fi
   5094 fi
   5095 
   5096 if test $ol_enable_spasswd = yes ; then
   5097 	if test $ol_with_cyrus_sasl = no ; then
   5098 		as_fn_error $? "--enable-spasswd requires --with-cyrus-sasl" "$LINENO" 5
   5099 	fi
   5100 	ol_with_cyrus_sasl=yes
   5101 fi
   5102 
   5103 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
   5104 	as_fn_error $? "--enable-meta requires --enable-ldap" "$LINENO" 5
   5105 fi
   5106 
   5107 if test $ol_enable_asyncmeta/$ol_enable_ldap = yes/no ; then
   5108 	as_fn_error $? "--enable-asyncmeta requires --enable-ldap" "$LINENO" 5
   5109 fi
   5110 
   5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
   5112 printf "%s\n" "done" >&6; }
   5113 
   5114 LDAP_LIBS=
   5115 SLAPD_NDB_LIBS=
   5116 SLAPD_NDB_INCS=
   5117 LTHREAD_LIBS=
   5118 LEVENT_LIBS=
   5119 LUTIL_LIBS=
   5120 
   5121 CLIENT_LIBS=
   5122 
   5123 SLAPD_LIBS=
   5124 BALANCER_LIBS=
   5125 
   5126 BUILD_SLAPD=no
   5127 BUILD_BALANCER=no
   5128 
   5129 BUILD_THREAD=no
   5130 
   5131 BUILD_SLAPI=no
   5132 SLAPD_SLAPI_DEPEND=
   5133 
   5134 BUILD_DNSSRV=no
   5135 BUILD_LDAP=no
   5136 BUILD_MDB=no
   5137 BUILD_META=no
   5138 BUILD_ASYNCMETA=no
   5139 BUILD_NDB=no
   5140 BUILD_NULL=no
   5141 BUILD_PASSWD=no
   5142 BUILD_PERL=no
   5143 BUILD_RELAY=no
   5144 BUILD_SHELL=no
   5145 BUILD_SOCK=no
   5146 BUILD_SQL=no
   5147 BUILD_WT=no
   5148 
   5149 BUILD_ACCESSLOG=no
   5150 BUILD_AUDITLOG=no
   5151 BUILD_AUTOCA=no
   5152 BUILD_CONSTRAINT=no
   5153 BUILD_DDS=no
   5154 BUILD_DENYOP=no
   5155 BUILD_DEREF=no
   5156 BUILD_DYNGROUP=no
   5157 BUILD_DYNLIST=no
   5158 BUILD_LASTMOD=no
   5159 BUILD_HOMEDIR=no
   5160 BUILD_MEMBEROF=no
   5161 BUILD_NESTGROUP=no
   5162 BUILD_OTP=no
   5163 BUILD_PPOLICY=no
   5164 BUILD_PROXYCACHE=no
   5165 BUILD_REFINT=no
   5166 BUILD_REMOTEAUTH=no
   5167 BUILD_RETCODE=no
   5168 BUILD_RWM=no
   5169 BUILD_SEQMOD=no
   5170 BUILD_SSSVLV=no
   5171 BUILD_SYNCPROV=no
   5172 BUILD_TRANSLUCENT=no
   5173 BUILD_UNIQUE=no
   5174 BUILD_VALSORT=no
   5175 
   5176 BUILD_PW_ARGON2=no
   5177 
   5178 SLAPD_STATIC_OVERLAYS=
   5179 SLAPD_DYNAMIC_OVERLAYS=
   5180 
   5181 SLAPD_DYNAMIC_PWMODS=
   5182 
   5183 SLAPD_MODULES_LDFLAGS=
   5184 SLAPD_MODULES_CPPFLAGS=
   5185 
   5186 SLAPD_STATIC_BACKENDS="back-ldif back-monitor"
   5187 SLAPD_DYNAMIC_BACKENDS=
   5188 
   5189 SLAPD_PERL_LDFLAGS=
   5190 MOD_PERL_LDFLAGS=
   5191 PERL_CPPFLAGS=
   5192 
   5193 SLAPD_SQL_LDFLAGS=
   5194 SLAPD_SQL_LIBS=
   5195 SLAPD_SQL_INCLUDES=
   5196 
   5197 SASL_LIBS=
   5198 TLS_LIBS=
   5199 WITH_TLS_TYPE=no
   5200 MODULES_LIBS=
   5201 SLAPI_LIBS=
   5202 LIBSLAPI=
   5203 AUTH_LIBS=
   5204 
   5205 SLAPD_SLP_LIBS=
   5206 SLAPD_GMP_LIBS=
   5207 
   5208 
   5209 
   5210 printf "%s\n" "#define HAVE_MKVERSION 1" >>confdefs.h
   5211 
   5212 
   5213 
   5214 
   5215 ol_aix_threads=no
   5216 case "$target" in
   5217 *-*-aix*) 	if test -z "$CC" ; then
   5218 		case "$ol_with_threads" in
   5219 		auto | yes |  posix) ol_aix_threads=yes ;;
   5220 		esac
   5221 	fi
   5222 ;;
   5223 esac
   5224 
   5225 if test $ol_aix_threads = yes ; then
   5226 	if test -z "${CC}" ; then
   5227 		for ac_prog in cc_r xlc_r cc
   5228 do
   5229   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5230 set dummy $ac_prog; ac_word=$2
   5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5232 printf %s "checking for $ac_word... " >&6; }
   5233 if test ${ac_cv_prog_CC+y}
   5234 then :
   5235   printf %s "(cached) " >&6
   5236 else $as_nop
   5237   if test -n "$CC"; then
   5238   ac_cv_prog_CC="$CC" # Let the user override the test.
   5239 else
   5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5241 for as_dir in $PATH
   5242 do
   5243   IFS=$as_save_IFS
   5244   case $as_dir in #(((
   5245     '') as_dir=./ ;;
   5246     */) ;;
   5247     *) as_dir=$as_dir/ ;;
   5248   esac
   5249     for ac_exec_ext in '' $ac_executable_extensions; do
   5250   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5251     ac_cv_prog_CC="$ac_prog"
   5252     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5253     break 2
   5254   fi
   5255 done
   5256   done
   5257 IFS=$as_save_IFS
   5258 
   5259 fi
   5260 fi
   5261 CC=$ac_cv_prog_CC
   5262 if test -n "$CC"; then
   5263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5264 printf "%s\n" "$CC" >&6; }
   5265 else
   5266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5267 printf "%s\n" "no" >&6; }
   5268 fi
   5269 
   5270 
   5271   test -n "$CC" && break
   5272 done
   5273 
   5274 
   5275 		if test "$CC" = cc ; then
   5276 						if test $ol_with_threads != auto ; then
   5277 				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
   5278 			else
   5279 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
   5280 printf "%s\n" "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
   5281 			fi
   5282 			ol_with_threads=no
   5283   		fi
   5284 	fi
   5285 
   5286 	case ${CC} in cc_r | xlc_r)
   5287 		ol_with_threads=posix
   5288 		ol_cv_pthread_create=yes
   5289 		;;
   5290 	esac
   5291 fi
   5292 
   5293 if test -z "${CC}"; then
   5294 	for ac_prog in cc gcc
   5295 do
   5296   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5297 set dummy $ac_prog; ac_word=$2
   5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5299 printf %s "checking for $ac_word... " >&6; }
   5300 if test ${ac_cv_prog_CC+y}
   5301 then :
   5302   printf %s "(cached) " >&6
   5303 else $as_nop
   5304   if test -n "$CC"; then
   5305   ac_cv_prog_CC="$CC" # Let the user override the test.
   5306 else
   5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5308 for as_dir in $PATH
   5309 do
   5310   IFS=$as_save_IFS
   5311   case $as_dir in #(((
   5312     '') as_dir=./ ;;
   5313     */) ;;
   5314     *) as_dir=$as_dir/ ;;
   5315   esac
   5316     for ac_exec_ext in '' $ac_executable_extensions; do
   5317   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5318     ac_cv_prog_CC="$ac_prog"
   5319     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5320     break 2
   5321   fi
   5322 done
   5323   done
   5324 IFS=$as_save_IFS
   5325 
   5326 fi
   5327 fi
   5328 CC=$ac_cv_prog_CC
   5329 if test -n "$CC"; then
   5330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5331 printf "%s\n" "$CC" >&6; }
   5332 else
   5333   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5334 printf "%s\n" "no" >&6; }
   5335 fi
   5336 
   5337 
   5338   test -n "$CC" && break
   5339 done
   5340 test -n "$CC" || CC="missing"
   5341 
   5342 
   5343 	if test "${CC}" = "missing" ; then
   5344 		as_fn_error $? "Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." "$LINENO" 5
   5345 	fi
   5346 fi
   5347 
   5348 if test -z "${AR}"; then
   5349 	for ac_prog in ar gar
   5350 do
   5351   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5352 set dummy $ac_prog; ac_word=$2
   5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5354 printf %s "checking for $ac_word... " >&6; }
   5355 if test ${ac_cv_prog_AR+y}
   5356 then :
   5357   printf %s "(cached) " >&6
   5358 else $as_nop
   5359   if test -n "$AR"; then
   5360   ac_cv_prog_AR="$AR" # Let the user override the test.
   5361 else
   5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5363 for as_dir in $PATH
   5364 do
   5365   IFS=$as_save_IFS
   5366   case $as_dir in #(((
   5367     '') as_dir=./ ;;
   5368     */) ;;
   5369     *) as_dir=$as_dir/ ;;
   5370   esac
   5371     for ac_exec_ext in '' $ac_executable_extensions; do
   5372   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5373     ac_cv_prog_AR="$ac_prog"
   5374     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5375     break 2
   5376   fi
   5377 done
   5378   done
   5379 IFS=$as_save_IFS
   5380 
   5381 fi
   5382 fi
   5383 AR=$ac_cv_prog_AR
   5384 if test -n "$AR"; then
   5385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5386 printf "%s\n" "$AR" >&6; }
   5387 else
   5388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5389 printf "%s\n" "no" >&6; }
   5390 fi
   5391 
   5392 
   5393   test -n "$AR" && break
   5394 done
   5395 test -n "$AR" || AR="missing"
   5396 
   5397 
   5398 	if test "${AR}" = "missing" ; then
   5399 		as_fn_error $? "Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." "$LINENO" 5
   5400 	fi
   5401 fi
   5402 
   5403 if test -z "${STRIP}"; then
   5404 	for ac_prog in strip
   5405 do
   5406   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5407 set dummy $ac_prog; ac_word=$2
   5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5409 printf %s "checking for $ac_word... " >&6; }
   5410 if test ${ac_cv_prog_STRIP+y}
   5411 then :
   5412   printf %s "(cached) " >&6
   5413 else $as_nop
   5414   if test -n "$STRIP"; then
   5415   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5416 else
   5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5418 for as_dir in $PATH
   5419 do
   5420   IFS=$as_save_IFS
   5421   case $as_dir in #(((
   5422     '') as_dir=./ ;;
   5423     */) ;;
   5424     *) as_dir=$as_dir/ ;;
   5425   esac
   5426     for ac_exec_ext in '' $ac_executable_extensions; do
   5427   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5428     ac_cv_prog_STRIP="$ac_prog"
   5429     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5430     break 2
   5431   fi
   5432 done
   5433   done
   5434 IFS=$as_save_IFS
   5435 
   5436 fi
   5437 fi
   5438 STRIP=$ac_cv_prog_STRIP
   5439 if test -n "$STRIP"; then
   5440   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5441 printf "%s\n" "$STRIP" >&6; }
   5442 else
   5443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5444 printf "%s\n" "no" >&6; }
   5445 fi
   5446 
   5447 
   5448   test -n "$STRIP" && break
   5449 done
   5450 test -n "$STRIP" || STRIP="missing"
   5451 
   5452 
   5453 	if test "${STRIP}" = "missing" ; then
   5454 		as_fn_error $? "Unable to locate strip(1) or suitable replacement.  Check PATH or set STRIP." "$LINENO" 5
   5455 	fi
   5456 fi
   5457 
   5458 
   5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   5460 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   5461 set x ${MAKE-make}
   5462 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   5463 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
   5464 then :
   5465   printf %s "(cached) " >&6
   5466 else $as_nop
   5467   cat >conftest.make <<\_ACEOF
   5468 SHELL = /bin/sh
   5469 all:
   5470 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   5471 _ACEOF
   5472 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   5473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   5474   *@@@%%%=?*=@@@%%%*)
   5475     eval ac_cv_prog_make_${ac_make}_set=yes;;
   5476   *)
   5477     eval ac_cv_prog_make_${ac_make}_set=no;;
   5478 esac
   5479 rm -f conftest.make
   5480 fi
   5481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   5482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5483 printf "%s\n" "yes" >&6; }
   5484   SET_MAKE=
   5485 else
   5486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5487 printf "%s\n" "no" >&6; }
   5488   SET_MAKE="MAKE=${MAKE-make}"
   5489 fi
   5490 
   5491 
   5492 case `pwd` in
   5493   *\ * | *\	*)
   5494     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   5495 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   5496 esac
   5497 
   5498 
   5499 
   5500 macro_version='2.4.6'
   5501 macro_revision='2.4.6'
   5502 
   5503 
   5504 
   5505 
   5506 
   5507 
   5508 
   5509 
   5510 
   5511 
   5512 
   5513 
   5514 
   5515 
   5516 ltmain=$ac_aux_dir/ltmain.sh
   5517 
   5518 # Backslashify metacharacters that are still active within
   5519 # double-quoted strings.
   5520 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   5521 
   5522 # Same as above, but do not quote variable references.
   5523 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   5524 
   5525 # Sed substitution to delay expansion of an escaped shell variable in a
   5526 # double_quote_subst'ed string.
   5527 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   5528 
   5529 # Sed substitution to delay expansion of an escaped single quote.
   5530 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   5531 
   5532 # Sed substitution to avoid accidental globbing in evaled expressions
   5533 no_glob_subst='s/\*/\\\*/g'
   5534 
   5535 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   5536 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   5537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   5538 
   5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   5540 printf %s "checking how to print strings... " >&6; }
   5541 # Test print first, because it will be a builtin if present.
   5542 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   5543    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   5544   ECHO='print -r --'
   5545 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   5546   ECHO='printf %s\n'
   5547 else
   5548   # Use this function as a fallback that always works.
   5549   func_fallback_echo ()
   5550   {
   5551     eval 'cat <<_LTECHO_EOF
   5552 $1
   5553 _LTECHO_EOF'
   5554   }
   5555   ECHO='func_fallback_echo'
   5556 fi
   5557 
   5558 # func_echo_all arg...
   5559 # Invoke $ECHO with all args, space-separated.
   5560 func_echo_all ()
   5561 {
   5562     $ECHO ""
   5563 }
   5564 
   5565 case $ECHO in
   5566   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   5567 printf "%s\n" "printf" >&6; } ;;
   5568   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   5569 printf "%s\n" "print -r" >&6; } ;;
   5570   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   5571 printf "%s\n" "cat" >&6; } ;;
   5572 esac
   5573 
   5574 
   5575 
   5576 
   5577 
   5578 
   5579 
   5580 
   5581 
   5582 
   5583 
   5584 
   5585 
   5586 
   5587 
   5588 
   5589 
   5590 
   5591 
   5592 
   5593 
   5594 
   5595 
   5596 ac_ext=c
   5597 ac_cpp='$CPP $CPPFLAGS'
   5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5601 if test -n "$ac_tool_prefix"; then
   5602   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   5603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5605 printf %s "checking for $ac_word... " >&6; }
   5606 if test ${ac_cv_prog_CC+y}
   5607 then :
   5608   printf %s "(cached) " >&6
   5609 else $as_nop
   5610   if test -n "$CC"; then
   5611   ac_cv_prog_CC="$CC" # Let the user override the test.
   5612 else
   5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5614 for as_dir in $PATH
   5615 do
   5616   IFS=$as_save_IFS
   5617   case $as_dir in #(((
   5618     '') as_dir=./ ;;
   5619     */) ;;
   5620     *) as_dir=$as_dir/ ;;
   5621   esac
   5622     for ac_exec_ext in '' $ac_executable_extensions; do
   5623   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5624     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   5625     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5626     break 2
   5627   fi
   5628 done
   5629   done
   5630 IFS=$as_save_IFS
   5631 
   5632 fi
   5633 fi
   5634 CC=$ac_cv_prog_CC
   5635 if test -n "$CC"; then
   5636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5637 printf "%s\n" "$CC" >&6; }
   5638 else
   5639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5640 printf "%s\n" "no" >&6; }
   5641 fi
   5642 
   5643 
   5644 fi
   5645 if test -z "$ac_cv_prog_CC"; then
   5646   ac_ct_CC=$CC
   5647   # Extract the first word of "gcc", so it can be a program name with args.
   5648 set dummy gcc; ac_word=$2
   5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5650 printf %s "checking for $ac_word... " >&6; }
   5651 if test ${ac_cv_prog_ac_ct_CC+y}
   5652 then :
   5653   printf %s "(cached) " >&6
   5654 else $as_nop
   5655   if test -n "$ac_ct_CC"; then
   5656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5657 else
   5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5659 for as_dir in $PATH
   5660 do
   5661   IFS=$as_save_IFS
   5662   case $as_dir in #(((
   5663     '') as_dir=./ ;;
   5664     */) ;;
   5665     *) as_dir=$as_dir/ ;;
   5666   esac
   5667     for ac_exec_ext in '' $ac_executable_extensions; do
   5668   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5669     ac_cv_prog_ac_ct_CC="gcc"
   5670     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5671     break 2
   5672   fi
   5673 done
   5674   done
   5675 IFS=$as_save_IFS
   5676 
   5677 fi
   5678 fi
   5679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   5680 if test -n "$ac_ct_CC"; then
   5681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   5682 printf "%s\n" "$ac_ct_CC" >&6; }
   5683 else
   5684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5685 printf "%s\n" "no" >&6; }
   5686 fi
   5687 
   5688   if test "x$ac_ct_CC" = x; then
   5689     CC=""
   5690   else
   5691     case $cross_compiling:$ac_tool_warned in
   5692 yes:)
   5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5695 ac_tool_warned=yes ;;
   5696 esac
   5697     CC=$ac_ct_CC
   5698   fi
   5699 else
   5700   CC="$ac_cv_prog_CC"
   5701 fi
   5702 
   5703 if test -z "$CC"; then
   5704           if test -n "$ac_tool_prefix"; then
   5705     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   5706 set dummy ${ac_tool_prefix}cc; ac_word=$2
   5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5708 printf %s "checking for $ac_word... " >&6; }
   5709 if test ${ac_cv_prog_CC+y}
   5710 then :
   5711   printf %s "(cached) " >&6
   5712 else $as_nop
   5713   if test -n "$CC"; then
   5714   ac_cv_prog_CC="$CC" # Let the user override the test.
   5715 else
   5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5717 for as_dir in $PATH
   5718 do
   5719   IFS=$as_save_IFS
   5720   case $as_dir in #(((
   5721     '') as_dir=./ ;;
   5722     */) ;;
   5723     *) as_dir=$as_dir/ ;;
   5724   esac
   5725     for ac_exec_ext in '' $ac_executable_extensions; do
   5726   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5727     ac_cv_prog_CC="${ac_tool_prefix}cc"
   5728     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5729     break 2
   5730   fi
   5731 done
   5732   done
   5733 IFS=$as_save_IFS
   5734 
   5735 fi
   5736 fi
   5737 CC=$ac_cv_prog_CC
   5738 if test -n "$CC"; then
   5739   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5740 printf "%s\n" "$CC" >&6; }
   5741 else
   5742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5743 printf "%s\n" "no" >&6; }
   5744 fi
   5745 
   5746 
   5747   fi
   5748 fi
   5749 if test -z "$CC"; then
   5750   # Extract the first word of "cc", so it can be a program name with args.
   5751 set dummy cc; ac_word=$2
   5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5753 printf %s "checking for $ac_word... " >&6; }
   5754 if test ${ac_cv_prog_CC+y}
   5755 then :
   5756   printf %s "(cached) " >&6
   5757 else $as_nop
   5758   if test -n "$CC"; then
   5759   ac_cv_prog_CC="$CC" # Let the user override the test.
   5760 else
   5761   ac_prog_rejected=no
   5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5763 for as_dir in $PATH
   5764 do
   5765   IFS=$as_save_IFS
   5766   case $as_dir in #(((
   5767     '') as_dir=./ ;;
   5768     */) ;;
   5769     *) as_dir=$as_dir/ ;;
   5770   esac
   5771     for ac_exec_ext in '' $ac_executable_extensions; do
   5772   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5773     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   5774        ac_prog_rejected=yes
   5775        continue
   5776      fi
   5777     ac_cv_prog_CC="cc"
   5778     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5779     break 2
   5780   fi
   5781 done
   5782   done
   5783 IFS=$as_save_IFS
   5784 
   5785 if test $ac_prog_rejected = yes; then
   5786   # We found a bogon in the path, so make sure we never use it.
   5787   set dummy $ac_cv_prog_CC
   5788   shift
   5789   if test $# != 0; then
   5790     # We chose a different compiler from the bogus one.
   5791     # However, it has the same basename, so the bogon will be chosen
   5792     # first if we set CC to just the basename; use the full file name.
   5793     shift
   5794     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   5795   fi
   5796 fi
   5797 fi
   5798 fi
   5799 CC=$ac_cv_prog_CC
   5800 if test -n "$CC"; then
   5801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5802 printf "%s\n" "$CC" >&6; }
   5803 else
   5804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5805 printf "%s\n" "no" >&6; }
   5806 fi
   5807 
   5808 
   5809 fi
   5810 if test -z "$CC"; then
   5811   if test -n "$ac_tool_prefix"; then
   5812   for ac_prog in cl.exe
   5813   do
   5814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5817 printf %s "checking for $ac_word... " >&6; }
   5818 if test ${ac_cv_prog_CC+y}
   5819 then :
   5820   printf %s "(cached) " >&6
   5821 else $as_nop
   5822   if test -n "$CC"; then
   5823   ac_cv_prog_CC="$CC" # Let the user override the test.
   5824 else
   5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5826 for as_dir in $PATH
   5827 do
   5828   IFS=$as_save_IFS
   5829   case $as_dir in #(((
   5830     '') as_dir=./ ;;
   5831     */) ;;
   5832     *) as_dir=$as_dir/ ;;
   5833   esac
   5834     for ac_exec_ext in '' $ac_executable_extensions; do
   5835   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5836     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   5837     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5838     break 2
   5839   fi
   5840 done
   5841   done
   5842 IFS=$as_save_IFS
   5843 
   5844 fi
   5845 fi
   5846 CC=$ac_cv_prog_CC
   5847 if test -n "$CC"; then
   5848   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5849 printf "%s\n" "$CC" >&6; }
   5850 else
   5851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5852 printf "%s\n" "no" >&6; }
   5853 fi
   5854 
   5855 
   5856     test -n "$CC" && break
   5857   done
   5858 fi
   5859 if test -z "$CC"; then
   5860   ac_ct_CC=$CC
   5861   for ac_prog in cl.exe
   5862 do
   5863   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5864 set dummy $ac_prog; ac_word=$2
   5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5866 printf %s "checking for $ac_word... " >&6; }
   5867 if test ${ac_cv_prog_ac_ct_CC+y}
   5868 then :
   5869   printf %s "(cached) " >&6
   5870 else $as_nop
   5871   if test -n "$ac_ct_CC"; then
   5872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5873 else
   5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5875 for as_dir in $PATH
   5876 do
   5877   IFS=$as_save_IFS
   5878   case $as_dir in #(((
   5879     '') as_dir=./ ;;
   5880     */) ;;
   5881     *) as_dir=$as_dir/ ;;
   5882   esac
   5883     for ac_exec_ext in '' $ac_executable_extensions; do
   5884   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5885     ac_cv_prog_ac_ct_CC="$ac_prog"
   5886     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5887     break 2
   5888   fi
   5889 done
   5890   done
   5891 IFS=$as_save_IFS
   5892 
   5893 fi
   5894 fi
   5895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   5896 if test -n "$ac_ct_CC"; then
   5897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   5898 printf "%s\n" "$ac_ct_CC" >&6; }
   5899 else
   5900   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5901 printf "%s\n" "no" >&6; }
   5902 fi
   5903 
   5904 
   5905   test -n "$ac_ct_CC" && break
   5906 done
   5907 
   5908   if test "x$ac_ct_CC" = x; then
   5909     CC=""
   5910   else
   5911     case $cross_compiling:$ac_tool_warned in
   5912 yes:)
   5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5915 ac_tool_warned=yes ;;
   5916 esac
   5917     CC=$ac_ct_CC
   5918   fi
   5919 fi
   5920 
   5921 fi
   5922 if test -z "$CC"; then
   5923   if test -n "$ac_tool_prefix"; then
   5924   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   5925 set dummy ${ac_tool_prefix}clang; ac_word=$2
   5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5927 printf %s "checking for $ac_word... " >&6; }
   5928 if test ${ac_cv_prog_CC+y}
   5929 then :
   5930   printf %s "(cached) " >&6
   5931 else $as_nop
   5932   if test -n "$CC"; then
   5933   ac_cv_prog_CC="$CC" # Let the user override the test.
   5934 else
   5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5936 for as_dir in $PATH
   5937 do
   5938   IFS=$as_save_IFS
   5939   case $as_dir in #(((
   5940     '') as_dir=./ ;;
   5941     */) ;;
   5942     *) as_dir=$as_dir/ ;;
   5943   esac
   5944     for ac_exec_ext in '' $ac_executable_extensions; do
   5945   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5946     ac_cv_prog_CC="${ac_tool_prefix}clang"
   5947     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5948     break 2
   5949   fi
   5950 done
   5951   done
   5952 IFS=$as_save_IFS
   5953 
   5954 fi
   5955 fi
   5956 CC=$ac_cv_prog_CC
   5957 if test -n "$CC"; then
   5958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5959 printf "%s\n" "$CC" >&6; }
   5960 else
   5961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5962 printf "%s\n" "no" >&6; }
   5963 fi
   5964 
   5965 
   5966 fi
   5967 if test -z "$ac_cv_prog_CC"; then
   5968   ac_ct_CC=$CC
   5969   # Extract the first word of "clang", so it can be a program name with args.
   5970 set dummy clang; ac_word=$2
   5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5972 printf %s "checking for $ac_word... " >&6; }
   5973 if test ${ac_cv_prog_ac_ct_CC+y}
   5974 then :
   5975   printf %s "(cached) " >&6
   5976 else $as_nop
   5977   if test -n "$ac_ct_CC"; then
   5978   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5979 else
   5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5981 for as_dir in $PATH
   5982 do
   5983   IFS=$as_save_IFS
   5984   case $as_dir in #(((
   5985     '') as_dir=./ ;;
   5986     */) ;;
   5987     *) as_dir=$as_dir/ ;;
   5988   esac
   5989     for ac_exec_ext in '' $ac_executable_extensions; do
   5990   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5991     ac_cv_prog_ac_ct_CC="clang"
   5992     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5993     break 2
   5994   fi
   5995 done
   5996   done
   5997 IFS=$as_save_IFS
   5998 
   5999 fi
   6000 fi
   6001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   6002 if test -n "$ac_ct_CC"; then
   6003   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   6004 printf "%s\n" "$ac_ct_CC" >&6; }
   6005 else
   6006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6007 printf "%s\n" "no" >&6; }
   6008 fi
   6009 
   6010   if test "x$ac_ct_CC" = x; then
   6011     CC=""
   6012   else
   6013     case $cross_compiling:$ac_tool_warned in
   6014 yes:)
   6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6016 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6017 ac_tool_warned=yes ;;
   6018 esac
   6019     CC=$ac_ct_CC
   6020   fi
   6021 else
   6022   CC="$ac_cv_prog_CC"
   6023 fi
   6024 
   6025 fi
   6026 
   6027 
   6028 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6029 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6030 as_fn_error $? "no acceptable C compiler found in \$PATH
   6031 See \`config.log' for more details" "$LINENO" 5; }
   6032 
   6033 # Provide some information about the compiler.
   6034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   6035 set X $ac_compile
   6036 ac_compiler=$2
   6037 for ac_option in --version -v -V -qversion -version; do
   6038   { { ac_try="$ac_compiler $ac_option >&5"
   6039 case "(($ac_try" in
   6040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6041   *) ac_try_echo=$ac_try;;
   6042 esac
   6043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6044 printf "%s\n" "$ac_try_echo"; } >&5
   6045   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   6046   ac_status=$?
   6047   if test -s conftest.err; then
   6048     sed '10a\
   6049 ... rest of stderr output deleted ...
   6050          10q' conftest.err >conftest.er1
   6051     cat conftest.er1 >&5
   6052   fi
   6053   rm -f conftest.er1 conftest.err
   6054   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6055   test $ac_status = 0; }
   6056 done
   6057 
   6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6059 /* end confdefs.h.  */
   6060 
   6061 int
   6062 main (void)
   6063 {
   6064 
   6065   ;
   6066   return 0;
   6067 }
   6068 _ACEOF
   6069 ac_clean_files_save=$ac_clean_files
   6070 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   6071 # Try to create an executable without -o first, disregard a.out.
   6072 # It will help us diagnose broken compilers, and finding out an intuition
   6073 # of exeext.
   6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   6075 printf %s "checking whether the C compiler works... " >&6; }
   6076 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   6077 
   6078 # The possible output files:
   6079 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   6080 
   6081 ac_rmfiles=
   6082 for ac_file in $ac_files
   6083 do
   6084   case $ac_file in
   6085     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   6086     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   6087   esac
   6088 done
   6089 rm -f $ac_rmfiles
   6090 
   6091 if { { ac_try="$ac_link_default"
   6092 case "(($ac_try" in
   6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6094   *) ac_try_echo=$ac_try;;
   6095 esac
   6096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6097 printf "%s\n" "$ac_try_echo"; } >&5
   6098   (eval "$ac_link_default") 2>&5
   6099   ac_status=$?
   6100   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6101   test $ac_status = 0; }
   6102 then :
   6103   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   6104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   6105 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   6106 # so that the user can short-circuit this test for compilers unknown to
   6107 # Autoconf.
   6108 for ac_file in $ac_files ''
   6109 do
   6110   test -f "$ac_file" || continue
   6111   case $ac_file in
   6112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   6113 	;;
   6114     [ab].out )
   6115 	# We found the default executable, but exeext='' is most
   6116 	# certainly right.
   6117 	break;;
   6118     *.* )
   6119 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   6120 	then :; else
   6121 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   6122 	fi
   6123 	# We set ac_cv_exeext here because the later test for it is not
   6124 	# safe: cross compilers may not add the suffix if given an `-o'
   6125 	# argument, so we may need to know it at that point already.
   6126 	# Even if this section looks crufty: it has the advantage of
   6127 	# actually working.
   6128 	break;;
   6129     * )
   6130 	break;;
   6131   esac
   6132 done
   6133 test "$ac_cv_exeext" = no && ac_cv_exeext=
   6134 
   6135 else $as_nop
   6136   ac_file=''
   6137 fi
   6138 if test -z "$ac_file"
   6139 then :
   6140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6141 printf "%s\n" "no" >&6; }
   6142 printf "%s\n" "$as_me: failed program was:" >&5
   6143 sed 's/^/| /' conftest.$ac_ext >&5
   6144 
   6145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6146 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6147 as_fn_error 77 "C compiler cannot create executables
   6148 See \`config.log' for more details" "$LINENO" 5; }
   6149 else $as_nop
   6150   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6151 printf "%s\n" "yes" >&6; }
   6152 fi
   6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   6154 printf %s "checking for C compiler default output file name... " >&6; }
   6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   6156 printf "%s\n" "$ac_file" >&6; }
   6157 ac_exeext=$ac_cv_exeext
   6158 
   6159 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   6160 ac_clean_files=$ac_clean_files_save
   6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   6162 printf %s "checking for suffix of executables... " >&6; }
   6163 if { { ac_try="$ac_link"
   6164 case "(($ac_try" in
   6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6166   *) ac_try_echo=$ac_try;;
   6167 esac
   6168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6169 printf "%s\n" "$ac_try_echo"; } >&5
   6170   (eval "$ac_link") 2>&5
   6171   ac_status=$?
   6172   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6173   test $ac_status = 0; }
   6174 then :
   6175   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   6176 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   6177 # work properly (i.e., refer to `conftest.exe'), while it won't with
   6178 # `rm'.
   6179 for ac_file in conftest.exe conftest conftest.*; do
   6180   test -f "$ac_file" || continue
   6181   case $ac_file in
   6182     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   6183     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   6184 	  break;;
   6185     * ) break;;
   6186   esac
   6187 done
   6188 else $as_nop
   6189   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   6192 See \`config.log' for more details" "$LINENO" 5; }
   6193 fi
   6194 rm -f conftest conftest$ac_cv_exeext
   6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   6196 printf "%s\n" "$ac_cv_exeext" >&6; }
   6197 
   6198 rm -f conftest.$ac_ext
   6199 EXEEXT=$ac_cv_exeext
   6200 ac_exeext=$EXEEXT
   6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6202 /* end confdefs.h.  */
   6203 #include <stdio.h>
   6204 int
   6205 main (void)
   6206 {
   6207 FILE *f = fopen ("conftest.out", "w");
   6208  return ferror (f) || fclose (f) != 0;
   6209 
   6210   ;
   6211   return 0;
   6212 }
   6213 _ACEOF
   6214 ac_clean_files="$ac_clean_files conftest.out"
   6215 # Check that the compiler produces executables we can run.  If not, either
   6216 # the compiler is broken, or we cross compile.
   6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   6218 printf %s "checking whether we are cross compiling... " >&6; }
   6219 if test "$cross_compiling" != yes; then
   6220   { { ac_try="$ac_link"
   6221 case "(($ac_try" in
   6222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6223   *) ac_try_echo=$ac_try;;
   6224 esac
   6225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6226 printf "%s\n" "$ac_try_echo"; } >&5
   6227   (eval "$ac_link") 2>&5
   6228   ac_status=$?
   6229   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6230   test $ac_status = 0; }
   6231   if { ac_try='./conftest$ac_cv_exeext'
   6232   { { case "(($ac_try" in
   6233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6234   *) ac_try_echo=$ac_try;;
   6235 esac
   6236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6237 printf "%s\n" "$ac_try_echo"; } >&5
   6238   (eval "$ac_try") 2>&5
   6239   ac_status=$?
   6240   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6241   test $ac_status = 0; }; }; then
   6242     cross_compiling=no
   6243   else
   6244     if test "$cross_compiling" = maybe; then
   6245 	cross_compiling=yes
   6246     else
   6247 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6248 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6249 as_fn_error 77 "cannot run C compiled programs.
   6250 If you meant to cross compile, use \`--host'.
   6251 See \`config.log' for more details" "$LINENO" 5; }
   6252     fi
   6253   fi
   6254 fi
   6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   6256 printf "%s\n" "$cross_compiling" >&6; }
   6257 
   6258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   6259 ac_clean_files=$ac_clean_files_save
   6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   6261 printf %s "checking for suffix of object files... " >&6; }
   6262 if test ${ac_cv_objext+y}
   6263 then :
   6264   printf %s "(cached) " >&6
   6265 else $as_nop
   6266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6267 /* end confdefs.h.  */
   6268 
   6269 int
   6270 main (void)
   6271 {
   6272 
   6273   ;
   6274   return 0;
   6275 }
   6276 _ACEOF
   6277 rm -f conftest.o conftest.obj
   6278 if { { ac_try="$ac_compile"
   6279 case "(($ac_try" in
   6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6281   *) ac_try_echo=$ac_try;;
   6282 esac
   6283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6284 printf "%s\n" "$ac_try_echo"; } >&5
   6285   (eval "$ac_compile") 2>&5
   6286   ac_status=$?
   6287   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6288   test $ac_status = 0; }
   6289 then :
   6290   for ac_file in conftest.o conftest.obj conftest.*; do
   6291   test -f "$ac_file" || continue;
   6292   case $ac_file in
   6293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   6294     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   6295        break;;
   6296   esac
   6297 done
   6298 else $as_nop
   6299   printf "%s\n" "$as_me: failed program was:" >&5
   6300 sed 's/^/| /' conftest.$ac_ext >&5
   6301 
   6302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6304 as_fn_error $? "cannot compute suffix of object files: cannot compile
   6305 See \`config.log' for more details" "$LINENO" 5; }
   6306 fi
   6307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   6308 fi
   6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   6310 printf "%s\n" "$ac_cv_objext" >&6; }
   6311 OBJEXT=$ac_cv_objext
   6312 ac_objext=$OBJEXT
   6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   6314 printf %s "checking whether the compiler supports GNU C... " >&6; }
   6315 if test ${ac_cv_c_compiler_gnu+y}
   6316 then :
   6317   printf %s "(cached) " >&6
   6318 else $as_nop
   6319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6320 /* end confdefs.h.  */
   6321 
   6322 int
   6323 main (void)
   6324 {
   6325 #ifndef __GNUC__
   6326        choke me
   6327 #endif
   6328 
   6329   ;
   6330   return 0;
   6331 }
   6332 _ACEOF
   6333 if ac_fn_c_try_compile "$LINENO"
   6334 then :
   6335   ac_compiler_gnu=yes
   6336 else $as_nop
   6337   ac_compiler_gnu=no
   6338 fi
   6339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   6341 
   6342 fi
   6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   6344 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   6345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6346 
   6347 if test $ac_compiler_gnu = yes; then
   6348   GCC=yes
   6349 else
   6350   GCC=
   6351 fi
   6352 ac_test_CFLAGS=${CFLAGS+y}
   6353 ac_save_CFLAGS=$CFLAGS
   6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   6355 printf %s "checking whether $CC accepts -g... " >&6; }
   6356 if test ${ac_cv_prog_cc_g+y}
   6357 then :
   6358   printf %s "(cached) " >&6
   6359 else $as_nop
   6360   ac_save_c_werror_flag=$ac_c_werror_flag
   6361    ac_c_werror_flag=yes
   6362    ac_cv_prog_cc_g=no
   6363    CFLAGS="-g"
   6364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6365 /* end confdefs.h.  */
   6366 
   6367 int
   6368 main (void)
   6369 {
   6370 
   6371   ;
   6372   return 0;
   6373 }
   6374 _ACEOF
   6375 if ac_fn_c_try_compile "$LINENO"
   6376 then :
   6377   ac_cv_prog_cc_g=yes
   6378 else $as_nop
   6379   CFLAGS=""
   6380       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6381 /* end confdefs.h.  */
   6382 
   6383 int
   6384 main (void)
   6385 {
   6386 
   6387   ;
   6388   return 0;
   6389 }
   6390 _ACEOF
   6391 if ac_fn_c_try_compile "$LINENO"
   6392 then :
   6393 
   6394 else $as_nop
   6395   ac_c_werror_flag=$ac_save_c_werror_flag
   6396 	 CFLAGS="-g"
   6397 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6398 /* end confdefs.h.  */
   6399 
   6400 int
   6401 main (void)
   6402 {
   6403 
   6404   ;
   6405   return 0;
   6406 }
   6407 _ACEOF
   6408 if ac_fn_c_try_compile "$LINENO"
   6409 then :
   6410   ac_cv_prog_cc_g=yes
   6411 fi
   6412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6413 fi
   6414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6415 fi
   6416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6417    ac_c_werror_flag=$ac_save_c_werror_flag
   6418 fi
   6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   6420 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   6421 if test $ac_test_CFLAGS; then
   6422   CFLAGS=$ac_save_CFLAGS
   6423 elif test $ac_cv_prog_cc_g = yes; then
   6424   if test "$GCC" = yes; then
   6425     CFLAGS="-g -O2"
   6426   else
   6427     CFLAGS="-g"
   6428   fi
   6429 else
   6430   if test "$GCC" = yes; then
   6431     CFLAGS="-O2"
   6432   else
   6433     CFLAGS=
   6434   fi
   6435 fi
   6436 ac_prog_cc_stdc=no
   6437 if test x$ac_prog_cc_stdc = xno
   6438 then :
   6439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   6440 printf %s "checking for $CC option to enable C11 features... " >&6; }
   6441 if test ${ac_cv_prog_cc_c11+y}
   6442 then :
   6443   printf %s "(cached) " >&6
   6444 else $as_nop
   6445   ac_cv_prog_cc_c11=no
   6446 ac_save_CC=$CC
   6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6448 /* end confdefs.h.  */
   6449 $ac_c_conftest_c11_program
   6450 _ACEOF
   6451 for ac_arg in '' -std=gnu11
   6452 do
   6453   CC="$ac_save_CC $ac_arg"
   6454   if ac_fn_c_try_compile "$LINENO"
   6455 then :
   6456   ac_cv_prog_cc_c11=$ac_arg
   6457 fi
   6458 rm -f core conftest.err conftest.$ac_objext conftest.beam
   6459   test "x$ac_cv_prog_cc_c11" != "xno" && break
   6460 done
   6461 rm -f conftest.$ac_ext
   6462 CC=$ac_save_CC
   6463 fi
   6464 
   6465 if test "x$ac_cv_prog_cc_c11" = xno
   6466 then :
   6467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   6468 printf "%s\n" "unsupported" >&6; }
   6469 else $as_nop
   6470   if test "x$ac_cv_prog_cc_c11" = x
   6471 then :
   6472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   6473 printf "%s\n" "none needed" >&6; }
   6474 else $as_nop
   6475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   6476 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   6477      CC="$CC $ac_cv_prog_cc_c11"
   6478 fi
   6479   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   6480   ac_prog_cc_stdc=c11
   6481 fi
   6482 fi
   6483 if test x$ac_prog_cc_stdc = xno
   6484 then :
   6485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   6486 printf %s "checking for $CC option to enable C99 features... " >&6; }
   6487 if test ${ac_cv_prog_cc_c99+y}
   6488 then :
   6489   printf %s "(cached) " >&6
   6490 else $as_nop
   6491   ac_cv_prog_cc_c99=no
   6492 ac_save_CC=$CC
   6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6494 /* end confdefs.h.  */
   6495 $ac_c_conftest_c99_program
   6496 _ACEOF
   6497 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   6498 do
   6499   CC="$ac_save_CC $ac_arg"
   6500   if ac_fn_c_try_compile "$LINENO"
   6501 then :
   6502   ac_cv_prog_cc_c99=$ac_arg
   6503 fi
   6504 rm -f core conftest.err conftest.$ac_objext conftest.beam
   6505   test "x$ac_cv_prog_cc_c99" != "xno" && break
   6506 done
   6507 rm -f conftest.$ac_ext
   6508 CC=$ac_save_CC
   6509 fi
   6510 
   6511 if test "x$ac_cv_prog_cc_c99" = xno
   6512 then :
   6513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   6514 printf "%s\n" "unsupported" >&6; }
   6515 else $as_nop
   6516   if test "x$ac_cv_prog_cc_c99" = x
   6517 then :
   6518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   6519 printf "%s\n" "none needed" >&6; }
   6520 else $as_nop
   6521   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   6522 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   6523      CC="$CC $ac_cv_prog_cc_c99"
   6524 fi
   6525   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   6526   ac_prog_cc_stdc=c99
   6527 fi
   6528 fi
   6529 if test x$ac_prog_cc_stdc = xno
   6530 then :
   6531   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   6532 printf %s "checking for $CC option to enable C89 features... " >&6; }
   6533 if test ${ac_cv_prog_cc_c89+y}
   6534 then :
   6535   printf %s "(cached) " >&6
   6536 else $as_nop
   6537   ac_cv_prog_cc_c89=no
   6538 ac_save_CC=$CC
   6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6540 /* end confdefs.h.  */
   6541 $ac_c_conftest_c89_program
   6542 _ACEOF
   6543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   6544 do
   6545   CC="$ac_save_CC $ac_arg"
   6546   if ac_fn_c_try_compile "$LINENO"
   6547 then :
   6548   ac_cv_prog_cc_c89=$ac_arg
   6549 fi
   6550 rm -f core conftest.err conftest.$ac_objext conftest.beam
   6551   test "x$ac_cv_prog_cc_c89" != "xno" && break
   6552 done
   6553 rm -f conftest.$ac_ext
   6554 CC=$ac_save_CC
   6555 fi
   6556 
   6557 if test "x$ac_cv_prog_cc_c89" = xno
   6558 then :
   6559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   6560 printf "%s\n" "unsupported" >&6; }
   6561 else $as_nop
   6562   if test "x$ac_cv_prog_cc_c89" = x
   6563 then :
   6564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   6565 printf "%s\n" "none needed" >&6; }
   6566 else $as_nop
   6567   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   6568 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   6569      CC="$CC $ac_cv_prog_cc_c89"
   6570 fi
   6571   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   6572   ac_prog_cc_stdc=c89
   6573 fi
   6574 fi
   6575 
   6576 ac_ext=c
   6577 ac_cpp='$CPP $CPPFLAGS'
   6578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6581 
   6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   6583 printf %s "checking for a sed that does not truncate output... " >&6; }
   6584 if test ${ac_cv_path_SED+y}
   6585 then :
   6586   printf %s "(cached) " >&6
   6587 else $as_nop
   6588             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   6589      for ac_i in 1 2 3 4 5 6 7; do
   6590        ac_script="$ac_script$as_nl$ac_script"
   6591      done
   6592      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   6593      { ac_script=; unset ac_script;}
   6594      if test -z "$SED"; then
   6595   ac_path_SED_found=false
   6596   # Loop through the user's path and test for each of PROGNAME-LIST
   6597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6598 for as_dir in $PATH
   6599 do
   6600   IFS=$as_save_IFS
   6601   case $as_dir in #(((
   6602     '') as_dir=./ ;;
   6603     */) ;;
   6604     *) as_dir=$as_dir/ ;;
   6605   esac
   6606     for ac_prog in sed gsed
   6607    do
   6608     for ac_exec_ext in '' $ac_executable_extensions; do
   6609       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
   6610       as_fn_executable_p "$ac_path_SED" || continue
   6611 # Check for GNU ac_path_SED and select it if it is found.
   6612   # Check for GNU $ac_path_SED
   6613 case `"$ac_path_SED" --version 2>&1` in
   6614 *GNU*)
   6615   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   6616 *)
   6617   ac_count=0
   6618   printf %s 0123456789 >"conftest.in"
   6619   while :
   6620   do
   6621     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6622     mv "conftest.tmp" "conftest.in"
   6623     cp "conftest.in" "conftest.nl"
   6624     printf "%s\n" '' >> "conftest.nl"
   6625     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6626     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6627     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6628     if test $ac_count -gt ${ac_path_SED_max-0}; then
   6629       # Best one so far, save it but keep looking for a better one
   6630       ac_cv_path_SED="$ac_path_SED"
   6631       ac_path_SED_max=$ac_count
   6632     fi
   6633     # 10*(2^10) chars as input seems more than enough
   6634     test $ac_count -gt 10 && break
   6635   done
   6636   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6637 esac
   6638 
   6639       $ac_path_SED_found && break 3
   6640     done
   6641   done
   6642   done
   6643 IFS=$as_save_IFS
   6644   if test -z "$ac_cv_path_SED"; then
   6645     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   6646   fi
   6647 else
   6648   ac_cv_path_SED=$SED
   6649 fi
   6650 
   6651 fi
   6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   6653 printf "%s\n" "$ac_cv_path_SED" >&6; }
   6654  SED="$ac_cv_path_SED"
   6655   rm -f conftest.sed
   6656 
   6657 test -z "$SED" && SED=sed
   6658 Xsed="$SED -e 1s/^X//"
   6659 
   6660 
   6661 
   6662 
   6663 
   6664 
   6665 
   6666 
   6667 
   6668 
   6669 
   6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   6671 printf %s "checking for grep that handles long lines and -e... " >&6; }
   6672 if test ${ac_cv_path_GREP+y}
   6673 then :
   6674   printf %s "(cached) " >&6
   6675 else $as_nop
   6676   if test -z "$GREP"; then
   6677   ac_path_GREP_found=false
   6678   # Loop through the user's path and test for each of PROGNAME-LIST
   6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6681 do
   6682   IFS=$as_save_IFS
   6683   case $as_dir in #(((
   6684     '') as_dir=./ ;;
   6685     */) ;;
   6686     *) as_dir=$as_dir/ ;;
   6687   esac
   6688     for ac_prog in grep ggrep
   6689    do
   6690     for ac_exec_ext in '' $ac_executable_extensions; do
   6691       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   6692       as_fn_executable_p "$ac_path_GREP" || continue
   6693 # Check for GNU ac_path_GREP and select it if it is found.
   6694   # Check for GNU $ac_path_GREP
   6695 case `"$ac_path_GREP" --version 2>&1` in
   6696 *GNU*)
   6697   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   6698 *)
   6699   ac_count=0
   6700   printf %s 0123456789 >"conftest.in"
   6701   while :
   6702   do
   6703     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6704     mv "conftest.tmp" "conftest.in"
   6705     cp "conftest.in" "conftest.nl"
   6706     printf "%s\n" 'GREP' >> "conftest.nl"
   6707     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6709     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6710     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   6711       # Best one so far, save it but keep looking for a better one
   6712       ac_cv_path_GREP="$ac_path_GREP"
   6713       ac_path_GREP_max=$ac_count
   6714     fi
   6715     # 10*(2^10) chars as input seems more than enough
   6716     test $ac_count -gt 10 && break
   6717   done
   6718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6719 esac
   6720 
   6721       $ac_path_GREP_found && break 3
   6722     done
   6723   done
   6724   done
   6725 IFS=$as_save_IFS
   6726   if test -z "$ac_cv_path_GREP"; then
   6727     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6728   fi
   6729 else
   6730   ac_cv_path_GREP=$GREP
   6731 fi
   6732 
   6733 fi
   6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   6735 printf "%s\n" "$ac_cv_path_GREP" >&6; }
   6736  GREP="$ac_cv_path_GREP"
   6737 
   6738 
   6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   6740 printf %s "checking for egrep... " >&6; }
   6741 if test ${ac_cv_path_EGREP+y}
   6742 then :
   6743   printf %s "(cached) " >&6
   6744 else $as_nop
   6745   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   6746    then ac_cv_path_EGREP="$GREP -E"
   6747    else
   6748      if test -z "$EGREP"; then
   6749   ac_path_EGREP_found=false
   6750   # Loop through the user's path and test for each of PROGNAME-LIST
   6751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6753 do
   6754   IFS=$as_save_IFS
   6755   case $as_dir in #(((
   6756     '') as_dir=./ ;;
   6757     */) ;;
   6758     *) as_dir=$as_dir/ ;;
   6759   esac
   6760     for ac_prog in egrep
   6761    do
   6762     for ac_exec_ext in '' $ac_executable_extensions; do
   6763       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   6764       as_fn_executable_p "$ac_path_EGREP" || continue
   6765 # Check for GNU ac_path_EGREP and select it if it is found.
   6766   # Check for GNU $ac_path_EGREP
   6767 case `"$ac_path_EGREP" --version 2>&1` in
   6768 *GNU*)
   6769   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   6770 *)
   6771   ac_count=0
   6772   printf %s 0123456789 >"conftest.in"
   6773   while :
   6774   do
   6775     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6776     mv "conftest.tmp" "conftest.in"
   6777     cp "conftest.in" "conftest.nl"
   6778     printf "%s\n" 'EGREP' >> "conftest.nl"
   6779     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6780     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6781     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6782     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   6783       # Best one so far, save it but keep looking for a better one
   6784       ac_cv_path_EGREP="$ac_path_EGREP"
   6785       ac_path_EGREP_max=$ac_count
   6786     fi
   6787     # 10*(2^10) chars as input seems more than enough
   6788     test $ac_count -gt 10 && break
   6789   done
   6790   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6791 esac
   6792 
   6793       $ac_path_EGREP_found && break 3
   6794     done
   6795   done
   6796   done
   6797 IFS=$as_save_IFS
   6798   if test -z "$ac_cv_path_EGREP"; then
   6799     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6800   fi
   6801 else
   6802   ac_cv_path_EGREP=$EGREP
   6803 fi
   6804 
   6805    fi
   6806 fi
   6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   6808 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   6809  EGREP="$ac_cv_path_EGREP"
   6810 
   6811 
   6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   6813 printf %s "checking for fgrep... " >&6; }
   6814 if test ${ac_cv_path_FGREP+y}
   6815 then :
   6816   printf %s "(cached) " >&6
   6817 else $as_nop
   6818   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   6819    then ac_cv_path_FGREP="$GREP -F"
   6820    else
   6821      if test -z "$FGREP"; then
   6822   ac_path_FGREP_found=false
   6823   # Loop through the user's path and test for each of PROGNAME-LIST
   6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6826 do
   6827   IFS=$as_save_IFS
   6828   case $as_dir in #(((
   6829     '') as_dir=./ ;;
   6830     */) ;;
   6831     *) as_dir=$as_dir/ ;;
   6832   esac
   6833     for ac_prog in fgrep
   6834    do
   6835     for ac_exec_ext in '' $ac_executable_extensions; do
   6836       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
   6837       as_fn_executable_p "$ac_path_FGREP" || continue
   6838 # Check for GNU ac_path_FGREP and select it if it is found.
   6839   # Check for GNU $ac_path_FGREP
   6840 case `"$ac_path_FGREP" --version 2>&1` in
   6841 *GNU*)
   6842   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   6843 *)
   6844   ac_count=0
   6845   printf %s 0123456789 >"conftest.in"
   6846   while :
   6847   do
   6848     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6849     mv "conftest.tmp" "conftest.in"
   6850     cp "conftest.in" "conftest.nl"
   6851     printf "%s\n" 'FGREP' >> "conftest.nl"
   6852     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6854     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6855     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   6856       # Best one so far, save it but keep looking for a better one
   6857       ac_cv_path_FGREP="$ac_path_FGREP"
   6858       ac_path_FGREP_max=$ac_count
   6859     fi
   6860     # 10*(2^10) chars as input seems more than enough
   6861     test $ac_count -gt 10 && break
   6862   done
   6863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6864 esac
   6865 
   6866       $ac_path_FGREP_found && break 3
   6867     done
   6868   done
   6869   done
   6870 IFS=$as_save_IFS
   6871   if test -z "$ac_cv_path_FGREP"; then
   6872     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6873   fi
   6874 else
   6875   ac_cv_path_FGREP=$FGREP
   6876 fi
   6877 
   6878    fi
   6879 fi
   6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   6881 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
   6882  FGREP="$ac_cv_path_FGREP"
   6883 
   6884 
   6885 test -z "$GREP" && GREP=grep
   6886 
   6887 
   6888 
   6889 
   6890 
   6891 
   6892 
   6893 
   6894 
   6895 
   6896 
   6897 
   6898 
   6899 
   6900 
   6901 
   6902 
   6903 
   6904 
   6905 # Check whether --with-gnu-ld was given.
   6906 if test ${with_gnu_ld+y}
   6907 then :
   6908   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   6909 else $as_nop
   6910   with_gnu_ld=no
   6911 fi
   6912 
   6913 ac_prog=ld
   6914 if test yes = "$GCC"; then
   6915   # Check if gcc -print-prog-name=ld gives a path.
   6916   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   6917 printf %s "checking for ld used by $CC... " >&6; }
   6918   case $host in
   6919   *-*-mingw*)
   6920     # gcc leaves a trailing carriage return, which upsets mingw
   6921     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   6922   *)
   6923     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   6924   esac
   6925   case $ac_prog in
   6926     # Accept absolute paths.
   6927     [\\/]* | ?:[\\/]*)
   6928       re_direlt='/[^/][^/]*/\.\./'
   6929       # Canonicalize the pathname of ld
   6930       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   6931       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   6932 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   6933       done
   6934       test -z "$LD" && LD=$ac_prog
   6935       ;;
   6936   "")
   6937     # If it fails, then pretend we aren't using GCC.
   6938     ac_prog=ld
   6939     ;;
   6940   *)
   6941     # If it is relative, then search for the first ld in PATH.
   6942     with_gnu_ld=unknown
   6943     ;;
   6944   esac
   6945 elif test yes = "$with_gnu_ld"; then
   6946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   6947 printf %s "checking for GNU ld... " >&6; }
   6948 else
   6949   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   6950 printf %s "checking for non-GNU ld... " >&6; }
   6951 fi
   6952 if test ${lt_cv_path_LD+y}
   6953 then :
   6954   printf %s "(cached) " >&6
   6955 else $as_nop
   6956   if test -z "$LD"; then
   6957   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   6958   for ac_dir in $PATH; do
   6959     IFS=$lt_save_ifs
   6960     test -z "$ac_dir" && ac_dir=.
   6961     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   6962       lt_cv_path_LD=$ac_dir/$ac_prog
   6963       # Check to see if the program is GNU ld.  I'd rather use --version,
   6964       # but apparently some variants of GNU ld only accept -v.
   6965       # Break only if it was the GNU/non-GNU ld that we prefer.
   6966       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   6967       *GNU* | *'with BFD'*)
   6968 	test no != "$with_gnu_ld" && break
   6969 	;;
   6970       *)
   6971 	test yes != "$with_gnu_ld" && break
   6972 	;;
   6973       esac
   6974     fi
   6975   done
   6976   IFS=$lt_save_ifs
   6977 else
   6978   lt_cv_path_LD=$LD # Let the user override the test with a path.
   6979 fi
   6980 fi
   6981 
   6982 LD=$lt_cv_path_LD
   6983 if test -n "$LD"; then
   6984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   6985 printf "%s\n" "$LD" >&6; }
   6986 else
   6987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6988 printf "%s\n" "no" >&6; }
   6989 fi
   6990 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   6992 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
   6993 if test ${lt_cv_prog_gnu_ld+y}
   6994 then :
   6995   printf %s "(cached) " >&6
   6996 else $as_nop
   6997   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   6998 case `$LD -v 2>&1 </dev/null` in
   6999 *GNU* | *'with BFD'*)
   7000   lt_cv_prog_gnu_ld=yes
   7001   ;;
   7002 *)
   7003   lt_cv_prog_gnu_ld=no
   7004   ;;
   7005 esac
   7006 fi
   7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   7008 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
   7009 with_gnu_ld=$lt_cv_prog_gnu_ld
   7010 
   7011 
   7012 
   7013 
   7014 
   7015 
   7016 
   7017 
   7018 
   7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   7020 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   7021 if test ${lt_cv_path_NM+y}
   7022 then :
   7023   printf %s "(cached) " >&6
   7024 else $as_nop
   7025   if test -n "$NM"; then
   7026   # Let the user override the test.
   7027   lt_cv_path_NM=$NM
   7028 else
   7029   lt_nm_to_check=${ac_tool_prefix}nm
   7030   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   7031     lt_nm_to_check="$lt_nm_to_check nm"
   7032   fi
   7033   for lt_tmp_nm in $lt_nm_to_check; do
   7034     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7035     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   7036       IFS=$lt_save_ifs
   7037       test -z "$ac_dir" && ac_dir=.
   7038       tmp_nm=$ac_dir/$lt_tmp_nm
   7039       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   7040 	# Check to see if the nm accepts a BSD-compat flag.
   7041 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   7042 	#   nm: unknown option "B" ignored
   7043 	# Tru64's nm complains that /dev/null is an invalid object file
   7044 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   7045 	case $build_os in
   7046 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   7047 	*) lt_bad_file=/dev/null ;;
   7048 	esac
   7049 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   7050 	*$lt_bad_file* | *'Invalid file or object type'*)
   7051 	  lt_cv_path_NM="$tmp_nm -B"
   7052 	  break 2
   7053 	  ;;
   7054 	*)
   7055 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   7056 	  */dev/null*)
   7057 	    lt_cv_path_NM="$tmp_nm -p"
   7058 	    break 2
   7059 	    ;;
   7060 	  *)
   7061 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   7062 	    continue # so that we can try to find one that supports BSD flags
   7063 	    ;;
   7064 	  esac
   7065 	  ;;
   7066 	esac
   7067       fi
   7068     done
   7069     IFS=$lt_save_ifs
   7070   done
   7071   : ${lt_cv_path_NM=no}
   7072 fi
   7073 fi
   7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   7075 printf "%s\n" "$lt_cv_path_NM" >&6; }
   7076 if test no != "$lt_cv_path_NM"; then
   7077   NM=$lt_cv_path_NM
   7078 else
   7079   # Didn't find any BSD compatible name lister, look for dumpbin.
   7080   if test -n "$DUMPBIN"; then :
   7081     # Let the user override the test.
   7082   else
   7083     if test -n "$ac_tool_prefix"; then
   7084   for ac_prog in dumpbin "link -dump"
   7085   do
   7086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   7087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7089 printf %s "checking for $ac_word... " >&6; }
   7090 if test ${ac_cv_prog_DUMPBIN+y}
   7091 then :
   7092   printf %s "(cached) " >&6
   7093 else $as_nop
   7094   if test -n "$DUMPBIN"; then
   7095   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   7096 else
   7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7098 for as_dir in $PATH
   7099 do
   7100   IFS=$as_save_IFS
   7101   case $as_dir in #(((
   7102     '') as_dir=./ ;;
   7103     */) ;;
   7104     *) as_dir=$as_dir/ ;;
   7105   esac
   7106     for ac_exec_ext in '' $ac_executable_extensions; do
   7107   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7108     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   7109     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7110     break 2
   7111   fi
   7112 done
   7113   done
   7114 IFS=$as_save_IFS
   7115 
   7116 fi
   7117 fi
   7118 DUMPBIN=$ac_cv_prog_DUMPBIN
   7119 if test -n "$DUMPBIN"; then
   7120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   7121 printf "%s\n" "$DUMPBIN" >&6; }
   7122 else
   7123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7124 printf "%s\n" "no" >&6; }
   7125 fi
   7126 
   7127 
   7128     test -n "$DUMPBIN" && break
   7129   done
   7130 fi
   7131 if test -z "$DUMPBIN"; then
   7132   ac_ct_DUMPBIN=$DUMPBIN
   7133   for ac_prog in dumpbin "link -dump"
   7134 do
   7135   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7136 set dummy $ac_prog; ac_word=$2
   7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7138 printf %s "checking for $ac_word... " >&6; }
   7139 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
   7140 then :
   7141   printf %s "(cached) " >&6
   7142 else $as_nop
   7143   if test -n "$ac_ct_DUMPBIN"; then
   7144   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   7145 else
   7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7147 for as_dir in $PATH
   7148 do
   7149   IFS=$as_save_IFS
   7150   case $as_dir in #(((
   7151     '') as_dir=./ ;;
   7152     */) ;;
   7153     *) as_dir=$as_dir/ ;;
   7154   esac
   7155     for ac_exec_ext in '' $ac_executable_extensions; do
   7156   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7157     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   7158     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7159     break 2
   7160   fi
   7161 done
   7162   done
   7163 IFS=$as_save_IFS
   7164 
   7165 fi
   7166 fi
   7167 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   7168 if test -n "$ac_ct_DUMPBIN"; then
   7169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   7170 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
   7171 else
   7172   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7173 printf "%s\n" "no" >&6; }
   7174 fi
   7175 
   7176 
   7177   test -n "$ac_ct_DUMPBIN" && break
   7178 done
   7179 
   7180   if test "x$ac_ct_DUMPBIN" = x; then
   7181     DUMPBIN=":"
   7182   else
   7183     case $cross_compiling:$ac_tool_warned in
   7184 yes:)
   7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7187 ac_tool_warned=yes ;;
   7188 esac
   7189     DUMPBIN=$ac_ct_DUMPBIN
   7190   fi
   7191 fi
   7192 
   7193     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   7194     *COFF*)
   7195       DUMPBIN="$DUMPBIN -symbols -headers"
   7196       ;;
   7197     *)
   7198       DUMPBIN=:
   7199       ;;
   7200     esac
   7201   fi
   7202 
   7203   if test : != "$DUMPBIN"; then
   7204     NM=$DUMPBIN
   7205   fi
   7206 fi
   7207 test -z "$NM" && NM=nm
   7208 
   7209 
   7210 
   7211 
   7212 
   7213 
   7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   7215 printf %s "checking the name lister ($NM) interface... " >&6; }
   7216 if test ${lt_cv_nm_interface+y}
   7217 then :
   7218   printf %s "(cached) " >&6
   7219 else $as_nop
   7220   lt_cv_nm_interface="BSD nm"
   7221   echo "int some_variable = 0;" > conftest.$ac_ext
   7222   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   7223   (eval "$ac_compile" 2>conftest.err)
   7224   cat conftest.err >&5
   7225   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   7226   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   7227   cat conftest.err >&5
   7228   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   7229   cat conftest.out >&5
   7230   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   7231     lt_cv_nm_interface="MS dumpbin"
   7232   fi
   7233   rm -f conftest*
   7234 fi
   7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   7236 printf "%s\n" "$lt_cv_nm_interface" >&6; }
   7237 
   7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7239 printf %s "checking whether ln -s works... " >&6; }
   7240 LN_S=$as_ln_s
   7241 if test "$LN_S" = "ln -s"; then
   7242   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7243 printf "%s\n" "yes" >&6; }
   7244 else
   7245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   7246 printf "%s\n" "no, using $LN_S" >&6; }
   7247 fi
   7248 
   7249 # find the maximum length of command line arguments
   7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   7251 printf %s "checking the maximum length of command line arguments... " >&6; }
   7252 if test ${lt_cv_sys_max_cmd_len+y}
   7253 then :
   7254   printf %s "(cached) " >&6
   7255 else $as_nop
   7256     i=0
   7257   teststring=ABCD
   7258 
   7259   case $build_os in
   7260   msdosdjgpp*)
   7261     # On DJGPP, this test can blow up pretty badly due to problems in libc
   7262     # (any single argument exceeding 2000 bytes causes a buffer overrun
   7263     # during glob expansion).  Even if it were fixed, the result of this
   7264     # check would be larger than it should be.
   7265     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   7266     ;;
   7267 
   7268   gnu*)
   7269     # Under GNU Hurd, this test is not required because there is
   7270     # no limit to the length of command line arguments.
   7271     # Libtool will interpret -1 as no limit whatsoever
   7272     lt_cv_sys_max_cmd_len=-1;
   7273     ;;
   7274 
   7275   cygwin* | mingw* | cegcc*)
   7276     # On Win9x/ME, this test blows up -- it succeeds, but takes
   7277     # about 5 minutes as the teststring grows exponentially.
   7278     # Worse, since 9x/ME are not pre-emptively multitasking,
   7279     # you end up with a "frozen" computer, even though with patience
   7280     # the test eventually succeeds (with a max line length of 256k).
   7281     # Instead, let's just punt: use the minimum linelength reported by
   7282     # all of the supported platforms: 8192 (on NT/2K/XP).
   7283     lt_cv_sys_max_cmd_len=8192;
   7284     ;;
   7285 
   7286   mint*)
   7287     # On MiNT this can take a long time and run out of memory.
   7288     lt_cv_sys_max_cmd_len=8192;
   7289     ;;
   7290 
   7291   amigaos*)
   7292     # On AmigaOS with pdksh, this test takes hours, literally.
   7293     # So we just punt and use a minimum line length of 8192.
   7294     lt_cv_sys_max_cmd_len=8192;
   7295     ;;
   7296 
   7297   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   7298     # This has been around since 386BSD, at least.  Likely further.
   7299     if test -x /sbin/sysctl; then
   7300       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   7301     elif test -x /usr/sbin/sysctl; then
   7302       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   7303     else
   7304       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   7305     fi
   7306     # And add a safety zone
   7307     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7308     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7309     ;;
   7310 
   7311   interix*)
   7312     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   7313     lt_cv_sys_max_cmd_len=196608
   7314     ;;
   7315 
   7316   os2*)
   7317     # The test takes a long time on OS/2.
   7318     lt_cv_sys_max_cmd_len=8192
   7319     ;;
   7320 
   7321   osf*)
   7322     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   7323     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   7324     # nice to cause kernel panics so lets avoid the loop below.
   7325     # First set a reasonable default.
   7326     lt_cv_sys_max_cmd_len=16384
   7327     #
   7328     if test -x /sbin/sysconfig; then
   7329       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   7330         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   7331       esac
   7332     fi
   7333     ;;
   7334   sco3.2v5*)
   7335     lt_cv_sys_max_cmd_len=102400
   7336     ;;
   7337   sysv5* | sco5v6* | sysv4.2uw2*)
   7338     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   7339     if test -n "$kargmax"; then
   7340       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   7341     else
   7342       lt_cv_sys_max_cmd_len=32768
   7343     fi
   7344     ;;
   7345   *)
   7346     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   7347     if test -n "$lt_cv_sys_max_cmd_len" && \
   7348        test undefined != "$lt_cv_sys_max_cmd_len"; then
   7349       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7350       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7351     else
   7352       # Make teststring a little bigger before we do anything with it.
   7353       # a 1K string should be a reasonable start.
   7354       for i in 1 2 3 4 5 6 7 8; do
   7355         teststring=$teststring$teststring
   7356       done
   7357       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   7358       # If test is not a shell built-in, we'll probably end up computing a
   7359       # maximum length that is only half of the actual maximum length, but
   7360       # we can't tell.
   7361       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   7362 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   7363 	      test 17 != "$i" # 1/2 MB should be enough
   7364       do
   7365         i=`expr $i + 1`
   7366         teststring=$teststring$teststring
   7367       done
   7368       # Only check the string length outside the loop.
   7369       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   7370       teststring=
   7371       # Add a significant safety factor because C++ compilers can tack on
   7372       # massive amounts of additional arguments before passing them to the
   7373       # linker.  It appears as though 1/2 is a usable value.
   7374       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   7375     fi
   7376     ;;
   7377   esac
   7378 
   7379 fi
   7380 
   7381 if test -n "$lt_cv_sys_max_cmd_len"; then
   7382   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   7383 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
   7384 else
   7385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
   7386 printf "%s\n" "none" >&6; }
   7387 fi
   7388 max_cmd_len=$lt_cv_sys_max_cmd_len
   7389 
   7390 
   7391 
   7392 
   7393 
   7394 
   7395 : ${CP="cp -f"}
   7396 : ${MV="mv -f"}
   7397 : ${RM="rm -f"}
   7398 
   7399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   7400   lt_unset=unset
   7401 else
   7402   lt_unset=false
   7403 fi
   7404 
   7405 
   7406 
   7407 
   7408 
   7409 # test EBCDIC or ASCII
   7410 case `echo X|tr X '\101'` in
   7411  A) # ASCII based system
   7412     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   7413   lt_SP2NL='tr \040 \012'
   7414   lt_NL2SP='tr \015\012 \040\040'
   7415   ;;
   7416  *) # EBCDIC based system
   7417   lt_SP2NL='tr \100 \n'
   7418   lt_NL2SP='tr \r\n \100\100'
   7419   ;;
   7420 esac
   7421 
   7422 
   7423 
   7424 
   7425 
   7426 
   7427 
   7428 
   7429 
   7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   7431 printf %s "checking how to convert $build file names to $host format... " >&6; }
   7432 if test ${lt_cv_to_host_file_cmd+y}
   7433 then :
   7434   printf %s "(cached) " >&6
   7435 else $as_nop
   7436   case $host in
   7437   *-*-mingw* )
   7438     case $build in
   7439       *-*-mingw* ) # actually msys
   7440         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   7441         ;;
   7442       *-*-cygwin* )
   7443         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   7444         ;;
   7445       * ) # otherwise, assume *nix
   7446         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   7447         ;;
   7448     esac
   7449     ;;
   7450   *-*-cygwin* )
   7451     case $build in
   7452       *-*-mingw* ) # actually msys
   7453         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   7454         ;;
   7455       *-*-cygwin* )
   7456         lt_cv_to_host_file_cmd=func_convert_file_noop
   7457         ;;
   7458       * ) # otherwise, assume *nix
   7459         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   7460         ;;
   7461     esac
   7462     ;;
   7463   * ) # unhandled hosts (and "normal" native builds)
   7464     lt_cv_to_host_file_cmd=func_convert_file_noop
   7465     ;;
   7466 esac
   7467 
   7468 fi
   7469 
   7470 to_host_file_cmd=$lt_cv_to_host_file_cmd
   7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   7472 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
   7473 
   7474 
   7475 
   7476 
   7477 
   7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   7479 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
   7480 if test ${lt_cv_to_tool_file_cmd+y}
   7481 then :
   7482   printf %s "(cached) " >&6
   7483 else $as_nop
   7484   #assume ordinary cross tools, or native build.
   7485 lt_cv_to_tool_file_cmd=func_convert_file_noop
   7486 case $host in
   7487   *-*-mingw* )
   7488     case $build in
   7489       *-*-mingw* ) # actually msys
   7490         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   7491         ;;
   7492     esac
   7493     ;;
   7494 esac
   7495 
   7496 fi
   7497 
   7498 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   7500 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
   7501 
   7502 
   7503 
   7504 
   7505 
   7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   7507 printf %s "checking for $LD option to reload object files... " >&6; }
   7508 if test ${lt_cv_ld_reload_flag+y}
   7509 then :
   7510   printf %s "(cached) " >&6
   7511 else $as_nop
   7512   lt_cv_ld_reload_flag='-r'
   7513 fi
   7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   7515 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
   7516 reload_flag=$lt_cv_ld_reload_flag
   7517 case $reload_flag in
   7518 "" | " "*) ;;
   7519 *) reload_flag=" $reload_flag" ;;
   7520 esac
   7521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7522 case $host_os in
   7523   cygwin* | mingw* | pw32* | cegcc*)
   7524     if test yes != "$GCC"; then
   7525       reload_cmds=false
   7526     fi
   7527     ;;
   7528   darwin*)
   7529     if test yes = "$GCC"; then
   7530       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   7531     else
   7532       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7533     fi
   7534     ;;
   7535 esac
   7536 
   7537 
   7538 
   7539 
   7540 
   7541 
   7542 
   7543 
   7544 
   7545 if test -n "$ac_tool_prefix"; then
   7546   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   7547 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7549 printf %s "checking for $ac_word... " >&6; }
   7550 if test ${ac_cv_prog_OBJDUMP+y}
   7551 then :
   7552   printf %s "(cached) " >&6
   7553 else $as_nop
   7554   if test -n "$OBJDUMP"; then
   7555   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   7556 else
   7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7558 for as_dir in $PATH
   7559 do
   7560   IFS=$as_save_IFS
   7561   case $as_dir in #(((
   7562     '') as_dir=./ ;;
   7563     */) ;;
   7564     *) as_dir=$as_dir/ ;;
   7565   esac
   7566     for ac_exec_ext in '' $ac_executable_extensions; do
   7567   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7568     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   7569     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7570     break 2
   7571   fi
   7572 done
   7573   done
   7574 IFS=$as_save_IFS
   7575 
   7576 fi
   7577 fi
   7578 OBJDUMP=$ac_cv_prog_OBJDUMP
   7579 if test -n "$OBJDUMP"; then
   7580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   7581 printf "%s\n" "$OBJDUMP" >&6; }
   7582 else
   7583   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7584 printf "%s\n" "no" >&6; }
   7585 fi
   7586 
   7587 
   7588 fi
   7589 if test -z "$ac_cv_prog_OBJDUMP"; then
   7590   ac_ct_OBJDUMP=$OBJDUMP
   7591   # Extract the first word of "objdump", so it can be a program name with args.
   7592 set dummy objdump; ac_word=$2
   7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7594 printf %s "checking for $ac_word... " >&6; }
   7595 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
   7596 then :
   7597   printf %s "(cached) " >&6
   7598 else $as_nop
   7599   if test -n "$ac_ct_OBJDUMP"; then
   7600   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   7601 else
   7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7603 for as_dir in $PATH
   7604 do
   7605   IFS=$as_save_IFS
   7606   case $as_dir in #(((
   7607     '') as_dir=./ ;;
   7608     */) ;;
   7609     *) as_dir=$as_dir/ ;;
   7610   esac
   7611     for ac_exec_ext in '' $ac_executable_extensions; do
   7612   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7613     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   7614     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7615     break 2
   7616   fi
   7617 done
   7618   done
   7619 IFS=$as_save_IFS
   7620 
   7621 fi
   7622 fi
   7623 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   7624 if test -n "$ac_ct_OBJDUMP"; then
   7625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   7626 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
   7627 else
   7628   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7629 printf "%s\n" "no" >&6; }
   7630 fi
   7631 
   7632   if test "x$ac_ct_OBJDUMP" = x; then
   7633     OBJDUMP="false"
   7634   else
   7635     case $cross_compiling:$ac_tool_warned in
   7636 yes:)
   7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7638 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7639 ac_tool_warned=yes ;;
   7640 esac
   7641     OBJDUMP=$ac_ct_OBJDUMP
   7642   fi
   7643 else
   7644   OBJDUMP="$ac_cv_prog_OBJDUMP"
   7645 fi
   7646 
   7647 test -z "$OBJDUMP" && OBJDUMP=objdump
   7648 
   7649 
   7650 
   7651 
   7652 
   7653 
   7654 
   7655 
   7656 
   7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   7658 printf %s "checking how to recognize dependent libraries... " >&6; }
   7659 if test ${lt_cv_deplibs_check_method+y}
   7660 then :
   7661   printf %s "(cached) " >&6
   7662 else $as_nop
   7663   lt_cv_file_magic_cmd='$MAGIC_CMD'
   7664 lt_cv_file_magic_test_file=
   7665 lt_cv_deplibs_check_method='unknown'
   7666 # Need to set the preceding variable on all platforms that support
   7667 # interlibrary dependencies.
   7668 # 'none' -- dependencies not supported.
   7669 # 'unknown' -- same as none, but documents that we really don't know.
   7670 # 'pass_all' -- all dependencies passed with no checks.
   7671 # 'test_compile' -- check by making test program.
   7672 # 'file_magic [[regex]]' -- check by looking for files in library path
   7673 # that responds to the $file_magic_cmd with a given extended regex.
   7674 # If you have 'file' or equivalent on your system and you're not sure
   7675 # whether 'pass_all' will *always* work, you probably want this one.
   7676 
   7677 case $host_os in
   7678 aix[4-9]*)
   7679   lt_cv_deplibs_check_method=pass_all
   7680   ;;
   7681 
   7682 beos*)
   7683   lt_cv_deplibs_check_method=pass_all
   7684   ;;
   7685 
   7686 bsdi[45]*)
   7687   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   7688   lt_cv_file_magic_cmd='/usr/bin/file -L'
   7689   lt_cv_file_magic_test_file=/shlib/libc.so
   7690   ;;
   7691 
   7692 cygwin*)
   7693   # func_win32_libid is a shell function defined in ltmain.sh
   7694   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7695   lt_cv_file_magic_cmd='func_win32_libid'
   7696   ;;
   7697 
   7698 mingw* | pw32*)
   7699   # Base MSYS/MinGW do not provide the 'file' command needed by
   7700   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   7701   # unless we find 'file', for example because we are cross-compiling.
   7702   if ( file / ) >/dev/null 2>&1; then
   7703     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7704     lt_cv_file_magic_cmd='func_win32_libid'
   7705   else
   7706     # Keep this pattern in sync with the one in func_win32_libid.
   7707     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   7708     lt_cv_file_magic_cmd='$OBJDUMP -f'
   7709   fi
   7710   ;;
   7711 
   7712 cegcc*)
   7713   # use the weaker test based on 'objdump'. See mingw*.
   7714   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   7715   lt_cv_file_magic_cmd='$OBJDUMP -f'
   7716   ;;
   7717 
   7718 darwin* | rhapsody*)
   7719   lt_cv_deplibs_check_method=pass_all
   7720   ;;
   7721 
   7722 freebsd* | dragonfly*)
   7723   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7724     case $host_cpu in
   7725     i*86 )
   7726       # Not sure whether the presence of OpenBSD here was a mistake.
   7727       # Let's accept both of them until this is cleared up.
   7728       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   7729       lt_cv_file_magic_cmd=/usr/bin/file
   7730       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   7731       ;;
   7732     esac
   7733   else
   7734     lt_cv_deplibs_check_method=pass_all
   7735   fi
   7736   ;;
   7737 
   7738 haiku*)
   7739   lt_cv_deplibs_check_method=pass_all
   7740   ;;
   7741 
   7742 hpux10.20* | hpux11*)
   7743   lt_cv_file_magic_cmd=/usr/bin/file
   7744   case $host_cpu in
   7745   ia64*)
   7746     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   7747     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   7748     ;;
   7749   hppa*64*)
   7750     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
   7751     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   7752     ;;
   7753   *)
   7754     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   7755     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   7756     ;;
   7757   esac
   7758   ;;
   7759 
   7760 interix[3-9]*)
   7761   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   7762   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   7763   ;;
   7764 
   7765 irix5* | irix6* | nonstopux*)
   7766   case $LD in
   7767   *-32|*"-32 ") libmagic=32-bit;;
   7768   *-n32|*"-n32 ") libmagic=N32;;
   7769   *-64|*"-64 ") libmagic=64-bit;;
   7770   *) libmagic=never-match;;
   7771   esac
   7772   lt_cv_deplibs_check_method=pass_all
   7773   ;;
   7774 
   7775 # This must be glibc/ELF.
   7776 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   7777   lt_cv_deplibs_check_method=pass_all
   7778   ;;
   7779 
   7780 netbsd*)
   7781   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7782     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7783   else
   7784     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   7785   fi
   7786   ;;
   7787 
   7788 newos6*)
   7789   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   7790   lt_cv_file_magic_cmd=/usr/bin/file
   7791   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   7792   ;;
   7793 
   7794 *nto* | *qnx*)
   7795   lt_cv_deplibs_check_method=pass_all
   7796   ;;
   7797 
   7798 openbsd* | bitrig*)
   7799   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   7800     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   7801   else
   7802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7803   fi
   7804   ;;
   7805 
   7806 osf3* | osf4* | osf5*)
   7807   lt_cv_deplibs_check_method=pass_all
   7808   ;;
   7809 
   7810 rdos*)
   7811   lt_cv_deplibs_check_method=pass_all
   7812   ;;
   7813 
   7814 solaris*)
   7815   lt_cv_deplibs_check_method=pass_all
   7816   ;;
   7817 
   7818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   7819   lt_cv_deplibs_check_method=pass_all
   7820   ;;
   7821 
   7822 sysv4 | sysv4.3*)
   7823   case $host_vendor in
   7824   motorola)
   7825     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
   7826     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   7827     ;;
   7828   ncr)
   7829     lt_cv_deplibs_check_method=pass_all
   7830     ;;
   7831   sequent)
   7832     lt_cv_file_magic_cmd='/bin/file'
   7833     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   7834     ;;
   7835   sni)
   7836     lt_cv_file_magic_cmd='/bin/file'
   7837     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   7838     lt_cv_file_magic_test_file=/lib/libc.so
   7839     ;;
   7840   siemens)
   7841     lt_cv_deplibs_check_method=pass_all
   7842     ;;
   7843   pc)
   7844     lt_cv_deplibs_check_method=pass_all
   7845     ;;
   7846   esac
   7847   ;;
   7848 
   7849 tpf*)
   7850   lt_cv_deplibs_check_method=pass_all
   7851   ;;
   7852 os2*)
   7853   lt_cv_deplibs_check_method=pass_all
   7854   ;;
   7855 esac
   7856 
   7857 fi
   7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   7859 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
   7860 
   7861 file_magic_glob=
   7862 want_nocaseglob=no
   7863 if test "$build" = "$host"; then
   7864   case $host_os in
   7865   mingw* | pw32*)
   7866     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   7867       want_nocaseglob=yes
   7868     else
   7869       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   7870     fi
   7871     ;;
   7872   esac
   7873 fi
   7874 
   7875 file_magic_cmd=$lt_cv_file_magic_cmd
   7876 deplibs_check_method=$lt_cv_deplibs_check_method
   7877 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   7878 
   7879 
   7880 
   7881 
   7882 
   7883 
   7884 
   7885 
   7886 
   7887 
   7888 
   7889 
   7890 
   7891 
   7892 
   7893 
   7894 
   7895 
   7896 
   7897 
   7898 
   7899 
   7900 if test -n "$ac_tool_prefix"; then
   7901   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   7902 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7904 printf %s "checking for $ac_word... " >&6; }
   7905 if test ${ac_cv_prog_DLLTOOL+y}
   7906 then :
   7907   printf %s "(cached) " >&6
   7908 else $as_nop
   7909   if test -n "$DLLTOOL"; then
   7910   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   7911 else
   7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7913 for as_dir in $PATH
   7914 do
   7915   IFS=$as_save_IFS
   7916   case $as_dir in #(((
   7917     '') as_dir=./ ;;
   7918     */) ;;
   7919     *) as_dir=$as_dir/ ;;
   7920   esac
   7921     for ac_exec_ext in '' $ac_executable_extensions; do
   7922   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7923     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   7924     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7925     break 2
   7926   fi
   7927 done
   7928   done
   7929 IFS=$as_save_IFS
   7930 
   7931 fi
   7932 fi
   7933 DLLTOOL=$ac_cv_prog_DLLTOOL
   7934 if test -n "$DLLTOOL"; then
   7935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   7936 printf "%s\n" "$DLLTOOL" >&6; }
   7937 else
   7938   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7939 printf "%s\n" "no" >&6; }
   7940 fi
   7941 
   7942 
   7943 fi
   7944 if test -z "$ac_cv_prog_DLLTOOL"; then
   7945   ac_ct_DLLTOOL=$DLLTOOL
   7946   # Extract the first word of "dlltool", so it can be a program name with args.
   7947 set dummy dlltool; ac_word=$2
   7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7949 printf %s "checking for $ac_word... " >&6; }
   7950 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
   7951 then :
   7952   printf %s "(cached) " >&6
   7953 else $as_nop
   7954   if test -n "$ac_ct_DLLTOOL"; then
   7955   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   7956 else
   7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7958 for as_dir in $PATH
   7959 do
   7960   IFS=$as_save_IFS
   7961   case $as_dir in #(((
   7962     '') as_dir=./ ;;
   7963     */) ;;
   7964     *) as_dir=$as_dir/ ;;
   7965   esac
   7966     for ac_exec_ext in '' $ac_executable_extensions; do
   7967   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7968     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   7969     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7970     break 2
   7971   fi
   7972 done
   7973   done
   7974 IFS=$as_save_IFS
   7975 
   7976 fi
   7977 fi
   7978 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   7979 if test -n "$ac_ct_DLLTOOL"; then
   7980   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   7981 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
   7982 else
   7983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7984 printf "%s\n" "no" >&6; }
   7985 fi
   7986 
   7987   if test "x$ac_ct_DLLTOOL" = x; then
   7988     DLLTOOL="false"
   7989   else
   7990     case $cross_compiling:$ac_tool_warned in
   7991 yes:)
   7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7994 ac_tool_warned=yes ;;
   7995 esac
   7996     DLLTOOL=$ac_ct_DLLTOOL
   7997   fi
   7998 else
   7999   DLLTOOL="$ac_cv_prog_DLLTOOL"
   8000 fi
   8001 
   8002 test -z "$DLLTOOL" && DLLTOOL=dlltool
   8003 
   8004 
   8005 
   8006 
   8007 
   8008 
   8009 
   8010 
   8011 
   8012 
   8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   8014 printf %s "checking how to associate runtime and link libraries... " >&6; }
   8015 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
   8016 then :
   8017   printf %s "(cached) " >&6
   8018 else $as_nop
   8019   lt_cv_sharedlib_from_linklib_cmd='unknown'
   8020 
   8021 case $host_os in
   8022 cygwin* | mingw* | pw32* | cegcc*)
   8023   # two different shell functions defined in ltmain.sh;
   8024   # decide which one to use based on capabilities of $DLLTOOL
   8025   case `$DLLTOOL --help 2>&1` in
   8026   *--identify-strict*)
   8027     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   8028     ;;
   8029   *)
   8030     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   8031     ;;
   8032   esac
   8033   ;;
   8034 *)
   8035   # fallback: assume linklib IS sharedlib
   8036   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   8037   ;;
   8038 esac
   8039 
   8040 fi
   8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   8042 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   8043 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   8044 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   8045 
   8046 
   8047 
   8048 
   8049 
   8050 
   8051 
   8052 
   8053 if test -n "$ac_tool_prefix"; then
   8054   for ac_prog in ar
   8055   do
   8056     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   8057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8059 printf %s "checking for $ac_word... " >&6; }
   8060 if test ${ac_cv_prog_AR+y}
   8061 then :
   8062   printf %s "(cached) " >&6
   8063 else $as_nop
   8064   if test -n "$AR"; then
   8065   ac_cv_prog_AR="$AR" # Let the user override the test.
   8066 else
   8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8068 for as_dir in $PATH
   8069 do
   8070   IFS=$as_save_IFS
   8071   case $as_dir in #(((
   8072     '') as_dir=./ ;;
   8073     */) ;;
   8074     *) as_dir=$as_dir/ ;;
   8075   esac
   8076     for ac_exec_ext in '' $ac_executable_extensions; do
   8077   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8078     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   8079     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8080     break 2
   8081   fi
   8082 done
   8083   done
   8084 IFS=$as_save_IFS
   8085 
   8086 fi
   8087 fi
   8088 AR=$ac_cv_prog_AR
   8089 if test -n "$AR"; then
   8090   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   8091 printf "%s\n" "$AR" >&6; }
   8092 else
   8093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8094 printf "%s\n" "no" >&6; }
   8095 fi
   8096 
   8097 
   8098     test -n "$AR" && break
   8099   done
   8100 fi
   8101 if test -z "$AR"; then
   8102   ac_ct_AR=$AR
   8103   for ac_prog in ar
   8104 do
   8105   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8106 set dummy $ac_prog; ac_word=$2
   8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8108 printf %s "checking for $ac_word... " >&6; }
   8109 if test ${ac_cv_prog_ac_ct_AR+y}
   8110 then :
   8111   printf %s "(cached) " >&6
   8112 else $as_nop
   8113   if test -n "$ac_ct_AR"; then
   8114   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   8115 else
   8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8117 for as_dir in $PATH
   8118 do
   8119   IFS=$as_save_IFS
   8120   case $as_dir in #(((
   8121     '') as_dir=./ ;;
   8122     */) ;;
   8123     *) as_dir=$as_dir/ ;;
   8124   esac
   8125     for ac_exec_ext in '' $ac_executable_extensions; do
   8126   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8127     ac_cv_prog_ac_ct_AR="$ac_prog"
   8128     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8129     break 2
   8130   fi
   8131 done
   8132   done
   8133 IFS=$as_save_IFS
   8134 
   8135 fi
   8136 fi
   8137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   8138 if test -n "$ac_ct_AR"; then
   8139   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   8140 printf "%s\n" "$ac_ct_AR" >&6; }
   8141 else
   8142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8143 printf "%s\n" "no" >&6; }
   8144 fi
   8145 
   8146 
   8147   test -n "$ac_ct_AR" && break
   8148 done
   8149 
   8150   if test "x$ac_ct_AR" = x; then
   8151     AR="false"
   8152   else
   8153     case $cross_compiling:$ac_tool_warned in
   8154 yes:)
   8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8157 ac_tool_warned=yes ;;
   8158 esac
   8159     AR=$ac_ct_AR
   8160   fi
   8161 fi
   8162 
   8163 : ${AR=ar}
   8164 : ${AR_FLAGS=cru}
   8165 
   8166 
   8167 
   8168 
   8169 
   8170 
   8171 
   8172 
   8173 
   8174 
   8175 
   8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   8177 printf %s "checking for archiver @FILE support... " >&6; }
   8178 if test ${lt_cv_ar_at_file+y}
   8179 then :
   8180   printf %s "(cached) " >&6
   8181 else $as_nop
   8182   lt_cv_ar_at_file=no
   8183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8184 /* end confdefs.h.  */
   8185 
   8186 int
   8187 main (void)
   8188 {
   8189 
   8190   ;
   8191   return 0;
   8192 }
   8193 _ACEOF
   8194 if ac_fn_c_try_compile "$LINENO"
   8195 then :
   8196   echo conftest.$ac_objext > conftest.lst
   8197       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   8198       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   8199   (eval $lt_ar_try) 2>&5
   8200   ac_status=$?
   8201   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8202   test $ac_status = 0; }
   8203       if test 0 -eq "$ac_status"; then
   8204 	# Ensure the archiver fails upon bogus file names.
   8205 	rm -f conftest.$ac_objext libconftest.a
   8206 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   8207   (eval $lt_ar_try) 2>&5
   8208   ac_status=$?
   8209   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8210   test $ac_status = 0; }
   8211 	if test 0 -ne "$ac_status"; then
   8212           lt_cv_ar_at_file=@
   8213         fi
   8214       fi
   8215       rm -f conftest.* libconftest.a
   8216 
   8217 fi
   8218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8219 
   8220 fi
   8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   8222 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
   8223 
   8224 if test no = "$lt_cv_ar_at_file"; then
   8225   archiver_list_spec=
   8226 else
   8227   archiver_list_spec=$lt_cv_ar_at_file
   8228 fi
   8229 
   8230 
   8231 
   8232 
   8233 
   8234 
   8235 
   8236 if test -n "$ac_tool_prefix"; then
   8237   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   8238 set dummy ${ac_tool_prefix}strip; ac_word=$2
   8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8240 printf %s "checking for $ac_word... " >&6; }
   8241 if test ${ac_cv_prog_STRIP+y}
   8242 then :
   8243   printf %s "(cached) " >&6
   8244 else $as_nop
   8245   if test -n "$STRIP"; then
   8246   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   8247 else
   8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8249 for as_dir in $PATH
   8250 do
   8251   IFS=$as_save_IFS
   8252   case $as_dir in #(((
   8253     '') as_dir=./ ;;
   8254     */) ;;
   8255     *) as_dir=$as_dir/ ;;
   8256   esac
   8257     for ac_exec_ext in '' $ac_executable_extensions; do
   8258   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8259     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   8260     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8261     break 2
   8262   fi
   8263 done
   8264   done
   8265 IFS=$as_save_IFS
   8266 
   8267 fi
   8268 fi
   8269 STRIP=$ac_cv_prog_STRIP
   8270 if test -n "$STRIP"; then
   8271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   8272 printf "%s\n" "$STRIP" >&6; }
   8273 else
   8274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8275 printf "%s\n" "no" >&6; }
   8276 fi
   8277 
   8278 
   8279 fi
   8280 if test -z "$ac_cv_prog_STRIP"; then
   8281   ac_ct_STRIP=$STRIP
   8282   # Extract the first word of "strip", so it can be a program name with args.
   8283 set dummy strip; ac_word=$2
   8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8285 printf %s "checking for $ac_word... " >&6; }
   8286 if test ${ac_cv_prog_ac_ct_STRIP+y}
   8287 then :
   8288   printf %s "(cached) " >&6
   8289 else $as_nop
   8290   if test -n "$ac_ct_STRIP"; then
   8291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   8292 else
   8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8294 for as_dir in $PATH
   8295 do
   8296   IFS=$as_save_IFS
   8297   case $as_dir in #(((
   8298     '') as_dir=./ ;;
   8299     */) ;;
   8300     *) as_dir=$as_dir/ ;;
   8301   esac
   8302     for ac_exec_ext in '' $ac_executable_extensions; do
   8303   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8304     ac_cv_prog_ac_ct_STRIP="strip"
   8305     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8306     break 2
   8307   fi
   8308 done
   8309   done
   8310 IFS=$as_save_IFS
   8311 
   8312 fi
   8313 fi
   8314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   8315 if test -n "$ac_ct_STRIP"; then
   8316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   8317 printf "%s\n" "$ac_ct_STRIP" >&6; }
   8318 else
   8319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8320 printf "%s\n" "no" >&6; }
   8321 fi
   8322 
   8323   if test "x$ac_ct_STRIP" = x; then
   8324     STRIP=":"
   8325   else
   8326     case $cross_compiling:$ac_tool_warned in
   8327 yes:)
   8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8330 ac_tool_warned=yes ;;
   8331 esac
   8332     STRIP=$ac_ct_STRIP
   8333   fi
   8334 else
   8335   STRIP="$ac_cv_prog_STRIP"
   8336 fi
   8337 
   8338 test -z "$STRIP" && STRIP=:
   8339 
   8340 
   8341 
   8342 
   8343 
   8344 
   8345 if test -n "$ac_tool_prefix"; then
   8346   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8349 printf %s "checking for $ac_word... " >&6; }
   8350 if test ${ac_cv_prog_RANLIB+y}
   8351 then :
   8352   printf %s "(cached) " >&6
   8353 else $as_nop
   8354   if test -n "$RANLIB"; then
   8355   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8356 else
   8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8358 for as_dir in $PATH
   8359 do
   8360   IFS=$as_save_IFS
   8361   case $as_dir in #(((
   8362     '') as_dir=./ ;;
   8363     */) ;;
   8364     *) as_dir=$as_dir/ ;;
   8365   esac
   8366     for ac_exec_ext in '' $ac_executable_extensions; do
   8367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8368     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8370     break 2
   8371   fi
   8372 done
   8373   done
   8374 IFS=$as_save_IFS
   8375 
   8376 fi
   8377 fi
   8378 RANLIB=$ac_cv_prog_RANLIB
   8379 if test -n "$RANLIB"; then
   8380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8381 printf "%s\n" "$RANLIB" >&6; }
   8382 else
   8383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8384 printf "%s\n" "no" >&6; }
   8385 fi
   8386 
   8387 
   8388 fi
   8389 if test -z "$ac_cv_prog_RANLIB"; then
   8390   ac_ct_RANLIB=$RANLIB
   8391   # Extract the first word of "ranlib", so it can be a program name with args.
   8392 set dummy ranlib; ac_word=$2
   8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8394 printf %s "checking for $ac_word... " >&6; }
   8395 if test ${ac_cv_prog_ac_ct_RANLIB+y}
   8396 then :
   8397   printf %s "(cached) " >&6
   8398 else $as_nop
   8399   if test -n "$ac_ct_RANLIB"; then
   8400   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8401 else
   8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8403 for as_dir in $PATH
   8404 do
   8405   IFS=$as_save_IFS
   8406   case $as_dir in #(((
   8407     '') as_dir=./ ;;
   8408     */) ;;
   8409     *) as_dir=$as_dir/ ;;
   8410   esac
   8411     for ac_exec_ext in '' $ac_executable_extensions; do
   8412   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8413     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8414     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8415     break 2
   8416   fi
   8417 done
   8418   done
   8419 IFS=$as_save_IFS
   8420 
   8421 fi
   8422 fi
   8423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8424 if test -n "$ac_ct_RANLIB"; then
   8425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8426 printf "%s\n" "$ac_ct_RANLIB" >&6; }
   8427 else
   8428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8429 printf "%s\n" "no" >&6; }
   8430 fi
   8431 
   8432   if test "x$ac_ct_RANLIB" = x; then
   8433     RANLIB=":"
   8434   else
   8435     case $cross_compiling:$ac_tool_warned in
   8436 yes:)
   8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8439 ac_tool_warned=yes ;;
   8440 esac
   8441     RANLIB=$ac_ct_RANLIB
   8442   fi
   8443 else
   8444   RANLIB="$ac_cv_prog_RANLIB"
   8445 fi
   8446 
   8447 test -z "$RANLIB" && RANLIB=:
   8448 
   8449 
   8450 
   8451 
   8452 
   8453 
   8454 # Determine commands to create old-style static archives.
   8455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   8456 old_postinstall_cmds='chmod 644 $oldlib'
   8457 old_postuninstall_cmds=
   8458 
   8459 if test -n "$RANLIB"; then
   8460   case $host_os in
   8461   bitrig* | openbsd*)
   8462     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   8463     ;;
   8464   *)
   8465     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   8466     ;;
   8467   esac
   8468   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   8469 fi
   8470 
   8471 case $host_os in
   8472   darwin*)
   8473     lock_old_archive_extraction=yes ;;
   8474   *)
   8475     lock_old_archive_extraction=no ;;
   8476 esac
   8477 
   8478 
   8479 
   8480 
   8481 
   8482 
   8483 
   8484 
   8485 
   8486 
   8487 
   8488 
   8489 
   8490 
   8491 
   8492 
   8493 
   8494 
   8495 
   8496 
   8497 
   8498 for ac_prog in gawk mawk nawk awk
   8499 do
   8500   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8501 set dummy $ac_prog; ac_word=$2
   8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8503 printf %s "checking for $ac_word... " >&6; }
   8504 if test ${ac_cv_prog_AWK+y}
   8505 then :
   8506   printf %s "(cached) " >&6
   8507 else $as_nop
   8508   if test -n "$AWK"; then
   8509   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   8510 else
   8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8512 for as_dir in $PATH
   8513 do
   8514   IFS=$as_save_IFS
   8515   case $as_dir in #(((
   8516     '') as_dir=./ ;;
   8517     */) ;;
   8518     *) as_dir=$as_dir/ ;;
   8519   esac
   8520     for ac_exec_ext in '' $ac_executable_extensions; do
   8521   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8522     ac_cv_prog_AWK="$ac_prog"
   8523     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8524     break 2
   8525   fi
   8526 done
   8527   done
   8528 IFS=$as_save_IFS
   8529 
   8530 fi
   8531 fi
   8532 AWK=$ac_cv_prog_AWK
   8533 if test -n "$AWK"; then
   8534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   8535 printf "%s\n" "$AWK" >&6; }
   8536 else
   8537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8538 printf "%s\n" "no" >&6; }
   8539 fi
   8540 
   8541 
   8542   test -n "$AWK" && break
   8543 done
   8544 
   8545 
   8546 
   8547 
   8548 
   8549 
   8550 
   8551 
   8552 
   8553 
   8554 
   8555 
   8556 
   8557 
   8558 
   8559 
   8560 
   8561 
   8562 
   8563 # If no C compiler was specified, use CC.
   8564 LTCC=${LTCC-"$CC"}
   8565 
   8566 # If no C compiler flags were specified, use CFLAGS.
   8567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8568 
   8569 # Allow CC to be a program name with arguments.
   8570 compiler=$CC
   8571 
   8572 
   8573 # Check for command to grab the raw symbol name followed by C symbol from nm.
   8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   8575 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
   8576 if test ${lt_cv_sys_global_symbol_pipe+y}
   8577 then :
   8578   printf %s "(cached) " >&6
   8579 else $as_nop
   8580 
   8581 # These are sane defaults that work on at least a few old systems.
   8582 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   8583 
   8584 # Character class describing NM global symbol codes.
   8585 symcode='[BCDEGRST]'
   8586 
   8587 # Regexp to match symbols that can be accessed directly from C.
   8588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   8589 
   8590 # Define system-specific variables.
   8591 case $host_os in
   8592 aix*)
   8593   symcode='[BCDT]'
   8594   ;;
   8595 cygwin* | mingw* | pw32* | cegcc*)
   8596   symcode='[ABCDGISTW]'
   8597   ;;
   8598 hpux*)
   8599   if test ia64 = "$host_cpu"; then
   8600     symcode='[ABCDEGRST]'
   8601   fi
   8602   ;;
   8603 irix* | nonstopux*)
   8604   symcode='[BCDEGRST]'
   8605   ;;
   8606 osf*)
   8607   symcode='[BCDEGQRST]'
   8608   ;;
   8609 solaris*)
   8610   symcode='[BDRT]'
   8611   ;;
   8612 sco3.2v5*)
   8613   symcode='[DT]'
   8614   ;;
   8615 sysv4.2uw2*)
   8616   symcode='[DT]'
   8617   ;;
   8618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   8619   symcode='[ABDT]'
   8620   ;;
   8621 sysv4)
   8622   symcode='[DFNSTU]'
   8623   ;;
   8624 esac
   8625 
   8626 # If we're using GNU nm, then use its standard symbol codes.
   8627 case `$NM -V 2>&1` in
   8628 *GNU* | *'with BFD'*)
   8629   symcode='[ABCDGIRSTW]' ;;
   8630 esac
   8631 
   8632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8633   # Gets list of data symbols to import.
   8634   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   8635   # Adjust the below global symbol transforms to fixup imported variables.
   8636   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   8637   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   8638   lt_c_name_lib_hook="\
   8639   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   8640   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   8641 else
   8642   # Disable hooks by default.
   8643   lt_cv_sys_global_symbol_to_import=
   8644   lt_cdecl_hook=
   8645   lt_c_name_hook=
   8646   lt_c_name_lib_hook=
   8647 fi
   8648 
   8649 # Transform an extracted symbol line into a proper C declaration.
   8650 # Some systems (esp. on ia64) link data and code symbols differently,
   8651 # so use this general approach.
   8652 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   8653 $lt_cdecl_hook\
   8654 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   8655 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   8656 
   8657 # Transform an extracted symbol line into symbol name and symbol address
   8658 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   8659 $lt_c_name_hook\
   8660 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   8661 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   8662 
   8663 # Transform an extracted symbol line into symbol name with lib prefix and
   8664 # symbol address.
   8665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   8666 $lt_c_name_lib_hook\
   8667 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   8668 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   8669 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   8670 
   8671 # Handle CRLF in mingw tool chain
   8672 opt_cr=
   8673 case $build_os in
   8674 mingw*)
   8675   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   8676   ;;
   8677 esac
   8678 
   8679 # Try without a prefix underscore, then with it.
   8680 for ac_symprfx in "" "_"; do
   8681 
   8682   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   8683   symxfrm="\\1 $ac_symprfx\\2 \\2"
   8684 
   8685   # Write the raw and C identifiers.
   8686   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8687     # Fake it for dumpbin and say T for any non-static function,
   8688     # D for any global variable and I for any imported variable.
   8689     # Also find C++ and __fastcall symbols from MSVC++,
   8690     # which start with @ or ?.
   8691     lt_cv_sys_global_symbol_pipe="$AWK '"\
   8692 "     {last_section=section; section=\$ 3};"\
   8693 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   8694 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   8695 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   8696 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   8697 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   8698 "     \$ 0!~/External *\|/{next};"\
   8699 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   8700 "     {if(hide[section]) next};"\
   8701 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   8702 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   8703 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   8704 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   8705 "     ' prfx=^$ac_symprfx"
   8706   else
   8707     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   8708   fi
   8709   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   8710 
   8711   # Check to see that the pipe works correctly.
   8712   pipe_works=no
   8713 
   8714   rm -f conftest*
   8715   cat > conftest.$ac_ext <<_LT_EOF
   8716 #ifdef __cplusplus
   8717 extern "C" {
   8718 #endif
   8719 char nm_test_var;
   8720 void nm_test_func(void);
   8721 void nm_test_func(void){}
   8722 #ifdef __cplusplus
   8723 }
   8724 #endif
   8725 int main(){nm_test_var='a';nm_test_func();return(0);}
   8726 _LT_EOF
   8727 
   8728   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8729   (eval $ac_compile) 2>&5
   8730   ac_status=$?
   8731   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8732   test $ac_status = 0; }; then
   8733     # Now try to grab the symbols.
   8734     nlist=conftest.nm
   8735     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   8736   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   8737   ac_status=$?
   8738   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8739   test $ac_status = 0; } && test -s "$nlist"; then
   8740       # Try sorting and uniquifying the output.
   8741       if sort "$nlist" | uniq > "$nlist"T; then
   8742 	mv -f "$nlist"T "$nlist"
   8743       else
   8744 	rm -f "$nlist"T
   8745       fi
   8746 
   8747       # Make sure that we snagged all the symbols we need.
   8748       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   8749 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   8750 	  cat <<_LT_EOF > conftest.$ac_ext
   8751 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   8752 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   8753 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   8754    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   8755 # define LT_DLSYM_CONST
   8756 #elif defined __osf__
   8757 /* This system does not cope well with relocations in const data.  */
   8758 # define LT_DLSYM_CONST
   8759 #else
   8760 # define LT_DLSYM_CONST const
   8761 #endif
   8762 
   8763 #ifdef __cplusplus
   8764 extern "C" {
   8765 #endif
   8766 
   8767 _LT_EOF
   8768 	  # Now generate the symbol file.
   8769 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   8770 
   8771 	  cat <<_LT_EOF >> conftest.$ac_ext
   8772 
   8773 /* The mapping between symbol names and symbols.  */
   8774 LT_DLSYM_CONST struct {
   8775   const char *name;
   8776   void       *address;
   8777 }
   8778 lt__PROGRAM__LTX_preloaded_symbols[] =
   8779 {
   8780   { "@PROGRAM@", (void *) 0 },
   8781 _LT_EOF
   8782 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   8783 	  cat <<\_LT_EOF >> conftest.$ac_ext
   8784   {0, (void *) 0}
   8785 };
   8786 
   8787 /* This works around a problem in FreeBSD linker */
   8788 #ifdef FREEBSD_WORKAROUND
   8789 static const void *lt_preloaded_setup() {
   8790   return lt__PROGRAM__LTX_preloaded_symbols;
   8791 }
   8792 #endif
   8793 
   8794 #ifdef __cplusplus
   8795 }
   8796 #endif
   8797 _LT_EOF
   8798 	  # Now try linking the two files.
   8799 	  mv conftest.$ac_objext conftstm.$ac_objext
   8800 	  lt_globsym_save_LIBS=$LIBS
   8801 	  lt_globsym_save_CFLAGS=$CFLAGS
   8802 	  LIBS=conftstm.$ac_objext
   8803 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   8804 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   8805   (eval $ac_link) 2>&5
   8806   ac_status=$?
   8807   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8808   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   8809 	    pipe_works=yes
   8810 	  fi
   8811 	  LIBS=$lt_globsym_save_LIBS
   8812 	  CFLAGS=$lt_globsym_save_CFLAGS
   8813 	else
   8814 	  echo "cannot find nm_test_func in $nlist" >&5
   8815 	fi
   8816       else
   8817 	echo "cannot find nm_test_var in $nlist" >&5
   8818       fi
   8819     else
   8820       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   8821     fi
   8822   else
   8823     echo "$progname: failed program was:" >&5
   8824     cat conftest.$ac_ext >&5
   8825   fi
   8826   rm -rf conftest* conftst*
   8827 
   8828   # Do not use the global_symbol_pipe unless it works.
   8829   if test yes = "$pipe_works"; then
   8830     break
   8831   else
   8832     lt_cv_sys_global_symbol_pipe=
   8833   fi
   8834 done
   8835 
   8836 fi
   8837 
   8838 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   8839   lt_cv_sys_global_symbol_to_cdecl=
   8840 fi
   8841 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   8842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   8843 printf "%s\n" "failed" >&6; }
   8844 else
   8845   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   8846 printf "%s\n" "ok" >&6; }
   8847 fi
   8848 
   8849 # Response file support.
   8850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8851   nm_file_list_spec='@'
   8852 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   8853   nm_file_list_spec='@'
   8854 fi
   8855 
   8856 
   8857 
   8858 
   8859 
   8860 
   8861 
   8862 
   8863 
   8864 
   8865 
   8866 
   8867 
   8868 
   8869 
   8870 
   8871 
   8872 
   8873 
   8874 
   8875 
   8876 
   8877 
   8878 
   8879 
   8880 
   8881 
   8882 
   8883 
   8884 
   8885 
   8886 
   8887 
   8888 
   8889 
   8890 
   8891 
   8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   8893 printf %s "checking for sysroot... " >&6; }
   8894 
   8895 # Check whether --with-sysroot was given.
   8896 if test ${with_sysroot+y}
   8897 then :
   8898   withval=$with_sysroot;
   8899 else $as_nop
   8900   with_sysroot=no
   8901 fi
   8902 
   8903 
   8904 lt_sysroot=
   8905 case $with_sysroot in #(
   8906  yes)
   8907    if test yes = "$GCC"; then
   8908      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   8909    fi
   8910    ;; #(
   8911  /*)
   8912    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   8913    ;; #(
   8914  no|'')
   8915    ;; #(
   8916  *)
   8917    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   8918 printf "%s\n" "$with_sysroot" >&6; }
   8919    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   8920    ;;
   8921 esac
   8922 
   8923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   8924 printf "%s\n" "${lt_sysroot:-no}" >&6; }
   8925 
   8926 
   8927 
   8928 
   8929 
   8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   8931 printf %s "checking for a working dd... " >&6; }
   8932 if test ${ac_cv_path_lt_DD+y}
   8933 then :
   8934   printf %s "(cached) " >&6
   8935 else $as_nop
   8936   printf 0123456789abcdef0123456789abcdef >conftest.i
   8937 cat conftest.i conftest.i >conftest2.i
   8938 : ${lt_DD:=$DD}
   8939 if test -z "$lt_DD"; then
   8940   ac_path_lt_DD_found=false
   8941   # Loop through the user's path and test for each of PROGNAME-LIST
   8942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8943 for as_dir in $PATH
   8944 do
   8945   IFS=$as_save_IFS
   8946   case $as_dir in #(((
   8947     '') as_dir=./ ;;
   8948     */) ;;
   8949     *) as_dir=$as_dir/ ;;
   8950   esac
   8951     for ac_prog in dd
   8952    do
   8953     for ac_exec_ext in '' $ac_executable_extensions; do
   8954       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
   8955       as_fn_executable_p "$ac_path_lt_DD" || continue
   8956 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   8957   cmp -s conftest.i conftest.out \
   8958   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   8959 fi
   8960       $ac_path_lt_DD_found && break 3
   8961     done
   8962   done
   8963   done
   8964 IFS=$as_save_IFS
   8965   if test -z "$ac_cv_path_lt_DD"; then
   8966     :
   8967   fi
   8968 else
   8969   ac_cv_path_lt_DD=$lt_DD
   8970 fi
   8971 
   8972 rm -f conftest.i conftest2.i conftest.out
   8973 fi
   8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   8975 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
   8976 
   8977 
   8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   8979 printf %s "checking how to truncate binary pipes... " >&6; }
   8980 if test ${lt_cv_truncate_bin+y}
   8981 then :
   8982   printf %s "(cached) " >&6
   8983 else $as_nop
   8984   printf 0123456789abcdef0123456789abcdef >conftest.i
   8985 cat conftest.i conftest.i >conftest2.i
   8986 lt_cv_truncate_bin=
   8987 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   8988   cmp -s conftest.i conftest.out \
   8989   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   8990 fi
   8991 rm -f conftest.i conftest2.i conftest.out
   8992 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   8993 fi
   8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   8995 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
   8996 
   8997 
   8998 
   8999 
   9000 
   9001 
   9002 
   9003 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   9004 func_cc_basename ()
   9005 {
   9006     for cc_temp in $*""; do
   9007       case $cc_temp in
   9008         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   9009         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   9010         \-*) ;;
   9011         *) break;;
   9012       esac
   9013     done
   9014     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   9015 }
   9016 
   9017 # Check whether --enable-libtool-lock was given.
   9018 if test ${enable_libtool_lock+y}
   9019 then :
   9020   enableval=$enable_libtool_lock;
   9021 fi
   9022 
   9023 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   9024 
   9025 # Some flags need to be propagated to the compiler or linker for good
   9026 # libtool support.
   9027 case $host in
   9028 ia64-*-hpux*)
   9029   # Find out what ABI is being produced by ac_compile, and set mode
   9030   # options accordingly.
   9031   echo 'int i;' > conftest.$ac_ext
   9032   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9033   (eval $ac_compile) 2>&5
   9034   ac_status=$?
   9035   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9036   test $ac_status = 0; }; then
   9037     case `/usr/bin/file conftest.$ac_objext` in
   9038       *ELF-32*)
   9039 	HPUX_IA64_MODE=32
   9040 	;;
   9041       *ELF-64*)
   9042 	HPUX_IA64_MODE=64
   9043 	;;
   9044     esac
   9045   fi
   9046   rm -rf conftest*
   9047   ;;
   9048 *-*-irix6*)
   9049   # Find out what ABI is being produced by ac_compile, and set linker
   9050   # options accordingly.
   9051   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   9052   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9053   (eval $ac_compile) 2>&5
   9054   ac_status=$?
   9055   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9056   test $ac_status = 0; }; then
   9057     if test yes = "$lt_cv_prog_gnu_ld"; then
   9058       case `/usr/bin/file conftest.$ac_objext` in
   9059 	*32-bit*)
   9060 	  LD="${LD-ld} -melf32bsmip"
   9061 	  ;;
   9062 	*N32*)
   9063 	  LD="${LD-ld} -melf32bmipn32"
   9064 	  ;;
   9065 	*64-bit*)
   9066 	  LD="${LD-ld} -melf64bmip"
   9067 	;;
   9068       esac
   9069     else
   9070       case `/usr/bin/file conftest.$ac_objext` in
   9071 	*32-bit*)
   9072 	  LD="${LD-ld} -32"
   9073 	  ;;
   9074 	*N32*)
   9075 	  LD="${LD-ld} -n32"
   9076 	  ;;
   9077 	*64-bit*)
   9078 	  LD="${LD-ld} -64"
   9079 	  ;;
   9080       esac
   9081     fi
   9082   fi
   9083   rm -rf conftest*
   9084   ;;
   9085 
   9086 mips64*-*linux*)
   9087   # Find out what ABI is being produced by ac_compile, and set linker
   9088   # options accordingly.
   9089   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   9090   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9091   (eval $ac_compile) 2>&5
   9092   ac_status=$?
   9093   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9094   test $ac_status = 0; }; then
   9095     emul=elf
   9096     case `/usr/bin/file conftest.$ac_objext` in
   9097       *32-bit*)
   9098 	emul="${emul}32"
   9099 	;;
   9100       *64-bit*)
   9101 	emul="${emul}64"
   9102 	;;
   9103     esac
   9104     case `/usr/bin/file conftest.$ac_objext` in
   9105       *MSB*)
   9106 	emul="${emul}btsmip"
   9107 	;;
   9108       *LSB*)
   9109 	emul="${emul}ltsmip"
   9110 	;;
   9111     esac
   9112     case `/usr/bin/file conftest.$ac_objext` in
   9113       *N32*)
   9114 	emul="${emul}n32"
   9115 	;;
   9116     esac
   9117     LD="${LD-ld} -m $emul"
   9118   fi
   9119   rm -rf conftest*
   9120   ;;
   9121 
   9122 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   9123 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   9124   # Find out what ABI is being produced by ac_compile, and set linker
   9125   # options accordingly.  Note that the listed cases only cover the
   9126   # situations where additional linker options are needed (such as when
   9127   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   9128   # vice versa); the common cases where no linker options are needed do
   9129   # not appear in the list.
   9130   echo 'int i;' > conftest.$ac_ext
   9131   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9132   (eval $ac_compile) 2>&5
   9133   ac_status=$?
   9134   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9135   test $ac_status = 0; }; then
   9136     case `/usr/bin/file conftest.o` in
   9137       *32-bit*)
   9138 	case $host in
   9139 	  x86_64-*kfreebsd*-gnu)
   9140 	    LD="${LD-ld} -m elf_i386_fbsd"
   9141 	    ;;
   9142 	  x86_64-*linux*)
   9143 	    case `/usr/bin/file conftest.o` in
   9144 	      *x86-64*)
   9145 		LD="${LD-ld} -m elf32_x86_64"
   9146 		;;
   9147 	      *)
   9148 		LD="${LD-ld} -m elf_i386"
   9149 		;;
   9150 	    esac
   9151 	    ;;
   9152 	  powerpc64le-*linux*)
   9153 	    LD="${LD-ld} -m elf32lppclinux"
   9154 	    ;;
   9155 	  powerpc64-*linux*)
   9156 	    LD="${LD-ld} -m elf32ppclinux"
   9157 	    ;;
   9158 	  s390x-*linux*)
   9159 	    LD="${LD-ld} -m elf_s390"
   9160 	    ;;
   9161 	  sparc64-*linux*)
   9162 	    LD="${LD-ld} -m elf32_sparc"
   9163 	    ;;
   9164 	esac
   9165 	;;
   9166       *64-bit*)
   9167 	case $host in
   9168 	  x86_64-*kfreebsd*-gnu)
   9169 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   9170 	    ;;
   9171 	  x86_64-*linux*)
   9172 	    LD="${LD-ld} -m elf_x86_64"
   9173 	    ;;
   9174 	  powerpcle-*linux*)
   9175 	    LD="${LD-ld} -m elf64lppc"
   9176 	    ;;
   9177 	  powerpc-*linux*)
   9178 	    LD="${LD-ld} -m elf64ppc"
   9179 	    ;;
   9180 	  s390*-*linux*|s390*-*tpf*)
   9181 	    LD="${LD-ld} -m elf64_s390"
   9182 	    ;;
   9183 	  sparc*-*linux*)
   9184 	    LD="${LD-ld} -m elf64_sparc"
   9185 	    ;;
   9186 	esac
   9187 	;;
   9188     esac
   9189   fi
   9190   rm -rf conftest*
   9191   ;;
   9192 
   9193 *-*-sco3.2v5*)
   9194   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   9195   SAVE_CFLAGS=$CFLAGS
   9196   CFLAGS="$CFLAGS -belf"
   9197   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   9198 printf %s "checking whether the C compiler needs -belf... " >&6; }
   9199 if test ${lt_cv_cc_needs_belf+y}
   9200 then :
   9201   printf %s "(cached) " >&6
   9202 else $as_nop
   9203   ac_ext=c
   9204 ac_cpp='$CPP $CPPFLAGS'
   9205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9208 
   9209      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9210 /* end confdefs.h.  */
   9211 
   9212 int
   9213 main (void)
   9214 {
   9215 
   9216   ;
   9217   return 0;
   9218 }
   9219 _ACEOF
   9220 if ac_fn_c_try_link "$LINENO"
   9221 then :
   9222   lt_cv_cc_needs_belf=yes
   9223 else $as_nop
   9224   lt_cv_cc_needs_belf=no
   9225 fi
   9226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9227     conftest$ac_exeext conftest.$ac_ext
   9228      ac_ext=c
   9229 ac_cpp='$CPP $CPPFLAGS'
   9230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9233 
   9234 fi
   9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   9236 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
   9237   if test yes != "$lt_cv_cc_needs_belf"; then
   9238     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   9239     CFLAGS=$SAVE_CFLAGS
   9240   fi
   9241   ;;
   9242 *-*solaris*)
   9243   # Find out what ABI is being produced by ac_compile, and set linker
   9244   # options accordingly.
   9245   echo 'int i;' > conftest.$ac_ext
   9246   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9247   (eval $ac_compile) 2>&5
   9248   ac_status=$?
   9249   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9250   test $ac_status = 0; }; then
   9251     case `/usr/bin/file conftest.o` in
   9252     *64-bit*)
   9253       case $lt_cv_prog_gnu_ld in
   9254       yes*)
   9255         case $host in
   9256         i?86-*-solaris*|x86_64-*-solaris*)
   9257           LD="${LD-ld} -m elf_x86_64"
   9258           ;;
   9259         sparc*-*-solaris*)
   9260           LD="${LD-ld} -m elf64_sparc"
   9261           ;;
   9262         esac
   9263         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   9264         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   9265           LD=${LD-ld}_sol2
   9266         fi
   9267         ;;
   9268       *)
   9269 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   9270 	  LD="${LD-ld} -64"
   9271 	fi
   9272 	;;
   9273       esac
   9274       ;;
   9275     esac
   9276   fi
   9277   rm -rf conftest*
   9278   ;;
   9279 esac
   9280 
   9281 need_locks=$enable_libtool_lock
   9282 
   9283 if test -n "$ac_tool_prefix"; then
   9284   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   9285 set dummy ${ac_tool_prefix}mt; ac_word=$2
   9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9287 printf %s "checking for $ac_word... " >&6; }
   9288 if test ${ac_cv_prog_MANIFEST_TOOL+y}
   9289 then :
   9290   printf %s "(cached) " >&6
   9291 else $as_nop
   9292   if test -n "$MANIFEST_TOOL"; then
   9293   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   9294 else
   9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9296 for as_dir in $PATH
   9297 do
   9298   IFS=$as_save_IFS
   9299   case $as_dir in #(((
   9300     '') as_dir=./ ;;
   9301     */) ;;
   9302     *) as_dir=$as_dir/ ;;
   9303   esac
   9304     for ac_exec_ext in '' $ac_executable_extensions; do
   9305   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9306     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   9307     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9308     break 2
   9309   fi
   9310 done
   9311   done
   9312 IFS=$as_save_IFS
   9313 
   9314 fi
   9315 fi
   9316 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   9317 if test -n "$MANIFEST_TOOL"; then
   9318   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   9319 printf "%s\n" "$MANIFEST_TOOL" >&6; }
   9320 else
   9321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9322 printf "%s\n" "no" >&6; }
   9323 fi
   9324 
   9325 
   9326 fi
   9327 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   9328   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   9329   # Extract the first word of "mt", so it can be a program name with args.
   9330 set dummy mt; ac_word=$2
   9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9332 printf %s "checking for $ac_word... " >&6; }
   9333 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
   9334 then :
   9335   printf %s "(cached) " >&6
   9336 else $as_nop
   9337   if test -n "$ac_ct_MANIFEST_TOOL"; then
   9338   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   9339 else
   9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9341 for as_dir in $PATH
   9342 do
   9343   IFS=$as_save_IFS
   9344   case $as_dir in #(((
   9345     '') as_dir=./ ;;
   9346     */) ;;
   9347     *) as_dir=$as_dir/ ;;
   9348   esac
   9349     for ac_exec_ext in '' $ac_executable_extensions; do
   9350   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9351     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   9352     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9353     break 2
   9354   fi
   9355 done
   9356   done
   9357 IFS=$as_save_IFS
   9358 
   9359 fi
   9360 fi
   9361 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   9362 if test -n "$ac_ct_MANIFEST_TOOL"; then
   9363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   9364 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
   9365 else
   9366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9367 printf "%s\n" "no" >&6; }
   9368 fi
   9369 
   9370   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   9371     MANIFEST_TOOL=":"
   9372   else
   9373     case $cross_compiling:$ac_tool_warned in
   9374 yes:)
   9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9376 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9377 ac_tool_warned=yes ;;
   9378 esac
   9379     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   9380   fi
   9381 else
   9382   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   9383 fi
   9384 
   9385 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   9387 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   9388 if test ${lt_cv_path_mainfest_tool+y}
   9389 then :
   9390   printf %s "(cached) " >&6
   9391 else $as_nop
   9392   lt_cv_path_mainfest_tool=no
   9393   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   9394   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   9395   cat conftest.err >&5
   9396   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   9397     lt_cv_path_mainfest_tool=yes
   9398   fi
   9399   rm -f conftest*
   9400 fi
   9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   9402 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
   9403 if test yes != "$lt_cv_path_mainfest_tool"; then
   9404   MANIFEST_TOOL=:
   9405 fi
   9406 
   9407 
   9408 
   9409 
   9410 
   9411 
   9412   case $host_os in
   9413     rhapsody* | darwin*)
   9414     if test -n "$ac_tool_prefix"; then
   9415   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   9416 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9418 printf %s "checking for $ac_word... " >&6; }
   9419 if test ${ac_cv_prog_DSYMUTIL+y}
   9420 then :
   9421   printf %s "(cached) " >&6
   9422 else $as_nop
   9423   if test -n "$DSYMUTIL"; then
   9424   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   9425 else
   9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9427 for as_dir in $PATH
   9428 do
   9429   IFS=$as_save_IFS
   9430   case $as_dir in #(((
   9431     '') as_dir=./ ;;
   9432     */) ;;
   9433     *) as_dir=$as_dir/ ;;
   9434   esac
   9435     for ac_exec_ext in '' $ac_executable_extensions; do
   9436   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9437     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   9438     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9439     break 2
   9440   fi
   9441 done
   9442   done
   9443 IFS=$as_save_IFS
   9444 
   9445 fi
   9446 fi
   9447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   9448 if test -n "$DSYMUTIL"; then
   9449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   9450 printf "%s\n" "$DSYMUTIL" >&6; }
   9451 else
   9452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9453 printf "%s\n" "no" >&6; }
   9454 fi
   9455 
   9456 
   9457 fi
   9458 if test -z "$ac_cv_prog_DSYMUTIL"; then
   9459   ac_ct_DSYMUTIL=$DSYMUTIL
   9460   # Extract the first word of "dsymutil", so it can be a program name with args.
   9461 set dummy dsymutil; ac_word=$2
   9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9463 printf %s "checking for $ac_word... " >&6; }
   9464 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
   9465 then :
   9466   printf %s "(cached) " >&6
   9467 else $as_nop
   9468   if test -n "$ac_ct_DSYMUTIL"; then
   9469   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   9470 else
   9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9472 for as_dir in $PATH
   9473 do
   9474   IFS=$as_save_IFS
   9475   case $as_dir in #(((
   9476     '') as_dir=./ ;;
   9477     */) ;;
   9478     *) as_dir=$as_dir/ ;;
   9479   esac
   9480     for ac_exec_ext in '' $ac_executable_extensions; do
   9481   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9482     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   9483     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9484     break 2
   9485   fi
   9486 done
   9487   done
   9488 IFS=$as_save_IFS
   9489 
   9490 fi
   9491 fi
   9492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   9493 if test -n "$ac_ct_DSYMUTIL"; then
   9494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   9495 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
   9496 else
   9497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9498 printf "%s\n" "no" >&6; }
   9499 fi
   9500 
   9501   if test "x$ac_ct_DSYMUTIL" = x; then
   9502     DSYMUTIL=":"
   9503   else
   9504     case $cross_compiling:$ac_tool_warned in
   9505 yes:)
   9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9508 ac_tool_warned=yes ;;
   9509 esac
   9510     DSYMUTIL=$ac_ct_DSYMUTIL
   9511   fi
   9512 else
   9513   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   9514 fi
   9515 
   9516     if test -n "$ac_tool_prefix"; then
   9517   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   9518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9520 printf %s "checking for $ac_word... " >&6; }
   9521 if test ${ac_cv_prog_NMEDIT+y}
   9522 then :
   9523   printf %s "(cached) " >&6
   9524 else $as_nop
   9525   if test -n "$NMEDIT"; then
   9526   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   9527 else
   9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9529 for as_dir in $PATH
   9530 do
   9531   IFS=$as_save_IFS
   9532   case $as_dir in #(((
   9533     '') as_dir=./ ;;
   9534     */) ;;
   9535     *) as_dir=$as_dir/ ;;
   9536   esac
   9537     for ac_exec_ext in '' $ac_executable_extensions; do
   9538   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9539     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   9540     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9541     break 2
   9542   fi
   9543 done
   9544   done
   9545 IFS=$as_save_IFS
   9546 
   9547 fi
   9548 fi
   9549 NMEDIT=$ac_cv_prog_NMEDIT
   9550 if test -n "$NMEDIT"; then
   9551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   9552 printf "%s\n" "$NMEDIT" >&6; }
   9553 else
   9554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9555 printf "%s\n" "no" >&6; }
   9556 fi
   9557 
   9558 
   9559 fi
   9560 if test -z "$ac_cv_prog_NMEDIT"; then
   9561   ac_ct_NMEDIT=$NMEDIT
   9562   # Extract the first word of "nmedit", so it can be a program name with args.
   9563 set dummy nmedit; ac_word=$2
   9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9565 printf %s "checking for $ac_word... " >&6; }
   9566 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
   9567 then :
   9568   printf %s "(cached) " >&6
   9569 else $as_nop
   9570   if test -n "$ac_ct_NMEDIT"; then
   9571   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   9572 else
   9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9574 for as_dir in $PATH
   9575 do
   9576   IFS=$as_save_IFS
   9577   case $as_dir in #(((
   9578     '') as_dir=./ ;;
   9579     */) ;;
   9580     *) as_dir=$as_dir/ ;;
   9581   esac
   9582     for ac_exec_ext in '' $ac_executable_extensions; do
   9583   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9584     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   9585     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9586     break 2
   9587   fi
   9588 done
   9589   done
   9590 IFS=$as_save_IFS
   9591 
   9592 fi
   9593 fi
   9594 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   9595 if test -n "$ac_ct_NMEDIT"; then
   9596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   9597 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
   9598 else
   9599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9600 printf "%s\n" "no" >&6; }
   9601 fi
   9602 
   9603   if test "x$ac_ct_NMEDIT" = x; then
   9604     NMEDIT=":"
   9605   else
   9606     case $cross_compiling:$ac_tool_warned in
   9607 yes:)
   9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9609 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9610 ac_tool_warned=yes ;;
   9611 esac
   9612     NMEDIT=$ac_ct_NMEDIT
   9613   fi
   9614 else
   9615   NMEDIT="$ac_cv_prog_NMEDIT"
   9616 fi
   9617 
   9618     if test -n "$ac_tool_prefix"; then
   9619   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   9620 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9622 printf %s "checking for $ac_word... " >&6; }
   9623 if test ${ac_cv_prog_LIPO+y}
   9624 then :
   9625   printf %s "(cached) " >&6
   9626 else $as_nop
   9627   if test -n "$LIPO"; then
   9628   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   9629 else
   9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9631 for as_dir in $PATH
   9632 do
   9633   IFS=$as_save_IFS
   9634   case $as_dir in #(((
   9635     '') as_dir=./ ;;
   9636     */) ;;
   9637     *) as_dir=$as_dir/ ;;
   9638   esac
   9639     for ac_exec_ext in '' $ac_executable_extensions; do
   9640   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9641     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   9642     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9643     break 2
   9644   fi
   9645 done
   9646   done
   9647 IFS=$as_save_IFS
   9648 
   9649 fi
   9650 fi
   9651 LIPO=$ac_cv_prog_LIPO
   9652 if test -n "$LIPO"; then
   9653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   9654 printf "%s\n" "$LIPO" >&6; }
   9655 else
   9656   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9657 printf "%s\n" "no" >&6; }
   9658 fi
   9659 
   9660 
   9661 fi
   9662 if test -z "$ac_cv_prog_LIPO"; then
   9663   ac_ct_LIPO=$LIPO
   9664   # Extract the first word of "lipo", so it can be a program name with args.
   9665 set dummy lipo; ac_word=$2
   9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9667 printf %s "checking for $ac_word... " >&6; }
   9668 if test ${ac_cv_prog_ac_ct_LIPO+y}
   9669 then :
   9670   printf %s "(cached) " >&6
   9671 else $as_nop
   9672   if test -n "$ac_ct_LIPO"; then
   9673   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   9674 else
   9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9676 for as_dir in $PATH
   9677 do
   9678   IFS=$as_save_IFS
   9679   case $as_dir in #(((
   9680     '') as_dir=./ ;;
   9681     */) ;;
   9682     *) as_dir=$as_dir/ ;;
   9683   esac
   9684     for ac_exec_ext in '' $ac_executable_extensions; do
   9685   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9686     ac_cv_prog_ac_ct_LIPO="lipo"
   9687     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9688     break 2
   9689   fi
   9690 done
   9691   done
   9692 IFS=$as_save_IFS
   9693 
   9694 fi
   9695 fi
   9696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   9697 if test -n "$ac_ct_LIPO"; then
   9698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   9699 printf "%s\n" "$ac_ct_LIPO" >&6; }
   9700 else
   9701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9702 printf "%s\n" "no" >&6; }
   9703 fi
   9704 
   9705   if test "x$ac_ct_LIPO" = x; then
   9706     LIPO=":"
   9707   else
   9708     case $cross_compiling:$ac_tool_warned in
   9709 yes:)
   9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9712 ac_tool_warned=yes ;;
   9713 esac
   9714     LIPO=$ac_ct_LIPO
   9715   fi
   9716 else
   9717   LIPO="$ac_cv_prog_LIPO"
   9718 fi
   9719 
   9720     if test -n "$ac_tool_prefix"; then
   9721   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   9722 set dummy ${ac_tool_prefix}otool; ac_word=$2
   9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9724 printf %s "checking for $ac_word... " >&6; }
   9725 if test ${ac_cv_prog_OTOOL+y}
   9726 then :
   9727   printf %s "(cached) " >&6
   9728 else $as_nop
   9729   if test -n "$OTOOL"; then
   9730   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   9731 else
   9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9733 for as_dir in $PATH
   9734 do
   9735   IFS=$as_save_IFS
   9736   case $as_dir in #(((
   9737     '') as_dir=./ ;;
   9738     */) ;;
   9739     *) as_dir=$as_dir/ ;;
   9740   esac
   9741     for ac_exec_ext in '' $ac_executable_extensions; do
   9742   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9743     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   9744     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9745     break 2
   9746   fi
   9747 done
   9748   done
   9749 IFS=$as_save_IFS
   9750 
   9751 fi
   9752 fi
   9753 OTOOL=$ac_cv_prog_OTOOL
   9754 if test -n "$OTOOL"; then
   9755   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   9756 printf "%s\n" "$OTOOL" >&6; }
   9757 else
   9758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9759 printf "%s\n" "no" >&6; }
   9760 fi
   9761 
   9762 
   9763 fi
   9764 if test -z "$ac_cv_prog_OTOOL"; then
   9765   ac_ct_OTOOL=$OTOOL
   9766   # Extract the first word of "otool", so it can be a program name with args.
   9767 set dummy otool; ac_word=$2
   9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9769 printf %s "checking for $ac_word... " >&6; }
   9770 if test ${ac_cv_prog_ac_ct_OTOOL+y}
   9771 then :
   9772   printf %s "(cached) " >&6
   9773 else $as_nop
   9774   if test -n "$ac_ct_OTOOL"; then
   9775   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   9776 else
   9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9778 for as_dir in $PATH
   9779 do
   9780   IFS=$as_save_IFS
   9781   case $as_dir in #(((
   9782     '') as_dir=./ ;;
   9783     */) ;;
   9784     *) as_dir=$as_dir/ ;;
   9785   esac
   9786     for ac_exec_ext in '' $ac_executable_extensions; do
   9787   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9788     ac_cv_prog_ac_ct_OTOOL="otool"
   9789     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9790     break 2
   9791   fi
   9792 done
   9793   done
   9794 IFS=$as_save_IFS
   9795 
   9796 fi
   9797 fi
   9798 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   9799 if test -n "$ac_ct_OTOOL"; then
   9800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   9801 printf "%s\n" "$ac_ct_OTOOL" >&6; }
   9802 else
   9803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9804 printf "%s\n" "no" >&6; }
   9805 fi
   9806 
   9807   if test "x$ac_ct_OTOOL" = x; then
   9808     OTOOL=":"
   9809   else
   9810     case $cross_compiling:$ac_tool_warned in
   9811 yes:)
   9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9813 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9814 ac_tool_warned=yes ;;
   9815 esac
   9816     OTOOL=$ac_ct_OTOOL
   9817   fi
   9818 else
   9819   OTOOL="$ac_cv_prog_OTOOL"
   9820 fi
   9821 
   9822     if test -n "$ac_tool_prefix"; then
   9823   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   9824 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9826 printf %s "checking for $ac_word... " >&6; }
   9827 if test ${ac_cv_prog_OTOOL64+y}
   9828 then :
   9829   printf %s "(cached) " >&6
   9830 else $as_nop
   9831   if test -n "$OTOOL64"; then
   9832   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   9833 else
   9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9835 for as_dir in $PATH
   9836 do
   9837   IFS=$as_save_IFS
   9838   case $as_dir in #(((
   9839     '') as_dir=./ ;;
   9840     */) ;;
   9841     *) as_dir=$as_dir/ ;;
   9842   esac
   9843     for ac_exec_ext in '' $ac_executable_extensions; do
   9844   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9845     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   9846     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9847     break 2
   9848   fi
   9849 done
   9850   done
   9851 IFS=$as_save_IFS
   9852 
   9853 fi
   9854 fi
   9855 OTOOL64=$ac_cv_prog_OTOOL64
   9856 if test -n "$OTOOL64"; then
   9857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   9858 printf "%s\n" "$OTOOL64" >&6; }
   9859 else
   9860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9861 printf "%s\n" "no" >&6; }
   9862 fi
   9863 
   9864 
   9865 fi
   9866 if test -z "$ac_cv_prog_OTOOL64"; then
   9867   ac_ct_OTOOL64=$OTOOL64
   9868   # Extract the first word of "otool64", so it can be a program name with args.
   9869 set dummy otool64; ac_word=$2
   9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9871 printf %s "checking for $ac_word... " >&6; }
   9872 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
   9873 then :
   9874   printf %s "(cached) " >&6
   9875 else $as_nop
   9876   if test -n "$ac_ct_OTOOL64"; then
   9877   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   9878 else
   9879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9880 for as_dir in $PATH
   9881 do
   9882   IFS=$as_save_IFS
   9883   case $as_dir in #(((
   9884     '') as_dir=./ ;;
   9885     */) ;;
   9886     *) as_dir=$as_dir/ ;;
   9887   esac
   9888     for ac_exec_ext in '' $ac_executable_extensions; do
   9889   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9890     ac_cv_prog_ac_ct_OTOOL64="otool64"
   9891     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9892     break 2
   9893   fi
   9894 done
   9895   done
   9896 IFS=$as_save_IFS
   9897 
   9898 fi
   9899 fi
   9900 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   9901 if test -n "$ac_ct_OTOOL64"; then
   9902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   9903 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
   9904 else
   9905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9906 printf "%s\n" "no" >&6; }
   9907 fi
   9908 
   9909   if test "x$ac_ct_OTOOL64" = x; then
   9910     OTOOL64=":"
   9911   else
   9912     case $cross_compiling:$ac_tool_warned in
   9913 yes:)
   9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9916 ac_tool_warned=yes ;;
   9917 esac
   9918     OTOOL64=$ac_ct_OTOOL64
   9919   fi
   9920 else
   9921   OTOOL64="$ac_cv_prog_OTOOL64"
   9922 fi
   9923 
   9924 
   9925 
   9926 
   9927 
   9928 
   9929 
   9930 
   9931 
   9932 
   9933 
   9934 
   9935 
   9936 
   9937 
   9938 
   9939 
   9940 
   9941 
   9942 
   9943 
   9944 
   9945 
   9946 
   9947 
   9948 
   9949 
   9950     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   9951 printf %s "checking for -single_module linker flag... " >&6; }
   9952 if test ${lt_cv_apple_cc_single_mod+y}
   9953 then :
   9954   printf %s "(cached) " >&6
   9955 else $as_nop
   9956   lt_cv_apple_cc_single_mod=no
   9957       if test -z "$LT_MULTI_MODULE"; then
   9958 	# By default we will add the -single_module flag. You can override
   9959 	# by either setting the environment variable LT_MULTI_MODULE
   9960 	# non-empty at configure time, or by adding -multi_module to the
   9961 	# link flags.
   9962 	rm -rf libconftest.dylib*
   9963 	echo "int foo(void){return 1;}" > conftest.c
   9964 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9965 -dynamiclib -Wl,-single_module conftest.c" >&5
   9966 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9967 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   9968         _lt_result=$?
   9969 	# If there is a non-empty error log, and "single_module"
   9970 	# appears in it, assume the flag caused a linker warning
   9971         if test -s conftest.err && $GREP single_module conftest.err; then
   9972 	  cat conftest.err >&5
   9973 	# Otherwise, if the output was created with a 0 exit code from
   9974 	# the compiler, it worked.
   9975 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   9976 	  lt_cv_apple_cc_single_mod=yes
   9977 	else
   9978 	  cat conftest.err >&5
   9979 	fi
   9980 	rm -rf libconftest.dylib*
   9981 	rm -f conftest.*
   9982       fi
   9983 fi
   9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   9985 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
   9986 
   9987     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   9988 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
   9989 if test ${lt_cv_ld_exported_symbols_list+y}
   9990 then :
   9991   printf %s "(cached) " >&6
   9992 else $as_nop
   9993   lt_cv_ld_exported_symbols_list=no
   9994       save_LDFLAGS=$LDFLAGS
   9995       echo "_main" > conftest.sym
   9996       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   9997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9998 /* end confdefs.h.  */
   9999 
   10000 int
   10001 main (void)
   10002 {
   10003 
   10004   ;
   10005   return 0;
   10006 }
   10007 _ACEOF
   10008 if ac_fn_c_try_link "$LINENO"
   10009 then :
   10010   lt_cv_ld_exported_symbols_list=yes
   10011 else $as_nop
   10012   lt_cv_ld_exported_symbols_list=no
   10013 fi
   10014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10015     conftest$ac_exeext conftest.$ac_ext
   10016 	LDFLAGS=$save_LDFLAGS
   10017 
   10018 fi
   10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   10020 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
   10021 
   10022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   10023 printf %s "checking for -force_load linker flag... " >&6; }
   10024 if test ${lt_cv_ld_force_load+y}
   10025 then :
   10026   printf %s "(cached) " >&6
   10027 else $as_nop
   10028   lt_cv_ld_force_load=no
   10029       cat > conftest.c << _LT_EOF
   10030 int forced_loaded() { return 2;}
   10031 _LT_EOF
   10032       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   10033       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   10034       echo "$AR cru libconftest.a conftest.o" >&5
   10035       $AR cru libconftest.a conftest.o 2>&5
   10036       echo "$RANLIB libconftest.a" >&5
   10037       $RANLIB libconftest.a 2>&5
   10038       cat > conftest.c << _LT_EOF
   10039 int main() { return 0;}
   10040 _LT_EOF
   10041       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   10042       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   10043       _lt_result=$?
   10044       if test -s conftest.err && $GREP force_load conftest.err; then
   10045 	cat conftest.err >&5
   10046       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   10047 	lt_cv_ld_force_load=yes
   10048       else
   10049 	cat conftest.err >&5
   10050       fi
   10051         rm -f conftest.err libconftest.a conftest conftest.c
   10052         rm -rf conftest.dSYM
   10053 
   10054 fi
   10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   10056 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
   10057     case $host_os in
   10058     rhapsody* | darwin1.[012])
   10059       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   10060     darwin1.*)
   10061       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   10062     darwin*) # darwin 5.x on
   10063       # if running on 10.5 or later, the deployment target defaults
   10064       # to the OS version, if on x86, and 10.4, the deployment
   10065       # target defaults to 10.4. Don't you love it?
   10066       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   10067 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   10068 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   10069 	10.[012][,.]*)
   10070 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   10071 	10.*)
   10072 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   10073       esac
   10074     ;;
   10075   esac
   10076     if test yes = "$lt_cv_apple_cc_single_mod"; then
   10077       _lt_dar_single_mod='$single_module'
   10078     fi
   10079     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   10080       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   10081     else
   10082       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   10083     fi
   10084     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   10085       _lt_dsymutil='~$DSYMUTIL $lib || :'
   10086     else
   10087       _lt_dsymutil=
   10088     fi
   10089     ;;
   10090   esac
   10091 
   10092 # func_munge_path_list VARIABLE PATH
   10093 # -----------------------------------
   10094 # VARIABLE is name of variable containing _space_ separated list of
   10095 # directories to be munged by the contents of PATH, which is string
   10096 # having a format:
   10097 # "DIR[:DIR]:"
   10098 #       string "DIR[ DIR]" will be prepended to VARIABLE
   10099 # ":DIR[:DIR]"
   10100 #       string "DIR[ DIR]" will be appended to VARIABLE
   10101 # "DIRP[:DIRP]::[DIRA:]DIRA"
   10102 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   10103 #       "DIRA[ DIRA]" will be appended to VARIABLE
   10104 # "DIR[:DIR]"
   10105 #       VARIABLE will be replaced by "DIR[ DIR]"
   10106 func_munge_path_list ()
   10107 {
   10108     case x$2 in
   10109     x)
   10110         ;;
   10111     *:)
   10112         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   10113         ;;
   10114     x:*)
   10115         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   10116         ;;
   10117     *::*)
   10118         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   10119         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   10120         ;;
   10121     *)
   10122         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   10123         ;;
   10124     esac
   10125 }
   10126 
   10127 ac_header= ac_cache=
   10128 for ac_item in $ac_header_c_list
   10129 do
   10130   if test $ac_cache; then
   10131     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   10132     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   10133       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   10134     fi
   10135     ac_header= ac_cache=
   10136   elif test $ac_header; then
   10137     ac_cache=$ac_item
   10138   else
   10139     ac_header=$ac_item
   10140   fi
   10141 done
   10142 
   10143 
   10144 
   10145 
   10146 
   10147 
   10148 
   10149 
   10150 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   10151 then :
   10152 
   10153 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   10154 
   10155 fi
   10156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   10157 "
   10158 if test "x$ac_cv_header_dlfcn_h" = xyes
   10159 then :
   10160   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
   10161 
   10162 fi
   10163 
   10164 
   10165 
   10166 
   10167 
   10168 # Set options
   10169 enable_dlopen=yes
   10170 
   10171 
   10172 
   10173 
   10174   enable_win32_dll=no
   10175 
   10176 
   10177 
   10178 
   10179 
   10180 # Check whether --with-pic was given.
   10181 if test ${with_pic+y}
   10182 then :
   10183   withval=$with_pic; lt_p=${PACKAGE-default}
   10184     case $withval in
   10185     yes|no) pic_mode=$withval ;;
   10186     *)
   10187       pic_mode=default
   10188       # Look at the argument we got.  We use all the common list separators.
   10189       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10190       for lt_pkg in $withval; do
   10191 	IFS=$lt_save_ifs
   10192 	if test "X$lt_pkg" = "X$lt_p"; then
   10193 	  pic_mode=yes
   10194 	fi
   10195       done
   10196       IFS=$lt_save_ifs
   10197       ;;
   10198     esac
   10199 else $as_nop
   10200   pic_mode=default
   10201 fi
   10202 
   10203 
   10204 
   10205 
   10206 
   10207 
   10208 
   10209 
   10210   # Check whether --enable-fast-install was given.
   10211 if test ${enable_fast_install+y}
   10212 then :
   10213   enableval=$enable_fast_install; p=${PACKAGE-default}
   10214     case $enableval in
   10215     yes) enable_fast_install=yes ;;
   10216     no) enable_fast_install=no ;;
   10217     *)
   10218       enable_fast_install=no
   10219       # Look at the argument we got.  We use all the common list separators.
   10220       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10221       for pkg in $enableval; do
   10222 	IFS=$lt_save_ifs
   10223 	if test "X$pkg" = "X$p"; then
   10224 	  enable_fast_install=yes
   10225 	fi
   10226       done
   10227       IFS=$lt_save_ifs
   10228       ;;
   10229     esac
   10230 else $as_nop
   10231   enable_fast_install=yes
   10232 fi
   10233 
   10234 
   10235 
   10236 
   10237 
   10238 
   10239 
   10240 
   10241   shared_archive_member_spec=
   10242 case $host,$enable_shared in
   10243 power*-*-aix[5-9]*,yes)
   10244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   10245 printf %s "checking which variant of shared library versioning to provide... " >&6; }
   10246 
   10247 # Check whether --with-aix-soname was given.
   10248 if test ${with_aix_soname+y}
   10249 then :
   10250   withval=$with_aix_soname; case $withval in
   10251     aix|svr4|both)
   10252       ;;
   10253     *)
   10254       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   10255       ;;
   10256     esac
   10257     lt_cv_with_aix_soname=$with_aix_soname
   10258 else $as_nop
   10259   if test ${lt_cv_with_aix_soname+y}
   10260 then :
   10261   printf %s "(cached) " >&6
   10262 else $as_nop
   10263   lt_cv_with_aix_soname=aix
   10264 fi
   10265 
   10266     with_aix_soname=$lt_cv_with_aix_soname
   10267 fi
   10268 
   10269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   10270 printf "%s\n" "$with_aix_soname" >&6; }
   10271   if test aix != "$with_aix_soname"; then
   10272     # For the AIX way of multilib, we name the shared archive member
   10273     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   10274     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   10275     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   10276     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   10277     if test 64 = "${OBJECT_MODE-32}"; then
   10278       shared_archive_member_spec=shr_64
   10279     else
   10280       shared_archive_member_spec=shr
   10281     fi
   10282   fi
   10283   ;;
   10284 *)
   10285   with_aix_soname=aix
   10286   ;;
   10287 esac
   10288 
   10289 
   10290 
   10291 
   10292 
   10293 
   10294 
   10295 
   10296 
   10297 
   10298 # This can be used to rebuild libtool when needed
   10299 LIBTOOL_DEPS=$ltmain
   10300 
   10301 # Always use our own libtool.
   10302 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   10303 
   10304 
   10305 
   10306 
   10307 
   10308 
   10309 
   10310 
   10311 
   10312 
   10313 
   10314 
   10315 
   10316 
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 
   10324 
   10325 
   10326 
   10327 
   10328 
   10329 
   10330 
   10331 
   10332 
   10333 test -z "$LN_S" && LN_S="ln -s"
   10334 
   10335 
   10336 
   10337 
   10338 
   10339 
   10340 
   10341 
   10342 
   10343 
   10344 
   10345 
   10346 
   10347 
   10348 if test -n "${ZSH_VERSION+set}"; then
   10349    setopt NO_GLOB_SUBST
   10350 fi
   10351 
   10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   10353 printf %s "checking for objdir... " >&6; }
   10354 if test ${lt_cv_objdir+y}
   10355 then :
   10356   printf %s "(cached) " >&6
   10357 else $as_nop
   10358   rm -f .libs 2>/dev/null
   10359 mkdir .libs 2>/dev/null
   10360 if test -d .libs; then
   10361   lt_cv_objdir=.libs
   10362 else
   10363   # MS-DOS does not allow filenames that begin with a dot.
   10364   lt_cv_objdir=_libs
   10365 fi
   10366 rmdir .libs 2>/dev/null
   10367 fi
   10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   10369 printf "%s\n" "$lt_cv_objdir" >&6; }
   10370 objdir=$lt_cv_objdir
   10371 
   10372 
   10373 
   10374 
   10375 
   10376 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
   10377 
   10378 
   10379 
   10380 
   10381 case $host_os in
   10382 aix3*)
   10383   # AIX sometimes has problems with the GCC collect2 program.  For some
   10384   # reason, if we set the COLLECT_NAMES environment variable, the problems
   10385   # vanish in a puff of smoke.
   10386   if test set != "${COLLECT_NAMES+set}"; then
   10387     COLLECT_NAMES=
   10388     export COLLECT_NAMES
   10389   fi
   10390   ;;
   10391 esac
   10392 
   10393 # Global variables:
   10394 ofile=libtool
   10395 can_build_shared=yes
   10396 
   10397 # All known linkers require a '.a' archive for static linking (except MSVC,
   10398 # which needs '.lib').
   10399 libext=a
   10400 
   10401 with_gnu_ld=$lt_cv_prog_gnu_ld
   10402 
   10403 old_CC=$CC
   10404 old_CFLAGS=$CFLAGS
   10405 
   10406 # Set sane defaults for various variables
   10407 test -z "$CC" && CC=cc
   10408 test -z "$LTCC" && LTCC=$CC
   10409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   10410 test -z "$LD" && LD=ld
   10411 test -z "$ac_objext" && ac_objext=o
   10412 
   10413 func_cc_basename $compiler
   10414 cc_basename=$func_cc_basename_result
   10415 
   10416 
   10417 # Only perform the check for file, if the check method requires it
   10418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   10419 case $deplibs_check_method in
   10420 file_magic*)
   10421   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   10422     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   10423 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
   10424 if test ${lt_cv_path_MAGIC_CMD+y}
   10425 then :
   10426   printf %s "(cached) " >&6
   10427 else $as_nop
   10428   case $MAGIC_CMD in
   10429 [\\/*] |  ?:[\\/]*)
   10430   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   10431   ;;
   10432 *)
   10433   lt_save_MAGIC_CMD=$MAGIC_CMD
   10434   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   10435   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   10436   for ac_dir in $ac_dummy; do
   10437     IFS=$lt_save_ifs
   10438     test -z "$ac_dir" && ac_dir=.
   10439     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   10440       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   10441       if test -n "$file_magic_test_file"; then
   10442 	case $deplibs_check_method in
   10443 	"file_magic "*)
   10444 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   10445 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10446 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   10447 	    $EGREP "$file_magic_regex" > /dev/null; then
   10448 	    :
   10449 	  else
   10450 	    cat <<_LT_EOF 1>&2
   10451 
   10452 *** Warning: the command libtool uses to detect shared libraries,
   10453 *** $file_magic_cmd, produces output that libtool cannot recognize.
   10454 *** The result is that libtool may fail to recognize shared libraries
   10455 *** as such.  This will affect the creation of libtool libraries that
   10456 *** depend on shared libraries, but programs linked with such libtool
   10457 *** libraries will work regardless of this problem.  Nevertheless, you
   10458 *** may want to report the problem to your system manager and/or to
   10459 *** bug-libtool@gnu.org
   10460 
   10461 _LT_EOF
   10462 	  fi ;;
   10463 	esac
   10464       fi
   10465       break
   10466     fi
   10467   done
   10468   IFS=$lt_save_ifs
   10469   MAGIC_CMD=$lt_save_MAGIC_CMD
   10470   ;;
   10471 esac
   10472 fi
   10473 
   10474 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10475 if test -n "$MAGIC_CMD"; then
   10476   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   10477 printf "%s\n" "$MAGIC_CMD" >&6; }
   10478 else
   10479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10480 printf "%s\n" "no" >&6; }
   10481 fi
   10482 
   10483 
   10484 
   10485 
   10486 
   10487 if test -z "$lt_cv_path_MAGIC_CMD"; then
   10488   if test -n "$ac_tool_prefix"; then
   10489     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   10490 printf %s "checking for file... " >&6; }
   10491 if test ${lt_cv_path_MAGIC_CMD+y}
   10492 then :
   10493   printf %s "(cached) " >&6
   10494 else $as_nop
   10495   case $MAGIC_CMD in
   10496 [\\/*] |  ?:[\\/]*)
   10497   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   10498   ;;
   10499 *)
   10500   lt_save_MAGIC_CMD=$MAGIC_CMD
   10501   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   10502   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   10503   for ac_dir in $ac_dummy; do
   10504     IFS=$lt_save_ifs
   10505     test -z "$ac_dir" && ac_dir=.
   10506     if test -f "$ac_dir/file"; then
   10507       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   10508       if test -n "$file_magic_test_file"; then
   10509 	case $deplibs_check_method in
   10510 	"file_magic "*)
   10511 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   10512 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10513 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   10514 	    $EGREP "$file_magic_regex" > /dev/null; then
   10515 	    :
   10516 	  else
   10517 	    cat <<_LT_EOF 1>&2
   10518 
   10519 *** Warning: the command libtool uses to detect shared libraries,
   10520 *** $file_magic_cmd, produces output that libtool cannot recognize.
   10521 *** The result is that libtool may fail to recognize shared libraries
   10522 *** as such.  This will affect the creation of libtool libraries that
   10523 *** depend on shared libraries, but programs linked with such libtool
   10524 *** libraries will work regardless of this problem.  Nevertheless, you
   10525 *** may want to report the problem to your system manager and/or to
   10526 *** bug-libtool@gnu.org
   10527 
   10528 _LT_EOF
   10529 	  fi ;;
   10530 	esac
   10531       fi
   10532       break
   10533     fi
   10534   done
   10535   IFS=$lt_save_ifs
   10536   MAGIC_CMD=$lt_save_MAGIC_CMD
   10537   ;;
   10538 esac
   10539 fi
   10540 
   10541 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10542 if test -n "$MAGIC_CMD"; then
   10543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   10544 printf "%s\n" "$MAGIC_CMD" >&6; }
   10545 else
   10546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10547 printf "%s\n" "no" >&6; }
   10548 fi
   10549 
   10550 
   10551   else
   10552     MAGIC_CMD=:
   10553   fi
   10554 fi
   10555 
   10556   fi
   10557   ;;
   10558 esac
   10559 
   10560 # Use C for the default configuration in the libtool script
   10561 
   10562 lt_save_CC=$CC
   10563 ac_ext=c
   10564 ac_cpp='$CPP $CPPFLAGS'
   10565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10568 
   10569 
   10570 # Source file extension for C test sources.
   10571 ac_ext=c
   10572 
   10573 # Object file extension for compiled C test sources.
   10574 objext=o
   10575 objext=$objext
   10576 
   10577 # Code to be used in simple compile tests
   10578 lt_simple_compile_test_code="int some_variable = 0;"
   10579 
   10580 # Code to be used in simple link tests
   10581 lt_simple_link_test_code='int main(){return(0);}'
   10582 
   10583 
   10584 
   10585 
   10586 
   10587 
   10588 
   10589 # If no C compiler was specified, use CC.
   10590 LTCC=${LTCC-"$CC"}
   10591 
   10592 # If no C compiler flags were specified, use CFLAGS.
   10593 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   10594 
   10595 # Allow CC to be a program name with arguments.
   10596 compiler=$CC
   10597 
   10598 # Save the default compiler, since it gets overwritten when the other
   10599 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   10600 compiler_DEFAULT=$CC
   10601 
   10602 # save warnings/boilerplate of simple test code
   10603 ac_outfile=conftest.$ac_objext
   10604 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   10605 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10606 _lt_compiler_boilerplate=`cat conftest.err`
   10607 $RM conftest*
   10608 
   10609 ac_outfile=conftest.$ac_objext
   10610 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   10611 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10612 _lt_linker_boilerplate=`cat conftest.err`
   10613 $RM -r conftest*
   10614 
   10615 
   10616 ## CAVEAT EMPTOR:
   10617 ## There is no encapsulation within the following macros, do not change
   10618 ## the running order or otherwise move them around unless you know exactly
   10619 ## what you are doing...
   10620 if test -n "$compiler"; then
   10621 
   10622 lt_prog_compiler_no_builtin_flag=
   10623 
   10624 if test yes = "$GCC"; then
   10625   case $cc_basename in
   10626   nvcc*)
   10627     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   10628   *)
   10629     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   10630   esac
   10631 
   10632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   10633 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   10634 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
   10635 then :
   10636   printf %s "(cached) " >&6
   10637 else $as_nop
   10638   lt_cv_prog_compiler_rtti_exceptions=no
   10639    ac_outfile=conftest.$ac_objext
   10640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10641    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   10642    # Insert the option either (1) after the last *FLAGS variable, or
   10643    # (2) before a word containing "conftest.", or (3) at the end.
   10644    # Note that $ac_compile itself does not contain backslashes and begins
   10645    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10646    # The option is referenced via a variable to avoid confusing sed.
   10647    lt_compile=`echo "$ac_compile" | $SED \
   10648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10650    -e 's:$: $lt_compiler_flag:'`
   10651    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10652    (eval "$lt_compile" 2>conftest.err)
   10653    ac_status=$?
   10654    cat conftest.err >&5
   10655    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10656    if (exit $ac_status) && test -s "$ac_outfile"; then
   10657      # The compiler can only warn and ignore the option if not recognized
   10658      # So say no if there are warnings other than the usual output.
   10659      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   10660      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10661      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   10662        lt_cv_prog_compiler_rtti_exceptions=yes
   10663      fi
   10664    fi
   10665    $RM conftest*
   10666 
   10667 fi
   10668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   10669 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   10670 
   10671 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   10672     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   10673 else
   10674     :
   10675 fi
   10676 
   10677 fi
   10678 
   10679 
   10680 
   10681 
   10682 
   10683 
   10684   lt_prog_compiler_wl=
   10685 lt_prog_compiler_pic=
   10686 lt_prog_compiler_static=
   10687 
   10688 
   10689   if test yes = "$GCC"; then
   10690     lt_prog_compiler_wl='-Wl,'
   10691     lt_prog_compiler_static='-static'
   10692 
   10693     case $host_os in
   10694       aix*)
   10695       # All AIX code is PIC.
   10696       if test ia64 = "$host_cpu"; then
   10697 	# AIX 5 now supports IA64 processor
   10698 	lt_prog_compiler_static='-Bstatic'
   10699       fi
   10700       lt_prog_compiler_pic='-fPIC'
   10701       ;;
   10702 
   10703     amigaos*)
   10704       case $host_cpu in
   10705       powerpc)
   10706             # see comment about AmigaOS4 .so support
   10707             lt_prog_compiler_pic='-fPIC'
   10708         ;;
   10709       m68k)
   10710             # FIXME: we need at least 68020 code to build shared libraries, but
   10711             # adding the '-m68020' flag to GCC prevents building anything better,
   10712             # like '-m68040'.
   10713             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   10714         ;;
   10715       esac
   10716       ;;
   10717 
   10718     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   10719       # PIC is the default for these OSes.
   10720       ;;
   10721 
   10722     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10723       # This hack is so that the source file can tell whether it is being
   10724       # built for inclusion in a dll (and should export symbols for example).
   10725       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   10726       # (--disable-auto-import) libraries
   10727       lt_prog_compiler_pic='-DDLL_EXPORT'
   10728       case $host_os in
   10729       os2*)
   10730 	lt_prog_compiler_static='$wl-static'
   10731 	;;
   10732       esac
   10733       ;;
   10734 
   10735     darwin* | rhapsody*)
   10736       # PIC is the default on this platform
   10737       # Common symbols not allowed in MH_DYLIB files
   10738       lt_prog_compiler_pic='-fno-common'
   10739       ;;
   10740 
   10741     haiku*)
   10742       # PIC is the default for Haiku.
   10743       # The "-static" flag exists, but is broken.
   10744       lt_prog_compiler_static=
   10745       ;;
   10746 
   10747     hpux*)
   10748       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   10749       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   10750       # sets the default TLS model and affects inlining.
   10751       case $host_cpu in
   10752       hppa*64*)
   10753 	# +Z the default
   10754 	;;
   10755       *)
   10756 	lt_prog_compiler_pic='-fPIC'
   10757 	;;
   10758       esac
   10759       ;;
   10760 
   10761     interix[3-9]*)
   10762       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   10763       # Instead, we relocate shared libraries at runtime.
   10764       ;;
   10765 
   10766     msdosdjgpp*)
   10767       # Just because we use GCC doesn't mean we suddenly get shared libraries
   10768       # on systems that don't support them.
   10769       lt_prog_compiler_can_build_shared=no
   10770       enable_shared=no
   10771       ;;
   10772 
   10773     *nto* | *qnx*)
   10774       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10775       # it will coredump.
   10776       lt_prog_compiler_pic='-fPIC -shared'
   10777       ;;
   10778 
   10779     sysv4*MP*)
   10780       if test -d /usr/nec; then
   10781 	lt_prog_compiler_pic=-Kconform_pic
   10782       fi
   10783       ;;
   10784 
   10785     *)
   10786       lt_prog_compiler_pic='-fPIC'
   10787       ;;
   10788     esac
   10789 
   10790     case $cc_basename in
   10791     nvcc*) # Cuda Compiler Driver 2.2
   10792       lt_prog_compiler_wl='-Xlinker '
   10793       if test -n "$lt_prog_compiler_pic"; then
   10794         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   10795       fi
   10796       ;;
   10797     esac
   10798   else
   10799     # PORTME Check for flag to pass linker flags through the system compiler.
   10800     case $host_os in
   10801     aix*)
   10802       lt_prog_compiler_wl='-Wl,'
   10803       if test ia64 = "$host_cpu"; then
   10804 	# AIX 5 now supports IA64 processor
   10805 	lt_prog_compiler_static='-Bstatic'
   10806       else
   10807 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   10808       fi
   10809       ;;
   10810 
   10811     darwin* | rhapsody*)
   10812       # PIC is the default on this platform
   10813       # Common symbols not allowed in MH_DYLIB files
   10814       lt_prog_compiler_pic='-fno-common'
   10815       case $cc_basename in
   10816       nagfor*)
   10817         # NAG Fortran compiler
   10818         lt_prog_compiler_wl='-Wl,-Wl,,'
   10819         lt_prog_compiler_pic='-PIC'
   10820         lt_prog_compiler_static='-Bstatic'
   10821         ;;
   10822       esac
   10823       ;;
   10824 
   10825     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10826       # This hack is so that the source file can tell whether it is being
   10827       # built for inclusion in a dll (and should export symbols for example).
   10828       lt_prog_compiler_pic='-DDLL_EXPORT'
   10829       case $host_os in
   10830       os2*)
   10831 	lt_prog_compiler_static='$wl-static'
   10832 	;;
   10833       esac
   10834       ;;
   10835 
   10836     hpux9* | hpux10* | hpux11*)
   10837       lt_prog_compiler_wl='-Wl,'
   10838       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   10839       # not for PA HP-UX.
   10840       case $host_cpu in
   10841       hppa*64*|ia64*)
   10842 	# +Z the default
   10843 	;;
   10844       *)
   10845 	lt_prog_compiler_pic='+Z'
   10846 	;;
   10847       esac
   10848       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   10849       lt_prog_compiler_static='$wl-a ${wl}archive'
   10850       ;;
   10851 
   10852     irix5* | irix6* | nonstopux*)
   10853       lt_prog_compiler_wl='-Wl,'
   10854       # PIC (with -KPIC) is the default.
   10855       lt_prog_compiler_static='-non_shared'
   10856       ;;
   10857 
   10858     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10859       case $cc_basename in
   10860       # old Intel for x86_64, which still supported -KPIC.
   10861       ecc*)
   10862 	lt_prog_compiler_wl='-Wl,'
   10863 	lt_prog_compiler_pic='-KPIC'
   10864 	lt_prog_compiler_static='-static'
   10865         ;;
   10866       # icc used to be incompatible with GCC.
   10867       # ICC 10 doesn't accept -KPIC any more.
   10868       icc* | ifort*)
   10869 	lt_prog_compiler_wl='-Wl,'
   10870 	lt_prog_compiler_pic='-fPIC'
   10871 	lt_prog_compiler_static='-static'
   10872         ;;
   10873       # Lahey Fortran 8.1.
   10874       lf95*)
   10875 	lt_prog_compiler_wl='-Wl,'
   10876 	lt_prog_compiler_pic='--shared'
   10877 	lt_prog_compiler_static='--static'
   10878 	;;
   10879       nagfor*)
   10880 	# NAG Fortran compiler
   10881 	lt_prog_compiler_wl='-Wl,-Wl,,'
   10882 	lt_prog_compiler_pic='-PIC'
   10883 	lt_prog_compiler_static='-Bstatic'
   10884 	;;
   10885       tcc*)
   10886 	# Fabrice Bellard et al's Tiny C Compiler
   10887 	lt_prog_compiler_wl='-Wl,'
   10888 	lt_prog_compiler_pic='-fPIC'
   10889 	lt_prog_compiler_static='-static'
   10890 	;;
   10891       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   10892         # Portland Group compilers (*not* the Pentium gcc compiler,
   10893 	# which looks to be a dead project)
   10894 	lt_prog_compiler_wl='-Wl,'
   10895 	lt_prog_compiler_pic='-fpic'
   10896 	lt_prog_compiler_static='-Bstatic'
   10897         ;;
   10898       ccc*)
   10899         lt_prog_compiler_wl='-Wl,'
   10900         # All Alpha code is PIC.
   10901         lt_prog_compiler_static='-non_shared'
   10902         ;;
   10903       xl* | bgxl* | bgf* | mpixl*)
   10904 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   10905 	lt_prog_compiler_wl='-Wl,'
   10906 	lt_prog_compiler_pic='-qpic'
   10907 	lt_prog_compiler_static='-qstaticlink'
   10908 	;;
   10909       *)
   10910 	case `$CC -V 2>&1 | sed 5q` in
   10911 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   10912 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   10913 	  lt_prog_compiler_pic='-KPIC'
   10914 	  lt_prog_compiler_static='-Bstatic'
   10915 	  lt_prog_compiler_wl=''
   10916 	  ;;
   10917 	*Sun\ F* | *Sun*Fortran*)
   10918 	  lt_prog_compiler_pic='-KPIC'
   10919 	  lt_prog_compiler_static='-Bstatic'
   10920 	  lt_prog_compiler_wl='-Qoption ld '
   10921 	  ;;
   10922 	*Sun\ C*)
   10923 	  # Sun C 5.9
   10924 	  lt_prog_compiler_pic='-KPIC'
   10925 	  lt_prog_compiler_static='-Bstatic'
   10926 	  lt_prog_compiler_wl='-Wl,'
   10927 	  ;;
   10928         *Intel*\ [CF]*Compiler*)
   10929 	  lt_prog_compiler_wl='-Wl,'
   10930 	  lt_prog_compiler_pic='-fPIC'
   10931 	  lt_prog_compiler_static='-static'
   10932 	  ;;
   10933 	*Portland\ Group*)
   10934 	  lt_prog_compiler_wl='-Wl,'
   10935 	  lt_prog_compiler_pic='-fpic'
   10936 	  lt_prog_compiler_static='-Bstatic'
   10937 	  ;;
   10938 	esac
   10939 	;;
   10940       esac
   10941       ;;
   10942 
   10943     newsos6)
   10944       lt_prog_compiler_pic='-KPIC'
   10945       lt_prog_compiler_static='-Bstatic'
   10946       ;;
   10947 
   10948     *nto* | *qnx*)
   10949       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10950       # it will coredump.
   10951       lt_prog_compiler_pic='-fPIC -shared'
   10952       ;;
   10953 
   10954     osf3* | osf4* | osf5*)
   10955       lt_prog_compiler_wl='-Wl,'
   10956       # All OSF/1 code is PIC.
   10957       lt_prog_compiler_static='-non_shared'
   10958       ;;
   10959 
   10960     rdos*)
   10961       lt_prog_compiler_static='-non_shared'
   10962       ;;
   10963 
   10964     solaris*)
   10965       lt_prog_compiler_pic='-KPIC'
   10966       lt_prog_compiler_static='-Bstatic'
   10967       case $cc_basename in
   10968       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   10969 	lt_prog_compiler_wl='-Qoption ld ';;
   10970       *)
   10971 	lt_prog_compiler_wl='-Wl,';;
   10972       esac
   10973       ;;
   10974 
   10975     sunos4*)
   10976       lt_prog_compiler_wl='-Qoption ld '
   10977       lt_prog_compiler_pic='-PIC'
   10978       lt_prog_compiler_static='-Bstatic'
   10979       ;;
   10980 
   10981     sysv4 | sysv4.2uw2* | sysv4.3*)
   10982       lt_prog_compiler_wl='-Wl,'
   10983       lt_prog_compiler_pic='-KPIC'
   10984       lt_prog_compiler_static='-Bstatic'
   10985       ;;
   10986 
   10987     sysv4*MP*)
   10988       if test -d /usr/nec; then
   10989 	lt_prog_compiler_pic='-Kconform_pic'
   10990 	lt_prog_compiler_static='-Bstatic'
   10991       fi
   10992       ;;
   10993 
   10994     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   10995       lt_prog_compiler_wl='-Wl,'
   10996       lt_prog_compiler_pic='-KPIC'
   10997       lt_prog_compiler_static='-Bstatic'
   10998       ;;
   10999 
   11000     unicos*)
   11001       lt_prog_compiler_wl='-Wl,'
   11002       lt_prog_compiler_can_build_shared=no
   11003       ;;
   11004 
   11005     uts4*)
   11006       lt_prog_compiler_pic='-pic'
   11007       lt_prog_compiler_static='-Bstatic'
   11008       ;;
   11009 
   11010     *)
   11011       lt_prog_compiler_can_build_shared=no
   11012       ;;
   11013     esac
   11014   fi
   11015 
   11016 case $host_os in
   11017   # For platforms that do not support PIC, -DPIC is meaningless:
   11018   *djgpp*)
   11019     lt_prog_compiler_pic=
   11020     ;;
   11021   *)
   11022     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   11023     ;;
   11024 esac
   11025 
   11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   11027 printf %s "checking for $compiler option to produce PIC... " >&6; }
   11028 if test ${lt_cv_prog_compiler_pic+y}
   11029 then :
   11030   printf %s "(cached) " >&6
   11031 else $as_nop
   11032   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   11033 fi
   11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   11035 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
   11036 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   11037 
   11038 #
   11039 # Check to make sure the PIC flag actually works.
   11040 #
   11041 if test -n "$lt_prog_compiler_pic"; then
   11042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   11043 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   11044 if test ${lt_cv_prog_compiler_pic_works+y}
   11045 then :
   11046   printf %s "(cached) " >&6
   11047 else $as_nop
   11048   lt_cv_prog_compiler_pic_works=no
   11049    ac_outfile=conftest.$ac_objext
   11050    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11051    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   11052    # Insert the option either (1) after the last *FLAGS variable, or
   11053    # (2) before a word containing "conftest.", or (3) at the end.
   11054    # Note that $ac_compile itself does not contain backslashes and begins
   11055    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11056    # The option is referenced via a variable to avoid confusing sed.
   11057    lt_compile=`echo "$ac_compile" | $SED \
   11058    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11060    -e 's:$: $lt_compiler_flag:'`
   11061    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11062    (eval "$lt_compile" 2>conftest.err)
   11063    ac_status=$?
   11064    cat conftest.err >&5
   11065    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11066    if (exit $ac_status) && test -s "$ac_outfile"; then
   11067      # The compiler can only warn and ignore the option if not recognized
   11068      # So say no if there are warnings other than the usual output.
   11069      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   11070      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11071      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   11072        lt_cv_prog_compiler_pic_works=yes
   11073      fi
   11074    fi
   11075    $RM conftest*
   11076 
   11077 fi
   11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   11079 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
   11080 
   11081 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   11082     case $lt_prog_compiler_pic in
   11083      "" | " "*) ;;
   11084      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   11085      esac
   11086 else
   11087     lt_prog_compiler_pic=
   11088      lt_prog_compiler_can_build_shared=no
   11089 fi
   11090 
   11091 fi
   11092 
   11093 
   11094 
   11095 
   11096 
   11097 
   11098 
   11099 
   11100 
   11101 
   11102 
   11103 #
   11104 # Check to make sure the static flag actually works.
   11105 #
   11106 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   11108 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   11109 if test ${lt_cv_prog_compiler_static_works+y}
   11110 then :
   11111   printf %s "(cached) " >&6
   11112 else $as_nop
   11113   lt_cv_prog_compiler_static_works=no
   11114    save_LDFLAGS=$LDFLAGS
   11115    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   11116    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   11117    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   11118      # The linker can only warn and ignore the option if not recognized
   11119      # So say no if there are warnings
   11120      if test -s conftest.err; then
   11121        # Append any errors to the config.log.
   11122        cat conftest.err 1>&5
   11123        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   11124        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11125        if diff conftest.exp conftest.er2 >/dev/null; then
   11126          lt_cv_prog_compiler_static_works=yes
   11127        fi
   11128      else
   11129        lt_cv_prog_compiler_static_works=yes
   11130      fi
   11131    fi
   11132    $RM -r conftest*
   11133    LDFLAGS=$save_LDFLAGS
   11134 
   11135 fi
   11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   11137 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
   11138 
   11139 if test yes = "$lt_cv_prog_compiler_static_works"; then
   11140     :
   11141 else
   11142     lt_prog_compiler_static=
   11143 fi
   11144 
   11145 
   11146 
   11147 
   11148 
   11149 
   11150 
   11151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   11152 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   11153 if test ${lt_cv_prog_compiler_c_o+y}
   11154 then :
   11155   printf %s "(cached) " >&6
   11156 else $as_nop
   11157   lt_cv_prog_compiler_c_o=no
   11158    $RM -r conftest 2>/dev/null
   11159    mkdir conftest
   11160    cd conftest
   11161    mkdir out
   11162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11163 
   11164    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11165    # Insert the option either (1) after the last *FLAGS variable, or
   11166    # (2) before a word containing "conftest.", or (3) at the end.
   11167    # Note that $ac_compile itself does not contain backslashes and begins
   11168    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11169    lt_compile=`echo "$ac_compile" | $SED \
   11170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11172    -e 's:$: $lt_compiler_flag:'`
   11173    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11174    (eval "$lt_compile" 2>out/conftest.err)
   11175    ac_status=$?
   11176    cat out/conftest.err >&5
   11177    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11179    then
   11180      # The compiler can only warn and ignore the option if not recognized
   11181      # So say no if there are warnings
   11182      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   11183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   11184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   11185        lt_cv_prog_compiler_c_o=yes
   11186      fi
   11187    fi
   11188    chmod u+w . 2>&5
   11189    $RM conftest*
   11190    # SGI C++ compiler will create directory out/ii_files/ for
   11191    # template instantiation
   11192    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   11193    $RM out/* && rmdir out
   11194    cd ..
   11195    $RM -r conftest
   11196    $RM conftest*
   11197 
   11198 fi
   11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   11200 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
   11201 
   11202 
   11203 
   11204 
   11205 
   11206 
   11207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   11208 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   11209 if test ${lt_cv_prog_compiler_c_o+y}
   11210 then :
   11211   printf %s "(cached) " >&6
   11212 else $as_nop
   11213   lt_cv_prog_compiler_c_o=no
   11214    $RM -r conftest 2>/dev/null
   11215    mkdir conftest
   11216    cd conftest
   11217    mkdir out
   11218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11219 
   11220    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11221    # Insert the option either (1) after the last *FLAGS variable, or
   11222    # (2) before a word containing "conftest.", or (3) at the end.
   11223    # Note that $ac_compile itself does not contain backslashes and begins
   11224    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11225    lt_compile=`echo "$ac_compile" | $SED \
   11226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11228    -e 's:$: $lt_compiler_flag:'`
   11229    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11230    (eval "$lt_compile" 2>out/conftest.err)
   11231    ac_status=$?
   11232    cat out/conftest.err >&5
   11233    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11235    then
   11236      # The compiler can only warn and ignore the option if not recognized
   11237      # So say no if there are warnings
   11238      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   11239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   11240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   11241        lt_cv_prog_compiler_c_o=yes
   11242      fi
   11243    fi
   11244    chmod u+w . 2>&5
   11245    $RM conftest*
   11246    # SGI C++ compiler will create directory out/ii_files/ for
   11247    # template instantiation
   11248    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   11249    $RM out/* && rmdir out
   11250    cd ..
   11251    $RM -r conftest
   11252    $RM conftest*
   11253 
   11254 fi
   11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   11256 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
   11257 
   11258 
   11259 
   11260 
   11261 hard_links=nottested
   11262 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   11263   # do not overwrite the value of need_locks provided by the user
   11264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   11265 printf %s "checking if we can lock with hard links... " >&6; }
   11266   hard_links=yes
   11267   $RM conftest*
   11268   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11269   touch conftest.a
   11270   ln conftest.a conftest.b 2>&5 || hard_links=no
   11271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   11273 printf "%s\n" "$hard_links" >&6; }
   11274   if test no = "$hard_links"; then
   11275     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   11276 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   11277     need_locks=warn
   11278   fi
   11279 else
   11280   need_locks=no
   11281 fi
   11282 
   11283 
   11284 
   11285 
   11286 
   11287 
   11288   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   11289 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   11290 
   11291   runpath_var=
   11292   allow_undefined_flag=
   11293   always_export_symbols=no
   11294   archive_cmds=
   11295   archive_expsym_cmds=
   11296   compiler_needs_object=no
   11297   enable_shared_with_static_runtimes=no
   11298   export_dynamic_flag_spec=
   11299   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11300   hardcode_automatic=no
   11301   hardcode_direct=no
   11302   hardcode_direct_absolute=no
   11303   hardcode_libdir_flag_spec=
   11304   hardcode_libdir_separator=
   11305   hardcode_minus_L=no
   11306   hardcode_shlibpath_var=unsupported
   11307   inherit_rpath=no
   11308   link_all_deplibs=unknown
   11309   module_cmds=
   11310   module_expsym_cmds=
   11311   old_archive_from_new_cmds=
   11312   old_archive_from_expsyms_cmds=
   11313   thread_safe_flag_spec=
   11314   whole_archive_flag_spec=
   11315   # include_expsyms should be a list of space-separated symbols to be *always*
   11316   # included in the symbol list
   11317   include_expsyms=
   11318   # exclude_expsyms can be an extended regexp of symbols to exclude
   11319   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   11320   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   11321   # as well as any symbol that contains 'd'.
   11322   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   11323   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   11324   # platforms (ab)use it in PIC code, but their linkers get confused if
   11325   # the symbol is explicitly referenced.  Since portable code cannot
   11326   # rely on this symbol name, it's probably fine to never include it in
   11327   # preloaded symbol tables.
   11328   # Exclude shared library initialization/finalization symbols.
   11329   extract_expsyms_cmds=
   11330 
   11331   case $host_os in
   11332   cygwin* | mingw* | pw32* | cegcc*)
   11333     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   11334     # When not using gcc, we currently assume that we are using
   11335     # Microsoft Visual C++.
   11336     if test yes != "$GCC"; then
   11337       with_gnu_ld=no
   11338     fi
   11339     ;;
   11340   interix*)
   11341     # we just hope/assume this is gcc and not c89 (= MSVC++)
   11342     with_gnu_ld=yes
   11343     ;;
   11344   openbsd* | bitrig*)
   11345     with_gnu_ld=no
   11346     ;;
   11347   esac
   11348 
   11349   ld_shlibs=yes
   11350 
   11351   # On some targets, GNU ld is compatible enough with the native linker
   11352   # that we're better off using the native interface for both.
   11353   lt_use_gnu_ld_interface=no
   11354   if test yes = "$with_gnu_ld"; then
   11355     case $host_os in
   11356       aix*)
   11357 	# The AIX port of GNU ld has always aspired to compatibility
   11358 	# with the native linker.  However, as the warning in the GNU ld
   11359 	# block says, versions before 2.19.5* couldn't really create working
   11360 	# shared libraries, regardless of the interface used.
   11361 	case `$LD -v 2>&1` in
   11362 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   11363 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   11364 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   11365 	  *)
   11366 	    lt_use_gnu_ld_interface=yes
   11367 	    ;;
   11368 	esac
   11369 	;;
   11370       *)
   11371 	lt_use_gnu_ld_interface=yes
   11372 	;;
   11373     esac
   11374   fi
   11375 
   11376   if test yes = "$lt_use_gnu_ld_interface"; then
   11377     # If archive_cmds runs LD, not CC, wlarc should be empty
   11378     wlarc='$wl'
   11379 
   11380     # Set some defaults for GNU ld with shared library support. These
   11381     # are reset later if shared libraries are not supported. Putting them
   11382     # here allows them to be overridden if necessary.
   11383     runpath_var=LD_RUN_PATH
   11384     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11385     export_dynamic_flag_spec='$wl--export-dynamic'
   11386     # ancient GNU ld didn't support --whole-archive et. al.
   11387     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   11388       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   11389     else
   11390       whole_archive_flag_spec=
   11391     fi
   11392     supports_anon_versioning=no
   11393     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   11394       *GNU\ gold*) supports_anon_versioning=yes ;;
   11395       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   11396       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   11397       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   11398       *\ 2.11.*) ;; # other 2.11 versions
   11399       *) supports_anon_versioning=yes ;;
   11400     esac
   11401 
   11402     # See if GNU ld supports shared libraries.
   11403     case $host_os in
   11404     aix[3-9]*)
   11405       # On AIX/PPC, the GNU linker is very broken
   11406       if test ia64 != "$host_cpu"; then
   11407 	ld_shlibs=no
   11408 	cat <<_LT_EOF 1>&2
   11409 
   11410 *** Warning: the GNU linker, at least up to release 2.19, is reported
   11411 *** to be unable to reliably create shared libraries on AIX.
   11412 *** Therefore, libtool is disabling shared libraries support.  If you
   11413 *** really care for shared libraries, you may want to install binutils
   11414 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   11415 *** You will then need to restart the configuration process.
   11416 
   11417 _LT_EOF
   11418       fi
   11419       ;;
   11420 
   11421     amigaos*)
   11422       case $host_cpu in
   11423       powerpc)
   11424             # see comment about AmigaOS4 .so support
   11425             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11426             archive_expsym_cmds=''
   11427         ;;
   11428       m68k)
   11429             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   11430             hardcode_libdir_flag_spec='-L$libdir'
   11431             hardcode_minus_L=yes
   11432         ;;
   11433       esac
   11434       ;;
   11435 
   11436     beos*)
   11437       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11438 	allow_undefined_flag=unsupported
   11439 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   11440 	# support --undefined.  This deserves some investigation.  FIXME
   11441 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11442       else
   11443 	ld_shlibs=no
   11444       fi
   11445       ;;
   11446 
   11447     cygwin* | mingw* | pw32* | cegcc*)
   11448       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   11449       # as there is no search path for DLLs.
   11450       hardcode_libdir_flag_spec='-L$libdir'
   11451       export_dynamic_flag_spec='$wl--export-all-symbols'
   11452       allow_undefined_flag=unsupported
   11453       always_export_symbols=no
   11454       enable_shared_with_static_runtimes=yes
   11455       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
   11456       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   11457 
   11458       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   11459         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   11460 	# If the export-symbols file already is a .def file, use it as
   11461 	# is; otherwise, prepend EXPORTS...
   11462 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   11463           cp $export_symbols $output_objdir/$soname.def;
   11464         else
   11465           echo EXPORTS > $output_objdir/$soname.def;
   11466           cat $export_symbols >> $output_objdir/$soname.def;
   11467         fi~
   11468         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   11469       else
   11470 	ld_shlibs=no
   11471       fi
   11472       ;;
   11473 
   11474     haiku*)
   11475       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11476       link_all_deplibs=yes
   11477       ;;
   11478 
   11479     os2*)
   11480       hardcode_libdir_flag_spec='-L$libdir'
   11481       hardcode_minus_L=yes
   11482       allow_undefined_flag=unsupported
   11483       shrext_cmds=.dll
   11484       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   11485 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   11486 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   11487 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   11488 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   11489 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   11490 	emximp -o $lib $output_objdir/$libname.def'
   11491       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   11492 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   11493 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   11494 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   11495 	prefix_cmds="$SED"~
   11496 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   11497 	  prefix_cmds="$prefix_cmds -e 1d";
   11498 	fi~
   11499 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   11500 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   11501 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   11502 	emximp -o $lib $output_objdir/$libname.def'
   11503       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   11504       enable_shared_with_static_runtimes=yes
   11505       ;;
   11506 
   11507     interix[3-9]*)
   11508       hardcode_direct=no
   11509       hardcode_shlibpath_var=no
   11510       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   11511       export_dynamic_flag_spec='$wl-E'
   11512       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   11513       # Instead, shared libraries are loaded at an image base (0x10000000 by
   11514       # default) and relocated if they conflict, which is a slow very memory
   11515       # consuming and fragmenting process.  To avoid this, we pick a random,
   11516       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   11517       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   11518       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   11519       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   11520       ;;
   11521 
   11522     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   11523       tmp_diet=no
   11524       if test linux-dietlibc = "$host_os"; then
   11525 	case $cc_basename in
   11526 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   11527 	esac
   11528       fi
   11529       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   11530 	 && test no = "$tmp_diet"
   11531       then
   11532 	tmp_addflag=' $pic_flag'
   11533 	tmp_sharedflag='-shared'
   11534 	case $cc_basename,$host_cpu in
   11535         pgcc*)				# Portland Group C compiler
   11536 	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   11537 	  tmp_addflag=' $pic_flag'
   11538 	  ;;
   11539 	pgf77* | pgf90* | pgf95* | pgfortran*)
   11540 					# Portland Group f77 and f90 compilers
   11541 	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   11542 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   11543 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   11544 	  tmp_addflag=' -i_dynamic' ;;
   11545 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   11546 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   11547 	ifc* | ifort*)			# Intel Fortran compiler
   11548 	  tmp_addflag=' -nofor_main' ;;
   11549 	lf95*)				# Lahey Fortran 8.1
   11550 	  whole_archive_flag_spec=
   11551 	  tmp_sharedflag='--shared' ;;
   11552         nagfor*)                        # NAGFOR 5.3
   11553           tmp_sharedflag='-Wl,-shared' ;;
   11554 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   11555 	  tmp_sharedflag='-qmkshrobj'
   11556 	  tmp_addflag= ;;
   11557 	nvcc*)	# Cuda Compiler Driver 2.2
   11558 	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   11559 	  compiler_needs_object=yes
   11560 	  ;;
   11561 	esac
   11562 	case `$CC -V 2>&1 | sed 5q` in
   11563 	*Sun\ C*)			# Sun C 5.9
   11564 	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   11565 	  compiler_needs_object=yes
   11566 	  tmp_sharedflag='-G' ;;
   11567 	*Sun\ F*)			# Sun Fortran 8.3
   11568 	  tmp_sharedflag='-G' ;;
   11569 	esac
   11570 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11571 
   11572         if test yes = "$supports_anon_versioning"; then
   11573           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   11574             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   11575             echo "local: *; };" >> $output_objdir/$libname.ver~
   11576             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   11577         fi
   11578 
   11579 	case $cc_basename in
   11580 	tcc*)
   11581 	  export_dynamic_flag_spec='-rdynamic'
   11582 	  ;;
   11583 	xlf* | bgf* | bgxlf* | mpixlf*)
   11584 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   11585 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   11586 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11587 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   11588 	  if test yes = "$supports_anon_versioning"; then
   11589 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   11590               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   11591               echo "local: *; };" >> $output_objdir/$libname.ver~
   11592               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   11593 	  fi
   11594 	  ;;
   11595 	esac
   11596       else
   11597         ld_shlibs=no
   11598       fi
   11599       ;;
   11600 
   11601     netbsd*)
   11602       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11603 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   11604 	wlarc=
   11605       else
   11606 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11607 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11608       fi
   11609       ;;
   11610 
   11611     solaris*)
   11612       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   11613 	ld_shlibs=no
   11614 	cat <<_LT_EOF 1>&2
   11615 
   11616 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   11617 *** create shared libraries on Solaris systems.  Therefore, libtool
   11618 *** is disabling shared libraries support.  We urge you to upgrade GNU
   11619 *** binutils to release 2.9.1 or newer.  Another option is to modify
   11620 *** your PATH or compiler configuration so that the native linker is
   11621 *** used, and then restart.
   11622 
   11623 _LT_EOF
   11624       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11625 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11626 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11627       else
   11628 	ld_shlibs=no
   11629       fi
   11630       ;;
   11631 
   11632     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   11633       case `$LD -v 2>&1` in
   11634         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   11635 	ld_shlibs=no
   11636 	cat <<_LT_EOF 1>&2
   11637 
   11638 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   11639 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   11640 *** is disabling shared libraries support.  We urge you to upgrade GNU
   11641 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   11642 *** your PATH or compiler configuration so that the native linker is
   11643 *** used, and then restart.
   11644 
   11645 _LT_EOF
   11646 	;;
   11647 	*)
   11648 	  # For security reasons, it is highly recommended that you always
   11649 	  # use absolute paths for naming shared libraries, and exclude the
   11650 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   11651 	  # requires that you compile everything twice, which is a pain.
   11652 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11653 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11654 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11655 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11656 	  else
   11657 	    ld_shlibs=no
   11658 	  fi
   11659 	;;
   11660       esac
   11661       ;;
   11662 
   11663     sunos4*)
   11664       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   11665       wlarc=
   11666       hardcode_direct=yes
   11667       hardcode_shlibpath_var=no
   11668       ;;
   11669 
   11670     *)
   11671       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11672 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11673 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11674       else
   11675 	ld_shlibs=no
   11676       fi
   11677       ;;
   11678     esac
   11679 
   11680     if test no = "$ld_shlibs"; then
   11681       runpath_var=
   11682       hardcode_libdir_flag_spec=
   11683       export_dynamic_flag_spec=
   11684       whole_archive_flag_spec=
   11685     fi
   11686   else
   11687     # PORTME fill in a description of your system's linker (not GNU ld)
   11688     case $host_os in
   11689     aix3*)
   11690       allow_undefined_flag=unsupported
   11691       always_export_symbols=yes
   11692       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   11693       # Note: this linker hardcodes the directories in LIBPATH if there
   11694       # are no directories specified by -L.
   11695       hardcode_minus_L=yes
   11696       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   11697 	# Neither direct hardcoding nor static linking is supported with a
   11698 	# broken collect2.
   11699 	hardcode_direct=unsupported
   11700       fi
   11701       ;;
   11702 
   11703     aix[4-9]*)
   11704       if test ia64 = "$host_cpu"; then
   11705 	# On IA64, the linker does run time linking by default, so we don't
   11706 	# have to do anything special.
   11707 	aix_use_runtimelinking=no
   11708 	exp_sym_flag='-Bexport'
   11709 	no_entry_flag=
   11710       else
   11711 	# If we're using GNU nm, then we don't want the "-C" option.
   11712 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   11713 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   11714 	# weak defined symbols like other global defined symbols, whereas
   11715 	# GNU nm marks them as "W".
   11716 	# While the 'weak' keyword is ignored in the Export File, we need
   11717 	# it in the Import File for the 'aix-soname' feature, so we have
   11718 	# to replace the "-B" option with "-P" for AIX nm.
   11719 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   11720 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
   11721 	else
   11722 	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
   11723 	fi
   11724 	aix_use_runtimelinking=no
   11725 
   11726 	# Test if we are trying to use run time linking or normal
   11727 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   11728 	# have runtime linking enabled, and use it for executables.
   11729 	# For shared libraries, we enable/disable runtime linking
   11730 	# depending on the kind of the shared library created -
   11731 	# when "with_aix_soname,aix_use_runtimelinking" is:
   11732 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   11733 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   11734 	#            lib.a           static archive
   11735 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   11736 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   11737 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   11738 	#            lib.a(lib.so.V) shared, rtl:no
   11739 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   11740 	#            lib.a           static archive
   11741 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   11742 	  for ld_flag in $LDFLAGS; do
   11743 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   11744 	    aix_use_runtimelinking=yes
   11745 	    break
   11746 	  fi
   11747 	  done
   11748 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   11749 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   11750 	    # so we don't have lib.a shared libs to link our executables.
   11751 	    # We have to force runtime linking in this case.
   11752 	    aix_use_runtimelinking=yes
   11753 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   11754 	  fi
   11755 	  ;;
   11756 	esac
   11757 
   11758 	exp_sym_flag='-bexport'
   11759 	no_entry_flag='-bnoentry'
   11760       fi
   11761 
   11762       # When large executables or shared objects are built, AIX ld can
   11763       # have problems creating the table of contents.  If linking a library
   11764       # or program results in "error TOC overflow" add -mminimal-toc to
   11765       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   11766       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   11767 
   11768       archive_cmds=''
   11769       hardcode_direct=yes
   11770       hardcode_direct_absolute=yes
   11771       hardcode_libdir_separator=':'
   11772       link_all_deplibs=yes
   11773       file_list_spec='$wl-f,'
   11774       case $with_aix_soname,$aix_use_runtimelinking in
   11775       aix,*) ;; # traditional, no import file
   11776       svr4,* | *,yes) # use import file
   11777 	# The Import File defines what to hardcode.
   11778 	hardcode_direct=no
   11779 	hardcode_direct_absolute=no
   11780 	;;
   11781       esac
   11782 
   11783       if test yes = "$GCC"; then
   11784 	case $host_os in aix4.[012]|aix4.[012].*)
   11785 	# We only want to do this on AIX 4.2 and lower, the check
   11786 	# below for broken collect2 doesn't work under 4.3+
   11787 	  collect2name=`$CC -print-prog-name=collect2`
   11788 	  if test -f "$collect2name" &&
   11789 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   11790 	  then
   11791 	  # We have reworked collect2
   11792 	  :
   11793 	  else
   11794 	  # We have old collect2
   11795 	  hardcode_direct=unsupported
   11796 	  # It fails to find uninstalled libraries when the uninstalled
   11797 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   11798 	  # to unsupported forces relinking
   11799 	  hardcode_minus_L=yes
   11800 	  hardcode_libdir_flag_spec='-L$libdir'
   11801 	  hardcode_libdir_separator=
   11802 	  fi
   11803 	  ;;
   11804 	esac
   11805 	shared_flag='-shared'
   11806 	if test yes = "$aix_use_runtimelinking"; then
   11807 	  shared_flag="$shared_flag "'$wl-G'
   11808 	fi
   11809 	# Need to ensure runtime linking is disabled for the traditional
   11810 	# shared library, or the linker may eventually find shared libraries
   11811 	# /with/ Import File - we do not want to mix them.
   11812 	shared_flag_aix='-shared'
   11813 	shared_flag_svr4='-shared $wl-G'
   11814       else
   11815 	# not using gcc
   11816 	if test ia64 = "$host_cpu"; then
   11817 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   11818 	# chokes on -Wl,-G. The following line is correct:
   11819 	  shared_flag='-G'
   11820 	else
   11821 	  if test yes = "$aix_use_runtimelinking"; then
   11822 	    shared_flag='$wl-G'
   11823 	  else
   11824 	    shared_flag='$wl-bM:SRE'
   11825 	  fi
   11826 	  shared_flag_aix='$wl-bM:SRE'
   11827 	  shared_flag_svr4='$wl-G'
   11828 	fi
   11829       fi
   11830 
   11831       export_dynamic_flag_spec='$wl-bexpall'
   11832       # It seems that -bexpall does not export symbols beginning with
   11833       # underscore (_), so it is better to generate a list of symbols to export.
   11834       always_export_symbols=yes
   11835       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   11836 	# Warning - without using the other runtime loading flags (-brtl),
   11837 	# -berok will link without error, but may produce a broken library.
   11838 	allow_undefined_flag='-berok'
   11839         # Determine the default libpath from the value encoded in an
   11840         # empty executable.
   11841         if test set = "${lt_cv_aix_libpath+set}"; then
   11842   aix_libpath=$lt_cv_aix_libpath
   11843 else
   11844   if test ${lt_cv_aix_libpath_+y}
   11845 then :
   11846   printf %s "(cached) " >&6
   11847 else $as_nop
   11848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11849 /* end confdefs.h.  */
   11850 
   11851 int
   11852 main (void)
   11853 {
   11854 
   11855   ;
   11856   return 0;
   11857 }
   11858 _ACEOF
   11859 if ac_fn_c_try_link "$LINENO"
   11860 then :
   11861 
   11862   lt_aix_libpath_sed='
   11863       /Import File Strings/,/^$/ {
   11864 	  /^0/ {
   11865 	      s/^0  *\([^ ]*\) *$/\1/
   11866 	      p
   11867 	  }
   11868       }'
   11869   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11870   # Check for a 64-bit object if we didn't find anything.
   11871   if test -z "$lt_cv_aix_libpath_"; then
   11872     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11873   fi
   11874 fi
   11875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11876     conftest$ac_exeext conftest.$ac_ext
   11877   if test -z "$lt_cv_aix_libpath_"; then
   11878     lt_cv_aix_libpath_=/usr/lib:/lib
   11879   fi
   11880 
   11881 fi
   11882 
   11883   aix_libpath=$lt_cv_aix_libpath_
   11884 fi
   11885 
   11886         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   11887         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
   11888       else
   11889 	if test ia64 = "$host_cpu"; then
   11890 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   11891 	  allow_undefined_flag="-z nodefs"
   11892 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
   11893 	else
   11894 	 # Determine the default libpath from the value encoded in an
   11895 	 # empty executable.
   11896 	 if test set = "${lt_cv_aix_libpath+set}"; then
   11897   aix_libpath=$lt_cv_aix_libpath
   11898 else
   11899   if test ${lt_cv_aix_libpath_+y}
   11900 then :
   11901   printf %s "(cached) " >&6
   11902 else $as_nop
   11903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11904 /* end confdefs.h.  */
   11905 
   11906 int
   11907 main (void)
   11908 {
   11909 
   11910   ;
   11911   return 0;
   11912 }
   11913 _ACEOF
   11914 if ac_fn_c_try_link "$LINENO"
   11915 then :
   11916 
   11917   lt_aix_libpath_sed='
   11918       /Import File Strings/,/^$/ {
   11919 	  /^0/ {
   11920 	      s/^0  *\([^ ]*\) *$/\1/
   11921 	      p
   11922 	  }
   11923       }'
   11924   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11925   # Check for a 64-bit object if we didn't find anything.
   11926   if test -z "$lt_cv_aix_libpath_"; then
   11927     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11928   fi
   11929 fi
   11930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11931     conftest$ac_exeext conftest.$ac_ext
   11932   if test -z "$lt_cv_aix_libpath_"; then
   11933     lt_cv_aix_libpath_=/usr/lib:/lib
   11934   fi
   11935 
   11936 fi
   11937 
   11938   aix_libpath=$lt_cv_aix_libpath_
   11939 fi
   11940 
   11941 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   11942 	  # Warning - without using the other run time loading flags,
   11943 	  # -berok will link without error, but may produce a broken library.
   11944 	  no_undefined_flag=' $wl-bernotok'
   11945 	  allow_undefined_flag=' $wl-berok'
   11946 	  if test yes = "$with_gnu_ld"; then
   11947 	    # We only use this code for GNU lds that support --whole-archive.
   11948 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   11949 	  else
   11950 	    # Exported symbols can be pulled into shared objects from archives
   11951 	    whole_archive_flag_spec='$convenience'
   11952 	  fi
   11953 	  archive_cmds_need_lc=yes
   11954 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   11955 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   11956 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   11957 	  if test svr4 != "$with_aix_soname"; then
   11958 	    # This is similar to how AIX traditionally builds its shared libraries.
   11959 	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
   11960 	  fi
   11961 	  if test aix != "$with_aix_soname"; then
   11962 	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
   11963 	  else
   11964 	    # used by -dlpreopen to get the symbols
   11965 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   11966 	  fi
   11967 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   11968 	fi
   11969       fi
   11970       ;;
   11971 
   11972     amigaos*)
   11973       case $host_cpu in
   11974       powerpc)
   11975             # see comment about AmigaOS4 .so support
   11976             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11977             archive_expsym_cmds=''
   11978         ;;
   11979       m68k)
   11980             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   11981             hardcode_libdir_flag_spec='-L$libdir'
   11982             hardcode_minus_L=yes
   11983         ;;
   11984       esac
   11985       ;;
   11986 
   11987     bsdi[45]*)
   11988       export_dynamic_flag_spec=-rdynamic
   11989       ;;
   11990 
   11991     cygwin* | mingw* | pw32* | cegcc*)
   11992       # When not using gcc, we currently assume that we are using
   11993       # Microsoft Visual C++.
   11994       # hardcode_libdir_flag_spec is actually meaningless, as there is
   11995       # no search path for DLLs.
   11996       case $cc_basename in
   11997       cl*)
   11998 	# Native MSVC
   11999 	hardcode_libdir_flag_spec=' '
   12000 	allow_undefined_flag=unsupported
   12001 	always_export_symbols=yes
   12002 	file_list_spec='@'
   12003 	# Tell ltmain to make .lib files, not .a files.
   12004 	libext=lib
   12005 	# Tell ltmain to make .dll files, not .so files.
   12006 	shrext_cmds=.dll
   12007 	# FIXME: Setting linknames here is a bad hack.
   12008 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   12009 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   12010             cp "$export_symbols" "$output_objdir/$soname.def";
   12011             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   12012           else
   12013             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   12014           fi~
   12015           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   12016           linknames='
   12017 	# The linker will not automatically build a static lib if we build a DLL.
   12018 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   12019 	enable_shared_with_static_runtimes=yes
   12020 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   12021 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   12022 	# Don't use ranlib
   12023 	old_postinstall_cmds='chmod 644 $oldlib'
   12024 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   12025           lt_tool_outputfile="@TOOL_OUTPUT@"~
   12026           case $lt_outputfile in
   12027             *.exe|*.EXE) ;;
   12028             *)
   12029               lt_outputfile=$lt_outputfile.exe
   12030               lt_tool_outputfile=$lt_tool_outputfile.exe
   12031               ;;
   12032           esac~
   12033           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   12034             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   12035             $RM "$lt_outputfile.manifest";
   12036           fi'
   12037 	;;
   12038       *)
   12039 	# Assume MSVC wrapper
   12040 	hardcode_libdir_flag_spec=' '
   12041 	allow_undefined_flag=unsupported
   12042 	# Tell ltmain to make .lib files, not .a files.
   12043 	libext=lib
   12044 	# Tell ltmain to make .dll files, not .so files.
   12045 	shrext_cmds=.dll
   12046 	# FIXME: Setting linknames here is a bad hack.
   12047 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   12048 	# The linker will automatically build a .lib file if we build a DLL.
   12049 	old_archive_from_new_cmds='true'
   12050 	# FIXME: Should let the user specify the lib program.
   12051 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   12052 	enable_shared_with_static_runtimes=yes
   12053 	;;
   12054       esac
   12055       ;;
   12056 
   12057     darwin* | rhapsody*)
   12058 
   12059 
   12060   archive_cmds_need_lc=no
   12061   hardcode_direct=no
   12062   hardcode_automatic=yes
   12063   hardcode_shlibpath_var=unsupported
   12064   if test yes = "$lt_cv_ld_force_load"; then
   12065     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   12066 
   12067   else
   12068     whole_archive_flag_spec=''
   12069   fi
   12070   link_all_deplibs=yes
   12071   allow_undefined_flag=$_lt_dar_allow_undefined
   12072   case $cc_basename in
   12073      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   12074      *) _lt_dar_can_shared=$GCC ;;
   12075   esac
   12076   if test yes = "$_lt_dar_can_shared"; then
   12077     output_verbose_link_cmd=func_echo_all
   12078     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   12079     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   12080     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
   12081     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
   12082 
   12083   else
   12084   ld_shlibs=no
   12085   fi
   12086 
   12087       ;;
   12088 
   12089     dgux*)
   12090       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12091       hardcode_libdir_flag_spec='-L$libdir'
   12092       hardcode_shlibpath_var=no
   12093       ;;
   12094 
   12095     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   12096     # support.  Future versions do this automatically, but an explicit c++rt0.o
   12097     # does not break anything, and helps significantly (at the cost of a little
   12098     # extra space).
   12099     freebsd2.2*)
   12100       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   12101       hardcode_libdir_flag_spec='-R$libdir'
   12102       hardcode_direct=yes
   12103       hardcode_shlibpath_var=no
   12104       ;;
   12105 
   12106     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   12107     freebsd2.*)
   12108       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   12109       hardcode_direct=yes
   12110       hardcode_minus_L=yes
   12111       hardcode_shlibpath_var=no
   12112       ;;
   12113 
   12114     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   12115     freebsd* | dragonfly*)
   12116       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12117       hardcode_libdir_flag_spec='-R$libdir'
   12118       hardcode_direct=yes
   12119       hardcode_shlibpath_var=no
   12120       ;;
   12121 
   12122     hpux9*)
   12123       if test yes = "$GCC"; then
   12124 	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
   12125       else
   12126 	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
   12127       fi
   12128       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12129       hardcode_libdir_separator=:
   12130       hardcode_direct=yes
   12131 
   12132       # hardcode_minus_L: Not really in the search PATH,
   12133       # but as the default location of the library.
   12134       hardcode_minus_L=yes
   12135       export_dynamic_flag_spec='$wl-E'
   12136       ;;
   12137 
   12138     hpux10*)
   12139       if test yes,no = "$GCC,$with_gnu_ld"; then
   12140 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12141       else
   12142 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   12143       fi
   12144       if test no = "$with_gnu_ld"; then
   12145 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12146 	hardcode_libdir_separator=:
   12147 	hardcode_direct=yes
   12148 	hardcode_direct_absolute=yes
   12149 	export_dynamic_flag_spec='$wl-E'
   12150 	# hardcode_minus_L: Not really in the search PATH,
   12151 	# but as the default location of the library.
   12152 	hardcode_minus_L=yes
   12153       fi
   12154       ;;
   12155 
   12156     hpux11*)
   12157       if test yes,no = "$GCC,$with_gnu_ld"; then
   12158 	case $host_cpu in
   12159 	hppa*64*)
   12160 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12161 	  ;;
   12162 	ia64*)
   12163 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   12164 	  ;;
   12165 	*)
   12166 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12167 	  ;;
   12168 	esac
   12169       else
   12170 	case $host_cpu in
   12171 	hppa*64*)
   12172 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12173 	  ;;
   12174 	ia64*)
   12175 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   12176 	  ;;
   12177 	*)
   12178 
   12179 	  # Older versions of the 11.00 compiler do not understand -b yet
   12180 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   12181 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   12182 printf %s "checking if $CC understands -b... " >&6; }
   12183 if test ${lt_cv_prog_compiler__b+y}
   12184 then :
   12185   printf %s "(cached) " >&6
   12186 else $as_nop
   12187   lt_cv_prog_compiler__b=no
   12188    save_LDFLAGS=$LDFLAGS
   12189    LDFLAGS="$LDFLAGS -b"
   12190    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   12191    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   12192      # The linker can only warn and ignore the option if not recognized
   12193      # So say no if there are warnings
   12194      if test -s conftest.err; then
   12195        # Append any errors to the config.log.
   12196        cat conftest.err 1>&5
   12197        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   12198        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   12199        if diff conftest.exp conftest.er2 >/dev/null; then
   12200          lt_cv_prog_compiler__b=yes
   12201        fi
   12202      else
   12203        lt_cv_prog_compiler__b=yes
   12204      fi
   12205    fi
   12206    $RM -r conftest*
   12207    LDFLAGS=$save_LDFLAGS
   12208 
   12209 fi
   12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   12211 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
   12212 
   12213 if test yes = "$lt_cv_prog_compiler__b"; then
   12214     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12215 else
   12216     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   12217 fi
   12218 
   12219 	  ;;
   12220 	esac
   12221       fi
   12222       if test no = "$with_gnu_ld"; then
   12223 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12224 	hardcode_libdir_separator=:
   12225 
   12226 	case $host_cpu in
   12227 	hppa*64*|ia64*)
   12228 	  hardcode_direct=no
   12229 	  hardcode_shlibpath_var=no
   12230 	  ;;
   12231 	*)
   12232 	  hardcode_direct=yes
   12233 	  hardcode_direct_absolute=yes
   12234 	  export_dynamic_flag_spec='$wl-E'
   12235 
   12236 	  # hardcode_minus_L: Not really in the search PATH,
   12237 	  # but as the default location of the library.
   12238 	  hardcode_minus_L=yes
   12239 	  ;;
   12240 	esac
   12241       fi
   12242       ;;
   12243 
   12244     irix5* | irix6* | nonstopux*)
   12245       if test yes = "$GCC"; then
   12246 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
   12247 	# Try to use the -exported_symbol ld option, if it does not
   12248 	# work, assume that -exports_file does not work either and
   12249 	# implicitly export all symbols.
   12250 	# This should be the same for all languages, so no per-tag cache variable.
   12251 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   12252 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   12253 if test ${lt_cv_irix_exported_symbol+y}
   12254 then :
   12255   printf %s "(cached) " >&6
   12256 else $as_nop
   12257   save_LDFLAGS=$LDFLAGS
   12258 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   12259 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12260 /* end confdefs.h.  */
   12261 int foo (void) { return 0; }
   12262 _ACEOF
   12263 if ac_fn_c_try_link "$LINENO"
   12264 then :
   12265   lt_cv_irix_exported_symbol=yes
   12266 else $as_nop
   12267   lt_cv_irix_exported_symbol=no
   12268 fi
   12269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12270     conftest$ac_exeext conftest.$ac_ext
   12271            LDFLAGS=$save_LDFLAGS
   12272 fi
   12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   12274 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
   12275 	if test yes = "$lt_cv_irix_exported_symbol"; then
   12276           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
   12277 	fi
   12278       else
   12279 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
   12280 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
   12281       fi
   12282       archive_cmds_need_lc='no'
   12283       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12284       hardcode_libdir_separator=:
   12285       inherit_rpath=yes
   12286       link_all_deplibs=yes
   12287       ;;
   12288 
   12289     linux*)
   12290       case $cc_basename in
   12291       tcc*)
   12292 	# Fabrice Bellard et al's Tiny C Compiler
   12293 	ld_shlibs=yes
   12294 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12295 	;;
   12296       esac
   12297       ;;
   12298 
   12299     netbsd*)
   12300       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   12301 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   12302       else
   12303 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   12304       fi
   12305       hardcode_libdir_flag_spec='-R$libdir'
   12306       hardcode_direct=yes
   12307       hardcode_shlibpath_var=no
   12308       ;;
   12309 
   12310     newsos6)
   12311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12312       hardcode_direct=yes
   12313       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12314       hardcode_libdir_separator=:
   12315       hardcode_shlibpath_var=no
   12316       ;;
   12317 
   12318     *nto* | *qnx*)
   12319       ;;
   12320 
   12321     openbsd* | bitrig*)
   12322       if test -f /usr/libexec/ld.so; then
   12323 	hardcode_direct=yes
   12324 	hardcode_shlibpath_var=no
   12325 	hardcode_direct_absolute=yes
   12326 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   12327 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12328 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   12329 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   12330 	  export_dynamic_flag_spec='$wl-E'
   12331 	else
   12332 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12333 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   12334 	fi
   12335       else
   12336 	ld_shlibs=no
   12337       fi
   12338       ;;
   12339 
   12340     os2*)
   12341       hardcode_libdir_flag_spec='-L$libdir'
   12342       hardcode_minus_L=yes
   12343       allow_undefined_flag=unsupported
   12344       shrext_cmds=.dll
   12345       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12346 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12347 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12348 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12349 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   12350 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12351 	emximp -o $lib $output_objdir/$libname.def'
   12352       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12353 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12354 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12355 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12356 	prefix_cmds="$SED"~
   12357 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   12358 	  prefix_cmds="$prefix_cmds -e 1d";
   12359 	fi~
   12360 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   12361 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   12362 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12363 	emximp -o $lib $output_objdir/$libname.def'
   12364       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   12365       enable_shared_with_static_runtimes=yes
   12366       ;;
   12367 
   12368     osf3*)
   12369       if test yes = "$GCC"; then
   12370 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   12371 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
   12372       else
   12373 	allow_undefined_flag=' -expect_unresolved \*'
   12374 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
   12375       fi
   12376       archive_cmds_need_lc='no'
   12377       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12378       hardcode_libdir_separator=:
   12379       ;;
   12380 
   12381     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   12382       if test yes = "$GCC"; then
   12383 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   12384 	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
   12385 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12386       else
   12387 	allow_undefined_flag=' -expect_unresolved \*'
   12388 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
   12389 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
   12390           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
   12391 
   12392 	# Both c and cxx compiler support -rpath directly
   12393 	hardcode_libdir_flag_spec='-rpath $libdir'
   12394       fi
   12395       archive_cmds_need_lc='no'
   12396       hardcode_libdir_separator=:
   12397       ;;
   12398 
   12399     solaris*)
   12400       no_undefined_flag=' -z defs'
   12401       if test yes = "$GCC"; then
   12402 	wlarc='$wl'
   12403 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12404 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12405           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   12406       else
   12407 	case `$CC -V 2>&1` in
   12408 	*"Compilers 5.0"*)
   12409 	  wlarc=''
   12410 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12411 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12412             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   12413 	  ;;
   12414 	*)
   12415 	  wlarc='$wl'
   12416 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   12417 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12418             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   12419 	  ;;
   12420 	esac
   12421       fi
   12422       hardcode_libdir_flag_spec='-R$libdir'
   12423       hardcode_shlibpath_var=no
   12424       case $host_os in
   12425       solaris2.[0-5] | solaris2.[0-5].*) ;;
   12426       *)
   12427 	# The compiler driver will combine and reorder linker options,
   12428 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   12429 	# but is careful enough not to reorder.
   12430 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   12431 	if test yes = "$GCC"; then
   12432 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   12433 	else
   12434 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   12435 	fi
   12436 	;;
   12437       esac
   12438       link_all_deplibs=yes
   12439       ;;
   12440 
   12441     sunos4*)
   12442       if test sequent = "$host_vendor"; then
   12443 	# Use $CC to link under sequent, because it throws in some extra .o
   12444 	# files that make .init and .fini sections work.
   12445 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   12446       else
   12447 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   12448       fi
   12449       hardcode_libdir_flag_spec='-L$libdir'
   12450       hardcode_direct=yes
   12451       hardcode_minus_L=yes
   12452       hardcode_shlibpath_var=no
   12453       ;;
   12454 
   12455     sysv4)
   12456       case $host_vendor in
   12457 	sni)
   12458 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12459 	  hardcode_direct=yes # is this really true???
   12460 	;;
   12461 	siemens)
   12462 	  ## LD is ld it makes a PLAMLIB
   12463 	  ## CC just makes a GrossModule.
   12464 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   12465 	  reload_cmds='$CC -r -o $output$reload_objs'
   12466 	  hardcode_direct=no
   12467         ;;
   12468 	motorola)
   12469 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12470 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   12471 	;;
   12472       esac
   12473       runpath_var='LD_RUN_PATH'
   12474       hardcode_shlibpath_var=no
   12475       ;;
   12476 
   12477     sysv4.3*)
   12478       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12479       hardcode_shlibpath_var=no
   12480       export_dynamic_flag_spec='-Bexport'
   12481       ;;
   12482 
   12483     sysv4*MP*)
   12484       if test -d /usr/nec; then
   12485 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12486 	hardcode_shlibpath_var=no
   12487 	runpath_var=LD_RUN_PATH
   12488 	hardcode_runpath_var=yes
   12489 	ld_shlibs=yes
   12490       fi
   12491       ;;
   12492 
   12493     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   12494       no_undefined_flag='$wl-z,text'
   12495       archive_cmds_need_lc=no
   12496       hardcode_shlibpath_var=no
   12497       runpath_var='LD_RUN_PATH'
   12498 
   12499       if test yes = "$GCC"; then
   12500 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12501 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12502       else
   12503 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12504 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12505       fi
   12506       ;;
   12507 
   12508     sysv5* | sco3.2v5* | sco5v6*)
   12509       # Note: We CANNOT use -z defs as we might desire, because we do not
   12510       # link with -lc, and that would cause any symbols used from libc to
   12511       # always be unresolved, which means just about no library would
   12512       # ever link correctly.  If we're not using GNU ld we use -z text
   12513       # though, which does catch some bad symbols but isn't as heavy-handed
   12514       # as -z defs.
   12515       no_undefined_flag='$wl-z,text'
   12516       allow_undefined_flag='$wl-z,nodefs'
   12517       archive_cmds_need_lc=no
   12518       hardcode_shlibpath_var=no
   12519       hardcode_libdir_flag_spec='$wl-R,$libdir'
   12520       hardcode_libdir_separator=':'
   12521       link_all_deplibs=yes
   12522       export_dynamic_flag_spec='$wl-Bexport'
   12523       runpath_var='LD_RUN_PATH'
   12524 
   12525       if test yes = "$GCC"; then
   12526 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12527 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12528       else
   12529 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12530 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12531       fi
   12532       ;;
   12533 
   12534     uts4*)
   12535       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12536       hardcode_libdir_flag_spec='-L$libdir'
   12537       hardcode_shlibpath_var=no
   12538       ;;
   12539 
   12540     *)
   12541       ld_shlibs=no
   12542       ;;
   12543     esac
   12544 
   12545     if test sni = "$host_vendor"; then
   12546       case $host in
   12547       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   12548 	export_dynamic_flag_spec='$wl-Blargedynsym'
   12549 	;;
   12550       esac
   12551     fi
   12552   fi
   12553 
   12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   12555 printf "%s\n" "$ld_shlibs" >&6; }
   12556 test no = "$ld_shlibs" && can_build_shared=no
   12557 
   12558 with_gnu_ld=$with_gnu_ld
   12559 
   12560 
   12561 
   12562 
   12563 
   12564 
   12565 
   12566 
   12567 
   12568 
   12569 
   12570 
   12571 
   12572 
   12573 
   12574 #
   12575 # Do we need to explicitly link libc?
   12576 #
   12577 case "x$archive_cmds_need_lc" in
   12578 x|xyes)
   12579   # Assume -lc should be added
   12580   archive_cmds_need_lc=yes
   12581 
   12582   if test yes,yes = "$GCC,$enable_shared"; then
   12583     case $archive_cmds in
   12584     *'~'*)
   12585       # FIXME: we may have to deal with multi-command sequences.
   12586       ;;
   12587     '$CC '*)
   12588       # Test whether the compiler implicitly links with -lc since on some
   12589       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   12590       # to ld, don't add -lc before -lgcc.
   12591       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   12592 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
   12593 if test ${lt_cv_archive_cmds_need_lc+y}
   12594 then :
   12595   printf %s "(cached) " >&6
   12596 else $as_nop
   12597   $RM conftest*
   12598 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12599 
   12600 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   12601   (eval $ac_compile) 2>&5
   12602   ac_status=$?
   12603   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12604   test $ac_status = 0; } 2>conftest.err; then
   12605 	  soname=conftest
   12606 	  lib=conftest
   12607 	  libobjs=conftest.$ac_objext
   12608 	  deplibs=
   12609 	  wl=$lt_prog_compiler_wl
   12610 	  pic_flag=$lt_prog_compiler_pic
   12611 	  compiler_flags=-v
   12612 	  linker_flags=-v
   12613 	  verstring=
   12614 	  output_objdir=.
   12615 	  libname=conftest
   12616 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   12617 	  allow_undefined_flag=
   12618 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   12619   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   12620   ac_status=$?
   12621   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12622   test $ac_status = 0; }
   12623 	  then
   12624 	    lt_cv_archive_cmds_need_lc=no
   12625 	  else
   12626 	    lt_cv_archive_cmds_need_lc=yes
   12627 	  fi
   12628 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   12629 	else
   12630 	  cat conftest.err 1>&5
   12631 	fi
   12632 	$RM conftest*
   12633 
   12634 fi
   12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   12636 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
   12637       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   12638       ;;
   12639     esac
   12640   fi
   12641   ;;
   12642 esac
   12643 
   12644 
   12645 
   12646 
   12647 
   12648 
   12649 
   12650 
   12651 
   12652 
   12653 
   12654 
   12655 
   12656 
   12657 
   12658 
   12659 
   12660 
   12661 
   12662 
   12663 
   12664 
   12665 
   12666 
   12667 
   12668 
   12669 
   12670 
   12671 
   12672 
   12673 
   12674 
   12675 
   12676 
   12677 
   12678 
   12679 
   12680 
   12681 
   12682 
   12683 
   12684 
   12685 
   12686 
   12687 
   12688 
   12689 
   12690 
   12691 
   12692 
   12693 
   12694 
   12695 
   12696 
   12697 
   12698 
   12699 
   12700 
   12701 
   12702 
   12703 
   12704 
   12705 
   12706 
   12707 
   12708 
   12709 
   12710 
   12711 
   12712 
   12713 
   12714 
   12715 
   12716 
   12717 
   12718 
   12719 
   12720 
   12721 
   12722 
   12723 
   12724 
   12725 
   12726 
   12727 
   12728 
   12729 
   12730 
   12731 
   12732 
   12733 
   12734 
   12735 
   12736 
   12737 
   12738 
   12739 
   12740 
   12741 
   12742 
   12743 
   12744 
   12745 
   12746 
   12747 
   12748 
   12749 
   12750 
   12751 
   12752 
   12753 
   12754 
   12755 
   12756 
   12757 
   12758 
   12759 
   12760 
   12761 
   12762 
   12763 
   12764 
   12765 
   12766 
   12767 
   12768 
   12769 
   12770 
   12771 
   12772 
   12773 
   12774 
   12775 
   12776 
   12777 
   12778 
   12779 
   12780 
   12781 
   12782 
   12783 
   12784 
   12785 
   12786 
   12787 
   12788 
   12789 
   12790 
   12791 
   12792 
   12793 
   12794 
   12795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   12796 printf %s "checking dynamic linker characteristics... " >&6; }
   12797 
   12798 if test yes = "$GCC"; then
   12799   case $host_os in
   12800     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   12801     *) lt_awk_arg='/^libraries:/' ;;
   12802   esac
   12803   case $host_os in
   12804     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   12805     *) lt_sed_strip_eq='s|=/|/|g' ;;
   12806   esac
   12807   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   12808   case $lt_search_path_spec in
   12809   *\;*)
   12810     # if the path contains ";" then we assume it to be the separator
   12811     # otherwise default to the standard path separator (i.e. ":") - it is
   12812     # assumed that no part of a normal pathname contains ";" but that should
   12813     # okay in the real world where ";" in dirpaths is itself problematic.
   12814     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   12815     ;;
   12816   *)
   12817     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   12818     ;;
   12819   esac
   12820   # Ok, now we have the path, separated by spaces, we can step through it
   12821   # and add multilib dir if necessary...
   12822   lt_tmp_lt_search_path_spec=
   12823   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   12824   # ...but if some path component already ends with the multilib dir we assume
   12825   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   12826   case "$lt_multi_os_dir; $lt_search_path_spec " in
   12827   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   12828     lt_multi_os_dir=
   12829     ;;
   12830   esac
   12831   for lt_sys_path in $lt_search_path_spec; do
   12832     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   12833       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   12834     elif test -n "$lt_multi_os_dir"; then
   12835       test -d "$lt_sys_path" && \
   12836 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   12837     fi
   12838   done
   12839   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   12840 BEGIN {RS = " "; FS = "/|\n";} {
   12841   lt_foo = "";
   12842   lt_count = 0;
   12843   for (lt_i = NF; lt_i > 0; lt_i--) {
   12844     if ($lt_i != "" && $lt_i != ".") {
   12845       if ($lt_i == "..") {
   12846         lt_count++;
   12847       } else {
   12848         if (lt_count == 0) {
   12849           lt_foo = "/" $lt_i lt_foo;
   12850         } else {
   12851           lt_count--;
   12852         }
   12853       }
   12854     }
   12855   }
   12856   if (lt_foo != "") { lt_freq[lt_foo]++; }
   12857   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   12858 }'`
   12859   # AWK program above erroneously prepends '/' to C:/dos/paths
   12860   # for these hosts.
   12861   case $host_os in
   12862     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   12863       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   12864   esac
   12865   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   12866 else
   12867   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   12868 fi
   12869 library_names_spec=
   12870 libname_spec='lib$name'
   12871 soname_spec=
   12872 shrext_cmds=.so
   12873 postinstall_cmds=
   12874 postuninstall_cmds=
   12875 finish_cmds=
   12876 finish_eval=
   12877 shlibpath_var=
   12878 shlibpath_overrides_runpath=unknown
   12879 version_type=none
   12880 dynamic_linker="$host_os ld.so"
   12881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   12882 need_lib_prefix=unknown
   12883 hardcode_into_libs=no
   12884 
   12885 # when you set need_version to no, make sure it does not cause -set_version
   12886 # flags to be left without arguments
   12887 need_version=unknown
   12888 
   12889 
   12890 
   12891 case $host_os in
   12892 aix3*)
   12893   version_type=linux # correct to gnu/linux during the next big refactor
   12894   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   12895   shlibpath_var=LIBPATH
   12896 
   12897   # AIX 3 has no versioning support, so we append a major version to the name.
   12898   soname_spec='$libname$release$shared_ext$major'
   12899   ;;
   12900 
   12901 aix[4-9]*)
   12902   version_type=linux # correct to gnu/linux during the next big refactor
   12903   need_lib_prefix=no
   12904   need_version=no
   12905   hardcode_into_libs=yes
   12906   if test ia64 = "$host_cpu"; then
   12907     # AIX 5 supports IA64
   12908     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   12909     shlibpath_var=LD_LIBRARY_PATH
   12910   else
   12911     # With GCC up to 2.95.x, collect2 would create an import file
   12912     # for dependence libraries.  The import file would start with
   12913     # the line '#! .'.  This would cause the generated library to
   12914     # depend on '.', always an invalid library.  This was fixed in
   12915     # development snapshots of GCC prior to 3.0.
   12916     case $host_os in
   12917       aix4 | aix4.[01] | aix4.[01].*)
   12918       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   12919 	   echo ' yes '
   12920 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   12921 	:
   12922       else
   12923 	can_build_shared=no
   12924       fi
   12925       ;;
   12926     esac
   12927     # Using Import Files as archive members, it is possible to support
   12928     # filename-based versioning of shared library archives on AIX. While
   12929     # this would work for both with and without runtime linking, it will
   12930     # prevent static linking of such archives. So we do filename-based
   12931     # shared library versioning with .so extension only, which is used
   12932     # when both runtime linking and shared linking is enabled.
   12933     # Unfortunately, runtime linking may impact performance, so we do
   12934     # not want this to be the default eventually. Also, we use the
   12935     # versioned .so libs for executables only if there is the -brtl
   12936     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   12937     # To allow for filename-based versioning support, we need to create
   12938     # libNAME.so.V as an archive file, containing:
   12939     # *) an Import File, referring to the versioned filename of the
   12940     #    archive as well as the shared archive member, telling the
   12941     #    bitwidth (32 or 64) of that shared object, and providing the
   12942     #    list of exported symbols of that shared object, eventually
   12943     #    decorated with the 'weak' keyword
   12944     # *) the shared object with the F_LOADONLY flag set, to really avoid
   12945     #    it being seen by the linker.
   12946     # At run time we better use the real file rather than another symlink,
   12947     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   12948 
   12949     case $with_aix_soname,$aix_use_runtimelinking in
   12950     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   12951     # soname into executable. Probably we can add versioning support to
   12952     # collect2, so additional links can be useful in future.
   12953     aix,yes) # traditional libtool
   12954       dynamic_linker='AIX unversionable lib.so'
   12955       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   12956       # instead of lib<name>.a to let people know that these are not
   12957       # typical AIX shared libraries.
   12958       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   12959       ;;
   12960     aix,no) # traditional AIX only
   12961       dynamic_linker='AIX lib.a(lib.so.V)'
   12962       # We preserve .a as extension for shared libraries through AIX4.2
   12963       # and later when we are not doing run time linking.
   12964       library_names_spec='$libname$release.a $libname.a'
   12965       soname_spec='$libname$release$shared_ext$major'
   12966       ;;
   12967     svr4,*) # full svr4 only
   12968       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   12969       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   12970       # We do not specify a path in Import Files, so LIBPATH fires.
   12971       shlibpath_overrides_runpath=yes
   12972       ;;
   12973     *,yes) # both, prefer svr4
   12974       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   12975       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   12976       # unpreferred sharedlib libNAME.a needs extra handling
   12977       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
   12978       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
   12979       # We do not specify a path in Import Files, so LIBPATH fires.
   12980       shlibpath_overrides_runpath=yes
   12981       ;;
   12982     *,no) # both, prefer aix
   12983       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   12984       library_names_spec='$libname$release.a $libname.a'
   12985       soname_spec='$libname$release$shared_ext$major'
   12986       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   12987       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
   12988       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
   12989       ;;
   12990     esac
   12991     shlibpath_var=LIBPATH
   12992   fi
   12993   ;;
   12994 
   12995 amigaos*)
   12996   case $host_cpu in
   12997   powerpc)
   12998     # Since July 2007 AmigaOS4 officially supports .so libraries.
   12999     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   13000     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13001     ;;
   13002   m68k)
   13003     library_names_spec='$libname.ixlibrary $libname.a'
   13004     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   13005     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   13006     ;;
   13007   esac
   13008   ;;
   13009 
   13010 beos*)
   13011   library_names_spec='$libname$shared_ext'
   13012   dynamic_linker="$host_os ld.so"
   13013   shlibpath_var=LIBRARY_PATH
   13014   ;;
   13015 
   13016 bsdi[45]*)
   13017   version_type=linux # correct to gnu/linux during the next big refactor
   13018   need_version=no
   13019   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13020   soname_spec='$libname$release$shared_ext$major'
   13021   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   13022   shlibpath_var=LD_LIBRARY_PATH
   13023   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   13024   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   13025   # the default ld.so.conf also contains /usr/contrib/lib and
   13026   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   13027   # libtool to hard-code these into programs
   13028   ;;
   13029 
   13030 cygwin* | mingw* | pw32* | cegcc*)
   13031   version_type=windows
   13032   shrext_cmds=.dll
   13033   need_version=no
   13034   need_lib_prefix=no
   13035 
   13036   case $GCC,$cc_basename in
   13037   yes,*)
   13038     # gcc
   13039     library_names_spec='$libname.dll.a'
   13040     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   13041     postinstall_cmds='base_file=`basename \$file`~
   13042       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   13043       dldir=$destdir/`dirname \$dlpath`~
   13044       test -d \$dldir || mkdir -p \$dldir~
   13045       $install_prog $dir/$dlname \$dldir/$dlname~
   13046       chmod a+x \$dldir/$dlname~
   13047       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   13048         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   13049       fi'
   13050     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   13051       dlpath=$dir/\$dldll~
   13052        $RM \$dlpath'
   13053     shlibpath_overrides_runpath=yes
   13054 
   13055     case $host_os in
   13056     cygwin*)
   13057       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   13058       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13059 
   13060       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   13061       ;;
   13062     mingw* | cegcc*)
   13063       # MinGW DLLs use traditional 'lib' prefix
   13064       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13065       ;;
   13066     pw32*)
   13067       # pw32 DLLs use 'pw' prefix rather than 'lib'
   13068       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13069       ;;
   13070     esac
   13071     dynamic_linker='Win32 ld.exe'
   13072     ;;
   13073 
   13074   *,cl*)
   13075     # Native MSVC
   13076     libname_spec='$name'
   13077     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13078     library_names_spec='$libname.dll.lib'
   13079 
   13080     case $build_os in
   13081     mingw*)
   13082       sys_lib_search_path_spec=
   13083       lt_save_ifs=$IFS
   13084       IFS=';'
   13085       for lt_path in $LIB
   13086       do
   13087         IFS=$lt_save_ifs
   13088         # Let DOS variable expansion print the short 8.3 style file name.
   13089         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   13090         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   13091       done
   13092       IFS=$lt_save_ifs
   13093       # Convert to MSYS style.
   13094       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   13095       ;;
   13096     cygwin*)
   13097       # Convert to unix form, then to dos form, then back to unix form
   13098       # but this time dos style (no spaces!) so that the unix form looks
   13099       # like /cygdrive/c/PROGRA~1:/cygdr...
   13100       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   13101       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   13102       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   13103       ;;
   13104     *)
   13105       sys_lib_search_path_spec=$LIB
   13106       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   13107         # It is most probably a Windows format PATH.
   13108         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   13109       else
   13110         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   13111       fi
   13112       # FIXME: find the short name or the path components, as spaces are
   13113       # common. (e.g. "Program Files" -> "PROGRA~1")
   13114       ;;
   13115     esac
   13116 
   13117     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   13118     postinstall_cmds='base_file=`basename \$file`~
   13119       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   13120       dldir=$destdir/`dirname \$dlpath`~
   13121       test -d \$dldir || mkdir -p \$dldir~
   13122       $install_prog $dir/$dlname \$dldir/$dlname'
   13123     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   13124       dlpath=$dir/\$dldll~
   13125        $RM \$dlpath'
   13126     shlibpath_overrides_runpath=yes
   13127     dynamic_linker='Win32 link.exe'
   13128     ;;
   13129 
   13130   *)
   13131     # Assume MSVC wrapper
   13132     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   13133     dynamic_linker='Win32 ld.exe'
   13134     ;;
   13135   esac
   13136   # FIXME: first we should search . and the directory the executable is in
   13137   shlibpath_var=PATH
   13138   ;;
   13139 
   13140 darwin* | rhapsody*)
   13141   dynamic_linker="$host_os dyld"
   13142   version_type=darwin
   13143   need_lib_prefix=no
   13144   need_version=no
   13145   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   13146   soname_spec='$libname$release$major$shared_ext'
   13147   shlibpath_overrides_runpath=yes
   13148   shlibpath_var=DYLD_LIBRARY_PATH
   13149   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   13150 
   13151   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   13152   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   13153   ;;
   13154 
   13155 dgux*)
   13156   version_type=linux # correct to gnu/linux during the next big refactor
   13157   need_lib_prefix=no
   13158   need_version=no
   13159   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13160   soname_spec='$libname$release$shared_ext$major'
   13161   shlibpath_var=LD_LIBRARY_PATH
   13162   ;;
   13163 
   13164 freebsd* | dragonfly*)
   13165   # DragonFly does not have aout.  When/if they implement a new
   13166   # versioning mechanism, adjust this.
   13167   if test -x /usr/bin/objformat; then
   13168     objformat=`/usr/bin/objformat`
   13169   else
   13170     case $host_os in
   13171     freebsd[23].*) objformat=aout ;;
   13172     *) objformat=elf ;;
   13173     esac
   13174   fi
   13175   version_type=freebsd-$objformat
   13176   case $version_type in
   13177     freebsd-elf*)
   13178       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13179       soname_spec='$libname$release$shared_ext$major'
   13180       need_version=no
   13181       need_lib_prefix=no
   13182       ;;
   13183     freebsd-*)
   13184       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13185       need_version=yes
   13186       ;;
   13187   esac
   13188   shlibpath_var=LD_LIBRARY_PATH
   13189   case $host_os in
   13190   freebsd2.*)
   13191     shlibpath_overrides_runpath=yes
   13192     ;;
   13193   freebsd3.[01]* | freebsdelf3.[01]*)
   13194     shlibpath_overrides_runpath=yes
   13195     hardcode_into_libs=yes
   13196     ;;
   13197   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   13198   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   13199     shlibpath_overrides_runpath=no
   13200     hardcode_into_libs=yes
   13201     ;;
   13202   *) # from 4.6 on, and DragonFly
   13203     shlibpath_overrides_runpath=yes
   13204     hardcode_into_libs=yes
   13205     ;;
   13206   esac
   13207   ;;
   13208 
   13209 haiku*)
   13210   version_type=linux # correct to gnu/linux during the next big refactor
   13211   need_lib_prefix=no
   13212   need_version=no
   13213   dynamic_linker="$host_os runtime_loader"
   13214   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13215   soname_spec='$libname$release$shared_ext$major'
   13216   shlibpath_var=LIBRARY_PATH
   13217   shlibpath_overrides_runpath=no
   13218   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   13219   hardcode_into_libs=yes
   13220   ;;
   13221 
   13222 hpux9* | hpux10* | hpux11*)
   13223   # Give a soname corresponding to the major version so that dld.sl refuses to
   13224   # link against other versions.
   13225   version_type=sunos
   13226   need_lib_prefix=no
   13227   need_version=no
   13228   case $host_cpu in
   13229   ia64*)
   13230     shrext_cmds='.so'
   13231     hardcode_into_libs=yes
   13232     dynamic_linker="$host_os dld.so"
   13233     shlibpath_var=LD_LIBRARY_PATH
   13234     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   13235     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13236     soname_spec='$libname$release$shared_ext$major'
   13237     if test 32 = "$HPUX_IA64_MODE"; then
   13238       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   13239       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   13240     else
   13241       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   13242       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   13243     fi
   13244     ;;
   13245   hppa*64*)
   13246     shrext_cmds='.sl'
   13247     hardcode_into_libs=yes
   13248     dynamic_linker="$host_os dld.sl"
   13249     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   13250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   13251     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13252     soname_spec='$libname$release$shared_ext$major'
   13253     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   13254     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13255     ;;
   13256   *)
   13257     shrext_cmds='.sl'
   13258     dynamic_linker="$host_os dld.sl"
   13259     shlibpath_var=SHLIB_PATH
   13260     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   13261     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13262     soname_spec='$libname$release$shared_ext$major'
   13263     ;;
   13264   esac
   13265   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   13266   postinstall_cmds='chmod 555 $lib'
   13267   # or fails outright, so override atomically:
   13268   install_override_mode=555
   13269   ;;
   13270 
   13271 interix[3-9]*)
   13272   version_type=linux # correct to gnu/linux during the next big refactor
   13273   need_lib_prefix=no
   13274   need_version=no
   13275   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13276   soname_spec='$libname$release$shared_ext$major'
   13277   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   13278   shlibpath_var=LD_LIBRARY_PATH
   13279   shlibpath_overrides_runpath=no
   13280   hardcode_into_libs=yes
   13281   ;;
   13282 
   13283 irix5* | irix6* | nonstopux*)
   13284   case $host_os in
   13285     nonstopux*) version_type=nonstopux ;;
   13286     *)
   13287 	if test yes = "$lt_cv_prog_gnu_ld"; then
   13288 		version_type=linux # correct to gnu/linux during the next big refactor
   13289 	else
   13290 		version_type=irix
   13291 	fi ;;
   13292   esac
   13293   need_lib_prefix=no
   13294   need_version=no
   13295   soname_spec='$libname$release$shared_ext$major'
   13296   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   13297   case $host_os in
   13298   irix5* | nonstopux*)
   13299     libsuff= shlibsuff=
   13300     ;;
   13301   *)
   13302     case $LD in # libtool.m4 will add one of these switches to LD
   13303     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   13304       libsuff= shlibsuff= libmagic=32-bit;;
   13305     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   13306       libsuff=32 shlibsuff=N32 libmagic=N32;;
   13307     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   13308       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   13309     *) libsuff= shlibsuff= libmagic=never-match;;
   13310     esac
   13311     ;;
   13312   esac
   13313   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   13314   shlibpath_overrides_runpath=no
   13315   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   13316   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   13317   hardcode_into_libs=yes
   13318   ;;
   13319 
   13320 # No shared lib support for Linux oldld, aout, or coff.
   13321 linux*oldld* | linux*aout* | linux*coff*)
   13322   dynamic_linker=no
   13323   ;;
   13324 
   13325 linux*android*)
   13326   version_type=none # Android doesn't support versioned libraries.
   13327   need_lib_prefix=no
   13328   need_version=no
   13329   library_names_spec='$libname$release$shared_ext'
   13330   soname_spec='$libname$release$shared_ext'
   13331   finish_cmds=
   13332   shlibpath_var=LD_LIBRARY_PATH
   13333   shlibpath_overrides_runpath=yes
   13334 
   13335   # This implies no fast_install, which is unacceptable.
   13336   # Some rework will be needed to allow for fast_install
   13337   # before this can be enabled.
   13338   hardcode_into_libs=yes
   13339 
   13340   dynamic_linker='Android linker'
   13341   # Don't embed -rpath directories since the linker doesn't support them.
   13342   hardcode_libdir_flag_spec='-L$libdir'
   13343   ;;
   13344 
   13345 # This must be glibc/ELF.
   13346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   13347   version_type=linux # correct to gnu/linux during the next big refactor
   13348   need_lib_prefix=no
   13349   need_version=no
   13350   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13351   soname_spec='$libname$release$shared_ext$major'
   13352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   13353   shlibpath_var=LD_LIBRARY_PATH
   13354   shlibpath_overrides_runpath=no
   13355 
   13356   # Some binutils ld are patched to set DT_RUNPATH
   13357   if test ${lt_cv_shlibpath_overrides_runpath+y}
   13358 then :
   13359   printf %s "(cached) " >&6
   13360 else $as_nop
   13361   lt_cv_shlibpath_overrides_runpath=no
   13362     save_LDFLAGS=$LDFLAGS
   13363     save_libdir=$libdir
   13364     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   13365 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   13366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13367 /* end confdefs.h.  */
   13368 
   13369 int
   13370 main (void)
   13371 {
   13372 
   13373   ;
   13374   return 0;
   13375 }
   13376 _ACEOF
   13377 if ac_fn_c_try_link "$LINENO"
   13378 then :
   13379   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
   13380 then :
   13381   lt_cv_shlibpath_overrides_runpath=yes
   13382 fi
   13383 fi
   13384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13385     conftest$ac_exeext conftest.$ac_ext
   13386     LDFLAGS=$save_LDFLAGS
   13387     libdir=$save_libdir
   13388 
   13389 fi
   13390 
   13391   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   13392 
   13393   # This implies no fast_install, which is unacceptable.
   13394   # Some rework will be needed to allow for fast_install
   13395   # before this can be enabled.
   13396   hardcode_into_libs=yes
   13397 
   13398   # Ideally, we could use ldconfig to report *all* directores which are
   13399   # searched for libraries, however this is still not possible.  Aside from not
   13400   # being certain /sbin/ldconfig is available, command
   13401   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   13402   # even though it is searched at run-time.  Try to do the best guess by
   13403   # appending ld.so.conf contents (and includes) to the search path.
   13404   if test -f /etc/ld.so.conf; then
   13405     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
   13406     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   13407   fi
   13408 
   13409   # We used to test for /lib/ld.so.1 and disable shared libraries on
   13410   # powerpc, because MkLinux only supported shared libraries with the
   13411   # GNU dynamic linker.  Since this was broken with cross compilers,
   13412   # most powerpc-linux boxes support dynamic linking these days and
   13413   # people can always --disable-shared, the test was removed, and we
   13414   # assume the GNU/Linux dynamic linker is in use.
   13415   dynamic_linker='GNU/Linux ld.so'
   13416   ;;
   13417 
   13418 netbsd*)
   13419   version_type=sunos
   13420   need_lib_prefix=no
   13421   need_version=no
   13422   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   13423     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13424     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   13425     dynamic_linker='NetBSD (a.out) ld.so'
   13426   else
   13427     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13428     soname_spec='$libname$release$shared_ext$major'
   13429     dynamic_linker='NetBSD ld.elf_so'
   13430   fi
   13431   shlibpath_var=LD_LIBRARY_PATH
   13432   shlibpath_overrides_runpath=yes
   13433   hardcode_into_libs=yes
   13434   ;;
   13435 
   13436 newsos6)
   13437   version_type=linux # correct to gnu/linux during the next big refactor
   13438   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13439   shlibpath_var=LD_LIBRARY_PATH
   13440   shlibpath_overrides_runpath=yes
   13441   ;;
   13442 
   13443 *nto* | *qnx*)
   13444   version_type=qnx
   13445   need_lib_prefix=no
   13446   need_version=no
   13447   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13448   soname_spec='$libname$release$shared_ext$major'
   13449   shlibpath_var=LD_LIBRARY_PATH
   13450   shlibpath_overrides_runpath=no
   13451   hardcode_into_libs=yes
   13452   dynamic_linker='ldqnx.so'
   13453   ;;
   13454 
   13455 openbsd* | bitrig*)
   13456   version_type=sunos
   13457   sys_lib_dlsearch_path_spec=/usr/lib
   13458   need_lib_prefix=no
   13459   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   13460     need_version=no
   13461   else
   13462     need_version=yes
   13463   fi
   13464   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13465   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   13466   shlibpath_var=LD_LIBRARY_PATH
   13467   shlibpath_overrides_runpath=yes
   13468   ;;
   13469 
   13470 os2*)
   13471   libname_spec='$name'
   13472   version_type=windows
   13473   shrext_cmds=.dll
   13474   need_version=no
   13475   need_lib_prefix=no
   13476   # OS/2 can only load a DLL with a base name of 8 characters or less.
   13477   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   13478     v=$($ECHO $release$versuffix | tr -d .-);
   13479     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   13480     $ECHO $n$v`$shared_ext'
   13481   library_names_spec='${libname}_dll.$libext'
   13482   dynamic_linker='OS/2 ld.exe'
   13483   shlibpath_var=BEGINLIBPATH
   13484   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   13485   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13486   postinstall_cmds='base_file=`basename \$file`~
   13487     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   13488     dldir=$destdir/`dirname \$dlpath`~
   13489     test -d \$dldir || mkdir -p \$dldir~
   13490     $install_prog $dir/$dlname \$dldir/$dlname~
   13491     chmod a+x \$dldir/$dlname~
   13492     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   13493       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   13494     fi'
   13495   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   13496     dlpath=$dir/\$dldll~
   13497     $RM \$dlpath'
   13498   ;;
   13499 
   13500 osf3* | osf4* | osf5*)
   13501   version_type=osf
   13502   need_lib_prefix=no
   13503   need_version=no
   13504   soname_spec='$libname$release$shared_ext$major'
   13505   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13506   shlibpath_var=LD_LIBRARY_PATH
   13507   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   13508   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13509   ;;
   13510 
   13511 rdos*)
   13512   dynamic_linker=no
   13513   ;;
   13514 
   13515 solaris*)
   13516   version_type=linux # correct to gnu/linux during the next big refactor
   13517   need_lib_prefix=no
   13518   need_version=no
   13519   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13520   soname_spec='$libname$release$shared_ext$major'
   13521   shlibpath_var=LD_LIBRARY_PATH
   13522   shlibpath_overrides_runpath=yes
   13523   hardcode_into_libs=yes
   13524   # ldd complains unless libraries are executable
   13525   postinstall_cmds='chmod +x $lib'
   13526   ;;
   13527 
   13528 sunos4*)
   13529   version_type=sunos
   13530   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   13532   shlibpath_var=LD_LIBRARY_PATH
   13533   shlibpath_overrides_runpath=yes
   13534   if test yes = "$with_gnu_ld"; then
   13535     need_lib_prefix=no
   13536   fi
   13537   need_version=yes
   13538   ;;
   13539 
   13540 sysv4 | sysv4.3*)
   13541   version_type=linux # correct to gnu/linux during the next big refactor
   13542   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13543   soname_spec='$libname$release$shared_ext$major'
   13544   shlibpath_var=LD_LIBRARY_PATH
   13545   case $host_vendor in
   13546     sni)
   13547       shlibpath_overrides_runpath=no
   13548       need_lib_prefix=no
   13549       runpath_var=LD_RUN_PATH
   13550       ;;
   13551     siemens)
   13552       need_lib_prefix=no
   13553       ;;
   13554     motorola)
   13555       need_lib_prefix=no
   13556       need_version=no
   13557       shlibpath_overrides_runpath=no
   13558       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   13559       ;;
   13560   esac
   13561   ;;
   13562 
   13563 sysv4*MP*)
   13564   if test -d /usr/nec; then
   13565     version_type=linux # correct to gnu/linux during the next big refactor
   13566     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   13567     soname_spec='$libname$shared_ext.$major'
   13568     shlibpath_var=LD_LIBRARY_PATH
   13569   fi
   13570   ;;
   13571 
   13572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   13573   version_type=sco
   13574   need_lib_prefix=no
   13575   need_version=no
   13576   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   13577   soname_spec='$libname$release$shared_ext$major'
   13578   shlibpath_var=LD_LIBRARY_PATH
   13579   shlibpath_overrides_runpath=yes
   13580   hardcode_into_libs=yes
   13581   if test yes = "$with_gnu_ld"; then
   13582     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   13583   else
   13584     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   13585     case $host_os in
   13586       sco3.2v5*)
   13587         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   13588 	;;
   13589     esac
   13590   fi
   13591   sys_lib_dlsearch_path_spec='/usr/lib'
   13592   ;;
   13593 
   13594 tpf*)
   13595   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   13596   version_type=linux # correct to gnu/linux during the next big refactor
   13597   need_lib_prefix=no
   13598   need_version=no
   13599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13600   shlibpath_var=LD_LIBRARY_PATH
   13601   shlibpath_overrides_runpath=no
   13602   hardcode_into_libs=yes
   13603   ;;
   13604 
   13605 uts4*)
   13606   version_type=linux # correct to gnu/linux during the next big refactor
   13607   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13608   soname_spec='$libname$release$shared_ext$major'
   13609   shlibpath_var=LD_LIBRARY_PATH
   13610   ;;
   13611 
   13612 *)
   13613   dynamic_linker=no
   13614   ;;
   13615 esac
   13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   13617 printf "%s\n" "$dynamic_linker" >&6; }
   13618 test no = "$dynamic_linker" && can_build_shared=no
   13619 
   13620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   13621 if test yes = "$GCC"; then
   13622   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   13623 fi
   13624 
   13625 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   13626   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   13627 fi
   13628 
   13629 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   13630   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   13631 fi
   13632 
   13633 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   13634 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   13635 
   13636 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   13637 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   13638 
   13639 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   13640 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   13641 
   13642 
   13643 
   13644 
   13645 
   13646 
   13647 
   13648 
   13649 
   13650 
   13651 
   13652 
   13653 
   13654 
   13655 
   13656 
   13657 
   13658 
   13659 
   13660 
   13661 
   13662 
   13663 
   13664 
   13665 
   13666 
   13667 
   13668 
   13669 
   13670 
   13671 
   13672 
   13673 
   13674 
   13675 
   13676 
   13677 
   13678 
   13679 
   13680 
   13681 
   13682 
   13683 
   13684 
   13685 
   13686 
   13687 
   13688 
   13689 
   13690 
   13691 
   13692 
   13693 
   13694 
   13695 
   13696 
   13697 
   13698 
   13699 
   13700 
   13701 
   13702 
   13703 
   13704 
   13705 
   13706 
   13707 
   13708 
   13709 
   13710 
   13711 
   13712 
   13713 
   13714 
   13715 
   13716 
   13717 
   13718 
   13719 
   13720 
   13721 
   13722 
   13723 
   13724 
   13725 
   13726 
   13727 
   13728 
   13729 
   13730 
   13731 
   13732 
   13733 
   13734 
   13735 
   13736 
   13737 
   13738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   13739 printf %s "checking how to hardcode library paths into programs... " >&6; }
   13740 hardcode_action=
   13741 if test -n "$hardcode_libdir_flag_spec" ||
   13742    test -n "$runpath_var" ||
   13743    test yes = "$hardcode_automatic"; then
   13744 
   13745   # We can hardcode non-existent directories.
   13746   if test no != "$hardcode_direct" &&
   13747      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   13748      # have to relink, otherwise we might link with an installed library
   13749      # when we should be linking with a yet-to-be-installed one
   13750      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   13751      test no != "$hardcode_minus_L"; then
   13752     # Linking always hardcodes the temporary library directory.
   13753     hardcode_action=relink
   13754   else
   13755     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   13756     hardcode_action=immediate
   13757   fi
   13758 else
   13759   # We cannot hardcode anything, or else we can only hardcode existing
   13760   # directories.
   13761   hardcode_action=unsupported
   13762 fi
   13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   13764 printf "%s\n" "$hardcode_action" >&6; }
   13765 
   13766 if test relink = "$hardcode_action" ||
   13767    test yes = "$inherit_rpath"; then
   13768   # Fast installation is not supported
   13769   enable_fast_install=no
   13770 elif test yes = "$shlibpath_overrides_runpath" ||
   13771      test no = "$enable_shared"; then
   13772   # Fast installation is not necessary
   13773   enable_fast_install=needless
   13774 fi
   13775 
   13776 
   13777 
   13778 
   13779 
   13780 
   13781   if test yes != "$enable_dlopen"; then
   13782   enable_dlopen=unknown
   13783   enable_dlopen_self=unknown
   13784   enable_dlopen_self_static=unknown
   13785 else
   13786   lt_cv_dlopen=no
   13787   lt_cv_dlopen_libs=
   13788 
   13789   case $host_os in
   13790   beos*)
   13791     lt_cv_dlopen=load_add_on
   13792     lt_cv_dlopen_libs=
   13793     lt_cv_dlopen_self=yes
   13794     ;;
   13795 
   13796   mingw* | pw32* | cegcc*)
   13797     lt_cv_dlopen=LoadLibrary
   13798     lt_cv_dlopen_libs=
   13799     ;;
   13800 
   13801   cygwin*)
   13802     lt_cv_dlopen=dlopen
   13803     lt_cv_dlopen_libs=
   13804     ;;
   13805 
   13806   darwin*)
   13807     # if libdl is installed we need to link against it
   13808     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13809 printf %s "checking for dlopen in -ldl... " >&6; }
   13810 if test ${ac_cv_lib_dl_dlopen+y}
   13811 then :
   13812   printf %s "(cached) " >&6
   13813 else $as_nop
   13814   ac_check_lib_save_LIBS=$LIBS
   13815 LIBS="-ldl  $LIBS"
   13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13817 /* end confdefs.h.  */
   13818 
   13819 /* Override any GCC internal prototype to avoid an error.
   13820    Use char because int might match the return type of a GCC
   13821    builtin and then its argument prototype would still apply.  */
   13822 char dlopen ();
   13823 int
   13824 main (void)
   13825 {
   13826 return dlopen ();
   13827   ;
   13828   return 0;
   13829 }
   13830 _ACEOF
   13831 if ac_fn_c_try_link "$LINENO"
   13832 then :
   13833   ac_cv_lib_dl_dlopen=yes
   13834 else $as_nop
   13835   ac_cv_lib_dl_dlopen=no
   13836 fi
   13837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13838     conftest$ac_exeext conftest.$ac_ext
   13839 LIBS=$ac_check_lib_save_LIBS
   13840 fi
   13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13842 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   13843 if test "x$ac_cv_lib_dl_dlopen" = xyes
   13844 then :
   13845   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   13846 else $as_nop
   13847 
   13848     lt_cv_dlopen=dyld
   13849     lt_cv_dlopen_libs=
   13850     lt_cv_dlopen_self=yes
   13851 
   13852 fi
   13853 
   13854     ;;
   13855 
   13856   tpf*)
   13857     # Don't try to run any link tests for TPF.  We know it's impossible
   13858     # because TPF is a cross-compiler, and we know how we open DSOs.
   13859     lt_cv_dlopen=dlopen
   13860     lt_cv_dlopen_libs=
   13861     lt_cv_dlopen_self=no
   13862     ;;
   13863 
   13864   *)
   13865     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   13866 if test "x$ac_cv_func_shl_load" = xyes
   13867 then :
   13868   lt_cv_dlopen=shl_load
   13869 else $as_nop
   13870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   13871 printf %s "checking for shl_load in -ldld... " >&6; }
   13872 if test ${ac_cv_lib_dld_shl_load+y}
   13873 then :
   13874   printf %s "(cached) " >&6
   13875 else $as_nop
   13876   ac_check_lib_save_LIBS=$LIBS
   13877 LIBS="-ldld  $LIBS"
   13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13879 /* end confdefs.h.  */
   13880 
   13881 /* Override any GCC internal prototype to avoid an error.
   13882    Use char because int might match the return type of a GCC
   13883    builtin and then its argument prototype would still apply.  */
   13884 char shl_load ();
   13885 int
   13886 main (void)
   13887 {
   13888 return shl_load ();
   13889   ;
   13890   return 0;
   13891 }
   13892 _ACEOF
   13893 if ac_fn_c_try_link "$LINENO"
   13894 then :
   13895   ac_cv_lib_dld_shl_load=yes
   13896 else $as_nop
   13897   ac_cv_lib_dld_shl_load=no
   13898 fi
   13899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13900     conftest$ac_exeext conftest.$ac_ext
   13901 LIBS=$ac_check_lib_save_LIBS
   13902 fi
   13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   13904 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
   13905 if test "x$ac_cv_lib_dld_shl_load" = xyes
   13906 then :
   13907   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   13908 else $as_nop
   13909   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   13910 if test "x$ac_cv_func_dlopen" = xyes
   13911 then :
   13912   lt_cv_dlopen=dlopen
   13913 else $as_nop
   13914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13915 printf %s "checking for dlopen in -ldl... " >&6; }
   13916 if test ${ac_cv_lib_dl_dlopen+y}
   13917 then :
   13918   printf %s "(cached) " >&6
   13919 else $as_nop
   13920   ac_check_lib_save_LIBS=$LIBS
   13921 LIBS="-ldl  $LIBS"
   13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13923 /* end confdefs.h.  */
   13924 
   13925 /* Override any GCC internal prototype to avoid an error.
   13926    Use char because int might match the return type of a GCC
   13927    builtin and then its argument prototype would still apply.  */
   13928 char dlopen ();
   13929 int
   13930 main (void)
   13931 {
   13932 return dlopen ();
   13933   ;
   13934   return 0;
   13935 }
   13936 _ACEOF
   13937 if ac_fn_c_try_link "$LINENO"
   13938 then :
   13939   ac_cv_lib_dl_dlopen=yes
   13940 else $as_nop
   13941   ac_cv_lib_dl_dlopen=no
   13942 fi
   13943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13944     conftest$ac_exeext conftest.$ac_ext
   13945 LIBS=$ac_check_lib_save_LIBS
   13946 fi
   13947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13948 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   13949 if test "x$ac_cv_lib_dl_dlopen" = xyes
   13950 then :
   13951   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   13952 else $as_nop
   13953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   13954 printf %s "checking for dlopen in -lsvld... " >&6; }
   13955 if test ${ac_cv_lib_svld_dlopen+y}
   13956 then :
   13957   printf %s "(cached) " >&6
   13958 else $as_nop
   13959   ac_check_lib_save_LIBS=$LIBS
   13960 LIBS="-lsvld  $LIBS"
   13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13962 /* end confdefs.h.  */
   13963 
   13964 /* Override any GCC internal prototype to avoid an error.
   13965    Use char because int might match the return type of a GCC
   13966    builtin and then its argument prototype would still apply.  */
   13967 char dlopen ();
   13968 int
   13969 main (void)
   13970 {
   13971 return dlopen ();
   13972   ;
   13973   return 0;
   13974 }
   13975 _ACEOF
   13976 if ac_fn_c_try_link "$LINENO"
   13977 then :
   13978   ac_cv_lib_svld_dlopen=yes
   13979 else $as_nop
   13980   ac_cv_lib_svld_dlopen=no
   13981 fi
   13982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13983     conftest$ac_exeext conftest.$ac_ext
   13984 LIBS=$ac_check_lib_save_LIBS
   13985 fi
   13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   13987 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
   13988 if test "x$ac_cv_lib_svld_dlopen" = xyes
   13989 then :
   13990   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   13991 else $as_nop
   13992   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   13993 printf %s "checking for dld_link in -ldld... " >&6; }
   13994 if test ${ac_cv_lib_dld_dld_link+y}
   13995 then :
   13996   printf %s "(cached) " >&6
   13997 else $as_nop
   13998   ac_check_lib_save_LIBS=$LIBS
   13999 LIBS="-ldld  $LIBS"
   14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14001 /* end confdefs.h.  */
   14002 
   14003 /* Override any GCC internal prototype to avoid an error.
   14004    Use char because int might match the return type of a GCC
   14005    builtin and then its argument prototype would still apply.  */
   14006 char dld_link ();
   14007 int
   14008 main (void)
   14009 {
   14010 return dld_link ();
   14011   ;
   14012   return 0;
   14013 }
   14014 _ACEOF
   14015 if ac_fn_c_try_link "$LINENO"
   14016 then :
   14017   ac_cv_lib_dld_dld_link=yes
   14018 else $as_nop
   14019   ac_cv_lib_dld_dld_link=no
   14020 fi
   14021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14022     conftest$ac_exeext conftest.$ac_ext
   14023 LIBS=$ac_check_lib_save_LIBS
   14024 fi
   14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   14026 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
   14027 if test "x$ac_cv_lib_dld_dld_link" = xyes
   14028 then :
   14029   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   14030 fi
   14031 
   14032 
   14033 fi
   14034 
   14035 
   14036 fi
   14037 
   14038 
   14039 fi
   14040 
   14041 
   14042 fi
   14043 
   14044 
   14045 fi
   14046 
   14047     ;;
   14048   esac
   14049 
   14050   if test no = "$lt_cv_dlopen"; then
   14051     enable_dlopen=no
   14052   else
   14053     enable_dlopen=yes
   14054   fi
   14055 
   14056   case $lt_cv_dlopen in
   14057   dlopen)
   14058     save_CPPFLAGS=$CPPFLAGS
   14059     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   14060 
   14061     save_LDFLAGS=$LDFLAGS
   14062     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   14063 
   14064     save_LIBS=$LIBS
   14065     LIBS="$lt_cv_dlopen_libs $LIBS"
   14066 
   14067     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   14068 printf %s "checking whether a program can dlopen itself... " >&6; }
   14069 if test ${lt_cv_dlopen_self+y}
   14070 then :
   14071   printf %s "(cached) " >&6
   14072 else $as_nop
   14073   	  if test yes = "$cross_compiling"; then :
   14074   lt_cv_dlopen_self=cross
   14075 else
   14076   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   14077   lt_status=$lt_dlunknown
   14078   cat > conftest.$ac_ext <<_LT_EOF
   14079 #line $LINENO "configure"
   14080 #include "confdefs.h"
   14081 
   14082 #if HAVE_DLFCN_H
   14083 #include <dlfcn.h>
   14084 #endif
   14085 
   14086 #include <stdio.h>
   14087 
   14088 #ifdef RTLD_GLOBAL
   14089 #  define LT_DLGLOBAL		RTLD_GLOBAL
   14090 #else
   14091 #  ifdef DL_GLOBAL
   14092 #    define LT_DLGLOBAL		DL_GLOBAL
   14093 #  else
   14094 #    define LT_DLGLOBAL		0
   14095 #  endif
   14096 #endif
   14097 
   14098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   14099    find out it does not work in some platform. */
   14100 #ifndef LT_DLLAZY_OR_NOW
   14101 #  ifdef RTLD_LAZY
   14102 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   14103 #  else
   14104 #    ifdef DL_LAZY
   14105 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   14106 #    else
   14107 #      ifdef RTLD_NOW
   14108 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   14109 #      else
   14110 #        ifdef DL_NOW
   14111 #          define LT_DLLAZY_OR_NOW	DL_NOW
   14112 #        else
   14113 #          define LT_DLLAZY_OR_NOW	0
   14114 #        endif
   14115 #      endif
   14116 #    endif
   14117 #  endif
   14118 #endif
   14119 
   14120 /* When -fvisibility=hidden is used, assume the code has been annotated
   14121    correspondingly for the symbols needed.  */
   14122 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   14123 int fnord () __attribute__((visibility("default")));
   14124 #endif
   14125 
   14126 int fnord () { return 42; }
   14127 int main ()
   14128 {
   14129   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   14130   int status = $lt_dlunknown;
   14131 
   14132   if (self)
   14133     {
   14134       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   14135       else
   14136         {
   14137 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   14138           else puts (dlerror ());
   14139 	}
   14140       /* dlclose (self); */
   14141     }
   14142   else
   14143     puts (dlerror ());
   14144 
   14145   return status;
   14146 }
   14147 _LT_EOF
   14148   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   14149   (eval $ac_link) 2>&5
   14150   ac_status=$?
   14151   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14152   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   14153     (./conftest; exit; ) >&5 2>/dev/null
   14154     lt_status=$?
   14155     case x$lt_status in
   14156       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   14157       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   14158       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   14159     esac
   14160   else :
   14161     # compilation failed
   14162     lt_cv_dlopen_self=no
   14163   fi
   14164 fi
   14165 rm -fr conftest*
   14166 
   14167 
   14168 fi
   14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   14170 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
   14171 
   14172     if test yes = "$lt_cv_dlopen_self"; then
   14173       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   14174       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   14175 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
   14176 if test ${lt_cv_dlopen_self_static+y}
   14177 then :
   14178   printf %s "(cached) " >&6
   14179 else $as_nop
   14180   	  if test yes = "$cross_compiling"; then :
   14181   lt_cv_dlopen_self_static=cross
   14182 else
   14183   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   14184   lt_status=$lt_dlunknown
   14185   cat > conftest.$ac_ext <<_LT_EOF
   14186 #line $LINENO "configure"
   14187 #include "confdefs.h"
   14188 
   14189 #if HAVE_DLFCN_H
   14190 #include <dlfcn.h>
   14191 #endif
   14192 
   14193 #include <stdio.h>
   14194 
   14195 #ifdef RTLD_GLOBAL
   14196 #  define LT_DLGLOBAL		RTLD_GLOBAL
   14197 #else
   14198 #  ifdef DL_GLOBAL
   14199 #    define LT_DLGLOBAL		DL_GLOBAL
   14200 #  else
   14201 #    define LT_DLGLOBAL		0
   14202 #  endif
   14203 #endif
   14204 
   14205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   14206    find out it does not work in some platform. */
   14207 #ifndef LT_DLLAZY_OR_NOW
   14208 #  ifdef RTLD_LAZY
   14209 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   14210 #  else
   14211 #    ifdef DL_LAZY
   14212 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   14213 #    else
   14214 #      ifdef RTLD_NOW
   14215 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   14216 #      else
   14217 #        ifdef DL_NOW
   14218 #          define LT_DLLAZY_OR_NOW	DL_NOW
   14219 #        else
   14220 #          define LT_DLLAZY_OR_NOW	0
   14221 #        endif
   14222 #      endif
   14223 #    endif
   14224 #  endif
   14225 #endif
   14226 
   14227 /* When -fvisibility=hidden is used, assume the code has been annotated
   14228    correspondingly for the symbols needed.  */
   14229 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   14230 int fnord () __attribute__((visibility("default")));
   14231 #endif
   14232 
   14233 int fnord () { return 42; }
   14234 int main ()
   14235 {
   14236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   14237   int status = $lt_dlunknown;
   14238 
   14239   if (self)
   14240     {
   14241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   14242       else
   14243         {
   14244 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   14245           else puts (dlerror ());
   14246 	}
   14247       /* dlclose (self); */
   14248     }
   14249   else
   14250     puts (dlerror ());
   14251 
   14252   return status;
   14253 }
   14254 _LT_EOF
   14255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   14256   (eval $ac_link) 2>&5
   14257   ac_status=$?
   14258   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14259   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   14260     (./conftest; exit; ) >&5 2>/dev/null
   14261     lt_status=$?
   14262     case x$lt_status in
   14263       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   14264       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   14265       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   14266     esac
   14267   else :
   14268     # compilation failed
   14269     lt_cv_dlopen_self_static=no
   14270   fi
   14271 fi
   14272 rm -fr conftest*
   14273 
   14274 
   14275 fi
   14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   14277 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
   14278     fi
   14279 
   14280     CPPFLAGS=$save_CPPFLAGS
   14281     LDFLAGS=$save_LDFLAGS
   14282     LIBS=$save_LIBS
   14283     ;;
   14284   esac
   14285 
   14286   case $lt_cv_dlopen_self in
   14287   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   14288   *) enable_dlopen_self=unknown ;;
   14289   esac
   14290 
   14291   case $lt_cv_dlopen_self_static in
   14292   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   14293   *) enable_dlopen_self_static=unknown ;;
   14294   esac
   14295 fi
   14296 
   14297 
   14298 
   14299 
   14300 
   14301 
   14302 
   14303 
   14304 
   14305 
   14306 
   14307 
   14308 
   14309 
   14310 
   14311 
   14312 
   14313 striplib=
   14314 old_striplib=
   14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   14316 printf %s "checking whether stripping libraries is possible... " >&6; }
   14317 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   14318   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   14319   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   14320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14321 printf "%s\n" "yes" >&6; }
   14322 else
   14323 # FIXME - insert some real tests, host_os isn't really good enough
   14324   case $host_os in
   14325   darwin*)
   14326     if test -n "$STRIP"; then
   14327       striplib="$STRIP -x"
   14328       old_striplib="$STRIP -S"
   14329       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14330 printf "%s\n" "yes" >&6; }
   14331     else
   14332       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14333 printf "%s\n" "no" >&6; }
   14334     fi
   14335     ;;
   14336   *)
   14337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14338 printf "%s\n" "no" >&6; }
   14339     ;;
   14340   esac
   14341 fi
   14342 
   14343 
   14344 
   14345 
   14346 
   14347 
   14348 
   14349 
   14350 
   14351 
   14352 
   14353 
   14354   # Report what library types will actually be built
   14355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   14356 printf %s "checking if libtool supports shared libraries... " >&6; }
   14357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   14358 printf "%s\n" "$can_build_shared" >&6; }
   14359 
   14360   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   14361 printf %s "checking whether to build shared libraries... " >&6; }
   14362   test no = "$can_build_shared" && enable_shared=no
   14363 
   14364   # On AIX, shared libraries and static libraries use the same namespace, and
   14365   # are all built from PIC.
   14366   case $host_os in
   14367   aix3*)
   14368     test yes = "$enable_shared" && enable_static=no
   14369     if test -n "$RANLIB"; then
   14370       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   14371       postinstall_cmds='$RANLIB $lib'
   14372     fi
   14373     ;;
   14374 
   14375   aix[4-9]*)
   14376     if test ia64 != "$host_cpu"; then
   14377       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   14378       yes,aix,yes) ;;			# shared object as lib.so file only
   14379       yes,svr4,*) ;;			# shared object as lib.so archive member only
   14380       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   14381       esac
   14382     fi
   14383     ;;
   14384   esac
   14385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   14386 printf "%s\n" "$enable_shared" >&6; }
   14387 
   14388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   14389 printf %s "checking whether to build static libraries... " >&6; }
   14390   # Make sure either enable_shared or enable_static is yes.
   14391   test yes = "$enable_shared" || enable_static=yes
   14392   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   14393 printf "%s\n" "$enable_static" >&6; }
   14394 
   14395 
   14396 
   14397 
   14398 fi
   14399 ac_ext=c
   14400 ac_cpp='$CPP $CPPFLAGS'
   14401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14404 
   14405 CC=$lt_save_CC
   14406 
   14407 
   14408 
   14409 
   14410 
   14411 
   14412 
   14413 
   14414 
   14415 
   14416 
   14417 
   14418 
   14419 
   14420 
   14421         ac_config_commands="$ac_config_commands libtool"
   14422 
   14423 
   14424 
   14425 
   14426 # Only expand once:
   14427 
   14428 
   14429 
   14430 ol_link_perl=no
   14431 if test $ol_enable_perl != no ; then
   14432 	# Extract the first word of "perl", so it can be a program name with args.
   14433 set dummy perl; ac_word=$2
   14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14435 printf %s "checking for $ac_word... " >&6; }
   14436 if test ${ac_cv_path_PERLBIN+y}
   14437 then :
   14438   printf %s "(cached) " >&6
   14439 else $as_nop
   14440   case $PERLBIN in
   14441   [\\/]* | ?:[\\/]*)
   14442   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
   14443   ;;
   14444   *)
   14445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14446 for as_dir in $PATH
   14447 do
   14448   IFS=$as_save_IFS
   14449   case $as_dir in #(((
   14450     '') as_dir=./ ;;
   14451     */) ;;
   14452     *) as_dir=$as_dir/ ;;
   14453   esac
   14454     for ac_exec_ext in '' $ac_executable_extensions; do
   14455   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   14456     ac_cv_path_PERLBIN="$as_dir$ac_word$ac_exec_ext"
   14457     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   14458     break 2
   14459   fi
   14460 done
   14461   done
   14462 IFS=$as_save_IFS
   14463 
   14464   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
   14465   ;;
   14466 esac
   14467 fi
   14468 PERLBIN=$ac_cv_path_PERLBIN
   14469 if test -n "$PERLBIN"; then
   14470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
   14471 printf "%s\n" "$PERLBIN" >&6; }
   14472 else
   14473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14474 printf "%s\n" "no" >&6; }
   14475 fi
   14476 
   14477 
   14478 
   14479 	if test "no$PERLBIN" = "no" ; then
   14480 		if test $ol_enable_perl = yes ; then
   14481 			as_fn_error $? "could not locate perl" "$LINENO" 5
   14482 		fi
   14483 
   14484 	else
   14485 		PERL_CPPFLAGS=""
   14486 		for opt in `$PERLBIN -MExtUtils::Embed -e ccopts`; do
   14487 			case "$opt" in
   14488 			"-flto=auto" | "-Wall" )
   14489 				continue;;
   14490 			esac
   14491 			PERL_CPPFLAGS="$PERL_CPPFLAGS $opt"
   14492 		done
   14493 		PERL_LDFLAGS=""
   14494 		for opt in `$PERLBIN -MExtUtils::Embed -e ldopts`; do
   14495 			case "$opt" in
   14496 			"-lc" )
   14497 				continue;;
   14498 			esac
   14499 			PERL_LDFLAGS="$PERL_LDFLAGS $opt"
   14500 		done
   14501 
   14502 		if test x"$ol_enable_perl" = "xyes" ; then
   14503 			SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
   14504 		else
   14505 			MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
   14506 		fi
   14507 				ol_link_perl=yes
   14508 	fi
   14509 fi
   14510 
   14511 ac_ext=c
   14512 ac_cpp='$CPP $CPPFLAGS'
   14513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   14517 printf %s "checking how to run the C preprocessor... " >&6; }
   14518 # On Suns, sometimes $CPP names a directory.
   14519 if test -n "$CPP" && test -d "$CPP"; then
   14520   CPP=
   14521 fi
   14522 if test -z "$CPP"; then
   14523   if test ${ac_cv_prog_CPP+y}
   14524 then :
   14525   printf %s "(cached) " >&6
   14526 else $as_nop
   14527       # Double quotes because $CC needs to be expanded
   14528     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   14529     do
   14530       ac_preproc_ok=false
   14531 for ac_c_preproc_warn_flag in '' yes
   14532 do
   14533   # Use a header file that comes with gcc, so configuring glibc
   14534   # with a fresh cross-compiler works.
   14535   # On the NeXT, cc -E runs the code through the compiler's parser,
   14536   # not just through cpp. "Syntax error" is here to catch this case.
   14537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14538 /* end confdefs.h.  */
   14539 #include <limits.h>
   14540 		     Syntax error
   14541 _ACEOF
   14542 if ac_fn_c_try_cpp "$LINENO"
   14543 then :
   14544 
   14545 else $as_nop
   14546   # Broken: fails on valid input.
   14547 continue
   14548 fi
   14549 rm -f conftest.err conftest.i conftest.$ac_ext
   14550 
   14551   # OK, works on sane cases.  Now check whether nonexistent headers
   14552   # can be detected and how.
   14553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14554 /* end confdefs.h.  */
   14555 #include <ac_nonexistent.h>
   14556 _ACEOF
   14557 if ac_fn_c_try_cpp "$LINENO"
   14558 then :
   14559   # Broken: success on invalid input.
   14560 continue
   14561 else $as_nop
   14562   # Passes both tests.
   14563 ac_preproc_ok=:
   14564 break
   14565 fi
   14566 rm -f conftest.err conftest.i conftest.$ac_ext
   14567 
   14568 done
   14569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   14570 rm -f conftest.i conftest.err conftest.$ac_ext
   14571 if $ac_preproc_ok
   14572 then :
   14573   break
   14574 fi
   14575 
   14576     done
   14577     ac_cv_prog_CPP=$CPP
   14578 
   14579 fi
   14580   CPP=$ac_cv_prog_CPP
   14581 else
   14582   ac_cv_prog_CPP=$CPP
   14583 fi
   14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   14585 printf "%s\n" "$CPP" >&6; }
   14586 ac_preproc_ok=false
   14587 for ac_c_preproc_warn_flag in '' yes
   14588 do
   14589   # Use a header file that comes with gcc, so configuring glibc
   14590   # with a fresh cross-compiler works.
   14591   # On the NeXT, cc -E runs the code through the compiler's parser,
   14592   # not just through cpp. "Syntax error" is here to catch this case.
   14593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14594 /* end confdefs.h.  */
   14595 #include <limits.h>
   14596 		     Syntax error
   14597 _ACEOF
   14598 if ac_fn_c_try_cpp "$LINENO"
   14599 then :
   14600 
   14601 else $as_nop
   14602   # Broken: fails on valid input.
   14603 continue
   14604 fi
   14605 rm -f conftest.err conftest.i conftest.$ac_ext
   14606 
   14607   # OK, works on sane cases.  Now check whether nonexistent headers
   14608   # can be detected and how.
   14609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14610 /* end confdefs.h.  */
   14611 #include <ac_nonexistent.h>
   14612 _ACEOF
   14613 if ac_fn_c_try_cpp "$LINENO"
   14614 then :
   14615   # Broken: success on invalid input.
   14616 continue
   14617 else $as_nop
   14618   # Passes both tests.
   14619 ac_preproc_ok=:
   14620 break
   14621 fi
   14622 rm -f conftest.err conftest.i conftest.$ac_ext
   14623 
   14624 done
   14625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   14626 rm -f conftest.i conftest.err conftest.$ac_ext
   14627 if $ac_preproc_ok
   14628 then :
   14629 
   14630 else $as_nop
   14631   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14632 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   14633 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   14634 See \`config.log' for more details" "$LINENO" 5; }
   14635 fi
   14636 
   14637 ac_ext=c
   14638 ac_cpp='$CPP $CPPFLAGS'
   14639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14642 
   14643 
   14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
   14645 printf %s "checking whether we are using MS Visual C++... " >&6; }
   14646 if test ${ol_cv_msvc+y}
   14647 then :
   14648   printf %s "(cached) " >&6
   14649 else $as_nop
   14650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14651 /* end confdefs.h.  */
   14652 
   14653 #ifndef _MSC_VER
   14654 #include <__FOO__/generate_error.h>
   14655 #endif
   14656 
   14657 _ACEOF
   14658 if ac_fn_c_try_cpp "$LINENO"
   14659 then :
   14660   ol_cv_msvc=yes
   14661 else $as_nop
   14662   ol_cv_msvc=no
   14663 fi
   14664 rm -f conftest.err conftest.i conftest.$ac_ext
   14665 fi
   14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
   14667 printf "%s\n" "$ol_cv_msvc" >&6; }
   14668 
   14669 case $host_os in
   14670   *mingw32* ) ac_cv_mingw32=yes ;;
   14671   *cygwin* ) ac_cv_cygwin=yes ;;
   14672   *interix* ) ac_cv_interix=yes ;;
   14673 esac
   14674 
   14675 if test -n "$ac_tool_prefix"; then
   14676   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   14677 set dummy ${ac_tool_prefix}windres; ac_word=$2
   14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14679 printf %s "checking for $ac_word... " >&6; }
   14680 if test ${ac_cv_prog_RC+y}
   14681 then :
   14682   printf %s "(cached) " >&6
   14683 else $as_nop
   14684   if test -n "$RC"; then
   14685   ac_cv_prog_RC="$RC" # Let the user override the test.
   14686 else
   14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14688 for as_dir in $PATH
   14689 do
   14690   IFS=$as_save_IFS
   14691   case $as_dir in #(((
   14692     '') as_dir=./ ;;
   14693     */) ;;
   14694     *) as_dir=$as_dir/ ;;
   14695   esac
   14696     for ac_exec_ext in '' $ac_executable_extensions; do
   14697   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   14698     ac_cv_prog_RC="${ac_tool_prefix}windres"
   14699     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   14700     break 2
   14701   fi
   14702 done
   14703   done
   14704 IFS=$as_save_IFS
   14705 
   14706 fi
   14707 fi
   14708 RC=$ac_cv_prog_RC
   14709 if test -n "$RC"; then
   14710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
   14711 printf "%s\n" "$RC" >&6; }
   14712 else
   14713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14714 printf "%s\n" "no" >&6; }
   14715 fi
   14716 
   14717 
   14718 fi
   14719 if test -z "$ac_cv_prog_RC"; then
   14720   ac_ct_RC=$RC
   14721   # Extract the first word of "windres", so it can be a program name with args.
   14722 set dummy windres; ac_word=$2
   14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14724 printf %s "checking for $ac_word... " >&6; }
   14725 if test ${ac_cv_prog_ac_ct_RC+y}
   14726 then :
   14727   printf %s "(cached) " >&6
   14728 else $as_nop
   14729   if test -n "$ac_ct_RC"; then
   14730   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
   14731 else
   14732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14733 for as_dir in $PATH
   14734 do
   14735   IFS=$as_save_IFS
   14736   case $as_dir in #(((
   14737     '') as_dir=./ ;;
   14738     */) ;;
   14739     *) as_dir=$as_dir/ ;;
   14740   esac
   14741     for ac_exec_ext in '' $ac_executable_extensions; do
   14742   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   14743     ac_cv_prog_ac_ct_RC="windres"
   14744     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   14745     break 2
   14746   fi
   14747 done
   14748   done
   14749 IFS=$as_save_IFS
   14750 
   14751 fi
   14752 fi
   14753 ac_ct_RC=$ac_cv_prog_ac_ct_RC
   14754 if test -n "$ac_ct_RC"; then
   14755   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
   14756 printf "%s\n" "$ac_ct_RC" >&6; }
   14757 else
   14758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14759 printf "%s\n" "no" >&6; }
   14760 fi
   14761 
   14762   if test "x$ac_ct_RC" = x; then
   14763     RC=""
   14764   else
   14765     case $cross_compiling:$ac_tool_warned in
   14766 yes:)
   14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14769 ac_tool_warned=yes ;;
   14770 esac
   14771     RC=$ac_ct_RC
   14772   fi
   14773 else
   14774   RC="$ac_cv_prog_RC"
   14775 fi
   14776 
   14777 
   14778 
   14779 
   14780 
   14781 printf "%s\n" "#define EXEEXT \"${EXEEXT}\"" >>confdefs.h
   14782 
   14783 
   14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
   14785 printf %s "checking for be_app in -lbe... " >&6; }
   14786 if test ${ac_cv_lib_be_be_app+y}
   14787 then :
   14788   printf %s "(cached) " >&6
   14789 else $as_nop
   14790   ac_check_lib_save_LIBS=$LIBS
   14791 LIBS="-lbe -lroot -lnet $LIBS"
   14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14793 /* end confdefs.h.  */
   14794 
   14795 /* Override any GCC internal prototype to avoid an error.
   14796    Use char because int might match the return type of a GCC
   14797    builtin and then its argument prototype would still apply.  */
   14798 char be_app ();
   14799 int
   14800 main (void)
   14801 {
   14802 return be_app ();
   14803   ;
   14804   return 0;
   14805 }
   14806 _ACEOF
   14807 if ac_fn_c_try_link "$LINENO"
   14808 then :
   14809   ac_cv_lib_be_be_app=yes
   14810 else $as_nop
   14811   ac_cv_lib_be_be_app=no
   14812 fi
   14813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14814     conftest$ac_exeext conftest.$ac_ext
   14815 LIBS=$ac_check_lib_save_LIBS
   14816 fi
   14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
   14818 printf "%s\n" "$ac_cv_lib_be_be_app" >&6; }
   14819 if test "x$ac_cv_lib_be_be_app" = xyes
   14820 then :
   14821   LIBS="$LIBS -lbe -lroot -lnet"
   14822 else $as_nop
   14823   :
   14824 fi
   14825 
   14826 
   14827 ac_ext=c
   14828 ac_cpp='$CPP $CPPFLAGS'
   14829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14832 if test -n "$ac_tool_prefix"; then
   14833   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   14834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14836 printf %s "checking for $ac_word... " >&6; }
   14837 if test ${ac_cv_prog_CC+y}
   14838 then :
   14839   printf %s "(cached) " >&6
   14840 else $as_nop
   14841   if test -n "$CC"; then
   14842   ac_cv_prog_CC="$CC" # Let the user override the test.
   14843 else
   14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14845 for as_dir in $PATH
   14846 do
   14847   IFS=$as_save_IFS
   14848   case $as_dir in #(((
   14849     '') as_dir=./ ;;
   14850     */) ;;
   14851     *) as_dir=$as_dir/ ;;
   14852   esac
   14853     for ac_exec_ext in '' $ac_executable_extensions; do
   14854   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   14855     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   14856     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   14857     break 2
   14858   fi
   14859 done
   14860   done
   14861 IFS=$as_save_IFS
   14862 
   14863 fi
   14864 fi
   14865 CC=$ac_cv_prog_CC
   14866 if test -n "$CC"; then
   14867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   14868 printf "%s\n" "$CC" >&6; }
   14869 else
   14870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14871 printf "%s\n" "no" >&6; }
   14872 fi
   14873 
   14874 
   14875 fi
   14876 if test -z "$ac_cv_prog_CC"; then
   14877   ac_ct_CC=$CC
   14878   # Extract the first word of "gcc", so it can be a program name with args.
   14879 set dummy gcc; ac_word=$2
   14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14881 printf %s "checking for $ac_word... " >&6; }
   14882 if test ${ac_cv_prog_ac_ct_CC+y}
   14883 then :
   14884   printf %s "(cached) " >&6
   14885 else $as_nop
   14886   if test -n "$ac_ct_CC"; then
   14887   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   14888 else
   14889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14890 for as_dir in $PATH
   14891 do
   14892   IFS=$as_save_IFS
   14893   case $as_dir in #(((
   14894     '') as_dir=./ ;;
   14895     */) ;;
   14896     *) as_dir=$as_dir/ ;;
   14897   esac
   14898     for ac_exec_ext in '' $ac_executable_extensions; do
   14899   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   14900     ac_cv_prog_ac_ct_CC="gcc"
   14901     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   14902     break 2
   14903   fi
   14904 done
   14905   done
   14906 IFS=$as_save_IFS
   14907 
   14908 fi
   14909 fi
   14910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   14911 if test -n "$ac_ct_CC"; then
   14912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   14913 printf "%s\n" "$ac_ct_CC" >&6; }
   14914 else
   14915   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14916 printf "%s\n" "no" >&6; }
   14917 fi
   14918 
   14919   if test "x$ac_ct_CC" = x; then
   14920     CC=""
   14921   else
   14922     case $cross_compiling:$ac_tool_warned in
   14923 yes:)
   14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14925 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14926 ac_tool_warned=yes ;;
   14927 esac
   14928     CC=$ac_ct_CC
   14929   fi
   14930 else
   14931   CC="$ac_cv_prog_CC"
   14932 fi
   14933 
   14934 if test -z "$CC"; then
   14935           if test -n "$ac_tool_prefix"; then
   14936     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   14937 set dummy ${ac_tool_prefix}cc; ac_word=$2
   14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14939 printf %s "checking for $ac_word... " >&6; }
   14940 if test ${ac_cv_prog_CC+y}
   14941 then :
   14942   printf %s "(cached) " >&6
   14943 else $as_nop
   14944   if test -n "$CC"; then
   14945   ac_cv_prog_CC="$CC" # Let the user override the test.
   14946 else
   14947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14948 for as_dir in $PATH
   14949 do
   14950   IFS=$as_save_IFS
   14951   case $as_dir in #(((
   14952     '') as_dir=./ ;;
   14953     */) ;;
   14954     *) as_dir=$as_dir/ ;;
   14955   esac
   14956     for ac_exec_ext in '' $ac_executable_extensions; do
   14957   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   14958     ac_cv_prog_CC="${ac_tool_prefix}cc"
   14959     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   14960     break 2
   14961   fi
   14962 done
   14963   done
   14964 IFS=$as_save_IFS
   14965 
   14966 fi
   14967 fi
   14968 CC=$ac_cv_prog_CC
   14969 if test -n "$CC"; then
   14970   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   14971 printf "%s\n" "$CC" >&6; }
   14972 else
   14973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14974 printf "%s\n" "no" >&6; }
   14975 fi
   14976 
   14977 
   14978   fi
   14979 fi
   14980 if test -z "$CC"; then
   14981   # Extract the first word of "cc", so it can be a program name with args.
   14982 set dummy cc; ac_word=$2
   14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14984 printf %s "checking for $ac_word... " >&6; }
   14985 if test ${ac_cv_prog_CC+y}
   14986 then :
   14987   printf %s "(cached) " >&6
   14988 else $as_nop
   14989   if test -n "$CC"; then
   14990   ac_cv_prog_CC="$CC" # Let the user override the test.
   14991 else
   14992   ac_prog_rejected=no
   14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14994 for as_dir in $PATH
   14995 do
   14996   IFS=$as_save_IFS
   14997   case $as_dir in #(((
   14998     '') as_dir=./ ;;
   14999     */) ;;
   15000     *) as_dir=$as_dir/ ;;
   15001   esac
   15002     for ac_exec_ext in '' $ac_executable_extensions; do
   15003   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   15004     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   15005        ac_prog_rejected=yes
   15006        continue
   15007      fi
   15008     ac_cv_prog_CC="cc"
   15009     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   15010     break 2
   15011   fi
   15012 done
   15013   done
   15014 IFS=$as_save_IFS
   15015 
   15016 if test $ac_prog_rejected = yes; then
   15017   # We found a bogon in the path, so make sure we never use it.
   15018   set dummy $ac_cv_prog_CC
   15019   shift
   15020   if test $# != 0; then
   15021     # We chose a different compiler from the bogus one.
   15022     # However, it has the same basename, so the bogon will be chosen
   15023     # first if we set CC to just the basename; use the full file name.
   15024     shift
   15025     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   15026   fi
   15027 fi
   15028 fi
   15029 fi
   15030 CC=$ac_cv_prog_CC
   15031 if test -n "$CC"; then
   15032   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   15033 printf "%s\n" "$CC" >&6; }
   15034 else
   15035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15036 printf "%s\n" "no" >&6; }
   15037 fi
   15038 
   15039 
   15040 fi
   15041 if test -z "$CC"; then
   15042   if test -n "$ac_tool_prefix"; then
   15043   for ac_prog in cl.exe
   15044   do
   15045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   15046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15048 printf %s "checking for $ac_word... " >&6; }
   15049 if test ${ac_cv_prog_CC+y}
   15050 then :
   15051   printf %s "(cached) " >&6
   15052 else $as_nop
   15053   if test -n "$CC"; then
   15054   ac_cv_prog_CC="$CC" # Let the user override the test.
   15055 else
   15056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15057 for as_dir in $PATH
   15058 do
   15059   IFS=$as_save_IFS
   15060   case $as_dir in #(((
   15061     '') as_dir=./ ;;
   15062     */) ;;
   15063     *) as_dir=$as_dir/ ;;
   15064   esac
   15065     for ac_exec_ext in '' $ac_executable_extensions; do
   15066   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   15067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   15068     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   15069     break 2
   15070   fi
   15071 done
   15072   done
   15073 IFS=$as_save_IFS
   15074 
   15075 fi
   15076 fi
   15077 CC=$ac_cv_prog_CC
   15078 if test -n "$CC"; then
   15079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   15080 printf "%s\n" "$CC" >&6; }
   15081 else
   15082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15083 printf "%s\n" "no" >&6; }
   15084 fi
   15085 
   15086 
   15087     test -n "$CC" && break
   15088   done
   15089 fi
   15090 if test -z "$CC"; then
   15091   ac_ct_CC=$CC
   15092   for ac_prog in cl.exe
   15093 do
   15094   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15095 set dummy $ac_prog; ac_word=$2
   15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15097 printf %s "checking for $ac_word... " >&6; }
   15098 if test ${ac_cv_prog_ac_ct_CC+y}
   15099 then :
   15100   printf %s "(cached) " >&6
   15101 else $as_nop
   15102   if test -n "$ac_ct_CC"; then
   15103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   15104 else
   15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15106 for as_dir in $PATH
   15107 do
   15108   IFS=$as_save_IFS
   15109   case $as_dir in #(((
   15110     '') as_dir=./ ;;
   15111     */) ;;
   15112     *) as_dir=$as_dir/ ;;
   15113   esac
   15114     for ac_exec_ext in '' $ac_executable_extensions; do
   15115   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   15116     ac_cv_prog_ac_ct_CC="$ac_prog"
   15117     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   15118     break 2
   15119   fi
   15120 done
   15121   done
   15122 IFS=$as_save_IFS
   15123 
   15124 fi
   15125 fi
   15126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   15127 if test -n "$ac_ct_CC"; then
   15128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   15129 printf "%s\n" "$ac_ct_CC" >&6; }
   15130 else
   15131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15132 printf "%s\n" "no" >&6; }
   15133 fi
   15134 
   15135 
   15136   test -n "$ac_ct_CC" && break
   15137 done
   15138 
   15139   if test "x$ac_ct_CC" = x; then
   15140     CC=""
   15141   else
   15142     case $cross_compiling:$ac_tool_warned in
   15143 yes:)
   15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15145 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15146 ac_tool_warned=yes ;;
   15147 esac
   15148     CC=$ac_ct_CC
   15149   fi
   15150 fi
   15151 
   15152 fi
   15153 if test -z "$CC"; then
   15154   if test -n "$ac_tool_prefix"; then
   15155   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   15156 set dummy ${ac_tool_prefix}clang; ac_word=$2
   15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15158 printf %s "checking for $ac_word... " >&6; }
   15159 if test ${ac_cv_prog_CC+y}
   15160 then :
   15161   printf %s "(cached) " >&6
   15162 else $as_nop
   15163   if test -n "$CC"; then
   15164   ac_cv_prog_CC="$CC" # Let the user override the test.
   15165 else
   15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15167 for as_dir in $PATH
   15168 do
   15169   IFS=$as_save_IFS
   15170   case $as_dir in #(((
   15171     '') as_dir=./ ;;
   15172     */) ;;
   15173     *) as_dir=$as_dir/ ;;
   15174   esac
   15175     for ac_exec_ext in '' $ac_executable_extensions; do
   15176   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   15177     ac_cv_prog_CC="${ac_tool_prefix}clang"
   15178     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   15179     break 2
   15180   fi
   15181 done
   15182   done
   15183 IFS=$as_save_IFS
   15184 
   15185 fi
   15186 fi
   15187 CC=$ac_cv_prog_CC
   15188 if test -n "$CC"; then
   15189   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   15190 printf "%s\n" "$CC" >&6; }
   15191 else
   15192   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15193 printf "%s\n" "no" >&6; }
   15194 fi
   15195 
   15196 
   15197 fi
   15198 if test -z "$ac_cv_prog_CC"; then
   15199   ac_ct_CC=$CC
   15200   # Extract the first word of "clang", so it can be a program name with args.
   15201 set dummy clang; ac_word=$2
   15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15203 printf %s "checking for $ac_word... " >&6; }
   15204 if test ${ac_cv_prog_ac_ct_CC+y}
   15205 then :
   15206   printf %s "(cached) " >&6
   15207 else $as_nop
   15208   if test -n "$ac_ct_CC"; then
   15209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   15210 else
   15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15212 for as_dir in $PATH
   15213 do
   15214   IFS=$as_save_IFS
   15215   case $as_dir in #(((
   15216     '') as_dir=./ ;;
   15217     */) ;;
   15218     *) as_dir=$as_dir/ ;;
   15219   esac
   15220     for ac_exec_ext in '' $ac_executable_extensions; do
   15221   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   15222     ac_cv_prog_ac_ct_CC="clang"
   15223     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   15224     break 2
   15225   fi
   15226 done
   15227   done
   15228 IFS=$as_save_IFS
   15229 
   15230 fi
   15231 fi
   15232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   15233 if test -n "$ac_ct_CC"; then
   15234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   15235 printf "%s\n" "$ac_ct_CC" >&6; }
   15236 else
   15237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15238 printf "%s\n" "no" >&6; }
   15239 fi
   15240 
   15241   if test "x$ac_ct_CC" = x; then
   15242     CC=""
   15243   else
   15244     case $cross_compiling:$ac_tool_warned in
   15245 yes:)
   15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15248 ac_tool_warned=yes ;;
   15249 esac
   15250     CC=$ac_ct_CC
   15251   fi
   15252 else
   15253   CC="$ac_cv_prog_CC"
   15254 fi
   15255 
   15256 fi
   15257 
   15258 
   15259 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15260 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   15261 as_fn_error $? "no acceptable C compiler found in \$PATH
   15262 See \`config.log' for more details" "$LINENO" 5; }
   15263 
   15264 # Provide some information about the compiler.
   15265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   15266 set X $ac_compile
   15267 ac_compiler=$2
   15268 for ac_option in --version -v -V -qversion -version; do
   15269   { { ac_try="$ac_compiler $ac_option >&5"
   15270 case "(($ac_try" in
   15271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15272   *) ac_try_echo=$ac_try;;
   15273 esac
   15274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   15275 printf "%s\n" "$ac_try_echo"; } >&5
   15276   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   15277   ac_status=$?
   15278   if test -s conftest.err; then
   15279     sed '10a\
   15280 ... rest of stderr output deleted ...
   15281          10q' conftest.err >conftest.er1
   15282     cat conftest.er1 >&5
   15283   fi
   15284   rm -f conftest.er1 conftest.err
   15285   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15286   test $ac_status = 0; }
   15287 done
   15288 
   15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   15290 printf %s "checking whether the compiler supports GNU C... " >&6; }
   15291 if test ${ac_cv_c_compiler_gnu+y}
   15292 then :
   15293   printf %s "(cached) " >&6
   15294 else $as_nop
   15295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15296 /* end confdefs.h.  */
   15297 
   15298 int
   15299 main (void)
   15300 {
   15301 #ifndef __GNUC__
   15302        choke me
   15303 #endif
   15304 
   15305   ;
   15306   return 0;
   15307 }
   15308 _ACEOF
   15309 if ac_fn_c_try_compile "$LINENO"
   15310 then :
   15311   ac_compiler_gnu=yes
   15312 else $as_nop
   15313   ac_compiler_gnu=no
   15314 fi
   15315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   15317 
   15318 fi
   15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   15320 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   15321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15322 
   15323 if test $ac_compiler_gnu = yes; then
   15324   GCC=yes
   15325 else
   15326   GCC=
   15327 fi
   15328 ac_test_CFLAGS=${CFLAGS+y}
   15329 ac_save_CFLAGS=$CFLAGS
   15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   15331 printf %s "checking whether $CC accepts -g... " >&6; }
   15332 if test ${ac_cv_prog_cc_g+y}
   15333 then :
   15334   printf %s "(cached) " >&6
   15335 else $as_nop
   15336   ac_save_c_werror_flag=$ac_c_werror_flag
   15337    ac_c_werror_flag=yes
   15338    ac_cv_prog_cc_g=no
   15339    CFLAGS="-g"
   15340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15341 /* end confdefs.h.  */
   15342 
   15343 int
   15344 main (void)
   15345 {
   15346 
   15347   ;
   15348   return 0;
   15349 }
   15350 _ACEOF
   15351 if ac_fn_c_try_compile "$LINENO"
   15352 then :
   15353   ac_cv_prog_cc_g=yes
   15354 else $as_nop
   15355   CFLAGS=""
   15356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15357 /* end confdefs.h.  */
   15358 
   15359 int
   15360 main (void)
   15361 {
   15362 
   15363   ;
   15364   return 0;
   15365 }
   15366 _ACEOF
   15367 if ac_fn_c_try_compile "$LINENO"
   15368 then :
   15369 
   15370 else $as_nop
   15371   ac_c_werror_flag=$ac_save_c_werror_flag
   15372 	 CFLAGS="-g"
   15373 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15374 /* end confdefs.h.  */
   15375 
   15376 int
   15377 main (void)
   15378 {
   15379 
   15380   ;
   15381   return 0;
   15382 }
   15383 _ACEOF
   15384 if ac_fn_c_try_compile "$LINENO"
   15385 then :
   15386   ac_cv_prog_cc_g=yes
   15387 fi
   15388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15389 fi
   15390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15391 fi
   15392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15393    ac_c_werror_flag=$ac_save_c_werror_flag
   15394 fi
   15395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   15396 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   15397 if test $ac_test_CFLAGS; then
   15398   CFLAGS=$ac_save_CFLAGS
   15399 elif test $ac_cv_prog_cc_g = yes; then
   15400   if test "$GCC" = yes; then
   15401     CFLAGS="-g -O2"
   15402   else
   15403     CFLAGS="-g"
   15404   fi
   15405 else
   15406   if test "$GCC" = yes; then
   15407     CFLAGS="-O2"
   15408   else
   15409     CFLAGS=
   15410   fi
   15411 fi
   15412 ac_prog_cc_stdc=no
   15413 if test x$ac_prog_cc_stdc = xno
   15414 then :
   15415   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   15416 printf %s "checking for $CC option to enable C11 features... " >&6; }
   15417 if test ${ac_cv_prog_cc_c11+y}
   15418 then :
   15419   printf %s "(cached) " >&6
   15420 else $as_nop
   15421   ac_cv_prog_cc_c11=no
   15422 ac_save_CC=$CC
   15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15424 /* end confdefs.h.  */
   15425 $ac_c_conftest_c11_program
   15426 _ACEOF
   15427 for ac_arg in '' -std=gnu11
   15428 do
   15429   CC="$ac_save_CC $ac_arg"
   15430   if ac_fn_c_try_compile "$LINENO"
   15431 then :
   15432   ac_cv_prog_cc_c11=$ac_arg
   15433 fi
   15434 rm -f core conftest.err conftest.$ac_objext conftest.beam
   15435   test "x$ac_cv_prog_cc_c11" != "xno" && break
   15436 done
   15437 rm -f conftest.$ac_ext
   15438 CC=$ac_save_CC
   15439 fi
   15440 
   15441 if test "x$ac_cv_prog_cc_c11" = xno
   15442 then :
   15443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   15444 printf "%s\n" "unsupported" >&6; }
   15445 else $as_nop
   15446   if test "x$ac_cv_prog_cc_c11" = x
   15447 then :
   15448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   15449 printf "%s\n" "none needed" >&6; }
   15450 else $as_nop
   15451   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   15452 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   15453      CC="$CC $ac_cv_prog_cc_c11"
   15454 fi
   15455   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   15456   ac_prog_cc_stdc=c11
   15457 fi
   15458 fi
   15459 if test x$ac_prog_cc_stdc = xno
   15460 then :
   15461   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   15462 printf %s "checking for $CC option to enable C99 features... " >&6; }
   15463 if test ${ac_cv_prog_cc_c99+y}
   15464 then :
   15465   printf %s "(cached) " >&6
   15466 else $as_nop
   15467   ac_cv_prog_cc_c99=no
   15468 ac_save_CC=$CC
   15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15470 /* end confdefs.h.  */
   15471 $ac_c_conftest_c99_program
   15472 _ACEOF
   15473 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   15474 do
   15475   CC="$ac_save_CC $ac_arg"
   15476   if ac_fn_c_try_compile "$LINENO"
   15477 then :
   15478   ac_cv_prog_cc_c99=$ac_arg
   15479 fi
   15480 rm -f core conftest.err conftest.$ac_objext conftest.beam
   15481   test "x$ac_cv_prog_cc_c99" != "xno" && break
   15482 done
   15483 rm -f conftest.$ac_ext
   15484 CC=$ac_save_CC
   15485 fi
   15486 
   15487 if test "x$ac_cv_prog_cc_c99" = xno
   15488 then :
   15489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   15490 printf "%s\n" "unsupported" >&6; }
   15491 else $as_nop
   15492   if test "x$ac_cv_prog_cc_c99" = x
   15493 then :
   15494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   15495 printf "%s\n" "none needed" >&6; }
   15496 else $as_nop
   15497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   15498 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   15499      CC="$CC $ac_cv_prog_cc_c99"
   15500 fi
   15501   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   15502   ac_prog_cc_stdc=c99
   15503 fi
   15504 fi
   15505 if test x$ac_prog_cc_stdc = xno
   15506 then :
   15507   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   15508 printf %s "checking for $CC option to enable C89 features... " >&6; }
   15509 if test ${ac_cv_prog_cc_c89+y}
   15510 then :
   15511   printf %s "(cached) " >&6
   15512 else $as_nop
   15513   ac_cv_prog_cc_c89=no
   15514 ac_save_CC=$CC
   15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15516 /* end confdefs.h.  */
   15517 $ac_c_conftest_c89_program
   15518 _ACEOF
   15519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   15520 do
   15521   CC="$ac_save_CC $ac_arg"
   15522   if ac_fn_c_try_compile "$LINENO"
   15523 then :
   15524   ac_cv_prog_cc_c89=$ac_arg
   15525 fi
   15526 rm -f core conftest.err conftest.$ac_objext conftest.beam
   15527   test "x$ac_cv_prog_cc_c89" != "xno" && break
   15528 done
   15529 rm -f conftest.$ac_ext
   15530 CC=$ac_save_CC
   15531 fi
   15532 
   15533 if test "x$ac_cv_prog_cc_c89" = xno
   15534 then :
   15535   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   15536 printf "%s\n" "unsupported" >&6; }
   15537 else $as_nop
   15538   if test "x$ac_cv_prog_cc_c89" = x
   15539 then :
   15540   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   15541 printf "%s\n" "none needed" >&6; }
   15542 else $as_nop
   15543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   15544 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   15545      CC="$CC $ac_cv_prog_cc_c89"
   15546 fi
   15547   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   15548   ac_prog_cc_stdc=c89
   15549 fi
   15550 fi
   15551 
   15552 ac_ext=c
   15553 ac_cpp='$CPP $CPPFLAGS'
   15554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15557 
   15558 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
   15559 	as_fn_error $? "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
   15560 fi
   15561 
   15562 # test for make depend flag
   15563 OL_MKDEP=
   15564 OL_MKDEP_FLAGS=
   15565 if test -z "${MKDEP}"; then
   15566 	OL_MKDEP="${CC-cc}"
   15567 	if test -z "${MKDEP_FLAGS}"; then
   15568 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
   15569 printf %s "checking for ${OL_MKDEP} depend flag... " >&6; }
   15570 if test ${ol_cv_mkdep+y}
   15571 then :
   15572   printf %s "(cached) " >&6
   15573 else $as_nop
   15574 
   15575 			ol_cv_mkdep=no
   15576 			for flag in "-M" "-xM"; do
   15577 				cat > conftest.c <<EOF
   15578  noCode;
   15579 EOF
   15580 				if { ac_try='$OL_MKDEP $flag conftest.c'
   15581   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   15582   (eval $ac_try) 2>&5
   15583   ac_status=$?
   15584   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15585   test $ac_status = 0; }; } \
   15586 					| grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
   15587 				then
   15588 					if test ! -f conftest."${ac_object}" ; then
   15589 						ol_cv_mkdep=$flag
   15590 						OL_MKDEP_FLAGS="$flag"
   15591 						break
   15592 					fi
   15593 				fi
   15594 			done
   15595 			rm -f conftest*
   15596 
   15597 fi
   15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
   15599 printf "%s\n" "$ol_cv_mkdep" >&6; }
   15600 		test "$ol_cv_mkdep" = no && OL_MKDEP=":"
   15601 	else
   15602 		cc_cv_mkdep=yes
   15603 		OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
   15604 	fi
   15605 else
   15606 	cc_cv_mkdep=yes
   15607 	OL_MKDEP="${MKDEP}"
   15608 	OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
   15609 fi
   15610 
   15611 
   15612 
   15613 if test "${ol_cv_mkdep}" = no ; then
   15614 	# this will soon become an error
   15615 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
   15616 printf "%s\n" "$as_me: WARNING: do not know how to generate dependencies" >&2;}
   15617 fi
   15618 
   15619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
   15620 printf %s "checking for afopen in -ls... " >&6; }
   15621 if test ${ac_cv_lib_s_afopen+y}
   15622 then :
   15623   printf %s "(cached) " >&6
   15624 else $as_nop
   15625   ac_check_lib_save_LIBS=$LIBS
   15626 LIBS="-ls  $LIBS"
   15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15628 /* end confdefs.h.  */
   15629 
   15630 /* Override any GCC internal prototype to avoid an error.
   15631    Use char because int might match the return type of a GCC
   15632    builtin and then its argument prototype would still apply.  */
   15633 char afopen ();
   15634 int
   15635 main (void)
   15636 {
   15637 return afopen ();
   15638   ;
   15639   return 0;
   15640 }
   15641 _ACEOF
   15642 if ac_fn_c_try_link "$LINENO"
   15643 then :
   15644   ac_cv_lib_s_afopen=yes
   15645 else $as_nop
   15646   ac_cv_lib_s_afopen=no
   15647 fi
   15648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15649     conftest$ac_exeext conftest.$ac_ext
   15650 LIBS=$ac_check_lib_save_LIBS
   15651 fi
   15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
   15653 printf "%s\n" "$ac_cv_lib_s_afopen" >&6; }
   15654 if test "x$ac_cv_lib_s_afopen" = xyes
   15655 then :
   15656 
   15657 	AUTH_LIBS=-ls
   15658 
   15659 printf "%s\n" "#define HAVE_AIX_SECURITY 1" >>confdefs.h
   15660 
   15661 
   15662 fi
   15663 
   15664 
   15665 case "$target" in
   15666 *-ibm-openedition)
   15667 	ac_cv_func_getopt=no
   15668 
   15669 printf "%s\n" "#define BOTH_STRINGS_H 1" >>confdefs.h
   15670 
   15671 	;;
   15672 esac
   15673 
   15674 ol_link_modules=no
   15675 WITH_MODULES_ENABLED=no
   15676 if test $ol_enable_modules != no ; then
   15677 	ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
   15678 if test "x$ac_cv_header_ltdl_h" = xyes
   15679 then :
   15680   printf "%s\n" "#define HAVE_LTDL_H 1" >>confdefs.h
   15681 
   15682 fi
   15683 
   15684 
   15685 	if test $ac_cv_header_ltdl_h = no ; then
   15686 		as_fn_error $? "could not locate libtool ltdl.h" "$LINENO" 5
   15687 	fi
   15688 
   15689 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
   15690 printf %s "checking for lt_dlinit in -lltdl... " >&6; }
   15691 if test ${ac_cv_lib_ltdl_lt_dlinit+y}
   15692 then :
   15693   printf %s "(cached) " >&6
   15694 else $as_nop
   15695   ac_check_lib_save_LIBS=$LIBS
   15696 LIBS="-lltdl  $LIBS"
   15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15698 /* end confdefs.h.  */
   15699 
   15700 /* Override any GCC internal prototype to avoid an error.
   15701    Use char because int might match the return type of a GCC
   15702    builtin and then its argument prototype would still apply.  */
   15703 char lt_dlinit ();
   15704 int
   15705 main (void)
   15706 {
   15707 return lt_dlinit ();
   15708   ;
   15709   return 0;
   15710 }
   15711 _ACEOF
   15712 if ac_fn_c_try_link "$LINENO"
   15713 then :
   15714   ac_cv_lib_ltdl_lt_dlinit=yes
   15715 else $as_nop
   15716   ac_cv_lib_ltdl_lt_dlinit=no
   15717 fi
   15718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15719     conftest$ac_exeext conftest.$ac_ext
   15720 LIBS=$ac_check_lib_save_LIBS
   15721 fi
   15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
   15723 printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
   15724 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes
   15725 then :
   15726 
   15727 		MODULES_LIBS=-lltdl
   15728 
   15729 printf "%s\n" "#define HAVE_LIBLTDL 1" >>confdefs.h
   15730 
   15731 
   15732 fi
   15733 
   15734 
   15735 	if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
   15736 		as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
   15737 	fi
   15738 	ol_link_modules=yes
   15739 	WITH_MODULES_ENABLED=yes
   15740 fi
   15741 
   15742 # test for EBCDIC
   15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
   15744 printf %s "checking for EBCDIC... " >&6; }
   15745 if test ${ol_cv_cpp_ebcdic+y}
   15746 then :
   15747   printf %s "(cached) " >&6
   15748 else $as_nop
   15749 
   15750 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15751 /* end confdefs.h.  */
   15752 
   15753 #if !('M' == 0xd4)
   15754 #include <__ASCII__/generate_error.h>
   15755 #endif
   15756 
   15757 _ACEOF
   15758 if ac_fn_c_try_cpp "$LINENO"
   15759 then :
   15760   ol_cv_cpp_ebcdic=yes
   15761 else $as_nop
   15762   ol_cv_cpp_ebcdic=no
   15763 fi
   15764 rm -f conftest.err conftest.i conftest.$ac_ext
   15765 fi
   15766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
   15767 printf "%s\n" "$ol_cv_cpp_ebcdic" >&6; }
   15768 if test $ol_cv_cpp_ebcdic = yes ; then
   15769 
   15770 printf "%s\n" "#define HAVE_EBCDIC 1" >>confdefs.h
   15771 
   15772 fi
   15773 
   15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   15775 printf %s "checking for ANSI C header files... " >&6; }
   15776 if test ${ol_cv_header_stdc+y}
   15777 then :
   15778   printf %s "(cached) " >&6
   15779 else $as_nop
   15780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15781 /* end confdefs.h.  */
   15782 #include <stdlib.h>
   15783 #include <stdarg.h>
   15784 #include <string.h>
   15785 #include <float.h>
   15786 _ACEOF
   15787 if ac_fn_c_try_cpp "$LINENO"
   15788 then :
   15789   ol_cv_header_stdc=yes
   15790 else $as_nop
   15791   ol_cv_header_stdc=no
   15792 fi
   15793 rm -f conftest.err conftest.i conftest.$ac_ext
   15794 
   15795 if test $ol_cv_header_stdc = yes; then
   15796   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15798 /* end confdefs.h.  */
   15799 #include <string.h>
   15800 
   15801 _ACEOF
   15802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15803   $EGREP "memchr" >/dev/null 2>&1
   15804 then :
   15805 
   15806 else $as_nop
   15807   ol_cv_header_stdc=no
   15808 fi
   15809 rm -rf conftest*
   15810 
   15811 fi
   15812 
   15813 if test $ol_cv_header_stdc = yes; then
   15814   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15816 /* end confdefs.h.  */
   15817 #include <stdlib.h>
   15818 
   15819 _ACEOF
   15820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15821   $EGREP "free" >/dev/null 2>&1
   15822 then :
   15823 
   15824 else $as_nop
   15825   ol_cv_header_stdc=no
   15826 fi
   15827 rm -rf conftest*
   15828 
   15829 fi
   15830 
   15831 if test $ol_cv_header_stdc = yes; then
   15832   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   15833 if test "$cross_compiling" = yes
   15834 then :
   15835   :
   15836 else $as_nop
   15837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15838 /* end confdefs.h.  */
   15839 #include <ctype.h>
   15840 #include <stdlib.h>
   15841 #ifndef HAVE_EBCDIC
   15842 #	define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   15843 #	define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   15844 #else
   15845 #	define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   15846 		|| ('j' <= (c) && (c) <= 'r') \
   15847 		|| ('s' <= (c) && (c) <= 'z'))
   15848 #	define TOUPPER(c)	(ISLOWER(c) ? ((c) | 0x40) : (c))
   15849 #endif
   15850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   15851 int main () { int i; for (i = 0; i < 256; i++)
   15852 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
   15853 exit (0); }
   15854 
   15855 _ACEOF
   15856 if ac_fn_c_try_run "$LINENO"
   15857 then :
   15858 
   15859 else $as_nop
   15860   ol_cv_header_stdc=no
   15861 fi
   15862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15863   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15864 fi
   15865 
   15866 fi
   15867 fi
   15868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
   15869 printf "%s\n" "$ol_cv_header_stdc" >&6; }
   15870 if test $ol_cv_header_stdc = yes; then
   15871   printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   15872 
   15873 fi
   15874 ac_cv_header_stdc=disable
   15875 
   15876 
   15877 if test $ol_cv_header_stdc != yes; then
   15878 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
   15879 printf "%s\n" "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
   15880 fi
   15881 
   15882 ac_header_dirent=no
   15883 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   15884   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
   15886 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
   15887 if eval test \${$as_ac_Header+y}
   15888 then :
   15889   printf %s "(cached) " >&6
   15890 else $as_nop
   15891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15892 /* end confdefs.h.  */
   15893 #include <sys/types.h>
   15894 #include <$ac_hdr>
   15895 
   15896 int
   15897 main (void)
   15898 {
   15899 if ((DIR *) 0)
   15900 return 0;
   15901   ;
   15902   return 0;
   15903 }
   15904 _ACEOF
   15905 if ac_fn_c_try_compile "$LINENO"
   15906 then :
   15907   eval "$as_ac_Header=yes"
   15908 else $as_nop
   15909   eval "$as_ac_Header=no"
   15910 fi
   15911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15912 fi
   15913 eval ac_res=\$$as_ac_Header
   15914 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15915 printf "%s\n" "$ac_res" >&6; }
   15916 if eval test \"x\$"$as_ac_Header"\" = x"yes"
   15917 then :
   15918   cat >>confdefs.h <<_ACEOF
   15919 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
   15920 _ACEOF
   15921 
   15922 ac_header_dirent=$ac_hdr; break
   15923 fi
   15924 
   15925 done
   15926 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   15927 if test $ac_header_dirent = dirent.h; then
   15928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   15929 printf %s "checking for library containing opendir... " >&6; }
   15930 if test ${ac_cv_search_opendir+y}
   15931 then :
   15932   printf %s "(cached) " >&6
   15933 else $as_nop
   15934   ac_func_search_save_LIBS=$LIBS
   15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15936 /* end confdefs.h.  */
   15937 
   15938 /* Override any GCC internal prototype to avoid an error.
   15939    Use char because int might match the return type of a GCC
   15940    builtin and then its argument prototype would still apply.  */
   15941 char opendir ();
   15942 int
   15943 main (void)
   15944 {
   15945 return opendir ();
   15946   ;
   15947   return 0;
   15948 }
   15949 _ACEOF
   15950 for ac_lib in '' dir
   15951 do
   15952   if test -z "$ac_lib"; then
   15953     ac_res="none required"
   15954   else
   15955     ac_res=-l$ac_lib
   15956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15957   fi
   15958   if ac_fn_c_try_link "$LINENO"
   15959 then :
   15960   ac_cv_search_opendir=$ac_res
   15961 fi
   15962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15963     conftest$ac_exeext
   15964   if test ${ac_cv_search_opendir+y}
   15965 then :
   15966   break
   15967 fi
   15968 done
   15969 if test ${ac_cv_search_opendir+y}
   15970 then :
   15971 
   15972 else $as_nop
   15973   ac_cv_search_opendir=no
   15974 fi
   15975 rm conftest.$ac_ext
   15976 LIBS=$ac_func_search_save_LIBS
   15977 fi
   15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   15979 printf "%s\n" "$ac_cv_search_opendir" >&6; }
   15980 ac_res=$ac_cv_search_opendir
   15981 if test "$ac_res" != no
   15982 then :
   15983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15984 
   15985 fi
   15986 
   15987 else
   15988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   15989 printf %s "checking for library containing opendir... " >&6; }
   15990 if test ${ac_cv_search_opendir+y}
   15991 then :
   15992   printf %s "(cached) " >&6
   15993 else $as_nop
   15994   ac_func_search_save_LIBS=$LIBS
   15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15996 /* end confdefs.h.  */
   15997 
   15998 /* Override any GCC internal prototype to avoid an error.
   15999    Use char because int might match the return type of a GCC
   16000    builtin and then its argument prototype would still apply.  */
   16001 char opendir ();
   16002 int
   16003 main (void)
   16004 {
   16005 return opendir ();
   16006   ;
   16007   return 0;
   16008 }
   16009 _ACEOF
   16010 for ac_lib in '' x
   16011 do
   16012   if test -z "$ac_lib"; then
   16013     ac_res="none required"
   16014   else
   16015     ac_res=-l$ac_lib
   16016     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16017   fi
   16018   if ac_fn_c_try_link "$LINENO"
   16019 then :
   16020   ac_cv_search_opendir=$ac_res
   16021 fi
   16022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16023     conftest$ac_exeext
   16024   if test ${ac_cv_search_opendir+y}
   16025 then :
   16026   break
   16027 fi
   16028 done
   16029 if test ${ac_cv_search_opendir+y}
   16030 then :
   16031 
   16032 else $as_nop
   16033   ac_cv_search_opendir=no
   16034 fi
   16035 rm conftest.$ac_ext
   16036 LIBS=$ac_func_search_save_LIBS
   16037 fi
   16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   16039 printf "%s\n" "$ac_cv_search_opendir" >&6; }
   16040 ac_res=$ac_cv_search_opendir
   16041 if test "$ac_res" != no
   16042 then :
   16043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16044 
   16045 fi
   16046 
   16047 fi
   16048 
   16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
   16050 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
   16051 if test ${ac_cv_header_sys_wait_h+y}
   16052 then :
   16053   printf %s "(cached) " >&6
   16054 else $as_nop
   16055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16056 /* end confdefs.h.  */
   16057 #include <sys/types.h>
   16058 #include <sys/wait.h>
   16059 #ifndef WEXITSTATUS
   16060 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   16061 #endif
   16062 #ifndef WIFEXITED
   16063 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   16064 #endif
   16065 
   16066 int
   16067 main (void)
   16068 {
   16069   int s;
   16070   wait (&s);
   16071   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   16072   ;
   16073   return 0;
   16074 }
   16075 _ACEOF
   16076 if ac_fn_c_try_compile "$LINENO"
   16077 then :
   16078   ac_cv_header_sys_wait_h=yes
   16079 else $as_nop
   16080   ac_cv_header_sys_wait_h=no
   16081 fi
   16082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16083 fi
   16084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
   16085 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
   16086 if test $ac_cv_header_sys_wait_h = yes; then
   16087 
   16088 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   16089 
   16090 fi
   16091 
   16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
   16093 printf %s "checking whether termios.h defines TIOCGWINSZ... " >&6; }
   16094 if test ${ac_cv_sys_tiocgwinsz_in_termios_h+y}
   16095 then :
   16096   printf %s "(cached) " >&6
   16097 else $as_nop
   16098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16099 /* end confdefs.h.  */
   16100 #include <sys/types.h>
   16101 #include <termios.h>
   16102 #ifdef TIOCGWINSZ
   16103   yes
   16104 #endif
   16105 
   16106 _ACEOF
   16107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16108   $EGREP "yes" >/dev/null 2>&1
   16109 then :
   16110   ac_cv_sys_tiocgwinsz_in_termios_h=yes
   16111 else $as_nop
   16112   ac_cv_sys_tiocgwinsz_in_termios_h=no
   16113 fi
   16114 rm -rf conftest*
   16115 
   16116 fi
   16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
   16118 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
   16119 
   16120 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
   16121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
   16122 printf %s "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
   16123 if test ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+y}
   16124 then :
   16125   printf %s "(cached) " >&6
   16126 else $as_nop
   16127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16128 /* end confdefs.h.  */
   16129 #include <sys/types.h>
   16130 #include <sys/ioctl.h>
   16131 #ifdef TIOCGWINSZ
   16132   yes
   16133 #endif
   16134 
   16135 _ACEOF
   16136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16137   $EGREP "yes" >/dev/null 2>&1
   16138 then :
   16139   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
   16140 else $as_nop
   16141   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
   16142 fi
   16143 rm -rf conftest*
   16144 
   16145 fi
   16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
   16147 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
   16148 
   16149   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
   16150 
   16151 printf "%s\n" "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
   16152 
   16153   fi
   16154 fi
   16155 
   16156 
   16157 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
   16158 if test "x$ac_cv_header_arpa_inet_h" = xyes
   16159 then :
   16160   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
   16161 
   16162 fi
   16163 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
   16164 if test "x$ac_cv_header_arpa_nameser_h" = xyes
   16165 then :
   16166   printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
   16167 
   16168 fi
   16169 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
   16170 if test "x$ac_cv_header_assert_h" = xyes
   16171 then :
   16172   printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
   16173 
   16174 fi
   16175 ac_fn_c_check_header_compile "$LINENO" "bits/types.h" "ac_cv_header_bits_types_h" "$ac_includes_default"
   16176 if test "x$ac_cv_header_bits_types_h" = xyes
   16177 then :
   16178   printf "%s\n" "#define HAVE_BITS_TYPES_H 1" >>confdefs.h
   16179 
   16180 fi
   16181 ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
   16182 if test "x$ac_cv_header_conio_h" = xyes
   16183 then :
   16184   printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
   16185 
   16186 fi
   16187 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
   16188 if test "x$ac_cv_header_crypt_h" = xyes
   16189 then :
   16190   printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
   16191 
   16192 fi
   16193 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
   16194 if test "x$ac_cv_header_direct_h" = xyes
   16195 then :
   16196   printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
   16197 
   16198 fi
   16199 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
   16200 if test "x$ac_cv_header_errno_h" = xyes
   16201 then :
   16202   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
   16203 
   16204 fi
   16205 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
   16206 if test "x$ac_cv_header_fcntl_h" = xyes
   16207 then :
   16208   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
   16209 
   16210 fi
   16211 ac_fn_c_check_header_compile "$LINENO" "filio.h" "ac_cv_header_filio_h" "$ac_includes_default"
   16212 if test "x$ac_cv_header_filio_h" = xyes
   16213 then :
   16214   printf "%s\n" "#define HAVE_FILIO_H 1" >>confdefs.h
   16215 
   16216 fi
   16217 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
   16218 if test "x$ac_cv_header_getopt_h" = xyes
   16219 then :
   16220   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
   16221 
   16222 fi
   16223 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
   16224 if test "x$ac_cv_header_grp_h" = xyes
   16225 then :
   16226   printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
   16227 
   16228 fi
   16229 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
   16230 if test "x$ac_cv_header_io_h" = xyes
   16231 then :
   16232   printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
   16233 
   16234 fi
   16235 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
   16236 if test "x$ac_cv_header_libutil_h" = xyes
   16237 then :
   16238   printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
   16239 
   16240 fi
   16241 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
   16242 if test "x$ac_cv_header_limits_h" = xyes
   16243 then :
   16244   printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
   16245 
   16246 fi
   16247 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   16248 if test "x$ac_cv_header_locale_h" = xyes
   16249 then :
   16250   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
   16251 
   16252 fi
   16253 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
   16254 if test "x$ac_cv_header_malloc_h" = xyes
   16255 then :
   16256   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
   16257 
   16258 fi
   16259 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
   16260 if test "x$ac_cv_header_memory_h" = xyes
   16261 then :
   16262   printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
   16263 
   16264 fi
   16265 ac_fn_c_check_header_compile "$LINENO" "psap.h" "ac_cv_header_psap_h" "$ac_includes_default"
   16266 if test "x$ac_cv_header_psap_h" = xyes
   16267 then :
   16268   printf "%s\n" "#define HAVE_PSAP_H 1" >>confdefs.h
   16269 
   16270 fi
   16271 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
   16272 if test "x$ac_cv_header_pwd_h" = xyes
   16273 then :
   16274   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
   16275 
   16276 fi
   16277 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
   16278 if test "x$ac_cv_header_process_h" = xyes
   16279 then :
   16280   printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
   16281 
   16282 fi
   16283 ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
   16284 if test "x$ac_cv_header_sgtty_h" = xyes
   16285 then :
   16286   printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h
   16287 
   16288 fi
   16289 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
   16290 if test "x$ac_cv_header_shadow_h" = xyes
   16291 then :
   16292   printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
   16293 
   16294 fi
   16295 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
   16296 if test "x$ac_cv_header_stddef_h" = xyes
   16297 then :
   16298   printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
   16299 
   16300 fi
   16301 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
   16302 if test "x$ac_cv_header_string_h" = xyes
   16303 then :
   16304   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
   16305 
   16306 fi
   16307 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
   16308 if test "x$ac_cv_header_strings_h" = xyes
   16309 then :
   16310   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
   16311 
   16312 fi
   16313 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
   16314 if test "x$ac_cv_header_sysexits_h" = xyes
   16315 then :
   16316   printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
   16317 
   16318 fi
   16319 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
   16320 if test "x$ac_cv_header_sys_file_h" = xyes
   16321 then :
   16322   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
   16323 
   16324 fi
   16325 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
   16326 if test "x$ac_cv_header_sys_filio_h" = xyes
   16327 then :
   16328   printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
   16329 
   16330 fi
   16331 ac_fn_c_check_header_compile "$LINENO" "sys/fstyp.h" "ac_cv_header_sys_fstyp_h" "$ac_includes_default"
   16332 if test "x$ac_cv_header_sys_fstyp_h" = xyes
   16333 then :
   16334   printf "%s\n" "#define HAVE_SYS_FSTYP_H 1" >>confdefs.h
   16335 
   16336 fi
   16337 ac_fn_c_check_header_compile "$LINENO" "sys/errno.h" "ac_cv_header_sys_errno_h" "$ac_includes_default"
   16338 if test "x$ac_cv_header_sys_errno_h" = xyes
   16339 then :
   16340   printf "%s\n" "#define HAVE_SYS_ERRNO_H 1" >>confdefs.h
   16341 
   16342 fi
   16343 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
   16344 if test "x$ac_cv_header_sys_ioctl_h" = xyes
   16345 then :
   16346   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
   16347 
   16348 fi
   16349 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
   16350 if test "x$ac_cv_header_sys_param_h" = xyes
   16351 then :
   16352   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
   16353 
   16354 fi
   16355 ac_fn_c_check_header_compile "$LINENO" "sys/privgrp.h" "ac_cv_header_sys_privgrp_h" "$ac_includes_default"
   16356 if test "x$ac_cv_header_sys_privgrp_h" = xyes
   16357 then :
   16358   printf "%s\n" "#define HAVE_SYS_PRIVGRP_H 1" >>confdefs.h
   16359 
   16360 fi
   16361 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
   16362 if test "x$ac_cv_header_sys_resource_h" = xyes
   16363 then :
   16364   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
   16365 
   16366 fi
   16367 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
   16368 if test "x$ac_cv_header_sys_select_h" = xyes
   16369 then :
   16370   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
   16371 
   16372 fi
   16373 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
   16374 if test "x$ac_cv_header_sys_socket_h" = xyes
   16375 then :
   16376   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
   16377 
   16378 fi
   16379 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
   16380 if test "x$ac_cv_header_sys_stat_h" = xyes
   16381 then :
   16382   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
   16383 
   16384 fi
   16385 ac_fn_c_check_header_compile "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
   16386 if test "x$ac_cv_header_sys_syslog_h" = xyes
   16387 then :
   16388   printf "%s\n" "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
   16389 
   16390 fi
   16391 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
   16392 if test "x$ac_cv_header_sys_time_h" = xyes
   16393 then :
   16394   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
   16395 
   16396 fi
   16397 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
   16398 if test "x$ac_cv_header_sys_types_h" = xyes
   16399 then :
   16400   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
   16401 
   16402 fi
   16403 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
   16404 if test "x$ac_cv_header_sys_uio_h" = xyes
   16405 then :
   16406   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
   16407 
   16408 fi
   16409 ac_fn_c_check_header_compile "$LINENO" "sys/vmount.h" "ac_cv_header_sys_vmount_h" "$ac_includes_default"
   16410 if test "x$ac_cv_header_sys_vmount_h" = xyes
   16411 then :
   16412   printf "%s\n" "#define HAVE_SYS_VMOUNT_H 1" >>confdefs.h
   16413 
   16414 fi
   16415 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
   16416 if test "x$ac_cv_header_syslog_h" = xyes
   16417 then :
   16418   printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
   16419 
   16420 fi
   16421 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
   16422 if test "x$ac_cv_header_termios_h" = xyes
   16423 then :
   16424   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
   16425 
   16426 fi
   16427 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
   16428 if test "x$ac_cv_header_unistd_h" = xyes
   16429 then :
   16430   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
   16431 
   16432 fi
   16433 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
   16434 if test "x$ac_cv_header_utime_h" = xyes
   16435 then :
   16436   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
   16437 
   16438 fi
   16439 
   16440 
   16441 if test "$ac_cv_mingw32" = yes \
   16442 	-o "$ac_cv_interix" = yes \
   16443 	-o "$ol_cv_msvc" = yes
   16444 then
   16445 	ac_fn_c_check_header_compile "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
   16446 if test "x$ac_cv_header_winsock_h" = xyes
   16447 then :
   16448   printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
   16449 
   16450 fi
   16451 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   16452 if test "x$ac_cv_header_winsock2_h" = xyes
   16453 then :
   16454   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
   16455 
   16456 fi
   16457 
   16458 fi
   16459 
   16460 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
   16461 #include <netinet/in.h>
   16462 
   16463 "
   16464 if test "x$ac_cv_header_resolv_h" = xyes
   16465 then :
   16466   printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
   16467 
   16468 fi
   16469 
   16470 
   16471 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
   16472 #include <netinet/in.h>
   16473 
   16474 "
   16475 if test "x$ac_cv_header_netinet_tcp_h" = xyes
   16476 then :
   16477   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
   16478 
   16479 fi
   16480 
   16481 
   16482 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
   16483 #ifdef HAVE_SYS_PARAM_H
   16484 #include <sys/param.h>
   16485 #endif
   16486 
   16487 "
   16488 if test "x$ac_cv_header_sys_ucred_h" = xyes
   16489 then :
   16490   printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
   16491 
   16492 fi
   16493 
   16494 
   16495 
   16496 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
   16497 if test "x$ac_cv_func_sigaction" = xyes
   16498 then :
   16499   printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
   16500 
   16501 fi
   16502 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
   16503 if test "x$ac_cv_func_sigset" = xyes
   16504 then :
   16505   printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h
   16506 
   16507 fi
   16508 
   16509 ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
   16510 if test "x$ac_cv_func_fmemopen" = xyes
   16511 then :
   16512   printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h
   16513 
   16514 fi
   16515 
   16516 
   16517 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
   16518 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
   16519 printf %s "checking for sigset in -lV3... " >&6; }
   16520 if test ${ac_cv_lib_V3_sigset+y}
   16521 then :
   16522   printf %s "(cached) " >&6
   16523 else $as_nop
   16524   ac_check_lib_save_LIBS=$LIBS
   16525 LIBS="-lV3  $LIBS"
   16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16527 /* end confdefs.h.  */
   16528 
   16529 /* Override any GCC internal prototype to avoid an error.
   16530    Use char because int might match the return type of a GCC
   16531    builtin and then its argument prototype would still apply.  */
   16532 char sigset ();
   16533 int
   16534 main (void)
   16535 {
   16536 return sigset ();
   16537   ;
   16538   return 0;
   16539 }
   16540 _ACEOF
   16541 if ac_fn_c_try_link "$LINENO"
   16542 then :
   16543   ac_cv_lib_V3_sigset=yes
   16544 else $as_nop
   16545   ac_cv_lib_V3_sigset=no
   16546 fi
   16547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16548     conftest$ac_exeext conftest.$ac_ext
   16549 LIBS=$ac_check_lib_save_LIBS
   16550 fi
   16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
   16552 printf "%s\n" "$ac_cv_lib_V3_sigset" >&6; }
   16553 if test "x$ac_cv_lib_V3_sigset" = xyes
   16554 then :
   16555   printf "%s\n" "#define HAVE_LIBV3 1" >>confdefs.h
   16556 
   16557   LIBS="-lV3 $LIBS"
   16558 
   16559 fi
   16560 
   16561 fi
   16562 
   16563 if test $ol_cv_msvc = yes ; then
   16564    ol_cv_winsock=yes
   16565 fi
   16566 
   16567 if test "$ac_cv_header_winsock_h" = yes; then
   16568 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
   16569 printf %s "checking for winsock... " >&6; }
   16570 if test ${ol_cv_winsock+y}
   16571 then :
   16572   printf %s "(cached) " >&6
   16573 else $as_nop
   16574 
   16575 	save_LIBS="$LIBS"
   16576 	for curlib in none ws2_32 wsock32; do
   16577 		if test $curlib != none ; then
   16578 	    	LIBS="$save_LIBS -l$curlib"
   16579 		fi
   16580 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16581 /* end confdefs.h.  */
   16582 #include <winsock.h>
   16583 
   16584 int
   16585 main (void)
   16586 {
   16587 
   16588 			socket(0,0,0);
   16589 			select(0,NULL,NULL,NULL,NULL);
   16590 			closesocket(0);
   16591 			gethostname(NULL,0);
   16592 
   16593   ;
   16594   return 0;
   16595 }
   16596 _ACEOF
   16597 if ac_fn_c_try_link "$LINENO"
   16598 then :
   16599   ol_cv_winsock=$curlib
   16600 else $as_nop
   16601   ol_cv_winsock=no
   16602 fi
   16603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16604     conftest$ac_exeext conftest.$ac_ext
   16605 
   16606 		test "$ol_cv_winsock" != no && break
   16607 	done
   16608 	LIBS="$save_LIBS"
   16609 
   16610 fi
   16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
   16612 printf "%s\n" "$ol_cv_winsock" >&6; }
   16613 
   16614 	if test $ol_cv_winsock != no ; then
   16615 
   16616 printf "%s\n" "#define HAVE_WINSOCK 1" >>confdefs.h
   16617 
   16618     	ac_cv_func_socket=yes
   16619     	ac_cv_func_select=yes
   16620     	ac_cv_func_closesocket=yes
   16621     	ac_cv_func_gethostname=yes
   16622 
   16623 		if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
   16624         	LIBS="$LIBS -l$ol_cv_winsock"
   16625 		fi
   16626 
   16627     	if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
   16628 
   16629 printf "%s\n" "#define HAVE_WINSOCK2 1" >>confdefs.h
   16630 
   16631     	fi
   16632 	fi
   16633 fi
   16634 
   16635 
   16636 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
   16637 if test "x$ac_cv_func_socket" = xyes
   16638 then :
   16639   :
   16640 else $as_nop
   16641 
   16642 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
   16643 printf %s "checking for main in -lsocket... " >&6; }
   16644 if test ${ac_cv_lib_socket_main+y}
   16645 then :
   16646   printf %s "(cached) " >&6
   16647 else $as_nop
   16648   ac_check_lib_save_LIBS=$LIBS
   16649 LIBS="-lsocket  $LIBS"
   16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16651 /* end confdefs.h.  */
   16652 
   16653 
   16654 int
   16655 main (void)
   16656 {
   16657 return main ();
   16658   ;
   16659   return 0;
   16660 }
   16661 _ACEOF
   16662 if ac_fn_c_try_link "$LINENO"
   16663 then :
   16664   ac_cv_lib_socket_main=yes
   16665 else $as_nop
   16666   ac_cv_lib_socket_main=no
   16667 fi
   16668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16669     conftest$ac_exeext conftest.$ac_ext
   16670 LIBS=$ac_check_lib_save_LIBS
   16671 fi
   16672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
   16673 printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
   16674 if test "x$ac_cv_lib_socket_main" = xyes
   16675 then :
   16676   printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
   16677 
   16678   LIBS="-lsocket $LIBS"
   16679 
   16680 fi
   16681 
   16682 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
   16683 printf %s "checking for socket in -lnet... " >&6; }
   16684 if test ${ac_cv_lib_net_socket+y}
   16685 then :
   16686   printf %s "(cached) " >&6
   16687 else $as_nop
   16688   ac_check_lib_save_LIBS=$LIBS
   16689 LIBS="-lnet  $LIBS"
   16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16691 /* end confdefs.h.  */
   16692 
   16693 /* Override any GCC internal prototype to avoid an error.
   16694    Use char because int might match the return type of a GCC
   16695    builtin and then its argument prototype would still apply.  */
   16696 char socket ();
   16697 int
   16698 main (void)
   16699 {
   16700 return socket ();
   16701   ;
   16702   return 0;
   16703 }
   16704 _ACEOF
   16705 if ac_fn_c_try_link "$LINENO"
   16706 then :
   16707   ac_cv_lib_net_socket=yes
   16708 else $as_nop
   16709   ac_cv_lib_net_socket=no
   16710 fi
   16711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16712     conftest$ac_exeext conftest.$ac_ext
   16713 LIBS=$ac_check_lib_save_LIBS
   16714 fi
   16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
   16716 printf "%s\n" "$ac_cv_lib_net_socket" >&6; }
   16717 if test "x$ac_cv_lib_net_socket" = xyes
   16718 then :
   16719   printf "%s\n" "#define HAVE_LIBNET 1" >>confdefs.h
   16720 
   16721   LIBS="-lnet $LIBS"
   16722 
   16723 fi
   16724 
   16725 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
   16726 printf %s "checking for main in -lnsl_s... " >&6; }
   16727 if test ${ac_cv_lib_nsl_s_main+y}
   16728 then :
   16729   printf %s "(cached) " >&6
   16730 else $as_nop
   16731   ac_check_lib_save_LIBS=$LIBS
   16732 LIBS="-lnsl_s  $LIBS"
   16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16734 /* end confdefs.h.  */
   16735 
   16736 
   16737 int
   16738 main (void)
   16739 {
   16740 return main ();
   16741   ;
   16742   return 0;
   16743 }
   16744 _ACEOF
   16745 if ac_fn_c_try_link "$LINENO"
   16746 then :
   16747   ac_cv_lib_nsl_s_main=yes
   16748 else $as_nop
   16749   ac_cv_lib_nsl_s_main=no
   16750 fi
   16751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16752     conftest$ac_exeext conftest.$ac_ext
   16753 LIBS=$ac_check_lib_save_LIBS
   16754 fi
   16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
   16756 printf "%s\n" "$ac_cv_lib_nsl_s_main" >&6; }
   16757 if test "x$ac_cv_lib_nsl_s_main" = xyes
   16758 then :
   16759   printf "%s\n" "#define HAVE_LIBNSL_S 1" >>confdefs.h
   16760 
   16761   LIBS="-lnsl_s $LIBS"
   16762 
   16763 fi
   16764 
   16765 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
   16766 printf %s "checking for main in -lnsl... " >&6; }
   16767 if test ${ac_cv_lib_nsl_main+y}
   16768 then :
   16769   printf %s "(cached) " >&6
   16770 else $as_nop
   16771   ac_check_lib_save_LIBS=$LIBS
   16772 LIBS="-lnsl  $LIBS"
   16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16774 /* end confdefs.h.  */
   16775 
   16776 
   16777 int
   16778 main (void)
   16779 {
   16780 return main ();
   16781   ;
   16782   return 0;
   16783 }
   16784 _ACEOF
   16785 if ac_fn_c_try_link "$LINENO"
   16786 then :
   16787   ac_cv_lib_nsl_main=yes
   16788 else $as_nop
   16789   ac_cv_lib_nsl_main=no
   16790 fi
   16791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16792     conftest$ac_exeext conftest.$ac_ext
   16793 LIBS=$ac_check_lib_save_LIBS
   16794 fi
   16795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
   16796 printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
   16797 if test "x$ac_cv_lib_nsl_main" = xyes
   16798 then :
   16799   printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
   16800 
   16801   LIBS="-lnsl $LIBS"
   16802 
   16803 fi
   16804 
   16805 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
   16806 printf %s "checking for socket in -linet... " >&6; }
   16807 if test ${ac_cv_lib_inet_socket+y}
   16808 then :
   16809   printf %s "(cached) " >&6
   16810 else $as_nop
   16811   ac_check_lib_save_LIBS=$LIBS
   16812 LIBS="-linet  $LIBS"
   16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16814 /* end confdefs.h.  */
   16815 
   16816 /* Override any GCC internal prototype to avoid an error.
   16817    Use char because int might match the return type of a GCC
   16818    builtin and then its argument prototype would still apply.  */
   16819 char socket ();
   16820 int
   16821 main (void)
   16822 {
   16823 return socket ();
   16824   ;
   16825   return 0;
   16826 }
   16827 _ACEOF
   16828 if ac_fn_c_try_link "$LINENO"
   16829 then :
   16830   ac_cv_lib_inet_socket=yes
   16831 else $as_nop
   16832   ac_cv_lib_inet_socket=no
   16833 fi
   16834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16835     conftest$ac_exeext conftest.$ac_ext
   16836 LIBS=$ac_check_lib_save_LIBS
   16837 fi
   16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
   16839 printf "%s\n" "$ac_cv_lib_inet_socket" >&6; }
   16840 if test "x$ac_cv_lib_inet_socket" = xyes
   16841 then :
   16842   printf "%s\n" "#define HAVE_LIBINET 1" >>confdefs.h
   16843 
   16844   LIBS="-linet $LIBS"
   16845 
   16846 fi
   16847 
   16848 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
   16849 printf %s "checking for main in -lgen... " >&6; }
   16850 if test ${ac_cv_lib_gen_main+y}
   16851 then :
   16852   printf %s "(cached) " >&6
   16853 else $as_nop
   16854   ac_check_lib_save_LIBS=$LIBS
   16855 LIBS="-lgen  $LIBS"
   16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16857 /* end confdefs.h.  */
   16858 
   16859 
   16860 int
   16861 main (void)
   16862 {
   16863 return main ();
   16864   ;
   16865   return 0;
   16866 }
   16867 _ACEOF
   16868 if ac_fn_c_try_link "$LINENO"
   16869 then :
   16870   ac_cv_lib_gen_main=yes
   16871 else $as_nop
   16872   ac_cv_lib_gen_main=no
   16873 fi
   16874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16875     conftest$ac_exeext conftest.$ac_ext
   16876 LIBS=$ac_check_lib_save_LIBS
   16877 fi
   16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
   16879 printf "%s\n" "$ac_cv_lib_gen_main" >&6; }
   16880 if test "x$ac_cv_lib_gen_main" = xyes
   16881 then :
   16882   printf "%s\n" "#define HAVE_LIBGEN 1" >>confdefs.h
   16883 
   16884   LIBS="-lgen $LIBS"
   16885 
   16886 fi
   16887 
   16888 
   16889 fi
   16890 
   16891 
   16892 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
   16893 if test "x$ac_cv_func_select" = xyes
   16894 then :
   16895   :
   16896 else $as_nop
   16897   as_fn_error $? "select() required." "$LINENO" 5
   16898 fi
   16899 
   16900 
   16901 if test "${ac_cv_header_winsock_h}" != yes; then
   16902 
   16903 
   16904 
   16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
   16906 printf %s "checking types of arguments for select... " >&6; }
   16907 if test ${ac_cv_func_select_args+y}
   16908 then :
   16909   printf %s "(cached) " >&6
   16910 else $as_nop
   16911   ac_cv_func_select_args='int,int *,struct timeval *'
   16912 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
   16913  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
   16914   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
   16915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16916 /* end confdefs.h.  */
   16917 $ac_includes_default
   16918 #ifdef HAVE_SYS_SELECT_H
   16919 # include <sys/select.h>
   16920 #endif
   16921 #ifdef HAVE_SYS_SOCKET_H
   16922 # include <sys/socket.h>
   16923 #endif
   16924 
   16925 int
   16926 main (void)
   16927 {
   16928 extern int select ($ac_arg1,
   16929 					    $ac_arg234, $ac_arg234, $ac_arg234,
   16930 					    $ac_arg5);
   16931   ;
   16932   return 0;
   16933 }
   16934 _ACEOF
   16935 if ac_fn_c_try_compile "$LINENO"
   16936 then :
   16937   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
   16938 fi
   16939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16940   done
   16941  done
   16942 done
   16943 
   16944 fi
   16945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
   16946 printf "%s\n" "$ac_cv_func_select_args" >&6; }
   16947 ac_save_IFS=$IFS; IFS=','
   16948 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
   16949 IFS=$ac_save_IFS
   16950 shift
   16951 
   16952 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
   16953 
   16954 
   16955 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
   16956 
   16957 
   16958 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
   16959 
   16960 rm -rf conftest*
   16961 
   16962 fi
   16963 
   16964 
   16965 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
   16966 if test "x$ac_cv_func_poll" = xyes
   16967 then :
   16968   printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
   16969 
   16970 fi
   16971 
   16972 if test $ac_cv_func_poll = yes; then
   16973 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
   16974 if test "x$ac_cv_header_poll_h" = xyes
   16975 then :
   16976   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
   16977 
   16978 fi
   16979 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
   16980 if test "x$ac_cv_header_sys_poll_h" = xyes
   16981 then :
   16982   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
   16983 
   16984 fi
   16985 
   16986 fi
   16987 
   16988 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
   16989 if test "x$ac_cv_header_sys_epoll_h" = xyes
   16990 then :
   16991   printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
   16992 
   16993 fi
   16994 
   16995 if test "${ac_cv_header_sys_epoll_h}" = yes; then
   16996 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
   16997 printf %s "checking for epoll system call... " >&6; }
   16998 	if test "$cross_compiling" = yes
   16999 then :
   17000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17001 printf "%s\n" "no" >&6; }
   17002 else $as_nop
   17003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17004 /* end confdefs.h.  */
   17005 #include <stdlib.h>
   17006 #ifdef HAVE_SYS_POLL_H
   17007 #include <sys/epoll.h>
   17008 #endif
   17009 int main(int argc, char **argv)
   17010 {
   17011 	int epfd = epoll_create(256);
   17012 	exit (epfd == -1 ? 1 : 0);
   17013 }
   17014 _ACEOF
   17015 if ac_fn_c_try_run "$LINENO"
   17016 then :
   17017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17018 printf "%s\n" "yes" >&6; }
   17019 
   17020 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
   17021 
   17022 else $as_nop
   17023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17024 printf "%s\n" "no" >&6; }
   17025 fi
   17026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17027   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17028 fi
   17029 
   17030 fi
   17031 
   17032 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
   17033 if test "x$ac_cv_header_sys_event_h" = xyes
   17034 then :
   17035   printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
   17036 
   17037 fi
   17038 
   17039 if test "${ac_cv_header_sys_event_h}" = yes; then
   17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue system call" >&5
   17041 printf %s "checking for kqueue system call... " >&6; }
   17042 if test "$cross_compiling" = yes
   17043 then :
   17044   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17045 printf "%s\n" "no" >&6; }
   17046 else $as_nop
   17047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17048 /* end confdefs.h.  */
   17049 $ac_includes_default
   17050 #ifdef HAVE_SYS_EVENT_H
   17051 #include <sys/event.h>
   17052 #endif
   17053 #ifdef HAVE_SYS_TIME_H
   17054 #include <sys/time.h>
   17055 #endif
   17056 int main(int argc, char **argv)
   17057 {
   17058 	int kqfd = kqueue();
   17059 	exit (kqfd == -1 ? 1 : 0);
   17060 }
   17061 _ACEOF
   17062 if ac_fn_c_try_run "$LINENO"
   17063 then :
   17064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17065 printf "%s\n" "yes" >&6; }
   17066 
   17067 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
   17068 
   17069 else $as_nop
   17070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17071 printf "%s\n" "no" >&6; }
   17072 fi
   17073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17074   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17075 fi
   17076 
   17077 fi
   17078 
   17079 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
   17080 if test "x$ac_cv_header_sys_devpoll_h" = xyes
   17081 then :
   17082   printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
   17083 
   17084 fi
   17085 
   17086 if test "${ac_cv_header_sys_devpoll_h}" = yes \
   17087 		-a "${ac_cv_header_poll_h}" = yes ; \
   17088 then
   17089 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
   17090 printf %s "checking for /dev/poll... " >&6; }
   17091 	if test "$cross_compiling" = yes
   17092 then :
   17093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17094 printf "%s\n" "no" >&6; }
   17095 else $as_nop
   17096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17097 /* end confdefs.h.  */
   17098 int main(int argc, char **argv)
   17099 {
   17100 	int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
   17101 	exit (devpollfd == -1 ? 1 : 0);
   17102 }
   17103 _ACEOF
   17104 if ac_fn_c_try_run "$LINENO"
   17105 then :
   17106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17107 printf "%s\n" "yes" >&6; }
   17108 
   17109 printf "%s\n" "#define HAVE_DEVPOLL 1" >>confdefs.h
   17110 
   17111 else $as_nop
   17112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17113 printf "%s\n" "no" >&6; }
   17114 fi
   17115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17116   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17117 fi
   17118 
   17119 fi
   17120 
   17121 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
   17122 if test "x$ac_cv_func_strerror" = xyes
   17123 then :
   17124   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
   17125 
   17126 fi
   17127 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
   17128 if test "x$ac_cv_func_strerror_r" = xyes
   17129 then :
   17130   printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
   17131 
   17132 fi
   17133 
   17134 ol_cv_func_strerror_r=no
   17135 if test "${ac_cv_func_strerror_r}" = yes ; then
   17136 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
   17137 printf %s "checking non-posix strerror_r... " >&6; }
   17138 if test ${ol_cv_nonposix_strerror_r+y}
   17139 then :
   17140   printf %s "(cached) " >&6
   17141 else $as_nop
   17142 
   17143 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17144 /* end confdefs.h.  */
   17145 #include <string.h>
   17146 _ACEOF
   17147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17148   $EGREP "strerror_r" >/dev/null 2>&1
   17149 then :
   17150   ol_decl_strerror_r=yes
   17151 else $as_nop
   17152   ol_decl_strerror_r=no
   17153 fi
   17154 rm -rf conftest*
   17155 
   17156 	if test $ol_decl_strerror_r = yes ; then
   17157 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17158 /* end confdefs.h.  */
   17159 #include <string.h>
   17160 int
   17161 main (void)
   17162 {
   17163    /* from autoconf 2.59 */
   17164 				char buf[100];
   17165 				char x = *strerror_r (0, buf, sizeof buf);
   17166 				char *p = strerror_r (0, buf, sizeof buf);
   17167 
   17168   ;
   17169   return 0;
   17170 }
   17171 _ACEOF
   17172 if ac_fn_c_try_compile "$LINENO"
   17173 then :
   17174   ol_cv_nonposix_strerror_r=yes
   17175 else $as_nop
   17176   ol_cv_nonposix_strerror_r=no
   17177 fi
   17178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17179 	else
   17180 		if test "$cross_compiling" = yes
   17181 then :
   17182   ol_cv_nonposix_strerror_r=no
   17183 else $as_nop
   17184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17185 /* end confdefs.h.  */
   17186 
   17187 			int main(void) {
   17188 				char buf[100];
   17189 				buf[0] = 0;
   17190 				strerror_r( 1, buf, sizeof buf );
   17191 				exit( buf[0] == 0 );
   17192 			}
   17193 
   17194 _ACEOF
   17195 if ac_fn_c_try_run "$LINENO"
   17196 then :
   17197   ol_cv_nonposix_strerror_r=yes
   17198 else $as_nop
   17199   ol_cv_nonposix_strerror_r=no
   17200 fi
   17201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17202   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17203 fi
   17204 
   17205 	fi
   17206 
   17207 fi
   17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
   17209 printf "%s\n" "$ol_cv_nonposix_strerror_r" >&6; }
   17210 if test $ol_cv_nonposix_strerror_r = yes ; then
   17211 
   17212 printf "%s\n" "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
   17213 
   17214 fi
   17215 
   17216 elif test "${ac_cv_func_strerror}" = no ; then
   17217 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
   17218 printf %s "checking existence of sys_errlist... " >&6; }
   17219 if test ${ol_cv_have_sys_errlist+y}
   17220 then :
   17221   printf %s "(cached) " >&6
   17222 else $as_nop
   17223 
   17224 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17225 /* end confdefs.h.  */
   17226 #include <errno.h>
   17227 int
   17228 main (void)
   17229 {
   17230 char *c = (char *) *sys_errlist
   17231   ;
   17232   return 0;
   17233 }
   17234 _ACEOF
   17235 if ac_fn_c_try_link "$LINENO"
   17236 then :
   17237   ol_cv_have_sys_errlist=yes
   17238 else $as_nop
   17239   ol_cv_have_sys_errlist=no
   17240 fi
   17241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17242     conftest$ac_exeext conftest.$ac_ext
   17243 fi
   17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
   17245 printf "%s\n" "$ol_cv_have_sys_errlist" >&6; }
   17246 if test $ol_cv_have_sys_errlist = yes ; then
   17247 
   17248 printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
   17249 
   17250 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
   17251 printf %s "checking declaration of sys_errlist... " >&6; }
   17252 if test ${ol_cv_dcl_sys_errlist+y}
   17253 then :
   17254   printf %s "(cached) " >&6
   17255 else $as_nop
   17256 
   17257 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17258 /* end confdefs.h.  */
   17259 
   17260 #include <stdio.h>
   17261 #include <sys/types.h>
   17262 #include <errno.h>
   17263 #ifdef _WIN32
   17264 #include <stdlib.h>
   17265 #endif
   17266 int
   17267 main (void)
   17268 {
   17269 char *c = (char *) *sys_errlist
   17270   ;
   17271   return 0;
   17272 }
   17273 _ACEOF
   17274 if ac_fn_c_try_compile "$LINENO"
   17275 then :
   17276   ol_cv_dcl_sys_errlist=yes
   17277 else $as_nop
   17278   ol_cv_dcl_sys_errlist=no
   17279 fi
   17280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17281 fi
   17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
   17283 printf "%s\n" "$ol_cv_dcl_sys_errlist" >&6; }
   17284 #
   17285 	# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
   17286 	if test $ol_cv_dcl_sys_errlist = no ; then
   17287 
   17288 printf "%s\n" "#define DECL_SYS_ERRLIST 1" >>confdefs.h
   17289 
   17290 	fi
   17291 fi
   17292 
   17293 fi
   17294 
   17295 
   17296 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
   17297 #ifdef HAVE_SYS_TYPES_H
   17298 #include <sys/types.h>
   17299 #endif
   17300 
   17301 "
   17302 if test "x$ac_cv_header_regex_h" = xyes
   17303 then :
   17304   printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
   17305 
   17306 fi
   17307 
   17308 
   17309 if test "$ac_cv_header_regex_h" != yes ; then
   17310 	as_fn_error $? "POSIX regex.h required." "$LINENO" 5
   17311 fi
   17312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
   17313 printf %s "checking for library containing regfree... " >&6; }
   17314 if test ${ac_cv_search_regfree+y}
   17315 then :
   17316   printf %s "(cached) " >&6
   17317 else $as_nop
   17318   ac_func_search_save_LIBS=$LIBS
   17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17320 /* end confdefs.h.  */
   17321 
   17322 /* Override any GCC internal prototype to avoid an error.
   17323    Use char because int might match the return type of a GCC
   17324    builtin and then its argument prototype would still apply.  */
   17325 char regfree ();
   17326 int
   17327 main (void)
   17328 {
   17329 return regfree ();
   17330   ;
   17331   return 0;
   17332 }
   17333 _ACEOF
   17334 for ac_lib in '' regex gnuregex
   17335 do
   17336   if test -z "$ac_lib"; then
   17337     ac_res="none required"
   17338   else
   17339     ac_res=-l$ac_lib
   17340     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17341   fi
   17342   if ac_fn_c_try_link "$LINENO"
   17343 then :
   17344   ac_cv_search_regfree=$ac_res
   17345 fi
   17346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17347     conftest$ac_exeext
   17348   if test ${ac_cv_search_regfree+y}
   17349 then :
   17350   break
   17351 fi
   17352 done
   17353 if test ${ac_cv_search_regfree+y}
   17354 then :
   17355 
   17356 else $as_nop
   17357   ac_cv_search_regfree=no
   17358 fi
   17359 rm conftest.$ac_ext
   17360 LIBS=$ac_func_search_save_LIBS
   17361 fi
   17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
   17363 printf "%s\n" "$ac_cv_search_regfree" >&6; }
   17364 ac_res=$ac_cv_search_regfree
   17365 if test "$ac_res" != no
   17366 then :
   17367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17368   :
   17369 else $as_nop
   17370   as_fn_error $? "POSIX regex required." "$LINENO" 5
   17371 fi
   17372 
   17373 
   17374 
   17375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
   17376 printf %s "checking for compatible POSIX regex... " >&6; }
   17377 if test ${ol_cv_c_posix_regex+y}
   17378 then :
   17379   printf %s "(cached) " >&6
   17380 else $as_nop
   17381 
   17382 	if test "$cross_compiling" = yes
   17383 then :
   17384   ol_cv_c_posix_regex=cross
   17385 else $as_nop
   17386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17387 /* end confdefs.h.  */
   17388 
   17389 #include <sys/types.h>
   17390 #include <regex.h>
   17391 static char *pattern, *string;
   17392 int main(void)
   17393 {
   17394 	int rc;
   17395 	regex_t re;
   17396 
   17397 	pattern = "^A";
   17398 
   17399 	if(regcomp(&re, pattern, 0)) {
   17400 		return -1;
   17401 	}
   17402 
   17403 	string = "ALL MATCH";
   17404 
   17405 	rc = regexec(&re, string, 0, (void*)0, 0);
   17406 
   17407 	regfree(&re);
   17408 
   17409 	return rc;
   17410 }
   17411 _ACEOF
   17412 if ac_fn_c_try_run "$LINENO"
   17413 then :
   17414   ol_cv_c_posix_regex=yes
   17415 else $as_nop
   17416   ol_cv_c_posix_regex=no
   17417 fi
   17418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17419   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17420 fi
   17421 
   17422 fi
   17423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
   17424 printf "%s\n" "$ol_cv_c_posix_regex" >&6; }
   17425 
   17426 if test "$ol_cv_c_posix_regex" = no ; then
   17427 	as_fn_error $? "broken POSIX regex!" "$LINENO" 5
   17428 fi
   17429 
   17430 
   17431 have_uuid=no
   17432 ac_fn_c_check_header_compile "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
   17433 if test "x$ac_cv_header_sys_uuid_h" = xyes
   17434 then :
   17435   printf "%s\n" "#define HAVE_SYS_UUID_H 1" >>confdefs.h
   17436 
   17437 fi
   17438 
   17439 if test $ac_cv_header_sys_uuid_h = yes ; then
   17440 	save_LIBS="$LIBS"
   17441 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
   17442 printf %s "checking for library containing uuid_to_str... " >&6; }
   17443 if test ${ac_cv_search_uuid_to_str+y}
   17444 then :
   17445   printf %s "(cached) " >&6
   17446 else $as_nop
   17447   ac_func_search_save_LIBS=$LIBS
   17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17449 /* end confdefs.h.  */
   17450 
   17451 /* Override any GCC internal prototype to avoid an error.
   17452    Use char because int might match the return type of a GCC
   17453    builtin and then its argument prototype would still apply.  */
   17454 char uuid_to_str ();
   17455 int
   17456 main (void)
   17457 {
   17458 return uuid_to_str ();
   17459   ;
   17460   return 0;
   17461 }
   17462 _ACEOF
   17463 for ac_lib in '' uuid
   17464 do
   17465   if test -z "$ac_lib"; then
   17466     ac_res="none required"
   17467   else
   17468     ac_res=-l$ac_lib
   17469     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17470   fi
   17471   if ac_fn_c_try_link "$LINENO"
   17472 then :
   17473   ac_cv_search_uuid_to_str=$ac_res
   17474 fi
   17475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17476     conftest$ac_exeext
   17477   if test ${ac_cv_search_uuid_to_str+y}
   17478 then :
   17479   break
   17480 fi
   17481 done
   17482 if test ${ac_cv_search_uuid_to_str+y}
   17483 then :
   17484 
   17485 else $as_nop
   17486   ac_cv_search_uuid_to_str=no
   17487 fi
   17488 rm conftest.$ac_ext
   17489 LIBS=$ac_func_search_save_LIBS
   17490 fi
   17491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
   17492 printf "%s\n" "$ac_cv_search_uuid_to_str" >&6; }
   17493 ac_res=$ac_cv_search_uuid_to_str
   17494 if test "$ac_res" != no
   17495 then :
   17496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17497   have_uuid=yes
   17498 else $as_nop
   17499   :
   17500 fi
   17501 
   17502 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
   17503 printf %s "checking for library containing uuid_create... " >&6; }
   17504 if test ${ac_cv_search_uuid_create+y}
   17505 then :
   17506   printf %s "(cached) " >&6
   17507 else $as_nop
   17508   ac_func_search_save_LIBS=$LIBS
   17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17510 /* end confdefs.h.  */
   17511 
   17512 /* Override any GCC internal prototype to avoid an error.
   17513    Use char because int might match the return type of a GCC
   17514    builtin and then its argument prototype would still apply.  */
   17515 char uuid_create ();
   17516 int
   17517 main (void)
   17518 {
   17519 return uuid_create ();
   17520   ;
   17521   return 0;
   17522 }
   17523 _ACEOF
   17524 for ac_lib in '' uuid
   17525 do
   17526   if test -z "$ac_lib"; then
   17527     ac_res="none required"
   17528   else
   17529     ac_res=-l$ac_lib
   17530     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17531   fi
   17532   if ac_fn_c_try_link "$LINENO"
   17533 then :
   17534   ac_cv_search_uuid_create=$ac_res
   17535 fi
   17536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17537     conftest$ac_exeext
   17538   if test ${ac_cv_search_uuid_create+y}
   17539 then :
   17540   break
   17541 fi
   17542 done
   17543 if test ${ac_cv_search_uuid_create+y}
   17544 then :
   17545 
   17546 else $as_nop
   17547   ac_cv_search_uuid_create=no
   17548 fi
   17549 rm conftest.$ac_ext
   17550 LIBS=$ac_func_search_save_LIBS
   17551 fi
   17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
   17553 printf "%s\n" "$ac_cv_search_uuid_create" >&6; }
   17554 ac_res=$ac_cv_search_uuid_create
   17555 if test "$ac_res" != no
   17556 then :
   17557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17558   :
   17559 else $as_nop
   17560   have_uuid=no
   17561 fi
   17562 
   17563 	LIBS="$save_LIBS"
   17564 
   17565 	if test $have_uuid = yes ; then
   17566 
   17567 printf "%s\n" "#define HAVE_UUID_TO_STR 1" >>confdefs.h
   17568 
   17569 
   17570 		test "$ac_cv_search_uuid_to_str" = "none required" || \
   17571 			LUTIL_LIBS="$LUTIL_LIBS $ac_cv_search_uuid_to_str"
   17572 	fi
   17573 fi
   17574 
   17575 if test $have_uuid = no ; then
   17576 	ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
   17577 if test "x$ac_cv_header_uuid_uuid_h" = xyes
   17578 then :
   17579   printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
   17580 
   17581 fi
   17582 
   17583 	if test $ac_cv_header_uuid_uuid_h = yes ; then
   17584 		save_LIBS="$LIBS"
   17585 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
   17586 printf %s "checking for library containing uuid_generate... " >&6; }
   17587 if test ${ac_cv_search_uuid_generate+y}
   17588 then :
   17589   printf %s "(cached) " >&6
   17590 else $as_nop
   17591   ac_func_search_save_LIBS=$LIBS
   17592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17593 /* end confdefs.h.  */
   17594 
   17595 /* Override any GCC internal prototype to avoid an error.
   17596    Use char because int might match the return type of a GCC
   17597    builtin and then its argument prototype would still apply.  */
   17598 char uuid_generate ();
   17599 int
   17600 main (void)
   17601 {
   17602 return uuid_generate ();
   17603   ;
   17604   return 0;
   17605 }
   17606 _ACEOF
   17607 for ac_lib in '' uuid
   17608 do
   17609   if test -z "$ac_lib"; then
   17610     ac_res="none required"
   17611   else
   17612     ac_res=-l$ac_lib
   17613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17614   fi
   17615   if ac_fn_c_try_link "$LINENO"
   17616 then :
   17617   ac_cv_search_uuid_generate=$ac_res
   17618 fi
   17619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17620     conftest$ac_exeext
   17621   if test ${ac_cv_search_uuid_generate+y}
   17622 then :
   17623   break
   17624 fi
   17625 done
   17626 if test ${ac_cv_search_uuid_generate+y}
   17627 then :
   17628 
   17629 else $as_nop
   17630   ac_cv_search_uuid_generate=no
   17631 fi
   17632 rm conftest.$ac_ext
   17633 LIBS=$ac_func_search_save_LIBS
   17634 fi
   17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
   17636 printf "%s\n" "$ac_cv_search_uuid_generate" >&6; }
   17637 ac_res=$ac_cv_search_uuid_generate
   17638 if test "$ac_res" != no
   17639 then :
   17640   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17641   have_uuid=yes
   17642 else $as_nop
   17643   :
   17644 fi
   17645 
   17646 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
   17647 printf %s "checking for library containing uuid_unparse_lower... " >&6; }
   17648 if test ${ac_cv_search_uuid_unparse_lower+y}
   17649 then :
   17650   printf %s "(cached) " >&6
   17651 else $as_nop
   17652   ac_func_search_save_LIBS=$LIBS
   17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17654 /* end confdefs.h.  */
   17655 
   17656 /* Override any GCC internal prototype to avoid an error.
   17657    Use char because int might match the return type of a GCC
   17658    builtin and then its argument prototype would still apply.  */
   17659 char uuid_unparse_lower ();
   17660 int
   17661 main (void)
   17662 {
   17663 return uuid_unparse_lower ();
   17664   ;
   17665   return 0;
   17666 }
   17667 _ACEOF
   17668 for ac_lib in '' uuid
   17669 do
   17670   if test -z "$ac_lib"; then
   17671     ac_res="none required"
   17672   else
   17673     ac_res=-l$ac_lib
   17674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17675   fi
   17676   if ac_fn_c_try_link "$LINENO"
   17677 then :
   17678   ac_cv_search_uuid_unparse_lower=$ac_res
   17679 fi
   17680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17681     conftest$ac_exeext
   17682   if test ${ac_cv_search_uuid_unparse_lower+y}
   17683 then :
   17684   break
   17685 fi
   17686 done
   17687 if test ${ac_cv_search_uuid_unparse_lower+y}
   17688 then :
   17689 
   17690 else $as_nop
   17691   ac_cv_search_uuid_unparse_lower=no
   17692 fi
   17693 rm conftest.$ac_ext
   17694 LIBS=$ac_func_search_save_LIBS
   17695 fi
   17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
   17697 printf "%s\n" "$ac_cv_search_uuid_unparse_lower" >&6; }
   17698 ac_res=$ac_cv_search_uuid_unparse_lower
   17699 if test "$ac_res" != no
   17700 then :
   17701   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17702   :
   17703 else $as_nop
   17704   have_uuid=no
   17705 fi
   17706 
   17707 		LIBS="$save_LIBS"
   17708 
   17709 		if test $have_uuid = yes ; then
   17710 
   17711 printf "%s\n" "#define HAVE_UUID_GENERATE 1" >>confdefs.h
   17712 
   17713 
   17714 			test "$ac_cv_search_uuid_generate" = "none required" || \
   17715 				LUTIL_LIBS="$LUTIL_LIBS $ac_cv_search_uuid_generate"
   17716 		fi
   17717 	fi
   17718 fi
   17719 
   17720 if test $have_uuid = no ; then
   17721 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
   17722 printf %s "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
   17723 	save_LIBS="$LIBS"
   17724 	LIBS="$LIBS -lrpcrt4"
   17725 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17726 /* end confdefs.h.  */
   17727 
   17728 		int __stdcall UuidCreate(void *);
   17729 		int __stdcall UuidToStringA(void *,void **);
   17730 
   17731 int
   17732 main (void)
   17733 {
   17734 
   17735 		UuidCreate(0);
   17736 		UuidToStringA(0,0);
   17737 
   17738   ;
   17739   return 0;
   17740 }
   17741 _ACEOF
   17742 if ac_fn_c_try_link "$LINENO"
   17743 then :
   17744   need_rpcrt=yes
   17745 else $as_nop
   17746   need_rpcrt=no
   17747 fi
   17748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17749     conftest$ac_exeext conftest.$ac_ext
   17750 	if test $need_rpcrt = yes; then
   17751 		SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
   17752 		CLIENT_LIBS="$CLIENT_LIBS -lrpcrt4"
   17753 	fi
   17754 	LIBS="$save_LIBS"
   17755 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
   17756 printf "%s\n" "$need_rpcrt" >&6; }
   17757 fi
   17758 
   17759 ol_cv_lib_resolver=no
   17760 if test $ol_cv_lib_resolver = no ; then
   17761 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
   17762 printf %s "checking for resolver link (default)... " >&6; }
   17763 if test ${ol_cv_resolver_none+y}
   17764 then :
   17765   printf %s "(cached) " >&6
   17766 else $as_nop
   17767 
   17768 	ol_RESOLVER_LIB=
   17769 	ol_LIBS=$LIBS
   17770 	LIBS="$ol_RESOLVER_LIB $LIBS"
   17771 
   17772 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17773 /* end confdefs.h.  */
   17774 
   17775 #ifdef HAVE_SYS_TYPES_H
   17776 #	include <sys/types.h>
   17777 #endif
   17778 #include <netinet/in.h>
   17779 #ifdef HAVE_ARPA_NAMESER_H
   17780 #	include <arpa/nameser.h>
   17781 #endif
   17782 #ifdef HAVE_RESOLV_H
   17783 #	include <resolv.h>
   17784 #endif
   17785 
   17786 int
   17787 main (void)
   17788 {
   17789 {
   17790 	int len, status;
   17791 	char *request = NULL;
   17792 	unsigned char reply[64*1024];
   17793 	unsigned char host[64*1024];
   17794 	unsigned char *p;
   17795 
   17796 #ifdef NS_HFIXEDSZ
   17797 	/* Bind 8/9 interface */
   17798 	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
   17799 #else
   17800 	/* Bind 4 interface */
   17801 # ifndef T_SRV
   17802 #  define T_SRV 33
   17803 # endif
   17804 	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
   17805 #endif
   17806 	p = reply;
   17807 #ifdef NS_HFIXEDSZ
   17808 	/* Bind 8/9 interface */
   17809 	p += NS_HFIXEDSZ;
   17810 #elif defined(HFIXEDSZ)
   17811 	/* Bind 4 interface w/ HFIXEDSZ */
   17812 	p += HFIXEDSZ;
   17813 #else
   17814 	/* Bind 4 interface w/o HFIXEDSZ */
   17815 	p += sizeof(HEADER);
   17816 #endif
   17817 	status = dn_expand( reply, reply+len, p, host, sizeof(host));
   17818 }
   17819   ;
   17820   return 0;
   17821 }
   17822 _ACEOF
   17823 if ac_fn_c_try_link "$LINENO"
   17824 then :
   17825   ol_cv_resolver_none=yes
   17826 else $as_nop
   17827   ol_cv_resolver_none=no
   17828 fi
   17829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17830     conftest$ac_exeext conftest.$ac_ext
   17831 
   17832 	LIBS="$ol_LIBS"
   17833 
   17834 fi
   17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
   17836 printf "%s\n" "$ol_cv_resolver_none" >&6; }
   17837 
   17838 	if test $ol_cv_resolver_none = yes ; then
   17839 		ol_cv_lib_resolver=yes
   17840 	fi
   17841 fi
   17842 
   17843 if test $ol_cv_lib_resolver = no ; then
   17844 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
   17845 printf %s "checking for resolver link (-lresolv)... " >&6; }
   17846 if test ${ol_cv_resolver_resolv+y}
   17847 then :
   17848   printf %s "(cached) " >&6
   17849 else $as_nop
   17850 
   17851 	ol_RESOLVER_LIB=-lresolv
   17852 	ol_LIBS=$LIBS
   17853 	LIBS="$ol_RESOLVER_LIB $LIBS"
   17854 
   17855 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17856 /* end confdefs.h.  */
   17857 
   17858 #ifdef HAVE_SYS_TYPES_H
   17859 #	include <sys/types.h>
   17860 #endif
   17861 #include <netinet/in.h>
   17862 #ifdef HAVE_ARPA_NAMESER_H
   17863 #	include <arpa/nameser.h>
   17864 #endif
   17865 #ifdef HAVE_RESOLV_H
   17866 #	include <resolv.h>
   17867 #endif
   17868 
   17869 int
   17870 main (void)
   17871 {
   17872 {
   17873 	int len, status;
   17874 	char *request = NULL;
   17875 	unsigned char reply[64*1024];
   17876 	unsigned char host[64*1024];
   17877 	unsigned char *p;
   17878 
   17879 #ifdef NS_HFIXEDSZ
   17880 	/* Bind 8/9 interface */
   17881 	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
   17882 #else
   17883 	/* Bind 4 interface */
   17884 # ifndef T_SRV
   17885 #  define T_SRV 33
   17886 # endif
   17887 	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
   17888 #endif
   17889 	p = reply;
   17890 #ifdef NS_HFIXEDSZ
   17891 	/* Bind 8/9 interface */
   17892 	p += NS_HFIXEDSZ;
   17893 #elif defined(HFIXEDSZ)
   17894 	/* Bind 4 interface w/ HFIXEDSZ */
   17895 	p += HFIXEDSZ;
   17896 #else
   17897 	/* Bind 4 interface w/o HFIXEDSZ */
   17898 	p += sizeof(HEADER);
   17899 #endif
   17900 	status = dn_expand( reply, reply+len, p, host, sizeof(host));
   17901 }
   17902   ;
   17903   return 0;
   17904 }
   17905 _ACEOF
   17906 if ac_fn_c_try_link "$LINENO"
   17907 then :
   17908   ol_cv_resolver_resolv=yes
   17909 else $as_nop
   17910   ol_cv_resolver_resolv=no
   17911 fi
   17912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17913     conftest$ac_exeext conftest.$ac_ext
   17914 
   17915 	LIBS="$ol_LIBS"
   17916 
   17917 fi
   17918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
   17919 printf "%s\n" "$ol_cv_resolver_resolv" >&6; }
   17920 
   17921 	if test $ol_cv_resolver_resolv = yes ; then
   17922 		ol_cv_lib_resolver=-lresolv
   17923 	fi
   17924 fi
   17925 
   17926 if test $ol_cv_lib_resolver = no ; then
   17927 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
   17928 printf %s "checking for resolver link (-lbind)... " >&6; }
   17929 if test ${ol_cv_resolver_bind+y}
   17930 then :
   17931   printf %s "(cached) " >&6
   17932 else $as_nop
   17933 
   17934 	ol_RESOLVER_LIB=-lbind
   17935 	ol_LIBS=$LIBS
   17936 	LIBS="$ol_RESOLVER_LIB $LIBS"
   17937 
   17938 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17939 /* end confdefs.h.  */
   17940 
   17941 #ifdef HAVE_SYS_TYPES_H
   17942 #	include <sys/types.h>
   17943 #endif
   17944 #include <netinet/in.h>
   17945 #ifdef HAVE_ARPA_NAMESER_H
   17946 #	include <arpa/nameser.h>
   17947 #endif
   17948 #ifdef HAVE_RESOLV_H
   17949 #	include <resolv.h>
   17950 #endif
   17951 
   17952 int
   17953 main (void)
   17954 {
   17955 {
   17956 	int len, status;
   17957 	char *request = NULL;
   17958 	unsigned char reply[64*1024];
   17959 	unsigned char host[64*1024];
   17960 	unsigned char *p;
   17961 
   17962 #ifdef NS_HFIXEDSZ
   17963 	/* Bind 8/9 interface */
   17964 	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
   17965 #else
   17966 	/* Bind 4 interface */
   17967 # ifndef T_SRV
   17968 #  define T_SRV 33
   17969 # endif
   17970 	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
   17971 #endif
   17972 	p = reply;
   17973 #ifdef NS_HFIXEDSZ
   17974 	/* Bind 8/9 interface */
   17975 	p += NS_HFIXEDSZ;
   17976 #elif defined(HFIXEDSZ)
   17977 	/* Bind 4 interface w/ HFIXEDSZ */
   17978 	p += HFIXEDSZ;
   17979 #else
   17980 	/* Bind 4 interface w/o HFIXEDSZ */
   17981 	p += sizeof(HEADER);
   17982 #endif
   17983 	status = dn_expand( reply, reply+len, p, host, sizeof(host));
   17984 }
   17985   ;
   17986   return 0;
   17987 }
   17988 _ACEOF
   17989 if ac_fn_c_try_link "$LINENO"
   17990 then :
   17991   ol_cv_resolver_bind=yes
   17992 else $as_nop
   17993   ol_cv_resolver_bind=no
   17994 fi
   17995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17996     conftest$ac_exeext conftest.$ac_ext
   17997 
   17998 	LIBS="$ol_LIBS"
   17999 
   18000 fi
   18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
   18002 printf "%s\n" "$ol_cv_resolver_bind" >&6; }
   18003 
   18004 	if test $ol_cv_resolver_bind = yes ; then
   18005 		ol_cv_lib_resolver=-lbind
   18006 	fi
   18007 fi
   18008 
   18009 
   18010 
   18011 ol_link_dnssrv=no
   18012 if test "$ol_cv_lib_resolver" != no ; then
   18013 
   18014 printf "%s\n" "#define HAVE_RES_QUERY 1" >>confdefs.h
   18015 
   18016 
   18017 	if test "$ol_enable_dnssrv" != no ; then
   18018 		ol_link_dnssrv=yes
   18019 	fi
   18020 
   18021 	if test "$ol_cv_lib_resolver" != yes ; then
   18022 		LIBS="$ol_cv_lib_resolver $LIBS"
   18023 	fi
   18024 fi
   18025 
   18026 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
   18027 	if test "$ol_link_dnssrv" = no ; then
   18028 		as_fn_error $? "DNSSRV requires res_query()" "$LINENO" 5
   18029 	fi
   18030 else
   18031 	ol_enable_dnssrv=no
   18032 fi
   18033 
   18034 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
   18035 if test "x$ac_cv_func_hstrerror" = xyes
   18036 then :
   18037   printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
   18038 
   18039 fi
   18040 
   18041 
   18042 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
   18043 if test "x$ac_cv_func_getaddrinfo" = xyes
   18044 then :
   18045   printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
   18046 
   18047 fi
   18048 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
   18049 if test "x$ac_cv_func_getnameinfo" = xyes
   18050 then :
   18051   printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
   18052 
   18053 fi
   18054 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
   18055 if test "x$ac_cv_func_gai_strerror" = xyes
   18056 then :
   18057   printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
   18058 
   18059 fi
   18060 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
   18061 if test "x$ac_cv_func_inet_ntop" = xyes
   18062 then :
   18063   printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
   18064 
   18065 fi
   18066 
   18067 
   18068 ol_link_ipv6=no
   18069 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
   18070 	if test $ol_enable_ipv6 = yes ; then
   18071 		as_fn_error $? "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
   18072 	fi
   18073 elif test $ol_enable_ipv6 != no ; then
   18074 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
   18075 printf %s "checking INET6_ADDRSTRLEN... " >&6; }
   18076 if test ${ol_cv_inet6_addrstrlen+y}
   18077 then :
   18078   printf %s "(cached) " >&6
   18079 else $as_nop
   18080 
   18081 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18082 /* end confdefs.h.  */
   18083 
   18084 #			include <netinet/in.h>
   18085 #			ifdef INET6_ADDRSTRLEN
   18086 				__has_inet6_addrstrlen__;
   18087 #			endif
   18088 
   18089 _ACEOF
   18090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18091   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1
   18092 then :
   18093   ol_cv_inet6_addrstrlen=yes
   18094 else $as_nop
   18095   ol_cv_inet6_addrstrlen=no
   18096 fi
   18097 rm -rf conftest*
   18098 
   18099 fi
   18100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
   18101 printf "%s\n" "$ol_cv_inet6_addrstrlen" >&6; }
   18102 
   18103 
   18104 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
   18105 printf %s "checking struct sockaddr_storage... " >&6; }
   18106 if test ${ol_cv_struct_sockaddr_storage+y}
   18107 then :
   18108   printf %s "(cached) " >&6
   18109 else $as_nop
   18110 
   18111 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18112 /* end confdefs.h.  */
   18113 
   18114 #include <sys/types.h>
   18115 #include <sys/socket.h>
   18116 
   18117 int
   18118 main (void)
   18119 {
   18120 
   18121 			struct sockaddr_storage ss;
   18122 
   18123   ;
   18124   return 0;
   18125 }
   18126 _ACEOF
   18127 if ac_fn_c_try_compile "$LINENO"
   18128 then :
   18129   ol_cv_struct_sockaddr_storage=yes
   18130 else $as_nop
   18131   ol_cv_struct_sockaddr_storage=no
   18132 fi
   18133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18134 fi
   18135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
   18136 printf "%s\n" "$ol_cv_struct_sockaddr_storage" >&6; }
   18137 
   18138 	if test $ol_cv_inet6_addrstrlen = yes &&
   18139 	   test $ol_cv_struct_sockaddr_storage = yes ; then
   18140 		ol_link_ipv6=yes
   18141 	elif test $ol_enable_ipv6 = yes &&
   18142 	     test $ol_cv_inet6_addrstrlen = no ; then
   18143 		as_fn_error $? "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
   18144 	elif test $ol_enable_ipv6 = yes &&
   18145 	     test $ol_cv_struct_sockaddr_storage = no ; then
   18146 		as_fn_error $? "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
   18147 	fi
   18148 fi
   18149 
   18150 if test $ol_enable_local != no ; then
   18151 	ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   18152 if test "x$ac_cv_header_sys_un_h" = xyes
   18153 then :
   18154   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
   18155 
   18156 fi
   18157 
   18158 
   18159 	if test $ol_enable_local = auto ; then
   18160 		ol_enable_local=$ac_cv_header_sys_un_h
   18161 	elif test $ac_cv_header_sys_un_h = no ; then
   18162 		as_fn_error $? "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
   18163 	fi
   18164 fi
   18165 
   18166 
   18167 if test $ol_with_tls = yes ; then
   18168 	ol_with_tls=auto
   18169 fi
   18170 
   18171 ol_link_tls=no
   18172 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
   18173 	ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
   18174 if test "x$ac_cv_header_openssl_ssl_h" = xyes
   18175 then :
   18176   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
   18177 
   18178 fi
   18179 
   18180 
   18181 	if test $ac_cv_header_openssl_ssl_h = yes ; then
   18182 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18183 /* end confdefs.h.  */
   18184 #include <openssl/opensslv.h>
   18185 #if OPENSSL_VERSION_NUMBER < 0x1010100fL
   18186 #error "OpenSSL is too old"
   18187 #endif
   18188 _ACEOF
   18189 if ac_fn_c_try_cpp "$LINENO"
   18190 then :
   18191 
   18192 else $as_nop
   18193   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18194 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   18195 as_fn_error $? "OpenSSL 1.1.1 or newer required
   18196 See \`config.log' for more details" "$LINENO" 5; }
   18197 fi
   18198 rm -f conftest.err conftest.i conftest.$ac_ext
   18199 
   18200 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ciphersuites in -lssl" >&5
   18201 printf %s "checking for SSL_CTX_set_ciphersuites in -lssl... " >&6; }
   18202 if test ${ac_cv_lib_ssl_SSL_CTX_set_ciphersuites+y}
   18203 then :
   18204   printf %s "(cached) " >&6
   18205 else $as_nop
   18206   ac_check_lib_save_LIBS=$LIBS
   18207 LIBS="-lssl -lcrypto $LIBS"
   18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18209 /* end confdefs.h.  */
   18210 
   18211 /* Override any GCC internal prototype to avoid an error.
   18212    Use char because int might match the return type of a GCC
   18213    builtin and then its argument prototype would still apply.  */
   18214 char SSL_CTX_set_ciphersuites ();
   18215 int
   18216 main (void)
   18217 {
   18218 return SSL_CTX_set_ciphersuites ();
   18219   ;
   18220   return 0;
   18221 }
   18222 _ACEOF
   18223 if ac_fn_c_try_link "$LINENO"
   18224 then :
   18225   ac_cv_lib_ssl_SSL_CTX_set_ciphersuites=yes
   18226 else $as_nop
   18227   ac_cv_lib_ssl_SSL_CTX_set_ciphersuites=no
   18228 fi
   18229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18230     conftest$ac_exeext conftest.$ac_ext
   18231 LIBS=$ac_check_lib_save_LIBS
   18232 fi
   18233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" >&5
   18234 printf "%s\n" "$ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" >&6; }
   18235 if test "x$ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" = xyes
   18236 then :
   18237   have_openssl=yes
   18238 else $as_nop
   18239   have_openssl=no
   18240 fi
   18241 
   18242 
   18243 		if test $have_openssl = yes ; then
   18244 			ol_with_tls=openssl
   18245 			ol_link_tls=yes
   18246 			WITH_TLS_TYPE=openssl
   18247 
   18248 
   18249 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
   18250 
   18251 
   18252 			TLS_LIBS="-lssl -lcrypto"
   18253 		fi
   18254 	fi
   18255 fi
   18256 
   18257 if test $ol_link_tls = no ; then
   18258 	if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
   18259 		ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
   18260 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
   18261 then :
   18262   printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
   18263 
   18264 fi
   18265 
   18266 
   18267 		if test $ac_cv_header_gnutls_gnutls_h = yes ; then
   18268 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18269 /* end confdefs.h.  */
   18270 #include <gnutls/gnutls.h>
   18271 #if GNUTLS_VERSION_NUMBER < 0x030306
   18272 #error "GnuTLS is too old"
   18273 #endif
   18274 _ACEOF
   18275 if ac_fn_c_try_cpp "$LINENO"
   18276 then :
   18277 
   18278 else $as_nop
   18279   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18280 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   18281 as_fn_error $? "GnuTLS 3.3.6 or newer required
   18282 See \`config.log' for more details" "$LINENO" 5; }
   18283 fi
   18284 rm -f conftest.err conftest.i conftest.$ac_ext
   18285 
   18286 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
   18287 printf %s "checking for gnutls_init in -lgnutls... " >&6; }
   18288 if test ${ac_cv_lib_gnutls_gnutls_init+y}
   18289 then :
   18290   printf %s "(cached) " >&6
   18291 else $as_nop
   18292   ac_check_lib_save_LIBS=$LIBS
   18293 LIBS="-lgnutls  $LIBS"
   18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18295 /* end confdefs.h.  */
   18296 
   18297 /* Override any GCC internal prototype to avoid an error.
   18298    Use char because int might match the return type of a GCC
   18299    builtin and then its argument prototype would still apply.  */
   18300 char gnutls_init ();
   18301 int
   18302 main (void)
   18303 {
   18304 return gnutls_init ();
   18305   ;
   18306   return 0;
   18307 }
   18308 _ACEOF
   18309 if ac_fn_c_try_link "$LINENO"
   18310 then :
   18311   ac_cv_lib_gnutls_gnutls_init=yes
   18312 else $as_nop
   18313   ac_cv_lib_gnutls_gnutls_init=no
   18314 fi
   18315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18316     conftest$ac_exeext conftest.$ac_ext
   18317 LIBS=$ac_check_lib_save_LIBS
   18318 fi
   18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
   18320 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_init" >&6; }
   18321 if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes
   18322 then :
   18323   have_gnutls=yes
   18324 else $as_nop
   18325   have_gnutls=no
   18326 fi
   18327 
   18328 
   18329 			if test $have_gnutls = yes ; then
   18330 				ol_with_tls=gnutls
   18331 				ol_link_tls=yes
   18332 				WITH_TLS_TYPE=gnutls
   18333 
   18334 				TLS_LIBS="-lgnutls"
   18335 
   18336 
   18337 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
   18338 
   18339 			fi
   18340 		fi
   18341 	fi
   18342 fi
   18343 
   18344 WITH_TLS=no
   18345 if test $ol_link_tls = yes ; then
   18346 
   18347 printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h
   18348 
   18349 	WITH_TLS=yes
   18350 elif test $ol_with_tls = auto ; then
   18351 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
   18352 printf "%s\n" "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
   18353 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
   18354 printf "%s\n" "$as_me: WARNING: TLS data protection not supported!" >&2;}
   18355 elif test $ol_with_tls != no ; then
   18356 	as_fn_error $? "Could not locate TLS/SSL package" "$LINENO" 5
   18357 else
   18358 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
   18359 printf "%s\n" "$as_me: WARNING: TLS data protection not supported!" >&2;}
   18360 fi
   18361 
   18362 
   18363 ol_link_threads=no
   18364 
   18365 case $ol_with_threads in auto | yes | nt)
   18366 
   18367 
   18368 	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
   18369 if test "x$ac_cv_func__beginthread" = xyes
   18370 then :
   18371 
   18372 fi
   18373 
   18374 
   18375 	if test $ac_cv_func__beginthread = yes ; then
   18376 
   18377 printf "%s\n" "#define HAVE_NT_THREADS 1" >>confdefs.h
   18378 
   18379 		ol_cv_nt_threads=yes
   18380 	fi
   18381 
   18382 
   18383 	if test "$ol_cv_nt_threads" = yes ; then
   18384 		ol_link_threads=nt
   18385 		ol_with_threads=found
   18386 		ol_with_yielding_select=yes
   18387 
   18388 
   18389 printf "%s\n" "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
   18390 
   18391 
   18392 printf "%s\n" "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
   18393 
   18394 	fi
   18395 
   18396 	if test $ol_with_threads = nt ; then
   18397 		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
   18398 	fi
   18399 	;;
   18400 esac
   18401 
   18402 case $ol_with_threads in auto | yes | posix)
   18403 
   18404 	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   18405 if test "x$ac_cv_header_pthread_h" = xyes
   18406 then :
   18407   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
   18408 
   18409 fi
   18410 
   18411 
   18412 	if test $ac_cv_header_pthread_h = yes ; then
   18413 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
   18414 printf %s "checking POSIX thread version... " >&6; }
   18415 if test ${ol_cv_pthread_version+y}
   18416 then :
   18417   printf %s "(cached) " >&6
   18418 else $as_nop
   18419 
   18420 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18421 /* end confdefs.h.  */
   18422 
   18423 #		include <pthread.h>
   18424 
   18425 int
   18426 main (void)
   18427 {
   18428 
   18429 		int i = PTHREAD_CREATE_JOINABLE;
   18430 
   18431   ;
   18432   return 0;
   18433 }
   18434 _ACEOF
   18435 if ac_fn_c_try_compile "$LINENO"
   18436 then :
   18437 
   18438 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18439 /* end confdefs.h.  */
   18440 #include <pthread.h>
   18441 
   18442 _ACEOF
   18443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18444   $EGREP "pthread_detach" >/dev/null 2>&1
   18445 then :
   18446   ol_cv_pthread_version=10
   18447 else $as_nop
   18448   ol_cv_pthread_version=8
   18449 fi
   18450 rm -rf conftest*
   18451 
   18452 else $as_nop
   18453 
   18454 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18455 /* end confdefs.h.  */
   18456 
   18457 #		include <pthread.h>
   18458 #		ifdef PTHREAD_CREATE_UNDETACHED
   18459 		draft7
   18460 #		endif
   18461 
   18462 _ACEOF
   18463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18464   $EGREP "draft7" >/dev/null 2>&1
   18465 then :
   18466   ol_cv_pthread_version=7
   18467 else $as_nop
   18468 
   18469 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18470 /* end confdefs.h.  */
   18471 #include <pthread.h>
   18472 
   18473 _ACEOF
   18474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18475   $EGREP "pthread_attr_init" >/dev/null 2>&1
   18476 then :
   18477   ol_cv_pthread_version=6
   18478 else $as_nop
   18479 
   18480 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18481 /* end confdefs.h.  */
   18482 
   18483 #		include <pthread.h>
   18484 #ifdef		PTHREAD_MUTEX_INITIALIZER
   18485 		draft5
   18486 #endif
   18487 
   18488 _ACEOF
   18489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18490   $EGREP "draft5" >/dev/null 2>&1
   18491 then :
   18492   ol_cv_pthread_version=5
   18493 else $as_nop
   18494   ol_cv_pthread_version=4
   18495 fi
   18496 rm -rf conftest*
   18497 
   18498 fi
   18499 rm -rf conftest*
   18500 
   18501 fi
   18502 rm -rf conftest*
   18503 
   18504 fi
   18505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18506 
   18507 fi
   18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
   18509 printf "%s\n" "$ol_cv_pthread_version" >&6; }
   18510 
   18511 
   18512 		if test $ol_cv_pthread_version != 0 ; then
   18513 
   18514 printf "%s\n" "#define HAVE_PTHREADS $ol_cv_pthread_version" >>confdefs.h
   18515 
   18516 		else
   18517 			as_fn_error $? "unknown pthread version" "$LINENO" 5
   18518 		fi
   18519 
   18520 		# consider threads found
   18521 		ol_with_threads=found
   18522 
   18523 
   18524 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
   18525 printf %s "checking for LinuxThreads pthread.h... " >&6; }
   18526 if test ${ol_cv_header_linux_threads+y}
   18527 then :
   18528   printf %s "(cached) " >&6
   18529 else $as_nop
   18530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18531 /* end confdefs.h.  */
   18532 #include <pthread.h>
   18533 _ACEOF
   18534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18535   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
   18536 then :
   18537   ol_cv_header_linux_threads=yes
   18538 else $as_nop
   18539   ol_cv_header_linux_threads=no
   18540 fi
   18541 rm -rf conftest*
   18542 
   18543 
   18544 fi
   18545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
   18546 printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
   18547 	if test $ol_cv_header_linux_threads = yes; then
   18548 
   18549 printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
   18550 
   18551 	fi
   18552 
   18553 
   18554 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
   18555 printf %s "checking for GNU Pth pthread.h... " >&6; }
   18556 if test ${ol_cv_header_gnu_pth_pthread_h+y}
   18557 then :
   18558   printf %s "(cached) " >&6
   18559 else $as_nop
   18560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18561 /* end confdefs.h.  */
   18562 #include <pthread.h>
   18563 #ifdef _POSIX_THREAD_IS_GNU_PTH
   18564 	__gnu_pth__;
   18565 #endif
   18566 
   18567 _ACEOF
   18568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18569   $EGREP "__gnu_pth__" >/dev/null 2>&1
   18570 then :
   18571   ol_cv_header_gnu_pth_pthread_h=yes
   18572 else $as_nop
   18573   ol_cv_header_gnu_pth_pthread_h=no
   18574 fi
   18575 rm -rf conftest*
   18576 
   18577 
   18578 fi
   18579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
   18580 printf "%s\n" "$ol_cv_header_gnu_pth_pthread_h" >&6; }
   18581 
   18582 
   18583 		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
   18584 			ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   18585 if test "x$ac_cv_header_sched_h" = xyes
   18586 then :
   18587   printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
   18588 
   18589 fi
   18590 
   18591 		fi
   18592 
   18593 
   18594 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
   18595 printf %s "checking for pthread_create in default libraries... " >&6; }
   18596 if test ${ol_cv_pthread_create+y}
   18597 then :
   18598   printf %s "(cached) " >&6
   18599 else $as_nop
   18600 
   18601 			if test "$cross_compiling" = yes
   18602 then :
   18603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18604 /* end confdefs.h.  */
   18605 OL_PTHREAD_TEST_INCLUDES
   18606 int
   18607 main (void)
   18608 {
   18609 OL_PTHREAD_TEST_FUNCTION
   18610   ;
   18611   return 0;
   18612 }
   18613 _ACEOF
   18614 if ac_fn_c_try_link "$LINENO"
   18615 then :
   18616   ol_cv_pthread_create=yes
   18617 else $as_nop
   18618   ol_cv_pthread_create=no
   18619 fi
   18620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18621     conftest$ac_exeext conftest.$ac_ext
   18622 else $as_nop
   18623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18624 /* end confdefs.h.  */
   18625 
   18626 /* pthread test headers */
   18627 #include <pthread.h>
   18628 #if HAVE_PTHREADS < 7
   18629 #include <errno.h>
   18630 #endif
   18631 #ifndef NULL
   18632 #define NULL (void*)0
   18633 #endif
   18634 
   18635 #ifdef __STDC__
   18636 static void *task(void *p)
   18637 #else
   18638 static void *task(p)
   18639 	void *p;
   18640 #endif
   18641 {
   18642 	return (void *) (p == NULL);
   18643 }
   18644 
   18645 
   18646 #ifdef __STDC__
   18647 int main(int argc, char **argv)
   18648 #else
   18649 int main(argc, argv)
   18650 	int argc;
   18651 	char **argv;
   18652 #endif
   18653 {
   18654 
   18655 	/* pthread test function */
   18656 #ifndef PTHREAD_CREATE_DETACHED
   18657 #define	PTHREAD_CREATE_DETACHED	1
   18658 #endif
   18659 	pthread_t t;
   18660 	int status;
   18661 	int detach = PTHREAD_CREATE_DETACHED;
   18662 
   18663 #if HAVE_PTHREADS > 4
   18664 	/* Final pthreads */
   18665 	pthread_attr_t attr;
   18666 
   18667 	status = pthread_attr_init(&attr);
   18668 	if( status ) return status;
   18669 
   18670 #if HAVE_PTHREADS < 7
   18671 	status = pthread_attr_setdetachstate(&attr, &detach);
   18672 	if( status < 0 ) status = errno;
   18673 #else
   18674 	status = pthread_attr_setdetachstate(&attr, detach);
   18675 #endif
   18676 	if( status ) return status;
   18677 	status = pthread_create( &t, &attr, task, NULL );
   18678 #if HAVE_PTHREADS < 7
   18679 	if( status < 0 ) status = errno;
   18680 #endif
   18681 	if( status ) return status;
   18682 #else
   18683 	/* Draft 4 pthreads */
   18684 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   18685 	if( status ) return errno;
   18686 
   18687 	/* give thread a chance to complete */
   18688 	/* it should remain joinable and hence detachable */
   18689 	sleep( 1 );
   18690 
   18691 	status = pthread_detach( &t );
   18692 	if( status ) return errno;
   18693 #endif
   18694 
   18695 #ifdef HAVE_LINUX_THREADS
   18696 	pthread_kill_other_threads_np();
   18697 #endif
   18698 
   18699 	return 0;
   18700 
   18701 }
   18702 
   18703 _ACEOF
   18704 if ac_fn_c_try_run "$LINENO"
   18705 then :
   18706   ol_cv_pthread_create=yes
   18707 else $as_nop
   18708   ol_cv_pthread_create=no
   18709 fi
   18710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18711   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18712 fi
   18713 
   18714 fi
   18715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
   18716 printf "%s\n" "$ol_cv_pthread_create" >&6; }
   18717 
   18718 		if test $ol_cv_pthread_create != no ; then
   18719 			ol_link_threads=posix
   18720 			ol_link_pthreads=""
   18721 		fi
   18722 
   18723 		# Pthread try link: -kthread (ol_cv_pthread_kthread)
   18724 if test "$ol_link_threads" = no ; then
   18725 	# try -kthread
   18726 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
   18727 printf %s "checking for pthread link with -kthread... " >&6; }
   18728 if test ${ol_cv_pthread_kthread+y}
   18729 then :
   18730   printf %s "(cached) " >&6
   18731 else $as_nop
   18732 
   18733 		# save the flags
   18734 		ol_LIBS="$LIBS"
   18735 		LIBS="-kthread $LIBS"
   18736 
   18737 		if test "$cross_compiling" = yes
   18738 then :
   18739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18740 /* end confdefs.h.  */
   18741 
   18742 /* pthread test headers */
   18743 #include <pthread.h>
   18744 #if HAVE_PTHREADS < 7
   18745 #include <errno.h>
   18746 #endif
   18747 #ifndef NULL
   18748 #define NULL (void*)0
   18749 #endif
   18750 
   18751 #ifdef __STDC__
   18752 static void *task(void *p)
   18753 #else
   18754 static void *task(p)
   18755 	void *p;
   18756 #endif
   18757 {
   18758 	return (void *) (p == NULL);
   18759 }
   18760 
   18761 int
   18762 main (void)
   18763 {
   18764 
   18765 	/* pthread test function */
   18766 #ifndef PTHREAD_CREATE_DETACHED
   18767 #define	PTHREAD_CREATE_DETACHED	1
   18768 #endif
   18769 	pthread_t t;
   18770 	int status;
   18771 	int detach = PTHREAD_CREATE_DETACHED;
   18772 
   18773 #if HAVE_PTHREADS > 4
   18774 	/* Final pthreads */
   18775 	pthread_attr_t attr;
   18776 
   18777 	status = pthread_attr_init(&attr);
   18778 	if( status ) return status;
   18779 
   18780 #if HAVE_PTHREADS < 7
   18781 	status = pthread_attr_setdetachstate(&attr, &detach);
   18782 	if( status < 0 ) status = errno;
   18783 #else
   18784 	status = pthread_attr_setdetachstate(&attr, detach);
   18785 #endif
   18786 	if( status ) return status;
   18787 	status = pthread_create( &t, &attr, task, NULL );
   18788 #if HAVE_PTHREADS < 7
   18789 	if( status < 0 ) status = errno;
   18790 #endif
   18791 	if( status ) return status;
   18792 #else
   18793 	/* Draft 4 pthreads */
   18794 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   18795 	if( status ) return errno;
   18796 
   18797 	/* give thread a chance to complete */
   18798 	/* it should remain joinable and hence detachable */
   18799 	sleep( 1 );
   18800 
   18801 	status = pthread_detach( &t );
   18802 	if( status ) return errno;
   18803 #endif
   18804 
   18805 #ifdef HAVE_LINUX_THREADS
   18806 	pthread_kill_other_threads_np();
   18807 #endif
   18808 
   18809 	return 0;
   18810 
   18811   ;
   18812   return 0;
   18813 }
   18814 _ACEOF
   18815 if ac_fn_c_try_link "$LINENO"
   18816 then :
   18817   ol_cv_pthread_kthread=yes
   18818 else $as_nop
   18819   ol_cv_pthread_kthread=no
   18820 fi
   18821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18822     conftest$ac_exeext conftest.$ac_ext
   18823 else $as_nop
   18824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18825 /* end confdefs.h.  */
   18826 
   18827 /* pthread test headers */
   18828 #include <pthread.h>
   18829 #if HAVE_PTHREADS < 7
   18830 #include <errno.h>
   18831 #endif
   18832 #ifndef NULL
   18833 #define NULL (void*)0
   18834 #endif
   18835 
   18836 #ifdef __STDC__
   18837 static void *task(void *p)
   18838 #else
   18839 static void *task(p)
   18840 	void *p;
   18841 #endif
   18842 {
   18843 	return (void *) (p == NULL);
   18844 }
   18845 
   18846 
   18847 #ifdef __STDC__
   18848 int main(int argc, char **argv)
   18849 #else
   18850 int main(argc, argv)
   18851 	int argc;
   18852 	char **argv;
   18853 #endif
   18854 {
   18855 
   18856 	/* pthread test function */
   18857 #ifndef PTHREAD_CREATE_DETACHED
   18858 #define	PTHREAD_CREATE_DETACHED	1
   18859 #endif
   18860 	pthread_t t;
   18861 	int status;
   18862 	int detach = PTHREAD_CREATE_DETACHED;
   18863 
   18864 #if HAVE_PTHREADS > 4
   18865 	/* Final pthreads */
   18866 	pthread_attr_t attr;
   18867 
   18868 	status = pthread_attr_init(&attr);
   18869 	if( status ) return status;
   18870 
   18871 #if HAVE_PTHREADS < 7
   18872 	status = pthread_attr_setdetachstate(&attr, &detach);
   18873 	if( status < 0 ) status = errno;
   18874 #else
   18875 	status = pthread_attr_setdetachstate(&attr, detach);
   18876 #endif
   18877 	if( status ) return status;
   18878 	status = pthread_create( &t, &attr, task, NULL );
   18879 #if HAVE_PTHREADS < 7
   18880 	if( status < 0 ) status = errno;
   18881 #endif
   18882 	if( status ) return status;
   18883 #else
   18884 	/* Draft 4 pthreads */
   18885 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   18886 	if( status ) return errno;
   18887 
   18888 	/* give thread a chance to complete */
   18889 	/* it should remain joinable and hence detachable */
   18890 	sleep( 1 );
   18891 
   18892 	status = pthread_detach( &t );
   18893 	if( status ) return errno;
   18894 #endif
   18895 
   18896 #ifdef HAVE_LINUX_THREADS
   18897 	pthread_kill_other_threads_np();
   18898 #endif
   18899 
   18900 	return 0;
   18901 
   18902 }
   18903 
   18904 _ACEOF
   18905 if ac_fn_c_try_run "$LINENO"
   18906 then :
   18907   ol_cv_pthread_kthread=yes
   18908 else $as_nop
   18909   ol_cv_pthread_kthread=no
   18910 fi
   18911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18912   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18913 fi
   18914 
   18915 
   18916 		# restore the LIBS
   18917 		LIBS="$ol_LIBS"
   18918 
   18919 fi
   18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
   18921 printf "%s\n" "$ol_cv_pthread_kthread" >&6; }
   18922 
   18923 	if test $ol_cv_pthread_kthread = yes ; then
   18924 		ol_link_pthreads="-kthread"
   18925 		ol_link_threads=posix
   18926 	fi
   18927 fi
   18928 
   18929 		# Pthread try link: -pthread (ol_cv_pthread_pthread)
   18930 if test "$ol_link_threads" = no ; then
   18931 	# try -pthread
   18932 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
   18933 printf %s "checking for pthread link with -pthread... " >&6; }
   18934 if test ${ol_cv_pthread_pthread+y}
   18935 then :
   18936   printf %s "(cached) " >&6
   18937 else $as_nop
   18938 
   18939 		# save the flags
   18940 		ol_LIBS="$LIBS"
   18941 		LIBS="-pthread $LIBS"
   18942 
   18943 		if test "$cross_compiling" = yes
   18944 then :
   18945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18946 /* end confdefs.h.  */
   18947 
   18948 /* pthread test headers */
   18949 #include <pthread.h>
   18950 #if HAVE_PTHREADS < 7
   18951 #include <errno.h>
   18952 #endif
   18953 #ifndef NULL
   18954 #define NULL (void*)0
   18955 #endif
   18956 
   18957 #ifdef __STDC__
   18958 static void *task(void *p)
   18959 #else
   18960 static void *task(p)
   18961 	void *p;
   18962 #endif
   18963 {
   18964 	return (void *) (p == NULL);
   18965 }
   18966 
   18967 int
   18968 main (void)
   18969 {
   18970 
   18971 	/* pthread test function */
   18972 #ifndef PTHREAD_CREATE_DETACHED
   18973 #define	PTHREAD_CREATE_DETACHED	1
   18974 #endif
   18975 	pthread_t t;
   18976 	int status;
   18977 	int detach = PTHREAD_CREATE_DETACHED;
   18978 
   18979 #if HAVE_PTHREADS > 4
   18980 	/* Final pthreads */
   18981 	pthread_attr_t attr;
   18982 
   18983 	status = pthread_attr_init(&attr);
   18984 	if( status ) return status;
   18985 
   18986 #if HAVE_PTHREADS < 7
   18987 	status = pthread_attr_setdetachstate(&attr, &detach);
   18988 	if( status < 0 ) status = errno;
   18989 #else
   18990 	status = pthread_attr_setdetachstate(&attr, detach);
   18991 #endif
   18992 	if( status ) return status;
   18993 	status = pthread_create( &t, &attr, task, NULL );
   18994 #if HAVE_PTHREADS < 7
   18995 	if( status < 0 ) status = errno;
   18996 #endif
   18997 	if( status ) return status;
   18998 #else
   18999 	/* Draft 4 pthreads */
   19000 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19001 	if( status ) return errno;
   19002 
   19003 	/* give thread a chance to complete */
   19004 	/* it should remain joinable and hence detachable */
   19005 	sleep( 1 );
   19006 
   19007 	status = pthread_detach( &t );
   19008 	if( status ) return errno;
   19009 #endif
   19010 
   19011 #ifdef HAVE_LINUX_THREADS
   19012 	pthread_kill_other_threads_np();
   19013 #endif
   19014 
   19015 	return 0;
   19016 
   19017   ;
   19018   return 0;
   19019 }
   19020 _ACEOF
   19021 if ac_fn_c_try_link "$LINENO"
   19022 then :
   19023   ol_cv_pthread_pthread=yes
   19024 else $as_nop
   19025   ol_cv_pthread_pthread=no
   19026 fi
   19027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19028     conftest$ac_exeext conftest.$ac_ext
   19029 else $as_nop
   19030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19031 /* end confdefs.h.  */
   19032 
   19033 /* pthread test headers */
   19034 #include <pthread.h>
   19035 #if HAVE_PTHREADS < 7
   19036 #include <errno.h>
   19037 #endif
   19038 #ifndef NULL
   19039 #define NULL (void*)0
   19040 #endif
   19041 
   19042 #ifdef __STDC__
   19043 static void *task(void *p)
   19044 #else
   19045 static void *task(p)
   19046 	void *p;
   19047 #endif
   19048 {
   19049 	return (void *) (p == NULL);
   19050 }
   19051 
   19052 
   19053 #ifdef __STDC__
   19054 int main(int argc, char **argv)
   19055 #else
   19056 int main(argc, argv)
   19057 	int argc;
   19058 	char **argv;
   19059 #endif
   19060 {
   19061 
   19062 	/* pthread test function */
   19063 #ifndef PTHREAD_CREATE_DETACHED
   19064 #define	PTHREAD_CREATE_DETACHED	1
   19065 #endif
   19066 	pthread_t t;
   19067 	int status;
   19068 	int detach = PTHREAD_CREATE_DETACHED;
   19069 
   19070 #if HAVE_PTHREADS > 4
   19071 	/* Final pthreads */
   19072 	pthread_attr_t attr;
   19073 
   19074 	status = pthread_attr_init(&attr);
   19075 	if( status ) return status;
   19076 
   19077 #if HAVE_PTHREADS < 7
   19078 	status = pthread_attr_setdetachstate(&attr, &detach);
   19079 	if( status < 0 ) status = errno;
   19080 #else
   19081 	status = pthread_attr_setdetachstate(&attr, detach);
   19082 #endif
   19083 	if( status ) return status;
   19084 	status = pthread_create( &t, &attr, task, NULL );
   19085 #if HAVE_PTHREADS < 7
   19086 	if( status < 0 ) status = errno;
   19087 #endif
   19088 	if( status ) return status;
   19089 #else
   19090 	/* Draft 4 pthreads */
   19091 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19092 	if( status ) return errno;
   19093 
   19094 	/* give thread a chance to complete */
   19095 	/* it should remain joinable and hence detachable */
   19096 	sleep( 1 );
   19097 
   19098 	status = pthread_detach( &t );
   19099 	if( status ) return errno;
   19100 #endif
   19101 
   19102 #ifdef HAVE_LINUX_THREADS
   19103 	pthread_kill_other_threads_np();
   19104 #endif
   19105 
   19106 	return 0;
   19107 
   19108 }
   19109 
   19110 _ACEOF
   19111 if ac_fn_c_try_run "$LINENO"
   19112 then :
   19113   ol_cv_pthread_pthread=yes
   19114 else $as_nop
   19115   ol_cv_pthread_pthread=no
   19116 fi
   19117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19118   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19119 fi
   19120 
   19121 
   19122 		# restore the LIBS
   19123 		LIBS="$ol_LIBS"
   19124 
   19125 fi
   19126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
   19127 printf "%s\n" "$ol_cv_pthread_pthread" >&6; }
   19128 
   19129 	if test $ol_cv_pthread_pthread = yes ; then
   19130 		ol_link_pthreads="-pthread"
   19131 		ol_link_threads=posix
   19132 	fi
   19133 fi
   19134 
   19135 		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
   19136 if test "$ol_link_threads" = no ; then
   19137 	# try -pthreads
   19138 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
   19139 printf %s "checking for pthread link with -pthreads... " >&6; }
   19140 if test ${ol_cv_pthread_pthreads+y}
   19141 then :
   19142   printf %s "(cached) " >&6
   19143 else $as_nop
   19144 
   19145 		# save the flags
   19146 		ol_LIBS="$LIBS"
   19147 		LIBS="-pthreads $LIBS"
   19148 
   19149 		if test "$cross_compiling" = yes
   19150 then :
   19151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19152 /* end confdefs.h.  */
   19153 
   19154 /* pthread test headers */
   19155 #include <pthread.h>
   19156 #if HAVE_PTHREADS < 7
   19157 #include <errno.h>
   19158 #endif
   19159 #ifndef NULL
   19160 #define NULL (void*)0
   19161 #endif
   19162 
   19163 #ifdef __STDC__
   19164 static void *task(void *p)
   19165 #else
   19166 static void *task(p)
   19167 	void *p;
   19168 #endif
   19169 {
   19170 	return (void *) (p == NULL);
   19171 }
   19172 
   19173 int
   19174 main (void)
   19175 {
   19176 
   19177 	/* pthread test function */
   19178 #ifndef PTHREAD_CREATE_DETACHED
   19179 #define	PTHREAD_CREATE_DETACHED	1
   19180 #endif
   19181 	pthread_t t;
   19182 	int status;
   19183 	int detach = PTHREAD_CREATE_DETACHED;
   19184 
   19185 #if HAVE_PTHREADS > 4
   19186 	/* Final pthreads */
   19187 	pthread_attr_t attr;
   19188 
   19189 	status = pthread_attr_init(&attr);
   19190 	if( status ) return status;
   19191 
   19192 #if HAVE_PTHREADS < 7
   19193 	status = pthread_attr_setdetachstate(&attr, &detach);
   19194 	if( status < 0 ) status = errno;
   19195 #else
   19196 	status = pthread_attr_setdetachstate(&attr, detach);
   19197 #endif
   19198 	if( status ) return status;
   19199 	status = pthread_create( &t, &attr, task, NULL );
   19200 #if HAVE_PTHREADS < 7
   19201 	if( status < 0 ) status = errno;
   19202 #endif
   19203 	if( status ) return status;
   19204 #else
   19205 	/* Draft 4 pthreads */
   19206 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19207 	if( status ) return errno;
   19208 
   19209 	/* give thread a chance to complete */
   19210 	/* it should remain joinable and hence detachable */
   19211 	sleep( 1 );
   19212 
   19213 	status = pthread_detach( &t );
   19214 	if( status ) return errno;
   19215 #endif
   19216 
   19217 #ifdef HAVE_LINUX_THREADS
   19218 	pthread_kill_other_threads_np();
   19219 #endif
   19220 
   19221 	return 0;
   19222 
   19223   ;
   19224   return 0;
   19225 }
   19226 _ACEOF
   19227 if ac_fn_c_try_link "$LINENO"
   19228 then :
   19229   ol_cv_pthread_pthreads=yes
   19230 else $as_nop
   19231   ol_cv_pthread_pthreads=no
   19232 fi
   19233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19234     conftest$ac_exeext conftest.$ac_ext
   19235 else $as_nop
   19236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19237 /* end confdefs.h.  */
   19238 
   19239 /* pthread test headers */
   19240 #include <pthread.h>
   19241 #if HAVE_PTHREADS < 7
   19242 #include <errno.h>
   19243 #endif
   19244 #ifndef NULL
   19245 #define NULL (void*)0
   19246 #endif
   19247 
   19248 #ifdef __STDC__
   19249 static void *task(void *p)
   19250 #else
   19251 static void *task(p)
   19252 	void *p;
   19253 #endif
   19254 {
   19255 	return (void *) (p == NULL);
   19256 }
   19257 
   19258 
   19259 #ifdef __STDC__
   19260 int main(int argc, char **argv)
   19261 #else
   19262 int main(argc, argv)
   19263 	int argc;
   19264 	char **argv;
   19265 #endif
   19266 {
   19267 
   19268 	/* pthread test function */
   19269 #ifndef PTHREAD_CREATE_DETACHED
   19270 #define	PTHREAD_CREATE_DETACHED	1
   19271 #endif
   19272 	pthread_t t;
   19273 	int status;
   19274 	int detach = PTHREAD_CREATE_DETACHED;
   19275 
   19276 #if HAVE_PTHREADS > 4
   19277 	/* Final pthreads */
   19278 	pthread_attr_t attr;
   19279 
   19280 	status = pthread_attr_init(&attr);
   19281 	if( status ) return status;
   19282 
   19283 #if HAVE_PTHREADS < 7
   19284 	status = pthread_attr_setdetachstate(&attr, &detach);
   19285 	if( status < 0 ) status = errno;
   19286 #else
   19287 	status = pthread_attr_setdetachstate(&attr, detach);
   19288 #endif
   19289 	if( status ) return status;
   19290 	status = pthread_create( &t, &attr, task, NULL );
   19291 #if HAVE_PTHREADS < 7
   19292 	if( status < 0 ) status = errno;
   19293 #endif
   19294 	if( status ) return status;
   19295 #else
   19296 	/* Draft 4 pthreads */
   19297 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19298 	if( status ) return errno;
   19299 
   19300 	/* give thread a chance to complete */
   19301 	/* it should remain joinable and hence detachable */
   19302 	sleep( 1 );
   19303 
   19304 	status = pthread_detach( &t );
   19305 	if( status ) return errno;
   19306 #endif
   19307 
   19308 #ifdef HAVE_LINUX_THREADS
   19309 	pthread_kill_other_threads_np();
   19310 #endif
   19311 
   19312 	return 0;
   19313 
   19314 }
   19315 
   19316 _ACEOF
   19317 if ac_fn_c_try_run "$LINENO"
   19318 then :
   19319   ol_cv_pthread_pthreads=yes
   19320 else $as_nop
   19321   ol_cv_pthread_pthreads=no
   19322 fi
   19323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19324   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19325 fi
   19326 
   19327 
   19328 		# restore the LIBS
   19329 		LIBS="$ol_LIBS"
   19330 
   19331 fi
   19332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
   19333 printf "%s\n" "$ol_cv_pthread_pthreads" >&6; }
   19334 
   19335 	if test $ol_cv_pthread_pthreads = yes ; then
   19336 		ol_link_pthreads="-pthreads"
   19337 		ol_link_threads=posix
   19338 	fi
   19339 fi
   19340 
   19341 		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
   19342 if test "$ol_link_threads" = no ; then
   19343 	# try -mthreads
   19344 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
   19345 printf %s "checking for pthread link with -mthreads... " >&6; }
   19346 if test ${ol_cv_pthread_mthreads+y}
   19347 then :
   19348   printf %s "(cached) " >&6
   19349 else $as_nop
   19350 
   19351 		# save the flags
   19352 		ol_LIBS="$LIBS"
   19353 		LIBS="-mthreads $LIBS"
   19354 
   19355 		if test "$cross_compiling" = yes
   19356 then :
   19357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19358 /* end confdefs.h.  */
   19359 
   19360 /* pthread test headers */
   19361 #include <pthread.h>
   19362 #if HAVE_PTHREADS < 7
   19363 #include <errno.h>
   19364 #endif
   19365 #ifndef NULL
   19366 #define NULL (void*)0
   19367 #endif
   19368 
   19369 #ifdef __STDC__
   19370 static void *task(void *p)
   19371 #else
   19372 static void *task(p)
   19373 	void *p;
   19374 #endif
   19375 {
   19376 	return (void *) (p == NULL);
   19377 }
   19378 
   19379 int
   19380 main (void)
   19381 {
   19382 
   19383 	/* pthread test function */
   19384 #ifndef PTHREAD_CREATE_DETACHED
   19385 #define	PTHREAD_CREATE_DETACHED	1
   19386 #endif
   19387 	pthread_t t;
   19388 	int status;
   19389 	int detach = PTHREAD_CREATE_DETACHED;
   19390 
   19391 #if HAVE_PTHREADS > 4
   19392 	/* Final pthreads */
   19393 	pthread_attr_t attr;
   19394 
   19395 	status = pthread_attr_init(&attr);
   19396 	if( status ) return status;
   19397 
   19398 #if HAVE_PTHREADS < 7
   19399 	status = pthread_attr_setdetachstate(&attr, &detach);
   19400 	if( status < 0 ) status = errno;
   19401 #else
   19402 	status = pthread_attr_setdetachstate(&attr, detach);
   19403 #endif
   19404 	if( status ) return status;
   19405 	status = pthread_create( &t, &attr, task, NULL );
   19406 #if HAVE_PTHREADS < 7
   19407 	if( status < 0 ) status = errno;
   19408 #endif
   19409 	if( status ) return status;
   19410 #else
   19411 	/* Draft 4 pthreads */
   19412 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19413 	if( status ) return errno;
   19414 
   19415 	/* give thread a chance to complete */
   19416 	/* it should remain joinable and hence detachable */
   19417 	sleep( 1 );
   19418 
   19419 	status = pthread_detach( &t );
   19420 	if( status ) return errno;
   19421 #endif
   19422 
   19423 #ifdef HAVE_LINUX_THREADS
   19424 	pthread_kill_other_threads_np();
   19425 #endif
   19426 
   19427 	return 0;
   19428 
   19429   ;
   19430   return 0;
   19431 }
   19432 _ACEOF
   19433 if ac_fn_c_try_link "$LINENO"
   19434 then :
   19435   ol_cv_pthread_mthreads=yes
   19436 else $as_nop
   19437   ol_cv_pthread_mthreads=no
   19438 fi
   19439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19440     conftest$ac_exeext conftest.$ac_ext
   19441 else $as_nop
   19442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19443 /* end confdefs.h.  */
   19444 
   19445 /* pthread test headers */
   19446 #include <pthread.h>
   19447 #if HAVE_PTHREADS < 7
   19448 #include <errno.h>
   19449 #endif
   19450 #ifndef NULL
   19451 #define NULL (void*)0
   19452 #endif
   19453 
   19454 #ifdef __STDC__
   19455 static void *task(void *p)
   19456 #else
   19457 static void *task(p)
   19458 	void *p;
   19459 #endif
   19460 {
   19461 	return (void *) (p == NULL);
   19462 }
   19463 
   19464 
   19465 #ifdef __STDC__
   19466 int main(int argc, char **argv)
   19467 #else
   19468 int main(argc, argv)
   19469 	int argc;
   19470 	char **argv;
   19471 #endif
   19472 {
   19473 
   19474 	/* pthread test function */
   19475 #ifndef PTHREAD_CREATE_DETACHED
   19476 #define	PTHREAD_CREATE_DETACHED	1
   19477 #endif
   19478 	pthread_t t;
   19479 	int status;
   19480 	int detach = PTHREAD_CREATE_DETACHED;
   19481 
   19482 #if HAVE_PTHREADS > 4
   19483 	/* Final pthreads */
   19484 	pthread_attr_t attr;
   19485 
   19486 	status = pthread_attr_init(&attr);
   19487 	if( status ) return status;
   19488 
   19489 #if HAVE_PTHREADS < 7
   19490 	status = pthread_attr_setdetachstate(&attr, &detach);
   19491 	if( status < 0 ) status = errno;
   19492 #else
   19493 	status = pthread_attr_setdetachstate(&attr, detach);
   19494 #endif
   19495 	if( status ) return status;
   19496 	status = pthread_create( &t, &attr, task, NULL );
   19497 #if HAVE_PTHREADS < 7
   19498 	if( status < 0 ) status = errno;
   19499 #endif
   19500 	if( status ) return status;
   19501 #else
   19502 	/* Draft 4 pthreads */
   19503 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19504 	if( status ) return errno;
   19505 
   19506 	/* give thread a chance to complete */
   19507 	/* it should remain joinable and hence detachable */
   19508 	sleep( 1 );
   19509 
   19510 	status = pthread_detach( &t );
   19511 	if( status ) return errno;
   19512 #endif
   19513 
   19514 #ifdef HAVE_LINUX_THREADS
   19515 	pthread_kill_other_threads_np();
   19516 #endif
   19517 
   19518 	return 0;
   19519 
   19520 }
   19521 
   19522 _ACEOF
   19523 if ac_fn_c_try_run "$LINENO"
   19524 then :
   19525   ol_cv_pthread_mthreads=yes
   19526 else $as_nop
   19527   ol_cv_pthread_mthreads=no
   19528 fi
   19529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19530   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19531 fi
   19532 
   19533 
   19534 		# restore the LIBS
   19535 		LIBS="$ol_LIBS"
   19536 
   19537 fi
   19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
   19539 printf "%s\n" "$ol_cv_pthread_mthreads" >&6; }
   19540 
   19541 	if test $ol_cv_pthread_mthreads = yes ; then
   19542 		ol_link_pthreads="-mthreads"
   19543 		ol_link_threads=posix
   19544 	fi
   19545 fi
   19546 
   19547 		# Pthread try link: -thread (ol_cv_pthread_thread)
   19548 if test "$ol_link_threads" = no ; then
   19549 	# try -thread
   19550 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
   19551 printf %s "checking for pthread link with -thread... " >&6; }
   19552 if test ${ol_cv_pthread_thread+y}
   19553 then :
   19554   printf %s "(cached) " >&6
   19555 else $as_nop
   19556 
   19557 		# save the flags
   19558 		ol_LIBS="$LIBS"
   19559 		LIBS="-thread $LIBS"
   19560 
   19561 		if test "$cross_compiling" = yes
   19562 then :
   19563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19564 /* end confdefs.h.  */
   19565 
   19566 /* pthread test headers */
   19567 #include <pthread.h>
   19568 #if HAVE_PTHREADS < 7
   19569 #include <errno.h>
   19570 #endif
   19571 #ifndef NULL
   19572 #define NULL (void*)0
   19573 #endif
   19574 
   19575 #ifdef __STDC__
   19576 static void *task(void *p)
   19577 #else
   19578 static void *task(p)
   19579 	void *p;
   19580 #endif
   19581 {
   19582 	return (void *) (p == NULL);
   19583 }
   19584 
   19585 int
   19586 main (void)
   19587 {
   19588 
   19589 	/* pthread test function */
   19590 #ifndef PTHREAD_CREATE_DETACHED
   19591 #define	PTHREAD_CREATE_DETACHED	1
   19592 #endif
   19593 	pthread_t t;
   19594 	int status;
   19595 	int detach = PTHREAD_CREATE_DETACHED;
   19596 
   19597 #if HAVE_PTHREADS > 4
   19598 	/* Final pthreads */
   19599 	pthread_attr_t attr;
   19600 
   19601 	status = pthread_attr_init(&attr);
   19602 	if( status ) return status;
   19603 
   19604 #if HAVE_PTHREADS < 7
   19605 	status = pthread_attr_setdetachstate(&attr, &detach);
   19606 	if( status < 0 ) status = errno;
   19607 #else
   19608 	status = pthread_attr_setdetachstate(&attr, detach);
   19609 #endif
   19610 	if( status ) return status;
   19611 	status = pthread_create( &t, &attr, task, NULL );
   19612 #if HAVE_PTHREADS < 7
   19613 	if( status < 0 ) status = errno;
   19614 #endif
   19615 	if( status ) return status;
   19616 #else
   19617 	/* Draft 4 pthreads */
   19618 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19619 	if( status ) return errno;
   19620 
   19621 	/* give thread a chance to complete */
   19622 	/* it should remain joinable and hence detachable */
   19623 	sleep( 1 );
   19624 
   19625 	status = pthread_detach( &t );
   19626 	if( status ) return errno;
   19627 #endif
   19628 
   19629 #ifdef HAVE_LINUX_THREADS
   19630 	pthread_kill_other_threads_np();
   19631 #endif
   19632 
   19633 	return 0;
   19634 
   19635   ;
   19636   return 0;
   19637 }
   19638 _ACEOF
   19639 if ac_fn_c_try_link "$LINENO"
   19640 then :
   19641   ol_cv_pthread_thread=yes
   19642 else $as_nop
   19643   ol_cv_pthread_thread=no
   19644 fi
   19645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19646     conftest$ac_exeext conftest.$ac_ext
   19647 else $as_nop
   19648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19649 /* end confdefs.h.  */
   19650 
   19651 /* pthread test headers */
   19652 #include <pthread.h>
   19653 #if HAVE_PTHREADS < 7
   19654 #include <errno.h>
   19655 #endif
   19656 #ifndef NULL
   19657 #define NULL (void*)0
   19658 #endif
   19659 
   19660 #ifdef __STDC__
   19661 static void *task(void *p)
   19662 #else
   19663 static void *task(p)
   19664 	void *p;
   19665 #endif
   19666 {
   19667 	return (void *) (p == NULL);
   19668 }
   19669 
   19670 
   19671 #ifdef __STDC__
   19672 int main(int argc, char **argv)
   19673 #else
   19674 int main(argc, argv)
   19675 	int argc;
   19676 	char **argv;
   19677 #endif
   19678 {
   19679 
   19680 	/* pthread test function */
   19681 #ifndef PTHREAD_CREATE_DETACHED
   19682 #define	PTHREAD_CREATE_DETACHED	1
   19683 #endif
   19684 	pthread_t t;
   19685 	int status;
   19686 	int detach = PTHREAD_CREATE_DETACHED;
   19687 
   19688 #if HAVE_PTHREADS > 4
   19689 	/* Final pthreads */
   19690 	pthread_attr_t attr;
   19691 
   19692 	status = pthread_attr_init(&attr);
   19693 	if( status ) return status;
   19694 
   19695 #if HAVE_PTHREADS < 7
   19696 	status = pthread_attr_setdetachstate(&attr, &detach);
   19697 	if( status < 0 ) status = errno;
   19698 #else
   19699 	status = pthread_attr_setdetachstate(&attr, detach);
   19700 #endif
   19701 	if( status ) return status;
   19702 	status = pthread_create( &t, &attr, task, NULL );
   19703 #if HAVE_PTHREADS < 7
   19704 	if( status < 0 ) status = errno;
   19705 #endif
   19706 	if( status ) return status;
   19707 #else
   19708 	/* Draft 4 pthreads */
   19709 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19710 	if( status ) return errno;
   19711 
   19712 	/* give thread a chance to complete */
   19713 	/* it should remain joinable and hence detachable */
   19714 	sleep( 1 );
   19715 
   19716 	status = pthread_detach( &t );
   19717 	if( status ) return errno;
   19718 #endif
   19719 
   19720 #ifdef HAVE_LINUX_THREADS
   19721 	pthread_kill_other_threads_np();
   19722 #endif
   19723 
   19724 	return 0;
   19725 
   19726 }
   19727 
   19728 _ACEOF
   19729 if ac_fn_c_try_run "$LINENO"
   19730 then :
   19731   ol_cv_pthread_thread=yes
   19732 else $as_nop
   19733   ol_cv_pthread_thread=no
   19734 fi
   19735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19736   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19737 fi
   19738 
   19739 
   19740 		# restore the LIBS
   19741 		LIBS="$ol_LIBS"
   19742 
   19743 fi
   19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
   19745 printf "%s\n" "$ol_cv_pthread_thread" >&6; }
   19746 
   19747 	if test $ol_cv_pthread_thread = yes ; then
   19748 		ol_link_pthreads="-thread"
   19749 		ol_link_threads=posix
   19750 	fi
   19751 fi
   19752 
   19753 
   19754 		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
   19755 if test "$ol_link_threads" = no ; then
   19756 	# try -lpthread -lmach -lexc -lc_r
   19757 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
   19758 printf %s "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
   19759 if test ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+y}
   19760 then :
   19761   printf %s "(cached) " >&6
   19762 else $as_nop
   19763 
   19764 		# save the flags
   19765 		ol_LIBS="$LIBS"
   19766 		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
   19767 
   19768 		if test "$cross_compiling" = yes
   19769 then :
   19770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19771 /* end confdefs.h.  */
   19772 
   19773 /* pthread test headers */
   19774 #include <pthread.h>
   19775 #if HAVE_PTHREADS < 7
   19776 #include <errno.h>
   19777 #endif
   19778 #ifndef NULL
   19779 #define NULL (void*)0
   19780 #endif
   19781 
   19782 #ifdef __STDC__
   19783 static void *task(void *p)
   19784 #else
   19785 static void *task(p)
   19786 	void *p;
   19787 #endif
   19788 {
   19789 	return (void *) (p == NULL);
   19790 }
   19791 
   19792 int
   19793 main (void)
   19794 {
   19795 
   19796 	/* pthread test function */
   19797 #ifndef PTHREAD_CREATE_DETACHED
   19798 #define	PTHREAD_CREATE_DETACHED	1
   19799 #endif
   19800 	pthread_t t;
   19801 	int status;
   19802 	int detach = PTHREAD_CREATE_DETACHED;
   19803 
   19804 #if HAVE_PTHREADS > 4
   19805 	/* Final pthreads */
   19806 	pthread_attr_t attr;
   19807 
   19808 	status = pthread_attr_init(&attr);
   19809 	if( status ) return status;
   19810 
   19811 #if HAVE_PTHREADS < 7
   19812 	status = pthread_attr_setdetachstate(&attr, &detach);
   19813 	if( status < 0 ) status = errno;
   19814 #else
   19815 	status = pthread_attr_setdetachstate(&attr, detach);
   19816 #endif
   19817 	if( status ) return status;
   19818 	status = pthread_create( &t, &attr, task, NULL );
   19819 #if HAVE_PTHREADS < 7
   19820 	if( status < 0 ) status = errno;
   19821 #endif
   19822 	if( status ) return status;
   19823 #else
   19824 	/* Draft 4 pthreads */
   19825 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19826 	if( status ) return errno;
   19827 
   19828 	/* give thread a chance to complete */
   19829 	/* it should remain joinable and hence detachable */
   19830 	sleep( 1 );
   19831 
   19832 	status = pthread_detach( &t );
   19833 	if( status ) return errno;
   19834 #endif
   19835 
   19836 #ifdef HAVE_LINUX_THREADS
   19837 	pthread_kill_other_threads_np();
   19838 #endif
   19839 
   19840 	return 0;
   19841 
   19842   ;
   19843   return 0;
   19844 }
   19845 _ACEOF
   19846 if ac_fn_c_try_link "$LINENO"
   19847 then :
   19848   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
   19849 else $as_nop
   19850   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
   19851 fi
   19852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19853     conftest$ac_exeext conftest.$ac_ext
   19854 else $as_nop
   19855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19856 /* end confdefs.h.  */
   19857 
   19858 /* pthread test headers */
   19859 #include <pthread.h>
   19860 #if HAVE_PTHREADS < 7
   19861 #include <errno.h>
   19862 #endif
   19863 #ifndef NULL
   19864 #define NULL (void*)0
   19865 #endif
   19866 
   19867 #ifdef __STDC__
   19868 static void *task(void *p)
   19869 #else
   19870 static void *task(p)
   19871 	void *p;
   19872 #endif
   19873 {
   19874 	return (void *) (p == NULL);
   19875 }
   19876 
   19877 
   19878 #ifdef __STDC__
   19879 int main(int argc, char **argv)
   19880 #else
   19881 int main(argc, argv)
   19882 	int argc;
   19883 	char **argv;
   19884 #endif
   19885 {
   19886 
   19887 	/* pthread test function */
   19888 #ifndef PTHREAD_CREATE_DETACHED
   19889 #define	PTHREAD_CREATE_DETACHED	1
   19890 #endif
   19891 	pthread_t t;
   19892 	int status;
   19893 	int detach = PTHREAD_CREATE_DETACHED;
   19894 
   19895 #if HAVE_PTHREADS > 4
   19896 	/* Final pthreads */
   19897 	pthread_attr_t attr;
   19898 
   19899 	status = pthread_attr_init(&attr);
   19900 	if( status ) return status;
   19901 
   19902 #if HAVE_PTHREADS < 7
   19903 	status = pthread_attr_setdetachstate(&attr, &detach);
   19904 	if( status < 0 ) status = errno;
   19905 #else
   19906 	status = pthread_attr_setdetachstate(&attr, detach);
   19907 #endif
   19908 	if( status ) return status;
   19909 	status = pthread_create( &t, &attr, task, NULL );
   19910 #if HAVE_PTHREADS < 7
   19911 	if( status < 0 ) status = errno;
   19912 #endif
   19913 	if( status ) return status;
   19914 #else
   19915 	/* Draft 4 pthreads */
   19916 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   19917 	if( status ) return errno;
   19918 
   19919 	/* give thread a chance to complete */
   19920 	/* it should remain joinable and hence detachable */
   19921 	sleep( 1 );
   19922 
   19923 	status = pthread_detach( &t );
   19924 	if( status ) return errno;
   19925 #endif
   19926 
   19927 #ifdef HAVE_LINUX_THREADS
   19928 	pthread_kill_other_threads_np();
   19929 #endif
   19930 
   19931 	return 0;
   19932 
   19933 }
   19934 
   19935 _ACEOF
   19936 if ac_fn_c_try_run "$LINENO"
   19937 then :
   19938   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
   19939 else $as_nop
   19940   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
   19941 fi
   19942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19943   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19944 fi
   19945 
   19946 
   19947 		# restore the LIBS
   19948 		LIBS="$ol_LIBS"
   19949 
   19950 fi
   19951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
   19952 printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
   19953 
   19954 	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
   19955 		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
   19956 		ol_link_threads=posix
   19957 	fi
   19958 fi
   19959 
   19960 		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
   19961 if test "$ol_link_threads" = no ; then
   19962 	# try -lpthread -lmach -lexc
   19963 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
   19964 printf %s "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
   19965 if test ${ol_cv_pthread_lpthread_lmach_lexc+y}
   19966 then :
   19967   printf %s "(cached) " >&6
   19968 else $as_nop
   19969 
   19970 		# save the flags
   19971 		ol_LIBS="$LIBS"
   19972 		LIBS="-lpthread -lmach -lexc $LIBS"
   19973 
   19974 		if test "$cross_compiling" = yes
   19975 then :
   19976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19977 /* end confdefs.h.  */
   19978 
   19979 /* pthread test headers */
   19980 #include <pthread.h>
   19981 #if HAVE_PTHREADS < 7
   19982 #include <errno.h>
   19983 #endif
   19984 #ifndef NULL
   19985 #define NULL (void*)0
   19986 #endif
   19987 
   19988 #ifdef __STDC__
   19989 static void *task(void *p)
   19990 #else
   19991 static void *task(p)
   19992 	void *p;
   19993 #endif
   19994 {
   19995 	return (void *) (p == NULL);
   19996 }
   19997 
   19998 int
   19999 main (void)
   20000 {
   20001 
   20002 	/* pthread test function */
   20003 #ifndef PTHREAD_CREATE_DETACHED
   20004 #define	PTHREAD_CREATE_DETACHED	1
   20005 #endif
   20006 	pthread_t t;
   20007 	int status;
   20008 	int detach = PTHREAD_CREATE_DETACHED;
   20009 
   20010 #if HAVE_PTHREADS > 4
   20011 	/* Final pthreads */
   20012 	pthread_attr_t attr;
   20013 
   20014 	status = pthread_attr_init(&attr);
   20015 	if( status ) return status;
   20016 
   20017 #if HAVE_PTHREADS < 7
   20018 	status = pthread_attr_setdetachstate(&attr, &detach);
   20019 	if( status < 0 ) status = errno;
   20020 #else
   20021 	status = pthread_attr_setdetachstate(&attr, detach);
   20022 #endif
   20023 	if( status ) return status;
   20024 	status = pthread_create( &t, &attr, task, NULL );
   20025 #if HAVE_PTHREADS < 7
   20026 	if( status < 0 ) status = errno;
   20027 #endif
   20028 	if( status ) return status;
   20029 #else
   20030 	/* Draft 4 pthreads */
   20031 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20032 	if( status ) return errno;
   20033 
   20034 	/* give thread a chance to complete */
   20035 	/* it should remain joinable and hence detachable */
   20036 	sleep( 1 );
   20037 
   20038 	status = pthread_detach( &t );
   20039 	if( status ) return errno;
   20040 #endif
   20041 
   20042 #ifdef HAVE_LINUX_THREADS
   20043 	pthread_kill_other_threads_np();
   20044 #endif
   20045 
   20046 	return 0;
   20047 
   20048   ;
   20049   return 0;
   20050 }
   20051 _ACEOF
   20052 if ac_fn_c_try_link "$LINENO"
   20053 then :
   20054   ol_cv_pthread_lpthread_lmach_lexc=yes
   20055 else $as_nop
   20056   ol_cv_pthread_lpthread_lmach_lexc=no
   20057 fi
   20058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20059     conftest$ac_exeext conftest.$ac_ext
   20060 else $as_nop
   20061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20062 /* end confdefs.h.  */
   20063 
   20064 /* pthread test headers */
   20065 #include <pthread.h>
   20066 #if HAVE_PTHREADS < 7
   20067 #include <errno.h>
   20068 #endif
   20069 #ifndef NULL
   20070 #define NULL (void*)0
   20071 #endif
   20072 
   20073 #ifdef __STDC__
   20074 static void *task(void *p)
   20075 #else
   20076 static void *task(p)
   20077 	void *p;
   20078 #endif
   20079 {
   20080 	return (void *) (p == NULL);
   20081 }
   20082 
   20083 
   20084 #ifdef __STDC__
   20085 int main(int argc, char **argv)
   20086 #else
   20087 int main(argc, argv)
   20088 	int argc;
   20089 	char **argv;
   20090 #endif
   20091 {
   20092 
   20093 	/* pthread test function */
   20094 #ifndef PTHREAD_CREATE_DETACHED
   20095 #define	PTHREAD_CREATE_DETACHED	1
   20096 #endif
   20097 	pthread_t t;
   20098 	int status;
   20099 	int detach = PTHREAD_CREATE_DETACHED;
   20100 
   20101 #if HAVE_PTHREADS > 4
   20102 	/* Final pthreads */
   20103 	pthread_attr_t attr;
   20104 
   20105 	status = pthread_attr_init(&attr);
   20106 	if( status ) return status;
   20107 
   20108 #if HAVE_PTHREADS < 7
   20109 	status = pthread_attr_setdetachstate(&attr, &detach);
   20110 	if( status < 0 ) status = errno;
   20111 #else
   20112 	status = pthread_attr_setdetachstate(&attr, detach);
   20113 #endif
   20114 	if( status ) return status;
   20115 	status = pthread_create( &t, &attr, task, NULL );
   20116 #if HAVE_PTHREADS < 7
   20117 	if( status < 0 ) status = errno;
   20118 #endif
   20119 	if( status ) return status;
   20120 #else
   20121 	/* Draft 4 pthreads */
   20122 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20123 	if( status ) return errno;
   20124 
   20125 	/* give thread a chance to complete */
   20126 	/* it should remain joinable and hence detachable */
   20127 	sleep( 1 );
   20128 
   20129 	status = pthread_detach( &t );
   20130 	if( status ) return errno;
   20131 #endif
   20132 
   20133 #ifdef HAVE_LINUX_THREADS
   20134 	pthread_kill_other_threads_np();
   20135 #endif
   20136 
   20137 	return 0;
   20138 
   20139 }
   20140 
   20141 _ACEOF
   20142 if ac_fn_c_try_run "$LINENO"
   20143 then :
   20144   ol_cv_pthread_lpthread_lmach_lexc=yes
   20145 else $as_nop
   20146   ol_cv_pthread_lpthread_lmach_lexc=no
   20147 fi
   20148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20149   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20150 fi
   20151 
   20152 
   20153 		# restore the LIBS
   20154 		LIBS="$ol_LIBS"
   20155 
   20156 fi
   20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
   20158 printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
   20159 
   20160 	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
   20161 		ol_link_pthreads="-lpthread -lmach -lexc"
   20162 		ol_link_threads=posix
   20163 	fi
   20164 fi
   20165 
   20166 
   20167 		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
   20168 if test "$ol_link_threads" = no ; then
   20169 	# try -lpthread -Wl,-woff,85
   20170 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
   20171 printf %s "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
   20172 if test ${ol_cv_pthread_lib_lpthread_woff+y}
   20173 then :
   20174   printf %s "(cached) " >&6
   20175 else $as_nop
   20176 
   20177 		# save the flags
   20178 		ol_LIBS="$LIBS"
   20179 		LIBS="-lpthread -Wl,-woff,85 $LIBS"
   20180 
   20181 		if test "$cross_compiling" = yes
   20182 then :
   20183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20184 /* end confdefs.h.  */
   20185 
   20186 /* pthread test headers */
   20187 #include <pthread.h>
   20188 #if HAVE_PTHREADS < 7
   20189 #include <errno.h>
   20190 #endif
   20191 #ifndef NULL
   20192 #define NULL (void*)0
   20193 #endif
   20194 
   20195 #ifdef __STDC__
   20196 static void *task(void *p)
   20197 #else
   20198 static void *task(p)
   20199 	void *p;
   20200 #endif
   20201 {
   20202 	return (void *) (p == NULL);
   20203 }
   20204 
   20205 int
   20206 main (void)
   20207 {
   20208 
   20209 	/* pthread test function */
   20210 #ifndef PTHREAD_CREATE_DETACHED
   20211 #define	PTHREAD_CREATE_DETACHED	1
   20212 #endif
   20213 	pthread_t t;
   20214 	int status;
   20215 	int detach = PTHREAD_CREATE_DETACHED;
   20216 
   20217 #if HAVE_PTHREADS > 4
   20218 	/* Final pthreads */
   20219 	pthread_attr_t attr;
   20220 
   20221 	status = pthread_attr_init(&attr);
   20222 	if( status ) return status;
   20223 
   20224 #if HAVE_PTHREADS < 7
   20225 	status = pthread_attr_setdetachstate(&attr, &detach);
   20226 	if( status < 0 ) status = errno;
   20227 #else
   20228 	status = pthread_attr_setdetachstate(&attr, detach);
   20229 #endif
   20230 	if( status ) return status;
   20231 	status = pthread_create( &t, &attr, task, NULL );
   20232 #if HAVE_PTHREADS < 7
   20233 	if( status < 0 ) status = errno;
   20234 #endif
   20235 	if( status ) return status;
   20236 #else
   20237 	/* Draft 4 pthreads */
   20238 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20239 	if( status ) return errno;
   20240 
   20241 	/* give thread a chance to complete */
   20242 	/* it should remain joinable and hence detachable */
   20243 	sleep( 1 );
   20244 
   20245 	status = pthread_detach( &t );
   20246 	if( status ) return errno;
   20247 #endif
   20248 
   20249 #ifdef HAVE_LINUX_THREADS
   20250 	pthread_kill_other_threads_np();
   20251 #endif
   20252 
   20253 	return 0;
   20254 
   20255   ;
   20256   return 0;
   20257 }
   20258 _ACEOF
   20259 if ac_fn_c_try_link "$LINENO"
   20260 then :
   20261   ol_cv_pthread_lib_lpthread_woff=yes
   20262 else $as_nop
   20263   ol_cv_pthread_lib_lpthread_woff=no
   20264 fi
   20265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20266     conftest$ac_exeext conftest.$ac_ext
   20267 else $as_nop
   20268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20269 /* end confdefs.h.  */
   20270 
   20271 /* pthread test headers */
   20272 #include <pthread.h>
   20273 #if HAVE_PTHREADS < 7
   20274 #include <errno.h>
   20275 #endif
   20276 #ifndef NULL
   20277 #define NULL (void*)0
   20278 #endif
   20279 
   20280 #ifdef __STDC__
   20281 static void *task(void *p)
   20282 #else
   20283 static void *task(p)
   20284 	void *p;
   20285 #endif
   20286 {
   20287 	return (void *) (p == NULL);
   20288 }
   20289 
   20290 
   20291 #ifdef __STDC__
   20292 int main(int argc, char **argv)
   20293 #else
   20294 int main(argc, argv)
   20295 	int argc;
   20296 	char **argv;
   20297 #endif
   20298 {
   20299 
   20300 	/* pthread test function */
   20301 #ifndef PTHREAD_CREATE_DETACHED
   20302 #define	PTHREAD_CREATE_DETACHED	1
   20303 #endif
   20304 	pthread_t t;
   20305 	int status;
   20306 	int detach = PTHREAD_CREATE_DETACHED;
   20307 
   20308 #if HAVE_PTHREADS > 4
   20309 	/* Final pthreads */
   20310 	pthread_attr_t attr;
   20311 
   20312 	status = pthread_attr_init(&attr);
   20313 	if( status ) return status;
   20314 
   20315 #if HAVE_PTHREADS < 7
   20316 	status = pthread_attr_setdetachstate(&attr, &detach);
   20317 	if( status < 0 ) status = errno;
   20318 #else
   20319 	status = pthread_attr_setdetachstate(&attr, detach);
   20320 #endif
   20321 	if( status ) return status;
   20322 	status = pthread_create( &t, &attr, task, NULL );
   20323 #if HAVE_PTHREADS < 7
   20324 	if( status < 0 ) status = errno;
   20325 #endif
   20326 	if( status ) return status;
   20327 #else
   20328 	/* Draft 4 pthreads */
   20329 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20330 	if( status ) return errno;
   20331 
   20332 	/* give thread a chance to complete */
   20333 	/* it should remain joinable and hence detachable */
   20334 	sleep( 1 );
   20335 
   20336 	status = pthread_detach( &t );
   20337 	if( status ) return errno;
   20338 #endif
   20339 
   20340 #ifdef HAVE_LINUX_THREADS
   20341 	pthread_kill_other_threads_np();
   20342 #endif
   20343 
   20344 	return 0;
   20345 
   20346 }
   20347 
   20348 _ACEOF
   20349 if ac_fn_c_try_run "$LINENO"
   20350 then :
   20351   ol_cv_pthread_lib_lpthread_woff=yes
   20352 else $as_nop
   20353   ol_cv_pthread_lib_lpthread_woff=no
   20354 fi
   20355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20356   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20357 fi
   20358 
   20359 
   20360 		# restore the LIBS
   20361 		LIBS="$ol_LIBS"
   20362 
   20363 fi
   20364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
   20365 printf "%s\n" "$ol_cv_pthread_lib_lpthread_woff" >&6; }
   20366 
   20367 	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
   20368 		ol_link_pthreads="-lpthread -Wl,-woff,85"
   20369 		ol_link_threads=posix
   20370 	fi
   20371 fi
   20372 
   20373 
   20374 		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
   20375 if test "$ol_link_threads" = no ; then
   20376 	# try -lpthread
   20377 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
   20378 printf %s "checking for pthread link with -lpthread... " >&6; }
   20379 if test ${ol_cv_pthread_lpthread+y}
   20380 then :
   20381   printf %s "(cached) " >&6
   20382 else $as_nop
   20383 
   20384 		# save the flags
   20385 		ol_LIBS="$LIBS"
   20386 		LIBS="-lpthread $LIBS"
   20387 
   20388 		if test "$cross_compiling" = yes
   20389 then :
   20390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20391 /* end confdefs.h.  */
   20392 
   20393 /* pthread test headers */
   20394 #include <pthread.h>
   20395 #if HAVE_PTHREADS < 7
   20396 #include <errno.h>
   20397 #endif
   20398 #ifndef NULL
   20399 #define NULL (void*)0
   20400 #endif
   20401 
   20402 #ifdef __STDC__
   20403 static void *task(void *p)
   20404 #else
   20405 static void *task(p)
   20406 	void *p;
   20407 #endif
   20408 {
   20409 	return (void *) (p == NULL);
   20410 }
   20411 
   20412 int
   20413 main (void)
   20414 {
   20415 
   20416 	/* pthread test function */
   20417 #ifndef PTHREAD_CREATE_DETACHED
   20418 #define	PTHREAD_CREATE_DETACHED	1
   20419 #endif
   20420 	pthread_t t;
   20421 	int status;
   20422 	int detach = PTHREAD_CREATE_DETACHED;
   20423 
   20424 #if HAVE_PTHREADS > 4
   20425 	/* Final pthreads */
   20426 	pthread_attr_t attr;
   20427 
   20428 	status = pthread_attr_init(&attr);
   20429 	if( status ) return status;
   20430 
   20431 #if HAVE_PTHREADS < 7
   20432 	status = pthread_attr_setdetachstate(&attr, &detach);
   20433 	if( status < 0 ) status = errno;
   20434 #else
   20435 	status = pthread_attr_setdetachstate(&attr, detach);
   20436 #endif
   20437 	if( status ) return status;
   20438 	status = pthread_create( &t, &attr, task, NULL );
   20439 #if HAVE_PTHREADS < 7
   20440 	if( status < 0 ) status = errno;
   20441 #endif
   20442 	if( status ) return status;
   20443 #else
   20444 	/* Draft 4 pthreads */
   20445 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20446 	if( status ) return errno;
   20447 
   20448 	/* give thread a chance to complete */
   20449 	/* it should remain joinable and hence detachable */
   20450 	sleep( 1 );
   20451 
   20452 	status = pthread_detach( &t );
   20453 	if( status ) return errno;
   20454 #endif
   20455 
   20456 #ifdef HAVE_LINUX_THREADS
   20457 	pthread_kill_other_threads_np();
   20458 #endif
   20459 
   20460 	return 0;
   20461 
   20462   ;
   20463   return 0;
   20464 }
   20465 _ACEOF
   20466 if ac_fn_c_try_link "$LINENO"
   20467 then :
   20468   ol_cv_pthread_lpthread=yes
   20469 else $as_nop
   20470   ol_cv_pthread_lpthread=no
   20471 fi
   20472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20473     conftest$ac_exeext conftest.$ac_ext
   20474 else $as_nop
   20475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20476 /* end confdefs.h.  */
   20477 
   20478 /* pthread test headers */
   20479 #include <pthread.h>
   20480 #if HAVE_PTHREADS < 7
   20481 #include <errno.h>
   20482 #endif
   20483 #ifndef NULL
   20484 #define NULL (void*)0
   20485 #endif
   20486 
   20487 #ifdef __STDC__
   20488 static void *task(void *p)
   20489 #else
   20490 static void *task(p)
   20491 	void *p;
   20492 #endif
   20493 {
   20494 	return (void *) (p == NULL);
   20495 }
   20496 
   20497 
   20498 #ifdef __STDC__
   20499 int main(int argc, char **argv)
   20500 #else
   20501 int main(argc, argv)
   20502 	int argc;
   20503 	char **argv;
   20504 #endif
   20505 {
   20506 
   20507 	/* pthread test function */
   20508 #ifndef PTHREAD_CREATE_DETACHED
   20509 #define	PTHREAD_CREATE_DETACHED	1
   20510 #endif
   20511 	pthread_t t;
   20512 	int status;
   20513 	int detach = PTHREAD_CREATE_DETACHED;
   20514 
   20515 #if HAVE_PTHREADS > 4
   20516 	/* Final pthreads */
   20517 	pthread_attr_t attr;
   20518 
   20519 	status = pthread_attr_init(&attr);
   20520 	if( status ) return status;
   20521 
   20522 #if HAVE_PTHREADS < 7
   20523 	status = pthread_attr_setdetachstate(&attr, &detach);
   20524 	if( status < 0 ) status = errno;
   20525 #else
   20526 	status = pthread_attr_setdetachstate(&attr, detach);
   20527 #endif
   20528 	if( status ) return status;
   20529 	status = pthread_create( &t, &attr, task, NULL );
   20530 #if HAVE_PTHREADS < 7
   20531 	if( status < 0 ) status = errno;
   20532 #endif
   20533 	if( status ) return status;
   20534 #else
   20535 	/* Draft 4 pthreads */
   20536 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20537 	if( status ) return errno;
   20538 
   20539 	/* give thread a chance to complete */
   20540 	/* it should remain joinable and hence detachable */
   20541 	sleep( 1 );
   20542 
   20543 	status = pthread_detach( &t );
   20544 	if( status ) return errno;
   20545 #endif
   20546 
   20547 #ifdef HAVE_LINUX_THREADS
   20548 	pthread_kill_other_threads_np();
   20549 #endif
   20550 
   20551 	return 0;
   20552 
   20553 }
   20554 
   20555 _ACEOF
   20556 if ac_fn_c_try_run "$LINENO"
   20557 then :
   20558   ol_cv_pthread_lpthread=yes
   20559 else $as_nop
   20560   ol_cv_pthread_lpthread=no
   20561 fi
   20562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20563   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20564 fi
   20565 
   20566 
   20567 		# restore the LIBS
   20568 		LIBS="$ol_LIBS"
   20569 
   20570 fi
   20571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
   20572 printf "%s\n" "$ol_cv_pthread_lpthread" >&6; }
   20573 
   20574 	if test $ol_cv_pthread_lpthread = yes ; then
   20575 		ol_link_pthreads="-lpthread"
   20576 		ol_link_threads=posix
   20577 	fi
   20578 fi
   20579 
   20580 		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
   20581 if test "$ol_link_threads" = no ; then
   20582 	# try -lc_r
   20583 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
   20584 printf %s "checking for pthread link with -lc_r... " >&6; }
   20585 if test ${ol_cv_pthread_lc_r+y}
   20586 then :
   20587   printf %s "(cached) " >&6
   20588 else $as_nop
   20589 
   20590 		# save the flags
   20591 		ol_LIBS="$LIBS"
   20592 		LIBS="-lc_r $LIBS"
   20593 
   20594 		if test "$cross_compiling" = yes
   20595 then :
   20596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20597 /* end confdefs.h.  */
   20598 
   20599 /* pthread test headers */
   20600 #include <pthread.h>
   20601 #if HAVE_PTHREADS < 7
   20602 #include <errno.h>
   20603 #endif
   20604 #ifndef NULL
   20605 #define NULL (void*)0
   20606 #endif
   20607 
   20608 #ifdef __STDC__
   20609 static void *task(void *p)
   20610 #else
   20611 static void *task(p)
   20612 	void *p;
   20613 #endif
   20614 {
   20615 	return (void *) (p == NULL);
   20616 }
   20617 
   20618 int
   20619 main (void)
   20620 {
   20621 
   20622 	/* pthread test function */
   20623 #ifndef PTHREAD_CREATE_DETACHED
   20624 #define	PTHREAD_CREATE_DETACHED	1
   20625 #endif
   20626 	pthread_t t;
   20627 	int status;
   20628 	int detach = PTHREAD_CREATE_DETACHED;
   20629 
   20630 #if HAVE_PTHREADS > 4
   20631 	/* Final pthreads */
   20632 	pthread_attr_t attr;
   20633 
   20634 	status = pthread_attr_init(&attr);
   20635 	if( status ) return status;
   20636 
   20637 #if HAVE_PTHREADS < 7
   20638 	status = pthread_attr_setdetachstate(&attr, &detach);
   20639 	if( status < 0 ) status = errno;
   20640 #else
   20641 	status = pthread_attr_setdetachstate(&attr, detach);
   20642 #endif
   20643 	if( status ) return status;
   20644 	status = pthread_create( &t, &attr, task, NULL );
   20645 #if HAVE_PTHREADS < 7
   20646 	if( status < 0 ) status = errno;
   20647 #endif
   20648 	if( status ) return status;
   20649 #else
   20650 	/* Draft 4 pthreads */
   20651 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20652 	if( status ) return errno;
   20653 
   20654 	/* give thread a chance to complete */
   20655 	/* it should remain joinable and hence detachable */
   20656 	sleep( 1 );
   20657 
   20658 	status = pthread_detach( &t );
   20659 	if( status ) return errno;
   20660 #endif
   20661 
   20662 #ifdef HAVE_LINUX_THREADS
   20663 	pthread_kill_other_threads_np();
   20664 #endif
   20665 
   20666 	return 0;
   20667 
   20668   ;
   20669   return 0;
   20670 }
   20671 _ACEOF
   20672 if ac_fn_c_try_link "$LINENO"
   20673 then :
   20674   ol_cv_pthread_lc_r=yes
   20675 else $as_nop
   20676   ol_cv_pthread_lc_r=no
   20677 fi
   20678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20679     conftest$ac_exeext conftest.$ac_ext
   20680 else $as_nop
   20681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20682 /* end confdefs.h.  */
   20683 
   20684 /* pthread test headers */
   20685 #include <pthread.h>
   20686 #if HAVE_PTHREADS < 7
   20687 #include <errno.h>
   20688 #endif
   20689 #ifndef NULL
   20690 #define NULL (void*)0
   20691 #endif
   20692 
   20693 #ifdef __STDC__
   20694 static void *task(void *p)
   20695 #else
   20696 static void *task(p)
   20697 	void *p;
   20698 #endif
   20699 {
   20700 	return (void *) (p == NULL);
   20701 }
   20702 
   20703 
   20704 #ifdef __STDC__
   20705 int main(int argc, char **argv)
   20706 #else
   20707 int main(argc, argv)
   20708 	int argc;
   20709 	char **argv;
   20710 #endif
   20711 {
   20712 
   20713 	/* pthread test function */
   20714 #ifndef PTHREAD_CREATE_DETACHED
   20715 #define	PTHREAD_CREATE_DETACHED	1
   20716 #endif
   20717 	pthread_t t;
   20718 	int status;
   20719 	int detach = PTHREAD_CREATE_DETACHED;
   20720 
   20721 #if HAVE_PTHREADS > 4
   20722 	/* Final pthreads */
   20723 	pthread_attr_t attr;
   20724 
   20725 	status = pthread_attr_init(&attr);
   20726 	if( status ) return status;
   20727 
   20728 #if HAVE_PTHREADS < 7
   20729 	status = pthread_attr_setdetachstate(&attr, &detach);
   20730 	if( status < 0 ) status = errno;
   20731 #else
   20732 	status = pthread_attr_setdetachstate(&attr, detach);
   20733 #endif
   20734 	if( status ) return status;
   20735 	status = pthread_create( &t, &attr, task, NULL );
   20736 #if HAVE_PTHREADS < 7
   20737 	if( status < 0 ) status = errno;
   20738 #endif
   20739 	if( status ) return status;
   20740 #else
   20741 	/* Draft 4 pthreads */
   20742 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20743 	if( status ) return errno;
   20744 
   20745 	/* give thread a chance to complete */
   20746 	/* it should remain joinable and hence detachable */
   20747 	sleep( 1 );
   20748 
   20749 	status = pthread_detach( &t );
   20750 	if( status ) return errno;
   20751 #endif
   20752 
   20753 #ifdef HAVE_LINUX_THREADS
   20754 	pthread_kill_other_threads_np();
   20755 #endif
   20756 
   20757 	return 0;
   20758 
   20759 }
   20760 
   20761 _ACEOF
   20762 if ac_fn_c_try_run "$LINENO"
   20763 then :
   20764   ol_cv_pthread_lc_r=yes
   20765 else $as_nop
   20766   ol_cv_pthread_lc_r=no
   20767 fi
   20768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20769   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20770 fi
   20771 
   20772 
   20773 		# restore the LIBS
   20774 		LIBS="$ol_LIBS"
   20775 
   20776 fi
   20777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
   20778 printf "%s\n" "$ol_cv_pthread_lc_r" >&6; }
   20779 
   20780 	if test $ol_cv_pthread_lc_r = yes ; then
   20781 		ol_link_pthreads="-lc_r"
   20782 		ol_link_threads=posix
   20783 	fi
   20784 fi
   20785 
   20786 
   20787 		# Pthread try link: -threads (ol_cv_pthread_threads)
   20788 if test "$ol_link_threads" = no ; then
   20789 	# try -threads
   20790 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
   20791 printf %s "checking for pthread link with -threads... " >&6; }
   20792 if test ${ol_cv_pthread_threads+y}
   20793 then :
   20794   printf %s "(cached) " >&6
   20795 else $as_nop
   20796 
   20797 		# save the flags
   20798 		ol_LIBS="$LIBS"
   20799 		LIBS="-threads $LIBS"
   20800 
   20801 		if test "$cross_compiling" = yes
   20802 then :
   20803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20804 /* end confdefs.h.  */
   20805 
   20806 /* pthread test headers */
   20807 #include <pthread.h>
   20808 #if HAVE_PTHREADS < 7
   20809 #include <errno.h>
   20810 #endif
   20811 #ifndef NULL
   20812 #define NULL (void*)0
   20813 #endif
   20814 
   20815 #ifdef __STDC__
   20816 static void *task(void *p)
   20817 #else
   20818 static void *task(p)
   20819 	void *p;
   20820 #endif
   20821 {
   20822 	return (void *) (p == NULL);
   20823 }
   20824 
   20825 int
   20826 main (void)
   20827 {
   20828 
   20829 	/* pthread test function */
   20830 #ifndef PTHREAD_CREATE_DETACHED
   20831 #define	PTHREAD_CREATE_DETACHED	1
   20832 #endif
   20833 	pthread_t t;
   20834 	int status;
   20835 	int detach = PTHREAD_CREATE_DETACHED;
   20836 
   20837 #if HAVE_PTHREADS > 4
   20838 	/* Final pthreads */
   20839 	pthread_attr_t attr;
   20840 
   20841 	status = pthread_attr_init(&attr);
   20842 	if( status ) return status;
   20843 
   20844 #if HAVE_PTHREADS < 7
   20845 	status = pthread_attr_setdetachstate(&attr, &detach);
   20846 	if( status < 0 ) status = errno;
   20847 #else
   20848 	status = pthread_attr_setdetachstate(&attr, detach);
   20849 #endif
   20850 	if( status ) return status;
   20851 	status = pthread_create( &t, &attr, task, NULL );
   20852 #if HAVE_PTHREADS < 7
   20853 	if( status < 0 ) status = errno;
   20854 #endif
   20855 	if( status ) return status;
   20856 #else
   20857 	/* Draft 4 pthreads */
   20858 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20859 	if( status ) return errno;
   20860 
   20861 	/* give thread a chance to complete */
   20862 	/* it should remain joinable and hence detachable */
   20863 	sleep( 1 );
   20864 
   20865 	status = pthread_detach( &t );
   20866 	if( status ) return errno;
   20867 #endif
   20868 
   20869 #ifdef HAVE_LINUX_THREADS
   20870 	pthread_kill_other_threads_np();
   20871 #endif
   20872 
   20873 	return 0;
   20874 
   20875   ;
   20876   return 0;
   20877 }
   20878 _ACEOF
   20879 if ac_fn_c_try_link "$LINENO"
   20880 then :
   20881   ol_cv_pthread_threads=yes
   20882 else $as_nop
   20883   ol_cv_pthread_threads=no
   20884 fi
   20885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20886     conftest$ac_exeext conftest.$ac_ext
   20887 else $as_nop
   20888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20889 /* end confdefs.h.  */
   20890 
   20891 /* pthread test headers */
   20892 #include <pthread.h>
   20893 #if HAVE_PTHREADS < 7
   20894 #include <errno.h>
   20895 #endif
   20896 #ifndef NULL
   20897 #define NULL (void*)0
   20898 #endif
   20899 
   20900 #ifdef __STDC__
   20901 static void *task(void *p)
   20902 #else
   20903 static void *task(p)
   20904 	void *p;
   20905 #endif
   20906 {
   20907 	return (void *) (p == NULL);
   20908 }
   20909 
   20910 
   20911 #ifdef __STDC__
   20912 int main(int argc, char **argv)
   20913 #else
   20914 int main(argc, argv)
   20915 	int argc;
   20916 	char **argv;
   20917 #endif
   20918 {
   20919 
   20920 	/* pthread test function */
   20921 #ifndef PTHREAD_CREATE_DETACHED
   20922 #define	PTHREAD_CREATE_DETACHED	1
   20923 #endif
   20924 	pthread_t t;
   20925 	int status;
   20926 	int detach = PTHREAD_CREATE_DETACHED;
   20927 
   20928 #if HAVE_PTHREADS > 4
   20929 	/* Final pthreads */
   20930 	pthread_attr_t attr;
   20931 
   20932 	status = pthread_attr_init(&attr);
   20933 	if( status ) return status;
   20934 
   20935 #if HAVE_PTHREADS < 7
   20936 	status = pthread_attr_setdetachstate(&attr, &detach);
   20937 	if( status < 0 ) status = errno;
   20938 #else
   20939 	status = pthread_attr_setdetachstate(&attr, detach);
   20940 #endif
   20941 	if( status ) return status;
   20942 	status = pthread_create( &t, &attr, task, NULL );
   20943 #if HAVE_PTHREADS < 7
   20944 	if( status < 0 ) status = errno;
   20945 #endif
   20946 	if( status ) return status;
   20947 #else
   20948 	/* Draft 4 pthreads */
   20949 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   20950 	if( status ) return errno;
   20951 
   20952 	/* give thread a chance to complete */
   20953 	/* it should remain joinable and hence detachable */
   20954 	sleep( 1 );
   20955 
   20956 	status = pthread_detach( &t );
   20957 	if( status ) return errno;
   20958 #endif
   20959 
   20960 #ifdef HAVE_LINUX_THREADS
   20961 	pthread_kill_other_threads_np();
   20962 #endif
   20963 
   20964 	return 0;
   20965 
   20966 }
   20967 
   20968 _ACEOF
   20969 if ac_fn_c_try_run "$LINENO"
   20970 then :
   20971   ol_cv_pthread_threads=yes
   20972 else $as_nop
   20973   ol_cv_pthread_threads=no
   20974 fi
   20975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20976   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20977 fi
   20978 
   20979 
   20980 		# restore the LIBS
   20981 		LIBS="$ol_LIBS"
   20982 
   20983 fi
   20984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
   20985 printf "%s\n" "$ol_cv_pthread_threads" >&6; }
   20986 
   20987 	if test $ol_cv_pthread_threads = yes ; then
   20988 		ol_link_pthreads="-threads"
   20989 		ol_link_threads=posix
   20990 	fi
   20991 fi
   20992 
   20993 
   20994 		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
   20995 if test "$ol_link_threads" = no ; then
   20996 	# try -lpthreads -lmach -lexc -lc_r
   20997 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
   20998 printf %s "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
   20999 if test ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+y}
   21000 then :
   21001   printf %s "(cached) " >&6
   21002 else $as_nop
   21003 
   21004 		# save the flags
   21005 		ol_LIBS="$LIBS"
   21006 		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
   21007 
   21008 		if test "$cross_compiling" = yes
   21009 then :
   21010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21011 /* end confdefs.h.  */
   21012 
   21013 /* pthread test headers */
   21014 #include <pthread.h>
   21015 #if HAVE_PTHREADS < 7
   21016 #include <errno.h>
   21017 #endif
   21018 #ifndef NULL
   21019 #define NULL (void*)0
   21020 #endif
   21021 
   21022 #ifdef __STDC__
   21023 static void *task(void *p)
   21024 #else
   21025 static void *task(p)
   21026 	void *p;
   21027 #endif
   21028 {
   21029 	return (void *) (p == NULL);
   21030 }
   21031 
   21032 int
   21033 main (void)
   21034 {
   21035 
   21036 	/* pthread test function */
   21037 #ifndef PTHREAD_CREATE_DETACHED
   21038 #define	PTHREAD_CREATE_DETACHED	1
   21039 #endif
   21040 	pthread_t t;
   21041 	int status;
   21042 	int detach = PTHREAD_CREATE_DETACHED;
   21043 
   21044 #if HAVE_PTHREADS > 4
   21045 	/* Final pthreads */
   21046 	pthread_attr_t attr;
   21047 
   21048 	status = pthread_attr_init(&attr);
   21049 	if( status ) return status;
   21050 
   21051 #if HAVE_PTHREADS < 7
   21052 	status = pthread_attr_setdetachstate(&attr, &detach);
   21053 	if( status < 0 ) status = errno;
   21054 #else
   21055 	status = pthread_attr_setdetachstate(&attr, detach);
   21056 #endif
   21057 	if( status ) return status;
   21058 	status = pthread_create( &t, &attr, task, NULL );
   21059 #if HAVE_PTHREADS < 7
   21060 	if( status < 0 ) status = errno;
   21061 #endif
   21062 	if( status ) return status;
   21063 #else
   21064 	/* Draft 4 pthreads */
   21065 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21066 	if( status ) return errno;
   21067 
   21068 	/* give thread a chance to complete */
   21069 	/* it should remain joinable and hence detachable */
   21070 	sleep( 1 );
   21071 
   21072 	status = pthread_detach( &t );
   21073 	if( status ) return errno;
   21074 #endif
   21075 
   21076 #ifdef HAVE_LINUX_THREADS
   21077 	pthread_kill_other_threads_np();
   21078 #endif
   21079 
   21080 	return 0;
   21081 
   21082   ;
   21083   return 0;
   21084 }
   21085 _ACEOF
   21086 if ac_fn_c_try_link "$LINENO"
   21087 then :
   21088   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
   21089 else $as_nop
   21090   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
   21091 fi
   21092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21093     conftest$ac_exeext conftest.$ac_ext
   21094 else $as_nop
   21095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21096 /* end confdefs.h.  */
   21097 
   21098 /* pthread test headers */
   21099 #include <pthread.h>
   21100 #if HAVE_PTHREADS < 7
   21101 #include <errno.h>
   21102 #endif
   21103 #ifndef NULL
   21104 #define NULL (void*)0
   21105 #endif
   21106 
   21107 #ifdef __STDC__
   21108 static void *task(void *p)
   21109 #else
   21110 static void *task(p)
   21111 	void *p;
   21112 #endif
   21113 {
   21114 	return (void *) (p == NULL);
   21115 }
   21116 
   21117 
   21118 #ifdef __STDC__
   21119 int main(int argc, char **argv)
   21120 #else
   21121 int main(argc, argv)
   21122 	int argc;
   21123 	char **argv;
   21124 #endif
   21125 {
   21126 
   21127 	/* pthread test function */
   21128 #ifndef PTHREAD_CREATE_DETACHED
   21129 #define	PTHREAD_CREATE_DETACHED	1
   21130 #endif
   21131 	pthread_t t;
   21132 	int status;
   21133 	int detach = PTHREAD_CREATE_DETACHED;
   21134 
   21135 #if HAVE_PTHREADS > 4
   21136 	/* Final pthreads */
   21137 	pthread_attr_t attr;
   21138 
   21139 	status = pthread_attr_init(&attr);
   21140 	if( status ) return status;
   21141 
   21142 #if HAVE_PTHREADS < 7
   21143 	status = pthread_attr_setdetachstate(&attr, &detach);
   21144 	if( status < 0 ) status = errno;
   21145 #else
   21146 	status = pthread_attr_setdetachstate(&attr, detach);
   21147 #endif
   21148 	if( status ) return status;
   21149 	status = pthread_create( &t, &attr, task, NULL );
   21150 #if HAVE_PTHREADS < 7
   21151 	if( status < 0 ) status = errno;
   21152 #endif
   21153 	if( status ) return status;
   21154 #else
   21155 	/* Draft 4 pthreads */
   21156 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21157 	if( status ) return errno;
   21158 
   21159 	/* give thread a chance to complete */
   21160 	/* it should remain joinable and hence detachable */
   21161 	sleep( 1 );
   21162 
   21163 	status = pthread_detach( &t );
   21164 	if( status ) return errno;
   21165 #endif
   21166 
   21167 #ifdef HAVE_LINUX_THREADS
   21168 	pthread_kill_other_threads_np();
   21169 #endif
   21170 
   21171 	return 0;
   21172 
   21173 }
   21174 
   21175 _ACEOF
   21176 if ac_fn_c_try_run "$LINENO"
   21177 then :
   21178   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
   21179 else $as_nop
   21180   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
   21181 fi
   21182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21183   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21184 fi
   21185 
   21186 
   21187 		# restore the LIBS
   21188 		LIBS="$ol_LIBS"
   21189 
   21190 fi
   21191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
   21192 printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
   21193 
   21194 	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
   21195 		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
   21196 		ol_link_threads=posix
   21197 	fi
   21198 fi
   21199 
   21200 		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
   21201 if test "$ol_link_threads" = no ; then
   21202 	# try -lpthreads -lmach -lexc
   21203 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
   21204 printf %s "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
   21205 if test ${ol_cv_pthread_lpthreads_lmach_lexc+y}
   21206 then :
   21207   printf %s "(cached) " >&6
   21208 else $as_nop
   21209 
   21210 		# save the flags
   21211 		ol_LIBS="$LIBS"
   21212 		LIBS="-lpthreads -lmach -lexc $LIBS"
   21213 
   21214 		if test "$cross_compiling" = yes
   21215 then :
   21216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21217 /* end confdefs.h.  */
   21218 
   21219 /* pthread test headers */
   21220 #include <pthread.h>
   21221 #if HAVE_PTHREADS < 7
   21222 #include <errno.h>
   21223 #endif
   21224 #ifndef NULL
   21225 #define NULL (void*)0
   21226 #endif
   21227 
   21228 #ifdef __STDC__
   21229 static void *task(void *p)
   21230 #else
   21231 static void *task(p)
   21232 	void *p;
   21233 #endif
   21234 {
   21235 	return (void *) (p == NULL);
   21236 }
   21237 
   21238 int
   21239 main (void)
   21240 {
   21241 
   21242 	/* pthread test function */
   21243 #ifndef PTHREAD_CREATE_DETACHED
   21244 #define	PTHREAD_CREATE_DETACHED	1
   21245 #endif
   21246 	pthread_t t;
   21247 	int status;
   21248 	int detach = PTHREAD_CREATE_DETACHED;
   21249 
   21250 #if HAVE_PTHREADS > 4
   21251 	/* Final pthreads */
   21252 	pthread_attr_t attr;
   21253 
   21254 	status = pthread_attr_init(&attr);
   21255 	if( status ) return status;
   21256 
   21257 #if HAVE_PTHREADS < 7
   21258 	status = pthread_attr_setdetachstate(&attr, &detach);
   21259 	if( status < 0 ) status = errno;
   21260 #else
   21261 	status = pthread_attr_setdetachstate(&attr, detach);
   21262 #endif
   21263 	if( status ) return status;
   21264 	status = pthread_create( &t, &attr, task, NULL );
   21265 #if HAVE_PTHREADS < 7
   21266 	if( status < 0 ) status = errno;
   21267 #endif
   21268 	if( status ) return status;
   21269 #else
   21270 	/* Draft 4 pthreads */
   21271 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21272 	if( status ) return errno;
   21273 
   21274 	/* give thread a chance to complete */
   21275 	/* it should remain joinable and hence detachable */
   21276 	sleep( 1 );
   21277 
   21278 	status = pthread_detach( &t );
   21279 	if( status ) return errno;
   21280 #endif
   21281 
   21282 #ifdef HAVE_LINUX_THREADS
   21283 	pthread_kill_other_threads_np();
   21284 #endif
   21285 
   21286 	return 0;
   21287 
   21288   ;
   21289   return 0;
   21290 }
   21291 _ACEOF
   21292 if ac_fn_c_try_link "$LINENO"
   21293 then :
   21294   ol_cv_pthread_lpthreads_lmach_lexc=yes
   21295 else $as_nop
   21296   ol_cv_pthread_lpthreads_lmach_lexc=no
   21297 fi
   21298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21299     conftest$ac_exeext conftest.$ac_ext
   21300 else $as_nop
   21301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21302 /* end confdefs.h.  */
   21303 
   21304 /* pthread test headers */
   21305 #include <pthread.h>
   21306 #if HAVE_PTHREADS < 7
   21307 #include <errno.h>
   21308 #endif
   21309 #ifndef NULL
   21310 #define NULL (void*)0
   21311 #endif
   21312 
   21313 #ifdef __STDC__
   21314 static void *task(void *p)
   21315 #else
   21316 static void *task(p)
   21317 	void *p;
   21318 #endif
   21319 {
   21320 	return (void *) (p == NULL);
   21321 }
   21322 
   21323 
   21324 #ifdef __STDC__
   21325 int main(int argc, char **argv)
   21326 #else
   21327 int main(argc, argv)
   21328 	int argc;
   21329 	char **argv;
   21330 #endif
   21331 {
   21332 
   21333 	/* pthread test function */
   21334 #ifndef PTHREAD_CREATE_DETACHED
   21335 #define	PTHREAD_CREATE_DETACHED	1
   21336 #endif
   21337 	pthread_t t;
   21338 	int status;
   21339 	int detach = PTHREAD_CREATE_DETACHED;
   21340 
   21341 #if HAVE_PTHREADS > 4
   21342 	/* Final pthreads */
   21343 	pthread_attr_t attr;
   21344 
   21345 	status = pthread_attr_init(&attr);
   21346 	if( status ) return status;
   21347 
   21348 #if HAVE_PTHREADS < 7
   21349 	status = pthread_attr_setdetachstate(&attr, &detach);
   21350 	if( status < 0 ) status = errno;
   21351 #else
   21352 	status = pthread_attr_setdetachstate(&attr, detach);
   21353 #endif
   21354 	if( status ) return status;
   21355 	status = pthread_create( &t, &attr, task, NULL );
   21356 #if HAVE_PTHREADS < 7
   21357 	if( status < 0 ) status = errno;
   21358 #endif
   21359 	if( status ) return status;
   21360 #else
   21361 	/* Draft 4 pthreads */
   21362 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21363 	if( status ) return errno;
   21364 
   21365 	/* give thread a chance to complete */
   21366 	/* it should remain joinable and hence detachable */
   21367 	sleep( 1 );
   21368 
   21369 	status = pthread_detach( &t );
   21370 	if( status ) return errno;
   21371 #endif
   21372 
   21373 #ifdef HAVE_LINUX_THREADS
   21374 	pthread_kill_other_threads_np();
   21375 #endif
   21376 
   21377 	return 0;
   21378 
   21379 }
   21380 
   21381 _ACEOF
   21382 if ac_fn_c_try_run "$LINENO"
   21383 then :
   21384   ol_cv_pthread_lpthreads_lmach_lexc=yes
   21385 else $as_nop
   21386   ol_cv_pthread_lpthreads_lmach_lexc=no
   21387 fi
   21388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21389   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21390 fi
   21391 
   21392 
   21393 		# restore the LIBS
   21394 		LIBS="$ol_LIBS"
   21395 
   21396 fi
   21397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
   21398 printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
   21399 
   21400 	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
   21401 		ol_link_pthreads="-lpthreads -lmach -lexc"
   21402 		ol_link_threads=posix
   21403 	fi
   21404 fi
   21405 
   21406 		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
   21407 if test "$ol_link_threads" = no ; then
   21408 	# try -lpthreads -lexc
   21409 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
   21410 printf %s "checking for pthread link with -lpthreads -lexc... " >&6; }
   21411 if test ${ol_cv_pthread_lpthreads_lexc+y}
   21412 then :
   21413   printf %s "(cached) " >&6
   21414 else $as_nop
   21415 
   21416 		# save the flags
   21417 		ol_LIBS="$LIBS"
   21418 		LIBS="-lpthreads -lexc $LIBS"
   21419 
   21420 		if test "$cross_compiling" = yes
   21421 then :
   21422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21423 /* end confdefs.h.  */
   21424 
   21425 /* pthread test headers */
   21426 #include <pthread.h>
   21427 #if HAVE_PTHREADS < 7
   21428 #include <errno.h>
   21429 #endif
   21430 #ifndef NULL
   21431 #define NULL (void*)0
   21432 #endif
   21433 
   21434 #ifdef __STDC__
   21435 static void *task(void *p)
   21436 #else
   21437 static void *task(p)
   21438 	void *p;
   21439 #endif
   21440 {
   21441 	return (void *) (p == NULL);
   21442 }
   21443 
   21444 int
   21445 main (void)
   21446 {
   21447 
   21448 	/* pthread test function */
   21449 #ifndef PTHREAD_CREATE_DETACHED
   21450 #define	PTHREAD_CREATE_DETACHED	1
   21451 #endif
   21452 	pthread_t t;
   21453 	int status;
   21454 	int detach = PTHREAD_CREATE_DETACHED;
   21455 
   21456 #if HAVE_PTHREADS > 4
   21457 	/* Final pthreads */
   21458 	pthread_attr_t attr;
   21459 
   21460 	status = pthread_attr_init(&attr);
   21461 	if( status ) return status;
   21462 
   21463 #if HAVE_PTHREADS < 7
   21464 	status = pthread_attr_setdetachstate(&attr, &detach);
   21465 	if( status < 0 ) status = errno;
   21466 #else
   21467 	status = pthread_attr_setdetachstate(&attr, detach);
   21468 #endif
   21469 	if( status ) return status;
   21470 	status = pthread_create( &t, &attr, task, NULL );
   21471 #if HAVE_PTHREADS < 7
   21472 	if( status < 0 ) status = errno;
   21473 #endif
   21474 	if( status ) return status;
   21475 #else
   21476 	/* Draft 4 pthreads */
   21477 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21478 	if( status ) return errno;
   21479 
   21480 	/* give thread a chance to complete */
   21481 	/* it should remain joinable and hence detachable */
   21482 	sleep( 1 );
   21483 
   21484 	status = pthread_detach( &t );
   21485 	if( status ) return errno;
   21486 #endif
   21487 
   21488 #ifdef HAVE_LINUX_THREADS
   21489 	pthread_kill_other_threads_np();
   21490 #endif
   21491 
   21492 	return 0;
   21493 
   21494   ;
   21495   return 0;
   21496 }
   21497 _ACEOF
   21498 if ac_fn_c_try_link "$LINENO"
   21499 then :
   21500   ol_cv_pthread_lpthreads_lexc=yes
   21501 else $as_nop
   21502   ol_cv_pthread_lpthreads_lexc=no
   21503 fi
   21504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21505     conftest$ac_exeext conftest.$ac_ext
   21506 else $as_nop
   21507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21508 /* end confdefs.h.  */
   21509 
   21510 /* pthread test headers */
   21511 #include <pthread.h>
   21512 #if HAVE_PTHREADS < 7
   21513 #include <errno.h>
   21514 #endif
   21515 #ifndef NULL
   21516 #define NULL (void*)0
   21517 #endif
   21518 
   21519 #ifdef __STDC__
   21520 static void *task(void *p)
   21521 #else
   21522 static void *task(p)
   21523 	void *p;
   21524 #endif
   21525 {
   21526 	return (void *) (p == NULL);
   21527 }
   21528 
   21529 
   21530 #ifdef __STDC__
   21531 int main(int argc, char **argv)
   21532 #else
   21533 int main(argc, argv)
   21534 	int argc;
   21535 	char **argv;
   21536 #endif
   21537 {
   21538 
   21539 	/* pthread test function */
   21540 #ifndef PTHREAD_CREATE_DETACHED
   21541 #define	PTHREAD_CREATE_DETACHED	1
   21542 #endif
   21543 	pthread_t t;
   21544 	int status;
   21545 	int detach = PTHREAD_CREATE_DETACHED;
   21546 
   21547 #if HAVE_PTHREADS > 4
   21548 	/* Final pthreads */
   21549 	pthread_attr_t attr;
   21550 
   21551 	status = pthread_attr_init(&attr);
   21552 	if( status ) return status;
   21553 
   21554 #if HAVE_PTHREADS < 7
   21555 	status = pthread_attr_setdetachstate(&attr, &detach);
   21556 	if( status < 0 ) status = errno;
   21557 #else
   21558 	status = pthread_attr_setdetachstate(&attr, detach);
   21559 #endif
   21560 	if( status ) return status;
   21561 	status = pthread_create( &t, &attr, task, NULL );
   21562 #if HAVE_PTHREADS < 7
   21563 	if( status < 0 ) status = errno;
   21564 #endif
   21565 	if( status ) return status;
   21566 #else
   21567 	/* Draft 4 pthreads */
   21568 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21569 	if( status ) return errno;
   21570 
   21571 	/* give thread a chance to complete */
   21572 	/* it should remain joinable and hence detachable */
   21573 	sleep( 1 );
   21574 
   21575 	status = pthread_detach( &t );
   21576 	if( status ) return errno;
   21577 #endif
   21578 
   21579 #ifdef HAVE_LINUX_THREADS
   21580 	pthread_kill_other_threads_np();
   21581 #endif
   21582 
   21583 	return 0;
   21584 
   21585 }
   21586 
   21587 _ACEOF
   21588 if ac_fn_c_try_run "$LINENO"
   21589 then :
   21590   ol_cv_pthread_lpthreads_lexc=yes
   21591 else $as_nop
   21592   ol_cv_pthread_lpthreads_lexc=no
   21593 fi
   21594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21595   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21596 fi
   21597 
   21598 
   21599 		# restore the LIBS
   21600 		LIBS="$ol_LIBS"
   21601 
   21602 fi
   21603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
   21604 printf "%s\n" "$ol_cv_pthread_lpthreads_lexc" >&6; }
   21605 
   21606 	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
   21607 		ol_link_pthreads="-lpthreads -lexc"
   21608 		ol_link_threads=posix
   21609 	fi
   21610 fi
   21611 
   21612 
   21613 		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
   21614 if test "$ol_link_threads" = no ; then
   21615 	# try -lpthreads
   21616 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
   21617 printf %s "checking for pthread link with -lpthreads... " >&6; }
   21618 if test ${ol_cv_pthread_lib_lpthreads+y}
   21619 then :
   21620   printf %s "(cached) " >&6
   21621 else $as_nop
   21622 
   21623 		# save the flags
   21624 		ol_LIBS="$LIBS"
   21625 		LIBS="-lpthreads $LIBS"
   21626 
   21627 		if test "$cross_compiling" = yes
   21628 then :
   21629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21630 /* end confdefs.h.  */
   21631 
   21632 /* pthread test headers */
   21633 #include <pthread.h>
   21634 #if HAVE_PTHREADS < 7
   21635 #include <errno.h>
   21636 #endif
   21637 #ifndef NULL
   21638 #define NULL (void*)0
   21639 #endif
   21640 
   21641 #ifdef __STDC__
   21642 static void *task(void *p)
   21643 #else
   21644 static void *task(p)
   21645 	void *p;
   21646 #endif
   21647 {
   21648 	return (void *) (p == NULL);
   21649 }
   21650 
   21651 int
   21652 main (void)
   21653 {
   21654 
   21655 	/* pthread test function */
   21656 #ifndef PTHREAD_CREATE_DETACHED
   21657 #define	PTHREAD_CREATE_DETACHED	1
   21658 #endif
   21659 	pthread_t t;
   21660 	int status;
   21661 	int detach = PTHREAD_CREATE_DETACHED;
   21662 
   21663 #if HAVE_PTHREADS > 4
   21664 	/* Final pthreads */
   21665 	pthread_attr_t attr;
   21666 
   21667 	status = pthread_attr_init(&attr);
   21668 	if( status ) return status;
   21669 
   21670 #if HAVE_PTHREADS < 7
   21671 	status = pthread_attr_setdetachstate(&attr, &detach);
   21672 	if( status < 0 ) status = errno;
   21673 #else
   21674 	status = pthread_attr_setdetachstate(&attr, detach);
   21675 #endif
   21676 	if( status ) return status;
   21677 	status = pthread_create( &t, &attr, task, NULL );
   21678 #if HAVE_PTHREADS < 7
   21679 	if( status < 0 ) status = errno;
   21680 #endif
   21681 	if( status ) return status;
   21682 #else
   21683 	/* Draft 4 pthreads */
   21684 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21685 	if( status ) return errno;
   21686 
   21687 	/* give thread a chance to complete */
   21688 	/* it should remain joinable and hence detachable */
   21689 	sleep( 1 );
   21690 
   21691 	status = pthread_detach( &t );
   21692 	if( status ) return errno;
   21693 #endif
   21694 
   21695 #ifdef HAVE_LINUX_THREADS
   21696 	pthread_kill_other_threads_np();
   21697 #endif
   21698 
   21699 	return 0;
   21700 
   21701   ;
   21702   return 0;
   21703 }
   21704 _ACEOF
   21705 if ac_fn_c_try_link "$LINENO"
   21706 then :
   21707   ol_cv_pthread_lib_lpthreads=yes
   21708 else $as_nop
   21709   ol_cv_pthread_lib_lpthreads=no
   21710 fi
   21711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21712     conftest$ac_exeext conftest.$ac_ext
   21713 else $as_nop
   21714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21715 /* end confdefs.h.  */
   21716 
   21717 /* pthread test headers */
   21718 #include <pthread.h>
   21719 #if HAVE_PTHREADS < 7
   21720 #include <errno.h>
   21721 #endif
   21722 #ifndef NULL
   21723 #define NULL (void*)0
   21724 #endif
   21725 
   21726 #ifdef __STDC__
   21727 static void *task(void *p)
   21728 #else
   21729 static void *task(p)
   21730 	void *p;
   21731 #endif
   21732 {
   21733 	return (void *) (p == NULL);
   21734 }
   21735 
   21736 
   21737 #ifdef __STDC__
   21738 int main(int argc, char **argv)
   21739 #else
   21740 int main(argc, argv)
   21741 	int argc;
   21742 	char **argv;
   21743 #endif
   21744 {
   21745 
   21746 	/* pthread test function */
   21747 #ifndef PTHREAD_CREATE_DETACHED
   21748 #define	PTHREAD_CREATE_DETACHED	1
   21749 #endif
   21750 	pthread_t t;
   21751 	int status;
   21752 	int detach = PTHREAD_CREATE_DETACHED;
   21753 
   21754 #if HAVE_PTHREADS > 4
   21755 	/* Final pthreads */
   21756 	pthread_attr_t attr;
   21757 
   21758 	status = pthread_attr_init(&attr);
   21759 	if( status ) return status;
   21760 
   21761 #if HAVE_PTHREADS < 7
   21762 	status = pthread_attr_setdetachstate(&attr, &detach);
   21763 	if( status < 0 ) status = errno;
   21764 #else
   21765 	status = pthread_attr_setdetachstate(&attr, detach);
   21766 #endif
   21767 	if( status ) return status;
   21768 	status = pthread_create( &t, &attr, task, NULL );
   21769 #if HAVE_PTHREADS < 7
   21770 	if( status < 0 ) status = errno;
   21771 #endif
   21772 	if( status ) return status;
   21773 #else
   21774 	/* Draft 4 pthreads */
   21775 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   21776 	if( status ) return errno;
   21777 
   21778 	/* give thread a chance to complete */
   21779 	/* it should remain joinable and hence detachable */
   21780 	sleep( 1 );
   21781 
   21782 	status = pthread_detach( &t );
   21783 	if( status ) return errno;
   21784 #endif
   21785 
   21786 #ifdef HAVE_LINUX_THREADS
   21787 	pthread_kill_other_threads_np();
   21788 #endif
   21789 
   21790 	return 0;
   21791 
   21792 }
   21793 
   21794 _ACEOF
   21795 if ac_fn_c_try_run "$LINENO"
   21796 then :
   21797   ol_cv_pthread_lib_lpthreads=yes
   21798 else $as_nop
   21799   ol_cv_pthread_lib_lpthreads=no
   21800 fi
   21801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21802   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21803 fi
   21804 
   21805 
   21806 		# restore the LIBS
   21807 		LIBS="$ol_LIBS"
   21808 
   21809 fi
   21810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
   21811 printf "%s\n" "$ol_cv_pthread_lib_lpthreads" >&6; }
   21812 
   21813 	if test $ol_cv_pthread_lib_lpthreads = yes ; then
   21814 		ol_link_pthreads="-lpthreads"
   21815 		ol_link_threads=posix
   21816 	fi
   21817 fi
   21818 
   21819 
   21820 		if test $ol_link_threads != no ; then
   21821 			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
   21822 
   21823 						save_CPPFLAGS="$CPPFLAGS"
   21824 			save_LIBS="$LIBS"
   21825 			LIBS="$LTHREAD_LIBS $LIBS"
   21826 
   21827 												ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
   21828 if test "x$ac_cv_func_sched_yield" = xyes
   21829 then :
   21830   printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
   21831 
   21832 fi
   21833 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
   21834 if test "x$ac_cv_func_pthread_yield" = xyes
   21835 then :
   21836   printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
   21837 
   21838 fi
   21839 ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
   21840 if test "x$ac_cv_func_thr_yield" = xyes
   21841 then :
   21842   printf "%s\n" "#define HAVE_THR_YIELD 1" >>confdefs.h
   21843 
   21844 fi
   21845 
   21846 
   21847 			if test $ac_cv_func_sched_yield = no &&
   21848 			   test $ac_cv_func_pthread_yield = no &&
   21849 			   test $ac_cv_func_thr_yield = no ; then
   21850 								{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
   21851 printf %s "checking for sched_yield in -lrt... " >&6; }
   21852 if test ${ac_cv_lib_rt_sched_yield+y}
   21853 then :
   21854   printf %s "(cached) " >&6
   21855 else $as_nop
   21856   ac_check_lib_save_LIBS=$LIBS
   21857 LIBS="-lrt  $LIBS"
   21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21859 /* end confdefs.h.  */
   21860 
   21861 /* Override any GCC internal prototype to avoid an error.
   21862    Use char because int might match the return type of a GCC
   21863    builtin and then its argument prototype would still apply.  */
   21864 char sched_yield ();
   21865 int
   21866 main (void)
   21867 {
   21868 return sched_yield ();
   21869   ;
   21870   return 0;
   21871 }
   21872 _ACEOF
   21873 if ac_fn_c_try_link "$LINENO"
   21874 then :
   21875   ac_cv_lib_rt_sched_yield=yes
   21876 else $as_nop
   21877   ac_cv_lib_rt_sched_yield=no
   21878 fi
   21879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21880     conftest$ac_exeext conftest.$ac_ext
   21881 LIBS=$ac_check_lib_save_LIBS
   21882 fi
   21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
   21884 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
   21885 if test "x$ac_cv_lib_rt_sched_yield" = xyes
   21886 then :
   21887   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
   21888 
   21889 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
   21890 
   21891 					ac_cv_func_sched_yield=yes
   21892 else $as_nop
   21893   ac_cv_func_sched_yield=no
   21894 fi
   21895 
   21896 			fi
   21897 			if test $ac_cv_func_sched_yield = no &&
   21898 			   test $ac_cv_func_pthread_yield = no &&
   21899 			   test "$ac_cv_func_thr_yield" = no ; then
   21900 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
   21901 printf "%s\n" "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
   21902 			fi
   21903 
   21904 						ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
   21905 if test "x$ac_cv_func_pthread_kill" = xyes
   21906 then :
   21907   printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
   21908 
   21909 fi
   21910 
   21911 
   21912 									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
   21913 printf %s "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
   21914 if test ${ol_cv_func_pthread_rwlock_destroy+y}
   21915 then :
   21916   printf %s "(cached) " >&6
   21917 else $as_nop
   21918 
   21919 								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21920 /* end confdefs.h.  */
   21921 
   21922 #include <pthread.h>
   21923 pthread_rwlock_t rwlock;
   21924 
   21925 int
   21926 main (void)
   21927 {
   21928 pthread_rwlock_destroy(&rwlock);
   21929   ;
   21930   return 0;
   21931 }
   21932 _ACEOF
   21933 if ac_fn_c_try_link "$LINENO"
   21934 then :
   21935   ol_cv_func_pthread_rwlock_destroy=yes
   21936 else $as_nop
   21937   ol_cv_func_pthread_rwlock_destroy=no
   21938 fi
   21939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21940     conftest$ac_exeext conftest.$ac_ext
   21941 
   21942 fi
   21943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
   21944 printf "%s\n" "$ol_cv_func_pthread_rwlock_destroy" >&6; }
   21945 			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
   21946 
   21947 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
   21948 
   21949 			fi
   21950 
   21951 									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
   21952 printf %s "checking for pthread_detach with <pthread.h>... " >&6; }
   21953 if test ${ol_cv_func_pthread_detach+y}
   21954 then :
   21955   printf %s "(cached) " >&6
   21956 else $as_nop
   21957 
   21958 								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21959 /* end confdefs.h.  */
   21960 
   21961 #include <pthread.h>
   21962 pthread_t thread;
   21963 
   21964 int
   21965 main (void)
   21966 {
   21967 pthread_detach(thread);
   21968   ;
   21969   return 0;
   21970 }
   21971 _ACEOF
   21972 if ac_fn_c_try_link "$LINENO"
   21973 then :
   21974   ol_cv_func_pthread_detach=yes
   21975 else $as_nop
   21976   ol_cv_func_pthread_detach=no
   21977 fi
   21978 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21979     conftest$ac_exeext conftest.$ac_ext
   21980 
   21981 fi
   21982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
   21983 printf "%s\n" "$ol_cv_func_pthread_detach" >&6; }
   21984 
   21985 			if test $ol_cv_func_pthread_detach = no ; then
   21986 				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
   21987 			fi
   21988 
   21989 
   21990 printf "%s\n" "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
   21991 
   21992 
   21993 						ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
   21994 if test "x$ac_cv_func_pthread_setconcurrency" = xyes
   21995 then :
   21996   printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
   21997 
   21998 fi
   21999 ac_fn_c_check_func "$LINENO" "pthread_getconcurrency" "ac_cv_func_pthread_getconcurrency"
   22000 if test "x$ac_cv_func_pthread_getconcurrency" = xyes
   22001 then :
   22002   printf "%s\n" "#define HAVE_PTHREAD_GETCONCURRENCY 1" >>confdefs.h
   22003 
   22004 fi
   22005 ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
   22006 if test "x$ac_cv_func_thr_setconcurrency" = xyes
   22007 then :
   22008   printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
   22009 
   22010 fi
   22011 ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
   22012 if test "x$ac_cv_func_thr_getconcurrency" = xyes
   22013 then :
   22014   printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
   22015 
   22016 fi
   22017 
   22018 
   22019 
   22020 	ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
   22021 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes
   22022 then :
   22023   printf "%s\n" "#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1" >>confdefs.h
   22024 
   22025 fi
   22026 
   22027 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
   22028 printf %s "checking for LinuxThreads implementation... " >&6; }
   22029 if test ${ol_cv_sys_linux_threads+y}
   22030 then :
   22031   printf %s "(cached) " >&6
   22032 else $as_nop
   22033   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
   22034 fi
   22035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
   22036 printf "%s\n" "$ol_cv_sys_linux_threads" >&6; }
   22037 
   22038 
   22039 
   22040 
   22041 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
   22042 printf %s "checking for LinuxThreads consistency... " >&6; }
   22043 if test ${ol_cv_linux_threads+y}
   22044 then :
   22045   printf %s "(cached) " >&6
   22046 else $as_nop
   22047 
   22048 		if test $ol_cv_header_linux_threads = yes &&
   22049 		   test $ol_cv_sys_linux_threads = yes; then
   22050 			ol_cv_linux_threads=yes
   22051 		elif test $ol_cv_header_linux_threads = no &&
   22052 		     test $ol_cv_sys_linux_threads = no; then
   22053 			ol_cv_linux_threads=no
   22054 		else
   22055 			ol_cv_linux_threads=error
   22056 		fi
   22057 
   22058 fi
   22059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
   22060 printf "%s\n" "$ol_cv_linux_threads" >&6; }
   22061 
   22062 
   22063 			if test $ol_cv_linux_threads = error; then
   22064 				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
   22065 			fi
   22066 
   22067 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
   22068 printf %s "checking if pthread_create() works... " >&6; }
   22069 if test ${ol_cv_pthread_create_works+y}
   22070 then :
   22071   printf %s "(cached) " >&6
   22072 else $as_nop
   22073 
   22074 			if test "$cross_compiling" = yes
   22075 then :
   22076   				ol_cv_pthread_create_works=yes
   22077 else $as_nop
   22078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22079 /* end confdefs.h.  */
   22080 
   22081 /* pthread test headers */
   22082 #include <pthread.h>
   22083 #if HAVE_PTHREADS < 7
   22084 #include <errno.h>
   22085 #endif
   22086 #ifndef NULL
   22087 #define NULL (void*)0
   22088 #endif
   22089 
   22090 #ifdef __STDC__
   22091 static void *task(void *p)
   22092 #else
   22093 static void *task(p)
   22094 	void *p;
   22095 #endif
   22096 {
   22097 	return (void *) (p == NULL);
   22098 }
   22099 
   22100 
   22101 #ifdef __STDC__
   22102 int main(int argc, char **argv)
   22103 #else
   22104 int main(argc, argv)
   22105 	int argc;
   22106 	char **argv;
   22107 #endif
   22108 {
   22109 
   22110 	/* pthread test function */
   22111 #ifndef PTHREAD_CREATE_DETACHED
   22112 #define	PTHREAD_CREATE_DETACHED	1
   22113 #endif
   22114 	pthread_t t;
   22115 	int status;
   22116 	int detach = PTHREAD_CREATE_DETACHED;
   22117 
   22118 #if HAVE_PTHREADS > 4
   22119 	/* Final pthreads */
   22120 	pthread_attr_t attr;
   22121 
   22122 	status = pthread_attr_init(&attr);
   22123 	if( status ) return status;
   22124 
   22125 #if HAVE_PTHREADS < 7
   22126 	status = pthread_attr_setdetachstate(&attr, &detach);
   22127 	if( status < 0 ) status = errno;
   22128 #else
   22129 	status = pthread_attr_setdetachstate(&attr, detach);
   22130 #endif
   22131 	if( status ) return status;
   22132 	status = pthread_create( &t, &attr, task, NULL );
   22133 #if HAVE_PTHREADS < 7
   22134 	if( status < 0 ) status = errno;
   22135 #endif
   22136 	if( status ) return status;
   22137 #else
   22138 	/* Draft 4 pthreads */
   22139 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   22140 	if( status ) return errno;
   22141 
   22142 	/* give thread a chance to complete */
   22143 	/* it should remain joinable and hence detachable */
   22144 	sleep( 1 );
   22145 
   22146 	status = pthread_detach( &t );
   22147 	if( status ) return errno;
   22148 #endif
   22149 
   22150 #ifdef HAVE_LINUX_THREADS
   22151 	pthread_kill_other_threads_np();
   22152 #endif
   22153 
   22154 	return 0;
   22155 
   22156 }
   22157 
   22158 _ACEOF
   22159 if ac_fn_c_try_run "$LINENO"
   22160 then :
   22161   ol_cv_pthread_create_works=yes
   22162 else $as_nop
   22163   ol_cv_pthread_create_works=no
   22164 fi
   22165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22166   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22167 fi
   22168 
   22169 fi
   22170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
   22171 printf "%s\n" "$ol_cv_pthread_create_works" >&6; }
   22172 
   22173 			if test $ol_cv_pthread_create_works = no ; then
   22174 				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
   22175 			fi
   22176 
   22177 			ol_replace_broken_yield=no
   22178 
   22179 			if test $ol_replace_broken_yield = yes ; then
   22180 
   22181 printf "%s\n" "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
   22182 
   22183 			fi
   22184 
   22185 						if test $ol_with_yielding_select = auto ; then
   22186 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
   22187 printf %s "checking if select yields when using pthreads... " >&6; }
   22188 if test ${ol_cv_pthread_select_yields+y}
   22189 then :
   22190   printf %s "(cached) " >&6
   22191 else $as_nop
   22192 
   22193 				if test "$cross_compiling" = yes
   22194 then :
   22195   ol_cv_pthread_select_yields=cross
   22196 else $as_nop
   22197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22198 /* end confdefs.h.  */
   22199 
   22200 #define _XOPEN_SOURCE 500               /* For pthread_setconcurrency() on glibc */
   22201 #include <stdlib.h>
   22202 #include <stdio.h>
   22203 #include <sys/types.h>
   22204 #include <sys/time.h>
   22205 #include <unistd.h>
   22206 #include <pthread.h>
   22207 #ifndef NULL
   22208 #define NULL (void*) 0
   22209 #endif
   22210 
   22211 static int fildes[2];
   22212 
   22213 #ifdef __STDC__
   22214 static void *task(void *p)
   22215 #else
   22216 static void *task(p)
   22217 	void *p;
   22218 #endif
   22219 {
   22220 	int i;
   22221 	struct timeval tv;
   22222 
   22223 	fd_set rfds;
   22224 
   22225 	tv.tv_sec=10;
   22226 	tv.tv_usec=0;
   22227 
   22228 	FD_ZERO(&rfds);
   22229 	FD_SET(fildes[0], &rfds);
   22230 
   22231 	/* we're not interested in any fds */
   22232 	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
   22233 
   22234 	if(i < 0) {
   22235 		perror("select");
   22236 		exit(10);
   22237 	}
   22238 
   22239 	exit(0); /* if we exit here, the select blocked the whole process */
   22240 }
   22241 
   22242 #ifdef __STDC__
   22243 int main(int argc, char **argv)
   22244 #else
   22245 int main(argc, argv)
   22246 	int argc;
   22247 	char **argv;
   22248 #endif
   22249 {
   22250 	pthread_t t;
   22251 
   22252 	/* create a pipe to select */
   22253 	if(pipe(&fildes[0])) {
   22254 		perror("select");
   22255 		exit(1);
   22256 	}
   22257 
   22258 #ifdef HAVE_PTHREAD_SETCONCURRENCY
   22259 	(void) pthread_setconcurrency(2);
   22260 #else
   22261 #ifdef HAVE_THR_SETCONCURRENCY
   22262 	/* Set Solaris LWP concurrency to 2 */
   22263 	thr_setconcurrency(2);
   22264 #endif
   22265 #endif
   22266 
   22267 #if HAVE_PTHREADS < 6
   22268 	pthread_create(&t, pthread_attr_default, task, NULL);
   22269 #else
   22270 	pthread_create(&t, NULL, task, NULL);
   22271 #endif
   22272 
   22273 	/* make sure task runs first */
   22274 #ifdef HAVE_THR_YIELD
   22275 	thr_yield();
   22276 #elif defined( HAVE_SCHED_YIELD )
   22277 	sched_yield();
   22278 #elif defined( HAVE_PTHREAD_YIELD )
   22279 	pthread_yield();
   22280 #endif
   22281 
   22282 	exit(2);
   22283 }
   22284 _ACEOF
   22285 if ac_fn_c_try_run "$LINENO"
   22286 then :
   22287   ol_cv_pthread_select_yields=no
   22288 else $as_nop
   22289   ol_cv_pthread_select_yields=yes
   22290 fi
   22291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22292   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22293 fi
   22294 
   22295 fi
   22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
   22297 printf "%s\n" "$ol_cv_pthread_select_yields" >&6; }
   22298 
   22299 				if test $ol_cv_pthread_select_yields = cross ; then
   22300 					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
   22301 				fi
   22302 
   22303 				if test $ol_cv_pthread_select_yields = yes ; then
   22304 					ol_with_yielding_select=yes
   22305 				fi
   22306 			fi
   22307 
   22308 						CPPFLAGS="$save_CPPFLAGS"
   22309 			LIBS="$save_LIBS"
   22310 		else
   22311 			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
   22312 		fi
   22313 	fi
   22314 
   22315 	if test $ol_with_threads = posix ; then
   22316 		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
   22317 	fi
   22318 	;;
   22319 esac
   22320 
   22321 case $ol_with_threads in auto | yes | pth)
   22322 
   22323 	ac_fn_c_check_header_compile "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
   22324 if test "x$ac_cv_header_pth_h" = xyes
   22325 then :
   22326   printf "%s\n" "#define HAVE_PTH_H 1" >>confdefs.h
   22327 
   22328 fi
   22329 
   22330 
   22331 	if test $ac_cv_header_pth_h = yes ; then
   22332 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
   22333 printf %s "checking for pth_version in -lpth... " >&6; }
   22334 if test ${ac_cv_lib_pth_pth_version+y}
   22335 then :
   22336   printf %s "(cached) " >&6
   22337 else $as_nop
   22338   ac_check_lib_save_LIBS=$LIBS
   22339 LIBS="-lpth  $LIBS"
   22340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22341 /* end confdefs.h.  */
   22342 
   22343 /* Override any GCC internal prototype to avoid an error.
   22344    Use char because int might match the return type of a GCC
   22345    builtin and then its argument prototype would still apply.  */
   22346 char pth_version ();
   22347 int
   22348 main (void)
   22349 {
   22350 return pth_version ();
   22351   ;
   22352   return 0;
   22353 }
   22354 _ACEOF
   22355 if ac_fn_c_try_link "$LINENO"
   22356 then :
   22357   ac_cv_lib_pth_pth_version=yes
   22358 else $as_nop
   22359   ac_cv_lib_pth_pth_version=no
   22360 fi
   22361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22362     conftest$ac_exeext conftest.$ac_ext
   22363 LIBS=$ac_check_lib_save_LIBS
   22364 fi
   22365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
   22366 printf "%s\n" "$ac_cv_lib_pth_pth_version" >&6; }
   22367 if test "x$ac_cv_lib_pth_pth_version" = xyes
   22368 then :
   22369   have_pth=yes
   22370 else $as_nop
   22371   have_pth=no
   22372 fi
   22373 
   22374 
   22375 		if test $have_pth = yes ; then
   22376 
   22377 printf "%s\n" "#define HAVE_GNU_PTH 1" >>confdefs.h
   22378 
   22379 			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
   22380 			ol_link_threads=pth
   22381 			ol_with_threads=found
   22382 
   22383 			if test $ol_with_yielding_select = auto ; then
   22384 				ol_with_yielding_select=yes
   22385 			fi
   22386 		fi
   22387 	fi
   22388 	;;
   22389 esac
   22390 
   22391 case $ol_with_threads in auto | yes | lwp)
   22392 
   22393 		ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
   22394 if test "x$ac_cv_header_thread_h" = xyes
   22395 then :
   22396   printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
   22397 
   22398 fi
   22399 ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
   22400 if test "x$ac_cv_header_synch_h" = xyes
   22401 then :
   22402   printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
   22403 
   22404 fi
   22405 
   22406 	if test $ac_cv_header_thread_h = yes &&
   22407 	   test $ac_cv_header_synch_h = yes ; then
   22408 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
   22409 printf %s "checking for thr_create in -lthread... " >&6; }
   22410 if test ${ac_cv_lib_thread_thr_create+y}
   22411 then :
   22412   printf %s "(cached) " >&6
   22413 else $as_nop
   22414   ac_check_lib_save_LIBS=$LIBS
   22415 LIBS="-lthread  $LIBS"
   22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22417 /* end confdefs.h.  */
   22418 
   22419 /* Override any GCC internal prototype to avoid an error.
   22420    Use char because int might match the return type of a GCC
   22421    builtin and then its argument prototype would still apply.  */
   22422 char thr_create ();
   22423 int
   22424 main (void)
   22425 {
   22426 return thr_create ();
   22427   ;
   22428   return 0;
   22429 }
   22430 _ACEOF
   22431 if ac_fn_c_try_link "$LINENO"
   22432 then :
   22433   ac_cv_lib_thread_thr_create=yes
   22434 else $as_nop
   22435   ac_cv_lib_thread_thr_create=no
   22436 fi
   22437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22438     conftest$ac_exeext conftest.$ac_ext
   22439 LIBS=$ac_check_lib_save_LIBS
   22440 fi
   22441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
   22442 printf "%s\n" "$ac_cv_lib_thread_thr_create" >&6; }
   22443 if test "x$ac_cv_lib_thread_thr_create" = xyes
   22444 then :
   22445   have_thr=yes
   22446 else $as_nop
   22447   have_thr=no
   22448 fi
   22449 
   22450 
   22451 		if test $have_thr = yes ; then
   22452 
   22453 printf "%s\n" "#define HAVE_THR 1" >>confdefs.h
   22454 
   22455 			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
   22456 			ol_link_threads=thr
   22457 
   22458 			if test $ol_with_yielding_select = auto ; then
   22459 				ol_with_yielding_select=yes
   22460 			fi
   22461 
   22462 						ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
   22463 if test "x$ac_cv_func_thr_setconcurrency" = xyes
   22464 then :
   22465   printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
   22466 
   22467 fi
   22468 ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
   22469 if test "x$ac_cv_func_thr_getconcurrency" = xyes
   22470 then :
   22471   printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
   22472 
   22473 fi
   22474 
   22475 		fi
   22476 	fi
   22477 	;;
   22478 esac
   22479 
   22480 if test $ol_with_yielding_select = yes ; then
   22481 
   22482 printf "%s\n" "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
   22483 
   22484 fi
   22485 
   22486 if test $ol_with_threads = manual ; then
   22487 		ol_link_threads=yes
   22488 
   22489 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
   22490 printf "%s\n" "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
   22491 
   22492 	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   22493 if test "x$ac_cv_header_pthread_h" = xyes
   22494 then :
   22495   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
   22496 
   22497 fi
   22498 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   22499 if test "x$ac_cv_header_sched_h" = xyes
   22500 then :
   22501   printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
   22502 
   22503 fi
   22504 
   22505 	ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
   22506 if test "x$ac_cv_func_sched_yield" = xyes
   22507 then :
   22508   printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
   22509 
   22510 fi
   22511 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
   22512 if test "x$ac_cv_func_pthread_yield" = xyes
   22513 then :
   22514   printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
   22515 
   22516 fi
   22517 
   22518 
   22519 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
   22520 printf %s "checking for LinuxThreads pthread.h... " >&6; }
   22521 if test ${ol_cv_header_linux_threads+y}
   22522 then :
   22523   printf %s "(cached) " >&6
   22524 else $as_nop
   22525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22526 /* end confdefs.h.  */
   22527 #include <pthread.h>
   22528 _ACEOF
   22529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22530   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
   22531 then :
   22532   ol_cv_header_linux_threads=yes
   22533 else $as_nop
   22534   ol_cv_header_linux_threads=no
   22535 fi
   22536 rm -rf conftest*
   22537 
   22538 
   22539 fi
   22540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
   22541 printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
   22542 	if test $ol_cv_header_linux_threads = yes; then
   22543 
   22544 printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
   22545 
   22546 	fi
   22547 
   22548 
   22549 	ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
   22550 if test "x$ac_cv_header_thread_h" = xyes
   22551 then :
   22552   printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
   22553 
   22554 fi
   22555 ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
   22556 if test "x$ac_cv_header_synch_h" = xyes
   22557 then :
   22558   printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
   22559 
   22560 fi
   22561 
   22562 fi
   22563 
   22564 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
   22565 			printf "%s\n" "#define REENTRANT 1" >>confdefs.h
   22566 
   22567 	printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
   22568 
   22569 	printf "%s\n" "#define THREAD_SAFE 1" >>confdefs.h
   22570 
   22571 	printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
   22572 
   22573 	printf "%s\n" "#define THREADSAFE 1" >>confdefs.h
   22574 
   22575 	printf "%s\n" "#define _THREADSAFE 1" >>confdefs.h
   22576 
   22577 	printf "%s\n" "#define _SGI_MP_SOURCE 1" >>confdefs.h
   22578 
   22579 
   22580 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
   22581 printf %s "checking for thread specific errno... " >&6; }
   22582 if test ${ol_cv_errno_thread_specific+y}
   22583 then :
   22584   printf %s "(cached) " >&6
   22585 else $as_nop
   22586 
   22587 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22588 /* end confdefs.h.  */
   22589 #include <errno.h>
   22590 int
   22591 main (void)
   22592 {
   22593 errno = 0;
   22594   ;
   22595   return 0;
   22596 }
   22597 _ACEOF
   22598 if ac_fn_c_try_link "$LINENO"
   22599 then :
   22600   ol_cv_errno_thread_specific=yes
   22601 else $as_nop
   22602   ol_cv_errno_thread_specific=no
   22603 fi
   22604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22605     conftest$ac_exeext conftest.$ac_ext
   22606 
   22607 fi
   22608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
   22609 printf "%s\n" "$ol_cv_errno_thread_specific" >&6; }
   22610 
   22611 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
   22612 printf %s "checking for thread specific h_errno... " >&6; }
   22613 if test ${ol_cv_h_errno_thread_specific+y}
   22614 then :
   22615   printf %s "(cached) " >&6
   22616 else $as_nop
   22617 
   22618 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22619 /* end confdefs.h.  */
   22620 #include <netdb.h>
   22621 int
   22622 main (void)
   22623 {
   22624 h_errno = 0;
   22625   ;
   22626   return 0;
   22627 }
   22628 _ACEOF
   22629 if ac_fn_c_try_link "$LINENO"
   22630 then :
   22631   ol_cv_h_errno_thread_specific=yes
   22632 else $as_nop
   22633   ol_cv_h_errno_thread_specific=no
   22634 fi
   22635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22636     conftest$ac_exeext conftest.$ac_ext
   22637 
   22638 fi
   22639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
   22640 printf "%s\n" "$ol_cv_h_errno_thread_specific" >&6; }
   22641 
   22642 	if test $ol_cv_errno_thread_specific != yes ||
   22643 	   test $ol_cv_h_errno_thread_specific != yes ; then
   22644 		LIBS="$LTHREAD_LIBS $LIBS"
   22645 		LTHREAD_LIBS=""
   22646 	fi
   22647 
   22648 fi
   22649 
   22650 if test $ol_link_threads = no ; then
   22651 	if test $ol_enable_slapd != no; then
   22652 		as_fn_error $? "slapd requires thread support" "$LINENO" 5
   22653 	fi
   22654 
   22655 	if test $ol_with_threads = yes ; then
   22656 		as_fn_error $? "no suitable thread support" "$LINENO" 5
   22657 	fi
   22658 
   22659 	if test $ol_with_threads = auto ; then
   22660 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
   22661 printf "%s\n" "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
   22662 		ol_with_threads=no
   22663 	fi
   22664 
   22665 
   22666 printf "%s\n" "#define NO_THREADS 1" >>confdefs.h
   22667 
   22668 	LTHREAD_LIBS=""
   22669 	BUILD_THREAD=no
   22670 else
   22671 	BUILD_THREAD=yes
   22672 fi
   22673 
   22674 if test $ol_link_threads != no ; then
   22675 
   22676 printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
   22677 
   22678 
   22679 
   22680 printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1" >>confdefs.h
   22681 
   22682 fi
   22683 
   22684 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
   22685 if test "x$ac_cv_func_ctime_r" = xyes
   22686 then :
   22687   printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
   22688 
   22689 fi
   22690 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
   22691 if test "x$ac_cv_func_gmtime_r" = xyes
   22692 then :
   22693   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
   22694 
   22695 fi
   22696 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
   22697 if test "x$ac_cv_func_localtime_r" = xyes
   22698 then :
   22699   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
   22700 
   22701 fi
   22702 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
   22703 if test "x$ac_cv_func_gethostbyname_r" = xyes
   22704 then :
   22705   printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   22706 
   22707 fi
   22708 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
   22709 if test "x$ac_cv_func_gethostbyaddr_r" = xyes
   22710 then :
   22711   printf "%s\n" "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
   22712 
   22713 fi
   22714 
   22715 
   22716 if test "$ac_cv_func_ctime_r" = no ; then
   22717 	ol_cv_func_ctime_r_nargs=0
   22718 else
   22719 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
   22720 printf %s "checking number of arguments of ctime_r... " >&6; }
   22721 if test ${ol_cv_func_ctime_r_nargs+y}
   22722 then :
   22723   printf %s "(cached) " >&6
   22724 else $as_nop
   22725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22726 /* end confdefs.h.  */
   22727 #include <time.h>
   22728 int
   22729 main (void)
   22730 {
   22731 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
   22732   ;
   22733   return 0;
   22734 }
   22735 _ACEOF
   22736 if ac_fn_c_try_compile "$LINENO"
   22737 then :
   22738   ol_cv_func_ctime_r_nargs3=yes
   22739 else $as_nop
   22740   ol_cv_func_ctime_r_nargs3=no
   22741 fi
   22742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22743 
   22744 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22745 /* end confdefs.h.  */
   22746 #include <time.h>
   22747 int
   22748 main (void)
   22749 {
   22750 time_t ti; char *buffer; ctime_r(&ti,buffer);
   22751   ;
   22752   return 0;
   22753 }
   22754 _ACEOF
   22755 if ac_fn_c_try_compile "$LINENO"
   22756 then :
   22757   ol_cv_func_ctime_r_nargs2=yes
   22758 else $as_nop
   22759   ol_cv_func_ctime_r_nargs2=no
   22760 fi
   22761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22762 
   22763 	if test $ol_cv_func_ctime_r_nargs3 = yes &&
   22764 	   test $ol_cv_func_ctime_r_nargs2 = no ; then
   22765 
   22766 		ol_cv_func_ctime_r_nargs=3
   22767 
   22768 	elif test $ol_cv_func_ctime_r_nargs3 = no &&
   22769 	     test $ol_cv_func_ctime_r_nargs2 = yes ; then
   22770 
   22771 		ol_cv_func_ctime_r_nargs=2
   22772 
   22773 	else
   22774 		ol_cv_func_ctime_r_nargs=0
   22775 	fi
   22776 
   22777 fi
   22778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
   22779 printf "%s\n" "$ol_cv_func_ctime_r_nargs" >&6; }
   22780 
   22781   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
   22782 
   22783 printf "%s\n" "#define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs" >>confdefs.h
   22784 
   22785   fi
   22786 
   22787 fi
   22788 
   22789 if test "$ac_cv_func_gethostbyname_r" = yes ; then
   22790  	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
   22791 printf %s "checking number of arguments of gethostbyname_r... " >&6; }
   22792 if test ${ol_cv_func_gethostbyname_r_nargs+y}
   22793 then :
   22794   printf %s "(cached) " >&6
   22795 else $as_nop
   22796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22797 /* end confdefs.h.  */
   22798 #include <sys/types.h>
   22799 #include <sys/socket.h>
   22800 #include <netinet/in.h>
   22801 #include <netdb.h>
   22802 #define BUFSIZE (sizeof(struct hostent)+10)
   22803 int
   22804 main (void)
   22805 {
   22806 struct hostent hent; char buffer[BUFSIZE];
   22807 		int bufsize=BUFSIZE;int h_errno;
   22808 		(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
   22809 			buffer, bufsize, &h_errno);
   22810   ;
   22811   return 0;
   22812 }
   22813 _ACEOF
   22814 if ac_fn_c_try_compile "$LINENO"
   22815 then :
   22816   ol_cv_func_gethostbyname_r_nargs5=yes
   22817 else $as_nop
   22818   ol_cv_func_gethostbyname_r_nargs5=no
   22819 fi
   22820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22821 
   22822 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22823 /* end confdefs.h.  */
   22824 #include <sys/types.h>
   22825 #include <sys/socket.h>
   22826 #include <netinet/in.h>
   22827 #include <netdb.h>
   22828 #define BUFSIZE (sizeof(struct hostent)+10)
   22829 int
   22830 main (void)
   22831 {
   22832 struct hostent hent;struct hostent *rhent;
   22833 		char buffer[BUFSIZE];
   22834 		int bufsize=BUFSIZE;int h_errno;
   22835 		(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
   22836 			&rhent, &h_errno);
   22837   ;
   22838   return 0;
   22839 }
   22840 _ACEOF
   22841 if ac_fn_c_try_compile "$LINENO"
   22842 then :
   22843   ol_cv_func_gethostbyname_r_nargs6=yes
   22844 else $as_nop
   22845   ol_cv_func_gethostbyname_r_nargs6=no
   22846 fi
   22847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22848 
   22849 	if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
   22850 	   test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
   22851 
   22852 		ol_cv_func_gethostbyname_r_nargs=5
   22853 
   22854 	elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
   22855 	     test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
   22856 
   22857 		ol_cv_func_gethostbyname_r_nargs=6
   22858 
   22859 	else
   22860 		ol_cv_func_gethostbyname_r_nargs=0
   22861 	fi
   22862 
   22863 fi
   22864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
   22865 printf "%s\n" "$ol_cv_func_gethostbyname_r_nargs" >&6; }
   22866   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
   22867 
   22868 printf "%s\n" "#define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs" >>confdefs.h
   22869 
   22870   fi
   22871 
   22872 else
   22873  	ol_cv_func_gethostbyname_r_nargs=0
   22874 fi
   22875 
   22876 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
   22877  	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
   22878 printf %s "checking number of arguments of gethostbyaddr_r... " >&6; }
   22879 if test ${ol_cv_func_gethostbyaddr_r_nargs+y}
   22880 then :
   22881   printf %s "(cached) " >&6
   22882 else $as_nop
   22883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22884 /* end confdefs.h.  */
   22885 #include <sys/types.h>
   22886 #include <sys/socket.h>
   22887 #include <netinet/in.h>
   22888 #include <netdb.h>
   22889 #define BUFSIZE (sizeof(struct hostent)+10)
   22890 int
   22891 main (void)
   22892 {
   22893 struct hostent hent; char buffer[BUFSIZE];
   22894 	    struct in_addr add;
   22895 	    size_t alen=sizeof(struct in_addr);
   22896 	    int bufsize=BUFSIZE;int h_errno;
   22897 		(void)gethostbyaddr_r( (void *)&(add.s_addr),
   22898 			alen, AF_INET, &hent, buffer, bufsize, &h_errno);
   22899   ;
   22900   return 0;
   22901 }
   22902 _ACEOF
   22903 if ac_fn_c_try_compile "$LINENO"
   22904 then :
   22905   ol_cv_func_gethostbyaddr_r_nargs7=yes
   22906 else $as_nop
   22907   ol_cv_func_gethostbyaddr_r_nargs7=no
   22908 fi
   22909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22910 
   22911 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22912 /* end confdefs.h.  */
   22913 #include <sys/types.h>
   22914 #include <sys/socket.h>
   22915 #include <netinet/in.h>
   22916 #include <netdb.h>
   22917 #define BUFSIZE (sizeof(struct hostent)+10)
   22918 int
   22919 main (void)
   22920 {
   22921 struct hostent hent;
   22922 		struct hostent *rhent; char buffer[BUFSIZE];
   22923 		struct in_addr add;
   22924 		size_t alen=sizeof(struct in_addr);
   22925 		int bufsize=BUFSIZE;int h_errno;
   22926 		(void)gethostbyaddr_r( (void *)&(add.s_addr),
   22927 			alen, AF_INET, &hent, buffer, bufsize,
   22928 			&rhent, &h_errno);
   22929   ;
   22930   return 0;
   22931 }
   22932 _ACEOF
   22933 if ac_fn_c_try_compile "$LINENO"
   22934 then :
   22935   ol_cv_func_gethostbyaddr_r_nargs8=yes
   22936 else $as_nop
   22937   ol_cv_func_gethostbyaddr_r_nargs8=no
   22938 fi
   22939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22940 
   22941 	if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
   22942 	   test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
   22943 
   22944 		ol_cv_func_gethostbyaddr_r_nargs=7
   22945 
   22946 	elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
   22947 	     test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
   22948 
   22949 		ol_cv_func_gethostbyaddr_r_nargs=8
   22950 
   22951 	else
   22952 		ol_cv_func_gethostbyaddr_r_nargs=0
   22953 	fi
   22954 
   22955 fi
   22956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
   22957 printf "%s\n" "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
   22958   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
   22959 
   22960 printf "%s\n" "#define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs" >>confdefs.h
   22961 
   22962   fi
   22963 
   22964 else
   22965  	ol_cv_func_gethostbyaddr_r_nargs=0
   22966 fi
   22967 
   22968 
   22969 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
   22970 	BUILD_LIBS_DYNAMIC=shared
   22971 
   22972 printf "%s\n" "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
   22973 
   22974 	LTSTATIC=""
   22975 else
   22976 	BUILD_LIBS_DYNAMIC=static
   22977 	LTSTATIC="-static"
   22978 fi
   22979 
   22980 if test $ol_enable_wrappers != no ; then
   22981 	       for ac_header in tcpd.h
   22982 do :
   22983   ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
   22984 if test "x$ac_cv_header_tcpd_h" = xyes
   22985 then :
   22986   printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
   22987 
   22988 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
   22989 printf %s "checking for TCP wrappers library... " >&6; }
   22990 		save_LIBS="$LIBS"
   22991 		LIBS="$LIBS -lwrap"
   22992 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22993 /* end confdefs.h.  */
   22994 
   22995 #include <tcpd.h>
   22996 int allow_severity = 0;
   22997 int deny_severity  = 0;
   22998 
   22999 struct request_info *req;
   23000 
   23001 int
   23002 main (void)
   23003 {
   23004 
   23005 hosts_access(req)
   23006 
   23007   ;
   23008   return 0;
   23009 }
   23010 _ACEOF
   23011 if ac_fn_c_try_link "$LINENO"
   23012 then :
   23013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
   23014 printf "%s\n" "-lwrap" >&6; }
   23015 		have_wrappers=yes
   23016 		LIBS="$save_LIBS"
   23017 else $as_nop
   23018 
   23019 				LIBS="$LIBS -lnsl"
   23020 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23021 /* end confdefs.h.  */
   23022 
   23023 #include <tcpd.h>
   23024 int allow_severity = 0;
   23025 int deny_severity  = 0;
   23026 
   23027 struct request_info *req;
   23028 
   23029 int
   23030 main (void)
   23031 {
   23032 
   23033 hosts_access(req)
   23034 
   23035   ;
   23036   return 0;
   23037 }
   23038 _ACEOF
   23039 if ac_fn_c_try_link "$LINENO"
   23040 then :
   23041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
   23042 printf "%s\n" "-lwrap -lnsl" >&6; }
   23043 		have_wrappers=yes
   23044 		LIBS="$save_LIBS -lnsl"
   23045 else $as_nop
   23046 
   23047 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23048 printf "%s\n" "no" >&6; }
   23049 		have_wrappers=no
   23050 		LIBS=$save_LIBS
   23051 fi
   23052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23053     conftest$ac_exeext conftest.$ac_ext
   23054 fi
   23055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23056     conftest$ac_exeext conftest.$ac_ext
   23057 else $as_nop
   23058   have_wrappers=no
   23059 fi
   23060 
   23061 done
   23062 
   23063 	if test $have_wrappers = yes ; then
   23064 
   23065 printf "%s\n" "#define HAVE_TCPD 1" >>confdefs.h
   23066 
   23067 		WRAP_LIBS="-lwrap"
   23068 	elif test $ol_enable_wrappers = yes ; then
   23069 		as_fn_error $? "could not find TCP wrappers, select appropriate options or disable" "$LINENO" 5
   23070 	else
   23071 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
   23072 printf "%s\n" "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
   23073 		WRAP_LIBS=""
   23074 	fi
   23075 fi
   23076 
   23077 if test $ol_enable_syslog != no ; then
   23078 	ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
   23079 if test "x$ac_cv_func_openlog" = xyes
   23080 then :
   23081 
   23082 fi
   23083 
   23084 	if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
   23085 		as_fn_error select appropriate options or disable "could not find syslog" "$LINENO" 5
   23086 	fi
   23087 	ol_enable_syslog=$ac_cv_func_openlog
   23088 fi
   23089 
   23090 ol_link_sql=no
   23091 if test $ol_enable_sql != no ; then
   23092 	       for ac_header in sql.h sqlext.h
   23093 do :
   23094   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
   23095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   23096 if eval test \"x\$"$as_ac_Header"\" = x"yes"
   23097 then :
   23098   cat >>confdefs.h <<_ACEOF
   23099 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
   23100 _ACEOF
   23101 
   23102 else $as_nop
   23103 
   23104 		as_fn_error $? "could not locate SQL headers" "$LINENO" 5
   23105 
   23106 fi
   23107 
   23108 done
   23109 
   23110 	sql_LIBS="$LIBS"
   23111 	LIBS="$LTHREAD_LIBS $LIBS"
   23112 
   23113 	if test $ol_with_odbc = auto ; then
   23114 		ol_with_odbc="iodbc unixodbc odbc32"
   23115 	fi
   23116 
   23117 	for odbc in $ol_with_odbc ; do
   23118 		if test $ol_link_sql = no ; then
   23119 			case $odbc in
   23120 			iodbc)
   23121 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
   23122 printf %s "checking for SQLDriverConnect in -liodbc... " >&6; }
   23123 if test ${ac_cv_lib_iodbc_SQLDriverConnect+y}
   23124 then :
   23125   printf %s "(cached) " >&6
   23126 else $as_nop
   23127   ac_check_lib_save_LIBS=$LIBS
   23128 LIBS="-liodbc  $LIBS"
   23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23130 /* end confdefs.h.  */
   23131 
   23132 /* Override any GCC internal prototype to avoid an error.
   23133    Use char because int might match the return type of a GCC
   23134    builtin and then its argument prototype would still apply.  */
   23135 char SQLDriverConnect ();
   23136 int
   23137 main (void)
   23138 {
   23139 return SQLDriverConnect ();
   23140   ;
   23141   return 0;
   23142 }
   23143 _ACEOF
   23144 if ac_fn_c_try_link "$LINENO"
   23145 then :
   23146   ac_cv_lib_iodbc_SQLDriverConnect=yes
   23147 else $as_nop
   23148   ac_cv_lib_iodbc_SQLDriverConnect=no
   23149 fi
   23150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23151     conftest$ac_exeext conftest.$ac_ext
   23152 LIBS=$ac_check_lib_save_LIBS
   23153 fi
   23154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
   23155 printf "%s\n" "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
   23156 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = xyes
   23157 then :
   23158   have_iodbc=yes
   23159 else $as_nop
   23160   have_iodbc=no
   23161 fi
   23162 
   23163 				if test $have_iodbc = yes ; then
   23164 					ol_link_sql="-liodbc"
   23165 				fi
   23166 				;;
   23167 
   23168 			unixodbc)
   23169 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
   23170 printf %s "checking for SQLDriverConnect in -lodbc... " >&6; }
   23171 if test ${ac_cv_lib_odbc_SQLDriverConnect+y}
   23172 then :
   23173   printf %s "(cached) " >&6
   23174 else $as_nop
   23175   ac_check_lib_save_LIBS=$LIBS
   23176 LIBS="-lodbc  $LIBS"
   23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23178 /* end confdefs.h.  */
   23179 
   23180 /* Override any GCC internal prototype to avoid an error.
   23181    Use char because int might match the return type of a GCC
   23182    builtin and then its argument prototype would still apply.  */
   23183 char SQLDriverConnect ();
   23184 int
   23185 main (void)
   23186 {
   23187 return SQLDriverConnect ();
   23188   ;
   23189   return 0;
   23190 }
   23191 _ACEOF
   23192 if ac_fn_c_try_link "$LINENO"
   23193 then :
   23194   ac_cv_lib_odbc_SQLDriverConnect=yes
   23195 else $as_nop
   23196   ac_cv_lib_odbc_SQLDriverConnect=no
   23197 fi
   23198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23199     conftest$ac_exeext conftest.$ac_ext
   23200 LIBS=$ac_check_lib_save_LIBS
   23201 fi
   23202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
   23203 printf "%s\n" "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
   23204 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = xyes
   23205 then :
   23206   have_odbc=yes
   23207 else $as_nop
   23208   have_odbc=no
   23209 fi
   23210 
   23211 				if test $have_odbc = yes ; then
   23212 					ol_link_sql="-lodbc"
   23213 				fi
   23214 				;;
   23215 
   23216 			odbc32)
   23217 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
   23218 printf %s "checking for SQLDriverConnect in -lodbc32... " >&6; }
   23219 if test ${ac_cv_lib_odbc32_SQLDriverConnect+y}
   23220 then :
   23221   printf %s "(cached) " >&6
   23222 else $as_nop
   23223   ac_check_lib_save_LIBS=$LIBS
   23224 LIBS="-lodbc32  $LIBS"
   23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23226 /* end confdefs.h.  */
   23227 
   23228 /* Override any GCC internal prototype to avoid an error.
   23229    Use char because int might match the return type of a GCC
   23230    builtin and then its argument prototype would still apply.  */
   23231 char SQLDriverConnect ();
   23232 int
   23233 main (void)
   23234 {
   23235 return SQLDriverConnect ();
   23236   ;
   23237   return 0;
   23238 }
   23239 _ACEOF
   23240 if ac_fn_c_try_link "$LINENO"
   23241 then :
   23242   ac_cv_lib_odbc32_SQLDriverConnect=yes
   23243 else $as_nop
   23244   ac_cv_lib_odbc32_SQLDriverConnect=no
   23245 fi
   23246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23247     conftest$ac_exeext conftest.$ac_ext
   23248 LIBS=$ac_check_lib_save_LIBS
   23249 fi
   23250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
   23251 printf "%s\n" "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
   23252 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = xyes
   23253 then :
   23254   have_odbc32=yes
   23255 else $as_nop
   23256   have_odbc32=no
   23257 fi
   23258 
   23259 
   23260 								if test $have_odbc32 = no ; then
   23261 					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
   23262 printf %s "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
   23263 					save_LIBS="$LIBS"
   23264 					LIBS="$LIBS -lodbc32"
   23265 					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23266 /* end confdefs.h.  */
   23267 #include <windows.h>
   23268 					#include <sqlext.h>
   23269 
   23270 int
   23271 main (void)
   23272 {
   23273 
   23274 						SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
   23275 
   23276   ;
   23277   return 0;
   23278 }
   23279 _ACEOF
   23280 if ac_fn_c_try_link "$LINENO"
   23281 then :
   23282   have_odbc32=yes
   23283 else $as_nop
   23284   have_odbc32=no
   23285 fi
   23286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23287     conftest$ac_exeext conftest.$ac_ext
   23288 					LIBS="$save_LIBS"
   23289 					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
   23290 printf "%s\n" "$have_odbc32" >&6; }
   23291 				fi
   23292 
   23293 				if test $have_odbc32 = yes ; then
   23294 					ol_link_sql="-lodbc32"
   23295 				fi
   23296 				;;
   23297 
   23298 			*)
   23299 				as_fn_error $? "unknown ODBC library" "$LINENO" 5
   23300 				;;
   23301 			esac
   23302 		fi
   23303 	done
   23304 
   23305 	LIBS="$sql_LIBS"
   23306 
   23307 	if test $ol_link_sql != no ; then
   23308 		SLAPD_SQL_LIBS="$ol_link_sql"
   23309 
   23310 	elif test $ol_enable_sql != auto ; then
   23311 		as_fn_error $? "could not locate suitable ODBC library" "$LINENO" 5
   23312 	fi
   23313 fi
   23314 
   23315 ol_link_wt=no
   23316 if test $ol_enable_wt != no ; then
   23317 
   23318 
   23319 
   23320 
   23321 
   23322 
   23323 
   23324 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   23325 	if test -n "$ac_tool_prefix"; then
   23326   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   23327 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   23328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23329 printf %s "checking for $ac_word... " >&6; }
   23330 if test ${ac_cv_path_PKG_CONFIG+y}
   23331 then :
   23332   printf %s "(cached) " >&6
   23333 else $as_nop
   23334   case $PKG_CONFIG in
   23335   [\\/]* | ?:[\\/]*)
   23336   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   23337   ;;
   23338   *)
   23339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23340 for as_dir in $PATH
   23341 do
   23342   IFS=$as_save_IFS
   23343   case $as_dir in #(((
   23344     '') as_dir=./ ;;
   23345     */) ;;
   23346     *) as_dir=$as_dir/ ;;
   23347   esac
   23348     for ac_exec_ext in '' $ac_executable_extensions; do
   23349   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   23350     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   23351     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   23352     break 2
   23353   fi
   23354 done
   23355   done
   23356 IFS=$as_save_IFS
   23357 
   23358   ;;
   23359 esac
   23360 fi
   23361 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   23362 if test -n "$PKG_CONFIG"; then
   23363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   23364 printf "%s\n" "$PKG_CONFIG" >&6; }
   23365 else
   23366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23367 printf "%s\n" "no" >&6; }
   23368 fi
   23369 
   23370 
   23371 fi
   23372 if test -z "$ac_cv_path_PKG_CONFIG"; then
   23373   ac_pt_PKG_CONFIG=$PKG_CONFIG
   23374   # Extract the first word of "pkg-config", so it can be a program name with args.
   23375 set dummy pkg-config; ac_word=$2
   23376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23377 printf %s "checking for $ac_word... " >&6; }
   23378 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   23379 then :
   23380   printf %s "(cached) " >&6
   23381 else $as_nop
   23382   case $ac_pt_PKG_CONFIG in
   23383   [\\/]* | ?:[\\/]*)
   23384   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   23385   ;;
   23386   *)
   23387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23388 for as_dir in $PATH
   23389 do
   23390   IFS=$as_save_IFS
   23391   case $as_dir in #(((
   23392     '') as_dir=./ ;;
   23393     */) ;;
   23394     *) as_dir=$as_dir/ ;;
   23395   esac
   23396     for ac_exec_ext in '' $ac_executable_extensions; do
   23397   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   23398     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   23399     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   23400     break 2
   23401   fi
   23402 done
   23403   done
   23404 IFS=$as_save_IFS
   23405 
   23406   ;;
   23407 esac
   23408 fi
   23409 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   23410 if test -n "$ac_pt_PKG_CONFIG"; then
   23411   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   23412 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   23413 else
   23414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23415 printf "%s\n" "no" >&6; }
   23416 fi
   23417 
   23418   if test "x$ac_pt_PKG_CONFIG" = x; then
   23419     PKG_CONFIG=""
   23420   else
   23421     case $cross_compiling:$ac_tool_warned in
   23422 yes:)
   23423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   23424 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   23425 ac_tool_warned=yes ;;
   23426 esac
   23427     PKG_CONFIG=$ac_pt_PKG_CONFIG
   23428   fi
   23429 else
   23430   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   23431 fi
   23432 
   23433 fi
   23434 if test -n "$PKG_CONFIG"; then
   23435 	_pkg_min_version=0.9.0
   23436 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   23437 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   23438 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   23439 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23440 printf "%s\n" "yes" >&6; }
   23441 	else
   23442 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23443 printf "%s\n" "no" >&6; }
   23444 		PKG_CONFIG=""
   23445 	fi
   23446 fi
   23447 
   23448 pkg_failed=no
   23449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wiredtiger" >&5
   23450 printf %s "checking for wiredtiger... " >&6; }
   23451 
   23452 if test -n "$WT_CFLAGS"; then
   23453     pkg_cv_WT_CFLAGS="$WT_CFLAGS"
   23454  elif test -n "$PKG_CONFIG"; then
   23455     if test -n "$PKG_CONFIG" && \
   23456     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wiredtiger\""; } >&5
   23457   ($PKG_CONFIG --exists --print-errors "wiredtiger") 2>&5
   23458   ac_status=$?
   23459   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23460   test $ac_status = 0; }; then
   23461   pkg_cv_WT_CFLAGS=`$PKG_CONFIG --cflags "wiredtiger" 2>/dev/null`
   23462 		      test "x$?" != "x0" && pkg_failed=yes
   23463 else
   23464   pkg_failed=yes
   23465 fi
   23466  else
   23467     pkg_failed=untried
   23468 fi
   23469 if test -n "$WT_LIBS"; then
   23470     pkg_cv_WT_LIBS="$WT_LIBS"
   23471  elif test -n "$PKG_CONFIG"; then
   23472     if test -n "$PKG_CONFIG" && \
   23473     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wiredtiger\""; } >&5
   23474   ($PKG_CONFIG --exists --print-errors "wiredtiger") 2>&5
   23475   ac_status=$?
   23476   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23477   test $ac_status = 0; }; then
   23478   pkg_cv_WT_LIBS=`$PKG_CONFIG --libs "wiredtiger" 2>/dev/null`
   23479 		      test "x$?" != "x0" && pkg_failed=yes
   23480 else
   23481   pkg_failed=yes
   23482 fi
   23483  else
   23484     pkg_failed=untried
   23485 fi
   23486 
   23487 
   23488 
   23489 if test $pkg_failed = yes; then
   23490         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23491 printf "%s\n" "no" >&6; }
   23492 
   23493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   23494         _pkg_short_errors_supported=yes
   23495 else
   23496         _pkg_short_errors_supported=no
   23497 fi
   23498         if test $_pkg_short_errors_supported = yes; then
   23499                 WT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wiredtiger" 2>&1`
   23500         else
   23501                 WT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wiredtiger" 2>&1`
   23502         fi
   23503         # Put the nasty error message in config.log where it belongs
   23504         echo "$WT_PKG_ERRORS" >&5
   23505 
   23506         as_fn_error $? "Package requirements (wiredtiger) were not met:
   23507 
   23508 $WT_PKG_ERRORS
   23509 
   23510 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   23511 installed software in a non-standard prefix.
   23512 
   23513 Alternatively, you may set the environment variables WT_CFLAGS
   23514 and WT_LIBS to avoid the need to call pkg-config.
   23515 See the pkg-config man page for more details." "$LINENO" 5
   23516 elif test $pkg_failed = untried; then
   23517         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23518 printf "%s\n" "no" >&6; }
   23519         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   23520 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   23521 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   23522 is in your PATH or set the PKG_CONFIG environment variable to the full
   23523 path to pkg-config.
   23524 
   23525 Alternatively, you may set the environment variables WT_CFLAGS
   23526 and WT_LIBS to avoid the need to call pkg-config.
   23527 See the pkg-config man page for more details.
   23528 
   23529 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   23530 See \`config.log' for more details" "$LINENO" 5; }
   23531 else
   23532         WT_CFLAGS=$pkg_cv_WT_CFLAGS
   23533         WT_LIBS=$pkg_cv_WT_LIBS
   23534         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23535 printf "%s\n" "yes" >&6; }
   23536 
   23537 fi
   23538 	if test $ol_enable_wt = yes ; then
   23539 		SLAPD_LIBS="$SLAPD_LIBS \$(WT_LIBS)"
   23540 	fi
   23541 	ol_link_wt=yes
   23542 fi
   23543 
   23544 WITH_SASL=no
   23545 ol_link_sasl=no
   23546 ol_link_spasswd=no
   23547 if test $ol_with_cyrus_sasl != no ; then
   23548 	ac_fn_c_check_header_compile "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
   23549 if test "x$ac_cv_header_sasl_sasl_h" = xyes
   23550 then :
   23551   printf "%s\n" "#define HAVE_SASL_SASL_H 1" >>confdefs.h
   23552 
   23553 fi
   23554 ac_fn_c_check_header_compile "$LINENO" "sasl.h" "ac_cv_header_sasl_h" "$ac_includes_default"
   23555 if test "x$ac_cv_header_sasl_h" = xyes
   23556 then :
   23557   printf "%s\n" "#define HAVE_SASL_H 1" >>confdefs.h
   23558 
   23559 fi
   23560 
   23561 
   23562 	if test $ac_cv_header_sasl_sasl_h = yes ||
   23563 	   test $ac_cv_header_sasl_h = yes; then
   23564 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
   23565 printf %s "checking for sasl_client_init in -lsasl2... " >&6; }
   23566 if test ${ac_cv_lib_sasl2_sasl_client_init+y}
   23567 then :
   23568   printf %s "(cached) " >&6
   23569 else $as_nop
   23570   ac_check_lib_save_LIBS=$LIBS
   23571 LIBS="-lsasl2  $LIBS"
   23572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23573 /* end confdefs.h.  */
   23574 
   23575 /* Override any GCC internal prototype to avoid an error.
   23576    Use char because int might match the return type of a GCC
   23577    builtin and then its argument prototype would still apply.  */
   23578 char sasl_client_init ();
   23579 int
   23580 main (void)
   23581 {
   23582 return sasl_client_init ();
   23583   ;
   23584   return 0;
   23585 }
   23586 _ACEOF
   23587 if ac_fn_c_try_link "$LINENO"
   23588 then :
   23589   ac_cv_lib_sasl2_sasl_client_init=yes
   23590 else $as_nop
   23591   ac_cv_lib_sasl2_sasl_client_init=no
   23592 fi
   23593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23594     conftest$ac_exeext conftest.$ac_ext
   23595 LIBS=$ac_check_lib_save_LIBS
   23596 fi
   23597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
   23598 printf "%s\n" "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
   23599 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes
   23600 then :
   23601   ol_link_sasl="-lsasl2"
   23602 else $as_nop
   23603   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
   23604 printf %s "checking for sasl_client_init in -lsasl... " >&6; }
   23605 if test ${ac_cv_lib_sasl_sasl_client_init+y}
   23606 then :
   23607   printf %s "(cached) " >&6
   23608 else $as_nop
   23609   ac_check_lib_save_LIBS=$LIBS
   23610 LIBS="-lsasl  $LIBS"
   23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23612 /* end confdefs.h.  */
   23613 
   23614 /* Override any GCC internal prototype to avoid an error.
   23615    Use char because int might match the return type of a GCC
   23616    builtin and then its argument prototype would still apply.  */
   23617 char sasl_client_init ();
   23618 int
   23619 main (void)
   23620 {
   23621 return sasl_client_init ();
   23622   ;
   23623   return 0;
   23624 }
   23625 _ACEOF
   23626 if ac_fn_c_try_link "$LINENO"
   23627 then :
   23628   ac_cv_lib_sasl_sasl_client_init=yes
   23629 else $as_nop
   23630   ac_cv_lib_sasl_sasl_client_init=no
   23631 fi
   23632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23633     conftest$ac_exeext conftest.$ac_ext
   23634 LIBS=$ac_check_lib_save_LIBS
   23635 fi
   23636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
   23637 printf "%s\n" "$ac_cv_lib_sasl_sasl_client_init" >&6; }
   23638 if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes
   23639 then :
   23640   ol_link_sasl="-lsasl"
   23641 fi
   23642 
   23643 fi
   23644 
   23645 	fi
   23646 
   23647 	if test $ol_link_sasl = no ; then
   23648 		if test $ol_with_cyrus_sasl != auto ; then
   23649 			as_fn_error $? "Could not locate Cyrus SASL" "$LINENO" 5
   23650 		else
   23651 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
   23652 printf "%s\n" "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
   23653 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
   23654 printf "%s\n" "$as_me: WARNING: SASL authentication not supported!" >&2;}
   23655 			if test $ol_link_tls = no ; then
   23656 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
   23657 printf "%s\n" "$as_me: WARNING: Strong authentication not supported!" >&2;}
   23658 			fi
   23659 		fi
   23660 	else
   23661 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
   23662 printf %s "checking Cyrus SASL library version... " >&6; }
   23663 if test ${ol_cv_sasl_compat+y}
   23664 then :
   23665   printf %s "(cached) " >&6
   23666 else $as_nop
   23667 
   23668 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23669 /* end confdefs.h.  */
   23670 
   23671 #ifdef HAVE_SASL_SASL_H
   23672 #include <sasl/sasl.h>
   23673 #else
   23674 #include <sasl.h>
   23675 #endif
   23676 
   23677 /* Require 2.1.15+ */
   23678 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
   23679 	char *__sasl_compat = "2.2+ or better okay (we guess)";
   23680 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
   23681 	&& SASL_VERSION_STEP >=15
   23682 	char *__sasl_compat = "2.1.15+ or better okay";
   23683 #endif
   23684 
   23685 _ACEOF
   23686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23687   $EGREP "__sasl_compat" >/dev/null 2>&1
   23688 then :
   23689   ol_cv_sasl_compat=yes
   23690 else $as_nop
   23691   ol_cv_sasl_compat=no
   23692 fi
   23693 rm -rf conftest*
   23694 
   23695 fi
   23696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
   23697 printf "%s\n" "$ol_cv_sasl_compat" >&6; }
   23698 
   23699 		if test $ol_cv_sasl_compat = no ; then
   23700 			ol_link_sasl=no
   23701 			as_fn_error $? "Cyrus SASL library located but is incompatible" "$LINENO" 5
   23702 		fi
   23703 
   23704 
   23705 printf "%s\n" "#define HAVE_CYRUS_SASL 1" >>confdefs.h
   23706 
   23707 		SASL_LIBS="$ol_link_sasl"
   23708 		if test $ol_enable_spasswd != no ; then
   23709 			ol_link_spasswd=yes
   23710 		fi
   23711 
   23712 		ac_save_LIBS="$LIBS"
   23713 		LIBS="$LIBS $ol_link_sasl"
   23714 		ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
   23715 if test "x$ac_cv_func_sasl_version" = xyes
   23716 then :
   23717 
   23718 printf "%s\n" "#define HAVE_SASL_VERSION 1" >>confdefs.h
   23719 
   23720 fi
   23721 
   23722 		LIBS="$ac_save_LIBS"
   23723 
   23724 		WITH_SASL=yes
   23725 	fi
   23726 
   23727 else
   23728 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
   23729 printf "%s\n" "$as_me: WARNING: SASL authentication not supported!" >&2;}
   23730 	if test $ol_link_tls = no ; then
   23731 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
   23732 printf "%s\n" "$as_me: WARNING: Strong authentication not supported!" >&2;}
   23733 	fi
   23734 fi
   23735 
   23736 systemdsystemunitdir=
   23737 if test $ol_enable_slapd = no && test $ol_enable_balancer != yes ; then
   23738 	if test $ol_with_systemd != no ; then
   23739 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&5
   23740 printf "%s\n" "$as_me: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&2;}
   23741 		ol_with_systemd=no
   23742 	fi
   23743 fi
   23744 
   23745 if test $ol_with_systemd = auto; then
   23746 	ac_fn_c_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
   23747 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
   23748 then :
   23749   printf "%s\n" "#define HAVE_SYSTEMD_SD_DAEMON_H 1" >>confdefs.h
   23750 
   23751 fi
   23752 
   23753 	if test $ac_cv_header_systemd_sd_daemon_h = yes; then
   23754 		ol_with_systemd=yes
   23755 	fi
   23756 fi
   23757 
   23758 if test $ol_with_systemd = yes ; then
   23759 
   23760 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
   23761 
   23762 
   23763 if test -n "$systemdsystemunitdir"; then
   23764     pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
   23765  elif test -n "$PKG_CONFIG"; then
   23766     if test -n "$PKG_CONFIG" && \
   23767     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
   23768   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
   23769   ac_status=$?
   23770   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23771   test $ac_status = 0; }; then
   23772   pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
   23773 		      test "x$?" != "x0" && pkg_failed=yes
   23774 else
   23775   pkg_failed=yes
   23776 fi
   23777  else
   23778     pkg_failed=untried
   23779 fi
   23780 systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
   23781 
   23782 if test "x$systemdsystemunitdir" = x""
   23783 then :
   23784 
   23785 fi
   23786 	if test -z "$systemdsystemunitdir"; then
   23787 		if test -d /usr/lib/systemd/system; then
   23788 			systemdsystemunitdir=/usr/lib/systemd/system
   23789 		else
   23790 			systemdsystemunitdir=/lib/systemd/system
   23791 		fi
   23792 	fi
   23793 fi
   23794 
   23795 
   23796 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
   23797 	dev=no
   23798 	if test -r /dev/urandom ; then
   23799 		dev="/dev/urandom";
   23800 	elif test -r /idev/urandom ; then
   23801 		dev="/idev/urandom";
   23802 	elif test -r /dev/srandom ; then
   23803 		dev="/dev/srandom";
   23804 	elif test -r /dev/random ; then
   23805 		dev="/dev/random";
   23806 	elif test -r /idev/random ; then
   23807 		dev="/idev/random";
   23808 	fi
   23809 
   23810 	if test $dev != no ; then
   23811 
   23812 printf "%s\n" "#define URANDOM_DEVICE \"$dev\"" >>confdefs.h
   23813 
   23814 	fi
   23815 fi
   23816 
   23817 ol_link_fetch=no
   23818 if test $ol_with_fetch != no ; then
   23819 	ol_LIBS=$LIBS
   23820 LIBS="-lfetch $LIBS"
   23821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
   23822 printf %s "checking fetch(3) library... " >&6; }
   23823 if test ${ol_cv_lib_fetch+y}
   23824 then :
   23825   printf %s "(cached) " >&6
   23826 else $as_nop
   23827 
   23828 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23829 /* end confdefs.h.  */
   23830 
   23831 #ifdef HAVE_SYS_PARAM_H
   23832 #include <sys/param.h>
   23833 #endif
   23834 #include <stdio.h>
   23835 #include <fetch.h>
   23836 int
   23837 main (void)
   23838 {
   23839 struct url *u = fetchParseURL("file:///");
   23840   ;
   23841   return 0;
   23842 }
   23843 _ACEOF
   23844 if ac_fn_c_try_link "$LINENO"
   23845 then :
   23846   ol_cv_lib_fetch=yes
   23847 else $as_nop
   23848   ol_cv_lib_fetch=no
   23849 fi
   23850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23851     conftest$ac_exeext conftest.$ac_ext
   23852 fi
   23853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
   23854 printf "%s\n" "$ol_cv_lib_fetch" >&6; }
   23855 LIBS=$ol_LIBS
   23856 if test $ol_cv_lib_fetch != no ; then
   23857 	ol_link_fetch="-lfetch"
   23858 
   23859 printf "%s\n" "#define HAVE_FETCH 1" >>confdefs.h
   23860 
   23861 fi
   23862 
   23863 
   23864 	if test $ol_cv_lib_fetch != no ; then
   23865 		LIBS="$LIBS $ol_link_fetch"
   23866 		ol_link_fetch=freebsd
   23867 
   23868 	elif test $ol_with_fetch != auto ; then
   23869 		as_fn_error $? "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
   23870 	fi
   23871 fi
   23872 
   23873 if test $ol_enable_crypt != no ; then
   23874 	save_LIBS="$LIBS"
   23875 	LIBS="$TLS_LIBS $LIBS"
   23876 
   23877 	ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
   23878 if test "x$ac_cv_func_crypt" = xyes
   23879 then :
   23880   have_crypt=yes
   23881 else $as_nop
   23882 
   23883 		LIBS="$save_LIBS"
   23884 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
   23885 printf %s "checking for crypt in -lcrypt... " >&6; }
   23886 if test ${ac_cv_lib_crypt_crypt+y}
   23887 then :
   23888   printf %s "(cached) " >&6
   23889 else $as_nop
   23890   ac_check_lib_save_LIBS=$LIBS
   23891 LIBS="-lcrypt  $LIBS"
   23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23893 /* end confdefs.h.  */
   23894 
   23895 /* Override any GCC internal prototype to avoid an error.
   23896    Use char because int might match the return type of a GCC
   23897    builtin and then its argument prototype would still apply.  */
   23898 char crypt ();
   23899 int
   23900 main (void)
   23901 {
   23902 return crypt ();
   23903   ;
   23904   return 0;
   23905 }
   23906 _ACEOF
   23907 if ac_fn_c_try_link "$LINENO"
   23908 then :
   23909   ac_cv_lib_crypt_crypt=yes
   23910 else $as_nop
   23911   ac_cv_lib_crypt_crypt=no
   23912 fi
   23913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23914     conftest$ac_exeext conftest.$ac_ext
   23915 LIBS=$ac_check_lib_save_LIBS
   23916 fi
   23917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
   23918 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
   23919 if test "x$ac_cv_lib_crypt_crypt" = xyes
   23920 then :
   23921   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
   23922 			have_crypt=yes
   23923 else $as_nop
   23924   have_crypt=no
   23925 fi
   23926 
   23927 fi
   23928 
   23929 
   23930 	LIBS="$TLS_LIBS $LIBS"
   23931 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
   23932 printf %s "checking for crypt_r in -lcrypt... " >&6; }
   23933 if test ${ac_cv_lib_crypt_crypt_r+y}
   23934 then :
   23935   printf %s "(cached) " >&6
   23936 else $as_nop
   23937   ac_check_lib_save_LIBS=$LIBS
   23938 LIBS="-lcrypt  $LIBS"
   23939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23940 /* end confdefs.h.  */
   23941 
   23942 /* Override any GCC internal prototype to avoid an error.
   23943    Use char because int might match the return type of a GCC
   23944    builtin and then its argument prototype would still apply.  */
   23945 char crypt_r ();
   23946 int
   23947 main (void)
   23948 {
   23949 return crypt_r ();
   23950   ;
   23951   return 0;
   23952 }
   23953 _ACEOF
   23954 if ac_fn_c_try_link "$LINENO"
   23955 then :
   23956   ac_cv_lib_crypt_crypt_r=yes
   23957 else $as_nop
   23958   ac_cv_lib_crypt_crypt_r=no
   23959 fi
   23960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23961     conftest$ac_exeext conftest.$ac_ext
   23962 LIBS=$ac_check_lib_save_LIBS
   23963 fi
   23964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
   23965 printf "%s\n" "$ac_cv_lib_crypt_crypt_r" >&6; }
   23966 if test "x$ac_cv_lib_crypt_crypt_r" = xyes
   23967 then :
   23968   have_crypt_r=yes
   23969 else $as_nop
   23970   have_crypt_r=no
   23971 fi
   23972 
   23973 
   23974 	LIBS="$save_LIBS"
   23975 
   23976 	if test $have_crypt = yes ; then
   23977 
   23978 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
   23979 
   23980 		if test $have_crypt_r = yes ; then
   23981 
   23982 printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h
   23983 
   23984 		fi
   23985 	else
   23986 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
   23987 printf "%s\n" "$as_me: WARNING: could not find crypt" >&2;}
   23988 		if test $ol_enable_crypt = yes ; then
   23989 			as_fn_error $? "could not find crypt, select appropriate options or disable" "$LINENO" 5
   23990 		fi
   23991 
   23992 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
   23993 printf "%s\n" "$as_me: WARNING: disabling crypt support" >&2;}
   23994 		ol_enable_crypt=no
   23995 	fi
   23996 fi
   23997 
   23998 if test $ol_enable_slp != no ; then
   23999 	ac_fn_c_check_header_compile "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
   24000 if test "x$ac_cv_header_slp_h" = xyes
   24001 then :
   24002   printf "%s\n" "#define HAVE_SLP_H 1" >>confdefs.h
   24003 
   24004 fi
   24005 
   24006 
   24007 	if test $ac_cv_header_slp_h = yes ; then
   24008 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
   24009 printf %s "checking for SLPOpen in -lslp... " >&6; }
   24010 if test ${ac_cv_lib_slp_SLPOpen+y}
   24011 then :
   24012   printf %s "(cached) " >&6
   24013 else $as_nop
   24014   ac_check_lib_save_LIBS=$LIBS
   24015 LIBS="-lslp  $LIBS"
   24016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24017 /* end confdefs.h.  */
   24018 
   24019 /* Override any GCC internal prototype to avoid an error.
   24020    Use char because int might match the return type of a GCC
   24021    builtin and then its argument prototype would still apply.  */
   24022 char SLPOpen ();
   24023 int
   24024 main (void)
   24025 {
   24026 return SLPOpen ();
   24027   ;
   24028   return 0;
   24029 }
   24030 _ACEOF
   24031 if ac_fn_c_try_link "$LINENO"
   24032 then :
   24033   ac_cv_lib_slp_SLPOpen=yes
   24034 else $as_nop
   24035   ac_cv_lib_slp_SLPOpen=no
   24036 fi
   24037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24038     conftest$ac_exeext conftest.$ac_ext
   24039 LIBS=$ac_check_lib_save_LIBS
   24040 fi
   24041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
   24042 printf "%s\n" "$ac_cv_lib_slp_SLPOpen" >&6; }
   24043 if test "x$ac_cv_lib_slp_SLPOpen" = xyes
   24044 then :
   24045   have_slp=yes
   24046 else $as_nop
   24047   have_slp=no
   24048 fi
   24049 
   24050 		if test $have_slp = yes ; then
   24051 
   24052 printf "%s\n" "#define HAVE_SLP 1" >>confdefs.h
   24053 
   24054 			SLAPD_SLP_LIBS=-lslp
   24055 		fi
   24056 
   24057 	elif test $ol_enable_slp = yes ; then
   24058 		as_fn_error $? "SLP not found" "$LINENO" 5
   24059 	fi
   24060 fi
   24061 
   24062 if test $ol_enable_balancer != no ; then
   24063 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for atomics" >&5
   24064 printf %s "checking compiler support for atomics... " >&6; }
   24065 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24066 /* end confdefs.h.  */
   24067 
   24068 int
   24069 main (void)
   24070 {
   24071 __atomic_thread_fence( __ATOMIC_ACQUIRE );
   24072   ;
   24073   return 0;
   24074 }
   24075 _ACEOF
   24076 if ac_fn_c_try_compile "$LINENO"
   24077 then :
   24078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24079 printf "%s\n" "yes" >&6; }
   24080 else $as_nop
   24081   as_fn_error $? "\"Balancer requires support for atomic operations\"" "$LINENO" 5
   24082 fi
   24083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24084 
   24085 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for evdns_base_new in -levent_extra" >&5
   24086 printf %s "checking for evdns_base_new in -levent_extra... " >&6; }
   24087 if test ${ac_cv_lib_event_extra_evdns_base_new+y}
   24088 then :
   24089   printf %s "(cached) " >&6
   24090 else $as_nop
   24091   ac_check_lib_save_LIBS=$LIBS
   24092 LIBS="-levent_extra  $LIBS"
   24093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24094 /* end confdefs.h.  */
   24095 
   24096 /* Override any GCC internal prototype to avoid an error.
   24097    Use char because int might match the return type of a GCC
   24098    builtin and then its argument prototype would still apply.  */
   24099 char evdns_base_new ();
   24100 int
   24101 main (void)
   24102 {
   24103 return evdns_base_new ();
   24104   ;
   24105   return 0;
   24106 }
   24107 _ACEOF
   24108 if ac_fn_c_try_link "$LINENO"
   24109 then :
   24110   ac_cv_lib_event_extra_evdns_base_new=yes
   24111 else $as_nop
   24112   ac_cv_lib_event_extra_evdns_base_new=no
   24113 fi
   24114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24115     conftest$ac_exeext conftest.$ac_ext
   24116 LIBS=$ac_check_lib_save_LIBS
   24117 fi
   24118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_extra_evdns_base_new" >&5
   24119 printf "%s\n" "$ac_cv_lib_event_extra_evdns_base_new" >&6; }
   24120 if test "x$ac_cv_lib_event_extra_evdns_base_new" = xyes
   24121 then :
   24122   have_libevent=yes
   24123 		LEVENT_LIBS="$LEVENT_LIBS -levent_core -levent_extra"
   24124 else $as_nop
   24125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for evdns_base_new in -levent" >&5
   24126 printf %s "checking for evdns_base_new in -levent... " >&6; }
   24127 if test ${ac_cv_lib_event_evdns_base_new+y}
   24128 then :
   24129   printf %s "(cached) " >&6
   24130 else $as_nop
   24131   ac_check_lib_save_LIBS=$LIBS
   24132 LIBS="-levent  $LIBS"
   24133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24134 /* end confdefs.h.  */
   24135 
   24136 /* Override any GCC internal prototype to avoid an error.
   24137    Use char because int might match the return type of a GCC
   24138    builtin and then its argument prototype would still apply.  */
   24139 char evdns_base_new ();
   24140 int
   24141 main (void)
   24142 {
   24143 return evdns_base_new ();
   24144   ;
   24145   return 0;
   24146 }
   24147 _ACEOF
   24148 if ac_fn_c_try_link "$LINENO"
   24149 then :
   24150   ac_cv_lib_event_evdns_base_new=yes
   24151 else $as_nop
   24152   ac_cv_lib_event_evdns_base_new=no
   24153 fi
   24154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24155     conftest$ac_exeext conftest.$ac_ext
   24156 LIBS=$ac_check_lib_save_LIBS
   24157 fi
   24158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_evdns_base_new" >&5
   24159 printf "%s\n" "$ac_cv_lib_event_evdns_base_new" >&6; }
   24160 if test "x$ac_cv_lib_event_evdns_base_new" = xyes
   24161 then :
   24162   have_libevent=yes
   24163 			LEVENT_LIBS="$LEVENT_LIBS -levent"
   24164 else $as_nop
   24165   have_libevent=no
   24166 fi
   24167 
   24168 fi
   24169 
   24170 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent_global_shutdown in -levent" >&5
   24171 printf %s "checking for libevent_global_shutdown in -levent... " >&6; }
   24172 if test ${ac_cv_lib_event_libevent_global_shutdown+y}
   24173 then :
   24174   printf %s "(cached) " >&6
   24175 else $as_nop
   24176   ac_check_lib_save_LIBS=$LIBS
   24177 LIBS="-levent  $LIBS"
   24178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24179 /* end confdefs.h.  */
   24180 
   24181 /* Override any GCC internal prototype to avoid an error.
   24182    Use char because int might match the return type of a GCC
   24183    builtin and then its argument prototype would still apply.  */
   24184 char libevent_global_shutdown ();
   24185 int
   24186 main (void)
   24187 {
   24188 return libevent_global_shutdown ();
   24189   ;
   24190   return 0;
   24191 }
   24192 _ACEOF
   24193 if ac_fn_c_try_link "$LINENO"
   24194 then :
   24195   ac_cv_lib_event_libevent_global_shutdown=yes
   24196 else $as_nop
   24197   ac_cv_lib_event_libevent_global_shutdown=no
   24198 fi
   24199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24200     conftest$ac_exeext conftest.$ac_ext
   24201 LIBS=$ac_check_lib_save_LIBS
   24202 fi
   24203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_libevent_global_shutdown" >&5
   24204 printf "%s\n" "$ac_cv_lib_event_libevent_global_shutdown" >&6; }
   24205 if test "x$ac_cv_lib_event_libevent_global_shutdown" = xyes
   24206 then :
   24207   printf "%s\n" "#define HAVE_LIBEVENT 1" >>confdefs.h
   24208 
   24209   LIBS="-levent $LIBS"
   24210 
   24211 else $as_nop
   24212   have_libevent=no
   24213 fi
   24214 
   24215 
   24216 	if test $have_libevent = yes ; then
   24217 
   24218 printf "%s\n" "#define HAVE_LIBEVENT 1" >>confdefs.h
   24219 
   24220 	else
   24221 		as_fn_error $? "You need libevent 2.1 or later with DNS support to build the load balancer" "$LINENO" 5
   24222 	fi
   24223 
   24224 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
   24225 printf %s "checking for pow in -lm... " >&6; }
   24226 if test ${ac_cv_lib_m_pow+y}
   24227 then :
   24228   printf %s "(cached) " >&6
   24229 else $as_nop
   24230   ac_check_lib_save_LIBS=$LIBS
   24231 LIBS="-lm  $LIBS"
   24232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24233 /* end confdefs.h.  */
   24234 
   24235 /* Override any GCC internal prototype to avoid an error.
   24236    Use char because int might match the return type of a GCC
   24237    builtin and then its argument prototype would still apply.  */
   24238 char pow ();
   24239 int
   24240 main (void)
   24241 {
   24242 return pow ();
   24243   ;
   24244   return 0;
   24245 }
   24246 _ACEOF
   24247 if ac_fn_c_try_link "$LINENO"
   24248 then :
   24249   ac_cv_lib_m_pow=yes
   24250 else $as_nop
   24251   ac_cv_lib_m_pow=no
   24252 fi
   24253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24254     conftest$ac_exeext conftest.$ac_ext
   24255 LIBS=$ac_check_lib_save_LIBS
   24256 fi
   24257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
   24258 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
   24259 if test "x$ac_cv_lib_m_pow" = xyes
   24260 then :
   24261   BALANCER_LIBS="$BALANCER_LIBS -lm"
   24262 else $as_nop
   24263   as_fn_error $? "could not locate pow -lm" "$LINENO" 5
   24264 fi
   24265 
   24266 fi
   24267 
   24268 
   24269 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
   24270 if test "x$ac_cv_type_mode_t" = xyes
   24271 then :
   24272 
   24273 else $as_nop
   24274 
   24275 printf "%s\n" "#define mode_t int" >>confdefs.h
   24276 
   24277 fi
   24278 
   24279 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   24280 if test "x$ac_cv_type_off_t" = xyes
   24281 then :
   24282 
   24283 else $as_nop
   24284 
   24285 printf "%s\n" "#define off_t long" >>confdefs.h
   24286 
   24287 fi
   24288 
   24289 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   24290 if test "x$ac_cv_type_pid_t" = xyes
   24291 then :
   24292 
   24293 else $as_nop
   24294 
   24295 printf "%s\n" "#define pid_t int" >>confdefs.h
   24296 
   24297 fi
   24298 
   24299 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   24300 if test "x$ac_cv_type_ssize_t" = xyes
   24301 then :
   24302 
   24303 else $as_nop
   24304 
   24305 printf "%s\n" "#define ssize_t signed int" >>confdefs.h
   24306 
   24307 fi
   24308 
   24309 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
   24310 if test "x$ac_cv_type_caddr_t" = xyes
   24311 then :
   24312 
   24313 else $as_nop
   24314 
   24315 printf "%s\n" "#define caddr_t char *" >>confdefs.h
   24316 
   24317 fi
   24318 
   24319 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   24320 if test "x$ac_cv_type_size_t" = xyes
   24321 then :
   24322 
   24323 else $as_nop
   24324 
   24325 printf "%s\n" "#define size_t unsigned" >>confdefs.h
   24326 
   24327 fi
   24328 
   24329 
   24330 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   24331 if test "x$ac_cv_type_long_long" = xyes
   24332 then :
   24333 
   24334 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
   24335 
   24336 
   24337 fi
   24338 
   24339 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   24340 if test "x$ac_cv_type_ptrdiff_t" = xyes
   24341 then :
   24342 
   24343 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
   24344 
   24345 
   24346 fi
   24347 
   24348 
   24349 
   24350 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
   24351 #ifdef HAVE_SYS_SOCKET_H
   24352 #include <sys/socket.h>
   24353 #endif
   24354 #ifdef HAVE_WINSOCK2
   24355 #include <ws2tcpip.h>
   24356 #endif
   24357 "
   24358 if test "x$ac_cv_type_socklen_t" = xyes
   24359 then :
   24360 
   24361 fi
   24362 
   24363 
   24364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
   24365 printf %s "checking the type of arg 3 to accept()... " >&6; }
   24366 if test ${ol_cv_type_ber_socklen_t+y}
   24367 then :
   24368   printf %s "(cached) " >&6
   24369 else $as_nop
   24370 
   24371 	set socklen_t int unsigned "unsigned long" long size_t
   24372 	test "$ac_cv_type_socklen_t" = yes || shift
   24373 	ol_cv_type_ber_socklen_t=$1 guessing="guessing "
   24374 	for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
   24375 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24376 /* end confdefs.h.  */
   24377 $ac_includes_default
   24378 #ifdef HAVE_SYS_SOCKET_H
   24379 #include <sys/socket.h>
   24380 #endif
   24381 extern int accept(int s, $addrtype *ap, $lentype *lp);
   24382 
   24383 int
   24384 main (void)
   24385 {
   24386 
   24387 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
   24388 
   24389   ;
   24390   return 0;
   24391 }
   24392 _ACEOF
   24393 if ac_fn_c_try_compile "$LINENO"
   24394 then :
   24395   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
   24396 fi
   24397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24398 	done ; done
   24399 fi
   24400 
   24401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
   24402 printf "%s\n" "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
   24403 
   24404 printf "%s\n" "#define ber_socklen_t $ol_cv_type_ber_socklen_t" >>confdefs.h
   24405 
   24406 
   24407 if test "$ac_cv_type_socklen_t" != yes; then
   24408 
   24409 printf "%s\n" "#define socklen_t $ol_cv_type_ber_socklen_t" >>confdefs.h
   24410 
   24411 fi
   24412 
   24413 
   24414 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
   24415 #include <signal.h>
   24416 
   24417 "
   24418 if test "x$ac_cv_type_sig_atomic_t" = xyes
   24419 then :
   24420 
   24421 else $as_nop
   24422 
   24423 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
   24424 
   24425 fi
   24426 
   24427 
   24428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   24429 printf %s "checking for uid_t in sys/types.h... " >&6; }
   24430 if test ${ac_cv_type_uid_t+y}
   24431 then :
   24432   printf %s "(cached) " >&6
   24433 else $as_nop
   24434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24435 /* end confdefs.h.  */
   24436 #include <sys/types.h>
   24437 
   24438 _ACEOF
   24439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24440   $EGREP "uid_t" >/dev/null 2>&1
   24441 then :
   24442   ac_cv_type_uid_t=yes
   24443 else $as_nop
   24444   ac_cv_type_uid_t=no
   24445 fi
   24446 rm -rf conftest*
   24447 
   24448 fi
   24449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   24450 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
   24451 if test $ac_cv_type_uid_t = no; then
   24452 
   24453 printf "%s\n" "#define uid_t int" >>confdefs.h
   24454 
   24455 
   24456 printf "%s\n" "#define gid_t int" >>confdefs.h
   24457 
   24458 fi
   24459 
   24460 
   24461 
   24462 
   24463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
   24464 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
   24465 if test ${ac_cv_struct_tm+y}
   24466 then :
   24467   printf %s "(cached) " >&6
   24468 else $as_nop
   24469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24470 /* end confdefs.h.  */
   24471 #include <sys/types.h>
   24472 #include <time.h>
   24473 
   24474 int
   24475 main (void)
   24476 {
   24477 struct tm tm;
   24478 				     int *p = &tm.tm_sec;
   24479 				     return !p;
   24480   ;
   24481   return 0;
   24482 }
   24483 _ACEOF
   24484 if ac_fn_c_try_compile "$LINENO"
   24485 then :
   24486   ac_cv_struct_tm=time.h
   24487 else $as_nop
   24488   ac_cv_struct_tm=sys/time.h
   24489 fi
   24490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24491 fi
   24492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
   24493 printf "%s\n" "$ac_cv_struct_tm" >&6; }
   24494 if test $ac_cv_struct_tm = sys/time.h; then
   24495 
   24496 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
   24497 
   24498 fi
   24499 
   24500 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   24501 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
   24502 then :
   24503 
   24504 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
   24505 
   24506 
   24507 fi
   24508 
   24509 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
   24510 #include <pwd.h>
   24511 "
   24512 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
   24513 then :
   24514 
   24515 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
   24516 
   24517 
   24518 fi
   24519 
   24520 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
   24521 #include <pwd.h>
   24522 "
   24523 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
   24524 then :
   24525 
   24526 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
   24527 
   24528 
   24529 fi
   24530 
   24531 
   24532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
   24533 printf %s "checking if toupper() requires islower()... " >&6; }
   24534 if test ${ol_cv_c_upper_lower+y}
   24535 then :
   24536   printf %s "(cached) " >&6
   24537 else $as_nop
   24538 
   24539 	if test "$cross_compiling" = yes
   24540 then :
   24541   ol_cv_c_upper_lower=safe
   24542 else $as_nop
   24543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24544 /* end confdefs.h.  */
   24545 
   24546 #include <ctype.h>
   24547 #include <stdlib.h>
   24548 int main(void)
   24549 {
   24550 	if ('C' == toupper('C'))
   24551 		exit(0);
   24552 	else
   24553 		exit(1);
   24554 }
   24555 _ACEOF
   24556 if ac_fn_c_try_run "$LINENO"
   24557 then :
   24558   ol_cv_c_upper_lower=no
   24559 else $as_nop
   24560   ol_cv_c_upper_lower=yes
   24561 fi
   24562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24563   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24564 fi
   24565 
   24566 fi
   24567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
   24568 printf "%s\n" "$ol_cv_c_upper_lower" >&6; }
   24569 if test $ol_cv_c_upper_lower != no ; then
   24570 
   24571 printf "%s\n" "#define C_UPPER_LOWER 1" >>confdefs.h
   24572 
   24573 fi
   24574 
   24575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   24576 printf %s "checking for an ANSI C-conforming const... " >&6; }
   24577 if test ${ac_cv_c_const+y}
   24578 then :
   24579   printf %s "(cached) " >&6
   24580 else $as_nop
   24581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24582 /* end confdefs.h.  */
   24583 
   24584 int
   24585 main (void)
   24586 {
   24587 
   24588 #ifndef __cplusplus
   24589   /* Ultrix mips cc rejects this sort of thing.  */
   24590   typedef int charset[2];
   24591   const charset cs = { 0, 0 };
   24592   /* SunOS 4.1.1 cc rejects this.  */
   24593   char const *const *pcpcc;
   24594   char **ppc;
   24595   /* NEC SVR4.0.2 mips cc rejects this.  */
   24596   struct point {int x, y;};
   24597   static struct point const zero = {0,0};
   24598   /* IBM XL C 1.02.0.0 rejects this.
   24599      It does not let you subtract one const X* pointer from another in
   24600      an arm of an if-expression whose if-part is not a constant
   24601      expression */
   24602   const char *g = "string";
   24603   pcpcc = &g + (g ? g-g : 0);
   24604   /* HPUX 7.0 cc rejects these. */
   24605   ++pcpcc;
   24606   ppc = (char**) pcpcc;
   24607   pcpcc = (char const *const *) ppc;
   24608   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   24609     char tx;
   24610     char *t = &tx;
   24611     char const *s = 0 ? (char *) 0 : (char const *) 0;
   24612 
   24613     *t++ = 0;
   24614     if (s) return 0;
   24615   }
   24616   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   24617     int x[] = {25, 17};
   24618     const int *foo = &x[0];
   24619     ++foo;
   24620   }
   24621   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   24622     typedef const int *iptr;
   24623     iptr p = 0;
   24624     ++p;
   24625   }
   24626   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
   24627        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   24628     struct s { int j; const int *ap[3]; } bx;
   24629     struct s *b = &bx; b->j = 5;
   24630   }
   24631   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   24632     const int foo = 10;
   24633     if (!foo) return 0;
   24634   }
   24635   return !cs[0] && !zero.x;
   24636 #endif
   24637 
   24638   ;
   24639   return 0;
   24640 }
   24641 _ACEOF
   24642 if ac_fn_c_try_compile "$LINENO"
   24643 then :
   24644   ac_cv_c_const=yes
   24645 else $as_nop
   24646   ac_cv_c_const=no
   24647 fi
   24648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24649 fi
   24650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   24651 printf "%s\n" "$ac_cv_c_const" >&6; }
   24652 if test $ac_cv_c_const = no; then
   24653 
   24654 printf "%s\n" "#define const /**/" >>confdefs.h
   24655 
   24656 fi
   24657 
   24658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
   24659 printf %s "checking if compiler understands volatile... " >&6; }
   24660 if test ${ol_cv_c_volatile+y}
   24661 then :
   24662   printf %s "(cached) " >&6
   24663 else $as_nop
   24664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24665 /* end confdefs.h.  */
   24666 int x, y, z;
   24667 int
   24668 main (void)
   24669 {
   24670 volatile int a; int * volatile b = x ? &y : &z;
   24671       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
   24672       *b = 0;
   24673   ;
   24674   return 0;
   24675 }
   24676 _ACEOF
   24677 if ac_fn_c_try_compile "$LINENO"
   24678 then :
   24679   ol_cv_c_volatile=yes
   24680 else $as_nop
   24681   ol_cv_c_volatile=no
   24682 fi
   24683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24684 fi
   24685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
   24686 printf "%s\n" "$ol_cv_c_volatile" >&6; }
   24687   if test $ol_cv_c_volatile = yes; then
   24688     :
   24689   else
   24690 
   24691 printf "%s\n" "#define volatile /**/" >>confdefs.h
   24692 
   24693   fi
   24694 
   24695 
   24696 if test $cross_compiling = yes ; then
   24697 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
   24698 printf "%s\n" "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
   24699 
   24700 printf "%s\n" "#define CROSS_COMPILING 1" >>confdefs.h
   24701 
   24702 else
   24703 	 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   24704 printf %s "checking whether byte ordering is bigendian... " >&6; }
   24705 if test ${ac_cv_c_bigendian+y}
   24706 then :
   24707   printf %s "(cached) " >&6
   24708 else $as_nop
   24709   ac_cv_c_bigendian=unknown
   24710     # See if we're dealing with a universal compiler.
   24711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24712 /* end confdefs.h.  */
   24713 #ifndef __APPLE_CC__
   24714 	       not a universal capable compiler
   24715 	     #endif
   24716 	     typedef int dummy;
   24717 
   24718 _ACEOF
   24719 if ac_fn_c_try_compile "$LINENO"
   24720 then :
   24721 
   24722 	# Check for potential -arch flags.  It is not universal unless
   24723 	# there are at least two -arch flags with different values.
   24724 	ac_arch=
   24725 	ac_prev=
   24726 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   24727 	 if test -n "$ac_prev"; then
   24728 	   case $ac_word in
   24729 	     i?86 | x86_64 | ppc | ppc64)
   24730 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   24731 		 ac_arch=$ac_word
   24732 	       else
   24733 		 ac_cv_c_bigendian=universal
   24734 		 break
   24735 	       fi
   24736 	       ;;
   24737 	   esac
   24738 	   ac_prev=
   24739 	 elif test "x$ac_word" = "x-arch"; then
   24740 	   ac_prev=arch
   24741 	 fi
   24742        done
   24743 fi
   24744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24745     if test $ac_cv_c_bigendian = unknown; then
   24746       # See if sys/param.h defines the BYTE_ORDER macro.
   24747       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24748 /* end confdefs.h.  */
   24749 #include <sys/types.h>
   24750 	     #include <sys/param.h>
   24751 
   24752 int
   24753 main (void)
   24754 {
   24755 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   24756 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   24757 		     && LITTLE_ENDIAN)
   24758 	      bogus endian macros
   24759 	     #endif
   24760 
   24761   ;
   24762   return 0;
   24763 }
   24764 _ACEOF
   24765 if ac_fn_c_try_compile "$LINENO"
   24766 then :
   24767   # It does; now see whether it defined to BIG_ENDIAN or not.
   24768 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24769 /* end confdefs.h.  */
   24770 #include <sys/types.h>
   24771 		#include <sys/param.h>
   24772 
   24773 int
   24774 main (void)
   24775 {
   24776 #if BYTE_ORDER != BIG_ENDIAN
   24777 		 not big endian
   24778 		#endif
   24779 
   24780   ;
   24781   return 0;
   24782 }
   24783 _ACEOF
   24784 if ac_fn_c_try_compile "$LINENO"
   24785 then :
   24786   ac_cv_c_bigendian=yes
   24787 else $as_nop
   24788   ac_cv_c_bigendian=no
   24789 fi
   24790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24791 fi
   24792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24793     fi
   24794     if test $ac_cv_c_bigendian = unknown; then
   24795       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   24796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24797 /* end confdefs.h.  */
   24798 #include <limits.h>
   24799 
   24800 int
   24801 main (void)
   24802 {
   24803 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   24804 	      bogus endian macros
   24805 	     #endif
   24806 
   24807   ;
   24808   return 0;
   24809 }
   24810 _ACEOF
   24811 if ac_fn_c_try_compile "$LINENO"
   24812 then :
   24813   # It does; now see whether it defined to _BIG_ENDIAN or not.
   24814 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24815 /* end confdefs.h.  */
   24816 #include <limits.h>
   24817 
   24818 int
   24819 main (void)
   24820 {
   24821 #ifndef _BIG_ENDIAN
   24822 		 not big endian
   24823 		#endif
   24824 
   24825   ;
   24826   return 0;
   24827 }
   24828 _ACEOF
   24829 if ac_fn_c_try_compile "$LINENO"
   24830 then :
   24831   ac_cv_c_bigendian=yes
   24832 else $as_nop
   24833   ac_cv_c_bigendian=no
   24834 fi
   24835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24836 fi
   24837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24838     fi
   24839     if test $ac_cv_c_bigendian = unknown; then
   24840       # Compile a test program.
   24841       if test "$cross_compiling" = yes
   24842 then :
   24843   # Try to guess by grepping values from an object file.
   24844 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24845 /* end confdefs.h.  */
   24846 unsigned short int ascii_mm[] =
   24847 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   24848 		unsigned short int ascii_ii[] =
   24849 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   24850 		int use_ascii (int i) {
   24851 		  return ascii_mm[i] + ascii_ii[i];
   24852 		}
   24853 		unsigned short int ebcdic_ii[] =
   24854 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   24855 		unsigned short int ebcdic_mm[] =
   24856 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   24857 		int use_ebcdic (int i) {
   24858 		  return ebcdic_mm[i] + ebcdic_ii[i];
   24859 		}
   24860 		extern int foo;
   24861 
   24862 int
   24863 main (void)
   24864 {
   24865 return use_ascii (foo) == use_ebcdic (foo);
   24866   ;
   24867   return 0;
   24868 }
   24869 _ACEOF
   24870 if ac_fn_c_try_compile "$LINENO"
   24871 then :
   24872   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   24873 	      ac_cv_c_bigendian=yes
   24874 	    fi
   24875 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   24876 	      if test "$ac_cv_c_bigendian" = unknown; then
   24877 		ac_cv_c_bigendian=no
   24878 	      else
   24879 		# finding both strings is unlikely to happen, but who knows?
   24880 		ac_cv_c_bigendian=unknown
   24881 	      fi
   24882 	    fi
   24883 fi
   24884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   24885 else $as_nop
   24886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24887 /* end confdefs.h.  */
   24888 $ac_includes_default
   24889 int
   24890 main (void)
   24891 {
   24892 
   24893 	     /* Are we little or big endian?  From Harbison&Steele.  */
   24894 	     union
   24895 	     {
   24896 	       long int l;
   24897 	       char c[sizeof (long int)];
   24898 	     } u;
   24899 	     u.l = 1;
   24900 	     return u.c[sizeof (long int) - 1] == 1;
   24901 
   24902   ;
   24903   return 0;
   24904 }
   24905 _ACEOF
   24906 if ac_fn_c_try_run "$LINENO"
   24907 then :
   24908   ac_cv_c_bigendian=no
   24909 else $as_nop
   24910   ac_cv_c_bigendian=yes
   24911 fi
   24912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24913   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24914 fi
   24915 
   24916     fi
   24917 fi
   24918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   24919 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
   24920  case $ac_cv_c_bigendian in #(
   24921    yes)
   24922      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
   24923 ;; #(
   24924    no)
   24925       ;; #(
   24926    universal)
   24927 
   24928 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   24929 
   24930      ;; #(
   24931    *)
   24932      as_fn_error $? "unknown endianness
   24933  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   24934  esac
   24935 
   24936 fi
   24937 
   24938 # The cast to long int works around a bug in the HP C Compiler
   24939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24941 # This bug is HP SR number 8606223364.
   24942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   24943 printf %s "checking size of short... " >&6; }
   24944 if test ${ac_cv_sizeof_short+y}
   24945 then :
   24946   printf %s "(cached) " >&6
   24947 else $as_nop
   24948   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
   24949 then :
   24950 
   24951 else $as_nop
   24952   if test "$ac_cv_type_short" = yes; then
   24953      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   24954 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   24955 as_fn_error 77 "cannot compute sizeof (short)
   24956 See \`config.log' for more details" "$LINENO" 5; }
   24957    else
   24958      ac_cv_sizeof_short=0
   24959    fi
   24960 fi
   24961 
   24962 fi
   24963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   24964 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
   24965 
   24966 
   24967 
   24968 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
   24969 
   24970 
   24971 # The cast to long int works around a bug in the HP C Compiler
   24972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24974 # This bug is HP SR number 8606223364.
   24975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   24976 printf %s "checking size of int... " >&6; }
   24977 if test ${ac_cv_sizeof_int+y}
   24978 then :
   24979   printf %s "(cached) " >&6
   24980 else $as_nop
   24981   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
   24982 then :
   24983 
   24984 else $as_nop
   24985   if test "$ac_cv_type_int" = yes; then
   24986      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   24987 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   24988 as_fn_error 77 "cannot compute sizeof (int)
   24989 See \`config.log' for more details" "$LINENO" 5; }
   24990    else
   24991      ac_cv_sizeof_int=0
   24992    fi
   24993 fi
   24994 
   24995 fi
   24996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   24997 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
   24998 
   24999 
   25000 
   25001 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
   25002 
   25003 
   25004 # The cast to long int works around a bug in the HP C Compiler
   25005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25007 # This bug is HP SR number 8606223364.
   25008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   25009 printf %s "checking size of long... " >&6; }
   25010 if test ${ac_cv_sizeof_long+y}
   25011 then :
   25012   printf %s "(cached) " >&6
   25013 else $as_nop
   25014   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
   25015 then :
   25016 
   25017 else $as_nop
   25018   if test "$ac_cv_type_long" = yes; then
   25019      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   25020 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   25021 as_fn_error 77 "cannot compute sizeof (long)
   25022 See \`config.log' for more details" "$LINENO" 5; }
   25023    else
   25024      ac_cv_sizeof_long=0
   25025    fi
   25026 fi
   25027 
   25028 fi
   25029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   25030 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
   25031 
   25032 
   25033 
   25034 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
   25035 
   25036 
   25037 # The cast to long int works around a bug in the HP C Compiler
   25038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25040 # This bug is HP SR number 8606223364.
   25041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   25042 printf %s "checking size of long long... " >&6; }
   25043 if test ${ac_cv_sizeof_long_long+y}
   25044 then :
   25045   printf %s "(cached) " >&6
   25046 else $as_nop
   25047   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
   25048 then :
   25049 
   25050 else $as_nop
   25051   if test "$ac_cv_type_long_long" = yes; then
   25052      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   25053 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   25054 as_fn_error 77 "cannot compute sizeof (long long)
   25055 See \`config.log' for more details" "$LINENO" 5; }
   25056    else
   25057      ac_cv_sizeof_long_long=0
   25058    fi
   25059 fi
   25060 
   25061 fi
   25062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   25063 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
   25064 
   25065 
   25066 
   25067 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
   25068 
   25069 
   25070 # The cast to long int works around a bug in the HP C Compiler
   25071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25073 # This bug is HP SR number 8606223364.
   25074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
   25075 printf %s "checking size of wchar_t... " >&6; }
   25076 if test ${ac_cv_sizeof_wchar_t+y}
   25077 then :
   25078   printf %s "(cached) " >&6
   25079 else $as_nop
   25080   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"
   25081 then :
   25082 
   25083 else $as_nop
   25084   if test "$ac_cv_type_wchar_t" = yes; then
   25085      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   25086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   25087 as_fn_error 77 "cannot compute sizeof (wchar_t)
   25088 See \`config.log' for more details" "$LINENO" 5; }
   25089    else
   25090      ac_cv_sizeof_wchar_t=0
   25091    fi
   25092 fi
   25093 
   25094 fi
   25095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
   25096 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
   25097 
   25098 
   25099 
   25100 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
   25101 
   25102 
   25103 
   25104 if test "$ac_cv_sizeof_int" -lt 4 ; then
   25105 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
   25106 printf "%s\n" "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
   25107 
   25108 
   25109 printf "%s\n" "#define LBER_INT_T long" >>confdefs.h
   25110 
   25111 else
   25112 
   25113 printf "%s\n" "#define LBER_INT_T int" >>confdefs.h
   25114 
   25115 fi
   25116 
   25117 
   25118 printf "%s\n" "#define LBER_LEN_T long" >>confdefs.h
   25119 
   25120 
   25121 printf "%s\n" "#define LBER_SOCKET_T int" >>confdefs.h
   25122 
   25123 
   25124 printf "%s\n" "#define LBER_TAG_T long" >>confdefs.h
   25125 
   25126 
   25127 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
   25128 	if test $ac_cv_sizeof_long_long -gt 4 ; then
   25129 		ol_with_mp=longlong
   25130 
   25131 printf "%s\n" "#define USE_MP_LONG_LONG 1" >>confdefs.h
   25132 
   25133 	elif test $ol_with_mp = longlong ; then
   25134 		as_fn_error $? "long long unusable for multiple precision" "$LINENO" 5
   25135 	fi
   25136 fi
   25137 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
   25138 	if test $ac_cv_sizeof_long -gt 4 ; then
   25139 		ol_with_mp=long
   25140 
   25141 printf "%s\n" "#define USE_MP_LONG 1" >>confdefs.h
   25142 
   25143 	elif test $ol_with_mp = long ; then
   25144 		as_fn_error $? "long unusable for multiple precision" "$LINENO" 5
   25145 	fi
   25146 fi
   25147 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
   25148 	ac_fn_c_check_header_compile "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
   25149 if test "x$ac_cv_header_openssl_bn_h" = xyes
   25150 then :
   25151   printf "%s\n" "#define HAVE_OPENSSL_BN_H 1" >>confdefs.h
   25152 
   25153 fi
   25154 
   25155 	ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
   25156 if test "x$ac_cv_header_openssl_crypto_h" = xyes
   25157 then :
   25158   printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
   25159 
   25160 fi
   25161 
   25162 	if test "$ac_cv_header_openssl_bn_h" = "yes" &&
   25163 		test "$ac_cv_header_openssl_crypto_h" = "yes" &&
   25164 		test "$ol_with_tls" = "found" ; then
   25165 		ol_with_mp=bignum
   25166 
   25167 printf "%s\n" "#define USE_MP_BIGNUM 1" >>confdefs.h
   25168 
   25169 	elif test $ol_with_mp = bignum ; then
   25170 		as_fn_error $? "bignum not available" "$LINENO" 5
   25171 	fi
   25172 fi
   25173 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
   25174 	ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
   25175 if test "x$ac_cv_header_gmp_h" = xyes
   25176 then :
   25177   printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
   25178 
   25179 fi
   25180 
   25181 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
   25182 printf %s "checking for __gmpz_add_ui in -lgmp... " >&6; }
   25183 if test ${ac_cv_lib_gmp___gmpz_add_ui+y}
   25184 then :
   25185   printf %s "(cached) " >&6
   25186 else $as_nop
   25187   ac_check_lib_save_LIBS=$LIBS
   25188 LIBS="-lgmp  $LIBS"
   25189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25190 /* end confdefs.h.  */
   25191 
   25192 /* Override any GCC internal prototype to avoid an error.
   25193    Use char because int might match the return type of a GCC
   25194    builtin and then its argument prototype would still apply.  */
   25195 char __gmpz_add_ui ();
   25196 int
   25197 main (void)
   25198 {
   25199 return __gmpz_add_ui ();
   25200   ;
   25201   return 0;
   25202 }
   25203 _ACEOF
   25204 if ac_fn_c_try_link "$LINENO"
   25205 then :
   25206   ac_cv_lib_gmp___gmpz_add_ui=yes
   25207 else $as_nop
   25208   ac_cv_lib_gmp___gmpz_add_ui=no
   25209 fi
   25210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25211     conftest$ac_exeext conftest.$ac_ext
   25212 LIBS=$ac_check_lib_save_LIBS
   25213 fi
   25214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
   25215 printf "%s\n" "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
   25216 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = xyes
   25217 then :
   25218   printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h
   25219 
   25220   LIBS="-lgmp $LIBS"
   25221 
   25222 fi
   25223 
   25224 	if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
   25225 
   25226 printf "%s\n" "#define USE_MP_GMP 1" >>confdefs.h
   25227 
   25228 		ol_with_mp=gmp
   25229 	elif test $ol_with_mp = gmp ; then
   25230 		as_fn_error $? "gmp not available" "$LINENO" 5
   25231 	fi
   25232 fi
   25233 if test $ol_with_mp = auto ; then
   25234 	ol_with_mp=no
   25235 fi
   25236 
   25237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
   25238 printf %s "checking for working memcmp... " >&6; }
   25239 if test ${ac_cv_func_memcmp_working+y}
   25240 then :
   25241   printf %s "(cached) " >&6
   25242 else $as_nop
   25243   if test "$cross_compiling" = yes
   25244 then :
   25245   ac_cv_func_memcmp_working=no
   25246 else $as_nop
   25247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25248 /* end confdefs.h.  */
   25249 $ac_includes_default
   25250 int
   25251 main (void)
   25252 {
   25253 
   25254   /* Some versions of memcmp are not 8-bit clean.  */
   25255   char c0 = '\100', c1 = '\200', c2 = '\201';
   25256   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
   25257     return 1;
   25258 
   25259   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
   25260      or more and with at least one buffer not starting on a 4-byte boundary.
   25261      William Lewis provided this test program.   */
   25262   {
   25263     char foo[21];
   25264     char bar[21];
   25265     int i;
   25266     for (i = 0; i < 4; i++)
   25267       {
   25268 	char *a = foo + i;
   25269 	char *b = bar + i;
   25270 	strcpy (a, "--------01111111");
   25271 	strcpy (b, "--------10000000");
   25272 	if (memcmp (a, b, 16) >= 0)
   25273 	  return 1;
   25274       }
   25275     return 0;
   25276   }
   25277 
   25278   ;
   25279   return 0;
   25280 }
   25281 _ACEOF
   25282 if ac_fn_c_try_run "$LINENO"
   25283 then :
   25284   ac_cv_func_memcmp_working=yes
   25285 else $as_nop
   25286   ac_cv_func_memcmp_working=no
   25287 fi
   25288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25289   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25290 fi
   25291 
   25292 fi
   25293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
   25294 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
   25295 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
   25296   *" memcmp.$ac_objext "* ) ;;
   25297   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   25298  ;;
   25299 esac
   25300 
   25301 
   25302 
   25303 if test $ac_cv_func_memcmp_working = no ; then
   25304 
   25305 printf "%s\n" "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
   25306 
   25307 fi
   25308 
   25309 
   25310   for ac_func in strftime
   25311 do :
   25312   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
   25313 if test "x$ac_cv_func_strftime" = xyes
   25314 then :
   25315   printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
   25316 
   25317 else $as_nop
   25318   # strftime is in -lintl on SCO UNIX.
   25319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
   25320 printf %s "checking for strftime in -lintl... " >&6; }
   25321 if test ${ac_cv_lib_intl_strftime+y}
   25322 then :
   25323   printf %s "(cached) " >&6
   25324 else $as_nop
   25325   ac_check_lib_save_LIBS=$LIBS
   25326 LIBS="-lintl  $LIBS"
   25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25328 /* end confdefs.h.  */
   25329 
   25330 /* Override any GCC internal prototype to avoid an error.
   25331    Use char because int might match the return type of a GCC
   25332    builtin and then its argument prototype would still apply.  */
   25333 char strftime ();
   25334 int
   25335 main (void)
   25336 {
   25337 return strftime ();
   25338   ;
   25339   return 0;
   25340 }
   25341 _ACEOF
   25342 if ac_fn_c_try_link "$LINENO"
   25343 then :
   25344   ac_cv_lib_intl_strftime=yes
   25345 else $as_nop
   25346   ac_cv_lib_intl_strftime=no
   25347 fi
   25348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25349     conftest$ac_exeext conftest.$ac_ext
   25350 LIBS=$ac_check_lib_save_LIBS
   25351 fi
   25352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
   25353 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
   25354 if test "x$ac_cv_lib_intl_strftime" = xyes
   25355 then :
   25356   printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
   25357 
   25358 LIBS="-lintl $LIBS"
   25359 fi
   25360 
   25361 fi
   25362 
   25363 done
   25364 
   25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
   25366 printf %s "checking for inet_aton()... " >&6; }
   25367 if test ${ol_cv_func_inet_aton+y}
   25368 then :
   25369   printf %s "(cached) " >&6
   25370 else $as_nop
   25371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25372 /* end confdefs.h.  */
   25373 
   25374 #ifdef HAVE_SYS_TYPES_H
   25375 #	include <sys/types.h>
   25376 #endif
   25377 #ifdef HAVE_SYS_SOCKET_H
   25378 #	include <sys/socket.h>
   25379 #	ifdef HAVE_SYS_SELECT_H
   25380 #		include <sys/select.h>
   25381 #	endif
   25382 #	include <netinet/in.h>
   25383 #	ifdef HAVE_ARPA_INET_H
   25384 #		include <arpa/inet.h>
   25385 #	endif
   25386 #endif
   25387 
   25388 int
   25389 main (void)
   25390 {
   25391 struct in_addr in;
   25392 int rc = inet_aton( "255.255.255.255", &in );
   25393   ;
   25394   return 0;
   25395 }
   25396 _ACEOF
   25397 if ac_fn_c_try_link "$LINENO"
   25398 then :
   25399   ol_cv_func_inet_aton=yes
   25400 else $as_nop
   25401   ol_cv_func_inet_aton=no
   25402 fi
   25403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25404     conftest$ac_exeext conftest.$ac_ext
   25405 fi
   25406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
   25407 printf "%s\n" "$ol_cv_func_inet_aton" >&6; }
   25408   if test $ol_cv_func_inet_aton != no; then
   25409 
   25410 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
   25411 
   25412   fi
   25413 
   25414 
   25415 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
   25416 if test "x$ac_cv_func__spawnlp" = xyes
   25417 then :
   25418 
   25419 printf "%s\n" "#define HAVE_SPAWNLP 1" >>confdefs.h
   25420 
   25421 fi
   25422 
   25423 
   25424 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
   25425 if test "x$ac_cv_func__snprintf" = xyes
   25426 then :
   25427   ac_cv_func_snprintf=yes
   25428 
   25429 printf "%s\n" "#define snprintf _snprintf" >>confdefs.h
   25430 
   25431 
   25432 fi
   25433 
   25434 
   25435 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
   25436 if test "x$ac_cv_func_vsnprintf" = xyes
   25437 then :
   25438   printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
   25439 
   25440 fi
   25441 ac_fn_c_check_func "$LINENO" "_vsnprintf" "ac_cv_func__vsnprintf"
   25442 if test "x$ac_cv_func__vsnprintf" = xyes
   25443 then :
   25444   printf "%s\n" "#define HAVE__VSNPRINTF 1" >>confdefs.h
   25445 
   25446 fi
   25447 
   25448 
   25449 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
   25450 	ac_cv_func_vsnprintf=yes
   25451 
   25452 printf "%s\n" "#define vsnprintf _vsnprintf" >>confdefs.h
   25453 
   25454 fi
   25455 
   25456 ac_func=
   25457 for ac_item in $ac_func_c_list
   25458 do
   25459   if test $ac_func; then
   25460     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
   25461     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
   25462       echo "#define $ac_item 1" >> confdefs.h
   25463     fi
   25464     ac_func=
   25465   else
   25466     ac_func=$ac_item
   25467   fi
   25468 done
   25469 
   25470 if test "x$ac_cv_func_vprintf" = xno
   25471 then :
   25472   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
   25473 if test "x$ac_cv_func__doprnt" = xyes
   25474 then :
   25475 
   25476 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
   25477 
   25478 fi
   25479 
   25480 fi
   25481 
   25482 if test $ac_cv_func_vprintf = yes ; then
   25483 		ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   25484 if test "x$ac_cv_func_snprintf" = xyes
   25485 then :
   25486   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
   25487 
   25488 fi
   25489 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
   25490 if test "x$ac_cv_func_vsnprintf" = xyes
   25491 then :
   25492   printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
   25493 
   25494 fi
   25495 
   25496 fi
   25497 
   25498 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
   25499 if test "x$ac_cv_func_bcopy" = xyes
   25500 then :
   25501   printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
   25502 
   25503 fi
   25504 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   25505 if test "x$ac_cv_func_clock_gettime" = xyes
   25506 then :
   25507   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   25508 
   25509 fi
   25510 ac_fn_c_check_func "$LINENO" "closesocket" "ac_cv_func_closesocket"
   25511 if test "x$ac_cv_func_closesocket" = xyes
   25512 then :
   25513   printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
   25514 
   25515 fi
   25516 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   25517 if test "x$ac_cv_func_chroot" = xyes
   25518 then :
   25519   printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
   25520 
   25521 fi
   25522 ac_fn_c_check_func "$LINENO" "endgrent" "ac_cv_func_endgrent"
   25523 if test "x$ac_cv_func_endgrent" = xyes
   25524 then :
   25525   printf "%s\n" "#define HAVE_ENDGRENT 1" >>confdefs.h
   25526 
   25527 fi
   25528 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
   25529 if test "x$ac_cv_func_endpwent" = xyes
   25530 then :
   25531   printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h
   25532 
   25533 fi
   25534 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
   25535 if test "x$ac_cv_func_fcntl" = xyes
   25536 then :
   25537   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
   25538 
   25539 fi
   25540 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
   25541 if test "x$ac_cv_func_flock" = xyes
   25542 then :
   25543   printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
   25544 
   25545 fi
   25546 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
   25547 if test "x$ac_cv_func_fstat" = xyes
   25548 then :
   25549   printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
   25550 
   25551 fi
   25552 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
   25553 if test "x$ac_cv_func_getdtablesize" = xyes
   25554 then :
   25555   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
   25556 
   25557 fi
   25558 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
   25559 if test "x$ac_cv_func_geteuid" = xyes
   25560 then :
   25561   printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
   25562 
   25563 fi
   25564 ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
   25565 if test "x$ac_cv_func_getgrgid" = xyes
   25566 then :
   25567   printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
   25568 
   25569 fi
   25570 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
   25571 if test "x$ac_cv_func_gethostname" = xyes
   25572 then :
   25573   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
   25574 
   25575 fi
   25576 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   25577 if test "x$ac_cv_func_getpassphrase" = xyes
   25578 then :
   25579   printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
   25580 
   25581 fi
   25582 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
   25583 if test "x$ac_cv_func_getpwuid" = xyes
   25584 then :
   25585   printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
   25586 
   25587 fi
   25588 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
   25589 if test "x$ac_cv_func_getpwnam" = xyes
   25590 then :
   25591   printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
   25592 
   25593 fi
   25594 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
   25595 if test "x$ac_cv_func_getspnam" = xyes
   25596 then :
   25597   printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
   25598 
   25599 fi
   25600 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
   25601 if test "x$ac_cv_func_gettimeofday" = xyes
   25602 then :
   25603   printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
   25604 
   25605 fi
   25606 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
   25607 if test "x$ac_cv_func_initgroups" = xyes
   25608 then :
   25609   printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
   25610 
   25611 fi
   25612 ac_fn_c_check_func "$LINENO" "inet_ntoa_b" "ac_cv_func_inet_ntoa_b"
   25613 if test "x$ac_cv_func_inet_ntoa_b" = xyes
   25614 then :
   25615   printf "%s\n" "#define HAVE_INET_NTOA_B 1" >>confdefs.h
   25616 
   25617 fi
   25618 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
   25619 if test "x$ac_cv_func_ioctl" = xyes
   25620 then :
   25621   printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
   25622 
   25623 fi
   25624 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
   25625 if test "x$ac_cv_func_lockf" = xyes
   25626 then :
   25627   printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
   25628 
   25629 fi
   25630 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
   25631 if test "x$ac_cv_func_memcpy" = xyes
   25632 then :
   25633   printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
   25634 
   25635 fi
   25636 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   25637 if test "x$ac_cv_func_memmove" = xyes
   25638 then :
   25639   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
   25640 
   25641 fi
   25642 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
   25643 if test "x$ac_cv_func_memrchr" = xyes
   25644 then :
   25645   printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
   25646 
   25647 fi
   25648 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
   25649 if test "x$ac_cv_func_mkstemp" = xyes
   25650 then :
   25651   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
   25652 
   25653 fi
   25654 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
   25655 if test "x$ac_cv_func_mktemp" = xyes
   25656 then :
   25657   printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
   25658 
   25659 fi
   25660 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
   25661 if test "x$ac_cv_func_pipe" = xyes
   25662 then :
   25663   printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
   25664 
   25665 fi
   25666 ac_fn_c_check_func "$LINENO" "read" "ac_cv_func_read"
   25667 if test "x$ac_cv_func_read" = xyes
   25668 then :
   25669   printf "%s\n" "#define HAVE_READ 1" >>confdefs.h
   25670 
   25671 fi
   25672 ac_fn_c_check_func "$LINENO" "recv" "ac_cv_func_recv"
   25673 if test "x$ac_cv_func_recv" = xyes
   25674 then :
   25675   printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
   25676 
   25677 fi
   25678 ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
   25679 if test "x$ac_cv_func_recvfrom" = xyes
   25680 then :
   25681   printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
   25682 
   25683 fi
   25684 ac_fn_c_check_func "$LINENO" "setpwfile" "ac_cv_func_setpwfile"
   25685 if test "x$ac_cv_func_setpwfile" = xyes
   25686 then :
   25687   printf "%s\n" "#define HAVE_SETPWFILE 1" >>confdefs.h
   25688 
   25689 fi
   25690 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
   25691 if test "x$ac_cv_func_setgid" = xyes
   25692 then :
   25693   printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
   25694 
   25695 fi
   25696 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
   25697 if test "x$ac_cv_func_setegid" = xyes
   25698 then :
   25699   printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
   25700 
   25701 fi
   25702 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
   25703 if test "x$ac_cv_func_setsid" = xyes
   25704 then :
   25705   printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
   25706 
   25707 fi
   25708 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
   25709 if test "x$ac_cv_func_setuid" = xyes
   25710 then :
   25711   printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
   25712 
   25713 fi
   25714 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
   25715 if test "x$ac_cv_func_seteuid" = xyes
   25716 then :
   25717   printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
   25718 
   25719 fi
   25720 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
   25721 if test "x$ac_cv_func_signal" = xyes
   25722 then :
   25723   printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
   25724 
   25725 fi
   25726 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   25727 if test "x$ac_cv_func_strdup" = xyes
   25728 then :
   25729   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
   25730 
   25731 fi
   25732 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
   25733 if test "x$ac_cv_func_strpbrk" = xyes
   25734 then :
   25735   printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
   25736 
   25737 fi
   25738 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
   25739 if test "x$ac_cv_func_strrchr" = xyes
   25740 then :
   25741   printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
   25742 
   25743 fi
   25744 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   25745 if test "x$ac_cv_func_strsep" = xyes
   25746 then :
   25747   printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
   25748 
   25749 fi
   25750 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
   25751 if test "x$ac_cv_func_strstr" = xyes
   25752 then :
   25753   printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
   25754 
   25755 fi
   25756 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
   25757 if test "x$ac_cv_func_strtol" = xyes
   25758 then :
   25759   printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
   25760 
   25761 fi
   25762 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
   25763 if test "x$ac_cv_func_strtoul" = xyes
   25764 then :
   25765   printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
   25766 
   25767 fi
   25768 ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
   25769 if test "x$ac_cv_func_strtoq" = xyes
   25770 then :
   25771   printf "%s\n" "#define HAVE_STRTOQ 1" >>confdefs.h
   25772 
   25773 fi
   25774 ac_fn_c_check_func "$LINENO" "strtouq" "ac_cv_func_strtouq"
   25775 if test "x$ac_cv_func_strtouq" = xyes
   25776 then :
   25777   printf "%s\n" "#define HAVE_STRTOUQ 1" >>confdefs.h
   25778 
   25779 fi
   25780 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
   25781 if test "x$ac_cv_func_strtoll" = xyes
   25782 then :
   25783   printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
   25784 
   25785 fi
   25786 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
   25787 if test "x$ac_cv_func_strtoull" = xyes
   25788 then :
   25789   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
   25790 
   25791 fi
   25792 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
   25793 if test "x$ac_cv_func_strspn" = xyes
   25794 then :
   25795   printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
   25796 
   25797 fi
   25798 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   25799 if test "x$ac_cv_func_sysconf" = xyes
   25800 then :
   25801   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
   25802 
   25803 fi
   25804 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
   25805 if test "x$ac_cv_func_waitpid" = xyes
   25806 then :
   25807   printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
   25808 
   25809 fi
   25810 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
   25811 if test "x$ac_cv_func_wait4" = xyes
   25812 then :
   25813   printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
   25814 
   25815 fi
   25816 ac_fn_c_check_func "$LINENO" "write" "ac_cv_func_write"
   25817 if test "x$ac_cv_func_write" = xyes
   25818 then :
   25819   printf "%s\n" "#define HAVE_WRITE 1" >>confdefs.h
   25820 
   25821 fi
   25822 ac_fn_c_check_func "$LINENO" "send" "ac_cv_func_send"
   25823 if test "x$ac_cv_func_send" = xyes
   25824 then :
   25825   printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
   25826 
   25827 fi
   25828 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
   25829 if test "x$ac_cv_func_sendmsg" = xyes
   25830 then :
   25831   printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
   25832 
   25833 fi
   25834 ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
   25835 if test "x$ac_cv_func_sendto" = xyes
   25836 then :
   25837   printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
   25838 
   25839 fi
   25840 
   25841 
   25842 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
   25843 if test "x$ac_cv_func_getopt" = xyes
   25844 then :
   25845   printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
   25846 
   25847 else $as_nop
   25848   case " $LIBOBJS " in
   25849   *" getopt.$ac_objext "* ) ;;
   25850   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
   25851  ;;
   25852 esac
   25853 
   25854 fi
   25855 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
   25856 if test "x$ac_cv_func_getpeereid" = xyes
   25857 then :
   25858   printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
   25859 
   25860 else $as_nop
   25861   case " $LIBOBJS " in
   25862   *" getpeereid.$ac_objext "* ) ;;
   25863   *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
   25864  ;;
   25865 esac
   25866 
   25867 fi
   25868 
   25869 
   25870 if test "$ac_cv_func_getopt" != yes; then
   25871 	LIBSRCS="$LIBSRCS getopt.c"
   25872 fi
   25873 
   25874 if test "$ac_cv_func_getpeereid" != yes; then
   25875 	ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
   25876 if test "x$ac_cv_func_getpeerucred" = xyes
   25877 then :
   25878   printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
   25879 
   25880 fi
   25881 
   25882 	if test "$ac_cv_func_getpeerucred" != yes ; then
   25883 		ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
   25884 #ifdef HAVE_SYS_SOCKET_H
   25885 #include <sys/socket.h>
   25886 #endif
   25887 "
   25888 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = xyes
   25889 then :
   25890 
   25891 printf "%s\n" "#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1" >>confdefs.h
   25892 
   25893 
   25894 fi
   25895 
   25896 		if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
   25897 			ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
   25898 #ifdef HAVE_SYS_SOCKET_H
   25899 #include <sys/socket.h>
   25900 #endif
   25901 "
   25902 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
   25903 then :
   25904 
   25905 printf "%s\n" "#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1" >>confdefs.h
   25906 
   25907 
   25908 fi
   25909 
   25910 		fi
   25911 		ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
   25912 if test "x$ac_cv_member_struct_stat_st_fstype" = xyes
   25913 then :
   25914 
   25915 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FSTYPE 1" >>confdefs.h
   25916 
   25917 
   25918 fi
   25919 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
   25920 if test "x$ac_cv_member_struct_stat_st_vfstype" = xyes
   25921 then :
   25922 
   25923 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_VFSTYPE 1" >>confdefs.h
   25924 
   25925 
   25926 fi
   25927 
   25928 		if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
   25929 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25930 /* end confdefs.h.  */
   25931 struct stat st; char *ptr=st.st_fstype;
   25932 _ACEOF
   25933 if ac_fn_c_try_compile "$LINENO"
   25934 then :
   25935 
   25936 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
   25937 
   25938 else $as_nop
   25939 
   25940 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
   25941 
   25942 fi
   25943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   25944 		fi
   25945 	fi
   25946 	LIBSRCS="$LIBSRCS getpeereid.c"
   25947 fi
   25948 
   25949 if test "$ac_cv_func_snprintf" != yes ||
   25950    test "$ac_cv_func_vsnprintf" != yes; then
   25951 	if test "$ac_cv_func_snprintf" != yes; then
   25952 
   25953 printf "%s\n" "#define snprintf ber_pvt_snprintf" >>confdefs.h
   25954 
   25955 	fi
   25956 	if test "$ac_cv_func_vsnprintf" != yes; then
   25957 
   25958 printf "%s\n" "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
   25959 
   25960 	fi
   25961 fi
   25962 
   25963 
   25964 if test "$ol_enable_slapi" != no ; then
   25965 			ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
   25966 if test "x$ac_cv_header_ltdl_h" = xyes
   25967 then :
   25968   printf "%s\n" "#define HAVE_LTDL_H 1" >>confdefs.h
   25969 
   25970 fi
   25971 
   25972 
   25973 	if test $ac_cv_header_ltdl_h != yes ; then
   25974 		as_fn_error $? "could not locate <ltdl.h>" "$LINENO" 5
   25975 	fi
   25976 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
   25977 printf %s "checking for lt_dlinit in -lltdl... " >&6; }
   25978 if test ${ac_cv_lib_ltdl_lt_dlinit+y}
   25979 then :
   25980   printf %s "(cached) " >&6
   25981 else $as_nop
   25982   ac_check_lib_save_LIBS=$LIBS
   25983 LIBS="-lltdl  $LIBS"
   25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25985 /* end confdefs.h.  */
   25986 
   25987 /* Override any GCC internal prototype to avoid an error.
   25988    Use char because int might match the return type of a GCC
   25989    builtin and then its argument prototype would still apply.  */
   25990 char lt_dlinit ();
   25991 int
   25992 main (void)
   25993 {
   25994 return lt_dlinit ();
   25995   ;
   25996   return 0;
   25997 }
   25998 _ACEOF
   25999 if ac_fn_c_try_link "$LINENO"
   26000 then :
   26001   ac_cv_lib_ltdl_lt_dlinit=yes
   26002 else $as_nop
   26003   ac_cv_lib_ltdl_lt_dlinit=no
   26004 fi
   26005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   26006     conftest$ac_exeext conftest.$ac_ext
   26007 LIBS=$ac_check_lib_save_LIBS
   26008 fi
   26009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
   26010 printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
   26011 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes
   26012 then :
   26013 
   26014 		SLAPI_LIBS=-lltdl
   26015 		LIBSLAPI=slapi/libslapi.la
   26016 
   26017 printf "%s\n" "#define HAVE_LIBLTDL 1" >>confdefs.h
   26018 
   26019 
   26020 else $as_nop
   26021   as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
   26022 fi
   26023 
   26024 
   26025 
   26026 printf "%s\n" "#define LDAP_SLAPI 1" >>confdefs.h
   26027 
   26028 fi
   26029 
   26030 if test "$ol_enable_debug" != no ; then
   26031 	if test "$ol_enable_debug" = traditional; then
   26032 
   26033 printf "%s\n" "#define OLD_DEBUG 1" >>confdefs.h
   26034 
   26035 	fi
   26036 
   26037 printf "%s\n" "#define LDAP_DEBUG 1" >>confdefs.h
   26038 
   26039 fi
   26040 if test "$ol_enable_syslog" != no ; then
   26041 
   26042 printf "%s\n" "#define LDAP_SYSLOG 1" >>confdefs.h
   26043 
   26044 fi
   26045 if test "$ol_enable_referrals" != no ; then
   26046 
   26047 printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
   26048 
   26049 fi
   26050 if test "$ol_enable_local" != no; then
   26051 
   26052 printf "%s\n" "#define LDAP_PF_LOCAL 1" >>confdefs.h
   26053 
   26054 fi
   26055 if test "$ol_link_ipv6" != no; then
   26056 
   26057 printf "%s\n" "#define LDAP_PF_INET6 1" >>confdefs.h
   26058 
   26059 fi
   26060 if test "$ol_enable_cleartext" != no ; then
   26061 
   26062 printf "%s\n" "#define SLAPD_CLEARTEXT 1" >>confdefs.h
   26063 
   26064 fi
   26065 if test "$ol_enable_crypt" != no ; then
   26066 
   26067 printf "%s\n" "#define SLAPD_CRYPT 1" >>confdefs.h
   26068 
   26069 fi
   26070 if test "$ol_link_spasswd" != no ; then
   26071 
   26072 printf "%s\n" "#define SLAPD_SPASSWD 1" >>confdefs.h
   26073 
   26074 fi
   26075 if test "$ol_enable_rlookups" != no ; then
   26076 
   26077 printf "%s\n" "#define SLAPD_RLOOKUPS 1" >>confdefs.h
   26078 
   26079 fi
   26080 if test "$ol_enable_aci" != no ; then
   26081 	if test "$ol_enable_aci" = mod ; then
   26082 		MFLAG=SLAPD_MOD_DYNAMIC
   26083 				as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
   26084 	else
   26085 		MFLAG=SLAPD_MOD_STATIC
   26086 	fi
   26087 	WITH_ACI_ENABLED=$ol_enable_aci
   26088 
   26089 printf "%s\n" "#define SLAPD_ACI_ENABLED $MFLAG" >>confdefs.h
   26090 
   26091 else
   26092 	WITH_ACI_ENABLED=no
   26093 fi
   26094 if test "$ol_enable_dynacl" != no ; then
   26095 
   26096 printf "%s\n" "#define SLAP_DYNACL 1" >>confdefs.h
   26097 
   26098 fi
   26099 
   26100 if test "$ol_link_modules" != no ; then
   26101 
   26102 printf "%s\n" "#define SLAPD_MODULES 1" >>confdefs.h
   26103 
   26104 	BUILD_SLAPD=yes
   26105 	SLAPD_MODULES_LDFLAGS="-dlopen self"
   26106 fi
   26107 
   26108 
   26109 printf "%s\n" "#define SLAPD_MOD_STATIC 1" >>confdefs.h
   26110 
   26111 
   26112 printf "%s\n" "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
   26113 
   26114 
   26115 if test "$ol_enable_dnssrv" != no ; then
   26116 	BUILD_SLAPD=yes
   26117 	BUILD_DNSSRV=$ol_enable_dnssrv
   26118 	if test "$ol_enable_dnssrv" = mod ; then
   26119 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
   26120 		MFLAG=SLAPD_MOD_DYNAMIC
   26121 	else
   26122 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
   26123 		MFLAG=SLAPD_MOD_STATIC
   26124 	fi
   26125 
   26126 printf "%s\n" "#define SLAPD_DNSSRV $MFLAG" >>confdefs.h
   26127 
   26128 fi
   26129 
   26130 if test "$ol_enable_ldap" != no ; then
   26131 	BUILD_SLAPD=yes
   26132 	BUILD_LDAP=$ol_enable_ldap
   26133 	if test "$ol_enable_ldap" = mod ; then
   26134 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
   26135 		MFLAG=SLAPD_MOD_DYNAMIC
   26136 	else
   26137 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
   26138 		MFLAG=SLAPD_MOD_STATIC
   26139 	fi
   26140 
   26141 printf "%s\n" "#define SLAPD_LDAP $MFLAG" >>confdefs.h
   26142 
   26143 fi
   26144 
   26145 if test "$ol_enable_mdb" != no ; then
   26146 	BUILD_SLAPD=yes
   26147 	BUILD_MDB=$ol_enable_mdb
   26148 	if test "$ol_enable_mdb" = mod ; then
   26149 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
   26150 		MFLAG=SLAPD_MOD_DYNAMIC
   26151 	else
   26152 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
   26153 		MFLAG=SLAPD_MOD_STATIC
   26154 	fi
   26155 
   26156 printf "%s\n" "#define SLAPD_MDB $MFLAG" >>confdefs.h
   26157 
   26158 fi
   26159 
   26160 if test "$ol_enable_meta" != no ; then
   26161 	BUILD_SLAPD=yes
   26162 	BUILD_META=$ol_enable_meta
   26163 	if test "$ol_enable_meta" = mod ; then
   26164 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
   26165 		MFLAG=SLAPD_MOD_DYNAMIC
   26166 	else
   26167 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
   26168 		MFLAG=SLAPD_MOD_STATIC
   26169 	fi
   26170 
   26171 printf "%s\n" "#define SLAPD_META $MFLAG" >>confdefs.h
   26172 
   26173 fi
   26174 
   26175 if test "$ol_enable_asyncmeta" != no ; then
   26176 	BUILD_SLAPD=yes
   26177 	BUILD_ASYNCMETA=$ol_enable_asyncmeta
   26178 	if test "$ol_enable_asyncmeta" = mod ; then
   26179 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-asyncmeta"
   26180 		MFLAG=SLAPD_MOD_DYNAMIC
   26181 	else
   26182 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-asyncmeta"
   26183 		MFLAG=SLAPD_MOD_STATIC
   26184 	fi
   26185 
   26186 printf "%s\n" "#define SLAPD_ASYNCMETA $MFLAG" >>confdefs.h
   26187 
   26188 fi
   26189 
   26190 if test "$ol_enable_null" != no ; then
   26191 	BUILD_SLAPD=yes
   26192 	BUILD_NULL=$ol_enable_null
   26193 	if test "$ol_enable_null" = mod ; then
   26194 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
   26195 		MFLAG=SLAPD_MOD_DYNAMIC
   26196 	else
   26197 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
   26198 		MFLAG=SLAPD_MOD_STATIC
   26199 	fi
   26200 
   26201 printf "%s\n" "#define SLAPD_NULL $MFLAG" >>confdefs.h
   26202 
   26203 fi
   26204 
   26205 if test "$ol_enable_passwd" != no ; then
   26206 	BUILD_SLAPD=yes
   26207 	BUILD_PASSWD=$ol_enable_passwd
   26208 	if test "$ol_enable_passwd" = mod ; then
   26209 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
   26210 		MFLAG=SLAPD_MOD_DYNAMIC
   26211 	else
   26212 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
   26213 		MFLAG=SLAPD_MOD_STATIC
   26214 	fi
   26215 
   26216 printf "%s\n" "#define SLAPD_PASSWD $MFLAG" >>confdefs.h
   26217 
   26218 fi
   26219 
   26220 if test "$ol_link_perl" != no ; then
   26221 	BUILD_SLAPD=yes
   26222 	BUILD_PERL=$ol_enable_perl
   26223 	if test "$ol_enable_perl" = mod ; then
   26224 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
   26225 		MFLAG=SLAPD_MOD_DYNAMIC
   26226 	else
   26227 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
   26228 		MFLAG=SLAPD_MOD_STATIC
   26229 	fi
   26230 
   26231 printf "%s\n" "#define SLAPD_PERL $MFLAG" >>confdefs.h
   26232 
   26233 fi
   26234 
   26235 if test "$ol_enable_relay" != no ; then
   26236 	BUILD_SLAPD=yes
   26237 	BUILD_RELAY=$ol_enable_relay
   26238 	if test "$ol_enable_relay" = mod ; then
   26239 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
   26240 		MFLAG=SLAPD_MOD_DYNAMIC
   26241 	else
   26242 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
   26243 		MFLAG=SLAPD_MOD_STATIC
   26244 	fi
   26245 
   26246 printf "%s\n" "#define SLAPD_RELAY $MFLAG" >>confdefs.h
   26247 
   26248 fi
   26249 
   26250 if test "$ol_enable_sock" != no ; then
   26251 	BUILD_SLAPD=yes
   26252 	BUILD_SOCK=$ol_enable_sock
   26253 	if test "$ol_enable_sock" = mod ; then
   26254 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
   26255 		MFLAG=SLAPD_MOD_DYNAMIC
   26256 	else
   26257 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
   26258 		MFLAG=SLAPD_MOD_STATIC
   26259 	fi
   26260 
   26261 printf "%s\n" "#define SLAPD_SOCK $MFLAG" >>confdefs.h
   26262 
   26263 fi
   26264 
   26265 if test "$ol_link_sql" != no ; then
   26266 	BUILD_SLAPD=yes
   26267 	BUILD_SQL=$ol_enable_sql
   26268 	if test "$ol_enable_sql" = mod; then
   26269 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
   26270 		MFLAG=SLAPD_MOD_DYNAMIC
   26271 	else
   26272 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
   26273 		MFLAG=SLAPD_MOD_STATIC
   26274 	fi
   26275 
   26276 printf "%s\n" "#define SLAPD_SQL $MFLAG" >>confdefs.h
   26277 
   26278 fi
   26279 
   26280 if test "$ol_link_wt" != no ; then
   26281 	BUILD_SLAPD=yes
   26282 	BUILD_WT=$ol_enable_wt
   26283 	if test "$ol_enable_wt" = mod; then
   26284 		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-wt"
   26285 		MFLAG=SLAPD_MOD_DYNAMIC
   26286 	else
   26287 		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-wt"
   26288 		MFLAG=SLAPD_MOD_STATIC
   26289 	fi
   26290 
   26291 printf "%s\n" "#define SLAPD_WT $MFLAG" >>confdefs.h
   26292 
   26293 fi
   26294 
   26295 if test "$ol_enable_accesslog" != no ; then
   26296 	BUILD_ACCESSLOG=$ol_enable_accesslog
   26297 	if test "$ol_enable_accesslog" = mod ; then
   26298 		MFLAG=SLAPD_MOD_DYNAMIC
   26299 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
   26300 	else
   26301 		MFLAG=SLAPD_MOD_STATIC
   26302 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
   26303 	fi
   26304 
   26305 printf "%s\n" "#define SLAPD_OVER_ACCESSLOG $MFLAG" >>confdefs.h
   26306 
   26307 fi
   26308 
   26309 if test "$ol_enable_auditlog" != no ; then
   26310 	BUILD_AUDITLOG=$ol_enable_auditlog
   26311 	if test "$ol_enable_auditlog" = mod ; then
   26312 		MFLAG=SLAPD_MOD_DYNAMIC
   26313 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
   26314 	else
   26315 		MFLAG=SLAPD_MOD_STATIC
   26316 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
   26317 	fi
   26318 
   26319 printf "%s\n" "#define SLAPD_OVER_AUDITLOG $MFLAG" >>confdefs.h
   26320 
   26321 fi
   26322 
   26323 if test "$ol_enable_autoca" != no ; then
   26324 	if test $ol_with_tls != openssl ; then
   26325 		as_fn_error $? "--enable-autoca=$ol_enable_autoca requires --with-tls=openssl" "$LINENO" 5
   26326 	fi
   26327 
   26328 	BUILD_AUTOCA=$ol_enable_autoca
   26329 	if test "$ol_enable_autoca" = mod ; then
   26330 		MFLAG=SLAPD_MOD_DYNAMIC
   26331 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS autoca.la"
   26332 	else
   26333 		MFLAG=SLAPD_MOD_STATIC
   26334 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS autoca.o"
   26335 	fi
   26336 
   26337 printf "%s\n" "#define SLAPD_OVER_AUTOCA $MFLAG" >>confdefs.h
   26338 
   26339 fi
   26340 
   26341 if test "$ol_enable_collect" != no ; then
   26342         BUILD_COLLECT=$ol_enable_collect
   26343         if test "$ol_enable_collect" = mod ; then
   26344                 MFLAG=SLAPD_MOD_DYNAMIC
   26345                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
   26346         else
   26347                 MFLAG=SLAPD_MOD_STATIC
   26348                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
   26349         fi
   26350 
   26351 printf "%s\n" "#define SLAPD_OVER_COLLECT $MFLAG" >>confdefs.h
   26352 
   26353 fi
   26354 
   26355 if test "$ol_enable_constraint" != no ; then
   26356 	BUILD_CONSTRAINT=$ol_enable_constraint
   26357 	if test "$ol_enable_constraint" = mod ; then
   26358 		MFLAG=SLAPD_MOD_DYNAMIC
   26359 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
   26360 	else
   26361 		MFLAG=SLAPD_MOD_STATIC
   26362 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
   26363 	fi
   26364 
   26365 printf "%s\n" "#define SLAPD_OVER_CONSTRAINT $MFLAG" >>confdefs.h
   26366 
   26367 fi
   26368 
   26369 if test "$ol_enable_dds" != no ; then
   26370 	BUILD_DDS=$ol_enable_dds
   26371 	if test "$ol_enable_dds" = mod ; then
   26372 		MFLAG=SLAPD_MOD_DYNAMIC
   26373 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
   26374 	else
   26375 		MFLAG=SLAPD_MOD_STATIC
   26376 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
   26377 	fi
   26378 
   26379 printf "%s\n" "#define SLAPD_OVER_DDS $MFLAG" >>confdefs.h
   26380 
   26381 fi
   26382 
   26383 if test "$ol_enable_deref" != no ; then
   26384 	BUILD_DEREF=$ol_enable_deref
   26385 	if test "$ol_enable_deref" = mod ; then
   26386 		MFLAG=SLAPD_MOD_DYNAMIC
   26387 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
   26388 	else
   26389 		MFLAG=SLAPD_MOD_STATIC
   26390 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
   26391 	fi
   26392 
   26393 printf "%s\n" "#define SLAPD_OVER_DEREF $MFLAG" >>confdefs.h
   26394 
   26395 fi
   26396 
   26397 if test "$ol_enable_dyngroup" != no ; then
   26398 	BUILD_DYNGROUP=$ol_enable_dyngroup
   26399 	if test "$ol_enable_dyngroup" = mod ; then
   26400 		MFLAG=SLAPD_MOD_DYNAMIC
   26401 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
   26402 	else
   26403 		MFLAG=SLAPD_MOD_STATIC
   26404 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
   26405 	fi
   26406 
   26407 printf "%s\n" "#define SLAPD_OVER_DYNGROUP $MFLAG" >>confdefs.h
   26408 
   26409 fi
   26410 
   26411 if test "$ol_enable_dynlist" != no ; then
   26412 	BUILD_DYNLIST=$ol_enable_dynlist
   26413 	if test "$ol_enable_dynlist" = mod ; then
   26414 		MFLAG=SLAPD_MOD_DYNAMIC
   26415 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
   26416 	else
   26417 		MFLAG=SLAPD_MOD_STATIC
   26418 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
   26419 	fi
   26420 
   26421 printf "%s\n" "#define SLAPD_OVER_DYNLIST $MFLAG" >>confdefs.h
   26422 
   26423 fi
   26424 
   26425 if test "$ol_enable_homedir" != no ; then
   26426 	BUILD_HOMEDIR=$ol_enable_homedir
   26427 	if test "$ol_enable_homedir" = mod ; then
   26428 		MFLAG=SLAPD_MOD_DYNAMIC
   26429 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS homedir.la"
   26430 	else
   26431 		MFLAG=SLAPD_MOD_STATIC
   26432 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS homedir.o"
   26433 	fi
   26434 
   26435 printf "%s\n" "#define SLAPD_OVER_HOMEDIR $MFLAG" >>confdefs.h
   26436 
   26437 fi
   26438 
   26439 if test "$ol_enable_memberof" != no ; then
   26440 	BUILD_MEMBEROF=$ol_enable_memberof
   26441 	if test "$ol_enable_memberof" = mod ; then
   26442 		MFLAG=SLAPD_MOD_DYNAMIC
   26443 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
   26444 	else
   26445 		MFLAG=SLAPD_MOD_STATIC
   26446 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
   26447 	fi
   26448 
   26449 printf "%s\n" "#define SLAPD_OVER_MEMBEROF $MFLAG" >>confdefs.h
   26450 
   26451 fi
   26452 
   26453 if test "$ol_enable_nestgroup" != no ; then
   26454 	BUILD_NESTGROUP=$ol_enable_nestgroup
   26455 	if test "$ol_enable_nestgroup" = mod ; then
   26456 		MFLAG=SLAPD_MOD_DYNAMIC
   26457 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS nestgroup.la"
   26458 	else
   26459 		MFLAG=SLAPD_MOD_STATIC
   26460 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS nestgroup.o"
   26461 	fi
   26462 
   26463 printf "%s\n" "#define SLAPD_OVER_NESTGROUP $MFLAG" >>confdefs.h
   26464 
   26465 fi
   26466 
   26467 if test "$ol_enable_otp" != no ; then
   26468 	if test $ol_with_tls = no ; then
   26469 		as_fn_error $? "--enable-otp=$ol_enable_otp requires --with-tls" "$LINENO" 5
   26470 	fi
   26471 
   26472 	BUILD_OTP=$ol_enable_otp
   26473 	if test "$ol_enable_otp" = mod ; then
   26474 		MFLAG=SLAPD_MOD_DYNAMIC
   26475 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS otp.la"
   26476 	else
   26477 		MFLAG=SLAPD_MOD_STATIC
   26478 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS otp.o"
   26479 	fi
   26480 
   26481 printf "%s\n" "#define SLAPD_OVER_OTP $MFLAG" >>confdefs.h
   26482 
   26483 fi
   26484 
   26485 if test "$ol_enable_ppolicy" != no ; then
   26486 	BUILD_PPOLICY=$ol_enable_ppolicy
   26487 	if test "$ol_enable_ppolicy" = mod ; then
   26488 		MFLAG=SLAPD_MOD_DYNAMIC
   26489 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
   26490 	else
   26491 		MFLAG=SLAPD_MOD_STATIC
   26492 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
   26493 	fi
   26494 
   26495 printf "%s\n" "#define SLAPD_OVER_PPOLICY $MFLAG" >>confdefs.h
   26496 
   26497 fi
   26498 
   26499 if test "$ol_enable_proxycache" != no ; then
   26500 	BUILD_PROXYCACHE=$ol_enable_proxycache
   26501 	if test "$ol_enable_proxycache" = mod ; then
   26502 		MFLAG=SLAPD_MOD_DYNAMIC
   26503 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
   26504 	else
   26505 		MFLAG=SLAPD_MOD_STATIC
   26506 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
   26507 	fi
   26508 
   26509 printf "%s\n" "#define SLAPD_OVER_PROXYCACHE $MFLAG" >>confdefs.h
   26510 
   26511 fi
   26512 
   26513 if test "$ol_enable_refint" != no ; then
   26514 	BUILD_REFINT=$ol_enable_refint
   26515 	if test "$ol_enable_refint" = mod ; then
   26516 		MFLAG=SLAPD_MOD_DYNAMIC
   26517 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
   26518 	else
   26519 		MFLAG=SLAPD_MOD_STATIC
   26520 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
   26521 	fi
   26522 
   26523 printf "%s\n" "#define SLAPD_OVER_REFINT $MFLAG" >>confdefs.h
   26524 
   26525 fi
   26526 
   26527 if test "$ol_enable_remoteauth" != no ; then
   26528 	BUILD_REMOTEAUTH=$ol_enable_remoteauth
   26529 	if test "$ol_enable_remoteauth" = mod ; then
   26530 		MFLAG=SLAPD_MOD_DYNAMIC
   26531 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS remoteauth.la"
   26532 	else
   26533 		MFLAG=SLAPD_MOD_STATIC
   26534 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS remoteauth.o"
   26535 	fi
   26536 
   26537 printf "%s\n" "#define SLAPD_OVER_REMOTEAUTH $MFLAG" >>confdefs.h
   26538 
   26539 fi
   26540 
   26541 if test "$ol_enable_retcode" != no ; then
   26542 	BUILD_RETCODE=$ol_enable_retcode
   26543 	if test "$ol_enable_retcode" = mod ; then
   26544 		MFLAG=SLAPD_MOD_DYNAMIC
   26545 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
   26546 	else
   26547 		MFLAG=SLAPD_MOD_STATIC
   26548 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
   26549 	fi
   26550 
   26551 printf "%s\n" "#define SLAPD_OVER_RETCODE $MFLAG" >>confdefs.h
   26552 
   26553 fi
   26554 
   26555 if test "$ol_enable_rwm" != no ; then
   26556 	BUILD_RWM=$ol_enable_rwm
   26557 	if test "$ol_enable_rwm" = mod ; then
   26558 		MFLAG=SLAPD_MOD_DYNAMIC
   26559 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
   26560 	else
   26561 		MFLAG=SLAPD_MOD_STATIC
   26562 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
   26563 	fi
   26564 
   26565 printf "%s\n" "#define SLAPD_OVER_RWM $MFLAG" >>confdefs.h
   26566 
   26567 fi
   26568 
   26569 if test "$ol_enable_seqmod" != no ; then
   26570 	BUILD_SEQMOD=$ol_enable_seqmod
   26571 	if test "$ol_enable_seqmod" = mod ; then
   26572 		MFLAG=SLAPD_MOD_DYNAMIC
   26573 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
   26574 	else
   26575 		MFLAG=SLAPD_MOD_STATIC
   26576 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
   26577 	fi
   26578 
   26579 printf "%s\n" "#define SLAPD_OVER_SEQMOD $MFLAG" >>confdefs.h
   26580 
   26581 fi
   26582 
   26583 if test "$ol_enable_sssvlv" != no ; then
   26584 	BUILD_SSSVLV=$ol_enable_sssvlv
   26585 	if test "$ol_enable_sssvlv" = mod ; then
   26586 		MFLAG=SLAPD_MOD_DYNAMIC
   26587 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
   26588 	else
   26589 		MFLAG=SLAPD_MOD_STATIC
   26590 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
   26591 	fi
   26592 
   26593 printf "%s\n" "#define SLAPD_OVER_SSSVLV $MFLAG" >>confdefs.h
   26594 
   26595 fi
   26596 
   26597 if test "$ol_enable_syncprov" != no ; then
   26598 	BUILD_SYNCPROV=$ol_enable_syncprov
   26599 	if test "$ol_enable_syncprov" = mod ; then
   26600 		MFLAG=SLAPD_MOD_DYNAMIC
   26601 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
   26602 	else
   26603 		MFLAG=SLAPD_MOD_STATIC
   26604 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
   26605 	fi
   26606 
   26607 printf "%s\n" "#define SLAPD_OVER_SYNCPROV $MFLAG" >>confdefs.h
   26608 
   26609 fi
   26610 
   26611 if test "$ol_enable_translucent" != no ; then
   26612 	BUILD_TRANSLUCENT=$ol_enable_translucent
   26613 	if test "$ol_enable_translucent" = mod ; then
   26614 		MFLAG=SLAPD_MOD_DYNAMIC
   26615 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
   26616 	else
   26617 		MFLAG=SLAPD_MOD_STATIC
   26618 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
   26619 	fi
   26620 
   26621 printf "%s\n" "#define SLAPD_OVER_TRANSLUCENT $MFLAG" >>confdefs.h
   26622 
   26623 fi
   26624 
   26625 if test "$ol_enable_unique" != no ; then
   26626 	BUILD_UNIQUE=$ol_enable_unique
   26627 	if test "$ol_enable_unique" = mod ; then
   26628 		MFLAG=SLAPD_MOD_DYNAMIC
   26629 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
   26630 	else
   26631 		MFLAG=SLAPD_MOD_STATIC
   26632 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
   26633 	fi
   26634 
   26635 printf "%s\n" "#define SLAPD_OVER_UNIQUE $MFLAG" >>confdefs.h
   26636 
   26637 fi
   26638 
   26639 if test "$ol_enable_valsort" != no ; then
   26640 	BUILD_VALSORT=$ol_enable_valsort
   26641 	if test "$ol_enable_valsort" = mod ; then
   26642 		MFLAG=SLAPD_MOD_DYNAMIC
   26643 		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
   26644 	else
   26645 		MFLAG=SLAPD_MOD_STATIC
   26646 		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
   26647 	fi
   26648 
   26649 printf "%s\n" "#define SLAPD_OVER_VALSORT $MFLAG" >>confdefs.h
   26650 
   26651 fi
   26652 
   26653 ol_link_argon2=no
   26654 if test "$ol_enable_argon2" = "yes" ; then
   26655 	if test $ol_with_argon2 = libargon2 || test $ol_with_argon2 = auto; then
   26656 		ac_fn_c_check_header_compile "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
   26657 if test "x$ac_cv_header_argon2_h" = xyes
   26658 then :
   26659   printf "%s\n" "#define HAVE_ARGON2_H 1" >>confdefs.h
   26660 
   26661 fi
   26662 
   26663 		if test $ac_cv_header_argon2_h = yes ; then
   26664 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for argon2i_hash_encoded in -largon2" >&5
   26665 printf %s "checking for argon2i_hash_encoded in -largon2... " >&6; }
   26666 if test ${ac_cv_lib_argon2_argon2i_hash_encoded+y}
   26667 then :
   26668   printf %s "(cached) " >&6
   26669 else $as_nop
   26670   ac_check_lib_save_LIBS=$LIBS
   26671 LIBS="-largon2 -largon2 $LIBS"
   26672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26673 /* end confdefs.h.  */
   26674 
   26675 /* Override any GCC internal prototype to avoid an error.
   26676    Use char because int might match the return type of a GCC
   26677    builtin and then its argument prototype would still apply.  */
   26678 char argon2i_hash_encoded ();
   26679 int
   26680 main (void)
   26681 {
   26682 return argon2i_hash_encoded ();
   26683   ;
   26684   return 0;
   26685 }
   26686 _ACEOF
   26687 if ac_fn_c_try_link "$LINENO"
   26688 then :
   26689   ac_cv_lib_argon2_argon2i_hash_encoded=yes
   26690 else $as_nop
   26691   ac_cv_lib_argon2_argon2i_hash_encoded=no
   26692 fi
   26693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   26694     conftest$ac_exeext conftest.$ac_ext
   26695 LIBS=$ac_check_lib_save_LIBS
   26696 fi
   26697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argon2_argon2i_hash_encoded" >&5
   26698 printf "%s\n" "$ac_cv_lib_argon2_argon2i_hash_encoded" >&6; }
   26699 if test "x$ac_cv_lib_argon2_argon2i_hash_encoded" = xyes
   26700 then :
   26701   have_argon2=yes
   26702 else $as_nop
   26703   have_argon2=no
   26704 fi
   26705 
   26706 		fi
   26707 		if test "$have_argon2" = "yes" ; then
   26708 			ol_with_argon2=libargon2
   26709 			ol_link_argon2=yes
   26710 
   26711 printf "%s\n" "#define HAVE_LIBARGON2 1" >>confdefs.h
   26712 
   26713 			ARGON2_LIBS="-largon2"
   26714 		fi
   26715 	fi
   26716 	if test $ol_with_argon2 = libsodium || test $ol_with_argon2 = auto; then
   26717 		ac_fn_c_check_header_compile "$LINENO" "sodium.h" "ac_cv_header_sodium_h" "$ac_includes_default"
   26718 if test "x$ac_cv_header_sodium_h" = xyes
   26719 then :
   26720   printf "%s\n" "#define HAVE_SODIUM_H 1" >>confdefs.h
   26721 
   26722 fi
   26723 
   26724 		if test $ac_cv_header_sodium_h = yes ; then
   26725 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto_pwhash_str_alg in -lsodium" >&5
   26726 printf %s "checking for crypto_pwhash_str_alg in -lsodium... " >&6; }
   26727 if test ${ac_cv_lib_sodium_crypto_pwhash_str_alg+y}
   26728 then :
   26729   printf %s "(cached) " >&6
   26730 else $as_nop
   26731   ac_check_lib_save_LIBS=$LIBS
   26732 LIBS="-lsodium -lsodium $LIBS"
   26733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26734 /* end confdefs.h.  */
   26735 
   26736 /* Override any GCC internal prototype to avoid an error.
   26737    Use char because int might match the return type of a GCC
   26738    builtin and then its argument prototype would still apply.  */
   26739 char crypto_pwhash_str_alg ();
   26740 int
   26741 main (void)
   26742 {
   26743 return crypto_pwhash_str_alg ();
   26744   ;
   26745   return 0;
   26746 }
   26747 _ACEOF
   26748 if ac_fn_c_try_link "$LINENO"
   26749 then :
   26750   ac_cv_lib_sodium_crypto_pwhash_str_alg=yes
   26751 else $as_nop
   26752   ac_cv_lib_sodium_crypto_pwhash_str_alg=no
   26753 fi
   26754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   26755     conftest$ac_exeext conftest.$ac_ext
   26756 LIBS=$ac_check_lib_save_LIBS
   26757 fi
   26758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sodium_crypto_pwhash_str_alg" >&5
   26759 printf "%s\n" "$ac_cv_lib_sodium_crypto_pwhash_str_alg" >&6; }
   26760 if test "x$ac_cv_lib_sodium_crypto_pwhash_str_alg" = xyes
   26761 then :
   26762   have_argon2=yes
   26763 else $as_nop
   26764   have_argon2=no
   26765 fi
   26766 
   26767 		fi
   26768 		if test "$have_argon2" = "yes" ; then
   26769 			ol_with_argon2=libsodium
   26770 			ol_link_argon2=yes
   26771 
   26772 printf "%s\n" "#define HAVE_LIBSODIUM 1" >>confdefs.h
   26773 
   26774 			ARGON2_LIBS="-lsodium"
   26775 		fi
   26776 	fi
   26777 
   26778 	if test "$ol_link_argon2" = no ; then
   26779 		as_fn_error $? "--enable_argon2=$ol_enable_argon2 requires --with-argon2" "$LINENO" 5
   26780 	fi
   26781 
   26782 	BUILD_PW_ARGON2=$ol_enable_argon2
   26783 	if test "$ol_enable_argon2" = "yes" ; then
   26784 		SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWMODS argon2.la"
   26785 	fi
   26786 
   26787 printf "%s\n" "#define SLAPD_PWMOD_PW_ARGON2 $SLAPD_MOD_DYNAMIC" >>confdefs.h
   26788 
   26789 fi
   26790 
   26791 if test "$ol_enable_balancer" != no \
   26792 		-a "$ol_with_threads" != no \
   26793 		-a "$have_libevent" = yes ; then
   26794 	if test "$ol_enable_balancer" = mod; then
   26795 		BUILD_BALANCER=mod
   26796 		BALANCER_MAKE="servers/lloadd/Makefile_module.in:build/mod.mk"
   26797 	else
   26798 		BUILD_BALANCER=yes
   26799 		BALANCER_MAKE="servers/lloadd/Makefile_server.in:build/srv.mk"
   26800 	fi
   26801 fi
   26802 
   26803 if test "$ol_enable_slapi" != no ; then
   26804 
   26805 printf "%s\n" "#define ENABLE_SLAPI 1" >>confdefs.h
   26806 
   26807 	BUILD_SLAPI=yes
   26808 	SLAPD_SLAPI_DEPEND=libslapi.a
   26809 fi
   26810 
   26811 OL_VERSIONED_SYMBOLS=""
   26812 DO_VERSIONED_SYMBOLS="# "
   26813 if test $ol_enable_versioning != no; then
   26814 	LDVS=`$LD --help < /dev/null 2>/dev/null | grep gnu-version-script`
   26815 	if test -z "$LDVS"; then
   26816 		LDVS=`$LD --help < /dev/null 2>/dev/null | grep version-script`
   26817 		if test -z "$LDVS"; then
   26818 			if test $ol_enable_versioning = "yes" ; then
   26819 				as_fn_error $? "Library symbol versioning requested but not supported" "$LINENO" 5
   26820 			fi
   26821 		else
   26822 			OL_VERSIONED_SYMBOLS="-Wl,--version-script="
   26823 		fi
   26824 	else
   26825 		OL_VERSIONED_SYMBOLS="-z gnu-version-script="
   26826 	fi
   26827 	if test -n "$OL_VERSIONED_SYMBOLS"; then
   26828 		DO_VERSIONED_SYMBOLS=""
   26829 	fi
   26830 fi
   26831 
   26832 
   26833 
   26834 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
   26835 	PLAT=NT
   26836 	SLAPD_MODULES_LDFLAGS=
   26837 else
   26838 	PLAT=UNIX
   26839 fi
   26840 
   26841 
   26842 
   26843 
   26844 
   26845 
   26846 
   26847 
   26848 
   26849 
   26850 
   26851 
   26852 
   26853 
   26854 
   26855 
   26856 
   26857 
   26858 
   26859 
   26860 
   26861 
   26862 
   26863 
   26864 
   26865 
   26866 
   26867 
   26868 
   26869 
   26870 
   26871 
   26872 
   26873 
   26874 
   26875 
   26876 
   26877 
   26878 
   26879 
   26880 
   26881 
   26882 
   26883 
   26884 
   26885 
   26886 
   26887 
   26888 
   26889 
   26890 
   26891 
   26892 
   26893 
   26894 
   26895 
   26896 
   26897 
   26898 
   26899 
   26900 
   26901 
   26902 
   26903 
   26904 
   26905 
   26906 
   26907 
   26908 
   26909 
   26910 
   26911 
   26912 
   26913 
   26914 
   26915 
   26916 
   26917 
   26918 
   26919 
   26920 
   26921 
   26922 
   26923 
   26924 
   26925 
   26926 
   26927 
   26928 
   26929 
   26930 
   26931 
   26932 
   26933 
   26934 
   26935 
   26936 
   26937 
   26938 
   26939 
   26940 
   26941 
   26942 
   26943 
   26944 # Check whether --with-xxinstall was given.
   26945 if test ${with_xxinstall+y}
   26946 then :
   26947   withval=$with_xxinstall;
   26948 fi
   26949 
   26950 
   26951 
   26952 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblber/lber.pc libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/ldap.pc libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slapd/pwmods/Makefile:build/top.mk:servers/slapd/pwmods/Makefile.in:build/lib.mk servers/lloadd/Makefile:build/top.mk:servers/lloadd/Makefile.in:$BALANCER_MAKE tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
   26953 
   26954 
   26955 ac_config_commands="$ac_config_commands default"
   26956 
   26957 
   26958 
   26959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   26960 # Let make expand exec_prefix.
   26961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   26962 
   26963 DEFS=-DHAVE_CONFIG_H
   26964 
   26965 ac_libobjs=
   26966 ac_ltlibobjs=
   26967 U=
   26968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   26969   # 1. Remove the extension, and $U if already installed.
   26970   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   26971   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   26972   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   26973   #    will be set to the directory where LIBOBJS objects are built.
   26974   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   26975   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   26976 done
   26977 LIBOBJS=$ac_libobjs
   26978 
   26979 LTLIBOBJS=$ac_ltlibobjs
   26980 
   26981 
   26982 
   26983 
   26984 : "${CONFIG_STATUS=./config.status}"
   26985 ac_write_fail=0
   26986 ac_clean_files_save=$ac_clean_files
   26987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   26988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   26989 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   26990 as_write_fail=0
   26991 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   26992 #! $SHELL
   26993 # Generated by $as_me.
   26994 # Run this file to recreate the current configuration.
   26995 # Compiler output produced by configure, useful for debugging
   26996 # configure, is in config.log if it exists.
   26997 
   26998 debug=false
   26999 ac_cs_recheck=false
   27000 ac_cs_silent=false
   27001 
   27002 SHELL=\${CONFIG_SHELL-$SHELL}
   27003 export SHELL
   27004 _ASEOF
   27005 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   27006 ## -------------------- ##
   27007 ## M4sh Initialization. ##
   27008 ## -------------------- ##
   27009 
   27010 # Be more Bourne compatible
   27011 DUALCASE=1; export DUALCASE # for MKS sh
   27012 as_nop=:
   27013 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   27014 then :
   27015   emulate sh
   27016   NULLCMD=:
   27017   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   27018   # is contrary to our usage.  Disable this feature.
   27019   alias -g '${1+"$@"}'='"$@"'
   27020   setopt NO_GLOB_SUBST
   27021 else $as_nop
   27022   case `(set -o) 2>/dev/null` in #(
   27023   *posix*) :
   27024     set -o posix ;; #(
   27025   *) :
   27026      ;;
   27027 esac
   27028 fi
   27029 
   27030 
   27031 
   27032 # Reset variables that may have inherited troublesome values from
   27033 # the environment.
   27034 
   27035 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   27036 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   27037 # side effect of setting IFS to empty, thus disabling word splitting.)
   27038 # Quoting is to prevent editors from complaining about space-tab.
   27039 as_nl='
   27040 '
   27041 export as_nl
   27042 IFS=" ""	$as_nl"
   27043 
   27044 PS1='$ '
   27045 PS2='> '
   27046 PS4='+ '
   27047 
   27048 # Ensure predictable behavior from utilities with locale-dependent output.
   27049 LC_ALL=C
   27050 export LC_ALL
   27051 LANGUAGE=C
   27052 export LANGUAGE
   27053 
   27054 # We cannot yet rely on "unset" to work, but we need these variables
   27055 # to be unset--not just set to an empty or harmless value--now, to
   27056 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   27057 # also avoids known problems related to "unset" and subshell syntax
   27058 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   27059 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   27060 do eval test \${$as_var+y} \
   27061   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   27062 done
   27063 
   27064 # Ensure that fds 0, 1, and 2 are open.
   27065 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   27066 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   27067 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   27068 
   27069 # The user is always right.
   27070 if ${PATH_SEPARATOR+false} :; then
   27071   PATH_SEPARATOR=:
   27072   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   27073     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   27074       PATH_SEPARATOR=';'
   27075   }
   27076 fi
   27077 
   27078 
   27079 # Find who we are.  Look in the path if we contain no directory separator.
   27080 as_myself=
   27081 case $0 in #((
   27082   *[\\/]* ) as_myself=$0 ;;
   27083   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   27084 for as_dir in $PATH
   27085 do
   27086   IFS=$as_save_IFS
   27087   case $as_dir in #(((
   27088     '') as_dir=./ ;;
   27089     */) ;;
   27090     *) as_dir=$as_dir/ ;;
   27091   esac
   27092     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   27093   done
   27094 IFS=$as_save_IFS
   27095 
   27096      ;;
   27097 esac
   27098 # We did not find ourselves, most probably we were run as `sh COMMAND'
   27099 # in which case we are not to be found in the path.
   27100 if test "x$as_myself" = x; then
   27101   as_myself=$0
   27102 fi
   27103 if test ! -f "$as_myself"; then
   27104   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   27105   exit 1
   27106 fi
   27107 
   27108 
   27109 
   27110 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   27111 # ----------------------------------------
   27112 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   27113 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   27114 # script with STATUS, using 1 if that was 0.
   27115 as_fn_error ()
   27116 {
   27117   as_status=$1; test $as_status -eq 0 && as_status=1
   27118   if test "$4"; then
   27119     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   27120     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   27121   fi
   27122   printf "%s\n" "$as_me: error: $2" >&2
   27123   as_fn_exit $as_status
   27124 } # as_fn_error
   27125 
   27126 
   27127 
   27128 # as_fn_set_status STATUS
   27129 # -----------------------
   27130 # Set $? to STATUS, without forking.
   27131 as_fn_set_status ()
   27132 {
   27133   return $1
   27134 } # as_fn_set_status
   27135 
   27136 # as_fn_exit STATUS
   27137 # -----------------
   27138 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   27139 as_fn_exit ()
   27140 {
   27141   set +e
   27142   as_fn_set_status $1
   27143   exit $1
   27144 } # as_fn_exit
   27145 
   27146 # as_fn_unset VAR
   27147 # ---------------
   27148 # Portably unset VAR.
   27149 as_fn_unset ()
   27150 {
   27151   { eval $1=; unset $1;}
   27152 }
   27153 as_unset=as_fn_unset
   27154 
   27155 # as_fn_append VAR VALUE
   27156 # ----------------------
   27157 # Append the text in VALUE to the end of the definition contained in VAR. Take
   27158 # advantage of any shell optimizations that allow amortized linear growth over
   27159 # repeated appends, instead of the typical quadratic growth present in naive
   27160 # implementations.
   27161 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   27162 then :
   27163   eval 'as_fn_append ()
   27164   {
   27165     eval $1+=\$2
   27166   }'
   27167 else $as_nop
   27168   as_fn_append ()
   27169   {
   27170     eval $1=\$$1\$2
   27171   }
   27172 fi # as_fn_append
   27173 
   27174 # as_fn_arith ARG...
   27175 # ------------------
   27176 # Perform arithmetic evaluation on the ARGs, and store the result in the
   27177 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   27178 # must be portable across $(()) and expr.
   27179 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   27180 then :
   27181   eval 'as_fn_arith ()
   27182   {
   27183     as_val=$(( $* ))
   27184   }'
   27185 else $as_nop
   27186   as_fn_arith ()
   27187   {
   27188     as_val=`expr "$@" || test $? -eq 1`
   27189   }
   27190 fi # as_fn_arith
   27191 
   27192 
   27193 if expr a : '\(a\)' >/dev/null 2>&1 &&
   27194    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   27195   as_expr=expr
   27196 else
   27197   as_expr=false
   27198 fi
   27199 
   27200 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   27201   as_basename=basename
   27202 else
   27203   as_basename=false
   27204 fi
   27205 
   27206 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   27207   as_dirname=dirname
   27208 else
   27209   as_dirname=false
   27210 fi
   27211 
   27212 as_me=`$as_basename -- "$0" ||
   27213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   27214 	 X"$0" : 'X\(//\)$' \| \
   27215 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   27216 printf "%s\n" X/"$0" |
   27217     sed '/^.*\/\([^/][^/]*\)\/*$/{
   27218 	    s//\1/
   27219 	    q
   27220 	  }
   27221 	  /^X\/\(\/\/\)$/{
   27222 	    s//\1/
   27223 	    q
   27224 	  }
   27225 	  /^X\/\(\/\).*/{
   27226 	    s//\1/
   27227 	    q
   27228 	  }
   27229 	  s/.*/./; q'`
   27230 
   27231 # Avoid depending upon Character Ranges.
   27232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   27233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   27234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   27235 as_cr_digits='0123456789'
   27236 as_cr_alnum=$as_cr_Letters$as_cr_digits
   27237 
   27238 
   27239 # Determine whether it's possible to make 'echo' print without a newline.
   27240 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   27241 # for compatibility with existing Makefiles.
   27242 ECHO_C= ECHO_N= ECHO_T=
   27243 case `echo -n x` in #(((((
   27244 -n*)
   27245   case `echo 'xy\c'` in
   27246   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   27247   xy)  ECHO_C='\c';;
   27248   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   27249        ECHO_T='	';;
   27250   esac;;
   27251 *)
   27252   ECHO_N='-n';;
   27253 esac
   27254 
   27255 # For backward compatibility with old third-party macros, we provide
   27256 # the shell variables $as_echo and $as_echo_n.  New code should use
   27257 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   27258 as_echo='printf %s\n'
   27259 as_echo_n='printf %s'
   27260 
   27261 rm -f conf$$ conf$$.exe conf$$.file
   27262 if test -d conf$$.dir; then
   27263   rm -f conf$$.dir/conf$$.file
   27264 else
   27265   rm -f conf$$.dir
   27266   mkdir conf$$.dir 2>/dev/null
   27267 fi
   27268 if (echo >conf$$.file) 2>/dev/null; then
   27269   if ln -s conf$$.file conf$$ 2>/dev/null; then
   27270     as_ln_s='ln -s'
   27271     # ... but there are two gotchas:
   27272     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   27273     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   27274     # In both cases, we have to default to `cp -pR'.
   27275     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   27276       as_ln_s='cp -pR'
   27277   elif ln conf$$.file conf$$ 2>/dev/null; then
   27278     as_ln_s=ln
   27279   else
   27280     as_ln_s='cp -pR'
   27281   fi
   27282 else
   27283   as_ln_s='cp -pR'
   27284 fi
   27285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   27286 rmdir conf$$.dir 2>/dev/null
   27287 
   27288 
   27289 # as_fn_mkdir_p
   27290 # -------------
   27291 # Create "$as_dir" as a directory, including parents if necessary.
   27292 as_fn_mkdir_p ()
   27293 {
   27294 
   27295   case $as_dir in #(
   27296   -*) as_dir=./$as_dir;;
   27297   esac
   27298   test -d "$as_dir" || eval $as_mkdir_p || {
   27299     as_dirs=
   27300     while :; do
   27301       case $as_dir in #(
   27302       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   27303       *) as_qdir=$as_dir;;
   27304       esac
   27305       as_dirs="'$as_qdir' $as_dirs"
   27306       as_dir=`$as_dirname -- "$as_dir" ||
   27307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   27308 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   27309 	 X"$as_dir" : 'X\(//\)$' \| \
   27310 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   27311 printf "%s\n" X"$as_dir" |
   27312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   27313 	    s//\1/
   27314 	    q
   27315 	  }
   27316 	  /^X\(\/\/\)[^/].*/{
   27317 	    s//\1/
   27318 	    q
   27319 	  }
   27320 	  /^X\(\/\/\)$/{
   27321 	    s//\1/
   27322 	    q
   27323 	  }
   27324 	  /^X\(\/\).*/{
   27325 	    s//\1/
   27326 	    q
   27327 	  }
   27328 	  s/.*/./; q'`
   27329       test -d "$as_dir" && break
   27330     done
   27331     test -z "$as_dirs" || eval "mkdir $as_dirs"
   27332   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   27333 
   27334 
   27335 } # as_fn_mkdir_p
   27336 if mkdir -p . 2>/dev/null; then
   27337   as_mkdir_p='mkdir -p "$as_dir"'
   27338 else
   27339   test -d ./-p && rmdir ./-p
   27340   as_mkdir_p=false
   27341 fi
   27342 
   27343 
   27344 # as_fn_executable_p FILE
   27345 # -----------------------
   27346 # Test if FILE is an executable regular file.
   27347 as_fn_executable_p ()
   27348 {
   27349   test -f "$1" && test -x "$1"
   27350 } # as_fn_executable_p
   27351 as_test_x='test -x'
   27352 as_executable_p=as_fn_executable_p
   27353 
   27354 # Sed expression to map a string onto a valid CPP name.
   27355 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   27356 
   27357 # Sed expression to map a string onto a valid variable name.
   27358 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   27359 
   27360 
   27361 exec 6>&1
   27362 ## ----------------------------------- ##
   27363 ## Main body of $CONFIG_STATUS script. ##
   27364 ## ----------------------------------- ##
   27365 _ASEOF
   27366 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   27367 
   27368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27369 # Save the log message, to keep $0 and so on meaningful, and to
   27370 # report actual input values of CONFIG_FILES etc. instead of their
   27371 # values after options handling.
   27372 ac_log="
   27373 This file was extended by $as_me, which was
   27374 generated by GNU Autoconf 2.71.  Invocation command line was
   27375 
   27376   CONFIG_FILES    = $CONFIG_FILES
   27377   CONFIG_HEADERS  = $CONFIG_HEADERS
   27378   CONFIG_LINKS    = $CONFIG_LINKS
   27379   CONFIG_COMMANDS = $CONFIG_COMMANDS
   27380   $ $0 $@
   27381 
   27382 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   27383 "
   27384 
   27385 _ACEOF
   27386 
   27387 case $ac_config_files in *"
   27388 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   27389 esac
   27390 
   27391 case $ac_config_headers in *"
   27392 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   27393 esac
   27394 
   27395 
   27396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27397 # Files that config.status was made for.
   27398 config_files="$ac_config_files"
   27399 config_headers="$ac_config_headers"
   27400 config_commands="$ac_config_commands"
   27401 
   27402 _ACEOF
   27403 
   27404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27405 ac_cs_usage="\
   27406 \`$as_me' instantiates files and other configuration actions
   27407 from templates according to the current configuration.  Unless the files
   27408 and actions are specified as TAGs, all are instantiated by default.
   27409 
   27410 Usage: $0 [OPTION]... [TAG]...
   27411 
   27412   -h, --help       print this help, then exit
   27413   -V, --version    print version number and configuration settings, then exit
   27414       --config     print configuration, then exit
   27415   -q, --quiet, --silent
   27416                    do not print progress messages
   27417   -d, --debug      don't remove temporary files
   27418       --recheck    update $as_me by reconfiguring in the same conditions
   27419       --file=FILE[:TEMPLATE]
   27420                    instantiate the configuration file FILE
   27421       --header=FILE[:TEMPLATE]
   27422                    instantiate the configuration header FILE
   27423 
   27424 Configuration files:
   27425 $config_files
   27426 
   27427 Configuration headers:
   27428 $config_headers
   27429 
   27430 Configuration commands:
   27431 $config_commands
   27432 
   27433 Report bugs to the package provider."
   27434 
   27435 _ACEOF
   27436 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   27437 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   27438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27439 ac_cs_config='$ac_cs_config_escaped'
   27440 ac_cs_version="\\
   27441 config.status
   27442 configured by $0, generated by GNU Autoconf 2.71,
   27443   with options \\"\$ac_cs_config\\"
   27444 
   27445 Copyright (C) 2021 Free Software Foundation, Inc.
   27446 This config.status script is free software; the Free Software Foundation
   27447 gives unlimited permission to copy, distribute and modify it."
   27448 
   27449 ac_pwd='$ac_pwd'
   27450 srcdir='$srcdir'
   27451 AWK='$AWK'
   27452 test -n "\$AWK" || AWK=awk
   27453 _ACEOF
   27454 
   27455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27456 # The default lists apply if the user does not specify any file.
   27457 ac_need_defaults=:
   27458 while test $# != 0
   27459 do
   27460   case $1 in
   27461   --*=?*)
   27462     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   27463     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   27464     ac_shift=:
   27465     ;;
   27466   --*=)
   27467     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   27468     ac_optarg=
   27469     ac_shift=:
   27470     ;;
   27471   *)
   27472     ac_option=$1
   27473     ac_optarg=$2
   27474     ac_shift=shift
   27475     ;;
   27476   esac
   27477 
   27478   case $ac_option in
   27479   # Handling of the options.
   27480   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   27481     ac_cs_recheck=: ;;
   27482   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   27483     printf "%s\n" "$ac_cs_version"; exit ;;
   27484   --config | --confi | --conf | --con | --co | --c )
   27485     printf "%s\n" "$ac_cs_config"; exit ;;
   27486   --debug | --debu | --deb | --de | --d | -d )
   27487     debug=: ;;
   27488   --file | --fil | --fi | --f )
   27489     $ac_shift
   27490     case $ac_optarg in
   27491     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   27492     '') as_fn_error $? "missing file argument" ;;
   27493     esac
   27494     as_fn_append CONFIG_FILES " '$ac_optarg'"
   27495     ac_need_defaults=false;;
   27496   --header | --heade | --head | --hea )
   27497     $ac_shift
   27498     case $ac_optarg in
   27499     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   27500     esac
   27501     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   27502     ac_need_defaults=false;;
   27503   --he | --h)
   27504     # Conflict between --help and --header
   27505     as_fn_error $? "ambiguous option: \`$1'
   27506 Try \`$0 --help' for more information.";;
   27507   --help | --hel | -h )
   27508     printf "%s\n" "$ac_cs_usage"; exit ;;
   27509   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   27510   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   27511     ac_cs_silent=: ;;
   27512 
   27513   # This is an error.
   27514   -*) as_fn_error $? "unrecognized option: \`$1'
   27515 Try \`$0 --help' for more information." ;;
   27516 
   27517   *) as_fn_append ac_config_targets " $1"
   27518      ac_need_defaults=false ;;
   27519 
   27520   esac
   27521   shift
   27522 done
   27523 
   27524 ac_configure_extra_args=
   27525 
   27526 if $ac_cs_silent; then
   27527   exec 6>/dev/null
   27528   ac_configure_extra_args="$ac_configure_extra_args --silent"
   27529 fi
   27530 
   27531 _ACEOF
   27532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27533 if \$ac_cs_recheck; then
   27534   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   27535   shift
   27536   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   27537   CONFIG_SHELL='$SHELL'
   27538   export CONFIG_SHELL
   27539   exec "\$@"
   27540 fi
   27541 
   27542 _ACEOF
   27543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27544 exec 5>>config.log
   27545 {
   27546   echo
   27547   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   27548 ## Running $as_me. ##
   27549 _ASBOX
   27550   printf "%s\n" "$ac_log"
   27551 } >&5
   27552 
   27553 _ACEOF
   27554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27555 #
   27556 # INIT-COMMANDS
   27557 #
   27558 
   27559 
   27560 # The HP-UX ksh and POSIX shell print the target directory to stdout
   27561 # if CDPATH is set.
   27562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   27563 
   27564 sed_quote_subst='$sed_quote_subst'
   27565 double_quote_subst='$double_quote_subst'
   27566 delay_variable_subst='$delay_variable_subst'
   27567 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   27568 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   27569 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   27570 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   27571 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   27572 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   27573 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   27574 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   27575 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   27576 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   27577 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   27578 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   27579 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   27580 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   27581 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   27582 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   27583 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   27584 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   27585 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   27586 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   27587 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   27588 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   27589 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   27590 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   27591 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   27592 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   27593 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   27594 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   27595 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   27596 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   27597 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   27598 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   27599 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   27600 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   27601 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   27602 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   27603 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   27604 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   27605 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   27606 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   27607 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   27608 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   27609 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   27610 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   27611 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   27612 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   27613 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   27614 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   27615 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   27616 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   27617 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   27618 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   27619 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   27620 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   27621 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   27622 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   27623 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   27624 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   27625 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
   27626 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   27627 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   27628 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   27629 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   27630 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   27631 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   27632 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   27633 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   27634 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   27635 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   27636 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   27637 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   27638 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   27639 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   27640 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   27641 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   27642 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   27643 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   27644 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   27645 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   27646 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   27647 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   27648 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   27649 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   27650 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   27651 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   27652 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   27653 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   27654 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   27655 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   27656 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   27657 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   27658 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   27659 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   27660 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   27661 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   27662 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   27663 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   27664 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   27665 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   27666 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   27667 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   27668 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   27669 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   27670 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   27671 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   27672 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   27673 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   27674 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   27675 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   27676 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   27677 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   27678 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   27679 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   27680 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   27681 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   27682 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   27683 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   27684 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   27685 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   27686 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   27687 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   27688 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   27689 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   27690 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   27691 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   27692 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   27693 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   27694 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   27695 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   27696 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   27697 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   27698 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   27699 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   27700 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   27701 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   27702 
   27703 LTCC='$LTCC'
   27704 LTCFLAGS='$LTCFLAGS'
   27705 compiler='$compiler_DEFAULT'
   27706 
   27707 # A function that is used when there is no print builtin or printf.
   27708 func_fallback_echo ()
   27709 {
   27710   eval 'cat <<_LTECHO_EOF
   27711 \$1
   27712 _LTECHO_EOF'
   27713 }
   27714 
   27715 # Quote evaled strings.
   27716 for var in SHELL \
   27717 ECHO \
   27718 PATH_SEPARATOR \
   27719 SED \
   27720 GREP \
   27721 EGREP \
   27722 FGREP \
   27723 LD \
   27724 NM \
   27725 LN_S \
   27726 lt_SP2NL \
   27727 lt_NL2SP \
   27728 reload_flag \
   27729 OBJDUMP \
   27730 deplibs_check_method \
   27731 file_magic_cmd \
   27732 file_magic_glob \
   27733 want_nocaseglob \
   27734 DLLTOOL \
   27735 sharedlib_from_linklib_cmd \
   27736 AR \
   27737 AR_FLAGS \
   27738 archiver_list_spec \
   27739 STRIP \
   27740 RANLIB \
   27741 CC \
   27742 CFLAGS \
   27743 compiler \
   27744 lt_cv_sys_global_symbol_pipe \
   27745 lt_cv_sys_global_symbol_to_cdecl \
   27746 lt_cv_sys_global_symbol_to_import \
   27747 lt_cv_sys_global_symbol_to_c_name_address \
   27748 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   27749 lt_cv_nm_interface \
   27750 nm_file_list_spec \
   27751 lt_cv_truncate_bin \
   27752 lt_prog_compiler_no_builtin_flag \
   27753 lt_prog_compiler_pic \
   27754 lt_prog_compiler_wl \
   27755 lt_prog_compiler_static \
   27756 lt_cv_prog_compiler_c_o \
   27757 need_locks \
   27758 MANIFEST_TOOL \
   27759 DSYMUTIL \
   27760 NMEDIT \
   27761 LIPO \
   27762 OTOOL \
   27763 OTOOL64 \
   27764 shrext_cmds \
   27765 export_dynamic_flag_spec \
   27766 whole_archive_flag_spec \
   27767 compiler_needs_object \
   27768 with_gnu_ld \
   27769 allow_undefined_flag \
   27770 no_undefined_flag \
   27771 hardcode_libdir_flag_spec \
   27772 hardcode_libdir_separator \
   27773 exclude_expsyms \
   27774 include_expsyms \
   27775 file_list_spec \
   27776 variables_saved_for_relink \
   27777 libname_spec \
   27778 library_names_spec \
   27779 soname_spec \
   27780 install_override_mode \
   27781 finish_eval \
   27782 old_striplib \
   27783 striplib; do
   27784     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   27785     *[\\\\\\\`\\"\\\$]*)
   27786       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   27787       ;;
   27788     *)
   27789       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   27790       ;;
   27791     esac
   27792 done
   27793 
   27794 # Double-quote double-evaled strings.
   27795 for var in reload_cmds \
   27796 old_postinstall_cmds \
   27797 old_postuninstall_cmds \
   27798 old_archive_cmds \
   27799 extract_expsyms_cmds \
   27800 old_archive_from_new_cmds \
   27801 old_archive_from_expsyms_cmds \
   27802 archive_cmds \
   27803 archive_expsym_cmds \
   27804 module_cmds \
   27805 module_expsym_cmds \
   27806 export_symbols_cmds \
   27807 prelink_cmds \
   27808 postlink_cmds \
   27809 postinstall_cmds \
   27810 postuninstall_cmds \
   27811 finish_cmds \
   27812 sys_lib_search_path_spec \
   27813 configure_time_dlsearch_path \
   27814 configure_time_lt_sys_library_path; do
   27815     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   27816     *[\\\\\\\`\\"\\\$]*)
   27817       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   27818       ;;
   27819     *)
   27820       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   27821       ;;
   27822     esac
   27823 done
   27824 
   27825 ac_aux_dir='$ac_aux_dir'
   27826 
   27827 # See if we are running on zsh, and set the options that allow our
   27828 # commands through without removal of \ escapes INIT.
   27829 if test -n "\${ZSH_VERSION+set}"; then
   27830    setopt NO_GLOB_SUBST
   27831 fi
   27832 
   27833 
   27834     PACKAGE='$PACKAGE'
   27835     VERSION='$VERSION'
   27836     RM='$RM'
   27837     ofile='$ofile'
   27838 
   27839 
   27840 
   27841 
   27842 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
   27843 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
   27844 
   27845 
   27846 _ACEOF
   27847 
   27848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27849 
   27850 # Handling of arguments.
   27851 for ac_config_target in $ac_config_targets
   27852 do
   27853   case $ac_config_target in
   27854     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
   27855     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
   27856     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
   27857     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   27858     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
   27859     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
   27860     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
   27861     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
   27862     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
   27863     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
   27864     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
   27865     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
   27866     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
   27867     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
   27868     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
   27869     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
   27870     "libraries/liblber/lber.pc") CONFIG_FILES="$CONFIG_FILES libraries/liblber/lber.pc" ;;
   27871     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
   27872     "libraries/libldap/ldap.pc") CONFIG_FILES="$CONFIG_FILES libraries/libldap/ldap.pc" ;;
   27873     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
   27874     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
   27875     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
   27876     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
   27877     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
   27878     "servers/slapd/back-dnssrv/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
   27879     "servers/slapd/back-ldap/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
   27880     "servers/slapd/back-ldif/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
   27881     "servers/slapd/back-mdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/Makefile.in:build/mod.mk" ;;
   27882     "servers/slapd/back-meta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
   27883     "servers/slapd/back-asyncmeta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/Makefile.in:build/mod.mk" ;;
   27884     "servers/slapd/back-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
   27885     "servers/slapd/back-null/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
   27886     "servers/slapd/back-passwd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
   27887     "servers/slapd/back-perl/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
   27888     "servers/slapd/back-relay/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
   27889     "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
   27890     "servers/slapd/back-sql/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
   27891     "servers/slapd/back-wt/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.mk" ;;
   27892     "servers/slapd/slapi/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
   27893     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
   27894     "servers/slapd/pwmods/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/pwmods/Makefile:build/top.mk:servers/slapd/pwmods/Makefile.in:build/lib.mk" ;;
   27895     "servers/lloadd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile:build/top.mk:servers/lloadd/Makefile.in:$BALANCER_MAKE" ;;
   27896     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
   27897     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
   27898     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
   27899     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   27900 
   27901   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   27902   esac
   27903 done
   27904 
   27905 
   27906 # If the user did not use the arguments to specify the items to instantiate,
   27907 # then the envvar interface is used.  Set only those that are not.
   27908 # We use the long form for the default assignment because of an extremely
   27909 # bizarre bug on SunOS 4.1.3.
   27910 if $ac_need_defaults; then
   27911   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   27912   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   27913   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   27914 fi
   27915 
   27916 # Have a temporary directory for convenience.  Make it in the build tree
   27917 # simply because there is no reason against having it here, and in addition,
   27918 # creating and moving files from /tmp can sometimes cause problems.
   27919 # Hook for its removal unless debugging.
   27920 # Note that there is a small window in which the directory will not be cleaned:
   27921 # after its creation but before its name has been assigned to `$tmp'.
   27922 $debug ||
   27923 {
   27924   tmp= ac_tmp=
   27925   trap 'exit_status=$?
   27926   : "${ac_tmp:=$tmp}"
   27927   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   27928 ' 0
   27929   trap 'as_fn_exit 1' 1 2 13 15
   27930 }
   27931 # Create a (secure) tmp directory for tmp files.
   27932 
   27933 {
   27934   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   27935   test -d "$tmp"
   27936 }  ||
   27937 {
   27938   tmp=./conf$$-$RANDOM
   27939   (umask 077 && mkdir "$tmp")
   27940 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   27941 ac_tmp=$tmp
   27942 
   27943 # Set up the scripts for CONFIG_FILES section.
   27944 # No need to generate them if there are no CONFIG_FILES.
   27945 # This happens for instance with `./config.status config.h'.
   27946 if test -n "$CONFIG_FILES"; then
   27947 
   27948 
   27949 ac_cr=`echo X | tr X '\015'`
   27950 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   27951 # But we know of no other shell where ac_cr would be empty at this
   27952 # point, so we can use a bashism as a fallback.
   27953 if test "x$ac_cr" = x; then
   27954   eval ac_cr=\$\'\\r\'
   27955 fi
   27956 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   27957 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   27958   ac_cs_awk_cr='\\r'
   27959 else
   27960   ac_cs_awk_cr=$ac_cr
   27961 fi
   27962 
   27963 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   27964 _ACEOF
   27965 
   27966 
   27967 {
   27968   echo "cat >conf$$subs.awk <<_ACEOF" &&
   27969   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   27970   echo "_ACEOF"
   27971 } >conf$$subs.sh ||
   27972   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27973 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   27974 ac_delim='%!_!# '
   27975 for ac_last_try in false false false false false :; do
   27976   . ./conf$$subs.sh ||
   27977     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27978 
   27979   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   27980   if test $ac_delim_n = $ac_delim_num; then
   27981     break
   27982   elif $ac_last_try; then
   27983     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27984   else
   27985     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   27986   fi
   27987 done
   27988 rm -f conf$$subs.sh
   27989 
   27990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27991 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   27992 _ACEOF
   27993 sed -n '
   27994 h
   27995 s/^/S["/; s/!.*/"]=/
   27996 p
   27997 g
   27998 s/^[^!]*!//
   27999 :repl
   28000 t repl
   28001 s/'"$ac_delim"'$//
   28002 t delim
   28003 :nl
   28004 h
   28005 s/\(.\{148\}\)..*/\1/
   28006 t more1
   28007 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   28008 p
   28009 n
   28010 b repl
   28011 :more1
   28012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   28013 p
   28014 g
   28015 s/.\{148\}//
   28016 t nl
   28017 :delim
   28018 h
   28019 s/\(.\{148\}\)..*/\1/
   28020 t more2
   28021 s/["\\]/\\&/g; s/^/"/; s/$/"/
   28022 p
   28023 b
   28024 :more2
   28025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   28026 p
   28027 g
   28028 s/.\{148\}//
   28029 t delim
   28030 ' <conf$$subs.awk | sed '
   28031 /^[^""]/{
   28032   N
   28033   s/\n//
   28034 }
   28035 ' >>$CONFIG_STATUS || ac_write_fail=1
   28036 rm -f conf$$subs.awk
   28037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28038 _ACAWK
   28039 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   28040   for (key in S) S_is_set[key] = 1
   28041   FS = ""
   28042 
   28043 }
   28044 {
   28045   line = $ 0
   28046   nfields = split(line, field, "@")
   28047   substed = 0
   28048   len = length(field[1])
   28049   for (i = 2; i < nfields; i++) {
   28050     key = field[i]
   28051     keylen = length(key)
   28052     if (S_is_set[key]) {
   28053       value = S[key]
   28054       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   28055       len += length(value) + length(field[++i])
   28056       substed = 1
   28057     } else
   28058       len += 1 + keylen
   28059   }
   28060 
   28061   print line
   28062 }
   28063 
   28064 _ACAWK
   28065 _ACEOF
   28066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28067 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   28068   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   28069 else
   28070   cat
   28071 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   28072   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   28073 _ACEOF
   28074 
   28075 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   28076 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   28077 # trailing colons and then remove the whole line if VPATH becomes empty
   28078 # (actually we leave an empty line to preserve line numbers).
   28079 if test "x$srcdir" = x.; then
   28080   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   28081 h
   28082 s///
   28083 s/^/:/
   28084 s/[	 ]*$/:/
   28085 s/:\$(srcdir):/:/g
   28086 s/:\${srcdir}:/:/g
   28087 s/:@srcdir@:/:/g
   28088 s/^:*//
   28089 s/:*$//
   28090 x
   28091 s/\(=[	 ]*\).*/\1/
   28092 G
   28093 s/\n//
   28094 s/^[^=]*=[	 ]*$//
   28095 }'
   28096 fi
   28097 
   28098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28099 fi # test -n "$CONFIG_FILES"
   28100 
   28101 # Set up the scripts for CONFIG_HEADERS section.
   28102 # No need to generate them if there are no CONFIG_HEADERS.
   28103 # This happens for instance with `./config.status Makefile'.
   28104 if test -n "$CONFIG_HEADERS"; then
   28105 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   28106 BEGIN {
   28107 _ACEOF
   28108 
   28109 # Transform confdefs.h into an awk script `defines.awk', embedded as
   28110 # here-document in config.status, that substitutes the proper values into
   28111 # config.h.in to produce config.h.
   28112 
   28113 # Create a delimiter string that does not exist in confdefs.h, to ease
   28114 # handling of long lines.
   28115 ac_delim='%!_!# '
   28116 for ac_last_try in false false :; do
   28117   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   28118   if test -z "$ac_tt"; then
   28119     break
   28120   elif $ac_last_try; then
   28121     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   28122   else
   28123     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   28124   fi
   28125 done
   28126 
   28127 # For the awk script, D is an array of macro values keyed by name,
   28128 # likewise P contains macro parameters if any.  Preserve backslash
   28129 # newline sequences.
   28130 
   28131 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   28132 sed -n '
   28133 s/.\{148\}/&'"$ac_delim"'/g
   28134 t rset
   28135 :rset
   28136 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   28137 t def
   28138 d
   28139 :def
   28140 s/\\$//
   28141 t bsnl
   28142 s/["\\]/\\&/g
   28143 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   28144 D["\1"]=" \3"/p
   28145 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   28146 d
   28147 :bsnl
   28148 s/["\\]/\\&/g
   28149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   28150 D["\1"]=" \3\\\\\\n"\\/p
   28151 t cont
   28152 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   28153 t cont
   28154 d
   28155 :cont
   28156 n
   28157 s/.\{148\}/&'"$ac_delim"'/g
   28158 t clear
   28159 :clear
   28160 s/\\$//
   28161 t bsnlc
   28162 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   28163 d
   28164 :bsnlc
   28165 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   28166 b cont
   28167 ' <confdefs.h | sed '
   28168 s/'"$ac_delim"'/"\\\
   28169 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   28170 
   28171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28172   for (key in D) D_is_set[key] = 1
   28173   FS = ""
   28174 }
   28175 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   28176   line = \$ 0
   28177   split(line, arg, " ")
   28178   if (arg[1] == "#") {
   28179     defundef = arg[2]
   28180     mac1 = arg[3]
   28181   } else {
   28182     defundef = substr(arg[1], 2)
   28183     mac1 = arg[2]
   28184   }
   28185   split(mac1, mac2, "(") #)
   28186   macro = mac2[1]
   28187   prefix = substr(line, 1, index(line, defundef) - 1)
   28188   if (D_is_set[macro]) {
   28189     # Preserve the white space surrounding the "#".
   28190     print prefix "define", macro P[macro] D[macro]
   28191     next
   28192   } else {
   28193     # Replace #undef with comments.  This is necessary, for example,
   28194     # in the case of _POSIX_SOURCE, which is predefined and required
   28195     # on some systems where configure will not decide to define it.
   28196     if (defundef == "undef") {
   28197       print "/*", prefix defundef, macro, "*/"
   28198       next
   28199     }
   28200   }
   28201 }
   28202 { print }
   28203 _ACAWK
   28204 _ACEOF
   28205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28206   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   28207 fi # test -n "$CONFIG_HEADERS"
   28208 
   28209 
   28210 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   28211 shift
   28212 for ac_tag
   28213 do
   28214   case $ac_tag in
   28215   :[FHLC]) ac_mode=$ac_tag; continue;;
   28216   esac
   28217   case $ac_mode$ac_tag in
   28218   :[FHL]*:*);;
   28219   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   28220   :[FH]-) ac_tag=-:-;;
   28221   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   28222   esac
   28223   ac_save_IFS=$IFS
   28224   IFS=:
   28225   set x $ac_tag
   28226   IFS=$ac_save_IFS
   28227   shift
   28228   ac_file=$1
   28229   shift
   28230 
   28231   case $ac_mode in
   28232   :L) ac_source=$1;;
   28233   :[FH])
   28234     ac_file_inputs=
   28235     for ac_f
   28236     do
   28237       case $ac_f in
   28238       -) ac_f="$ac_tmp/stdin";;
   28239       *) # Look for the file first in the build tree, then in the source tree
   28240 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   28241 	 # because $ac_f cannot contain `:'.
   28242 	 test -f "$ac_f" ||
   28243 	   case $ac_f in
   28244 	   [\\/$]*) false;;
   28245 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   28246 	   esac ||
   28247 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   28248       esac
   28249       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   28250       as_fn_append ac_file_inputs " '$ac_f'"
   28251     done
   28252 
   28253     # Let's still pretend it is `configure' which instantiates (i.e., don't
   28254     # use $as_me), people would be surprised to read:
   28255     #    /* config.h.  Generated by config.status.  */
   28256     configure_input='Generated from '`
   28257 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   28258 	`' by configure.'
   28259     if test x"$ac_file" != x-; then
   28260       configure_input="$ac_file.  $configure_input"
   28261       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   28262 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   28263     fi
   28264     # Neutralize special characters interpreted by sed in replacement strings.
   28265     case $configure_input in #(
   28266     *\&* | *\|* | *\\* )
   28267        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   28268        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   28269     *) ac_sed_conf_input=$configure_input;;
   28270     esac
   28271 
   28272     case $ac_tag in
   28273     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   28274       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   28275     esac
   28276     ;;
   28277   esac
   28278 
   28279   ac_dir=`$as_dirname -- "$ac_file" ||
   28280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28281 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   28282 	 X"$ac_file" : 'X\(//\)$' \| \
   28283 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   28284 printf "%s\n" X"$ac_file" |
   28285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28286 	    s//\1/
   28287 	    q
   28288 	  }
   28289 	  /^X\(\/\/\)[^/].*/{
   28290 	    s//\1/
   28291 	    q
   28292 	  }
   28293 	  /^X\(\/\/\)$/{
   28294 	    s//\1/
   28295 	    q
   28296 	  }
   28297 	  /^X\(\/\).*/{
   28298 	    s//\1/
   28299 	    q
   28300 	  }
   28301 	  s/.*/./; q'`
   28302   as_dir="$ac_dir"; as_fn_mkdir_p
   28303   ac_builddir=.
   28304 
   28305 case "$ac_dir" in
   28306 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   28307 *)
   28308   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   28309   # A ".." for each directory in $ac_dir_suffix.
   28310   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   28311   case $ac_top_builddir_sub in
   28312   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   28313   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   28314   esac ;;
   28315 esac
   28316 ac_abs_top_builddir=$ac_pwd
   28317 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   28318 # for backward compatibility:
   28319 ac_top_builddir=$ac_top_build_prefix
   28320 
   28321 case $srcdir in
   28322   .)  # We are building in place.
   28323     ac_srcdir=.
   28324     ac_top_srcdir=$ac_top_builddir_sub
   28325     ac_abs_top_srcdir=$ac_pwd ;;
   28326   [\\/]* | ?:[\\/]* )  # Absolute name.
   28327     ac_srcdir=$srcdir$ac_dir_suffix;
   28328     ac_top_srcdir=$srcdir
   28329     ac_abs_top_srcdir=$srcdir ;;
   28330   *) # Relative name.
   28331     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   28332     ac_top_srcdir=$ac_top_build_prefix$srcdir
   28333     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   28334 esac
   28335 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   28336 
   28337 
   28338   case $ac_mode in
   28339   :F)
   28340   #
   28341   # CONFIG_FILE
   28342   #
   28343 
   28344 _ACEOF
   28345 
   28346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28347 # If the template does not know about datarootdir, expand it.
   28348 # FIXME: This hack should be removed a few years after 2.60.
   28349 ac_datarootdir_hack=; ac_datarootdir_seen=
   28350 ac_sed_dataroot='
   28351 /datarootdir/ {
   28352   p
   28353   q
   28354 }
   28355 /@datadir@/p
   28356 /@docdir@/p
   28357 /@infodir@/p
   28358 /@localedir@/p
   28359 /@mandir@/p'
   28360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   28361 *datarootdir*) ac_datarootdir_seen=yes;;
   28362 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   28363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   28364 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   28365 _ACEOF
   28366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28367   ac_datarootdir_hack='
   28368   s&@datadir@&$datadir&g
   28369   s&@docdir@&$docdir&g
   28370   s&@infodir@&$infodir&g
   28371   s&@localedir@&$localedir&g
   28372   s&@mandir@&$mandir&g
   28373   s&\\\${datarootdir}&$datarootdir&g' ;;
   28374 esac
   28375 _ACEOF
   28376 
   28377 # Neutralize VPATH when `$srcdir' = `.'.
   28378 # Shell code in configure.ac might set extrasub.
   28379 # FIXME: do we really want to maintain this feature?
   28380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28381 ac_sed_extra="$ac_vpsub
   28382 $extrasub
   28383 _ACEOF
   28384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28385 :t
   28386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   28387 s|@configure_input@|$ac_sed_conf_input|;t t
   28388 s&@top_builddir@&$ac_top_builddir_sub&;t t
   28389 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   28390 s&@srcdir@&$ac_srcdir&;t t
   28391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   28392 s&@top_srcdir@&$ac_top_srcdir&;t t
   28393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   28394 s&@builddir@&$ac_builddir&;t t
   28395 s&@abs_builddir@&$ac_abs_builddir&;t t
   28396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   28397 $ac_datarootdir_hack
   28398 "
   28399 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   28400   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   28401 
   28402 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   28403   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   28404   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   28405       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   28406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   28407 which seems to be undefined.  Please make sure it is defined" >&5
   28408 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   28409 which seems to be undefined.  Please make sure it is defined" >&2;}
   28410 
   28411   rm -f "$ac_tmp/stdin"
   28412   case $ac_file in
   28413   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   28414   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   28415   esac \
   28416   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   28417  ;;
   28418   :H)
   28419   #
   28420   # CONFIG_HEADER
   28421   #
   28422   if test x"$ac_file" != x-; then
   28423     {
   28424       printf "%s\n" "/* $configure_input  */" >&1 \
   28425       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   28426     } >"$ac_tmp/config.h" \
   28427       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   28428     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   28429       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   28430 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   28431     else
   28432       rm -f "$ac_file"
   28433       mv "$ac_tmp/config.h" "$ac_file" \
   28434 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   28435     fi
   28436   else
   28437     printf "%s\n" "/* $configure_input  */" >&1 \
   28438       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   28439       || as_fn_error $? "could not create -" "$LINENO" 5
   28440   fi
   28441  ;;
   28442 
   28443   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   28444 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   28445  ;;
   28446   esac
   28447 
   28448 
   28449   case $ac_file$ac_mode in
   28450     "libtool":C)
   28451 
   28452     # See if we are running on zsh, and set the options that allow our
   28453     # commands through without removal of \ escapes.
   28454     if test -n "${ZSH_VERSION+set}"; then
   28455       setopt NO_GLOB_SUBST
   28456     fi
   28457 
   28458     cfgfile=${ofile}T
   28459     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   28460     $RM "$cfgfile"
   28461 
   28462     cat <<_LT_EOF >> "$cfgfile"
   28463 #! $SHELL
   28464 # Generated automatically by $as_me ($PACKAGE) $VERSION
   28465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   28466 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   28467 
   28468 # Provide generalized library-building support services.
   28469 # Written by Gordon Matzigkeit, 1996
   28470 
   28471 # Copyright (C) 2014 Free Software Foundation, Inc.
   28472 # This is free software; see the source for copying conditions.  There is NO
   28473 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   28474 
   28475 # GNU Libtool is free software; you can redistribute it and/or modify
   28476 # it under the terms of the GNU General Public License as published by
   28477 # the Free Software Foundation; either version 2 of of the License, or
   28478 # (at your option) any later version.
   28479 #
   28480 # As a special exception to the GNU General Public License, if you
   28481 # distribute this file as part of a program or library that is built
   28482 # using GNU Libtool, you may include this file under the  same
   28483 # distribution terms that you use for the rest of that program.
   28484 #
   28485 # GNU Libtool is distributed in the hope that it will be useful, but
   28486 # WITHOUT ANY WARRANTY; without even the implied warranty of
   28487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   28488 # GNU General Public License for more details.
   28489 #
   28490 # You should have received a copy of the GNU General Public License
   28491 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   28492 
   28493 
   28494 # The names of the tagged configurations supported by this script.
   28495 available_tags=''
   28496 
   28497 # Configured defaults for sys_lib_dlsearch_path munging.
   28498 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   28499 
   28500 # ### BEGIN LIBTOOL CONFIG
   28501 
   28502 # Whether or not to build static libraries.
   28503 build_old_libs=$enable_static
   28504 
   28505 # Whether or not to build shared libraries.
   28506 build_libtool_libs=$enable_shared
   28507 
   28508 # Which release of libtool.m4 was used?
   28509 macro_version=$macro_version
   28510 macro_revision=$macro_revision
   28511 
   28512 # What type of objects to build.
   28513 pic_mode=$pic_mode
   28514 
   28515 # Whether or not to optimize for fast installation.
   28516 fast_install=$enable_fast_install
   28517 
   28518 # Shared archive member basename,for filename based shared library versioning on AIX.
   28519 shared_archive_member_spec=$shared_archive_member_spec
   28520 
   28521 # Shell to use when invoking shell scripts.
   28522 SHELL=$lt_SHELL
   28523 
   28524 # An echo program that protects backslashes.
   28525 ECHO=$lt_ECHO
   28526 
   28527 # The PATH separator for the build system.
   28528 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   28529 
   28530 # The host system.
   28531 host_alias=$host_alias
   28532 host=$host
   28533 host_os=$host_os
   28534 
   28535 # The build system.
   28536 build_alias=$build_alias
   28537 build=$build
   28538 build_os=$build_os
   28539 
   28540 # A sed program that does not truncate output.
   28541 SED=$lt_SED
   28542 
   28543 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   28544 Xsed="\$SED -e 1s/^X//"
   28545 
   28546 # A grep program that handles long lines.
   28547 GREP=$lt_GREP
   28548 
   28549 # An ERE matcher.
   28550 EGREP=$lt_EGREP
   28551 
   28552 # A literal string matcher.
   28553 FGREP=$lt_FGREP
   28554 
   28555 # A BSD- or MS-compatible name lister.
   28556 NM=$lt_NM
   28557 
   28558 # Whether we need soft or hard links.
   28559 LN_S=$lt_LN_S
   28560 
   28561 # What is the maximum length of a command?
   28562 max_cmd_len=$max_cmd_len
   28563 
   28564 # Object file suffix (normally "o").
   28565 objext=$ac_objext
   28566 
   28567 # Executable file suffix (normally "").
   28568 exeext=$exeext
   28569 
   28570 # whether the shell understands "unset".
   28571 lt_unset=$lt_unset
   28572 
   28573 # turn spaces into newlines.
   28574 SP2NL=$lt_lt_SP2NL
   28575 
   28576 # turn newlines into spaces.
   28577 NL2SP=$lt_lt_NL2SP
   28578 
   28579 # convert \$build file names to \$host format.
   28580 to_host_file_cmd=$lt_cv_to_host_file_cmd
   28581 
   28582 # convert \$build files to toolchain format.
   28583 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   28584 
   28585 # An object symbol dumper.
   28586 OBJDUMP=$lt_OBJDUMP
   28587 
   28588 # Method to check whether dependent libraries are shared objects.
   28589 deplibs_check_method=$lt_deplibs_check_method
   28590 
   28591 # Command to use when deplibs_check_method = "file_magic".
   28592 file_magic_cmd=$lt_file_magic_cmd
   28593 
   28594 # How to find potential files when deplibs_check_method = "file_magic".
   28595 file_magic_glob=$lt_file_magic_glob
   28596 
   28597 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   28598 want_nocaseglob=$lt_want_nocaseglob
   28599 
   28600 # DLL creation program.
   28601 DLLTOOL=$lt_DLLTOOL
   28602 
   28603 # Command to associate shared and link libraries.
   28604 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   28605 
   28606 # The archiver.
   28607 AR=$lt_AR
   28608 
   28609 # Flags to create an archive.
   28610 AR_FLAGS=$lt_AR_FLAGS
   28611 
   28612 # How to feed a file listing to the archiver.
   28613 archiver_list_spec=$lt_archiver_list_spec
   28614 
   28615 # A symbol stripping program.
   28616 STRIP=$lt_STRIP
   28617 
   28618 # Commands used to install an old-style archive.
   28619 RANLIB=$lt_RANLIB
   28620 old_postinstall_cmds=$lt_old_postinstall_cmds
   28621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   28622 
   28623 # Whether to use a lock for old archive extraction.
   28624 lock_old_archive_extraction=$lock_old_archive_extraction
   28625 
   28626 # A C compiler.
   28627 LTCC=$lt_CC
   28628 
   28629 # LTCC compiler flags.
   28630 LTCFLAGS=$lt_CFLAGS
   28631 
   28632 # Take the output of nm and produce a listing of raw symbols and C names.
   28633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   28634 
   28635 # Transform the output of nm in a proper C declaration.
   28636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   28637 
   28638 # Transform the output of nm into a list of symbols to manually relocate.
   28639 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   28640 
   28641 # Transform the output of nm in a C name address pair.
   28642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   28643 
   28644 # Transform the output of nm in a C name address pair when lib prefix is needed.
   28645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   28646 
   28647 # The name lister interface.
   28648 nm_interface=$lt_lt_cv_nm_interface
   28649 
   28650 # Specify filename containing input files for \$NM.
   28651 nm_file_list_spec=$lt_nm_file_list_spec
   28652 
   28653 # The root where to search for dependent libraries,and where our libraries should be installed.
   28654 lt_sysroot=$lt_sysroot
   28655 
   28656 # Command to truncate a binary pipe.
   28657 lt_truncate_bin=$lt_lt_cv_truncate_bin
   28658 
   28659 # The name of the directory that contains temporary libtool files.
   28660 objdir=$objdir
   28661 
   28662 # Used to examine libraries when file_magic_cmd begins with "file".
   28663 MAGIC_CMD=$MAGIC_CMD
   28664 
   28665 # Must we lock files when doing compilation?
   28666 need_locks=$lt_need_locks
   28667 
   28668 # Manifest tool.
   28669 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   28670 
   28671 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   28672 DSYMUTIL=$lt_DSYMUTIL
   28673 
   28674 # Tool to change global to local symbols on Mac OS X.
   28675 NMEDIT=$lt_NMEDIT
   28676 
   28677 # Tool to manipulate fat objects and archives on Mac OS X.
   28678 LIPO=$lt_LIPO
   28679 
   28680 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   28681 OTOOL=$lt_OTOOL
   28682 
   28683 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   28684 OTOOL64=$lt_OTOOL64
   28685 
   28686 # Old archive suffix (normally "a").
   28687 libext=$libext
   28688 
   28689 # Shared library suffix (normally ".so").
   28690 shrext_cmds=$lt_shrext_cmds
   28691 
   28692 # The commands to extract the exported symbol list from a shared archive.
   28693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   28694 
   28695 # Variables whose values should be saved in libtool wrapper scripts and
   28696 # restored at link time.
   28697 variables_saved_for_relink=$lt_variables_saved_for_relink
   28698 
   28699 # Do we need the "lib" prefix for modules?
   28700 need_lib_prefix=$need_lib_prefix
   28701 
   28702 # Do we need a version for libraries?
   28703 need_version=$need_version
   28704 
   28705 # Library versioning type.
   28706 version_type=$version_type
   28707 
   28708 # Shared library runtime path variable.
   28709 runpath_var=$runpath_var
   28710 
   28711 # Shared library path variable.
   28712 shlibpath_var=$shlibpath_var
   28713 
   28714 # Is shlibpath searched before the hard-coded library search path?
   28715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   28716 
   28717 # Format of library name prefix.
   28718 libname_spec=$lt_libname_spec
   28719 
   28720 # List of archive names.  First name is the real one, the rest are links.
   28721 # The last name is the one that the linker finds with -lNAME
   28722 library_names_spec=$lt_library_names_spec
   28723 
   28724 # The coded name of the library, if different from the real name.
   28725 soname_spec=$lt_soname_spec
   28726 
   28727 # Permission mode override for installation of shared libraries.
   28728 install_override_mode=$lt_install_override_mode
   28729 
   28730 # Command to use after installation of a shared archive.
   28731 postinstall_cmds=$lt_postinstall_cmds
   28732 
   28733 # Command to use after uninstallation of a shared archive.
   28734 postuninstall_cmds=$lt_postuninstall_cmds
   28735 
   28736 # Commands used to finish a libtool library installation in a directory.
   28737 finish_cmds=$lt_finish_cmds
   28738 
   28739 # As "finish_cmds", except a single script fragment to be evaled but
   28740 # not shown.
   28741 finish_eval=$lt_finish_eval
   28742 
   28743 # Whether we should hardcode library paths into libraries.
   28744 hardcode_into_libs=$hardcode_into_libs
   28745 
   28746 # Compile-time system search path for libraries.
   28747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   28748 
   28749 # Detected run-time system search path for libraries.
   28750 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   28751 
   28752 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   28753 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   28754 
   28755 # Whether dlopen is supported.
   28756 dlopen_support=$enable_dlopen
   28757 
   28758 # Whether dlopen of programs is supported.
   28759 dlopen_self=$enable_dlopen_self
   28760 
   28761 # Whether dlopen of statically linked programs is supported.
   28762 dlopen_self_static=$enable_dlopen_self_static
   28763 
   28764 # Commands to strip libraries.
   28765 old_striplib=$lt_old_striplib
   28766 striplib=$lt_striplib
   28767 
   28768 
   28769 # The linker used to build libraries.
   28770 LD=$lt_LD
   28771 
   28772 # How to create reloadable object files.
   28773 reload_flag=$lt_reload_flag
   28774 reload_cmds=$lt_reload_cmds
   28775 
   28776 # Commands used to build an old-style archive.
   28777 old_archive_cmds=$lt_old_archive_cmds
   28778 
   28779 # A language specific compiler.
   28780 CC=$lt_compiler
   28781 
   28782 # Is the compiler the GNU compiler?
   28783 with_gcc=$GCC
   28784 
   28785 # Compiler flag to turn off builtin functions.
   28786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   28787 
   28788 # Additional compiler flags for building library objects.
   28789 pic_flag=$lt_lt_prog_compiler_pic
   28790 
   28791 # How to pass a linker flag through the compiler.
   28792 wl=$lt_lt_prog_compiler_wl
   28793 
   28794 # Compiler flag to prevent dynamic linking.
   28795 link_static_flag=$lt_lt_prog_compiler_static
   28796 
   28797 # Does compiler simultaneously support -c and -o options?
   28798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   28799 
   28800 # Whether or not to add -lc for building shared libraries.
   28801 build_libtool_need_lc=$archive_cmds_need_lc
   28802 
   28803 # Whether or not to disallow shared libs when runtime libs are static.
   28804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   28805 
   28806 # Compiler flag to allow reflexive dlopens.
   28807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   28808 
   28809 # Compiler flag to generate shared objects directly from archives.
   28810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   28811 
   28812 # Whether the compiler copes with passing no objects directly.
   28813 compiler_needs_object=$lt_compiler_needs_object
   28814 
   28815 # Create an old-style archive from a shared archive.
   28816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   28817 
   28818 # Create a temporary old-style archive to link instead of a shared archive.
   28819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   28820 
   28821 # Commands used to build a shared archive.
   28822 archive_cmds=$lt_archive_cmds
   28823 archive_expsym_cmds=$lt_archive_expsym_cmds
   28824 
   28825 # Commands used to build a loadable module if different from building
   28826 # a shared archive.
   28827 module_cmds=$lt_module_cmds
   28828 module_expsym_cmds=$lt_module_expsym_cmds
   28829 
   28830 # Whether we are building with GNU ld or not.
   28831 with_gnu_ld=$lt_with_gnu_ld
   28832 
   28833 # Flag that allows shared libraries with undefined symbols to be built.
   28834 allow_undefined_flag=$lt_allow_undefined_flag
   28835 
   28836 # Flag that enforces no undefined symbols.
   28837 no_undefined_flag=$lt_no_undefined_flag
   28838 
   28839 # Flag to hardcode \$libdir into a binary during linking.
   28840 # This must work even if \$libdir does not exist
   28841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   28842 
   28843 # Whether we need a single "-rpath" flag with a separated argument.
   28844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   28845 
   28846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   28847 # DIR into the resulting binary.
   28848 hardcode_direct=$hardcode_direct
   28849 
   28850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   28851 # DIR into the resulting binary and the resulting library dependency is
   28852 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   28853 # library is relocated.
   28854 hardcode_direct_absolute=$hardcode_direct_absolute
   28855 
   28856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   28857 # into the resulting binary.
   28858 hardcode_minus_L=$hardcode_minus_L
   28859 
   28860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   28861 # into the resulting binary.
   28862 hardcode_shlibpath_var=$hardcode_shlibpath_var
   28863 
   28864 # Set to "yes" if building a shared library automatically hardcodes DIR
   28865 # into the library and all subsequent libraries and executables linked
   28866 # against it.
   28867 hardcode_automatic=$hardcode_automatic
   28868 
   28869 # Set to yes if linker adds runtime paths of dependent libraries
   28870 # to runtime path list.
   28871 inherit_rpath=$inherit_rpath
   28872 
   28873 # Whether libtool must link a program against all its dependency libraries.
   28874 link_all_deplibs=$link_all_deplibs
   28875 
   28876 # Set to "yes" if exported symbols are required.
   28877 always_export_symbols=$always_export_symbols
   28878 
   28879 # The commands to list exported symbols.
   28880 export_symbols_cmds=$lt_export_symbols_cmds
   28881 
   28882 # Symbols that should not be listed in the preloaded symbols.
   28883 exclude_expsyms=$lt_exclude_expsyms
   28884 
   28885 # Symbols that must always be exported.
   28886 include_expsyms=$lt_include_expsyms
   28887 
   28888 # Commands necessary for linking programs (against libraries) with templates.
   28889 prelink_cmds=$lt_prelink_cmds
   28890 
   28891 # Commands necessary for finishing linking programs.
   28892 postlink_cmds=$lt_postlink_cmds
   28893 
   28894 # Specify filename containing input files.
   28895 file_list_spec=$lt_file_list_spec
   28896 
   28897 # How to hardcode a shared library path into an executable.
   28898 hardcode_action=$hardcode_action
   28899 
   28900 # ### END LIBTOOL CONFIG
   28901 
   28902 _LT_EOF
   28903 
   28904     cat <<'_LT_EOF' >> "$cfgfile"
   28905 
   28906 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   28907 
   28908 # func_munge_path_list VARIABLE PATH
   28909 # -----------------------------------
   28910 # VARIABLE is name of variable containing _space_ separated list of
   28911 # directories to be munged by the contents of PATH, which is string
   28912 # having a format:
   28913 # "DIR[:DIR]:"
   28914 #       string "DIR[ DIR]" will be prepended to VARIABLE
   28915 # ":DIR[:DIR]"
   28916 #       string "DIR[ DIR]" will be appended to VARIABLE
   28917 # "DIRP[:DIRP]::[DIRA:]DIRA"
   28918 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   28919 #       "DIRA[ DIRA]" will be appended to VARIABLE
   28920 # "DIR[:DIR]"
   28921 #       VARIABLE will be replaced by "DIR[ DIR]"
   28922 func_munge_path_list ()
   28923 {
   28924     case x$2 in
   28925     x)
   28926         ;;
   28927     *:)
   28928         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   28929         ;;
   28930     x:*)
   28931         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   28932         ;;
   28933     *::*)
   28934         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   28935         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   28936         ;;
   28937     *)
   28938         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   28939         ;;
   28940     esac
   28941 }
   28942 
   28943 
   28944 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   28945 func_cc_basename ()
   28946 {
   28947     for cc_temp in $*""; do
   28948       case $cc_temp in
   28949         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   28950         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   28951         \-*) ;;
   28952         *) break;;
   28953       esac
   28954     done
   28955     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   28956 }
   28957 
   28958 
   28959 # ### END FUNCTIONS SHARED WITH CONFIGURE
   28960 
   28961 _LT_EOF
   28962 
   28963   case $host_os in
   28964   aix3*)
   28965     cat <<\_LT_EOF >> "$cfgfile"
   28966 # AIX sometimes has problems with the GCC collect2 program.  For some
   28967 # reason, if we set the COLLECT_NAMES environment variable, the problems
   28968 # vanish in a puff of smoke.
   28969 if test set != "${COLLECT_NAMES+set}"; then
   28970   COLLECT_NAMES=
   28971   export COLLECT_NAMES
   28972 fi
   28973 _LT_EOF
   28974     ;;
   28975   esac
   28976 
   28977 
   28978 
   28979 ltmain=$ac_aux_dir/ltmain.sh
   28980 
   28981 
   28982   # We use sed instead of cat because bash on DJGPP gets confused if
   28983   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   28984   # text mode, it properly converts lines to CR/LF.  This bash problem
   28985   # is reportedly fixed, but why not run on old versions too?
   28986   sed '$q' "$ltmain" >> "$cfgfile" \
   28987      || (rm -f "$cfgfile"; exit 1)
   28988 
   28989    mv -f "$cfgfile" "$ofile" ||
   28990     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   28991   chmod +x "$ofile"
   28992 
   28993  ;;
   28994     "default":C)
   28995 chmod +x tests/run
   28996 date > stamp-h
   28997 BACKENDSC="servers/slapd/backends.c"
   28998 echo "Making $BACKENDSC"
   28999 rm -f $BACKENDSC
   29000 cat > $BACKENDSC << ENDX
   29001 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
   29002  *
   29003  * Copyright 1998-2024 The OpenLDAP Foundation.
   29004  * All rights reserved.
   29005  *
   29006  * Redistribution and use in source and binary forms, with or without
   29007  * modification, are permitted only as authorized by the OpenLDAP
   29008  * Public License.
   29009  *
   29010  * A copy of this license is available in the file LICENSE in the
   29011  * top-level directory of the distribution or, alternatively, at
   29012  * <http://www.OpenLDAP.org/license.html>.
   29013  */
   29014 /* This file is automatically generated by configure; please do not edit. */
   29015 
   29016 #include "portable.h"
   29017 #include "slap.h"
   29018 
   29019 ENDX
   29020 if test "${STATIC_BACKENDS}"; then
   29021 	for b in config ${STATIC_BACKENDS}; do
   29022 		bb=`echo "${b}" | sed -e 's/back-//'`
   29023 		cat >> $BACKENDSC << ENDX
   29024 extern BI_init ${bb}_back_initialize;
   29025 ENDX
   29026 	done
   29027 
   29028 	cat >> $BACKENDSC << ENDX
   29029 
   29030 BackendInfo slap_binfo[] = {
   29031 ENDX
   29032 
   29033 	for b in config ${STATIC_BACKENDS}; do
   29034 		bb=`echo "${b}" | sed -e 's/back-//'`
   29035 		echo "    Add ${bb} ..."
   29036 		cat >> $BACKENDSC << ENDX
   29037 	{ "${bb}", ${bb}_back_initialize },
   29038 ENDX
   29039 	done
   29040 
   29041 	cat >> $BACKENDSC << ENDX
   29042 	{ NULL, NULL },
   29043 };
   29044 
   29045 /* end of generated file */
   29046 ENDX
   29047 fi
   29048 OVERLAYSC="servers/slapd/overlays/statover.c"
   29049 echo "Making $OVERLAYSC"
   29050 rm -f $OVERLAYSC
   29051 cat > $OVERLAYSC << ENDX
   29052 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
   29053  *
   29054  * Copyright 1998-2024 The OpenLDAP Foundation.
   29055  * All rights reserved.
   29056  *
   29057  * Redistribution and use in source and binary forms, with or without
   29058  * modification, are permitted only as authorized by the OpenLDAP
   29059  * Public License.
   29060  *
   29061  * A copy of this license is available in the file LICENSE in the
   29062  * top-level directory of the distribution or, alternatively, at
   29063  * <http://www.OpenLDAP.org/license.html>.
   29064  */
   29065 /* This file is automatically generated by configure; please do not edit. */
   29066 
   29067 #include "portable.h"
   29068 #include "slap.h"
   29069 
   29070 ENDX
   29071 if test "${STATIC_OVERLAYS}"; then
   29072 	for o in ${STATIC_OVERLAYS}; do
   29073 		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
   29074 		cat >> $OVERLAYSC << ENDX
   29075 extern OV_init ${oo}_initialize;
   29076 ENDX
   29077 	done
   29078 fi
   29079 
   29080 cat >> $OVERLAYSC << ENDX
   29081 
   29082 OverlayInit slap_oinfo[] = {
   29083 ENDX
   29084 
   29085 if test "${STATIC_OVERLAYS}"; then
   29086 	for o in ${STATIC_OVERLAYS}; do
   29087 		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
   29088 		echo "    Add ${oo} ..."
   29089 		cat >> $OVERLAYSC << ENDX
   29090 	{ "${oo}", ${oo}_initialize },
   29091 ENDX
   29092 	done
   29093 fi
   29094 
   29095 	cat >> $OVERLAYSC << ENDX
   29096 	{ NULL, NULL },
   29097 };
   29098 
   29099 /* end of generated file */
   29100 ENDX
   29101 
   29102 if test "${ol_cv_mkdep}" = no; then
   29103 	echo '(Do not "make depend"; we do not know how to build dependencies)'
   29104 else
   29105 	echo 'Please run "make depend" to build dependencies'
   29106 fi
   29107  ;;
   29108 
   29109   esac
   29110 done # for ac_tag
   29111 
   29112 
   29113 as_fn_exit 0
   29114 _ACEOF
   29115 ac_clean_files=$ac_clean_files_save
   29116 
   29117 test $ac_write_fail = 0 ||
   29118   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   29119 
   29120 
   29121 # configure is writing to config.log, and then calls config.status.
   29122 # config.status does its own redirection, appending to config.log.
   29123 # Unfortunately, on DOS this fails, as config.log is still kept open
   29124 # by configure, so config.status won't be able to write to it; its
   29125 # output is simply discarded.  So we exec the FD to /dev/null,
   29126 # effectively closing config.log, so it can be properly (re)opened and
   29127 # appended to by config.status.  When coming back to configure, we
   29128 # need to make the FD available again.
   29129 if test "$no_create" != yes; then
   29130   ac_cs_success=:
   29131   ac_config_status_args=
   29132   test "$silent" = yes &&
   29133     ac_config_status_args="$ac_config_status_args --quiet"
   29134   exec 5>/dev/null
   29135   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   29136   exec 5>>config.log
   29137   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   29138   # would make configure fail if this is the last instruction.
   29139   $ac_cs_success || as_fn_exit 1
   29140 fi
   29141 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   29142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   29143 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   29144 fi
   29145 
   29146 
   29147