| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.72. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
| 7 | # Inc. |
| 8 | # |
| 9 | # |
| 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
| 12 | # |
| 13 | # "Menuselect" |
| 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
| 17 | |
| 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 21 | then : |
| 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | setopt NO_GLOB_SUBST |
| 28 | else case e in #( |
| 29 | e) case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
| 34 | esac ;; |
| 35 | esac |
| 36 | fi |
| 37 | |
| 38 | |
| 39 | |
| 40 | # Reset variables that may have inherited troublesome values from |
| 41 | # the environment. |
| 42 | |
| 43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 45 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 46 | # Quoting is to prevent editors from complaining about space-tab. |
| 47 | as_nl=' |
| 48 | ' |
| 49 | export as_nl |
| 50 | IFS=" "" $as_nl" |
| 51 | |
| 52 | PS1='$ ' |
| 53 | PS2='> ' |
| 54 | PS4='+ ' |
| 55 | |
| 56 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 57 | LC_ALL=C |
| 58 | export LC_ALL |
| 59 | LANGUAGE=C |
| 60 | export LANGUAGE |
| 61 | |
| 62 | # We cannot yet rely on "unset" to work, but we need these variables |
| 63 | # to be unset--not just set to an empty or harmless value--now, to |
| 64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 65 | # also avoids known problems related to "unset" and subshell syntax |
| 66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 68 | do eval test \${$as_var+y} \ |
| 69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 70 | done |
| 71 | |
| 72 | # Ensure that fds 0, 1, and 2 are open. |
| 73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 76 | |
| 77 | # The user is always right. |
| 78 | if ${PATH_SEPARATOR+false} :; then |
| 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
| 84 | fi |
| 85 | |
| 86 | |
| 87 | # Find who we are. Look in the path if we contain no directory separator. |
| 88 | as_myself= |
| 89 | case $0 in #(( |
| 90 | *[\\/]* ) as_myself=$0 ;; |
| 91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 92 | for as_dir in $PATH |
| 93 | do |
| 94 | IFS=$as_save_IFS |
| 95 | case $as_dir in #((( |
| 96 | '') as_dir=./ ;; |
| 97 | */) ;; |
| 98 | *) as_dir=$as_dir/ ;; |
| 99 | esac |
| 100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 101 | done |
| 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 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | |
| 117 | # Use a proper internal environment variable to ensure we don't fall |
| 118 | # into an infinite loop, continuously re-executing ourselves. |
| 119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 120 | _as_can_reexec=no; export _as_can_reexec; |
| 121 | # We cannot yet assume a decent shell, so we have to provide a |
| 122 | # neutralization value for shells without unset; and this also |
| 123 | # works around shells that cannot unset nonexistent variables. |
| 124 | # Preserve -v and -x to the replacement shell. |
| 125 | BASH_ENV=/dev/null |
| 126 | ENV=/dev/null |
| 127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 128 | case $- in # (((( |
| 129 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 130 | *v* ) as_opts=-v ;; |
| 131 | *x* ) as_opts=-x ;; |
| 132 | * ) as_opts= ;; |
| 133 | esac |
| 134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 135 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 136 | # out after a failed 'exec'. |
| 137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 138 | exit 255 |
| 139 | fi |
| 140 | # We don't want this to propagate to other subprocesses. |
| 141 | { _as_can_reexec=; unset _as_can_reexec;} |
| 142 | if test "x$CONFIG_SHELL" = x; then |
| 143 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 144 | then : |
| 145 | emulate sh |
| 146 | NULLCMD=: |
| 147 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 148 | # is contrary to our usage. Disable this feature. |
| 149 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 150 | setopt NO_GLOB_SUBST |
| 151 | else case e in #( |
| 152 | e) case \`(set -o) 2>/dev/null\` in #( |
| 153 | *posix*) : |
| 154 | set -o posix ;; #( |
| 155 | *) : |
| 156 | ;; |
| 157 | esac ;; |
| 158 | esac |
| 159 | fi |
| 160 | " |
| 161 | as_required="as_fn_return () { (exit \$1); } |
| 162 | as_fn_success () { as_fn_return 0; } |
| 163 | as_fn_failure () { as_fn_return 1; } |
| 164 | as_fn_ret_success () { return 0; } |
| 165 | as_fn_ret_failure () { return 1; } |
| 166 | |
| 167 | exitcode=0 |
| 168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 173 | then : |
| 174 | |
| 175 | else case e in #( |
| 176 | e) exitcode=1; echo positional parameters were not saved. ;; |
| 177 | esac |
| 178 | fi |
| 179 | test x\$exitcode = x0 || exit 1 |
| 180 | blah=\$(echo \$(echo blah)) |
| 181 | test x\"\$blah\" = xblah || exit 1 |
| 182 | test -x / || exit 1" |
| 183 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 184 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 185 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 186 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 187 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 188 | if (eval "$as_required") 2>/dev/null |
| 189 | then : |
| 190 | as_have_required=yes |
| 191 | else case e in #( |
| 192 | e) as_have_required=no ;; |
| 193 | esac |
| 194 | fi |
| 195 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 196 | then : |
| 197 | |
| 198 | else case e in #( |
| 199 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 200 | as_found=false |
| 201 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 202 | do |
| 203 | IFS=$as_save_IFS |
| 204 | case $as_dir in #((( |
| 205 | '') as_dir=./ ;; |
| 206 | */) ;; |
| 207 | *) as_dir=$as_dir/ ;; |
| 208 | esac |
| 209 | as_found=: |
| 210 | case $as_dir in #( |
| 211 | /*) |
| 212 | for as_base in sh bash ksh sh5; do |
| 213 | # Try only shells that exist, to save several forks. |
| 214 | as_shell=$as_dir$as_base |
| 215 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 216 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 217 | then : |
| 218 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 219 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 220 | then : |
| 221 | break 2 |
| 222 | fi |
| 223 | fi |
| 224 | done;; |
| 225 | esac |
| 226 | as_found=false |
| 227 | done |
| 228 | IFS=$as_save_IFS |
| 229 | if $as_found |
| 230 | then : |
| 231 | |
| 232 | else case e in #( |
| 233 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 235 | then : |
| 236 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 237 | fi ;; |
| 238 | esac |
| 239 | fi |
| 240 | |
| 241 | |
| 242 | if test "x$CONFIG_SHELL" != x |
| 243 | then : |
| 244 | export CONFIG_SHELL |
| 245 | # We cannot yet assume a decent shell, so we have to provide a |
| 246 | # neutralization value for shells without unset; and this also |
| 247 | # works around shells that cannot unset nonexistent variables. |
| 248 | # Preserve -v and -x to the replacement shell. |
| 249 | BASH_ENV=/dev/null |
| 250 | ENV=/dev/null |
| 251 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 252 | case $- in # (((( |
| 253 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 254 | *v* ) as_opts=-v ;; |
| 255 | *x* ) as_opts=-x ;; |
| 256 | * ) as_opts= ;; |
| 257 | esac |
| 258 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 259 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 260 | # out after a failed 'exec'. |
| 261 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 262 | exit 255 |
| 263 | fi |
| 264 | |
| 265 | if test x$as_have_required = xno |
| 266 | then : |
| 267 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 268 | printf "%s\n" "$0: the shells that I found on your system." |
| 269 | if test ${ZSH_VERSION+y} ; then |
| 270 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 271 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 272 | else |
| 273 | printf "%s\n" "$0: Please tell [email protected] about your system, |
| 274 | $0: including any error possibly output before this |
| 275 | $0: message. Then install a modern shell, or manually run |
| 276 | $0: the script under such a shell if you do have one." |
| 277 | fi |
| 278 | exit 1 |
| 279 | fi ;; |
| 280 | esac |
| 281 | fi |
| 282 | fi |
| 283 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 284 | export SHELL |
| 285 | # Unset more variables known to interfere with behavior of common tools. |
| 286 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 287 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 288 | |
| 289 | ## --------------------- ## |
| 290 | ## M4sh Shell Functions. ## |
| 291 | ## --------------------- ## |
| 292 | # as_fn_unset VAR |
| 293 | # --------------- |
| 294 | # Portably unset VAR. |
| 295 | as_fn_unset () |
| 296 | { |
| 297 | { eval $1=; unset $1;} |
| 298 | } |
| 299 | as_unset=as_fn_unset |
| 300 | |
| 301 | |
| 302 | # as_fn_set_status STATUS |
| 303 | # ----------------------- |
| 304 | # Set $? to STATUS, without forking. |
| 305 | as_fn_set_status () |
| 306 | { |
| 307 | return $1 |
| 308 | } # as_fn_set_status |
| 309 | |
| 310 | # as_fn_exit STATUS |
| 311 | # ----------------- |
| 312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 313 | as_fn_exit () |
| 314 | { |
| 315 | set +e |
| 316 | as_fn_set_status $1 |
| 317 | exit $1 |
| 318 | } # as_fn_exit |
| 319 | |
| 320 | # as_fn_mkdir_p |
| 321 | # ------------- |
| 322 | # Create "$as_dir" as a directory, including parents if necessary. |
| 323 | as_fn_mkdir_p () |
| 324 | { |
| 325 | |
| 326 | case $as_dir in #( |
| 327 | -*) as_dir=./$as_dir;; |
| 328 | esac |
| 329 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 330 | as_dirs= |
| 331 | while :; do |
| 332 | case $as_dir in #( |
| 333 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 334 | *) as_qdir=$as_dir;; |
| 335 | esac |
| 336 | as_dirs="'$as_qdir' $as_dirs" |
| 337 | as_dir=`$as_dirname -- "$as_dir" || |
| 338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 339 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 340 | X"$as_dir" : 'X\(//\)$' \| \ |
| 341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 342 | printf "%s\n" X"$as_dir" | |
| 343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)[^/].*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\/\)$/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | /^X\(\/\).*/{ |
| 356 | s//\1/ |
| 357 | q |
| 358 | } |
| 359 | s/.*/./; q'` |
| 360 | test -d "$as_dir" && break |
| 361 | done |
| 362 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 364 | |
| 365 | |
| 366 | } # as_fn_mkdir_p |
| 367 | |
| 368 | # as_fn_executable_p FILE |
| 369 | # ----------------------- |
| 370 | # Test if FILE is an executable regular file. |
| 371 | as_fn_executable_p () |
| 372 | { |
| 373 | test -f "$1" && test -x "$1" |
| 374 | } # as_fn_executable_p |
| 375 | # as_fn_append VAR VALUE |
| 376 | # ---------------------- |
| 377 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 378 | # advantage of any shell optimizations that allow amortized linear growth over |
| 379 | # repeated appends, instead of the typical quadratic growth present in naive |
| 380 | # implementations. |
| 381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 382 | then : |
| 383 | eval 'as_fn_append () |
| 384 | { |
| 385 | eval $1+=\$2 |
| 386 | }' |
| 387 | else case e in #( |
| 388 | e) as_fn_append () |
| 389 | { |
| 390 | eval $1=\$$1\$2 |
| 391 | } ;; |
| 392 | esac |
| 393 | fi # as_fn_append |
| 394 | |
| 395 | # as_fn_arith ARG... |
| 396 | # ------------------ |
| 397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 399 | # must be portable across $(()) and expr. |
| 400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 401 | then : |
| 402 | eval 'as_fn_arith () |
| 403 | { |
| 404 | as_val=$(( $* )) |
| 405 | }' |
| 406 | else case e in #( |
| 407 | e) as_fn_arith () |
| 408 | { |
| 409 | as_val=`expr "$@" || test $? -eq 1` |
| 410 | } ;; |
| 411 | esac |
| 412 | fi # as_fn_arith |
| 413 | |
| 414 | |
| 415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 416 | # ---------------------------------------- |
| 417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 419 | # script with STATUS, using 1 if that was 0. |
| 420 | as_fn_error () |
| 421 | { |
| 422 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 423 | if test "$4"; then |
| 424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 425 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 426 | fi |
| 427 | printf "%s\n" "$as_me: error: $2" >&2 |
| 428 | as_fn_exit $as_status |
| 429 | } # as_fn_error |
| 430 | |
| 431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 433 | as_expr=expr |
| 434 | else |
| 435 | as_expr=false |
| 436 | fi |
| 437 | |
| 438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 439 | as_basename=basename |
| 440 | else |
| 441 | as_basename=false |
| 442 | fi |
| 443 | |
| 444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 445 | as_dirname=dirname |
| 446 | else |
| 447 | as_dirname=false |
| 448 | fi |
| 449 | |
| 450 | as_me=`$as_basename -- "$0" || |
| 451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 452 | X"$0" : 'X\(//\)$' \| \ |
| 453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 454 | printf "%s\n" X/"$0" | |
| 455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | /^X\/\(\/\/\)$/{ |
| 460 | s//\1/ |
| 461 | q |
| 462 | } |
| 463 | /^X\/\(\/\).*/{ |
| 464 | s//\1/ |
| 465 | q |
| 466 | } |
| 467 | s/.*/./; q'` |
| 468 | |
| 469 | # Avoid depending upon Character Ranges. |
| 470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 473 | as_cr_digits='0123456789' |
| 474 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 475 | |
| 476 | |
| 477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 482 | sed -n ' |
| 483 | p |
| 484 | /[$]LINENO/= |
| 485 | ' <$as_myself | |
| 486 | sed ' |
| 487 | t clear |
| 488 | :clear |
| 489 | s/[$]LINENO.*/&-/ |
| 490 | t lineno |
| 491 | b |
| 492 | :lineno |
| 493 | N |
| 494 | :loop |
| 495 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 496 | t loop |
| 497 | s/-\n.*// |
| 498 | ' >$as_me.lineno && |
| 499 | chmod +x "$as_me.lineno" || |
| 500 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 501 | |
| 502 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 503 | # already done that, so ensure we don't try to do so again and fall |
| 504 | # in an infinite loop. This has already happened in practice. |
| 505 | _as_can_reexec=no; export _as_can_reexec |
| 506 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 507 | # (the dirname of $[0] is not the place where we might find the |
| 508 | # original and so on. Autoconf is especially sensitive to this). |
| 509 | . "./$as_me.lineno" |
| 510 | # Exit status is that of the last command. |
| 511 | exit |
| 512 | } |
| 513 | |
| 514 | |
| 515 | # Determine whether it's possible to make 'echo' print without a newline. |
| 516 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 517 | # for compatibility with existing Makefiles. |
| 518 | ECHO_C= ECHO_N= ECHO_T= |
| 519 | case `echo -n x` in #((((( |
| 520 | -n*) |
| 521 | case `echo 'xy\c'` in |
| 522 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 523 | xy) ECHO_C='\c';; |
| 524 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 525 | ECHO_T=' ';; |
| 526 | esac;; |
| 527 | *) |
| 528 | ECHO_N='-n';; |
| 529 | esac |
| 530 | |
| 531 | # For backward compatibility with old third-party macros, we provide |
| 532 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 533 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 534 | as_echo='printf %s\n' |
| 535 | as_echo_n='printf %s' |
| 536 | |
| 537 | rm -f conf$$ conf$$.exe conf$$.file |
| 538 | if test -d conf$$.dir; then |
| 539 | rm -f conf$$.dir/conf$$.file |
| 540 | else |
| 541 | rm -f conf$$.dir |
| 542 | mkdir conf$$.dir 2>/dev/null |
| 543 | fi |
| 544 | if (echo >conf$$.file) 2>/dev/null; then |
| 545 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 546 | as_ln_s='ln -s' |
| 547 | # ... but there are two gotchas: |
| 548 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 549 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 550 | # In both cases, we have to default to 'cp -pR'. |
| 551 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 552 | as_ln_s='cp -pR' |
| 553 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 554 | as_ln_s=ln |
| 555 | else |
| 556 | as_ln_s='cp -pR' |
| 557 | fi |
| 558 | else |
| 559 | as_ln_s='cp -pR' |
| 560 | fi |
| 561 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 562 | rmdir conf$$.dir 2>/dev/null |
| 563 | |
| 564 | if mkdir -p . 2>/dev/null; then |
| 565 | as_mkdir_p='mkdir -p "$as_dir"' |
| 566 | else |
| 567 | test -d ./-p && rmdir ./-p |
| 568 | as_mkdir_p=false |
| 569 | fi |
| 570 | |
| 571 | as_test_x='test -x' |
| 572 | as_executable_p=as_fn_executable_p |
| 573 | |
| 574 | # Sed expression to map a string onto a valid CPP name. |
| 575 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 576 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 577 | |
| 578 | # Sed expression to map a string onto a valid variable name. |
| 579 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 580 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 581 | |
| 582 | |
| 583 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 584 | exec 6>&1 |
| 585 | |
| 586 | # Name of the host. |
| 587 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 588 | # so uname gets run too. |
| 589 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 590 | |
| 591 | # |
| 592 | # Initializations. |
| 593 | # |
| 594 | ac_default_prefix=/usr/local |
| 595 | ac_clean_files= |
| 596 | ac_config_libobj_dir=. |
| 597 | LIBOBJS= |
| 598 | cross_compiling=no |
| 599 | subdirs= |
| 600 | MFLAGS= |
| 601 | MAKEFLAGS= |
| 602 | |
| 603 | # Identity of this package. |
| 604 | PACKAGE_NAME='' |
| 605 | PACKAGE_TARNAME='' |
| 606 | PACKAGE_VERSION='' |
| 607 | PACKAGE_STRING='' |
| 608 | PACKAGE_BUGREPORT='' |
| 609 | PACKAGE_URL='' |
| 610 | |
| 611 | ac_unique_file="menuselect" |
| 612 | ac_unique_file="menuselect.c" |
| 613 | # Factoring default headers for most tests. |
| 614 | ac_includes_default="\ |
| 615 | #include <stddef.h> |
| 616 | #ifdef HAVE_STDIO_H |
| 617 | # include <stdio.h> |
| 618 | #endif |
| 619 | #ifdef HAVE_STDLIB_H |
| 620 | # include <stdlib.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_STRING_H |
| 623 | # include <string.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_INTTYPES_H |
| 626 | # include <inttypes.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_STDINT_H |
| 629 | # include <stdint.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_STRINGS_H |
| 632 | # include <strings.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_SYS_TYPES_H |
| 635 | # include <sys/types.h> |
| 636 | #endif |
| 637 | #ifdef HAVE_SYS_STAT_H |
| 638 | # include <sys/stat.h> |
| 639 | #endif |
| 640 | #ifdef HAVE_UNISTD_H |
| 641 | # include <unistd.h> |
| 642 | #endif" |
| 643 | |
| 644 | ac_header_c_list= |
| 645 | ac_subst_vars='LTLIBOBJS |
| 646 | LIBOBJS |
| 647 | GTK2_LIB |
| 648 | GTK2_INCLUDE |
| 649 | PBX_GTK2 |
| 650 | GTK2_LIBS |
| 651 | GTK2_CFLAGS |
| 652 | CONFIG_LIBXML2 |
| 653 | LIBXML2_LIBS |
| 654 | LIBXML2_CFLAGS |
| 655 | SED |
| 656 | HAVE_NCURSES_SUBDIR |
| 657 | PBX_TINFO |
| 658 | TINFO_DIR |
| 659 | TINFO_INCLUDE |
| 660 | TINFO_LIB |
| 661 | PBX_LIBXML2 |
| 662 | LIBXML2_DIR |
| 663 | LIBXML2_INCLUDE |
| 664 | LIBXML2_LIB |
| 665 | PBX_NCURSES |
| 666 | NCURSES_DIR |
| 667 | NCURSES_INCLUDE |
| 668 | NCURSES_LIB |
| 669 | PBX_CURSES |
| 670 | CURSES_DIR |
| 671 | CURSES_INCLUDE |
| 672 | CURSES_LIB |
| 673 | PBX_NEWT |
| 674 | NEWT_DIR |
| 675 | NEWT_INCLUDE |
| 676 | NEWT_LIB |
| 677 | ALLOCA |
| 678 | MENUSELECT_DEBUG |
| 679 | PKG_CONFIG_LIBDIR |
| 680 | PKG_CONFIG_PATH |
| 681 | PKG_CONFIG |
| 682 | GNU_MAKE |
| 683 | OBJEXT |
| 684 | EXEEXT |
| 685 | ac_ct_CC |
| 686 | CPPFLAGS |
| 687 | LDFLAGS |
| 688 | CFLAGS |
| 689 | CC |
| 690 | HOST_OS |
| 691 | host_os |
| 692 | host_vendor |
| 693 | host_cpu |
| 694 | host |
| 695 | build_os |
| 696 | build_vendor |
| 697 | build_cpu |
| 698 | build |
| 699 | target_alias |
| 700 | host_alias |
| 701 | build_alias |
| 702 | LIBS |
| 703 | ECHO_T |
| 704 | ECHO_N |
| 705 | ECHO_C |
| 706 | DEFS |
| 707 | mandir |
| 708 | localedir |
| 709 | libdir |
| 710 | psdir |
| 711 | pdfdir |
| 712 | dvidir |
| 713 | htmldir |
| 714 | infodir |
| 715 | docdir |
| 716 | oldincludedir |
| 717 | includedir |
| 718 | runstatedir |
| 719 | localstatedir |
| 720 | sharedstatedir |
| 721 | sysconfdir |
| 722 | datadir |
| 723 | datarootdir |
| 724 | libexecdir |
| 725 | sbindir |
| 726 | bindir |
| 727 | program_transform_name |
| 728 | prefix |
| 729 | exec_prefix |
| 730 | PACKAGE_URL |
| 731 | PACKAGE_BUGREPORT |
| 732 | PACKAGE_STRING |
| 733 | PACKAGE_VERSION |
| 734 | PACKAGE_TARNAME |
| 735 | PACKAGE_NAME |
| 736 | PATH_SEPARATOR |
| 737 | SHELL' |
| 738 | ac_subst_files='' |
| 739 | ac_user_opts=' |
| 740 | enable_option_checking |
| 741 | enable_debug |
| 742 | with_newt |
| 743 | with_curses |
| 744 | with_ncurses |
| 745 | with_libxml2 |
| 746 | with_libtinfo |
| 747 | ' |
| 748 | ac_precious_vars='build_alias |
| 749 | host_alias |
| 750 | target_alias |
| 751 | CC |
| 752 | CFLAGS |
| 753 | LDFLAGS |
| 754 | LIBS |
| 755 | CPPFLAGS |
| 756 | PKG_CONFIG |
| 757 | PKG_CONFIG_PATH |
| 758 | PKG_CONFIG_LIBDIR |
| 759 | LIBXML2_CFLAGS |
| 760 | LIBXML2_LIBS |
| 761 | GTK2_CFLAGS |
| 762 | GTK2_LIBS' |
| 763 | |
| 764 | |
| 765 | # Initialize some variables set by options. |
| 766 | ac_init_help= |
| 767 | ac_init_version=false |
| 768 | ac_unrecognized_opts= |
| 769 | ac_unrecognized_sep= |
| 770 | # The variables have the same names as the options, with |
| 771 | # dashes changed to underlines. |
| 772 | cache_file=/dev/null |
| 773 | exec_prefix=NONE |
| 774 | no_create= |
| 775 | no_recursion= |
| 776 | prefix=NONE |
| 777 | program_prefix=NONE |
| 778 | program_suffix=NONE |
| 779 | program_transform_name=s,x,x, |
| 780 | silent= |
| 781 | site= |
| 782 | srcdir= |
| 783 | verbose= |
| 784 | x_includes=NONE |
| 785 | x_libraries=NONE |
| 786 | |
| 787 | # Installation directory options. |
| 788 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 789 | # and all the variables that are supposed to be based on exec_prefix |
| 790 | # by default will actually change. |
| 791 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 792 | # (The list follows the same order as the GNU Coding Standards.) |
| 793 | bindir='${exec_prefix}/bin' |
| 794 | sbindir='${exec_prefix}/sbin' |
| 795 | libexecdir='${exec_prefix}/libexec' |
| 796 | datarootdir='${prefix}/share' |
| 797 | datadir='${datarootdir}' |
| 798 | sysconfdir='${prefix}/etc' |
| 799 | sharedstatedir='${prefix}/com' |
| 800 | localstatedir='${prefix}/var' |
| 801 | runstatedir='${localstatedir}/run' |
| 802 | includedir='${prefix}/include' |
| 803 | oldincludedir='/usr/include' |
| 804 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 805 | infodir='${datarootdir}/info' |
| 806 | htmldir='${docdir}' |
| 807 | dvidir='${docdir}' |
| 808 | pdfdir='${docdir}' |
| 809 | psdir='${docdir}' |
| 810 | libdir='${exec_prefix}/lib' |
| 811 | localedir='${datarootdir}/locale' |
| 812 | mandir='${datarootdir}/man' |
| 813 | |
| 814 | ac_prev= |
| 815 | ac_dashdash= |
| 816 | for ac_option |
| 817 | do |
| 818 | # If the previous option needs an argument, assign it. |
| 819 | if test -n "$ac_prev"; then |
| 820 | eval $ac_prev=\$ac_option |
| 821 | ac_prev= |
| 822 | continue |
| 823 | fi |
| 824 | |
| 825 | case $ac_option in |
| 826 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 827 | *=) ac_optarg= ;; |
| 828 | *) ac_optarg=yes ;; |
| 829 | esac |
| 830 | |
| 831 | case $ac_dashdash$ac_option in |
| 832 | --) |
| 833 | ac_dashdash=yes ;; |
| 834 | |
| 835 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 836 | ac_prev=bindir ;; |
| 837 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 838 | bindir=$ac_optarg ;; |
| 839 | |
| 840 | -build | --build | --buil | --bui | --bu) |
| 841 | ac_prev=build_alias ;; |
| 842 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 843 | build_alias=$ac_optarg ;; |
| 844 | |
| 845 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 846 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 847 | ac_prev=cache_file ;; |
| 848 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 849 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 850 | cache_file=$ac_optarg ;; |
| 851 | |
| 852 | --config-cache | -C) |
| 853 | cache_file=config.cache ;; |
| 854 | |
| 855 | -datadir | --datadir | --datadi | --datad) |
| 856 | ac_prev=datadir ;; |
| 857 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 858 | datadir=$ac_optarg ;; |
| 859 | |
| 860 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 861 | | --dataroo | --dataro | --datar) |
| 862 | ac_prev=datarootdir ;; |
| 863 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 864 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 865 | datarootdir=$ac_optarg ;; |
| 866 | |
| 867 | -disable-* | --disable-*) |
| 868 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 869 | # Reject names that are not valid shell variable names. |
| 870 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 871 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 872 | ac_useropt_orig=$ac_useropt |
| 873 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 874 | case $ac_user_opts in |
| 875 | *" |
| 876 | "enable_$ac_useropt" |
| 877 | "*) ;; |
| 878 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 879 | ac_unrecognized_sep=', ';; |
| 880 | esac |
| 881 | eval enable_$ac_useropt=no ;; |
| 882 | |
| 883 | -docdir | --docdir | --docdi | --doc | --do) |
| 884 | ac_prev=docdir ;; |
| 885 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 886 | docdir=$ac_optarg ;; |
| 887 | |
| 888 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 889 | ac_prev=dvidir ;; |
| 890 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 891 | dvidir=$ac_optarg ;; |
| 892 | |
| 893 | -enable-* | --enable-*) |
| 894 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 895 | # Reject names that are not valid shell variable names. |
| 896 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 897 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 898 | ac_useropt_orig=$ac_useropt |
| 899 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 900 | case $ac_user_opts in |
| 901 | *" |
| 902 | "enable_$ac_useropt" |
| 903 | "*) ;; |
| 904 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 905 | ac_unrecognized_sep=', ';; |
| 906 | esac |
| 907 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 908 | |
| 909 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 910 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 911 | | --exec | --exe | --ex) |
| 912 | ac_prev=exec_prefix ;; |
| 913 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 914 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 915 | | --exec=* | --exe=* | --ex=*) |
| 916 | exec_prefix=$ac_optarg ;; |
| 917 | |
| 918 | -gas | --gas | --ga | --g) |
| 919 | # Obsolete; use --with-gas. |
| 920 | with_gas=yes ;; |
| 921 | |
| 922 | -help | --help | --hel | --he | -h) |
| 923 | ac_init_help=long ;; |
| 924 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 925 | ac_init_help=recursive ;; |
| 926 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 927 | ac_init_help=short ;; |
| 928 | |
| 929 | -host | --host | --hos | --ho) |
| 930 | ac_prev=host_alias ;; |
| 931 | -host=* | --host=* | --hos=* | --ho=*) |
| 932 | host_alias=$ac_optarg ;; |
| 933 | |
| 934 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 935 | ac_prev=htmldir ;; |
| 936 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 937 | | --ht=*) |
| 938 | htmldir=$ac_optarg ;; |
| 939 | |
| 940 | -includedir | --includedir | --includedi | --included | --include \ |
| 941 | | --includ | --inclu | --incl | --inc) |
| 942 | ac_prev=includedir ;; |
| 943 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 944 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 945 | includedir=$ac_optarg ;; |
| 946 | |
| 947 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 948 | ac_prev=infodir ;; |
| 949 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 950 | infodir=$ac_optarg ;; |
| 951 | |
| 952 | -libdir | --libdir | --libdi | --libd) |
| 953 | ac_prev=libdir ;; |
| 954 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 955 | libdir=$ac_optarg ;; |
| 956 | |
| 957 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 958 | | --libexe | --libex | --libe) |
| 959 | ac_prev=libexecdir ;; |
| 960 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 961 | | --libexe=* | --libex=* | --libe=*) |
| 962 | libexecdir=$ac_optarg ;; |
| 963 | |
| 964 | -localedir | --localedir | --localedi | --localed | --locale) |
| 965 | ac_prev=localedir ;; |
| 966 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 967 | localedir=$ac_optarg ;; |
| 968 | |
| 969 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 970 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 971 | ac_prev=localstatedir ;; |
| 972 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 973 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 974 | localstatedir=$ac_optarg ;; |
| 975 | |
| 976 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 977 | ac_prev=mandir ;; |
| 978 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 979 | mandir=$ac_optarg ;; |
| 980 | |
| 981 | -nfp | --nfp | --nf) |
| 982 | # Obsolete; use --without-fp. |
| 983 | with_fp=no ;; |
| 984 | |
| 985 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 986 | | --no-cr | --no-c | -n) |
| 987 | no_create=yes ;; |
| 988 | |
| 989 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 990 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 991 | no_recursion=yes ;; |
| 992 | |
| 993 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 994 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 995 | | --oldin | --oldi | --old | --ol | --o) |
| 996 | ac_prev=oldincludedir ;; |
| 997 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 998 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 999 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1000 | oldincludedir=$ac_optarg ;; |
| 1001 | |
| 1002 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1003 | ac_prev=prefix ;; |
| 1004 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1005 | prefix=$ac_optarg ;; |
| 1006 | |
| 1007 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1008 | | --program-pre | --program-pr | --program-p) |
| 1009 | ac_prev=program_prefix ;; |
| 1010 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1011 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1012 | program_prefix=$ac_optarg ;; |
| 1013 | |
| 1014 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1015 | | --program-suf | --program-su | --program-s) |
| 1016 | ac_prev=program_suffix ;; |
| 1017 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1018 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1019 | program_suffix=$ac_optarg ;; |
| 1020 | |
| 1021 | -program-transform-name | --program-transform-name \ |
| 1022 | | --program-transform-nam | --program-transform-na \ |
| 1023 | | --program-transform-n | --program-transform- \ |
| 1024 | | --program-transform | --program-transfor \ |
| 1025 | | --program-transfo | --program-transf \ |
| 1026 | | --program-trans | --program-tran \ |
| 1027 | | --progr-tra | --program-tr | --program-t) |
| 1028 | ac_prev=program_transform_name ;; |
| 1029 | -program-transform-name=* | --program-transform-name=* \ |
| 1030 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1031 | | --program-transform-n=* | --program-transform-=* \ |
| 1032 | | --program-transform=* | --program-transfor=* \ |
| 1033 | | --program-transfo=* | --program-transf=* \ |
| 1034 | | --program-trans=* | --program-tran=* \ |
| 1035 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1036 | program_transform_name=$ac_optarg ;; |
| 1037 | |
| 1038 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1039 | ac_prev=pdfdir ;; |
| 1040 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1041 | pdfdir=$ac_optarg ;; |
| 1042 | |
| 1043 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1044 | ac_prev=psdir ;; |
| 1045 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1046 | psdir=$ac_optarg ;; |
| 1047 | |
| 1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1049 | | -silent | --silent | --silen | --sile | --sil) |
| 1050 | silent=yes ;; |
| 1051 | |
| 1052 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1053 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1054 | | --run | --ru | --r) |
| 1055 | ac_prev=runstatedir ;; |
| 1056 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1057 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1058 | | --run=* | --ru=* | --r=*) |
| 1059 | runstatedir=$ac_optarg ;; |
| 1060 | |
| 1061 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1062 | ac_prev=sbindir ;; |
| 1063 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1064 | | --sbi=* | --sb=*) |
| 1065 | sbindir=$ac_optarg ;; |
| 1066 | |
| 1067 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1068 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1069 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1070 | | --sha | --sh) |
| 1071 | ac_prev=sharedstatedir ;; |
| 1072 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1073 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1074 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1075 | | --sha=* | --sh=*) |
| 1076 | sharedstatedir=$ac_optarg ;; |
| 1077 | |
| 1078 | -site | --site | --sit) |
| 1079 | ac_prev=site ;; |
| 1080 | -site=* | --site=* | --sit=*) |
| 1081 | site=$ac_optarg ;; |
| 1082 | |
| 1083 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1084 | ac_prev=srcdir ;; |
| 1085 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1086 | srcdir=$ac_optarg ;; |
| 1087 | |
| 1088 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1089 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1090 | ac_prev=sysconfdir ;; |
| 1091 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1092 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1093 | sysconfdir=$ac_optarg ;; |
| 1094 | |
| 1095 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1096 | ac_prev=target_alias ;; |
| 1097 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1098 | target_alias=$ac_optarg ;; |
| 1099 | |
| 1100 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1101 | verbose=yes ;; |
| 1102 | |
| 1103 | -version | --version | --versio | --versi | --vers | -V) |
| 1104 | ac_init_version=: ;; |
| 1105 | |
| 1106 | -with-* | --with-*) |
| 1107 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1108 | # Reject names that are not valid shell variable names. |
| 1109 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1110 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1111 | ac_useropt_orig=$ac_useropt |
| 1112 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1113 | case $ac_user_opts in |
| 1114 | *" |
| 1115 | "with_$ac_useropt" |
| 1116 | "*) ;; |
| 1117 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1118 | ac_unrecognized_sep=', ';; |
| 1119 | esac |
| 1120 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1121 | |
| 1122 | -without-* | --without-*) |
| 1123 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1124 | # Reject names that are not valid shell variable names. |
| 1125 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1126 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1127 | ac_useropt_orig=$ac_useropt |
| 1128 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1129 | case $ac_user_opts in |
| 1130 | *" |
| 1131 | "with_$ac_useropt" |
| 1132 | "*) ;; |
| 1133 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1134 | ac_unrecognized_sep=', ';; |
| 1135 | esac |
| 1136 | eval with_$ac_useropt=no ;; |
| 1137 | |
| 1138 | --x) |
| 1139 | # Obsolete; use --with-x. |
| 1140 | with_x=yes ;; |
| 1141 | |
| 1142 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1143 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1144 | ac_prev=x_includes ;; |
| 1145 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1146 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1147 | x_includes=$ac_optarg ;; |
| 1148 | |
| 1149 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1150 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1151 | ac_prev=x_libraries ;; |
| 1152 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1153 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1154 | x_libraries=$ac_optarg ;; |
| 1155 | |
| 1156 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1157 | Try '$0 --help' for more information" |
| 1158 | ;; |
| 1159 | |
| 1160 | *=*) |
| 1161 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1162 | # Reject names that are not valid shell variable names. |
| 1163 | case $ac_envvar in #( |
| 1164 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1165 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1166 | esac |
| 1167 | eval $ac_envvar=\$ac_optarg |
| 1168 | export $ac_envvar ;; |
| 1169 | |
| 1170 | *) |
| 1171 | # FIXME: should be removed in autoconf 3.0. |
| 1172 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1173 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1174 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1175 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1176 | ;; |
| 1177 | |
| 1178 | esac |
| 1179 | done |
| 1180 | |
| 1181 | if test -n "$ac_prev"; then |
| 1182 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1183 | as_fn_error $? "missing argument to $ac_option" |
| 1184 | fi |
| 1185 | |
| 1186 | if test -n "$ac_unrecognized_opts"; then |
| 1187 | case $enable_option_checking in |
| 1188 | no) ;; |
| 1189 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1190 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1191 | esac |
| 1192 | fi |
| 1193 | |
| 1194 | # Check all directory arguments for consistency. |
| 1195 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1196 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1197 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1198 | libdir localedir mandir runstatedir |
| 1199 | do |
| 1200 | eval ac_val=\$$ac_var |
| 1201 | # Remove trailing slashes. |
| 1202 | case $ac_val in |
| 1203 | */ ) |
| 1204 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1205 | eval $ac_var=\$ac_val;; |
| 1206 | esac |
| 1207 | # Be sure to have absolute directory names. |
| 1208 | case $ac_val in |
| 1209 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1210 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1211 | esac |
| 1212 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1213 | done |
| 1214 | |
| 1215 | # There might be people who depend on the old broken behavior: '$host' |
| 1216 | # used to hold the argument of --host etc. |
| 1217 | # FIXME: To remove some day. |
| 1218 | build=$build_alias |
| 1219 | host=$host_alias |
| 1220 | target=$target_alias |
| 1221 | |
| 1222 | # FIXME: To remove some day. |
| 1223 | if test "x$host_alias" != x; then |
| 1224 | if test "x$build_alias" = x; then |
| 1225 | cross_compiling=maybe |
| 1226 | elif test "x$build_alias" != "x$host_alias"; then |
| 1227 | cross_compiling=yes |
| 1228 | fi |
| 1229 | fi |
| 1230 | |
| 1231 | ac_tool_prefix= |
| 1232 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1233 | |
| 1234 | test "$silent" = yes && exec 6>/dev/null |
| 1235 | |
| 1236 | |
| 1237 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1238 | ac_ls_di=`ls -di .` && |
| 1239 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1240 | as_fn_error $? "working directory cannot be determined" |
| 1241 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1242 | as_fn_error $? "pwd does not report name of working directory" |
| 1243 | |
| 1244 | |
| 1245 | # Find the source files, if location was not specified. |
| 1246 | if test -z "$srcdir"; then |
| 1247 | ac_srcdir_defaulted=yes |
| 1248 | # Try the directory containing this script, then the parent directory. |
| 1249 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1250 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1251 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1252 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1253 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1254 | printf "%s\n" X"$as_myself" | |
| 1255 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1256 | s//\1/ |
| 1257 | q |
| 1258 | } |
| 1259 | /^X\(\/\/\)[^/].*/{ |
| 1260 | s//\1/ |
| 1261 | q |
| 1262 | } |
| 1263 | /^X\(\/\/\)$/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\).*/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | s/.*/./; q'` |
| 1272 | srcdir=$ac_confdir |
| 1273 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1274 | srcdir=.. |
| 1275 | fi |
| 1276 | else |
| 1277 | ac_srcdir_defaulted=no |
| 1278 | fi |
| 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1280 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1281 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1282 | fi |
| 1283 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1284 | ac_abs_confdir=`( |
| 1285 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1286 | pwd)` |
| 1287 | # When building in place, set srcdir=. |
| 1288 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1289 | srcdir=. |
| 1290 | fi |
| 1291 | # Remove unnecessary trailing slashes from srcdir. |
| 1292 | # Double slashes in file names in object file debugging info |
| 1293 | # mess up M-x gdb in Emacs. |
| 1294 | case $srcdir in |
| 1295 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1296 | esac |
| 1297 | for ac_var in $ac_precious_vars; do |
| 1298 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1299 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1300 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1301 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1302 | done |
| 1303 | |
| 1304 | # |
| 1305 | # Report the --help message. |
| 1306 | # |
| 1307 | if test "$ac_init_help" = "long"; then |
| 1308 | # Omit some internal or obsolete options to make the list less imposing. |
| 1309 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1310 | cat <<_ACEOF |
| 1311 | 'configure' configures this package to adapt to many kinds of systems. |
| 1312 | |
| 1313 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1314 | |
| 1315 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1316 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1317 | |
| 1318 | Defaults for the options are specified in brackets. |
| 1319 | |
| 1320 | Configuration: |
| 1321 | -h, --help display this help and exit |
| 1322 | --help=short display options specific to this package |
| 1323 | --help=recursive display the short help of all the included packages |
| 1324 | -V, --version display version information and exit |
| 1325 | -q, --quiet, --silent do not print 'checking ...' messages |
| 1326 | --cache-file=FILE cache test results in FILE [disabled] |
| 1327 | -C, --config-cache alias for '--cache-file=config.cache' |
| 1328 | -n, --no-create do not create output files |
| 1329 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1330 | |
| 1331 | Installation directories: |
| 1332 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1333 | [$ac_default_prefix] |
| 1334 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1335 | [PREFIX] |
| 1336 | |
| 1337 | By default, 'make install' will install all the files in |
| 1338 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1339 | an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1340 | for instance '--prefix=\$HOME'. |
| 1341 | |
| 1342 | For better control, use the options below. |
| 1343 | |
| 1344 | Fine tuning of the installation directories: |
| 1345 | --bindir=DIR user executables [EPREFIX/bin] |
| 1346 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1347 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1348 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1349 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1350 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1351 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1352 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1353 | --includedir=DIR C header files [PREFIX/include] |
| 1354 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1355 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1356 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1357 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1358 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1359 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1360 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1361 | --htmldir=DIR html documentation [DOCDIR] |
| 1362 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1363 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1364 | --psdir=DIR ps documentation [DOCDIR] |
| 1365 | _ACEOF |
| 1366 | |
| 1367 | cat <<\_ACEOF |
| 1368 | |
| 1369 | System types: |
| 1370 | --build=BUILD configure for building on BUILD [guessed] |
| 1371 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1372 | _ACEOF |
| 1373 | fi |
| 1374 | |
| 1375 | if test -n "$ac_init_help"; then |
| 1376 | |
| 1377 | cat <<\_ACEOF |
| 1378 | |
| 1379 | Optional Features: |
| 1380 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1381 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1382 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1383 | --enable-debug Turn on debug mode |
| 1384 | |
| 1385 | Optional Packages: |
| 1386 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1387 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1388 | --with-newt=PATH use newt files in PATH |
| 1389 | --with-curses=PATH use curses files in PATH |
| 1390 | --with-ncurses=PATH use ncurses files in PATH |
| 1391 | --with-libxml2=PATH use LibXML2 files in PATH |
| 1392 | --with-libtinfo=PATH use terminfo files in PATH |
| 1393 | |
| 1394 | Some influential environment variables: |
| 1395 | CC C compiler command |
| 1396 | CFLAGS C compiler flags |
| 1397 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1398 | nonstandard directory <lib dir> |
| 1399 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1400 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1401 | you have headers in a nonstandard directory <include dir> |
| 1402 | PKG_CONFIG path to pkg-config utility |
| 1403 | PKG_CONFIG_PATH |
| 1404 | directories to add to pkg-config's search path |
| 1405 | PKG_CONFIG_LIBDIR |
| 1406 | path overriding pkg-config's built-in search path |
| 1407 | LIBXML2_CFLAGS |
| 1408 | C compiler flags for LIBXML2, overriding pkg-config |
| 1409 | LIBXML2_LIBS |
| 1410 | linker flags for LIBXML2, overriding pkg-config |
| 1411 | GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config |
| 1412 | GTK2_LIBS linker flags for GTK2, overriding pkg-config |
| 1413 | |
| 1414 | Use these variables to override the choices made by 'configure' or to help |
| 1415 | it to find libraries and programs with nonstandard names/locations. |
| 1416 | |
| 1417 | Report bugs to the package provider. |
| 1418 | _ACEOF |
| 1419 | ac_status=$? |
| 1420 | fi |
| 1421 | |
| 1422 | if test "$ac_init_help" = "recursive"; then |
| 1423 | # If there are subdirs, report their specific --help. |
| 1424 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1425 | test -d "$ac_dir" || |
| 1426 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1427 | continue |
| 1428 | ac_builddir=. |
| 1429 | |
| 1430 | case "$ac_dir" in |
| 1431 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1432 | *) |
| 1433 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1434 | # A ".." for each directory in $ac_dir_suffix. |
| 1435 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1436 | case $ac_top_builddir_sub in |
| 1437 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1438 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1439 | esac ;; |
| 1440 | esac |
| 1441 | ac_abs_top_builddir=$ac_pwd |
| 1442 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1443 | # for backward compatibility: |
| 1444 | ac_top_builddir=$ac_top_build_prefix |
| 1445 | |
| 1446 | case $srcdir in |
| 1447 | .) # We are building in place. |
| 1448 | ac_srcdir=. |
| 1449 | ac_top_srcdir=$ac_top_builddir_sub |
| 1450 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1451 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1452 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1453 | ac_top_srcdir=$srcdir |
| 1454 | ac_abs_top_srcdir=$srcdir ;; |
| 1455 | *) # Relative name. |
| 1456 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1457 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1458 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1459 | esac |
| 1460 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1461 | |
| 1462 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1463 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1464 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1465 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1466 | echo && |
| 1467 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1468 | elif test -f "$ac_srcdir/configure"; then |
| 1469 | echo && |
| 1470 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1471 | else |
| 1472 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1473 | fi || ac_status=$? |
| 1474 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1475 | done |
| 1476 | fi |
| 1477 | |
| 1478 | test -n "$ac_init_help" && exit $ac_status |
| 1479 | if $ac_init_version; then |
| 1480 | cat <<\_ACEOF |
| 1481 | configure |
| 1482 | generated by GNU Autoconf 2.72 |
| 1483 | |
| 1484 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 1485 | This configure script is free software; the Free Software Foundation |
| 1486 | gives unlimited permission to copy, distribute and modify it. |
| 1487 | |
| 1488 | "Menuselect" |
| 1489 | _ACEOF |
| 1490 | exit |
| 1491 | fi |
| 1492 | |
| 1493 | ## ------------------------ ## |
| 1494 | ## Autoconf initialization. ## |
| 1495 | ## ------------------------ ## |
| 1496 | |
| 1497 | # ac_fn_c_try_compile LINENO |
| 1498 | # -------------------------- |
| 1499 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1500 | ac_fn_c_try_compile () |
| 1501 | { |
| 1502 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1503 | rm -f conftest.$ac_objext conftest.beam |
| 1504 | if { { ac_try="$ac_compile" |
| 1505 | case "(($ac_try" in |
| 1506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1507 | *) ac_try_echo=$ac_try;; |
| 1508 | esac |
| 1509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1510 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1511 | (eval "$ac_compile") 2>conftest.err |
| 1512 | ac_status=$? |
| 1513 | if test -s conftest.err; then |
| 1514 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1515 | cat conftest.er1 >&5 |
| 1516 | mv -f conftest.er1 conftest.err |
| 1517 | fi |
| 1518 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1519 | test $ac_status = 0; } && { |
| 1520 | test -z "$ac_c_werror_flag" || |
| 1521 | test ! -s conftest.err |
| 1522 | } && test -s conftest.$ac_objext |
| 1523 | then : |
| 1524 | ac_retval=0 |
| 1525 | else case e in #( |
| 1526 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1528 | |
| 1529 | ac_retval=1 ;; |
| 1530 | esac |
| 1531 | fi |
| 1532 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1533 | as_fn_set_status $ac_retval |
| 1534 | |
| 1535 | } # ac_fn_c_try_compile |
| 1536 | |
| 1537 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1538 | # ------------------------------------------- |
| 1539 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1540 | # variable VAR accordingly. |
| 1541 | ac_fn_c_check_type () |
| 1542 | { |
| 1543 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1545 | printf %s "checking for $2... " >&6; } |
| 1546 | if eval test \${$3+y} |
| 1547 | then : |
| 1548 | printf %s "(cached) " >&6 |
| 1549 | else case e in #( |
| 1550 | e) eval "$3=no" |
| 1551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1552 | /* end confdefs.h. */ |
| 1553 | $4 |
| 1554 | int |
| 1555 | main (void) |
| 1556 | { |
| 1557 | if (sizeof ($2)) |
| 1558 | return 0; |
| 1559 | ; |
| 1560 | return 0; |
| 1561 | } |
| 1562 | _ACEOF |
| 1563 | if ac_fn_c_try_compile "$LINENO" |
| 1564 | then : |
| 1565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1566 | /* end confdefs.h. */ |
| 1567 | $4 |
| 1568 | int |
| 1569 | main (void) |
| 1570 | { |
| 1571 | if (sizeof (($2))) |
| 1572 | return 0; |
| 1573 | ; |
| 1574 | return 0; |
| 1575 | } |
| 1576 | _ACEOF |
| 1577 | if ac_fn_c_try_compile "$LINENO" |
| 1578 | then : |
| 1579 | |
| 1580 | else case e in #( |
| 1581 | e) eval "$3=yes" ;; |
| 1582 | esac |
| 1583 | fi |
| 1584 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1585 | fi |
| 1586 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1587 | esac |
| 1588 | fi |
| 1589 | eval ac_res=\$$3 |
| 1590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1591 | printf "%s\n" "$ac_res" >&6; } |
| 1592 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1593 | |
| 1594 | } # ac_fn_c_check_type |
| 1595 | |
| 1596 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1597 | # ------------------------------------------------------- |
| 1598 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1599 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1600 | ac_fn_c_check_header_compile () |
| 1601 | { |
| 1602 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1604 | printf %s "checking for $2... " >&6; } |
| 1605 | if eval test \${$3+y} |
| 1606 | then : |
| 1607 | printf %s "(cached) " >&6 |
| 1608 | else case e in #( |
| 1609 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1610 | /* end confdefs.h. */ |
| 1611 | $4 |
| 1612 | #include <$2> |
| 1613 | _ACEOF |
| 1614 | if ac_fn_c_try_compile "$LINENO" |
| 1615 | then : |
| 1616 | eval "$3=yes" |
| 1617 | else case e in #( |
| 1618 | e) eval "$3=no" ;; |
| 1619 | esac |
| 1620 | fi |
| 1621 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1622 | esac |
| 1623 | fi |
| 1624 | eval ac_res=\$$3 |
| 1625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1626 | printf "%s\n" "$ac_res" >&6; } |
| 1627 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1628 | |
| 1629 | } # ac_fn_c_check_header_compile |
| 1630 | |
| 1631 | # ac_fn_c_try_link LINENO |
| 1632 | # ----------------------- |
| 1633 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1634 | ac_fn_c_try_link () |
| 1635 | { |
| 1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1637 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1638 | if { { ac_try="$ac_link" |
| 1639 | case "(($ac_try" in |
| 1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1641 | *) ac_try_echo=$ac_try;; |
| 1642 | esac |
| 1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1644 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1645 | (eval "$ac_link") 2>conftest.err |
| 1646 | ac_status=$? |
| 1647 | if test -s conftest.err; then |
| 1648 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1649 | cat conftest.er1 >&5 |
| 1650 | mv -f conftest.er1 conftest.err |
| 1651 | fi |
| 1652 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1653 | test $ac_status = 0; } && { |
| 1654 | test -z "$ac_c_werror_flag" || |
| 1655 | test ! -s conftest.err |
| 1656 | } && test -s conftest$ac_exeext && { |
| 1657 | test "$cross_compiling" = yes || |
| 1658 | test -x conftest$ac_exeext |
| 1659 | } |
| 1660 | then : |
| 1661 | ac_retval=0 |
| 1662 | else case e in #( |
| 1663 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1665 | |
| 1666 | ac_retval=1 ;; |
| 1667 | esac |
| 1668 | fi |
| 1669 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1670 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1671 | # interfere with the next link command; also delete a directory that is |
| 1672 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1673 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1675 | as_fn_set_status $ac_retval |
| 1676 | |
| 1677 | } # ac_fn_c_try_link |
| 1678 | |
| 1679 | # ac_fn_c_try_run LINENO |
| 1680 | # ---------------------- |
| 1681 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1682 | # executables *can* be run. |
| 1683 | ac_fn_c_try_run () |
| 1684 | { |
| 1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1686 | if { { ac_try="$ac_link" |
| 1687 | case "(($ac_try" in |
| 1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1689 | *) ac_try_echo=$ac_try;; |
| 1690 | esac |
| 1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1692 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1693 | (eval "$ac_link") 2>&5 |
| 1694 | ac_status=$? |
| 1695 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1696 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1697 | { { case "(($ac_try" in |
| 1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1699 | *) ac_try_echo=$ac_try;; |
| 1700 | esac |
| 1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1702 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1703 | (eval "$ac_try") 2>&5 |
| 1704 | ac_status=$? |
| 1705 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1706 | test $ac_status = 0; }; } |
| 1707 | then : |
| 1708 | ac_retval=0 |
| 1709 | else case e in #( |
| 1710 | e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1711 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1713 | |
| 1714 | ac_retval=$ac_status ;; |
| 1715 | esac |
| 1716 | fi |
| 1717 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1719 | as_fn_set_status $ac_retval |
| 1720 | |
| 1721 | } # ac_fn_c_try_run |
| 1722 | |
| 1723 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1724 | # ---------------------------------- |
| 1725 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1726 | ac_fn_c_check_func () |
| 1727 | { |
| 1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1730 | printf %s "checking for $2... " >&6; } |
| 1731 | if eval test \${$3+y} |
| 1732 | then : |
| 1733 | printf %s "(cached) " >&6 |
| 1734 | else case e in #( |
| 1735 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1736 | /* end confdefs.h. */ |
| 1737 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1738 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1739 | #define $2 innocuous_$2 |
| 1740 | |
| 1741 | /* System header to define __stub macros and hopefully few prototypes, |
| 1742 | which can conflict with char $2 (void); below. */ |
| 1743 | |
| 1744 | #include <limits.h> |
| 1745 | #undef $2 |
| 1746 | |
| 1747 | /* Override any GCC internal prototype to avoid an error. |
| 1748 | Use char because int might match the return type of a GCC |
| 1749 | builtin and then its argument prototype would still apply. */ |
| 1750 | #ifdef __cplusplus |
| 1751 | extern "C" |
| 1752 | #endif |
| 1753 | char $2 (void); |
| 1754 | /* The GNU C library defines this for functions which it implements |
| 1755 | to always fail with ENOSYS. Some functions are actually named |
| 1756 | something starting with __ and the normal name is an alias. */ |
| 1757 | #if defined __stub_$2 || defined __stub___$2 |
| 1758 | choke me |
| 1759 | #endif |
| 1760 | |
| 1761 | int |
| 1762 | main (void) |
| 1763 | { |
| 1764 | return $2 (); |
| 1765 | ; |
| 1766 | return 0; |
| 1767 | } |
| 1768 | _ACEOF |
| 1769 | if ac_fn_c_try_link "$LINENO" |
| 1770 | then : |
| 1771 | eval "$3=yes" |
| 1772 | else case e in #( |
| 1773 | e) eval "$3=no" ;; |
| 1774 | esac |
| 1775 | fi |
| 1776 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1777 | conftest$ac_exeext conftest.$ac_ext ;; |
| 1778 | esac |
| 1779 | fi |
| 1780 | eval ac_res=\$$3 |
| 1781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1782 | printf "%s\n" "$ac_res" >&6; } |
| 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1784 | |
| 1785 | } # ac_fn_c_check_func |
| 1786 | ac_configure_args_raw= |
| 1787 | for ac_arg |
| 1788 | do |
| 1789 | case $ac_arg in |
| 1790 | *\'*) |
| 1791 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1792 | esac |
| 1793 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1794 | done |
| 1795 | |
| 1796 | case $ac_configure_args_raw in |
| 1797 | *$as_nl*) |
| 1798 | ac_safe_unquote= ;; |
| 1799 | *) |
| 1800 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 1801 | ac_unsafe_a="$ac_unsafe_z#~" |
| 1802 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 1803 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 1804 | esac |
| 1805 | |
| 1806 | cat >config.log <<_ACEOF |
| 1807 | This file contains any messages produced by compilers while |
| 1808 | running configure, to aid debugging if configure makes a mistake. |
| 1809 | |
| 1810 | It was created by $as_me, which was |
| 1811 | generated by GNU Autoconf 2.72. Invocation command line was |
| 1812 | |
| 1813 | $ $0$ac_configure_args_raw |
| 1814 | |
| 1815 | _ACEOF |
| 1816 | exec 5>>config.log |
| 1817 | { |
| 1818 | cat <<_ASUNAME |
| 1819 | ## --------- ## |
| 1820 | ## Platform. ## |
| 1821 | ## --------- ## |
| 1822 | |
| 1823 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1824 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1825 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1826 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1827 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1828 | |
| 1829 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1830 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1831 | |
| 1832 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1833 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1834 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1835 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1836 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1837 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1838 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1839 | |
| 1840 | _ASUNAME |
| 1841 | |
| 1842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1843 | for as_dir in $PATH |
| 1844 | do |
| 1845 | IFS=$as_save_IFS |
| 1846 | case $as_dir in #((( |
| 1847 | '') as_dir=./ ;; |
| 1848 | */) ;; |
| 1849 | *) as_dir=$as_dir/ ;; |
| 1850 | esac |
| 1851 | printf "%s\n" "PATH: $as_dir" |
| 1852 | done |
| 1853 | IFS=$as_save_IFS |
| 1854 | |
| 1855 | } >&5 |
| 1856 | |
| 1857 | cat >&5 <<_ACEOF |
| 1858 | |
| 1859 | |
| 1860 | ## ----------- ## |
| 1861 | ## Core tests. ## |
| 1862 | ## ----------- ## |
| 1863 | |
| 1864 | _ACEOF |
| 1865 | |
| 1866 | |
| 1867 | # Keep a trace of the command line. |
| 1868 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1869 | # Strip out --silent because we don't want to record it for future runs. |
| 1870 | # Also quote any args containing shell meta-characters. |
| 1871 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1872 | ac_configure_args= |
| 1873 | ac_configure_args0= |
| 1874 | ac_configure_args1= |
| 1875 | ac_must_keep_next=false |
| 1876 | for ac_pass in 1 2 |
| 1877 | do |
| 1878 | for ac_arg |
| 1879 | do |
| 1880 | case $ac_arg in |
| 1881 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1882 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1883 | | -silent | --silent | --silen | --sile | --sil) |
| 1884 | continue ;; |
| 1885 | *\'*) |
| 1886 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1887 | esac |
| 1888 | case $ac_pass in |
| 1889 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1890 | 2) |
| 1891 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1892 | if test $ac_must_keep_next = true; then |
| 1893 | ac_must_keep_next=false # Got value, back to normal. |
| 1894 | else |
| 1895 | case $ac_arg in |
| 1896 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1897 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1898 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1899 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1900 | case "$ac_configure_args0 " in |
| 1901 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1902 | esac |
| 1903 | ;; |
| 1904 | -* ) ac_must_keep_next=true ;; |
| 1905 | esac |
| 1906 | fi |
| 1907 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1908 | ;; |
| 1909 | esac |
| 1910 | done |
| 1911 | done |
| 1912 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1913 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1914 | |
| 1915 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1916 | # config.log. We remove comments because anyway the quotes in there |
| 1917 | # would cause problems or look ugly. |
| 1918 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1919 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1920 | trap 'exit_status=$? |
| 1921 | # Sanitize IFS. |
| 1922 | IFS=" "" $as_nl" |
| 1923 | # Save into config.log some information that might help in debugging. |
| 1924 | { |
| 1925 | echo |
| 1926 | |
| 1927 | printf "%s\n" "## ---------------- ## |
| 1928 | ## Cache variables. ## |
| 1929 | ## ---------------- ##" |
| 1930 | echo |
| 1931 | # The following way of writing the cache mishandles newlines in values, |
| 1932 | ( |
| 1933 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1934 | eval ac_val=\$$ac_var |
| 1935 | case $ac_val in #( |
| 1936 | *${as_nl}*) |
| 1937 | case $ac_var in #( |
| 1938 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1939 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1940 | esac |
| 1941 | case $ac_var in #( |
| 1942 | _ | IFS | as_nl) ;; #( |
| 1943 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1944 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1945 | esac ;; |
| 1946 | esac |
| 1947 | done |
| 1948 | (set) 2>&1 | |
| 1949 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1950 | *${as_nl}ac_space=\ *) |
| 1951 | sed -n \ |
| 1952 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1953 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1954 | ;; #( |
| 1955 | *) |
| 1956 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1957 | ;; |
| 1958 | esac | |
| 1959 | sort |
| 1960 | ) |
| 1961 | echo |
| 1962 | |
| 1963 | printf "%s\n" "## ----------------- ## |
| 1964 | ## Output variables. ## |
| 1965 | ## ----------------- ##" |
| 1966 | echo |
| 1967 | for ac_var in $ac_subst_vars |
| 1968 | do |
| 1969 | eval ac_val=\$$ac_var |
| 1970 | case $ac_val in |
| 1971 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1972 | esac |
| 1973 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1974 | done | sort |
| 1975 | echo |
| 1976 | |
| 1977 | if test -n "$ac_subst_files"; then |
| 1978 | printf "%s\n" "## ------------------- ## |
| 1979 | ## File substitutions. ## |
| 1980 | ## ------------------- ##" |
| 1981 | echo |
| 1982 | for ac_var in $ac_subst_files |
| 1983 | do |
| 1984 | eval ac_val=\$$ac_var |
| 1985 | case $ac_val in |
| 1986 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1987 | esac |
| 1988 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1989 | done | sort |
| 1990 | echo |
| 1991 | fi |
| 1992 | |
| 1993 | if test -s confdefs.h; then |
| 1994 | printf "%s\n" "## ----------- ## |
| 1995 | ## confdefs.h. ## |
| 1996 | ## ----------- ##" |
| 1997 | echo |
| 1998 | cat confdefs.h |
| 1999 | echo |
| 2000 | fi |
| 2001 | test "$ac_signal" != 0 && |
| 2002 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2003 | printf "%s\n" "$as_me: exit $exit_status" |
| 2004 | } >&5 |
| 2005 | rm -f core *.core core.conftest.* && |
| 2006 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2007 | exit $exit_status |
| 2008 | ' 0 |
| 2009 | for ac_signal in 1 2 13 15; do |
| 2010 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2011 | done |
| 2012 | ac_signal=0 |
| 2013 | |
| 2014 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2015 | rm -f -r conftest* confdefs.h |
| 2016 | |
| 2017 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2018 | |
| 2019 | # Predefined preprocessor variables. |
| 2020 | |
| 2021 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2022 | |
| 2023 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2024 | |
| 2025 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2026 | |
| 2027 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2028 | |
| 2029 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2030 | |
| 2031 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2032 | |
| 2033 | |
| 2034 | # Let the site file select an alternate cache file if it wants to. |
| 2035 | # Prefer an explicitly selected file to automatically selected ones. |
| 2036 | if test -n "$CONFIG_SITE"; then |
| 2037 | ac_site_files="$CONFIG_SITE" |
| 2038 | elif test "x$prefix" != xNONE; then |
| 2039 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2040 | else |
| 2041 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2042 | fi |
| 2043 | |
| 2044 | for ac_site_file in $ac_site_files |
| 2045 | do |
| 2046 | case $ac_site_file in #( |
| 2047 | */*) : |
| 2048 | ;; #( |
| 2049 | *) : |
| 2050 | ac_site_file=./$ac_site_file ;; |
| 2051 | esac |
| 2052 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2054 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2055 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2056 | . "$ac_site_file" \ |
| 2057 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2058 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2059 | as_fn_error $? "failed to load site script $ac_site_file |
| 2060 | See 'config.log' for more details" "$LINENO" 5; } |
| 2061 | fi |
| 2062 | done |
| 2063 | |
| 2064 | if test -r "$cache_file"; then |
| 2065 | # Some versions of bash will fail to source /dev/null (special files |
| 2066 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2067 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2069 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2070 | case $cache_file in |
| 2071 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2072 | *) . "./$cache_file";; |
| 2073 | esac |
| 2074 | fi |
| 2075 | else |
| 2076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2077 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2078 | >$cache_file |
| 2079 | fi |
| 2080 | |
| 2081 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2082 | ac_c_conftest_c89_globals=' |
| 2083 | /* Does the compiler advertise C89 conformance? |
| 2084 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2085 | while being otherwise adequately conformant. */ |
| 2086 | #if !defined __STDC__ |
| 2087 | # error "Compiler does not advertise C89 conformance" |
| 2088 | #endif |
| 2089 | |
| 2090 | #include <stddef.h> |
| 2091 | #include <stdarg.h> |
| 2092 | struct stat; |
| 2093 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2094 | struct buf { int x; }; |
| 2095 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2096 | static char *e (char **p, int i) |
| 2097 | { |
| 2098 | return p[i]; |
| 2099 | } |
| 2100 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2101 | { |
| 2102 | char *s; |
| 2103 | va_list v; |
| 2104 | va_start (v,p); |
| 2105 | s = g (p, va_arg (v,int)); |
| 2106 | va_end (v); |
| 2107 | return s; |
| 2108 | } |
| 2109 | |
| 2110 | /* C89 style stringification. */ |
| 2111 | #define noexpand_stringify(a) #a |
| 2112 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2113 | |
| 2114 | /* C89 style token pasting. Exercises some of the corner cases that |
| 2115 | e.g. old MSVC gets wrong, but not very hard. */ |
| 2116 | #define noexpand_concat(a,b) a##b |
| 2117 | #define expand_concat(a,b) noexpand_concat(a,b) |
| 2118 | extern int vA; |
| 2119 | extern int vbee; |
| 2120 | #define aye A |
| 2121 | #define bee B |
| 2122 | int *pvA = &expand_concat(v,aye); |
| 2123 | int *pvbee = &noexpand_concat(v,bee); |
| 2124 | |
| 2125 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2126 | function prototypes and stuff, but not \xHH hex character constants. |
| 2127 | These do not provoke an error unfortunately, instead are silently treated |
| 2128 | as an "x". The following induces an error, until -std is added to get |
| 2129 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2130 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2131 | that is true only with -std. */ |
| 2132 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2133 | |
| 2134 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2135 | inside strings and character constants. */ |
| 2136 | #define FOO(x) '\''x'\'' |
| 2137 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2138 | |
| 2139 | int test (int i, double x); |
| 2140 | struct s1 {int (*f) (int a);}; |
| 2141 | struct s2 {int (*f) (double a);}; |
| 2142 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2143 | int, int);' |
| 2144 | |
| 2145 | # Test code for whether the C compiler supports C89 (body of main). |
| 2146 | ac_c_conftest_c89_main=' |
| 2147 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2148 | ' |
| 2149 | |
| 2150 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2151 | ac_c_conftest_c99_globals=' |
| 2152 | /* Does the compiler advertise C99 conformance? */ |
| 2153 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2154 | # error "Compiler does not advertise C99 conformance" |
| 2155 | #endif |
| 2156 | |
| 2157 | // See if C++-style comments work. |
| 2158 | |
| 2159 | #include <stdbool.h> |
| 2160 | extern int puts (const char *); |
| 2161 | extern int printf (const char *, ...); |
| 2162 | extern int dprintf (int, const char *, ...); |
| 2163 | extern void *malloc (size_t); |
| 2164 | extern void free (void *); |
| 2165 | |
| 2166 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2167 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2168 | // FILE and stderr. |
| 2169 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2170 | #define showlist(...) puts (#__VA_ARGS__) |
| 2171 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2172 | static void |
| 2173 | test_varargs_macros (void) |
| 2174 | { |
| 2175 | int x = 1234; |
| 2176 | int y = 5678; |
| 2177 | debug ("Flag"); |
| 2178 | debug ("X = %d\n", x); |
| 2179 | showlist (The first, second, and third items.); |
| 2180 | report (x>y, "x is %d but y is %d", x, y); |
| 2181 | } |
| 2182 | |
| 2183 | // Check long long types. |
| 2184 | #define BIG64 18446744073709551615ull |
| 2185 | #define BIG32 4294967295ul |
| 2186 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2187 | #if !BIG_OK |
| 2188 | #error "your preprocessor is broken" |
| 2189 | #endif |
| 2190 | #if BIG_OK |
| 2191 | #else |
| 2192 | #error "your preprocessor is broken" |
| 2193 | #endif |
| 2194 | static long long int bignum = -9223372036854775807LL; |
| 2195 | static unsigned long long int ubignum = BIG64; |
| 2196 | |
| 2197 | struct incomplete_array |
| 2198 | { |
| 2199 | int datasize; |
| 2200 | double data[]; |
| 2201 | }; |
| 2202 | |
| 2203 | struct named_init { |
| 2204 | int number; |
| 2205 | const wchar_t *name; |
| 2206 | double average; |
| 2207 | }; |
| 2208 | |
| 2209 | typedef const char *ccp; |
| 2210 | |
| 2211 | static inline int |
| 2212 | test_restrict (ccp restrict text) |
| 2213 | { |
| 2214 | // Iterate through items via the restricted pointer. |
| 2215 | // Also check for declarations in for loops. |
| 2216 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2217 | continue; |
| 2218 | return 0; |
| 2219 | } |
| 2220 | |
| 2221 | // Check varargs and va_copy. |
| 2222 | static bool |
| 2223 | test_varargs (const char *format, ...) |
| 2224 | { |
| 2225 | va_list args; |
| 2226 | va_start (args, format); |
| 2227 | va_list args_copy; |
| 2228 | va_copy (args_copy, args); |
| 2229 | |
| 2230 | const char *str = ""; |
| 2231 | int number = 0; |
| 2232 | float fnumber = 0; |
| 2233 | |
| 2234 | while (*format) |
| 2235 | { |
| 2236 | switch (*format++) |
| 2237 | { |
| 2238 | case '\''s'\'': // string |
| 2239 | str = va_arg (args_copy, const char *); |
| 2240 | break; |
| 2241 | case '\''d'\'': // int |
| 2242 | number = va_arg (args_copy, int); |
| 2243 | break; |
| 2244 | case '\''f'\'': // float |
| 2245 | fnumber = va_arg (args_copy, double); |
| 2246 | break; |
| 2247 | default: |
| 2248 | break; |
| 2249 | } |
| 2250 | } |
| 2251 | va_end (args_copy); |
| 2252 | va_end (args); |
| 2253 | |
| 2254 | return *str && number && fnumber; |
| 2255 | } |
| 2256 | ' |
| 2257 | |
| 2258 | # Test code for whether the C compiler supports C99 (body of main). |
| 2259 | ac_c_conftest_c99_main=' |
| 2260 | // Check bool. |
| 2261 | _Bool success = false; |
| 2262 | success |= (argc != 0); |
| 2263 | |
| 2264 | // Check restrict. |
| 2265 | if (test_restrict ("String literal") == 0) |
| 2266 | success = true; |
| 2267 | char *restrict newvar = "Another string"; |
| 2268 | |
| 2269 | // Check varargs. |
| 2270 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2271 | test_varargs_macros (); |
| 2272 | |
| 2273 | // Check flexible array members. |
| 2274 | struct incomplete_array *ia = |
| 2275 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2276 | ia->datasize = 10; |
| 2277 | for (int i = 0; i < ia->datasize; ++i) |
| 2278 | ia->data[i] = i * 1.234; |
| 2279 | // Work around memory leak warnings. |
| 2280 | free (ia); |
| 2281 | |
| 2282 | // Check named initializers. |
| 2283 | struct named_init ni = { |
| 2284 | .number = 34, |
| 2285 | .name = L"Test wide string", |
| 2286 | .average = 543.34343, |
| 2287 | }; |
| 2288 | |
| 2289 | ni.number = 58; |
| 2290 | |
| 2291 | int dynamic_array[ni.number]; |
| 2292 | dynamic_array[0] = argv[0][0]; |
| 2293 | dynamic_array[ni.number - 1] = 543; |
| 2294 | |
| 2295 | // work around unused variable warnings |
| 2296 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2297 | || dynamic_array[ni.number - 1] != 543); |
| 2298 | ' |
| 2299 | |
| 2300 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2301 | ac_c_conftest_c11_globals=' |
| 2302 | /* Does the compiler advertise C11 conformance? */ |
| 2303 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2304 | # error "Compiler does not advertise C11 conformance" |
| 2305 | #endif |
| 2306 | |
| 2307 | // Check _Alignas. |
| 2308 | char _Alignas (double) aligned_as_double; |
| 2309 | char _Alignas (0) no_special_alignment; |
| 2310 | extern char aligned_as_int; |
| 2311 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2312 | |
| 2313 | // Check _Alignof. |
| 2314 | enum |
| 2315 | { |
| 2316 | int_alignment = _Alignof (int), |
| 2317 | int_array_alignment = _Alignof (int[100]), |
| 2318 | char_alignment = _Alignof (char) |
| 2319 | }; |
| 2320 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2321 | |
| 2322 | // Check _Noreturn. |
| 2323 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2324 | |
| 2325 | // Check _Static_assert. |
| 2326 | struct test_static_assert |
| 2327 | { |
| 2328 | int x; |
| 2329 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2330 | "_Static_assert does not work in struct"); |
| 2331 | long int y; |
| 2332 | }; |
| 2333 | |
| 2334 | // Check UTF-8 literals. |
| 2335 | #define u8 syntax error! |
| 2336 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2337 | |
| 2338 | // Check duplicate typedefs. |
| 2339 | typedef long *long_ptr; |
| 2340 | typedef long int *long_ptr; |
| 2341 | typedef long_ptr long_ptr; |
| 2342 | |
| 2343 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2344 | struct anonymous |
| 2345 | { |
| 2346 | union { |
| 2347 | struct { int i; int j; }; |
| 2348 | struct { int k; long int l; } w; |
| 2349 | }; |
| 2350 | int m; |
| 2351 | } v1; |
| 2352 | ' |
| 2353 | |
| 2354 | # Test code for whether the C compiler supports C11 (body of main). |
| 2355 | ac_c_conftest_c11_main=' |
| 2356 | _Static_assert ((offsetof (struct anonymous, i) |
| 2357 | == offsetof (struct anonymous, w.k)), |
| 2358 | "Anonymous union alignment botch"); |
| 2359 | v1.i = 2; |
| 2360 | v1.w.k = 5; |
| 2361 | ok |= v1.i != 5; |
| 2362 | ' |
| 2363 | |
| 2364 | # Test code for whether the C compiler supports C11 (complete). |
| 2365 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2366 | ${ac_c_conftest_c99_globals} |
| 2367 | ${ac_c_conftest_c11_globals} |
| 2368 | |
| 2369 | int |
| 2370 | main (int argc, char **argv) |
| 2371 | { |
| 2372 | int ok = 0; |
| 2373 | ${ac_c_conftest_c89_main} |
| 2374 | ${ac_c_conftest_c99_main} |
| 2375 | ${ac_c_conftest_c11_main} |
| 2376 | return ok; |
| 2377 | } |
| 2378 | " |
| 2379 | |
| 2380 | # Test code for whether the C compiler supports C99 (complete). |
| 2381 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2382 | ${ac_c_conftest_c99_globals} |
| 2383 | |
| 2384 | int |
| 2385 | main (int argc, char **argv) |
| 2386 | { |
| 2387 | int ok = 0; |
| 2388 | ${ac_c_conftest_c89_main} |
| 2389 | ${ac_c_conftest_c99_main} |
| 2390 | return ok; |
| 2391 | } |
| 2392 | " |
| 2393 | |
| 2394 | # Test code for whether the C compiler supports C89 (complete). |
| 2395 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2396 | |
| 2397 | int |
| 2398 | main (int argc, char **argv) |
| 2399 | { |
| 2400 | int ok = 0; |
| 2401 | ${ac_c_conftest_c89_main} |
| 2402 | return ok; |
| 2403 | } |
| 2404 | " |
| 2405 | |
| 2406 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2407 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2408 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2409 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2410 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2411 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2412 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2413 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2414 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2415 | |
| 2416 | # Auxiliary files required by this configure script. |
| 2417 | ac_aux_files="config.guess config.sub" |
| 2418 | |
| 2419 | # Locations in which to look for auxiliary files. |
| 2420 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 2421 | |
| 2422 | # Search for a directory containing all of the required auxiliary files, |
| 2423 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2424 | # If we don't find one directory that contains all the files we need, |
| 2425 | # we report the set of missing files from the *first* directory in |
| 2426 | # $ac_aux_dir_candidates and give up. |
| 2427 | ac_missing_aux_files="" |
| 2428 | ac_first_candidate=: |
| 2429 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2431 | as_found=false |
| 2432 | for as_dir in $ac_aux_dir_candidates |
| 2433 | do |
| 2434 | IFS=$as_save_IFS |
| 2435 | case $as_dir in #((( |
| 2436 | '') as_dir=./ ;; |
| 2437 | */) ;; |
| 2438 | *) as_dir=$as_dir/ ;; |
| 2439 | esac |
| 2440 | as_found=: |
| 2441 | |
| 2442 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 2443 | ac_aux_dir_found=yes |
| 2444 | ac_install_sh= |
| 2445 | for ac_aux in $ac_aux_files |
| 2446 | do |
| 2447 | # As a special case, if "install-sh" is required, that requirement |
| 2448 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 2449 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 2450 | if test x"$ac_aux" = x"install-sh" |
| 2451 | then |
| 2452 | if test -f "${as_dir}install-sh"; then |
| 2453 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 2454 | ac_install_sh="${as_dir}install-sh -c" |
| 2455 | elif test -f "${as_dir}install.sh"; then |
| 2456 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 2457 | ac_install_sh="${as_dir}install.sh -c" |
| 2458 | elif test -f "${as_dir}shtool"; then |
| 2459 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 2460 | ac_install_sh="${as_dir}shtool install -c" |
| 2461 | else |
| 2462 | ac_aux_dir_found=no |
| 2463 | if $ac_first_candidate; then |
| 2464 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 2465 | else |
| 2466 | break |
| 2467 | fi |
| 2468 | fi |
| 2469 | else |
| 2470 | if test -f "${as_dir}${ac_aux}"; then |
| 2471 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 2472 | else |
| 2473 | ac_aux_dir_found=no |
| 2474 | if $ac_first_candidate; then |
| 2475 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 2476 | else |
| 2477 | break |
| 2478 | fi |
| 2479 | fi |
| 2480 | fi |
| 2481 | done |
| 2482 | if test "$ac_aux_dir_found" = yes; then |
| 2483 | ac_aux_dir="$as_dir" |
| 2484 | break |
| 2485 | fi |
| 2486 | ac_first_candidate=false |
| 2487 | |
| 2488 | as_found=false |
| 2489 | done |
| 2490 | IFS=$as_save_IFS |
| 2491 | if $as_found |
| 2492 | then : |
| 2493 | |
| 2494 | else case e in #( |
| 2495 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; |
| 2496 | esac |
| 2497 | fi |
| 2498 | |
| 2499 | |
| 2500 | # These three variables are undocumented and unsupported, |
| 2501 | # and are intended to be withdrawn in a future Autoconf release. |
| 2502 | # They can cause serious problems if a builder's source tree is in a directory |
| 2503 | # whose full name contains unusual characters. |
| 2504 | if test -f "${ac_aux_dir}config.guess"; then |
| 2505 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 2506 | fi |
| 2507 | if test -f "${ac_aux_dir}config.sub"; then |
| 2508 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 2509 | fi |
| 2510 | if test -f "$ac_aux_dir/configure"; then |
| 2511 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 2512 | fi |
| 2513 | |
| 2514 | # Check that the precious variables saved in the cache have kept the same |
| 2515 | # value. |
| 2516 | ac_cache_corrupted=false |
| 2517 | for ac_var in $ac_precious_vars; do |
| 2518 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2519 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2520 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2521 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2522 | case $ac_old_set,$ac_new_set in |
| 2523 | set,) |
| 2524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 2525 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 2526 | ac_cache_corrupted=: ;; |
| 2527 | ,set) |
| 2528 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 2529 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 2530 | ac_cache_corrupted=: ;; |
| 2531 | ,);; |
| 2532 | *) |
| 2533 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2534 | # differences in whitespace do not lead to failure. |
| 2535 | ac_old_val_w=`echo x $ac_old_val` |
| 2536 | ac_new_val_w=`echo x $ac_new_val` |
| 2537 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 2539 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 2540 | ac_cache_corrupted=: |
| 2541 | else |
| 2542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 2543 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 2544 | eval $ac_var=\$ac_old_val |
| 2545 | fi |
| 2546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 2547 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 2548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 2549 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 2550 | fi;; |
| 2551 | esac |
| 2552 | # Pass precious variables to config.status. |
| 2553 | if test "$ac_new_set" = set; then |
| 2554 | case $ac_new_val in |
| 2555 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2556 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2557 | esac |
| 2558 | case " $ac_configure_args " in |
| 2559 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2560 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2561 | esac |
| 2562 | fi |
| 2563 | done |
| 2564 | if $ac_cache_corrupted; then |
| 2565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2566 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2568 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2569 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 2570 | and start over" "$LINENO" 5 |
| 2571 | fi |
| 2572 | ## -------------------- ## |
| 2573 | ## Main body of script. ## |
| 2574 | ## -------------------- ## |
| 2575 | |
| 2576 | ac_ext=c |
| 2577 | ac_cpp='$CPP $CPPFLAGS' |
| 2578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2581 | |
| 2582 | |
| 2583 | |
| 2584 | # check existence of the package |
| 2585 | |
| 2586 | |
| 2587 | # specify output header file |
| 2588 | ac_config_headers="$ac_config_headers autoconfig.h" |
| 2589 | |
| 2590 | |
| 2591 | |
| 2592 | |
| 2593 | |
| 2594 | |
| 2595 | |
| 2596 | # Make sure we can run config.sub. |
| 2597 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 2598 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 2599 | |
| 2600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2601 | printf %s "checking build system type... " >&6; } |
| 2602 | if test ${ac_cv_build+y} |
| 2603 | then : |
| 2604 | printf %s "(cached) " >&6 |
| 2605 | else case e in #( |
| 2606 | e) ac_build_alias=$build_alias |
| 2607 | test "x$ac_build_alias" = x && |
| 2608 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 2609 | test "x$ac_build_alias" = x && |
| 2610 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2611 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 2612 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2613 | ;; |
| 2614 | esac |
| 2615 | fi |
| 2616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2617 | printf "%s\n" "$ac_cv_build" >&6; } |
| 2618 | case $ac_cv_build in |
| 2619 | *-*-*) ;; |
| 2620 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2621 | esac |
| 2622 | build=$ac_cv_build |
| 2623 | ac_save_IFS=$IFS; IFS='-' |
| 2624 | set x $ac_cv_build |
| 2625 | shift |
| 2626 | build_cpu=$1 |
| 2627 | build_vendor=$2 |
| 2628 | shift; shift |
| 2629 | # Remember, the first character of IFS is used to create $*, |
| 2630 | # except with old shells: |
| 2631 | build_os=$* |
| 2632 | IFS=$ac_save_IFS |
| 2633 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2634 | |
| 2635 | |
| 2636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2637 | printf %s "checking host system type... " >&6; } |
| 2638 | if test ${ac_cv_host+y} |
| 2639 | then : |
| 2640 | printf %s "(cached) " >&6 |
| 2641 | else case e in #( |
| 2642 | e) if test "x$host_alias" = x; then |
| 2643 | ac_cv_host=$ac_cv_build |
| 2644 | else |
| 2645 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 2646 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 2647 | fi |
| 2648 | ;; |
| 2649 | esac |
| 2650 | fi |
| 2651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2652 | printf "%s\n" "$ac_cv_host" >&6; } |
| 2653 | case $ac_cv_host in |
| 2654 | *-*-*) ;; |
| 2655 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2656 | esac |
| 2657 | host=$ac_cv_host |
| 2658 | ac_save_IFS=$IFS; IFS='-' |
| 2659 | set x $ac_cv_host |
| 2660 | shift |
| 2661 | host_cpu=$1 |
| 2662 | host_vendor=$2 |
| 2663 | shift; shift |
| 2664 | # Remember, the first character of IFS is used to create $*, |
| 2665 | # except with old shells: |
| 2666 | host_os=$* |
| 2667 | IFS=$ac_save_IFS |
| 2668 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2669 | |
| 2670 | |
| 2671 | |
| 2672 | HOST_OS=${host_os} |
| 2673 | |
| 2674 | |
| 2675 | case "${host_os}" in |
| 2676 | *dragonfly*) |
| 2677 | CPPFLAGS="${CPPFLAGS} -I/usr/local/include" |
| 2678 | LDFLAGS="${LDFLAGS} -L/usr/local/lib" |
| 2679 | ;; |
| 2680 | *netbsd*) |
| 2681 | CPPFLAGS="${CPPFLAGS} -I/usr/pkg/include" |
| 2682 | LDFLAGS="${LDFLAGS} -L/usr/pkg/lib" |
| 2683 | ;; |
| 2684 | *bsd*) |
| 2685 | CPPFLAGS="${CPPFLAGS} -I/usr/local/include" |
| 2686 | LDFLAGS="${LDFLAGS} -L/usr/local/lib" |
| 2687 | ;; |
| 2688 | esac |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | |
| 2694 | # Checks for programs. |
| 2695 | |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | |
| 2703 | |
| 2704 | ac_ext=c |
| 2705 | ac_cpp='$CPP $CPPFLAGS' |
| 2706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2709 | if test -n "$ac_tool_prefix"; then |
| 2710 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2711 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2713 | printf %s "checking for $ac_word... " >&6; } |
| 2714 | if test ${ac_cv_prog_CC+y} |
| 2715 | then : |
| 2716 | printf %s "(cached) " >&6 |
| 2717 | else case e in #( |
| 2718 | e) if test -n "$CC"; then |
| 2719 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2720 | else |
| 2721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2722 | for as_dir in $PATH |
| 2723 | do |
| 2724 | IFS=$as_save_IFS |
| 2725 | case $as_dir in #((( |
| 2726 | '') as_dir=./ ;; |
| 2727 | */) ;; |
| 2728 | *) as_dir=$as_dir/ ;; |
| 2729 | esac |
| 2730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2731 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2732 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2733 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2734 | break 2 |
| 2735 | fi |
| 2736 | done |
| 2737 | done |
| 2738 | IFS=$as_save_IFS |
| 2739 | |
| 2740 | fi ;; |
| 2741 | esac |
| 2742 | fi |
| 2743 | CC=$ac_cv_prog_CC |
| 2744 | if test -n "$CC"; then |
| 2745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2746 | printf "%s\n" "$CC" >&6; } |
| 2747 | else |
| 2748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2749 | printf "%s\n" "no" >&6; } |
| 2750 | fi |
| 2751 | |
| 2752 | |
| 2753 | fi |
| 2754 | if test -z "$ac_cv_prog_CC"; then |
| 2755 | ac_ct_CC=$CC |
| 2756 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2757 | set dummy gcc; ac_word=$2 |
| 2758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2759 | printf %s "checking for $ac_word... " >&6; } |
| 2760 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 2761 | then : |
| 2762 | printf %s "(cached) " >&6 |
| 2763 | else case e in #( |
| 2764 | e) if test -n "$ac_ct_CC"; then |
| 2765 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2766 | else |
| 2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2768 | for as_dir in $PATH |
| 2769 | do |
| 2770 | IFS=$as_save_IFS |
| 2771 | case $as_dir in #((( |
| 2772 | '') as_dir=./ ;; |
| 2773 | */) ;; |
| 2774 | *) as_dir=$as_dir/ ;; |
| 2775 | esac |
| 2776 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2777 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2778 | ac_cv_prog_ac_ct_CC="gcc" |
| 2779 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2780 | break 2 |
| 2781 | fi |
| 2782 | done |
| 2783 | done |
| 2784 | IFS=$as_save_IFS |
| 2785 | |
| 2786 | fi ;; |
| 2787 | esac |
| 2788 | fi |
| 2789 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2790 | if test -n "$ac_ct_CC"; then |
| 2791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2792 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 2793 | else |
| 2794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2795 | printf "%s\n" "no" >&6; } |
| 2796 | fi |
| 2797 | |
| 2798 | if test "x$ac_ct_CC" = x; then |
| 2799 | CC="" |
| 2800 | else |
| 2801 | case $cross_compiling:$ac_tool_warned in |
| 2802 | yes:) |
| 2803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2804 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2805 | ac_tool_warned=yes ;; |
| 2806 | esac |
| 2807 | CC=$ac_ct_CC |
| 2808 | fi |
| 2809 | else |
| 2810 | CC="$ac_cv_prog_CC" |
| 2811 | fi |
| 2812 | |
| 2813 | if test -z "$CC"; then |
| 2814 | if test -n "$ac_tool_prefix"; then |
| 2815 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2816 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2818 | printf %s "checking for $ac_word... " >&6; } |
| 2819 | if test ${ac_cv_prog_CC+y} |
| 2820 | then : |
| 2821 | printf %s "(cached) " >&6 |
| 2822 | else case e in #( |
| 2823 | e) if test -n "$CC"; then |
| 2824 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2825 | else |
| 2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2827 | for as_dir in $PATH |
| 2828 | do |
| 2829 | IFS=$as_save_IFS |
| 2830 | case $as_dir in #((( |
| 2831 | '') as_dir=./ ;; |
| 2832 | */) ;; |
| 2833 | *) as_dir=$as_dir/ ;; |
| 2834 | esac |
| 2835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2836 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2837 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2838 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2839 | break 2 |
| 2840 | fi |
| 2841 | done |
| 2842 | done |
| 2843 | IFS=$as_save_IFS |
| 2844 | |
| 2845 | fi ;; |
| 2846 | esac |
| 2847 | fi |
| 2848 | CC=$ac_cv_prog_CC |
| 2849 | if test -n "$CC"; then |
| 2850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2851 | printf "%s\n" "$CC" >&6; } |
| 2852 | else |
| 2853 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2854 | printf "%s\n" "no" >&6; } |
| 2855 | fi |
| 2856 | |
| 2857 | |
| 2858 | fi |
| 2859 | fi |
| 2860 | if test -z "$CC"; then |
| 2861 | # Extract the first word of "cc", so it can be a program name with args. |
| 2862 | set dummy cc; ac_word=$2 |
| 2863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2864 | printf %s "checking for $ac_word... " >&6; } |
| 2865 | if test ${ac_cv_prog_CC+y} |
| 2866 | then : |
| 2867 | printf %s "(cached) " >&6 |
| 2868 | else case e in #( |
| 2869 | e) if test -n "$CC"; then |
| 2870 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2871 | else |
| 2872 | ac_prog_rejected=no |
| 2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2874 | for as_dir in $PATH |
| 2875 | do |
| 2876 | IFS=$as_save_IFS |
| 2877 | case $as_dir in #((( |
| 2878 | '') as_dir=./ ;; |
| 2879 | */) ;; |
| 2880 | *) as_dir=$as_dir/ ;; |
| 2881 | esac |
| 2882 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2883 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2884 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2885 | ac_prog_rejected=yes |
| 2886 | continue |
| 2887 | fi |
| 2888 | ac_cv_prog_CC="cc" |
| 2889 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2890 | break 2 |
| 2891 | fi |
| 2892 | done |
| 2893 | done |
| 2894 | IFS=$as_save_IFS |
| 2895 | |
| 2896 | if test $ac_prog_rejected = yes; then |
| 2897 | # We found a bogon in the path, so make sure we never use it. |
| 2898 | set dummy $ac_cv_prog_CC |
| 2899 | shift |
| 2900 | if test $# != 0; then |
| 2901 | # We chose a different compiler from the bogus one. |
| 2902 | # However, it has the same basename, so the bogon will be chosen |
| 2903 | # first if we set CC to just the basename; use the full file name. |
| 2904 | shift |
| 2905 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 2906 | fi |
| 2907 | fi |
| 2908 | fi ;; |
| 2909 | esac |
| 2910 | fi |
| 2911 | CC=$ac_cv_prog_CC |
| 2912 | if test -n "$CC"; then |
| 2913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2914 | printf "%s\n" "$CC" >&6; } |
| 2915 | else |
| 2916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2917 | printf "%s\n" "no" >&6; } |
| 2918 | fi |
| 2919 | |
| 2920 | |
| 2921 | fi |
| 2922 | if test -z "$CC"; then |
| 2923 | if test -n "$ac_tool_prefix"; then |
| 2924 | for ac_prog in cl.exe |
| 2925 | do |
| 2926 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2927 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2929 | printf %s "checking for $ac_word... " >&6; } |
| 2930 | if test ${ac_cv_prog_CC+y} |
| 2931 | then : |
| 2932 | printf %s "(cached) " >&6 |
| 2933 | else case e in #( |
| 2934 | e) if test -n "$CC"; then |
| 2935 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2936 | else |
| 2937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2938 | for as_dir in $PATH |
| 2939 | do |
| 2940 | IFS=$as_save_IFS |
| 2941 | case $as_dir in #((( |
| 2942 | '') as_dir=./ ;; |
| 2943 | */) ;; |
| 2944 | *) as_dir=$as_dir/ ;; |
| 2945 | esac |
| 2946 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2947 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2948 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2949 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2950 | break 2 |
| 2951 | fi |
| 2952 | done |
| 2953 | done |
| 2954 | IFS=$as_save_IFS |
| 2955 | |
| 2956 | fi ;; |
| 2957 | esac |
| 2958 | fi |
| 2959 | CC=$ac_cv_prog_CC |
| 2960 | if test -n "$CC"; then |
| 2961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2962 | printf "%s\n" "$CC" >&6; } |
| 2963 | else |
| 2964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2965 | printf "%s\n" "no" >&6; } |
| 2966 | fi |
| 2967 | |
| 2968 | |
| 2969 | test -n "$CC" && break |
| 2970 | done |
| 2971 | fi |
| 2972 | if test -z "$CC"; then |
| 2973 | ac_ct_CC=$CC |
| 2974 | for ac_prog in cl.exe |
| 2975 | do |
| 2976 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2977 | set dummy $ac_prog; ac_word=$2 |
| 2978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2979 | printf %s "checking for $ac_word... " >&6; } |
| 2980 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 2981 | then : |
| 2982 | printf %s "(cached) " >&6 |
| 2983 | else case e in #( |
| 2984 | e) if test -n "$ac_ct_CC"; then |
| 2985 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2986 | else |
| 2987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2988 | for as_dir in $PATH |
| 2989 | do |
| 2990 | IFS=$as_save_IFS |
| 2991 | case $as_dir in #((( |
| 2992 | '') as_dir=./ ;; |
| 2993 | */) ;; |
| 2994 | *) as_dir=$as_dir/ ;; |
| 2995 | esac |
| 2996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2997 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2998 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2999 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3000 | break 2 |
| 3001 | fi |
| 3002 | done |
| 3003 | done |
| 3004 | IFS=$as_save_IFS |
| 3005 | |
| 3006 | fi ;; |
| 3007 | esac |
| 3008 | fi |
| 3009 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3010 | if test -n "$ac_ct_CC"; then |
| 3011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3012 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3013 | else |
| 3014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3015 | printf "%s\n" "no" >&6; } |
| 3016 | fi |
| 3017 | |
| 3018 | |
| 3019 | test -n "$ac_ct_CC" && break |
| 3020 | done |
| 3021 | |
| 3022 | if test "x$ac_ct_CC" = x; then |
| 3023 | CC="" |
| 3024 | else |
| 3025 | case $cross_compiling:$ac_tool_warned in |
| 3026 | yes:) |
| 3027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3028 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3029 | ac_tool_warned=yes ;; |
| 3030 | esac |
| 3031 | CC=$ac_ct_CC |
| 3032 | fi |
| 3033 | fi |
| 3034 | |
| 3035 | fi |
| 3036 | if test -z "$CC"; then |
| 3037 | if test -n "$ac_tool_prefix"; then |
| 3038 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3039 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3041 | printf %s "checking for $ac_word... " >&6; } |
| 3042 | if test ${ac_cv_prog_CC+y} |
| 3043 | then : |
| 3044 | printf %s "(cached) " >&6 |
| 3045 | else case e in #( |
| 3046 | e) if test -n "$CC"; then |
| 3047 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3048 | else |
| 3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3050 | for as_dir in $PATH |
| 3051 | do |
| 3052 | IFS=$as_save_IFS |
| 3053 | case $as_dir in #((( |
| 3054 | '') as_dir=./ ;; |
| 3055 | */) ;; |
| 3056 | *) as_dir=$as_dir/ ;; |
| 3057 | esac |
| 3058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3059 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3060 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3061 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3062 | break 2 |
| 3063 | fi |
| 3064 | done |
| 3065 | done |
| 3066 | IFS=$as_save_IFS |
| 3067 | |
| 3068 | fi ;; |
| 3069 | esac |
| 3070 | fi |
| 3071 | CC=$ac_cv_prog_CC |
| 3072 | if test -n "$CC"; then |
| 3073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3074 | printf "%s\n" "$CC" >&6; } |
| 3075 | else |
| 3076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3077 | printf "%s\n" "no" >&6; } |
| 3078 | fi |
| 3079 | |
| 3080 | |
| 3081 | fi |
| 3082 | if test -z "$ac_cv_prog_CC"; then |
| 3083 | ac_ct_CC=$CC |
| 3084 | # Extract the first word of "clang", so it can be a program name with args. |
| 3085 | set dummy clang; ac_word=$2 |
| 3086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3087 | printf %s "checking for $ac_word... " >&6; } |
| 3088 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3089 | then : |
| 3090 | printf %s "(cached) " >&6 |
| 3091 | else case e in #( |
| 3092 | e) if test -n "$ac_ct_CC"; then |
| 3093 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3094 | else |
| 3095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3096 | for as_dir in $PATH |
| 3097 | do |
| 3098 | IFS=$as_save_IFS |
| 3099 | case $as_dir in #((( |
| 3100 | '') as_dir=./ ;; |
| 3101 | */) ;; |
| 3102 | *) as_dir=$as_dir/ ;; |
| 3103 | esac |
| 3104 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3105 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3106 | ac_cv_prog_ac_ct_CC="clang" |
| 3107 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3108 | break 2 |
| 3109 | fi |
| 3110 | done |
| 3111 | done |
| 3112 | IFS=$as_save_IFS |
| 3113 | |
| 3114 | fi ;; |
| 3115 | esac |
| 3116 | fi |
| 3117 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3118 | if test -n "$ac_ct_CC"; then |
| 3119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3120 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3121 | else |
| 3122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3123 | printf "%s\n" "no" >&6; } |
| 3124 | fi |
| 3125 | |
| 3126 | if test "x$ac_ct_CC" = x; then |
| 3127 | CC="" |
| 3128 | else |
| 3129 | case $cross_compiling:$ac_tool_warned in |
| 3130 | yes:) |
| 3131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3132 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3133 | ac_tool_warned=yes ;; |
| 3134 | esac |
| 3135 | CC=$ac_ct_CC |
| 3136 | fi |
| 3137 | else |
| 3138 | CC="$ac_cv_prog_CC" |
| 3139 | fi |
| 3140 | |
| 3141 | fi |
| 3142 | |
| 3143 | |
| 3144 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3145 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3146 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3147 | See 'config.log' for more details" "$LINENO" 5; } |
| 3148 | |
| 3149 | # Provide some information about the compiler. |
| 3150 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3151 | set X $ac_compile |
| 3152 | ac_compiler=$2 |
| 3153 | for ac_option in --version -v -V -qversion -version; do |
| 3154 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3155 | case "(($ac_try" in |
| 3156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3157 | *) ac_try_echo=$ac_try;; |
| 3158 | esac |
| 3159 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3160 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3161 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3162 | ac_status=$? |
| 3163 | if test -s conftest.err; then |
| 3164 | sed '10a\ |
| 3165 | ... rest of stderr output deleted ... |
| 3166 | 10q' conftest.err >conftest.er1 |
| 3167 | cat conftest.er1 >&5 |
| 3168 | fi |
| 3169 | rm -f conftest.er1 conftest.err |
| 3170 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3171 | test $ac_status = 0; } |
| 3172 | done |
| 3173 | |
| 3174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3175 | /* end confdefs.h. */ |
| 3176 | |
| 3177 | int |
| 3178 | main (void) |
| 3179 | { |
| 3180 | |
| 3181 | ; |
| 3182 | return 0; |
| 3183 | } |
| 3184 | _ACEOF |
| 3185 | ac_clean_files_save=$ac_clean_files |
| 3186 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3187 | # Try to create an executable without -o first, disregard a.out. |
| 3188 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3189 | # of exeext. |
| 3190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3191 | printf %s "checking whether the C compiler works... " >&6; } |
| 3192 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3193 | |
| 3194 | # The possible output files: |
| 3195 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3196 | |
| 3197 | ac_rmfiles= |
| 3198 | for ac_file in $ac_files |
| 3199 | do |
| 3200 | case $ac_file in |
| 3201 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3202 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3203 | esac |
| 3204 | done |
| 3205 | rm -f $ac_rmfiles |
| 3206 | |
| 3207 | if { { ac_try="$ac_link_default" |
| 3208 | case "(($ac_try" in |
| 3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3210 | *) ac_try_echo=$ac_try;; |
| 3211 | esac |
| 3212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3213 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3214 | (eval "$ac_link_default") 2>&5 |
| 3215 | ac_status=$? |
| 3216 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3217 | test $ac_status = 0; } |
| 3218 | then : |
| 3219 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 3220 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 3221 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3222 | # so that the user can short-circuit this test for compilers unknown to |
| 3223 | # Autoconf. |
| 3224 | for ac_file in $ac_files '' |
| 3225 | do |
| 3226 | test -f "$ac_file" || continue |
| 3227 | case $ac_file in |
| 3228 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3229 | ;; |
| 3230 | [ab].out ) |
| 3231 | # We found the default executable, but exeext='' is most |
| 3232 | # certainly right. |
| 3233 | break;; |
| 3234 | *.* ) |
| 3235 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 3236 | then :; else |
| 3237 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3238 | fi |
| 3239 | # We set ac_cv_exeext here because the later test for it is not |
| 3240 | # safe: cross compilers may not add the suffix if given an '-o' |
| 3241 | # argument, so we may need to know it at that point already. |
| 3242 | # Even if this section looks crufty: it has the advantage of |
| 3243 | # actually working. |
| 3244 | break;; |
| 3245 | * ) |
| 3246 | break;; |
| 3247 | esac |
| 3248 | done |
| 3249 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3250 | |
| 3251 | else case e in #( |
| 3252 | e) ac_file='' ;; |
| 3253 | esac |
| 3254 | fi |
| 3255 | if test -z "$ac_file" |
| 3256 | then : |
| 3257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3258 | printf "%s\n" "no" >&6; } |
| 3259 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3261 | |
| 3262 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3263 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3264 | as_fn_error 77 "C compiler cannot create executables |
| 3265 | See 'config.log' for more details" "$LINENO" 5; } |
| 3266 | else case e in #( |
| 3267 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3268 | printf "%s\n" "yes" >&6; } ;; |
| 3269 | esac |
| 3270 | fi |
| 3271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3272 | printf %s "checking for C compiler default output file name... " >&6; } |
| 3273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3274 | printf "%s\n" "$ac_file" >&6; } |
| 3275 | ac_exeext=$ac_cv_exeext |
| 3276 | |
| 3277 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3278 | ac_clean_files=$ac_clean_files_save |
| 3279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3280 | printf %s "checking for suffix of executables... " >&6; } |
| 3281 | if { { ac_try="$ac_link" |
| 3282 | case "(($ac_try" in |
| 3283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3284 | *) ac_try_echo=$ac_try;; |
| 3285 | esac |
| 3286 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3287 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3288 | (eval "$ac_link") 2>&5 |
| 3289 | ac_status=$? |
| 3290 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3291 | test $ac_status = 0; } |
| 3292 | then : |
| 3293 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 3294 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 3295 | # work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 3296 | # 'rm'. |
| 3297 | for ac_file in conftest.exe conftest conftest.*; do |
| 3298 | test -f "$ac_file" || continue |
| 3299 | case $ac_file in |
| 3300 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3301 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3302 | break;; |
| 3303 | * ) break;; |
| 3304 | esac |
| 3305 | done |
| 3306 | else case e in #( |
| 3307 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3308 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3309 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3310 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3311 | esac |
| 3312 | fi |
| 3313 | rm -f conftest conftest$ac_cv_exeext |
| 3314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3315 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 3316 | |
| 3317 | rm -f conftest.$ac_ext |
| 3318 | EXEEXT=$ac_cv_exeext |
| 3319 | ac_exeext=$EXEEXT |
| 3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3321 | /* end confdefs.h. */ |
| 3322 | #include <stdio.h> |
| 3323 | int |
| 3324 | main (void) |
| 3325 | { |
| 3326 | FILE *f = fopen ("conftest.out", "w"); |
| 3327 | if (!f) |
| 3328 | return 1; |
| 3329 | return ferror (f) || fclose (f) != 0; |
| 3330 | |
| 3331 | ; |
| 3332 | return 0; |
| 3333 | } |
| 3334 | _ACEOF |
| 3335 | ac_clean_files="$ac_clean_files conftest.out" |
| 3336 | # Check that the compiler produces executables we can run. If not, either |
| 3337 | # the compiler is broken, or we cross compile. |
| 3338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3339 | printf %s "checking whether we are cross compiling... " >&6; } |
| 3340 | if test "$cross_compiling" != yes; then |
| 3341 | { { ac_try="$ac_link" |
| 3342 | case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3347 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3348 | (eval "$ac_link") 2>&5 |
| 3349 | ac_status=$? |
| 3350 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3351 | test $ac_status = 0; } |
| 3352 | if { ac_try='./conftest$ac_cv_exeext' |
| 3353 | { { case "(($ac_try" in |
| 3354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3355 | *) ac_try_echo=$ac_try;; |
| 3356 | esac |
| 3357 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3358 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3359 | (eval "$ac_try") 2>&5 |
| 3360 | ac_status=$? |
| 3361 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3362 | test $ac_status = 0; }; }; then |
| 3363 | cross_compiling=no |
| 3364 | else |
| 3365 | if test "$cross_compiling" = maybe; then |
| 3366 | cross_compiling=yes |
| 3367 | else |
| 3368 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3369 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3370 | as_fn_error 77 "cannot run C compiled programs. |
| 3371 | If you meant to cross compile, use '--host'. |
| 3372 | See 'config.log' for more details" "$LINENO" 5; } |
| 3373 | fi |
| 3374 | fi |
| 3375 | fi |
| 3376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3377 | printf "%s\n" "$cross_compiling" >&6; } |
| 3378 | |
| 3379 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 3380 | conftest.o conftest.obj conftest.out |
| 3381 | ac_clean_files=$ac_clean_files_save |
| 3382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3383 | printf %s "checking for suffix of object files... " >&6; } |
| 3384 | if test ${ac_cv_objext+y} |
| 3385 | then : |
| 3386 | printf %s "(cached) " >&6 |
| 3387 | else case e in #( |
| 3388 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3389 | /* end confdefs.h. */ |
| 3390 | |
| 3391 | int |
| 3392 | main (void) |
| 3393 | { |
| 3394 | |
| 3395 | ; |
| 3396 | return 0; |
| 3397 | } |
| 3398 | _ACEOF |
| 3399 | rm -f conftest.o conftest.obj |
| 3400 | if { { ac_try="$ac_compile" |
| 3401 | case "(($ac_try" in |
| 3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3403 | *) ac_try_echo=$ac_try;; |
| 3404 | esac |
| 3405 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3406 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3407 | (eval "$ac_compile") 2>&5 |
| 3408 | ac_status=$? |
| 3409 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3410 | test $ac_status = 0; } |
| 3411 | then : |
| 3412 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3413 | test -f "$ac_file" || continue; |
| 3414 | case $ac_file in |
| 3415 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3416 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3417 | break;; |
| 3418 | esac |
| 3419 | done |
| 3420 | else case e in #( |
| 3421 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 3422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3423 | |
| 3424 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3425 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3426 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3427 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3428 | esac |
| 3429 | fi |
| 3430 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 3431 | esac |
| 3432 | fi |
| 3433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3434 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 3435 | OBJEXT=$ac_cv_objext |
| 3436 | ac_objext=$OBJEXT |
| 3437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3438 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3439 | if test ${ac_cv_c_compiler_gnu+y} |
| 3440 | then : |
| 3441 | printf %s "(cached) " >&6 |
| 3442 | else case e in #( |
| 3443 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3444 | /* end confdefs.h. */ |
| 3445 | |
| 3446 | int |
| 3447 | main (void) |
| 3448 | { |
| 3449 | #ifndef __GNUC__ |
| 3450 | choke me |
| 3451 | #endif |
| 3452 | |
| 3453 | ; |
| 3454 | return 0; |
| 3455 | } |
| 3456 | _ACEOF |
| 3457 | if ac_fn_c_try_compile "$LINENO" |
| 3458 | then : |
| 3459 | ac_compiler_gnu=yes |
| 3460 | else case e in #( |
| 3461 | e) ac_compiler_gnu=no ;; |
| 3462 | esac |
| 3463 | fi |
| 3464 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3465 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3466 | ;; |
| 3467 | esac |
| 3468 | fi |
| 3469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3470 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3472 | |
| 3473 | if test $ac_compiler_gnu = yes; then |
| 3474 | GCC=yes |
| 3475 | else |
| 3476 | GCC= |
| 3477 | fi |
| 3478 | ac_test_CFLAGS=${CFLAGS+y} |
| 3479 | ac_save_CFLAGS=$CFLAGS |
| 3480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3481 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 3482 | if test ${ac_cv_prog_cc_g+y} |
| 3483 | then : |
| 3484 | printf %s "(cached) " >&6 |
| 3485 | else case e in #( |
| 3486 | e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 3487 | ac_c_werror_flag=yes |
| 3488 | ac_cv_prog_cc_g=no |
| 3489 | CFLAGS="-g" |
| 3490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3491 | /* end confdefs.h. */ |
| 3492 | |
| 3493 | int |
| 3494 | main (void) |
| 3495 | { |
| 3496 | |
| 3497 | ; |
| 3498 | return 0; |
| 3499 | } |
| 3500 | _ACEOF |
| 3501 | if ac_fn_c_try_compile "$LINENO" |
| 3502 | then : |
| 3503 | ac_cv_prog_cc_g=yes |
| 3504 | else case e in #( |
| 3505 | e) CFLAGS="" |
| 3506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3507 | /* end confdefs.h. */ |
| 3508 | |
| 3509 | int |
| 3510 | main (void) |
| 3511 | { |
| 3512 | |
| 3513 | ; |
| 3514 | return 0; |
| 3515 | } |
| 3516 | _ACEOF |
| 3517 | if ac_fn_c_try_compile "$LINENO" |
| 3518 | then : |
| 3519 | |
| 3520 | else case e in #( |
| 3521 | e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 3522 | CFLAGS="-g" |
| 3523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3524 | /* end confdefs.h. */ |
| 3525 | |
| 3526 | int |
| 3527 | main (void) |
| 3528 | { |
| 3529 | |
| 3530 | ; |
| 3531 | return 0; |
| 3532 | } |
| 3533 | _ACEOF |
| 3534 | if ac_fn_c_try_compile "$LINENO" |
| 3535 | then : |
| 3536 | ac_cv_prog_cc_g=yes |
| 3537 | fi |
| 3538 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3539 | esac |
| 3540 | fi |
| 3541 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3542 | esac |
| 3543 | fi |
| 3544 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3545 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 3546 | esac |
| 3547 | fi |
| 3548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3549 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 3550 | if test $ac_test_CFLAGS; then |
| 3551 | CFLAGS=$ac_save_CFLAGS |
| 3552 | elif test $ac_cv_prog_cc_g = yes; then |
| 3553 | if test "$GCC" = yes; then |
| 3554 | CFLAGS="-g -O2" |
| 3555 | else |
| 3556 | CFLAGS="-g" |
| 3557 | fi |
| 3558 | else |
| 3559 | if test "$GCC" = yes; then |
| 3560 | CFLAGS="-O2" |
| 3561 | else |
| 3562 | CFLAGS= |
| 3563 | fi |
| 3564 | fi |
| 3565 | ac_prog_cc_stdc=no |
| 3566 | if test x$ac_prog_cc_stdc = xno |
| 3567 | then : |
| 3568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 3569 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 3570 | if test ${ac_cv_prog_cc_c11+y} |
| 3571 | then : |
| 3572 | printf %s "(cached) " >&6 |
| 3573 | else case e in #( |
| 3574 | e) ac_cv_prog_cc_c11=no |
| 3575 | ac_save_CC=$CC |
| 3576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3577 | /* end confdefs.h. */ |
| 3578 | $ac_c_conftest_c11_program |
| 3579 | _ACEOF |
| 3580 | for ac_arg in '' -std=gnu11 |
| 3581 | do |
| 3582 | CC="$ac_save_CC $ac_arg" |
| 3583 | if ac_fn_c_try_compile "$LINENO" |
| 3584 | then : |
| 3585 | ac_cv_prog_cc_c11=$ac_arg |
| 3586 | fi |
| 3587 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3588 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 3589 | done |
| 3590 | rm -f conftest.$ac_ext |
| 3591 | CC=$ac_save_CC ;; |
| 3592 | esac |
| 3593 | fi |
| 3594 | |
| 3595 | if test "x$ac_cv_prog_cc_c11" = xno |
| 3596 | then : |
| 3597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3598 | printf "%s\n" "unsupported" >&6; } |
| 3599 | else case e in #( |
| 3600 | e) if test "x$ac_cv_prog_cc_c11" = x |
| 3601 | then : |
| 3602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3603 | printf "%s\n" "none needed" >&6; } |
| 3604 | else case e in #( |
| 3605 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 3606 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 3607 | CC="$CC $ac_cv_prog_cc_c11" ;; |
| 3608 | esac |
| 3609 | fi |
| 3610 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 3611 | ac_prog_cc_stdc=c11 ;; |
| 3612 | esac |
| 3613 | fi |
| 3614 | fi |
| 3615 | if test x$ac_prog_cc_stdc = xno |
| 3616 | then : |
| 3617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 3618 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 3619 | if test ${ac_cv_prog_cc_c99+y} |
| 3620 | then : |
| 3621 | printf %s "(cached) " >&6 |
| 3622 | else case e in #( |
| 3623 | e) ac_cv_prog_cc_c99=no |
| 3624 | ac_save_CC=$CC |
| 3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3626 | /* end confdefs.h. */ |
| 3627 | $ac_c_conftest_c99_program |
| 3628 | _ACEOF |
| 3629 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 3630 | do |
| 3631 | CC="$ac_save_CC $ac_arg" |
| 3632 | if ac_fn_c_try_compile "$LINENO" |
| 3633 | then : |
| 3634 | ac_cv_prog_cc_c99=$ac_arg |
| 3635 | fi |
| 3636 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3637 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 3638 | done |
| 3639 | rm -f conftest.$ac_ext |
| 3640 | CC=$ac_save_CC ;; |
| 3641 | esac |
| 3642 | fi |
| 3643 | |
| 3644 | if test "x$ac_cv_prog_cc_c99" = xno |
| 3645 | then : |
| 3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3647 | printf "%s\n" "unsupported" >&6; } |
| 3648 | else case e in #( |
| 3649 | e) if test "x$ac_cv_prog_cc_c99" = x |
| 3650 | then : |
| 3651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3652 | printf "%s\n" "none needed" >&6; } |
| 3653 | else case e in #( |
| 3654 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 3655 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 3656 | CC="$CC $ac_cv_prog_cc_c99" ;; |
| 3657 | esac |
| 3658 | fi |
| 3659 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 3660 | ac_prog_cc_stdc=c99 ;; |
| 3661 | esac |
| 3662 | fi |
| 3663 | fi |
| 3664 | if test x$ac_prog_cc_stdc = xno |
| 3665 | then : |
| 3666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 3667 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 3668 | if test ${ac_cv_prog_cc_c89+y} |
| 3669 | then : |
| 3670 | printf %s "(cached) " >&6 |
| 3671 | else case e in #( |
| 3672 | e) ac_cv_prog_cc_c89=no |
| 3673 | ac_save_CC=$CC |
| 3674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3675 | /* end confdefs.h. */ |
| 3676 | $ac_c_conftest_c89_program |
| 3677 | _ACEOF |
| 3678 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3679 | do |
| 3680 | CC="$ac_save_CC $ac_arg" |
| 3681 | if ac_fn_c_try_compile "$LINENO" |
| 3682 | then : |
| 3683 | ac_cv_prog_cc_c89=$ac_arg |
| 3684 | fi |
| 3685 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3686 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3687 | done |
| 3688 | rm -f conftest.$ac_ext |
| 3689 | CC=$ac_save_CC ;; |
| 3690 | esac |
| 3691 | fi |
| 3692 | |
| 3693 | if test "x$ac_cv_prog_cc_c89" = xno |
| 3694 | then : |
| 3695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3696 | printf "%s\n" "unsupported" >&6; } |
| 3697 | else case e in #( |
| 3698 | e) if test "x$ac_cv_prog_cc_c89" = x |
| 3699 | then : |
| 3700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3701 | printf "%s\n" "none needed" >&6; } |
| 3702 | else case e in #( |
| 3703 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3704 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 3705 | CC="$CC $ac_cv_prog_cc_c89" ;; |
| 3706 | esac |
| 3707 | fi |
| 3708 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 3709 | ac_prog_cc_stdc=c89 ;; |
| 3710 | esac |
| 3711 | fi |
| 3712 | fi |
| 3713 | |
| 3714 | ac_ext=c |
| 3715 | ac_cpp='$CPP $CPPFLAGS' |
| 3716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3719 | |
| 3720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
| 3721 | printf %s "checking for GNU make... " >&6; } |
| 3722 | if test ${ac_cv_GNU_MAKE+y} |
| 3723 | then : |
| 3724 | printf %s "(cached) " >&6 |
| 3725 | else case e in #( |
| 3726 | e) ac_cv_GNU_MAKE='Not Found' ; |
| 3727 | ac_cv_GNU_MAKE_VERSION_MAJOR=0 ; |
| 3728 | ac_cv_GNU_MAKE_VERSION_MINOR=0 ; |
| 3729 | for a in make gmake gnumake ; do |
| 3730 | if test -z "$a" ; then continue ; fi ; |
| 3731 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 3732 | ac_cv_GNU_MAKE=$a ; |
| 3733 | ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'` |
| 3734 | ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2` |
| 3735 | break; |
| 3736 | fi |
| 3737 | done ; |
| 3738 | ;; |
| 3739 | esac |
| 3740 | fi |
| 3741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5 |
| 3742 | printf "%s\n" "$ac_cv_GNU_MAKE" >&6; } ; |
| 3743 | if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then |
| 3744 | as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5 |
| 3745 | exit 1 |
| 3746 | fi |
| 3747 | GNU_MAKE=$ac_cv_GNU_MAKE |
| 3748 | |
| 3749 | |
| 3750 | |
| 3751 | |
| 3752 | |
| 3753 | |
| 3754 | |
| 3755 | |
| 3756 | |
| 3757 | |
| 3758 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 3759 | if test -n "$ac_tool_prefix"; then |
| 3760 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 3761 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 3762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3763 | printf %s "checking for $ac_word... " >&6; } |
| 3764 | if test ${ac_cv_path_PKG_CONFIG+y} |
| 3765 | then : |
| 3766 | printf %s "(cached) " >&6 |
| 3767 | else case e in #( |
| 3768 | e) case $PKG_CONFIG in |
| 3769 | [\\/]* | ?:[\\/]*) |
| 3770 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 3771 | ;; |
| 3772 | *) |
| 3773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3774 | for as_dir in $PATH |
| 3775 | do |
| 3776 | IFS=$as_save_IFS |
| 3777 | case $as_dir in #((( |
| 3778 | '') as_dir=./ ;; |
| 3779 | */) ;; |
| 3780 | *) as_dir=$as_dir/ ;; |
| 3781 | esac |
| 3782 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3783 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3784 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 3785 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3786 | break 2 |
| 3787 | fi |
| 3788 | done |
| 3789 | done |
| 3790 | IFS=$as_save_IFS |
| 3791 | |
| 3792 | ;; |
| 3793 | esac ;; |
| 3794 | esac |
| 3795 | fi |
| 3796 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 3797 | if test -n "$PKG_CONFIG"; then |
| 3798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 3799 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 3800 | else |
| 3801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3802 | printf "%s\n" "no" >&6; } |
| 3803 | fi |
| 3804 | |
| 3805 | |
| 3806 | fi |
| 3807 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 3808 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 3809 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 3810 | set dummy pkg-config; ac_word=$2 |
| 3811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3812 | printf %s "checking for $ac_word... " >&6; } |
| 3813 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 3814 | then : |
| 3815 | printf %s "(cached) " >&6 |
| 3816 | else case e in #( |
| 3817 | e) case $ac_pt_PKG_CONFIG in |
| 3818 | [\\/]* | ?:[\\/]*) |
| 3819 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 3820 | ;; |
| 3821 | *) |
| 3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3823 | for as_dir in $PATH |
| 3824 | do |
| 3825 | IFS=$as_save_IFS |
| 3826 | case $as_dir in #((( |
| 3827 | '') as_dir=./ ;; |
| 3828 | */) ;; |
| 3829 | *) as_dir=$as_dir/ ;; |
| 3830 | esac |
| 3831 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3832 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3833 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 3834 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3835 | break 2 |
| 3836 | fi |
| 3837 | done |
| 3838 | done |
| 3839 | IFS=$as_save_IFS |
| 3840 | |
| 3841 | ;; |
| 3842 | esac ;; |
| 3843 | esac |
| 3844 | fi |
| 3845 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 3846 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 3847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 3848 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
| 3849 | else |
| 3850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3851 | printf "%s\n" "no" >&6; } |
| 3852 | fi |
| 3853 | |
| 3854 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 3855 | PKG_CONFIG="" |
| 3856 | else |
| 3857 | case $cross_compiling:$ac_tool_warned in |
| 3858 | yes:) |
| 3859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3860 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3861 | ac_tool_warned=yes ;; |
| 3862 | esac |
| 3863 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 3864 | fi |
| 3865 | else |
| 3866 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 3867 | fi |
| 3868 | |
| 3869 | fi |
| 3870 | if test -n "$PKG_CONFIG"; then |
| 3871 | _pkg_min_version=0.9.0 |
| 3872 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 3873 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 3874 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 3875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3876 | printf "%s\n" "yes" >&6; } |
| 3877 | else |
| 3878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3879 | printf "%s\n" "no" >&6; } |
| 3880 | PKG_CONFIG="" |
| 3881 | fi |
| 3882 | fi |
| 3883 | if test -z "$PKG_CONFIG"; then |
| 3884 | as_fn_error $? "pkg-config not found" "$LINENO" 5 |
| 3885 | fi |
| 3886 | |
| 3887 | ac_ext=c |
| 3888 | ac_cpp='$CPP $CPPFLAGS' |
| 3889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3892 | |
| 3893 | # Check whether --enable-debug was given. |
| 3894 | if test ${enable_debug+y} |
| 3895 | then : |
| 3896 | enableval=$enable_debug; case "${enableval}" in |
| 3897 | y|ye|yes) MENUSELECT_DEBUG=yes ;; |
| 3898 | n|no) MENUSELECT_DEBUG=no ;; |
| 3899 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; |
| 3900 | esac |
| 3901 | fi |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 | ac_header= ac_cache= |
| 3907 | for ac_item in $ac_header_c_list |
| 3908 | do |
| 3909 | if test $ac_cache; then |
| 3910 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 3911 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 3912 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 3913 | fi |
| 3914 | ac_header= ac_cache= |
| 3915 | elif test $ac_header; then |
| 3916 | ac_cache=$ac_item |
| 3917 | else |
| 3918 | ac_header=$ac_item |
| 3919 | fi |
| 3920 | done |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | |
| 3929 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 3930 | then : |
| 3931 | |
| 3932 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 3933 | |
| 3934 | fi |
| 3935 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 3936 | if test "x$ac_cv_type_size_t" = xyes |
| 3937 | then : |
| 3938 | |
| 3939 | else case e in #( |
| 3940 | e) |
| 3941 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 3942 | ;; |
| 3943 | esac |
| 3944 | fi |
| 3945 | |
| 3946 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 3947 | # for constant arguments. Useless! |
| 3948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 3949 | printf %s "checking for working alloca.h... " >&6; } |
| 3950 | if test ${ac_cv_working_alloca_h+y} |
| 3951 | then : |
| 3952 | printf %s "(cached) " >&6 |
| 3953 | else case e in #( |
| 3954 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3955 | /* end confdefs.h. */ |
| 3956 | #include <alloca.h> |
| 3957 | int |
| 3958 | main (void) |
| 3959 | { |
| 3960 | char *p = (char *) alloca (2 * sizeof (int)); |
| 3961 | if (p) return 0; |
| 3962 | ; |
| 3963 | return 0; |
| 3964 | } |
| 3965 | _ACEOF |
| 3966 | if ac_fn_c_try_link "$LINENO" |
| 3967 | then : |
| 3968 | ac_cv_working_alloca_h=yes |
| 3969 | else case e in #( |
| 3970 | e) ac_cv_working_alloca_h=no ;; |
| 3971 | esac |
| 3972 | fi |
| 3973 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 3974 | conftest$ac_exeext conftest.$ac_ext ;; |
| 3975 | esac |
| 3976 | fi |
| 3977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 3978 | printf "%s\n" "$ac_cv_working_alloca_h" >&6; } |
| 3979 | if test $ac_cv_working_alloca_h = yes; then |
| 3980 | |
| 3981 | printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 3982 | |
| 3983 | fi |
| 3984 | |
| 3985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 3986 | printf %s "checking for alloca... " >&6; } |
| 3987 | if test ${ac_cv_func_alloca_works+y} |
| 3988 | then : |
| 3989 | printf %s "(cached) " >&6 |
| 3990 | else case e in #( |
| 3991 | e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h |
| 3992 | if test "$ac_cv_func_alloca_works" != yes |
| 3993 | then : |
| 3994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3995 | /* end confdefs.h. */ |
| 3996 | #include <stdlib.h> |
| 3997 | #include <stddef.h> |
| 3998 | #ifndef alloca |
| 3999 | # ifdef __GNUC__ |
| 4000 | # define alloca __builtin_alloca |
| 4001 | # elif defined _MSC_VER |
| 4002 | # include <malloc.h> |
| 4003 | # define alloca _alloca |
| 4004 | # else |
| 4005 | # ifdef __cplusplus |
| 4006 | extern "C" |
| 4007 | # endif |
| 4008 | void *alloca (size_t); |
| 4009 | # endif |
| 4010 | #endif |
| 4011 | |
| 4012 | int |
| 4013 | main (void) |
| 4014 | { |
| 4015 | char *p = (char *) alloca (1); |
| 4016 | if (p) return 0; |
| 4017 | ; |
| 4018 | return 0; |
| 4019 | } |
| 4020 | _ACEOF |
| 4021 | if ac_fn_c_try_link "$LINENO" |
| 4022 | then : |
| 4023 | ac_cv_func_alloca_works=yes |
| 4024 | fi |
| 4025 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4026 | conftest$ac_exeext conftest.$ac_ext |
| 4027 | fi ;; |
| 4028 | esac |
| 4029 | fi |
| 4030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 4031 | printf "%s\n" "$ac_cv_func_alloca_works" >&6; } |
| 4032 | |
| 4033 | if test $ac_cv_func_alloca_works = yes; then |
| 4034 | |
| 4035 | printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h |
| 4036 | |
| 4037 | else |
| 4038 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 4039 | # that cause trouble. Some versions do not even contain alloca or |
| 4040 | # contain a buggy version. If you still want to use their alloca, |
| 4041 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 4042 | |
| 4043 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 4044 | |
| 4045 | printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
| 4046 | |
| 4047 | |
| 4048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 4049 | printf %s "checking stack direction for C alloca... " >&6; } |
| 4050 | if test ${ac_cv_c_stack_direction+y} |
| 4051 | then : |
| 4052 | printf %s "(cached) " >&6 |
| 4053 | else case e in #( |
| 4054 | e) if test "$cross_compiling" = yes |
| 4055 | then : |
| 4056 | ac_cv_c_stack_direction=0 |
| 4057 | else case e in #( |
| 4058 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4059 | /* end confdefs.h. */ |
| 4060 | $ac_includes_default |
| 4061 | int |
| 4062 | find_stack_direction (int *addr, int depth) |
| 4063 | { |
| 4064 | int dir, dummy = 0; |
| 4065 | if (! addr) |
| 4066 | addr = &dummy; |
| 4067 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 4068 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 4069 | return dir + dummy; |
| 4070 | } |
| 4071 | |
| 4072 | int |
| 4073 | main (int argc, char **argv) |
| 4074 | { |
| 4075 | return find_stack_direction (0, argc + !argv + 20) < 0; |
| 4076 | } |
| 4077 | _ACEOF |
| 4078 | if ac_fn_c_try_run "$LINENO" |
| 4079 | then : |
| 4080 | ac_cv_c_stack_direction=1 |
| 4081 | else case e in #( |
| 4082 | e) ac_cv_c_stack_direction=-1 ;; |
| 4083 | esac |
| 4084 | fi |
| 4085 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4086 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4087 | esac |
| 4088 | fi |
| 4089 | ;; |
| 4090 | esac |
| 4091 | fi |
| 4092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 4093 | printf "%s\n" "$ac_cv_c_stack_direction" >&6; } |
| 4094 | printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h |
| 4095 | |
| 4096 | |
| 4097 | fi |
| 4098 | |
| 4099 | ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" |
| 4100 | if test "x$ac_cv_func_asprintf" = xyes |
| 4101 | then : |
| 4102 | printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h |
| 4103 | |
| 4104 | fi |
| 4105 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
| 4106 | if test "x$ac_cv_func_getloadavg" = xyes |
| 4107 | then : |
| 4108 | printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h |
| 4109 | |
| 4110 | fi |
| 4111 | ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 4112 | if test "x$ac_cv_func_setenv" = xyes |
| 4113 | then : |
| 4114 | printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
| 4115 | |
| 4116 | fi |
| 4117 | ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" |
| 4118 | if test "x$ac_cv_func_strcasestr" = xyes |
| 4119 | then : |
| 4120 | printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h |
| 4121 | |
| 4122 | fi |
| 4123 | ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" |
| 4124 | if test "x$ac_cv_func_strndup" = xyes |
| 4125 | then : |
| 4126 | printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h |
| 4127 | |
| 4128 | fi |
| 4129 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" |
| 4130 | if test "x$ac_cv_func_strnlen" = xyes |
| 4131 | then : |
| 4132 | printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h |
| 4133 | |
| 4134 | fi |
| 4135 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
| 4136 | if test "x$ac_cv_func_strsep" = xyes |
| 4137 | then : |
| 4138 | printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h |
| 4139 | |
| 4140 | fi |
| 4141 | ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
| 4142 | if test "x$ac_cv_func_unsetenv" = xyes |
| 4143 | then : |
| 4144 | printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
| 4145 | |
| 4146 | fi |
| 4147 | ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" |
| 4148 | if test "x$ac_cv_func_vasprintf" = xyes |
| 4149 | then : |
| 4150 | printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h |
| 4151 | |
| 4152 | fi |
| 4153 | |
| 4154 | |
| 4155 | # The frontend can use curses, ncurses, newt or GTK2 so check for all of them |
| 4156 | |
| 4157 | |
| 4158 | NEWT_DESCRIP="newt" |
| 4159 | NEWT_OPTION="newt" |
| 4160 | PBX_NEWT=0 |
| 4161 | |
| 4162 | # Check whether --with-newt was given. |
| 4163 | if test ${with_newt+y} |
| 4164 | then : |
| 4165 | withval=$with_newt; |
| 4166 | case ${withval} in |
| 4167 | n|no) |
| 4168 | USE_NEWT=no |
| 4169 | # -1 is a magic value used by menuselect to know that the package |
| 4170 | # was disabled, other than 'not found' |
| 4171 | PBX_NEWT=-1 |
| 4172 | ;; |
| 4173 | y|ye|yes) |
| 4174 | ac_mandatory_list="${ac_mandatory_list} NEWT" |
| 4175 | ;; |
| 4176 | *) |
| 4177 | NEWT_DIR="${withval}" |
| 4178 | ac_mandatory_list="${ac_mandatory_list} NEWT" |
| 4179 | ;; |
| 4180 | esac |
| 4181 | |
| 4182 | fi |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
| 4188 | |
| 4189 | |
| 4190 | |
| 4191 | CURSES_DESCRIP="curses" |
| 4192 | CURSES_OPTION="curses" |
| 4193 | PBX_CURSES=0 |
| 4194 | |
| 4195 | # Check whether --with-curses was given. |
| 4196 | if test ${with_curses+y} |
| 4197 | then : |
| 4198 | withval=$with_curses; |
| 4199 | case ${withval} in |
| 4200 | n|no) |
| 4201 | USE_CURSES=no |
| 4202 | # -1 is a magic value used by menuselect to know that the package |
| 4203 | # was disabled, other than 'not found' |
| 4204 | PBX_CURSES=-1 |
| 4205 | ;; |
| 4206 | y|ye|yes) |
| 4207 | ac_mandatory_list="${ac_mandatory_list} CURSES" |
| 4208 | ;; |
| 4209 | *) |
| 4210 | CURSES_DIR="${withval}" |
| 4211 | ac_mandatory_list="${ac_mandatory_list} CURSES" |
| 4212 | ;; |
| 4213 | esac |
| 4214 | |
| 4215 | fi |
| 4216 | |
| 4217 | |
| 4218 | |
| 4219 | |
| 4220 | |
| 4221 | |
| 4222 | |
| 4223 | |
| 4224 | NCURSES_DESCRIP="ncurses" |
| 4225 | NCURSES_OPTION="ncurses" |
| 4226 | PBX_NCURSES=0 |
| 4227 | |
| 4228 | # Check whether --with-ncurses was given. |
| 4229 | if test ${with_ncurses+y} |
| 4230 | then : |
| 4231 | withval=$with_ncurses; |
| 4232 | case ${withval} in |
| 4233 | n|no) |
| 4234 | USE_NCURSES=no |
| 4235 | # -1 is a magic value used by menuselect to know that the package |
| 4236 | # was disabled, other than 'not found' |
| 4237 | PBX_NCURSES=-1 |
| 4238 | ;; |
| 4239 | y|ye|yes) |
| 4240 | ac_mandatory_list="${ac_mandatory_list} NCURSES" |
| 4241 | ;; |
| 4242 | *) |
| 4243 | NCURSES_DIR="${withval}" |
| 4244 | ac_mandatory_list="${ac_mandatory_list} NCURSES" |
| 4245 | ;; |
| 4246 | esac |
| 4247 | |
| 4248 | fi |
| 4249 | |
| 4250 | |
| 4251 | |
| 4252 | |
| 4253 | |
| 4254 | |
| 4255 | |
| 4256 | |
| 4257 | LIBXML2_DESCRIP="LibXML2" |
| 4258 | LIBXML2_OPTION="libxml2" |
| 4259 | PBX_LIBXML2=0 |
| 4260 | |
| 4261 | # Check whether --with-libxml2 was given. |
| 4262 | if test ${with_libxml2+y} |
| 4263 | then : |
| 4264 | withval=$with_libxml2; |
| 4265 | case ${withval} in |
| 4266 | n|no) |
| 4267 | USE_LIBXML2=no |
| 4268 | # -1 is a magic value used by menuselect to know that the package |
| 4269 | # was disabled, other than 'not found' |
| 4270 | PBX_LIBXML2=-1 |
| 4271 | ;; |
| 4272 | y|ye|yes) |
| 4273 | ac_mandatory_list="${ac_mandatory_list} LIBXML2" |
| 4274 | ;; |
| 4275 | *) |
| 4276 | LIBXML2_DIR="${withval}" |
| 4277 | ac_mandatory_list="${ac_mandatory_list} LIBXML2" |
| 4278 | ;; |
| 4279 | esac |
| 4280 | |
| 4281 | fi |
| 4282 | |
| 4283 | |
| 4284 | |
| 4285 | |
| 4286 | |
| 4287 | |
| 4288 | |
| 4289 | |
| 4290 | TINFO_DESCRIP="terminfo" |
| 4291 | TINFO_OPTION="libtinfo" |
| 4292 | PBX_TINFO=0 |
| 4293 | |
| 4294 | # Check whether --with-libtinfo was given. |
| 4295 | if test ${with_libtinfo+y} |
| 4296 | then : |
| 4297 | withval=$with_libtinfo; |
| 4298 | case ${withval} in |
| 4299 | n|no) |
| 4300 | USE_TINFO=no |
| 4301 | # -1 is a magic value used by menuselect to know that the package |
| 4302 | # was disabled, other than 'not found' |
| 4303 | PBX_TINFO=-1 |
| 4304 | ;; |
| 4305 | y|ye|yes) |
| 4306 | ac_mandatory_list="${ac_mandatory_list} TINFO" |
| 4307 | ;; |
| 4308 | *) |
| 4309 | TINFO_DIR="${withval}" |
| 4310 | ac_mandatory_list="${ac_mandatory_list} TINFO" |
| 4311 | ;; |
| 4312 | esac |
| 4313 | |
| 4314 | fi |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then |
| 4325 | pbxlibdir="" |
| 4326 | # if --with-NEWT=DIR has been specified, use it. |
| 4327 | if test "x${NEWT_DIR}" != "x"; then |
| 4328 | if test -d ${NEWT_DIR}/lib; then |
| 4329 | pbxlibdir="-L${NEWT_DIR}/lib" |
| 4330 | else |
| 4331 | pbxlibdir="-L${NEWT_DIR}" |
| 4332 | fi |
| 4333 | fi |
| 4334 | |
| 4335 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4336 | CFLAGS="${CFLAGS} " |
| 4337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newtBell in -lnewt" >&5 |
| 4338 | printf %s "checking for newtBell in -lnewt... " >&6; } |
| 4339 | if test ${ac_cv_lib_newt_newtBell+y} |
| 4340 | then : |
| 4341 | printf %s "(cached) " >&6 |
| 4342 | else case e in #( |
| 4343 | e) ac_check_lib_save_LIBS=$LIBS |
| 4344 | LIBS="-lnewt ${pbxlibdir} $LIBS" |
| 4345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4346 | /* end confdefs.h. */ |
| 4347 | |
| 4348 | /* Override any GCC internal prototype to avoid an error. |
| 4349 | Use char because int might match the return type of a GCC |
| 4350 | builtin and then its argument prototype would still apply. |
| 4351 | The 'extern "C"' is for builds by C++ compilers; |
| 4352 | although this is not generally supported in C code supporting it here |
| 4353 | has little cost and some practical benefit (sr 110532). */ |
| 4354 | #ifdef __cplusplus |
| 4355 | extern "C" |
| 4356 | #endif |
| 4357 | char newtBell (void); |
| 4358 | int |
| 4359 | main (void) |
| 4360 | { |
| 4361 | return newtBell (); |
| 4362 | ; |
| 4363 | return 0; |
| 4364 | } |
| 4365 | _ACEOF |
| 4366 | if ac_fn_c_try_link "$LINENO" |
| 4367 | then : |
| 4368 | ac_cv_lib_newt_newtBell=yes |
| 4369 | else case e in #( |
| 4370 | e) ac_cv_lib_newt_newtBell=no ;; |
| 4371 | esac |
| 4372 | fi |
| 4373 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4374 | conftest$ac_exeext conftest.$ac_ext |
| 4375 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4376 | esac |
| 4377 | fi |
| 4378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_newt_newtBell" >&5 |
| 4379 | printf "%s\n" "$ac_cv_lib_newt_newtBell" >&6; } |
| 4380 | if test "x$ac_cv_lib_newt_newtBell" = xyes |
| 4381 | then : |
| 4382 | AST_NEWT_FOUND=yes |
| 4383 | else case e in #( |
| 4384 | e) AST_NEWT_FOUND=no ;; |
| 4385 | esac |
| 4386 | fi |
| 4387 | |
| 4388 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 4389 | |
| 4390 | |
| 4391 | # now check for the header. |
| 4392 | if test "${AST_NEWT_FOUND}" = "yes"; then |
| 4393 | NEWT_LIB="${pbxlibdir} -lnewt " |
| 4394 | # if --with-NEWT=DIR has been specified, use it. |
| 4395 | if test "x${NEWT_DIR}" != "x"; then |
| 4396 | NEWT_INCLUDE="-I${NEWT_DIR}/include" |
| 4397 | fi |
| 4398 | NEWT_INCLUDE="${NEWT_INCLUDE} " |
| 4399 | |
| 4400 | # check for the header |
| 4401 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 4402 | CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}" |
| 4403 | ac_fn_c_check_header_compile "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default" |
| 4404 | if test "x$ac_cv_header_newt_h" = xyes |
| 4405 | then : |
| 4406 | NEWT_HEADER_FOUND=1 |
| 4407 | else case e in #( |
| 4408 | e) NEWT_HEADER_FOUND=0 ;; |
| 4409 | esac |
| 4410 | fi |
| 4411 | |
| 4412 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 4413 | |
| 4414 | if test "x${NEWT_HEADER_FOUND}" = "x0" ; then |
| 4415 | NEWT_LIB="" |
| 4416 | NEWT_INCLUDE="" |
| 4417 | else |
| 4418 | |
| 4419 | PBX_NEWT=1 |
| 4420 | cat >>confdefs.h <<_ACEOF |
| 4421 | #define HAVE_NEWT 1 |
| 4422 | _ACEOF |
| 4423 | |
| 4424 | fi |
| 4425 | fi |
| 4426 | fi |
| 4427 | |
| 4428 | |
| 4429 | |
| 4430 | if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then |
| 4431 | pbxlibdir="" |
| 4432 | # if --with-NCURSES=DIR has been specified, use it. |
| 4433 | if test "x${NCURSES_DIR}" != "x"; then |
| 4434 | if test -d ${NCURSES_DIR}/lib; then |
| 4435 | pbxlibdir="-L${NCURSES_DIR}/lib" |
| 4436 | else |
| 4437 | pbxlibdir="-L${NCURSES_DIR}" |
| 4438 | fi |
| 4439 | fi |
| 4440 | |
| 4441 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4442 | CFLAGS="${CFLAGS} " |
| 4443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 |
| 4444 | printf %s "checking for initscr in -lncurses... " >&6; } |
| 4445 | if test ${ac_cv_lib_ncurses_initscr+y} |
| 4446 | then : |
| 4447 | printf %s "(cached) " >&6 |
| 4448 | else case e in #( |
| 4449 | e) ac_check_lib_save_LIBS=$LIBS |
| 4450 | LIBS="-lncurses ${pbxlibdir} $LIBS" |
| 4451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4452 | /* end confdefs.h. */ |
| 4453 | |
| 4454 | /* Override any GCC internal prototype to avoid an error. |
| 4455 | Use char because int might match the return type of a GCC |
| 4456 | builtin and then its argument prototype would still apply. |
| 4457 | The 'extern "C"' is for builds by C++ compilers; |
| 4458 | although this is not generally supported in C code supporting it here |
| 4459 | has little cost and some practical benefit (sr 110532). */ |
| 4460 | #ifdef __cplusplus |
| 4461 | extern "C" |
| 4462 | #endif |
| 4463 | char initscr (void); |
| 4464 | int |
| 4465 | main (void) |
| 4466 | { |
| 4467 | return initscr (); |
| 4468 | ; |
| 4469 | return 0; |
| 4470 | } |
| 4471 | _ACEOF |
| 4472 | if ac_fn_c_try_link "$LINENO" |
| 4473 | then : |
| 4474 | ac_cv_lib_ncurses_initscr=yes |
| 4475 | else case e in #( |
| 4476 | e) ac_cv_lib_ncurses_initscr=no ;; |
| 4477 | esac |
| 4478 | fi |
| 4479 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4480 | conftest$ac_exeext conftest.$ac_ext |
| 4481 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4482 | esac |
| 4483 | fi |
| 4484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 |
| 4485 | printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; } |
| 4486 | if test "x$ac_cv_lib_ncurses_initscr" = xyes |
| 4487 | then : |
| 4488 | AST_NCURSES_FOUND=yes |
| 4489 | else case e in #( |
| 4490 | e) AST_NCURSES_FOUND=no ;; |
| 4491 | esac |
| 4492 | fi |
| 4493 | |
| 4494 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 4495 | |
| 4496 | |
| 4497 | # now check for the header. |
| 4498 | if test "${AST_NCURSES_FOUND}" = "yes"; then |
| 4499 | NCURSES_LIB="${pbxlibdir} -lncurses " |
| 4500 | # if --with-NCURSES=DIR has been specified, use it. |
| 4501 | if test "x${NCURSES_DIR}" != "x"; then |
| 4502 | NCURSES_INCLUDE="-I${NCURSES_DIR}/include" |
| 4503 | fi |
| 4504 | NCURSES_INCLUDE="${NCURSES_INCLUDE} " |
| 4505 | |
| 4506 | # check for the header |
| 4507 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 4508 | CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}" |
| 4509 | ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
| 4510 | if test "x$ac_cv_header_ncurses_h" = xyes |
| 4511 | then : |
| 4512 | NCURSES_HEADER_FOUND=1 |
| 4513 | else case e in #( |
| 4514 | e) NCURSES_HEADER_FOUND=0 ;; |
| 4515 | esac |
| 4516 | fi |
| 4517 | |
| 4518 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 4519 | |
| 4520 | if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then |
| 4521 | NCURSES_LIB="" |
| 4522 | NCURSES_INCLUDE="" |
| 4523 | else |
| 4524 | |
| 4525 | PBX_NCURSES=1 |
| 4526 | cat >>confdefs.h <<_ACEOF |
| 4527 | #define HAVE_NCURSES 1 |
| 4528 | _ACEOF |
| 4529 | |
| 4530 | fi |
| 4531 | fi |
| 4532 | fi |
| 4533 | |
| 4534 | |
| 4535 | if test "${PBX_NCURSES}" != 1; then |
| 4536 | # some platforms have the header in a sub-directory, for example Solaris |
| 4537 | |
| 4538 | if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then |
| 4539 | pbxlibdir="" |
| 4540 | # if --with-NCURSES=DIR has been specified, use it. |
| 4541 | if test "x${NCURSES_DIR}" != "x"; then |
| 4542 | if test -d ${NCURSES_DIR}/lib; then |
| 4543 | pbxlibdir="-L${NCURSES_DIR}/lib" |
| 4544 | else |
| 4545 | pbxlibdir="-L${NCURSES_DIR}" |
| 4546 | fi |
| 4547 | fi |
| 4548 | |
| 4549 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4550 | CFLAGS="${CFLAGS} " |
| 4551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 |
| 4552 | printf %s "checking for initscr in -lncurses... " >&6; } |
| 4553 | if test ${ac_cv_lib_ncurses_initscr+y} |
| 4554 | then : |
| 4555 | printf %s "(cached) " >&6 |
| 4556 | else case e in #( |
| 4557 | e) ac_check_lib_save_LIBS=$LIBS |
| 4558 | LIBS="-lncurses ${pbxlibdir} $LIBS" |
| 4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4560 | /* end confdefs.h. */ |
| 4561 | |
| 4562 | /* Override any GCC internal prototype to avoid an error. |
| 4563 | Use char because int might match the return type of a GCC |
| 4564 | builtin and then its argument prototype would still apply. |
| 4565 | The 'extern "C"' is for builds by C++ compilers; |
| 4566 | although this is not generally supported in C code supporting it here |
| 4567 | has little cost and some practical benefit (sr 110532). */ |
| 4568 | #ifdef __cplusplus |
| 4569 | extern "C" |
| 4570 | #endif |
| 4571 | char initscr (void); |
| 4572 | int |
| 4573 | main (void) |
| 4574 | { |
| 4575 | return initscr (); |
| 4576 | ; |
| 4577 | return 0; |
| 4578 | } |
| 4579 | _ACEOF |
| 4580 | if ac_fn_c_try_link "$LINENO" |
| 4581 | then : |
| 4582 | ac_cv_lib_ncurses_initscr=yes |
| 4583 | else case e in #( |
| 4584 | e) ac_cv_lib_ncurses_initscr=no ;; |
| 4585 | esac |
| 4586 | fi |
| 4587 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4588 | conftest$ac_exeext conftest.$ac_ext |
| 4589 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4590 | esac |
| 4591 | fi |
| 4592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 |
| 4593 | printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; } |
| 4594 | if test "x$ac_cv_lib_ncurses_initscr" = xyes |
| 4595 | then : |
| 4596 | AST_NCURSES_FOUND=yes |
| 4597 | else case e in #( |
| 4598 | e) AST_NCURSES_FOUND=no ;; |
| 4599 | esac |
| 4600 | fi |
| 4601 | |
| 4602 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 4603 | |
| 4604 | |
| 4605 | # now check for the header. |
| 4606 | if test "${AST_NCURSES_FOUND}" = "yes"; then |
| 4607 | NCURSES_LIB="${pbxlibdir} -lncurses " |
| 4608 | # if --with-NCURSES=DIR has been specified, use it. |
| 4609 | if test "x${NCURSES_DIR}" != "x"; then |
| 4610 | NCURSES_INCLUDE="-I${NCURSES_DIR}/include" |
| 4611 | fi |
| 4612 | NCURSES_INCLUDE="${NCURSES_INCLUDE} " |
| 4613 | |
| 4614 | # check for the header |
| 4615 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 4616 | CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}" |
| 4617 | ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" |
| 4618 | if test "x$ac_cv_header_ncurses_ncurses_h" = xyes |
| 4619 | then : |
| 4620 | NCURSES_HEADER_FOUND=1 |
| 4621 | else case e in #( |
| 4622 | e) NCURSES_HEADER_FOUND=0 ;; |
| 4623 | esac |
| 4624 | fi |
| 4625 | |
| 4626 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 4627 | |
| 4628 | if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then |
| 4629 | NCURSES_LIB="" |
| 4630 | NCURSES_INCLUDE="" |
| 4631 | else |
| 4632 | |
| 4633 | PBX_NCURSES=1 |
| 4634 | cat >>confdefs.h <<_ACEOF |
| 4635 | #define HAVE_NCURSES 1 |
| 4636 | _ACEOF |
| 4637 | |
| 4638 | fi |
| 4639 | fi |
| 4640 | fi |
| 4641 | |
| 4642 | |
| 4643 | if test "${PBX_NCURSES}" != 1; then |
| 4644 | |
| 4645 | if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then |
| 4646 | pbxlibdir="" |
| 4647 | # if --with-CURSES=DIR has been specified, use it. |
| 4648 | if test "x${CURSES_DIR}" != "x"; then |
| 4649 | if test -d ${CURSES_DIR}/lib; then |
| 4650 | pbxlibdir="-L${CURSES_DIR}/lib" |
| 4651 | else |
| 4652 | pbxlibdir="-L${CURSES_DIR}" |
| 4653 | fi |
| 4654 | fi |
| 4655 | |
| 4656 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4657 | CFLAGS="${CFLAGS} " |
| 4658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 |
| 4659 | printf %s "checking for initscr in -lcurses... " >&6; } |
| 4660 | if test ${ac_cv_lib_curses_initscr+y} |
| 4661 | then : |
| 4662 | printf %s "(cached) " >&6 |
| 4663 | else case e in #( |
| 4664 | e) ac_check_lib_save_LIBS=$LIBS |
| 4665 | LIBS="-lcurses ${pbxlibdir} $LIBS" |
| 4666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4667 | /* end confdefs.h. */ |
| 4668 | |
| 4669 | /* Override any GCC internal prototype to avoid an error. |
| 4670 | Use char because int might match the return type of a GCC |
| 4671 | builtin and then its argument prototype would still apply. |
| 4672 | The 'extern "C"' is for builds by C++ compilers; |
| 4673 | although this is not generally supported in C code supporting it here |
| 4674 | has little cost and some practical benefit (sr 110532). */ |
| 4675 | #ifdef __cplusplus |
| 4676 | extern "C" |
| 4677 | #endif |
| 4678 | char initscr (void); |
| 4679 | int |
| 4680 | main (void) |
| 4681 | { |
| 4682 | return initscr (); |
| 4683 | ; |
| 4684 | return 0; |
| 4685 | } |
| 4686 | _ACEOF |
| 4687 | if ac_fn_c_try_link "$LINENO" |
| 4688 | then : |
| 4689 | ac_cv_lib_curses_initscr=yes |
| 4690 | else case e in #( |
| 4691 | e) ac_cv_lib_curses_initscr=no ;; |
| 4692 | esac |
| 4693 | fi |
| 4694 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4695 | conftest$ac_exeext conftest.$ac_ext |
| 4696 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4697 | esac |
| 4698 | fi |
| 4699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 |
| 4700 | printf "%s\n" "$ac_cv_lib_curses_initscr" >&6; } |
| 4701 | if test "x$ac_cv_lib_curses_initscr" = xyes |
| 4702 | then : |
| 4703 | AST_CURSES_FOUND=yes |
| 4704 | else case e in #( |
| 4705 | e) AST_CURSES_FOUND=no ;; |
| 4706 | esac |
| 4707 | fi |
| 4708 | |
| 4709 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 4710 | |
| 4711 | |
| 4712 | # now check for the header. |
| 4713 | if test "${AST_CURSES_FOUND}" = "yes"; then |
| 4714 | CURSES_LIB="${pbxlibdir} -lcurses " |
| 4715 | # if --with-CURSES=DIR has been specified, use it. |
| 4716 | if test "x${CURSES_DIR}" != "x"; then |
| 4717 | CURSES_INCLUDE="-I${CURSES_DIR}/include" |
| 4718 | fi |
| 4719 | CURSES_INCLUDE="${CURSES_INCLUDE} " |
| 4720 | |
| 4721 | # check for the header |
| 4722 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 4723 | CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}" |
| 4724 | ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" |
| 4725 | if test "x$ac_cv_header_curses_h" = xyes |
| 4726 | then : |
| 4727 | CURSES_HEADER_FOUND=1 |
| 4728 | else case e in #( |
| 4729 | e) CURSES_HEADER_FOUND=0 ;; |
| 4730 | esac |
| 4731 | fi |
| 4732 | |
| 4733 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 4734 | |
| 4735 | if test "x${CURSES_HEADER_FOUND}" = "x0" ; then |
| 4736 | CURSES_LIB="" |
| 4737 | CURSES_INCLUDE="" |
| 4738 | else |
| 4739 | |
| 4740 | PBX_CURSES=1 |
| 4741 | cat >>confdefs.h <<_ACEOF |
| 4742 | #define HAVE_CURSES 1 |
| 4743 | _ACEOF |
| 4744 | |
| 4745 | fi |
| 4746 | fi |
| 4747 | fi |
| 4748 | |
| 4749 | |
| 4750 | else |
| 4751 | HAVE_NCURSES_SUBDIR=yes |
| 4752 | fi |
| 4753 | fi |
| 4754 | |
| 4755 | |
| 4756 | if test "${PBX_NCURSES}" = 1; then |
| 4757 | if test "${HAVE_NCURSES_SUBDIR}" = "yes"; then |
| 4758 | |
| 4759 | if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then |
| 4760 | pbxlibdir="" |
| 4761 | # if --with-TINFO=DIR has been specified, use it. |
| 4762 | if test "x${TINFO_DIR}" != "x"; then |
| 4763 | if test -d ${TINFO_DIR}/lib; then |
| 4764 | pbxlibdir="-L${TINFO_DIR}/lib" |
| 4765 | else |
| 4766 | pbxlibdir="-L${TINFO_DIR}" |
| 4767 | fi |
| 4768 | fi |
| 4769 | |
| 4770 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4771 | CFLAGS="${CFLAGS} " |
| 4772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for keypad in -ltinfo" >&5 |
| 4773 | printf %s "checking for keypad in -ltinfo... " >&6; } |
| 4774 | if test ${ac_cv_lib_tinfo_keypad+y} |
| 4775 | then : |
| 4776 | printf %s "(cached) " >&6 |
| 4777 | else case e in #( |
| 4778 | e) ac_check_lib_save_LIBS=$LIBS |
| 4779 | LIBS="-ltinfo ${pbxlibdir} $LIBS" |
| 4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4781 | /* end confdefs.h. */ |
| 4782 | |
| 4783 | /* Override any GCC internal prototype to avoid an error. |
| 4784 | Use char because int might match the return type of a GCC |
| 4785 | builtin and then its argument prototype would still apply. |
| 4786 | The 'extern "C"' is for builds by C++ compilers; |
| 4787 | although this is not generally supported in C code supporting it here |
| 4788 | has little cost and some practical benefit (sr 110532). */ |
| 4789 | #ifdef __cplusplus |
| 4790 | extern "C" |
| 4791 | #endif |
| 4792 | char keypad (void); |
| 4793 | int |
| 4794 | main (void) |
| 4795 | { |
| 4796 | return keypad (); |
| 4797 | ; |
| 4798 | return 0; |
| 4799 | } |
| 4800 | _ACEOF |
| 4801 | if ac_fn_c_try_link "$LINENO" |
| 4802 | then : |
| 4803 | ac_cv_lib_tinfo_keypad=yes |
| 4804 | else case e in #( |
| 4805 | e) ac_cv_lib_tinfo_keypad=no ;; |
| 4806 | esac |
| 4807 | fi |
| 4808 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4809 | conftest$ac_exeext conftest.$ac_ext |
| 4810 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4811 | esac |
| 4812 | fi |
| 4813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_keypad" >&5 |
| 4814 | printf "%s\n" "$ac_cv_lib_tinfo_keypad" >&6; } |
| 4815 | if test "x$ac_cv_lib_tinfo_keypad" = xyes |
| 4816 | then : |
| 4817 | AST_TINFO_FOUND=yes |
| 4818 | else case e in #( |
| 4819 | e) AST_TINFO_FOUND=no ;; |
| 4820 | esac |
| 4821 | fi |
| 4822 | |
| 4823 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 4824 | |
| 4825 | |
| 4826 | # now check for the header. |
| 4827 | if test "${AST_TINFO_FOUND}" = "yes"; then |
| 4828 | TINFO_LIB="${pbxlibdir} -ltinfo " |
| 4829 | # if --with-TINFO=DIR has been specified, use it. |
| 4830 | if test "x${TINFO_DIR}" != "x"; then |
| 4831 | TINFO_INCLUDE="-I${TINFO_DIR}/include" |
| 4832 | fi |
| 4833 | TINFO_INCLUDE="${TINFO_INCLUDE} " |
| 4834 | |
| 4835 | # check for the header |
| 4836 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 4837 | CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}" |
| 4838 | ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" |
| 4839 | if test "x$ac_cv_header_ncurses_ncurses_h" = xyes |
| 4840 | then : |
| 4841 | TINFO_HEADER_FOUND=1 |
| 4842 | else case e in #( |
| 4843 | e) TINFO_HEADER_FOUND=0 ;; |
| 4844 | esac |
| 4845 | fi |
| 4846 | |
| 4847 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 4848 | |
| 4849 | if test "x${TINFO_HEADER_FOUND}" = "x0" ; then |
| 4850 | TINFO_LIB="" |
| 4851 | TINFO_INCLUDE="" |
| 4852 | else |
| 4853 | |
| 4854 | PBX_TINFO=1 |
| 4855 | cat >>confdefs.h <<_ACEOF |
| 4856 | #define HAVE_TINFO 1 |
| 4857 | _ACEOF |
| 4858 | |
| 4859 | fi |
| 4860 | fi |
| 4861 | fi |
| 4862 | |
| 4863 | |
| 4864 | else |
| 4865 | |
| 4866 | if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then |
| 4867 | pbxlibdir="" |
| 4868 | # if --with-TINFO=DIR has been specified, use it. |
| 4869 | if test "x${TINFO_DIR}" != "x"; then |
| 4870 | if test -d ${TINFO_DIR}/lib; then |
| 4871 | pbxlibdir="-L${TINFO_DIR}/lib" |
| 4872 | else |
| 4873 | pbxlibdir="-L${TINFO_DIR}" |
| 4874 | fi |
| 4875 | fi |
| 4876 | |
| 4877 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4878 | CFLAGS="${CFLAGS} " |
| 4879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for keypad in -ltinfo" >&5 |
| 4880 | printf %s "checking for keypad in -ltinfo... " >&6; } |
| 4881 | if test ${ac_cv_lib_tinfo_keypad+y} |
| 4882 | then : |
| 4883 | printf %s "(cached) " >&6 |
| 4884 | else case e in #( |
| 4885 | e) ac_check_lib_save_LIBS=$LIBS |
| 4886 | LIBS="-ltinfo ${pbxlibdir} $LIBS" |
| 4887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4888 | /* end confdefs.h. */ |
| 4889 | |
| 4890 | /* Override any GCC internal prototype to avoid an error. |
| 4891 | Use char because int might match the return type of a GCC |
| 4892 | builtin and then its argument prototype would still apply. |
| 4893 | The 'extern "C"' is for builds by C++ compilers; |
| 4894 | although this is not generally supported in C code supporting it here |
| 4895 | has little cost and some practical benefit (sr 110532). */ |
| 4896 | #ifdef __cplusplus |
| 4897 | extern "C" |
| 4898 | #endif |
| 4899 | char keypad (void); |
| 4900 | int |
| 4901 | main (void) |
| 4902 | { |
| 4903 | return keypad (); |
| 4904 | ; |
| 4905 | return 0; |
| 4906 | } |
| 4907 | _ACEOF |
| 4908 | if ac_fn_c_try_link "$LINENO" |
| 4909 | then : |
| 4910 | ac_cv_lib_tinfo_keypad=yes |
| 4911 | else case e in #( |
| 4912 | e) ac_cv_lib_tinfo_keypad=no ;; |
| 4913 | esac |
| 4914 | fi |
| 4915 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4916 | conftest$ac_exeext conftest.$ac_ext |
| 4917 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4918 | esac |
| 4919 | fi |
| 4920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_keypad" >&5 |
| 4921 | printf "%s\n" "$ac_cv_lib_tinfo_keypad" >&6; } |
| 4922 | if test "x$ac_cv_lib_tinfo_keypad" = xyes |
| 4923 | then : |
| 4924 | AST_TINFO_FOUND=yes |
| 4925 | else case e in #( |
| 4926 | e) AST_TINFO_FOUND=no ;; |
| 4927 | esac |
| 4928 | fi |
| 4929 | |
| 4930 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 4931 | |
| 4932 | |
| 4933 | # now check for the header. |
| 4934 | if test "${AST_TINFO_FOUND}" = "yes"; then |
| 4935 | TINFO_LIB="${pbxlibdir} -ltinfo " |
| 4936 | # if --with-TINFO=DIR has been specified, use it. |
| 4937 | if test "x${TINFO_DIR}" != "x"; then |
| 4938 | TINFO_INCLUDE="-I${TINFO_DIR}/include" |
| 4939 | fi |
| 4940 | TINFO_INCLUDE="${TINFO_INCLUDE} " |
| 4941 | |
| 4942 | # check for the header |
| 4943 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 4944 | CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}" |
| 4945 | ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
| 4946 | if test "x$ac_cv_header_ncurses_h" = xyes |
| 4947 | then : |
| 4948 | TINFO_HEADER_FOUND=1 |
| 4949 | else case e in #( |
| 4950 | e) TINFO_HEADER_FOUND=0 ;; |
| 4951 | esac |
| 4952 | fi |
| 4953 | |
| 4954 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 4955 | |
| 4956 | if test "x${TINFO_HEADER_FOUND}" = "x0" ; then |
| 4957 | TINFO_LIB="" |
| 4958 | TINFO_INCLUDE="" |
| 4959 | else |
| 4960 | |
| 4961 | PBX_TINFO=1 |
| 4962 | cat >>confdefs.h <<_ACEOF |
| 4963 | #define HAVE_TINFO 1 |
| 4964 | _ACEOF |
| 4965 | |
| 4966 | fi |
| 4967 | fi |
| 4968 | fi |
| 4969 | |
| 4970 | |
| 4971 | fi |
| 4972 | else |
| 4973 | |
| 4974 | if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then |
| 4975 | pbxlibdir="" |
| 4976 | # if --with-TINFO=DIR has been specified, use it. |
| 4977 | if test "x${TINFO_DIR}" != "x"; then |
| 4978 | if test -d ${TINFO_DIR}/lib; then |
| 4979 | pbxlibdir="-L${TINFO_DIR}/lib" |
| 4980 | else |
| 4981 | pbxlibdir="-L${TINFO_DIR}" |
| 4982 | fi |
| 4983 | fi |
| 4984 | |
| 4985 | ast_ext_lib_check_save_CFLAGS="${CFLAGS}" |
| 4986 | CFLAGS="${CFLAGS} " |
| 4987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for keypad in -ltinfo" >&5 |
| 4988 | printf %s "checking for keypad in -ltinfo... " >&6; } |
| 4989 | if test ${ac_cv_lib_tinfo_keypad+y} |
| 4990 | then : |
| 4991 | printf %s "(cached) " >&6 |
| 4992 | else case e in #( |
| 4993 | e) ac_check_lib_save_LIBS=$LIBS |
| 4994 | LIBS="-ltinfo ${pbxlibdir} $LIBS" |
| 4995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4996 | /* end confdefs.h. */ |
| 4997 | |
| 4998 | /* Override any GCC internal prototype to avoid an error. |
| 4999 | Use char because int might match the return type of a GCC |
| 5000 | builtin and then its argument prototype would still apply. |
| 5001 | The 'extern "C"' is for builds by C++ compilers; |
| 5002 | although this is not generally supported in C code supporting it here |
| 5003 | has little cost and some practical benefit (sr 110532). */ |
| 5004 | #ifdef __cplusplus |
| 5005 | extern "C" |
| 5006 | #endif |
| 5007 | char keypad (void); |
| 5008 | int |
| 5009 | main (void) |
| 5010 | { |
| 5011 | return keypad (); |
| 5012 | ; |
| 5013 | return 0; |
| 5014 | } |
| 5015 | _ACEOF |
| 5016 | if ac_fn_c_try_link "$LINENO" |
| 5017 | then : |
| 5018 | ac_cv_lib_tinfo_keypad=yes |
| 5019 | else case e in #( |
| 5020 | e) ac_cv_lib_tinfo_keypad=no ;; |
| 5021 | esac |
| 5022 | fi |
| 5023 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5024 | conftest$ac_exeext conftest.$ac_ext |
| 5025 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5026 | esac |
| 5027 | fi |
| 5028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_keypad" >&5 |
| 5029 | printf "%s\n" "$ac_cv_lib_tinfo_keypad" >&6; } |
| 5030 | if test "x$ac_cv_lib_tinfo_keypad" = xyes |
| 5031 | then : |
| 5032 | AST_TINFO_FOUND=yes |
| 5033 | else case e in #( |
| 5034 | e) AST_TINFO_FOUND=no ;; |
| 5035 | esac |
| 5036 | fi |
| 5037 | |
| 5038 | CFLAGS="${ast_ext_lib_check_save_CFLAGS}" |
| 5039 | |
| 5040 | |
| 5041 | # now check for the header. |
| 5042 | if test "${AST_TINFO_FOUND}" = "yes"; then |
| 5043 | TINFO_LIB="${pbxlibdir} -ltinfo " |
| 5044 | # if --with-TINFO=DIR has been specified, use it. |
| 5045 | if test "x${TINFO_DIR}" != "x"; then |
| 5046 | TINFO_INCLUDE="-I${TINFO_DIR}/include" |
| 5047 | fi |
| 5048 | TINFO_INCLUDE="${TINFO_INCLUDE} " |
| 5049 | |
| 5050 | # check for the header |
| 5051 | ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" |
| 5052 | CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}" |
| 5053 | ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" |
| 5054 | if test "x$ac_cv_header_curses_h" = xyes |
| 5055 | then : |
| 5056 | TINFO_HEADER_FOUND=1 |
| 5057 | else case e in #( |
| 5058 | e) TINFO_HEADER_FOUND=0 ;; |
| 5059 | esac |
| 5060 | fi |
| 5061 | |
| 5062 | CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}" |
| 5063 | |
| 5064 | if test "x${TINFO_HEADER_FOUND}" = "x0" ; then |
| 5065 | TINFO_LIB="" |
| 5066 | TINFO_INCLUDE="" |
| 5067 | else |
| 5068 | |
| 5069 | PBX_TINFO=1 |
| 5070 | cat >>confdefs.h <<_ACEOF |
| 5071 | #define HAVE_TINFO 1 |
| 5072 | _ACEOF |
| 5073 | |
| 5074 | fi |
| 5075 | fi |
| 5076 | fi |
| 5077 | |
| 5078 | |
| 5079 | fi |
| 5080 | |
| 5081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5082 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 5083 | if test ${ac_cv_path_SED+y} |
| 5084 | then : |
| 5085 | printf %s "(cached) " >&6 |
| 5086 | else case e in #( |
| 5087 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5088 | for ac_i in 1 2 3 4 5 6 7; do |
| 5089 | ac_script="$ac_script$as_nl$ac_script" |
| 5090 | done |
| 5091 | echo "$ac_script" | sed 99q >conftest.sed |
| 5092 | $as_unset ac_script || ac_script= |
| 5093 | if test -z "$SED"; then |
| 5094 | ac_path_SED_found=false |
| 5095 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5097 | for as_dir in $PATH |
| 5098 | do |
| 5099 | IFS=$as_save_IFS |
| 5100 | case $as_dir in #((( |
| 5101 | '') as_dir=./ ;; |
| 5102 | */) ;; |
| 5103 | *) as_dir=$as_dir/ ;; |
| 5104 | esac |
| 5105 | for ac_prog in sed gsed |
| 5106 | do |
| 5107 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5108 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 5109 | as_fn_executable_p "$ac_path_SED" || continue |
| 5110 | # Check for GNU ac_path_SED and select it if it is found. |
| 5111 | # Check for GNU $ac_path_SED |
| 5112 | case `"$ac_path_SED" --version 2>&1` in #( |
| 5113 | *GNU*) |
| 5114 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5115 | #( |
| 5116 | *) |
| 5117 | ac_count=0 |
| 5118 | printf %s 0123456789 >"conftest.in" |
| 5119 | while : |
| 5120 | do |
| 5121 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5122 | mv "conftest.tmp" "conftest.in" |
| 5123 | cp "conftest.in" "conftest.nl" |
| 5124 | printf "%s\n" '' >> "conftest.nl" |
| 5125 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5126 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5127 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5128 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5129 | # Best one so far, save it but keep looking for a better one |
| 5130 | ac_cv_path_SED="$ac_path_SED" |
| 5131 | ac_path_SED_max=$ac_count |
| 5132 | fi |
| 5133 | # 10*(2^10) chars as input seems more than enough |
| 5134 | test $ac_count -gt 10 && break |
| 5135 | done |
| 5136 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5137 | esac |
| 5138 | |
| 5139 | $ac_path_SED_found && break 3 |
| 5140 | done |
| 5141 | done |
| 5142 | done |
| 5143 | IFS=$as_save_IFS |
| 5144 | if test -z "$ac_cv_path_SED"; then |
| 5145 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5146 | fi |
| 5147 | else |
| 5148 | ac_cv_path_SED=$SED |
| 5149 | fi |
| 5150 | ;; |
| 5151 | esac |
| 5152 | fi |
| 5153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5154 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 5155 | SED="$ac_cv_path_SED" |
| 5156 | rm -f conftest.sed |
| 5157 | |
| 5158 | |
| 5159 | if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then |
| 5160 | |
| 5161 | pkg_failed=no |
| 5162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5 |
| 5163 | printf %s "checking for libxml-2.0... " >&6; } |
| 5164 | |
| 5165 | if test -n "$LIBXML2_CFLAGS"; then |
| 5166 | pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" |
| 5167 | elif test -n "$PKG_CONFIG"; then |
| 5168 | if test -n "$PKG_CONFIG" && \ |
| 5169 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 |
| 5170 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 |
| 5171 | ac_status=$? |
| 5172 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5173 | test $ac_status = 0; }; then |
| 5174 | pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` |
| 5175 | test "x$?" != "x0" && pkg_failed=yes |
| 5176 | else |
| 5177 | pkg_failed=yes |
| 5178 | fi |
| 5179 | else |
| 5180 | pkg_failed=untried |
| 5181 | fi |
| 5182 | if test -n "$LIBXML2_LIBS"; then |
| 5183 | pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" |
| 5184 | elif test -n "$PKG_CONFIG"; then |
| 5185 | if test -n "$PKG_CONFIG" && \ |
| 5186 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 |
| 5187 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 |
| 5188 | ac_status=$? |
| 5189 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5190 | test $ac_status = 0; }; then |
| 5191 | pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` |
| 5192 | test "x$?" != "x0" && pkg_failed=yes |
| 5193 | else |
| 5194 | pkg_failed=yes |
| 5195 | fi |
| 5196 | else |
| 5197 | pkg_failed=untried |
| 5198 | fi |
| 5199 | |
| 5200 | |
| 5201 | |
| 5202 | if test $pkg_failed = yes; then |
| 5203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5204 | printf "%s\n" "no" >&6; } |
| 5205 | |
| 5206 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 5207 | _pkg_short_errors_supported=yes |
| 5208 | else |
| 5209 | _pkg_short_errors_supported=no |
| 5210 | fi |
| 5211 | if test $_pkg_short_errors_supported = yes; then |
| 5212 | LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` |
| 5213 | else |
| 5214 | LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` |
| 5215 | fi |
| 5216 | # Put the nasty error message in config.log where it belongs |
| 5217 | echo "$LIBXML2_PKG_ERRORS" >&5 |
| 5218 | |
| 5219 | |
| 5220 | PBX_LIBXML2=0 |
| 5221 | |
| 5222 | |
| 5223 | elif test $pkg_failed = untried; then |
| 5224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5225 | printf "%s\n" "no" >&6; } |
| 5226 | |
| 5227 | PBX_LIBXML2=0 |
| 5228 | |
| 5229 | |
| 5230 | else |
| 5231 | LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS |
| 5232 | LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS |
| 5233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5234 | printf "%s\n" "yes" >&6; } |
| 5235 | |
| 5236 | PBX_LIBXML2=1 |
| 5237 | LIBXML2_INCLUDE=$(echo ${LIBXML2_CFLAGS} | $SED -e "s|-std=c99||g") |
| 5238 | LIBXML2_LIB="$LIBXML2_LIBS" |
| 5239 | |
| 5240 | printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h |
| 5241 | |
| 5242 | |
| 5243 | fi |
| 5244 | fi |
| 5245 | |
| 5246 | |
| 5247 | if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then |
| 5248 | PBX_LIBXML2=0 |
| 5249 | if test -n "$ac_tool_prefix"; then |
| 5250 | # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args. |
| 5251 | set dummy ${ac_tool_prefix}xml2-config; ac_word=$2 |
| 5252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5253 | printf %s "checking for $ac_word... " >&6; } |
| 5254 | if test ${ac_cv_path_CONFIG_LIBXML2+y} |
| 5255 | then : |
| 5256 | printf %s "(cached) " >&6 |
| 5257 | else case e in #( |
| 5258 | e) case $CONFIG_LIBXML2 in |
| 5259 | [\\/]* | ?:[\\/]*) |
| 5260 | ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path. |
| 5261 | ;; |
| 5262 | *) |
| 5263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5264 | as_dummy="${LIBXML2_DIR}/bin:$PATH" |
| 5265 | for as_dir in $as_dummy |
| 5266 | do |
| 5267 | IFS=$as_save_IFS |
| 5268 | case $as_dir in #((( |
| 5269 | '') as_dir=./ ;; |
| 5270 | */) ;; |
| 5271 | *) as_dir=$as_dir/ ;; |
| 5272 | esac |
| 5273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5274 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5275 | ac_cv_path_CONFIG_LIBXML2="$as_dir$ac_word$ac_exec_ext" |
| 5276 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5277 | break 2 |
| 5278 | fi |
| 5279 | done |
| 5280 | done |
| 5281 | IFS=$as_save_IFS |
| 5282 | |
| 5283 | ;; |
| 5284 | esac ;; |
| 5285 | esac |
| 5286 | fi |
| 5287 | CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2 |
| 5288 | if test -n "$CONFIG_LIBXML2"; then |
| 5289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5 |
| 5290 | printf "%s\n" "$CONFIG_LIBXML2" >&6; } |
| 5291 | else |
| 5292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5293 | printf "%s\n" "no" >&6; } |
| 5294 | fi |
| 5295 | |
| 5296 | |
| 5297 | fi |
| 5298 | if test -z "$ac_cv_path_CONFIG_LIBXML2"; then |
| 5299 | ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2 |
| 5300 | # Extract the first word of "xml2-config", so it can be a program name with args. |
| 5301 | set dummy xml2-config; ac_word=$2 |
| 5302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5303 | printf %s "checking for $ac_word... " >&6; } |
| 5304 | if test ${ac_cv_path_ac_pt_CONFIG_LIBXML2+y} |
| 5305 | then : |
| 5306 | printf %s "(cached) " >&6 |
| 5307 | else case e in #( |
| 5308 | e) case $ac_pt_CONFIG_LIBXML2 in |
| 5309 | [\\/]* | ?:[\\/]*) |
| 5310 | ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path. |
| 5311 | ;; |
| 5312 | *) |
| 5313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5314 | as_dummy="${LIBXML2_DIR}/bin:$PATH" |
| 5315 | for as_dir in $as_dummy |
| 5316 | do |
| 5317 | IFS=$as_save_IFS |
| 5318 | case $as_dir in #((( |
| 5319 | '') as_dir=./ ;; |
| 5320 | */) ;; |
| 5321 | *) as_dir=$as_dir/ ;; |
| 5322 | esac |
| 5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5324 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5325 | ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir$ac_word$ac_exec_ext" |
| 5326 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5327 | break 2 |
| 5328 | fi |
| 5329 | done |
| 5330 | done |
| 5331 | IFS=$as_save_IFS |
| 5332 | |
| 5333 | ;; |
| 5334 | esac ;; |
| 5335 | esac |
| 5336 | fi |
| 5337 | ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2 |
| 5338 | if test -n "$ac_pt_CONFIG_LIBXML2"; then |
| 5339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5 |
| 5340 | printf "%s\n" "$ac_pt_CONFIG_LIBXML2" >&6; } |
| 5341 | else |
| 5342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5343 | printf "%s\n" "no" >&6; } |
| 5344 | fi |
| 5345 | |
| 5346 | if test "x$ac_pt_CONFIG_LIBXML2" = x; then |
| 5347 | CONFIG_LIBXML2="No" |
| 5348 | else |
| 5349 | case $cross_compiling:$ac_tool_warned in |
| 5350 | yes:) |
| 5351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5352 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5353 | ac_tool_warned=yes ;; |
| 5354 | esac |
| 5355 | CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2 |
| 5356 | fi |
| 5357 | else |
| 5358 | CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2" |
| 5359 | fi |
| 5360 | |
| 5361 | if test ! "x${CONFIG_LIBXML2}" = xNo; then |
| 5362 | LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} --cflags) |
| 5363 | LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g" -e "s|-std=c99||g") |
| 5364 | |
| 5365 | LIBXML2_LIB=$(${CONFIG_LIBXML2} --libs) |
| 5366 | LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g") |
| 5367 | |
| 5368 | |
| 5369 | saved_cppflags="${CPPFLAGS}" |
| 5370 | CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}" |
| 5371 | |
| 5372 | saved_libs="${LIBS}" |
| 5373 | LIBS=${LIBXML2_LIB} |
| 5374 | |
| 5375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5376 | /* end confdefs.h. */ |
| 5377 | #include <libxml/tree.h> |
| 5378 | #include <libxml/parser.h> |
| 5379 | int |
| 5380 | main (void) |
| 5381 | { |
| 5382 | LIBXML_TEST_VERSION; |
| 5383 | ; |
| 5384 | return 0; |
| 5385 | } |
| 5386 | _ACEOF |
| 5387 | if ac_fn_c_try_link "$LINENO" |
| 5388 | then : |
| 5389 | PBX_LIBXML2=1 |
| 5390 | printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h |
| 5391 | |
| 5392 | fi |
| 5393 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5394 | conftest$ac_exeext conftest.$ac_ext |
| 5395 | CPPFLAGS="${saved_cppflags}" |
| 5396 | LIBS="${saved_libs}" |
| 5397 | |
| 5398 | fi |
| 5399 | fi |
| 5400 | |
| 5401 | |
| 5402 | if test "${PBX_LIBXML2}" != 1; then |
| 5403 | as_fn_error $? "Could not find required 'Libxml2' development package" "$LINENO" 5 |
| 5404 | fi |
| 5405 | |
| 5406 | |
| 5407 | if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then |
| 5408 | |
| 5409 | pkg_failed=no |
| 5410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5 |
| 5411 | printf %s "checking for gtk+-2.0... " >&6; } |
| 5412 | |
| 5413 | if test -n "$GTK2_CFLAGS"; then |
| 5414 | pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS" |
| 5415 | elif test -n "$PKG_CONFIG"; then |
| 5416 | if test -n "$PKG_CONFIG" && \ |
| 5417 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5 |
| 5418 | ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5 |
| 5419 | ac_status=$? |
| 5420 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5421 | test $ac_status = 0; }; then |
| 5422 | pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null` |
| 5423 | test "x$?" != "x0" && pkg_failed=yes |
| 5424 | else |
| 5425 | pkg_failed=yes |
| 5426 | fi |
| 5427 | else |
| 5428 | pkg_failed=untried |
| 5429 | fi |
| 5430 | if test -n "$GTK2_LIBS"; then |
| 5431 | pkg_cv_GTK2_LIBS="$GTK2_LIBS" |
| 5432 | elif test -n "$PKG_CONFIG"; then |
| 5433 | if test -n "$PKG_CONFIG" && \ |
| 5434 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5 |
| 5435 | ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5 |
| 5436 | ac_status=$? |
| 5437 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5438 | test $ac_status = 0; }; then |
| 5439 | pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null` |
| 5440 | test "x$?" != "x0" && pkg_failed=yes |
| 5441 | else |
| 5442 | pkg_failed=yes |
| 5443 | fi |
| 5444 | else |
| 5445 | pkg_failed=untried |
| 5446 | fi |
| 5447 | |
| 5448 | |
| 5449 | |
| 5450 | if test $pkg_failed = yes; then |
| 5451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5452 | printf "%s\n" "no" >&6; } |
| 5453 | |
| 5454 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 5455 | _pkg_short_errors_supported=yes |
| 5456 | else |
| 5457 | _pkg_short_errors_supported=no |
| 5458 | fi |
| 5459 | if test $_pkg_short_errors_supported = yes; then |
| 5460 | GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1` |
| 5461 | else |
| 5462 | GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1` |
| 5463 | fi |
| 5464 | # Put the nasty error message in config.log where it belongs |
| 5465 | echo "$GTK2_PKG_ERRORS" >&5 |
| 5466 | |
| 5467 | |
| 5468 | PBX_GTK2=0 |
| 5469 | |
| 5470 | |
| 5471 | elif test $pkg_failed = untried; then |
| 5472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5473 | printf "%s\n" "no" >&6; } |
| 5474 | |
| 5475 | PBX_GTK2=0 |
| 5476 | |
| 5477 | |
| 5478 | else |
| 5479 | GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS |
| 5480 | GTK2_LIBS=$pkg_cv_GTK2_LIBS |
| 5481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5482 | printf "%s\n" "yes" >&6; } |
| 5483 | |
| 5484 | PBX_GTK2=1 |
| 5485 | GTK2_INCLUDE=$(echo ${GTK2_CFLAGS} | $SED -e "s|-std=c99||g") |
| 5486 | GTK2_LIB="$GTK2_LIBS" |
| 5487 | |
| 5488 | printf "%s\n" "#define HAVE_GTK2 1" >>confdefs.h |
| 5489 | |
| 5490 | |
| 5491 | fi |
| 5492 | fi |
| 5493 | |
| 5494 | |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 | test "$silent"=yes && ac_sub_configure_args="${ac_sub_configure_args} --silent" |
| 5499 | |
| 5500 | ac_config_files="$ac_config_files makeopts" |
| 5501 | |
| 5502 | cat >confcache <<\_ACEOF |
| 5503 | # This file is a shell script that caches the results of configure |
| 5504 | # tests run on this system so they can be shared between configure |
| 5505 | # scripts and configure runs, see configure's option --config-cache. |
| 5506 | # It is not useful on other systems. If it contains results you don't |
| 5507 | # want to keep, you may remove or edit it. |
| 5508 | # |
| 5509 | # config.status only pays attention to the cache file if you give it |
| 5510 | # the --recheck option to rerun configure. |
| 5511 | # |
| 5512 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5513 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 5514 | # following values. |
| 5515 | |
| 5516 | _ACEOF |
| 5517 | |
| 5518 | # The following way of writing the cache mishandles newlines in values, |
| 5519 | # but we know of no workaround that is simple, portable, and efficient. |
| 5520 | # So, we kill variables containing newlines. |
| 5521 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5522 | # and sets the high bit in the cache file unless we assign to the vars. |
| 5523 | ( |
| 5524 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5525 | eval ac_val=\$$ac_var |
| 5526 | case $ac_val in #( |
| 5527 | *${as_nl}*) |
| 5528 | case $ac_var in #( |
| 5529 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5530 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 5531 | esac |
| 5532 | case $ac_var in #( |
| 5533 | _ | IFS | as_nl) ;; #( |
| 5534 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5535 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 5536 | esac ;; |
| 5537 | esac |
| 5538 | done |
| 5539 | |
| 5540 | (set) 2>&1 | |
| 5541 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5542 | *${as_nl}ac_space=\ *) |
| 5543 | # 'set' does not quote correctly, so add quotes: double-quote |
| 5544 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 5545 | sed -n \ |
| 5546 | "s/'/'\\\\''/g; |
| 5547 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 5548 | ;; #( |
| 5549 | *) |
| 5550 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 5551 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 5552 | ;; |
| 5553 | esac | |
| 5554 | sort |
| 5555 | ) | |
| 5556 | sed ' |
| 5557 | /^ac_cv_env_/b end |
| 5558 | t clear |
| 5559 | :clear |
| 5560 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 5561 | t end |
| 5562 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5563 | :end' >>confcache |
| 5564 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5565 | if test -w "$cache_file"; then |
| 5566 | if test "x$cache_file" != "x/dev/null"; then |
| 5567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5568 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 5569 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5570 | cat confcache >"$cache_file" |
| 5571 | else |
| 5572 | case $cache_file in #( |
| 5573 | */* | ?:*) |
| 5574 | mv -f confcache "$cache_file"$$ && |
| 5575 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5576 | *) |
| 5577 | mv -f confcache "$cache_file" ;; |
| 5578 | esac |
| 5579 | fi |
| 5580 | fi |
| 5581 | else |
| 5582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5583 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 5584 | fi |
| 5585 | fi |
| 5586 | rm -f confcache |
| 5587 | |
| 5588 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5589 | # Let make expand exec_prefix. |
| 5590 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5591 | |
| 5592 | DEFS=-DHAVE_CONFIG_H |
| 5593 | |
| 5594 | ac_libobjs= |
| 5595 | ac_ltlibobjs= |
| 5596 | U= |
| 5597 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5598 | # 1. Remove the extension, and $U if already installed. |
| 5599 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5600 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 5601 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5602 | # will be set to the directory where LIBOBJS objects are built. |
| 5603 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5604 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 5605 | done |
| 5606 | LIBOBJS=$ac_libobjs |
| 5607 | |
| 5608 | LTLIBOBJS=$ac_ltlibobjs |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | : "${CONFIG_STATUS=./config.status}" |
| 5613 | ac_write_fail=0 |
| 5614 | ac_clean_files_save=$ac_clean_files |
| 5615 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5617 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5618 | as_write_fail=0 |
| 5619 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 5620 | #! $SHELL |
| 5621 | # Generated by $as_me. |
| 5622 | # Run this file to recreate the current configuration. |
| 5623 | # Compiler output produced by configure, useful for debugging |
| 5624 | # configure, is in config.log if it exists. |
| 5625 | |
| 5626 | debug=false |
| 5627 | ac_cs_recheck=false |
| 5628 | ac_cs_silent=false |
| 5629 | |
| 5630 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5631 | export SHELL |
| 5632 | _ASEOF |
| 5633 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5634 | ## -------------------- ## |
| 5635 | ## M4sh Initialization. ## |
| 5636 | ## -------------------- ## |
| 5637 | |
| 5638 | # Be more Bourne compatible |
| 5639 | DUALCASE=1; export DUALCASE # for MKS sh |
| 5640 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 5641 | then : |
| 5642 | emulate sh |
| 5643 | NULLCMD=: |
| 5644 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 5645 | # is contrary to our usage. Disable this feature. |
| 5646 | alias -g '${1+"$@"}'='"$@"' |
| 5647 | setopt NO_GLOB_SUBST |
| 5648 | else case e in #( |
| 5649 | e) case `(set -o) 2>/dev/null` in #( |
| 5650 | *posix*) : |
| 5651 | set -o posix ;; #( |
| 5652 | *) : |
| 5653 | ;; |
| 5654 | esac ;; |
| 5655 | esac |
| 5656 | fi |
| 5657 | |
| 5658 | |
| 5659 | |
| 5660 | # Reset variables that may have inherited troublesome values from |
| 5661 | # the environment. |
| 5662 | |
| 5663 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 5664 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 5665 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 5666 | # Quoting is to prevent editors from complaining about space-tab. |
| 5667 | as_nl=' |
| 5668 | ' |
| 5669 | export as_nl |
| 5670 | IFS=" "" $as_nl" |
| 5671 | |
| 5672 | PS1='$ ' |
| 5673 | PS2='> ' |
| 5674 | PS4='+ ' |
| 5675 | |
| 5676 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 5677 | LC_ALL=C |
| 5678 | export LC_ALL |
| 5679 | LANGUAGE=C |
| 5680 | export LANGUAGE |
| 5681 | |
| 5682 | # We cannot yet rely on "unset" to work, but we need these variables |
| 5683 | # to be unset--not just set to an empty or harmless value--now, to |
| 5684 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 5685 | # also avoids known problems related to "unset" and subshell syntax |
| 5686 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 5687 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 5688 | do eval test \${$as_var+y} \ |
| 5689 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5690 | done |
| 5691 | |
| 5692 | # Ensure that fds 0, 1, and 2 are open. |
| 5693 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 5694 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 5695 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 5696 | |
| 5697 | # The user is always right. |
| 5698 | if ${PATH_SEPARATOR+false} :; then |
| 5699 | PATH_SEPARATOR=: |
| 5700 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5701 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5702 | PATH_SEPARATOR=';' |
| 5703 | } |
| 5704 | fi |
| 5705 | |
| 5706 | |
| 5707 | # Find who we are. Look in the path if we contain no directory separator. |
| 5708 | as_myself= |
| 5709 | case $0 in #(( |
| 5710 | *[\\/]* ) as_myself=$0 ;; |
| 5711 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5712 | for as_dir in $PATH |
| 5713 | do |
| 5714 | IFS=$as_save_IFS |
| 5715 | case $as_dir in #((( |
| 5716 | '') as_dir=./ ;; |
| 5717 | */) ;; |
| 5718 | *) as_dir=$as_dir/ ;; |
| 5719 | esac |
| 5720 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 5721 | done |
| 5722 | IFS=$as_save_IFS |
| 5723 | |
| 5724 | ;; |
| 5725 | esac |
| 5726 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 5727 | # in which case we are not to be found in the path. |
| 5728 | if test "x$as_myself" = x; then |
| 5729 | as_myself=$0 |
| 5730 | fi |
| 5731 | if test ! -f "$as_myself"; then |
| 5732 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5733 | exit 1 |
| 5734 | fi |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5739 | # ---------------------------------------- |
| 5740 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5741 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5742 | # script with STATUS, using 1 if that was 0. |
| 5743 | as_fn_error () |
| 5744 | { |
| 5745 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5746 | if test "$4"; then |
| 5747 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5748 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5749 | fi |
| 5750 | printf "%s\n" "$as_me: error: $2" >&2 |
| 5751 | as_fn_exit $as_status |
| 5752 | } # as_fn_error |
| 5753 | |
| 5754 | |
| 5755 | # as_fn_set_status STATUS |
| 5756 | # ----------------------- |
| 5757 | # Set $? to STATUS, without forking. |
| 5758 | as_fn_set_status () |
| 5759 | { |
| 5760 | return $1 |
| 5761 | } # as_fn_set_status |
| 5762 | |
| 5763 | # as_fn_exit STATUS |
| 5764 | # ----------------- |
| 5765 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5766 | as_fn_exit () |
| 5767 | { |
| 5768 | set +e |
| 5769 | as_fn_set_status $1 |
| 5770 | exit $1 |
| 5771 | } # as_fn_exit |
| 5772 | |
| 5773 | # as_fn_unset VAR |
| 5774 | # --------------- |
| 5775 | # Portably unset VAR. |
| 5776 | as_fn_unset () |
| 5777 | { |
| 5778 | { eval $1=; unset $1;} |
| 5779 | } |
| 5780 | as_unset=as_fn_unset |
| 5781 | |
| 5782 | # as_fn_append VAR VALUE |
| 5783 | # ---------------------- |
| 5784 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5785 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5786 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5787 | # implementations. |
| 5788 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 5789 | then : |
| 5790 | eval 'as_fn_append () |
| 5791 | { |
| 5792 | eval $1+=\$2 |
| 5793 | }' |
| 5794 | else case e in #( |
| 5795 | e) as_fn_append () |
| 5796 | { |
| 5797 | eval $1=\$$1\$2 |
| 5798 | } ;; |
| 5799 | esac |
| 5800 | fi # as_fn_append |
| 5801 | |
| 5802 | # as_fn_arith ARG... |
| 5803 | # ------------------ |
| 5804 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5805 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5806 | # must be portable across $(()) and expr. |
| 5807 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 5808 | then : |
| 5809 | eval 'as_fn_arith () |
| 5810 | { |
| 5811 | as_val=$(( $* )) |
| 5812 | }' |
| 5813 | else case e in #( |
| 5814 | e) as_fn_arith () |
| 5815 | { |
| 5816 | as_val=`expr "$@" || test $? -eq 1` |
| 5817 | } ;; |
| 5818 | esac |
| 5819 | fi # as_fn_arith |
| 5820 | |
| 5821 | |
| 5822 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5823 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5824 | as_expr=expr |
| 5825 | else |
| 5826 | as_expr=false |
| 5827 | fi |
| 5828 | |
| 5829 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5830 | as_basename=basename |
| 5831 | else |
| 5832 | as_basename=false |
| 5833 | fi |
| 5834 | |
| 5835 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5836 | as_dirname=dirname |
| 5837 | else |
| 5838 | as_dirname=false |
| 5839 | fi |
| 5840 | |
| 5841 | as_me=`$as_basename -- "$0" || |
| 5842 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5843 | X"$0" : 'X\(//\)$' \| \ |
| 5844 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5845 | printf "%s\n" X/"$0" | |
| 5846 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5847 | s//\1/ |
| 5848 | q |
| 5849 | } |
| 5850 | /^X\/\(\/\/\)$/{ |
| 5851 | s//\1/ |
| 5852 | q |
| 5853 | } |
| 5854 | /^X\/\(\/\).*/{ |
| 5855 | s//\1/ |
| 5856 | q |
| 5857 | } |
| 5858 | s/.*/./; q'` |
| 5859 | |
| 5860 | # Avoid depending upon Character Ranges. |
| 5861 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5862 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5863 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5864 | as_cr_digits='0123456789' |
| 5865 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5866 | |
| 5867 | |
| 5868 | # Determine whether it's possible to make 'echo' print without a newline. |
| 5869 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 5870 | # for compatibility with existing Makefiles. |
| 5871 | ECHO_C= ECHO_N= ECHO_T= |
| 5872 | case `echo -n x` in #((((( |
| 5873 | -n*) |
| 5874 | case `echo 'xy\c'` in |
| 5875 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5876 | xy) ECHO_C='\c';; |
| 5877 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5878 | ECHO_T=' ';; |
| 5879 | esac;; |
| 5880 | *) |
| 5881 | ECHO_N='-n';; |
| 5882 | esac |
| 5883 | |
| 5884 | # For backward compatibility with old third-party macros, we provide |
| 5885 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 5886 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 5887 | as_echo='printf %s\n' |
| 5888 | as_echo_n='printf %s' |
| 5889 | |
| 5890 | rm -f conf$$ conf$$.exe conf$$.file |
| 5891 | if test -d conf$$.dir; then |
| 5892 | rm -f conf$$.dir/conf$$.file |
| 5893 | else |
| 5894 | rm -f conf$$.dir |
| 5895 | mkdir conf$$.dir 2>/dev/null |
| 5896 | fi |
| 5897 | if (echo >conf$$.file) 2>/dev/null; then |
| 5898 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5899 | as_ln_s='ln -s' |
| 5900 | # ... but there are two gotchas: |
| 5901 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 5902 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 5903 | # In both cases, we have to default to 'cp -pR'. |
| 5904 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5905 | as_ln_s='cp -pR' |
| 5906 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5907 | as_ln_s=ln |
| 5908 | else |
| 5909 | as_ln_s='cp -pR' |
| 5910 | fi |
| 5911 | else |
| 5912 | as_ln_s='cp -pR' |
| 5913 | fi |
| 5914 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5915 | rmdir conf$$.dir 2>/dev/null |
| 5916 | |
| 5917 | |
| 5918 | # as_fn_mkdir_p |
| 5919 | # ------------- |
| 5920 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5921 | as_fn_mkdir_p () |
| 5922 | { |
| 5923 | |
| 5924 | case $as_dir in #( |
| 5925 | -*) as_dir=./$as_dir;; |
| 5926 | esac |
| 5927 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5928 | as_dirs= |
| 5929 | while :; do |
| 5930 | case $as_dir in #( |
| 5931 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5932 | *) as_qdir=$as_dir;; |
| 5933 | esac |
| 5934 | as_dirs="'$as_qdir' $as_dirs" |
| 5935 | as_dir=`$as_dirname -- "$as_dir" || |
| 5936 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5937 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5938 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5939 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5940 | printf "%s\n" X"$as_dir" | |
| 5941 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5942 | s//\1/ |
| 5943 | q |
| 5944 | } |
| 5945 | /^X\(\/\/\)[^/].*/{ |
| 5946 | s//\1/ |
| 5947 | q |
| 5948 | } |
| 5949 | /^X\(\/\/\)$/{ |
| 5950 | s//\1/ |
| 5951 | q |
| 5952 | } |
| 5953 | /^X\(\/\).*/{ |
| 5954 | s//\1/ |
| 5955 | q |
| 5956 | } |
| 5957 | s/.*/./; q'` |
| 5958 | test -d "$as_dir" && break |
| 5959 | done |
| 5960 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5961 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 5962 | |
| 5963 | |
| 5964 | } # as_fn_mkdir_p |
| 5965 | if mkdir -p . 2>/dev/null; then |
| 5966 | as_mkdir_p='mkdir -p "$as_dir"' |
| 5967 | else |
| 5968 | test -d ./-p && rmdir ./-p |
| 5969 | as_mkdir_p=false |
| 5970 | fi |
| 5971 | |
| 5972 | |
| 5973 | # as_fn_executable_p FILE |
| 5974 | # ----------------------- |
| 5975 | # Test if FILE is an executable regular file. |
| 5976 | as_fn_executable_p () |
| 5977 | { |
| 5978 | test -f "$1" && test -x "$1" |
| 5979 | } # as_fn_executable_p |
| 5980 | as_test_x='test -x' |
| 5981 | as_executable_p=as_fn_executable_p |
| 5982 | |
| 5983 | # Sed expression to map a string onto a valid CPP name. |
| 5984 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 5985 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 5986 | |
| 5987 | # Sed expression to map a string onto a valid variable name. |
| 5988 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 5989 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 5990 | |
| 5991 | |
| 5992 | exec 6>&1 |
| 5993 | ## ----------------------------------- ## |
| 5994 | ## Main body of $CONFIG_STATUS script. ## |
| 5995 | ## ----------------------------------- ## |
| 5996 | _ASEOF |
| 5997 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 5998 | |
| 5999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6000 | # Save the log message, to keep $0 and so on meaningful, and to |
| 6001 | # report actual input values of CONFIG_FILES etc. instead of their |
| 6002 | # values after options handling. |
| 6003 | ac_log=" |
| 6004 | This file was extended by $as_me, which was |
| 6005 | generated by GNU Autoconf 2.72. Invocation command line was |
| 6006 | |
| 6007 | CONFIG_FILES = $CONFIG_FILES |
| 6008 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6009 | CONFIG_LINKS = $CONFIG_LINKS |
| 6010 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6011 | $ $0 $@ |
| 6012 | |
| 6013 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6014 | " |
| 6015 | |
| 6016 | _ACEOF |
| 6017 | |
| 6018 | case $ac_config_files in *" |
| 6019 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6020 | esac |
| 6021 | |
| 6022 | case $ac_config_headers in *" |
| 6023 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6024 | esac |
| 6025 | |
| 6026 | |
| 6027 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6028 | # Files that config.status was made for. |
| 6029 | config_files="$ac_config_files" |
| 6030 | config_headers="$ac_config_headers" |
| 6031 | |
| 6032 | _ACEOF |
| 6033 | |
| 6034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6035 | ac_cs_usage="\ |
| 6036 | '$as_me' instantiates files and other configuration actions |
| 6037 | from templates according to the current configuration. Unless the files |
| 6038 | and actions are specified as TAGs, all are instantiated by default. |
| 6039 | |
| 6040 | Usage: $0 [OPTION]... [TAG]... |
| 6041 | |
| 6042 | -h, --help print this help, then exit |
| 6043 | -V, --version print version number and configuration settings, then exit |
| 6044 | --config print configuration, then exit |
| 6045 | -q, --quiet, --silent |
| 6046 | do not print progress messages |
| 6047 | -d, --debug don't remove temporary files |
| 6048 | --recheck update $as_me by reconfiguring in the same conditions |
| 6049 | --file=FILE[:TEMPLATE] |
| 6050 | instantiate the configuration file FILE |
| 6051 | --header=FILE[:TEMPLATE] |
| 6052 | instantiate the configuration header FILE |
| 6053 | |
| 6054 | Configuration files: |
| 6055 | $config_files |
| 6056 | |
| 6057 | Configuration headers: |
| 6058 | $config_headers |
| 6059 | |
| 6060 | Report bugs to the package provider." |
| 6061 | |
| 6062 | _ACEOF |
| 6063 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 6064 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 6065 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6066 | ac_cs_config='$ac_cs_config_escaped' |
| 6067 | ac_cs_version="\\ |
| 6068 | config.status |
| 6069 | configured by $0, generated by GNU Autoconf 2.72, |
| 6070 | with options \\"\$ac_cs_config\\" |
| 6071 | |
| 6072 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 6073 | This config.status script is free software; the Free Software Foundation |
| 6074 | gives unlimited permission to copy, distribute and modify it." |
| 6075 | |
| 6076 | ac_pwd='$ac_pwd' |
| 6077 | srcdir='$srcdir' |
| 6078 | test -n "\$AWK" || AWK=awk |
| 6079 | _ACEOF |
| 6080 | |
| 6081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6082 | # The default lists apply if the user does not specify any file. |
| 6083 | ac_need_defaults=: |
| 6084 | while test $# != 0 |
| 6085 | do |
| 6086 | case $1 in |
| 6087 | --*=?*) |
| 6088 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6089 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 6090 | ac_shift=: |
| 6091 | ;; |
| 6092 | --*=) |
| 6093 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6094 | ac_optarg= |
| 6095 | ac_shift=: |
| 6096 | ;; |
| 6097 | *) |
| 6098 | ac_option=$1 |
| 6099 | ac_optarg=$2 |
| 6100 | ac_shift=shift |
| 6101 | ;; |
| 6102 | esac |
| 6103 | |
| 6104 | case $ac_option in |
| 6105 | # Handling of the options. |
| 6106 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6107 | ac_cs_recheck=: ;; |
| 6108 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 6109 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 6110 | --config | --confi | --conf | --con | --co | --c ) |
| 6111 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 6112 | --debug | --debu | --deb | --de | --d | -d ) |
| 6113 | debug=: ;; |
| 6114 | --file | --fil | --fi | --f ) |
| 6115 | $ac_shift |
| 6116 | case $ac_optarg in |
| 6117 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6118 | '') as_fn_error $? "missing file argument" ;; |
| 6119 | esac |
| 6120 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 6121 | ac_need_defaults=false;; |
| 6122 | --header | --heade | --head | --hea ) |
| 6123 | $ac_shift |
| 6124 | case $ac_optarg in |
| 6125 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6126 | esac |
| 6127 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 6128 | ac_need_defaults=false;; |
| 6129 | --he | --h) |
| 6130 | # Conflict between --help and --header |
| 6131 | as_fn_error $? "ambiguous option: '$1' |
| 6132 | Try '$0 --help' for more information.";; |
| 6133 | --help | --hel | -h ) |
| 6134 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 6135 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6136 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6137 | ac_cs_silent=: ;; |
| 6138 | |
| 6139 | # This is an error. |
| 6140 | -*) as_fn_error $? "unrecognized option: '$1' |
| 6141 | Try '$0 --help' for more information." ;; |
| 6142 | |
| 6143 | *) as_fn_append ac_config_targets " $1" |
| 6144 | ac_need_defaults=false ;; |
| 6145 | |
| 6146 | esac |
| 6147 | shift |
| 6148 | done |
| 6149 | |
| 6150 | ac_configure_extra_args= |
| 6151 | |
| 6152 | if $ac_cs_silent; then |
| 6153 | exec 6>/dev/null |
| 6154 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6155 | fi |
| 6156 | |
| 6157 | _ACEOF |
| 6158 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6159 | if \$ac_cs_recheck; then |
| 6160 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6161 | shift |
| 6162 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6163 | CONFIG_SHELL='$SHELL' |
| 6164 | export CONFIG_SHELL |
| 6165 | exec "\$@" |
| 6166 | fi |
| 6167 | |
| 6168 | _ACEOF |
| 6169 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6170 | exec 5>>config.log |
| 6171 | { |
| 6172 | echo |
| 6173 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6174 | ## Running $as_me. ## |
| 6175 | _ASBOX |
| 6176 | printf "%s\n" "$ac_log" |
| 6177 | } >&5 |
| 6178 | |
| 6179 | _ACEOF |
| 6180 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6181 | _ACEOF |
| 6182 | |
| 6183 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6184 | |
| 6185 | # Handling of arguments. |
| 6186 | for ac_config_target in $ac_config_targets |
| 6187 | do |
| 6188 | case $ac_config_target in |
| 6189 | "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;; |
| 6190 | "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;; |
| 6191 | |
| 6192 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 6193 | esac |
| 6194 | done |
| 6195 | |
| 6196 | |
| 6197 | # If the user did not use the arguments to specify the items to instantiate, |
| 6198 | # then the envvar interface is used. Set only those that are not. |
| 6199 | # We use the long form for the default assignment because of an extremely |
| 6200 | # bizarre bug on SunOS 4.1.3. |
| 6201 | if $ac_need_defaults; then |
| 6202 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 6203 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 6204 | fi |
| 6205 | |
| 6206 | # Have a temporary directory for convenience. Make it in the build tree |
| 6207 | # simply because there is no reason against having it here, and in addition, |
| 6208 | # creating and moving files from /tmp can sometimes cause problems. |
| 6209 | # Hook for its removal unless debugging. |
| 6210 | # Note that there is a small window in which the directory will not be cleaned: |
| 6211 | # after its creation but before its name has been assigned to '$tmp'. |
| 6212 | $debug || |
| 6213 | { |
| 6214 | tmp= ac_tmp= |
| 6215 | trap 'exit_status=$? |
| 6216 | : "${ac_tmp:=$tmp}" |
| 6217 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 6218 | ' 0 |
| 6219 | trap 'as_fn_exit 1' 1 2 13 15 |
| 6220 | } |
| 6221 | # Create a (secure) tmp directory for tmp files. |
| 6222 | |
| 6223 | { |
| 6224 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 6225 | test -d "$tmp" |
| 6226 | } || |
| 6227 | { |
| 6228 | tmp=./conf$$-$RANDOM |
| 6229 | (umask 077 && mkdir "$tmp") |
| 6230 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 6231 | ac_tmp=$tmp |
| 6232 | |
| 6233 | # Set up the scripts for CONFIG_FILES section. |
| 6234 | # No need to generate them if there are no CONFIG_FILES. |
| 6235 | # This happens for instance with './config.status config.h'. |
| 6236 | if test -n "$CONFIG_FILES"; then |
| 6237 | |
| 6238 | |
| 6239 | ac_cr=`echo X | tr X '\015'` |
| 6240 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6241 | # But we know of no other shell where ac_cr would be empty at this |
| 6242 | # point, so we can use a bashism as a fallback. |
| 6243 | if test "x$ac_cr" = x; then |
| 6244 | eval ac_cr=\$\'\\r\' |
| 6245 | fi |
| 6246 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6247 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6248 | ac_cs_awk_cr='\\r' |
| 6249 | else |
| 6250 | ac_cs_awk_cr=$ac_cr |
| 6251 | fi |
| 6252 | |
| 6253 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 6254 | _ACEOF |
| 6255 | |
| 6256 | |
| 6257 | { |
| 6258 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6259 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6260 | echo "_ACEOF" |
| 6261 | } >conf$$subs.sh || |
| 6262 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6263 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 6264 | ac_delim='%!_!# ' |
| 6265 | for ac_last_try in false false false false false :; do |
| 6266 | . ./conf$$subs.sh || |
| 6267 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6268 | |
| 6269 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6270 | if test $ac_delim_n = $ac_delim_num; then |
| 6271 | break |
| 6272 | elif $ac_last_try; then |
| 6273 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6274 | else |
| 6275 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6276 | fi |
| 6277 | done |
| 6278 | rm -f conf$$subs.sh |
| 6279 | |
| 6280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6281 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 6282 | _ACEOF |
| 6283 | sed -n ' |
| 6284 | h |
| 6285 | s/^/S["/; s/!.*/"]=/ |
| 6286 | p |
| 6287 | g |
| 6288 | s/^[^!]*!// |
| 6289 | :repl |
| 6290 | t repl |
| 6291 | s/'"$ac_delim"'$// |
| 6292 | t delim |
| 6293 | :nl |
| 6294 | h |
| 6295 | s/\(.\{148\}\)..*/\1/ |
| 6296 | t more1 |
| 6297 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6298 | p |
| 6299 | n |
| 6300 | b repl |
| 6301 | :more1 |
| 6302 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6303 | p |
| 6304 | g |
| 6305 | s/.\{148\}// |
| 6306 | t nl |
| 6307 | :delim |
| 6308 | h |
| 6309 | s/\(.\{148\}\)..*/\1/ |
| 6310 | t more2 |
| 6311 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6312 | p |
| 6313 | b |
| 6314 | :more2 |
| 6315 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6316 | p |
| 6317 | g |
| 6318 | s/.\{148\}// |
| 6319 | t delim |
| 6320 | ' <conf$$subs.awk | sed ' |
| 6321 | /^[^""]/{ |
| 6322 | N |
| 6323 | s/\n// |
| 6324 | } |
| 6325 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6326 | rm -f conf$$subs.awk |
| 6327 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6328 | _ACAWK |
| 6329 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 6330 | for (key in S) S_is_set[key] = 1 |
| 6331 | FS = "" |
| 6332 | |
| 6333 | } |
| 6334 | { |
| 6335 | line = $ 0 |
| 6336 | nfields = split(line, field, "@") |
| 6337 | substed = 0 |
| 6338 | len = length(field[1]) |
| 6339 | for (i = 2; i < nfields; i++) { |
| 6340 | key = field[i] |
| 6341 | keylen = length(key) |
| 6342 | if (S_is_set[key]) { |
| 6343 | value = S[key] |
| 6344 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6345 | len += length(value) + length(field[++i]) |
| 6346 | substed = 1 |
| 6347 | } else |
| 6348 | len += 1 + keylen |
| 6349 | } |
| 6350 | |
| 6351 | print line |
| 6352 | } |
| 6353 | |
| 6354 | _ACAWK |
| 6355 | _ACEOF |
| 6356 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6357 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6358 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6359 | else |
| 6360 | cat |
| 6361 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6362 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 6363 | _ACEOF |
| 6364 | |
| 6365 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6366 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 6367 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6368 | # (actually we leave an empty line to preserve line numbers). |
| 6369 | if test "x$srcdir" = x.; then |
| 6370 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6371 | h |
| 6372 | s/// |
| 6373 | s/^/:/ |
| 6374 | s/[ ]*$/:/ |
| 6375 | s/:\$(srcdir):/:/g |
| 6376 | s/:\${srcdir}:/:/g |
| 6377 | s/:@srcdir@:/:/g |
| 6378 | s/^:*// |
| 6379 | s/:*$// |
| 6380 | x |
| 6381 | s/\(=[ ]*\).*/\1/ |
| 6382 | G |
| 6383 | s/\n// |
| 6384 | s/^[^=]*=[ ]*$// |
| 6385 | }' |
| 6386 | fi |
| 6387 | |
| 6388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6389 | fi # test -n "$CONFIG_FILES" |
| 6390 | |
| 6391 | # Set up the scripts for CONFIG_HEADERS section. |
| 6392 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6393 | # This happens for instance with './config.status Makefile'. |
| 6394 | if test -n "$CONFIG_HEADERS"; then |
| 6395 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 6396 | BEGIN { |
| 6397 | _ACEOF |
| 6398 | |
| 6399 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 6400 | # here-document in config.status, that substitutes the proper values into |
| 6401 | # config.h.in to produce config.h. |
| 6402 | |
| 6403 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6404 | # handling of long lines. |
| 6405 | ac_delim='%!_!# ' |
| 6406 | for ac_last_try in false false :; do |
| 6407 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6408 | if test -z "$ac_tt"; then |
| 6409 | break |
| 6410 | elif $ac_last_try; then |
| 6411 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 6412 | else |
| 6413 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6414 | fi |
| 6415 | done |
| 6416 | |
| 6417 | # For the awk script, D is an array of macro values keyed by name, |
| 6418 | # likewise P contains macro parameters if any. Preserve backslash |
| 6419 | # newline sequences. |
| 6420 | |
| 6421 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6422 | sed -n ' |
| 6423 | s/.\{148\}/&'"$ac_delim"'/g |
| 6424 | t rset |
| 6425 | :rset |
| 6426 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6427 | t def |
| 6428 | d |
| 6429 | :def |
| 6430 | s/\\$// |
| 6431 | t bsnl |
| 6432 | s/["\\]/\\&/g |
| 6433 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6434 | D["\1"]=" \3"/p |
| 6435 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6436 | d |
| 6437 | :bsnl |
| 6438 | s/["\\]/\\&/g |
| 6439 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6440 | D["\1"]=" \3\\\\\\n"\\/p |
| 6441 | t cont |
| 6442 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6443 | t cont |
| 6444 | d |
| 6445 | :cont |
| 6446 | n |
| 6447 | s/.\{148\}/&'"$ac_delim"'/g |
| 6448 | t clear |
| 6449 | :clear |
| 6450 | s/\\$// |
| 6451 | t bsnlc |
| 6452 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6453 | d |
| 6454 | :bsnlc |
| 6455 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6456 | b cont |
| 6457 | ' <confdefs.h | sed ' |
| 6458 | s/'"$ac_delim"'/"\\\ |
| 6459 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6460 | |
| 6461 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6462 | for (key in D) D_is_set[key] = 1 |
| 6463 | FS = "" |
| 6464 | } |
| 6465 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6466 | line = \$ 0 |
| 6467 | split(line, arg, " ") |
| 6468 | if (arg[1] == "#") { |
| 6469 | defundef = arg[2] |
| 6470 | mac1 = arg[3] |
| 6471 | } else { |
| 6472 | defundef = substr(arg[1], 2) |
| 6473 | mac1 = arg[2] |
| 6474 | } |
| 6475 | split(mac1, mac2, "(") #) |
| 6476 | macro = mac2[1] |
| 6477 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6478 | if (D_is_set[macro]) { |
| 6479 | # Preserve the white space surrounding the "#". |
| 6480 | print prefix "define", macro P[macro] D[macro] |
| 6481 | next |
| 6482 | } else { |
| 6483 | # Replace #undef with comments. This is necessary, for example, |
| 6484 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6485 | # on some systems where configure will not decide to define it. |
| 6486 | if (defundef == "undef") { |
| 6487 | print "/*", prefix defundef, macro, "*/" |
| 6488 | next |
| 6489 | } |
| 6490 | } |
| 6491 | } |
| 6492 | { print } |
| 6493 | _ACAWK |
| 6494 | _ACEOF |
| 6495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6496 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6497 | fi # test -n "$CONFIG_HEADERS" |
| 6498 | |
| 6499 | |
| 6500 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 6501 | shift |
| 6502 | for ac_tag |
| 6503 | do |
| 6504 | case $ac_tag in |
| 6505 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6506 | esac |
| 6507 | case $ac_mode$ac_tag in |
| 6508 | :[FHL]*:*);; |
| 6509 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 6510 | :[FH]-) ac_tag=-:-;; |
| 6511 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6512 | esac |
| 6513 | ac_save_IFS=$IFS |
| 6514 | IFS=: |
| 6515 | set x $ac_tag |
| 6516 | IFS=$ac_save_IFS |
| 6517 | shift |
| 6518 | ac_file=$1 |
| 6519 | shift |
| 6520 | |
| 6521 | case $ac_mode in |
| 6522 | :L) ac_source=$1;; |
| 6523 | :[FH]) |
| 6524 | ac_file_inputs= |
| 6525 | for ac_f |
| 6526 | do |
| 6527 | case $ac_f in |
| 6528 | -) ac_f="$ac_tmp/stdin";; |
| 6529 | *) # Look for the file first in the build tree, then in the source tree |
| 6530 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6531 | # because $ac_f cannot contain ':'. |
| 6532 | test -f "$ac_f" || |
| 6533 | case $ac_f in |
| 6534 | [\\/$]*) false;; |
| 6535 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6536 | esac || |
| 6537 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 6538 | esac |
| 6539 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6540 | as_fn_append ac_file_inputs " '$ac_f'" |
| 6541 | done |
| 6542 | |
| 6543 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 6544 | # use $as_me), people would be surprised to read: |
| 6545 | # /* config.h. Generated by config.status. */ |
| 6546 | configure_input='Generated from '` |
| 6547 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6548 | `' by configure.' |
| 6549 | if test x"$ac_file" != x-; then |
| 6550 | configure_input="$ac_file. $configure_input" |
| 6551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6552 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 6553 | fi |
| 6554 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6555 | case $configure_input in #( |
| 6556 | *\&* | *\|* | *\\* ) |
| 6557 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 6558 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6559 | *) ac_sed_conf_input=$configure_input;; |
| 6560 | esac |
| 6561 | |
| 6562 | case $ac_tag in |
| 6563 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6564 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 6565 | esac |
| 6566 | ;; |
| 6567 | esac |
| 6568 | |
| 6569 | ac_dir=`$as_dirname -- "$ac_file" || |
| 6570 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6571 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6572 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6573 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6574 | printf "%s\n" X"$ac_file" | |
| 6575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6576 | s//\1/ |
| 6577 | q |
| 6578 | } |
| 6579 | /^X\(\/\/\)[^/].*/{ |
| 6580 | s//\1/ |
| 6581 | q |
| 6582 | } |
| 6583 | /^X\(\/\/\)$/{ |
| 6584 | s//\1/ |
| 6585 | q |
| 6586 | } |
| 6587 | /^X\(\/\).*/{ |
| 6588 | s//\1/ |
| 6589 | q |
| 6590 | } |
| 6591 | s/.*/./; q'` |
| 6592 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 6593 | ac_builddir=. |
| 6594 | |
| 6595 | case "$ac_dir" in |
| 6596 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6597 | *) |
| 6598 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6599 | # A ".." for each directory in $ac_dir_suffix. |
| 6600 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6601 | case $ac_top_builddir_sub in |
| 6602 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6603 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6604 | esac ;; |
| 6605 | esac |
| 6606 | ac_abs_top_builddir=$ac_pwd |
| 6607 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6608 | # for backward compatibility: |
| 6609 | ac_top_builddir=$ac_top_build_prefix |
| 6610 | |
| 6611 | case $srcdir in |
| 6612 | .) # We are building in place. |
| 6613 | ac_srcdir=. |
| 6614 | ac_top_srcdir=$ac_top_builddir_sub |
| 6615 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6616 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 6617 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6618 | ac_top_srcdir=$srcdir |
| 6619 | ac_abs_top_srcdir=$srcdir ;; |
| 6620 | *) # Relative name. |
| 6621 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6622 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6623 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 6624 | esac |
| 6625 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 6626 | |
| 6627 | |
| 6628 | case $ac_mode in |
| 6629 | :F) |
| 6630 | # |
| 6631 | # CONFIG_FILE |
| 6632 | # |
| 6633 | |
| 6634 | _ACEOF |
| 6635 | |
| 6636 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6637 | # If the template does not know about datarootdir, expand it. |
| 6638 | # FIXME: This hack should be removed a few years after 2.60. |
| 6639 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6640 | ac_sed_dataroot=' |
| 6641 | /datarootdir/ { |
| 6642 | p |
| 6643 | q |
| 6644 | } |
| 6645 | /@datadir@/p |
| 6646 | /@docdir@/p |
| 6647 | /@infodir@/p |
| 6648 | /@localedir@/p |
| 6649 | /@mandir@/p' |
| 6650 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6651 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6652 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6653 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6654 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6655 | _ACEOF |
| 6656 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6657 | ac_datarootdir_hack=' |
| 6658 | s&@datadir@&$datadir&g |
| 6659 | s&@docdir@&$docdir&g |
| 6660 | s&@infodir@&$infodir&g |
| 6661 | s&@localedir@&$localedir&g |
| 6662 | s&@mandir@&$mandir&g |
| 6663 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6664 | esac |
| 6665 | _ACEOF |
| 6666 | |
| 6667 | # Neutralize VPATH when '$srcdir' = '.'. |
| 6668 | # Shell code in configure.ac might set extrasub. |
| 6669 | # FIXME: do we really want to maintain this feature? |
| 6670 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6671 | ac_sed_extra="$ac_vpsub |
| 6672 | $extrasub |
| 6673 | _ACEOF |
| 6674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6675 | :t |
| 6676 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6677 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6678 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6679 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6680 | s&@srcdir@&$ac_srcdir&;t t |
| 6681 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6682 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6683 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6684 | s&@builddir@&$ac_builddir&;t t |
| 6685 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6686 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6687 | $ac_datarootdir_hack |
| 6688 | " |
| 6689 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6690 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6691 | |
| 6692 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6693 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6694 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6695 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 6696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 6697 | which seems to be undefined. Please make sure it is defined" >&5 |
| 6698 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 6699 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 6700 | |
| 6701 | rm -f "$ac_tmp/stdin" |
| 6702 | case $ac_file in |
| 6703 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6704 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 6705 | esac \ |
| 6706 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6707 | ;; |
| 6708 | :H) |
| 6709 | # |
| 6710 | # CONFIG_HEADER |
| 6711 | # |
| 6712 | if test x"$ac_file" != x-; then |
| 6713 | { |
| 6714 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 6715 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 6716 | } >"$ac_tmp/config.h" \ |
| 6717 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6718 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 6719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6720 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 6721 | else |
| 6722 | rm -f "$ac_file" |
| 6723 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 6724 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6725 | fi |
| 6726 | else |
| 6727 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 6728 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 6729 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 6730 | fi |
| 6731 | ;; |
| 6732 | |
| 6733 | |
| 6734 | esac |
| 6735 | |
| 6736 | done # for ac_tag |
| 6737 | |
| 6738 | |
| 6739 | as_fn_exit 0 |
| 6740 | _ACEOF |
| 6741 | ac_clean_files=$ac_clean_files_save |
| 6742 | |
| 6743 | test $ac_write_fail = 0 || |
| 6744 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6745 | |
| 6746 | |
| 6747 | # configure is writing to config.log, and then calls config.status. |
| 6748 | # config.status does its own redirection, appending to config.log. |
| 6749 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6750 | # by configure, so config.status won't be able to write to it; its |
| 6751 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6752 | # effectively closing config.log, so it can be properly (re)opened and |
| 6753 | # appended to by config.status. When coming back to configure, we |
| 6754 | # need to make the FD available again. |
| 6755 | if test "$no_create" != yes; then |
| 6756 | ac_cs_success=: |
| 6757 | ac_config_status_args= |
| 6758 | test "$silent" = yes && |
| 6759 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6760 | exec 5>/dev/null |
| 6761 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6762 | exec 5>>config.log |
| 6763 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6764 | # would make configure fail if this is the last instruction. |
| 6765 | $ac_cs_success || as_fn_exit 1 |
| 6766 | fi |
| 6767 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6769 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 6770 | fi |
| 6771 | |
| 6772 | |
| 6773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Menuselect build configuration successfully completed" >&5 |
| 6774 | printf "%s\n" "$as_me: Menuselect build configuration successfully completed" >&6;} |
| 6775 |