[3365] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[25170] | 3 | # Generated by GNU Autoconf 2.68.
|
---|
[3365] | 4 | #
|
---|
[25170] | 5 | #
|
---|
[23356] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
[25170] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
---|
| 8 | # Foundation, Inc.
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
[3365] | 11 | # This configure script is free software; the Free Software Foundation
|
---|
| 12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[25170] | 13 | ## -------------------- ##
|
---|
| 14 | ## M4sh Initialization. ##
|
---|
| 15 | ## -------------------- ##
|
---|
[3365] | 16 |
|
---|
[23356] | 17 | # Be more Bourne compatible
|
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[25170] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8063] | 20 | emulate sh
|
---|
| 21 | NULLCMD=:
|
---|
[23356] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10192] | 23 | # is contrary to our usage. Disable this feature.
|
---|
| 24 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 25 | setopt NO_GLOB_SUBST
|
---|
| 26 | else
|
---|
[25170] | 27 | case `(set -o) 2>/dev/null` in #(
|
---|
| 28 | *posix*) :
|
---|
| 29 | set -o posix ;; #(
|
---|
| 30 | *) :
|
---|
| 31 | ;;
|
---|
[23356] | 32 | esac
|
---|
[8063] | 33 | fi
|
---|
| 34 |
|
---|
[23356] | 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
|
---|
[25170] | 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
|
---|
[23356] | 50 | as_echo='printf %s\n'
|
---|
| 51 | as_echo_n='printf %s'
|
---|
[10192] | 52 | else
|
---|
[23356] | 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;
|
---|
[25170] | 60 | case $arg in #(
|
---|
[23356] | 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'
|
---|
[10192] | 72 | fi
|
---|
| 73 |
|
---|
[23356] | 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
|
---|
[10192] | 82 |
|
---|
[23356] | 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.
|
---|
[25170] | 92 | as_myself=
|
---|
| 93 | case $0 in #((
|
---|
[23356] | 94 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 96 | for as_dir in $PATH
|
---|
| 97 | do
|
---|
| 98 | IFS=$as_save_IFS
|
---|
| 99 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 101 | done
|
---|
[23356] | 102 | IFS=$as_save_IFS
|
---|
| 103 |
|
---|
| 104 | ;;
|
---|
| 105 | esac
|
---|
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 107 | # in which case we are not to be found in the path.
|
---|
| 108 | if test "x$as_myself" = x; then
|
---|
| 109 | as_myself=$0
|
---|
| 110 | fi
|
---|
| 111 | if test ! -f "$as_myself"; then
|
---|
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25170] | 113 | exit 1
|
---|
[23356] | 114 | fi
|
---|
| 115 |
|
---|
[25170] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 118 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 119 | # trigger a bug in pdksh 5.2.14.
|
---|
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 121 | do eval test x\${$as_var+set} = xset \
|
---|
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
[23356] | 123 | done
|
---|
[10192] | 124 | PS1='$ '
|
---|
| 125 | PS2='> '
|
---|
| 126 | PS4='+ '
|
---|
| 127 |
|
---|
| 128 | # NLS nuisances.
|
---|
[23356] | 129 | LC_ALL=C
|
---|
| 130 | export LC_ALL
|
---|
| 131 | LANGUAGE=C
|
---|
| 132 | export LANGUAGE
|
---|
| 133 |
|
---|
| 134 | # CDPATH.
|
---|
[25170] | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
[23356] | 136 |
|
---|
| 137 | if test "x$CONFIG_SHELL" = x; then
|
---|
[25170] | 138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 139 | emulate sh
|
---|
| 140 | NULLCMD=:
|
---|
| 141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
| 142 | # is contrary to our usage. Disable this feature.
|
---|
| 143 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
| 144 | setopt NO_GLOB_SUBST
|
---|
[23356] | 145 | else
|
---|
[25170] | 146 | case \`(set -o) 2>/dev/null\` in #(
|
---|
| 147 | *posix*) :
|
---|
| 148 | set -o posix ;; #(
|
---|
| 149 | *) :
|
---|
| 150 | ;;
|
---|
| 151 | esac
|
---|
[23356] | 152 | fi
|
---|
[25170] | 153 | "
|
---|
| 154 | as_required="as_fn_return () { (exit \$1); }
|
---|
| 155 | as_fn_success () { as_fn_return 0; }
|
---|
| 156 | as_fn_failure () { as_fn_return 1; }
|
---|
| 157 | as_fn_ret_success () { return 0; }
|
---|
| 158 | as_fn_ret_failure () { return 1; }
|
---|
[23356] | 159 |
|
---|
| 160 | exitcode=0
|
---|
[25170] | 161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
| 162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
| 163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
| 164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
| 165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
[23356] | 166 |
|
---|
| 167 | else
|
---|
[25170] | 168 | exitcode=1; echo positional parameters were not saved.
|
---|
[23356] | 169 | fi
|
---|
[25170] | 170 | test x\$exitcode = x0 || exit 1"
|
---|
| 171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
| 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
| 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
| 174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
| 175 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
| 176 | if (eval "$as_required") 2>/dev/null; then :
|
---|
| 177 | as_have_required=yes
|
---|
[23356] | 178 | else
|
---|
[25170] | 179 | as_have_required=no
|
---|
[23356] | 180 | fi
|
---|
[25170] | 181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
[23356] | 182 |
|
---|
| 183 | else
|
---|
[25170] | 184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 185 | as_found=false
|
---|
[23356] | 186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
[10192] | 187 | do
|
---|
[23356] | 188 | IFS=$as_save_IFS
|
---|
| 189 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 190 | as_found=:
|
---|
| 191 | case $as_dir in #(
|
---|
[23356] | 192 | /*)
|
---|
| 193 | for as_base in sh bash ksh sh5; do
|
---|
[25170] | 194 | # Try only shells that exist, to save several forks.
|
---|
| 195 | as_shell=$as_dir/$as_base
|
---|
| 196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 198 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
| 199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 200 | break 2
|
---|
| 201 | fi
|
---|
| 202 | fi
|
---|
[23356] | 203 | done;;
|
---|
| 204 | esac
|
---|
[25170] | 205 | as_found=false
|
---|
[23356] | 206 | done
|
---|
[25170] | 207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
| 208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
| 209 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
| 210 | fi; }
|
---|
[23356] | 211 | IFS=$as_save_IFS
|
---|
| 212 |
|
---|
| 213 |
|
---|
[25170] | 214 | if test "x$CONFIG_SHELL" != x; then :
|
---|
| 215 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 216 | # neutralization value for shells without unset; and this also
|
---|
| 217 | # works around shells that cannot unset nonexistent variables.
|
---|
| 218 | # Preserve -v and -x to the replacement shell.
|
---|
| 219 | BASH_ENV=/dev/null
|
---|
| 220 | ENV=/dev/null
|
---|
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 222 | export CONFIG_SHELL
|
---|
| 223 | case $- in # ((((
|
---|
| 224 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
| 225 | *v* ) as_opts=-v ;;
|
---|
| 226 | *x* ) as_opts=-x ;;
|
---|
| 227 | * ) as_opts= ;;
|
---|
| 228 | esac
|
---|
| 229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
|
---|
[23356] | 230 | fi
|
---|
| 231 |
|
---|
[25170] | 232 | if test x$as_have_required = xno; then :
|
---|
| 233 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
| 234 | $as_echo "$0: the shells that I found on your system."
|
---|
| 235 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
| 236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
| 237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
| 238 | else
|
---|
| 239 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
| 240 | $0: including any error possibly output before this
|
---|
| 241 | $0: message. Then install a modern shell, or manually run
|
---|
| 242 | $0: the script under such a shell if you do have one."
|
---|
| 243 | fi
|
---|
| 244 | exit 1
|
---|
[23356] | 245 | fi
|
---|
| 246 | fi
|
---|
| 247 | fi
|
---|
[25170] | 248 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 249 | export SHELL
|
---|
| 250 | # Unset more variables known to interfere with behavior of common tools.
|
---|
| 251 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
| 252 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
[10192] | 253 |
|
---|
[25170] | 254 | ## --------------------- ##
|
---|
| 255 | ## M4sh Shell Functions. ##
|
---|
| 256 | ## --------------------- ##
|
---|
| 257 | # as_fn_unset VAR
|
---|
| 258 | # ---------------
|
---|
| 259 | # Portably unset VAR.
|
---|
| 260 | as_fn_unset ()
|
---|
| 261 | {
|
---|
| 262 | { eval $1=; unset $1;}
|
---|
| 263 | }
|
---|
| 264 | as_unset=as_fn_unset
|
---|
[23356] | 265 |
|
---|
[25170] | 266 | # as_fn_set_status STATUS
|
---|
| 267 | # -----------------------
|
---|
| 268 | # Set $? to STATUS, without forking.
|
---|
| 269 | as_fn_set_status ()
|
---|
| 270 | {
|
---|
| 271 | return $1
|
---|
| 272 | } # as_fn_set_status
|
---|
[23356] | 273 |
|
---|
[25170] | 274 | # as_fn_exit STATUS
|
---|
| 275 | # -----------------
|
---|
| 276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 277 | as_fn_exit ()
|
---|
| 278 | {
|
---|
| 279 | set +e
|
---|
| 280 | as_fn_set_status $1
|
---|
| 281 | exit $1
|
---|
| 282 | } # as_fn_exit
|
---|
[23356] | 283 |
|
---|
[25170] | 284 | # as_fn_mkdir_p
|
---|
| 285 | # -------------
|
---|
| 286 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 287 | as_fn_mkdir_p ()
|
---|
| 288 | {
|
---|
[23356] | 289 |
|
---|
[25170] | 290 | case $as_dir in #(
|
---|
| 291 | -*) as_dir=./$as_dir;;
|
---|
| 292 | esac
|
---|
| 293 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 294 | as_dirs=
|
---|
| 295 | while :; do
|
---|
| 296 | case $as_dir in #(
|
---|
| 297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 298 | *) as_qdir=$as_dir;;
|
---|
| 299 | esac
|
---|
| 300 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 301 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 303 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 304 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 306 | $as_echo X"$as_dir" |
|
---|
| 307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 308 | s//\1/
|
---|
| 309 | q
|
---|
| 310 | }
|
---|
| 311 | /^X\(\/\/\)[^/].*/{
|
---|
| 312 | s//\1/
|
---|
| 313 | q
|
---|
| 314 | }
|
---|
| 315 | /^X\(\/\/\)$/{
|
---|
| 316 | s//\1/
|
---|
| 317 | q
|
---|
| 318 | }
|
---|
| 319 | /^X\(\/\).*/{
|
---|
| 320 | s//\1/
|
---|
| 321 | q
|
---|
| 322 | }
|
---|
| 323 | s/.*/./; q'`
|
---|
| 324 | test -d "$as_dir" && break
|
---|
| 325 | done
|
---|
| 326 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
[23356] | 328 |
|
---|
| 329 |
|
---|
[25170] | 330 | } # as_fn_mkdir_p
|
---|
| 331 | # as_fn_append VAR VALUE
|
---|
| 332 | # ----------------------
|
---|
| 333 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 334 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 335 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 336 | # implementations.
|
---|
| 337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 338 | eval 'as_fn_append ()
|
---|
| 339 | {
|
---|
| 340 | eval $1+=\$2
|
---|
| 341 | }'
|
---|
| 342 | else
|
---|
| 343 | as_fn_append ()
|
---|
| 344 | {
|
---|
| 345 | eval $1=\$$1\$2
|
---|
| 346 | }
|
---|
| 347 | fi # as_fn_append
|
---|
[23356] | 348 |
|
---|
[25170] | 349 | # as_fn_arith ARG...
|
---|
| 350 | # ------------------
|
---|
| 351 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 353 | # must be portable across $(()) and expr.
|
---|
| 354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 355 | eval 'as_fn_arith ()
|
---|
| 356 | {
|
---|
| 357 | as_val=$(( $* ))
|
---|
| 358 | }'
|
---|
| 359 | else
|
---|
| 360 | as_fn_arith ()
|
---|
| 361 | {
|
---|
| 362 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 363 | }
|
---|
| 364 | fi # as_fn_arith
|
---|
[23356] | 365 |
|
---|
| 366 |
|
---|
[25170] | 367 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 368 | # ----------------------------------------
|
---|
| 369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 371 | # script with STATUS, using 1 if that was 0.
|
---|
| 372 | as_fn_error ()
|
---|
| 373 | {
|
---|
| 374 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 375 | if test "$4"; then
|
---|
| 376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 378 | fi
|
---|
| 379 | $as_echo "$as_me: error: $2" >&2
|
---|
| 380 | as_fn_exit $as_status
|
---|
| 381 | } # as_fn_error
|
---|
[23356] | 382 |
|
---|
[25170] | 383 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 385 | as_expr=expr
|
---|
[10192] | 386 | else
|
---|
[25170] | 387 | as_expr=false
|
---|
[10192] | 388 | fi
|
---|
| 389 |
|
---|
[25170] | 390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 391 | as_basename=basename
|
---|
[10192] | 392 | else
|
---|
[25170] | 393 | as_basename=false
|
---|
[10192] | 394 | fi
|
---|
| 395 |
|
---|
[25170] | 396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 397 | as_dirname=dirname
|
---|
[23356] | 398 | else
|
---|
[25170] | 399 | as_dirname=false
|
---|
[23356] | 400 | fi
|
---|
[10192] | 401 |
|
---|
[25170] | 402 | as_me=`$as_basename -- "$0" ||
|
---|
| 403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 404 | X"$0" : 'X\(//\)$' \| \
|
---|
| 405 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 406 | $as_echo X/"$0" |
|
---|
| 407 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 408 | s//\1/
|
---|
| 409 | q
|
---|
| 410 | }
|
---|
| 411 | /^X\/\(\/\/\)$/{
|
---|
| 412 | s//\1/
|
---|
| 413 | q
|
---|
| 414 | }
|
---|
| 415 | /^X\/\(\/\).*/{
|
---|
| 416 | s//\1/
|
---|
| 417 | q
|
---|
| 418 | }
|
---|
| 419 | s/.*/./; q'`
|
---|
[8063] | 420 |
|
---|
[25170] | 421 | # Avoid depending upon Character Ranges.
|
---|
| 422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 425 | as_cr_digits='0123456789'
|
---|
| 426 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[10192] | 427 |
|
---|
| 428 |
|
---|
[25170] | 429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
| 430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
| 431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
| 432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
| 433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
[23356] | 434 | sed -n '
|
---|
| 435 | p
|
---|
| 436 | /[$]LINENO/=
|
---|
| 437 | ' <$as_myself |
|
---|
[10192] | 438 | sed '
|
---|
[23356] | 439 | s/[$]LINENO.*/&-/
|
---|
| 440 | t lineno
|
---|
| 441 | b
|
---|
| 442 | :lineno
|
---|
[10192] | 443 | N
|
---|
[23356] | 444 | :loop
|
---|
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[10192] | 446 | t loop
|
---|
[23356] | 447 | s/-\n.*//
|
---|
[10192] | 448 | ' >$as_me.lineno &&
|
---|
[23356] | 449 | chmod +x "$as_me.lineno" ||
|
---|
[25170] | 450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
[10192] | 451 |
|
---|
| 452 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 453 | # (the dirname of $[0] is not the place where we might find the
|
---|
[23356] | 454 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 455 | . "./$as_me.lineno"
|
---|
[10192] | 456 | # Exit status is that of the last command.
|
---|
| 457 | exit
|
---|
| 458 | }
|
---|
| 459 |
|
---|
[23356] | 460 | ECHO_C= ECHO_N= ECHO_T=
|
---|
[25170] | 461 | case `echo -n x` in #(((((
|
---|
[23356] | 462 | -n*)
|
---|
[25170] | 463 | case `echo 'xy\c'` in
|
---|
[23356] | 464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
[25170] | 465 | xy) ECHO_C='\c';;
|
---|
| 466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 467 | ECHO_T=' ';;
|
---|
[23356] | 468 | esac;;
|
---|
| 469 | *)
|
---|
| 470 | ECHO_N='-n';;
|
---|
[10192] | 471 | esac
|
---|
| 472 |
|
---|
[23356] | 473 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 474 | if test -d conf$$.dir; then
|
---|
| 475 | rm -f conf$$.dir/conf$$.file
|
---|
[8063] | 476 | else
|
---|
[23356] | 477 | rm -f conf$$.dir
|
---|
| 478 | mkdir conf$$.dir 2>/dev/null
|
---|
[8063] | 479 | fi
|
---|
[23356] | 480 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 481 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 482 | as_ln_s='ln -s'
|
---|
| 483 | # ... but there are two gotchas:
|
---|
| 484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 486 | # In both cases, we have to default to `cp -p'.
|
---|
| 487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 488 | as_ln_s='cp -p'
|
---|
| 489 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 490 | as_ln_s=ln
|
---|
| 491 | else
|
---|
[8063] | 492 | as_ln_s='cp -p'
|
---|
[22058] | 493 | fi
|
---|
[8063] | 494 | else
|
---|
| 495 | as_ln_s='cp -p'
|
---|
| 496 | fi
|
---|
[23356] | 497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 498 | rmdir conf$$.dir 2>/dev/null
|
---|
[8063] | 499 |
|
---|
[10192] | 500 | if mkdir -p . 2>/dev/null; then
|
---|
[25170] | 501 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8063] | 502 | else
|
---|
[10192] | 503 | test -d ./-p && rmdir ./-p
|
---|
| 504 | as_mkdir_p=false
|
---|
[8063] | 505 | fi
|
---|
| 506 |
|
---|
[23356] | 507 | if test -x / >/dev/null 2>&1; then
|
---|
| 508 | as_test_x='test -x'
|
---|
| 509 | else
|
---|
| 510 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 511 | as_ls_L_option=L
|
---|
| 512 | else
|
---|
| 513 | as_ls_L_option=
|
---|
| 514 | fi
|
---|
| 515 | as_test_x='
|
---|
| 516 | eval sh -c '\''
|
---|
| 517 | if test -d "$1"; then
|
---|
| 518 | test -d "$1/.";
|
---|
| 519 | else
|
---|
[25170] | 520 | case $1 in #(
|
---|
[23356] | 521 | -*)set "./$1";;
|
---|
| 522 | esac;
|
---|
[25170] | 523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
[23356] | 524 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 525 | '\'' sh
|
---|
| 526 | '
|
---|
| 527 | fi
|
---|
| 528 | as_executable_p=$as_test_x
|
---|
[8063] | 529 |
|
---|
[10192] | 530 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 532 |
|
---|
| 533 | # Sed expression to map a string onto a valid variable name.
|
---|
| 534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 535 |
|
---|
| 536 |
|
---|
[25170] | 537 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 538 | exec 6>&1
|
---|
[8063] | 539 |
|
---|
| 540 | # Name of the host.
|
---|
[25170] | 541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
[8063] | 542 | # so uname gets run too.
|
---|
| 543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 544 |
|
---|
| 545 | #
|
---|
| 546 | # Initializations.
|
---|
| 547 | #
|
---|
[3365] | 548 | ac_default_prefix=/usr/local
|
---|
[23356] | 549 | ac_clean_files=
|
---|
[10192] | 550 | ac_config_libobj_dir=.
|
---|
[23356] | 551 | LIBOBJS=
|
---|
[8063] | 552 | cross_compiling=no
|
---|
| 553 | subdirs=
|
---|
[10192] | 554 | MFLAGS=
|
---|
| 555 | MAKEFLAGS=
|
---|
[3365] | 556 |
|
---|
[10192] | 557 | # Identity of this package.
|
---|
| 558 | PACKAGE_NAME=
|
---|
| 559 | PACKAGE_TARNAME=
|
---|
| 560 | PACKAGE_VERSION=
|
---|
| 561 | PACKAGE_STRING=
|
---|
| 562 | PACKAGE_BUGREPORT=
|
---|
[25170] | 563 | PACKAGE_URL=
|
---|
[8063] | 564 |
|
---|
| 565 | ac_unique_file="text/MGQuery.cpp"
|
---|
| 566 | # Factoring default headers for most tests.
|
---|
| 567 | ac_includes_default="\
|
---|
| 568 | #include <stdio.h>
|
---|
[23356] | 569 | #ifdef HAVE_SYS_TYPES_H
|
---|
[10192] | 570 | # include <sys/types.h>
|
---|
| 571 | #endif
|
---|
[23356] | 572 | #ifdef HAVE_SYS_STAT_H
|
---|
[10192] | 573 | # include <sys/stat.h>
|
---|
| 574 | #endif
|
---|
[23356] | 575 | #ifdef STDC_HEADERS
|
---|
[8063] | 576 | # include <stdlib.h>
|
---|
| 577 | # include <stddef.h>
|
---|
| 578 | #else
|
---|
[23356] | 579 | # ifdef HAVE_STDLIB_H
|
---|
[8063] | 580 | # include <stdlib.h>
|
---|
| 581 | # endif
|
---|
| 582 | #endif
|
---|
[23356] | 583 | #ifdef HAVE_STRING_H
|
---|
| 584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[8063] | 585 | # include <memory.h>
|
---|
| 586 | # endif
|
---|
| 587 | # include <string.h>
|
---|
| 588 | #endif
|
---|
[23356] | 589 | #ifdef HAVE_STRINGS_H
|
---|
[10192] | 590 | # include <strings.h>
|
---|
| 591 | #endif
|
---|
[23356] | 592 | #ifdef HAVE_INTTYPES_H
|
---|
[8063] | 593 | # include <inttypes.h>
|
---|
| 594 | #endif
|
---|
[23356] | 595 | #ifdef HAVE_STDINT_H
|
---|
| 596 | # include <stdint.h>
|
---|
| 597 | #endif
|
---|
| 598 | #ifdef HAVE_UNISTD_H
|
---|
[8063] | 599 | # include <unistd.h>
|
---|
| 600 | #endif"
|
---|
| 601 |
|
---|
[23356] | 602 | ac_subst_vars='LTLIBOBJS
|
---|
| 603 | JNIFLAGS
|
---|
| 604 | JNISUFFIX
|
---|
| 605 | JNIINC
|
---|
| 606 | LIBOBJS
|
---|
| 607 | ALLOCA
|
---|
| 608 | UNAC_DIR
|
---|
| 609 | ANSI2KNR
|
---|
| 610 | U
|
---|
| 611 | EGREP
|
---|
| 612 | GREP
|
---|
| 613 | CPP
|
---|
| 614 | JAVACFLAGS
|
---|
| 615 | JAVAC
|
---|
| 616 | uudecode
|
---|
| 617 | JAVA
|
---|
| 618 | RANLIB
|
---|
| 619 | SET_MAKE
|
---|
| 620 | LN_S
|
---|
| 621 | INSTALL_DATA
|
---|
| 622 | INSTALL_SCRIPT
|
---|
| 623 | INSTALL_PROGRAM
|
---|
| 624 | ac_ct_CC
|
---|
| 625 | CFLAGS
|
---|
| 626 | CC
|
---|
| 627 | YFLAGS
|
---|
| 628 | YACC
|
---|
| 629 | AWK
|
---|
| 630 | OBJEXT
|
---|
| 631 | EXEEXT
|
---|
| 632 | ac_ct_CXX
|
---|
| 633 | CPPFLAGS
|
---|
| 634 | LDFLAGS
|
---|
| 635 | CXXFLAGS
|
---|
| 636 | CXX
|
---|
| 637 | ENABLE_ACCENTFOLD
|
---|
[25170] | 638 | ARCH_DEP_FLAGS
|
---|
[23356] | 639 | ENABLE_JAVA
|
---|
| 640 | VERSION
|
---|
| 641 | PACKAGE
|
---|
| 642 | target_os
|
---|
| 643 | target_vendor
|
---|
| 644 | target_cpu
|
---|
| 645 | target
|
---|
| 646 | host_os
|
---|
| 647 | host_vendor
|
---|
| 648 | host_cpu
|
---|
| 649 | host
|
---|
| 650 | build_os
|
---|
| 651 | build_vendor
|
---|
| 652 | build_cpu
|
---|
| 653 | build
|
---|
| 654 | target_alias
|
---|
| 655 | host_alias
|
---|
| 656 | build_alias
|
---|
| 657 | LIBS
|
---|
| 658 | ECHO_T
|
---|
| 659 | ECHO_N
|
---|
| 660 | ECHO_C
|
---|
| 661 | DEFS
|
---|
| 662 | mandir
|
---|
| 663 | localedir
|
---|
| 664 | libdir
|
---|
| 665 | psdir
|
---|
| 666 | pdfdir
|
---|
| 667 | dvidir
|
---|
| 668 | htmldir
|
---|
| 669 | infodir
|
---|
| 670 | docdir
|
---|
| 671 | oldincludedir
|
---|
| 672 | includedir
|
---|
| 673 | localstatedir
|
---|
| 674 | sharedstatedir
|
---|
| 675 | sysconfdir
|
---|
| 676 | datadir
|
---|
| 677 | datarootdir
|
---|
| 678 | libexecdir
|
---|
| 679 | sbindir
|
---|
| 680 | bindir
|
---|
| 681 | program_transform_name
|
---|
| 682 | prefix
|
---|
| 683 | exec_prefix
|
---|
[25170] | 684 | PACKAGE_URL
|
---|
[23356] | 685 | PACKAGE_BUGREPORT
|
---|
| 686 | PACKAGE_STRING
|
---|
| 687 | PACKAGE_VERSION
|
---|
| 688 | PACKAGE_TARNAME
|
---|
| 689 | PACKAGE_NAME
|
---|
| 690 | PATH_SEPARATOR
|
---|
| 691 | SHELL'
|
---|
[10192] | 692 | ac_subst_files=''
|
---|
[23356] | 693 | ac_user_opts='
|
---|
| 694 | enable_option_checking
|
---|
| 695 | enable_java
|
---|
| 696 | enable_accentfold
|
---|
| 697 | with_unac
|
---|
| 698 | with_dmalloc
|
---|
| 699 | with_regex
|
---|
| 700 | with_gnu_readline
|
---|
| 701 | enable_override_longlong
|
---|
| 702 | '
|
---|
| 703 | ac_precious_vars='build_alias
|
---|
| 704 | host_alias
|
---|
| 705 | target_alias
|
---|
| 706 | CXX
|
---|
| 707 | CXXFLAGS
|
---|
| 708 | LDFLAGS
|
---|
| 709 | LIBS
|
---|
| 710 | CPPFLAGS
|
---|
| 711 | CCC
|
---|
| 712 | YACC
|
---|
| 713 | YFLAGS
|
---|
| 714 | CC
|
---|
| 715 | CFLAGS
|
---|
| 716 | CPP'
|
---|
[10192] | 717 |
|
---|
[23356] | 718 |
|
---|
[3365] | 719 | # Initialize some variables set by options.
|
---|
[8063] | 720 | ac_init_help=
|
---|
| 721 | ac_init_version=false
|
---|
[23356] | 722 | ac_unrecognized_opts=
|
---|
| 723 | ac_unrecognized_sep=
|
---|
[3365] | 724 | # The variables have the same names as the options, with
|
---|
| 725 | # dashes changed to underlines.
|
---|
[8063] | 726 | cache_file=/dev/null
|
---|
[3365] | 727 | exec_prefix=NONE
|
---|
| 728 | no_create=
|
---|
| 729 | no_recursion=
|
---|
| 730 | prefix=NONE
|
---|
| 731 | program_prefix=NONE
|
---|
| 732 | program_suffix=NONE
|
---|
| 733 | program_transform_name=s,x,x,
|
---|
| 734 | silent=
|
---|
| 735 | site=
|
---|
| 736 | srcdir=
|
---|
| 737 | verbose=
|
---|
| 738 | x_includes=NONE
|
---|
| 739 | x_libraries=NONE
|
---|
[8063] | 740 |
|
---|
| 741 | # Installation directory options.
|
---|
| 742 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 743 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 744 | # by default will actually change.
|
---|
| 745 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[23356] | 746 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[3365] | 747 | bindir='${exec_prefix}/bin'
|
---|
| 748 | sbindir='${exec_prefix}/sbin'
|
---|
| 749 | libexecdir='${exec_prefix}/libexec'
|
---|
[23356] | 750 | datarootdir='${prefix}/share'
|
---|
| 751 | datadir='${datarootdir}'
|
---|
[3365] | 752 | sysconfdir='${prefix}/etc'
|
---|
| 753 | sharedstatedir='${prefix}/com'
|
---|
| 754 | localstatedir='${prefix}/var'
|
---|
| 755 | includedir='${prefix}/include'
|
---|
| 756 | oldincludedir='/usr/include'
|
---|
[23356] | 757 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 758 | infodir='${datarootdir}/info'
|
---|
| 759 | htmldir='${docdir}'
|
---|
| 760 | dvidir='${docdir}'
|
---|
| 761 | pdfdir='${docdir}'
|
---|
| 762 | psdir='${docdir}'
|
---|
| 763 | libdir='${exec_prefix}/lib'
|
---|
| 764 | localedir='${datarootdir}/locale'
|
---|
| 765 | mandir='${datarootdir}/man'
|
---|
[3365] | 766 |
|
---|
| 767 | ac_prev=
|
---|
[23356] | 768 | ac_dashdash=
|
---|
[3365] | 769 | for ac_option
|
---|
| 770 | do
|
---|
| 771 | # If the previous option needs an argument, assign it.
|
---|
| 772 | if test -n "$ac_prev"; then
|
---|
[23356] | 773 | eval $ac_prev=\$ac_option
|
---|
[3365] | 774 | ac_prev=
|
---|
| 775 | continue
|
---|
| 776 | fi
|
---|
| 777 |
|
---|
[23356] | 778 | case $ac_option in
|
---|
[25170] | 779 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 780 | *=) ac_optarg= ;;
|
---|
| 781 | *) ac_optarg=yes ;;
|
---|
[23356] | 782 | esac
|
---|
[3365] | 783 |
|
---|
| 784 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 785 |
|
---|
[23356] | 786 | case $ac_dashdash$ac_option in
|
---|
| 787 | --)
|
---|
| 788 | ac_dashdash=yes ;;
|
---|
[3365] | 789 |
|
---|
| 790 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 791 | ac_prev=bindir ;;
|
---|
| 792 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8063] | 793 | bindir=$ac_optarg ;;
|
---|
[3365] | 794 |
|
---|
| 795 | -build | --build | --buil | --bui | --bu)
|
---|
[8063] | 796 | ac_prev=build_alias ;;
|
---|
[3365] | 797 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8063] | 798 | build_alias=$ac_optarg ;;
|
---|
[3365] | 799 |
|
---|
| 800 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 801 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 802 | ac_prev=cache_file ;;
|
---|
| 803 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 804 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8063] | 805 | cache_file=$ac_optarg ;;
|
---|
[3365] | 806 |
|
---|
[8063] | 807 | --config-cache | -C)
|
---|
| 808 | cache_file=config.cache ;;
|
---|
| 809 |
|
---|
[23356] | 810 | -datadir | --datadir | --datadi | --datad)
|
---|
[3365] | 811 | ac_prev=datadir ;;
|
---|
[23356] | 812 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[8063] | 813 | datadir=$ac_optarg ;;
|
---|
[3365] | 814 |
|
---|
[23356] | 815 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 816 | | --dataroo | --dataro | --datar)
|
---|
| 817 | ac_prev=datarootdir ;;
|
---|
| 818 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 819 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 820 | datarootdir=$ac_optarg ;;
|
---|
| 821 |
|
---|
[3365] | 822 | -disable-* | --disable-*)
|
---|
[23356] | 823 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[3365] | 824 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 825 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 826 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
[23356] | 827 | ac_useropt_orig=$ac_useropt
|
---|
| 828 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 829 | case $ac_user_opts in
|
---|
| 830 | *"
|
---|
| 831 | "enable_$ac_useropt"
|
---|
| 832 | "*) ;;
|
---|
| 833 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 834 | ac_unrecognized_sep=', ';;
|
---|
| 835 | esac
|
---|
| 836 | eval enable_$ac_useropt=no ;;
|
---|
[3365] | 837 |
|
---|
[23356] | 838 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 839 | ac_prev=docdir ;;
|
---|
| 840 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 841 | docdir=$ac_optarg ;;
|
---|
| 842 |
|
---|
| 843 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 844 | ac_prev=dvidir ;;
|
---|
| 845 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 846 | dvidir=$ac_optarg ;;
|
---|
| 847 |
|
---|
[3365] | 848 | -enable-* | --enable-*)
|
---|
[23356] | 849 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[3365] | 850 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 851 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 852 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
[23356] | 853 | ac_useropt_orig=$ac_useropt
|
---|
| 854 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 855 | case $ac_user_opts in
|
---|
| 856 | *"
|
---|
| 857 | "enable_$ac_useropt"
|
---|
| 858 | "*) ;;
|
---|
| 859 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 860 | ac_unrecognized_sep=', ';;
|
---|
[22058] | 861 | esac
|
---|
[23356] | 862 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
[3365] | 863 |
|
---|
| 864 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 865 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 866 | | --exec | --exe | --ex)
|
---|
| 867 | ac_prev=exec_prefix ;;
|
---|
| 868 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 869 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 870 | | --exec=* | --exe=* | --ex=*)
|
---|
[8063] | 871 | exec_prefix=$ac_optarg ;;
|
---|
[3365] | 872 |
|
---|
| 873 | -gas | --gas | --ga | --g)
|
---|
| 874 | # Obsolete; use --with-gas.
|
---|
| 875 | with_gas=yes ;;
|
---|
| 876 |
|
---|
[8063] | 877 | -help | --help | --hel | --he | -h)
|
---|
| 878 | ac_init_help=long ;;
|
---|
| 879 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 880 | ac_init_help=recursive ;;
|
---|
| 881 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 882 | ac_init_help=short ;;
|
---|
[3365] | 883 |
|
---|
| 884 | -host | --host | --hos | --ho)
|
---|
[8063] | 885 | ac_prev=host_alias ;;
|
---|
[3365] | 886 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8063] | 887 | host_alias=$ac_optarg ;;
|
---|
[3365] | 888 |
|
---|
[23356] | 889 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 890 | ac_prev=htmldir ;;
|
---|
| 891 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 892 | | --ht=*)
|
---|
| 893 | htmldir=$ac_optarg ;;
|
---|
| 894 |
|
---|
[3365] | 895 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 896 | | --includ | --inclu | --incl | --inc)
|
---|
| 897 | ac_prev=includedir ;;
|
---|
| 898 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 899 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8063] | 900 | includedir=$ac_optarg ;;
|
---|
[3365] | 901 |
|
---|
| 902 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 903 | ac_prev=infodir ;;
|
---|
| 904 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8063] | 905 | infodir=$ac_optarg ;;
|
---|
[3365] | 906 |
|
---|
| 907 | -libdir | --libdir | --libdi | --libd)
|
---|
| 908 | ac_prev=libdir ;;
|
---|
| 909 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8063] | 910 | libdir=$ac_optarg ;;
|
---|
[3365] | 911 |
|
---|
| 912 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 913 | | --libexe | --libex | --libe)
|
---|
| 914 | ac_prev=libexecdir ;;
|
---|
| 915 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 916 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8063] | 917 | libexecdir=$ac_optarg ;;
|
---|
[3365] | 918 |
|
---|
[23356] | 919 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 920 | ac_prev=localedir ;;
|
---|
| 921 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 922 | localedir=$ac_optarg ;;
|
---|
| 923 |
|
---|
[3365] | 924 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[23356] | 925 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[3365] | 926 | ac_prev=localstatedir ;;
|
---|
| 927 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[23356] | 928 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[8063] | 929 | localstatedir=$ac_optarg ;;
|
---|
[3365] | 930 |
|
---|
| 931 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 932 | ac_prev=mandir ;;
|
---|
| 933 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8063] | 934 | mandir=$ac_optarg ;;
|
---|
[3365] | 935 |
|
---|
| 936 | -nfp | --nfp | --nf)
|
---|
| 937 | # Obsolete; use --without-fp.
|
---|
| 938 | with_fp=no ;;
|
---|
| 939 |
|
---|
| 940 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[10192] | 941 | | --no-cr | --no-c | -n)
|
---|
[3365] | 942 | no_create=yes ;;
|
---|
| 943 |
|
---|
| 944 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 945 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 946 | no_recursion=yes ;;
|
---|
| 947 |
|
---|
| 948 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 949 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 950 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 951 | ac_prev=oldincludedir ;;
|
---|
| 952 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 953 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 954 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8063] | 955 | oldincludedir=$ac_optarg ;;
|
---|
[3365] | 956 |
|
---|
| 957 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 958 | ac_prev=prefix ;;
|
---|
| 959 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8063] | 960 | prefix=$ac_optarg ;;
|
---|
[3365] | 961 |
|
---|
| 962 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 963 | | --program-pre | --program-pr | --program-p)
|
---|
| 964 | ac_prev=program_prefix ;;
|
---|
| 965 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 966 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8063] | 967 | program_prefix=$ac_optarg ;;
|
---|
[3365] | 968 |
|
---|
| 969 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 970 | | --program-suf | --program-su | --program-s)
|
---|
| 971 | ac_prev=program_suffix ;;
|
---|
| 972 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 973 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8063] | 974 | program_suffix=$ac_optarg ;;
|
---|
[3365] | 975 |
|
---|
| 976 | -program-transform-name | --program-transform-name \
|
---|
| 977 | | --program-transform-nam | --program-transform-na \
|
---|
| 978 | | --program-transform-n | --program-transform- \
|
---|
| 979 | | --program-transform | --program-transfor \
|
---|
| 980 | | --program-transfo | --program-transf \
|
---|
| 981 | | --program-trans | --program-tran \
|
---|
| 982 | | --progr-tra | --program-tr | --program-t)
|
---|
| 983 | ac_prev=program_transform_name ;;
|
---|
| 984 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 985 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 986 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 987 | | --program-transform=* | --program-transfor=* \
|
---|
| 988 | | --program-transfo=* | --program-transf=* \
|
---|
| 989 | | --program-trans=* | --program-tran=* \
|
---|
| 990 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8063] | 991 | program_transform_name=$ac_optarg ;;
|
---|
[3365] | 992 |
|
---|
[23356] | 993 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 994 | ac_prev=pdfdir ;;
|
---|
| 995 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 996 | pdfdir=$ac_optarg ;;
|
---|
| 997 |
|
---|
| 998 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 999 | ac_prev=psdir ;;
|
---|
| 1000 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 1001 | psdir=$ac_optarg ;;
|
---|
| 1002 |
|
---|
[3365] | 1003 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1004 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1005 | silent=yes ;;
|
---|
| 1006 |
|
---|
| 1007 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1008 | ac_prev=sbindir ;;
|
---|
| 1009 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1010 | | --sbi=* | --sb=*)
|
---|
[8063] | 1011 | sbindir=$ac_optarg ;;
|
---|
[3365] | 1012 |
|
---|
| 1013 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1014 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1015 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1016 | | --sha | --sh)
|
---|
| 1017 | ac_prev=sharedstatedir ;;
|
---|
| 1018 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1019 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1020 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1021 | | --sha=* | --sh=*)
|
---|
[8063] | 1022 | sharedstatedir=$ac_optarg ;;
|
---|
[3365] | 1023 |
|
---|
| 1024 | -site | --site | --sit)
|
---|
| 1025 | ac_prev=site ;;
|
---|
| 1026 | -site=* | --site=* | --sit=*)
|
---|
[8063] | 1027 | site=$ac_optarg ;;
|
---|
[3365] | 1028 |
|
---|
| 1029 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1030 | ac_prev=srcdir ;;
|
---|
| 1031 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8063] | 1032 | srcdir=$ac_optarg ;;
|
---|
[3365] | 1033 |
|
---|
| 1034 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1035 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1036 | ac_prev=sysconfdir ;;
|
---|
| 1037 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1038 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8063] | 1039 | sysconfdir=$ac_optarg ;;
|
---|
[3365] | 1040 |
|
---|
| 1041 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8063] | 1042 | ac_prev=target_alias ;;
|
---|
[3365] | 1043 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8063] | 1044 | target_alias=$ac_optarg ;;
|
---|
[3365] | 1045 |
|
---|
| 1046 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1047 | verbose=yes ;;
|
---|
| 1048 |
|
---|
[8063] | 1049 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1050 | ac_init_version=: ;;
|
---|
[3365] | 1051 |
|
---|
| 1052 | -with-* | --with-*)
|
---|
[23356] | 1053 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[3365] | 1054 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1055 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 1056 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
[23356] | 1057 | ac_useropt_orig=$ac_useropt
|
---|
| 1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1059 | case $ac_user_opts in
|
---|
| 1060 | *"
|
---|
| 1061 | "with_$ac_useropt"
|
---|
| 1062 | "*) ;;
|
---|
| 1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1064 | ac_unrecognized_sep=', ';;
|
---|
[22058] | 1065 | esac
|
---|
[23356] | 1066 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
[3365] | 1067 |
|
---|
| 1068 | -without-* | --without-*)
|
---|
[23356] | 1069 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[3365] | 1070 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1071 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 1072 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
[23356] | 1073 | ac_useropt_orig=$ac_useropt
|
---|
| 1074 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1075 | case $ac_user_opts in
|
---|
| 1076 | *"
|
---|
| 1077 | "with_$ac_useropt"
|
---|
| 1078 | "*) ;;
|
---|
| 1079 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1080 | ac_unrecognized_sep=', ';;
|
---|
| 1081 | esac
|
---|
| 1082 | eval with_$ac_useropt=no ;;
|
---|
[3365] | 1083 |
|
---|
| 1084 | --x)
|
---|
| 1085 | # Obsolete; use --with-x.
|
---|
| 1086 | with_x=yes ;;
|
---|
| 1087 |
|
---|
| 1088 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1089 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1090 | ac_prev=x_includes ;;
|
---|
| 1091 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1092 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8063] | 1093 | x_includes=$ac_optarg ;;
|
---|
[3365] | 1094 |
|
---|
| 1095 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1096 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1097 | ac_prev=x_libraries ;;
|
---|
| 1098 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1099 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8063] | 1100 | x_libraries=$ac_optarg ;;
|
---|
[3365] | 1101 |
|
---|
[25170] | 1102 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
| 1103 | Try \`$0 --help' for more information"
|
---|
[3365] | 1104 | ;;
|
---|
| 1105 |
|
---|
[8063] | 1106 | *=*)
|
---|
| 1107 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1108 | # Reject names that are not valid shell variable names.
|
---|
[25170] | 1109 | case $ac_envvar in #(
|
---|
| 1110 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
| 1111 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
| 1112 | esac
|
---|
[23356] | 1113 | eval $ac_envvar=\$ac_optarg
|
---|
[8063] | 1114 | export $ac_envvar ;;
|
---|
| 1115 |
|
---|
[3365] | 1116 | *)
|
---|
[8063] | 1117 | # FIXME: should be removed in autoconf 3.0.
|
---|
[23356] | 1118 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[10192] | 1119 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[23356] | 1120 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[25170] | 1121 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
[3365] | 1122 | ;;
|
---|
| 1123 |
|
---|
| 1124 | esac
|
---|
| 1125 | done
|
---|
| 1126 |
|
---|
| 1127 | if test -n "$ac_prev"; then
|
---|
[8063] | 1128 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[25170] | 1129 | as_fn_error $? "missing argument to $ac_option"
|
---|
[3365] | 1130 | fi
|
---|
| 1131 |
|
---|
[23356] | 1132 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1133 | case $enable_option_checking in
|
---|
| 1134 | no) ;;
|
---|
[25170] | 1135 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
[23356] | 1136 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
[10192] | 1137 | esac
|
---|
[23356] | 1138 | fi
|
---|
[10192] | 1139 |
|
---|
[23356] | 1140 | # Check all directory arguments for consistency.
|
---|
| 1141 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1142 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1143 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1144 | libdir localedir mandir
|
---|
[22058] | 1145 | do
|
---|
[23356] | 1146 | eval ac_val=\$$ac_var
|
---|
| 1147 | # Remove trailing slashes.
|
---|
[22058] | 1148 | case $ac_val in
|
---|
[23356] | 1149 | */ )
|
---|
| 1150 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1151 | eval $ac_var=\$ac_val;;
|
---|
[22058] | 1152 | esac
|
---|
[23356] | 1153 | # Be sure to have absolute directory names.
|
---|
| 1154 | case $ac_val in
|
---|
| 1155 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1156 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1157 | esac
|
---|
[25170] | 1158 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
[22058] | 1159 | done
|
---|
| 1160 |
|
---|
[8063] | 1161 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1162 | # used to hold the argument of --host etc.
|
---|
[10192] | 1163 | # FIXME: To remove some day.
|
---|
[8063] | 1164 | build=$build_alias
|
---|
| 1165 | host=$host_alias
|
---|
| 1166 | target=$target_alias
|
---|
[3365] | 1167 |
|
---|
[10192] | 1168 | # FIXME: To remove some day.
|
---|
[8063] | 1169 | if test "x$host_alias" != x; then
|
---|
| 1170 | if test "x$build_alias" = x; then
|
---|
| 1171 | cross_compiling=maybe
|
---|
[25170] | 1172 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
| 1173 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
[8063] | 1174 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1175 | cross_compiling=yes
|
---|
| 1176 | fi
|
---|
| 1177 | fi
|
---|
[3365] | 1178 |
|
---|
[8063] | 1179 | ac_tool_prefix=
|
---|
| 1180 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[3365] | 1181 |
|
---|
[8063] | 1182 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1183 |
|
---|
[10192] | 1184 |
|
---|
[23356] | 1185 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1186 | ac_ls_di=`ls -di .` &&
|
---|
| 1187 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
[25170] | 1188 | as_fn_error $? "working directory cannot be determined"
|
---|
[23356] | 1189 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
[25170] | 1190 | as_fn_error $? "pwd does not report name of working directory"
|
---|
[23356] | 1191 |
|
---|
| 1192 |
|
---|
[3365] | 1193 | # Find the source files, if location was not specified.
|
---|
| 1194 | if test -z "$srcdir"; then
|
---|
| 1195 | ac_srcdir_defaulted=yes
|
---|
[23356] | 1196 | # Try the directory containing this script, then the parent directory.
|
---|
| 1197 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1198 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1199 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1200 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1201 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1202 | $as_echo X"$as_myself" |
|
---|
| 1203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1204 | s//\1/
|
---|
| 1205 | q
|
---|
| 1206 | }
|
---|
| 1207 | /^X\(\/\/\)[^/].*/{
|
---|
| 1208 | s//\1/
|
---|
| 1209 | q
|
---|
| 1210 | }
|
---|
| 1211 | /^X\(\/\/\)$/{
|
---|
| 1212 | s//\1/
|
---|
| 1213 | q
|
---|
| 1214 | }
|
---|
| 1215 | /^X\(\/\).*/{
|
---|
| 1216 | s//\1/
|
---|
| 1217 | q
|
---|
| 1218 | }
|
---|
| 1219 | s/.*/./; q'`
|
---|
[3365] | 1220 | srcdir=$ac_confdir
|
---|
[23356] | 1221 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[3365] | 1222 | srcdir=..
|
---|
| 1223 | fi
|
---|
| 1224 | else
|
---|
| 1225 | ac_srcdir_defaulted=no
|
---|
| 1226 | fi
|
---|
[23356] | 1227 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1228 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
[25170] | 1229 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
[20844] | 1230 | fi
|
---|
[23356] | 1231 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1232 | ac_abs_confdir=`(
|
---|
[25170] | 1233 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
[23356] | 1234 | pwd)`
|
---|
| 1235 | # When building in place, set srcdir=.
|
---|
| 1236 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1237 | srcdir=.
|
---|
| 1238 | fi
|
---|
| 1239 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1240 | # Double slashes in file names in object file debugging info
|
---|
| 1241 | # mess up M-x gdb in Emacs.
|
---|
| 1242 | case $srcdir in
|
---|
| 1243 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1244 | esac
|
---|
| 1245 | for ac_var in $ac_precious_vars; do
|
---|
| 1246 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1247 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1248 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1249 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1250 | done
|
---|
[3365] | 1251 |
|
---|
[8063] | 1252 | #
|
---|
| 1253 | # Report the --help message.
|
---|
| 1254 | #
|
---|
| 1255 | if test "$ac_init_help" = "long"; then
|
---|
| 1256 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1257 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[10192] | 1258 | cat <<_ACEOF
|
---|
[8063] | 1259 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1260 |
|
---|
| 1261 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1262 |
|
---|
| 1263 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1264 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1265 |
|
---|
| 1266 | Defaults for the options are specified in brackets.
|
---|
| 1267 |
|
---|
| 1268 | Configuration:
|
---|
| 1269 | -h, --help display this help and exit
|
---|
| 1270 | --help=short display options specific to this package
|
---|
| 1271 | --help=recursive display the short help of all the included packages
|
---|
| 1272 | -V, --version display version information and exit
|
---|
[25170] | 1273 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
[8063] | 1274 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1275 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1276 | -n, --no-create do not create output files
|
---|
| 1277 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1278 |
|
---|
| 1279 | Installation directories:
|
---|
| 1280 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[23356] | 1281 | [$ac_default_prefix]
|
---|
[8063] | 1282 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[23356] | 1283 | [PREFIX]
|
---|
[8063] | 1284 |
|
---|
| 1285 | By default, \`make install' will install all the files in
|
---|
| 1286 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1287 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1288 | for instance \`--prefix=\$HOME'.
|
---|
| 1289 |
|
---|
| 1290 | For better control, use the options below.
|
---|
| 1291 |
|
---|
| 1292 | Fine tuning of the installation directories:
|
---|
[23356] | 1293 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1294 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1295 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1296 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1297 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1298 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1299 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1300 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1301 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1302 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1303 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1304 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1305 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1306 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1307 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1308 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1309 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1310 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1311 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[10192] | 1312 | _ACEOF
|
---|
[8063] | 1313 |
|
---|
[10192] | 1314 | cat <<\_ACEOF
|
---|
[8063] | 1315 |
|
---|
| 1316 | Program names:
|
---|
| 1317 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 1318 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 1319 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[15560] | 1320 |
|
---|
| 1321 | System types:
|
---|
| 1322 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1323 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1324 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
[10192] | 1325 | _ACEOF
|
---|
[8063] | 1326 | fi
|
---|
| 1327 |
|
---|
| 1328 | if test -n "$ac_init_help"; then
|
---|
| 1329 |
|
---|
[10192] | 1330 | cat <<\_ACEOF
|
---|
[8063] | 1331 |
|
---|
| 1332 | Optional Features:
|
---|
[23356] | 1333 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
[8063] | 1334 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1335 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
[23356] | 1336 | --disable-java Disable Java compilation
|
---|
[22058] | 1337 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[8063] | 1338 | --enable-override-longlong
|
---|
| 1339 | overide use of long long with GCC
|
---|
| 1340 |
|
---|
| 1341 | Optional Packages:
|
---|
| 1342 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1343 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
[13698] | 1344 | --with-unac=dir Use local unac library and headers
|
---|
[8063] | 1345 | --with-dmalloc use dmalloc, as in
|
---|
| 1346 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1347 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1348 | --with-gnu-readline compile with GNU readline support
|
---|
| 1349 |
|
---|
| 1350 | Some influential environment variables:
|
---|
| 1351 | CXX C++ compiler command
|
---|
| 1352 | CXXFLAGS C++ compiler flags
|
---|
| 1353 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1354 | nonstandard directory <lib dir>
|
---|
[23356] | 1355 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
[25170] | 1356 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
[23356] | 1357 | you have headers in a nonstandard directory <include dir>
|
---|
[25170] | 1358 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
| 1359 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
| 1360 | `yacc'.
|
---|
[23356] | 1361 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1362 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1363 | default value of `-d' given by some make applications.
|
---|
[8063] | 1364 | CC C compiler command
|
---|
| 1365 | CFLAGS C compiler flags
|
---|
| 1366 | CPP C preprocessor
|
---|
| 1367 |
|
---|
| 1368 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1369 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1370 |
|
---|
[25170] | 1371 | Report bugs to the package provider.
|
---|
[10192] | 1372 | _ACEOF
|
---|
[23356] | 1373 | ac_status=$?
|
---|
[8063] | 1374 | fi
|
---|
| 1375 |
|
---|
| 1376 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1377 | # If there are subdirs, report their specific --help.
|
---|
[10192] | 1378 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[23356] | 1379 | test -d "$ac_dir" ||
|
---|
| 1380 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1381 | continue
|
---|
[10192] | 1382 | ac_builddir=.
|
---|
[8063] | 1383 |
|
---|
[23356] | 1384 | case "$ac_dir" in
|
---|
| 1385 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1386 | *)
|
---|
| 1387 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1388 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1389 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1390 | case $ac_top_builddir_sub in
|
---|
| 1391 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1392 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1393 | esac ;;
|
---|
| 1394 | esac
|
---|
| 1395 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1396 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1397 | # for backward compatibility:
|
---|
| 1398 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8063] | 1399 |
|
---|
[10192] | 1400 | case $srcdir in
|
---|
[23356] | 1401 | .) # We are building in place.
|
---|
[10192] | 1402 | ac_srcdir=.
|
---|
[23356] | 1403 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1404 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1405 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10192] | 1406 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 1407 | ac_top_srcdir=$srcdir
|
---|
| 1408 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1409 | *) # Relative name.
|
---|
| 1410 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1411 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1412 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10192] | 1413 | esac
|
---|
[23356] | 1414 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[10192] | 1415 |
|
---|
[23356] | 1416 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1417 | # Check for guested configure.
|
---|
| 1418 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1419 | echo &&
|
---|
| 1420 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1421 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1422 | echo &&
|
---|
| 1423 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[8063] | 1424 | else
|
---|
[23356] | 1425 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1426 | fi || ac_status=$?
|
---|
| 1427 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[8063] | 1428 | done
|
---|
| 1429 | fi
|
---|
| 1430 |
|
---|
[23356] | 1431 | test -n "$ac_init_help" && exit $ac_status
|
---|
[8063] | 1432 | if $ac_init_version; then
|
---|
[10192] | 1433 | cat <<\_ACEOF
|
---|
[23356] | 1434 | configure
|
---|
[25170] | 1435 | generated by GNU Autoconf 2.68
|
---|
[8063] | 1436 |
|
---|
[25170] | 1437 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
[8063] | 1438 | This configure script is free software; the Free Software Foundation
|
---|
| 1439 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 1440 | _ACEOF
|
---|
[23356] | 1441 | exit
|
---|
[8063] | 1442 | fi
|
---|
[25170] | 1443 |
|
---|
| 1444 | ## ------------------------ ##
|
---|
| 1445 | ## Autoconf initialization. ##
|
---|
| 1446 | ## ------------------------ ##
|
---|
| 1447 |
|
---|
| 1448 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1449 | # ----------------------------
|
---|
| 1450 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1451 | ac_fn_cxx_try_compile ()
|
---|
| 1452 | {
|
---|
| 1453 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1454 | rm -f conftest.$ac_objext
|
---|
| 1455 | if { { ac_try="$ac_compile"
|
---|
| 1456 | case "(($ac_try" in
|
---|
| 1457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1458 | *) ac_try_echo=$ac_try;;
|
---|
| 1459 | esac
|
---|
| 1460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1461 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1462 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1463 | ac_status=$?
|
---|
| 1464 | if test -s conftest.err; then
|
---|
| 1465 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1466 | cat conftest.er1 >&5
|
---|
| 1467 | mv -f conftest.er1 conftest.err
|
---|
| 1468 | fi
|
---|
| 1469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1470 | test $ac_status = 0; } && {
|
---|
| 1471 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1472 | test ! -s conftest.err
|
---|
| 1473 | } && test -s conftest.$ac_objext; then :
|
---|
| 1474 | ac_retval=0
|
---|
| 1475 | else
|
---|
| 1476 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1477 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1478 |
|
---|
| 1479 | ac_retval=1
|
---|
| 1480 | fi
|
---|
| 1481 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1482 | as_fn_set_status $ac_retval
|
---|
| 1483 |
|
---|
| 1484 | } # ac_fn_cxx_try_compile
|
---|
| 1485 |
|
---|
| 1486 | # ac_fn_c_try_compile LINENO
|
---|
| 1487 | # --------------------------
|
---|
| 1488 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1489 | ac_fn_c_try_compile ()
|
---|
| 1490 | {
|
---|
| 1491 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1492 | rm -f conftest.$ac_objext
|
---|
| 1493 | if { { ac_try="$ac_compile"
|
---|
| 1494 | case "(($ac_try" in
|
---|
| 1495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1496 | *) ac_try_echo=$ac_try;;
|
---|
| 1497 | esac
|
---|
| 1498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1499 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1500 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1501 | ac_status=$?
|
---|
| 1502 | if test -s conftest.err; then
|
---|
| 1503 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1504 | cat conftest.er1 >&5
|
---|
| 1505 | mv -f conftest.er1 conftest.err
|
---|
| 1506 | fi
|
---|
| 1507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1508 | test $ac_status = 0; } && {
|
---|
| 1509 | test -z "$ac_c_werror_flag" ||
|
---|
| 1510 | test ! -s conftest.err
|
---|
| 1511 | } && test -s conftest.$ac_objext; then :
|
---|
| 1512 | ac_retval=0
|
---|
| 1513 | else
|
---|
| 1514 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1515 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1516 |
|
---|
| 1517 | ac_retval=1
|
---|
| 1518 | fi
|
---|
| 1519 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1520 | as_fn_set_status $ac_retval
|
---|
| 1521 |
|
---|
| 1522 | } # ac_fn_c_try_compile
|
---|
| 1523 |
|
---|
| 1524 | # ac_fn_c_try_cpp LINENO
|
---|
| 1525 | # ----------------------
|
---|
| 1526 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1527 | ac_fn_c_try_cpp ()
|
---|
| 1528 | {
|
---|
| 1529 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1530 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 1531 | case "(($ac_try" in
|
---|
| 1532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1533 | *) ac_try_echo=$ac_try;;
|
---|
| 1534 | esac
|
---|
| 1535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1536 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1537 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
| 1538 | ac_status=$?
|
---|
| 1539 | if test -s conftest.err; then
|
---|
| 1540 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1541 | cat conftest.er1 >&5
|
---|
| 1542 | mv -f conftest.er1 conftest.err
|
---|
| 1543 | fi
|
---|
| 1544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1545 | test $ac_status = 0; } > conftest.i && {
|
---|
| 1546 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 1547 | test ! -s conftest.err
|
---|
| 1548 | }; then :
|
---|
| 1549 | ac_retval=0
|
---|
| 1550 | else
|
---|
| 1551 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1552 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1553 |
|
---|
| 1554 | ac_retval=1
|
---|
| 1555 | fi
|
---|
| 1556 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1557 | as_fn_set_status $ac_retval
|
---|
| 1558 |
|
---|
| 1559 | } # ac_fn_c_try_cpp
|
---|
| 1560 |
|
---|
| 1561 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1562 | # -------------------------------------------------------
|
---|
| 1563 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1564 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1565 | # accordingly.
|
---|
| 1566 | ac_fn_c_check_header_mongrel ()
|
---|
| 1567 | {
|
---|
| 1568 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1569 | if eval \${$3+:} false; then :
|
---|
| 1570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1571 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1572 | if eval \${$3+:} false; then :
|
---|
| 1573 | $as_echo_n "(cached) " >&6
|
---|
| 1574 | fi
|
---|
| 1575 | eval ac_res=\$$3
|
---|
| 1576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1577 | $as_echo "$ac_res" >&6; }
|
---|
| 1578 | else
|
---|
| 1579 | # Is the header compilable?
|
---|
| 1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1581 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1583 | /* end confdefs.h. */
|
---|
| 1584 | $4
|
---|
| 1585 | #include <$2>
|
---|
| 1586 | _ACEOF
|
---|
| 1587 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1588 | ac_header_compiler=yes
|
---|
| 1589 | else
|
---|
| 1590 | ac_header_compiler=no
|
---|
| 1591 | fi
|
---|
| 1592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1594 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1595 |
|
---|
| 1596 | # Is the header present?
|
---|
| 1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1598 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1600 | /* end confdefs.h. */
|
---|
| 1601 | #include <$2>
|
---|
| 1602 | _ACEOF
|
---|
| 1603 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1604 | ac_header_preproc=yes
|
---|
| 1605 | else
|
---|
| 1606 | ac_header_preproc=no
|
---|
| 1607 | fi
|
---|
| 1608 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1610 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1611 |
|
---|
| 1612 | # So? What about this header?
|
---|
| 1613 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1614 | yes:no: )
|
---|
| 1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1616 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1618 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1619 | ;;
|
---|
| 1620 | no:yes:* )
|
---|
| 1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1622 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1624 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1626 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1628 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1630 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1631 | ;;
|
---|
| 1632 | esac
|
---|
| 1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1634 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1635 | if eval \${$3+:} false; then :
|
---|
| 1636 | $as_echo_n "(cached) " >&6
|
---|
| 1637 | else
|
---|
| 1638 | eval "$3=\$ac_header_compiler"
|
---|
| 1639 | fi
|
---|
| 1640 | eval ac_res=\$$3
|
---|
| 1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1642 | $as_echo "$ac_res" >&6; }
|
---|
| 1643 | fi
|
---|
| 1644 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1645 |
|
---|
| 1646 | } # ac_fn_c_check_header_mongrel
|
---|
| 1647 |
|
---|
| 1648 | # ac_fn_c_try_run LINENO
|
---|
| 1649 | # ----------------------
|
---|
| 1650 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1651 | # that executables *can* be run.
|
---|
| 1652 | ac_fn_c_try_run ()
|
---|
| 1653 | {
|
---|
| 1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1655 | if { { ac_try="$ac_link"
|
---|
| 1656 | case "(($ac_try" in
|
---|
| 1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1658 | *) ac_try_echo=$ac_try;;
|
---|
| 1659 | esac
|
---|
| 1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1661 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1662 | (eval "$ac_link") 2>&5
|
---|
| 1663 | ac_status=$?
|
---|
| 1664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1665 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1666 | { { case "(($ac_try" in
|
---|
| 1667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1668 | *) ac_try_echo=$ac_try;;
|
---|
| 1669 | esac
|
---|
| 1670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1671 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1672 | (eval "$ac_try") 2>&5
|
---|
| 1673 | ac_status=$?
|
---|
| 1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1675 | test $ac_status = 0; }; }; then :
|
---|
| 1676 | ac_retval=0
|
---|
| 1677 | else
|
---|
| 1678 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1679 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1680 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1681 |
|
---|
| 1682 | ac_retval=$ac_status
|
---|
| 1683 | fi
|
---|
| 1684 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1685 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1686 | as_fn_set_status $ac_retval
|
---|
| 1687 |
|
---|
| 1688 | } # ac_fn_c_try_run
|
---|
| 1689 |
|
---|
| 1690 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1691 | # -------------------------------------------------------
|
---|
| 1692 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1693 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1694 | ac_fn_c_check_header_compile ()
|
---|
| 1695 | {
|
---|
| 1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1698 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1699 | if eval \${$3+:} false; then :
|
---|
| 1700 | $as_echo_n "(cached) " >&6
|
---|
| 1701 | else
|
---|
| 1702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1703 | /* end confdefs.h. */
|
---|
| 1704 | $4
|
---|
| 1705 | #include <$2>
|
---|
| 1706 | _ACEOF
|
---|
| 1707 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1708 | eval "$3=yes"
|
---|
| 1709 | else
|
---|
| 1710 | eval "$3=no"
|
---|
| 1711 | fi
|
---|
| 1712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1713 | fi
|
---|
| 1714 | eval ac_res=\$$3
|
---|
| 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1716 | $as_echo "$ac_res" >&6; }
|
---|
| 1717 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1718 |
|
---|
| 1719 | } # ac_fn_c_check_header_compile
|
---|
| 1720 |
|
---|
| 1721 | # ac_fn_c_try_link LINENO
|
---|
| 1722 | # -----------------------
|
---|
| 1723 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1724 | ac_fn_c_try_link ()
|
---|
| 1725 | {
|
---|
| 1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1727 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1728 | if { { ac_try="$ac_link"
|
---|
| 1729 | case "(($ac_try" in
|
---|
| 1730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1731 | *) ac_try_echo=$ac_try;;
|
---|
| 1732 | esac
|
---|
| 1733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1734 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1735 | (eval "$ac_link") 2>conftest.err
|
---|
| 1736 | ac_status=$?
|
---|
| 1737 | if test -s conftest.err; then
|
---|
| 1738 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1739 | cat conftest.er1 >&5
|
---|
| 1740 | mv -f conftest.er1 conftest.err
|
---|
| 1741 | fi
|
---|
| 1742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1743 | test $ac_status = 0; } && {
|
---|
| 1744 | test -z "$ac_c_werror_flag" ||
|
---|
| 1745 | test ! -s conftest.err
|
---|
| 1746 | } && test -s conftest$ac_exeext && {
|
---|
| 1747 | test "$cross_compiling" = yes ||
|
---|
| 1748 | $as_test_x conftest$ac_exeext
|
---|
| 1749 | }; then :
|
---|
| 1750 | ac_retval=0
|
---|
| 1751 | else
|
---|
| 1752 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1753 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1754 |
|
---|
| 1755 | ac_retval=1
|
---|
| 1756 | fi
|
---|
| 1757 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1758 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1759 | # interfere with the next link command; also delete a directory that is
|
---|
| 1760 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1761 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1762 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1763 | as_fn_set_status $ac_retval
|
---|
| 1764 |
|
---|
| 1765 | } # ac_fn_c_try_link
|
---|
| 1766 |
|
---|
| 1767 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1768 | # -------------------------------------------
|
---|
| 1769 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1770 | # variable VAR accordingly.
|
---|
| 1771 | ac_fn_c_check_type ()
|
---|
| 1772 | {
|
---|
| 1773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1775 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1776 | if eval \${$3+:} false; then :
|
---|
| 1777 | $as_echo_n "(cached) " >&6
|
---|
| 1778 | else
|
---|
| 1779 | eval "$3=no"
|
---|
| 1780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1781 | /* end confdefs.h. */
|
---|
| 1782 | $4
|
---|
| 1783 | int
|
---|
| 1784 | main ()
|
---|
| 1785 | {
|
---|
| 1786 | if (sizeof ($2))
|
---|
| 1787 | return 0;
|
---|
| 1788 | ;
|
---|
| 1789 | return 0;
|
---|
| 1790 | }
|
---|
| 1791 | _ACEOF
|
---|
| 1792 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1794 | /* end confdefs.h. */
|
---|
| 1795 | $4
|
---|
| 1796 | int
|
---|
| 1797 | main ()
|
---|
| 1798 | {
|
---|
| 1799 | if (sizeof (($2)))
|
---|
| 1800 | return 0;
|
---|
| 1801 | ;
|
---|
| 1802 | return 0;
|
---|
| 1803 | }
|
---|
| 1804 | _ACEOF
|
---|
| 1805 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1806 |
|
---|
| 1807 | else
|
---|
| 1808 | eval "$3=yes"
|
---|
| 1809 | fi
|
---|
| 1810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1811 | fi
|
---|
| 1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1813 | fi
|
---|
| 1814 | eval ac_res=\$$3
|
---|
| 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1816 | $as_echo "$ac_res" >&6; }
|
---|
| 1817 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1818 |
|
---|
| 1819 | } # ac_fn_c_check_type
|
---|
| 1820 |
|
---|
| 1821 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1822 | # ----------------------------------
|
---|
| 1823 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1824 | ac_fn_c_check_func ()
|
---|
| 1825 | {
|
---|
| 1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1828 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1829 | if eval \${$3+:} false; then :
|
---|
| 1830 | $as_echo_n "(cached) " >&6
|
---|
| 1831 | else
|
---|
| 1832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1833 | /* end confdefs.h. */
|
---|
| 1834 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1836 | #define $2 innocuous_$2
|
---|
| 1837 |
|
---|
| 1838 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1839 | which can conflict with char $2 (); below.
|
---|
| 1840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1841 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1842 |
|
---|
| 1843 | #ifdef __STDC__
|
---|
| 1844 | # include <limits.h>
|
---|
| 1845 | #else
|
---|
| 1846 | # include <assert.h>
|
---|
| 1847 | #endif
|
---|
| 1848 |
|
---|
| 1849 | #undef $2
|
---|
| 1850 |
|
---|
| 1851 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1852 | Use char because int might match the return type of a GCC
|
---|
| 1853 | builtin and then its argument prototype would still apply. */
|
---|
| 1854 | #ifdef __cplusplus
|
---|
| 1855 | extern "C"
|
---|
| 1856 | #endif
|
---|
| 1857 | char $2 ();
|
---|
| 1858 | /* The GNU C library defines this for functions which it implements
|
---|
| 1859 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1860 | something starting with __ and the normal name is an alias. */
|
---|
| 1861 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1862 | choke me
|
---|
| 1863 | #endif
|
---|
| 1864 |
|
---|
| 1865 | int
|
---|
| 1866 | main ()
|
---|
| 1867 | {
|
---|
| 1868 | return $2 ();
|
---|
| 1869 | ;
|
---|
| 1870 | return 0;
|
---|
| 1871 | }
|
---|
| 1872 | _ACEOF
|
---|
| 1873 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1874 | eval "$3=yes"
|
---|
| 1875 | else
|
---|
| 1876 | eval "$3=no"
|
---|
| 1877 | fi
|
---|
| 1878 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1879 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1880 | fi
|
---|
| 1881 | eval ac_res=\$$3
|
---|
| 1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1883 | $as_echo "$ac_res" >&6; }
|
---|
| 1884 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1885 |
|
---|
| 1886 | } # ac_fn_c_check_func
|
---|
| 1887 |
|
---|
| 1888 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
| 1889 | # --------------------------------------------
|
---|
| 1890 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
| 1891 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
| 1892 | # computed
|
---|
| 1893 | ac_fn_c_compute_int ()
|
---|
| 1894 | {
|
---|
| 1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1896 | if test "$cross_compiling" = yes; then
|
---|
| 1897 | # Depending upon the size, compute the lo and hi bounds.
|
---|
| 1898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1899 | /* end confdefs.h. */
|
---|
| 1900 | $4
|
---|
| 1901 | int
|
---|
| 1902 | main ()
|
---|
| 1903 | {
|
---|
| 1904 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
| 1905 | test_array [0] = 0
|
---|
| 1906 |
|
---|
| 1907 | ;
|
---|
| 1908 | return 0;
|
---|
| 1909 | }
|
---|
| 1910 | _ACEOF
|
---|
| 1911 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1912 | ac_lo=0 ac_mid=0
|
---|
| 1913 | while :; do
|
---|
| 1914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1915 | /* end confdefs.h. */
|
---|
| 1916 | $4
|
---|
| 1917 | int
|
---|
| 1918 | main ()
|
---|
| 1919 | {
|
---|
| 1920 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
| 1921 | test_array [0] = 0
|
---|
| 1922 |
|
---|
| 1923 | ;
|
---|
| 1924 | return 0;
|
---|
| 1925 | }
|
---|
| 1926 | _ACEOF
|
---|
| 1927 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1928 | ac_hi=$ac_mid; break
|
---|
| 1929 | else
|
---|
| 1930 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
| 1931 | if test $ac_lo -le $ac_mid; then
|
---|
| 1932 | ac_lo= ac_hi=
|
---|
| 1933 | break
|
---|
| 1934 | fi
|
---|
| 1935 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
| 1936 | fi
|
---|
| 1937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1938 | done
|
---|
| 1939 | else
|
---|
| 1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1941 | /* end confdefs.h. */
|
---|
| 1942 | $4
|
---|
| 1943 | int
|
---|
| 1944 | main ()
|
---|
| 1945 | {
|
---|
| 1946 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
| 1947 | test_array [0] = 0
|
---|
| 1948 |
|
---|
| 1949 | ;
|
---|
| 1950 | return 0;
|
---|
| 1951 | }
|
---|
| 1952 | _ACEOF
|
---|
| 1953 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1954 | ac_hi=-1 ac_mid=-1
|
---|
| 1955 | while :; do
|
---|
| 1956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1957 | /* end confdefs.h. */
|
---|
| 1958 | $4
|
---|
| 1959 | int
|
---|
| 1960 | main ()
|
---|
| 1961 | {
|
---|
| 1962 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
| 1963 | test_array [0] = 0
|
---|
| 1964 |
|
---|
| 1965 | ;
|
---|
| 1966 | return 0;
|
---|
| 1967 | }
|
---|
| 1968 | _ACEOF
|
---|
| 1969 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1970 | ac_lo=$ac_mid; break
|
---|
| 1971 | else
|
---|
| 1972 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
| 1973 | if test $ac_mid -le $ac_hi; then
|
---|
| 1974 | ac_lo= ac_hi=
|
---|
| 1975 | break
|
---|
| 1976 | fi
|
---|
| 1977 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
| 1978 | fi
|
---|
| 1979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1980 | done
|
---|
| 1981 | else
|
---|
| 1982 | ac_lo= ac_hi=
|
---|
| 1983 | fi
|
---|
| 1984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1985 | fi
|
---|
| 1986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1987 | # Binary search between lo and hi bounds.
|
---|
| 1988 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
| 1989 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
| 1990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1991 | /* end confdefs.h. */
|
---|
| 1992 | $4
|
---|
| 1993 | int
|
---|
| 1994 | main ()
|
---|
| 1995 | {
|
---|
| 1996 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
| 1997 | test_array [0] = 0
|
---|
| 1998 |
|
---|
| 1999 | ;
|
---|
| 2000 | return 0;
|
---|
| 2001 | }
|
---|
| 2002 | _ACEOF
|
---|
| 2003 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 2004 | ac_hi=$ac_mid
|
---|
| 2005 | else
|
---|
| 2006 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
| 2007 | fi
|
---|
| 2008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2009 | done
|
---|
| 2010 | case $ac_lo in #((
|
---|
| 2011 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
| 2012 | '') ac_retval=1 ;;
|
---|
| 2013 | esac
|
---|
| 2014 | else
|
---|
| 2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2016 | /* end confdefs.h. */
|
---|
| 2017 | $4
|
---|
| 2018 | static long int longval () { return $2; }
|
---|
| 2019 | static unsigned long int ulongval () { return $2; }
|
---|
| 2020 | #include <stdio.h>
|
---|
| 2021 | #include <stdlib.h>
|
---|
| 2022 | int
|
---|
| 2023 | main ()
|
---|
| 2024 | {
|
---|
| 2025 |
|
---|
| 2026 | FILE *f = fopen ("conftest.val", "w");
|
---|
| 2027 | if (! f)
|
---|
| 2028 | return 1;
|
---|
| 2029 | if (($2) < 0)
|
---|
| 2030 | {
|
---|
| 2031 | long int i = longval ();
|
---|
| 2032 | if (i != ($2))
|
---|
| 2033 | return 1;
|
---|
| 2034 | fprintf (f, "%ld", i);
|
---|
| 2035 | }
|
---|
| 2036 | else
|
---|
| 2037 | {
|
---|
| 2038 | unsigned long int i = ulongval ();
|
---|
| 2039 | if (i != ($2))
|
---|
| 2040 | return 1;
|
---|
| 2041 | fprintf (f, "%lu", i);
|
---|
| 2042 | }
|
---|
| 2043 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
| 2044 | on some platforms. */
|
---|
| 2045 | return ferror (f) || fclose (f) != 0;
|
---|
| 2046 |
|
---|
| 2047 | ;
|
---|
| 2048 | return 0;
|
---|
| 2049 | }
|
---|
| 2050 | _ACEOF
|
---|
| 2051 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 2052 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
| 2053 | else
|
---|
| 2054 | ac_retval=1
|
---|
| 2055 | fi
|
---|
| 2056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 2057 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
| 2058 | rm -f conftest.val
|
---|
| 2059 |
|
---|
| 2060 | fi
|
---|
| 2061 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 2062 | as_fn_set_status $ac_retval
|
---|
| 2063 |
|
---|
| 2064 | } # ac_fn_c_compute_int
|
---|
[23356] | 2065 | cat >config.log <<_ACEOF
|
---|
[8063] | 2066 | This file contains any messages produced by compilers while
|
---|
| 2067 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 2068 |
|
---|
| 2069 | It was created by $as_me, which was
|
---|
[25170] | 2070 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
[8063] | 2071 |
|
---|
| 2072 | $ $0 $@
|
---|
| 2073 |
|
---|
[10192] | 2074 | _ACEOF
|
---|
[23356] | 2075 | exec 5>>config.log
|
---|
[8063] | 2076 | {
|
---|
| 2077 | cat <<_ASUNAME
|
---|
[10192] | 2078 | ## --------- ##
|
---|
| 2079 | ## Platform. ##
|
---|
| 2080 | ## --------- ##
|
---|
[8063] | 2081 |
|
---|
| 2082 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 2083 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 2084 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 2085 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 2086 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 2087 |
|
---|
| 2088 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 2089 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 2090 |
|
---|
| 2091 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 2092 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 2093 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[23356] | 2094 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[8063] | 2095 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 2096 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 2097 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 2098 |
|
---|
[10192] | 2099 | _ASUNAME
|
---|
[8063] | 2100 |
|
---|
[10192] | 2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2102 | for as_dir in $PATH
|
---|
| 2103 | do
|
---|
| 2104 | IFS=$as_save_IFS
|
---|
| 2105 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 2106 | $as_echo "PATH: $as_dir"
|
---|
| 2107 | done
|
---|
[23356] | 2108 | IFS=$as_save_IFS
|
---|
[10192] | 2109 |
|
---|
[8063] | 2110 | } >&5
|
---|
| 2111 |
|
---|
[10192] | 2112 | cat >&5 <<_ACEOF
|
---|
[8063] | 2113 |
|
---|
| 2114 |
|
---|
[10192] | 2115 | ## ----------- ##
|
---|
| 2116 | ## Core tests. ##
|
---|
| 2117 | ## ----------- ##
|
---|
| 2118 |
|
---|
| 2119 | _ACEOF
|
---|
| 2120 |
|
---|
| 2121 |
|
---|
[8063] | 2122 | # Keep a trace of the command line.
|
---|
| 2123 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10192] | 2124 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[8063] | 2125 | # Also quote any args containing shell meta-characters.
|
---|
[10192] | 2126 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[8063] | 2127 | ac_configure_args=
|
---|
[10192] | 2128 | ac_configure_args0=
|
---|
| 2129 | ac_configure_args1=
|
---|
| 2130 | ac_must_keep_next=false
|
---|
| 2131 | for ac_pass in 1 2
|
---|
[8063] | 2132 | do
|
---|
[10192] | 2133 | for ac_arg
|
---|
| 2134 | do
|
---|
| 2135 | case $ac_arg in
|
---|
| 2136 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 2137 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 2138 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 2139 | continue ;;
|
---|
[23356] | 2140 | *\'*)
|
---|
| 2141 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10192] | 2142 | esac
|
---|
| 2143 | case $ac_pass in
|
---|
[25170] | 2144 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
[10192] | 2145 | 2)
|
---|
[25170] | 2146 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
[10192] | 2147 | if test $ac_must_keep_next = true; then
|
---|
| 2148 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 2149 | else
|
---|
| 2150 | case $ac_arg in
|
---|
| 2151 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 2152 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 2153 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 2154 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 2155 | case "$ac_configure_args0 " in
|
---|
| 2156 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 2157 | esac
|
---|
| 2158 | ;;
|
---|
| 2159 | -* ) ac_must_keep_next=true ;;
|
---|
| 2160 | esac
|
---|
| 2161 | fi
|
---|
[25170] | 2162 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
[10192] | 2163 | ;;
|
---|
| 2164 | esac
|
---|
| 2165 | done
|
---|
[8063] | 2166 | done
|
---|
[25170] | 2167 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 2168 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
[8063] | 2169 |
|
---|
| 2170 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 2171 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 2172 | # would cause problems or look ugly.
|
---|
[23356] | 2173 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 2174 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[8063] | 2175 | trap 'exit_status=$?
|
---|
| 2176 | # Save into config.log some information that might help in debugging.
|
---|
[10192] | 2177 | {
|
---|
| 2178 | echo
|
---|
| 2179 |
|
---|
[25170] | 2180 | $as_echo "## ---------------- ##
|
---|
[10192] | 2181 | ## Cache variables. ##
|
---|
[25170] | 2182 | ## ---------------- ##"
|
---|
[10192] | 2183 | echo
|
---|
| 2184 | # The following way of writing the cache mishandles newlines in values,
|
---|
[23356] | 2185 | (
|
---|
| 2186 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 2187 | eval ac_val=\$$ac_var
|
---|
| 2188 | case $ac_val in #(
|
---|
| 2189 | *${as_nl}*)
|
---|
| 2190 | case $ac_var in #(
|
---|
[25170] | 2191 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
[23356] | 2192 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 2193 | esac
|
---|
| 2194 | case $ac_var in #(
|
---|
| 2195 | _ | IFS | as_nl) ;; #(
|
---|
| 2196 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
[25170] | 2197 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
[23356] | 2198 | esac ;;
|
---|
| 2199 | esac
|
---|
| 2200 | done
|
---|
[8063] | 2201 | (set) 2>&1 |
|
---|
[23356] | 2202 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2203 | *${as_nl}ac_space=\ *)
|
---|
[8063] | 2204 | sed -n \
|
---|
[23356] | 2205 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2206 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2207 | ;; #(
|
---|
[8063] | 2208 | *)
|
---|
[23356] | 2209 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8063] | 2210 | ;;
|
---|
[23356] | 2211 | esac |
|
---|
| 2212 | sort
|
---|
| 2213 | )
|
---|
[10192] | 2214 | echo
|
---|
| 2215 |
|
---|
[25170] | 2216 | $as_echo "## ----------------- ##
|
---|
[10192] | 2217 | ## Output variables. ##
|
---|
[25170] | 2218 | ## ----------------- ##"
|
---|
[10192] | 2219 | echo
|
---|
| 2220 | for ac_var in $ac_subst_vars
|
---|
| 2221 | do
|
---|
[23356] | 2222 | eval ac_val=\$$ac_var
|
---|
| 2223 | case $ac_val in
|
---|
| 2224 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2225 | esac
|
---|
| 2226 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10192] | 2227 | done | sort
|
---|
| 2228 | echo
|
---|
| 2229 |
|
---|
| 2230 | if test -n "$ac_subst_files"; then
|
---|
[25170] | 2231 | $as_echo "## ------------------- ##
|
---|
[23356] | 2232 | ## File substitutions. ##
|
---|
[25170] | 2233 | ## ------------------- ##"
|
---|
[10192] | 2234 | echo
|
---|
| 2235 | for ac_var in $ac_subst_files
|
---|
| 2236 | do
|
---|
[23356] | 2237 | eval ac_val=\$$ac_var
|
---|
| 2238 | case $ac_val in
|
---|
| 2239 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2240 | esac
|
---|
| 2241 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10192] | 2242 | done | sort
|
---|
| 2243 | echo
|
---|
| 2244 | fi
|
---|
| 2245 |
|
---|
| 2246 | if test -s confdefs.h; then
|
---|
[25170] | 2247 | $as_echo "## ----------- ##
|
---|
[10192] | 2248 | ## confdefs.h. ##
|
---|
[25170] | 2249 | ## ----------- ##"
|
---|
[10192] | 2250 | echo
|
---|
[23356] | 2251 | cat confdefs.h
|
---|
[10192] | 2252 | echo
|
---|
| 2253 | fi
|
---|
| 2254 | test "$ac_signal" != 0 &&
|
---|
[23356] | 2255 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2256 | $as_echo "$as_me: exit $exit_status"
|
---|
[10192] | 2257 | } >&5
|
---|
[23356] | 2258 | rm -f core *.core core.conftest.* &&
|
---|
| 2259 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8063] | 2260 | exit $exit_status
|
---|
[23356] | 2261 | ' 0
|
---|
[8063] | 2262 | for ac_signal in 1 2 13 15; do
|
---|
[25170] | 2263 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
[8063] | 2264 | done
|
---|
| 2265 | ac_signal=0
|
---|
| 2266 |
|
---|
| 2267 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[23356] | 2268 | rm -f -r conftest* confdefs.h
|
---|
[8063] | 2269 |
|
---|
[25170] | 2270 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2271 |
|
---|
[10192] | 2272 | # Predefined preprocessor variables.
|
---|
| 2273 |
|
---|
| 2274 | cat >>confdefs.h <<_ACEOF
|
---|
| 2275 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2276 | _ACEOF
|
---|
| 2277 |
|
---|
| 2278 | cat >>confdefs.h <<_ACEOF
|
---|
| 2279 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2280 | _ACEOF
|
---|
| 2281 |
|
---|
| 2282 | cat >>confdefs.h <<_ACEOF
|
---|
| 2283 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2284 | _ACEOF
|
---|
| 2285 |
|
---|
| 2286 | cat >>confdefs.h <<_ACEOF
|
---|
| 2287 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2288 | _ACEOF
|
---|
| 2289 |
|
---|
| 2290 | cat >>confdefs.h <<_ACEOF
|
---|
| 2291 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2292 | _ACEOF
|
---|
| 2293 |
|
---|
[25170] | 2294 | cat >>confdefs.h <<_ACEOF
|
---|
| 2295 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2296 | _ACEOF
|
---|
[10192] | 2297 |
|
---|
[25170] | 2298 |
|
---|
[8063] | 2299 | # Let the site file select an alternate cache file if it wants to.
|
---|
[23356] | 2300 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2301 | ac_site_file1=NONE
|
---|
| 2302 | ac_site_file2=NONE
|
---|
| 2303 | if test -n "$CONFIG_SITE"; then
|
---|
[25170] | 2304 | # We do not want a PATH search for config.site.
|
---|
| 2305 | case $CONFIG_SITE in #((
|
---|
| 2306 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2307 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
| 2308 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2309 | esac
|
---|
[23356] | 2310 | elif test "x$prefix" != xNONE; then
|
---|
| 2311 | ac_site_file1=$prefix/share/config.site
|
---|
| 2312 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2313 | else
|
---|
| 2314 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2315 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
[3365] | 2316 | fi
|
---|
[23356] | 2317 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2318 | do
|
---|
| 2319 | test "x$ac_site_file" = xNONE && continue
|
---|
[25170] | 2320 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
[23356] | 2322 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10192] | 2323 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[25170] | 2324 | . "$ac_site_file" \
|
---|
| 2325 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2326 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2327 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
| 2328 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 2329 | fi
|
---|
| 2330 | done
|
---|
| 2331 |
|
---|
| 2332 | if test -r "$cache_file"; then
|
---|
[25170] | 2333 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2334 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2335 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
[23356] | 2337 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[8063] | 2338 | case $cache_file in
|
---|
[23356] | 2339 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2340 | *) . "./$cache_file";;
|
---|
[8063] | 2341 | esac
|
---|
| 2342 | fi
|
---|
[3365] | 2343 | else
|
---|
[25170] | 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
[23356] | 2345 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[8063] | 2346 | >$cache_file
|
---|
[3365] | 2347 | fi
|
---|
| 2348 |
|
---|
[8063] | 2349 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2350 | # value.
|
---|
[10192] | 2351 | ac_cache_corrupted=false
|
---|
[23356] | 2352 | for ac_var in $ac_precious_vars; do
|
---|
[8063] | 2353 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2354 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[23356] | 2355 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2356 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[8063] | 2357 | case $ac_old_set,$ac_new_set in
|
---|
| 2358 | set,)
|
---|
[25170] | 2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
[23356] | 2360 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[10192] | 2361 | ac_cache_corrupted=: ;;
|
---|
[8063] | 2362 | ,set)
|
---|
[25170] | 2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
[23356] | 2364 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[10192] | 2365 | ac_cache_corrupted=: ;;
|
---|
[8063] | 2366 | ,);;
|
---|
| 2367 | *)
|
---|
| 2368 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[23356] | 2369 | # differences in whitespace do not lead to failure.
|
---|
| 2370 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2371 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2372 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
[25170] | 2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
[23356] | 2374 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2375 | ac_cache_corrupted=:
|
---|
| 2376 | else
|
---|
[25170] | 2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
[23356] | 2378 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2379 | eval $ac_var=\$ac_old_val
|
---|
| 2380 | fi
|
---|
[25170] | 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
[23356] | 2382 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
[25170] | 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
[23356] | 2384 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
[8063] | 2385 | fi;;
|
---|
| 2386 | esac
|
---|
[10192] | 2387 | # Pass precious variables to config.status.
|
---|
| 2388 | if test "$ac_new_set" = set; then
|
---|
| 2389 | case $ac_new_val in
|
---|
[23356] | 2390 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10192] | 2391 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2392 | esac
|
---|
| 2393 | case " $ac_configure_args " in
|
---|
| 2394 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[25170] | 2395 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
[10192] | 2396 | esac
|
---|
| 2397 | fi
|
---|
[8063] | 2398 | done
|
---|
[10192] | 2399 | if $ac_cache_corrupted; then
|
---|
[25170] | 2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2401 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
[23356] | 2403 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
[25170] | 2404 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
[8063] | 2405 | fi
|
---|
[25170] | 2406 | ## -------------------- ##
|
---|
| 2407 | ## Main body of script. ##
|
---|
| 2408 | ## -------------------- ##
|
---|
[8063] | 2409 |
|
---|
[22058] | 2410 | ac_ext=c
|
---|
| 2411 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[3365] | 2415 |
|
---|
| 2416 |
|
---|
[23356] | 2417 | ac_config_headers="$ac_config_headers config.h"
|
---|
[3365] | 2418 |
|
---|
[10192] | 2419 |
|
---|
[15560] | 2420 | ac_aux_dir=
|
---|
[23356] | 2421 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
[25148] | 2422 | if test -f "$ac_dir/install-sh"; then
|
---|
| 2423 | ac_aux_dir=$ac_dir
|
---|
| 2424 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2425 | break
|
---|
| 2426 | elif test -f "$ac_dir/install.sh"; then
|
---|
| 2427 | ac_aux_dir=$ac_dir
|
---|
| 2428 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2429 | break
|
---|
| 2430 | elif test -f "$ac_dir/shtool"; then
|
---|
| 2431 | ac_aux_dir=$ac_dir
|
---|
| 2432 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2433 | break
|
---|
| 2434 | fi
|
---|
[15560] | 2435 | done
|
---|
| 2436 | if test -z "$ac_aux_dir"; then
|
---|
[25170] | 2437 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
[15560] | 2438 | fi
|
---|
| 2439 |
|
---|
[23356] | 2440 | # These three variables are undocumented and unsupported,
|
---|
| 2441 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 2442 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 2443 | # whose full name contains unusual characters.
|
---|
| 2444 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 2445 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 2446 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 2447 |
|
---|
| 2448 |
|
---|
[15560] | 2449 | # Make sure we can run config.sub.
|
---|
[23356] | 2450 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
[25170] | 2451 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
[15560] | 2452 |
|
---|
[25170] | 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
[23356] | 2454 | $as_echo_n "checking build system type... " >&6; }
|
---|
[25170] | 2455 | if ${ac_cv_build+:} false; then :
|
---|
[23356] | 2456 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2457 | else
|
---|
[23356] | 2458 | ac_build_alias=$build_alias
|
---|
| 2459 | test "x$ac_build_alias" = x &&
|
---|
| 2460 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 2461 | test "x$ac_build_alias" = x &&
|
---|
[25170] | 2462 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
[23356] | 2463 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
[25170] | 2464 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
[15560] | 2465 |
|
---|
| 2466 | fi
|
---|
[25170] | 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
[23356] | 2468 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 2469 | case $ac_cv_build in
|
---|
| 2470 | *-*-*) ;;
|
---|
[25170] | 2471 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
[23356] | 2472 | esac
|
---|
[15560] | 2473 | build=$ac_cv_build
|
---|
[23356] | 2474 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2475 | set x $ac_cv_build
|
---|
| 2476 | shift
|
---|
| 2477 | build_cpu=$1
|
---|
| 2478 | build_vendor=$2
|
---|
| 2479 | shift; shift
|
---|
| 2480 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2481 | # except with old shells:
|
---|
| 2482 | build_os=$*
|
---|
| 2483 | IFS=$ac_save_IFS
|
---|
| 2484 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2485 |
|
---|
| 2486 |
|
---|
[25170] | 2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
[23356] | 2488 | $as_echo_n "checking host system type... " >&6; }
|
---|
[25170] | 2489 | if ${ac_cv_host+:} false; then :
|
---|
[23356] | 2490 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2491 | else
|
---|
[23356] | 2492 | if test "x$host_alias" = x; then
|
---|
| 2493 | ac_cv_host=$ac_cv_build
|
---|
| 2494 | else
|
---|
| 2495 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
[25170] | 2496 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
[23356] | 2497 | fi
|
---|
[15560] | 2498 |
|
---|
| 2499 | fi
|
---|
[25170] | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
[23356] | 2501 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 2502 | case $ac_cv_host in
|
---|
| 2503 | *-*-*) ;;
|
---|
[25170] | 2504 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
[23356] | 2505 | esac
|
---|
[15560] | 2506 | host=$ac_cv_host
|
---|
[23356] | 2507 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2508 | set x $ac_cv_host
|
---|
| 2509 | shift
|
---|
| 2510 | host_cpu=$1
|
---|
| 2511 | host_vendor=$2
|
---|
| 2512 | shift; shift
|
---|
| 2513 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2514 | # except with old shells:
|
---|
| 2515 | host_os=$*
|
---|
| 2516 | IFS=$ac_save_IFS
|
---|
| 2517 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2518 |
|
---|
| 2519 |
|
---|
[25170] | 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
[23356] | 2521 | $as_echo_n "checking target system type... " >&6; }
|
---|
[25170] | 2522 | if ${ac_cv_target+:} false; then :
|
---|
[23356] | 2523 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2524 | else
|
---|
[23356] | 2525 | if test "x$target_alias" = x; then
|
---|
| 2526 | ac_cv_target=$ac_cv_host
|
---|
| 2527 | else
|
---|
| 2528 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
[25170] | 2529 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
[23356] | 2530 | fi
|
---|
[15560] | 2531 |
|
---|
| 2532 | fi
|
---|
[25170] | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
[23356] | 2534 | $as_echo "$ac_cv_target" >&6; }
|
---|
| 2535 | case $ac_cv_target in
|
---|
| 2536 | *-*-*) ;;
|
---|
[25170] | 2537 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
[23356] | 2538 | esac
|
---|
[15560] | 2539 | target=$ac_cv_target
|
---|
[23356] | 2540 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2541 | set x $ac_cv_target
|
---|
| 2542 | shift
|
---|
| 2543 | target_cpu=$1
|
---|
| 2544 | target_vendor=$2
|
---|
| 2545 | shift; shift
|
---|
| 2546 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2547 | # except with old shells:
|
---|
| 2548 | target_os=$*
|
---|
| 2549 | IFS=$ac_save_IFS
|
---|
| 2550 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2551 |
|
---|
| 2552 |
|
---|
| 2553 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2554 | # will get canonicalized.
|
---|
| 2555 | test -n "$target_alias" &&
|
---|
| 2556 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2557 | NONENONEs,x,x, &&
|
---|
| 2558 | program_prefix=${target_alias}-
|
---|
[25170] | 2559 |
|
---|
[3365] | 2560 | test "$program_prefix" != NONE &&
|
---|
[23356] | 2561 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
[3365] | 2562 | # Use a double $ so make ignores it.
|
---|
| 2563 | test "$program_suffix" != NONE &&
|
---|
[23356] | 2564 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
| 2565 | # Double any \ or $.
|
---|
[10192] | 2566 | # By default was `s,x,x', remove it if useless.
|
---|
[23356] | 2567 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
| 2568 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
[3365] | 2569 |
|
---|
| 2570 |
|
---|
| 2571 | PACKAGE=mgpp
|
---|
| 2572 | VERSION=1.3
|
---|
| 2573 |
|
---|
[10192] | 2574 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 2575 | #define PACKAGE "$PACKAGE"
|
---|
[10192] | 2576 | _ACEOF
|
---|
[3365] | 2577 |
|
---|
[10192] | 2578 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 2579 | #define VERSION "$VERSION"
|
---|
[10192] | 2580 | _ACEOF
|
---|
[3365] | 2581 |
|
---|
[10192] | 2582 |
|
---|
| 2583 |
|
---|
| 2584 |
|
---|
[23356] | 2585 | # Check whether --enable-java was given.
|
---|
[25170] | 2586 | if test "${enable_java+set}" = set; then :
|
---|
[23356] | 2587 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
| 2588 | else
|
---|
| 2589 | ENABLE_JAVA=yes
|
---|
| 2590 | fi
|
---|
[15560] | 2591 |
|
---|
[23356] | 2592 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 2593 | ENABLE_JAVA=1
|
---|
| 2594 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 2595 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 2596 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 2597 | echo "and JAVA respectively"
|
---|
| 2598 | export JAVA_HOME=
|
---|
| 2599 | fi
|
---|
| 2600 | else
|
---|
| 2601 | ENABLE_JAVA=0
|
---|
| 2602 | fi
|
---|
| 2603 |
|
---|
| 2604 |
|
---|
[25170] | 2605 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
| 2606 | ARCH_DEP_FLAGS=
|
---|
| 2607 | fi
|
---|
| 2608 |
|
---|
| 2609 |
|
---|
[23356] | 2610 | # Check whether --enable-accentfold was given.
|
---|
[25170] | 2611 | if test "${enable_accentfold+set}" = set; then :
|
---|
[23356] | 2612 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
[13482] | 2613 | else
|
---|
[22058] | 2614 | ENABLE_ACCENTFOLD=yes
|
---|
[23356] | 2615 | fi
|
---|
| 2616 |
|
---|
[22058] | 2617 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[13482] | 2618 | ENABLE_ACCENTFOLD=1
|
---|
[25170] | 2619 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
[22058] | 2620 |
|
---|
| 2621 | else
|
---|
| 2622 | ENABLE_ACCENTFOLD=0
|
---|
[20844] | 2623 | fi
|
---|
| 2624 |
|
---|
[22058] | 2625 |
|
---|
[13482] | 2626 |
|
---|
[23356] | 2627 | ac_ext=cpp
|
---|
[8063] | 2628 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[23356] | 2632 | if test -z "$CXX"; then
|
---|
| 2633 | if test -n "$CCC"; then
|
---|
| 2634 | CXX=$CCC
|
---|
| 2635 | else
|
---|
| 2636 | if test -n "$ac_tool_prefix"; then
|
---|
| 2637 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8063] | 2638 | do
|
---|
| 2639 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2640 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[25170] | 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2642 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 2643 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
[23356] | 2644 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 2645 | else
|
---|
| 2646 | if test -n "$CXX"; then
|
---|
| 2647 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2648 | else
|
---|
[10192] | 2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2650 | for as_dir in $PATH
|
---|
| 2651 | do
|
---|
| 2652 | IFS=$as_save_IFS
|
---|
| 2653 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 2654 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 2655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 2656 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[25170] | 2657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 2658 | break 2
|
---|
| 2659 | fi
|
---|
[8063] | 2660 | done
|
---|
[25170] | 2661 | done
|
---|
[23356] | 2662 | IFS=$as_save_IFS
|
---|
[3365] | 2663 |
|
---|
[8063] | 2664 | fi
|
---|
| 2665 | fi
|
---|
| 2666 | CXX=$ac_cv_prog_CXX
|
---|
| 2667 | if test -n "$CXX"; then
|
---|
[25170] | 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
[23356] | 2669 | $as_echo "$CXX" >&6; }
|
---|
[8063] | 2670 | else
|
---|
[25170] | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2672 | $as_echo "no" >&6; }
|
---|
[8063] | 2673 | fi
|
---|
[3365] | 2674 |
|
---|
[23356] | 2675 |
|
---|
[8063] | 2676 | test -n "$CXX" && break
|
---|
| 2677 | done
|
---|
| 2678 | fi
|
---|
| 2679 | if test -z "$CXX"; then
|
---|
| 2680 | ac_ct_CXX=$CXX
|
---|
[23356] | 2681 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[3365] | 2682 | do
|
---|
[8063] | 2683 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 2684 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2686 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 2687 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
[23356] | 2688 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 2689 | else
|
---|
[8063] | 2690 | if test -n "$ac_ct_CXX"; then
|
---|
| 2691 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
[3365] | 2692 | else
|
---|
[10192] | 2693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2694 | for as_dir in $PATH
|
---|
| 2695 | do
|
---|
| 2696 | IFS=$as_save_IFS
|
---|
| 2697 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 2698 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 2699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 2700 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[25170] | 2701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 2702 | break 2
|
---|
| 2703 | fi
|
---|
[8063] | 2704 | done
|
---|
[25170] | 2705 | done
|
---|
[23356] | 2706 | IFS=$as_save_IFS
|
---|
[8063] | 2707 |
|
---|
[3365] | 2708 | fi
|
---|
| 2709 | fi
|
---|
[8063] | 2710 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2711 | if test -n "$ac_ct_CXX"; then
|
---|
[25170] | 2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
[23356] | 2713 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
[3365] | 2714 | else
|
---|
[25170] | 2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2716 | $as_echo "no" >&6; }
|
---|
[3365] | 2717 | fi
|
---|
| 2718 |
|
---|
[23356] | 2719 |
|
---|
[8063] | 2720 | test -n "$ac_ct_CXX" && break
|
---|
[3365] | 2721 | done
|
---|
| 2722 |
|
---|
[23356] | 2723 | if test "x$ac_ct_CXX" = x; then
|
---|
| 2724 | CXX="g++"
|
---|
| 2725 | else
|
---|
| 2726 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2727 | yes:)
|
---|
[25170] | 2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 2729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2730 | ac_tool_warned=yes ;;
|
---|
| 2731 | esac
|
---|
| 2732 | CXX=$ac_ct_CXX
|
---|
| 2733 | fi
|
---|
[8063] | 2734 | fi
|
---|
[3365] | 2735 |
|
---|
[23356] | 2736 | fi
|
---|
| 2737 | fi
|
---|
[10192] | 2738 | # Provide some information about the compiler.
|
---|
[25170] | 2739 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
[23356] | 2740 | set X $ac_compile
|
---|
| 2741 | ac_compiler=$2
|
---|
[25170] | 2742 | for ac_option in --version -v -V -qversion; do
|
---|
| 2743 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
[23356] | 2744 | case "(($ac_try" in
|
---|
| 2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2746 | *) ac_try_echo=$ac_try;;
|
---|
| 2747 | esac
|
---|
[25170] | 2748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2749 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2750 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10192] | 2751 | ac_status=$?
|
---|
[25170] | 2752 | if test -s conftest.err; then
|
---|
| 2753 | sed '10a\
|
---|
| 2754 | ... rest of stderr output deleted ...
|
---|
| 2755 | 10q' conftest.err >conftest.er1
|
---|
| 2756 | cat conftest.er1 >&5
|
---|
| 2757 | fi
|
---|
| 2758 | rm -f conftest.er1 conftest.err
|
---|
| 2759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2760 | test $ac_status = 0; }
|
---|
| 2761 | done
|
---|
[10192] | 2762 |
|
---|
[25170] | 2763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 2764 | /* end confdefs.h. */
|
---|
[3365] | 2765 |
|
---|
[8063] | 2766 | int
|
---|
| 2767 | main ()
|
---|
| 2768 | {
|
---|
[3365] | 2769 |
|
---|
[8063] | 2770 | ;
|
---|
| 2771 | return 0;
|
---|
| 2772 | }
|
---|
| 2773 | _ACEOF
|
---|
| 2774 | ac_clean_files_save=$ac_clean_files
|
---|
[23356] | 2775 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
[8063] | 2776 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10192] | 2777 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[8063] | 2778 | # of exeext.
|
---|
[25170] | 2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
| 2780 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
[23356] | 2781 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[22058] | 2782 |
|
---|
[23356] | 2783 | # The possible output files:
|
---|
| 2784 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 2785 |
|
---|
| 2786 | ac_rmfiles=
|
---|
| 2787 | for ac_file in $ac_files
|
---|
[10192] | 2788 | do
|
---|
[23356] | 2789 | case $ac_file in
|
---|
| 2790 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 2791 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2792 | esac
|
---|
| 2793 | done
|
---|
| 2794 | rm -f $ac_rmfiles
|
---|
| 2795 |
|
---|
[25170] | 2796 | if { { ac_try="$ac_link_default"
|
---|
[23356] | 2797 | case "(($ac_try" in
|
---|
| 2798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2799 | *) ac_try_echo=$ac_try;;
|
---|
| 2800 | esac
|
---|
[25170] | 2801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2802 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2803 | (eval "$ac_link_default") 2>&5
|
---|
| 2804 | ac_status=$?
|
---|
[25170] | 2805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2806 | test $ac_status = 0; }; then :
|
---|
[23356] | 2807 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2808 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2809 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2810 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2811 | # Autoconf.
|
---|
| 2812 | for ac_file in $ac_files ''
|
---|
| 2813 | do
|
---|
[10192] | 2814 | test -f "$ac_file" || continue
|
---|
[8063] | 2815 | case $ac_file in
|
---|
[23356] | 2816 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
[10192] | 2817 | ;;
|
---|
| 2818 | [ab].out )
|
---|
| 2819 | # We found the default executable, but exeext='' is most
|
---|
| 2820 | # certainly right.
|
---|
| 2821 | break;;
|
---|
| 2822 | *.* )
|
---|
[25170] | 2823 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
[23356] | 2824 | then :; else
|
---|
| 2825 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2826 | fi
|
---|
| 2827 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2828 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2829 | # argument, so we may need to know it at that point already.
|
---|
| 2830 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2831 | # actually working.
|
---|
[10192] | 2832 | break;;
|
---|
| 2833 | * )
|
---|
| 2834 | break;;
|
---|
[8063] | 2835 | esac
|
---|
| 2836 | done
|
---|
[23356] | 2837 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2838 |
|
---|
[8063] | 2839 | else
|
---|
[23356] | 2840 | ac_file=''
|
---|
| 2841 | fi
|
---|
[25170] | 2842 | if test -z "$ac_file"; then :
|
---|
| 2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2844 | $as_echo "no" >&6; }
|
---|
| 2845 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2846 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2847 |
|
---|
[25170] | 2848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 2850 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
| 2851 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2852 | else
|
---|
| 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2854 | $as_echo "yes" >&6; }
|
---|
[8063] | 2855 | fi
|
---|
[25170] | 2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
| 2857 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
| 2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 2859 | $as_echo "$ac_file" >&6; }
|
---|
[8063] | 2860 | ac_exeext=$ac_cv_exeext
|
---|
[3365] | 2861 |
|
---|
[23356] | 2862 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
[8063] | 2863 | ac_clean_files=$ac_clean_files_save
|
---|
[25170] | 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
[23356] | 2865 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
[25170] | 2866 | if { { ac_try="$ac_link"
|
---|
[23356] | 2867 | case "(($ac_try" in
|
---|
| 2868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2869 | *) ac_try_echo=$ac_try;;
|
---|
| 2870 | esac
|
---|
[25170] | 2871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2872 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2873 | (eval "$ac_link") 2>&5
|
---|
[8063] | 2874 | ac_status=$?
|
---|
[25170] | 2875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2876 | test $ac_status = 0; }; then :
|
---|
[8063] | 2877 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2878 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2879 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2880 | # `rm'.
|
---|
[10192] | 2881 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2882 | test -f "$ac_file" || continue
|
---|
[8063] | 2883 | case $ac_file in
|
---|
[23356] | 2884 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
[8063] | 2885 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10192] | 2886 | break;;
|
---|
[8063] | 2887 | * ) break;;
|
---|
| 2888 | esac
|
---|
| 2889 | done
|
---|
| 2890 | else
|
---|
[25170] | 2891 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2892 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 2893 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
| 2894 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 2895 | fi
|
---|
[25170] | 2896 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
[23356] | 2898 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
[3365] | 2899 |
|
---|
[8063] | 2900 | rm -f conftest.$ac_ext
|
---|
| 2901 | EXEEXT=$ac_cv_exeext
|
---|
| 2902 | ac_exeext=$EXEEXT
|
---|
[25170] | 2903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2904 | /* end confdefs.h. */
|
---|
| 2905 | #include <stdio.h>
|
---|
| 2906 | int
|
---|
| 2907 | main ()
|
---|
| 2908 | {
|
---|
| 2909 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 2910 | return ferror (f) || fclose (f) != 0;
|
---|
| 2911 |
|
---|
| 2912 | ;
|
---|
| 2913 | return 0;
|
---|
| 2914 | }
|
---|
| 2915 | _ACEOF
|
---|
| 2916 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 2917 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 2918 | # the compiler is broken, or we cross compile.
|
---|
| 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 2920 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 2921 | if test "$cross_compiling" != yes; then
|
---|
| 2922 | { { ac_try="$ac_link"
|
---|
| 2923 | case "(($ac_try" in
|
---|
| 2924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2925 | *) ac_try_echo=$ac_try;;
|
---|
| 2926 | esac
|
---|
| 2927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2928 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2929 | (eval "$ac_link") 2>&5
|
---|
| 2930 | ac_status=$?
|
---|
| 2931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2932 | test $ac_status = 0; }
|
---|
| 2933 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 2934 | { { case "(($ac_try" in
|
---|
| 2935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2936 | *) ac_try_echo=$ac_try;;
|
---|
| 2937 | esac
|
---|
| 2938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2939 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2940 | (eval "$ac_try") 2>&5
|
---|
| 2941 | ac_status=$?
|
---|
| 2942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2943 | test $ac_status = 0; }; }; then
|
---|
| 2944 | cross_compiling=no
|
---|
| 2945 | else
|
---|
| 2946 | if test "$cross_compiling" = maybe; then
|
---|
| 2947 | cross_compiling=yes
|
---|
| 2948 | else
|
---|
| 2949 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2951 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
| 2952 | If you meant to cross compile, use \`--host'.
|
---|
| 2953 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2954 | fi
|
---|
| 2955 | fi
|
---|
| 2956 | fi
|
---|
| 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 2958 | $as_echo "$cross_compiling" >&6; }
|
---|
| 2959 |
|
---|
| 2960 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 2961 | ac_clean_files=$ac_clean_files_save
|
---|
| 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
[23356] | 2963 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
[25170] | 2964 | if ${ac_cv_objext+:} false; then :
|
---|
[23356] | 2965 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 2966 | else
|
---|
[25170] | 2967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 2968 | /* end confdefs.h. */
|
---|
[8063] | 2969 |
|
---|
| 2970 | int
|
---|
| 2971 | main ()
|
---|
| 2972 | {
|
---|
| 2973 |
|
---|
| 2974 | ;
|
---|
| 2975 | return 0;
|
---|
| 2976 | }
|
---|
| 2977 | _ACEOF
|
---|
| 2978 | rm -f conftest.o conftest.obj
|
---|
[25170] | 2979 | if { { ac_try="$ac_compile"
|
---|
[23356] | 2980 | case "(($ac_try" in
|
---|
| 2981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2982 | *) ac_try_echo=$ac_try;;
|
---|
| 2983 | esac
|
---|
[25170] | 2984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2985 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2986 | (eval "$ac_compile") 2>&5
|
---|
[8063] | 2987 | ac_status=$?
|
---|
[25170] | 2988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2989 | test $ac_status = 0; }; then :
|
---|
[23356] | 2990 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 2991 | test -f "$ac_file" || continue;
|
---|
[8063] | 2992 | case $ac_file in
|
---|
[23356] | 2993 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
[8063] | 2994 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2995 | break;;
|
---|
| 2996 | esac
|
---|
| 2997 | done
|
---|
[3365] | 2998 | else
|
---|
[23356] | 2999 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3000 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3001 |
|
---|
[25170] | 3002 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 3003 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 3004 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
| 3005 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 3006 | fi
|
---|
[8063] | 3007 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[3365] | 3008 | fi
|
---|
[25170] | 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
[23356] | 3010 | $as_echo "$ac_cv_objext" >&6; }
|
---|
[8063] | 3011 | OBJEXT=$ac_cv_objext
|
---|
| 3012 | ac_objext=$OBJEXT
|
---|
[25170] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
[23356] | 3014 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
[25170] | 3015 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
[23356] | 3016 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3017 | else
|
---|
[25170] | 3018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3019 | /* end confdefs.h. */
|
---|
[3365] | 3020 |
|
---|
[8063] | 3021 | int
|
---|
| 3022 | main ()
|
---|
| 3023 | {
|
---|
| 3024 | #ifndef __GNUC__
|
---|
| 3025 | choke me
|
---|
| 3026 | #endif
|
---|
[3365] | 3027 |
|
---|
[8063] | 3028 | ;
|
---|
| 3029 | return 0;
|
---|
| 3030 | }
|
---|
| 3031 | _ACEOF
|
---|
[25170] | 3032 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[8063] | 3033 | ac_compiler_gnu=yes
|
---|
[3365] | 3034 | else
|
---|
[25170] | 3035 | ac_compiler_gnu=no
|
---|
[3365] | 3036 | fi
|
---|
[23356] | 3037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 3038 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
[3365] | 3039 |
|
---|
[8063] | 3040 | fi
|
---|
[25170] | 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[23356] | 3042 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 3043 | if test $ac_compiler_gnu = yes; then
|
---|
| 3044 | GXX=yes
|
---|
| 3045 | else
|
---|
| 3046 | GXX=
|
---|
| 3047 | fi
|
---|
[8063] | 3048 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3049 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[25170] | 3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
[23356] | 3051 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
[25170] | 3052 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
[23356] | 3053 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3054 | else
|
---|
[23356] | 3055 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3056 | ac_cxx_werror_flag=yes
|
---|
| 3057 | ac_cv_prog_cxx_g=no
|
---|
| 3058 | CXXFLAGS="-g"
|
---|
[25170] | 3059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3060 | /* end confdefs.h. */
|
---|
[8063] | 3061 |
|
---|
| 3062 | int
|
---|
| 3063 | main ()
|
---|
| 3064 | {
|
---|
| 3065 |
|
---|
| 3066 | ;
|
---|
| 3067 | return 0;
|
---|
| 3068 | }
|
---|
| 3069 | _ACEOF
|
---|
[25170] | 3070 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[3365] | 3071 | ac_cv_prog_cxx_g=yes
|
---|
| 3072 | else
|
---|
[25170] | 3073 | CXXFLAGS=""
|
---|
| 3074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3075 | /* end confdefs.h. */
|
---|
[10192] | 3076 |
|
---|
[8063] | 3077 | int
|
---|
| 3078 | main ()
|
---|
| 3079 | {
|
---|
[23356] | 3080 |
|
---|
[8063] | 3081 | ;
|
---|
| 3082 | return 0;
|
---|
| 3083 | }
|
---|
| 3084 | _ACEOF
|
---|
[25170] | 3085 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3086 |
|
---|
[25148] | 3087 | else
|
---|
[25170] | 3088 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
[23356] | 3089 | CXXFLAGS="-g"
|
---|
[25170] | 3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3091 | /* end confdefs.h. */
|
---|
[10192] | 3092 |
|
---|
[8063] | 3093 | int
|
---|
| 3094 | main ()
|
---|
| 3095 | {
|
---|
[23356] | 3096 |
|
---|
[8063] | 3097 | ;
|
---|
| 3098 | return 0;
|
---|
| 3099 | }
|
---|
| 3100 | _ACEOF
|
---|
[25170] | 3101 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[23356] | 3102 | ac_cv_prog_cxx_g=yes
|
---|
| 3103 | fi
|
---|
| 3104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3105 | fi
|
---|
| 3106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3107 | fi
|
---|
| 3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3109 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3110 | fi
|
---|
[25170] | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
[23356] | 3112 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 3113 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3114 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3115 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3116 | if test "$GXX" = yes; then
|
---|
| 3117 | CXXFLAGS="-g -O2"
|
---|
| 3118 | else
|
---|
| 3119 | CXXFLAGS="-g"
|
---|
| 3120 | fi
|
---|
[8063] | 3121 | else
|
---|
[23356] | 3122 | if test "$GXX" = yes; then
|
---|
| 3123 | CXXFLAGS="-O2"
|
---|
| 3124 | else
|
---|
| 3125 | CXXFLAGS=
|
---|
| 3126 | fi
|
---|
[8063] | 3127 | fi
|
---|
| 3128 | ac_ext=c
|
---|
| 3129 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3133 |
|
---|
[10192] | 3134 | for ac_prog in gawk mawk nawk awk
|
---|
[3365] | 3135 | do
|
---|
[8063] | 3136 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 3137 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3139 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3140 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
[23356] | 3141 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3142 | else
|
---|
| 3143 | if test -n "$AWK"; then
|
---|
| 3144 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3145 | else
|
---|
[10192] | 3146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3147 | for as_dir in $PATH
|
---|
| 3148 | do
|
---|
| 3149 | IFS=$as_save_IFS
|
---|
| 3150 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3151 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3153 | ac_cv_prog_AWK="$ac_prog"
|
---|
[25170] | 3154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3155 | break 2
|
---|
| 3156 | fi
|
---|
[8063] | 3157 | done
|
---|
[25170] | 3158 | done
|
---|
[23356] | 3159 | IFS=$as_save_IFS
|
---|
[8063] | 3160 |
|
---|
[3365] | 3161 | fi
|
---|
| 3162 | fi
|
---|
[8063] | 3163 | AWK=$ac_cv_prog_AWK
|
---|
[3365] | 3164 | if test -n "$AWK"; then
|
---|
[25170] | 3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
[23356] | 3166 | $as_echo "$AWK" >&6; }
|
---|
[3365] | 3167 | else
|
---|
[25170] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3169 | $as_echo "no" >&6; }
|
---|
[3365] | 3170 | fi
|
---|
| 3171 |
|
---|
[23356] | 3172 |
|
---|
[8063] | 3173 | test -n "$AWK" && break
|
---|
[3365] | 3174 | done
|
---|
| 3175 |
|
---|
| 3176 | for ac_prog in 'bison -y' byacc
|
---|
| 3177 | do
|
---|
[8063] | 3178 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 3179 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3181 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3182 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
[23356] | 3183 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3184 | else
|
---|
| 3185 | if test -n "$YACC"; then
|
---|
| 3186 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3187 | else
|
---|
[10192] | 3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3189 | for as_dir in $PATH
|
---|
| 3190 | do
|
---|
| 3191 | IFS=$as_save_IFS
|
---|
| 3192 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3193 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3195 | ac_cv_prog_YACC="$ac_prog"
|
---|
[25170] | 3196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3197 | break 2
|
---|
| 3198 | fi
|
---|
[8063] | 3199 | done
|
---|
[25170] | 3200 | done
|
---|
[23356] | 3201 | IFS=$as_save_IFS
|
---|
[8063] | 3202 |
|
---|
[3365] | 3203 | fi
|
---|
| 3204 | fi
|
---|
[8063] | 3205 | YACC=$ac_cv_prog_YACC
|
---|
[3365] | 3206 | if test -n "$YACC"; then
|
---|
[25170] | 3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
[23356] | 3208 | $as_echo "$YACC" >&6; }
|
---|
[3365] | 3209 | else
|
---|
[25170] | 3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3211 | $as_echo "no" >&6; }
|
---|
[3365] | 3212 | fi
|
---|
| 3213 |
|
---|
[23356] | 3214 |
|
---|
[8063] | 3215 | test -n "$YACC" && break
|
---|
[3365] | 3216 | done
|
---|
| 3217 | test -n "$YACC" || YACC="yacc"
|
---|
| 3218 |
|
---|
[8063] | 3219 | ac_ext=c
|
---|
| 3220 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3224 | if test -n "$ac_tool_prefix"; then
|
---|
| 3225 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 3226 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[25170] | 3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3228 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3229 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3230 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3231 | else
|
---|
| 3232 | if test -n "$CC"; then
|
---|
| 3233 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3234 | else
|
---|
[10192] | 3235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3236 | for as_dir in $PATH
|
---|
| 3237 | do
|
---|
| 3238 | IFS=$as_save_IFS
|
---|
| 3239 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3240 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3242 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[25170] | 3243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3244 | break 2
|
---|
| 3245 | fi
|
---|
[8063] | 3246 | done
|
---|
[25170] | 3247 | done
|
---|
[23356] | 3248 | IFS=$as_save_IFS
|
---|
[8063] | 3249 |
|
---|
| 3250 | fi
|
---|
| 3251 | fi
|
---|
| 3252 | CC=$ac_cv_prog_CC
|
---|
| 3253 | if test -n "$CC"; then
|
---|
[25170] | 3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3255 | $as_echo "$CC" >&6; }
|
---|
[8063] | 3256 | else
|
---|
[25170] | 3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3258 | $as_echo "no" >&6; }
|
---|
[8063] | 3259 | fi
|
---|
| 3260 |
|
---|
[23356] | 3261 |
|
---|
[8063] | 3262 | fi
|
---|
| 3263 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 3264 | ac_ct_CC=$CC
|
---|
| 3265 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[3365] | 3266 | set dummy gcc; ac_word=$2
|
---|
[25170] | 3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3268 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3269 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
[23356] | 3270 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3271 | else
|
---|
[8063] | 3272 | if test -n "$ac_ct_CC"; then
|
---|
| 3273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3274 | else
|
---|
[10192] | 3275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3276 | for as_dir in $PATH
|
---|
| 3277 | do
|
---|
| 3278 | IFS=$as_save_IFS
|
---|
| 3279 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3280 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3282 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[25170] | 3283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3284 | break 2
|
---|
| 3285 | fi
|
---|
[8063] | 3286 | done
|
---|
[25170] | 3287 | done
|
---|
[23356] | 3288 | IFS=$as_save_IFS
|
---|
[8063] | 3289 |
|
---|
| 3290 | fi
|
---|
| 3291 | fi
|
---|
| 3292 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3293 | if test -n "$ac_ct_CC"; then
|
---|
[25170] | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
[23356] | 3295 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8063] | 3296 | else
|
---|
[25170] | 3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3298 | $as_echo "no" >&6; }
|
---|
[8063] | 3299 | fi
|
---|
| 3300 |
|
---|
[23356] | 3301 | if test "x$ac_ct_CC" = x; then
|
---|
| 3302 | CC=""
|
---|
| 3303 | else
|
---|
| 3304 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3305 | yes:)
|
---|
[25170] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3307 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3308 | ac_tool_warned=yes ;;
|
---|
| 3309 | esac
|
---|
| 3310 | CC=$ac_ct_CC
|
---|
| 3311 | fi
|
---|
[8063] | 3312 | else
|
---|
| 3313 | CC="$ac_cv_prog_CC"
|
---|
| 3314 | fi
|
---|
| 3315 |
|
---|
| 3316 | if test -z "$CC"; then
|
---|
[23356] | 3317 | if test -n "$ac_tool_prefix"; then
|
---|
| 3318 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8063] | 3319 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[25170] | 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3321 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3322 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3323 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3324 | else
|
---|
[3365] | 3325 | if test -n "$CC"; then
|
---|
| 3326 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3327 | else
|
---|
[10192] | 3328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3329 | for as_dir in $PATH
|
---|
| 3330 | do
|
---|
| 3331 | IFS=$as_save_IFS
|
---|
| 3332 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3333 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3335 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[25170] | 3336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3337 | break 2
|
---|
| 3338 | fi
|
---|
[8063] | 3339 | done
|
---|
[25170] | 3340 | done
|
---|
[23356] | 3341 | IFS=$as_save_IFS
|
---|
[8063] | 3342 |
|
---|
[3365] | 3343 | fi
|
---|
| 3344 | fi
|
---|
[8063] | 3345 | CC=$ac_cv_prog_CC
|
---|
[3365] | 3346 | if test -n "$CC"; then
|
---|
[25170] | 3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3348 | $as_echo "$CC" >&6; }
|
---|
[3365] | 3349 | else
|
---|
[25170] | 3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3351 | $as_echo "no" >&6; }
|
---|
[3365] | 3352 | fi
|
---|
| 3353 |
|
---|
[23356] | 3354 |
|
---|
[22058] | 3355 | fi
|
---|
[8063] | 3356 | fi
|
---|
[3365] | 3357 | if test -z "$CC"; then
|
---|
| 3358 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 3359 | set dummy cc; ac_word=$2
|
---|
[25170] | 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3361 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3362 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3363 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3364 | else
|
---|
| 3365 | if test -n "$CC"; then
|
---|
| 3366 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3367 | else
|
---|
| 3368 | ac_prog_rejected=no
|
---|
[10192] | 3369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3370 | for as_dir in $PATH
|
---|
| 3371 | do
|
---|
| 3372 | IFS=$as_save_IFS
|
---|
| 3373 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3374 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3376 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 3377 | ac_prog_rejected=yes
|
---|
| 3378 | continue
|
---|
| 3379 | fi
|
---|
| 3380 | ac_cv_prog_CC="cc"
|
---|
[25170] | 3381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3382 | break 2
|
---|
| 3383 | fi
|
---|
[8063] | 3384 | done
|
---|
[25170] | 3385 | done
|
---|
[23356] | 3386 | IFS=$as_save_IFS
|
---|
[8063] | 3387 |
|
---|
[3365] | 3388 | if test $ac_prog_rejected = yes; then
|
---|
| 3389 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 3390 | set dummy $ac_cv_prog_CC
|
---|
| 3391 | shift
|
---|
[8063] | 3392 | if test $# != 0; then
|
---|
[3365] | 3393 | # We chose a different compiler from the bogus one.
|
---|
| 3394 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 3395 | # first if we set CC to just the basename; use the full file name.
|
---|
| 3396 | shift
|
---|
[10192] | 3397 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3365] | 3398 | fi
|
---|
| 3399 | fi
|
---|
| 3400 | fi
|
---|
| 3401 | fi
|
---|
[8063] | 3402 | CC=$ac_cv_prog_CC
|
---|
[3365] | 3403 | if test -n "$CC"; then
|
---|
[25170] | 3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3405 | $as_echo "$CC" >&6; }
|
---|
[3365] | 3406 | else
|
---|
[25170] | 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3408 | $as_echo "no" >&6; }
|
---|
[3365] | 3409 | fi
|
---|
| 3410 |
|
---|
[23356] | 3411 |
|
---|
[8063] | 3412 | fi
|
---|
| 3413 | if test -z "$CC"; then
|
---|
| 3414 | if test -n "$ac_tool_prefix"; then
|
---|
[23356] | 3415 | for ac_prog in cl.exe
|
---|
[8063] | 3416 | do
|
---|
| 3417 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3418 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[25170] | 3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3420 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3421 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3422 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3423 | else
|
---|
| 3424 | if test -n "$CC"; then
|
---|
| 3425 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3426 | else
|
---|
[10192] | 3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3428 | for as_dir in $PATH
|
---|
| 3429 | do
|
---|
| 3430 | IFS=$as_save_IFS
|
---|
| 3431 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3432 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3434 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[25170] | 3435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3436 | break 2
|
---|
| 3437 | fi
|
---|
[8063] | 3438 | done
|
---|
[25170] | 3439 | done
|
---|
[23356] | 3440 | IFS=$as_save_IFS
|
---|
[8063] | 3441 |
|
---|
[3365] | 3442 | fi
|
---|
| 3443 | fi
|
---|
[8063] | 3444 | CC=$ac_cv_prog_CC
|
---|
[3365] | 3445 | if test -n "$CC"; then
|
---|
[25170] | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3447 | $as_echo "$CC" >&6; }
|
---|
[3365] | 3448 | else
|
---|
[25170] | 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3450 | $as_echo "no" >&6; }
|
---|
[3365] | 3451 | fi
|
---|
[8063] | 3452 |
|
---|
[23356] | 3453 |
|
---|
[8063] | 3454 | test -n "$CC" && break
|
---|
| 3455 | done
|
---|
[3365] | 3456 | fi
|
---|
[8063] | 3457 | if test -z "$CC"; then
|
---|
| 3458 | ac_ct_CC=$CC
|
---|
[23356] | 3459 | for ac_prog in cl.exe
|
---|
[8063] | 3460 | do
|
---|
| 3461 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3462 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3464 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3465 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
[23356] | 3466 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3467 | else
|
---|
| 3468 | if test -n "$ac_ct_CC"; then
|
---|
| 3469 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3470 | else
|
---|
[10192] | 3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3472 | for as_dir in $PATH
|
---|
| 3473 | do
|
---|
| 3474 | IFS=$as_save_IFS
|
---|
| 3475 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3476 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3478 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[25170] | 3479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3480 | break 2
|
---|
| 3481 | fi
|
---|
[8063] | 3482 | done
|
---|
[25170] | 3483 | done
|
---|
[23356] | 3484 | IFS=$as_save_IFS
|
---|
[3365] | 3485 |
|
---|
[8063] | 3486 | fi
|
---|
| 3487 | fi
|
---|
| 3488 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3489 | if test -n "$ac_ct_CC"; then
|
---|
[25170] | 3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
[23356] | 3491 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8063] | 3492 | else
|
---|
[25170] | 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3494 | $as_echo "no" >&6; }
|
---|
[8063] | 3495 | fi
|
---|
[3365] | 3496 |
|
---|
[23356] | 3497 |
|
---|
[8063] | 3498 | test -n "$ac_ct_CC" && break
|
---|
| 3499 | done
|
---|
[3365] | 3500 |
|
---|
[23356] | 3501 | if test "x$ac_ct_CC" = x; then
|
---|
| 3502 | CC=""
|
---|
| 3503 | else
|
---|
| 3504 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3505 | yes:)
|
---|
[25170] | 3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3507 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3508 | ac_tool_warned=yes ;;
|
---|
| 3509 | esac
|
---|
| 3510 | CC=$ac_ct_CC
|
---|
| 3511 | fi
|
---|
[3365] | 3512 | fi
|
---|
| 3513 |
|
---|
| 3514 | fi
|
---|
| 3515 |
|
---|
[10192] | 3516 |
|
---|
[25170] | 3517 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 3518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 3519 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
| 3520 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[8063] | 3521 |
|
---|
[10192] | 3522 | # Provide some information about the compiler.
|
---|
[25170] | 3523 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
[23356] | 3524 | set X $ac_compile
|
---|
| 3525 | ac_compiler=$2
|
---|
[25170] | 3526 | for ac_option in --version -v -V -qversion; do
|
---|
| 3527 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
[23356] | 3528 | case "(($ac_try" in
|
---|
| 3529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3530 | *) ac_try_echo=$ac_try;;
|
---|
| 3531 | esac
|
---|
[25170] | 3532 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3533 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3534 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10192] | 3535 | ac_status=$?
|
---|
[25170] | 3536 | if test -s conftest.err; then
|
---|
| 3537 | sed '10a\
|
---|
| 3538 | ... rest of stderr output deleted ...
|
---|
| 3539 | 10q' conftest.err >conftest.er1
|
---|
| 3540 | cat conftest.er1 >&5
|
---|
| 3541 | fi
|
---|
| 3542 | rm -f conftest.er1 conftest.err
|
---|
| 3543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3544 | test $ac_status = 0; }
|
---|
| 3545 | done
|
---|
[10192] | 3546 |
|
---|
[25170] | 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
[23356] | 3548 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
[25170] | 3549 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
[23356] | 3550 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3551 | else
|
---|
[25170] | 3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3553 | /* end confdefs.h. */
|
---|
[8063] | 3554 |
|
---|
| 3555 | int
|
---|
| 3556 | main ()
|
---|
| 3557 | {
|
---|
| 3558 | #ifndef __GNUC__
|
---|
| 3559 | choke me
|
---|
[3365] | 3560 | #endif
|
---|
[8063] | 3561 |
|
---|
| 3562 | ;
|
---|
| 3563 | return 0;
|
---|
| 3564 | }
|
---|
| 3565 | _ACEOF
|
---|
[25170] | 3566 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8063] | 3567 | ac_compiler_gnu=yes
|
---|
[8059] | 3568 | else
|
---|
[25170] | 3569 | ac_compiler_gnu=no
|
---|
[8059] | 3570 | fi
|
---|
[23356] | 3571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 3572 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 3573 |
|
---|
[8059] | 3574 | fi
|
---|
[25170] | 3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[23356] | 3576 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 3577 | if test $ac_compiler_gnu = yes; then
|
---|
| 3578 | GCC=yes
|
---|
| 3579 | else
|
---|
| 3580 | GCC=
|
---|
| 3581 | fi
|
---|
[8063] | 3582 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 3583 | ac_save_CFLAGS=$CFLAGS
|
---|
[25170] | 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
[23356] | 3585 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
[25170] | 3586 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
[23356] | 3587 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3588 | else
|
---|
[23356] | 3589 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 3590 | ac_c_werror_flag=yes
|
---|
| 3591 | ac_cv_prog_cc_g=no
|
---|
| 3592 | CFLAGS="-g"
|
---|
[25170] | 3593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3594 | /* end confdefs.h. */
|
---|
[3365] | 3595 |
|
---|
[8063] | 3596 | int
|
---|
| 3597 | main ()
|
---|
| 3598 | {
|
---|
[8059] | 3599 |
|
---|
[8063] | 3600 | ;
|
---|
| 3601 | return 0;
|
---|
| 3602 | }
|
---|
| 3603 | _ACEOF
|
---|
[25170] | 3604 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 3605 | ac_cv_prog_cc_g=yes
|
---|
| 3606 | else
|
---|
[25170] | 3607 | CFLAGS=""
|
---|
| 3608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3609 | /* end confdefs.h. */
|
---|
[10192] | 3610 |
|
---|
[23356] | 3611 | int
|
---|
| 3612 | main ()
|
---|
| 3613 | {
|
---|
| 3614 |
|
---|
| 3615 | ;
|
---|
| 3616 | return 0;
|
---|
| 3617 | }
|
---|
| 3618 | _ACEOF
|
---|
[25170] | 3619 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3620 |
|
---|
[25148] | 3621 | else
|
---|
[25170] | 3622 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
[23356] | 3623 | CFLAGS="-g"
|
---|
[25170] | 3624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3625 | /* end confdefs.h. */
|
---|
| 3626 |
|
---|
| 3627 | int
|
---|
| 3628 | main ()
|
---|
| 3629 | {
|
---|
| 3630 |
|
---|
| 3631 | ;
|
---|
| 3632 | return 0;
|
---|
| 3633 | }
|
---|
| 3634 | _ACEOF
|
---|
[25170] | 3635 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 3636 | ac_cv_prog_cc_g=yes
|
---|
[3365] | 3637 | fi
|
---|
[23356] | 3638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3639 | fi
|
---|
[23356] | 3640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3641 | fi
|
---|
| 3642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3643 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3644 | fi
|
---|
[25170] | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
[23356] | 3646 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
[3365] | 3647 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8063] | 3648 | CFLAGS=$ac_save_CFLAGS
|
---|
[3365] | 3649 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3650 | if test "$GCC" = yes; then
|
---|
| 3651 | CFLAGS="-g -O2"
|
---|
| 3652 | else
|
---|
| 3653 | CFLAGS="-g"
|
---|
| 3654 | fi
|
---|
| 3655 | else
|
---|
| 3656 | if test "$GCC" = yes; then
|
---|
| 3657 | CFLAGS="-O2"
|
---|
| 3658 | else
|
---|
| 3659 | CFLAGS=
|
---|
| 3660 | fi
|
---|
| 3661 | fi
|
---|
[25170] | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
[23356] | 3663 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
[25170] | 3664 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
[23356] | 3665 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 3666 | else
|
---|
[23356] | 3667 | ac_cv_prog_cc_c89=no
|
---|
[10192] | 3668 | ac_save_CC=$CC
|
---|
[25170] | 3669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3670 | /* end confdefs.h. */
|
---|
| 3671 | #include <stdarg.h>
|
---|
| 3672 | #include <stdio.h>
|
---|
| 3673 | #include <sys/types.h>
|
---|
| 3674 | #include <sys/stat.h>
|
---|
| 3675 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3676 | struct buf { int x; };
|
---|
| 3677 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3678 | static char *e (p, i)
|
---|
| 3679 | char **p;
|
---|
| 3680 | int i;
|
---|
| 3681 | {
|
---|
| 3682 | return p[i];
|
---|
| 3683 | }
|
---|
| 3684 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3685 | {
|
---|
| 3686 | char *s;
|
---|
| 3687 | va_list v;
|
---|
| 3688 | va_start (v,p);
|
---|
| 3689 | s = g (p, va_arg (v,int));
|
---|
| 3690 | va_end (v);
|
---|
| 3691 | return s;
|
---|
| 3692 | }
|
---|
| 3693 |
|
---|
| 3694 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3695 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3696 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[23356] | 3697 | as 'x'. The following induces an error, until -std is added to get
|
---|
[10192] | 3698 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3699 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[23356] | 3700 | that's true only with -std. */
|
---|
[10192] | 3701 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3702 |
|
---|
[23356] | 3703 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3704 | inside strings and character constants. */
|
---|
| 3705 | #define FOO(x) 'x'
|
---|
| 3706 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3707 |
|
---|
[10192] | 3708 | int test (int i, double x);
|
---|
| 3709 | struct s1 {int (*f) (int a);};
|
---|
| 3710 | struct s2 {int (*f) (double a);};
|
---|
| 3711 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3712 | int argc;
|
---|
| 3713 | char **argv;
|
---|
| 3714 | int
|
---|
| 3715 | main ()
|
---|
| 3716 | {
|
---|
| 3717 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3718 | ;
|
---|
| 3719 | return 0;
|
---|
| 3720 | }
|
---|
| 3721 | _ACEOF
|
---|
[23356] | 3722 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3723 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[10192] | 3724 | do
|
---|
| 3725 | CC="$ac_save_CC $ac_arg"
|
---|
[25170] | 3726 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 3727 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[10192] | 3728 | fi
|
---|
[23356] | 3729 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3730 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[10192] | 3731 | done
|
---|
[23356] | 3732 | rm -f conftest.$ac_ext
|
---|
[10192] | 3733 | CC=$ac_save_CC
|
---|
| 3734 |
|
---|
| 3735 | fi
|
---|
[23356] | 3736 | # AC_CACHE_VAL
|
---|
| 3737 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3738 | x)
|
---|
[25170] | 3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
[23356] | 3740 | $as_echo "none needed" >&6; } ;;
|
---|
| 3741 | xno)
|
---|
[25170] | 3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
[23356] | 3743 | $as_echo "unsupported" >&6; } ;;
|
---|
[10192] | 3744 | *)
|
---|
[23356] | 3745 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
[25170] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
[23356] | 3747 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[10192] | 3748 | esac
|
---|
[25170] | 3749 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
[10192] | 3750 |
|
---|
[25170] | 3751 | fi
|
---|
[22058] | 3752 |
|
---|
[8063] | 3753 | ac_ext=c
|
---|
| 3754 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3758 |
|
---|
[3365] | 3759 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3760 | # so one script is as good as another. But avoid the broken or
|
---|
| 3761 | # incompatible versions:
|
---|
| 3762 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3763 | # SunOS /usr/etc/install
|
---|
| 3764 | # IRIX /sbin/install
|
---|
| 3765 | # AIX /bin/install
|
---|
[8063] | 3766 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[3365] | 3767 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3768 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3769 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10192] | 3770 | # OS/2's system install, which has a completely different semantic
|
---|
[3365] | 3771 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[23356] | 3772 | # Reject install programs that cannot install multiple files.
|
---|
[25170] | 3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
[23356] | 3774 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
[3365] | 3775 | if test -z "$INSTALL"; then
|
---|
[25170] | 3776 | if ${ac_cv_path_install+:} false; then :
|
---|
[23356] | 3777 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3778 | else
|
---|
[10192] | 3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3780 | for as_dir in $PATH
|
---|
| 3781 | do
|
---|
| 3782 | IFS=$as_save_IFS
|
---|
| 3783 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3784 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3785 | case $as_dir/ in #((
|
---|
| 3786 | ./ | .// | /[cC]/* | \
|
---|
[10192] | 3787 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[25170] | 3788 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
[10192] | 3789 | /usr/ucb/* ) ;;
|
---|
| 3790 | *)
|
---|
| 3791 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3792 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3793 | # by default.
|
---|
| 3794 | for ac_prog in ginstall scoinst install; do
|
---|
| 3795 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3796 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[3365] | 3797 | if test $ac_prog = install &&
|
---|
[10192] | 3798 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3365] | 3799 | # AIX install. It has an incompatible calling convention.
|
---|
| 3800 | :
|
---|
[8063] | 3801 | elif test $ac_prog = install &&
|
---|
[10192] | 3802 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[8063] | 3803 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3804 | :
|
---|
[3365] | 3805 | else
|
---|
[23356] | 3806 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3807 | echo one > conftest.one
|
---|
| 3808 | echo two > conftest.two
|
---|
| 3809 | mkdir conftest.dir
|
---|
| 3810 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 3811 | test -s conftest.one && test -s conftest.two &&
|
---|
| 3812 | test -s conftest.dir/conftest.one &&
|
---|
| 3813 | test -s conftest.dir/conftest.two
|
---|
| 3814 | then
|
---|
| 3815 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3816 | break 3
|
---|
| 3817 | fi
|
---|
[3365] | 3818 | fi
|
---|
| 3819 | fi
|
---|
| 3820 | done
|
---|
[10192] | 3821 | done
|
---|
| 3822 | ;;
|
---|
| 3823 | esac
|
---|
[3365] | 3824 |
|
---|
[25170] | 3825 | done
|
---|
[23356] | 3826 | IFS=$as_save_IFS
|
---|
[10192] | 3827 |
|
---|
[23356] | 3828 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3829 |
|
---|
[3365] | 3830 | fi
|
---|
| 3831 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8063] | 3832 | INSTALL=$ac_cv_path_install
|
---|
[3365] | 3833 | else
|
---|
[23356] | 3834 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3835 | # value for INSTALL within a source directory, because that will
|
---|
[3365] | 3836 | # break other packages using the cache if that directory is
|
---|
[23356] | 3837 | # removed, or if the value is a relative name.
|
---|
[8063] | 3838 | INSTALL=$ac_install_sh
|
---|
[3365] | 3839 | fi
|
---|
| 3840 | fi
|
---|
[25170] | 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
[23356] | 3842 | $as_echo "$INSTALL" >&6; }
|
---|
[3365] | 3843 |
|
---|
| 3844 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3845 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3846 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3847 |
|
---|
[8063] | 3848 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[3365] | 3849 |
|
---|
| 3850 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3851 |
|
---|
[25170] | 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
[23356] | 3853 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
[8063] | 3854 | LN_S=$as_ln_s
|
---|
| 3855 | if test "$LN_S" = "ln -s"; then
|
---|
[25170] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 3857 | $as_echo "yes" >&6; }
|
---|
[3365] | 3858 | else
|
---|
[25170] | 3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
[23356] | 3860 | $as_echo "no, using $LN_S" >&6; }
|
---|
[3365] | 3861 | fi
|
---|
| 3862 |
|
---|
[25170] | 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
[23356] | 3864 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 3865 | set x ${MAKE-make}
|
---|
| 3866 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
[25170] | 3867 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
[23356] | 3868 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3869 | else
|
---|
[10192] | 3870 | cat >conftest.make <<\_ACEOF
|
---|
[23356] | 3871 | SHELL = /bin/sh
|
---|
[3365] | 3872 | all:
|
---|
[23356] | 3873 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[10192] | 3874 | _ACEOF
|
---|
[25170] | 3875 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
[23356] | 3876 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3877 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3878 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3879 | *)
|
---|
| 3880 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3881 | esac
|
---|
[8063] | 3882 | rm -f conftest.make
|
---|
[3365] | 3883 | fi
|
---|
[23356] | 3884 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
[25170] | 3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 3886 | $as_echo "yes" >&6; }
|
---|
[3365] | 3887 | SET_MAKE=
|
---|
| 3888 | else
|
---|
[25170] | 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3890 | $as_echo "no" >&6; }
|
---|
[3365] | 3891 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3892 | fi
|
---|
| 3893 |
|
---|
[8063] | 3894 | if test -n "$ac_tool_prefix"; then
|
---|
| 3895 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3896 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[25170] | 3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3898 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3899 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
[23356] | 3900 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3901 | else
|
---|
| 3902 | if test -n "$RANLIB"; then
|
---|
| 3903 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3904 | else
|
---|
[10192] | 3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3906 | for as_dir in $PATH
|
---|
| 3907 | do
|
---|
| 3908 | IFS=$as_save_IFS
|
---|
| 3909 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3910 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3912 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[25170] | 3913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3914 | break 2
|
---|
| 3915 | fi
|
---|
[8063] | 3916 | done
|
---|
[25170] | 3917 | done
|
---|
[23356] | 3918 | IFS=$as_save_IFS
|
---|
[8063] | 3919 |
|
---|
[3365] | 3920 | fi
|
---|
| 3921 | fi
|
---|
[8063] | 3922 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[3365] | 3923 | if test -n "$RANLIB"; then
|
---|
[25170] | 3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
[23356] | 3925 | $as_echo "$RANLIB" >&6; }
|
---|
[3365] | 3926 | else
|
---|
[25170] | 3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3928 | $as_echo "no" >&6; }
|
---|
[3365] | 3929 | fi
|
---|
| 3930 |
|
---|
[23356] | 3931 |
|
---|
[8063] | 3932 | fi
|
---|
| 3933 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3934 | ac_ct_RANLIB=$RANLIB
|
---|
| 3935 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3936 | set dummy ranlib; ac_word=$2
|
---|
[25170] | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3938 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3939 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
[23356] | 3940 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3941 | else
|
---|
| 3942 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3943 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3944 | else
|
---|
[10192] | 3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3946 | for as_dir in $PATH
|
---|
| 3947 | do
|
---|
| 3948 | IFS=$as_save_IFS
|
---|
| 3949 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3950 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10192] | 3952 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[25170] | 3953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3954 | break 2
|
---|
| 3955 | fi
|
---|
[8063] | 3956 | done
|
---|
[25170] | 3957 | done
|
---|
[23356] | 3958 | IFS=$as_save_IFS
|
---|
[3365] | 3959 |
|
---|
[8063] | 3960 | fi
|
---|
| 3961 | fi
|
---|
| 3962 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3963 | if test -n "$ac_ct_RANLIB"; then
|
---|
[25170] | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
[23356] | 3965 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
[8063] | 3966 | else
|
---|
[25170] | 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3968 | $as_echo "no" >&6; }
|
---|
[8063] | 3969 | fi
|
---|
| 3970 |
|
---|
[23356] | 3971 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 3972 | RANLIB=":"
|
---|
| 3973 | else
|
---|
| 3974 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3975 | yes:)
|
---|
[25170] | 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3978 | ac_tool_warned=yes ;;
|
---|
| 3979 | esac
|
---|
| 3980 | RANLIB=$ac_ct_RANLIB
|
---|
| 3981 | fi
|
---|
[8063] | 3982 | else
|
---|
| 3983 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3984 | fi
|
---|
| 3985 |
|
---|
[23356] | 3986 | if test $ENABLE_JAVA = "1" ; then
|
---|
[10192] | 3987 |
|
---|
| 3988 |
|
---|
[23356] | 3989 | if test "x$JAVA" = x ; then
|
---|
| 3990 | if test x$JAVAPREFIX = x; then
|
---|
| 3991 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3992 | do
|
---|
| 3993 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3994 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3996 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3997 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
[23356] | 3998 | $as_echo_n "(cached) " >&6
|
---|
| 3999 | else
|
---|
| 4000 | if test -n "$JAVA"; then
|
---|
| 4001 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 4002 | else
|
---|
| 4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4004 | for as_dir in $PATH
|
---|
| 4005 | do
|
---|
| 4006 | IFS=$as_save_IFS
|
---|
| 4007 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4008 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4010 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[25170] | 4011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4012 | break 2
|
---|
| 4013 | fi
|
---|
| 4014 | done
|
---|
[25170] | 4015 | done
|
---|
[23356] | 4016 | IFS=$as_save_IFS
|
---|
| 4017 |
|
---|
| 4018 | fi
|
---|
| 4019 | fi
|
---|
| 4020 | JAVA=$ac_cv_prog_JAVA
|
---|
| 4021 | if test -n "$JAVA"; then
|
---|
[25170] | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
[23356] | 4023 | $as_echo "$JAVA" >&6; }
|
---|
| 4024 | else
|
---|
[25170] | 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4026 | $as_echo "no" >&6; }
|
---|
| 4027 | fi
|
---|
| 4028 |
|
---|
| 4029 |
|
---|
| 4030 | test -n "$JAVA" && break
|
---|
| 4031 | done
|
---|
| 4032 |
|
---|
| 4033 | else
|
---|
| 4034 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 4035 | do
|
---|
| 4036 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4037 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4039 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4040 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
[23356] | 4041 | $as_echo_n "(cached) " >&6
|
---|
| 4042 | else
|
---|
| 4043 | if test -n "$JAVA"; then
|
---|
| 4044 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 4045 | else
|
---|
| 4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4047 | for as_dir in $PATH
|
---|
| 4048 | do
|
---|
| 4049 | IFS=$as_save_IFS
|
---|
| 4050 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4051 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4053 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[25170] | 4054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4055 | break 2
|
---|
| 4056 | fi
|
---|
| 4057 | done
|
---|
[25170] | 4058 | done
|
---|
[23356] | 4059 | IFS=$as_save_IFS
|
---|
| 4060 |
|
---|
| 4061 | fi
|
---|
| 4062 | fi
|
---|
| 4063 | JAVA=$ac_cv_prog_JAVA
|
---|
| 4064 | if test -n "$JAVA"; then
|
---|
[25170] | 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
[23356] | 4066 | $as_echo "$JAVA" >&6; }
|
---|
| 4067 | else
|
---|
[25170] | 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4069 | $as_echo "no" >&6; }
|
---|
| 4070 | fi
|
---|
| 4071 |
|
---|
| 4072 |
|
---|
| 4073 | test -n "$JAVA" && break
|
---|
| 4074 | done
|
---|
| 4075 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
| 4076 |
|
---|
| 4077 | fi
|
---|
[25170] | 4078 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4079 | fi
|
---|
| 4080 |
|
---|
| 4081 |
|
---|
| 4082 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
| 4083 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
[25170] | 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4085 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4086 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
[23356] | 4087 | $as_echo_n "(cached) " >&6
|
---|
| 4088 | else
|
---|
| 4089 | if test -n "$uudecode"; then
|
---|
| 4090 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
| 4091 | else
|
---|
| 4092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4093 | for as_dir in $PATH
|
---|
| 4094 | do
|
---|
| 4095 | IFS=$as_save_IFS
|
---|
| 4096 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4097 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4099 | ac_cv_prog_uudecode="yes"
|
---|
[25170] | 4100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4101 | break 2
|
---|
| 4102 | fi
|
---|
| 4103 | done
|
---|
[25170] | 4104 | done
|
---|
[23356] | 4105 | IFS=$as_save_IFS
|
---|
| 4106 |
|
---|
| 4107 | fi
|
---|
| 4108 | fi
|
---|
| 4109 | uudecode=$ac_cv_prog_uudecode
|
---|
| 4110 | if test -n "$uudecode"; then
|
---|
[25170] | 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
[23356] | 4112 | $as_echo "$uudecode" >&6; }
|
---|
| 4113 | else
|
---|
[25170] | 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4115 | $as_echo "no" >&6; }
|
---|
| 4116 | fi
|
---|
| 4117 |
|
---|
| 4118 |
|
---|
| 4119 | if test x$uudecode = xyes; then
|
---|
[25170] | 4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
[23356] | 4121 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
[25170] | 4122 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
[23356] | 4123 | $as_echo_n "(cached) " >&6
|
---|
| 4124 | else
|
---|
| 4125 |
|
---|
| 4126 | cat << \EOF > Test.uue
|
---|
| 4127 | begin-base64 644 Test.class
|
---|
| 4128 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
| 4129 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
| 4130 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
| 4131 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
| 4132 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
| 4133 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
| 4134 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
| 4135 | ====
|
---|
| 4136 | EOF
|
---|
| 4137 | if uudecode$EXEEXT Test.uue; then
|
---|
| 4138 | ac_cv_prog_uudecode_base64=yes
|
---|
| 4139 | else
|
---|
[25170] | 4140 | echo "configure: 4140: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
[23356] | 4141 | echo "configure: failed file was:" >&5
|
---|
| 4142 | cat Test.uue >&5
|
---|
| 4143 | ac_cv_prog_uudecode_base64=no
|
---|
| 4144 | fi
|
---|
| 4145 | rm -f Test.uue
|
---|
| 4146 | fi
|
---|
[25170] | 4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
[23356] | 4148 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
| 4149 | fi
|
---|
| 4150 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 4151 | rm -f Test.class
|
---|
[25170] | 4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
[23356] | 4153 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
| 4154 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
[25170] | 4155 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
[23356] | 4156 | fi
|
---|
| 4157 | if test x$ac_cv_prog_javac_works = x; then
|
---|
| 4158 |
|
---|
| 4159 | if test "x$JAVAC" = x ; then
|
---|
| 4160 | if test "x$JAVAPREFIX" = x; then
|
---|
| 4161 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4162 | do
|
---|
| 4163 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4164 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4166 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4167 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4168 | $as_echo_n "(cached) " >&6
|
---|
| 4169 | else
|
---|
| 4170 | if test -n "$JAVAC"; then
|
---|
| 4171 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4172 | else
|
---|
| 4173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4174 | for as_dir in $PATH
|
---|
| 4175 | do
|
---|
| 4176 | IFS=$as_save_IFS
|
---|
| 4177 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4178 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4180 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4182 | break 2
|
---|
| 4183 | fi
|
---|
| 4184 | done
|
---|
[25170] | 4185 | done
|
---|
[23356] | 4186 | IFS=$as_save_IFS
|
---|
| 4187 |
|
---|
| 4188 | fi
|
---|
| 4189 | fi
|
---|
| 4190 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4191 | if test -n "$JAVAC"; then
|
---|
[25170] | 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4193 | $as_echo "$JAVAC" >&6; }
|
---|
| 4194 | else
|
---|
[25170] | 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4196 | $as_echo "no" >&6; }
|
---|
| 4197 | fi
|
---|
| 4198 |
|
---|
| 4199 |
|
---|
| 4200 | test -n "$JAVAC" && break
|
---|
| 4201 | done
|
---|
| 4202 |
|
---|
| 4203 | else
|
---|
| 4204 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4205 | do
|
---|
| 4206 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4207 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4209 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4210 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4211 | $as_echo_n "(cached) " >&6
|
---|
| 4212 | else
|
---|
| 4213 | if test -n "$JAVAC"; then
|
---|
| 4214 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4215 | else
|
---|
| 4216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4217 | for as_dir in $PATH
|
---|
| 4218 | do
|
---|
| 4219 | IFS=$as_save_IFS
|
---|
| 4220 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4221 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4223 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4225 | break 2
|
---|
| 4226 | fi
|
---|
| 4227 | done
|
---|
[25170] | 4228 | done
|
---|
[23356] | 4229 | IFS=$as_save_IFS
|
---|
| 4230 |
|
---|
| 4231 | fi
|
---|
| 4232 | fi
|
---|
| 4233 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4234 | if test -n "$JAVAC"; then
|
---|
[25170] | 4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4236 | $as_echo "$JAVAC" >&6; }
|
---|
| 4237 | else
|
---|
[25170] | 4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4239 | $as_echo "no" >&6; }
|
---|
| 4240 | fi
|
---|
| 4241 |
|
---|
| 4242 |
|
---|
| 4243 | test -n "$JAVAC" && break
|
---|
| 4244 | done
|
---|
| 4245 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4246 |
|
---|
| 4247 | fi
|
---|
[25170] | 4248 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4249 | else
|
---|
| 4250 | echo "Checking for javac... $JAVAC"
|
---|
| 4251 | fi
|
---|
| 4252 |
|
---|
| 4253 |
|
---|
[25170] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
[23356] | 4255 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
[25170] | 4256 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
[23356] | 4257 | $as_echo_n "(cached) " >&6
|
---|
| 4258 | else
|
---|
| 4259 |
|
---|
| 4260 | JAVA_TEST=Test.java
|
---|
| 4261 | CLASS_TEST=Test.class
|
---|
| 4262 | cat << \EOF > $JAVA_TEST
|
---|
[25170] | 4263 | /* #line 4263 "configure" */
|
---|
[23356] | 4264 | public class Test {
|
---|
| 4265 | }
|
---|
| 4266 | EOF
|
---|
| 4267 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25170] | 4268 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4269 | (eval $ac_try) 2>&5
|
---|
| 4270 | ac_status=$?
|
---|
[25170] | 4271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4272 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4273 | ac_cv_prog_javac_works=yes
|
---|
| 4274 | else
|
---|
[25170] | 4275 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4276 | echo "configure: failed program was:" >&5
|
---|
| 4277 | cat $JAVA_TEST >&5
|
---|
| 4278 | fi
|
---|
| 4279 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4280 |
|
---|
| 4281 | fi
|
---|
[25170] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
[23356] | 4283 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4284 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4285 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4286 | fi
|
---|
| 4287 |
|
---|
| 4288 |
|
---|
| 4289 |
|
---|
| 4290 | fi
|
---|
| 4291 | fi
|
---|
[25170] | 4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
[23356] | 4293 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
[25170] | 4294 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
[23356] | 4295 | $as_echo_n "(cached) " >&6
|
---|
| 4296 | else
|
---|
| 4297 |
|
---|
| 4298 | JAVA_TEST=Test.java
|
---|
| 4299 | CLASS_TEST=Test.class
|
---|
| 4300 | TEST=Test
|
---|
| 4301 | cat << \EOF > $JAVA_TEST
|
---|
[25170] | 4302 | /* [#]line 4302 "configure" */
|
---|
[23356] | 4303 | public class Test {
|
---|
| 4304 | public static void main (String args[]) {
|
---|
| 4305 | System.exit (0);
|
---|
| 4306 | } }
|
---|
| 4307 | EOF
|
---|
| 4308 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 4309 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25170] | 4310 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4311 | (eval $ac_try) 2>&5
|
---|
| 4312 | ac_status=$?
|
---|
[25170] | 4313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4314 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
[23356] | 4315 | :
|
---|
| 4316 | else
|
---|
| 4317 | echo "configure: failed program was:" >&5
|
---|
| 4318 | cat $JAVA_TEST >&5
|
---|
[25170] | 4319 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4320 | fi
|
---|
| 4321 | fi
|
---|
| 4322 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
[25170] | 4323 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4324 | (eval $ac_try) 2>&5
|
---|
| 4325 | ac_status=$?
|
---|
[25170] | 4326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4327 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4328 | ac_cv_prog_java_works=yes
|
---|
| 4329 | else
|
---|
| 4330 | echo "configure: failed program was:" >&5
|
---|
| 4331 | cat $JAVA_TEST >&5
|
---|
[25170] | 4332 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4333 | fi
|
---|
| 4334 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
| 4335 |
|
---|
| 4336 | fi
|
---|
[25170] | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
[23356] | 4338 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
| 4339 |
|
---|
| 4340 |
|
---|
| 4341 |
|
---|
| 4342 |
|
---|
| 4343 | if test "x$JAVAC" = x ; then
|
---|
| 4344 | if test "x$JAVAPREFIX" = x; then
|
---|
| 4345 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4346 | do
|
---|
| 4347 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4348 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4350 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4351 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4352 | $as_echo_n "(cached) " >&6
|
---|
| 4353 | else
|
---|
| 4354 | if test -n "$JAVAC"; then
|
---|
| 4355 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4356 | else
|
---|
| 4357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4358 | for as_dir in $PATH
|
---|
| 4359 | do
|
---|
| 4360 | IFS=$as_save_IFS
|
---|
| 4361 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4362 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4364 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4366 | break 2
|
---|
| 4367 | fi
|
---|
| 4368 | done
|
---|
[25170] | 4369 | done
|
---|
[23356] | 4370 | IFS=$as_save_IFS
|
---|
| 4371 |
|
---|
| 4372 | fi
|
---|
| 4373 | fi
|
---|
| 4374 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4375 | if test -n "$JAVAC"; then
|
---|
[25170] | 4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4377 | $as_echo "$JAVAC" >&6; }
|
---|
| 4378 | else
|
---|
[25170] | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4380 | $as_echo "no" >&6; }
|
---|
| 4381 | fi
|
---|
| 4382 |
|
---|
| 4383 |
|
---|
| 4384 | test -n "$JAVAC" && break
|
---|
| 4385 | done
|
---|
| 4386 |
|
---|
| 4387 | else
|
---|
| 4388 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4389 | do
|
---|
| 4390 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4391 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4393 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4394 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4395 | $as_echo_n "(cached) " >&6
|
---|
| 4396 | else
|
---|
| 4397 | if test -n "$JAVAC"; then
|
---|
| 4398 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4399 | else
|
---|
| 4400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4401 | for as_dir in $PATH
|
---|
| 4402 | do
|
---|
| 4403 | IFS=$as_save_IFS
|
---|
| 4404 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4405 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4407 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4409 | break 2
|
---|
| 4410 | fi
|
---|
| 4411 | done
|
---|
[25170] | 4412 | done
|
---|
[23356] | 4413 | IFS=$as_save_IFS
|
---|
| 4414 |
|
---|
| 4415 | fi
|
---|
| 4416 | fi
|
---|
| 4417 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4418 | if test -n "$JAVAC"; then
|
---|
[25170] | 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4420 | $as_echo "$JAVAC" >&6; }
|
---|
| 4421 | else
|
---|
[25170] | 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4423 | $as_echo "no" >&6; }
|
---|
| 4424 | fi
|
---|
| 4425 |
|
---|
| 4426 |
|
---|
| 4427 | test -n "$JAVAC" && break
|
---|
| 4428 | done
|
---|
| 4429 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4430 |
|
---|
| 4431 | fi
|
---|
[25170] | 4432 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4433 | else
|
---|
| 4434 | echo "Checking for javac... $JAVAC"
|
---|
| 4435 | fi
|
---|
| 4436 |
|
---|
| 4437 |
|
---|
[25170] | 4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
[23356] | 4439 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
[25170] | 4440 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
[23356] | 4441 | $as_echo_n "(cached) " >&6
|
---|
| 4442 | else
|
---|
| 4443 |
|
---|
| 4444 | JAVA_TEST=Test.java
|
---|
| 4445 | CLASS_TEST=Test.class
|
---|
| 4446 | cat << \EOF > $JAVA_TEST
|
---|
[25170] | 4447 | /* #line 4447 "configure" */
|
---|
[23356] | 4448 | public class Test {
|
---|
| 4449 | }
|
---|
| 4450 | EOF
|
---|
| 4451 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25170] | 4452 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4453 | (eval $ac_try) 2>&5
|
---|
| 4454 | ac_status=$?
|
---|
[25170] | 4455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4456 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4457 | ac_cv_prog_javac_works=yes
|
---|
| 4458 | else
|
---|
[25170] | 4459 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4460 | echo "configure: failed program was:" >&5
|
---|
| 4461 | cat $JAVA_TEST >&5
|
---|
| 4462 | fi
|
---|
| 4463 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4464 |
|
---|
| 4465 | fi
|
---|
[25170] | 4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
[23356] | 4467 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4468 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4469 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4470 | fi
|
---|
| 4471 |
|
---|
| 4472 |
|
---|
| 4473 |
|
---|
| 4474 | fi
|
---|
| 4475 |
|
---|
| 4476 |
|
---|
[8063] | 4477 | ac_ext=c
|
---|
| 4478 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[25170] | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
[23356] | 4483 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
[3365] | 4484 | # On Suns, sometimes $CPP names a directory.
|
---|
| 4485 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 4486 | CPP=
|
---|
| 4487 | fi
|
---|
| 4488 | if test -z "$CPP"; then
|
---|
[25170] | 4489 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
[23356] | 4490 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4491 | else
|
---|
[8063] | 4492 | # Double quotes because CPP needs to be expanded
|
---|
| 4493 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 4494 | do
|
---|
| 4495 | ac_preproc_ok=false
|
---|
| 4496 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4497 | do
|
---|
| 4498 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4499 | # with a fresh cross-compiler works.
|
---|
[10192] | 4500 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4501 | # <limits.h> exists even on freestanding compilers.
|
---|
[3365] | 4502 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8063] | 4503 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[25170] | 4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4505 | /* end confdefs.h. */
|
---|
| 4506 | #ifdef __STDC__
|
---|
| 4507 | # include <limits.h>
|
---|
| 4508 | #else
|
---|
| 4509 | # include <assert.h>
|
---|
| 4510 | #endif
|
---|
| 4511 | Syntax error
|
---|
| 4512 | _ACEOF
|
---|
[25170] | 4513 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4514 |
|
---|
[25148] | 4515 | else
|
---|
[8063] | 4516 | # Broken: fails on valid input.
|
---|
| 4517 | continue
|
---|
| 4518 | fi
|
---|
[25170] | 4519 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4520 |
|
---|
[23356] | 4521 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8063] | 4522 | # can be detected and how.
|
---|
[25170] | 4523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4524 | /* end confdefs.h. */
|
---|
[8063] | 4525 | #include <ac_nonexistent.h>
|
---|
| 4526 | _ACEOF
|
---|
[25170] | 4527 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8063] | 4528 | # Broken: success on invalid input.
|
---|
| 4529 | continue
|
---|
| 4530 | else
|
---|
| 4531 | # Passes both tests.
|
---|
| 4532 | ac_preproc_ok=:
|
---|
| 4533 | break
|
---|
| 4534 | fi
|
---|
[25170] | 4535 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4536 |
|
---|
[8063] | 4537 | done
|
---|
| 4538 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25170] | 4539 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 4540 | if $ac_preproc_ok; then :
|
---|
[10192] | 4541 | break
|
---|
[8063] | 4542 | fi
|
---|
| 4543 |
|
---|
| 4544 | done
|
---|
| 4545 | ac_cv_prog_CPP=$CPP
|
---|
| 4546 |
|
---|
| 4547 | fi
|
---|
| 4548 | CPP=$ac_cv_prog_CPP
|
---|
| 4549 | else
|
---|
| 4550 | ac_cv_prog_CPP=$CPP
|
---|
| 4551 | fi
|
---|
[25170] | 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
[23356] | 4553 | $as_echo "$CPP" >&6; }
|
---|
[8063] | 4554 | ac_preproc_ok=false
|
---|
| 4555 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4556 | do
|
---|
| 4557 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4558 | # with a fresh cross-compiler works.
|
---|
[10192] | 4559 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4560 | # <limits.h> exists even on freestanding compilers.
|
---|
[8063] | 4561 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4562 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[25170] | 4563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4564 | /* end confdefs.h. */
|
---|
| 4565 | #ifdef __STDC__
|
---|
| 4566 | # include <limits.h>
|
---|
| 4567 | #else
|
---|
| 4568 | # include <assert.h>
|
---|
| 4569 | #endif
|
---|
| 4570 | Syntax error
|
---|
| 4571 | _ACEOF
|
---|
[25170] | 4572 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4573 |
|
---|
[25148] | 4574 | else
|
---|
[8063] | 4575 | # Broken: fails on valid input.
|
---|
| 4576 | continue
|
---|
[3365] | 4577 | fi
|
---|
[25170] | 4578 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4579 |
|
---|
[23356] | 4580 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8063] | 4581 | # can be detected and how.
|
---|
[25170] | 4582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4583 | /* end confdefs.h. */
|
---|
[8063] | 4584 | #include <ac_nonexistent.h>
|
---|
| 4585 | _ACEOF
|
---|
[25170] | 4586 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8063] | 4587 | # Broken: success on invalid input.
|
---|
| 4588 | continue
|
---|
| 4589 | else
|
---|
| 4590 | # Passes both tests.
|
---|
| 4591 | ac_preproc_ok=:
|
---|
| 4592 | break
|
---|
[3365] | 4593 | fi
|
---|
[25170] | 4594 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4595 |
|
---|
[8063] | 4596 | done
|
---|
| 4597 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25170] | 4598 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 4599 | if $ac_preproc_ok; then :
|
---|
| 4600 |
|
---|
[3365] | 4601 | else
|
---|
[25170] | 4602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 4603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 4604 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
| 4605 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 4606 | fi
|
---|
| 4607 |
|
---|
[8063] | 4608 | ac_ext=c
|
---|
| 4609 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4613 |
|
---|
[10192] | 4614 |
|
---|
[25170] | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
[23356] | 4616 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
[25170] | 4617 | if ${ac_cv_path_GREP+:} false; then :
|
---|
[23356] | 4618 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 4619 | else
|
---|
[23356] | 4620 | if test -z "$GREP"; then
|
---|
| 4621 | ac_path_GREP_found=false
|
---|
| 4622 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4624 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4625 | do
|
---|
| 4626 | IFS=$as_save_IFS
|
---|
| 4627 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4628 | for ac_prog in grep ggrep; do
|
---|
[23356] | 4629 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4630 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4631 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4632 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4633 | # Check for GNU $ac_path_GREP
|
---|
| 4634 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4635 | *GNU*)
|
---|
| 4636 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4637 | *)
|
---|
| 4638 | ac_count=0
|
---|
| 4639 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4640 | while :
|
---|
| 4641 | do
|
---|
| 4642 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4643 | mv "conftest.tmp" "conftest.in"
|
---|
| 4644 | cp "conftest.in" "conftest.nl"
|
---|
| 4645 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 4646 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4647 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
[25170] | 4648 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
[23356] | 4649 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4650 | # Best one so far, save it but keep looking for a better one
|
---|
| 4651 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4652 | ac_path_GREP_max=$ac_count
|
---|
[10192] | 4653 | fi
|
---|
[23356] | 4654 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4655 | test $ac_count -gt 10 && break
|
---|
| 4656 | done
|
---|
| 4657 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4658 | esac
|
---|
[10192] | 4659 |
|
---|
[23356] | 4660 | $ac_path_GREP_found && break 3
|
---|
| 4661 | done
|
---|
| 4662 | done
|
---|
[25170] | 4663 | done
|
---|
[23356] | 4664 | IFS=$as_save_IFS
|
---|
| 4665 | if test -z "$ac_cv_path_GREP"; then
|
---|
[25170] | 4666 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4667 | fi
|
---|
[3365] | 4668 | else
|
---|
[23356] | 4669 | ac_cv_path_GREP=$GREP
|
---|
[3365] | 4670 | fi
|
---|
| 4671 |
|
---|
[23356] | 4672 | fi
|
---|
[25170] | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
[23356] | 4674 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 4675 | GREP="$ac_cv_path_GREP"
|
---|
[8063] | 4676 |
|
---|
[3365] | 4677 |
|
---|
[25170] | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
[23356] | 4679 | $as_echo_n "checking for egrep... " >&6; }
|
---|
[25170] | 4680 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
[23356] | 4681 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4682 | else
|
---|
[23356] | 4683 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4684 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4685 | else
|
---|
| 4686 | if test -z "$EGREP"; then
|
---|
| 4687 | ac_path_EGREP_found=false
|
---|
| 4688 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4690 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4691 | do
|
---|
| 4692 | IFS=$as_save_IFS
|
---|
| 4693 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4694 | for ac_prog in egrep; do
|
---|
[23356] | 4695 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4696 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4697 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4698 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4699 | # Check for GNU $ac_path_EGREP
|
---|
| 4700 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4701 | *GNU*)
|
---|
| 4702 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4703 | *)
|
---|
| 4704 | ac_count=0
|
---|
| 4705 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4706 | while :
|
---|
| 4707 | do
|
---|
| 4708 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4709 | mv "conftest.tmp" "conftest.in"
|
---|
| 4710 | cp "conftest.in" "conftest.nl"
|
---|
| 4711 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 4712 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4713 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
[25170] | 4714 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
[23356] | 4715 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4716 | # Best one so far, save it but keep looking for a better one
|
---|
| 4717 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4718 | ac_path_EGREP_max=$ac_count
|
---|
| 4719 | fi
|
---|
| 4720 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4721 | test $ac_count -gt 10 && break
|
---|
| 4722 | done
|
---|
| 4723 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4724 | esac
|
---|
[10192] | 4725 |
|
---|
[23356] | 4726 | $ac_path_EGREP_found && break 3
|
---|
| 4727 | done
|
---|
| 4728 | done
|
---|
[25170] | 4729 | done
|
---|
[23356] | 4730 | IFS=$as_save_IFS
|
---|
| 4731 | if test -z "$ac_cv_path_EGREP"; then
|
---|
[25170] | 4732 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4733 | fi
|
---|
[10192] | 4734 | else
|
---|
[23356] | 4735 | ac_cv_path_EGREP=$EGREP
|
---|
[10192] | 4736 | fi
|
---|
| 4737 |
|
---|
[23356] | 4738 | fi
|
---|
[10192] | 4739 | fi
|
---|
[25170] | 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
[23356] | 4741 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 4742 | EGREP="$ac_cv_path_EGREP"
|
---|
[10192] | 4743 |
|
---|
[23356] | 4744 |
|
---|
[25170] | 4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
[23356] | 4746 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
[25170] | 4747 | if ${ac_cv_header_stdc+:} false; then :
|
---|
[23356] | 4748 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 4749 | else
|
---|
[25170] | 4750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4751 | /* end confdefs.h. */
|
---|
| 4752 | #include <stdlib.h>
|
---|
| 4753 | #include <stdarg.h>
|
---|
| 4754 | #include <string.h>
|
---|
| 4755 | #include <float.h>
|
---|
| 4756 |
|
---|
| 4757 | int
|
---|
| 4758 | main ()
|
---|
| 4759 | {
|
---|
| 4760 |
|
---|
| 4761 | ;
|
---|
| 4762 | return 0;
|
---|
| 4763 | }
|
---|
| 4764 | _ACEOF
|
---|
[25170] | 4765 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10192] | 4766 | ac_cv_header_stdc=yes
|
---|
| 4767 | else
|
---|
[25170] | 4768 | ac_cv_header_stdc=no
|
---|
[10192] | 4769 | fi
|
---|
[23356] | 4770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10192] | 4771 |
|
---|
| 4772 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4773 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[25170] | 4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4775 | /* end confdefs.h. */
|
---|
| 4776 | #include <string.h>
|
---|
| 4777 |
|
---|
| 4778 | _ACEOF
|
---|
| 4779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 4780 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 4781 |
|
---|
[10192] | 4782 | else
|
---|
| 4783 | ac_cv_header_stdc=no
|
---|
| 4784 | fi
|
---|
| 4785 | rm -f conftest*
|
---|
| 4786 |
|
---|
| 4787 | fi
|
---|
| 4788 |
|
---|
| 4789 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4790 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[25170] | 4791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4792 | /* end confdefs.h. */
|
---|
| 4793 | #include <stdlib.h>
|
---|
| 4794 |
|
---|
| 4795 | _ACEOF
|
---|
| 4796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 4797 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 4798 |
|
---|
[10192] | 4799 | else
|
---|
| 4800 | ac_cv_header_stdc=no
|
---|
| 4801 | fi
|
---|
| 4802 | rm -f conftest*
|
---|
| 4803 |
|
---|
| 4804 | fi
|
---|
| 4805 |
|
---|
| 4806 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4807 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[25170] | 4808 | if test "$cross_compiling" = yes; then :
|
---|
[10192] | 4809 | :
|
---|
| 4810 | else
|
---|
[25170] | 4811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4812 | /* end confdefs.h. */
|
---|
| 4813 | #include <ctype.h>
|
---|
[23356] | 4814 | #include <stdlib.h>
|
---|
[10192] | 4815 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4816 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4817 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4818 | #else
|
---|
| 4819 | # define ISLOWER(c) \
|
---|
| 4820 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4821 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4822 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4823 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4824 | #endif
|
---|
| 4825 |
|
---|
| 4826 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4827 | int
|
---|
| 4828 | main ()
|
---|
| 4829 | {
|
---|
| 4830 | int i;
|
---|
| 4831 | for (i = 0; i < 256; i++)
|
---|
| 4832 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4833 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 4834 | return 2;
|
---|
| 4835 | return 0;
|
---|
[10192] | 4836 | }
|
---|
| 4837 | _ACEOF
|
---|
[25170] | 4838 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 4839 |
|
---|
[25148] | 4840 | else
|
---|
[25170] | 4841 | ac_cv_header_stdc=no
|
---|
[10192] | 4842 | fi
|
---|
[25170] | 4843 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 4844 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10192] | 4845 | fi
|
---|
[23356] | 4846 |
|
---|
[10192] | 4847 | fi
|
---|
| 4848 | fi
|
---|
[25170] | 4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
[23356] | 4850 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[10192] | 4851 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4852 |
|
---|
[25170] | 4853 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[10192] | 4854 |
|
---|
| 4855 | fi
|
---|
| 4856 |
|
---|
| 4857 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
[23356] | 4858 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4859 | inttypes.h stdint.h unistd.h
|
---|
[25170] | 4860 | do :
|
---|
| 4861 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4862 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 4863 | "
|
---|
| 4864 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[23356] | 4865 | cat >>confdefs.h <<_ACEOF
|
---|
| 4866 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4867 | _ACEOF
|
---|
[10192] | 4868 |
|
---|
[23356] | 4869 | fi
|
---|
[10192] | 4870 |
|
---|
[23356] | 4871 | done
|
---|
[10192] | 4872 |
|
---|
| 4873 |
|
---|
| 4874 |
|
---|
[25170] | 4875 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
| 4876 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
[23356] | 4877 | MINIX=yes
|
---|
| 4878 | else
|
---|
| 4879 | MINIX=
|
---|
| 4880 | fi
|
---|
[10192] | 4881 |
|
---|
| 4882 |
|
---|
[23356] | 4883 | if test "$MINIX" = yes; then
|
---|
[10192] | 4884 |
|
---|
[25170] | 4885 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
[10192] | 4886 |
|
---|
[23356] | 4887 |
|
---|
[25170] | 4888 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
[23356] | 4889 |
|
---|
| 4890 |
|
---|
[25170] | 4891 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
[23356] | 4892 |
|
---|
| 4893 | fi
|
---|
| 4894 |
|
---|
| 4895 |
|
---|
[25170] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
[23356] | 4897 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
[25170] | 4898 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
[23356] | 4899 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 4900 | else
|
---|
[25170] | 4901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4902 | /* end confdefs.h. */
|
---|
| 4903 |
|
---|
[23356] | 4904 | # define __EXTENSIONS__ 1
|
---|
| 4905 | $ac_includes_default
|
---|
| 4906 | int
|
---|
| 4907 | main ()
|
---|
| 4908 | {
|
---|
| 4909 |
|
---|
| 4910 | ;
|
---|
| 4911 | return 0;
|
---|
| 4912 | }
|
---|
[10192] | 4913 | _ACEOF
|
---|
[25170] | 4914 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 4915 | ac_cv_safe_to_define___extensions__=yes
|
---|
[10192] | 4916 | else
|
---|
[25170] | 4917 | ac_cv_safe_to_define___extensions__=no
|
---|
[10192] | 4918 | fi
|
---|
[23356] | 4919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10192] | 4920 | fi
|
---|
[25170] | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
[23356] | 4922 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
| 4923 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
[25170] | 4924 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
[10192] | 4925 |
|
---|
[25170] | 4926 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
[10192] | 4927 |
|
---|
[25170] | 4928 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
[10192] | 4929 |
|
---|
[25170] | 4930 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
[10192] | 4931 |
|
---|
[25170] | 4932 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
[23356] | 4933 |
|
---|
| 4934 |
|
---|
[25170] | 4935 |
|
---|
| 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
[23356] | 4937 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
[25170] | 4938 | if ${ac_cv_search_strerror+:} false; then :
|
---|
[23356] | 4939 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4940 | else
|
---|
[23356] | 4941 | ac_func_search_save_LIBS=$LIBS
|
---|
[25170] | 4942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4943 | /* end confdefs.h. */
|
---|
| 4944 |
|
---|
[23356] | 4945 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4946 | Use char because int might match the return type of a GCC
|
---|
| 4947 | builtin and then its argument prototype would still apply. */
|
---|
| 4948 | #ifdef __cplusplus
|
---|
| 4949 | extern "C"
|
---|
| 4950 | #endif
|
---|
| 4951 | char strerror ();
|
---|
| 4952 | int
|
---|
| 4953 | main ()
|
---|
| 4954 | {
|
---|
| 4955 | return strerror ();
|
---|
| 4956 | ;
|
---|
| 4957 | return 0;
|
---|
| 4958 | }
|
---|
[10192] | 4959 | _ACEOF
|
---|
[23356] | 4960 | for ac_lib in '' cposix; do
|
---|
| 4961 | if test -z "$ac_lib"; then
|
---|
| 4962 | ac_res="none required"
|
---|
[22058] | 4963 | else
|
---|
[23356] | 4964 | ac_res=-l$ac_lib
|
---|
| 4965 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[22058] | 4966 | fi
|
---|
[25170] | 4967 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 4968 | ac_cv_search_strerror=$ac_res
|
---|
[22058] | 4969 | fi
|
---|
[25170] | 4970 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4971 | conftest$ac_exeext
|
---|
| 4972 | if ${ac_cv_search_strerror+:} false; then :
|
---|
[23356] | 4973 | break
|
---|
[3365] | 4974 | fi
|
---|
[23356] | 4975 | done
|
---|
[25170] | 4976 | if ${ac_cv_search_strerror+:} false; then :
|
---|
| 4977 |
|
---|
[10192] | 4978 | else
|
---|
[23356] | 4979 | ac_cv_search_strerror=no
|
---|
[3365] | 4980 | fi
|
---|
[23356] | 4981 | rm conftest.$ac_ext
|
---|
| 4982 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4983 | fi
|
---|
[25170] | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
[23356] | 4985 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
| 4986 | ac_res=$ac_cv_search_strerror
|
---|
[25170] | 4987 | if test "$ac_res" != no; then :
|
---|
[23356] | 4988 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[10192] | 4989 |
|
---|
| 4990 | fi
|
---|
[3365] | 4991 |
|
---|
[10192] | 4992 |
|
---|
[25170] | 4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[23356] | 4994 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
[25170] | 4995 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
[23356] | 4996 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4997 | else
|
---|
| 4998 | ac_cv_prog_cc_stdc=no
|
---|
| 4999 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 5000 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 5001 | # breaks some systems' header files.
|
---|
| 5002 | # AIX -qlanglvl=ansi
|
---|
| 5003 | # Ultrix and OSF/1 -std1
|
---|
| 5004 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 5005 | # SVR4 -Xc
|
---|
| 5006 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 5007 | do
|
---|
| 5008 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[25170] | 5009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5010 | /* end confdefs.h. */
|
---|
[3365] | 5011 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 5012 | choke me
|
---|
[8063] | 5013 | #endif
|
---|
[3365] | 5014 |
|
---|
[8063] | 5015 | int
|
---|
| 5016 | main ()
|
---|
| 5017 | {
|
---|
[3365] | 5018 | int test (int i, double x);
|
---|
| 5019 | struct s1 {int (*f) (int a);};
|
---|
| 5020 | struct s2 {int (*f) (double a);};
|
---|
[8063] | 5021 | ;
|
---|
| 5022 | return 0;
|
---|
| 5023 | }
|
---|
| 5024 | _ACEOF
|
---|
[25170] | 5025 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5026 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 5027 | fi
|
---|
[23356] | 5028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5029 | done
|
---|
| 5030 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 5031 |
|
---|
| 5032 | fi
|
---|
| 5033 |
|
---|
[25170] | 5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[23356] | 5035 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
[3365] | 5036 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 5037 | x|xno) ;;
|
---|
| 5038 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 5039 | esac
|
---|
| 5040 |
|
---|
[10192] | 5041 |
|
---|
[25170] | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
[23356] | 5043 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
[3365] | 5044 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[25170] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 5046 | $as_echo "yes" >&6; }
|
---|
[25170] | 5047 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
[3365] | 5048 |
|
---|
| 5049 | U= ANSI2KNR=
|
---|
| 5050 | else
|
---|
[25170] | 5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 5052 | $as_echo "no" >&6; }
|
---|
[3365] | 5053 | U=_ ANSI2KNR=ansi2knr
|
---|
| 5054 | fi
|
---|
| 5055 |
|
---|
[25170] | 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
[23356] | 5057 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
[25170] | 5058 | if ${ac_cv_c_const+:} false; then :
|
---|
[23356] | 5059 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 5060 | else
|
---|
[25170] | 5061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5062 | /* end confdefs.h. */
|
---|
[8063] | 5063 |
|
---|
| 5064 | int
|
---|
| 5065 | main ()
|
---|
| 5066 | {
|
---|
| 5067 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 5068 | #ifndef __cplusplus
|
---|
| 5069 | /* Ultrix mips cc rejects this. */
|
---|
| 5070 | typedef int charset[2];
|
---|
[23356] | 5071 | const charset cs;
|
---|
[8063] | 5072 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[23356] | 5073 | char const *const *pcpcc;
|
---|
| 5074 | char **ppc;
|
---|
[8063] | 5075 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 5076 | struct point {int x, y;};
|
---|
| 5077 | static struct point const zero = {0,0};
|
---|
| 5078 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 5079 | It does not let you subtract one const X* pointer from another in
|
---|
| 5080 | an arm of an if-expression whose if-part is not a constant
|
---|
| 5081 | expression */
|
---|
| 5082 | const char *g = "string";
|
---|
[23356] | 5083 | pcpcc = &g + (g ? g-g : 0);
|
---|
[8063] | 5084 | /* HPUX 7.0 cc rejects these. */
|
---|
[23356] | 5085 | ++pcpcc;
|
---|
| 5086 | ppc = (char**) pcpcc;
|
---|
| 5087 | pcpcc = (char const *const *) ppc;
|
---|
[8063] | 5088 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 5089 | char *t;
|
---|
| 5090 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 5091 |
|
---|
| 5092 | *t++ = 0;
|
---|
[23356] | 5093 | if (s) return 0;
|
---|
[8063] | 5094 | }
|
---|
| 5095 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 5096 | int x[] = {25, 17};
|
---|
| 5097 | const int *foo = &x[0];
|
---|
| 5098 | ++foo;
|
---|
| 5099 | }
|
---|
| 5100 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 5101 | typedef const int *iptr;
|
---|
| 5102 | iptr p = 0;
|
---|
| 5103 | ++p;
|
---|
| 5104 | }
|
---|
| 5105 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 5106 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 5107 | struct s { int j; const int *ap[3]; };
|
---|
| 5108 | struct s *b; b->j = 5;
|
---|
| 5109 | }
|
---|
| 5110 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 5111 | const int foo = 10;
|
---|
[23356] | 5112 | if (!foo) return 0;
|
---|
[8063] | 5113 | }
|
---|
[23356] | 5114 | return !cs[0] && !zero.x;
|
---|
[8063] | 5115 | #endif
|
---|
| 5116 |
|
---|
| 5117 | ;
|
---|
| 5118 | return 0;
|
---|
[3365] | 5119 | }
|
---|
[8063] | 5120 | _ACEOF
|
---|
[25170] | 5121 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5122 | ac_cv_c_const=yes
|
---|
| 5123 | else
|
---|
[25170] | 5124 | ac_cv_c_const=no
|
---|
[3365] | 5125 | fi
|
---|
[23356] | 5126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5127 | fi
|
---|
[25170] | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
[23356] | 5129 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
[8063] | 5130 | if test $ac_cv_c_const = no; then
|
---|
[8059] | 5131 |
|
---|
[25170] | 5132 | $as_echo "#define const /**/" >>confdefs.h
|
---|
[3365] | 5133 |
|
---|
| 5134 | fi
|
---|
| 5135 |
|
---|
[25170] | 5136 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
| 5137 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
[10192] | 5138 |
|
---|
[8063] | 5139 | else
|
---|
[8059] | 5140 |
|
---|
[10192] | 5141 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5142 | #define off_t long int
|
---|
[10192] | 5143 | _ACEOF
|
---|
[3365] | 5144 |
|
---|
| 5145 | fi
|
---|
| 5146 |
|
---|
[25170] | 5147 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 5148 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
[10192] | 5149 |
|
---|
[8063] | 5150 | else
|
---|
[8059] | 5151 |
|
---|
[10192] | 5152 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5153 | #define size_t unsigned int
|
---|
[10192] | 5154 | _ACEOF
|
---|
[3365] | 5155 |
|
---|
| 5156 | fi
|
---|
| 5157 |
|
---|
[25170] | 5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[23356] | 5159 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
[25170] | 5160 | if ${ac_cv_header_time+:} false; then :
|
---|
[23356] | 5161 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5162 | else
|
---|
[25170] | 5163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5164 | /* end confdefs.h. */
|
---|
[3365] | 5165 | #include <sys/types.h>
|
---|
| 5166 | #include <sys/time.h>
|
---|
| 5167 | #include <time.h>
|
---|
[8063] | 5168 |
|
---|
| 5169 | int
|
---|
| 5170 | main ()
|
---|
| 5171 | {
|
---|
[10192] | 5172 | if ((struct tm *) 0)
|
---|
| 5173 | return 0;
|
---|
[8063] | 5174 | ;
|
---|
| 5175 | return 0;
|
---|
| 5176 | }
|
---|
| 5177 | _ACEOF
|
---|
[25170] | 5178 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5179 | ac_cv_header_time=yes
|
---|
| 5180 | else
|
---|
[25170] | 5181 | ac_cv_header_time=no
|
---|
[3365] | 5182 | fi
|
---|
[23356] | 5183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5184 | fi
|
---|
[25170] | 5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
[23356] | 5186 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
[8063] | 5187 | if test $ac_cv_header_time = yes; then
|
---|
[8059] | 5188 |
|
---|
[25170] | 5189 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
[3365] | 5190 |
|
---|
| 5191 | fi
|
---|
| 5192 |
|
---|
[25170] | 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[23356] | 5194 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
[25170] | 5195 | if ${ac_cv_struct_tm+:} false; then :
|
---|
[23356] | 5196 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5197 | else
|
---|
[25170] | 5198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5199 | /* end confdefs.h. */
|
---|
[3365] | 5200 | #include <sys/types.h>
|
---|
| 5201 | #include <time.h>
|
---|
[8063] | 5202 |
|
---|
| 5203 | int
|
---|
| 5204 | main ()
|
---|
| 5205 | {
|
---|
[23356] | 5206 | struct tm tm;
|
---|
| 5207 | int *p = &tm.tm_sec;
|
---|
| 5208 | return !p;
|
---|
[8063] | 5209 | ;
|
---|
| 5210 | return 0;
|
---|
| 5211 | }
|
---|
| 5212 | _ACEOF
|
---|
[25170] | 5213 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5214 | ac_cv_struct_tm=time.h
|
---|
| 5215 | else
|
---|
[25170] | 5216 | ac_cv_struct_tm=sys/time.h
|
---|
[3365] | 5217 | fi
|
---|
[23356] | 5218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5219 | fi
|
---|
[25170] | 5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
[23356] | 5221 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
[8063] | 5222 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8059] | 5223 |
|
---|
[25170] | 5224 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
[3365] | 5225 |
|
---|
| 5226 | fi
|
---|
| 5227 |
|
---|
[10192] | 5228 |
|
---|
[13698] | 5229 |
|
---|
[23356] | 5230 | # Check whether --with-unac was given.
|
---|
[25170] | 5231 | if test "${with_unac+set}" = set; then :
|
---|
[23356] | 5232 | withval=$with_unac; UNAC_DIR=$withval
|
---|
[13698] | 5233 | else
|
---|
| 5234 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
[23356] | 5235 | fi
|
---|
| 5236 |
|
---|
[13698] | 5237 | cat >>confdefs.h <<_ACEOF
|
---|
| 5238 | #define UNAC_DIR "$UNAC_DIR"
|
---|
| 5239 | _ACEOF
|
---|
| 5240 |
|
---|
| 5241 |
|
---|
| 5242 |
|
---|
[20844] | 5243 | #AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
|
---|
| 5244 | #AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
|
---|
| 5245 | #AC_SUBST(LIBICONV_DIR)
|
---|
[13698] | 5246 |
|
---|
[20832] | 5247 |
|
---|
[3365] | 5248 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[25170] | 5249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5250 | /* end confdefs.h. */
|
---|
[3365] | 5251 | #include <stdio.h>
|
---|
| 5252 |
|
---|
[8063] | 5253 | int
|
---|
| 5254 | main ()
|
---|
| 5255 | {
|
---|
| 5256 | FILE *rubbish = popen("yes", "r");
|
---|
| 5257 | ;
|
---|
| 5258 | return 0;
|
---|
| 5259 | }
|
---|
| 5260 | _ACEOF
|
---|
[25170] | 5261 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5262 |
|
---|
[25148] | 5263 | else
|
---|
[25170] | 5264 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3365] | 5265 | fi
|
---|
[23356] | 5266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5267 | fi
|
---|
| 5268 |
|
---|
[10192] | 5269 |
|
---|
[25170] | 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
[23356] | 5271 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
[25170] | 5272 | if ${ac_cv_lib_g_main+:} false; then :
|
---|
[23356] | 5273 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5274 | else
|
---|
[8063] | 5275 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 5276 | LIBS="-lg $LIBS"
|
---|
[25170] | 5277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5278 | /* end confdefs.h. */
|
---|
[8059] | 5279 |
|
---|
[10192] | 5280 |
|
---|
[8063] | 5281 | int
|
---|
| 5282 | main ()
|
---|
| 5283 | {
|
---|
[23356] | 5284 | return main ();
|
---|
[8063] | 5285 | ;
|
---|
| 5286 | return 0;
|
---|
| 5287 | }
|
---|
| 5288 | _ACEOF
|
---|
[25170] | 5289 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5290 | ac_cv_lib_g_main=yes
|
---|
[8059] | 5291 | else
|
---|
[25170] | 5292 | ac_cv_lib_g_main=no
|
---|
[8059] | 5293 | fi
|
---|
[25170] | 5294 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5295 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5296 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 5297 | fi
|
---|
[25170] | 5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
[23356] | 5299 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
[25170] | 5300 | if test "x$ac_cv_lib_g_main" = xyes; then :
|
---|
[10192] | 5301 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5302 | #define HAVE_LIBG 1
|
---|
[10192] | 5303 | _ACEOF
|
---|
[8059] | 5304 |
|
---|
| 5305 | LIBS="-lg $LIBS"
|
---|
| 5306 |
|
---|
| 5307 | fi
|
---|
| 5308 |
|
---|
[25170] | 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
[23356] | 5310 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
[25170] | 5311 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
[23356] | 5312 | $as_echo_n "(cached) " >&6
|
---|
[8059] | 5313 | else
|
---|
[8063] | 5314 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 5315 | LIBS="-lm $LIBS"
|
---|
[25170] | 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5317 | /* end confdefs.h. */
|
---|
[3365] | 5318 |
|
---|
[10192] | 5319 |
|
---|
[8063] | 5320 | int
|
---|
| 5321 | main ()
|
---|
| 5322 | {
|
---|
[23356] | 5323 | return main ();
|
---|
[8063] | 5324 | ;
|
---|
| 5325 | return 0;
|
---|
| 5326 | }
|
---|
| 5327 | _ACEOF
|
---|
[25170] | 5328 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5329 | ac_cv_lib_m_main=yes
|
---|
[3365] | 5330 | else
|
---|
[25170] | 5331 | ac_cv_lib_m_main=no
|
---|
[3365] | 5332 | fi
|
---|
[25170] | 5333 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5334 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5335 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 5336 | fi
|
---|
[25170] | 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
[23356] | 5338 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
[25170] | 5339 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
[10192] | 5340 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5341 | #define HAVE_LIBM 1
|
---|
[10192] | 5342 | _ACEOF
|
---|
[3365] | 5343 |
|
---|
| 5344 | LIBS="-lm $LIBS"
|
---|
| 5345 |
|
---|
| 5346 | fi
|
---|
| 5347 |
|
---|
[25170] | 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
|
---|
[23356] | 5349 | $as_echo_n "checking for main in -lstdc++... " >&6; }
|
---|
[25170] | 5350 | if ${ac_cv_lib_stdcpp_main+:} false; then :
|
---|
[23356] | 5351 | $as_echo_n "(cached) " >&6
|
---|
[8059] | 5352 | else
|
---|
[8063] | 5353 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 5354 | LIBS="-lstdc++ $LIBS"
|
---|
[25170] | 5355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5356 | /* end confdefs.h. */
|
---|
[8059] | 5357 |
|
---|
[10192] | 5358 |
|
---|
[8063] | 5359 | int
|
---|
| 5360 | main ()
|
---|
| 5361 | {
|
---|
[23356] | 5362 | return main ();
|
---|
[8063] | 5363 | ;
|
---|
| 5364 | return 0;
|
---|
| 5365 | }
|
---|
| 5366 | _ACEOF
|
---|
[25170] | 5367 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5368 | ac_cv_lib_stdcpp_main=yes
|
---|
[8059] | 5369 | else
|
---|
[25170] | 5370 | ac_cv_lib_stdcpp_main=no
|
---|
[8059] | 5371 | fi
|
---|
[25170] | 5372 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5373 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5374 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 5375 | fi
|
---|
[25170] | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
[23356] | 5377 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
|
---|
[25170] | 5378 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
|
---|
[10192] | 5379 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5380 | #define HAVE_LIBSTDC__ 1
|
---|
[10192] | 5381 | _ACEOF
|
---|
[8059] | 5382 |
|
---|
| 5383 | LIBS="-lstdc++ $LIBS"
|
---|
| 5384 |
|
---|
| 5385 | fi
|
---|
| 5386 |
|
---|
[25170] | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
[23356] | 5388 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
[25170] | 5389 | if ${ac_cv_lib_crypt_main+:} false; then :
|
---|
[23356] | 5390 | $as_echo_n "(cached) " >&6
|
---|
[8059] | 5391 | else
|
---|
[8063] | 5392 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 5393 | LIBS="-lcrypt $LIBS"
|
---|
[25170] | 5394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5395 | /* end confdefs.h. */
|
---|
[8059] | 5396 |
|
---|
[10192] | 5397 |
|
---|
[8063] | 5398 | int
|
---|
| 5399 | main ()
|
---|
| 5400 | {
|
---|
[23356] | 5401 | return main ();
|
---|
[8063] | 5402 | ;
|
---|
| 5403 | return 0;
|
---|
| 5404 | }
|
---|
| 5405 | _ACEOF
|
---|
[25170] | 5406 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5407 | ac_cv_lib_crypt_main=yes
|
---|
[8059] | 5408 | else
|
---|
[25170] | 5409 | ac_cv_lib_crypt_main=no
|
---|
[8059] | 5410 | fi
|
---|
[25170] | 5411 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5412 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5413 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 5414 | fi
|
---|
[25170] | 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
[23356] | 5416 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
[25170] | 5417 | if test "x$ac_cv_lib_crypt_main" = xyes; then :
|
---|
[10192] | 5418 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5419 | #define HAVE_LIBCRYPT 1
|
---|
[10192] | 5420 | _ACEOF
|
---|
[8059] | 5421 |
|
---|
| 5422 | LIBS="-lcrypt $LIBS"
|
---|
| 5423 |
|
---|
| 5424 | fi
|
---|
| 5425 |
|
---|
[20845] | 5426 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 5427 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 5428 | #fi
|
---|
[10192] | 5429 |
|
---|
| 5430 |
|
---|
[3365] | 5431 | ac_header_dirent=no
|
---|
[8063] | 5432 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[23356] | 5433 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[25170] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
[23356] | 5435 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
[25170] | 5436 | if eval \${$as_ac_Header+:} false; then :
|
---|
[23356] | 5437 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5438 | else
|
---|
[25170] | 5439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5440 | /* end confdefs.h. */
|
---|
[3365] | 5441 | #include <sys/types.h>
|
---|
| 5442 | #include <$ac_hdr>
|
---|
[8063] | 5443 |
|
---|
| 5444 | int
|
---|
| 5445 | main ()
|
---|
| 5446 | {
|
---|
[10192] | 5447 | if ((DIR *) 0)
|
---|
| 5448 | return 0;
|
---|
[8063] | 5449 | ;
|
---|
| 5450 | return 0;
|
---|
| 5451 | }
|
---|
| 5452 | _ACEOF
|
---|
[25170] | 5453 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10192] | 5454 | eval "$as_ac_Header=yes"
|
---|
[3365] | 5455 | else
|
---|
[25170] | 5456 | eval "$as_ac_Header=no"
|
---|
[3365] | 5457 | fi
|
---|
[23356] | 5458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5459 | fi
|
---|
[25170] | 5460 | eval ac_res=\$$as_ac_Header
|
---|
| 5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
[23356] | 5462 | $as_echo "$ac_res" >&6; }
|
---|
[25170] | 5463 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[10192] | 5464 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5465 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[10192] | 5466 | _ACEOF
|
---|
[8063] | 5467 |
|
---|
| 5468 | ac_header_dirent=$ac_hdr; break
|
---|
[3365] | 5469 | fi
|
---|
[8063] | 5470 |
|
---|
[3365] | 5471 | done
|
---|
| 5472 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5473 | if test $ac_header_dirent = dirent.h; then
|
---|
[25170] | 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
[23356] | 5475 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
[25170] | 5476 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5477 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5478 | else
|
---|
[10192] | 5479 | ac_func_search_save_LIBS=$LIBS
|
---|
[25170] | 5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5481 | /* end confdefs.h. */
|
---|
[8063] | 5482 |
|
---|
[23356] | 5483 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5484 | Use char because int might match the return type of a GCC
|
---|
| 5485 | builtin and then its argument prototype would still apply. */
|
---|
[8063] | 5486 | #ifdef __cplusplus
|
---|
| 5487 | extern "C"
|
---|
| 5488 | #endif
|
---|
| 5489 | char opendir ();
|
---|
| 5490 | int
|
---|
| 5491 | main ()
|
---|
| 5492 | {
|
---|
[23356] | 5493 | return opendir ();
|
---|
[8063] | 5494 | ;
|
---|
| 5495 | return 0;
|
---|
| 5496 | }
|
---|
| 5497 | _ACEOF
|
---|
[23356] | 5498 | for ac_lib in '' dir; do
|
---|
| 5499 | if test -z "$ac_lib"; then
|
---|
| 5500 | ac_res="none required"
|
---|
| 5501 | else
|
---|
| 5502 | ac_res=-l$ac_lib
|
---|
| 5503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5504 | fi
|
---|
[25170] | 5505 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5506 | ac_cv_search_opendir=$ac_res
|
---|
[3365] | 5507 | fi
|
---|
[25170] | 5508 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5509 | conftest$ac_exeext
|
---|
| 5510 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5511 | break
|
---|
| 5512 | fi
|
---|
| 5513 | done
|
---|
[25170] | 5514 | if ${ac_cv_search_opendir+:} false; then :
|
---|
| 5515 |
|
---|
[10192] | 5516 | else
|
---|
[23356] | 5517 | ac_cv_search_opendir=no
|
---|
[3365] | 5518 | fi
|
---|
[23356] | 5519 | rm conftest.$ac_ext
|
---|
[10192] | 5520 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5521 | fi
|
---|
[25170] | 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
[23356] | 5523 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5524 | ac_res=$ac_cv_search_opendir
|
---|
[25170] | 5525 | if test "$ac_res" != no; then :
|
---|
[23356] | 5526 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3365] | 5527 |
|
---|
[10192] | 5528 | fi
|
---|
| 5529 |
|
---|
[3365] | 5530 | else
|
---|
[25170] | 5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
[23356] | 5532 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
[25170] | 5533 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5534 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5535 | else
|
---|
[10192] | 5536 | ac_func_search_save_LIBS=$LIBS
|
---|
[25170] | 5537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5538 | /* end confdefs.h. */
|
---|
[8063] | 5539 |
|
---|
[23356] | 5540 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5541 | Use char because int might match the return type of a GCC
|
---|
| 5542 | builtin and then its argument prototype would still apply. */
|
---|
[8063] | 5543 | #ifdef __cplusplus
|
---|
| 5544 | extern "C"
|
---|
| 5545 | #endif
|
---|
| 5546 | char opendir ();
|
---|
| 5547 | int
|
---|
| 5548 | main ()
|
---|
| 5549 | {
|
---|
[23356] | 5550 | return opendir ();
|
---|
[8063] | 5551 | ;
|
---|
| 5552 | return 0;
|
---|
| 5553 | }
|
---|
| 5554 | _ACEOF
|
---|
[23356] | 5555 | for ac_lib in '' x; do
|
---|
| 5556 | if test -z "$ac_lib"; then
|
---|
| 5557 | ac_res="none required"
|
---|
| 5558 | else
|
---|
| 5559 | ac_res=-l$ac_lib
|
---|
| 5560 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5561 | fi
|
---|
[25170] | 5562 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5563 | ac_cv_search_opendir=$ac_res
|
---|
[3365] | 5564 | fi
|
---|
[25170] | 5565 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5566 | conftest$ac_exeext
|
---|
| 5567 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5568 | break
|
---|
| 5569 | fi
|
---|
| 5570 | done
|
---|
[25170] | 5571 | if ${ac_cv_search_opendir+:} false; then :
|
---|
| 5572 |
|
---|
[10192] | 5573 | else
|
---|
[23356] | 5574 | ac_cv_search_opendir=no
|
---|
[3365] | 5575 | fi
|
---|
[23356] | 5576 | rm conftest.$ac_ext
|
---|
[10192] | 5577 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5578 | fi
|
---|
[25170] | 5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
[23356] | 5580 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5581 | ac_res=$ac_cv_search_opendir
|
---|
[25170] | 5582 | if test "$ac_res" != no; then :
|
---|
[23356] | 5583 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3365] | 5584 |
|
---|
| 5585 | fi
|
---|
| 5586 |
|
---|
[10192] | 5587 | fi
|
---|
| 5588 |
|
---|
[25170] | 5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
[23356] | 5590 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
[25170] | 5591 | if ${ac_cv_header_stdc+:} false; then :
|
---|
[23356] | 5592 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5593 | else
|
---|
[25170] | 5594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5595 | /* end confdefs.h. */
|
---|
[3365] | 5596 | #include <stdlib.h>
|
---|
| 5597 | #include <stdarg.h>
|
---|
| 5598 | #include <string.h>
|
---|
| 5599 | #include <float.h>
|
---|
[8063] | 5600 |
|
---|
[10192] | 5601 | int
|
---|
| 5602 | main ()
|
---|
| 5603 | {
|
---|
| 5604 |
|
---|
| 5605 | ;
|
---|
| 5606 | return 0;
|
---|
| 5607 | }
|
---|
[8063] | 5608 | _ACEOF
|
---|
[25170] | 5609 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5610 | ac_cv_header_stdc=yes
|
---|
| 5611 | else
|
---|
[25170] | 5612 | ac_cv_header_stdc=no
|
---|
[3365] | 5613 | fi
|
---|
[23356] | 5614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5615 |
|
---|
| 5616 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5617 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[25170] | 5618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5619 | /* end confdefs.h. */
|
---|
[3365] | 5620 | #include <string.h>
|
---|
[8063] | 5621 |
|
---|
| 5622 | _ACEOF
|
---|
[3365] | 5623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5624 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5625 |
|
---|
[3365] | 5626 | else
|
---|
| 5627 | ac_cv_header_stdc=no
|
---|
| 5628 | fi
|
---|
| 5629 | rm -f conftest*
|
---|
| 5630 |
|
---|
| 5631 | fi
|
---|
| 5632 |
|
---|
| 5633 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5634 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[25170] | 5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5636 | /* end confdefs.h. */
|
---|
[3365] | 5637 | #include <stdlib.h>
|
---|
[8063] | 5638 |
|
---|
| 5639 | _ACEOF
|
---|
[3365] | 5640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5641 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5642 |
|
---|
[3365] | 5643 | else
|
---|
| 5644 | ac_cv_header_stdc=no
|
---|
| 5645 | fi
|
---|
| 5646 | rm -f conftest*
|
---|
| 5647 |
|
---|
| 5648 | fi
|
---|
| 5649 |
|
---|
| 5650 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5651 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[25170] | 5652 | if test "$cross_compiling" = yes; then :
|
---|
[3365] | 5653 | :
|
---|
| 5654 | else
|
---|
[25170] | 5655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5656 | /* end confdefs.h. */
|
---|
[3365] | 5657 | #include <ctype.h>
|
---|
[23356] | 5658 | #include <stdlib.h>
|
---|
[8063] | 5659 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5660 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5661 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5662 | #else
|
---|
[10192] | 5663 | # define ISLOWER(c) \
|
---|
| 5664 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5665 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5666 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[8063] | 5667 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5668 | #endif
|
---|
| 5669 |
|
---|
[8059] | 5670 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8063] | 5671 | int
|
---|
| 5672 | main ()
|
---|
| 5673 | {
|
---|
| 5674 | int i;
|
---|
| 5675 | for (i = 0; i < 256; i++)
|
---|
| 5676 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10192] | 5677 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 5678 | return 2;
|
---|
| 5679 | return 0;
|
---|
[8063] | 5680 | }
|
---|
| 5681 | _ACEOF
|
---|
[25170] | 5682 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5683 |
|
---|
[25148] | 5684 | else
|
---|
[25170] | 5685 | ac_cv_header_stdc=no
|
---|
[3365] | 5686 | fi
|
---|
[25170] | 5687 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5688 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3365] | 5689 | fi
|
---|
[23356] | 5690 |
|
---|
[3365] | 5691 | fi
|
---|
| 5692 | fi
|
---|
[25170] | 5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
[23356] | 5694 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[8063] | 5695 | if test $ac_cv_header_stdc = yes; then
|
---|
[8059] | 5696 |
|
---|
[25170] | 5697 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[3365] | 5698 |
|
---|
| 5699 | fi
|
---|
| 5700 |
|
---|
[8063] | 5701 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[25170] | 5702 | do :
|
---|
| 5703 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5704 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
| 5705 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[10192] | 5706 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5707 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[10192] | 5708 | _ACEOF
|
---|
| 5709 |
|
---|
| 5710 | fi
|
---|
| 5711 |
|
---|
[3365] | 5712 | done
|
---|
| 5713 |
|
---|
[25170] | 5714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5715 | /* end confdefs.h. */
|
---|
[3365] | 5716 | #include <stdio.h>
|
---|
[8063] | 5717 |
|
---|
| 5718 | _ACEOF
|
---|
[3365] | 5719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5720 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
| 5721 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
[3365] | 5722 |
|
---|
| 5723 | fi
|
---|
| 5724 | rm -f conftest*
|
---|
| 5725 |
|
---|
[25170] | 5726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5727 | /* end confdefs.h. */
|
---|
[3365] | 5728 | #include <stdio.h>
|
---|
[8063] | 5729 |
|
---|
| 5730 | _ACEOF
|
---|
[3365] | 5731 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5732 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
| 5733 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
[3365] | 5734 |
|
---|
| 5735 | fi
|
---|
| 5736 | rm -f conftest*
|
---|
| 5737 |
|
---|
[25170] | 5738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5739 | /* end confdefs.h. */
|
---|
[3365] | 5740 | #include <sys/procfs.h>
|
---|
[8063] | 5741 |
|
---|
| 5742 | _ACEOF
|
---|
[3365] | 5743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5744 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
| 5745 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
[3365] | 5746 |
|
---|
| 5747 | fi
|
---|
| 5748 | rm -f conftest*
|
---|
| 5749 |
|
---|
[10192] | 5750 |
|
---|
[3365] | 5751 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5752 | # for constant arguments. Useless!
|
---|
[25170] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
[23356] | 5754 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
[25170] | 5755 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
[23356] | 5756 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5757 | else
|
---|
[25170] | 5758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5759 | /* end confdefs.h. */
|
---|
[3365] | 5760 | #include <alloca.h>
|
---|
[8063] | 5761 | int
|
---|
| 5762 | main ()
|
---|
| 5763 | {
|
---|
| 5764 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[23356] | 5765 | if (p) return 0;
|
---|
[8063] | 5766 | ;
|
---|
| 5767 | return 0;
|
---|
| 5768 | }
|
---|
| 5769 | _ACEOF
|
---|
[25170] | 5770 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5771 | ac_cv_working_alloca_h=yes
|
---|
[3365] | 5772 | else
|
---|
[25170] | 5773 | ac_cv_working_alloca_h=no
|
---|
[3365] | 5774 | fi
|
---|
[25170] | 5775 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5776 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5777 | fi
|
---|
[25170] | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
[23356] | 5779 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
[8063] | 5780 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[3365] | 5781 |
|
---|
[25170] | 5782 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
[3365] | 5783 |
|
---|
| 5784 | fi
|
---|
| 5785 |
|
---|
[25170] | 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
[23356] | 5787 | $as_echo_n "checking for alloca... " >&6; }
|
---|
[25170] | 5788 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
[23356] | 5789 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5790 | else
|
---|
[25170] | 5791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5792 | /* end confdefs.h. */
|
---|
[3365] | 5793 | #ifdef __GNUC__
|
---|
| 5794 | # define alloca __builtin_alloca
|
---|
| 5795 | #else
|
---|
| 5796 | # ifdef _MSC_VER
|
---|
| 5797 | # include <malloc.h>
|
---|
| 5798 | # define alloca _alloca
|
---|
| 5799 | # else
|
---|
[23356] | 5800 | # ifdef HAVE_ALLOCA_H
|
---|
[3365] | 5801 | # include <alloca.h>
|
---|
| 5802 | # else
|
---|
| 5803 | # ifdef _AIX
|
---|
| 5804 | #pragma alloca
|
---|
| 5805 | # else
|
---|
| 5806 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
[25170] | 5807 | void *alloca (size_t);
|
---|
[3365] | 5808 | # endif
|
---|
| 5809 | # endif
|
---|
| 5810 | # endif
|
---|
| 5811 | # endif
|
---|
| 5812 | #endif
|
---|
| 5813 |
|
---|
[8063] | 5814 | int
|
---|
| 5815 | main ()
|
---|
| 5816 | {
|
---|
| 5817 | char *p = (char *) alloca (1);
|
---|
[23356] | 5818 | if (p) return 0;
|
---|
[8063] | 5819 | ;
|
---|
| 5820 | return 0;
|
---|
| 5821 | }
|
---|
| 5822 | _ACEOF
|
---|
[25170] | 5823 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3365] | 5824 | ac_cv_func_alloca_works=yes
|
---|
| 5825 | else
|
---|
[25170] | 5826 | ac_cv_func_alloca_works=no
|
---|
[3365] | 5827 | fi
|
---|
[25170] | 5828 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5829 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5830 | fi
|
---|
[25170] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
[23356] | 5832 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
[3365] | 5833 |
|
---|
| 5834 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8063] | 5835 |
|
---|
[25170] | 5836 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
[3365] | 5837 |
|
---|
[8063] | 5838 | else
|
---|
| 5839 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5840 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5841 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5842 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8059] | 5843 |
|
---|
[23356] | 5844 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[8063] | 5845 |
|
---|
[25170] | 5846 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
[3365] | 5847 |
|
---|
[10192] | 5848 |
|
---|
[25170] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[23356] | 5850 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
[25170] | 5851 | if ${ac_cv_os_cray+:} false; then :
|
---|
[23356] | 5852 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5853 | else
|
---|
[25170] | 5854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5855 | /* end confdefs.h. */
|
---|
[23356] | 5856 | #if defined CRAY && ! defined CRAY2
|
---|
[3365] | 5857 | webecray
|
---|
| 5858 | #else
|
---|
| 5859 | wenotbecray
|
---|
| 5860 | #endif
|
---|
| 5861 |
|
---|
[8063] | 5862 | _ACEOF
|
---|
[3365] | 5863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5864 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
[3365] | 5865 | ac_cv_os_cray=yes
|
---|
| 5866 | else
|
---|
| 5867 | ac_cv_os_cray=no
|
---|
| 5868 | fi
|
---|
| 5869 | rm -f conftest*
|
---|
| 5870 |
|
---|
| 5871 | fi
|
---|
[25170] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
[23356] | 5873 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
[3365] | 5874 | if test $ac_cv_os_cray = yes; then
|
---|
[8063] | 5875 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[23356] | 5876 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[25170] | 5877 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5878 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
[10192] | 5879 |
|
---|
| 5880 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5881 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10192] | 5882 | _ACEOF
|
---|
[3365] | 5883 |
|
---|
[8063] | 5884 | break
|
---|
[3365] | 5885 | fi
|
---|
| 5886 |
|
---|
[8063] | 5887 | done
|
---|
[3365] | 5888 | fi
|
---|
| 5889 |
|
---|
[25170] | 5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
[23356] | 5891 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
[25170] | 5892 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
[23356] | 5893 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5894 | else
|
---|
[25170] | 5895 | if test "$cross_compiling" = yes; then :
|
---|
[3365] | 5896 | ac_cv_c_stack_direction=0
|
---|
| 5897 | else
|
---|
[25170] | 5898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5899 | /* end confdefs.h. */
|
---|
[23356] | 5900 | $ac_includes_default
|
---|
[8063] | 5901 | int
|
---|
[3365] | 5902 | find_stack_direction ()
|
---|
| 5903 | {
|
---|
| 5904 | static char *addr = 0;
|
---|
| 5905 | auto char dummy;
|
---|
| 5906 | if (addr == 0)
|
---|
| 5907 | {
|
---|
| 5908 | addr = &dummy;
|
---|
| 5909 | return find_stack_direction ();
|
---|
| 5910 | }
|
---|
| 5911 | else
|
---|
| 5912 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5913 | }
|
---|
[8063] | 5914 |
|
---|
| 5915 | int
|
---|
[3365] | 5916 | main ()
|
---|
| 5917 | {
|
---|
[23356] | 5918 | return find_stack_direction () < 0;
|
---|
[3365] | 5919 | }
|
---|
[8063] | 5920 | _ACEOF
|
---|
[25170] | 5921 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[3365] | 5922 | ac_cv_c_stack_direction=1
|
---|
| 5923 | else
|
---|
[25170] | 5924 | ac_cv_c_stack_direction=-1
|
---|
[3365] | 5925 | fi
|
---|
[25170] | 5926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5927 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3365] | 5928 | fi
|
---|
[23356] | 5929 |
|
---|
[3365] | 5930 | fi
|
---|
[25170] | 5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
[23356] | 5932 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
[10192] | 5933 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5934 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10192] | 5935 | _ACEOF
|
---|
[3365] | 5936 |
|
---|
[10192] | 5937 |
|
---|
[3365] | 5938 | fi
|
---|
| 5939 |
|
---|
[8063] | 5940 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[25170] | 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
[23356] | 5942 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
[25170] | 5943 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
[23356] | 5944 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5945 | else
|
---|
| 5946 | ac_pattern="Autoconf.*'x'"
|
---|
[25170] | 5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5948 | /* end confdefs.h. */
|
---|
[3365] | 5949 | #include <sgtty.h>
|
---|
| 5950 | Autoconf TIOCGETP
|
---|
[8063] | 5951 | _ACEOF
|
---|
[3365] | 5952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5953 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3365] | 5954 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5955 | else
|
---|
| 5956 | ac_cv_prog_gcc_traditional=no
|
---|
| 5957 | fi
|
---|
| 5958 | rm -f conftest*
|
---|
| 5959 |
|
---|
[10192] | 5960 |
|
---|
[3365] | 5961 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[25170] | 5962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5963 | /* end confdefs.h. */
|
---|
[3365] | 5964 | #include <termio.h>
|
---|
| 5965 | Autoconf TCGETA
|
---|
[8063] | 5966 | _ACEOF
|
---|
[3365] | 5967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5968 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3365] | 5969 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5970 | fi
|
---|
| 5971 | rm -f conftest*
|
---|
| 5972 |
|
---|
| 5973 | fi
|
---|
| 5974 | fi
|
---|
[25170] | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[23356] | 5976 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[3365] | 5977 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5978 | CC="$CC -traditional"
|
---|
| 5979 | fi
|
---|
| 5980 | fi
|
---|
| 5981 |
|
---|
[25170] | 5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
[23356] | 5983 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
[25170] | 5984 | if ${ac_cv_type_signal+:} false; then :
|
---|
[23356] | 5985 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5986 | else
|
---|
[25170] | 5987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5988 | /* end confdefs.h. */
|
---|
[3365] | 5989 | #include <sys/types.h>
|
---|
| 5990 | #include <signal.h>
|
---|
| 5991 |
|
---|
[8063] | 5992 | int
|
---|
| 5993 | main ()
|
---|
| 5994 | {
|
---|
[23356] | 5995 | return *(signal (0, 0)) (0) == 1;
|
---|
[8063] | 5996 | ;
|
---|
| 5997 | return 0;
|
---|
| 5998 | }
|
---|
| 5999 | _ACEOF
|
---|
[25170] | 6000 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6001 | ac_cv_type_signal=int
|
---|
| 6002 | else
|
---|
[25170] | 6003 | ac_cv_type_signal=void
|
---|
[3365] | 6004 | fi
|
---|
[23356] | 6005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 6006 | fi
|
---|
[25170] | 6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
[23356] | 6008 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
[3365] | 6009 |
|
---|
[10192] | 6010 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 6011 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10192] | 6012 | _ACEOF
|
---|
[3365] | 6013 |
|
---|
[10192] | 6014 |
|
---|
[8063] | 6015 | for ac_func in vprintf
|
---|
[25170] | 6016 | do :
|
---|
| 6017 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
| 6018 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
[10192] | 6019 | cat >>confdefs.h <<_ACEOF
|
---|
[25170] | 6020 | #define HAVE_VPRINTF 1
|
---|
[10192] | 6021 | _ACEOF
|
---|
[3365] | 6022 |
|
---|
[25170] | 6023 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
| 6024 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
[10192] | 6025 |
|
---|
[25170] | 6026 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
[10192] | 6027 |
|
---|
[3365] | 6028 | fi
|
---|
| 6029 |
|
---|
| 6030 | fi
|
---|
[8063] | 6031 | done
|
---|
[3365] | 6032 |
|
---|
[10192] | 6033 |
|
---|
[3365] | 6034 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[25170] | 6035 | do :
|
---|
| 6036 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6037 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 6038 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
[10192] | 6039 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 6040 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[10192] | 6041 | _ACEOF
|
---|
[8059] | 6042 |
|
---|
[3365] | 6043 | fi
|
---|
| 6044 | done
|
---|
| 6045 |
|
---|
[25170] | 6046 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
| 6047 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
| 6048 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
[25148] | 6049 |
|
---|
| 6050 | else
|
---|
[25170] | 6051 | case " $LIBOBJS " in
|
---|
| 6052 | *" ftruncate.$ac_objext "* ) ;;
|
---|
| 6053 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
| 6054 | ;;
|
---|
[25148] | 6055 | esac
|
---|
| 6056 |
|
---|
| 6057 | fi
|
---|
| 6058 |
|
---|
[25170] | 6059 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
| 6060 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
| 6061 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
[10192] | 6062 |
|
---|
[3365] | 6063 | else
|
---|
[23356] | 6064 | case " $LIBOBJS " in
|
---|
[25170] | 6065 | *" strstr.$ac_objext "* ) ;;
|
---|
| 6066 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
[23356] | 6067 | ;;
|
---|
| 6068 | esac
|
---|
[10192] | 6069 |
|
---|
[23356] | 6070 | fi
|
---|
[10192] | 6071 |
|
---|
[25170] | 6072 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
| 6073 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
| 6074 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
[10192] | 6075 |
|
---|
[25148] | 6076 | else
|
---|
[25170] | 6077 | case " $LIBOBJS " in
|
---|
| 6078 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
| 6079 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
| 6080 | ;;
|
---|
| 6081 | esac
|
---|
[10192] | 6082 |
|
---|
[25170] | 6083 | fi
|
---|
[25148] | 6084 |
|
---|
| 6085 |
|
---|
| 6086 |
|
---|
| 6087 |
|
---|
[25170] | 6088 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
| 6089 | if test "x$ac_cv_func_textdomain" = xyes; then :
|
---|
| 6090 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
[25148] | 6091 |
|
---|
[8059] | 6092 | fi
|
---|
[8063] | 6093 |
|
---|
[8059] | 6094 |
|
---|
[10192] | 6095 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6096 | # a non-standard Path
|
---|
[10917] | 6097 | # is there a better way to do this??
|
---|
[25170] | 6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
[23356] | 6099 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
[10917] | 6100 | # set defaults
|
---|
| 6101 | JNIINC=""
|
---|
| 6102 | JNISUFFIX="so"
|
---|
| 6103 | JNIFLAGS="-shared"
|
---|
| 6104 |
|
---|
[10192] | 6105 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[25170] | 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
[23356] | 6107 | $as_echo "Darwin" >&6; }
|
---|
[10192] | 6108 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6109 | JNISUFFIX="jnilib"
|
---|
[10917] | 6110 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10192] | 6111 | fi
|
---|
[10917] | 6112 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
[25170] | 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
[23356] | 6114 | $as_echo "Solaris" >&6; }
|
---|
[10917] | 6115 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6116 | fi
|
---|
| 6117 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
[25170] | 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
[23356] | 6119 | $as_echo "Linux" >&6; }
|
---|
[18598] | 6120 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
[10917] | 6121 | fi
|
---|
[10192] | 6122 |
|
---|
| 6123 |
|
---|
| 6124 |
|
---|
| 6125 |
|
---|
[10917] | 6126 |
|
---|
[3365] | 6127 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6128 | # ---------------------------------------------------------------------------
|
---|
[25170] | 6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
[23356] | 6130 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
[3365] | 6131 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[25170] | 6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 6133 | $as_echo "yes" >&6; }
|
---|
| 6134 | case " $LIBOBJS " in
|
---|
[10192] | 6135 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 6136 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 6137 | ;;
|
---|
[10192] | 6138 | esac
|
---|
| 6139 |
|
---|
[25170] | 6140 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
[3365] | 6141 |
|
---|
| 6142 | else
|
---|
[25170] | 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6144 | $as_echo "no" >&6; }
|
---|
[25170] | 6145 | for ac_func in valloc
|
---|
| 6146 | do :
|
---|
| 6147 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
| 6148 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
[10192] | 6149 | cat >>confdefs.h <<_ACEOF
|
---|
[25170] | 6150 | #define HAVE_VALLOC 1
|
---|
[10192] | 6151 | _ACEOF
|
---|
[8059] | 6152 |
|
---|
[3365] | 6153 | fi
|
---|
| 6154 | done
|
---|
| 6155 |
|
---|
| 6156 | fi
|
---|
| 6157 |
|
---|
[25170] | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
[23356] | 6159 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
[8063] | 6160 |
|
---|
[23356] | 6161 | # Check whether --with-dmalloc was given.
|
---|
[25170] | 6162 | if test "${with_dmalloc+set}" = set; then :
|
---|
[23356] | 6163 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
[25170] | 6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 6165 | $as_echo "yes" >&6; }
|
---|
[25170] | 6166 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
[3365] | 6167 |
|
---|
| 6168 | LIBS="$LIBS -ldmalloc"
|
---|
| 6169 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6170 | else
|
---|
[25170] | 6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6172 | $as_echo "no" >&6; }
|
---|
[3365] | 6173 | fi
|
---|
| 6174 | else
|
---|
[25170] | 6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6176 | $as_echo "no" >&6; }
|
---|
| 6177 | fi
|
---|
[3365] | 6178 |
|
---|
| 6179 |
|
---|
[25170] | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
[23356] | 6181 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
| 6182 |
|
---|
| 6183 | # Check whether --with-regex was given.
|
---|
[25170] | 6184 | if test "${with_regex+set}" = set; then :
|
---|
[23356] | 6185 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[3365] | 6186 | ac_with_regex=1
|
---|
[25170] | 6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
[23356] | 6188 | $as_echo "regex" >&6; }
|
---|
[25170] | 6189 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
[3365] | 6190 |
|
---|
[23356] | 6191 | case " $LIBOBJS " in
|
---|
[10848] | 6192 | *" regex.$ac_objext "* ) ;;
|
---|
[23356] | 6193 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 6194 | ;;
|
---|
[10848] | 6195 | esac
|
---|
| 6196 |
|
---|
[3365] | 6197 | fi
|
---|
[23356] | 6198 | fi
|
---|
| 6199 |
|
---|
[3365] | 6200 | if test -z "$ac_with_regex"; then
|
---|
[25170] | 6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
[23356] | 6202 | $as_echo "rx" >&6; }
|
---|
[25170] | 6203 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
| 6204 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
[10192] | 6205 |
|
---|
[3365] | 6206 | else
|
---|
[23356] | 6207 | # The cast to long int works around a bug in the HP C Compiler
|
---|
| 6208 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
| 6209 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
| 6210 | # This bug is HP SR number 8606223364.
|
---|
[25170] | 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
|
---|
[23356] | 6212 | $as_echo_n "checking size of unsigned char *... " >&6; }
|
---|
[25170] | 6213 | if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
|
---|
[23356] | 6214 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 6215 | else
|
---|
[25170] | 6216 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
|
---|
[10192] | 6217 |
|
---|
[8063] | 6218 | else
|
---|
[25170] | 6219 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
| 6220 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 6221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 6222 | as_fn_error 77 "cannot compute sizeof (unsigned char *)
|
---|
| 6223 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[23356] | 6224 | else
|
---|
| 6225 | ac_cv_sizeof_unsigned_char_p=0
|
---|
| 6226 | fi
|
---|
[8063] | 6227 | fi
|
---|
[25170] | 6228 |
|
---|
[8063] | 6229 | fi
|
---|
[25170] | 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
[23356] | 6231 | $as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
|
---|
[10192] | 6232 |
|
---|
| 6233 |
|
---|
| 6234 |
|
---|
| 6235 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 6236 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
[10192] | 6237 | _ACEOF
|
---|
[3365] | 6238 |
|
---|
[10192] | 6239 |
|
---|
[3365] | 6240 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 6241 | then
|
---|
[25170] | 6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 6243 | find a local rx library and the one included with this
|
---|
| 6244 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
[23356] | 6245 | $as_echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 6246 | find a local rx library and the one included with this
|
---|
| 6247 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
[23356] | 6248 | case " $LIBOBJS " in
|
---|
[10848] | 6249 | *" regex.$ac_objext "* ) ;;
|
---|
[23356] | 6250 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 6251 | ;;
|
---|
[10848] | 6252 | esac
|
---|
| 6253 |
|
---|
[3365] | 6254 | else
|
---|
[23356] | 6255 | case " $LIBOBJS " in
|
---|
[10848] | 6256 | *" rx.$ac_objext "* ) ;;
|
---|
[23356] | 6257 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 6258 | ;;
|
---|
[10848] | 6259 | esac
|
---|
| 6260 |
|
---|
[3365] | 6261 | fi
|
---|
[8063] | 6262 |
|
---|
[3365] | 6263 | fi
|
---|
| 6264 |
|
---|
| 6265 | fi
|
---|
| 6266 |
|
---|
[25170] | 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU readline requested" >&5
|
---|
[23356] | 6268 | $as_echo_n "checking whether GNU readline requested... " >&6; }
|
---|
[8063] | 6269 |
|
---|
[23356] | 6270 | # Check whether --with-gnu_readline was given.
|
---|
[25170] | 6271 | if test "${with_gnu_readline+set}" = set; then :
|
---|
[23356] | 6272 | withval=$with_gnu_readline; if test "$withval" = yes; then
|
---|
[25170] | 6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 6274 | $as_echo "yes" >&6; }
|
---|
[3365] | 6275 | ac_with_gnu_readline=1
|
---|
| 6276 | else
|
---|
[25170] | 6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6278 | $as_echo "no" >&6; }
|
---|
[3365] | 6279 | fi
|
---|
| 6280 | else
|
---|
[25170] | 6281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6282 | $as_echo "no" >&6; }
|
---|
[10192] | 6283 | fi
|
---|
| 6284 |
|
---|
| 6285 |
|
---|
[23356] | 6286 | if test -n "$ac_with_gnu_readline"; then
|
---|
[25170] | 6287 | ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
|
---|
| 6288 | if test "x$ac_cv_header_readline_readline_h" = xyes; then :
|
---|
[3365] | 6289 | ac_mg_readline_header_found=1
|
---|
| 6290 | else
|
---|
[25170] | 6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 6292 | GNU readline support" >&5
|
---|
[23356] | 6293 | $as_echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 6294 | GNU readline support" >&2;}
|
---|
[3365] | 6295 | fi
|
---|
| 6296 |
|
---|
[10192] | 6297 |
|
---|
[3365] | 6298 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 6299 | # first check whether we can find the readline library itself
|
---|
[25170] | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
|
---|
[23356] | 6301 | $as_echo_n "checking for main in -lreadline... " >&6; }
|
---|
[25170] | 6302 | if ${ac_cv_lib_readline_main+:} false; then :
|
---|
[23356] | 6303 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 6304 | else
|
---|
[8063] | 6305 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 6306 | LIBS="-lreadline $LIBS"
|
---|
[25170] | 6307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 6308 | /* end confdefs.h. */
|
---|
[3365] | 6309 |
|
---|
[10192] | 6310 |
|
---|
[8063] | 6311 | int
|
---|
| 6312 | main ()
|
---|
| 6313 | {
|
---|
[23356] | 6314 | return main ();
|
---|
[8063] | 6315 | ;
|
---|
| 6316 | return 0;
|
---|
| 6317 | }
|
---|
| 6318 | _ACEOF
|
---|
[25170] | 6319 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 6320 | ac_cv_lib_readline_main=yes
|
---|
[3365] | 6321 | else
|
---|
[25170] | 6322 | ac_cv_lib_readline_main=no
|
---|
[3365] | 6323 | fi
|
---|
[25170] | 6324 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 6325 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 6326 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 6327 | fi
|
---|
[25170] | 6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
|
---|
[23356] | 6329 | $as_echo "$ac_cv_lib_readline_main" >&6; }
|
---|
[25170] | 6330 | if test "x$ac_cv_lib_readline_main" = xyes; then :
|
---|
[3365] | 6331 | ac_mg_readline_lib_found=1
|
---|
[25170] | 6332 | $as_echo "#define WITH_GNU_READLINE 1" >>confdefs.h
|
---|
[3365] | 6333 |
|
---|
| 6334 | LIBS="$LIBS -lreadline"
|
---|
| 6335 | else
|
---|
[25170] | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 6337 | GNU readline support" >&5
|
---|
[23356] | 6338 | $as_echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 6339 | GNU readline support" >&2;}
|
---|
[3365] | 6340 | fi
|
---|
| 6341 |
|
---|
| 6342 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
[8063] | 6343 | # on some systems, readline needs curses. It is difficult to
|
---|
[3365] | 6344 | # determine whether this is necessary on the current system,
|
---|
| 6345 | # since other undefined symbols can be turned up by an
|
---|
| 6346 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 6347 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 6348 | # we just bung it on and hope for the best.
|
---|
[25170] | 6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
|
---|
[23356] | 6350 | $as_echo_n "checking for main in -lcurses... " >&6; }
|
---|
[25170] | 6351 | if ${ac_cv_lib_curses_main+:} false; then :
|
---|
[23356] | 6352 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 6353 | else
|
---|
[8063] | 6354 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 6355 | LIBS="-lcurses $LIBS"
|
---|
[25170] | 6356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 6357 | /* end confdefs.h. */
|
---|
[3365] | 6358 |
|
---|
[10192] | 6359 |
|
---|
[8063] | 6360 | int
|
---|
| 6361 | main ()
|
---|
| 6362 | {
|
---|
[23356] | 6363 | return main ();
|
---|
[8063] | 6364 | ;
|
---|
| 6365 | return 0;
|
---|
| 6366 | }
|
---|
| 6367 | _ACEOF
|
---|
[25170] | 6368 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 6369 | ac_cv_lib_curses_main=yes
|
---|
[3365] | 6370 | else
|
---|
[25170] | 6371 | ac_cv_lib_curses_main=no
|
---|
[3365] | 6372 | fi
|
---|
[25170] | 6373 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 6374 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 6375 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 6376 | fi
|
---|
[25170] | 6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
|
---|
[23356] | 6378 | $as_echo "$ac_cv_lib_curses_main" >&6; }
|
---|
[25170] | 6379 | if test "x$ac_cv_lib_curses_main" = xyes; then :
|
---|
[3365] | 6380 | LIBS="$LIBS -lcurses"
|
---|
| 6381 | fi
|
---|
| 6382 |
|
---|
| 6383 | fi
|
---|
| 6384 | fi
|
---|
| 6385 | fi
|
---|
| 6386 |
|
---|
[10192] | 6387 |
|
---|
[10848] | 6388 | # text for endianness
|
---|
[25170] | 6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
[23356] | 6390 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
[25170] | 6391 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
[23356] | 6392 | $as_echo_n "(cached) " >&6
|
---|
[10848] | 6393 | else
|
---|
[23356] | 6394 | ac_cv_c_bigendian=unknown
|
---|
| 6395 | # See if we're dealing with a universal compiler.
|
---|
[25170] | 6396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6397 | /* end confdefs.h. */
|
---|
| 6398 | #ifndef __APPLE_CC__
|
---|
| 6399 | not a universal capable compiler
|
---|
| 6400 | #endif
|
---|
| 6401 | typedef int dummy;
|
---|
| 6402 |
|
---|
[10848] | 6403 | _ACEOF
|
---|
[25170] | 6404 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6405 |
|
---|
| 6406 | # Check for potential -arch flags. It is not universal unless
|
---|
[25170] | 6407 | # there are at least two -arch flags with different values.
|
---|
| 6408 | ac_arch=
|
---|
| 6409 | ac_prev=
|
---|
| 6410 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
| 6411 | if test -n "$ac_prev"; then
|
---|
| 6412 | case $ac_word in
|
---|
| 6413 | i?86 | x86_64 | ppc | ppc64)
|
---|
| 6414 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
| 6415 | ac_arch=$ac_word
|
---|
| 6416 | else
|
---|
| 6417 | ac_cv_c_bigendian=universal
|
---|
| 6418 | break
|
---|
| 6419 | fi
|
---|
| 6420 | ;;
|
---|
| 6421 | esac
|
---|
| 6422 | ac_prev=
|
---|
| 6423 | elif test "x$ac_word" = "x-arch"; then
|
---|
| 6424 | ac_prev=arch
|
---|
| 6425 | fi
|
---|
| 6426 | done
|
---|
[23356] | 6427 | fi
|
---|
| 6428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6429 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6430 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
[25170] | 6431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6432 | /* end confdefs.h. */
|
---|
| 6433 | #include <sys/types.h>
|
---|
[23356] | 6434 | #include <sys/param.h>
|
---|
[10848] | 6435 |
|
---|
| 6436 | int
|
---|
| 6437 | main ()
|
---|
| 6438 | {
|
---|
[23356] | 6439 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
| 6440 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
| 6441 | && LITTLE_ENDIAN)
|
---|
| 6442 | bogus endian macros
|
---|
| 6443 | #endif
|
---|
[10848] | 6444 |
|
---|
| 6445 | ;
|
---|
| 6446 | return 0;
|
---|
| 6447 | }
|
---|
| 6448 | _ACEOF
|
---|
[25170] | 6449 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10848] | 6450 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[25170] | 6451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6452 | /* end confdefs.h. */
|
---|
| 6453 | #include <sys/types.h>
|
---|
[23356] | 6454 | #include <sys/param.h>
|
---|
[10848] | 6455 |
|
---|
| 6456 | int
|
---|
| 6457 | main ()
|
---|
| 6458 | {
|
---|
| 6459 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[23356] | 6460 | not big endian
|
---|
| 6461 | #endif
|
---|
[10848] | 6462 |
|
---|
| 6463 | ;
|
---|
| 6464 | return 0;
|
---|
| 6465 | }
|
---|
| 6466 | _ACEOF
|
---|
[25170] | 6467 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10848] | 6468 | ac_cv_c_bigendian=yes
|
---|
| 6469 | else
|
---|
[25170] | 6470 | ac_cv_c_bigendian=no
|
---|
[10848] | 6471 | fi
|
---|
[23356] | 6472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6473 | fi
|
---|
| 6474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6475 | fi
|
---|
| 6476 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6477 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
[25170] | 6478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6479 | /* end confdefs.h. */
|
---|
| 6480 | #include <limits.h>
|
---|
[10848] | 6481 |
|
---|
[23356] | 6482 | int
|
---|
| 6483 | main ()
|
---|
| 6484 | {
|
---|
| 6485 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
| 6486 | bogus endian macros
|
---|
| 6487 | #endif
|
---|
| 6488 |
|
---|
| 6489 | ;
|
---|
| 6490 | return 0;
|
---|
| 6491 | }
|
---|
[10848] | 6492 | _ACEOF
|
---|
[25170] | 6493 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6494 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
[25170] | 6495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6496 | /* end confdefs.h. */
|
---|
[23356] | 6497 | #include <limits.h>
|
---|
| 6498 |
|
---|
[10848] | 6499 | int
|
---|
| 6500 | main ()
|
---|
| 6501 | {
|
---|
[23356] | 6502 | #ifndef _BIG_ENDIAN
|
---|
| 6503 | not big endian
|
---|
| 6504 | #endif
|
---|
| 6505 |
|
---|
[10848] | 6506 | ;
|
---|
| 6507 | return 0;
|
---|
| 6508 | }
|
---|
| 6509 | _ACEOF
|
---|
[25170] | 6510 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10848] | 6511 | ac_cv_c_bigendian=yes
|
---|
[23356] | 6512 | else
|
---|
[25170] | 6513 | ac_cv_c_bigendian=no
|
---|
[10848] | 6514 | fi
|
---|
[23356] | 6515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10848] | 6516 | fi
|
---|
[23356] | 6517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6518 | fi
|
---|
| 6519 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6520 | # Compile a test program.
|
---|
[25170] | 6521 | if test "$cross_compiling" = yes; then :
|
---|
[23356] | 6522 | # Try to guess by grepping values from an object file.
|
---|
[25170] | 6523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6524 | /* end confdefs.h. */
|
---|
| 6525 | short int ascii_mm[] =
|
---|
| 6526 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 6527 | short int ascii_ii[] =
|
---|
| 6528 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 6529 | int use_ascii (int i) {
|
---|
| 6530 | return ascii_mm[i] + ascii_ii[i];
|
---|
| 6531 | }
|
---|
| 6532 | short int ebcdic_ii[] =
|
---|
| 6533 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 6534 | short int ebcdic_mm[] =
|
---|
| 6535 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 6536 | int use_ebcdic (int i) {
|
---|
| 6537 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
| 6538 | }
|
---|
| 6539 | extern int foo;
|
---|
[10848] | 6540 |
|
---|
[23356] | 6541 | int
|
---|
| 6542 | main ()
|
---|
| 6543 | {
|
---|
| 6544 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
| 6545 | ;
|
---|
| 6546 | return 0;
|
---|
| 6547 | }
|
---|
| 6548 | _ACEOF
|
---|
[25170] | 6549 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6550 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
| 6551 | ac_cv_c_bigendian=yes
|
---|
| 6552 | fi
|
---|
| 6553 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 6554 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 6555 | ac_cv_c_bigendian=no
|
---|
| 6556 | else
|
---|
| 6557 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6558 | ac_cv_c_bigendian=unknown
|
---|
| 6559 | fi
|
---|
| 6560 | fi
|
---|
[10848] | 6561 | fi
|
---|
[23356] | 6562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10848] | 6563 | else
|
---|
[25170] | 6564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6565 | /* end confdefs.h. */
|
---|
[23356] | 6566 | $ac_includes_default
|
---|
[10848] | 6567 | int
|
---|
| 6568 | main ()
|
---|
| 6569 | {
|
---|
[23356] | 6570 |
|
---|
| 6571 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6572 | union
|
---|
| 6573 | {
|
---|
| 6574 | long int l;
|
---|
| 6575 | char c[sizeof (long int)];
|
---|
| 6576 | } u;
|
---|
| 6577 | u.l = 1;
|
---|
| 6578 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 6579 |
|
---|
| 6580 | ;
|
---|
| 6581 | return 0;
|
---|
[10848] | 6582 | }
|
---|
| 6583 | _ACEOF
|
---|
[25170] | 6584 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[10848] | 6585 | ac_cv_c_bigendian=no
|
---|
| 6586 | else
|
---|
[25170] | 6587 | ac_cv_c_bigendian=yes
|
---|
[10848] | 6588 | fi
|
---|
[25170] | 6589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 6590 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10848] | 6591 | fi
|
---|
[23356] | 6592 |
|
---|
| 6593 | fi
|
---|
[10848] | 6594 | fi
|
---|
[25170] | 6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
[23356] | 6596 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
| 6597 | case $ac_cv_c_bigendian in #(
|
---|
| 6598 | yes)
|
---|
[25170] | 6599 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
[23356] | 6600 | ;; #(
|
---|
| 6601 | no)
|
---|
| 6602 | ;; #(
|
---|
| 6603 | universal)
|
---|
[10848] | 6604 |
|
---|
[25170] | 6605 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
[10848] | 6606 |
|
---|
[23356] | 6607 | ;; #(
|
---|
| 6608 | *)
|
---|
[25170] | 6609 | as_fn_error $? "unknown endianness
|
---|
| 6610 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
[23356] | 6611 | esac
|
---|
[10848] | 6612 |
|
---|
[23356] | 6613 |
|
---|
[3365] | 6614 | # ---------------------------------------------------------------------------
|
---|
| 6615 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[23356] | 6616 | case " $LIBOBJS " in
|
---|
[10192] | 6617 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 6618 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 6619 | ;;
|
---|
[10192] | 6620 | esac
|
---|
| 6621 |
|
---|
[23356] | 6622 | case " $LIBOBJS " in
|
---|
[10192] | 6623 | *" error.$ac_objext "* ) ;;
|
---|
[23356] | 6624 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 6625 | ;;
|
---|
[10192] | 6626 | esac
|
---|
| 6627 |
|
---|
[3365] | 6628 | fi
|
---|
| 6629 |
|
---|
[10192] | 6630 |
|
---|
[3365] | 6631 | # ---------------------------------------------------------------------------
|
---|
| 6632 | # see if the user wants to override use of long long
|
---|
[23356] | 6633 | # Check whether --enable-override-longlong was given.
|
---|
[25170] | 6634 | if test "${enable_override_longlong+set}" = set; then :
|
---|
| 6635 | enableval=$enable_override_longlong; $as_echo "#define DISABLE_LONG_LONG 1" >>confdefs.h
|
---|
[3365] | 6636 |
|
---|
[23356] | 6637 | fi
|
---|
[3365] | 6638 |
|
---|
[10848] | 6639 |
|
---|
[23356] | 6640 |
|
---|
[3365] | 6641 | # ---------------------------------------------------------------------------
|
---|
| 6642 |
|
---|
[23356] | 6643 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
| 6644 |
|
---|
| 6645 | ac_config_commands="$ac_config_commands default"
|
---|
| 6646 |
|
---|
[8063] | 6647 | cat >confcache <<\_ACEOF
|
---|
[3365] | 6648 | # This file is a shell script that caches the results of configure
|
---|
| 6649 | # tests run on this system so they can be shared between configure
|
---|
[8063] | 6650 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6651 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6652 | # want to keep, you may remove or edit it.
|
---|
[3365] | 6653 | #
|
---|
[8063] | 6654 | # config.status only pays attention to the cache file if you give it
|
---|
| 6655 | # the --recheck option to rerun configure.
|
---|
[3365] | 6656 | #
|
---|
[10192] | 6657 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[8063] | 6658 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6659 | # following values.
|
---|
| 6660 |
|
---|
| 6661 | _ACEOF
|
---|
| 6662 |
|
---|
[3365] | 6663 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6664 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[23356] | 6665 | # So, we kill variables containing newlines.
|
---|
[3365] | 6666 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6667 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[23356] | 6668 | (
|
---|
| 6669 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6670 | eval ac_val=\$$ac_var
|
---|
| 6671 | case $ac_val in #(
|
---|
| 6672 | *${as_nl}*)
|
---|
| 6673 | case $ac_var in #(
|
---|
[25170] | 6674 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
[23356] | 6675 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6676 | esac
|
---|
| 6677 | case $ac_var in #(
|
---|
| 6678 | _ | IFS | as_nl) ;; #(
|
---|
| 6679 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
[25170] | 6680 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
[23356] | 6681 | esac ;;
|
---|
| 6682 | esac
|
---|
| 6683 | done
|
---|
| 6684 |
|
---|
[8063] | 6685 | (set) 2>&1 |
|
---|
[23356] | 6686 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6687 | *${as_nl}ac_space=\ *)
|
---|
[25170] | 6688 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6689 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
[8063] | 6690 | sed -n \
|
---|
[10192] | 6691 | "s/'/'\\\\''/g;
|
---|
| 6692 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[23356] | 6693 | ;; #(
|
---|
[8063] | 6694 | *)
|
---|
| 6695 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[23356] | 6696 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8063] | 6697 | ;;
|
---|
[23356] | 6698 | esac |
|
---|
| 6699 | sort
|
---|
| 6700 | ) |
|
---|
[8063] | 6701 | sed '
|
---|
[23356] | 6702 | /^ac_cv_env_/b end
|
---|
[8063] | 6703 | t clear
|
---|
[23356] | 6704 | :clear
|
---|
[8063] | 6705 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6706 | t end
|
---|
[23356] | 6707 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6708 | :end' >>confcache
|
---|
| 6709 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6710 | if test -w "$cache_file"; then
|
---|
[25170] | 6711 | if test "x$cache_file" != "x/dev/null"; then
|
---|
| 6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
[23356] | 6713 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[25170] | 6714 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
| 6715 | cat confcache >"$cache_file"
|
---|
| 6716 | else
|
---|
| 6717 | case $cache_file in #(
|
---|
| 6718 | */* | ?:*)
|
---|
| 6719 | mv -f confcache "$cache_file"$$ &&
|
---|
| 6720 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
| 6721 | *)
|
---|
| 6722 | mv -f confcache "$cache_file" ;;
|
---|
| 6723 | esac
|
---|
| 6724 | fi
|
---|
| 6725 | fi
|
---|
[3365] | 6726 | else
|
---|
[25170] | 6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
[23356] | 6728 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[3365] | 6729 | fi
|
---|
| 6730 | fi
|
---|
| 6731 | rm -f confcache
|
---|
| 6732 |
|
---|
| 6733 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6734 | # Let make expand exec_prefix.
|
---|
| 6735 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6736 |
|
---|
| 6737 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6738 |
|
---|
[10192] | 6739 | ac_libobjs=
|
---|
| 6740 | ac_ltlibobjs=
|
---|
[25170] | 6741 | U=
|
---|
[10192] | 6742 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6743 | # 1. Remove the extension, and $U if already installed.
|
---|
[23356] | 6744 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6745 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6746 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6747 | # will be set to the directory where LIBOBJS objects are built.
|
---|
[25170] | 6748 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6749 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[10192] | 6750 | done
|
---|
| 6751 | LIBOBJS=$ac_libobjs
|
---|
| 6752 |
|
---|
| 6753 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6754 |
|
---|
| 6755 |
|
---|
| 6756 |
|
---|
[23356] | 6757 |
|
---|
[25170] | 6758 | : "${CONFIG_STATUS=./config.status}"
|
---|
[23356] | 6759 | ac_write_fail=0
|
---|
[8063] | 6760 | ac_clean_files_save=$ac_clean_files
|
---|
| 6761 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[25170] | 6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
[23356] | 6763 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
[25170] | 6764 | as_write_fail=0
|
---|
| 6765 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
[8063] | 6766 | #! $SHELL
|
---|
[10192] | 6767 | # Generated by $as_me.
|
---|
[3365] | 6768 | # Run this file to recreate the current configuration.
|
---|
| 6769 | # Compiler output produced by configure, useful for debugging
|
---|
[8063] | 6770 | # configure, is in config.log if it exists.
|
---|
[3365] | 6771 |
|
---|
[8063] | 6772 | debug=false
|
---|
[10192] | 6773 | ac_cs_recheck=false
|
---|
| 6774 | ac_cs_silent=false
|
---|
[25170] | 6775 |
|
---|
[8063] | 6776 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[25170] | 6777 | export SHELL
|
---|
| 6778 | _ASEOF
|
---|
| 6779 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6780 | ## -------------------- ##
|
---|
| 6781 | ## M4sh Initialization. ##
|
---|
| 6782 | ## -------------------- ##
|
---|
[8063] | 6783 |
|
---|
[23356] | 6784 | # Be more Bourne compatible
|
---|
| 6785 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[25170] | 6786 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8063] | 6787 | emulate sh
|
---|
| 6788 | NULLCMD=:
|
---|
[23356] | 6789 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10192] | 6790 | # is contrary to our usage. Disable this feature.
|
---|
| 6791 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 6792 | setopt NO_GLOB_SUBST
|
---|
| 6793 | else
|
---|
[25170] | 6794 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6795 | *posix*) :
|
---|
| 6796 | set -o posix ;; #(
|
---|
| 6797 | *) :
|
---|
| 6798 | ;;
|
---|
[23356] | 6799 | esac
|
---|
[8063] | 6800 | fi
|
---|
| 6801 |
|
---|
[23356] | 6802 |
|
---|
| 6803 | as_nl='
|
---|
| 6804 | '
|
---|
| 6805 | export as_nl
|
---|
| 6806 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6807 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6808 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6809 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
[25170] | 6810 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6811 | # but without wasting forks for bash or zsh.
|
---|
| 6812 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6813 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6814 | as_echo='print -r --'
|
---|
| 6815 | as_echo_n='print -rn --'
|
---|
| 6816 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
[23356] | 6817 | as_echo='printf %s\n'
|
---|
| 6818 | as_echo_n='printf %s'
|
---|
[10192] | 6819 | else
|
---|
[23356] | 6820 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6821 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6822 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6823 | else
|
---|
| 6824 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6825 | as_echo_n_body='eval
|
---|
| 6826 | arg=$1;
|
---|
[25170] | 6827 | case $arg in #(
|
---|
[23356] | 6828 | *"$as_nl"*)
|
---|
| 6829 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6830 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6831 | esac;
|
---|
| 6832 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6833 | '
|
---|
| 6834 | export as_echo_n_body
|
---|
| 6835 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6836 | fi
|
---|
| 6837 | export as_echo_body
|
---|
| 6838 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10192] | 6839 | fi
|
---|
| 6840 |
|
---|
[23356] | 6841 | # The user is always right.
|
---|
| 6842 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6843 | PATH_SEPARATOR=:
|
---|
| 6844 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6845 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6846 | PATH_SEPARATOR=';'
|
---|
| 6847 | }
|
---|
| 6848 | fi
|
---|
[10192] | 6849 |
|
---|
[23356] | 6850 |
|
---|
| 6851 | # IFS
|
---|
| 6852 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6853 | # there to prevent editors from complaining about space-tab.
|
---|
| 6854 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6855 | # splitting by setting IFS to empty value.)
|
---|
| 6856 | IFS=" "" $as_nl"
|
---|
| 6857 |
|
---|
| 6858 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
[25170] | 6859 | as_myself=
|
---|
| 6860 | case $0 in #((
|
---|
[23356] | 6861 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6862 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6863 | for as_dir in $PATH
|
---|
| 6864 | do
|
---|
| 6865 | IFS=$as_save_IFS
|
---|
| 6866 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 6867 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6868 | done
|
---|
[23356] | 6869 | IFS=$as_save_IFS
|
---|
| 6870 |
|
---|
| 6871 | ;;
|
---|
| 6872 | esac
|
---|
| 6873 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6874 | # in which case we are not to be found in the path.
|
---|
| 6875 | if test "x$as_myself" = x; then
|
---|
| 6876 | as_myself=$0
|
---|
| 6877 | fi
|
---|
| 6878 | if test ! -f "$as_myself"; then
|
---|
| 6879 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25170] | 6880 | exit 1
|
---|
[23356] | 6881 | fi
|
---|
| 6882 |
|
---|
[25170] | 6883 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6884 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6885 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6886 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6887 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6888 | do eval test x\${$as_var+set} = xset \
|
---|
| 6889 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
[23356] | 6890 | done
|
---|
[10192] | 6891 | PS1='$ '
|
---|
| 6892 | PS2='> '
|
---|
| 6893 | PS4='+ '
|
---|
| 6894 |
|
---|
| 6895 | # NLS nuisances.
|
---|
[23356] | 6896 | LC_ALL=C
|
---|
| 6897 | export LC_ALL
|
---|
| 6898 | LANGUAGE=C
|
---|
| 6899 | export LANGUAGE
|
---|
| 6900 |
|
---|
[25170] | 6901 | # CDPATH.
|
---|
| 6902 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6903 |
|
---|
| 6904 |
|
---|
| 6905 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 6906 | # ----------------------------------------
|
---|
| 6907 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6908 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 6909 | # script with STATUS, using 1 if that was 0.
|
---|
| 6910 | as_fn_error ()
|
---|
| 6911 | {
|
---|
| 6912 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 6913 | if test "$4"; then
|
---|
| 6914 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6915 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 6916 | fi
|
---|
| 6917 | $as_echo "$as_me: error: $2" >&2
|
---|
| 6918 | as_fn_exit $as_status
|
---|
| 6919 | } # as_fn_error
|
---|
| 6920 |
|
---|
| 6921 |
|
---|
| 6922 | # as_fn_set_status STATUS
|
---|
| 6923 | # -----------------------
|
---|
| 6924 | # Set $? to STATUS, without forking.
|
---|
| 6925 | as_fn_set_status ()
|
---|
| 6926 | {
|
---|
| 6927 | return $1
|
---|
| 6928 | } # as_fn_set_status
|
---|
| 6929 |
|
---|
| 6930 | # as_fn_exit STATUS
|
---|
| 6931 | # -----------------
|
---|
| 6932 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6933 | as_fn_exit ()
|
---|
| 6934 | {
|
---|
| 6935 | set +e
|
---|
| 6936 | as_fn_set_status $1
|
---|
| 6937 | exit $1
|
---|
| 6938 | } # as_fn_exit
|
---|
| 6939 |
|
---|
| 6940 | # as_fn_unset VAR
|
---|
| 6941 | # ---------------
|
---|
| 6942 | # Portably unset VAR.
|
---|
| 6943 | as_fn_unset ()
|
---|
| 6944 | {
|
---|
| 6945 | { eval $1=; unset $1;}
|
---|
| 6946 | }
|
---|
| 6947 | as_unset=as_fn_unset
|
---|
| 6948 | # as_fn_append VAR VALUE
|
---|
| 6949 | # ----------------------
|
---|
| 6950 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6951 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6952 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6953 | # implementations.
|
---|
| 6954 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6955 | eval 'as_fn_append ()
|
---|
| 6956 | {
|
---|
| 6957 | eval $1+=\$2
|
---|
| 6958 | }'
|
---|
| 6959 | else
|
---|
| 6960 | as_fn_append ()
|
---|
| 6961 | {
|
---|
| 6962 | eval $1=\$$1\$2
|
---|
| 6963 | }
|
---|
| 6964 | fi # as_fn_append
|
---|
| 6965 |
|
---|
| 6966 | # as_fn_arith ARG...
|
---|
| 6967 | # ------------------
|
---|
| 6968 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6969 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6970 | # must be portable across $(()) and expr.
|
---|
| 6971 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6972 | eval 'as_fn_arith ()
|
---|
| 6973 | {
|
---|
| 6974 | as_val=$(( $* ))
|
---|
| 6975 | }'
|
---|
| 6976 | else
|
---|
| 6977 | as_fn_arith ()
|
---|
| 6978 | {
|
---|
| 6979 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6980 | }
|
---|
| 6981 | fi # as_fn_arith
|
---|
| 6982 |
|
---|
| 6983 |
|
---|
[23356] | 6984 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6985 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[10192] | 6986 | as_expr=expr
|
---|
| 6987 | else
|
---|
| 6988 | as_expr=false
|
---|
| 6989 | fi
|
---|
| 6990 |
|
---|
[23356] | 6991 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[10192] | 6992 | as_basename=basename
|
---|
| 6993 | else
|
---|
| 6994 | as_basename=false
|
---|
| 6995 | fi
|
---|
| 6996 |
|
---|
[25170] | 6997 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 6998 | as_dirname=dirname
|
---|
| 6999 | else
|
---|
| 7000 | as_dirname=false
|
---|
| 7001 | fi
|
---|
[10192] | 7002 |
|
---|
[23356] | 7003 | as_me=`$as_basename -- "$0" ||
|
---|
[10192] | 7004 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7005 | X"$0" : 'X\(//\)$' \| \
|
---|
[23356] | 7006 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7007 | $as_echo X/"$0" |
|
---|
| 7008 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 7009 | s//\1/
|
---|
| 7010 | q
|
---|
| 7011 | }
|
---|
| 7012 | /^X\/\(\/\/\)$/{
|
---|
| 7013 | s//\1/
|
---|
| 7014 | q
|
---|
| 7015 | }
|
---|
| 7016 | /^X\/\(\/\).*/{
|
---|
| 7017 | s//\1/
|
---|
| 7018 | q
|
---|
| 7019 | }
|
---|
| 7020 | s/.*/./; q'`
|
---|
[8063] | 7021 |
|
---|
[25170] | 7022 | # Avoid depending upon Character Ranges.
|
---|
| 7023 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7024 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7025 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7026 | as_cr_digits='0123456789'
|
---|
| 7027 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[10192] | 7028 |
|
---|
[23356] | 7029 | ECHO_C= ECHO_N= ECHO_T=
|
---|
[25170] | 7030 | case `echo -n x` in #(((((
|
---|
[23356] | 7031 | -n*)
|
---|
[25170] | 7032 | case `echo 'xy\c'` in
|
---|
[23356] | 7033 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
[25170] | 7034 | xy) ECHO_C='\c';;
|
---|
| 7035 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 7036 | ECHO_T=' ';;
|
---|
[23356] | 7037 | esac;;
|
---|
| 7038 | *)
|
---|
| 7039 | ECHO_N='-n';;
|
---|
[10192] | 7040 | esac
|
---|
| 7041 |
|
---|
[23356] | 7042 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7043 | if test -d conf$$.dir; then
|
---|
| 7044 | rm -f conf$$.dir/conf$$.file
|
---|
[8063] | 7045 | else
|
---|
[23356] | 7046 | rm -f conf$$.dir
|
---|
| 7047 | mkdir conf$$.dir 2>/dev/null
|
---|
[8063] | 7048 | fi
|
---|
[23356] | 7049 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 7050 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7051 | as_ln_s='ln -s'
|
---|
| 7052 | # ... but there are two gotchas:
|
---|
| 7053 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 7054 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 7055 | # In both cases, we have to default to `cp -p'.
|
---|
| 7056 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 7057 | as_ln_s='cp -p'
|
---|
| 7058 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7059 | as_ln_s=ln
|
---|
| 7060 | else
|
---|
[8063] | 7061 | as_ln_s='cp -p'
|
---|
[22058] | 7062 | fi
|
---|
[8063] | 7063 | else
|
---|
| 7064 | as_ln_s='cp -p'
|
---|
| 7065 | fi
|
---|
[23356] | 7066 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 7067 | rmdir conf$$.dir 2>/dev/null
|
---|
[8063] | 7068 |
|
---|
[25170] | 7069 |
|
---|
| 7070 | # as_fn_mkdir_p
|
---|
| 7071 | # -------------
|
---|
| 7072 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 7073 | as_fn_mkdir_p ()
|
---|
| 7074 | {
|
---|
| 7075 |
|
---|
| 7076 | case $as_dir in #(
|
---|
| 7077 | -*) as_dir=./$as_dir;;
|
---|
| 7078 | esac
|
---|
| 7079 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 7080 | as_dirs=
|
---|
| 7081 | while :; do
|
---|
| 7082 | case $as_dir in #(
|
---|
| 7083 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 7084 | *) as_qdir=$as_dir;;
|
---|
| 7085 | esac
|
---|
| 7086 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 7087 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 7088 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7089 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7090 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7091 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7092 | $as_echo X"$as_dir" |
|
---|
| 7093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7094 | s//\1/
|
---|
| 7095 | q
|
---|
| 7096 | }
|
---|
| 7097 | /^X\(\/\/\)[^/].*/{
|
---|
| 7098 | s//\1/
|
---|
| 7099 | q
|
---|
| 7100 | }
|
---|
| 7101 | /^X\(\/\/\)$/{
|
---|
| 7102 | s//\1/
|
---|
| 7103 | q
|
---|
| 7104 | }
|
---|
| 7105 | /^X\(\/\).*/{
|
---|
| 7106 | s//\1/
|
---|
| 7107 | q
|
---|
| 7108 | }
|
---|
| 7109 | s/.*/./; q'`
|
---|
| 7110 | test -d "$as_dir" && break
|
---|
| 7111 | done
|
---|
| 7112 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 7113 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
| 7114 |
|
---|
| 7115 |
|
---|
| 7116 | } # as_fn_mkdir_p
|
---|
[10192] | 7117 | if mkdir -p . 2>/dev/null; then
|
---|
[25170] | 7118 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8063] | 7119 | else
|
---|
[10192] | 7120 | test -d ./-p && rmdir ./-p
|
---|
| 7121 | as_mkdir_p=false
|
---|
[8063] | 7122 | fi
|
---|
| 7123 |
|
---|
[23356] | 7124 | if test -x / >/dev/null 2>&1; then
|
---|
| 7125 | as_test_x='test -x'
|
---|
| 7126 | else
|
---|
| 7127 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 7128 | as_ls_L_option=L
|
---|
| 7129 | else
|
---|
| 7130 | as_ls_L_option=
|
---|
| 7131 | fi
|
---|
| 7132 | as_test_x='
|
---|
| 7133 | eval sh -c '\''
|
---|
| 7134 | if test -d "$1"; then
|
---|
| 7135 | test -d "$1/.";
|
---|
| 7136 | else
|
---|
[25170] | 7137 | case $1 in #(
|
---|
[23356] | 7138 | -*)set "./$1";;
|
---|
| 7139 | esac;
|
---|
[25170] | 7140 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
[23356] | 7141 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 7142 | '\'' sh
|
---|
| 7143 | '
|
---|
| 7144 | fi
|
---|
| 7145 | as_executable_p=$as_test_x
|
---|
[8063] | 7146 |
|
---|
[10192] | 7147 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7148 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7149 |
|
---|
| 7150 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7151 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7152 |
|
---|
| 7153 |
|
---|
[8063] | 7154 | exec 6>&1
|
---|
[25170] | 7155 | ## ----------------------------------- ##
|
---|
| 7156 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 7157 | ## ----------------------------------- ##
|
---|
| 7158 | _ASEOF
|
---|
| 7159 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
[8063] | 7160 |
|
---|
[25170] | 7161 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7162 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
[10192] | 7163 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[23356] | 7164 | # values after options handling.
|
---|
| 7165 | ac_log="
|
---|
[10192] | 7166 | This file was extended by $as_me, which was
|
---|
[25170] | 7167 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
[10192] | 7168 |
|
---|
| 7169 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7170 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7171 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7172 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7173 | $ $0 $@
|
---|
| 7174 |
|
---|
[23356] | 7175 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 7176 | "
|
---|
| 7177 |
|
---|
[8063] | 7178 | _ACEOF
|
---|
| 7179 |
|
---|
[23356] | 7180 | case $ac_config_files in *"
|
---|
| 7181 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 7182 | esac
|
---|
[8063] | 7183 |
|
---|
[23356] | 7184 | case $ac_config_headers in *"
|
---|
| 7185 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 7186 | esac
|
---|
[8063] | 7187 |
|
---|
[22058] | 7188 |
|
---|
[23356] | 7189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7190 | # Files that config.status was made for.
|
---|
| 7191 | config_files="$ac_config_files"
|
---|
| 7192 | config_headers="$ac_config_headers"
|
---|
| 7193 | config_commands="$ac_config_commands"
|
---|
[22058] | 7194 |
|
---|
[23356] | 7195 | _ACEOF
|
---|
[22058] | 7196 |
|
---|
[23356] | 7197 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8063] | 7198 | ac_cs_usage="\
|
---|
[25170] | 7199 | \`$as_me' instantiates files and other configuration actions
|
---|
| 7200 | from templates according to the current configuration. Unless the files
|
---|
| 7201 | and actions are specified as TAGs, all are instantiated by default.
|
---|
[8063] | 7202 |
|
---|
[25170] | 7203 | Usage: $0 [OPTION]... [TAG]...
|
---|
[8063] | 7204 |
|
---|
| 7205 | -h, --help print this help, then exit
|
---|
[23356] | 7206 | -V, --version print version number and configuration settings, then exit
|
---|
[25170] | 7207 | --config print configuration, then exit
|
---|
[23356] | 7208 | -q, --quiet, --silent
|
---|
| 7209 | do not print progress messages
|
---|
[8063] | 7210 | -d, --debug don't remove temporary files
|
---|
| 7211 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[23356] | 7212 | --file=FILE[:TEMPLATE]
|
---|
| 7213 | instantiate the configuration file FILE
|
---|
| 7214 | --header=FILE[:TEMPLATE]
|
---|
| 7215 | instantiate the configuration header FILE
|
---|
[8063] | 7216 |
|
---|
| 7217 | Configuration files:
|
---|
| 7218 | $config_files
|
---|
| 7219 |
|
---|
| 7220 | Configuration headers:
|
---|
| 7221 | $config_headers
|
---|
| 7222 |
|
---|
| 7223 | Configuration commands:
|
---|
| 7224 | $config_commands
|
---|
| 7225 |
|
---|
[25170] | 7226 | Report bugs to the package provider."
|
---|
[23356] | 7227 |
|
---|
[22058] | 7228 | _ACEOF
|
---|
[23356] | 7229 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[25170] | 7230 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
[8063] | 7231 | ac_cs_version="\\
|
---|
| 7232 | config.status
|
---|
[25170] | 7233 | configured by $0, generated by GNU Autoconf 2.68,
|
---|
| 7234 | with options \\"\$ac_cs_config\\"
|
---|
[8063] | 7235 |
|
---|
[25170] | 7236 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
[8063] | 7237 | This config.status script is free software; the Free Software Foundation
|
---|
| 7238 | gives unlimited permission to copy, distribute and modify it."
|
---|
[23356] | 7239 |
|
---|
| 7240 | ac_pwd='$ac_pwd'
|
---|
| 7241 | srcdir='$srcdir'
|
---|
| 7242 | INSTALL='$INSTALL'
|
---|
| 7243 | AWK='$AWK'
|
---|
| 7244 | test -n "\$AWK" || AWK=awk
|
---|
[10192] | 7245 | _ACEOF
|
---|
[8063] | 7246 |
|
---|
[23356] | 7247 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7248 | # The default lists apply if the user does not specify any file.
|
---|
[8063] | 7249 | ac_need_defaults=:
|
---|
| 7250 | while test $# != 0
|
---|
[3365] | 7251 | do
|
---|
[8063] | 7252 | case $1 in
|
---|
[25170] | 7253 | --*=?*)
|
---|
[23356] | 7254 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 7255 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[10192] | 7256 | ac_shift=:
|
---|
[8063] | 7257 | ;;
|
---|
[25170] | 7258 | --*=)
|
---|
| 7259 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 7260 | ac_optarg=
|
---|
| 7261 | ac_shift=:
|
---|
| 7262 | ;;
|
---|
[23356] | 7263 | *)
|
---|
[10192] | 7264 | ac_option=$1
|
---|
| 7265 | ac_optarg=$2
|
---|
| 7266 | ac_shift=shift
|
---|
| 7267 | ;;
|
---|
[8063] | 7268 | esac
|
---|
| 7269 |
|
---|
[10192] | 7270 | case $ac_option in
|
---|
[8063] | 7271 | # Handling of the options.
|
---|
[3365] | 7272 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10192] | 7273 | ac_cs_recheck=: ;;
|
---|
[23356] | 7274 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 7275 | $as_echo "$ac_cs_version"; exit ;;
|
---|
[25170] | 7276 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 7277 | $as_echo "$ac_cs_config"; exit ;;
|
---|
[23356] | 7278 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[8063] | 7279 | debug=: ;;
|
---|
| 7280 | --file | --fil | --fi | --f )
|
---|
[10192] | 7281 | $ac_shift
|
---|
[23356] | 7282 | case $ac_optarg in
|
---|
| 7283 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[25170] | 7284 | '') as_fn_error $? "missing file argument" ;;
|
---|
[23356] | 7285 | esac
|
---|
[25170] | 7286 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
[8063] | 7287 | ac_need_defaults=false;;
|
---|
| 7288 | --header | --heade | --head | --hea )
|
---|
[10192] | 7289 | $ac_shift
|
---|
[23356] | 7290 | case $ac_optarg in
|
---|
| 7291 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 7292 | esac
|
---|
[25170] | 7293 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
[8063] | 7294 | ac_need_defaults=false;;
|
---|
[23356] | 7295 | --he | --h)
|
---|
| 7296 | # Conflict between --help and --header
|
---|
[25170] | 7297 | as_fn_error $? "ambiguous option: \`$1'
|
---|
| 7298 | Try \`$0 --help' for more information.";;
|
---|
[23356] | 7299 | --help | --hel | -h )
|
---|
| 7300 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
[10192] | 7301 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7302 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7303 | ac_cs_silent=: ;;
|
---|
[8063] | 7304 |
|
---|
| 7305 | # This is an error.
|
---|
[25170] | 7306 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
| 7307 | Try \`$0 --help' for more information." ;;
|
---|
[10192] | 7308 |
|
---|
[25170] | 7309 | *) as_fn_append ac_config_targets " $1"
|
---|
[23356] | 7310 | ac_need_defaults=false ;;
|
---|
[10192] | 7311 |
|
---|
[3365] | 7312 | esac
|
---|
[8063] | 7313 | shift
|
---|
[3365] | 7314 | done
|
---|
| 7315 |
|
---|
[10192] | 7316 | ac_configure_extra_args=
|
---|
[3365] | 7317 |
|
---|
[10192] | 7318 | if $ac_cs_silent; then
|
---|
| 7319 | exec 6>/dev/null
|
---|
| 7320 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 7321 | fi
|
---|
[8063] | 7322 |
|
---|
[10192] | 7323 | _ACEOF
|
---|
[23356] | 7324 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[10192] | 7325 | if \$ac_cs_recheck; then
|
---|
[23356] | 7326 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7327 | shift
|
---|
| 7328 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 7329 | CONFIG_SHELL='$SHELL'
|
---|
| 7330 | export CONFIG_SHELL
|
---|
| 7331 | exec "\$@"
|
---|
[10192] | 7332 | fi
|
---|
[8063] | 7333 |
|
---|
| 7334 | _ACEOF
|
---|
[23356] | 7335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7336 | exec 5>>config.log
|
---|
| 7337 | {
|
---|
| 7338 | echo
|
---|
| 7339 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7340 | ## Running $as_me. ##
|
---|
| 7341 | _ASBOX
|
---|
| 7342 | $as_echo "$ac_log"
|
---|
| 7343 | } >&5
|
---|
[3365] | 7344 |
|
---|
[23356] | 7345 | _ACEOF
|
---|
| 7346 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7347 | _ACEOF
|
---|
[10192] | 7348 |
|
---|
[23356] | 7349 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[22058] | 7350 |
|
---|
[23356] | 7351 | # Handling of arguments.
|
---|
[10192] | 7352 | for ac_config_target in $ac_config_targets
|
---|
| 7353 | do
|
---|
[23356] | 7354 | case $ac_config_target in
|
---|
| 7355 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7356 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7357 | "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
| 7358 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 7359 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 7360 | "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
| 7361 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 7362 |
|
---|
[25170] | 7363 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
[10192] | 7364 | esac
|
---|
| 7365 | done
|
---|
| 7366 |
|
---|
[23356] | 7367 |
|
---|
[8063] | 7368 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7369 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7370 | # We use the long form for the default assignment because of an extremely
|
---|
| 7371 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7372 | if $ac_need_defaults; then
|
---|
| 7373 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7374 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7375 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 7376 | fi
|
---|
[3365] | 7377 |
|
---|
[10192] | 7378 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[23356] | 7379 | # simply because there is no reason against having it here, and in addition,
|
---|
[10192] | 7380 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[23356] | 7381 | # Hook for its removal unless debugging.
|
---|
| 7382 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 7383 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[8063] | 7384 | $debug ||
|
---|
| 7385 | {
|
---|
[25170] | 7386 | tmp= ac_tmp=
|
---|
[23356] | 7387 | trap 'exit_status=$?
|
---|
[25170] | 7388 | : "${ac_tmp:=$tmp}"
|
---|
| 7389 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
[23356] | 7390 | ' 0
|
---|
[25170] | 7391 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
[8063] | 7392 | }
|
---|
| 7393 | # Create a (secure) tmp directory for tmp files.
|
---|
[10192] | 7394 |
|
---|
[8063] | 7395 | {
|
---|
[23356] | 7396 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[25170] | 7397 | test -d "$tmp"
|
---|
[8063] | 7398 | } ||
|
---|
| 7399 | {
|
---|
[23356] | 7400 | tmp=./conf$$-$RANDOM
|
---|
| 7401 | (umask 077 && mkdir "$tmp")
|
---|
[25170] | 7402 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
| 7403 | ac_tmp=$tmp
|
---|
[23356] | 7404 |
|
---|
| 7405 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 7406 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 7407 | # This happens for instance with `./config.status config.h'.
|
---|
| 7408 | if test -n "$CONFIG_FILES"; then
|
---|
| 7409 |
|
---|
| 7410 |
|
---|
[25170] | 7411 | ac_cr=`echo X | tr X '\015'`
|
---|
| 7412 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 7413 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 7414 | # point, so we can use a bashism as a fallback.
|
---|
| 7415 | if test "x$ac_cr" = x; then
|
---|
| 7416 | eval ac_cr=\$\'\\r\'
|
---|
| 7417 | fi
|
---|
[23356] | 7418 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 7419 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
[25148] | 7420 | ac_cs_awk_cr='\\r'
|
---|
[23356] | 7421 | else
|
---|
| 7422 | ac_cs_awk_cr=$ac_cr
|
---|
| 7423 | fi
|
---|
| 7424 |
|
---|
[25170] | 7425 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
[23356] | 7426 | _ACEOF
|
---|
| 7427 |
|
---|
| 7428 |
|
---|
[8063] | 7429 | {
|
---|
[23356] | 7430 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 7431 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 7432 | echo "_ACEOF"
|
---|
| 7433 | } >conf$$subs.sh ||
|
---|
[25170] | 7434 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 7435 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
[23356] | 7436 | ac_delim='%!_!# '
|
---|
| 7437 | for ac_last_try in false false false false false :; do
|
---|
| 7438 | . ./conf$$subs.sh ||
|
---|
[25170] | 7439 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 7440 |
|
---|
| 7441 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 7442 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 7443 | break
|
---|
| 7444 | elif $ac_last_try; then
|
---|
[25170] | 7445 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 7446 | else
|
---|
| 7447 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 7448 | fi
|
---|
| 7449 | done
|
---|
| 7450 | rm -f conf$$subs.sh
|
---|
| 7451 |
|
---|
| 7452 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[25170] | 7453 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
[23356] | 7454 | _ACEOF
|
---|
| 7455 | sed -n '
|
---|
| 7456 | h
|
---|
| 7457 | s/^/S["/; s/!.*/"]=/
|
---|
| 7458 | p
|
---|
| 7459 | g
|
---|
| 7460 | s/^[^!]*!//
|
---|
| 7461 | :repl
|
---|
| 7462 | t repl
|
---|
| 7463 | s/'"$ac_delim"'$//
|
---|
| 7464 | t delim
|
---|
| 7465 | :nl
|
---|
| 7466 | h
|
---|
[25170] | 7467 | s/\(.\{148\}\)..*/\1/
|
---|
[23356] | 7468 | t more1
|
---|
| 7469 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 7470 | p
|
---|
| 7471 | n
|
---|
| 7472 | b repl
|
---|
| 7473 | :more1
|
---|
| 7474 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 7475 | p
|
---|
| 7476 | g
|
---|
| 7477 | s/.\{148\}//
|
---|
| 7478 | t nl
|
---|
| 7479 | :delim
|
---|
| 7480 | h
|
---|
[25170] | 7481 | s/\(.\{148\}\)..*/\1/
|
---|
[23356] | 7482 | t more2
|
---|
| 7483 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 7484 | p
|
---|
| 7485 | b
|
---|
| 7486 | :more2
|
---|
| 7487 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 7488 | p
|
---|
| 7489 | g
|
---|
| 7490 | s/.\{148\}//
|
---|
| 7491 | t delim
|
---|
| 7492 | ' <conf$$subs.awk | sed '
|
---|
| 7493 | /^[^""]/{
|
---|
| 7494 | N
|
---|
| 7495 | s/\n//
|
---|
[8063] | 7496 | }
|
---|
[23356] | 7497 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7498 | rm -f conf$$subs.awk
|
---|
| 7499 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7500 | _ACAWK
|
---|
[25170] | 7501 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
[23356] | 7502 | for (key in S) S_is_set[key] = 1
|
---|
| 7503 | FS = ""
|
---|
[8063] | 7504 |
|
---|
[23356] | 7505 | }
|
---|
| 7506 | {
|
---|
| 7507 | line = $ 0
|
---|
| 7508 | nfields = split(line, field, "@")
|
---|
| 7509 | substed = 0
|
---|
| 7510 | len = length(field[1])
|
---|
| 7511 | for (i = 2; i < nfields; i++) {
|
---|
| 7512 | key = field[i]
|
---|
| 7513 | keylen = length(key)
|
---|
| 7514 | if (S_is_set[key]) {
|
---|
| 7515 | value = S[key]
|
---|
| 7516 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 7517 | len += length(value) + length(field[++i])
|
---|
| 7518 | substed = 1
|
---|
| 7519 | } else
|
---|
| 7520 | len += 1 + keylen
|
---|
| 7521 | }
|
---|
| 7522 |
|
---|
| 7523 | print line
|
---|
| 7524 | }
|
---|
| 7525 |
|
---|
| 7526 | _ACAWK
|
---|
[22058] | 7527 | _ACEOF
|
---|
[23356] | 7528 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7529 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 7530 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 7531 | else
|
---|
| 7532 | cat
|
---|
[25170] | 7533 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
| 7534 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
[23356] | 7535 | _ACEOF
|
---|
[22058] | 7536 |
|
---|
[25170] | 7537 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
| 7538 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
[23356] | 7539 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7540 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7541 | if test "x$srcdir" = x.; then
|
---|
[25170] | 7542 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
| 7543 | h
|
---|
| 7544 | s///
|
---|
| 7545 | s/^/:/
|
---|
| 7546 | s/[ ]*$/:/
|
---|
| 7547 | s/:\$(srcdir):/:/g
|
---|
| 7548 | s/:\${srcdir}:/:/g
|
---|
| 7549 | s/:@srcdir@:/:/g
|
---|
| 7550 | s/^:*//
|
---|
[23356] | 7551 | s/:*$//
|
---|
[25170] | 7552 | x
|
---|
| 7553 | s/\(=[ ]*\).*/\1/
|
---|
| 7554 | G
|
---|
| 7555 | s/\n//
|
---|
[23356] | 7556 | s/^[^=]*=[ ]*$//
|
---|
| 7557 | }'
|
---|
| 7558 | fi
|
---|
[22058] | 7559 |
|
---|
[23356] | 7560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7561 | fi # test -n "$CONFIG_FILES"
|
---|
[8063] | 7562 |
|
---|
[23356] | 7563 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 7564 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 7565 | # This happens for instance with `./config.status Makefile'.
|
---|
| 7566 | if test -n "$CONFIG_HEADERS"; then
|
---|
[25170] | 7567 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
[23356] | 7568 | BEGIN {
|
---|
[10192] | 7569 | _ACEOF
|
---|
[3365] | 7570 |
|
---|
[23356] | 7571 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 7572 | # here-document in config.status, that substitutes the proper values into
|
---|
| 7573 | # config.h.in to produce config.h.
|
---|
| 7574 |
|
---|
| 7575 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 7576 | # handling of long lines.
|
---|
| 7577 | ac_delim='%!_!# '
|
---|
| 7578 | for ac_last_try in false false :; do
|
---|
[25170] | 7579 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 7580 | if test -z "$ac_tt"; then
|
---|
[23356] | 7581 | break
|
---|
| 7582 | elif $ac_last_try; then
|
---|
[25170] | 7583 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
[23356] | 7584 | else
|
---|
| 7585 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[3365] | 7586 | fi
|
---|
[23356] | 7587 | done
|
---|
[3365] | 7588 |
|
---|
[23356] | 7589 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 7590 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 7591 | # newline sequences.
|
---|
| 7592 |
|
---|
| 7593 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 7594 | sed -n '
|
---|
| 7595 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7596 | t rset
|
---|
| 7597 | :rset
|
---|
| 7598 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7599 | t def
|
---|
| 7600 | d
|
---|
| 7601 | :def
|
---|
| 7602 | s/\\$//
|
---|
| 7603 | t bsnl
|
---|
| 7604 | s/["\\]/\\&/g
|
---|
| 7605 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7606 | D["\1"]=" \3"/p
|
---|
| 7607 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7608 | d
|
---|
| 7609 | :bsnl
|
---|
| 7610 | s/["\\]/\\&/g
|
---|
| 7611 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7612 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7613 | t cont
|
---|
| 7614 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7615 | t cont
|
---|
| 7616 | d
|
---|
| 7617 | :cont
|
---|
| 7618 | n
|
---|
| 7619 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7620 | t clear
|
---|
| 7621 | :clear
|
---|
| 7622 | s/\\$//
|
---|
| 7623 | t bsnlc
|
---|
| 7624 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7625 | d
|
---|
| 7626 | :bsnlc
|
---|
| 7627 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7628 | b cont
|
---|
| 7629 | ' <confdefs.h | sed '
|
---|
| 7630 | s/'"$ac_delim"'/"\\\
|
---|
| 7631 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7632 |
|
---|
| 7633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7634 | for (key in D) D_is_set[key] = 1
|
---|
| 7635 | FS = ""
|
---|
| 7636 | }
|
---|
| 7637 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7638 | line = \$ 0
|
---|
| 7639 | split(line, arg, " ")
|
---|
| 7640 | if (arg[1] == "#") {
|
---|
| 7641 | defundef = arg[2]
|
---|
| 7642 | mac1 = arg[3]
|
---|
| 7643 | } else {
|
---|
| 7644 | defundef = substr(arg[1], 2)
|
---|
| 7645 | mac1 = arg[2]
|
---|
| 7646 | }
|
---|
| 7647 | split(mac1, mac2, "(") #)
|
---|
| 7648 | macro = mac2[1]
|
---|
| 7649 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7650 | if (D_is_set[macro]) {
|
---|
| 7651 | # Preserve the white space surrounding the "#".
|
---|
| 7652 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7653 | next
|
---|
| 7654 | } else {
|
---|
| 7655 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7656 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7657 | # on some systems where configure will not decide to define it.
|
---|
| 7658 | if (defundef == "undef") {
|
---|
| 7659 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7660 | next
|
---|
| 7661 | }
|
---|
| 7662 | }
|
---|
| 7663 | }
|
---|
| 7664 | { print }
|
---|
| 7665 | _ACAWK
|
---|
[10192] | 7666 | _ACEOF
|
---|
[23356] | 7667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[25170] | 7668 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
[23356] | 7669 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7670 |
|
---|
| 7671 |
|
---|
| 7672 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
| 7673 | shift
|
---|
| 7674 | for ac_tag
|
---|
| 7675 | do
|
---|
| 7676 | case $ac_tag in
|
---|
| 7677 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[3365] | 7678 | esac
|
---|
[23356] | 7679 | case $ac_mode$ac_tag in
|
---|
| 7680 | :[FHL]*:*);;
|
---|
[25170] | 7681 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
[23356] | 7682 | :[FH]-) ac_tag=-:-;;
|
---|
| 7683 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7684 | esac
|
---|
| 7685 | ac_save_IFS=$IFS
|
---|
| 7686 | IFS=:
|
---|
| 7687 | set x $ac_tag
|
---|
| 7688 | IFS=$ac_save_IFS
|
---|
| 7689 | shift
|
---|
| 7690 | ac_file=$1
|
---|
| 7691 | shift
|
---|
[3365] | 7692 |
|
---|
[23356] | 7693 | case $ac_mode in
|
---|
| 7694 | :L) ac_source=$1;;
|
---|
| 7695 | :[FH])
|
---|
| 7696 | ac_file_inputs=
|
---|
| 7697 | for ac_f
|
---|
| 7698 | do
|
---|
| 7699 | case $ac_f in
|
---|
[25170] | 7700 | -) ac_f="$ac_tmp/stdin";;
|
---|
[23356] | 7701 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7702 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7703 | # because $ac_f cannot contain `:'.
|
---|
| 7704 | test -f "$ac_f" ||
|
---|
| 7705 | case $ac_f in
|
---|
| 7706 | [\\/$]*) false;;
|
---|
| 7707 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7708 | esac ||
|
---|
[25170] | 7709 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
[23356] | 7710 | esac
|
---|
| 7711 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
[25170] | 7712 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
[23356] | 7713 | done
|
---|
| 7714 |
|
---|
| 7715 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7716 | # use $as_me), people would be surprised to read:
|
---|
| 7717 | # /* config.h. Generated by config.status. */
|
---|
| 7718 | configure_input='Generated from '`
|
---|
| 7719 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7720 | `' by configure.'
|
---|
| 7721 | if test x"$ac_file" != x-; then
|
---|
| 7722 | configure_input="$ac_file. $configure_input"
|
---|
[25170] | 7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
[23356] | 7724 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7725 | fi
|
---|
| 7726 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7727 | case $configure_input in #(
|
---|
| 7728 | *\&* | *\|* | *\\* )
|
---|
| 7729 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7730 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7731 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7732 | esac
|
---|
| 7733 |
|
---|
| 7734 | case $ac_tag in
|
---|
[25170] | 7735 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
| 7736 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
[23356] | 7737 | esac
|
---|
| 7738 | ;;
|
---|
| 7739 | esac
|
---|
| 7740 |
|
---|
| 7741 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[10192] | 7742 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7743 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7744 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[23356] | 7745 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7746 | $as_echo X"$ac_file" |
|
---|
| 7747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7748 | s//\1/
|
---|
| 7749 | q
|
---|
| 7750 | }
|
---|
| 7751 | /^X\(\/\/\)[^/].*/{
|
---|
| 7752 | s//\1/
|
---|
| 7753 | q
|
---|
| 7754 | }
|
---|
| 7755 | /^X\(\/\/\)$/{
|
---|
| 7756 | s//\1/
|
---|
| 7757 | q
|
---|
| 7758 | }
|
---|
| 7759 | /^X\(\/\).*/{
|
---|
| 7760 | s//\1/
|
---|
| 7761 | q
|
---|
| 7762 | }
|
---|
| 7763 | s/.*/./; q'`
|
---|
[25170] | 7764 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[10192] | 7765 | ac_builddir=.
|
---|
| 7766 |
|
---|
[23356] | 7767 | case "$ac_dir" in
|
---|
| 7768 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7769 | *)
|
---|
| 7770 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7771 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7772 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7773 | case $ac_top_builddir_sub in
|
---|
| 7774 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7775 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7776 | esac ;;
|
---|
| 7777 | esac
|
---|
| 7778 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7779 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7780 | # for backward compatibility:
|
---|
| 7781 | ac_top_builddir=$ac_top_build_prefix
|
---|
[10192] | 7782 |
|
---|
| 7783 | case $srcdir in
|
---|
[23356] | 7784 | .) # We are building in place.
|
---|
[10192] | 7785 | ac_srcdir=.
|
---|
[23356] | 7786 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7787 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7788 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10192] | 7789 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 7790 | ac_top_srcdir=$srcdir
|
---|
| 7791 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7792 | *) # Relative name.
|
---|
| 7793 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7794 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7795 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10192] | 7796 | esac
|
---|
[23356] | 7797 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[3365] | 7798 |
|
---|
[10192] | 7799 |
|
---|
[23356] | 7800 | case $ac_mode in
|
---|
| 7801 | :F)
|
---|
| 7802 | #
|
---|
| 7803 | # CONFIG_FILE
|
---|
| 7804 | #
|
---|
[10192] | 7805 |
|
---|
[8063] | 7806 | case $INSTALL in
|
---|
| 7807 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[23356] | 7808 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[3365] | 7809 | esac
|
---|
[23356] | 7810 | _ACEOF
|
---|
[3365] | 7811 |
|
---|
[23356] | 7812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7813 | # If the template does not know about datarootdir, expand it.
|
---|
| 7814 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7815 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7816 | ac_sed_dataroot='
|
---|
| 7817 | /datarootdir/ {
|
---|
| 7818 | p
|
---|
| 7819 | q
|
---|
| 7820 | }
|
---|
| 7821 | /@datadir@/p
|
---|
| 7822 | /@docdir@/p
|
---|
| 7823 | /@infodir@/p
|
---|
| 7824 | /@localedir@/p
|
---|
[25170] | 7825 | /@mandir@/p'
|
---|
[23356] | 7826 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7827 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7828 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
[25170] | 7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
[23356] | 7830 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7831 | _ACEOF
|
---|
| 7832 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7833 | ac_datarootdir_hack='
|
---|
| 7834 | s&@datadir@&$datadir&g
|
---|
| 7835 | s&@docdir@&$docdir&g
|
---|
| 7836 | s&@infodir@&$infodir&g
|
---|
| 7837 | s&@localedir@&$localedir&g
|
---|
| 7838 | s&@mandir@&$mandir&g
|
---|
[25170] | 7839 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
[23356] | 7840 | esac
|
---|
| 7841 | _ACEOF
|
---|
[3365] | 7842 |
|
---|
[23356] | 7843 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7844 | # Shell code in configure.ac might set extrasub.
|
---|
| 7845 | # FIXME: do we really want to maintain this feature?
|
---|
| 7846 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7847 | ac_sed_extra="$ac_vpsub
|
---|
[8063] | 7848 | $extrasub
|
---|
[10192] | 7849 | _ACEOF
|
---|
[23356] | 7850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8063] | 7851 | :t
|
---|
| 7852 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[23356] | 7853 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7854 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7855 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7856 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7857 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7858 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7859 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7860 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7861 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7862 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7863 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7864 | $ac_datarootdir_hack
|
---|
| 7865 | "
|
---|
[25170] | 7866 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
| 7867 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[3365] | 7868 |
|
---|
[23356] | 7869 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
[25170] | 7870 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7871 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
| 7872 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7874 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
[23356] | 7875 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25170] | 7876 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
[8063] | 7877 |
|
---|
[25170] | 7878 | rm -f "$ac_tmp/stdin"
|
---|
[8063] | 7879 | case $ac_file in
|
---|
[25170] | 7880 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
| 7881 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
[23356] | 7882 | esac \
|
---|
[25170] | 7883 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[23356] | 7884 | ;;
|
---|
| 7885 | :H)
|
---|
| 7886 | #
|
---|
| 7887 | # CONFIG_HEADER
|
---|
| 7888 | #
|
---|
[8063] | 7889 | if test x"$ac_file" != x-; then
|
---|
[23356] | 7890 | {
|
---|
| 7891 | $as_echo "/* $configure_input */" \
|
---|
[25170] | 7892 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7893 | } >"$ac_tmp/config.h" \
|
---|
| 7894 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7895 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
[23356] | 7897 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[8063] | 7898 | else
|
---|
[23356] | 7899 | rm -f "$ac_file"
|
---|
[25170] | 7900 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
| 7901 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[3365] | 7902 | fi
|
---|
[8063] | 7903 | else
|
---|
[23356] | 7904 | $as_echo "/* $configure_input */" \
|
---|
[25170] | 7905 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
| 7906 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
[3365] | 7907 | fi
|
---|
[23356] | 7908 | ;;
|
---|
[3365] | 7909 |
|
---|
[25170] | 7910 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
[23356] | 7911 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
| 7912 | ;;
|
---|
| 7913 | esac
|
---|
[8063] | 7914 |
|
---|
[10192] | 7915 |
|
---|
[23356] | 7916 | case $ac_file$ac_mode in
|
---|
| 7917 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
[10192] | 7918 |
|
---|
[8063] | 7919 | esac
|
---|
[23356] | 7920 | done # for ac_tag
|
---|
[3365] | 7921 |
|
---|
[8063] | 7922 |
|
---|
[25170] | 7923 | as_fn_exit 0
|
---|
[10192] | 7924 | _ACEOF
|
---|
[8063] | 7925 | ac_clean_files=$ac_clean_files_save
|
---|
[3365] | 7926 |
|
---|
[23356] | 7927 | test $ac_write_fail = 0 ||
|
---|
[25170] | 7928 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
[10192] | 7929 |
|
---|
[23356] | 7930 |
|
---|
[8063] | 7931 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7932 | # config.status does its own redirection, appending to config.log.
|
---|
| 7933 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7934 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7935 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7936 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7937 | # appended to by config.status. When coming back to configure, we
|
---|
| 7938 | # need to make the FD available again.
|
---|
| 7939 | if test "$no_create" != yes; then
|
---|
| 7940 | ac_cs_success=:
|
---|
[10192] | 7941 | ac_config_status_args=
|
---|
| 7942 | test "$silent" = yes &&
|
---|
| 7943 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[8063] | 7944 | exec 5>/dev/null
|
---|
[10192] | 7945 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[8063] | 7946 | exec 5>>config.log
|
---|
| 7947 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7948 | # would make configure fail if this is the last instruction.
|
---|
[25170] | 7949 | $ac_cs_success || as_fn_exit 1
|
---|
[8063] | 7950 | fi
|
---|
[23356] | 7951 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
[25170] | 7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
[23356] | 7953 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7954 | fi
|
---|
[8063] | 7955 |
|
---|