[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[23508] | 3 | # Generated by GNU Autoconf 2.65.
|
---|
[562] | 4 | #
|
---|
[22378] | 5 | #
|
---|
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
[23508] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
---|
| 8 | # Inc.
|
---|
[22378] | 9 | #
|
---|
| 10 | #
|
---|
[562] | 11 | # This configure script is free software; the Free Software Foundation
|
---|
| 12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[22378] | 13 | ## -------------------- ##
|
---|
| 14 | ## M4sh Initialization. ##
|
---|
| 15 | ## -------------------- ##
|
---|
[562] | 16 |
|
---|
[22378] | 17 | # Be more Bourne compatible
|
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8756] | 20 | emulate sh
|
---|
| 21 | NULLCMD=:
|
---|
[22378] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[8756] | 23 | # is contrary to our usage. Disable this feature.
|
---|
| 24 | alias -g '${1+"$@"}'='"$@"'
|
---|
[22378] | 25 | setopt NO_GLOB_SUBST
|
---|
| 26 | else
|
---|
| 27 | case `(set -o) 2>/dev/null` in #(
|
---|
| 28 | *posix*) :
|
---|
| 29 | set -o posix ;; #(
|
---|
| 30 | *) :
|
---|
| 31 | ;;
|
---|
| 32 | esac
|
---|
[8756] | 33 | fi
|
---|
| 34 |
|
---|
[22378] | 35 |
|
---|
| 36 | as_nl='
|
---|
| 37 | '
|
---|
| 38 | export as_nl
|
---|
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 44 | # but without wasting forks for bash or zsh.
|
---|
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 47 | as_echo='print -r --'
|
---|
| 48 | as_echo_n='print -rn --'
|
---|
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 50 | as_echo='printf %s\n'
|
---|
| 51 | as_echo_n='printf %s'
|
---|
[8756] | 52 | else
|
---|
[22378] | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 55 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 56 | else
|
---|
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 58 | as_echo_n_body='eval
|
---|
| 59 | arg=$1;
|
---|
| 60 | case $arg in #(
|
---|
| 61 | *"$as_nl"*)
|
---|
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 64 | esac;
|
---|
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 66 | '
|
---|
| 67 | export as_echo_n_body
|
---|
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 69 | fi
|
---|
| 70 | export as_echo_body
|
---|
| 71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[8756] | 72 | fi
|
---|
| 73 |
|
---|
[22378] | 74 | # The user is always right.
|
---|
| 75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 76 | PATH_SEPARATOR=:
|
---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 79 | PATH_SEPARATOR=';'
|
---|
| 80 | }
|
---|
| 81 | fi
|
---|
[8756] | 82 |
|
---|
[22378] | 83 |
|
---|
| 84 | # IFS
|
---|
| 85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 86 | # there to prevent editors from complaining about space-tab.
|
---|
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 88 | # splitting by setting IFS to empty value.)
|
---|
| 89 | IFS=" "" $as_nl"
|
---|
| 90 |
|
---|
| 91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 92 | case $0 in #((
|
---|
| 93 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 95 | for as_dir in $PATH
|
---|
| 96 | do
|
---|
| 97 | IFS=$as_save_IFS
|
---|
| 98 | test -z "$as_dir" && as_dir=.
|
---|
| 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 100 | done
|
---|
| 101 | IFS=$as_save_IFS
|
---|
| 102 |
|
---|
| 103 | ;;
|
---|
| 104 | esac
|
---|
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 106 | # in which case we are not to be found in the path.
|
---|
| 107 | if test "x$as_myself" = x; then
|
---|
| 108 | as_myself=$0
|
---|
| 109 | fi
|
---|
| 110 | if test ! -f "$as_myself"; then
|
---|
| 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 112 | exit 1
|
---|
| 113 | fi
|
---|
| 114 |
|
---|
| 115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 118 | # trigger a bug in pdksh 5.2.14.
|
---|
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 120 | do eval test x\${$as_var+set} = xset \
|
---|
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 122 | done
|
---|
[8756] | 123 | PS1='$ '
|
---|
| 124 | PS2='> '
|
---|
| 125 | PS4='+ '
|
---|
| 126 |
|
---|
| 127 | # NLS nuisances.
|
---|
[22378] | 128 | LC_ALL=C
|
---|
| 129 | export LC_ALL
|
---|
| 130 | LANGUAGE=C
|
---|
| 131 | export LANGUAGE
|
---|
| 132 |
|
---|
| 133 | # CDPATH.
|
---|
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 135 |
|
---|
| 136 | if test "x$CONFIG_SHELL" = x; then
|
---|
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 138 | emulate sh
|
---|
| 139 | NULLCMD=:
|
---|
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
| 141 | # is contrary to our usage. Disable this feature.
|
---|
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
| 143 | setopt NO_GLOB_SUBST
|
---|
| 144 | else
|
---|
| 145 | case \`(set -o) 2>/dev/null\` in #(
|
---|
| 146 | *posix*) :
|
---|
| 147 | set -o posix ;; #(
|
---|
| 148 | *) :
|
---|
| 149 | ;;
|
---|
| 150 | esac
|
---|
| 151 | fi
|
---|
| 152 | "
|
---|
| 153 | as_required="as_fn_return () { (exit \$1); }
|
---|
| 154 | as_fn_success () { as_fn_return 0; }
|
---|
| 155 | as_fn_failure () { as_fn_return 1; }
|
---|
| 156 | as_fn_ret_success () { return 0; }
|
---|
| 157 | as_fn_ret_failure () { return 1; }
|
---|
| 158 |
|
---|
| 159 | exitcode=0
|
---|
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
| 165 |
|
---|
| 166 | else
|
---|
| 167 | exitcode=1; echo positional parameters were not saved.
|
---|
| 168 | fi
|
---|
| 169 | test x\$exitcode = x0 || exit 1"
|
---|
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
| 174 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
| 175 | if (eval "$as_required") 2>/dev/null; then :
|
---|
| 176 | as_have_required=yes
|
---|
| 177 | else
|
---|
| 178 | as_have_required=no
|
---|
| 179 | fi
|
---|
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
| 181 |
|
---|
| 182 | else
|
---|
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 184 | as_found=false
|
---|
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
[8756] | 186 | do
|
---|
[22378] | 187 | IFS=$as_save_IFS
|
---|
| 188 | test -z "$as_dir" && as_dir=.
|
---|
| 189 | as_found=:
|
---|
| 190 | case $as_dir in #(
|
---|
| 191 | /*)
|
---|
| 192 | for as_base in sh bash ksh sh5; do
|
---|
| 193 | # Try only shells that exist, to save several forks.
|
---|
| 194 | as_shell=$as_dir/$as_base
|
---|
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 199 | break 2
|
---|
| 200 | fi
|
---|
| 201 | fi
|
---|
| 202 | done;;
|
---|
| 203 | esac
|
---|
| 204 | as_found=false
|
---|
| 205 | done
|
---|
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
| 209 | fi; }
|
---|
| 210 | IFS=$as_save_IFS
|
---|
| 211 |
|
---|
| 212 |
|
---|
| 213 | if test "x$CONFIG_SHELL" != x; then :
|
---|
| 214 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 215 | # neutralization value for shells without unset; and this also
|
---|
| 216 | # works around shells that cannot unset nonexistent variables.
|
---|
| 217 | BASH_ENV=/dev/null
|
---|
| 218 | ENV=/dev/null
|
---|
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 220 | export CONFIG_SHELL
|
---|
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
| 222 | fi
|
---|
| 223 |
|
---|
| 224 | if test x$as_have_required = xno; then :
|
---|
| 225 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
| 226 | $as_echo "$0: the shells that I found on your system."
|
---|
| 227 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
[8756] | 230 | else
|
---|
[22378] | 231 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
| 232 | $0: including any error possibly output before this
|
---|
| 233 | $0: message. Then install a modern shell, or manually run
|
---|
| 234 | $0: the script under such a shell if you do have one."
|
---|
[8756] | 235 | fi
|
---|
[22378] | 236 | exit 1
|
---|
| 237 | fi
|
---|
| 238 | fi
|
---|
| 239 | fi
|
---|
| 240 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 241 | export SHELL
|
---|
| 242 | # Unset more variables known to interfere with behavior of common tools.
|
---|
| 243 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
[8756] | 245 |
|
---|
[22378] | 246 | ## --------------------- ##
|
---|
| 247 | ## M4sh Shell Functions. ##
|
---|
| 248 | ## --------------------- ##
|
---|
| 249 | # as_fn_unset VAR
|
---|
| 250 | # ---------------
|
---|
| 251 | # Portably unset VAR.
|
---|
| 252 | as_fn_unset ()
|
---|
| 253 | {
|
---|
| 254 | { eval $1=; unset $1;}
|
---|
| 255 | }
|
---|
| 256 | as_unset=as_fn_unset
|
---|
| 257 |
|
---|
| 258 | # as_fn_set_status STATUS
|
---|
| 259 | # -----------------------
|
---|
| 260 | # Set $? to STATUS, without forking.
|
---|
| 261 | as_fn_set_status ()
|
---|
| 262 | {
|
---|
| 263 | return $1
|
---|
| 264 | } # as_fn_set_status
|
---|
| 265 |
|
---|
| 266 | # as_fn_exit STATUS
|
---|
| 267 | # -----------------
|
---|
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 269 | as_fn_exit ()
|
---|
| 270 | {
|
---|
| 271 | set +e
|
---|
| 272 | as_fn_set_status $1
|
---|
| 273 | exit $1
|
---|
| 274 | } # as_fn_exit
|
---|
| 275 |
|
---|
| 276 | # as_fn_mkdir_p
|
---|
| 277 | # -------------
|
---|
| 278 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 279 | as_fn_mkdir_p ()
|
---|
| 280 | {
|
---|
| 281 |
|
---|
| 282 | case $as_dir in #(
|
---|
| 283 | -*) as_dir=./$as_dir;;
|
---|
| 284 | esac
|
---|
| 285 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 286 | as_dirs=
|
---|
| 287 | while :; do
|
---|
| 288 | case $as_dir in #(
|
---|
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 290 | *) as_qdir=$as_dir;;
|
---|
| 291 | esac
|
---|
| 292 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 293 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 296 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 298 | $as_echo X"$as_dir" |
|
---|
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 300 | s//\1/
|
---|
| 301 | q
|
---|
| 302 | }
|
---|
| 303 | /^X\(\/\/\)[^/].*/{
|
---|
| 304 | s//\1/
|
---|
| 305 | q
|
---|
| 306 | }
|
---|
| 307 | /^X\(\/\/\)$/{
|
---|
| 308 | s//\1/
|
---|
| 309 | q
|
---|
| 310 | }
|
---|
| 311 | /^X\(\/\).*/{
|
---|
| 312 | s//\1/
|
---|
| 313 | q
|
---|
| 314 | }
|
---|
| 315 | s/.*/./; q'`
|
---|
| 316 | test -d "$as_dir" && break
|
---|
| 317 | done
|
---|
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
[23508] | 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
[22378] | 320 |
|
---|
| 321 |
|
---|
| 322 | } # as_fn_mkdir_p
|
---|
| 323 | # as_fn_append VAR VALUE
|
---|
| 324 | # ----------------------
|
---|
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 326 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 327 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 328 | # implementations.
|
---|
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 330 | eval 'as_fn_append ()
|
---|
| 331 | {
|
---|
| 332 | eval $1+=\$2
|
---|
| 333 | }'
|
---|
| 334 | else
|
---|
| 335 | as_fn_append ()
|
---|
| 336 | {
|
---|
| 337 | eval $1=\$$1\$2
|
---|
| 338 | }
|
---|
| 339 | fi # as_fn_append
|
---|
| 340 |
|
---|
| 341 | # as_fn_arith ARG...
|
---|
| 342 | # ------------------
|
---|
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 345 | # must be portable across $(()) and expr.
|
---|
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 347 | eval 'as_fn_arith ()
|
---|
| 348 | {
|
---|
| 349 | as_val=$(( $* ))
|
---|
| 350 | }'
|
---|
| 351 | else
|
---|
| 352 | as_fn_arith ()
|
---|
| 353 | {
|
---|
| 354 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 355 | }
|
---|
| 356 | fi # as_fn_arith
|
---|
| 357 |
|
---|
| 358 |
|
---|
[23508] | 359 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
| 360 | # ---------------------------------
|
---|
[22378] | 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
[23508] | 363 | # script with status $?, using 1 if that was 0.
|
---|
[22378] | 364 | as_fn_error ()
|
---|
| 365 | {
|
---|
[23508] | 366 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
| 367 | if test "$3"; then
|
---|
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
[22378] | 370 | fi
|
---|
[23508] | 371 | $as_echo "$as_me: error: $1" >&2
|
---|
[22378] | 372 | as_fn_exit $as_status
|
---|
| 373 | } # as_fn_error
|
---|
| 374 |
|
---|
| 375 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[8756] | 377 | as_expr=expr
|
---|
| 378 | else
|
---|
| 379 | as_expr=false
|
---|
| 380 | fi
|
---|
| 381 |
|
---|
[22378] | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[8756] | 383 | as_basename=basename
|
---|
| 384 | else
|
---|
| 385 | as_basename=false
|
---|
| 386 | fi
|
---|
| 387 |
|
---|
[22378] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 389 | as_dirname=dirname
|
---|
| 390 | else
|
---|
| 391 | as_dirname=false
|
---|
| 392 | fi
|
---|
[8756] | 393 |
|
---|
[22378] | 394 | as_me=`$as_basename -- "$0" ||
|
---|
[8756] | 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 396 | X"$0" : 'X\(//\)$' \| \
|
---|
[22378] | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 398 | $as_echo X/"$0" |
|
---|
| 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 400 | s//\1/
|
---|
| 401 | q
|
---|
| 402 | }
|
---|
| 403 | /^X\/\(\/\/\)$/{
|
---|
| 404 | s//\1/
|
---|
| 405 | q
|
---|
| 406 | }
|
---|
| 407 | /^X\/\(\/\).*/{
|
---|
| 408 | s//\1/
|
---|
| 409 | q
|
---|
| 410 | }
|
---|
| 411 | s/.*/./; q'`
|
---|
[8756] | 412 |
|
---|
[20853] | 413 | # Avoid depending upon Character Ranges.
|
---|
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 417 | as_cr_digits='0123456789'
|
---|
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[8756] | 419 |
|
---|
| 420 |
|
---|
[22378] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 426 | sed -n '
|
---|
| 427 | p
|
---|
| 428 | /[$]LINENO/=
|
---|
| 429 | ' <$as_myself |
|
---|
[8756] | 430 | sed '
|
---|
[22378] | 431 | s/[$]LINENO.*/&-/
|
---|
| 432 | t lineno
|
---|
| 433 | b
|
---|
| 434 | :lineno
|
---|
[8756] | 435 | N
|
---|
[22378] | 436 | :loop
|
---|
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[8756] | 438 | t loop
|
---|
[22378] | 439 | s/-\n.*//
|
---|
[8756] | 440 | ' >$as_me.lineno &&
|
---|
[22378] | 441 | chmod +x "$as_me.lineno" ||
|
---|
| 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
[8756] | 443 |
|
---|
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 445 | # (the dirname of $[0] is not the place where we might find the
|
---|
[22378] | 446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 447 | . "./$as_me.lineno"
|
---|
[8756] | 448 | # Exit status is that of the last command.
|
---|
| 449 | exit
|
---|
| 450 | }
|
---|
| 451 |
|
---|
[22378] | 452 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 453 | case `echo -n x` in #(((((
|
---|
| 454 | -n*)
|
---|
| 455 | case `echo 'xy\c'` in
|
---|
| 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 457 | xy) ECHO_C='\c';;
|
---|
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 459 | ECHO_T=' ';;
|
---|
| 460 | esac;;
|
---|
| 461 | *)
|
---|
| 462 | ECHO_N='-n';;
|
---|
[8756] | 463 | esac
|
---|
| 464 |
|
---|
[22378] | 465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 466 | if test -d conf$$.dir; then
|
---|
| 467 | rm -f conf$$.dir/conf$$.file
|
---|
[8756] | 468 | else
|
---|
[22378] | 469 | rm -f conf$$.dir
|
---|
| 470 | mkdir conf$$.dir 2>/dev/null
|
---|
[8756] | 471 | fi
|
---|
[22378] | 472 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 474 | as_ln_s='ln -s'
|
---|
| 475 | # ... but there are two gotchas:
|
---|
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 478 | # In both cases, we have to default to `cp -p'.
|
---|
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 480 | as_ln_s='cp -p'
|
---|
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 482 | as_ln_s=ln
|
---|
| 483 | else
|
---|
[8756] | 484 | as_ln_s='cp -p'
|
---|
[20853] | 485 | fi
|
---|
[8756] | 486 | else
|
---|
| 487 | as_ln_s='cp -p'
|
---|
| 488 | fi
|
---|
[22378] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 490 | rmdir conf$$.dir 2>/dev/null
|
---|
[8756] | 491 |
|
---|
| 492 | if mkdir -p . 2>/dev/null; then
|
---|
[22378] | 493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8756] | 494 | else
|
---|
| 495 | test -d ./-p && rmdir ./-p
|
---|
| 496 | as_mkdir_p=false
|
---|
| 497 | fi
|
---|
| 498 |
|
---|
[22378] | 499 | if test -x / >/dev/null 2>&1; then
|
---|
| 500 | as_test_x='test -x'
|
---|
| 501 | else
|
---|
| 502 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 503 | as_ls_L_option=L
|
---|
| 504 | else
|
---|
| 505 | as_ls_L_option=
|
---|
| 506 | fi
|
---|
| 507 | as_test_x='
|
---|
| 508 | eval sh -c '\''
|
---|
| 509 | if test -d "$1"; then
|
---|
| 510 | test -d "$1/.";
|
---|
| 511 | else
|
---|
| 512 | case $1 in #(
|
---|
| 513 | -*)set "./$1";;
|
---|
| 514 | esac;
|
---|
| 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
| 516 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 517 | '\'' sh
|
---|
| 518 | '
|
---|
| 519 | fi
|
---|
| 520 | as_executable_p=$as_test_x
|
---|
[8756] | 521 |
|
---|
| 522 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 524 |
|
---|
| 525 | # Sed expression to map a string onto a valid variable name.
|
---|
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 527 |
|
---|
| 528 |
|
---|
[22378] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 530 | exec 6>&1
|
---|
[8756] | 531 |
|
---|
| 532 | # Name of the host.
|
---|
[23508] | 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
[8756] | 534 | # so uname gets run too.
|
---|
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 536 |
|
---|
| 537 | #
|
---|
| 538 | # Initializations.
|
---|
| 539 | #
|
---|
[562] | 540 | ac_default_prefix=/usr/local
|
---|
[22378] | 541 | ac_clean_files=
|
---|
[8756] | 542 | ac_config_libobj_dir=.
|
---|
[22378] | 543 | LIBOBJS=
|
---|
[8756] | 544 | cross_compiling=no
|
---|
| 545 | subdirs=
|
---|
| 546 | MFLAGS=
|
---|
| 547 | MAKEFLAGS=
|
---|
[562] | 548 |
|
---|
[8756] | 549 | # Identity of this package.
|
---|
| 550 | PACKAGE_NAME=
|
---|
| 551 | PACKAGE_TARNAME=
|
---|
| 552 | PACKAGE_VERSION=
|
---|
| 553 | PACKAGE_STRING=
|
---|
| 554 | PACKAGE_BUGREPORT=
|
---|
[22378] | 555 | PACKAGE_URL=
|
---|
[8756] | 556 |
|
---|
| 557 | # Factoring default headers for most tests.
|
---|
| 558 | ac_includes_default="\
|
---|
| 559 | #include <stdio.h>
|
---|
[22378] | 560 | #ifdef HAVE_SYS_TYPES_H
|
---|
[8756] | 561 | # include <sys/types.h>
|
---|
| 562 | #endif
|
---|
[22378] | 563 | #ifdef HAVE_SYS_STAT_H
|
---|
[8756] | 564 | # include <sys/stat.h>
|
---|
| 565 | #endif
|
---|
[22378] | 566 | #ifdef STDC_HEADERS
|
---|
[8756] | 567 | # include <stdlib.h>
|
---|
| 568 | # include <stddef.h>
|
---|
| 569 | #else
|
---|
[22378] | 570 | # ifdef HAVE_STDLIB_H
|
---|
[8756] | 571 | # include <stdlib.h>
|
---|
| 572 | # endif
|
---|
| 573 | #endif
|
---|
[22378] | 574 | #ifdef HAVE_STRING_H
|
---|
| 575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[8756] | 576 | # include <memory.h>
|
---|
| 577 | # endif
|
---|
| 578 | # include <string.h>
|
---|
| 579 | #endif
|
---|
[22378] | 580 | #ifdef HAVE_STRINGS_H
|
---|
[8756] | 581 | # include <strings.h>
|
---|
| 582 | #endif
|
---|
[22378] | 583 | #ifdef HAVE_INTTYPES_H
|
---|
[8756] | 584 | # include <inttypes.h>
|
---|
| 585 | #endif
|
---|
[22378] | 586 | #ifdef HAVE_STDINT_H
|
---|
| 587 | # include <stdint.h>
|
---|
| 588 | #endif
|
---|
| 589 | #ifdef HAVE_UNISTD_H
|
---|
[8756] | 590 | # include <unistd.h>
|
---|
| 591 | #endif"
|
---|
| 592 |
|
---|
[22378] | 593 | enable_option_checking=no
|
---|
| 594 | ac_subst_vars='LTLIBOBJS
|
---|
| 595 | subdirs
|
---|
| 596 | MODULEDIRS
|
---|
| 597 | gsdlos
|
---|
| 598 | STATIC
|
---|
| 599 | LIBOBJS
|
---|
| 600 | ALLOCA
|
---|
| 601 | ANSI2KNR
|
---|
| 602 | U
|
---|
| 603 | EGREP
|
---|
| 604 | GREP
|
---|
| 605 | CPP
|
---|
| 606 | MICO_VER
|
---|
| 607 | RANLIB
|
---|
| 608 | SET_MAKE
|
---|
| 609 | LN_S
|
---|
| 610 | INSTALL_DATA
|
---|
| 611 | INSTALL_SCRIPT
|
---|
| 612 | INSTALL_PROGRAM
|
---|
| 613 | target_os
|
---|
| 614 | target_vendor
|
---|
| 615 | target_cpu
|
---|
| 616 | target
|
---|
| 617 | host_os
|
---|
| 618 | host_vendor
|
---|
| 619 | host_cpu
|
---|
| 620 | host
|
---|
| 621 | build_os
|
---|
| 622 | build_vendor
|
---|
| 623 | build_cpu
|
---|
| 624 | build
|
---|
| 625 | YFLAGS
|
---|
| 626 | YACC
|
---|
| 627 | AWK
|
---|
| 628 | ac_ct_CXX
|
---|
| 629 | CXXFLAGS
|
---|
| 630 | CXX
|
---|
| 631 | OBJEXT
|
---|
| 632 | EXEEXT
|
---|
| 633 | ac_ct_CC
|
---|
| 634 | CPPFLAGS
|
---|
| 635 | CC
|
---|
| 636 | CFLAGS
|
---|
| 637 | LDFLAGS
|
---|
| 638 | ENABLE_LUCENE
|
---|
| 639 | ENABLE_MGPP
|
---|
| 640 | ENABLE_MG
|
---|
| 641 | ENABLE_JNI
|
---|
| 642 | USE_APACHE_HTTPD
|
---|
| 643 | USE_SQLITE
|
---|
| 644 | ENABLE_ACCENTFOLD
|
---|
| 645 | USE_GDBM
|
---|
| 646 | USE_JDBM
|
---|
| 647 | USE_YAZ
|
---|
| 648 | USE_Z3950
|
---|
[23356] | 649 | ENABLE_JAVA
|
---|
[22378] | 650 | MICO_DIR
|
---|
| 651 | USE_CORBA
|
---|
| 652 | USE_LANGACTION
|
---|
| 653 | USE_FASTCGI
|
---|
| 654 | VERSION
|
---|
| 655 | PACKAGE
|
---|
| 656 | target_alias
|
---|
| 657 | host_alias
|
---|
| 658 | build_alias
|
---|
| 659 | LIBS
|
---|
| 660 | ECHO_T
|
---|
| 661 | ECHO_N
|
---|
| 662 | ECHO_C
|
---|
| 663 | DEFS
|
---|
| 664 | mandir
|
---|
| 665 | localedir
|
---|
| 666 | libdir
|
---|
| 667 | psdir
|
---|
| 668 | pdfdir
|
---|
| 669 | dvidir
|
---|
| 670 | htmldir
|
---|
| 671 | infodir
|
---|
| 672 | docdir
|
---|
| 673 | oldincludedir
|
---|
| 674 | includedir
|
---|
| 675 | localstatedir
|
---|
| 676 | sharedstatedir
|
---|
| 677 | sysconfdir
|
---|
| 678 | datadir
|
---|
| 679 | datarootdir
|
---|
| 680 | libexecdir
|
---|
| 681 | sbindir
|
---|
| 682 | bindir
|
---|
| 683 | program_transform_name
|
---|
| 684 | prefix
|
---|
| 685 | exec_prefix
|
---|
| 686 | PACKAGE_URL
|
---|
| 687 | PACKAGE_BUGREPORT
|
---|
| 688 | PACKAGE_STRING
|
---|
| 689 | PACKAGE_VERSION
|
---|
| 690 | PACKAGE_TARNAME
|
---|
| 691 | PACKAGE_NAME
|
---|
| 692 | PATH_SEPARATOR
|
---|
| 693 | SHELL'
|
---|
[8756] | 694 | ac_subst_files=''
|
---|
[22378] | 695 | ac_user_opts='
|
---|
| 696 | enable_option_checking
|
---|
| 697 | enable_corba
|
---|
| 698 | with_micodir
|
---|
[23356] | 699 | enable_java
|
---|
[22378] | 700 | enable_z3950
|
---|
| 701 | enable_yaz
|
---|
| 702 | enable_jdbm
|
---|
| 703 | enable_gdbm
|
---|
| 704 | enable_accentfold
|
---|
| 705 | enable_sqlite
|
---|
| 706 | enable_apache_httpd
|
---|
| 707 | enable_jni
|
---|
| 708 | enable_mg
|
---|
| 709 | enable_mgpp
|
---|
| 710 | enable_lucene
|
---|
| 711 | with_dmalloc
|
---|
| 712 | with_regex
|
---|
| 713 | '
|
---|
| 714 | ac_precious_vars='build_alias
|
---|
| 715 | host_alias
|
---|
| 716 | target_alias
|
---|
| 717 | CC
|
---|
| 718 | CFLAGS
|
---|
| 719 | LDFLAGS
|
---|
| 720 | LIBS
|
---|
| 721 | CPPFLAGS
|
---|
| 722 | CXX
|
---|
| 723 | CXXFLAGS
|
---|
| 724 | CCC
|
---|
| 725 | YACC
|
---|
| 726 | YFLAGS
|
---|
| 727 | CPP'
|
---|
| 728 | ac_subdirs_all='common-src
|
---|
| 729 | build-src
|
---|
| 730 | runtime-src'
|
---|
[8756] | 731 |
|
---|
[562] | 732 | # Initialize some variables set by options.
|
---|
[8756] | 733 | ac_init_help=
|
---|
| 734 | ac_init_version=false
|
---|
[22378] | 735 | ac_unrecognized_opts=
|
---|
| 736 | ac_unrecognized_sep=
|
---|
[562] | 737 | # The variables have the same names as the options, with
|
---|
| 738 | # dashes changed to underlines.
|
---|
[8756] | 739 | cache_file=/dev/null
|
---|
[562] | 740 | exec_prefix=NONE
|
---|
| 741 | no_create=
|
---|
| 742 | no_recursion=
|
---|
| 743 | prefix=NONE
|
---|
| 744 | program_prefix=NONE
|
---|
| 745 | program_suffix=NONE
|
---|
| 746 | program_transform_name=s,x,x,
|
---|
| 747 | silent=
|
---|
| 748 | site=
|
---|
| 749 | srcdir=
|
---|
| 750 | verbose=
|
---|
| 751 | x_includes=NONE
|
---|
| 752 | x_libraries=NONE
|
---|
[8756] | 753 |
|
---|
| 754 | # Installation directory options.
|
---|
| 755 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 756 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 757 | # by default will actually change.
|
---|
| 758 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[22378] | 759 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[562] | 760 | bindir='${exec_prefix}/bin'
|
---|
| 761 | sbindir='${exec_prefix}/sbin'
|
---|
| 762 | libexecdir='${exec_prefix}/libexec'
|
---|
[22378] | 763 | datarootdir='${prefix}/share'
|
---|
| 764 | datadir='${datarootdir}'
|
---|
[562] | 765 | sysconfdir='${prefix}/etc'
|
---|
| 766 | sharedstatedir='${prefix}/com'
|
---|
| 767 | localstatedir='${prefix}/var'
|
---|
| 768 | includedir='${prefix}/include'
|
---|
| 769 | oldincludedir='/usr/include'
|
---|
[22378] | 770 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 771 | infodir='${datarootdir}/info'
|
---|
| 772 | htmldir='${docdir}'
|
---|
| 773 | dvidir='${docdir}'
|
---|
| 774 | pdfdir='${docdir}'
|
---|
| 775 | psdir='${docdir}'
|
---|
| 776 | libdir='${exec_prefix}/lib'
|
---|
| 777 | localedir='${datarootdir}/locale'
|
---|
| 778 | mandir='${datarootdir}/man'
|
---|
[562] | 779 |
|
---|
| 780 | ac_prev=
|
---|
[22378] | 781 | ac_dashdash=
|
---|
[562] | 782 | for ac_option
|
---|
| 783 | do
|
---|
| 784 | # If the previous option needs an argument, assign it.
|
---|
| 785 | if test -n "$ac_prev"; then
|
---|
[22378] | 786 | eval $ac_prev=\$ac_option
|
---|
[562] | 787 | ac_prev=
|
---|
| 788 | continue
|
---|
| 789 | fi
|
---|
| 790 |
|
---|
[22378] | 791 | case $ac_option in
|
---|
[23508] | 792 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 793 | *) ac_optarg=yes ;;
|
---|
[22378] | 794 | esac
|
---|
[562] | 795 |
|
---|
| 796 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 797 |
|
---|
[22378] | 798 | case $ac_dashdash$ac_option in
|
---|
| 799 | --)
|
---|
| 800 | ac_dashdash=yes ;;
|
---|
[562] | 801 |
|
---|
| 802 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 803 | ac_prev=bindir ;;
|
---|
| 804 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 805 | bindir=$ac_optarg ;;
|
---|
[562] | 806 |
|
---|
| 807 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 808 | ac_prev=build_alias ;;
|
---|
[562] | 809 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 810 | build_alias=$ac_optarg ;;
|
---|
[562] | 811 |
|
---|
| 812 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 813 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 814 | ac_prev=cache_file ;;
|
---|
| 815 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 816 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 817 | cache_file=$ac_optarg ;;
|
---|
[562] | 818 |
|
---|
[8756] | 819 | --config-cache | -C)
|
---|
| 820 | cache_file=config.cache ;;
|
---|
| 821 |
|
---|
[22378] | 822 | -datadir | --datadir | --datadi | --datad)
|
---|
[562] | 823 | ac_prev=datadir ;;
|
---|
[22378] | 824 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[8756] | 825 | datadir=$ac_optarg ;;
|
---|
[562] | 826 |
|
---|
[22378] | 827 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 828 | | --dataroo | --dataro | --datar)
|
---|
| 829 | ac_prev=datarootdir ;;
|
---|
| 830 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 831 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 832 | datarootdir=$ac_optarg ;;
|
---|
| 833 |
|
---|
[562] | 834 | -disable-* | --disable-*)
|
---|
[22378] | 835 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 836 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 837 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[23508] | 838 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
[22378] | 839 | ac_useropt_orig=$ac_useropt
|
---|
| 840 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 841 | case $ac_user_opts in
|
---|
| 842 | *"
|
---|
| 843 | "enable_$ac_useropt"
|
---|
| 844 | "*) ;;
|
---|
| 845 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 846 | ac_unrecognized_sep=', ';;
|
---|
| 847 | esac
|
---|
| 848 | eval enable_$ac_useropt=no ;;
|
---|
[562] | 849 |
|
---|
[22378] | 850 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 851 | ac_prev=docdir ;;
|
---|
| 852 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 853 | docdir=$ac_optarg ;;
|
---|
| 854 |
|
---|
| 855 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 856 | ac_prev=dvidir ;;
|
---|
| 857 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 858 | dvidir=$ac_optarg ;;
|
---|
| 859 |
|
---|
[562] | 860 | -enable-* | --enable-*)
|
---|
[22378] | 861 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 862 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 863 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[23508] | 864 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
[22378] | 865 | ac_useropt_orig=$ac_useropt
|
---|
| 866 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 867 | case $ac_user_opts in
|
---|
| 868 | *"
|
---|
| 869 | "enable_$ac_useropt"
|
---|
| 870 | "*) ;;
|
---|
| 871 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 872 | ac_unrecognized_sep=', ';;
|
---|
[20853] | 873 | esac
|
---|
[22378] | 874 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
[562] | 875 |
|
---|
| 876 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 877 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 878 | | --exec | --exe | --ex)
|
---|
| 879 | ac_prev=exec_prefix ;;
|
---|
| 880 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 881 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 882 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 883 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 884 |
|
---|
| 885 | -gas | --gas | --ga | --g)
|
---|
| 886 | # Obsolete; use --with-gas.
|
---|
| 887 | with_gas=yes ;;
|
---|
| 888 |
|
---|
[8756] | 889 | -help | --help | --hel | --he | -h)
|
---|
| 890 | ac_init_help=long ;;
|
---|
| 891 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 892 | ac_init_help=recursive ;;
|
---|
| 893 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 894 | ac_init_help=short ;;
|
---|
[562] | 895 |
|
---|
| 896 | -host | --host | --hos | --ho)
|
---|
[8756] | 897 | ac_prev=host_alias ;;
|
---|
[562] | 898 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 899 | host_alias=$ac_optarg ;;
|
---|
[562] | 900 |
|
---|
[22378] | 901 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 902 | ac_prev=htmldir ;;
|
---|
| 903 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 904 | | --ht=*)
|
---|
| 905 | htmldir=$ac_optarg ;;
|
---|
| 906 |
|
---|
[562] | 907 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 908 | | --includ | --inclu | --incl | --inc)
|
---|
| 909 | ac_prev=includedir ;;
|
---|
| 910 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 911 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 912 | includedir=$ac_optarg ;;
|
---|
[562] | 913 |
|
---|
| 914 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 915 | ac_prev=infodir ;;
|
---|
| 916 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 917 | infodir=$ac_optarg ;;
|
---|
[562] | 918 |
|
---|
| 919 | -libdir | --libdir | --libdi | --libd)
|
---|
| 920 | ac_prev=libdir ;;
|
---|
| 921 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 922 | libdir=$ac_optarg ;;
|
---|
[562] | 923 |
|
---|
| 924 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 925 | | --libexe | --libex | --libe)
|
---|
| 926 | ac_prev=libexecdir ;;
|
---|
| 927 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 928 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 929 | libexecdir=$ac_optarg ;;
|
---|
[562] | 930 |
|
---|
[22378] | 931 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 932 | ac_prev=localedir ;;
|
---|
| 933 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 934 | localedir=$ac_optarg ;;
|
---|
| 935 |
|
---|
[562] | 936 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[22378] | 937 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[562] | 938 | ac_prev=localstatedir ;;
|
---|
| 939 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[22378] | 940 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[8756] | 941 | localstatedir=$ac_optarg ;;
|
---|
[562] | 942 |
|
---|
| 943 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 944 | ac_prev=mandir ;;
|
---|
| 945 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 946 | mandir=$ac_optarg ;;
|
---|
[562] | 947 |
|
---|
| 948 | -nfp | --nfp | --nf)
|
---|
| 949 | # Obsolete; use --without-fp.
|
---|
| 950 | with_fp=no ;;
|
---|
| 951 |
|
---|
| 952 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 953 | | --no-cr | --no-c | -n)
|
---|
[562] | 954 | no_create=yes ;;
|
---|
| 955 |
|
---|
| 956 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 957 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 958 | no_recursion=yes ;;
|
---|
| 959 |
|
---|
| 960 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 961 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 962 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 963 | ac_prev=oldincludedir ;;
|
---|
| 964 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 965 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 966 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 967 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 968 |
|
---|
| 969 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 970 | ac_prev=prefix ;;
|
---|
| 971 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 972 | prefix=$ac_optarg ;;
|
---|
[562] | 973 |
|
---|
| 974 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 975 | | --program-pre | --program-pr | --program-p)
|
---|
| 976 | ac_prev=program_prefix ;;
|
---|
| 977 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 978 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 979 | program_prefix=$ac_optarg ;;
|
---|
[562] | 980 |
|
---|
| 981 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 982 | | --program-suf | --program-su | --program-s)
|
---|
| 983 | ac_prev=program_suffix ;;
|
---|
| 984 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 985 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 986 | program_suffix=$ac_optarg ;;
|
---|
[562] | 987 |
|
---|
| 988 | -program-transform-name | --program-transform-name \
|
---|
| 989 | | --program-transform-nam | --program-transform-na \
|
---|
| 990 | | --program-transform-n | --program-transform- \
|
---|
| 991 | | --program-transform | --program-transfor \
|
---|
| 992 | | --program-transfo | --program-transf \
|
---|
| 993 | | --program-trans | --program-tran \
|
---|
| 994 | | --progr-tra | --program-tr | --program-t)
|
---|
| 995 | ac_prev=program_transform_name ;;
|
---|
| 996 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 997 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 998 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 999 | | --program-transform=* | --program-transfor=* \
|
---|
| 1000 | | --program-transfo=* | --program-transf=* \
|
---|
| 1001 | | --program-trans=* | --program-tran=* \
|
---|
| 1002 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 1003 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 1004 |
|
---|
[22378] | 1005 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 1006 | ac_prev=pdfdir ;;
|
---|
| 1007 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 1008 | pdfdir=$ac_optarg ;;
|
---|
| 1009 |
|
---|
| 1010 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 1011 | ac_prev=psdir ;;
|
---|
| 1012 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 1013 | psdir=$ac_optarg ;;
|
---|
| 1014 |
|
---|
[562] | 1015 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1016 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1017 | silent=yes ;;
|
---|
| 1018 |
|
---|
| 1019 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1020 | ac_prev=sbindir ;;
|
---|
| 1021 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1022 | | --sbi=* | --sb=*)
|
---|
[8756] | 1023 | sbindir=$ac_optarg ;;
|
---|
[562] | 1024 |
|
---|
| 1025 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1026 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1027 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1028 | | --sha | --sh)
|
---|
| 1029 | ac_prev=sharedstatedir ;;
|
---|
| 1030 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1031 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1032 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1033 | | --sha=* | --sh=*)
|
---|
[8756] | 1034 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 1035 |
|
---|
| 1036 | -site | --site | --sit)
|
---|
| 1037 | ac_prev=site ;;
|
---|
| 1038 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 1039 | site=$ac_optarg ;;
|
---|
[562] | 1040 |
|
---|
| 1041 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1042 | ac_prev=srcdir ;;
|
---|
| 1043 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 1044 | srcdir=$ac_optarg ;;
|
---|
[562] | 1045 |
|
---|
| 1046 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1047 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1048 | ac_prev=sysconfdir ;;
|
---|
| 1049 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1050 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 1051 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 1052 |
|
---|
| 1053 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 1054 | ac_prev=target_alias ;;
|
---|
[562] | 1055 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 1056 | target_alias=$ac_optarg ;;
|
---|
[562] | 1057 |
|
---|
| 1058 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1059 | verbose=yes ;;
|
---|
| 1060 |
|
---|
[8756] | 1061 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1062 | ac_init_version=: ;;
|
---|
[562] | 1063 |
|
---|
| 1064 | -with-* | --with-*)
|
---|
[22378] | 1065 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 1066 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 1067 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[23508] | 1068 | as_fn_error "invalid package name: $ac_useropt"
|
---|
[22378] | 1069 | ac_useropt_orig=$ac_useropt
|
---|
| 1070 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1071 | case $ac_user_opts in
|
---|
| 1072 | *"
|
---|
| 1073 | "with_$ac_useropt"
|
---|
| 1074 | "*) ;;
|
---|
| 1075 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1076 | ac_unrecognized_sep=', ';;
|
---|
[20853] | 1077 | esac
|
---|
[22378] | 1078 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
[562] | 1079 |
|
---|
| 1080 | -without-* | --without-*)
|
---|
[22378] | 1081 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 1082 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 1083 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[23508] | 1084 | as_fn_error "invalid package name: $ac_useropt"
|
---|
[22378] | 1085 | ac_useropt_orig=$ac_useropt
|
---|
| 1086 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1087 | case $ac_user_opts in
|
---|
| 1088 | *"
|
---|
| 1089 | "with_$ac_useropt"
|
---|
| 1090 | "*) ;;
|
---|
| 1091 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1092 | ac_unrecognized_sep=', ';;
|
---|
| 1093 | esac
|
---|
| 1094 | eval with_$ac_useropt=no ;;
|
---|
[562] | 1095 |
|
---|
| 1096 | --x)
|
---|
| 1097 | # Obsolete; use --with-x.
|
---|
| 1098 | with_x=yes ;;
|
---|
| 1099 |
|
---|
| 1100 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1101 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1102 | ac_prev=x_includes ;;
|
---|
| 1103 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1104 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 1105 | x_includes=$ac_optarg ;;
|
---|
[562] | 1106 |
|
---|
| 1107 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1108 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1109 | ac_prev=x_libraries ;;
|
---|
| 1110 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1111 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 1112 | x_libraries=$ac_optarg ;;
|
---|
[562] | 1113 |
|
---|
[23508] | 1114 | -*) as_fn_error "unrecognized option: \`$ac_option'
|
---|
| 1115 | Try \`$0 --help' for more information."
|
---|
[562] | 1116 | ;;
|
---|
| 1117 |
|
---|
[8756] | 1118 | *=*)
|
---|
| 1119 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1120 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 1121 | case $ac_envvar in #(
|
---|
| 1122 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
[23508] | 1123 | as_fn_error "invalid variable name: \`$ac_envvar'" ;;
|
---|
[22378] | 1124 | esac
|
---|
| 1125 | eval $ac_envvar=\$ac_optarg
|
---|
[8756] | 1126 | export $ac_envvar ;;
|
---|
| 1127 |
|
---|
[562] | 1128 | *)
|
---|
[8756] | 1129 | # FIXME: should be removed in autoconf 3.0.
|
---|
[22378] | 1130 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[8756] | 1131 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[22378] | 1132 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[8756] | 1133 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 1134 | ;;
|
---|
| 1135 |
|
---|
| 1136 | esac
|
---|
| 1137 | done
|
---|
| 1138 |
|
---|
| 1139 | if test -n "$ac_prev"; then
|
---|
[8756] | 1140 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[23508] | 1141 | as_fn_error "missing argument to $ac_option"
|
---|
[562] | 1142 | fi
|
---|
| 1143 |
|
---|
[22378] | 1144 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1145 | case $enable_option_checking in
|
---|
| 1146 | no) ;;
|
---|
[23508] | 1147 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
[22378] | 1148 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
[8756] | 1149 | esac
|
---|
[22378] | 1150 | fi
|
---|
[8200] | 1151 |
|
---|
[22378] | 1152 | # Check all directory arguments for consistency.
|
---|
| 1153 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1154 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1155 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1156 | libdir localedir mandir
|
---|
[20853] | 1157 | do
|
---|
[22378] | 1158 | eval ac_val=\$$ac_var
|
---|
| 1159 | # Remove trailing slashes.
|
---|
[20853] | 1160 | case $ac_val in
|
---|
[22378] | 1161 | */ )
|
---|
| 1162 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1163 | eval $ac_var=\$ac_val;;
|
---|
[20853] | 1164 | esac
|
---|
[22378] | 1165 | # Be sure to have absolute directory names.
|
---|
| 1166 | case $ac_val in
|
---|
| 1167 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1168 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1169 | esac
|
---|
[23508] | 1170 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
[20853] | 1171 | done
|
---|
| 1172 |
|
---|
[8756] | 1173 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1174 | # used to hold the argument of --host etc.
|
---|
| 1175 | # FIXME: To remove some day.
|
---|
| 1176 | build=$build_alias
|
---|
| 1177 | host=$host_alias
|
---|
| 1178 | target=$target_alias
|
---|
[562] | 1179 |
|
---|
[8756] | 1180 | # FIXME: To remove some day.
|
---|
| 1181 | if test "x$host_alias" != x; then
|
---|
| 1182 | if test "x$build_alias" = x; then
|
---|
| 1183 | cross_compiling=maybe
|
---|
[23508] | 1184 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 1185 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
[8756] | 1186 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1187 | cross_compiling=yes
|
---|
| 1188 | fi
|
---|
| 1189 | fi
|
---|
[562] | 1190 |
|
---|
[8756] | 1191 | ac_tool_prefix=
|
---|
| 1192 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 1193 |
|
---|
[8756] | 1194 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1195 |
|
---|
| 1196 |
|
---|
[22378] | 1197 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1198 | ac_ls_di=`ls -di .` &&
|
---|
| 1199 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
[23508] | 1200 | as_fn_error "working directory cannot be determined"
|
---|
[22378] | 1201 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
[23508] | 1202 | as_fn_error "pwd does not report name of working directory"
|
---|
[22378] | 1203 |
|
---|
| 1204 |
|
---|
[562] | 1205 | # Find the source files, if location was not specified.
|
---|
| 1206 | if test -z "$srcdir"; then
|
---|
| 1207 | ac_srcdir_defaulted=yes
|
---|
[22378] | 1208 | # Try the directory containing this script, then the parent directory.
|
---|
| 1209 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1210 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1211 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1212 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1213 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1214 | $as_echo X"$as_myself" |
|
---|
| 1215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1216 | s//\1/
|
---|
| 1217 | q
|
---|
| 1218 | }
|
---|
| 1219 | /^X\(\/\/\)[^/].*/{
|
---|
| 1220 | s//\1/
|
---|
| 1221 | q
|
---|
| 1222 | }
|
---|
| 1223 | /^X\(\/\/\)$/{
|
---|
| 1224 | s//\1/
|
---|
| 1225 | q
|
---|
| 1226 | }
|
---|
| 1227 | /^X\(\/\).*/{
|
---|
| 1228 | s//\1/
|
---|
| 1229 | q
|
---|
| 1230 | }
|
---|
| 1231 | s/.*/./; q'`
|
---|
[562] | 1232 | srcdir=$ac_confdir
|
---|
[22378] | 1233 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[562] | 1234 | srcdir=..
|
---|
| 1235 | fi
|
---|
| 1236 | else
|
---|
| 1237 | ac_srcdir_defaulted=no
|
---|
| 1238 | fi
|
---|
[22378] | 1239 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1240 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
[23508] | 1241 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
[20842] | 1242 | fi
|
---|
[22378] | 1243 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1244 | ac_abs_confdir=`(
|
---|
[23508] | 1245 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
|
---|
[22378] | 1246 | pwd)`
|
---|
| 1247 | # When building in place, set srcdir=.
|
---|
| 1248 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1249 | srcdir=.
|
---|
| 1250 | fi
|
---|
| 1251 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1252 | # Double slashes in file names in object file debugging info
|
---|
| 1253 | # mess up M-x gdb in Emacs.
|
---|
| 1254 | case $srcdir in
|
---|
| 1255 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1256 | esac
|
---|
| 1257 | for ac_var in $ac_precious_vars; do
|
---|
| 1258 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1259 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1260 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1261 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1262 | done
|
---|
[562] | 1263 |
|
---|
[8756] | 1264 | #
|
---|
| 1265 | # Report the --help message.
|
---|
| 1266 | #
|
---|
| 1267 | if test "$ac_init_help" = "long"; then
|
---|
| 1268 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1269 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 1270 | cat <<_ACEOF
|
---|
| 1271 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1272 |
|
---|
| 1273 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1274 |
|
---|
| 1275 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1276 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1277 |
|
---|
| 1278 | Defaults for the options are specified in brackets.
|
---|
| 1279 |
|
---|
| 1280 | Configuration:
|
---|
| 1281 | -h, --help display this help and exit
|
---|
| 1282 | --help=short display options specific to this package
|
---|
| 1283 | --help=recursive display the short help of all the included packages
|
---|
| 1284 | -V, --version display version information and exit
|
---|
[23508] | 1285 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
[8756] | 1286 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1287 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1288 | -n, --no-create do not create output files
|
---|
| 1289 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1290 |
|
---|
| 1291 | Installation directories:
|
---|
| 1292 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[22378] | 1293 | [$ac_default_prefix]
|
---|
[8756] | 1294 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[22378] | 1295 | [PREFIX]
|
---|
[8756] | 1296 |
|
---|
| 1297 | By default, \`make install' will install all the files in
|
---|
| 1298 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1299 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1300 | for instance \`--prefix=\$HOME'.
|
---|
| 1301 |
|
---|
| 1302 | For better control, use the options below.
|
---|
| 1303 |
|
---|
| 1304 | Fine tuning of the installation directories:
|
---|
[22378] | 1305 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1306 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1307 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1308 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1309 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1310 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1311 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1312 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1313 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1314 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1315 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1316 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1317 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1318 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1319 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1320 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1321 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1322 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1323 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[8756] | 1324 | _ACEOF
|
---|
| 1325 |
|
---|
| 1326 | cat <<\_ACEOF
|
---|
| 1327 |
|
---|
| 1328 | System types:
|
---|
| 1329 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1330 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1331 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 1332 | _ACEOF
|
---|
| 1333 | fi
|
---|
| 1334 |
|
---|
| 1335 | if test -n "$ac_init_help"; then
|
---|
| 1336 |
|
---|
| 1337 | cat <<\_ACEOF
|
---|
| 1338 |
|
---|
| 1339 | Optional Features:
|
---|
[22378] | 1340 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
[8756] | 1341 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1342 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1343 | --enable-corba Enable CORBA support
|
---|
[23356] | 1344 | --disable-java Disable Java compilation
|
---|
[8756] | 1345 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 1346 | --disable-yaz Disable YAZ compilation
|
---|
[23356] | 1347 | --disable-jdbm Disable JDBM compilation
|
---|
| 1348 | --disable-gdbm Disable GDBM compilation
|
---|
[15816] | 1349 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 1350 | --disable-sqlite Disable SQLite support
|
---|
[23356] | 1351 | --enable-apache-httpd Enable Apache httpd support
|
---|
| 1352 | --enable-jni Enable JNI compilation
|
---|
| 1353 | --disable-mg Disable MG compilation
|
---|
| 1354 | --disable-mgpp Disable MGPP compilation
|
---|
[21330] | 1355 | --disable-lucene Disable Lucene compilation
|
---|
[8756] | 1356 |
|
---|
| 1357 | Optional Packages:
|
---|
| 1358 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1359 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1360 | --with-micodir Use installed MICO directory
|
---|
| 1361 | --with-dmalloc use dmalloc, as in
|
---|
| 1362 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1363 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1364 |
|
---|
| 1365 | Some influential environment variables:
|
---|
| 1366 | CC C compiler command
|
---|
| 1367 | CFLAGS C compiler flags
|
---|
| 1368 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1369 | nonstandard directory <lib dir>
|
---|
[22378] | 1370 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1371 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
| 1372 | you have headers in a nonstandard directory <include dir>
|
---|
[8756] | 1373 | CXX C++ compiler command
|
---|
| 1374 | CXXFLAGS C++ compiler flags
|
---|
[22378] | 1375 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
| 1376 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
| 1377 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1378 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1379 | default value of `-d' given by some make applications.
|
---|
[8756] | 1380 | CPP C preprocessor
|
---|
| 1381 |
|
---|
| 1382 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1383 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1384 |
|
---|
[22378] | 1385 | Report bugs to the package provider.
|
---|
[8756] | 1386 | _ACEOF
|
---|
[22378] | 1387 | ac_status=$?
|
---|
[8756] | 1388 | fi
|
---|
| 1389 |
|
---|
| 1390 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1391 | # If there are subdirs, report their specific --help.
|
---|
| 1392 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[22378] | 1393 | test -d "$ac_dir" ||
|
---|
| 1394 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1395 | continue
|
---|
[8756] | 1396 | ac_builddir=.
|
---|
| 1397 |
|
---|
[22378] | 1398 | case "$ac_dir" in
|
---|
| 1399 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1400 | *)
|
---|
| 1401 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1402 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1403 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1404 | case $ac_top_builddir_sub in
|
---|
| 1405 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1406 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1407 | esac ;;
|
---|
| 1408 | esac
|
---|
| 1409 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1410 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1411 | # for backward compatibility:
|
---|
| 1412 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8756] | 1413 |
|
---|
| 1414 | case $srcdir in
|
---|
[22378] | 1415 | .) # We are building in place.
|
---|
[8756] | 1416 | ac_srcdir=.
|
---|
[22378] | 1417 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1418 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1419 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 1420 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[22378] | 1421 | ac_top_srcdir=$srcdir
|
---|
| 1422 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1423 | *) # Relative name.
|
---|
| 1424 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1425 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1426 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 1427 | esac
|
---|
[22378] | 1428 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[8756] | 1429 |
|
---|
[22378] | 1430 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1431 | # Check for guested configure.
|
---|
| 1432 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1433 | echo &&
|
---|
| 1434 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1435 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1436 | echo &&
|
---|
| 1437 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[8756] | 1438 | else
|
---|
[22378] | 1439 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1440 | fi || ac_status=$?
|
---|
| 1441 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[8756] | 1442 | done
|
---|
| 1443 | fi
|
---|
| 1444 |
|
---|
[22378] | 1445 | test -n "$ac_init_help" && exit $ac_status
|
---|
[8756] | 1446 | if $ac_init_version; then
|
---|
| 1447 | cat <<\_ACEOF
|
---|
[22378] | 1448 | configure
|
---|
[23508] | 1449 | generated by GNU Autoconf 2.65
|
---|
[8756] | 1450 |
|
---|
[23508] | 1451 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
[8756] | 1452 | This configure script is free software; the Free Software Foundation
|
---|
| 1453 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 1454 | _ACEOF
|
---|
[22378] | 1455 | exit
|
---|
[8756] | 1456 | fi
|
---|
[22378] | 1457 |
|
---|
| 1458 | ## ------------------------ ##
|
---|
| 1459 | ## Autoconf initialization. ##
|
---|
| 1460 | ## ------------------------ ##
|
---|
| 1461 |
|
---|
| 1462 | # ac_fn_c_try_compile LINENO
|
---|
| 1463 | # --------------------------
|
---|
| 1464 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1465 | ac_fn_c_try_compile ()
|
---|
| 1466 | {
|
---|
| 1467 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1468 | rm -f conftest.$ac_objext
|
---|
| 1469 | if { { ac_try="$ac_compile"
|
---|
| 1470 | case "(($ac_try" in
|
---|
| 1471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1472 | *) ac_try_echo=$ac_try;;
|
---|
| 1473 | esac
|
---|
| 1474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1475 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1476 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1477 | ac_status=$?
|
---|
| 1478 | if test -s conftest.err; then
|
---|
| 1479 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1480 | cat conftest.er1 >&5
|
---|
| 1481 | mv -f conftest.er1 conftest.err
|
---|
| 1482 | fi
|
---|
| 1483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1484 | test $ac_status = 0; } && {
|
---|
| 1485 | test -z "$ac_c_werror_flag" ||
|
---|
| 1486 | test ! -s conftest.err
|
---|
| 1487 | } && test -s conftest.$ac_objext; then :
|
---|
| 1488 | ac_retval=0
|
---|
| 1489 | else
|
---|
| 1490 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1491 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1492 |
|
---|
| 1493 | ac_retval=1
|
---|
| 1494 | fi
|
---|
| 1495 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1496 | as_fn_set_status $ac_retval
|
---|
| 1497 |
|
---|
| 1498 | } # ac_fn_c_try_compile
|
---|
| 1499 |
|
---|
| 1500 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1501 | # ----------------------------
|
---|
| 1502 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1503 | ac_fn_cxx_try_compile ()
|
---|
| 1504 | {
|
---|
| 1505 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1506 | rm -f conftest.$ac_objext
|
---|
| 1507 | if { { ac_try="$ac_compile"
|
---|
| 1508 | case "(($ac_try" in
|
---|
| 1509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1510 | *) ac_try_echo=$ac_try;;
|
---|
| 1511 | esac
|
---|
| 1512 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1513 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1514 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1515 | ac_status=$?
|
---|
| 1516 | if test -s conftest.err; then
|
---|
| 1517 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1518 | cat conftest.er1 >&5
|
---|
| 1519 | mv -f conftest.er1 conftest.err
|
---|
| 1520 | fi
|
---|
| 1521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1522 | test $ac_status = 0; } && {
|
---|
| 1523 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1524 | test ! -s conftest.err
|
---|
| 1525 | } && test -s conftest.$ac_objext; then :
|
---|
| 1526 | ac_retval=0
|
---|
| 1527 | else
|
---|
| 1528 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1529 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1530 |
|
---|
| 1531 | ac_retval=1
|
---|
| 1532 | fi
|
---|
| 1533 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1534 | as_fn_set_status $ac_retval
|
---|
| 1535 |
|
---|
| 1536 | } # ac_fn_cxx_try_compile
|
---|
| 1537 |
|
---|
| 1538 | # ac_fn_c_try_cpp LINENO
|
---|
| 1539 | # ----------------------
|
---|
| 1540 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1541 | ac_fn_c_try_cpp ()
|
---|
| 1542 | {
|
---|
| 1543 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1544 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 1545 | case "(($ac_try" in
|
---|
| 1546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1547 | *) ac_try_echo=$ac_try;;
|
---|
| 1548 | esac
|
---|
| 1549 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1550 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1551 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
| 1552 | ac_status=$?
|
---|
| 1553 | if test -s conftest.err; then
|
---|
| 1554 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1555 | cat conftest.er1 >&5
|
---|
| 1556 | mv -f conftest.er1 conftest.err
|
---|
| 1557 | fi
|
---|
| 1558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
[23508] | 1559 | test $ac_status = 0; } >/dev/null && {
|
---|
[22378] | 1560 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 1561 | test ! -s conftest.err
|
---|
| 1562 | }; then :
|
---|
| 1563 | ac_retval=0
|
---|
| 1564 | else
|
---|
| 1565 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1566 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1567 |
|
---|
| 1568 | ac_retval=1
|
---|
| 1569 | fi
|
---|
| 1570 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1571 | as_fn_set_status $ac_retval
|
---|
| 1572 |
|
---|
| 1573 | } # ac_fn_c_try_cpp
|
---|
| 1574 |
|
---|
| 1575 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1576 | # -------------------------------------------------------
|
---|
| 1577 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1578 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1579 | # accordingly.
|
---|
| 1580 | ac_fn_c_check_header_mongrel ()
|
---|
| 1581 | {
|
---|
| 1582 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
[23508] | 1583 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1585 | $as_echo_n "checking for $2... " >&6; }
|
---|
[23508] | 1586 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 1587 | $as_echo_n "(cached) " >&6
|
---|
| 1588 | fi
|
---|
| 1589 | eval ac_res=\$$3
|
---|
| 1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1591 | $as_echo "$ac_res" >&6; }
|
---|
| 1592 | else
|
---|
| 1593 | # Is the header compilable?
|
---|
| 1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1595 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1597 | /* end confdefs.h. */
|
---|
| 1598 | $4
|
---|
| 1599 | #include <$2>
|
---|
| 1600 | _ACEOF
|
---|
| 1601 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1602 | ac_header_compiler=yes
|
---|
| 1603 | else
|
---|
| 1604 | ac_header_compiler=no
|
---|
| 1605 | fi
|
---|
| 1606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1608 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1609 |
|
---|
| 1610 | # Is the header present?
|
---|
| 1611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1612 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1614 | /* end confdefs.h. */
|
---|
| 1615 | #include <$2>
|
---|
| 1616 | _ACEOF
|
---|
| 1617 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1618 | ac_header_preproc=yes
|
---|
| 1619 | else
|
---|
| 1620 | ac_header_preproc=no
|
---|
| 1621 | fi
|
---|
[23508] | 1622 | rm -f conftest.err conftest.$ac_ext
|
---|
[22378] | 1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1624 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1625 |
|
---|
| 1626 | # So? What about this header?
|
---|
| 1627 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1628 | yes:no: )
|
---|
| 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1630 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1632 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1633 | ;;
|
---|
| 1634 | no:yes:* )
|
---|
| 1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1636 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1638 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1640 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1642 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1644 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1645 | ;;
|
---|
| 1646 | esac
|
---|
| 1647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1648 | $as_echo_n "checking for $2... " >&6; }
|
---|
[23508] | 1649 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 1650 | $as_echo_n "(cached) " >&6
|
---|
| 1651 | else
|
---|
| 1652 | eval "$3=\$ac_header_compiler"
|
---|
| 1653 | fi
|
---|
| 1654 | eval ac_res=\$$3
|
---|
| 1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1656 | $as_echo "$ac_res" >&6; }
|
---|
| 1657 | fi
|
---|
| 1658 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1659 |
|
---|
| 1660 | } # ac_fn_c_check_header_mongrel
|
---|
| 1661 |
|
---|
| 1662 | # ac_fn_c_try_run LINENO
|
---|
| 1663 | # ----------------------
|
---|
| 1664 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1665 | # that executables *can* be run.
|
---|
| 1666 | ac_fn_c_try_run ()
|
---|
| 1667 | {
|
---|
| 1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1669 | if { { ac_try="$ac_link"
|
---|
| 1670 | case "(($ac_try" in
|
---|
| 1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1672 | *) ac_try_echo=$ac_try;;
|
---|
| 1673 | esac
|
---|
| 1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1675 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1676 | (eval "$ac_link") 2>&5
|
---|
| 1677 | ac_status=$?
|
---|
| 1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1679 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1680 | { { case "(($ac_try" in
|
---|
| 1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1682 | *) ac_try_echo=$ac_try;;
|
---|
| 1683 | esac
|
---|
| 1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1685 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1686 | (eval "$ac_try") 2>&5
|
---|
| 1687 | ac_status=$?
|
---|
| 1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1689 | test $ac_status = 0; }; }; then :
|
---|
| 1690 | ac_retval=0
|
---|
| 1691 | else
|
---|
| 1692 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1693 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1694 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1695 |
|
---|
| 1696 | ac_retval=$ac_status
|
---|
| 1697 | fi
|
---|
| 1698 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1699 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1700 | as_fn_set_status $ac_retval
|
---|
| 1701 |
|
---|
| 1702 | } # ac_fn_c_try_run
|
---|
| 1703 |
|
---|
| 1704 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1705 | # -------------------------------------------------------
|
---|
| 1706 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1707 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1708 | ac_fn_c_check_header_compile ()
|
---|
| 1709 | {
|
---|
| 1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1712 | $as_echo_n "checking for $2... " >&6; }
|
---|
[23508] | 1713 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 1714 | $as_echo_n "(cached) " >&6
|
---|
| 1715 | else
|
---|
| 1716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1717 | /* end confdefs.h. */
|
---|
| 1718 | $4
|
---|
| 1719 | #include <$2>
|
---|
| 1720 | _ACEOF
|
---|
| 1721 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1722 | eval "$3=yes"
|
---|
| 1723 | else
|
---|
| 1724 | eval "$3=no"
|
---|
| 1725 | fi
|
---|
| 1726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1727 | fi
|
---|
| 1728 | eval ac_res=\$$3
|
---|
| 1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1730 | $as_echo "$ac_res" >&6; }
|
---|
| 1731 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1732 |
|
---|
| 1733 | } # ac_fn_c_check_header_compile
|
---|
| 1734 |
|
---|
| 1735 | # ac_fn_c_try_link LINENO
|
---|
| 1736 | # -----------------------
|
---|
| 1737 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1738 | ac_fn_c_try_link ()
|
---|
| 1739 | {
|
---|
| 1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1741 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1742 | if { { ac_try="$ac_link"
|
---|
| 1743 | case "(($ac_try" in
|
---|
| 1744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1745 | *) ac_try_echo=$ac_try;;
|
---|
| 1746 | esac
|
---|
| 1747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1748 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1749 | (eval "$ac_link") 2>conftest.err
|
---|
| 1750 | ac_status=$?
|
---|
| 1751 | if test -s conftest.err; then
|
---|
| 1752 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1753 | cat conftest.er1 >&5
|
---|
| 1754 | mv -f conftest.er1 conftest.err
|
---|
| 1755 | fi
|
---|
| 1756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1757 | test $ac_status = 0; } && {
|
---|
| 1758 | test -z "$ac_c_werror_flag" ||
|
---|
| 1759 | test ! -s conftest.err
|
---|
| 1760 | } && test -s conftest$ac_exeext && {
|
---|
| 1761 | test "$cross_compiling" = yes ||
|
---|
| 1762 | $as_test_x conftest$ac_exeext
|
---|
| 1763 | }; then :
|
---|
| 1764 | ac_retval=0
|
---|
| 1765 | else
|
---|
| 1766 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1767 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1768 |
|
---|
| 1769 | ac_retval=1
|
---|
| 1770 | fi
|
---|
| 1771 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1772 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1773 | # interfere with the next link command; also delete a directory that is
|
---|
| 1774 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1775 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1776 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1777 | as_fn_set_status $ac_retval
|
---|
| 1778 |
|
---|
| 1779 | } # ac_fn_c_try_link
|
---|
| 1780 |
|
---|
| 1781 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1782 | # -------------------------------------------
|
---|
| 1783 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1784 | # variable VAR accordingly.
|
---|
| 1785 | ac_fn_c_check_type ()
|
---|
| 1786 | {
|
---|
| 1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1789 | $as_echo_n "checking for $2... " >&6; }
|
---|
[23508] | 1790 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 1791 | $as_echo_n "(cached) " >&6
|
---|
| 1792 | else
|
---|
| 1793 | eval "$3=no"
|
---|
| 1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1795 | /* end confdefs.h. */
|
---|
| 1796 | $4
|
---|
| 1797 | int
|
---|
| 1798 | main ()
|
---|
| 1799 | {
|
---|
| 1800 | if (sizeof ($2))
|
---|
| 1801 | return 0;
|
---|
| 1802 | ;
|
---|
| 1803 | return 0;
|
---|
| 1804 | }
|
---|
| 1805 | _ACEOF
|
---|
| 1806 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1808 | /* end confdefs.h. */
|
---|
| 1809 | $4
|
---|
| 1810 | int
|
---|
| 1811 | main ()
|
---|
| 1812 | {
|
---|
| 1813 | if (sizeof (($2)))
|
---|
| 1814 | return 0;
|
---|
| 1815 | ;
|
---|
| 1816 | return 0;
|
---|
| 1817 | }
|
---|
| 1818 | _ACEOF
|
---|
| 1819 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1820 |
|
---|
| 1821 | else
|
---|
| 1822 | eval "$3=yes"
|
---|
| 1823 | fi
|
---|
| 1824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1825 | fi
|
---|
| 1826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1827 | fi
|
---|
| 1828 | eval ac_res=\$$3
|
---|
| 1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1830 | $as_echo "$ac_res" >&6; }
|
---|
| 1831 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1832 |
|
---|
| 1833 | } # ac_fn_c_check_type
|
---|
| 1834 |
|
---|
| 1835 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1836 | # ----------------------------------
|
---|
| 1837 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1838 | ac_fn_c_check_func ()
|
---|
| 1839 | {
|
---|
| 1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1842 | $as_echo_n "checking for $2... " >&6; }
|
---|
[23508] | 1843 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 1844 | $as_echo_n "(cached) " >&6
|
---|
| 1845 | else
|
---|
| 1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1847 | /* end confdefs.h. */
|
---|
| 1848 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1850 | #define $2 innocuous_$2
|
---|
| 1851 |
|
---|
| 1852 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1853 | which can conflict with char $2 (); below.
|
---|
| 1854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1855 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1856 |
|
---|
| 1857 | #ifdef __STDC__
|
---|
| 1858 | # include <limits.h>
|
---|
| 1859 | #else
|
---|
| 1860 | # include <assert.h>
|
---|
| 1861 | #endif
|
---|
| 1862 |
|
---|
| 1863 | #undef $2
|
---|
| 1864 |
|
---|
| 1865 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1866 | Use char because int might match the return type of a GCC
|
---|
| 1867 | builtin and then its argument prototype would still apply. */
|
---|
| 1868 | #ifdef __cplusplus
|
---|
| 1869 | extern "C"
|
---|
| 1870 | #endif
|
---|
| 1871 | char $2 ();
|
---|
| 1872 | /* The GNU C library defines this for functions which it implements
|
---|
| 1873 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1874 | something starting with __ and the normal name is an alias. */
|
---|
| 1875 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1876 | choke me
|
---|
| 1877 | #endif
|
---|
| 1878 |
|
---|
| 1879 | int
|
---|
| 1880 | main ()
|
---|
| 1881 | {
|
---|
| 1882 | return $2 ();
|
---|
| 1883 | ;
|
---|
| 1884 | return 0;
|
---|
| 1885 | }
|
---|
| 1886 | _ACEOF
|
---|
| 1887 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1888 | eval "$3=yes"
|
---|
| 1889 | else
|
---|
| 1890 | eval "$3=no"
|
---|
| 1891 | fi
|
---|
| 1892 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1893 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1894 | fi
|
---|
| 1895 | eval ac_res=\$$3
|
---|
| 1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1897 | $as_echo "$ac_res" >&6; }
|
---|
| 1898 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1899 |
|
---|
| 1900 | } # ac_fn_c_check_func
|
---|
| 1901 |
|
---|
| 1902 | # ac_fn_cxx_try_run LINENO
|
---|
| 1903 | # ------------------------
|
---|
| 1904 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1905 | # that executables *can* be run.
|
---|
| 1906 | ac_fn_cxx_try_run ()
|
---|
| 1907 | {
|
---|
| 1908 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1909 | if { { ac_try="$ac_link"
|
---|
| 1910 | case "(($ac_try" in
|
---|
| 1911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1912 | *) ac_try_echo=$ac_try;;
|
---|
| 1913 | esac
|
---|
| 1914 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1915 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1916 | (eval "$ac_link") 2>&5
|
---|
| 1917 | ac_status=$?
|
---|
| 1918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1919 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1920 | { { case "(($ac_try" in
|
---|
| 1921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1922 | *) ac_try_echo=$ac_try;;
|
---|
| 1923 | esac
|
---|
| 1924 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1925 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1926 | (eval "$ac_try") 2>&5
|
---|
| 1927 | ac_status=$?
|
---|
| 1928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1929 | test $ac_status = 0; }; }; then :
|
---|
| 1930 | ac_retval=0
|
---|
| 1931 | else
|
---|
| 1932 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1933 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1934 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1935 |
|
---|
| 1936 | ac_retval=$ac_status
|
---|
| 1937 | fi
|
---|
| 1938 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1939 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1940 | as_fn_set_status $ac_retval
|
---|
| 1941 |
|
---|
| 1942 | } # ac_fn_cxx_try_run
|
---|
| 1943 | cat >config.log <<_ACEOF
|
---|
[8756] | 1944 | This file contains any messages produced by compilers while
|
---|
| 1945 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1946 |
|
---|
| 1947 | It was created by $as_me, which was
|
---|
[23508] | 1948 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
[8756] | 1949 |
|
---|
| 1950 | $ $0 $@
|
---|
| 1951 |
|
---|
| 1952 | _ACEOF
|
---|
[22378] | 1953 | exec 5>>config.log
|
---|
[8756] | 1954 | {
|
---|
| 1955 | cat <<_ASUNAME
|
---|
| 1956 | ## --------- ##
|
---|
| 1957 | ## Platform. ##
|
---|
| 1958 | ## --------- ##
|
---|
| 1959 |
|
---|
| 1960 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1961 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1962 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1963 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1964 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1965 |
|
---|
| 1966 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1967 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1968 |
|
---|
| 1969 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1970 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1971 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[22378] | 1972 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[8756] | 1973 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1974 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1975 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1976 |
|
---|
| 1977 | _ASUNAME
|
---|
| 1978 |
|
---|
| 1979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1980 | for as_dir in $PATH
|
---|
| 1981 | do
|
---|
| 1982 | IFS=$as_save_IFS
|
---|
| 1983 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 1984 | $as_echo "PATH: $as_dir"
|
---|
| 1985 | done
|
---|
| 1986 | IFS=$as_save_IFS
|
---|
[8756] | 1987 |
|
---|
| 1988 | } >&5
|
---|
| 1989 |
|
---|
| 1990 | cat >&5 <<_ACEOF
|
---|
| 1991 |
|
---|
| 1992 |
|
---|
| 1993 | ## ----------- ##
|
---|
| 1994 | ## Core tests. ##
|
---|
| 1995 | ## ----------- ##
|
---|
| 1996 |
|
---|
| 1997 | _ACEOF
|
---|
| 1998 |
|
---|
| 1999 |
|
---|
| 2000 | # Keep a trace of the command line.
|
---|
| 2001 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 2002 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 2003 | # Also quote any args containing shell meta-characters.
|
---|
| 2004 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 2005 | ac_configure_args=
|
---|
| 2006 | ac_configure_args0=
|
---|
| 2007 | ac_configure_args1=
|
---|
| 2008 | ac_must_keep_next=false
|
---|
| 2009 | for ac_pass in 1 2
|
---|
| 2010 | do
|
---|
| 2011 | for ac_arg
|
---|
| 2012 | do
|
---|
| 2013 | case $ac_arg in
|
---|
| 2014 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 2015 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 2016 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 2017 | continue ;;
|
---|
[22378] | 2018 | *\'*)
|
---|
| 2019 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 2020 | esac
|
---|
| 2021 | case $ac_pass in
|
---|
[22378] | 2022 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
[8756] | 2023 | 2)
|
---|
[22378] | 2024 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
[8756] | 2025 | if test $ac_must_keep_next = true; then
|
---|
| 2026 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 2027 | else
|
---|
| 2028 | case $ac_arg in
|
---|
| 2029 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 2030 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 2031 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 2032 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 2033 | case "$ac_configure_args0 " in
|
---|
| 2034 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 2035 | esac
|
---|
| 2036 | ;;
|
---|
| 2037 | -* ) ac_must_keep_next=true ;;
|
---|
| 2038 | esac
|
---|
| 2039 | fi
|
---|
[22378] | 2040 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
[8756] | 2041 | ;;
|
---|
| 2042 | esac
|
---|
| 2043 | done
|
---|
| 2044 | done
|
---|
[22378] | 2045 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 2046 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
[8756] | 2047 |
|
---|
| 2048 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 2049 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 2050 | # would cause problems or look ugly.
|
---|
[22378] | 2051 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 2052 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[8756] | 2053 | trap 'exit_status=$?
|
---|
| 2054 | # Save into config.log some information that might help in debugging.
|
---|
| 2055 | {
|
---|
| 2056 | echo
|
---|
| 2057 |
|
---|
[23508] | 2058 | cat <<\_ASBOX
|
---|
| 2059 | ## ---------------- ##
|
---|
[8756] | 2060 | ## Cache variables. ##
|
---|
[23508] | 2061 | ## ---------------- ##
|
---|
| 2062 | _ASBOX
|
---|
[8756] | 2063 | echo
|
---|
| 2064 | # The following way of writing the cache mishandles newlines in values,
|
---|
[22378] | 2065 | (
|
---|
| 2066 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 2067 | eval ac_val=\$$ac_var
|
---|
| 2068 | case $ac_val in #(
|
---|
| 2069 | *${as_nl}*)
|
---|
| 2070 | case $ac_var in #(
|
---|
| 2071 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 2072 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 2073 | esac
|
---|
| 2074 | case $ac_var in #(
|
---|
| 2075 | _ | IFS | as_nl) ;; #(
|
---|
| 2076 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 2077 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 2078 | esac ;;
|
---|
| 2079 | esac
|
---|
| 2080 | done
|
---|
[8756] | 2081 | (set) 2>&1 |
|
---|
[22378] | 2082 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2083 | *${as_nl}ac_space=\ *)
|
---|
[8756] | 2084 | sed -n \
|
---|
[22378] | 2085 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2086 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2087 | ;; #(
|
---|
[8756] | 2088 | *)
|
---|
[22378] | 2089 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8756] | 2090 | ;;
|
---|
[22378] | 2091 | esac |
|
---|
| 2092 | sort
|
---|
| 2093 | )
|
---|
[8756] | 2094 | echo
|
---|
| 2095 |
|
---|
[23508] | 2096 | cat <<\_ASBOX
|
---|
| 2097 | ## ----------------- ##
|
---|
[8756] | 2098 | ## Output variables. ##
|
---|
[23508] | 2099 | ## ----------------- ##
|
---|
| 2100 | _ASBOX
|
---|
[8756] | 2101 | echo
|
---|
| 2102 | for ac_var in $ac_subst_vars
|
---|
| 2103 | do
|
---|
[22378] | 2104 | eval ac_val=\$$ac_var
|
---|
| 2105 | case $ac_val in
|
---|
| 2106 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2107 | esac
|
---|
| 2108 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[8756] | 2109 | done | sort
|
---|
| 2110 | echo
|
---|
| 2111 |
|
---|
| 2112 | if test -n "$ac_subst_files"; then
|
---|
[23508] | 2113 | cat <<\_ASBOX
|
---|
| 2114 | ## ------------------- ##
|
---|
[22378] | 2115 | ## File substitutions. ##
|
---|
[23508] | 2116 | ## ------------------- ##
|
---|
| 2117 | _ASBOX
|
---|
[8756] | 2118 | echo
|
---|
| 2119 | for ac_var in $ac_subst_files
|
---|
| 2120 | do
|
---|
[22378] | 2121 | eval ac_val=\$$ac_var
|
---|
| 2122 | case $ac_val in
|
---|
| 2123 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2124 | esac
|
---|
| 2125 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[8756] | 2126 | done | sort
|
---|
| 2127 | echo
|
---|
| 2128 | fi
|
---|
| 2129 |
|
---|
| 2130 | if test -s confdefs.h; then
|
---|
[23508] | 2131 | cat <<\_ASBOX
|
---|
| 2132 | ## ----------- ##
|
---|
[8756] | 2133 | ## confdefs.h. ##
|
---|
[23508] | 2134 | ## ----------- ##
|
---|
| 2135 | _ASBOX
|
---|
[8756] | 2136 | echo
|
---|
[22378] | 2137 | cat confdefs.h
|
---|
[8756] | 2138 | echo
|
---|
| 2139 | fi
|
---|
| 2140 | test "$ac_signal" != 0 &&
|
---|
[22378] | 2141 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2142 | $as_echo "$as_me: exit $exit_status"
|
---|
[8756] | 2143 | } >&5
|
---|
[22378] | 2144 | rm -f core *.core core.conftest.* &&
|
---|
| 2145 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8756] | 2146 | exit $exit_status
|
---|
[22378] | 2147 | ' 0
|
---|
[8756] | 2148 | for ac_signal in 1 2 13 15; do
|
---|
[22378] | 2149 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
[8756] | 2150 | done
|
---|
| 2151 | ac_signal=0
|
---|
| 2152 |
|
---|
| 2153 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[22378] | 2154 | rm -f -r conftest* confdefs.h
|
---|
[8756] | 2155 |
|
---|
[22378] | 2156 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2157 |
|
---|
[8756] | 2158 | # Predefined preprocessor variables.
|
---|
| 2159 |
|
---|
| 2160 | cat >>confdefs.h <<_ACEOF
|
---|
| 2161 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2162 | _ACEOF
|
---|
| 2163 |
|
---|
| 2164 | cat >>confdefs.h <<_ACEOF
|
---|
| 2165 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2166 | _ACEOF
|
---|
| 2167 |
|
---|
| 2168 | cat >>confdefs.h <<_ACEOF
|
---|
| 2169 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2170 | _ACEOF
|
---|
| 2171 |
|
---|
| 2172 | cat >>confdefs.h <<_ACEOF
|
---|
| 2173 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2174 | _ACEOF
|
---|
| 2175 |
|
---|
| 2176 | cat >>confdefs.h <<_ACEOF
|
---|
| 2177 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2178 | _ACEOF
|
---|
| 2179 |
|
---|
[22378] | 2180 | cat >>confdefs.h <<_ACEOF
|
---|
| 2181 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2182 | _ACEOF
|
---|
[8756] | 2183 |
|
---|
[22378] | 2184 |
|
---|
[8756] | 2185 | # Let the site file select an alternate cache file if it wants to.
|
---|
[22378] | 2186 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2187 | ac_site_file1=NONE
|
---|
| 2188 | ac_site_file2=NONE
|
---|
| 2189 | if test -n "$CONFIG_SITE"; then
|
---|
[23508] | 2190 | ac_site_file1=$CONFIG_SITE
|
---|
[22378] | 2191 | elif test "x$prefix" != xNONE; then
|
---|
| 2192 | ac_site_file1=$prefix/share/config.site
|
---|
| 2193 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2194 | else
|
---|
| 2195 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2196 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
[562] | 2197 | fi
|
---|
[22378] | 2198 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2199 | do
|
---|
| 2200 | test "x$ac_site_file" = xNONE && continue
|
---|
| 2201 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
| 2203 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[8756] | 2204 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[23508] | 2205 | . "$ac_site_file"
|
---|
[562] | 2206 | fi
|
---|
| 2207 | done
|
---|
| 2208 |
|
---|
| 2209 | if test -r "$cache_file"; then
|
---|
[22378] | 2210 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2211 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2212 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
| 2214 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[8756] | 2215 | case $cache_file in
|
---|
[22378] | 2216 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2217 | *) . "./$cache_file";;
|
---|
[8756] | 2218 | esac
|
---|
| 2219 | fi
|
---|
[562] | 2220 | else
|
---|
[22378] | 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
| 2222 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[8756] | 2223 | >$cache_file
|
---|
[562] | 2224 | fi
|
---|
| 2225 |
|
---|
[8756] | 2226 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2227 | # value.
|
---|
| 2228 | ac_cache_corrupted=false
|
---|
[22378] | 2229 | for ac_var in $ac_precious_vars; do
|
---|
[8756] | 2230 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2231 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[22378] | 2232 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2233 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[8756] | 2234 | case $ac_old_set,$ac_new_set in
|
---|
| 2235 | set,)
|
---|
[22378] | 2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 2237 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[8756] | 2238 | ac_cache_corrupted=: ;;
|
---|
| 2239 | ,set)
|
---|
[22378] | 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 2241 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[8756] | 2242 | ac_cache_corrupted=: ;;
|
---|
| 2243 | ,);;
|
---|
| 2244 | *)
|
---|
| 2245 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[22378] | 2246 | # differences in whitespace do not lead to failure.
|
---|
| 2247 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2248 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2249 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
| 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 2251 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2252 | ac_cache_corrupted=:
|
---|
| 2253 | else
|
---|
| 2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
| 2255 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2256 | eval $ac_var=\$ac_old_val
|
---|
| 2257 | fi
|
---|
| 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
| 2259 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
| 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
| 2261 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
[8756] | 2262 | fi;;
|
---|
| 2263 | esac
|
---|
| 2264 | # Pass precious variables to config.status.
|
---|
| 2265 | if test "$ac_new_set" = set; then
|
---|
| 2266 | case $ac_new_val in
|
---|
[22378] | 2267 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 2268 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2269 | esac
|
---|
| 2270 | case " $ac_configure_args " in
|
---|
| 2271 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[22378] | 2272 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
[8756] | 2273 | esac
|
---|
| 2274 | fi
|
---|
| 2275 | done
|
---|
| 2276 | if $ac_cache_corrupted; then
|
---|
[22378] | 2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
| 2280 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
[23508] | 2281 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
[8756] | 2282 | fi
|
---|
[22378] | 2283 | ## -------------------- ##
|
---|
| 2284 | ## Main body of script. ##
|
---|
| 2285 | ## -------------------- ##
|
---|
[8756] | 2286 |
|
---|
[20853] | 2287 | ac_ext=c
|
---|
| 2288 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 2292 |
|
---|
| 2293 |
|
---|
[22378] | 2294 | ac_config_headers="$ac_config_headers config.h"
|
---|
[562] | 2295 |
|
---|
[8200] | 2296 |
|
---|
[562] | 2297 | PACKAGE=gsdl
|
---|
[23356] | 2298 | VERSION=2.x-svn
|
---|
[8756] | 2299 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 2300 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 2301 | _ACEOF
|
---|
[562] | 2302 |
|
---|
[8756] | 2303 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 2304 | #define VERSION "$VERSION"
|
---|
[8756] | 2305 | _ACEOF
|
---|
[562] | 2306 |
|
---|
[8200] | 2307 |
|
---|
| 2308 |
|
---|
| 2309 |
|
---|
[18487] | 2310 |
|
---|
[567] | 2311 | USE_FASTCGI=0
|
---|
| 2312 | if test USE_FASTCGI = 1; then
|
---|
[22378] | 2313 | $as_echo "#define USE_FASTCGI 1" >>confdefs.h
|
---|
[567] | 2314 |
|
---|
[8200] | 2315 |
|
---|
[3631] | 2316 | fi
|
---|
[567] | 2317 |
|
---|
[3631] | 2318 | if test USE_LANGACTION = 1; then
|
---|
[22378] | 2319 | $as_echo "#define USE_LANGACTION 1" >>confdefs.h
|
---|
[3631] | 2320 |
|
---|
[8200] | 2321 |
|
---|
[567] | 2322 | fi
|
---|
| 2323 |
|
---|
[22378] | 2324 | # Check whether --enable-corba was given.
|
---|
| 2325 | if test "${enable_corba+set}" = set; then :
|
---|
| 2326 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
[1860] | 2327 | else
|
---|
[21724] | 2328 | USE_CORBA=no
|
---|
[22378] | 2329 | fi
|
---|
| 2330 |
|
---|
[21724] | 2331 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
| 2332 | USE_CORBA=1
|
---|
[22378] | 2333 | $as_echo "#define USE_CORBA /**/" >>confdefs.h
|
---|
[1860] | 2334 |
|
---|
[21724] | 2335 | else
|
---|
| 2336 | USE_CORBA=0
|
---|
| 2337 | fi
|
---|
[8200] | 2338 |
|
---|
| 2339 |
|
---|
[8756] | 2340 |
|
---|
[22378] | 2341 | # Check whether --with-micodir was given.
|
---|
| 2342 | if test "${with_micodir+set}" = set; then :
|
---|
| 2343 | withval=$with_micodir; MICO_DIR=$withval
|
---|
[1860] | 2344 | else
|
---|
[2471] | 2345 | MICO_DIR="default"
|
---|
[22378] | 2346 | fi
|
---|
| 2347 |
|
---|
[8756] | 2348 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 2349 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 2350 | _ACEOF
|
---|
[1860] | 2351 |
|
---|
[8200] | 2352 |
|
---|
| 2353 |
|
---|
[23356] | 2354 | # Check whether --enable-java was given.
|
---|
| 2355 | if test "${enable_java+set}" = set; then :
|
---|
| 2356 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
| 2357 | else
|
---|
| 2358 | ENABLE_JAVA=yes
|
---|
| 2359 | fi
|
---|
| 2360 |
|
---|
| 2361 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 2362 | ENABLE_JAVA=1
|
---|
| 2363 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 2364 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 2365 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 2366 | echo "and JAVA respectively"
|
---|
| 2367 | export JAVA_HOME=
|
---|
| 2368 | fi
|
---|
| 2369 | else
|
---|
| 2370 | ENABLE_JAVA=0
|
---|
| 2371 | fi
|
---|
| 2372 |
|
---|
| 2373 |
|
---|
[22378] | 2374 | # Check whether --enable-z3950 was given.
|
---|
| 2375 | if test "${enable_z3950+set}" = set; then :
|
---|
| 2376 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
[1938] | 2377 | else
|
---|
[21724] | 2378 | USE_Z3950=no
|
---|
[22378] | 2379 | fi
|
---|
| 2380 |
|
---|
[21724] | 2381 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
| 2382 | USE_Z3950=1
|
---|
[22378] | 2383 | $as_echo "#define USE_Z3950 /**/" >>confdefs.h
|
---|
[1938] | 2384 |
|
---|
[21724] | 2385 | else
|
---|
| 2386 | USE_Z3950=0
|
---|
[2297] | 2387 | fi
|
---|
[1938] | 2388 |
|
---|
[21724] | 2389 |
|
---|
[22378] | 2390 | # Check whether --enable-yaz was given.
|
---|
| 2391 | if test "${enable_yaz+set}" = set; then :
|
---|
| 2392 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
[12492] | 2393 | else
|
---|
[21724] | 2394 | USE_YAZ=yes
|
---|
[22378] | 2395 | fi
|
---|
| 2396 |
|
---|
[21724] | 2397 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
[12492] | 2398 | USE_YAZ=1
|
---|
[22378] | 2399 | $as_echo "#define USE_YAZ /**/" >>confdefs.h
|
---|
[8756] | 2400 |
|
---|
[21724] | 2401 | else
|
---|
| 2402 | USE_YAZ=0
|
---|
| 2403 | fi
|
---|
[12492] | 2404 |
|
---|
| 2405 |
|
---|
[22378] | 2406 | # Check whether --enable-jdbm was given.
|
---|
| 2407 | if test "${enable_jdbm+set}" = set; then :
|
---|
| 2408 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
[22058] | 2409 | else
|
---|
| 2410 | USE_JDBM=yes
|
---|
[22378] | 2411 | fi
|
---|
| 2412 |
|
---|
[23356] | 2413 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
[22058] | 2414 | USE_JDBM=1
|
---|
[22378] | 2415 | $as_echo "#define USE_JDBM /**/" >>confdefs.h
|
---|
[22058] | 2416 |
|
---|
| 2417 | else
|
---|
| 2418 | USE_JDBM=0
|
---|
| 2419 | fi
|
---|
| 2420 |
|
---|
| 2421 |
|
---|
[22378] | 2422 | # Check whether --enable-gdbm was given.
|
---|
| 2423 | if test "${enable_gdbm+set}" = set; then :
|
---|
| 2424 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
[22058] | 2425 | else
|
---|
| 2426 | USE_GDBM=yes
|
---|
[22378] | 2427 | fi
|
---|
| 2428 |
|
---|
[22058] | 2429 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
| 2430 | USE_GDBM=1
|
---|
[22378] | 2431 | $as_echo "#define USE_GDBM /**/" >>confdefs.h
|
---|
[22058] | 2432 |
|
---|
| 2433 | else
|
---|
| 2434 | USE_GDBM=0
|
---|
| 2435 | fi
|
---|
| 2436 |
|
---|
| 2437 |
|
---|
[22378] | 2438 | # Check whether --enable-accentfold was given.
|
---|
| 2439 | if test "${enable_accentfold+set}" = set; then :
|
---|
| 2440 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
[12922] | 2441 | else
|
---|
[21724] | 2442 | ENABLE_ACCENTFOLD=yes
|
---|
[22378] | 2443 | fi
|
---|
| 2444 |
|
---|
[21724] | 2445 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[12922] | 2446 | ENABLE_ACCENTFOLD=1
|
---|
[22378] | 2447 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
[12922] | 2448 |
|
---|
[21724] | 2449 | else
|
---|
| 2450 | ENABLE_ACCENTFOLD=0
|
---|
| 2451 | fi
|
---|
[12922] | 2452 |
|
---|
[15901] | 2453 |
|
---|
[22378] | 2454 | # Check whether --enable-sqlite was given.
|
---|
| 2455 | if test "${enable_sqlite+set}" = set; then :
|
---|
| 2456 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
[16288] | 2457 | else
|
---|
[21724] | 2458 | USE_SQLITE=yes
|
---|
[22378] | 2459 | fi
|
---|
| 2460 |
|
---|
[21724] | 2461 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
[15794] | 2462 | USE_SQLITE=1
|
---|
[22378] | 2463 | $as_echo "#define USE_SQLITE /**/" >>confdefs.h
|
---|
[12922] | 2464 |
|
---|
[21724] | 2465 | else
|
---|
| 2466 | USE_SQLITE=0
|
---|
| 2467 | fi
|
---|
[15794] | 2468 |
|
---|
[15901] | 2469 |
|
---|
[21377] | 2470 | if test -d runtime-src; then
|
---|
[22378] | 2471 | # Check whether --enable-apache-httpd was given.
|
---|
| 2472 | if test "${enable_apache_httpd+set}" = set; then :
|
---|
| 2473 | enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
|
---|
[19263] | 2474 | else
|
---|
[21724] | 2475 | USE_APACHE_HTTPD=no
|
---|
[22378] | 2476 | fi
|
---|
| 2477 |
|
---|
[21724] | 2478 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
| 2479 | USE_APACHE_HTTPD=1
|
---|
[22378] | 2480 | $as_echo "#define USE_APACHE_HTTPD /**/" >>confdefs.h
|
---|
[18487] | 2481 |
|
---|
[21724] | 2482 | else
|
---|
| 2483 | USE_APACHE_HTTPD=0
|
---|
| 2484 | fi
|
---|
[18487] | 2485 |
|
---|
[21377] | 2486 | fi
|
---|
[18487] | 2487 |
|
---|
[22378] | 2488 | # Check whether --enable-jni was given.
|
---|
| 2489 | if test "${enable_jni+set}" = set; then :
|
---|
| 2490 | enableval=$enable_jni; ENABLE_JNI=$enableval
|
---|
[21366] | 2491 | else
|
---|
| 2492 | ENABLE_JNI=no
|
---|
[22378] | 2493 | fi
|
---|
| 2494 |
|
---|
[23356] | 2495 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
|
---|
[21366] | 2496 | ENABLE_JNI=1
|
---|
[22378] | 2497 | $as_echo "#define ENABLE_JNI /**/" >>confdefs.h
|
---|
[18487] | 2498 |
|
---|
[21366] | 2499 | else
|
---|
| 2500 | ENABLE_JNI=0
|
---|
| 2501 | fi
|
---|
| 2502 |
|
---|
| 2503 |
|
---|
[22378] | 2504 | # Check whether --enable-mg was given.
|
---|
| 2505 | if test "${enable_mg+set}" = set; then :
|
---|
| 2506 | enableval=$enable_mg; ENABLE_MG=$enableval
|
---|
[21330] | 2507 | else
|
---|
| 2508 | ENABLE_MG=yes
|
---|
[22378] | 2509 | fi
|
---|
| 2510 |
|
---|
[21330] | 2511 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 2512 | ENABLE_MG=1
|
---|
[22378] | 2513 | $as_echo "#define ENABLE_MG /**/" >>confdefs.h
|
---|
[21330] | 2514 |
|
---|
| 2515 | else
|
---|
| 2516 | ENABLE_MG=0
|
---|
| 2517 | fi
|
---|
| 2518 |
|
---|
| 2519 |
|
---|
| 2520 |
|
---|
[22378] | 2521 | # Check whether --enable-mgpp was given.
|
---|
| 2522 | if test "${enable_mgpp+set}" = set; then :
|
---|
| 2523 | enableval=$enable_mgpp; ENABLE_MGPP=$enableval
|
---|
[21330] | 2524 | else
|
---|
| 2525 | ENABLE_MGPP=yes
|
---|
[22378] | 2526 | fi
|
---|
| 2527 |
|
---|
[21330] | 2528 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 2529 | ENABLE_MGPP=1
|
---|
[22378] | 2530 | $as_echo "#define ENABLE_MGPP /**/" >>confdefs.h
|
---|
[21330] | 2531 |
|
---|
| 2532 | else
|
---|
| 2533 | ENABLE_MGPP=0
|
---|
| 2534 | fi
|
---|
| 2535 |
|
---|
| 2536 |
|
---|
[22378] | 2537 | # Check whether --enable-lucene was given.
|
---|
| 2538 | if test "${enable_lucene+set}" = set; then :
|
---|
| 2539 | enableval=$enable_lucene; ENABLE_LUCENE=$enableval
|
---|
[21330] | 2540 | else
|
---|
| 2541 | ENABLE_LUCENE=yes
|
---|
[22378] | 2542 | fi
|
---|
| 2543 |
|
---|
[23356] | 2544 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
[21330] | 2545 | ENABLE_LUCENE=1
|
---|
[22378] | 2546 | $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
|
---|
[21330] | 2547 |
|
---|
| 2548 | else
|
---|
| 2549 | ENABLE_LUCENE=0
|
---|
| 2550 | fi
|
---|
| 2551 |
|
---|
| 2552 |
|
---|
| 2553 |
|
---|
[14169] | 2554 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 2555 |
|
---|
[1722] | 2556 | if test -z "$CFLAGS"; then
|
---|
[794] | 2557 | CFLAGS=-O2
|
---|
[1722] | 2558 | fi
|
---|
[576] | 2559 |
|
---|
| 2560 |
|
---|
[15551] | 2561 |
|
---|
[8756] | 2562 | ac_ext=c
|
---|
| 2563 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2567 | if test -n "$ac_tool_prefix"; then
|
---|
| 2568 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2569 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[22378] | 2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2571 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2572 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2573 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 2574 | else
|
---|
| 2575 | if test -n "$CC"; then
|
---|
| 2576 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2577 | else
|
---|
| 2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2579 | for as_dir in $PATH
|
---|
| 2580 | do
|
---|
| 2581 | IFS=$as_save_IFS
|
---|
| 2582 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2583 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2585 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[22378] | 2586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2587 | break 2
|
---|
| 2588 | fi
|
---|
| 2589 | done
|
---|
[22378] | 2590 | done
|
---|
| 2591 | IFS=$as_save_IFS
|
---|
[8756] | 2592 |
|
---|
| 2593 | fi
|
---|
| 2594 | fi
|
---|
| 2595 | CC=$ac_cv_prog_CC
|
---|
| 2596 | if test -n "$CC"; then
|
---|
[22378] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2598 | $as_echo "$CC" >&6; }
|
---|
[8756] | 2599 | else
|
---|
[22378] | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2601 | $as_echo "no" >&6; }
|
---|
[8756] | 2602 | fi
|
---|
| 2603 |
|
---|
[22378] | 2604 |
|
---|
[8756] | 2605 | fi
|
---|
| 2606 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2607 | ac_ct_CC=$CC
|
---|
| 2608 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 2609 | set dummy gcc; ac_word=$2
|
---|
[22378] | 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2611 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2612 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
| 2613 | $as_echo_n "(cached) " >&6
|
---|
[562] | 2614 | else
|
---|
[8756] | 2615 | if test -n "$ac_ct_CC"; then
|
---|
| 2616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2617 | else
|
---|
| 2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2619 | for as_dir in $PATH
|
---|
| 2620 | do
|
---|
| 2621 | IFS=$as_save_IFS
|
---|
| 2622 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2623 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2625 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[22378] | 2626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2627 | break 2
|
---|
| 2628 | fi
|
---|
| 2629 | done
|
---|
[22378] | 2630 | done
|
---|
| 2631 | IFS=$as_save_IFS
|
---|
[8756] | 2632 |
|
---|
| 2633 | fi
|
---|
| 2634 | fi
|
---|
| 2635 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2636 | if test -n "$ac_ct_CC"; then
|
---|
[22378] | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 2638 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8756] | 2639 | else
|
---|
[22378] | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2641 | $as_echo "no" >&6; }
|
---|
[8756] | 2642 | fi
|
---|
| 2643 |
|
---|
[22378] | 2644 | if test "x$ac_ct_CC" = x; then
|
---|
| 2645 | CC=""
|
---|
| 2646 | else
|
---|
| 2647 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2648 | yes:)
|
---|
| 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 2650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2651 | ac_tool_warned=yes ;;
|
---|
| 2652 | esac
|
---|
| 2653 | CC=$ac_ct_CC
|
---|
| 2654 | fi
|
---|
[8756] | 2655 | else
|
---|
| 2656 | CC="$ac_cv_prog_CC"
|
---|
| 2657 | fi
|
---|
| 2658 |
|
---|
| 2659 | if test -z "$CC"; then
|
---|
[22378] | 2660 | if test -n "$ac_tool_prefix"; then
|
---|
| 2661 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8756] | 2662 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[22378] | 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2664 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2665 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2666 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 2667 | else
|
---|
[562] | 2668 | if test -n "$CC"; then
|
---|
| 2669 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2670 | else
|
---|
[8756] | 2671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2672 | for as_dir in $PATH
|
---|
| 2673 | do
|
---|
| 2674 | IFS=$as_save_IFS
|
---|
| 2675 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2676 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2678 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[22378] | 2679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2680 | break 2
|
---|
| 2681 | fi
|
---|
| 2682 | done
|
---|
[22378] | 2683 | done
|
---|
| 2684 | IFS=$as_save_IFS
|
---|
[8756] | 2685 |
|
---|
[562] | 2686 | fi
|
---|
| 2687 | fi
|
---|
[8756] | 2688 | CC=$ac_cv_prog_CC
|
---|
[562] | 2689 | if test -n "$CC"; then
|
---|
[22378] | 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2691 | $as_echo "$CC" >&6; }
|
---|
[562] | 2692 | else
|
---|
[22378] | 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2694 | $as_echo "no" >&6; }
|
---|
[562] | 2695 | fi
|
---|
| 2696 |
|
---|
[22378] | 2697 |
|
---|
[20853] | 2698 | fi
|
---|
[8756] | 2699 | fi
|
---|
[562] | 2700 | if test -z "$CC"; then
|
---|
| 2701 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2702 | set dummy cc; ac_word=$2
|
---|
[22378] | 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2704 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2705 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2706 | $as_echo_n "(cached) " >&6
|
---|
[562] | 2707 | else
|
---|
| 2708 | if test -n "$CC"; then
|
---|
| 2709 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2710 | else
|
---|
| 2711 | ac_prog_rejected=no
|
---|
[8756] | 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2713 | for as_dir in $PATH
|
---|
| 2714 | do
|
---|
| 2715 | IFS=$as_save_IFS
|
---|
| 2716 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2717 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2719 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2720 | ac_prog_rejected=yes
|
---|
| 2721 | continue
|
---|
| 2722 | fi
|
---|
| 2723 | ac_cv_prog_CC="cc"
|
---|
[22378] | 2724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2725 | break 2
|
---|
| 2726 | fi
|
---|
| 2727 | done
|
---|
[22378] | 2728 | done
|
---|
| 2729 | IFS=$as_save_IFS
|
---|
[8756] | 2730 |
|
---|
[562] | 2731 | if test $ac_prog_rejected = yes; then
|
---|
| 2732 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2733 | set dummy $ac_cv_prog_CC
|
---|
| 2734 | shift
|
---|
[8756] | 2735 | if test $# != 0; then
|
---|
[562] | 2736 | # We chose a different compiler from the bogus one.
|
---|
| 2737 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2738 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2739 | shift
|
---|
[8756] | 2740 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 2741 | fi
|
---|
| 2742 | fi
|
---|
| 2743 | fi
|
---|
| 2744 | fi
|
---|
[8756] | 2745 | CC=$ac_cv_prog_CC
|
---|
[562] | 2746 | if test -n "$CC"; then
|
---|
[22378] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2748 | $as_echo "$CC" >&6; }
|
---|
[562] | 2749 | else
|
---|
[22378] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2751 | $as_echo "no" >&6; }
|
---|
[562] | 2752 | fi
|
---|
| 2753 |
|
---|
[22378] | 2754 |
|
---|
[8756] | 2755 | fi
|
---|
| 2756 | if test -z "$CC"; then
|
---|
| 2757 | if test -n "$ac_tool_prefix"; then
|
---|
[22378] | 2758 | for ac_prog in cl.exe
|
---|
[8756] | 2759 | do
|
---|
| 2760 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2761 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[22378] | 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2763 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2764 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2765 | $as_echo_n "(cached) " >&6
|
---|
[562] | 2766 | else
|
---|
| 2767 | if test -n "$CC"; then
|
---|
| 2768 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2769 | else
|
---|
[8756] | 2770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2771 | for as_dir in $PATH
|
---|
| 2772 | do
|
---|
| 2773 | IFS=$as_save_IFS
|
---|
| 2774 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2775 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2777 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[22378] | 2778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2779 | break 2
|
---|
| 2780 | fi
|
---|
| 2781 | done
|
---|
[22378] | 2782 | done
|
---|
| 2783 | IFS=$as_save_IFS
|
---|
[8756] | 2784 |
|
---|
[562] | 2785 | fi
|
---|
| 2786 | fi
|
---|
[8756] | 2787 | CC=$ac_cv_prog_CC
|
---|
[562] | 2788 | if test -n "$CC"; then
|
---|
[22378] | 2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2790 | $as_echo "$CC" >&6; }
|
---|
[562] | 2791 | else
|
---|
[22378] | 2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2793 | $as_echo "no" >&6; }
|
---|
[562] | 2794 | fi
|
---|
[8756] | 2795 |
|
---|
[22378] | 2796 |
|
---|
[8756] | 2797 | test -n "$CC" && break
|
---|
| 2798 | done
|
---|
| 2799 | fi
|
---|
| 2800 | if test -z "$CC"; then
|
---|
| 2801 | ac_ct_CC=$CC
|
---|
[22378] | 2802 | for ac_prog in cl.exe
|
---|
[8756] | 2803 | do
|
---|
| 2804 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2805 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2807 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2808 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
| 2809 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 2810 | else
|
---|
| 2811 | if test -n "$ac_ct_CC"; then
|
---|
| 2812 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2813 | else
|
---|
| 2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2815 | for as_dir in $PATH
|
---|
| 2816 | do
|
---|
| 2817 | IFS=$as_save_IFS
|
---|
| 2818 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2819 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2821 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[22378] | 2822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2823 | break 2
|
---|
[8200] | 2824 | fi
|
---|
[8756] | 2825 | done
|
---|
[22378] | 2826 | done
|
---|
| 2827 | IFS=$as_save_IFS
|
---|
[8756] | 2828 |
|
---|
[562] | 2829 | fi
|
---|
[8756] | 2830 | fi
|
---|
| 2831 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2832 | if test -n "$ac_ct_CC"; then
|
---|
[22378] | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 2834 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8756] | 2835 | else
|
---|
[22378] | 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2837 | $as_echo "no" >&6; }
|
---|
[8756] | 2838 | fi
|
---|
[562] | 2839 |
|
---|
[22378] | 2840 |
|
---|
[8756] | 2841 | test -n "$ac_ct_CC" && break
|
---|
| 2842 | done
|
---|
[562] | 2843 |
|
---|
[22378] | 2844 | if test "x$ac_ct_CC" = x; then
|
---|
| 2845 | CC=""
|
---|
| 2846 | else
|
---|
| 2847 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2848 | yes:)
|
---|
| 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 2850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2851 | ac_tool_warned=yes ;;
|
---|
| 2852 | esac
|
---|
| 2853 | CC=$ac_ct_CC
|
---|
| 2854 | fi
|
---|
[8756] | 2855 | fi
|
---|
[562] | 2856 |
|
---|
[8756] | 2857 | fi
|
---|
[562] | 2858 |
|
---|
| 2859 |
|
---|
[22378] | 2860 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[23508] | 2862 | as_fn_error "no acceptable C compiler found in \$PATH
|
---|
| 2863 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[8756] | 2864 |
|
---|
| 2865 | # Provide some information about the compiler.
|
---|
[22378] | 2866 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
| 2867 | set X $ac_compile
|
---|
| 2868 | ac_compiler=$2
|
---|
| 2869 | for ac_option in --version -v -V -qversion; do
|
---|
| 2870 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 2871 | case "(($ac_try" in
|
---|
| 2872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2873 | *) ac_try_echo=$ac_try;;
|
---|
| 2874 | esac
|
---|
| 2875 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2876 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2877 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[8756] | 2878 | ac_status=$?
|
---|
[22378] | 2879 | if test -s conftest.err; then
|
---|
| 2880 | sed '10a\
|
---|
| 2881 | ... rest of stderr output deleted ...
|
---|
| 2882 | 10q' conftest.err >conftest.er1
|
---|
| 2883 | cat conftest.er1 >&5
|
---|
| 2884 | fi
|
---|
| 2885 | rm -f conftest.er1 conftest.err
|
---|
| 2886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2887 | test $ac_status = 0; }
|
---|
| 2888 | done
|
---|
[8756] | 2889 |
|
---|
[22378] | 2890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 2891 | /* end confdefs.h. */
|
---|
| 2892 |
|
---|
| 2893 | int
|
---|
| 2894 | main ()
|
---|
| 2895 | {
|
---|
| 2896 |
|
---|
| 2897 | ;
|
---|
| 2898 | return 0;
|
---|
| 2899 | }
|
---|
| 2900 | _ACEOF
|
---|
| 2901 | ac_clean_files_save=$ac_clean_files
|
---|
[22378] | 2902 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
[8756] | 2903 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 2904 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 2905 | # of exeext.
|
---|
[22378] | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
| 2907 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
| 2908 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[20853] | 2909 |
|
---|
[22378] | 2910 | # The possible output files:
|
---|
| 2911 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 2912 |
|
---|
| 2913 | ac_rmfiles=
|
---|
| 2914 | for ac_file in $ac_files
|
---|
[8756] | 2915 | do
|
---|
[22378] | 2916 | case $ac_file in
|
---|
| 2917 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 2918 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2919 | esac
|
---|
| 2920 | done
|
---|
| 2921 | rm -f $ac_rmfiles
|
---|
| 2922 |
|
---|
| 2923 | if { { ac_try="$ac_link_default"
|
---|
| 2924 | case "(($ac_try" in
|
---|
| 2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2926 | *) ac_try_echo=$ac_try;;
|
---|
| 2927 | esac
|
---|
| 2928 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2929 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2930 | (eval "$ac_link_default") 2>&5
|
---|
| 2931 | ac_status=$?
|
---|
| 2932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2933 | test $ac_status = 0; }; then :
|
---|
| 2934 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2935 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2936 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2937 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2938 | # Autoconf.
|
---|
| 2939 | for ac_file in $ac_files ''
|
---|
| 2940 | do
|
---|
[8756] | 2941 | test -f "$ac_file" || continue
|
---|
| 2942 | case $ac_file in
|
---|
[22378] | 2943 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
[8756] | 2944 | ;;
|
---|
| 2945 | [ab].out )
|
---|
| 2946 | # We found the default executable, but exeext='' is most
|
---|
| 2947 | # certainly right.
|
---|
| 2948 | break;;
|
---|
| 2949 | *.* )
|
---|
[22378] | 2950 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 2951 | then :; else
|
---|
| 2952 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2953 | fi
|
---|
| 2954 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2955 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2956 | # argument, so we may need to know it at that point already.
|
---|
| 2957 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2958 | # actually working.
|
---|
[8756] | 2959 | break;;
|
---|
| 2960 | * )
|
---|
| 2961 | break;;
|
---|
| 2962 | esac
|
---|
| 2963 | done
|
---|
[22378] | 2964 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2965 |
|
---|
[8756] | 2966 | else
|
---|
[22378] | 2967 | ac_file=''
|
---|
| 2968 | fi
|
---|
| 2969 | if test -z "$ac_file"; then :
|
---|
| 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2971 | $as_echo "no" >&6; }
|
---|
| 2972 | $as_echo "$as_me: failed program was:" >&5
|
---|
[8756] | 2973 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2974 |
|
---|
[22378] | 2975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[23508] | 2977 | { as_fn_set_status 77
|
---|
| 2978 | as_fn_error "C compiler cannot create executables
|
---|
| 2979 | See \`config.log' for more details." "$LINENO" 5; }; }
|
---|
[22378] | 2980 | else
|
---|
| 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2982 | $as_echo "yes" >&6; }
|
---|
[8756] | 2983 | fi
|
---|
[22378] | 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
| 2985 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
| 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 2987 | $as_echo "$ac_file" >&6; }
|
---|
[8756] | 2988 | ac_exeext=$ac_cv_exeext
|
---|
| 2989 |
|
---|
[22378] | 2990 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
[8756] | 2991 | ac_clean_files=$ac_clean_files_save
|
---|
[22378] | 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
| 2993 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
| 2994 | if { { ac_try="$ac_link"
|
---|
| 2995 | case "(($ac_try" in
|
---|
| 2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2997 | *) ac_try_echo=$ac_try;;
|
---|
| 2998 | esac
|
---|
| 2999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3000 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3001 | (eval "$ac_link") 2>&5
|
---|
[8756] | 3002 | ac_status=$?
|
---|
[22378] | 3003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3004 | test $ac_status = 0; }; then :
|
---|
[8756] | 3005 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 3006 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 3007 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 3008 | # `rm'.
|
---|
| 3009 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 3010 | test -f "$ac_file" || continue
|
---|
| 3011 | case $ac_file in
|
---|
[22378] | 3012 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
[8756] | 3013 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 3014 | break;;
|
---|
| 3015 | * ) break;;
|
---|
| 3016 | esac
|
---|
| 3017 | done
|
---|
| 3018 | else
|
---|
[22378] | 3019 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3020 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[23508] | 3021 | as_fn_error "cannot compute suffix of executables: cannot compile and link
|
---|
| 3022 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[562] | 3023 | fi
|
---|
[22378] | 3024 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
| 3026 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
[562] | 3027 |
|
---|
[8756] | 3028 | rm -f conftest.$ac_ext
|
---|
| 3029 | EXEEXT=$ac_cv_exeext
|
---|
| 3030 | ac_exeext=$EXEEXT
|
---|
[22378] | 3031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3032 | /* end confdefs.h. */
|
---|
| 3033 | #include <stdio.h>
|
---|
| 3034 | int
|
---|
| 3035 | main ()
|
---|
| 3036 | {
|
---|
| 3037 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 3038 | return ferror (f) || fclose (f) != 0;
|
---|
| 3039 |
|
---|
| 3040 | ;
|
---|
| 3041 | return 0;
|
---|
| 3042 | }
|
---|
| 3043 | _ACEOF
|
---|
| 3044 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 3045 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 3046 | # the compiler is broken, or we cross compile.
|
---|
| 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 3048 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 3049 | if test "$cross_compiling" != yes; then
|
---|
| 3050 | { { ac_try="$ac_link"
|
---|
| 3051 | case "(($ac_try" in
|
---|
| 3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3053 | *) ac_try_echo=$ac_try;;
|
---|
| 3054 | esac
|
---|
| 3055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3056 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3057 | (eval "$ac_link") 2>&5
|
---|
| 3058 | ac_status=$?
|
---|
| 3059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3060 | test $ac_status = 0; }
|
---|
| 3061 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 3062 | { { case "(($ac_try" in
|
---|
| 3063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3064 | *) ac_try_echo=$ac_try;;
|
---|
| 3065 | esac
|
---|
| 3066 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3067 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3068 | (eval "$ac_try") 2>&5
|
---|
| 3069 | ac_status=$?
|
---|
| 3070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3071 | test $ac_status = 0; }; }; then
|
---|
| 3072 | cross_compiling=no
|
---|
| 3073 | else
|
---|
| 3074 | if test "$cross_compiling" = maybe; then
|
---|
| 3075 | cross_compiling=yes
|
---|
| 3076 | else
|
---|
| 3077 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3078 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[23508] | 3079 | as_fn_error "cannot run C compiled programs.
|
---|
[22378] | 3080 | If you meant to cross compile, use \`--host'.
|
---|
[23508] | 3081 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[22378] | 3082 | fi
|
---|
| 3083 | fi
|
---|
| 3084 | fi
|
---|
| 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 3086 | $as_echo "$cross_compiling" >&6; }
|
---|
| 3087 |
|
---|
| 3088 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 3089 | ac_clean_files=$ac_clean_files_save
|
---|
| 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
| 3091 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
| 3092 | if test "${ac_cv_objext+set}" = set; then :
|
---|
| 3093 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3094 | else
|
---|
[22378] | 3095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3096 | /* end confdefs.h. */
|
---|
| 3097 |
|
---|
| 3098 | int
|
---|
| 3099 | main ()
|
---|
| 3100 | {
|
---|
| 3101 |
|
---|
| 3102 | ;
|
---|
| 3103 | return 0;
|
---|
| 3104 | }
|
---|
| 3105 | _ACEOF
|
---|
| 3106 | rm -f conftest.o conftest.obj
|
---|
[22378] | 3107 | if { { ac_try="$ac_compile"
|
---|
| 3108 | case "(($ac_try" in
|
---|
| 3109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3110 | *) ac_try_echo=$ac_try;;
|
---|
| 3111 | esac
|
---|
| 3112 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3113 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3114 | (eval "$ac_compile") 2>&5
|
---|
[8756] | 3115 | ac_status=$?
|
---|
[22378] | 3116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3117 | test $ac_status = 0; }; then :
|
---|
| 3118 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 3119 | test -f "$ac_file" || continue;
|
---|
[8756] | 3120 | case $ac_file in
|
---|
[22378] | 3121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
[8756] | 3122 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 3123 | break;;
|
---|
| 3124 | esac
|
---|
| 3125 | done
|
---|
[562] | 3126 | else
|
---|
[22378] | 3127 | $as_echo "$as_me: failed program was:" >&5
|
---|
[8756] | 3128 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3129 |
|
---|
[22378] | 3130 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3131 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[23508] | 3132 | as_fn_error "cannot compute suffix of object files: cannot compile
|
---|
| 3133 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[562] | 3134 | fi
|
---|
[8756] | 3135 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 3136 | fi
|
---|
[22378] | 3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
| 3138 | $as_echo "$ac_cv_objext" >&6; }
|
---|
[8756] | 3139 | OBJEXT=$ac_cv_objext
|
---|
| 3140 | ac_objext=$OBJEXT
|
---|
[22378] | 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
| 3142 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
| 3143 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
| 3144 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3145 | else
|
---|
[22378] | 3146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3147 | /* end confdefs.h. */
|
---|
[562] | 3148 |
|
---|
[8756] | 3149 | int
|
---|
| 3150 | main ()
|
---|
| 3151 | {
|
---|
| 3152 | #ifndef __GNUC__
|
---|
| 3153 | choke me
|
---|
| 3154 | #endif
|
---|
[562] | 3155 |
|
---|
[8756] | 3156 | ;
|
---|
| 3157 | return 0;
|
---|
| 3158 | }
|
---|
| 3159 | _ACEOF
|
---|
[22378] | 3160 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8756] | 3161 | ac_compiler_gnu=yes
|
---|
[562] | 3162 | else
|
---|
[22378] | 3163 | ac_compiler_gnu=no
|
---|
[562] | 3164 | fi
|
---|
[22378] | 3165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3166 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 3167 |
|
---|
[8756] | 3168 | fi
|
---|
[22378] | 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 3170 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 3171 | if test $ac_compiler_gnu = yes; then
|
---|
| 3172 | GCC=yes
|
---|
| 3173 | else
|
---|
| 3174 | GCC=
|
---|
| 3175 | fi
|
---|
[8756] | 3176 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 3177 | ac_save_CFLAGS=$CFLAGS
|
---|
[22378] | 3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
| 3179 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
| 3180 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
| 3181 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3182 | else
|
---|
[22378] | 3183 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 3184 | ac_c_werror_flag=yes
|
---|
| 3185 | ac_cv_prog_cc_g=no
|
---|
| 3186 | CFLAGS="-g"
|
---|
| 3187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3188 | /* end confdefs.h. */
|
---|
| 3189 |
|
---|
| 3190 | int
|
---|
| 3191 | main ()
|
---|
| 3192 | {
|
---|
| 3193 |
|
---|
| 3194 | ;
|
---|
| 3195 | return 0;
|
---|
| 3196 | }
|
---|
| 3197 | _ACEOF
|
---|
[22378] | 3198 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[562] | 3199 | ac_cv_prog_cc_g=yes
|
---|
| 3200 | else
|
---|
[22378] | 3201 | CFLAGS=""
|
---|
| 3202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3203 | /* end confdefs.h. */
|
---|
[8200] | 3204 |
|
---|
[22378] | 3205 | int
|
---|
| 3206 | main ()
|
---|
| 3207 | {
|
---|
| 3208 |
|
---|
| 3209 | ;
|
---|
| 3210 | return 0;
|
---|
| 3211 | }
|
---|
| 3212 | _ACEOF
|
---|
| 3213 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3214 |
|
---|
| 3215 | else
|
---|
| 3216 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3217 | CFLAGS="-g"
|
---|
| 3218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3219 | /* end confdefs.h. */
|
---|
| 3220 |
|
---|
| 3221 | int
|
---|
| 3222 | main ()
|
---|
| 3223 | {
|
---|
| 3224 |
|
---|
| 3225 | ;
|
---|
| 3226 | return 0;
|
---|
| 3227 | }
|
---|
| 3228 | _ACEOF
|
---|
| 3229 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3230 | ac_cv_prog_cc_g=yes
|
---|
[562] | 3231 | fi
|
---|
[22378] | 3232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3233 | fi
|
---|
[22378] | 3234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3235 | fi
|
---|
| 3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3237 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3238 | fi
|
---|
| 3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
| 3240 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
[562] | 3241 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 3242 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 3243 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3244 | if test "$GCC" = yes; then
|
---|
| 3245 | CFLAGS="-g -O2"
|
---|
| 3246 | else
|
---|
| 3247 | CFLAGS="-g"
|
---|
| 3248 | fi
|
---|
| 3249 | else
|
---|
| 3250 | if test "$GCC" = yes; then
|
---|
| 3251 | CFLAGS="-O2"
|
---|
| 3252 | else
|
---|
| 3253 | CFLAGS=
|
---|
| 3254 | fi
|
---|
| 3255 | fi
|
---|
[22378] | 3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
| 3257 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
| 3258 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
| 3259 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3260 | else
|
---|
[22378] | 3261 | ac_cv_prog_cc_c89=no
|
---|
[8756] | 3262 | ac_save_CC=$CC
|
---|
[22378] | 3263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3264 | /* end confdefs.h. */
|
---|
| 3265 | #include <stdarg.h>
|
---|
| 3266 | #include <stdio.h>
|
---|
| 3267 | #include <sys/types.h>
|
---|
| 3268 | #include <sys/stat.h>
|
---|
| 3269 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3270 | struct buf { int x; };
|
---|
| 3271 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3272 | static char *e (p, i)
|
---|
| 3273 | char **p;
|
---|
| 3274 | int i;
|
---|
| 3275 | {
|
---|
| 3276 | return p[i];
|
---|
| 3277 | }
|
---|
| 3278 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3279 | {
|
---|
| 3280 | char *s;
|
---|
| 3281 | va_list v;
|
---|
| 3282 | va_start (v,p);
|
---|
| 3283 | s = g (p, va_arg (v,int));
|
---|
| 3284 | va_end (v);
|
---|
| 3285 | return s;
|
---|
| 3286 | }
|
---|
[8200] | 3287 |
|
---|
[8756] | 3288 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3289 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3290 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[22378] | 3291 | as 'x'. The following induces an error, until -std is added to get
|
---|
[8756] | 3292 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3293 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[22378] | 3294 | that's true only with -std. */
|
---|
[8756] | 3295 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3296 |
|
---|
[22378] | 3297 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3298 | inside strings and character constants. */
|
---|
| 3299 | #define FOO(x) 'x'
|
---|
| 3300 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3301 |
|
---|
[8756] | 3302 | int test (int i, double x);
|
---|
| 3303 | struct s1 {int (*f) (int a);};
|
---|
| 3304 | struct s2 {int (*f) (double a);};
|
---|
| 3305 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3306 | int argc;
|
---|
| 3307 | char **argv;
|
---|
| 3308 | int
|
---|
| 3309 | main ()
|
---|
| 3310 | {
|
---|
| 3311 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3312 | ;
|
---|
| 3313 | return 0;
|
---|
| 3314 | }
|
---|
| 3315 | _ACEOF
|
---|
[22378] | 3316 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3317 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 3318 | do
|
---|
[8756] | 3319 | CC="$ac_save_CC $ac_arg"
|
---|
[22378] | 3320 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3321 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[562] | 3322 | fi
|
---|
[22378] | 3323 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3324 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[8756] | 3325 | done
|
---|
[22378] | 3326 | rm -f conftest.$ac_ext
|
---|
[8756] | 3327 | CC=$ac_save_CC
|
---|
| 3328 |
|
---|
[562] | 3329 | fi
|
---|
[22378] | 3330 | # AC_CACHE_VAL
|
---|
| 3331 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3332 | x)
|
---|
| 3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
| 3334 | $as_echo "none needed" >&6; } ;;
|
---|
| 3335 | xno)
|
---|
| 3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
| 3337 | $as_echo "unsupported" >&6; } ;;
|
---|
[8756] | 3338 | *)
|
---|
[22378] | 3339 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
| 3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 3341 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[8756] | 3342 | esac
|
---|
[22378] | 3343 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
[8756] | 3344 |
|
---|
[20853] | 3345 | fi
|
---|
| 3346 |
|
---|
[8756] | 3347 | ac_ext=c
|
---|
| 3348 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 3352 |
|
---|
[22378] | 3353 | ac_ext=cpp
|
---|
[8200] | 3354 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 3355 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3356 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3357 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[22378] | 3358 | if test -z "$CXX"; then
|
---|
| 3359 | if test -n "$CCC"; then
|
---|
| 3360 | CXX=$CCC
|
---|
| 3361 | else
|
---|
| 3362 | if test -n "$ac_tool_prefix"; then
|
---|
| 3363 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8756] | 3364 | do
|
---|
| 3365 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3366 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[22378] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3368 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3369 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
| 3370 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3371 | else
|
---|
| 3372 | if test -n "$CXX"; then
|
---|
| 3373 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 3374 | else
|
---|
| 3375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3376 | for as_dir in $PATH
|
---|
| 3377 | do
|
---|
| 3378 | IFS=$as_save_IFS
|
---|
| 3379 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3380 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3382 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[22378] | 3383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3384 | break 2
|
---|
| 3385 | fi
|
---|
| 3386 | done
|
---|
[22378] | 3387 | done
|
---|
| 3388 | IFS=$as_save_IFS
|
---|
[8200] | 3389 |
|
---|
[8756] | 3390 | fi
|
---|
| 3391 | fi
|
---|
| 3392 | CXX=$ac_cv_prog_CXX
|
---|
| 3393 | if test -n "$CXX"; then
|
---|
[22378] | 3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
| 3395 | $as_echo "$CXX" >&6; }
|
---|
[8756] | 3396 | else
|
---|
[22378] | 3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3398 | $as_echo "no" >&6; }
|
---|
[8756] | 3399 | fi
|
---|
[8200] | 3400 |
|
---|
[22378] | 3401 |
|
---|
[8756] | 3402 | test -n "$CXX" && break
|
---|
| 3403 | done
|
---|
| 3404 | fi
|
---|
| 3405 | if test -z "$CXX"; then
|
---|
| 3406 | ac_ct_CXX=$CXX
|
---|
[22378] | 3407 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8756] | 3408 | do
|
---|
| 3409 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3410 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3412 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3413 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
| 3414 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3415 | else
|
---|
| 3416 | if test -n "$ac_ct_CXX"; then
|
---|
| 3417 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 3418 | else
|
---|
| 3419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3420 | for as_dir in $PATH
|
---|
| 3421 | do
|
---|
| 3422 | IFS=$as_save_IFS
|
---|
| 3423 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3424 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3426 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[22378] | 3427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3428 | break 2
|
---|
| 3429 | fi
|
---|
| 3430 | done
|
---|
[22378] | 3431 | done
|
---|
| 3432 | IFS=$as_save_IFS
|
---|
[8200] | 3433 |
|
---|
[8756] | 3434 | fi
|
---|
| 3435 | fi
|
---|
| 3436 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 3437 | if test -n "$ac_ct_CXX"; then
|
---|
[22378] | 3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
| 3439 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
[3631] | 3440 | else
|
---|
[22378] | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3442 | $as_echo "no" >&6; }
|
---|
[3631] | 3443 | fi
|
---|
[562] | 3444 |
|
---|
[22378] | 3445 |
|
---|
[8756] | 3446 | test -n "$ac_ct_CXX" && break
|
---|
| 3447 | done
|
---|
| 3448 |
|
---|
[22378] | 3449 | if test "x$ac_ct_CXX" = x; then
|
---|
| 3450 | CXX="g++"
|
---|
| 3451 | else
|
---|
| 3452 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3453 | yes:)
|
---|
| 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 3455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3456 | ac_tool_warned=yes ;;
|
---|
| 3457 | esac
|
---|
| 3458 | CXX=$ac_ct_CXX
|
---|
| 3459 | fi
|
---|
[3631] | 3460 | fi
|
---|
[562] | 3461 |
|
---|
[22378] | 3462 | fi
|
---|
| 3463 | fi
|
---|
[8756] | 3464 | # Provide some information about the compiler.
|
---|
[22378] | 3465 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
| 3466 | set X $ac_compile
|
---|
| 3467 | ac_compiler=$2
|
---|
| 3468 | for ac_option in --version -v -V -qversion; do
|
---|
| 3469 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 3470 | case "(($ac_try" in
|
---|
| 3471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3472 | *) ac_try_echo=$ac_try;;
|
---|
| 3473 | esac
|
---|
| 3474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3475 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3476 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[8756] | 3477 | ac_status=$?
|
---|
[22378] | 3478 | if test -s conftest.err; then
|
---|
| 3479 | sed '10a\
|
---|
| 3480 | ... rest of stderr output deleted ...
|
---|
| 3481 | 10q' conftest.err >conftest.er1
|
---|
| 3482 | cat conftest.er1 >&5
|
---|
| 3483 | fi
|
---|
| 3484 | rm -f conftest.er1 conftest.err
|
---|
| 3485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3486 | test $ac_status = 0; }
|
---|
| 3487 | done
|
---|
[8756] | 3488 |
|
---|
[22378] | 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 3490 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
| 3491 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
| 3492 | $as_echo_n "(cached) " >&6
|
---|
[3631] | 3493 | else
|
---|
[22378] | 3494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3495 | /* end confdefs.h. */
|
---|
| 3496 |
|
---|
| 3497 | int
|
---|
| 3498 | main ()
|
---|
| 3499 | {
|
---|
| 3500 | #ifndef __GNUC__
|
---|
| 3501 | choke me
|
---|
[3631] | 3502 | #endif
|
---|
[8756] | 3503 |
|
---|
| 3504 | ;
|
---|
| 3505 | return 0;
|
---|
| 3506 | }
|
---|
| 3507 | _ACEOF
|
---|
[22378] | 3508 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[8756] | 3509 | ac_compiler_gnu=yes
|
---|
[8200] | 3510 | else
|
---|
[22378] | 3511 | ac_compiler_gnu=no
|
---|
[8200] | 3512 | fi
|
---|
[22378] | 3513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3514 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 3515 |
|
---|
[8200] | 3516 | fi
|
---|
[22378] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 3518 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 3519 | if test $ac_compiler_gnu = yes; then
|
---|
| 3520 | GXX=yes
|
---|
| 3521 | else
|
---|
| 3522 | GXX=
|
---|
| 3523 | fi
|
---|
[8756] | 3524 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3525 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[22378] | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
| 3527 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
| 3528 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
| 3529 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3530 | else
|
---|
[22378] | 3531 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3532 | ac_cxx_werror_flag=yes
|
---|
| 3533 | ac_cv_prog_cxx_g=no
|
---|
| 3534 | CXXFLAGS="-g"
|
---|
| 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3536 | /* end confdefs.h. */
|
---|
[3631] | 3537 |
|
---|
[8756] | 3538 | int
|
---|
| 3539 | main ()
|
---|
| 3540 | {
|
---|
[8200] | 3541 |
|
---|
[8756] | 3542 | ;
|
---|
| 3543 | return 0;
|
---|
| 3544 | }
|
---|
| 3545 | _ACEOF
|
---|
[22378] | 3546 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[562] | 3547 | ac_cv_prog_cxx_g=yes
|
---|
| 3548 | else
|
---|
[22378] | 3549 | CXXFLAGS=""
|
---|
| 3550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3551 | /* end confdefs.h. */
|
---|
[8200] | 3552 |
|
---|
[8756] | 3553 | int
|
---|
| 3554 | main ()
|
---|
| 3555 | {
|
---|
[22378] | 3556 |
|
---|
[8756] | 3557 | ;
|
---|
| 3558 | return 0;
|
---|
| 3559 | }
|
---|
| 3560 | _ACEOF
|
---|
[22378] | 3561 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3562 |
|
---|
[8756] | 3563 | else
|
---|
[22378] | 3564 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3565 | CXXFLAGS="-g"
|
---|
| 3566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3567 | /* end confdefs.h. */
|
---|
[3063] | 3568 |
|
---|
[8756] | 3569 | int
|
---|
| 3570 | main ()
|
---|
| 3571 | {
|
---|
[22378] | 3572 |
|
---|
[8756] | 3573 | ;
|
---|
| 3574 | return 0;
|
---|
| 3575 | }
|
---|
| 3576 | _ACEOF
|
---|
[22378] | 3577 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3578 | ac_cv_prog_cxx_g=yes
|
---|
| 3579 | fi
|
---|
| 3580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3581 | fi
|
---|
| 3582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3583 | fi
|
---|
| 3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3585 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3586 | fi
|
---|
| 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 3588 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 3589 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3590 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3591 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3592 | if test "$GXX" = yes; then
|
---|
| 3593 | CXXFLAGS="-g -O2"
|
---|
| 3594 | else
|
---|
| 3595 | CXXFLAGS="-g"
|
---|
| 3596 | fi
|
---|
[8756] | 3597 | else
|
---|
[22378] | 3598 | if test "$GXX" = yes; then
|
---|
| 3599 | CXXFLAGS="-O2"
|
---|
| 3600 | else
|
---|
| 3601 | CXXFLAGS=
|
---|
| 3602 | fi
|
---|
[8756] | 3603 | fi
|
---|
| 3604 | ac_ext=c
|
---|
| 3605 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3609 |
|
---|
| 3610 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 3611 | do
|
---|
[8756] | 3612 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 3613 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3615 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3616 | if test "${ac_cv_prog_AWK+set}" = set; then :
|
---|
| 3617 | $as_echo_n "(cached) " >&6
|
---|
[687] | 3618 | else
|
---|
| 3619 | if test -n "$AWK"; then
|
---|
| 3620 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3621 | else
|
---|
[8756] | 3622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3623 | for as_dir in $PATH
|
---|
| 3624 | do
|
---|
| 3625 | IFS=$as_save_IFS
|
---|
| 3626 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3627 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3629 | ac_cv_prog_AWK="$ac_prog"
|
---|
[22378] | 3630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3631 | break 2
|
---|
| 3632 | fi
|
---|
| 3633 | done
|
---|
[22378] | 3634 | done
|
---|
| 3635 | IFS=$as_save_IFS
|
---|
[8756] | 3636 |
|
---|
[687] | 3637 | fi
|
---|
| 3638 | fi
|
---|
[8756] | 3639 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 3640 | if test -n "$AWK"; then
|
---|
[22378] | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
| 3642 | $as_echo "$AWK" >&6; }
|
---|
[687] | 3643 | else
|
---|
[22378] | 3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3645 | $as_echo "no" >&6; }
|
---|
[687] | 3646 | fi
|
---|
| 3647 |
|
---|
[22378] | 3648 |
|
---|
[8756] | 3649 | test -n "$AWK" && break
|
---|
[687] | 3650 | done
|
---|
| 3651 |
|
---|
| 3652 | for ac_prog in 'bison -y' byacc
|
---|
| 3653 | do
|
---|
[8756] | 3654 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 3655 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3657 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3658 | if test "${ac_cv_prog_YACC+set}" = set; then :
|
---|
| 3659 | $as_echo_n "(cached) " >&6
|
---|
[687] | 3660 | else
|
---|
| 3661 | if test -n "$YACC"; then
|
---|
| 3662 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3663 | else
|
---|
[8756] | 3664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3665 | for as_dir in $PATH
|
---|
| 3666 | do
|
---|
| 3667 | IFS=$as_save_IFS
|
---|
| 3668 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3669 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3671 | ac_cv_prog_YACC="$ac_prog"
|
---|
[22378] | 3672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3673 | break 2
|
---|
| 3674 | fi
|
---|
| 3675 | done
|
---|
[22378] | 3676 | done
|
---|
| 3677 | IFS=$as_save_IFS
|
---|
[8756] | 3678 |
|
---|
[687] | 3679 | fi
|
---|
| 3680 | fi
|
---|
[8756] | 3681 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 3682 | if test -n "$YACC"; then
|
---|
[22378] | 3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
| 3684 | $as_echo "$YACC" >&6; }
|
---|
[687] | 3685 | else
|
---|
[22378] | 3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3687 | $as_echo "no" >&6; }
|
---|
[687] | 3688 | fi
|
---|
| 3689 |
|
---|
[22378] | 3690 |
|
---|
[8756] | 3691 | test -n "$YACC" && break
|
---|
[687] | 3692 | done
|
---|
| 3693 | test -n "$YACC" || YACC="yacc"
|
---|
| 3694 |
|
---|
[703] | 3695 | ac_aux_dir=
|
---|
[22378] | 3696 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
[23508] | 3697 | for ac_t in install-sh install.sh shtool; do
|
---|
| 3698 | if test -f "$ac_dir/$ac_t"; then
|
---|
| 3699 | ac_aux_dir=$ac_dir
|
---|
| 3700 | ac_install_sh="$ac_aux_dir/$ac_t -c"
|
---|
| 3701 | break 2
|
---|
| 3702 | fi
|
---|
| 3703 | done
|
---|
[703] | 3704 | done
|
---|
| 3705 | if test -z "$ac_aux_dir"; then
|
---|
[23508] | 3706 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
[703] | 3707 | fi
|
---|
| 3708 |
|
---|
[22378] | 3709 | # These three variables are undocumented and unsupported,
|
---|
| 3710 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 3711 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 3712 | # whose full name contains unusual characters.
|
---|
| 3713 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 3714 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 3715 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 3716 |
|
---|
| 3717 |
|
---|
[8756] | 3718 | # Make sure we can run config.sub.
|
---|
[22378] | 3719 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
[23508] | 3720 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
[2279] | 3721 |
|
---|
[22378] | 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
| 3723 | $as_echo_n "checking build system type... " >&6; }
|
---|
| 3724 | if test "${ac_cv_build+set}" = set; then :
|
---|
| 3725 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3726 | else
|
---|
[22378] | 3727 | ac_build_alias=$build_alias
|
---|
| 3728 | test "x$ac_build_alias" = x &&
|
---|
| 3729 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 3730 | test "x$ac_build_alias" = x &&
|
---|
[23508] | 3731 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
[22378] | 3732 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
[23508] | 3733 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
[2279] | 3734 |
|
---|
| 3735 | fi
|
---|
[22378] | 3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
| 3737 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 3738 | case $ac_cv_build in
|
---|
| 3739 | *-*-*) ;;
|
---|
[23508] | 3740 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
---|
[22378] | 3741 | esac
|
---|
[8756] | 3742 | build=$ac_cv_build
|
---|
[22378] | 3743 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3744 | set x $ac_cv_build
|
---|
| 3745 | shift
|
---|
| 3746 | build_cpu=$1
|
---|
| 3747 | build_vendor=$2
|
---|
| 3748 | shift; shift
|
---|
| 3749 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3750 | # except with old shells:
|
---|
| 3751 | build_os=$*
|
---|
| 3752 | IFS=$ac_save_IFS
|
---|
| 3753 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[2279] | 3754 |
|
---|
| 3755 |
|
---|
[22378] | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
| 3757 | $as_echo_n "checking host system type... " >&6; }
|
---|
| 3758 | if test "${ac_cv_host+set}" = set; then :
|
---|
| 3759 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3760 | else
|
---|
[22378] | 3761 | if test "x$host_alias" = x; then
|
---|
| 3762 | ac_cv_host=$ac_cv_build
|
---|
| 3763 | else
|
---|
| 3764 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
[23508] | 3765 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
[22378] | 3766 | fi
|
---|
[2279] | 3767 |
|
---|
[8756] | 3768 | fi
|
---|
[22378] | 3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
| 3770 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 3771 | case $ac_cv_host in
|
---|
| 3772 | *-*-*) ;;
|
---|
[23508] | 3773 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
---|
[22378] | 3774 | esac
|
---|
[8756] | 3775 | host=$ac_cv_host
|
---|
[22378] | 3776 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3777 | set x $ac_cv_host
|
---|
| 3778 | shift
|
---|
| 3779 | host_cpu=$1
|
---|
| 3780 | host_vendor=$2
|
---|
| 3781 | shift; shift
|
---|
| 3782 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3783 | # except with old shells:
|
---|
| 3784 | host_os=$*
|
---|
| 3785 | IFS=$ac_save_IFS
|
---|
| 3786 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[8200] | 3787 |
|
---|
| 3788 |
|
---|
[22378] | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
| 3790 | $as_echo_n "checking target system type... " >&6; }
|
---|
| 3791 | if test "${ac_cv_target+set}" = set; then :
|
---|
| 3792 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3793 | else
|
---|
[22378] | 3794 | if test "x$target_alias" = x; then
|
---|
| 3795 | ac_cv_target=$ac_cv_host
|
---|
| 3796 | else
|
---|
| 3797 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
[23508] | 3798 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
[22378] | 3799 | fi
|
---|
[8200] | 3800 |
|
---|
[8756] | 3801 | fi
|
---|
[22378] | 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
| 3803 | $as_echo "$ac_cv_target" >&6; }
|
---|
| 3804 | case $ac_cv_target in
|
---|
| 3805 | *-*-*) ;;
|
---|
[23508] | 3806 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
|
---|
[22378] | 3807 | esac
|
---|
[8756] | 3808 | target=$ac_cv_target
|
---|
[22378] | 3809 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3810 | set x $ac_cv_target
|
---|
| 3811 | shift
|
---|
| 3812 | target_cpu=$1
|
---|
| 3813 | target_vendor=$2
|
---|
| 3814 | shift; shift
|
---|
| 3815 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3816 | # except with old shells:
|
---|
| 3817 | target_os=$*
|
---|
| 3818 | IFS=$ac_save_IFS
|
---|
| 3819 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[8200] | 3820 |
|
---|
| 3821 |
|
---|
[8756] | 3822 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3823 | # will get canonicalized.
|
---|
| 3824 | test -n "$target_alias" &&
|
---|
[2279] | 3825 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3826 | NONENONEs,x,x, &&
|
---|
| 3827 | program_prefix=${target_alias}-
|
---|
[22378] | 3828 |
|
---|
[703] | 3829 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3830 | # so one script is as good as another. But avoid the broken or
|
---|
| 3831 | # incompatible versions:
|
---|
| 3832 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3833 | # SunOS /usr/etc/install
|
---|
| 3834 | # IRIX /sbin/install
|
---|
| 3835 | # AIX /bin/install
|
---|
[8756] | 3836 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 3837 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3838 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3839 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 3840 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 3841 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[22378] | 3842 | # Reject install programs that cannot install multiple files.
|
---|
| 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
| 3844 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
[703] | 3845 | if test -z "$INSTALL"; then
|
---|
[22378] | 3846 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
| 3847 | $as_echo_n "(cached) " >&6
|
---|
[703] | 3848 | else
|
---|
[8756] | 3849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3850 | for as_dir in $PATH
|
---|
| 3851 | do
|
---|
| 3852 | IFS=$as_save_IFS
|
---|
| 3853 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3854 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3855 | case $as_dir/ in #((
|
---|
| 3856 | ./ | .// | /[cC]/* | \
|
---|
[8756] | 3857 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[22378] | 3858 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
[8756] | 3859 | /usr/ucb/* ) ;;
|
---|
| 3860 | *)
|
---|
| 3861 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3862 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3863 | # by default.
|
---|
| 3864 | for ac_prog in ginstall scoinst install; do
|
---|
| 3865 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[22378] | 3866 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[703] | 3867 | if test $ac_prog = install &&
|
---|
[8756] | 3868 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 3869 | # AIX install. It has an incompatible calling convention.
|
---|
| 3870 | :
|
---|
[8756] | 3871 | elif test $ac_prog = install &&
|
---|
| 3872 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3873 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3874 | :
|
---|
[703] | 3875 | else
|
---|
[22378] | 3876 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3877 | echo one > conftest.one
|
---|
| 3878 | echo two > conftest.two
|
---|
| 3879 | mkdir conftest.dir
|
---|
| 3880 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 3881 | test -s conftest.one && test -s conftest.two &&
|
---|
| 3882 | test -s conftest.dir/conftest.one &&
|
---|
| 3883 | test -s conftest.dir/conftest.two
|
---|
| 3884 | then
|
---|
| 3885 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3886 | break 3
|
---|
| 3887 | fi
|
---|
[703] | 3888 | fi
|
---|
| 3889 | fi
|
---|
| 3890 | done
|
---|
[8756] | 3891 | done
|
---|
| 3892 | ;;
|
---|
| 3893 | esac
|
---|
[703] | 3894 |
|
---|
[22378] | 3895 | done
|
---|
| 3896 | IFS=$as_save_IFS
|
---|
[8756] | 3897 |
|
---|
[22378] | 3898 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3899 |
|
---|
[703] | 3900 | fi
|
---|
| 3901 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 3902 | INSTALL=$ac_cv_path_install
|
---|
[703] | 3903 | else
|
---|
[22378] | 3904 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3905 | # value for INSTALL within a source directory, because that will
|
---|
[703] | 3906 | # break other packages using the cache if that directory is
|
---|
[22378] | 3907 | # removed, or if the value is a relative name.
|
---|
[8756] | 3908 | INSTALL=$ac_install_sh
|
---|
[703] | 3909 | fi
|
---|
| 3910 | fi
|
---|
[22378] | 3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
| 3912 | $as_echo "$INSTALL" >&6; }
|
---|
[703] | 3913 |
|
---|
| 3914 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3915 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3916 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3917 |
|
---|
[8756] | 3918 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 3919 |
|
---|
| 3920 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3921 |
|
---|
[22378] | 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
| 3923 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
[8756] | 3924 | LN_S=$as_ln_s
|
---|
| 3925 | if test "$LN_S" = "ln -s"; then
|
---|
[22378] | 3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3927 | $as_echo "yes" >&6; }
|
---|
[562] | 3928 | else
|
---|
[22378] | 3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
| 3930 | $as_echo "no, using $LN_S" >&6; }
|
---|
[562] | 3931 | fi
|
---|
| 3932 |
|
---|
[22378] | 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3934 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 3935 | set x ${MAKE-make}
|
---|
| 3936 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
[23508] | 3937 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 3938 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3939 | else
|
---|
[8756] | 3940 | cat >conftest.make <<\_ACEOF
|
---|
[22378] | 3941 | SHELL = /bin/sh
|
---|
[562] | 3942 | all:
|
---|
[22378] | 3943 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[8756] | 3944 | _ACEOF
|
---|
[23508] | 3945 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[22378] | 3946 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3947 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3948 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3949 | *)
|
---|
| 3950 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3951 | esac
|
---|
[8756] | 3952 | rm -f conftest.make
|
---|
[562] | 3953 | fi
|
---|
[22378] | 3954 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3956 | $as_echo "yes" >&6; }
|
---|
[562] | 3957 | SET_MAKE=
|
---|
| 3958 | else
|
---|
[22378] | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3960 | $as_echo "no" >&6; }
|
---|
[562] | 3961 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3962 | fi
|
---|
| 3963 |
|
---|
[8756] | 3964 | if test -n "$ac_tool_prefix"; then
|
---|
| 3965 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3966 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[22378] | 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3968 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3969 | if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
---|
| 3970 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3971 | else
|
---|
| 3972 | if test -n "$RANLIB"; then
|
---|
| 3973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3974 | else
|
---|
[8756] | 3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3976 | for as_dir in $PATH
|
---|
| 3977 | do
|
---|
| 3978 | IFS=$as_save_IFS
|
---|
| 3979 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3980 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3982 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[22378] | 3983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3984 | break 2
|
---|
| 3985 | fi
|
---|
| 3986 | done
|
---|
[22378] | 3987 | done
|
---|
| 3988 | IFS=$as_save_IFS
|
---|
[8756] | 3989 |
|
---|
[562] | 3990 | fi
|
---|
| 3991 | fi
|
---|
[8756] | 3992 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3993 | if test -n "$RANLIB"; then
|
---|
[22378] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
| 3995 | $as_echo "$RANLIB" >&6; }
|
---|
[562] | 3996 | else
|
---|
[22378] | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3998 | $as_echo "no" >&6; }
|
---|
[562] | 3999 | fi
|
---|
| 4000 |
|
---|
[22378] | 4001 |
|
---|
[8756] | 4002 | fi
|
---|
| 4003 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 4004 | ac_ct_RANLIB=$RANLIB
|
---|
| 4005 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 4006 | set dummy ranlib; ac_word=$2
|
---|
[22378] | 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4008 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4009 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
---|
| 4010 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 4011 | else
|
---|
| 4012 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 4013 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 4014 | else
|
---|
| 4015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4016 | for as_dir in $PATH
|
---|
| 4017 | do
|
---|
| 4018 | IFS=$as_save_IFS
|
---|
| 4019 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 4020 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 4022 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[22378] | 4023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 4024 | break 2
|
---|
| 4025 | fi
|
---|
| 4026 | done
|
---|
[22378] | 4027 | done
|
---|
| 4028 | IFS=$as_save_IFS
|
---|
[562] | 4029 |
|
---|
[8756] | 4030 | fi
|
---|
| 4031 | fi
|
---|
| 4032 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 4033 | if test -n "$ac_ct_RANLIB"; then
|
---|
[22378] | 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
| 4035 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
[8756] | 4036 | else
|
---|
[22378] | 4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4038 | $as_echo "no" >&6; }
|
---|
[8756] | 4039 | fi
|
---|
| 4040 |
|
---|
[22378] | 4041 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 4042 | RANLIB=":"
|
---|
| 4043 | else
|
---|
| 4044 | case $cross_compiling:$ac_tool_warned in
|
---|
| 4045 | yes:)
|
---|
| 4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 4047 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 4048 | ac_tool_warned=yes ;;
|
---|
| 4049 | esac
|
---|
| 4050 | RANLIB=$ac_ct_RANLIB
|
---|
| 4051 | fi
|
---|
[8756] | 4052 | else
|
---|
| 4053 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 4054 | fi
|
---|
| 4055 |
|
---|
| 4056 |
|
---|
[15551] | 4057 |
|
---|
[2173] | 4058 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 4059 | if test $USE_CORBA = 1; then
|
---|
| 4060 |
|
---|
[2213] | 4061 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 4062 | #do something
|
---|
| 4063 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 4064 | else
|
---|
| 4065 | #build the micotest program
|
---|
| 4066 | MICO_INC= ""
|
---|
| 4067 | if test $MICO_DIR != yes; then
|
---|
| 4068 | MICO_INC="-I $MICO_DIR"
|
---|
| 4069 | fi
|
---|
| 4070 | fi
|
---|
| 4071 |
|
---|
| 4072 | #get MICO_VER value
|
---|
| 4073 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 4074 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 4075 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 4076 | sh -c "rm micotest"
|
---|
| 4077 | sh -c "rm micotest.o"
|
---|
| 4078 |
|
---|
| 4079 | #do test of MICO_VER
|
---|
| 4080 | if test MICO_VER != 0; then
|
---|
[22378] | 4081 | $as_echo "#define MICO_VER 1" >>confdefs.h
|
---|
[2173] | 4082 |
|
---|
[8200] | 4083 |
|
---|
[2173] | 4084 | fi
|
---|
| 4085 | #end USE_CORBA test
|
---|
| 4086 | fi
|
---|
| 4087 |
|
---|
[8756] | 4088 |
|
---|
| 4089 | ac_ext=c
|
---|
| 4090 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[22378] | 4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
| 4095 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
[687] | 4096 | # On Suns, sometimes $CPP names a directory.
|
---|
| 4097 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 4098 | CPP=
|
---|
| 4099 | fi
|
---|
| 4100 | if test -z "$CPP"; then
|
---|
[22378] | 4101 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
| 4102 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4103 | else
|
---|
[8756] | 4104 | # Double quotes because CPP needs to be expanded
|
---|
| 4105 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 4106 | do
|
---|
| 4107 | ac_preproc_ok=false
|
---|
| 4108 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4109 | do
|
---|
| 4110 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4111 | # with a fresh cross-compiler works.
|
---|
| 4112 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4113 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 4114 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 4115 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[22378] | 4116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4117 | /* end confdefs.h. */
|
---|
| 4118 | #ifdef __STDC__
|
---|
| 4119 | # include <limits.h>
|
---|
| 4120 | #else
|
---|
| 4121 | # include <assert.h>
|
---|
| 4122 | #endif
|
---|
| 4123 | Syntax error
|
---|
| 4124 | _ACEOF
|
---|
[22378] | 4125 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4126 |
|
---|
[20853] | 4127 | else
|
---|
[8756] | 4128 | # Broken: fails on valid input.
|
---|
| 4129 | continue
|
---|
| 4130 | fi
|
---|
[23508] | 4131 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4132 |
|
---|
[22378] | 4133 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8756] | 4134 | # can be detected and how.
|
---|
[22378] | 4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4136 | /* end confdefs.h. */
|
---|
| 4137 | #include <ac_nonexistent.h>
|
---|
| 4138 | _ACEOF
|
---|
[22378] | 4139 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8756] | 4140 | # Broken: success on invalid input.
|
---|
| 4141 | continue
|
---|
| 4142 | else
|
---|
| 4143 | # Passes both tests.
|
---|
| 4144 | ac_preproc_ok=:
|
---|
| 4145 | break
|
---|
| 4146 | fi
|
---|
[23508] | 4147 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4148 |
|
---|
| 4149 | done
|
---|
| 4150 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[23508] | 4151 | rm -f conftest.err conftest.$ac_ext
|
---|
[22378] | 4152 | if $ac_preproc_ok; then :
|
---|
[8756] | 4153 | break
|
---|
| 4154 | fi
|
---|
| 4155 |
|
---|
| 4156 | done
|
---|
| 4157 | ac_cv_prog_CPP=$CPP
|
---|
| 4158 |
|
---|
| 4159 | fi
|
---|
| 4160 | CPP=$ac_cv_prog_CPP
|
---|
| 4161 | else
|
---|
| 4162 | ac_cv_prog_CPP=$CPP
|
---|
| 4163 | fi
|
---|
[22378] | 4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
| 4165 | $as_echo "$CPP" >&6; }
|
---|
[8756] | 4166 | ac_preproc_ok=false
|
---|
| 4167 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4168 | do
|
---|
| 4169 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4170 | # with a fresh cross-compiler works.
|
---|
| 4171 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4172 | # <limits.h> exists even on freestanding compilers.
|
---|
| 4173 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4174 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[22378] | 4175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4176 | /* end confdefs.h. */
|
---|
| 4177 | #ifdef __STDC__
|
---|
| 4178 | # include <limits.h>
|
---|
| 4179 | #else
|
---|
| 4180 | # include <assert.h>
|
---|
| 4181 | #endif
|
---|
| 4182 | Syntax error
|
---|
| 4183 | _ACEOF
|
---|
[22378] | 4184 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4185 |
|
---|
[20853] | 4186 | else
|
---|
[8756] | 4187 | # Broken: fails on valid input.
|
---|
| 4188 | continue
|
---|
[687] | 4189 | fi
|
---|
[23508] | 4190 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4191 |
|
---|
[22378] | 4192 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8756] | 4193 | # can be detected and how.
|
---|
[22378] | 4194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4195 | /* end confdefs.h. */
|
---|
| 4196 | #include <ac_nonexistent.h>
|
---|
| 4197 | _ACEOF
|
---|
[22378] | 4198 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8756] | 4199 | # Broken: success on invalid input.
|
---|
| 4200 | continue
|
---|
| 4201 | else
|
---|
| 4202 | # Passes both tests.
|
---|
| 4203 | ac_preproc_ok=:
|
---|
| 4204 | break
|
---|
[687] | 4205 | fi
|
---|
[23508] | 4206 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4207 |
|
---|
| 4208 | done
|
---|
| 4209 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[23508] | 4210 | rm -f conftest.err conftest.$ac_ext
|
---|
[22378] | 4211 | if $ac_preproc_ok; then :
|
---|
| 4212 |
|
---|
[8756] | 4213 | else
|
---|
[22378] | 4214 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 4215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[23508] | 4216 | as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
---|
| 4217 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[8200] | 4218 | fi
|
---|
[8756] | 4219 |
|
---|
| 4220 | ac_ext=c
|
---|
| 4221 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4225 |
|
---|
| 4226 |
|
---|
[22378] | 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
| 4228 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
| 4229 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
| 4230 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4231 | else
|
---|
[22378] | 4232 | if test -z "$GREP"; then
|
---|
| 4233 | ac_path_GREP_found=false
|
---|
| 4234 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4236 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4237 | do
|
---|
| 4238 | IFS=$as_save_IFS
|
---|
| 4239 | test -z "$as_dir" && as_dir=.
|
---|
| 4240 | for ac_prog in grep ggrep; do
|
---|
| 4241 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4242 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4243 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4244 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4245 | # Check for GNU $ac_path_GREP
|
---|
| 4246 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4247 | *GNU*)
|
---|
| 4248 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4249 | *)
|
---|
| 4250 | ac_count=0
|
---|
| 4251 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4252 | while :
|
---|
| 4253 | do
|
---|
| 4254 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4255 | mv "conftest.tmp" "conftest.in"
|
---|
| 4256 | cp "conftest.in" "conftest.nl"
|
---|
| 4257 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 4258 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4259 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4260 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 4261 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4262 | # Best one so far, save it but keep looking for a better one
|
---|
| 4263 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4264 | ac_path_GREP_max=$ac_count
|
---|
[8756] | 4265 | fi
|
---|
[22378] | 4266 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4267 | test $ac_count -gt 10 && break
|
---|
| 4268 | done
|
---|
| 4269 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4270 | esac
|
---|
[687] | 4271 |
|
---|
[22378] | 4272 | $ac_path_GREP_found && break 3
|
---|
| 4273 | done
|
---|
| 4274 | done
|
---|
| 4275 | done
|
---|
| 4276 | IFS=$as_save_IFS
|
---|
| 4277 | if test -z "$ac_cv_path_GREP"; then
|
---|
[23508] | 4278 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[22378] | 4279 | fi
|
---|
[687] | 4280 | else
|
---|
[22378] | 4281 | ac_cv_path_GREP=$GREP
|
---|
[687] | 4282 | fi
|
---|
| 4283 |
|
---|
[22378] | 4284 | fi
|
---|
| 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
| 4286 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 4287 | GREP="$ac_cv_path_GREP"
|
---|
[8200] | 4288 |
|
---|
[687] | 4289 |
|
---|
[22378] | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
| 4291 | $as_echo_n "checking for egrep... " >&6; }
|
---|
| 4292 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
| 4293 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4294 | else
|
---|
[22378] | 4295 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4296 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4297 | else
|
---|
| 4298 | if test -z "$EGREP"; then
|
---|
| 4299 | ac_path_EGREP_found=false
|
---|
| 4300 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4302 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4303 | do
|
---|
| 4304 | IFS=$as_save_IFS
|
---|
| 4305 | test -z "$as_dir" && as_dir=.
|
---|
| 4306 | for ac_prog in egrep; do
|
---|
| 4307 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4308 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4309 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4310 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4311 | # Check for GNU $ac_path_EGREP
|
---|
| 4312 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4313 | *GNU*)
|
---|
| 4314 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4315 | *)
|
---|
| 4316 | ac_count=0
|
---|
| 4317 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4318 | while :
|
---|
| 4319 | do
|
---|
| 4320 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4321 | mv "conftest.tmp" "conftest.in"
|
---|
| 4322 | cp "conftest.in" "conftest.nl"
|
---|
| 4323 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 4324 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4325 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4326 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 4327 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4328 | # Best one so far, save it but keep looking for a better one
|
---|
| 4329 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4330 | ac_path_EGREP_max=$ac_count
|
---|
| 4331 | fi
|
---|
| 4332 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4333 | test $ac_count -gt 10 && break
|
---|
| 4334 | done
|
---|
| 4335 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4336 | esac
|
---|
[8756] | 4337 |
|
---|
[22378] | 4338 | $ac_path_EGREP_found && break 3
|
---|
| 4339 | done
|
---|
| 4340 | done
|
---|
| 4341 | done
|
---|
| 4342 | IFS=$as_save_IFS
|
---|
| 4343 | if test -z "$ac_cv_path_EGREP"; then
|
---|
[23508] | 4344 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[22378] | 4345 | fi
|
---|
[687] | 4346 | else
|
---|
[22378] | 4347 | ac_cv_path_EGREP=$EGREP
|
---|
[8756] | 4348 | fi
|
---|
| 4349 |
|
---|
[22378] | 4350 | fi
|
---|
[8756] | 4351 | fi
|
---|
[22378] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
| 4353 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 4354 | EGREP="$ac_cv_path_EGREP"
|
---|
[8756] | 4355 |
|
---|
[22378] | 4356 |
|
---|
| 4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 4358 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 4359 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
| 4360 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4361 | else
|
---|
[22378] | 4362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4363 | /* end confdefs.h. */
|
---|
| 4364 | #include <stdlib.h>
|
---|
| 4365 | #include <stdarg.h>
|
---|
| 4366 | #include <string.h>
|
---|
| 4367 | #include <float.h>
|
---|
| 4368 |
|
---|
| 4369 | int
|
---|
| 4370 | main ()
|
---|
| 4371 | {
|
---|
| 4372 |
|
---|
| 4373 | ;
|
---|
| 4374 | return 0;
|
---|
| 4375 | }
|
---|
| 4376 | _ACEOF
|
---|
[22378] | 4377 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8756] | 4378 | ac_cv_header_stdc=yes
|
---|
| 4379 | else
|
---|
[22378] | 4380 | ac_cv_header_stdc=no
|
---|
[687] | 4381 | fi
|
---|
[22378] | 4382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 4383 |
|
---|
| 4384 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4385 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[22378] | 4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4387 | /* end confdefs.h. */
|
---|
| 4388 | #include <string.h>
|
---|
| 4389 |
|
---|
| 4390 | _ACEOF
|
---|
| 4391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 4392 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 4393 |
|
---|
[8756] | 4394 | else
|
---|
| 4395 | ac_cv_header_stdc=no
|
---|
| 4396 | fi
|
---|
[8200] | 4397 | rm -f conftest*
|
---|
[8756] | 4398 |
|
---|
[687] | 4399 | fi
|
---|
[8756] | 4400 |
|
---|
| 4401 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4402 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[22378] | 4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4404 | /* end confdefs.h. */
|
---|
| 4405 | #include <stdlib.h>
|
---|
| 4406 |
|
---|
| 4407 | _ACEOF
|
---|
| 4408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 4409 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 4410 |
|
---|
[8756] | 4411 | else
|
---|
| 4412 | ac_cv_header_stdc=no
|
---|
| 4413 | fi
|
---|
| 4414 | rm -f conftest*
|
---|
| 4415 |
|
---|
| 4416 | fi
|
---|
| 4417 |
|
---|
| 4418 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4419 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[22378] | 4420 | if test "$cross_compiling" = yes; then :
|
---|
[8756] | 4421 | :
|
---|
| 4422 | else
|
---|
[22378] | 4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4424 | /* end confdefs.h. */
|
---|
| 4425 | #include <ctype.h>
|
---|
[22378] | 4426 | #include <stdlib.h>
|
---|
[8756] | 4427 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4428 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4429 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4430 | #else
|
---|
| 4431 | # define ISLOWER(c) \
|
---|
| 4432 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4433 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4434 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4435 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4436 | #endif
|
---|
| 4437 |
|
---|
| 4438 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4439 | int
|
---|
| 4440 | main ()
|
---|
| 4441 | {
|
---|
| 4442 | int i;
|
---|
| 4443 | for (i = 0; i < 256; i++)
|
---|
| 4444 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4445 | || toupper (i) != TOUPPER (i))
|
---|
[22378] | 4446 | return 2;
|
---|
| 4447 | return 0;
|
---|
[8756] | 4448 | }
|
---|
| 4449 | _ACEOF
|
---|
[22378] | 4450 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 4451 |
|
---|
[8756] | 4452 | else
|
---|
[22378] | 4453 | ac_cv_header_stdc=no
|
---|
[8756] | 4454 | fi
|
---|
[22378] | 4455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 4456 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[8756] | 4457 | fi
|
---|
[22378] | 4458 |
|
---|
[8756] | 4459 | fi
|
---|
| 4460 | fi
|
---|
[22378] | 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 4462 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[8756] | 4463 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4464 |
|
---|
[22378] | 4465 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[8756] | 4466 |
|
---|
| 4467 | fi
|
---|
| 4468 |
|
---|
| 4469 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
[22378] | 4470 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4471 | inttypes.h stdint.h unistd.h
|
---|
| 4472 | do :
|
---|
| 4473 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4474 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 4475 | "
|
---|
[23508] | 4476 | eval as_val=\$$as_ac_Header
|
---|
| 4477 | if test "x$as_val" = x""yes; then :
|
---|
[22378] | 4478 | cat >>confdefs.h <<_ACEOF
|
---|
| 4479 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4480 | _ACEOF
|
---|
[8756] | 4481 |
|
---|
[22378] | 4482 | fi
|
---|
[8756] | 4483 |
|
---|
[22378] | 4484 | done
|
---|
[8756] | 4485 |
|
---|
| 4486 |
|
---|
| 4487 |
|
---|
[22378] | 4488 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
| 4489 | if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
---|
| 4490 | MINIX=yes
|
---|
| 4491 | else
|
---|
| 4492 | MINIX=
|
---|
| 4493 | fi
|
---|
[8756] | 4494 |
|
---|
| 4495 |
|
---|
[22378] | 4496 | if test "$MINIX" = yes; then
|
---|
[8756] | 4497 |
|
---|
[22378] | 4498 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
[8756] | 4499 |
|
---|
[22378] | 4500 |
|
---|
| 4501 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
| 4502 |
|
---|
| 4503 |
|
---|
| 4504 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
| 4505 |
|
---|
| 4506 | fi
|
---|
| 4507 |
|
---|
| 4508 |
|
---|
| 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
| 4510 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
| 4511 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
---|
| 4512 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 4513 | else
|
---|
[22378] | 4514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4515 | /* end confdefs.h. */
|
---|
| 4516 |
|
---|
[22378] | 4517 | # define __EXTENSIONS__ 1
|
---|
| 4518 | $ac_includes_default
|
---|
| 4519 | int
|
---|
| 4520 | main ()
|
---|
| 4521 | {
|
---|
| 4522 |
|
---|
| 4523 | ;
|
---|
| 4524 | return 0;
|
---|
| 4525 | }
|
---|
[8756] | 4526 | _ACEOF
|
---|
[22378] | 4527 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4528 | ac_cv_safe_to_define___extensions__=yes
|
---|
[8756] | 4529 | else
|
---|
[22378] | 4530 | ac_cv_safe_to_define___extensions__=no
|
---|
[8756] | 4531 | fi
|
---|
[22378] | 4532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 4533 | fi
|
---|
[22378] | 4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
| 4535 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
| 4536 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
| 4537 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
[8756] | 4538 |
|
---|
[22378] | 4539 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
[8756] | 4540 |
|
---|
[22378] | 4541 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
[8756] | 4542 |
|
---|
[22378] | 4543 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
[8756] | 4544 |
|
---|
[22378] | 4545 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
| 4546 |
|
---|
| 4547 |
|
---|
| 4548 |
|
---|
| 4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
| 4550 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
| 4551 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
| 4552 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 4553 | else
|
---|
[22378] | 4554 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4556 | /* end confdefs.h. */
|
---|
| 4557 |
|
---|
[22378] | 4558 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4559 | Use char because int might match the return type of a GCC
|
---|
| 4560 | builtin and then its argument prototype would still apply. */
|
---|
| 4561 | #ifdef __cplusplus
|
---|
| 4562 | extern "C"
|
---|
| 4563 | #endif
|
---|
| 4564 | char strerror ();
|
---|
| 4565 | int
|
---|
| 4566 | main ()
|
---|
| 4567 | {
|
---|
| 4568 | return strerror ();
|
---|
| 4569 | ;
|
---|
| 4570 | return 0;
|
---|
| 4571 | }
|
---|
[8756] | 4572 | _ACEOF
|
---|
[22378] | 4573 | for ac_lib in '' cposix; do
|
---|
| 4574 | if test -z "$ac_lib"; then
|
---|
| 4575 | ac_res="none required"
|
---|
[20853] | 4576 | else
|
---|
[22378] | 4577 | ac_res=-l$ac_lib
|
---|
| 4578 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[20853] | 4579 | fi
|
---|
[22378] | 4580 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 4581 | ac_cv_search_strerror=$ac_res
|
---|
[20853] | 4582 | fi
|
---|
[22378] | 4583 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4584 | conftest$ac_exeext
|
---|
| 4585 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
| 4586 | break
|
---|
[8756] | 4587 | fi
|
---|
[22378] | 4588 | done
|
---|
| 4589 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
[8756] | 4590 |
|
---|
| 4591 | else
|
---|
[22378] | 4592 | ac_cv_search_strerror=no
|
---|
[8756] | 4593 | fi
|
---|
[22378] | 4594 | rm conftest.$ac_ext
|
---|
| 4595 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4596 | fi
|
---|
| 4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
| 4598 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
| 4599 | ac_res=$ac_cv_search_strerror
|
---|
| 4600 | if test "$ac_res" != no; then :
|
---|
| 4601 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[8756] | 4602 |
|
---|
| 4603 | fi
|
---|
[687] | 4604 |
|
---|
[8756] | 4605 |
|
---|
[22378] | 4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4607 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
| 4608 | if test "${ac_cv_prog_cc_stdc+set}" = set; then :
|
---|
| 4609 | $as_echo_n "(cached) " >&6
|
---|
[700] | 4610 | else
|
---|
| 4611 | ac_cv_prog_cc_stdc=no
|
---|
| 4612 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4613 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4614 | # breaks some systems' header files.
|
---|
| 4615 | # AIX -qlanglvl=ansi
|
---|
| 4616 | # Ultrix and OSF/1 -std1
|
---|
| 4617 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4618 | # SVR4 -Xc
|
---|
| 4619 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4620 | do
|
---|
| 4621 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[22378] | 4622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4623 | /* end confdefs.h. */
|
---|
[700] | 4624 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4625 | choke me
|
---|
[8756] | 4626 | #endif
|
---|
[700] | 4627 |
|
---|
[8756] | 4628 | int
|
---|
| 4629 | main ()
|
---|
| 4630 | {
|
---|
[700] | 4631 | int test (int i, double x);
|
---|
| 4632 | struct s1 {int (*f) (int a);};
|
---|
| 4633 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4634 | ;
|
---|
| 4635 | return 0;
|
---|
| 4636 | }
|
---|
| 4637 | _ACEOF
|
---|
[22378] | 4638 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[700] | 4639 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4640 | fi
|
---|
[22378] | 4641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4642 | done
|
---|
| 4643 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4644 |
|
---|
| 4645 | fi
|
---|
| 4646 |
|
---|
[22378] | 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4648 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
[700] | 4649 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4650 | x|xno) ;;
|
---|
| 4651 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4652 | esac
|
---|
| 4653 |
|
---|
[8200] | 4654 |
|
---|
[22378] | 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
| 4656 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
[700] | 4657 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[22378] | 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 4659 | $as_echo "yes" >&6; }
|
---|
| 4660 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
[700] | 4661 |
|
---|
| 4662 | U= ANSI2KNR=
|
---|
| 4663 | else
|
---|
[22378] | 4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4665 | $as_echo "no" >&6; }
|
---|
[700] | 4666 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4667 | fi
|
---|
| 4668 |
|
---|
[22378] | 4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
| 4670 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
| 4671 | if test "${ac_cv_c_const+set}" = set; then :
|
---|
| 4672 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4673 | else
|
---|
[22378] | 4674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4675 | /* end confdefs.h. */
|
---|
[8200] | 4676 |
|
---|
[8756] | 4677 | int
|
---|
| 4678 | main ()
|
---|
| 4679 | {
|
---|
| 4680 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4681 | #ifndef __cplusplus
|
---|
| 4682 | /* Ultrix mips cc rejects this. */
|
---|
| 4683 | typedef int charset[2];
|
---|
[22378] | 4684 | const charset cs;
|
---|
[8756] | 4685 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[22378] | 4686 | char const *const *pcpcc;
|
---|
| 4687 | char **ppc;
|
---|
[8756] | 4688 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4689 | struct point {int x, y;};
|
---|
| 4690 | static struct point const zero = {0,0};
|
---|
| 4691 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4692 | It does not let you subtract one const X* pointer from another in
|
---|
| 4693 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4694 | expression */
|
---|
| 4695 | const char *g = "string";
|
---|
[22378] | 4696 | pcpcc = &g + (g ? g-g : 0);
|
---|
[8756] | 4697 | /* HPUX 7.0 cc rejects these. */
|
---|
[22378] | 4698 | ++pcpcc;
|
---|
| 4699 | ppc = (char**) pcpcc;
|
---|
| 4700 | pcpcc = (char const *const *) ppc;
|
---|
[8756] | 4701 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4702 | char *t;
|
---|
| 4703 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4704 |
|
---|
[8756] | 4705 | *t++ = 0;
|
---|
[22378] | 4706 | if (s) return 0;
|
---|
[8756] | 4707 | }
|
---|
| 4708 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4709 | int x[] = {25, 17};
|
---|
| 4710 | const int *foo = &x[0];
|
---|
| 4711 | ++foo;
|
---|
| 4712 | }
|
---|
| 4713 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4714 | typedef const int *iptr;
|
---|
| 4715 | iptr p = 0;
|
---|
| 4716 | ++p;
|
---|
| 4717 | }
|
---|
| 4718 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4719 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4720 | struct s { int j; const int *ap[3]; };
|
---|
| 4721 | struct s *b; b->j = 5;
|
---|
| 4722 | }
|
---|
| 4723 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4724 | const int foo = 10;
|
---|
[22378] | 4725 | if (!foo) return 0;
|
---|
[8756] | 4726 | }
|
---|
[22378] | 4727 | return !cs[0] && !zero.x;
|
---|
[8756] | 4728 | #endif
|
---|
[8200] | 4729 |
|
---|
[8756] | 4730 | ;
|
---|
| 4731 | return 0;
|
---|
[3631] | 4732 | }
|
---|
[8756] | 4733 | _ACEOF
|
---|
[22378] | 4734 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[687] | 4735 | ac_cv_c_const=yes
|
---|
| 4736 | else
|
---|
[22378] | 4737 | ac_cv_c_const=no
|
---|
[687] | 4738 | fi
|
---|
[22378] | 4739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4740 | fi
|
---|
[22378] | 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
| 4742 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
[3631] | 4743 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4744 |
|
---|
[22378] | 4745 | $as_echo "#define const /**/" >>confdefs.h
|
---|
[8756] | 4746 |
|
---|
[687] | 4747 | fi
|
---|
| 4748 |
|
---|
[22378] | 4749 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
| 4750 | if test "x$ac_cv_type_off_t" = x""yes; then :
|
---|
[687] | 4751 |
|
---|
| 4752 | else
|
---|
| 4753 |
|
---|
[8756] | 4754 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 4755 | #define off_t long int
|
---|
[8756] | 4756 | _ACEOF
|
---|
[687] | 4757 |
|
---|
| 4758 | fi
|
---|
[8200] | 4759 |
|
---|
[22378] | 4760 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 4761 | if test "x$ac_cv_type_size_t" = x""yes; then :
|
---|
[8200] | 4762 |
|
---|
[687] | 4763 | else
|
---|
[8200] | 4764 |
|
---|
[8756] | 4765 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 4766 | #define size_t unsigned int
|
---|
[8756] | 4767 | _ACEOF
|
---|
[687] | 4768 |
|
---|
| 4769 | fi
|
---|
| 4770 |
|
---|
[22378] | 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4772 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
| 4773 | if test "${ac_cv_header_time+set}" = set; then :
|
---|
| 4774 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4775 | else
|
---|
[22378] | 4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4777 | /* end confdefs.h. */
|
---|
[687] | 4778 | #include <sys/types.h>
|
---|
| 4779 | #include <sys/time.h>
|
---|
| 4780 | #include <time.h>
|
---|
[8756] | 4781 |
|
---|
| 4782 | int
|
---|
| 4783 | main ()
|
---|
| 4784 | {
|
---|
| 4785 | if ((struct tm *) 0)
|
---|
| 4786 | return 0;
|
---|
| 4787 | ;
|
---|
| 4788 | return 0;
|
---|
| 4789 | }
|
---|
| 4790 | _ACEOF
|
---|
[22378] | 4791 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[687] | 4792 | ac_cv_header_time=yes
|
---|
| 4793 | else
|
---|
[22378] | 4794 | ac_cv_header_time=no
|
---|
[687] | 4795 | fi
|
---|
[22378] | 4796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4797 | fi
|
---|
[22378] | 4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
| 4799 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
[8756] | 4800 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4801 |
|
---|
[22378] | 4802 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
[687] | 4803 |
|
---|
| 4804 | fi
|
---|
| 4805 |
|
---|
[22378] | 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4807 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
| 4808 | if test "${ac_cv_struct_tm+set}" = set; then :
|
---|
| 4809 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4810 | else
|
---|
[22378] | 4811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4812 | /* end confdefs.h. */
|
---|
[687] | 4813 | #include <sys/types.h>
|
---|
| 4814 | #include <time.h>
|
---|
[8756] | 4815 |
|
---|
| 4816 | int
|
---|
| 4817 | main ()
|
---|
| 4818 | {
|
---|
[22378] | 4819 | struct tm tm;
|
---|
| 4820 | int *p = &tm.tm_sec;
|
---|
| 4821 | return !p;
|
---|
[8756] | 4822 | ;
|
---|
| 4823 | return 0;
|
---|
| 4824 | }
|
---|
| 4825 | _ACEOF
|
---|
[22378] | 4826 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[687] | 4827 | ac_cv_struct_tm=time.h
|
---|
| 4828 | else
|
---|
[22378] | 4829 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4830 | fi
|
---|
[22378] | 4831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4832 | fi
|
---|
[22378] | 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
| 4834 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
[8756] | 4835 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4836 |
|
---|
[22378] | 4837 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
[687] | 4838 |
|
---|
| 4839 | fi
|
---|
| 4840 |
|
---|
[8200] | 4841 |
|
---|
[687] | 4842 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[22378] | 4843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4844 | /* end confdefs.h. */
|
---|
[687] | 4845 | #include <stdio.h>
|
---|
| 4846 |
|
---|
[8756] | 4847 | int
|
---|
| 4848 | main ()
|
---|
| 4849 | {
|
---|
| 4850 | FILE *rubbish = popen("yes", "r");
|
---|
| 4851 | ;
|
---|
| 4852 | return 0;
|
---|
| 4853 | }
|
---|
| 4854 | _ACEOF
|
---|
[22378] | 4855 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4856 |
|
---|
[687] | 4857 | else
|
---|
[22378] | 4858 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4859 | fi
|
---|
[22378] | 4860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4861 | fi
|
---|
| 4862 |
|
---|
[8200] | 4863 |
|
---|
[22378] | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
| 4865 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
| 4866 | if test "${ac_cv_lib_g_main+set}" = set; then :
|
---|
| 4867 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4868 | else
|
---|
[8756] | 4869 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4870 | LIBS="-lg $LIBS"
|
---|
[22378] | 4871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4872 | /* end confdefs.h. */
|
---|
[562] | 4873 |
|
---|
[8756] | 4874 |
|
---|
| 4875 | int
|
---|
| 4876 | main ()
|
---|
| 4877 | {
|
---|
[22378] | 4878 | return main ();
|
---|
[8756] | 4879 | ;
|
---|
| 4880 | return 0;
|
---|
| 4881 | }
|
---|
| 4882 | _ACEOF
|
---|
[22378] | 4883 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 4884 | ac_cv_lib_g_main=yes
|
---|
[562] | 4885 | else
|
---|
[22378] | 4886 | ac_cv_lib_g_main=no
|
---|
[562] | 4887 | fi
|
---|
[22378] | 4888 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4889 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4890 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4891 | fi
|
---|
[22378] | 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
| 4893 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
| 4894 | if test "x$ac_cv_lib_g_main" = x""yes; then :
|
---|
[8756] | 4895 | cat >>confdefs.h <<_ACEOF
|
---|
| 4896 | #define HAVE_LIBG 1
|
---|
| 4897 | _ACEOF
|
---|
[562] | 4898 |
|
---|
| 4899 | LIBS="-lg $LIBS"
|
---|
| 4900 |
|
---|
| 4901 | fi
|
---|
[8756] | 4902 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4903 |
|
---|
[22378] | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
| 4905 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
| 4906 | if test "${ac_cv_lib_m_main+set}" = set; then :
|
---|
| 4907 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4908 | else
|
---|
[8756] | 4909 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4910 | LIBS="-lm $LIBS"
|
---|
[22378] | 4911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4912 | /* end confdefs.h. */
|
---|
[8200] | 4913 |
|
---|
[562] | 4914 |
|
---|
[8756] | 4915 | int
|
---|
| 4916 | main ()
|
---|
| 4917 | {
|
---|
[22378] | 4918 | return main ();
|
---|
[8756] | 4919 | ;
|
---|
| 4920 | return 0;
|
---|
| 4921 | }
|
---|
| 4922 | _ACEOF
|
---|
[22378] | 4923 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 4924 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4925 | else
|
---|
[22378] | 4926 | ac_cv_lib_m_main=no
|
---|
[562] | 4927 | fi
|
---|
[22378] | 4928 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4929 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4930 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4931 | fi
|
---|
[22378] | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
| 4933 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
| 4934 | if test "x$ac_cv_lib_m_main" = x""yes; then :
|
---|
[8756] | 4935 | cat >>confdefs.h <<_ACEOF
|
---|
| 4936 | #define HAVE_LIBM 1
|
---|
| 4937 | _ACEOF
|
---|
[562] | 4938 |
|
---|
| 4939 | LIBS="-lm $LIBS"
|
---|
| 4940 |
|
---|
| 4941 | fi
|
---|
[8756] | 4942 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4943 |
|
---|
[22378] | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
| 4945 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
| 4946 | if test "${ac_cv_lib_crypt_main+set}" = set; then :
|
---|
| 4947 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4948 | else
|
---|
[8756] | 4949 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4950 | LIBS="-lcrypt $LIBS"
|
---|
[22378] | 4951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4952 | /* end confdefs.h. */
|
---|
[562] | 4953 |
|
---|
[8756] | 4954 |
|
---|
| 4955 | int
|
---|
| 4956 | main ()
|
---|
| 4957 | {
|
---|
[22378] | 4958 | return main ();
|
---|
[8756] | 4959 | ;
|
---|
| 4960 | return 0;
|
---|
| 4961 | }
|
---|
| 4962 | _ACEOF
|
---|
[22378] | 4963 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 4964 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4965 | else
|
---|
[22378] | 4966 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4967 | fi
|
---|
[22378] | 4968 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4969 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4970 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4971 | fi
|
---|
[22378] | 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4973 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
| 4974 | if test "x$ac_cv_lib_crypt_main" = x""yes; then :
|
---|
[8756] | 4975 | cat >>confdefs.h <<_ACEOF
|
---|
| 4976 | #define HAVE_LIBCRYPT 1
|
---|
| 4977 | _ACEOF
|
---|
[562] | 4978 |
|
---|
[8756] | 4979 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4980 |
|
---|
| 4981 | fi
|
---|
[8756] | 4982 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4983 |
|
---|
[20842] | 4984 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4985 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 4986 | #fi
|
---|
[562] | 4987 |
|
---|
[687] | 4988 | ac_header_dirent=no
|
---|
[8756] | 4989 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[22378] | 4990 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4992 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
[23508] | 4993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[22378] | 4994 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4995 | else
|
---|
[22378] | 4996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4997 | /* end confdefs.h. */
|
---|
[687] | 4998 | #include <sys/types.h>
|
---|
| 4999 | #include <$ac_hdr>
|
---|
[8756] | 5000 |
|
---|
| 5001 | int
|
---|
| 5002 | main ()
|
---|
| 5003 | {
|
---|
| 5004 | if ((DIR *) 0)
|
---|
| 5005 | return 0;
|
---|
| 5006 | ;
|
---|
| 5007 | return 0;
|
---|
| 5008 | }
|
---|
| 5009 | _ACEOF
|
---|
[22378] | 5010 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8756] | 5011 | eval "$as_ac_Header=yes"
|
---|
[562] | 5012 | else
|
---|
[22378] | 5013 | eval "$as_ac_Header=no"
|
---|
[687] | 5014 | fi
|
---|
[22378] | 5015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5016 | fi
|
---|
[22378] | 5017 | eval ac_res=\$$as_ac_Header
|
---|
| 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 5019 | $as_echo "$ac_res" >&6; }
|
---|
[23508] | 5020 | eval as_val=\$$as_ac_Header
|
---|
| 5021 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5022 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5023 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[8756] | 5024 | _ACEOF
|
---|
| 5025 |
|
---|
| 5026 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 5027 | fi
|
---|
[8756] | 5028 |
|
---|
[687] | 5029 | done
|
---|
| 5030 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5031 | if test $ac_header_dirent = dirent.h; then
|
---|
[22378] | 5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
| 5033 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
| 5034 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5035 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5036 | else
|
---|
[8756] | 5037 | ac_func_search_save_LIBS=$LIBS
|
---|
[22378] | 5038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5039 | /* end confdefs.h. */
|
---|
| 5040 |
|
---|
[22378] | 5041 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5042 | Use char because int might match the return type of a GCC
|
---|
| 5043 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5044 | #ifdef __cplusplus
|
---|
| 5045 | extern "C"
|
---|
| 5046 | #endif
|
---|
| 5047 | char opendir ();
|
---|
| 5048 | int
|
---|
| 5049 | main ()
|
---|
| 5050 | {
|
---|
[22378] | 5051 | return opendir ();
|
---|
[8756] | 5052 | ;
|
---|
| 5053 | return 0;
|
---|
| 5054 | }
|
---|
| 5055 | _ACEOF
|
---|
[22378] | 5056 | for ac_lib in '' dir; do
|
---|
| 5057 | if test -z "$ac_lib"; then
|
---|
| 5058 | ac_res="none required"
|
---|
| 5059 | else
|
---|
| 5060 | ac_res=-l$ac_lib
|
---|
| 5061 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5062 | fi
|
---|
| 5063 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5064 | ac_cv_search_opendir=$ac_res
|
---|
[687] | 5065 | fi
|
---|
[22378] | 5066 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5067 | conftest$ac_exeext
|
---|
| 5068 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5069 | break
|
---|
| 5070 | fi
|
---|
| 5071 | done
|
---|
| 5072 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
[8200] | 5073 |
|
---|
| 5074 | else
|
---|
[22378] | 5075 | ac_cv_search_opendir=no
|
---|
[687] | 5076 | fi
|
---|
[22378] | 5077 | rm conftest.$ac_ext
|
---|
[8756] | 5078 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5079 | fi
|
---|
[22378] | 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
| 5081 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5082 | ac_res=$ac_cv_search_opendir
|
---|
| 5083 | if test "$ac_res" != no; then :
|
---|
| 5084 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[687] | 5085 |
|
---|
[8756] | 5086 | fi
|
---|
| 5087 |
|
---|
[687] | 5088 | else
|
---|
[22378] | 5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
| 5090 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
| 5091 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5092 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5093 | else
|
---|
[8756] | 5094 | ac_func_search_save_LIBS=$LIBS
|
---|
[22378] | 5095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5096 | /* end confdefs.h. */
|
---|
| 5097 |
|
---|
[22378] | 5098 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5099 | Use char because int might match the return type of a GCC
|
---|
| 5100 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5101 | #ifdef __cplusplus
|
---|
| 5102 | extern "C"
|
---|
| 5103 | #endif
|
---|
| 5104 | char opendir ();
|
---|
| 5105 | int
|
---|
| 5106 | main ()
|
---|
| 5107 | {
|
---|
[22378] | 5108 | return opendir ();
|
---|
[8756] | 5109 | ;
|
---|
| 5110 | return 0;
|
---|
| 5111 | }
|
---|
| 5112 | _ACEOF
|
---|
[22378] | 5113 | for ac_lib in '' x; do
|
---|
| 5114 | if test -z "$ac_lib"; then
|
---|
| 5115 | ac_res="none required"
|
---|
| 5116 | else
|
---|
| 5117 | ac_res=-l$ac_lib
|
---|
| 5118 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5119 | fi
|
---|
| 5120 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5121 | ac_cv_search_opendir=$ac_res
|
---|
[562] | 5122 | fi
|
---|
[22378] | 5123 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5124 | conftest$ac_exeext
|
---|
| 5125 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5126 | break
|
---|
| 5127 | fi
|
---|
| 5128 | done
|
---|
| 5129 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
[8200] | 5130 |
|
---|
| 5131 | else
|
---|
[22378] | 5132 | ac_cv_search_opendir=no
|
---|
[562] | 5133 | fi
|
---|
[22378] | 5134 | rm conftest.$ac_ext
|
---|
[8756] | 5135 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5136 | fi
|
---|
[22378] | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
| 5138 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5139 | ac_res=$ac_cv_search_opendir
|
---|
| 5140 | if test "$ac_res" != no; then :
|
---|
| 5141 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[562] | 5142 |
|
---|
[687] | 5143 | fi
|
---|
| 5144 |
|
---|
[8756] | 5145 | fi
|
---|
| 5146 |
|
---|
[22378] | 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 5148 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 5149 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
| 5150 | $as_echo_n "(cached) " >&6
|
---|
[562] | 5151 | else
|
---|
[22378] | 5152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5153 | /* end confdefs.h. */
|
---|
[562] | 5154 | #include <stdlib.h>
|
---|
| 5155 | #include <stdarg.h>
|
---|
| 5156 | #include <string.h>
|
---|
| 5157 | #include <float.h>
|
---|
[8756] | 5158 |
|
---|
| 5159 | int
|
---|
| 5160 | main ()
|
---|
| 5161 | {
|
---|
| 5162 |
|
---|
| 5163 | ;
|
---|
| 5164 | return 0;
|
---|
| 5165 | }
|
---|
| 5166 | _ACEOF
|
---|
[22378] | 5167 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[562] | 5168 | ac_cv_header_stdc=yes
|
---|
| 5169 | else
|
---|
[22378] | 5170 | ac_cv_header_stdc=no
|
---|
[562] | 5171 | fi
|
---|
[22378] | 5172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5173 |
|
---|
| 5174 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5175 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[22378] | 5176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5177 | /* end confdefs.h. */
|
---|
[562] | 5178 | #include <string.h>
|
---|
[8756] | 5179 |
|
---|
| 5180 | _ACEOF
|
---|
[562] | 5181 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5182 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5183 |
|
---|
[562] | 5184 | else
|
---|
| 5185 | ac_cv_header_stdc=no
|
---|
| 5186 | fi
|
---|
| 5187 | rm -f conftest*
|
---|
| 5188 |
|
---|
| 5189 | fi
|
---|
| 5190 |
|
---|
| 5191 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5192 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[22378] | 5193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5194 | /* end confdefs.h. */
|
---|
[562] | 5195 | #include <stdlib.h>
|
---|
[8756] | 5196 |
|
---|
| 5197 | _ACEOF
|
---|
[562] | 5198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5199 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5200 |
|
---|
[562] | 5201 | else
|
---|
| 5202 | ac_cv_header_stdc=no
|
---|
| 5203 | fi
|
---|
| 5204 | rm -f conftest*
|
---|
| 5205 |
|
---|
| 5206 | fi
|
---|
| 5207 |
|
---|
| 5208 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5209 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[22378] | 5210 | if test "$cross_compiling" = yes; then :
|
---|
[562] | 5211 | :
|
---|
| 5212 | else
|
---|
[22378] | 5213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5214 | /* end confdefs.h. */
|
---|
[562] | 5215 | #include <ctype.h>
|
---|
[22378] | 5216 | #include <stdlib.h>
|
---|
[8756] | 5217 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5218 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5219 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5220 | #else
|
---|
| 5221 | # define ISLOWER(c) \
|
---|
| 5222 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5223 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5224 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5225 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5226 | #endif
|
---|
| 5227 |
|
---|
[8200] | 5228 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5229 | int
|
---|
| 5230 | main ()
|
---|
| 5231 | {
|
---|
| 5232 | int i;
|
---|
| 5233 | for (i = 0; i < 256; i++)
|
---|
| 5234 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5235 | || toupper (i) != TOUPPER (i))
|
---|
[22378] | 5236 | return 2;
|
---|
| 5237 | return 0;
|
---|
[8756] | 5238 | }
|
---|
| 5239 | _ACEOF
|
---|
[22378] | 5240 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5241 |
|
---|
[562] | 5242 | else
|
---|
[22378] | 5243 | ac_cv_header_stdc=no
|
---|
[562] | 5244 | fi
|
---|
[22378] | 5245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5246 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[562] | 5247 | fi
|
---|
[22378] | 5248 |
|
---|
[562] | 5249 | fi
|
---|
| 5250 | fi
|
---|
[22378] | 5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 5252 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[8756] | 5253 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5254 |
|
---|
[22378] | 5255 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[562] | 5256 |
|
---|
| 5257 | fi
|
---|
| 5258 |
|
---|
[10181] | 5259 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[22378] | 5260 | do :
|
---|
| 5261 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5262 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
[23508] | 5263 | eval as_val=\$$as_ac_Header
|
---|
| 5264 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5265 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5266 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[8756] | 5267 | _ACEOF
|
---|
| 5268 |
|
---|
| 5269 | fi
|
---|
| 5270 |
|
---|
[562] | 5271 | done
|
---|
| 5272 |
|
---|
[22378] | 5273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5274 | /* end confdefs.h. */
|
---|
[687] | 5275 | #include <stdio.h>
|
---|
[8756] | 5276 |
|
---|
| 5277 | _ACEOF
|
---|
[687] | 5278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5279 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
| 5280 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
[562] | 5281 |
|
---|
[687] | 5282 | fi
|
---|
| 5283 | rm -f conftest*
|
---|
| 5284 |
|
---|
[22378] | 5285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5286 | /* end confdefs.h. */
|
---|
[687] | 5287 | #include <stdio.h>
|
---|
[8756] | 5288 |
|
---|
| 5289 | _ACEOF
|
---|
[687] | 5290 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5291 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
| 5292 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
[687] | 5293 |
|
---|
| 5294 | fi
|
---|
| 5295 | rm -f conftest*
|
---|
| 5296 |
|
---|
[22378] | 5297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5298 | /* end confdefs.h. */
|
---|
[687] | 5299 | #include <sys/procfs.h>
|
---|
[8756] | 5300 |
|
---|
| 5301 | _ACEOF
|
---|
[687] | 5302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5303 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
| 5304 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
[687] | 5305 |
|
---|
| 5306 | fi
|
---|
| 5307 | rm -f conftest*
|
---|
| 5308 |
|
---|
[8200] | 5309 |
|
---|
[687] | 5310 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5311 | # for constant arguments. Useless!
|
---|
[22378] | 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
| 5313 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
| 5314 | if test "${ac_cv_working_alloca_h+set}" = set; then :
|
---|
| 5315 | $as_echo_n "(cached) " >&6
|
---|
[562] | 5316 | else
|
---|
[22378] | 5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5318 | /* end confdefs.h. */
|
---|
[687] | 5319 | #include <alloca.h>
|
---|
[8756] | 5320 | int
|
---|
| 5321 | main ()
|
---|
| 5322 | {
|
---|
| 5323 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[22378] | 5324 | if (p) return 0;
|
---|
[8756] | 5325 | ;
|
---|
| 5326 | return 0;
|
---|
| 5327 | }
|
---|
| 5328 | _ACEOF
|
---|
[22378] | 5329 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 5330 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5331 | else
|
---|
[22378] | 5332 | ac_cv_working_alloca_h=no
|
---|
[562] | 5333 | fi
|
---|
[22378] | 5334 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5335 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5336 | fi
|
---|
[22378] | 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5338 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
[8756] | 5339 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5340 |
|
---|
[22378] | 5341 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
[562] | 5342 |
|
---|
| 5343 | fi
|
---|
| 5344 |
|
---|
[22378] | 5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
| 5346 | $as_echo_n "checking for alloca... " >&6; }
|
---|
| 5347 | if test "${ac_cv_func_alloca_works+set}" = set; then :
|
---|
| 5348 | $as_echo_n "(cached) " >&6
|
---|
[562] | 5349 | else
|
---|
[22378] | 5350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5351 | /* end confdefs.h. */
|
---|
[687] | 5352 | #ifdef __GNUC__
|
---|
| 5353 | # define alloca __builtin_alloca
|
---|
| 5354 | #else
|
---|
| 5355 | # ifdef _MSC_VER
|
---|
| 5356 | # include <malloc.h>
|
---|
| 5357 | # define alloca _alloca
|
---|
| 5358 | # else
|
---|
[22378] | 5359 | # ifdef HAVE_ALLOCA_H
|
---|
[687] | 5360 | # include <alloca.h>
|
---|
| 5361 | # else
|
---|
| 5362 | # ifdef _AIX
|
---|
| 5363 | #pragma alloca
|
---|
| 5364 | # else
|
---|
| 5365 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5366 | char *alloca ();
|
---|
| 5367 | # endif
|
---|
| 5368 | # endif
|
---|
| 5369 | # endif
|
---|
| 5370 | # endif
|
---|
| 5371 | #endif
|
---|
| 5372 |
|
---|
[8756] | 5373 | int
|
---|
| 5374 | main ()
|
---|
| 5375 | {
|
---|
| 5376 | char *p = (char *) alloca (1);
|
---|
[22378] | 5377 | if (p) return 0;
|
---|
[8756] | 5378 | ;
|
---|
| 5379 | return 0;
|
---|
| 5380 | }
|
---|
| 5381 | _ACEOF
|
---|
[22378] | 5382 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[687] | 5383 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5384 | else
|
---|
[22378] | 5385 | ac_cv_func_alloca_works=no
|
---|
[562] | 5386 | fi
|
---|
[22378] | 5387 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5388 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5389 | fi
|
---|
[22378] | 5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5391 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
[562] | 5392 |
|
---|
[687] | 5393 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5394 |
|
---|
[22378] | 5395 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
[562] | 5396 |
|
---|
[8756] | 5397 | else
|
---|
| 5398 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5399 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5400 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5401 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5402 |
|
---|
[22378] | 5403 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[8756] | 5404 |
|
---|
[22378] | 5405 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
[562] | 5406 |
|
---|
[8200] | 5407 |
|
---|
[22378] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5409 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
| 5410 | if test "${ac_cv_os_cray+set}" = set; then :
|
---|
| 5411 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5412 | else
|
---|
[22378] | 5413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5414 | /* end confdefs.h. */
|
---|
[22378] | 5415 | #if defined CRAY && ! defined CRAY2
|
---|
[687] | 5416 | webecray
|
---|
| 5417 | #else
|
---|
| 5418 | wenotbecray
|
---|
| 5419 | #endif
|
---|
[562] | 5420 |
|
---|
[8756] | 5421 | _ACEOF
|
---|
[687] | 5422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5423 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
[687] | 5424 | ac_cv_os_cray=yes
|
---|
| 5425 | else
|
---|
| 5426 | ac_cv_os_cray=no
|
---|
| 5427 | fi
|
---|
| 5428 | rm -f conftest*
|
---|
[562] | 5429 |
|
---|
[687] | 5430 | fi
|
---|
[22378] | 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
| 5432 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
[687] | 5433 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5434 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[22378] | 5435 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5436 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
[23508] | 5437 | eval as_val=\$$as_ac_var
|
---|
| 5438 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5439 |
|
---|
| 5440 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5441 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5442 | _ACEOF
|
---|
[562] | 5443 |
|
---|
[8756] | 5444 | break
|
---|
[687] | 5445 | fi
|
---|
[562] | 5446 |
|
---|
[8756] | 5447 | done
|
---|
[687] | 5448 | fi
|
---|
| 5449 |
|
---|
[22378] | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
| 5451 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
| 5452 | if test "${ac_cv_c_stack_direction+set}" = set; then :
|
---|
| 5453 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5454 | else
|
---|
[22378] | 5455 | if test "$cross_compiling" = yes; then :
|
---|
[687] | 5456 | ac_cv_c_stack_direction=0
|
---|
| 5457 | else
|
---|
[22378] | 5458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5459 | /* end confdefs.h. */
|
---|
[22378] | 5460 | $ac_includes_default
|
---|
[8756] | 5461 | int
|
---|
[687] | 5462 | find_stack_direction ()
|
---|
| 5463 | {
|
---|
| 5464 | static char *addr = 0;
|
---|
| 5465 | auto char dummy;
|
---|
| 5466 | if (addr == 0)
|
---|
| 5467 | {
|
---|
| 5468 | addr = &dummy;
|
---|
| 5469 | return find_stack_direction ();
|
---|
| 5470 | }
|
---|
| 5471 | else
|
---|
| 5472 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5473 | }
|
---|
[8756] | 5474 |
|
---|
| 5475 | int
|
---|
[687] | 5476 | main ()
|
---|
| 5477 | {
|
---|
[22378] | 5478 | return find_stack_direction () < 0;
|
---|
[687] | 5479 | }
|
---|
[8756] | 5480 | _ACEOF
|
---|
[22378] | 5481 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[687] | 5482 | ac_cv_c_stack_direction=1
|
---|
[562] | 5483 | else
|
---|
[22378] | 5484 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5485 | fi
|
---|
[22378] | 5486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5487 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[687] | 5488 | fi
|
---|
[22378] | 5489 |
|
---|
[687] | 5490 | fi
|
---|
[22378] | 5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5492 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
[8756] | 5493 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5494 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5495 | _ACEOF
|
---|
[687] | 5496 |
|
---|
[8756] | 5497 |
|
---|
[687] | 5498 | fi
|
---|
| 5499 |
|
---|
[8756] | 5500 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[22378] | 5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
| 5502 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
| 5503 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
|
---|
| 5504 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5505 | else
|
---|
| 5506 | ac_pattern="Autoconf.*'x'"
|
---|
[22378] | 5507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5508 | /* end confdefs.h. */
|
---|
[687] | 5509 | #include <sgtty.h>
|
---|
| 5510 | Autoconf TIOCGETP
|
---|
[8756] | 5511 | _ACEOF
|
---|
[687] | 5512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5513 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[687] | 5514 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5515 | else
|
---|
| 5516 | ac_cv_prog_gcc_traditional=no
|
---|
| 5517 | fi
|
---|
[562] | 5518 | rm -f conftest*
|
---|
[687] | 5519 |
|
---|
[8200] | 5520 |
|
---|
[687] | 5521 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[22378] | 5522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5523 | /* end confdefs.h. */
|
---|
[687] | 5524 | #include <termio.h>
|
---|
| 5525 | Autoconf TCGETA
|
---|
[8756] | 5526 | _ACEOF
|
---|
[687] | 5527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5528 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[687] | 5529 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5530 | fi
|
---|
[687] | 5531 | rm -f conftest*
|
---|
[562] | 5532 |
|
---|
[687] | 5533 | fi
|
---|
| 5534 | fi
|
---|
[22378] | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5536 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[687] | 5537 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5538 | CC="$CC -traditional"
|
---|
| 5539 | fi
|
---|
| 5540 | fi
|
---|
| 5541 |
|
---|
[22378] | 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
| 5543 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
| 5544 | if test "${ac_cv_type_signal+set}" = set; then :
|
---|
| 5545 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5546 | else
|
---|
[22378] | 5547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5548 | /* end confdefs.h. */
|
---|
[687] | 5549 | #include <sys/types.h>
|
---|
| 5550 | #include <signal.h>
|
---|
[562] | 5551 |
|
---|
[8756] | 5552 | int
|
---|
| 5553 | main ()
|
---|
| 5554 | {
|
---|
[22378] | 5555 | return *(signal (0, 0)) (0) == 1;
|
---|
[8756] | 5556 | ;
|
---|
| 5557 | return 0;
|
---|
| 5558 | }
|
---|
| 5559 | _ACEOF
|
---|
[22378] | 5560 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5561 | ac_cv_type_signal=int
|
---|
| 5562 | else
|
---|
[20853] | 5563 | ac_cv_type_signal=void
|
---|
[562] | 5564 | fi
|
---|
[22378] | 5565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5566 | fi
|
---|
[22378] | 5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
| 5568 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
[562] | 5569 |
|
---|
[8756] | 5570 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5571 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5572 | _ACEOF
|
---|
[562] | 5573 |
|
---|
[8200] | 5574 |
|
---|
[8756] | 5575 | for ac_func in vprintf
|
---|
[22378] | 5576 | do :
|
---|
| 5577 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
| 5578 | if test "x$ac_cv_func_vprintf" = x""yes; then :
|
---|
[8756] | 5579 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5580 | #define HAVE_VPRINTF 1
|
---|
[8756] | 5581 | _ACEOF
|
---|
[8200] | 5582 |
|
---|
[22378] | 5583 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
| 5584 | if test "x$ac_cv_func__doprnt" = x""yes; then :
|
---|
[8200] | 5585 |
|
---|
[22378] | 5586 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
[8756] | 5587 |
|
---|
[562] | 5588 | fi
|
---|
| 5589 |
|
---|
| 5590 | fi
|
---|
[8756] | 5591 | done
|
---|
[562] | 5592 |
|
---|
[8756] | 5593 |
|
---|
[788] | 5594 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[22378] | 5595 | do :
|
---|
| 5596 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5597 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
[23508] | 5598 | eval as_val=\$$as_ac_var
|
---|
| 5599 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5600 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5601 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 5602 | _ACEOF
|
---|
[8200] | 5603 |
|
---|
[687] | 5604 | fi
|
---|
| 5605 | done
|
---|
| 5606 |
|
---|
[23508] | 5607 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 5608 | do :
|
---|
| 5609 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5610 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5611 | eval as_val=\$$as_ac_var
|
---|
| 5612 | if test "x$as_val" = x""yes; then :
|
---|
| 5613 | cat >>confdefs.h <<_ACEOF
|
---|
| 5614 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5615 | _ACEOF
|
---|
[8200] | 5616 |
|
---|
[687] | 5617 | else
|
---|
[22378] | 5618 | case " $LIBOBJS " in
|
---|
[23508] | 5619 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 5620 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
[22378] | 5621 | ;;
|
---|
[8756] | 5622 | esac
|
---|
| 5623 |
|
---|
[687] | 5624 | fi
|
---|
[23508] | 5625 | done
|
---|
[687] | 5626 |
|
---|
[8200] | 5627 |
|
---|
| 5628 |
|
---|
[22378] | 5629 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
| 5630 | if test "x$ac_cv_func_textdomain" = x""yes; then :
|
---|
| 5631 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
[8756] | 5632 |
|
---|
[3705] | 5633 | fi
|
---|
[8200] | 5634 |
|
---|
[3705] | 5635 |
|
---|
[687] | 5636 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 5637 | # ---------------------------------------------------------------------------
|
---|
[22378] | 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
| 5639 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
[687] | 5640 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[22378] | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5642 | $as_echo "yes" >&6; }
|
---|
| 5643 | case " $LIBOBJS " in
|
---|
[8756] | 5644 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[22378] | 5645 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 5646 | ;;
|
---|
[8756] | 5647 | esac
|
---|
| 5648 |
|
---|
[22378] | 5649 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
[687] | 5650 |
|
---|
| 5651 | else
|
---|
[22378] | 5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5653 | $as_echo "no" >&6; }
|
---|
| 5654 | for ac_func in valloc
|
---|
| 5655 | do :
|
---|
| 5656 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
| 5657 | if test "x$ac_cv_func_valloc" = x""yes; then :
|
---|
[8756] | 5658 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5659 | #define HAVE_VALLOC 1
|
---|
[8756] | 5660 | _ACEOF
|
---|
[8200] | 5661 |
|
---|
[687] | 5662 | fi
|
---|
| 5663 | done
|
---|
| 5664 |
|
---|
| 5665 | fi
|
---|
| 5666 |
|
---|
[8200] | 5667 | # we cannot generate static libraries under Darwin
|
---|
[22378] | 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
|
---|
| 5669 | $as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
|
---|
[8200] | 5670 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[22378] | 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5672 | $as_echo "yes" >&6; }
|
---|
[8200] | 5673 | STATIC=""
|
---|
| 5674 | else
|
---|
[22378] | 5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5676 | $as_echo "no" >&6; }
|
---|
[8200] | 5677 | STATIC="-static "
|
---|
| 5678 | fi
|
---|
[3631] | 5679 |
|
---|
[8200] | 5680 |
|
---|
[22378] | 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
| 5682 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
[8756] | 5683 |
|
---|
[22378] | 5684 | # Check whether --with-dmalloc was given.
|
---|
| 5685 | if test "${with_dmalloc+set}" = set; then :
|
---|
| 5686 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
| 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5688 | $as_echo "yes" >&6; }
|
---|
| 5689 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
[687] | 5690 |
|
---|
[700] | 5691 | LIBS="$LIBS -ldmalloc"
|
---|
| 5692 | LDFLAGS="$LDFLAGS -g"
|
---|
| 5693 | else
|
---|
[22378] | 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5695 | $as_echo "no" >&6; }
|
---|
[700] | 5696 | fi
|
---|
| 5697 | else
|
---|
[22378] | 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5699 | $as_echo "no" >&6; }
|
---|
| 5700 | fi
|
---|
[700] | 5701 |
|
---|
| 5702 |
|
---|
[22378] | 5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
| 5704 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
| 5705 |
|
---|
| 5706 | # Check whether --with-regex was given.
|
---|
| 5707 | if test "${with_regex+set}" = set; then :
|
---|
| 5708 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[700] | 5709 | ac_with_regex=1
|
---|
[22378] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
| 5711 | $as_echo "regex" >&6; }
|
---|
| 5712 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
[700] | 5713 |
|
---|
[22378] | 5714 | case " $LIBOBJS " in
|
---|
[8756] | 5715 | *" regex.$ac_objext "* ) ;;
|
---|
[22378] | 5716 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 5717 | ;;
|
---|
[8756] | 5718 | esac
|
---|
| 5719 |
|
---|
[700] | 5720 | fi
|
---|
[22378] | 5721 | fi
|
---|
| 5722 |
|
---|
[700] | 5723 | if test -z "$ac_with_regex"; then
|
---|
[22378] | 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
| 5725 | $as_echo "rx" >&6; }
|
---|
| 5726 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
| 5727 | if test "x$ac_cv_func_re_rx_search" = x""yes; then :
|
---|
[8756] | 5728 |
|
---|
[700] | 5729 | else
|
---|
[22378] | 5730 | case " $LIBOBJS " in
|
---|
[8756] | 5731 | *" rx.$ac_objext "* ) ;;
|
---|
[22378] | 5732 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 5733 | ;;
|
---|
[8756] | 5734 | esac
|
---|
| 5735 |
|
---|
[700] | 5736 | fi
|
---|
| 5737 |
|
---|
| 5738 | fi
|
---|
| 5739 |
|
---|
[8200] | 5740 |
|
---|
[687] | 5741 | # ---------------------------------------------------------------------------
|
---|
| 5742 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[22378] | 5743 | case " $LIBOBJS " in
|
---|
[8756] | 5744 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[22378] | 5745 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 5746 | ;;
|
---|
[8756] | 5747 | esac
|
---|
| 5748 |
|
---|
[22378] | 5749 | case " $LIBOBJS " in
|
---|
[8756] | 5750 | *" error.$ac_objext "* ) ;;
|
---|
[22378] | 5751 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 5752 | ;;
|
---|
[8756] | 5753 | esac
|
---|
| 5754 |
|
---|
[687] | 5755 | fi
|
---|
| 5756 |
|
---|
[8200] | 5757 |
|
---|
[687] | 5758 | # ---------------------------------------------------------------------------
|
---|
| 5759 |
|
---|
[22378] | 5760 | ac_ext=cpp
|
---|
[687] | 5761 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 5762 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 5763 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 5764 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 5765 |
|
---|
[8200] | 5766 |
|
---|
[22378] | 5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
|
---|
| 5768 | $as_echo_n "checking that Perl 5 is available... " >&6; }
|
---|
[687] | 5769 | success="no"
|
---|
| 5770 | pl_path="$PATH"
|
---|
| 5771 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 5772 | for pl_dir in $pl_path; do
|
---|
| 5773 | test -z "$pl_dir" && pl_dir=.
|
---|
| 5774 | if test -x $pl_dir/perl; then
|
---|
| 5775 | success="yes"
|
---|
| 5776 | break
|
---|
| 5777 | fi
|
---|
| 5778 | done
|
---|
| 5779 | IFS="$pl_save_ifs"
|
---|
| 5780 |
|
---|
| 5781 | if test $success = "yes"; then
|
---|
| 5782 | try=`perl configtest.pl` || try="0"
|
---|
| 5783 | try=`expr $try \> 5.000`
|
---|
| 5784 | if test $try = "1"; then
|
---|
[22378] | 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
| 5786 | $as_echo "\"yes\"" >&6; }
|
---|
[687] | 5787 | else
|
---|
| 5788 | success="no"
|
---|
| 5789 | fi
|
---|
| 5790 | fi
|
---|
| 5791 |
|
---|
| 5792 | if test $success = "no"; then
|
---|
[22378] | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
| 5794 | $as_echo "\"no\"" >&6; }
|
---|
[23508] | 5795 | as_fn_error "\"Perl 5 not available - cannot install\"" "$LINENO" 5
|
---|
[687] | 5796 | fi
|
---|
| 5797 |
|
---|
| 5798 | success=no
|
---|
[22378] | 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
|
---|
| 5800 | $as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
|
---|
[687] | 5801 |
|
---|
[18214] | 5802 |
|
---|
[22378] | 5803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5804 | /* end confdefs.h. */
|
---|
[687] | 5805 | #include <vector>
|
---|
| 5806 |
|
---|
[8756] | 5807 | int
|
---|
| 5808 | main ()
|
---|
| 5809 | {
|
---|
[687] | 5810 |
|
---|
[8756] | 5811 | ;
|
---|
| 5812 | return 0;
|
---|
| 5813 | }
|
---|
| 5814 | _ACEOF
|
---|
[22378] | 5815 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[687] | 5816 | success=yes
|
---|
| 5817 | fi
|
---|
[22378] | 5818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5819 |
|
---|
| 5820 | if test $success = "no"; then
|
---|
[22378] | 5821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5822 | /* end confdefs.h. */
|
---|
[687] | 5823 | #include <vector.h>
|
---|
| 5824 |
|
---|
[8756] | 5825 | int
|
---|
| 5826 | main ()
|
---|
| 5827 | {
|
---|
[687] | 5828 |
|
---|
[8756] | 5829 | ;
|
---|
| 5830 | return 0;
|
---|
| 5831 | }
|
---|
| 5832 | _ACEOF
|
---|
[22378] | 5833 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[687] | 5834 | success="yes"
|
---|
| 5835 | fi
|
---|
[22378] | 5836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5837 | fi
|
---|
| 5838 |
|
---|
| 5839 | if test $success = "no"; then
|
---|
[22378] | 5840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5841 | /* end confdefs.h. */
|
---|
[687] | 5842 | #include <ospace\\std\\vector>
|
---|
| 5843 |
|
---|
[8756] | 5844 | int
|
---|
| 5845 | main ()
|
---|
| 5846 | {
|
---|
[687] | 5847 |
|
---|
[8756] | 5848 | ;
|
---|
| 5849 | return 0;
|
---|
| 5850 | }
|
---|
| 5851 | _ACEOF
|
---|
[22378] | 5852 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[687] | 5853 | success="yes"
|
---|
| 5854 | fi
|
---|
[22378] | 5855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5856 | fi
|
---|
| 5857 |
|
---|
| 5858 | if test $success = yes; then
|
---|
[22378] | 5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
| 5860 | $as_echo "\"no\"" >&6; }
|
---|
[687] | 5861 | else
|
---|
[22378] | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
| 5863 | $as_echo "\"yes\"" >&6; }
|
---|
[23508] | 5864 | as_fn_error "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
|
---|
[687] | 5865 | fi
|
---|
| 5866 |
|
---|
[2950] | 5867 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 5868 | # check for running bash under cygwin
|
---|
| 5869 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 5870 | then
|
---|
| 5871 | gsdlos=windows
|
---|
| 5872 | fi
|
---|
[687] | 5873 |
|
---|
[8200] | 5874 |
|
---|
[10856] | 5875 | # check for endianness
|
---|
[22378] | 5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
| 5877 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
| 5878 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
| 5879 | $as_echo_n "(cached) " >&6
|
---|
[10856] | 5880 | else
|
---|
[22378] | 5881 | ac_cv_c_bigendian=unknown
|
---|
| 5882 | # See if we're dealing with a universal compiler.
|
---|
| 5883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5884 | /* end confdefs.h. */
|
---|
| 5885 | #ifndef __APPLE_CC__
|
---|
| 5886 | not a universal capable compiler
|
---|
| 5887 | #endif
|
---|
| 5888 | typedef int dummy;
|
---|
| 5889 |
|
---|
[10856] | 5890 | _ACEOF
|
---|
[22378] | 5891 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 5892 |
|
---|
| 5893 | # Check for potential -arch flags. It is not universal unless
|
---|
| 5894 | # there are at least two -arch flags with different values.
|
---|
| 5895 | ac_arch=
|
---|
| 5896 | ac_prev=
|
---|
| 5897 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
| 5898 | if test -n "$ac_prev"; then
|
---|
| 5899 | case $ac_word in
|
---|
| 5900 | i?86 | x86_64 | ppc | ppc64)
|
---|
| 5901 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
| 5902 | ac_arch=$ac_word
|
---|
| 5903 | else
|
---|
| 5904 | ac_cv_c_bigendian=universal
|
---|
| 5905 | break
|
---|
| 5906 | fi
|
---|
| 5907 | ;;
|
---|
| 5908 | esac
|
---|
| 5909 | ac_prev=
|
---|
| 5910 | elif test "x$ac_word" = "x-arch"; then
|
---|
| 5911 | ac_prev=arch
|
---|
| 5912 | fi
|
---|
| 5913 | done
|
---|
| 5914 | fi
|
---|
| 5915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5916 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5917 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 5918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 5919 | /* end confdefs.h. */
|
---|
| 5920 | #include <sys/types.h>
|
---|
[22378] | 5921 | #include <sys/param.h>
|
---|
[10856] | 5922 |
|
---|
| 5923 | int
|
---|
| 5924 | main ()
|
---|
| 5925 | {
|
---|
[22378] | 5926 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
| 5927 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
| 5928 | && LITTLE_ENDIAN)
|
---|
| 5929 | bogus endian macros
|
---|
| 5930 | #endif
|
---|
[10856] | 5931 |
|
---|
| 5932 | ;
|
---|
| 5933 | return 0;
|
---|
| 5934 | }
|
---|
| 5935 | _ACEOF
|
---|
[22378] | 5936 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[10856] | 5937 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[22378] | 5938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 5939 | /* end confdefs.h. */
|
---|
| 5940 | #include <sys/types.h>
|
---|
[22378] | 5941 | #include <sys/param.h>
|
---|
[10856] | 5942 |
|
---|
| 5943 | int
|
---|
| 5944 | main ()
|
---|
| 5945 | {
|
---|
| 5946 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[22378] | 5947 | not big endian
|
---|
| 5948 | #endif
|
---|
[10856] | 5949 |
|
---|
| 5950 | ;
|
---|
| 5951 | return 0;
|
---|
| 5952 | }
|
---|
| 5953 | _ACEOF
|
---|
[22378] | 5954 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[10856] | 5955 | ac_cv_c_bigendian=yes
|
---|
| 5956 | else
|
---|
[22378] | 5957 | ac_cv_c_bigendian=no
|
---|
[10856] | 5958 | fi
|
---|
[22378] | 5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5960 | fi
|
---|
| 5961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5962 | fi
|
---|
| 5963 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5964 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
| 5965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5966 | /* end confdefs.h. */
|
---|
| 5967 | #include <limits.h>
|
---|
[10856] | 5968 |
|
---|
[22378] | 5969 | int
|
---|
| 5970 | main ()
|
---|
| 5971 | {
|
---|
| 5972 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
| 5973 | bogus endian macros
|
---|
| 5974 | #endif
|
---|
| 5975 |
|
---|
| 5976 | ;
|
---|
| 5977 | return 0;
|
---|
| 5978 | }
|
---|
[10856] | 5979 | _ACEOF
|
---|
[22378] | 5980 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 5981 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
| 5982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 5983 | /* end confdefs.h. */
|
---|
[22378] | 5984 | #include <limits.h>
|
---|
| 5985 |
|
---|
[10856] | 5986 | int
|
---|
| 5987 | main ()
|
---|
| 5988 | {
|
---|
[22378] | 5989 | #ifndef _BIG_ENDIAN
|
---|
| 5990 | not big endian
|
---|
| 5991 | #endif
|
---|
| 5992 |
|
---|
[10856] | 5993 | ;
|
---|
| 5994 | return 0;
|
---|
| 5995 | }
|
---|
| 5996 | _ACEOF
|
---|
[22378] | 5997 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[10856] | 5998 | ac_cv_c_bigendian=yes
|
---|
[22378] | 5999 | else
|
---|
| 6000 | ac_cv_c_bigendian=no
|
---|
[10856] | 6001 | fi
|
---|
[22378] | 6002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 6003 | fi
|
---|
[22378] | 6004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6005 | fi
|
---|
| 6006 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6007 | # Compile a test program.
|
---|
| 6008 | if test "$cross_compiling" = yes; then :
|
---|
| 6009 | # Try to guess by grepping values from an object file.
|
---|
| 6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 6011 | /* end confdefs.h. */
|
---|
| 6012 | short int ascii_mm[] =
|
---|
| 6013 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 6014 | short int ascii_ii[] =
|
---|
| 6015 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 6016 | int use_ascii (int i) {
|
---|
| 6017 | return ascii_mm[i] + ascii_ii[i];
|
---|
| 6018 | }
|
---|
| 6019 | short int ebcdic_ii[] =
|
---|
| 6020 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 6021 | short int ebcdic_mm[] =
|
---|
| 6022 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 6023 | int use_ebcdic (int i) {
|
---|
| 6024 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
| 6025 | }
|
---|
| 6026 | extern int foo;
|
---|
[10856] | 6027 |
|
---|
[22378] | 6028 | int
|
---|
| 6029 | main ()
|
---|
| 6030 | {
|
---|
| 6031 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
| 6032 | ;
|
---|
| 6033 | return 0;
|
---|
| 6034 | }
|
---|
| 6035 | _ACEOF
|
---|
| 6036 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 6037 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
| 6038 | ac_cv_c_bigendian=yes
|
---|
| 6039 | fi
|
---|
| 6040 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 6041 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 6042 | ac_cv_c_bigendian=no
|
---|
| 6043 | else
|
---|
| 6044 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6045 | ac_cv_c_bigendian=unknown
|
---|
| 6046 | fi
|
---|
| 6047 | fi
|
---|
[10856] | 6048 | fi
|
---|
[22378] | 6049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 6050 | else
|
---|
[22378] | 6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 6052 | /* end confdefs.h. */
|
---|
[22378] | 6053 | $ac_includes_default
|
---|
[10856] | 6054 | int
|
---|
| 6055 | main ()
|
---|
| 6056 | {
|
---|
[22378] | 6057 |
|
---|
| 6058 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6059 | union
|
---|
| 6060 | {
|
---|
| 6061 | long int l;
|
---|
| 6062 | char c[sizeof (long int)];
|
---|
| 6063 | } u;
|
---|
| 6064 | u.l = 1;
|
---|
| 6065 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 6066 |
|
---|
| 6067 | ;
|
---|
| 6068 | return 0;
|
---|
[10856] | 6069 | }
|
---|
| 6070 | _ACEOF
|
---|
[22378] | 6071 | if ac_fn_cxx_try_run "$LINENO"; then :
|
---|
[10856] | 6072 | ac_cv_c_bigendian=no
|
---|
| 6073 | else
|
---|
[22378] | 6074 | ac_cv_c_bigendian=yes
|
---|
[10856] | 6075 | fi
|
---|
[22378] | 6076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 6077 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10856] | 6078 | fi
|
---|
[22378] | 6079 |
|
---|
| 6080 | fi
|
---|
[10856] | 6081 | fi
|
---|
[22378] | 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
| 6083 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
| 6084 | case $ac_cv_c_bigendian in #(
|
---|
| 6085 | yes)
|
---|
| 6086 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
| 6087 | ;; #(
|
---|
| 6088 | no)
|
---|
| 6089 | ;; #(
|
---|
| 6090 | universal)
|
---|
[10856] | 6091 |
|
---|
[22378] | 6092 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
[10856] | 6093 |
|
---|
[22378] | 6094 | ;; #(
|
---|
| 6095 | *)
|
---|
[23508] | 6096 | as_fn_error "unknown endianness
|
---|
| 6097 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
[22378] | 6098 | esac
|
---|
| 6099 |
|
---|
[687] | 6100 | # ---------------------------------------------------------------------------
|
---|
| 6101 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[22378] | 6102 | case " $LIBOBJS " in
|
---|
[8756] | 6103 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[22378] | 6104 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
| 6105 | ;;
|
---|
[8756] | 6106 | esac
|
---|
| 6107 |
|
---|
[22378] | 6108 | case " $LIBOBJS " in
|
---|
[8756] | 6109 | *" error.$ac_objext "* ) ;;
|
---|
[22378] | 6110 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 6111 | ;;
|
---|
[8756] | 6112 | esac
|
---|
| 6113 |
|
---|
[687] | 6114 | fi
|
---|
| 6115 |
|
---|
[3063] | 6116 | # ---------------------------------------------------------------------------
|
---|
[687] | 6117 |
|
---|
[3063] | 6118 | moduleDirs=""
|
---|
| 6119 | MODULEDIRS=""
|
---|
[16619] | 6120 | if test -d modules ; then
|
---|
[15300] | 6121 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 6122 | if test -d "$x"; then
|
---|
| 6123 | d="$x/Makefile.in"
|
---|
| 6124 | if test -e "$d"; then
|
---|
| 6125 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 6126 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 6127 | fi
|
---|
[3063] | 6128 | fi
|
---|
[15300] | 6129 | done
|
---|
| 6130 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 6131 |
|
---|
[15300] | 6132 | fi
|
---|
[8200] | 6133 |
|
---|
[15300] | 6134 |
|
---|
[687] | 6135 | # ---------------------------------------------------------------------------
|
---|
[1675] | 6136 |
|
---|
[13777] | 6137 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 6138 | gsdlprefix=`pwd`
|
---|
[19264] | 6139 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[20853] | 6140 |
|
---|
| 6141 |
|
---|
[21377] | 6142 | subdirs="$subdirs common-src"
|
---|
[8756] | 6143 |
|
---|
[21377] | 6144 | subdirs="$subdirs build-src"
|
---|
| 6145 |
|
---|
| 6146 |
|
---|
[3063] | 6147 | # the list of folders in the src folder
|
---|
[16572] | 6148 | srclist="common-src/Makefile \
|
---|
[21377] | 6149 | build-src/Makefile"
|
---|
| 6150 |
|
---|
| 6151 | if test -d runtime-src; then
|
---|
[22378] | 6152 | subdirs="$subdirs runtime-src"
|
---|
[21377] | 6153 |
|
---|
| 6154 | srclist="$srclist \
|
---|
[16572] | 6155 | runtime-src/Makefile"
|
---|
[21377] | 6156 | fi
|
---|
[3063] | 6157 |
|
---|
[22378] | 6158 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
| 6159 |
|
---|
[8756] | 6160 | cat >confcache <<\_ACEOF
|
---|
[562] | 6161 | # This file is a shell script that caches the results of configure
|
---|
| 6162 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 6163 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6164 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6165 | # want to keep, you may remove or edit it.
|
---|
[562] | 6166 | #
|
---|
[8756] | 6167 | # config.status only pays attention to the cache file if you give it
|
---|
| 6168 | # the --recheck option to rerun configure.
|
---|
[562] | 6169 | #
|
---|
[8756] | 6170 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 6171 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6172 | # following values.
|
---|
| 6173 |
|
---|
| 6174 | _ACEOF
|
---|
| 6175 |
|
---|
[562] | 6176 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6177 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[22378] | 6178 | # So, we kill variables containing newlines.
|
---|
[562] | 6179 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6180 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[22378] | 6181 | (
|
---|
| 6182 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6183 | eval ac_val=\$$ac_var
|
---|
| 6184 | case $ac_val in #(
|
---|
| 6185 | *${as_nl}*)
|
---|
| 6186 | case $ac_var in #(
|
---|
| 6187 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 6188 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6189 | esac
|
---|
| 6190 | case $ac_var in #(
|
---|
| 6191 | _ | IFS | as_nl) ;; #(
|
---|
| 6192 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 6193 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 6194 | esac ;;
|
---|
| 6195 | esac
|
---|
| 6196 | done
|
---|
| 6197 |
|
---|
[8756] | 6198 | (set) 2>&1 |
|
---|
[22378] | 6199 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6200 | *${as_nl}ac_space=\ *)
|
---|
| 6201 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6202 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
[8756] | 6203 | sed -n \
|
---|
| 6204 | "s/'/'\\\\''/g;
|
---|
| 6205 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[22378] | 6206 | ;; #(
|
---|
[8756] | 6207 | *)
|
---|
| 6208 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[22378] | 6209 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8756] | 6210 | ;;
|
---|
[22378] | 6211 | esac |
|
---|
| 6212 | sort
|
---|
| 6213 | ) |
|
---|
[8756] | 6214 | sed '
|
---|
[22378] | 6215 | /^ac_cv_env_/b end
|
---|
[8756] | 6216 | t clear
|
---|
[22378] | 6217 | :clear
|
---|
[8756] | 6218 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6219 | t end
|
---|
[22378] | 6220 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6221 | :end' >>confcache
|
---|
| 6222 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6223 | if test -w "$cache_file"; then
|
---|
| 6224 | test "x$cache_file" != "x/dev/null" &&
|
---|
| 6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
| 6226 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[8756] | 6227 | cat confcache >$cache_file
|
---|
[562] | 6228 | else
|
---|
[22378] | 6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
| 6230 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[562] | 6231 | fi
|
---|
| 6232 | fi
|
---|
| 6233 | rm -f confcache
|
---|
| 6234 |
|
---|
| 6235 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6236 | # Let make expand exec_prefix.
|
---|
| 6237 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6238 |
|
---|
[687] | 6239 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 6240 |
|
---|
[8756] | 6241 | ac_libobjs=
|
---|
| 6242 | ac_ltlibobjs=
|
---|
| 6243 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6244 | # 1. Remove the extension, and $U if already installed.
|
---|
[22378] | 6245 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6246 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6247 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6248 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 6249 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6250 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[8756] | 6251 | done
|
---|
| 6252 | LIBOBJS=$ac_libobjs
|
---|
| 6253 |
|
---|
| 6254 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6255 |
|
---|
| 6256 |
|
---|
| 6257 |
|
---|
[22378] | 6258 |
|
---|
[562] | 6259 | : ${CONFIG_STATUS=./config.status}
|
---|
[22378] | 6260 | ac_write_fail=0
|
---|
[8756] | 6261 | ac_clean_files_save=$ac_clean_files
|
---|
| 6262 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[22378] | 6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
| 6264 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 6265 | as_write_fail=0
|
---|
| 6266 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
[8756] | 6267 | #! $SHELL
|
---|
| 6268 | # Generated by $as_me.
|
---|
[562] | 6269 | # Run this file to recreate the current configuration.
|
---|
| 6270 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 6271 | # configure, is in config.log if it exists.
|
---|
[562] | 6272 |
|
---|
[8756] | 6273 | debug=false
|
---|
| 6274 | ac_cs_recheck=false
|
---|
| 6275 | ac_cs_silent=false
|
---|
[22378] | 6276 |
|
---|
[8756] | 6277 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[22378] | 6278 | export SHELL
|
---|
| 6279 | _ASEOF
|
---|
| 6280 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6281 | ## -------------------- ##
|
---|
| 6282 | ## M4sh Initialization. ##
|
---|
| 6283 | ## -------------------- ##
|
---|
[8756] | 6284 |
|
---|
[22378] | 6285 | # Be more Bourne compatible
|
---|
| 6286 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 6287 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8756] | 6288 | emulate sh
|
---|
| 6289 | NULLCMD=:
|
---|
[22378] | 6290 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[8756] | 6291 | # is contrary to our usage. Disable this feature.
|
---|
| 6292 | alias -g '${1+"$@"}'='"$@"'
|
---|
[22378] | 6293 | setopt NO_GLOB_SUBST
|
---|
| 6294 | else
|
---|
| 6295 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6296 | *posix*) :
|
---|
| 6297 | set -o posix ;; #(
|
---|
| 6298 | *) :
|
---|
| 6299 | ;;
|
---|
| 6300 | esac
|
---|
[8756] | 6301 | fi
|
---|
| 6302 |
|
---|
[22378] | 6303 |
|
---|
| 6304 | as_nl='
|
---|
| 6305 | '
|
---|
| 6306 | export as_nl
|
---|
| 6307 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6308 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6309 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6310 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6311 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6312 | # but without wasting forks for bash or zsh.
|
---|
| 6313 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6314 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6315 | as_echo='print -r --'
|
---|
| 6316 | as_echo_n='print -rn --'
|
---|
| 6317 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6318 | as_echo='printf %s\n'
|
---|
| 6319 | as_echo_n='printf %s'
|
---|
[8756] | 6320 | else
|
---|
[22378] | 6321 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6322 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6323 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6324 | else
|
---|
| 6325 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6326 | as_echo_n_body='eval
|
---|
| 6327 | arg=$1;
|
---|
| 6328 | case $arg in #(
|
---|
| 6329 | *"$as_nl"*)
|
---|
| 6330 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6331 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6332 | esac;
|
---|
| 6333 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6334 | '
|
---|
| 6335 | export as_echo_n_body
|
---|
| 6336 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6337 | fi
|
---|
| 6338 | export as_echo_body
|
---|
| 6339 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[8756] | 6340 | fi
|
---|
| 6341 |
|
---|
[22378] | 6342 | # The user is always right.
|
---|
| 6343 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6344 | PATH_SEPARATOR=:
|
---|
| 6345 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6346 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6347 | PATH_SEPARATOR=';'
|
---|
| 6348 | }
|
---|
| 6349 | fi
|
---|
[8756] | 6350 |
|
---|
[22378] | 6351 |
|
---|
| 6352 | # IFS
|
---|
| 6353 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6354 | # there to prevent editors from complaining about space-tab.
|
---|
| 6355 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6356 | # splitting by setting IFS to empty value.)
|
---|
| 6357 | IFS=" "" $as_nl"
|
---|
| 6358 |
|
---|
| 6359 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 6360 | case $0 in #((
|
---|
| 6361 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6362 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6363 | for as_dir in $PATH
|
---|
| 6364 | do
|
---|
| 6365 | IFS=$as_save_IFS
|
---|
| 6366 | test -z "$as_dir" && as_dir=.
|
---|
| 6367 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6368 | done
|
---|
| 6369 | IFS=$as_save_IFS
|
---|
| 6370 |
|
---|
| 6371 | ;;
|
---|
| 6372 | esac
|
---|
| 6373 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6374 | # in which case we are not to be found in the path.
|
---|
| 6375 | if test "x$as_myself" = x; then
|
---|
| 6376 | as_myself=$0
|
---|
| 6377 | fi
|
---|
| 6378 | if test ! -f "$as_myself"; then
|
---|
| 6379 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 6380 | exit 1
|
---|
| 6381 | fi
|
---|
| 6382 |
|
---|
| 6383 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6384 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6385 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6386 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6387 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6388 | do eval test x\${$as_var+set} = xset \
|
---|
| 6389 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 6390 | done
|
---|
[8756] | 6391 | PS1='$ '
|
---|
| 6392 | PS2='> '
|
---|
| 6393 | PS4='+ '
|
---|
| 6394 |
|
---|
| 6395 | # NLS nuisances.
|
---|
[22378] | 6396 | LC_ALL=C
|
---|
| 6397 | export LC_ALL
|
---|
| 6398 | LANGUAGE=C
|
---|
| 6399 | export LANGUAGE
|
---|
| 6400 |
|
---|
| 6401 | # CDPATH.
|
---|
| 6402 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6403 |
|
---|
| 6404 |
|
---|
[23508] | 6405 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
| 6406 | # ---------------------------------
|
---|
[22378] | 6407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
[23508] | 6409 | # script with status $?, using 1 if that was 0.
|
---|
[22378] | 6410 | as_fn_error ()
|
---|
| 6411 | {
|
---|
[23508] | 6412 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
| 6413 | if test "$3"; then
|
---|
| 6414 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
[8756] | 6416 | fi
|
---|
[23508] | 6417 | $as_echo "$as_me: error: $1" >&2
|
---|
[22378] | 6418 | as_fn_exit $as_status
|
---|
| 6419 | } # as_fn_error
|
---|
[562] | 6420 |
|
---|
[22378] | 6421 |
|
---|
| 6422 | # as_fn_set_status STATUS
|
---|
| 6423 | # -----------------------
|
---|
| 6424 | # Set $? to STATUS, without forking.
|
---|
| 6425 | as_fn_set_status ()
|
---|
| 6426 | {
|
---|
| 6427 | return $1
|
---|
| 6428 | } # as_fn_set_status
|
---|
| 6429 |
|
---|
| 6430 | # as_fn_exit STATUS
|
---|
| 6431 | # -----------------
|
---|
| 6432 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6433 | as_fn_exit ()
|
---|
| 6434 | {
|
---|
| 6435 | set +e
|
---|
| 6436 | as_fn_set_status $1
|
---|
| 6437 | exit $1
|
---|
| 6438 | } # as_fn_exit
|
---|
| 6439 |
|
---|
| 6440 | # as_fn_unset VAR
|
---|
| 6441 | # ---------------
|
---|
| 6442 | # Portably unset VAR.
|
---|
| 6443 | as_fn_unset ()
|
---|
| 6444 | {
|
---|
| 6445 | { eval $1=; unset $1;}
|
---|
| 6446 | }
|
---|
| 6447 | as_unset=as_fn_unset
|
---|
| 6448 | # as_fn_append VAR VALUE
|
---|
| 6449 | # ----------------------
|
---|
| 6450 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6451 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6452 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6453 | # implementations.
|
---|
| 6454 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6455 | eval 'as_fn_append ()
|
---|
| 6456 | {
|
---|
| 6457 | eval $1+=\$2
|
---|
| 6458 | }'
|
---|
| 6459 | else
|
---|
| 6460 | as_fn_append ()
|
---|
| 6461 | {
|
---|
| 6462 | eval $1=\$$1\$2
|
---|
| 6463 | }
|
---|
| 6464 | fi # as_fn_append
|
---|
| 6465 |
|
---|
| 6466 | # as_fn_arith ARG...
|
---|
| 6467 | # ------------------
|
---|
| 6468 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6469 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6470 | # must be portable across $(()) and expr.
|
---|
| 6471 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6472 | eval 'as_fn_arith ()
|
---|
| 6473 | {
|
---|
| 6474 | as_val=$(( $* ))
|
---|
| 6475 | }'
|
---|
| 6476 | else
|
---|
| 6477 | as_fn_arith ()
|
---|
| 6478 | {
|
---|
| 6479 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6480 | }
|
---|
| 6481 | fi # as_fn_arith
|
---|
| 6482 |
|
---|
| 6483 |
|
---|
| 6484 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6485 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[8756] | 6486 | as_expr=expr
|
---|
| 6487 | else
|
---|
| 6488 | as_expr=false
|
---|
| 6489 | fi
|
---|
[562] | 6490 |
|
---|
[22378] | 6491 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[8756] | 6492 | as_basename=basename
|
---|
| 6493 | else
|
---|
| 6494 | as_basename=false
|
---|
| 6495 | fi
|
---|
[562] | 6496 |
|
---|
[22378] | 6497 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 6498 | as_dirname=dirname
|
---|
| 6499 | else
|
---|
| 6500 | as_dirname=false
|
---|
| 6501 | fi
|
---|
[562] | 6502 |
|
---|
[22378] | 6503 | as_me=`$as_basename -- "$0" ||
|
---|
[8756] | 6504 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6505 | X"$0" : 'X\(//\)$' \| \
|
---|
[22378] | 6506 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6507 | $as_echo X/"$0" |
|
---|
| 6508 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 6509 | s//\1/
|
---|
| 6510 | q
|
---|
| 6511 | }
|
---|
| 6512 | /^X\/\(\/\/\)$/{
|
---|
| 6513 | s//\1/
|
---|
| 6514 | q
|
---|
| 6515 | }
|
---|
| 6516 | /^X\/\(\/\).*/{
|
---|
| 6517 | s//\1/
|
---|
| 6518 | q
|
---|
| 6519 | }
|
---|
| 6520 | s/.*/./; q'`
|
---|
[3631] | 6521 |
|
---|
[20853] | 6522 | # Avoid depending upon Character Ranges.
|
---|
| 6523 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6524 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6525 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6526 | as_cr_digits='0123456789'
|
---|
| 6527 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[8756] | 6528 |
|
---|
[22378] | 6529 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 6530 | case `echo -n x` in #(((((
|
---|
| 6531 | -n*)
|
---|
| 6532 | case `echo 'xy\c'` in
|
---|
| 6533 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 6534 | xy) ECHO_C='\c';;
|
---|
| 6535 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 6536 | ECHO_T=' ';;
|
---|
| 6537 | esac;;
|
---|
| 6538 | *)
|
---|
| 6539 | ECHO_N='-n';;
|
---|
[8756] | 6540 | esac
|
---|
| 6541 |
|
---|
[22378] | 6542 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6543 | if test -d conf$$.dir; then
|
---|
| 6544 | rm -f conf$$.dir/conf$$.file
|
---|
[8756] | 6545 | else
|
---|
[22378] | 6546 | rm -f conf$$.dir
|
---|
| 6547 | mkdir conf$$.dir 2>/dev/null
|
---|
[8756] | 6548 | fi
|
---|
[22378] | 6549 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 6550 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6551 | as_ln_s='ln -s'
|
---|
| 6552 | # ... but there are two gotchas:
|
---|
| 6553 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 6554 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 6555 | # In both cases, we have to default to `cp -p'.
|
---|
| 6556 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 6557 | as_ln_s='cp -p'
|
---|
| 6558 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6559 | as_ln_s=ln
|
---|
| 6560 | else
|
---|
[8756] | 6561 | as_ln_s='cp -p'
|
---|
[20853] | 6562 | fi
|
---|
[8756] | 6563 | else
|
---|
| 6564 | as_ln_s='cp -p'
|
---|
| 6565 | fi
|
---|
[22378] | 6566 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 6567 | rmdir conf$$.dir 2>/dev/null
|
---|
[8756] | 6568 |
|
---|
[22378] | 6569 |
|
---|
| 6570 | # as_fn_mkdir_p
|
---|
| 6571 | # -------------
|
---|
| 6572 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 6573 | as_fn_mkdir_p ()
|
---|
| 6574 | {
|
---|
| 6575 |
|
---|
| 6576 | case $as_dir in #(
|
---|
| 6577 | -*) as_dir=./$as_dir;;
|
---|
| 6578 | esac
|
---|
| 6579 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 6580 | as_dirs=
|
---|
| 6581 | while :; do
|
---|
| 6582 | case $as_dir in #(
|
---|
| 6583 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 6584 | *) as_qdir=$as_dir;;
|
---|
| 6585 | esac
|
---|
| 6586 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 6587 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 6588 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 6589 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 6590 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 6591 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6592 | $as_echo X"$as_dir" |
|
---|
| 6593 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 6594 | s//\1/
|
---|
| 6595 | q
|
---|
| 6596 | }
|
---|
| 6597 | /^X\(\/\/\)[^/].*/{
|
---|
| 6598 | s//\1/
|
---|
| 6599 | q
|
---|
| 6600 | }
|
---|
| 6601 | /^X\(\/\/\)$/{
|
---|
| 6602 | s//\1/
|
---|
| 6603 | q
|
---|
| 6604 | }
|
---|
| 6605 | /^X\(\/\).*/{
|
---|
| 6606 | s//\1/
|
---|
| 6607 | q
|
---|
| 6608 | }
|
---|
| 6609 | s/.*/./; q'`
|
---|
| 6610 | test -d "$as_dir" && break
|
---|
| 6611 | done
|
---|
| 6612 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
[23508] | 6613 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
[22378] | 6614 |
|
---|
| 6615 |
|
---|
| 6616 | } # as_fn_mkdir_p
|
---|
[8756] | 6617 | if mkdir -p . 2>/dev/null; then
|
---|
[22378] | 6618 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8756] | 6619 | else
|
---|
| 6620 | test -d ./-p && rmdir ./-p
|
---|
| 6621 | as_mkdir_p=false
|
---|
| 6622 | fi
|
---|
| 6623 |
|
---|
[22378] | 6624 | if test -x / >/dev/null 2>&1; then
|
---|
| 6625 | as_test_x='test -x'
|
---|
| 6626 | else
|
---|
| 6627 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 6628 | as_ls_L_option=L
|
---|
| 6629 | else
|
---|
| 6630 | as_ls_L_option=
|
---|
| 6631 | fi
|
---|
| 6632 | as_test_x='
|
---|
| 6633 | eval sh -c '\''
|
---|
| 6634 | if test -d "$1"; then
|
---|
| 6635 | test -d "$1/.";
|
---|
| 6636 | else
|
---|
| 6637 | case $1 in #(
|
---|
| 6638 | -*)set "./$1";;
|
---|
| 6639 | esac;
|
---|
| 6640 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
| 6641 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 6642 | '\'' sh
|
---|
| 6643 | '
|
---|
| 6644 | fi
|
---|
| 6645 | as_executable_p=$as_test_x
|
---|
[8756] | 6646 |
|
---|
| 6647 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6648 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6649 |
|
---|
| 6650 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6651 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6652 |
|
---|
| 6653 |
|
---|
| 6654 | exec 6>&1
|
---|
[22378] | 6655 | ## ----------------------------------- ##
|
---|
| 6656 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 6657 | ## ----------------------------------- ##
|
---|
| 6658 | _ASEOF
|
---|
| 6659 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
[8756] | 6660 |
|
---|
[22378] | 6661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6662 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
[8756] | 6663 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[22378] | 6664 | # values after options handling.
|
---|
| 6665 | ac_log="
|
---|
[8756] | 6666 | This file was extended by $as_me, which was
|
---|
[23508] | 6667 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
[8756] | 6668 |
|
---|
| 6669 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6670 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6671 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6672 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6673 | $ $0 $@
|
---|
| 6674 |
|
---|
[22378] | 6675 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 6676 | "
|
---|
| 6677 |
|
---|
[8756] | 6678 | _ACEOF
|
---|
| 6679 |
|
---|
[22378] | 6680 | case $ac_config_files in *"
|
---|
| 6681 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 6682 | esac
|
---|
[8756] | 6683 |
|
---|
[22378] | 6684 | case $ac_config_headers in *"
|
---|
| 6685 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 6686 | esac
|
---|
[8756] | 6687 |
|
---|
[20853] | 6688 |
|
---|
[22378] | 6689 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6690 | # Files that config.status was made for.
|
---|
| 6691 | config_files="$ac_config_files"
|
---|
| 6692 | config_headers="$ac_config_headers"
|
---|
[20853] | 6693 |
|
---|
[22378] | 6694 | _ACEOF
|
---|
[20853] | 6695 |
|
---|
[22378] | 6696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8756] | 6697 | ac_cs_usage="\
|
---|
[22378] | 6698 | \`$as_me' instantiates files and other configuration actions
|
---|
| 6699 | from templates according to the current configuration. Unless the files
|
---|
| 6700 | and actions are specified as TAGs, all are instantiated by default.
|
---|
[8756] | 6701 |
|
---|
[22378] | 6702 | Usage: $0 [OPTION]... [TAG]...
|
---|
[8756] | 6703 |
|
---|
| 6704 | -h, --help print this help, then exit
|
---|
[22378] | 6705 | -V, --version print version number and configuration settings, then exit
|
---|
| 6706 | --config print configuration, then exit
|
---|
| 6707 | -q, --quiet, --silent
|
---|
| 6708 | do not print progress messages
|
---|
[8756] | 6709 | -d, --debug don't remove temporary files
|
---|
| 6710 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[22378] | 6711 | --file=FILE[:TEMPLATE]
|
---|
| 6712 | instantiate the configuration file FILE
|
---|
| 6713 | --header=FILE[:TEMPLATE]
|
---|
| 6714 | instantiate the configuration header FILE
|
---|
[8756] | 6715 |
|
---|
| 6716 | Configuration files:
|
---|
| 6717 | $config_files
|
---|
| 6718 |
|
---|
| 6719 | Configuration headers:
|
---|
| 6720 | $config_headers
|
---|
| 6721 |
|
---|
[22378] | 6722 | Report bugs to the package provider."
|
---|
| 6723 |
|
---|
[20853] | 6724 | _ACEOF
|
---|
[22378] | 6725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6726 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
[8756] | 6727 | ac_cs_version="\\
|
---|
| 6728 | config.status
|
---|
[23508] | 6729 | configured by $0, generated by GNU Autoconf 2.65,
|
---|
[22378] | 6730 | with options \\"\$ac_cs_config\\"
|
---|
[8756] | 6731 |
|
---|
[23508] | 6732 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
[8756] | 6733 | This config.status script is free software; the Free Software Foundation
|
---|
| 6734 | gives unlimited permission to copy, distribute and modify it."
|
---|
[22378] | 6735 |
|
---|
| 6736 | ac_pwd='$ac_pwd'
|
---|
| 6737 | srcdir='$srcdir'
|
---|
| 6738 | INSTALL='$INSTALL'
|
---|
| 6739 | AWK='$AWK'
|
---|
| 6740 | test -n "\$AWK" || AWK=awk
|
---|
[8756] | 6741 | _ACEOF
|
---|
| 6742 |
|
---|
[22378] | 6743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6744 | # The default lists apply if the user does not specify any file.
|
---|
[8756] | 6745 | ac_need_defaults=:
|
---|
| 6746 | while test $# != 0
|
---|
| 6747 | do
|
---|
| 6748 | case $1 in
|
---|
[23508] | 6749 | --*=*)
|
---|
[22378] | 6750 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6751 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[8756] | 6752 | ac_shift=:
|
---|
| 6753 | ;;
|
---|
[22378] | 6754 | *)
|
---|
[8756] | 6755 | ac_option=$1
|
---|
| 6756 | ac_optarg=$2
|
---|
| 6757 | ac_shift=shift
|
---|
| 6758 | ;;
|
---|
| 6759 | esac
|
---|
| 6760 |
|
---|
| 6761 | case $ac_option in
|
---|
| 6762 | # Handling of the options.
|
---|
| 6763 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 6764 | ac_cs_recheck=: ;;
|
---|
[22378] | 6765 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 6766 | $as_echo "$ac_cs_version"; exit ;;
|
---|
| 6767 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 6768 | $as_echo "$ac_cs_config"; exit ;;
|
---|
| 6769 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[8756] | 6770 | debug=: ;;
|
---|
| 6771 | --file | --fil | --fi | --f )
|
---|
| 6772 | $ac_shift
|
---|
[22378] | 6773 | case $ac_optarg in
|
---|
| 6774 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6775 | esac
|
---|
| 6776 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
[8756] | 6777 | ac_need_defaults=false;;
|
---|
| 6778 | --header | --heade | --head | --hea )
|
---|
| 6779 | $ac_shift
|
---|
[22378] | 6780 | case $ac_optarg in
|
---|
| 6781 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6782 | esac
|
---|
| 6783 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
[8756] | 6784 | ac_need_defaults=false;;
|
---|
[22378] | 6785 | --he | --h)
|
---|
| 6786 | # Conflict between --help and --header
|
---|
[23508] | 6787 | as_fn_error "ambiguous option: \`$1'
|
---|
[22378] | 6788 | Try \`$0 --help' for more information.";;
|
---|
| 6789 | --help | --hel | -h )
|
---|
| 6790 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
[8756] | 6791 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6792 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6793 | ac_cs_silent=: ;;
|
---|
| 6794 |
|
---|
| 6795 | # This is an error.
|
---|
[23508] | 6796 | -*) as_fn_error "unrecognized option: \`$1'
|
---|
[22378] | 6797 | Try \`$0 --help' for more information." ;;
|
---|
[8756] | 6798 |
|
---|
[22378] | 6799 | *) as_fn_append ac_config_targets " $1"
|
---|
| 6800 | ac_need_defaults=false ;;
|
---|
[8756] | 6801 |
|
---|
| 6802 | esac
|
---|
| 6803 | shift
|
---|
[8200] | 6804 | done
|
---|
[8756] | 6805 |
|
---|
| 6806 | ac_configure_extra_args=
|
---|
| 6807 |
|
---|
| 6808 | if $ac_cs_silent; then
|
---|
| 6809 | exec 6>/dev/null
|
---|
| 6810 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 6811 | fi
|
---|
[562] | 6812 |
|
---|
[8756] | 6813 | _ACEOF
|
---|
[22378] | 6814 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[8756] | 6815 | if \$ac_cs_recheck; then
|
---|
[22378] | 6816 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 6817 | shift
|
---|
| 6818 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 6819 | CONFIG_SHELL='$SHELL'
|
---|
| 6820 | export CONFIG_SHELL
|
---|
| 6821 | exec "\$@"
|
---|
[8756] | 6822 | fi
|
---|
[8200] | 6823 |
|
---|
[8756] | 6824 | _ACEOF
|
---|
[22378] | 6825 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6826 | exec 5>>config.log
|
---|
| 6827 | {
|
---|
| 6828 | echo
|
---|
| 6829 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 6830 | ## Running $as_me. ##
|
---|
| 6831 | _ASBOX
|
---|
| 6832 | $as_echo "$ac_log"
|
---|
| 6833 | } >&5
|
---|
[8756] | 6834 |
|
---|
[22378] | 6835 | _ACEOF
|
---|
| 6836 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6837 | _ACEOF
|
---|
[8756] | 6838 |
|
---|
[22378] | 6839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[20853] | 6840 |
|
---|
[22378] | 6841 | # Handling of arguments.
|
---|
[8756] | 6842 | for ac_config_target in $ac_config_targets
|
---|
| 6843 | do
|
---|
[22378] | 6844 | case $ac_config_target in
|
---|
| 6845 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 6846 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 6847 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 6848 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 6849 |
|
---|
[23508] | 6850 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
[562] | 6851 | esac
|
---|
[8756] | 6852 | done
|
---|
[562] | 6853 |
|
---|
[22378] | 6854 |
|
---|
[8756] | 6855 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 6856 | # then the envvar interface is used. Set only those that are not.
|
---|
| 6857 | # We use the long form for the default assignment because of an extremely
|
---|
| 6858 | # bizarre bug on SunOS 4.1.3.
|
---|
| 6859 | if $ac_need_defaults; then
|
---|
| 6860 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 6861 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 6862 | fi
|
---|
[8200] | 6863 |
|
---|
[8756] | 6864 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[22378] | 6865 | # simply because there is no reason against having it here, and in addition,
|
---|
[8756] | 6866 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[22378] | 6867 | # Hook for its removal unless debugging.
|
---|
| 6868 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 6869 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[8756] | 6870 | $debug ||
|
---|
| 6871 | {
|
---|
[22378] | 6872 | tmp=
|
---|
| 6873 | trap 'exit_status=$?
|
---|
| 6874 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
| 6875 | ' 0
|
---|
| 6876 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
[8756] | 6877 | }
|
---|
| 6878 | # Create a (secure) tmp directory for tmp files.
|
---|
| 6879 |
|
---|
| 6880 | {
|
---|
[22378] | 6881 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[8756] | 6882 | test -n "$tmp" && test -d "$tmp"
|
---|
| 6883 | } ||
|
---|
| 6884 | {
|
---|
[22378] | 6885 | tmp=./conf$$-$RANDOM
|
---|
| 6886 | (umask 077 && mkdir "$tmp")
|
---|
[23508] | 6887 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
|
---|
[22378] | 6888 |
|
---|
| 6889 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 6890 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 6891 | # This happens for instance with `./config.status config.h'.
|
---|
| 6892 | if test -n "$CONFIG_FILES"; then
|
---|
| 6893 |
|
---|
| 6894 |
|
---|
| 6895 | ac_cr=`echo X | tr X '\015'`
|
---|
| 6896 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 6897 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 6898 | # point, so we can use a bashism as a fallback.
|
---|
| 6899 | if test "x$ac_cr" = x; then
|
---|
| 6900 | eval ac_cr=\$\'\\r\'
|
---|
| 6901 | fi
|
---|
| 6902 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 6903 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
[23508] | 6904 | ac_cs_awk_cr='\r'
|
---|
[22378] | 6905 | else
|
---|
| 6906 | ac_cs_awk_cr=$ac_cr
|
---|
| 6907 | fi
|
---|
| 6908 |
|
---|
| 6909 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
| 6910 | _ACEOF
|
---|
| 6911 |
|
---|
| 6912 |
|
---|
[8756] | 6913 | {
|
---|
[22378] | 6914 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 6915 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 6916 | echo "_ACEOF"
|
---|
| 6917 | } >conf$$subs.sh ||
|
---|
[23508] | 6918 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 6919 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
|
---|
[22378] | 6920 | ac_delim='%!_!# '
|
---|
| 6921 | for ac_last_try in false false false false false :; do
|
---|
| 6922 | . ./conf$$subs.sh ||
|
---|
[23508] | 6923 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[22378] | 6924 |
|
---|
| 6925 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 6926 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 6927 | break
|
---|
| 6928 | elif $ac_last_try; then
|
---|
[23508] | 6929 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[22378] | 6930 | else
|
---|
| 6931 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 6932 | fi
|
---|
| 6933 | done
|
---|
| 6934 | rm -f conf$$subs.sh
|
---|
| 6935 |
|
---|
| 6936 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6937 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
| 6938 | _ACEOF
|
---|
| 6939 | sed -n '
|
---|
| 6940 | h
|
---|
| 6941 | s/^/S["/; s/!.*/"]=/
|
---|
| 6942 | p
|
---|
| 6943 | g
|
---|
| 6944 | s/^[^!]*!//
|
---|
| 6945 | :repl
|
---|
| 6946 | t repl
|
---|
| 6947 | s/'"$ac_delim"'$//
|
---|
| 6948 | t delim
|
---|
| 6949 | :nl
|
---|
| 6950 | h
|
---|
| 6951 | s/\(.\{148\}\)..*/\1/
|
---|
| 6952 | t more1
|
---|
| 6953 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 6954 | p
|
---|
| 6955 | n
|
---|
| 6956 | b repl
|
---|
| 6957 | :more1
|
---|
| 6958 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6959 | p
|
---|
| 6960 | g
|
---|
| 6961 | s/.\{148\}//
|
---|
| 6962 | t nl
|
---|
| 6963 | :delim
|
---|
| 6964 | h
|
---|
| 6965 | s/\(.\{148\}\)..*/\1/
|
---|
| 6966 | t more2
|
---|
| 6967 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 6968 | p
|
---|
| 6969 | b
|
---|
| 6970 | :more2
|
---|
| 6971 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6972 | p
|
---|
| 6973 | g
|
---|
| 6974 | s/.\{148\}//
|
---|
| 6975 | t delim
|
---|
| 6976 | ' <conf$$subs.awk | sed '
|
---|
| 6977 | /^[^""]/{
|
---|
| 6978 | N
|
---|
| 6979 | s/\n//
|
---|
[8756] | 6980 | }
|
---|
[22378] | 6981 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 6982 | rm -f conf$$subs.awk
|
---|
| 6983 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6984 | _ACAWK
|
---|
| 6985 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
| 6986 | for (key in S) S_is_set[key] = 1
|
---|
| 6987 | FS = ""
|
---|
[8756] | 6988 |
|
---|
[22378] | 6989 | }
|
---|
| 6990 | {
|
---|
| 6991 | line = $ 0
|
---|
| 6992 | nfields = split(line, field, "@")
|
---|
| 6993 | substed = 0
|
---|
| 6994 | len = length(field[1])
|
---|
| 6995 | for (i = 2; i < nfields; i++) {
|
---|
| 6996 | key = field[i]
|
---|
| 6997 | keylen = length(key)
|
---|
| 6998 | if (S_is_set[key]) {
|
---|
| 6999 | value = S[key]
|
---|
| 7000 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 7001 | len += length(value) + length(field[++i])
|
---|
| 7002 | substed = 1
|
---|
| 7003 | } else
|
---|
| 7004 | len += 1 + keylen
|
---|
| 7005 | }
|
---|
| 7006 |
|
---|
| 7007 | print line
|
---|
| 7008 | }
|
---|
| 7009 |
|
---|
| 7010 | _ACAWK
|
---|
[20853] | 7011 | _ACEOF
|
---|
[22378] | 7012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7013 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 7014 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 7015 | else
|
---|
| 7016 | cat
|
---|
| 7017 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
[23508] | 7018 | || as_fn_error "could not setup config files machinery" "$LINENO" 5
|
---|
[22378] | 7019 | _ACEOF
|
---|
[20853] | 7020 |
|
---|
[23508] | 7021 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7022 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
[22378] | 7023 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7024 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7025 | if test "x$srcdir" = x.; then
|
---|
[23508] | 7026 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7027 | s/:*\$(srcdir):*/:/
|
---|
| 7028 | s/:*\${srcdir}:*/:/
|
---|
| 7029 | s/:*@srcdir@:*/:/
|
---|
| 7030 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
[22378] | 7031 | s/:*$//
|
---|
| 7032 | s/^[^=]*=[ ]*$//
|
---|
| 7033 | }'
|
---|
| 7034 | fi
|
---|
[20853] | 7035 |
|
---|
[22378] | 7036 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7037 | fi # test -n "$CONFIG_FILES"
|
---|
[8756] | 7038 |
|
---|
[22378] | 7039 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 7040 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 7041 | # This happens for instance with `./config.status Makefile'.
|
---|
| 7042 | if test -n "$CONFIG_HEADERS"; then
|
---|
| 7043 | cat >"$tmp/defines.awk" <<\_ACAWK ||
|
---|
| 7044 | BEGIN {
|
---|
[8756] | 7045 | _ACEOF
|
---|
| 7046 |
|
---|
[22378] | 7047 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 7048 | # here-document in config.status, that substitutes the proper values into
|
---|
| 7049 | # config.h.in to produce config.h.
|
---|
| 7050 |
|
---|
| 7051 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 7052 | # handling of long lines.
|
---|
| 7053 | ac_delim='%!_!# '
|
---|
| 7054 | for ac_last_try in false false :; do
|
---|
| 7055 | ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 7056 | if test -z "$ac_t"; then
|
---|
| 7057 | break
|
---|
| 7058 | elif $ac_last_try; then
|
---|
[23508] | 7059 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
[22378] | 7060 | else
|
---|
| 7061 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[562] | 7062 | fi
|
---|
[22378] | 7063 | done
|
---|
[562] | 7064 |
|
---|
[22378] | 7065 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 7066 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 7067 | # newline sequences.
|
---|
| 7068 |
|
---|
| 7069 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 7070 | sed -n '
|
---|
| 7071 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7072 | t rset
|
---|
| 7073 | :rset
|
---|
| 7074 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7075 | t def
|
---|
| 7076 | d
|
---|
| 7077 | :def
|
---|
| 7078 | s/\\$//
|
---|
| 7079 | t bsnl
|
---|
| 7080 | s/["\\]/\\&/g
|
---|
| 7081 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7082 | D["\1"]=" \3"/p
|
---|
| 7083 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7084 | d
|
---|
| 7085 | :bsnl
|
---|
| 7086 | s/["\\]/\\&/g
|
---|
| 7087 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7088 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7089 | t cont
|
---|
| 7090 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7091 | t cont
|
---|
| 7092 | d
|
---|
| 7093 | :cont
|
---|
| 7094 | n
|
---|
| 7095 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7096 | t clear
|
---|
| 7097 | :clear
|
---|
| 7098 | s/\\$//
|
---|
| 7099 | t bsnlc
|
---|
| 7100 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7101 | d
|
---|
| 7102 | :bsnlc
|
---|
| 7103 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7104 | b cont
|
---|
| 7105 | ' <confdefs.h | sed '
|
---|
| 7106 | s/'"$ac_delim"'/"\\\
|
---|
| 7107 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7108 |
|
---|
| 7109 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7110 | for (key in D) D_is_set[key] = 1
|
---|
| 7111 | FS = ""
|
---|
| 7112 | }
|
---|
| 7113 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7114 | line = \$ 0
|
---|
| 7115 | split(line, arg, " ")
|
---|
| 7116 | if (arg[1] == "#") {
|
---|
| 7117 | defundef = arg[2]
|
---|
| 7118 | mac1 = arg[3]
|
---|
| 7119 | } else {
|
---|
| 7120 | defundef = substr(arg[1], 2)
|
---|
| 7121 | mac1 = arg[2]
|
---|
| 7122 | }
|
---|
| 7123 | split(mac1, mac2, "(") #)
|
---|
| 7124 | macro = mac2[1]
|
---|
| 7125 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7126 | if (D_is_set[macro]) {
|
---|
| 7127 | # Preserve the white space surrounding the "#".
|
---|
| 7128 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7129 | next
|
---|
| 7130 | } else {
|
---|
| 7131 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7132 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7133 | # on some systems where configure will not decide to define it.
|
---|
| 7134 | if (defundef == "undef") {
|
---|
| 7135 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7136 | next
|
---|
| 7137 | }
|
---|
| 7138 | }
|
---|
| 7139 | }
|
---|
| 7140 | { print }
|
---|
| 7141 | _ACAWK
|
---|
[8756] | 7142 | _ACEOF
|
---|
[22378] | 7143 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[23508] | 7144 | as_fn_error "could not setup config headers machinery" "$LINENO" 5
|
---|
[22378] | 7145 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7146 |
|
---|
| 7147 |
|
---|
| 7148 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
|
---|
| 7149 | shift
|
---|
| 7150 | for ac_tag
|
---|
| 7151 | do
|
---|
| 7152 | case $ac_tag in
|
---|
| 7153 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[562] | 7154 | esac
|
---|
[22378] | 7155 | case $ac_mode$ac_tag in
|
---|
| 7156 | :[FHL]*:*);;
|
---|
[23508] | 7157 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
[22378] | 7158 | :[FH]-) ac_tag=-:-;;
|
---|
| 7159 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7160 | esac
|
---|
| 7161 | ac_save_IFS=$IFS
|
---|
| 7162 | IFS=:
|
---|
| 7163 | set x $ac_tag
|
---|
| 7164 | IFS=$ac_save_IFS
|
---|
| 7165 | shift
|
---|
| 7166 | ac_file=$1
|
---|
| 7167 | shift
|
---|
[562] | 7168 |
|
---|
[22378] | 7169 | case $ac_mode in
|
---|
| 7170 | :L) ac_source=$1;;
|
---|
| 7171 | :[FH])
|
---|
| 7172 | ac_file_inputs=
|
---|
| 7173 | for ac_f
|
---|
| 7174 | do
|
---|
| 7175 | case $ac_f in
|
---|
| 7176 | -) ac_f="$tmp/stdin";;
|
---|
| 7177 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7178 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7179 | # because $ac_f cannot contain `:'.
|
---|
| 7180 | test -f "$ac_f" ||
|
---|
| 7181 | case $ac_f in
|
---|
| 7182 | [\\/$]*) false;;
|
---|
| 7183 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7184 | esac ||
|
---|
[23508] | 7185 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
[22378] | 7186 | esac
|
---|
| 7187 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
| 7188 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
| 7189 | done
|
---|
| 7190 |
|
---|
| 7191 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7192 | # use $as_me), people would be surprised to read:
|
---|
| 7193 | # /* config.h. Generated by config.status. */
|
---|
| 7194 | configure_input='Generated from '`
|
---|
| 7195 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7196 | `' by configure.'
|
---|
| 7197 | if test x"$ac_file" != x-; then
|
---|
| 7198 | configure_input="$ac_file. $configure_input"
|
---|
| 7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
| 7200 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7201 | fi
|
---|
| 7202 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7203 | case $configure_input in #(
|
---|
| 7204 | *\&* | *\|* | *\\* )
|
---|
| 7205 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7206 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7207 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7208 | esac
|
---|
| 7209 |
|
---|
| 7210 | case $ac_tag in
|
---|
| 7211 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
[23508] | 7212 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
|
---|
[22378] | 7213 | esac
|
---|
| 7214 | ;;
|
---|
| 7215 | esac
|
---|
| 7216 |
|
---|
| 7217 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[8756] | 7218 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7219 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7220 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[22378] | 7221 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7222 | $as_echo X"$ac_file" |
|
---|
| 7223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7224 | s//\1/
|
---|
| 7225 | q
|
---|
| 7226 | }
|
---|
| 7227 | /^X\(\/\/\)[^/].*/{
|
---|
| 7228 | s//\1/
|
---|
| 7229 | q
|
---|
| 7230 | }
|
---|
| 7231 | /^X\(\/\/\)$/{
|
---|
| 7232 | s//\1/
|
---|
| 7233 | q
|
---|
| 7234 | }
|
---|
| 7235 | /^X\(\/\).*/{
|
---|
| 7236 | s//\1/
|
---|
| 7237 | q
|
---|
| 7238 | }
|
---|
| 7239 | s/.*/./; q'`
|
---|
| 7240 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[8756] | 7241 | ac_builddir=.
|
---|
| 7242 |
|
---|
[22378] | 7243 | case "$ac_dir" in
|
---|
| 7244 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7245 | *)
|
---|
| 7246 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7247 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7248 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7249 | case $ac_top_builddir_sub in
|
---|
| 7250 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7251 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7252 | esac ;;
|
---|
| 7253 | esac
|
---|
| 7254 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7255 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7256 | # for backward compatibility:
|
---|
| 7257 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8756] | 7258 |
|
---|
| 7259 | case $srcdir in
|
---|
[22378] | 7260 | .) # We are building in place.
|
---|
[8756] | 7261 | ac_srcdir=.
|
---|
[22378] | 7262 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7263 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7264 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 7265 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[22378] | 7266 | ac_top_srcdir=$srcdir
|
---|
| 7267 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7268 | *) # Relative name.
|
---|
| 7269 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7270 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7271 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 7272 | esac
|
---|
[22378] | 7273 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[8756] | 7274 |
|
---|
| 7275 |
|
---|
[22378] | 7276 | case $ac_mode in
|
---|
| 7277 | :F)
|
---|
| 7278 | #
|
---|
| 7279 | # CONFIG_FILE
|
---|
| 7280 | #
|
---|
[8756] | 7281 |
|
---|
| 7282 | case $INSTALL in
|
---|
| 7283 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[22378] | 7284 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[8200] | 7285 | esac
|
---|
[22378] | 7286 | _ACEOF
|
---|
[562] | 7287 |
|
---|
[22378] | 7288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7289 | # If the template does not know about datarootdir, expand it.
|
---|
| 7290 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7291 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7292 | ac_sed_dataroot='
|
---|
| 7293 | /datarootdir/ {
|
---|
| 7294 | p
|
---|
| 7295 | q
|
---|
| 7296 | }
|
---|
| 7297 | /@datadir@/p
|
---|
| 7298 | /@docdir@/p
|
---|
| 7299 | /@infodir@/p
|
---|
| 7300 | /@localedir@/p
|
---|
| 7301 | /@mandir@/p'
|
---|
| 7302 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7303 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7304 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
| 7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 7306 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7307 | _ACEOF
|
---|
| 7308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7309 | ac_datarootdir_hack='
|
---|
| 7310 | s&@datadir@&$datadir&g
|
---|
| 7311 | s&@docdir@&$docdir&g
|
---|
| 7312 | s&@infodir@&$infodir&g
|
---|
| 7313 | s&@localedir@&$localedir&g
|
---|
| 7314 | s&@mandir@&$mandir&g
|
---|
| 7315 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 7316 | esac
|
---|
| 7317 | _ACEOF
|
---|
[562] | 7318 |
|
---|
[22378] | 7319 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7320 | # Shell code in configure.ac might set extrasub.
|
---|
| 7321 | # FIXME: do we really want to maintain this feature?
|
---|
| 7322 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7323 | ac_sed_extra="$ac_vpsub
|
---|
[8756] | 7324 | $extrasub
|
---|
| 7325 | _ACEOF
|
---|
[22378] | 7326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8756] | 7327 | :t
|
---|
| 7328 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[22378] | 7329 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7330 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7331 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7332 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7333 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7334 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7335 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7336 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7337 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7338 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7339 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7340 | $ac_datarootdir_hack
|
---|
| 7341 | "
|
---|
| 7342 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
[23508] | 7343 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[8756] | 7344 |
|
---|
[22378] | 7345 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 7346 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7347 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[23508] | 7349 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
[22378] | 7350 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[23508] | 7351 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
[8756] | 7352 |
|
---|
[22378] | 7353 | rm -f "$tmp/stdin"
|
---|
[8756] | 7354 | case $ac_file in
|
---|
[22378] | 7355 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
| 7356 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
| 7357 | esac \
|
---|
[23508] | 7358 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[22378] | 7359 | ;;
|
---|
| 7360 | :H)
|
---|
| 7361 | #
|
---|
| 7362 | # CONFIG_HEADER
|
---|
| 7363 | #
|
---|
[8756] | 7364 | if test x"$ac_file" != x-; then
|
---|
[22378] | 7365 | {
|
---|
| 7366 | $as_echo "/* $configure_input */" \
|
---|
| 7367 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7368 | } >"$tmp/config.h" \
|
---|
[23508] | 7369 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[22378] | 7370 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
| 7372 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[8756] | 7373 | else
|
---|
[22378] | 7374 | rm -f "$ac_file"
|
---|
| 7375 | mv "$tmp/config.h" "$ac_file" \
|
---|
[23508] | 7376 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[687] | 7377 | fi
|
---|
[8756] | 7378 | else
|
---|
[22378] | 7379 | $as_echo "/* $configure_input */" \
|
---|
| 7380 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
---|
[23508] | 7381 | || as_fn_error "could not create -" "$LINENO" 5
|
---|
[687] | 7382 | fi
|
---|
[22378] | 7383 | ;;
|
---|
[8200] | 7384 |
|
---|
[687] | 7385 |
|
---|
[22378] | 7386 | esac
|
---|
| 7387 |
|
---|
| 7388 | done # for ac_tag
|
---|
| 7389 |
|
---|
| 7390 |
|
---|
| 7391 | as_fn_exit 0
|
---|
[8756] | 7392 | _ACEOF
|
---|
| 7393 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 7394 |
|
---|
[22378] | 7395 | test $ac_write_fail = 0 ||
|
---|
[23508] | 7396 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
[8756] | 7397 |
|
---|
[22378] | 7398 |
|
---|
[8756] | 7399 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7400 | # config.status does its own redirection, appending to config.log.
|
---|
| 7401 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7402 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7403 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7404 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7405 | # appended to by config.status. When coming back to configure, we
|
---|
| 7406 | # need to make the FD available again.
|
---|
| 7407 | if test "$no_create" != yes; then
|
---|
| 7408 | ac_cs_success=:
|
---|
| 7409 | ac_config_status_args=
|
---|
| 7410 | test "$silent" = yes &&
|
---|
| 7411 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 7412 | exec 5>/dev/null
|
---|
| 7413 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 7414 | exec 5>>config.log
|
---|
| 7415 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7416 | # would make configure fail if this is the last instruction.
|
---|
[23508] | 7417 | $ac_cs_success || as_fn_exit $?
|
---|
[8756] | 7418 | fi
|
---|
| 7419 |
|
---|
| 7420 | #
|
---|
| 7421 | # CONFIG_SUBDIRS section.
|
---|
| 7422 | #
|
---|
[1675] | 7423 | if test "$no_recursion" != yes; then
|
---|
[562] | 7424 |
|
---|
[22378] | 7425 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
---|
| 7426 | # so they do not pile up.
|
---|
[1675] | 7427 | ac_sub_configure_args=
|
---|
| 7428 | ac_prev=
|
---|
[22378] | 7429 | eval "set x $ac_configure_args"
|
---|
| 7430 | shift
|
---|
| 7431 | for ac_arg
|
---|
| 7432 | do
|
---|
[1675] | 7433 | if test -n "$ac_prev"; then
|
---|
| 7434 | ac_prev=
|
---|
| 7435 | continue
|
---|
| 7436 | fi
|
---|
[8756] | 7437 | case $ac_arg in
|
---|
[1675] | 7438 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 7439 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 7440 | ac_prev=cache_file ;;
|
---|
| 7441 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 7442 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 7443 | | --c=*)
|
---|
[1675] | 7444 | ;;
|
---|
[8756] | 7445 | --config-cache | -C)
|
---|
| 7446 | ;;
|
---|
[1675] | 7447 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 7448 | ac_prev=srcdir ;;
|
---|
| 7449 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 7450 | ;;
|
---|
[8756] | 7451 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 7452 | ac_prev=prefix ;;
|
---|
| 7453 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 7454 | ;;
|
---|
[22378] | 7455 | --disable-option-checking)
|
---|
| 7456 | ;;
|
---|
| 7457 | *)
|
---|
| 7458 | case $ac_arg in
|
---|
| 7459 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 7460 | esac
|
---|
| 7461 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
---|
[1675] | 7462 | esac
|
---|
| 7463 | done
|
---|
[562] | 7464 |
|
---|
[8756] | 7465 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 7466 | # in subdir configurations.
|
---|
[22378] | 7467 | ac_arg="--prefix=$prefix"
|
---|
| 7468 | case $ac_arg in
|
---|
| 7469 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 7470 | esac
|
---|
| 7471 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
[1570] | 7472 |
|
---|
[22378] | 7473 | # Pass --silent
|
---|
| 7474 | if test "$silent" = yes; then
|
---|
| 7475 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
| 7476 | fi
|
---|
| 7477 |
|
---|
| 7478 | # Always prepend --disable-option-checking to silence warnings, since
|
---|
| 7479 | # different subdirs can have different --enable and --with options.
|
---|
| 7480 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
---|
| 7481 |
|
---|
[8756] | 7482 | ac_popdir=`pwd`
|
---|
| 7483 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 7484 |
|
---|
[1675] | 7485 | # Do not complain, so a configure script can configure whichever
|
---|
| 7486 | # parts of a large source tree are present.
|
---|
[22378] | 7487 | test -d "$srcdir/$ac_dir" || continue
|
---|
[1675] | 7488 |
|
---|
[22378] | 7489 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
| 7490 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
---|
| 7491 | $as_echo "$ac_msg" >&6
|
---|
| 7492 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[8756] | 7493 | ac_builddir=.
|
---|
[1675] | 7494 |
|
---|
[22378] | 7495 | case "$ac_dir" in
|
---|
| 7496 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7497 | *)
|
---|
| 7498 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7499 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7500 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7501 | case $ac_top_builddir_sub in
|
---|
| 7502 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7503 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7504 | esac ;;
|
---|
| 7505 | esac
|
---|
| 7506 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7507 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7508 | # for backward compatibility:
|
---|
| 7509 | ac_top_builddir=$ac_top_build_prefix
|
---|
[1675] | 7510 |
|
---|
[8756] | 7511 | case $srcdir in
|
---|
[22378] | 7512 | .) # We are building in place.
|
---|
[8756] | 7513 | ac_srcdir=.
|
---|
[22378] | 7514 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7515 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7516 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 7517 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[22378] | 7518 | ac_top_srcdir=$srcdir
|
---|
| 7519 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7520 | *) # Relative name.
|
---|
| 7521 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7522 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7523 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 7524 | esac
|
---|
[22378] | 7525 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[1675] | 7526 |
|
---|
| 7527 |
|
---|
[22378] | 7528 | cd "$ac_dir"
|
---|
[8756] | 7529 |
|
---|
[1675] | 7530 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[22378] | 7531 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 7532 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
| 7533 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 7534 | ac_sub_configure=$ac_srcdir/configure
|
---|
| 7535 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
| 7536 | # This should be Cygnus configure.
|
---|
| 7537 | ac_sub_configure=$ac_aux_dir/configure
|
---|
[1675] | 7538 | else
|
---|
[22378] | 7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 7540 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 7541 | ac_sub_configure=
|
---|
| 7542 | fi
|
---|
| 7543 |
|
---|
| 7544 | # The recursion is here.
|
---|
| 7545 | if test -n "$ac_sub_configure"; then
|
---|
| 7546 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 7547 | case $cache_file in
|
---|
| 7548 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[22378] | 7549 | *) # Relative name.
|
---|
| 7550 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
[1675] | 7551 | esac
|
---|
| 7552 |
|
---|
[22378] | 7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 7554 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 7555 | # The eval makes quoting arguments work.
|
---|
[22378] | 7556 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
| 7557 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
[23508] | 7558 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
---|
[1675] | 7559 | fi
|
---|
| 7560 |
|
---|
[22378] | 7561 | cd "$ac_popdir"
|
---|
[1675] | 7562 | done
|
---|
| 7563 | fi
|
---|
[22378] | 7564 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
| 7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
| 7566 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7567 | fi
|
---|
[1675] | 7568 |
|
---|
[8200] | 7569 |
|
---|
| 7570 |
|
---|