Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/backend_tcl/configure @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 #! /bin/sh | |
| 2 # Guess values for system-dependent variables and create Makefiles. | |
| 3 # Generated by GNU Autoconf 2.72 for zint 2.13.0. | |
| 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 ## M4sh Initialization. ## | |
| 14 ## -------------------- ## | |
| 15 | |
| 16 # Be more Bourne compatible | |
| 17 DUALCASE=1; export DUALCASE # for MKS sh | |
| 18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
| 19 then : | |
| 20 emulate sh | |
| 21 NULLCMD=: | |
| 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
| 23 # is contrary to our usage. Disable this feature. | |
| 24 alias -g '${1+"$@"}'='"$@"' | |
| 25 setopt NO_GLOB_SUBST | |
| 26 else case e in #( | |
| 27 e) case `(set -o) 2>/dev/null` in #( | |
| 28 *posix*) : | |
| 29 set -o posix ;; #( | |
| 30 *) : | |
| 31 ;; | |
| 32 esac ;; | |
| 33 esac | |
| 34 fi | |
| 35 | |
| 36 | |
| 37 | |
| 38 # Reset variables that may have inherited troublesome values from | |
| 39 # the environment. | |
| 40 | |
| 41 # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
| 42 # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
| 43 # side effect of setting IFS to empty, thus disabling word splitting.) | |
| 44 # Quoting is to prevent editors from complaining about space-tab. | |
| 45 as_nl=' | |
| 46 ' | |
| 47 export as_nl | |
| 48 IFS=" "" $as_nl" | |
| 49 | |
| 50 PS1='$ ' | |
| 51 PS2='> ' | |
| 52 PS4='+ ' | |
| 53 | |
| 54 # Ensure predictable behavior from utilities with locale-dependent output. | |
| 55 LC_ALL=C | |
| 56 export LC_ALL | |
| 57 LANGUAGE=C | |
| 58 export LANGUAGE | |
| 59 | |
| 60 # We cannot yet rely on "unset" to work, but we need these variables | |
| 61 # to be unset--not just set to an empty or harmless value--now, to | |
| 62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
| 63 # also avoids known problems related to "unset" and subshell syntax | |
| 64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
| 65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
| 66 do eval test \${$as_var+y} \ | |
| 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
| 68 done | |
| 69 | |
| 70 # Ensure that fds 0, 1, and 2 are open. | |
| 71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
| 72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
| 73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
| 74 | |
| 75 # The user is always right. | |
| 76 if ${PATH_SEPARATOR+false} :; then | |
| 77 PATH_SEPARATOR=: | |
| 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
| 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
| 80 PATH_SEPARATOR=';' | |
| 81 } | |
| 82 fi | |
| 83 | |
| 84 | |
| 85 # Find who we are. Look in the path if we contain no directory separator. | |
| 86 as_myself= | |
| 87 case $0 in #(( | |
| 88 *[\\/]* ) as_myself=$0 ;; | |
| 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 90 for as_dir in $PATH | |
| 91 do | |
| 92 IFS=$as_save_IFS | |
| 93 case $as_dir in #((( | |
| 94 '') as_dir=./ ;; | |
| 95 */) ;; | |
| 96 *) as_dir=$as_dir/ ;; | |
| 97 esac | |
| 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
| 99 done | |
| 100 IFS=$as_save_IFS | |
| 101 | |
| 102 ;; | |
| 103 esac | |
| 104 # We did not find ourselves, most probably we were run as 'sh COMMAND' | |
| 105 # in which case we are not to be found in the path. | |
| 106 if test "x$as_myself" = x; then | |
| 107 as_myself=$0 | |
| 108 fi | |
| 109 if test ! -f "$as_myself"; then | |
| 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
| 111 exit 1 | |
| 112 fi | |
| 113 | |
| 114 | |
| 115 # Use a proper internal environment variable to ensure we don't fall | |
| 116 # into an infinite loop, continuously re-executing ourselves. | |
| 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
| 118 _as_can_reexec=no; export _as_can_reexec; | |
| 119 # We cannot yet assume a decent shell, so we have to provide a | |
| 120 # neutralization value for shells without unset; and this also | |
| 121 # works around shells that cannot unset nonexistent variables. | |
| 122 # Preserve -v and -x to the replacement shell. | |
| 123 BASH_ENV=/dev/null | |
| 124 ENV=/dev/null | |
| 125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
| 126 case $- in # (((( | |
| 127 *v*x* | *x*v* ) as_opts=-vx ;; | |
| 128 *v* ) as_opts=-v ;; | |
| 129 *x* ) as_opts=-x ;; | |
| 130 * ) as_opts= ;; | |
| 131 esac | |
| 132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
| 133 # Admittedly, this is quite paranoid, since all the known shells bail | |
| 134 # out after a failed 'exec'. | |
| 135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
| 136 exit 255 | |
| 137 fi | |
| 138 # We don't want this to propagate to other subprocesses. | |
| 139 { _as_can_reexec=; unset _as_can_reexec;} | |
| 140 if test "x$CONFIG_SHELL" = x; then | |
| 141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
| 142 then : | |
| 143 emulate sh | |
| 144 NULLCMD=: | |
| 145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
| 146 # is contrary to our usage. Disable this feature. | |
| 147 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
| 148 setopt NO_GLOB_SUBST | |
| 149 else case e in #( | |
| 150 e) case \`(set -o) 2>/dev/null\` in #( | |
| 151 *posix*) : | |
| 152 set -o posix ;; #( | |
| 153 *) : | |
| 154 ;; | |
| 155 esac ;; | |
| 156 esac | |
| 157 fi | |
| 158 " | |
| 159 as_required="as_fn_return () { (exit \$1); } | |
| 160 as_fn_success () { as_fn_return 0; } | |
| 161 as_fn_failure () { as_fn_return 1; } | |
| 162 as_fn_ret_success () { return 0; } | |
| 163 as_fn_ret_failure () { return 1; } | |
| 164 | |
| 165 exitcode=0 | |
| 166 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
| 167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
| 168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
| 169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
| 170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | |
| 171 then : | |
| 172 | |
| 173 else case e in #( | |
| 174 e) exitcode=1; echo positional parameters were not saved. ;; | |
| 175 esac | |
| 176 fi | |
| 177 test x\$exitcode = x0 || exit 1 | |
| 178 blah=\$(echo \$(echo blah)) | |
| 179 test x\"\$blah\" = xblah || exit 1 | |
| 180 test -x / || exit 1" | |
| 181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
| 182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
| 183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
| 184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
| 185 test \$(( 1 + 1 )) = 2 || exit 1" | |
| 186 if (eval "$as_required") 2>/dev/null | |
| 187 then : | |
| 188 as_have_required=yes | |
| 189 else case e in #( | |
| 190 e) as_have_required=no ;; | |
| 191 esac | |
| 192 fi | |
| 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | |
| 194 then : | |
| 195 | |
| 196 else case e in #( | |
| 197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 198 as_found=false | |
| 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
| 200 do | |
| 201 IFS=$as_save_IFS | |
| 202 case $as_dir in #((( | |
| 203 '') as_dir=./ ;; | |
| 204 */) ;; | |
| 205 *) as_dir=$as_dir/ ;; | |
| 206 esac | |
| 207 as_found=: | |
| 208 case $as_dir in #( | |
| 209 /*) | |
| 210 for as_base in sh bash ksh sh5; do | |
| 211 # Try only shells that exist, to save several forks. | |
| 212 as_shell=$as_dir$as_base | |
| 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
| 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
| 215 then : | |
| 216 CONFIG_SHELL=$as_shell as_have_required=yes | |
| 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | |
| 218 then : | |
| 219 break 2 | |
| 220 fi | |
| 221 fi | |
| 222 done;; | |
| 223 esac | |
| 224 as_found=false | |
| 225 done | |
| 226 IFS=$as_save_IFS | |
| 227 if $as_found | |
| 228 then : | |
| 229 | |
| 230 else case e in #( | |
| 231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
| 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
| 233 then : | |
| 234 CONFIG_SHELL=$SHELL as_have_required=yes | |
| 235 fi ;; | |
| 236 esac | |
| 237 fi | |
| 238 | |
| 239 | |
| 240 if test "x$CONFIG_SHELL" != x | |
| 241 then : | |
| 242 export CONFIG_SHELL | |
| 243 # We cannot yet assume a decent shell, so we have to provide a | |
| 244 # neutralization value for shells without unset; and this also | |
| 245 # works around shells that cannot unset nonexistent variables. | |
| 246 # Preserve -v and -x to the replacement shell. | |
| 247 BASH_ENV=/dev/null | |
| 248 ENV=/dev/null | |
| 249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
| 250 case $- in # (((( | |
| 251 *v*x* | *x*v* ) as_opts=-vx ;; | |
| 252 *v* ) as_opts=-v ;; | |
| 253 *x* ) as_opts=-x ;; | |
| 254 * ) as_opts= ;; | |
| 255 esac | |
| 256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
| 257 # Admittedly, this is quite paranoid, since all the known shells bail | |
| 258 # out after a failed 'exec'. | |
| 259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
| 260 exit 255 | |
| 261 fi | |
| 262 | |
| 263 if test x$as_have_required = xno | |
| 264 then : | |
| 265 printf "%s\n" "$0: This script requires a shell more modern than all" | |
| 266 printf "%s\n" "$0: the shells that I found on your system." | |
| 267 if test ${ZSH_VERSION+y} ; then | |
| 268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
| 269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
| 270 else | |
| 271 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, | |
| 272 $0: including any error possibly output before this | |
| 273 $0: message. Then install a modern shell, or manually run | |
| 274 $0: the script under such a shell if you do have one." | |
| 275 fi | |
| 276 exit 1 | |
| 277 fi ;; | |
| 278 esac | |
| 279 fi | |
| 280 fi | |
| 281 SHELL=${CONFIG_SHELL-/bin/sh} | |
| 282 export SHELL | |
| 283 # Unset more variables known to interfere with behavior of common tools. | |
| 284 CLICOLOR_FORCE= GREP_OPTIONS= | |
| 285 unset CLICOLOR_FORCE GREP_OPTIONS | |
| 286 | |
| 287 ## --------------------- ## | |
| 288 ## M4sh Shell Functions. ## | |
| 289 ## --------------------- ## | |
| 290 # as_fn_unset VAR | |
| 291 # --------------- | |
| 292 # Portably unset VAR. | |
| 293 as_fn_unset () | |
| 294 { | |
| 295 { eval $1=; unset $1;} | |
| 296 } | |
| 297 as_unset=as_fn_unset | |
| 298 | |
| 299 | |
| 300 # as_fn_set_status STATUS | |
| 301 # ----------------------- | |
| 302 # Set $? to STATUS, without forking. | |
| 303 as_fn_set_status () | |
| 304 { | |
| 305 return $1 | |
| 306 } # as_fn_set_status | |
| 307 | |
| 308 # as_fn_exit STATUS | |
| 309 # ----------------- | |
| 310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
| 311 as_fn_exit () | |
| 312 { | |
| 313 set +e | |
| 314 as_fn_set_status $1 | |
| 315 exit $1 | |
| 316 } # as_fn_exit | |
| 317 | |
| 318 # as_fn_mkdir_p | |
| 319 # ------------- | |
| 320 # Create "$as_dir" as a directory, including parents if necessary. | |
| 321 as_fn_mkdir_p () | |
| 322 { | |
| 323 | |
| 324 case $as_dir in #( | |
| 325 -*) as_dir=./$as_dir;; | |
| 326 esac | |
| 327 test -d "$as_dir" || eval $as_mkdir_p || { | |
| 328 as_dirs= | |
| 329 while :; do | |
| 330 case $as_dir in #( | |
| 331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
| 332 *) as_qdir=$as_dir;; | |
| 333 esac | |
| 334 as_dirs="'$as_qdir' $as_dirs" | |
| 335 as_dir=`$as_dirname -- "$as_dir" || | |
| 336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 337 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
| 338 X"$as_dir" : 'X\(//\)$' \| \ | |
| 339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
| 340 printf "%s\n" X"$as_dir" | | |
| 341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 342 s//\1/ | |
| 343 q | |
| 344 } | |
| 345 /^X\(\/\/\)[^/].*/{ | |
| 346 s//\1/ | |
| 347 q | |
| 348 } | |
| 349 /^X\(\/\/\)$/{ | |
| 350 s//\1/ | |
| 351 q | |
| 352 } | |
| 353 /^X\(\/\).*/{ | |
| 354 s//\1/ | |
| 355 q | |
| 356 } | |
| 357 s/.*/./; q'` | |
| 358 test -d "$as_dir" && break | |
| 359 done | |
| 360 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
| 361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
| 362 | |
| 363 | |
| 364 } # as_fn_mkdir_p | |
| 365 | |
| 366 # as_fn_executable_p FILE | |
| 367 # ----------------------- | |
| 368 # Test if FILE is an executable regular file. | |
| 369 as_fn_executable_p () | |
| 370 { | |
| 371 test -f "$1" && test -x "$1" | |
| 372 } # as_fn_executable_p | |
| 373 # as_fn_append VAR VALUE | |
| 374 # ---------------------- | |
| 375 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
| 376 # advantage of any shell optimizations that allow amortized linear growth over | |
| 377 # repeated appends, instead of the typical quadratic growth present in naive | |
| 378 # implementations. | |
| 379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
| 380 then : | |
| 381 eval 'as_fn_append () | |
| 382 { | |
| 383 eval $1+=\$2 | |
| 384 }' | |
| 385 else case e in #( | |
| 386 e) as_fn_append () | |
| 387 { | |
| 388 eval $1=\$$1\$2 | |
| 389 } ;; | |
| 390 esac | |
| 391 fi # as_fn_append | |
| 392 | |
| 393 # as_fn_arith ARG... | |
| 394 # ------------------ | |
| 395 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
| 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
| 397 # must be portable across $(()) and expr. | |
| 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
| 399 then : | |
| 400 eval 'as_fn_arith () | |
| 401 { | |
| 402 as_val=$(( $* )) | |
| 403 }' | |
| 404 else case e in #( | |
| 405 e) as_fn_arith () | |
| 406 { | |
| 407 as_val=`expr "$@" || test $? -eq 1` | |
| 408 } ;; | |
| 409 esac | |
| 410 fi # as_fn_arith | |
| 411 | |
| 412 | |
| 413 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
| 414 # ---------------------------------------- | |
| 415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
| 416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
| 417 # script with STATUS, using 1 if that was 0. | |
| 418 as_fn_error () | |
| 419 { | |
| 420 as_status=$1; test $as_status -eq 0 && as_status=1 | |
| 421 if test "$4"; then | |
| 422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
| 424 fi | |
| 425 printf "%s\n" "$as_me: error: $2" >&2 | |
| 426 as_fn_exit $as_status | |
| 427 } # as_fn_error | |
| 428 | |
| 429 if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 430 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 431 as_expr=expr | |
| 432 else | |
| 433 as_expr=false | |
| 434 fi | |
| 435 | |
| 436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
| 437 as_basename=basename | |
| 438 else | |
| 439 as_basename=false | |
| 440 fi | |
| 441 | |
| 442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
| 443 as_dirname=dirname | |
| 444 else | |
| 445 as_dirname=false | |
| 446 fi | |
| 447 | |
| 448 as_me=`$as_basename -- "$0" || | |
| 449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
| 450 X"$0" : 'X\(//\)$' \| \ | |
| 451 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 452 printf "%s\n" X/"$0" | | |
| 453 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
| 454 s//\1/ | |
| 455 q | |
| 456 } | |
| 457 /^X\/\(\/\/\)$/{ | |
| 458 s//\1/ | |
| 459 q | |
| 460 } | |
| 461 /^X\/\(\/\).*/{ | |
| 462 s//\1/ | |
| 463 q | |
| 464 } | |
| 465 s/.*/./; q'` | |
| 466 | |
| 467 # Avoid depending upon Character Ranges. | |
| 468 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 471 as_cr_digits='0123456789' | |
| 472 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 473 | |
| 474 | |
| 475 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
| 476 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
| 477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
| 478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
| 479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
| 480 sed -n ' | |
| 481 p | |
| 482 /[$]LINENO/= | |
| 483 ' <$as_myself | | |
| 484 sed ' | |
| 485 t clear | |
| 486 :clear | |
| 487 s/[$]LINENO.*/&-/ | |
| 488 t lineno | |
| 489 b | |
| 490 :lineno | |
| 491 N | |
| 492 :loop | |
| 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
| 494 t loop | |
| 495 s/-\n.*// | |
| 496 ' >$as_me.lineno && | |
| 497 chmod +x "$as_me.lineno" || | |
| 498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
| 499 | |
| 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
| 501 # already done that, so ensure we don't try to do so again and fall | |
| 502 # in an infinite loop. This has already happened in practice. | |
| 503 _as_can_reexec=no; export _as_can_reexec | |
| 504 # Don't try to exec as it changes $[0], causing all sort of problems | |
| 505 # (the dirname of $[0] is not the place where we might find the | |
| 506 # original and so on. Autoconf is especially sensitive to this). | |
| 507 . "./$as_me.lineno" | |
| 508 # Exit status is that of the last command. | |
| 509 exit | |
| 510 } | |
| 511 | |
| 512 | |
| 513 # Determine whether it's possible to make 'echo' print without a newline. | |
| 514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
| 515 # for compatibility with existing Makefiles. | |
| 516 ECHO_C= ECHO_N= ECHO_T= | |
| 517 case `echo -n x` in #((((( | |
| 518 -n*) | |
| 519 case `echo 'xy\c'` in | |
| 520 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
| 521 xy) ECHO_C='\c';; | |
| 522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
| 523 ECHO_T=' ';; | |
| 524 esac;; | |
| 525 *) | |
| 526 ECHO_N='-n';; | |
| 527 esac | |
| 528 | |
| 529 # For backward compatibility with old third-party macros, we provide | |
| 530 # the shell variables $as_echo and $as_echo_n. New code should use | |
| 531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
| 532 as_echo='printf %s\n' | |
| 533 as_echo_n='printf %s' | |
| 534 | |
| 535 rm -f conf$$ conf$$.exe conf$$.file | |
| 536 if test -d conf$$.dir; then | |
| 537 rm -f conf$$.dir/conf$$.file | |
| 538 else | |
| 539 rm -f conf$$.dir | |
| 540 mkdir conf$$.dir 2>/dev/null | |
| 541 fi | |
| 542 if (echo >conf$$.file) 2>/dev/null; then | |
| 543 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 544 as_ln_s='ln -s' | |
| 545 # ... but there are two gotchas: | |
| 546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. | |
| 547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
| 548 # In both cases, we have to default to 'cp -pR'. | |
| 549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
| 550 as_ln_s='cp -pR' | |
| 551 elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 552 as_ln_s=ln | |
| 553 else | |
| 554 as_ln_s='cp -pR' | |
| 555 fi | |
| 556 else | |
| 557 as_ln_s='cp -pR' | |
| 558 fi | |
| 559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
| 560 rmdir conf$$.dir 2>/dev/null | |
| 561 | |
| 562 if mkdir -p . 2>/dev/null; then | |
| 563 as_mkdir_p='mkdir -p "$as_dir"' | |
| 564 else | |
| 565 test -d ./-p && rmdir ./-p | |
| 566 as_mkdir_p=false | |
| 567 fi | |
| 568 | |
| 569 as_test_x='test -x' | |
| 570 as_executable_p=as_fn_executable_p | |
| 571 | |
| 572 # Sed expression to map a string onto a valid CPP name. | |
| 573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
| 574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
| 575 | |
| 576 # Sed expression to map a string onto a valid variable name. | |
| 577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
| 578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
| 579 | |
| 580 | |
| 581 test -n "$DJDIR" || exec 7<&0 </dev/null | |
| 582 exec 6>&1 | |
| 583 | |
| 584 # Name of the host. | |
| 585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
| 586 # so uname gets run too. | |
| 587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 588 | |
| 589 # | |
| 590 # Initializations. | |
| 591 # | |
| 592 ac_default_prefix=/usr/local | |
| 593 ac_clean_files= | |
| 594 ac_config_libobj_dir=. | |
| 595 LIBOBJS= | |
| 596 cross_compiling=no | |
| 597 subdirs= | |
| 598 MFLAGS= | |
| 599 MAKEFLAGS= | |
| 600 | |
| 601 # Identity of this package. | |
| 602 PACKAGE_NAME='zint' | |
| 603 PACKAGE_TARNAME='zint' | |
| 604 PACKAGE_VERSION='2.13.0' | |
| 605 PACKAGE_STRING='zint 2.13.0' | |
| 606 PACKAGE_BUGREPORT='' | |
| 607 PACKAGE_URL='' | |
| 608 | |
| 609 # Factoring default headers for most tests. | |
| 610 ac_includes_default="\ | |
| 611 #include <stddef.h> | |
| 612 #ifdef HAVE_STDIO_H | |
| 613 # include <stdio.h> | |
| 614 #endif | |
| 615 #ifdef HAVE_STDLIB_H | |
| 616 # include <stdlib.h> | |
| 617 #endif | |
| 618 #ifdef HAVE_STRING_H | |
| 619 # include <string.h> | |
| 620 #endif | |
| 621 #ifdef HAVE_INTTYPES_H | |
| 622 # include <inttypes.h> | |
| 623 #endif | |
| 624 #ifdef HAVE_STDINT_H | |
| 625 # include <stdint.h> | |
| 626 #endif | |
| 627 #ifdef HAVE_STRINGS_H | |
| 628 # include <strings.h> | |
| 629 #endif | |
| 630 #ifdef HAVE_SYS_TYPES_H | |
| 631 # include <sys/types.h> | |
| 632 #endif | |
| 633 #ifdef HAVE_SYS_STAT_H | |
| 634 # include <sys/stat.h> | |
| 635 #endif | |
| 636 #ifdef HAVE_UNISTD_H | |
| 637 # include <unistd.h> | |
| 638 #endif" | |
| 639 | |
| 640 ac_header_c_list= | |
| 641 ac_subst_vars='LTLIBOBJS | |
| 642 TCLSH_PROG | |
| 643 VC_MANIFEST_EMBED_EXE | |
| 644 VC_MANIFEST_EMBED_DLL | |
| 645 RANLIB_STUB | |
| 646 MAKE_STUB_LIB | |
| 647 MAKE_STATIC_LIB | |
| 648 MAKE_SHARED_LIB | |
| 649 MAKE_LIB | |
| 650 LDFLAGS_DEFAULT | |
| 651 CFLAGS_DEFAULT | |
| 652 LD_LIBRARY_PATH_VAR | |
| 653 SHLIB_CFLAGS | |
| 654 SHLIB_LD_LIBS | |
| 655 SHLIB_LD | |
| 656 STLIB_LD | |
| 657 LDFLAGS_OPTIMIZE | |
| 658 LDFLAGS_DEBUG | |
| 659 CFLAGS_WARNING | |
| 660 CFLAGS_OPTIMIZE | |
| 661 CFLAGS_DEBUG | |
| 662 LIBOBJS | |
| 663 RC | |
| 664 AR | |
| 665 STUBS_BUILD | |
| 666 SHARED_BUILD | |
| 667 TCL_THREADS | |
| 668 TCL_INCLUDES | |
| 669 PKG_OBJECTS | |
| 670 PKG_SOURCES | |
| 671 RANLIB | |
| 672 SET_MAKE | |
| 673 CPP | |
| 674 TCL_SHLIB_LD_LIBS | |
| 675 TCL_LD_FLAGS | |
| 676 TCL_EXTRA_CFLAGS | |
| 677 TCL_DEFS | |
| 678 TCL_LIBS | |
| 679 CLEANFILES | |
| 680 OBJEXT | |
| 681 ac_ct_CC | |
| 682 CPPFLAGS | |
| 683 LDFLAGS | |
| 684 CFLAGS | |
| 685 CC | |
| 686 TCL_STUB_LIB_SPEC | |
| 687 TCL_STUB_LIB_FLAG | |
| 688 TCL_STUB_LIB_FILE | |
| 689 TCL_LIB_SPEC | |
| 690 TCL_LIB_FLAG | |
| 691 TCL_LIB_FILE | |
| 692 TCL_SRC_DIR | |
| 693 TCL_BIN_DIR | |
| 694 TCL_PATCH_LEVEL | |
| 695 TCL_VERSION | |
| 696 INSTALL_LIBRARY | |
| 697 INSTALL_SCRIPT | |
| 698 INSTALL_PROGRAM | |
| 699 INSTALL_DATA | |
| 700 INSTALL_DATA_DIR | |
| 701 INSTALL | |
| 702 PKG_CFLAGS | |
| 703 PKG_LIBS | |
| 704 PKG_INCLUDES | |
| 705 PKG_HEADERS | |
| 706 PKG_TCL_SOURCES | |
| 707 PKG_STUB_OBJECTS | |
| 708 PKG_STUB_SOURCES | |
| 709 PKG_STUB_LIB_FILE | |
| 710 PKG_LIB_FILE9 | |
| 711 PKG_LIB_FILE8 | |
| 712 PKG_LIB_FILE | |
| 713 EXEEXT | |
| 714 CYGPATH | |
| 715 target_alias | |
| 716 host_alias | |
| 717 build_alias | |
| 718 LIBS | |
| 719 ECHO_T | |
| 720 ECHO_N | |
| 721 ECHO_C | |
| 722 DEFS | |
| 723 mandir | |
| 724 localedir | |
| 725 libdir | |
| 726 psdir | |
| 727 pdfdir | |
| 728 dvidir | |
| 729 htmldir | |
| 730 infodir | |
| 731 docdir | |
| 732 oldincludedir | |
| 733 includedir | |
| 734 runstatedir | |
| 735 localstatedir | |
| 736 sharedstatedir | |
| 737 sysconfdir | |
| 738 datadir | |
| 739 datarootdir | |
| 740 libexecdir | |
| 741 sbindir | |
| 742 bindir | |
| 743 program_transform_name | |
| 744 prefix | |
| 745 exec_prefix | |
| 746 PACKAGE_URL | |
| 747 PACKAGE_BUGREPORT | |
| 748 PACKAGE_STRING | |
| 749 PACKAGE_VERSION | |
| 750 PACKAGE_TARNAME | |
| 751 PACKAGE_NAME | |
| 752 PATH_SEPARATOR | |
| 753 SHELL' | |
| 754 ac_subst_files='' | |
| 755 ac_user_opts=' | |
| 756 enable_option_checking | |
| 757 with_tcl | |
| 758 with_tcl8 | |
| 759 with_tclinclude | |
| 760 enable_threads | |
| 761 enable_shared | |
| 762 enable_stubs | |
| 763 enable_64bit | |
| 764 enable_64bit_vis | |
| 765 enable_rpath | |
| 766 enable_symbols | |
| 767 ' | |
| 768 ac_precious_vars='build_alias | |
| 769 host_alias | |
| 770 target_alias | |
| 771 CC | |
| 772 CFLAGS | |
| 773 LDFLAGS | |
| 774 LIBS | |
| 775 CPPFLAGS | |
| 776 CPP' | |
| 777 | |
| 778 | |
| 779 # Initialize some variables set by options. | |
| 780 ac_init_help= | |
| 781 ac_init_version=false | |
| 782 ac_unrecognized_opts= | |
| 783 ac_unrecognized_sep= | |
| 784 # The variables have the same names as the options, with | |
| 785 # dashes changed to underlines. | |
| 786 cache_file=/dev/null | |
| 787 exec_prefix=NONE | |
| 788 no_create= | |
| 789 no_recursion= | |
| 790 prefix=NONE | |
| 791 program_prefix=NONE | |
| 792 program_suffix=NONE | |
| 793 program_transform_name=s,x,x, | |
| 794 silent= | |
| 795 site= | |
| 796 srcdir= | |
| 797 verbose= | |
| 798 x_includes=NONE | |
| 799 x_libraries=NONE | |
| 800 | |
| 801 # Installation directory options. | |
| 802 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
| 803 # and all the variables that are supposed to be based on exec_prefix | |
| 804 # by default will actually change. | |
| 805 # Use braces instead of parens because sh, perl, etc. also accept them. | |
| 806 # (The list follows the same order as the GNU Coding Standards.) | |
| 807 bindir='${exec_prefix}/bin' | |
| 808 sbindir='${exec_prefix}/sbin' | |
| 809 libexecdir='${exec_prefix}/libexec' | |
| 810 datarootdir='${prefix}/share' | |
| 811 datadir='${datarootdir}' | |
| 812 sysconfdir='${prefix}/etc' | |
| 813 sharedstatedir='${prefix}/com' | |
| 814 localstatedir='${prefix}/var' | |
| 815 runstatedir='${localstatedir}/run' | |
| 816 includedir='${prefix}/include' | |
| 817 oldincludedir='/usr/include' | |
| 818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
| 819 infodir='${datarootdir}/info' | |
| 820 htmldir='${docdir}' | |
| 821 dvidir='${docdir}' | |
| 822 pdfdir='${docdir}' | |
| 823 psdir='${docdir}' | |
| 824 libdir='${exec_prefix}/lib' | |
| 825 localedir='${datarootdir}/locale' | |
| 826 mandir='${datarootdir}/man' | |
| 827 | |
| 828 ac_prev= | |
| 829 ac_dashdash= | |
| 830 for ac_option | |
| 831 do | |
| 832 # If the previous option needs an argument, assign it. | |
| 833 if test -n "$ac_prev"; then | |
| 834 eval $ac_prev=\$ac_option | |
| 835 ac_prev= | |
| 836 continue | |
| 837 fi | |
| 838 | |
| 839 case $ac_option in | |
| 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
| 841 *=) ac_optarg= ;; | |
| 842 *) ac_optarg=yes ;; | |
| 843 esac | |
| 844 | |
| 845 case $ac_dashdash$ac_option in | |
| 846 --) | |
| 847 ac_dashdash=yes ;; | |
| 848 | |
| 849 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
| 850 ac_prev=bindir ;; | |
| 851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
| 852 bindir=$ac_optarg ;; | |
| 853 | |
| 854 -build | --build | --buil | --bui | --bu) | |
| 855 ac_prev=build_alias ;; | |
| 856 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
| 857 build_alias=$ac_optarg ;; | |
| 858 | |
| 859 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| 860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
| 861 ac_prev=cache_file ;; | |
| 862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| 863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
| 864 cache_file=$ac_optarg ;; | |
| 865 | |
| 866 --config-cache | -C) | |
| 867 cache_file=config.cache ;; | |
| 868 | |
| 869 -datadir | --datadir | --datadi | --datad) | |
| 870 ac_prev=datadir ;; | |
| 871 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
| 872 datadir=$ac_optarg ;; | |
| 873 | |
| 874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
| 875 | --dataroo | --dataro | --datar) | |
| 876 ac_prev=datarootdir ;; | |
| 877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
| 878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
| 879 datarootdir=$ac_optarg ;; | |
| 880 | |
| 881 -disable-* | --disable-*) | |
| 882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
| 883 # Reject names that are not valid shell variable names. | |
| 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 885 as_fn_error $? "invalid feature name: '$ac_useropt'" | |
| 886 ac_useropt_orig=$ac_useropt | |
| 887 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 888 case $ac_user_opts in | |
| 889 *" | |
| 890 "enable_$ac_useropt" | |
| 891 "*) ;; | |
| 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
| 893 ac_unrecognized_sep=', ';; | |
| 894 esac | |
| 895 eval enable_$ac_useropt=no ;; | |
| 896 | |
| 897 -docdir | --docdir | --docdi | --doc | --do) | |
| 898 ac_prev=docdir ;; | |
| 899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
| 900 docdir=$ac_optarg ;; | |
| 901 | |
| 902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
| 903 ac_prev=dvidir ;; | |
| 904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
| 905 dvidir=$ac_optarg ;; | |
| 906 | |
| 907 -enable-* | --enable-*) | |
| 908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
| 909 # Reject names that are not valid shell variable names. | |
| 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 911 as_fn_error $? "invalid feature name: '$ac_useropt'" | |
| 912 ac_useropt_orig=$ac_useropt | |
| 913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 914 case $ac_user_opts in | |
| 915 *" | |
| 916 "enable_$ac_useropt" | |
| 917 "*) ;; | |
| 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
| 919 ac_unrecognized_sep=', ';; | |
| 920 esac | |
| 921 eval enable_$ac_useropt=\$ac_optarg ;; | |
| 922 | |
| 923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
| 924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
| 925 | --exec | --exe | --ex) | |
| 926 ac_prev=exec_prefix ;; | |
| 927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
| 928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
| 929 | --exec=* | --exe=* | --ex=*) | |
| 930 exec_prefix=$ac_optarg ;; | |
| 931 | |
| 932 -gas | --gas | --ga | --g) | |
| 933 # Obsolete; use --with-gas. | |
| 934 with_gas=yes ;; | |
| 935 | |
| 936 -help | --help | --hel | --he | -h) | |
| 937 ac_init_help=long ;; | |
| 938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
| 939 ac_init_help=recursive ;; | |
| 940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
| 941 ac_init_help=short ;; | |
| 942 | |
| 943 -host | --host | --hos | --ho) | |
| 944 ac_prev=host_alias ;; | |
| 945 -host=* | --host=* | --hos=* | --ho=*) | |
| 946 host_alias=$ac_optarg ;; | |
| 947 | |
| 948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
| 949 ac_prev=htmldir ;; | |
| 950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
| 951 | --ht=*) | |
| 952 htmldir=$ac_optarg ;; | |
| 953 | |
| 954 -includedir | --includedir | --includedi | --included | --include \ | |
| 955 | --includ | --inclu | --incl | --inc) | |
| 956 ac_prev=includedir ;; | |
| 957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| 958 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
| 959 includedir=$ac_optarg ;; | |
| 960 | |
| 961 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
| 962 ac_prev=infodir ;; | |
| 963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
| 964 infodir=$ac_optarg ;; | |
| 965 | |
| 966 -libdir | --libdir | --libdi | --libd) | |
| 967 ac_prev=libdir ;; | |
| 968 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
| 969 libdir=$ac_optarg ;; | |
| 970 | |
| 971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| 972 | --libexe | --libex | --libe) | |
| 973 ac_prev=libexecdir ;; | |
| 974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| 975 | --libexe=* | --libex=* | --libe=*) | |
| 976 libexecdir=$ac_optarg ;; | |
| 977 | |
| 978 -localedir | --localedir | --localedi | --localed | --locale) | |
| 979 ac_prev=localedir ;; | |
| 980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
| 981 localedir=$ac_optarg ;; | |
| 982 | |
| 983 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| 984 | --localstate | --localstat | --localsta | --localst | --locals) | |
| 985 ac_prev=localstatedir ;; | |
| 986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| 987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
| 988 localstatedir=$ac_optarg ;; | |
| 989 | |
| 990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
| 991 ac_prev=mandir ;; | |
| 992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
| 993 mandir=$ac_optarg ;; | |
| 994 | |
| 995 -nfp | --nfp | --nf) | |
| 996 # Obsolete; use --without-fp. | |
| 997 with_fp=no ;; | |
| 998 | |
| 999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 1000 | --no-cr | --no-c | -n) | |
| 1001 no_create=yes ;; | |
| 1002 | |
| 1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
| 1005 no_recursion=yes ;; | |
| 1006 | |
| 1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
| 1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
| 1009 | --oldin | --oldi | --old | --ol | --o) | |
| 1010 ac_prev=oldincludedir ;; | |
| 1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
| 1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
| 1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
| 1014 oldincludedir=$ac_optarg ;; | |
| 1015 | |
| 1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
| 1017 ac_prev=prefix ;; | |
| 1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
| 1019 prefix=$ac_optarg ;; | |
| 1020 | |
| 1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
| 1022 | --program-pre | --program-pr | --program-p) | |
| 1023 ac_prev=program_prefix ;; | |
| 1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
| 1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
| 1026 program_prefix=$ac_optarg ;; | |
| 1027 | |
| 1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
| 1029 | --program-suf | --program-su | --program-s) | |
| 1030 ac_prev=program_suffix ;; | |
| 1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
| 1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
| 1033 program_suffix=$ac_optarg ;; | |
| 1034 | |
| 1035 -program-transform-name | --program-transform-name \ | |
| 1036 | --program-transform-nam | --program-transform-na \ | |
| 1037 | --program-transform-n | --program-transform- \ | |
| 1038 | --program-transform | --program-transfor \ | |
| 1039 | --program-transfo | --program-transf \ | |
| 1040 | --program-trans | --program-tran \ | |
| 1041 | --progr-tra | --program-tr | --program-t) | |
| 1042 ac_prev=program_transform_name ;; | |
| 1043 -program-transform-name=* | --program-transform-name=* \ | |
| 1044 | --program-transform-nam=* | --program-transform-na=* \ | |
| 1045 | --program-transform-n=* | --program-transform-=* \ | |
| 1046 | --program-transform=* | --program-transfor=* \ | |
| 1047 | --program-transfo=* | --program-transf=* \ | |
| 1048 | --program-trans=* | --program-tran=* \ | |
| 1049 | --progr-tra=* | --program-tr=* | --program-t=*) | |
| 1050 program_transform_name=$ac_optarg ;; | |
| 1051 | |
| 1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
| 1053 ac_prev=pdfdir ;; | |
| 1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
| 1055 pdfdir=$ac_optarg ;; | |
| 1056 | |
| 1057 -psdir | --psdir | --psdi | --psd | --ps) | |
| 1058 ac_prev=psdir ;; | |
| 1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
| 1060 psdir=$ac_optarg ;; | |
| 1061 | |
| 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 1063 | -silent | --silent | --silen | --sile | --sil) | |
| 1064 silent=yes ;; | |
| 1065 | |
| 1066 -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
| 1067 | --runstate | --runstat | --runsta | --runst | --runs \ | |
| 1068 | --run | --ru | --r) | |
| 1069 ac_prev=runstatedir ;; | |
| 1070 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
| 1071 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
| 1072 | --run=* | --ru=* | --r=*) | |
| 1073 runstatedir=$ac_optarg ;; | |
| 1074 | |
| 1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
| 1076 ac_prev=sbindir ;; | |
| 1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| 1078 | --sbi=* | --sb=*) | |
| 1079 sbindir=$ac_optarg ;; | |
| 1080 | |
| 1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| 1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| 1083 | --sharedst | --shareds | --shared | --share | --shar \ | |
| 1084 | --sha | --sh) | |
| 1085 ac_prev=sharedstatedir ;; | |
| 1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
| 1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
| 1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
| 1089 | --sha=* | --sh=*) | |
| 1090 sharedstatedir=$ac_optarg ;; | |
| 1091 | |
| 1092 -site | --site | --sit) | |
| 1093 ac_prev=site ;; | |
| 1094 -site=* | --site=* | --sit=*) | |
| 1095 site=$ac_optarg ;; | |
| 1096 | |
| 1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
| 1098 ac_prev=srcdir ;; | |
| 1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
| 1100 srcdir=$ac_optarg ;; | |
| 1101 | |
| 1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
| 1103 | --syscon | --sysco | --sysc | --sys | --sy) | |
| 1104 ac_prev=sysconfdir ;; | |
| 1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
| 1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
| 1107 sysconfdir=$ac_optarg ;; | |
| 1108 | |
| 1109 -target | --target | --targe | --targ | --tar | --ta | --t) | |
| 1110 ac_prev=target_alias ;; | |
| 1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
| 1112 target_alias=$ac_optarg ;; | |
| 1113 | |
| 1114 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
| 1115 verbose=yes ;; | |
| 1116 | |
| 1117 -version | --version | --versio | --versi | --vers | -V) | |
| 1118 ac_init_version=: ;; | |
| 1119 | |
| 1120 -with-* | --with-*) | |
| 1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
| 1122 # Reject names that are not valid shell variable names. | |
| 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 1124 as_fn_error $? "invalid package name: '$ac_useropt'" | |
| 1125 ac_useropt_orig=$ac_useropt | |
| 1126 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 1127 case $ac_user_opts in | |
| 1128 *" | |
| 1129 "with_$ac_useropt" | |
| 1130 "*) ;; | |
| 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
| 1132 ac_unrecognized_sep=', ';; | |
| 1133 esac | |
| 1134 eval with_$ac_useropt=\$ac_optarg ;; | |
| 1135 | |
| 1136 -without-* | --without-*) | |
| 1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
| 1138 # Reject names that are not valid shell variable names. | |
| 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 1140 as_fn_error $? "invalid package name: '$ac_useropt'" | |
| 1141 ac_useropt_orig=$ac_useropt | |
| 1142 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 1143 case $ac_user_opts in | |
| 1144 *" | |
| 1145 "with_$ac_useropt" | |
| 1146 "*) ;; | |
| 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
| 1148 ac_unrecognized_sep=', ';; | |
| 1149 esac | |
| 1150 eval with_$ac_useropt=no ;; | |
| 1151 | |
| 1152 --x) | |
| 1153 # Obsolete; use --with-x. | |
| 1154 with_x=yes ;; | |
| 1155 | |
| 1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
| 1157 | --x-incl | --x-inc | --x-in | --x-i) | |
| 1158 ac_prev=x_includes ;; | |
| 1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
| 1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
| 1161 x_includes=$ac_optarg ;; | |
| 1162 | |
| 1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
| 1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
| 1165 ac_prev=x_libraries ;; | |
| 1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
| 1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
| 1168 x_libraries=$ac_optarg ;; | |
| 1169 | |
| 1170 -*) as_fn_error $? "unrecognized option: '$ac_option' | |
| 1171 Try '$0 --help' for more information" | |
| 1172 ;; | |
| 1173 | |
| 1174 *=*) | |
| 1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
| 1176 # Reject names that are not valid shell variable names. | |
| 1177 case $ac_envvar in #( | |
| 1178 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
| 1179 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; | |
| 1180 esac | |
| 1181 eval $ac_envvar=\$ac_optarg | |
| 1182 export $ac_envvar ;; | |
| 1183 | |
| 1184 *) | |
| 1185 # FIXME: should be removed in autoconf 3.0. | |
| 1186 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
| 1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
| 1188 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
| 1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
| 1190 ;; | |
| 1191 | |
| 1192 esac | |
| 1193 done | |
| 1194 | |
| 1195 if test -n "$ac_prev"; then | |
| 1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
| 1197 as_fn_error $? "missing argument to $ac_option" | |
| 1198 fi | |
| 1199 | |
| 1200 if test -n "$ac_unrecognized_opts"; then | |
| 1201 case $enable_option_checking in | |
| 1202 no) ;; | |
| 1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
| 1204 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
| 1205 esac | |
| 1206 fi | |
| 1207 | |
| 1208 # Check all directory arguments for consistency. | |
| 1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
| 1210 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
| 1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
| 1212 libdir localedir mandir runstatedir | |
| 1213 do | |
| 1214 eval ac_val=\$$ac_var | |
| 1215 # Remove trailing slashes. | |
| 1216 case $ac_val in | |
| 1217 */ ) | |
| 1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
| 1219 eval $ac_var=\$ac_val;; | |
| 1220 esac | |
| 1221 # Be sure to have absolute directory names. | |
| 1222 case $ac_val in | |
| 1223 [\\/$]* | ?:[\\/]* ) continue;; | |
| 1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
| 1225 esac | |
| 1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
| 1227 done | |
| 1228 | |
| 1229 # There might be people who depend on the old broken behavior: '$host' | |
| 1230 # used to hold the argument of --host etc. | |
| 1231 # FIXME: To remove some day. | |
| 1232 build=$build_alias | |
| 1233 host=$host_alias | |
| 1234 target=$target_alias | |
| 1235 | |
| 1236 # FIXME: To remove some day. | |
| 1237 if test "x$host_alias" != x; then | |
| 1238 if test "x$build_alias" = x; then | |
| 1239 cross_compiling=maybe | |
| 1240 elif test "x$build_alias" != "x$host_alias"; then | |
| 1241 cross_compiling=yes | |
| 1242 fi | |
| 1243 fi | |
| 1244 | |
| 1245 ac_tool_prefix= | |
| 1246 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
| 1247 | |
| 1248 test "$silent" = yes && exec 6>/dev/null | |
| 1249 | |
| 1250 | |
| 1251 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
| 1252 ac_ls_di=`ls -di .` && | |
| 1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
| 1254 as_fn_error $? "working directory cannot be determined" | |
| 1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
| 1256 as_fn_error $? "pwd does not report name of working directory" | |
| 1257 | |
| 1258 | |
| 1259 # Find the source files, if location was not specified. | |
| 1260 if test -z "$srcdir"; then | |
| 1261 ac_srcdir_defaulted=yes | |
| 1262 # Try the directory containing this script, then the parent directory. | |
| 1263 ac_confdir=`$as_dirname -- "$as_myself" || | |
| 1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 1265 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
| 1266 X"$as_myself" : 'X\(//\)$' \| \ | |
| 1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
| 1268 printf "%s\n" X"$as_myself" | | |
| 1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 1270 s//\1/ | |
| 1271 q | |
| 1272 } | |
| 1273 /^X\(\/\/\)[^/].*/{ | |
| 1274 s//\1/ | |
| 1275 q | |
| 1276 } | |
| 1277 /^X\(\/\/\)$/{ | |
| 1278 s//\1/ | |
| 1279 q | |
| 1280 } | |
| 1281 /^X\(\/\).*/{ | |
| 1282 s//\1/ | |
| 1283 q | |
| 1284 } | |
| 1285 s/.*/./; q'` | |
| 1286 srcdir=$ac_confdir | |
| 1287 if test ! -r "$srcdir/$ac_unique_file"; then | |
| 1288 srcdir=.. | |
| 1289 fi | |
| 1290 else | |
| 1291 ac_srcdir_defaulted=no | |
| 1292 fi | |
| 1293 if test ! -r "$srcdir/$ac_unique_file"; then | |
| 1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
| 1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
| 1296 fi | |
| 1297 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" | |
| 1298 ac_abs_confdir=`( | |
| 1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
| 1300 pwd)` | |
| 1301 # When building in place, set srcdir=. | |
| 1302 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
| 1303 srcdir=. | |
| 1304 fi | |
| 1305 # Remove unnecessary trailing slashes from srcdir. | |
| 1306 # Double slashes in file names in object file debugging info | |
| 1307 # mess up M-x gdb in Emacs. | |
| 1308 case $srcdir in | |
| 1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
| 1310 esac | |
| 1311 for ac_var in $ac_precious_vars; do | |
| 1312 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
| 1313 eval ac_env_${ac_var}_value=\$${ac_var} | |
| 1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
| 1315 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
| 1316 done | |
| 1317 | |
| 1318 # | |
| 1319 # Report the --help message. | |
| 1320 # | |
| 1321 if test "$ac_init_help" = "long"; then | |
| 1322 # Omit some internal or obsolete options to make the list less imposing. | |
| 1323 # This message is too long to be a string in the A/UX 3.1 sh. | |
| 1324 cat <<_ACEOF | |
| 1325 'configure' configures zint 2.13.0 to adapt to many kinds of systems. | |
| 1326 | |
| 1327 Usage: $0 [OPTION]... [VAR=VALUE]... | |
| 1328 | |
| 1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
| 1330 VAR=VALUE. See below for descriptions of some of the useful variables. | |
| 1331 | |
| 1332 Defaults for the options are specified in brackets. | |
| 1333 | |
| 1334 Configuration: | |
| 1335 -h, --help display this help and exit | |
| 1336 --help=short display options specific to this package | |
| 1337 --help=recursive display the short help of all the included packages | |
| 1338 -V, --version display version information and exit | |
| 1339 -q, --quiet, --silent do not print 'checking ...' messages | |
| 1340 --cache-file=FILE cache test results in FILE [disabled] | |
| 1341 -C, --config-cache alias for '--cache-file=config.cache' | |
| 1342 -n, --no-create do not create output files | |
| 1343 --srcdir=DIR find the sources in DIR [configure dir or '..'] | |
| 1344 | |
| 1345 Installation directories: | |
| 1346 --prefix=PREFIX install architecture-independent files in PREFIX | |
| 1347 [$ac_default_prefix] | |
| 1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
| 1349 [PREFIX] | |
| 1350 | |
| 1351 By default, 'make install' will install all the files in | |
| 1352 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify | |
| 1353 an installation prefix other than '$ac_default_prefix' using '--prefix', | |
| 1354 for instance '--prefix=\$HOME'. | |
| 1355 | |
| 1356 For better control, use the options below. | |
| 1357 | |
| 1358 Fine tuning of the installation directories: | |
| 1359 --bindir=DIR user executables [EPREFIX/bin] | |
| 1360 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
| 1361 --libexecdir=DIR program executables [EPREFIX/libexec] | |
| 1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
| 1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
| 1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
| 1365 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
| 1366 --libdir=DIR object code libraries [EPREFIX/lib] | |
| 1367 --includedir=DIR C header files [PREFIX/include] | |
| 1368 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
| 1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
| 1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
| 1371 --infodir=DIR info documentation [DATAROOTDIR/info] | |
| 1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
| 1373 --mandir=DIR man documentation [DATAROOTDIR/man] | |
| 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/zint] | |
| 1375 --htmldir=DIR html documentation [DOCDIR] | |
| 1376 --dvidir=DIR dvi documentation [DOCDIR] | |
| 1377 --pdfdir=DIR pdf documentation [DOCDIR] | |
| 1378 --psdir=DIR ps documentation [DOCDIR] | |
| 1379 _ACEOF | |
| 1380 | |
| 1381 cat <<\_ACEOF | |
| 1382 _ACEOF | |
| 1383 fi | |
| 1384 | |
| 1385 if test -n "$ac_init_help"; then | |
| 1386 case $ac_init_help in | |
| 1387 short | recursive ) echo "Configuration of zint 2.13.0:";; | |
| 1388 esac | |
| 1389 cat <<\_ACEOF | |
| 1390 | |
| 1391 Optional Features: | |
| 1392 --disable-option-checking ignore unrecognized --enable/--with options | |
| 1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
| 1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
| 1395 --enable-threads build with threads (default: on) | |
| 1396 --enable-shared build and link with shared libraries (default: on) | |
| 1397 --enable-stubs build and link with stub libraries. Always true for | |
| 1398 shared builds (default: on) | |
| 1399 --enable-64bit enable 64bit support (default: off) | |
| 1400 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) | |
| 1401 --disable-rpath disable rpath support (default: on) | |
| 1402 --enable-symbols build with debugging symbols (default: off) | |
| 1403 | |
| 1404 Optional Packages: | |
| 1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
| 1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
| 1407 --with-tcl directory containing tcl configuration | |
| 1408 (tclConfig.sh) | |
| 1409 --with-tcl8 Compile for Tcl8 in Tcl9 environment | |
| 1410 --with-tclinclude directory containing the public Tcl header files | |
| 1411 | |
| 1412 Some influential environment variables: | |
| 1413 CC C compiler command | |
| 1414 CFLAGS C compiler flags | |
| 1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
| 1416 nonstandard directory <lib dir> | |
| 1417 LIBS libraries to pass to the linker, e.g. -l<library> | |
| 1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
| 1419 you have headers in a nonstandard directory <include dir> | |
| 1420 CPP C preprocessor | |
| 1421 | |
| 1422 Use these variables to override the choices made by 'configure' or to help | |
| 1423 it to find libraries and programs with nonstandard names/locations. | |
| 1424 | |
| 1425 Report bugs to the package provider. | |
| 1426 _ACEOF | |
| 1427 ac_status=$? | |
| 1428 fi | |
| 1429 | |
| 1430 if test "$ac_init_help" = "recursive"; then | |
| 1431 # If there are subdirs, report their specific --help. | |
| 1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
| 1433 test -d "$ac_dir" || | |
| 1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
| 1435 continue | |
| 1436 ac_builddir=. | |
| 1437 | |
| 1438 case "$ac_dir" in | |
| 1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 1440 *) | |
| 1441 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
| 1442 # A ".." for each directory in $ac_dir_suffix. | |
| 1443 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
| 1444 case $ac_top_builddir_sub in | |
| 1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
| 1447 esac ;; | |
| 1448 esac | |
| 1449 ac_abs_top_builddir=$ac_pwd | |
| 1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
| 1451 # for backward compatibility: | |
| 1452 ac_top_builddir=$ac_top_build_prefix | |
| 1453 | |
| 1454 case $srcdir in | |
| 1455 .) # We are building in place. | |
| 1456 ac_srcdir=. | |
| 1457 ac_top_srcdir=$ac_top_builddir_sub | |
| 1458 ac_abs_top_srcdir=$ac_pwd ;; | |
| 1459 [\\/]* | ?:[\\/]* ) # Absolute name. | |
| 1460 ac_srcdir=$srcdir$ac_dir_suffix; | |
| 1461 ac_top_srcdir=$srcdir | |
| 1462 ac_abs_top_srcdir=$srcdir ;; | |
| 1463 *) # Relative name. | |
| 1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
| 1465 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
| 1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
| 1467 esac | |
| 1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
| 1469 | |
| 1470 cd "$ac_dir" || { ac_status=$?; continue; } | |
| 1471 # Check for configure.gnu first; this name is used for a wrapper for | |
| 1472 # Metaconfig's "Configure" on case-insensitive file systems. | |
| 1473 if test -f "$ac_srcdir/configure.gnu"; then | |
| 1474 echo && | |
| 1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
| 1476 elif test -f "$ac_srcdir/configure"; then | |
| 1477 echo && | |
| 1478 $SHELL "$ac_srcdir/configure" --help=recursive | |
| 1479 else | |
| 1480 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
| 1481 fi || ac_status=$? | |
| 1482 cd "$ac_pwd" || { ac_status=$?; break; } | |
| 1483 done | |
| 1484 fi | |
| 1485 | |
| 1486 test -n "$ac_init_help" && exit $ac_status | |
| 1487 if $ac_init_version; then | |
| 1488 cat <<\_ACEOF | |
| 1489 zint configure 2.13.0 | |
| 1490 generated by GNU Autoconf 2.72 | |
| 1491 | |
| 1492 Copyright (C) 2023 Free Software Foundation, Inc. | |
| 1493 This configure script is free software; the Free Software Foundation | |
| 1494 gives unlimited permission to copy, distribute and modify it. | |
| 1495 _ACEOF | |
| 1496 exit | |
| 1497 fi | |
| 1498 | |
| 1499 ## ------------------------ ## | |
| 1500 ## Autoconf initialization. ## | |
| 1501 ## ------------------------ ## | |
| 1502 | |
| 1503 # ac_fn_c_try_compile LINENO | |
| 1504 # -------------------------- | |
| 1505 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
| 1506 ac_fn_c_try_compile () | |
| 1507 { | |
| 1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1509 rm -f conftest.$ac_objext conftest.beam | |
| 1510 if { { ac_try="$ac_compile" | |
| 1511 case "(($ac_try" in | |
| 1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1513 *) ac_try_echo=$ac_try;; | |
| 1514 esac | |
| 1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1516 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 1517 (eval "$ac_compile") 2>conftest.err | |
| 1518 ac_status=$? | |
| 1519 if test -s conftest.err; then | |
| 1520 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1521 cat conftest.er1 >&5 | |
| 1522 mv -f conftest.er1 conftest.err | |
| 1523 fi | |
| 1524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1525 test $ac_status = 0; } && { | |
| 1526 test -z "$ac_c_werror_flag" || | |
| 1527 test ! -s conftest.err | |
| 1528 } && test -s conftest.$ac_objext | |
| 1529 then : | |
| 1530 ac_retval=0 | |
| 1531 else case e in #( | |
| 1532 e) printf "%s\n" "$as_me: failed program was:" >&5 | |
| 1533 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1534 | |
| 1535 ac_retval=1 ;; | |
| 1536 esac | |
| 1537 fi | |
| 1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1539 as_fn_set_status $ac_retval | |
| 1540 | |
| 1541 } # ac_fn_c_try_compile | |
| 1542 | |
| 1543 # ac_fn_c_try_cpp LINENO | |
| 1544 # ---------------------- | |
| 1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
| 1546 ac_fn_c_try_cpp () | |
| 1547 { | |
| 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1549 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
| 1550 case "(($ac_try" in | |
| 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1552 *) ac_try_echo=$ac_try;; | |
| 1553 esac | |
| 1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1555 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
| 1557 ac_status=$? | |
| 1558 if test -s conftest.err; then | |
| 1559 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1560 cat conftest.er1 >&5 | |
| 1561 mv -f conftest.er1 conftest.err | |
| 1562 fi | |
| 1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1564 test $ac_status = 0; } > conftest.i && { | |
| 1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
| 1566 test ! -s conftest.err | |
| 1567 } | |
| 1568 then : | |
| 1569 ac_retval=0 | |
| 1570 else case e in #( | |
| 1571 e) printf "%s\n" "$as_me: failed program was:" >&5 | |
| 1572 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1573 | |
| 1574 ac_retval=1 ;; | |
| 1575 esac | |
| 1576 fi | |
| 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1578 as_fn_set_status $ac_retval | |
| 1579 | |
| 1580 } # ac_fn_c_try_cpp | |
| 1581 | |
| 1582 # ac_fn_c_try_link LINENO | |
| 1583 # ----------------------- | |
| 1584 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
| 1585 ac_fn_c_try_link () | |
| 1586 { | |
| 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1588 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | |
| 1589 if { { ac_try="$ac_link" | |
| 1590 case "(($ac_try" in | |
| 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1592 *) ac_try_echo=$ac_try;; | |
| 1593 esac | |
| 1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1595 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 1596 (eval "$ac_link") 2>conftest.err | |
| 1597 ac_status=$? | |
| 1598 if test -s conftest.err; then | |
| 1599 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1600 cat conftest.er1 >&5 | |
| 1601 mv -f conftest.er1 conftest.err | |
| 1602 fi | |
| 1603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1604 test $ac_status = 0; } && { | |
| 1605 test -z "$ac_c_werror_flag" || | |
| 1606 test ! -s conftest.err | |
| 1607 } && test -s conftest$ac_exeext && { | |
| 1608 test "$cross_compiling" = yes || | |
| 1609 test -x conftest$ac_exeext | |
| 1610 } | |
| 1611 then : | |
| 1612 ac_retval=0 | |
| 1613 else case e in #( | |
| 1614 e) printf "%s\n" "$as_me: failed program was:" >&5 | |
| 1615 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1616 | |
| 1617 ac_retval=1 ;; | |
| 1618 esac | |
| 1619 fi | |
| 1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
| 1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
| 1622 # interfere with the next link command; also delete a directory that is | |
| 1623 # left behind by Apple's compiler. We do this before executing the actions. | |
| 1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
| 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1626 as_fn_set_status $ac_retval | |
| 1627 | |
| 1628 } # ac_fn_c_try_link | |
| 1629 | |
| 1630 # ac_fn_c_try_run LINENO | |
| 1631 # ---------------------- | |
| 1632 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that | |
| 1633 # executables *can* be run. | |
| 1634 ac_fn_c_try_run () | |
| 1635 { | |
| 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1637 if { { ac_try="$ac_link" | |
| 1638 case "(($ac_try" in | |
| 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1640 *) ac_try_echo=$ac_try;; | |
| 1641 esac | |
| 1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1643 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 1644 (eval "$ac_link") 2>&5 | |
| 1645 ac_status=$? | |
| 1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
| 1648 { { case "(($ac_try" in | |
| 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1650 *) ac_try_echo=$ac_try;; | |
| 1651 esac | |
| 1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1653 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 1654 (eval "$ac_try") 2>&5 | |
| 1655 ac_status=$? | |
| 1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1657 test $ac_status = 0; }; } | |
| 1658 then : | |
| 1659 ac_retval=0 | |
| 1660 else case e in #( | |
| 1661 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
| 1662 printf "%s\n" "$as_me: failed program was:" >&5 | |
| 1663 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1664 | |
| 1665 ac_retval=$ac_status ;; | |
| 1666 esac | |
| 1667 fi | |
| 1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
| 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1670 as_fn_set_status $ac_retval | |
| 1671 | |
| 1672 } # ac_fn_c_try_run | |
| 1673 | |
| 1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
| 1675 # ------------------------------------------------------- | |
| 1676 # Tests whether HEADER exists and can be compiled using the include files in | |
| 1677 # INCLUDES, setting the cache variable VAR accordingly. | |
| 1678 ac_fn_c_check_header_compile () | |
| 1679 { | |
| 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 1682 printf %s "checking for $2... " >&6; } | |
| 1683 if eval test \${$3+y} | |
| 1684 then : | |
| 1685 printf %s "(cached) " >&6 | |
| 1686 else case e in #( | |
| 1687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 1688 /* end confdefs.h. */ | |
| 1689 $4 | |
| 1690 #include <$2> | |
| 1691 _ACEOF | |
| 1692 if ac_fn_c_try_compile "$LINENO" | |
| 1693 then : | |
| 1694 eval "$3=yes" | |
| 1695 else case e in #( | |
| 1696 e) eval "$3=no" ;; | |
| 1697 esac | |
| 1698 fi | |
| 1699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 1700 esac | |
| 1701 fi | |
| 1702 eval ac_res=\$$3 | |
| 1703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 1704 printf "%s\n" "$ac_res" >&6; } | |
| 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1706 | |
| 1707 } # ac_fn_c_check_header_compile | |
| 1708 | |
| 1709 # ac_fn_c_check_func LINENO FUNC VAR | |
| 1710 # ---------------------------------- | |
| 1711 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
| 1712 ac_fn_c_check_func () | |
| 1713 { | |
| 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 1716 printf %s "checking for $2... " >&6; } | |
| 1717 if eval test \${$3+y} | |
| 1718 then : | |
| 1719 printf %s "(cached) " >&6 | |
| 1720 else case e in #( | |
| 1721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 1722 /* end confdefs.h. */ | |
| 1723 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
| 1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
| 1725 #define $2 innocuous_$2 | |
| 1726 | |
| 1727 /* System header to define __stub macros and hopefully few prototypes, | |
| 1728 which can conflict with char $2 (void); below. */ | |
| 1729 | |
| 1730 #include <limits.h> | |
| 1731 #undef $2 | |
| 1732 | |
| 1733 /* Override any GCC internal prototype to avoid an error. | |
| 1734 Use char because int might match the return type of a GCC | |
| 1735 builtin and then its argument prototype would still apply. */ | |
| 1736 #ifdef __cplusplus | |
| 1737 extern "C" | |
| 1738 #endif | |
| 1739 char $2 (void); | |
| 1740 /* The GNU C library defines this for functions which it implements | |
| 1741 to always fail with ENOSYS. Some functions are actually named | |
| 1742 something starting with __ and the normal name is an alias. */ | |
| 1743 #if defined __stub_$2 || defined __stub___$2 | |
| 1744 choke me | |
| 1745 #endif | |
| 1746 | |
| 1747 int | |
| 1748 main (void) | |
| 1749 { | |
| 1750 return $2 (); | |
| 1751 ; | |
| 1752 return 0; | |
| 1753 } | |
| 1754 _ACEOF | |
| 1755 if ac_fn_c_try_link "$LINENO" | |
| 1756 then : | |
| 1757 eval "$3=yes" | |
| 1758 else case e in #( | |
| 1759 e) eval "$3=no" ;; | |
| 1760 esac | |
| 1761 fi | |
| 1762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 1763 conftest$ac_exeext conftest.$ac_ext ;; | |
| 1764 esac | |
| 1765 fi | |
| 1766 eval ac_res=\$$3 | |
| 1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 1768 printf "%s\n" "$ac_res" >&6; } | |
| 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1770 | |
| 1771 } # ac_fn_c_check_func | |
| 1772 ac_configure_args_raw= | |
| 1773 for ac_arg | |
| 1774 do | |
| 1775 case $ac_arg in | |
| 1776 *\'*) | |
| 1777 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 1778 esac | |
| 1779 as_fn_append ac_configure_args_raw " '$ac_arg'" | |
| 1780 done | |
| 1781 | |
| 1782 case $ac_configure_args_raw in | |
| 1783 *$as_nl*) | |
| 1784 ac_safe_unquote= ;; | |
| 1785 *) | |
| 1786 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
| 1787 ac_unsafe_a="$ac_unsafe_z#~" | |
| 1788 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
| 1789 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
| 1790 esac | |
| 1791 | |
| 1792 cat >config.log <<_ACEOF | |
| 1793 This file contains any messages produced by compilers while | |
| 1794 running configure, to aid debugging if configure makes a mistake. | |
| 1795 | |
| 1796 It was created by zint $as_me 2.13.0, which was | |
| 1797 generated by GNU Autoconf 2.72. Invocation command line was | |
| 1798 | |
| 1799 $ $0$ac_configure_args_raw | |
| 1800 | |
| 1801 _ACEOF | |
| 1802 exec 5>>config.log | |
| 1803 { | |
| 1804 cat <<_ASUNAME | |
| 1805 ## --------- ## | |
| 1806 ## Platform. ## | |
| 1807 ## --------- ## | |
| 1808 | |
| 1809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 1810 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
| 1811 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
| 1812 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
| 1813 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
| 1814 | |
| 1815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
| 1816 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
| 1817 | |
| 1818 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
| 1819 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
| 1820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
| 1821 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
| 1822 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
| 1823 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
| 1824 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
| 1825 | |
| 1826 _ASUNAME | |
| 1827 | |
| 1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1829 for as_dir in $PATH | |
| 1830 do | |
| 1831 IFS=$as_save_IFS | |
| 1832 case $as_dir in #((( | |
| 1833 '') as_dir=./ ;; | |
| 1834 */) ;; | |
| 1835 *) as_dir=$as_dir/ ;; | |
| 1836 esac | |
| 1837 printf "%s\n" "PATH: $as_dir" | |
| 1838 done | |
| 1839 IFS=$as_save_IFS | |
| 1840 | |
| 1841 } >&5 | |
| 1842 | |
| 1843 cat >&5 <<_ACEOF | |
| 1844 | |
| 1845 | |
| 1846 ## ----------- ## | |
| 1847 ## Core tests. ## | |
| 1848 ## ----------- ## | |
| 1849 | |
| 1850 _ACEOF | |
| 1851 | |
| 1852 | |
| 1853 # Keep a trace of the command line. | |
| 1854 # Strip out --no-create and --no-recursion so they do not pile up. | |
| 1855 # Strip out --silent because we don't want to record it for future runs. | |
| 1856 # Also quote any args containing shell meta-characters. | |
| 1857 # Make two passes to allow for proper duplicate-argument suppression. | |
| 1858 ac_configure_args= | |
| 1859 ac_configure_args0= | |
| 1860 ac_configure_args1= | |
| 1861 ac_must_keep_next=false | |
| 1862 for ac_pass in 1 2 | |
| 1863 do | |
| 1864 for ac_arg | |
| 1865 do | |
| 1866 case $ac_arg in | |
| 1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
| 1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 1869 | -silent | --silent | --silen | --sile | --sil) | |
| 1870 continue ;; | |
| 1871 *\'*) | |
| 1872 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 1873 esac | |
| 1874 case $ac_pass in | |
| 1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
| 1876 2) | |
| 1877 as_fn_append ac_configure_args1 " '$ac_arg'" | |
| 1878 if test $ac_must_keep_next = true; then | |
| 1879 ac_must_keep_next=false # Got value, back to normal. | |
| 1880 else | |
| 1881 case $ac_arg in | |
| 1882 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
| 1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
| 1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
| 1885 | -with-* | --with-* | -without-* | --without-* | --x) | |
| 1886 case "$ac_configure_args0 " in | |
| 1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
| 1888 esac | |
| 1889 ;; | |
| 1890 -* ) ac_must_keep_next=true ;; | |
| 1891 esac | |
| 1892 fi | |
| 1893 as_fn_append ac_configure_args " '$ac_arg'" | |
| 1894 ;; | |
| 1895 esac | |
| 1896 done | |
| 1897 done | |
| 1898 { ac_configure_args0=; unset ac_configure_args0;} | |
| 1899 { ac_configure_args1=; unset ac_configure_args1;} | |
| 1900 | |
| 1901 # When interrupted or exit'd, cleanup temporary files, and complete | |
| 1902 # config.log. We remove comments because anyway the quotes in there | |
| 1903 # would cause problems or look ugly. | |
| 1904 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
| 1905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
| 1906 trap 'exit_status=$? | |
| 1907 # Sanitize IFS. | |
| 1908 IFS=" "" $as_nl" | |
| 1909 # Save into config.log some information that might help in debugging. | |
| 1910 { | |
| 1911 echo | |
| 1912 | |
| 1913 printf "%s\n" "## ---------------- ## | |
| 1914 ## Cache variables. ## | |
| 1915 ## ---------------- ##" | |
| 1916 echo | |
| 1917 # The following way of writing the cache mishandles newlines in values, | |
| 1918 ( | |
| 1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
| 1920 eval ac_val=\$$ac_var | |
| 1921 case $ac_val in #( | |
| 1922 *${as_nl}*) | |
| 1923 case $ac_var in #( | |
| 1924 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
| 1925 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
| 1926 esac | |
| 1927 case $ac_var in #( | |
| 1928 _ | IFS | as_nl) ;; #( | |
| 1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
| 1930 *) { eval $ac_var=; unset $ac_var;} ;; | |
| 1931 esac ;; | |
| 1932 esac | |
| 1933 done | |
| 1934 (set) 2>&1 | | |
| 1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
| 1936 *${as_nl}ac_space=\ *) | |
| 1937 sed -n \ | |
| 1938 "s/'\''/'\''\\\\'\'''\''/g; | |
| 1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
| 1940 ;; #( | |
| 1941 *) | |
| 1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
| 1943 ;; | |
| 1944 esac | | |
| 1945 sort | |
| 1946 ) | |
| 1947 echo | |
| 1948 | |
| 1949 printf "%s\n" "## ----------------- ## | |
| 1950 ## Output variables. ## | |
| 1951 ## ----------------- ##" | |
| 1952 echo | |
| 1953 for ac_var in $ac_subst_vars | |
| 1954 do | |
| 1955 eval ac_val=\$$ac_var | |
| 1956 case $ac_val in | |
| 1957 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
| 1958 esac | |
| 1959 printf "%s\n" "$ac_var='\''$ac_val'\''" | |
| 1960 done | sort | |
| 1961 echo | |
| 1962 | |
| 1963 if test -n "$ac_subst_files"; then | |
| 1964 printf "%s\n" "## ------------------- ## | |
| 1965 ## File substitutions. ## | |
| 1966 ## ------------------- ##" | |
| 1967 echo | |
| 1968 for ac_var in $ac_subst_files | |
| 1969 do | |
| 1970 eval ac_val=\$$ac_var | |
| 1971 case $ac_val in | |
| 1972 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
| 1973 esac | |
| 1974 printf "%s\n" "$ac_var='\''$ac_val'\''" | |
| 1975 done | sort | |
| 1976 echo | |
| 1977 fi | |
| 1978 | |
| 1979 if test -s confdefs.h; then | |
| 1980 printf "%s\n" "## ----------- ## | |
| 1981 ## confdefs.h. ## | |
| 1982 ## ----------- ##" | |
| 1983 echo | |
| 1984 cat confdefs.h | |
| 1985 echo | |
| 1986 fi | |
| 1987 test "$ac_signal" != 0 && | |
| 1988 printf "%s\n" "$as_me: caught signal $ac_signal" | |
| 1989 printf "%s\n" "$as_me: exit $exit_status" | |
| 1990 } >&5 | |
| 1991 rm -f core *.core core.conftest.* && | |
| 1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
| 1993 exit $exit_status | |
| 1994 ' 0 | |
| 1995 for ac_signal in 1 2 13 15; do | |
| 1996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
| 1997 done | |
| 1998 ac_signal=0 | |
| 1999 | |
| 2000 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 2001 rm -f -r conftest* confdefs.h | |
| 2002 | |
| 2003 printf "%s\n" "/* confdefs.h */" > confdefs.h | |
| 2004 | |
| 2005 # Predefined preprocessor variables. | |
| 2006 | |
| 2007 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | |
| 2008 | |
| 2009 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | |
| 2010 | |
| 2011 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | |
| 2012 | |
| 2013 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | |
| 2014 | |
| 2015 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | |
| 2016 | |
| 2017 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | |
| 2018 | |
| 2019 | |
| 2020 # Let the site file select an alternate cache file if it wants to. | |
| 2021 # Prefer an explicitly selected file to automatically selected ones. | |
| 2022 if test -n "$CONFIG_SITE"; then | |
| 2023 ac_site_files="$CONFIG_SITE" | |
| 2024 elif test "x$prefix" != xNONE; then | |
| 2025 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | |
| 2026 else | |
| 2027 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
| 2028 fi | |
| 2029 | |
| 2030 for ac_site_file in $ac_site_files | |
| 2031 do | |
| 2032 case $ac_site_file in #( | |
| 2033 */*) : | |
| 2034 ;; #( | |
| 2035 *) : | |
| 2036 ac_site_file=./$ac_site_file ;; | |
| 2037 esac | |
| 2038 if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
| 2039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
| 2040 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
| 2041 sed 's/^/| /' "$ac_site_file" >&5 | |
| 2042 . "$ac_site_file" \ | |
| 2043 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 2044 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 2045 as_fn_error $? "failed to load site script $ac_site_file | |
| 2046 See 'config.log' for more details" "$LINENO" 5; } | |
| 2047 fi | |
| 2048 done | |
| 2049 | |
| 2050 if test -r "$cache_file"; then | |
| 2051 # Some versions of bash will fail to source /dev/null (special files | |
| 2052 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
| 2053 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
| 2054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
| 2055 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
| 2056 case $cache_file in | |
| 2057 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
| 2058 *) . "./$cache_file";; | |
| 2059 esac | |
| 2060 fi | |
| 2061 else | |
| 2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
| 2063 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
| 2064 >$cache_file | |
| 2065 fi | |
| 2066 | |
| 2067 # Test code for whether the C compiler supports C89 (global declarations) | |
| 2068 ac_c_conftest_c89_globals=' | |
| 2069 /* Does the compiler advertise C89 conformance? | |
| 2070 Do not test the value of __STDC__, because some compilers set it to 0 | |
| 2071 while being otherwise adequately conformant. */ | |
| 2072 #if !defined __STDC__ | |
| 2073 # error "Compiler does not advertise C89 conformance" | |
| 2074 #endif | |
| 2075 | |
| 2076 #include <stddef.h> | |
| 2077 #include <stdarg.h> | |
| 2078 struct stat; | |
| 2079 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
| 2080 struct buf { int x; }; | |
| 2081 struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
| 2082 static char *e (char **p, int i) | |
| 2083 { | |
| 2084 return p[i]; | |
| 2085 } | |
| 2086 static char *f (char * (*g) (char **, int), char **p, ...) | |
| 2087 { | |
| 2088 char *s; | |
| 2089 va_list v; | |
| 2090 va_start (v,p); | |
| 2091 s = g (p, va_arg (v,int)); | |
| 2092 va_end (v); | |
| 2093 return s; | |
| 2094 } | |
| 2095 | |
| 2096 /* C89 style stringification. */ | |
| 2097 #define noexpand_stringify(a) #a | |
| 2098 const char *stringified = noexpand_stringify(arbitrary+token=sequence); | |
| 2099 | |
| 2100 /* C89 style token pasting. Exercises some of the corner cases that | |
| 2101 e.g. old MSVC gets wrong, but not very hard. */ | |
| 2102 #define noexpand_concat(a,b) a##b | |
| 2103 #define expand_concat(a,b) noexpand_concat(a,b) | |
| 2104 extern int vA; | |
| 2105 extern int vbee; | |
| 2106 #define aye A | |
| 2107 #define bee B | |
| 2108 int *pvA = &expand_concat(v,aye); | |
| 2109 int *pvbee = &noexpand_concat(v,bee); | |
| 2110 | |
| 2111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
| 2112 function prototypes and stuff, but not \xHH hex character constants. | |
| 2113 These do not provoke an error unfortunately, instead are silently treated | |
| 2114 as an "x". The following induces an error, until -std is added to get | |
| 2115 proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
| 2116 array size at least. It is necessary to write \x00 == 0 to get something | |
| 2117 that is true only with -std. */ | |
| 2118 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
| 2119 | |
| 2120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
| 2121 inside strings and character constants. */ | |
| 2122 #define FOO(x) '\''x'\'' | |
| 2123 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
| 2124 | |
| 2125 int test (int i, double x); | |
| 2126 struct s1 {int (*f) (int a);}; | |
| 2127 struct s2 {int (*f) (double a);}; | |
| 2128 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
| 2129 int, int);' | |
| 2130 | |
| 2131 # Test code for whether the C compiler supports C89 (body of main). | |
| 2132 ac_c_conftest_c89_main=' | |
| 2133 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
| 2134 ' | |
| 2135 | |
| 2136 # Test code for whether the C compiler supports C99 (global declarations) | |
| 2137 ac_c_conftest_c99_globals=' | |
| 2138 /* Does the compiler advertise C99 conformance? */ | |
| 2139 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
| 2140 # error "Compiler does not advertise C99 conformance" | |
| 2141 #endif | |
| 2142 | |
| 2143 // See if C++-style comments work. | |
| 2144 | |
| 2145 #include <stdbool.h> | |
| 2146 extern int puts (const char *); | |
| 2147 extern int printf (const char *, ...); | |
| 2148 extern int dprintf (int, const char *, ...); | |
| 2149 extern void *malloc (size_t); | |
| 2150 extern void free (void *); | |
| 2151 | |
| 2152 // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
| 2153 // dprintf is used instead of fprintf to avoid needing to declare | |
| 2154 // FILE and stderr. | |
| 2155 #define debug(...) dprintf (2, __VA_ARGS__) | |
| 2156 #define showlist(...) puts (#__VA_ARGS__) | |
| 2157 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
| 2158 static void | |
| 2159 test_varargs_macros (void) | |
| 2160 { | |
| 2161 int x = 1234; | |
| 2162 int y = 5678; | |
| 2163 debug ("Flag"); | |
| 2164 debug ("X = %d\n", x); | |
| 2165 showlist (The first, second, and third items.); | |
| 2166 report (x>y, "x is %d but y is %d", x, y); | |
| 2167 } | |
| 2168 | |
| 2169 // Check long long types. | |
| 2170 #define BIG64 18446744073709551615ull | |
| 2171 #define BIG32 4294967295ul | |
| 2172 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
| 2173 #if !BIG_OK | |
| 2174 #error "your preprocessor is broken" | |
| 2175 #endif | |
| 2176 #if BIG_OK | |
| 2177 #else | |
| 2178 #error "your preprocessor is broken" | |
| 2179 #endif | |
| 2180 static long long int bignum = -9223372036854775807LL; | |
| 2181 static unsigned long long int ubignum = BIG64; | |
| 2182 | |
| 2183 struct incomplete_array | |
| 2184 { | |
| 2185 int datasize; | |
| 2186 double data[]; | |
| 2187 }; | |
| 2188 | |
| 2189 struct named_init { | |
| 2190 int number; | |
| 2191 const wchar_t *name; | |
| 2192 double average; | |
| 2193 }; | |
| 2194 | |
| 2195 typedef const char *ccp; | |
| 2196 | |
| 2197 static inline int | |
| 2198 test_restrict (ccp restrict text) | |
| 2199 { | |
| 2200 // Iterate through items via the restricted pointer. | |
| 2201 // Also check for declarations in for loops. | |
| 2202 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
| 2203 continue; | |
| 2204 return 0; | |
| 2205 } | |
| 2206 | |
| 2207 // Check varargs and va_copy. | |
| 2208 static bool | |
| 2209 test_varargs (const char *format, ...) | |
| 2210 { | |
| 2211 va_list args; | |
| 2212 va_start (args, format); | |
| 2213 va_list args_copy; | |
| 2214 va_copy (args_copy, args); | |
| 2215 | |
| 2216 const char *str = ""; | |
| 2217 int number = 0; | |
| 2218 float fnumber = 0; | |
| 2219 | |
| 2220 while (*format) | |
| 2221 { | |
| 2222 switch (*format++) | |
| 2223 { | |
| 2224 case '\''s'\'': // string | |
| 2225 str = va_arg (args_copy, const char *); | |
| 2226 break; | |
| 2227 case '\''d'\'': // int | |
| 2228 number = va_arg (args_copy, int); | |
| 2229 break; | |
| 2230 case '\''f'\'': // float | |
| 2231 fnumber = va_arg (args_copy, double); | |
| 2232 break; | |
| 2233 default: | |
| 2234 break; | |
| 2235 } | |
| 2236 } | |
| 2237 va_end (args_copy); | |
| 2238 va_end (args); | |
| 2239 | |
| 2240 return *str && number && fnumber; | |
| 2241 } | |
| 2242 ' | |
| 2243 | |
| 2244 # Test code for whether the C compiler supports C99 (body of main). | |
| 2245 ac_c_conftest_c99_main=' | |
| 2246 // Check bool. | |
| 2247 _Bool success = false; | |
| 2248 success |= (argc != 0); | |
| 2249 | |
| 2250 // Check restrict. | |
| 2251 if (test_restrict ("String literal") == 0) | |
| 2252 success = true; | |
| 2253 char *restrict newvar = "Another string"; | |
| 2254 | |
| 2255 // Check varargs. | |
| 2256 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
| 2257 test_varargs_macros (); | |
| 2258 | |
| 2259 // Check flexible array members. | |
| 2260 struct incomplete_array *ia = | |
| 2261 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
| 2262 ia->datasize = 10; | |
| 2263 for (int i = 0; i < ia->datasize; ++i) | |
| 2264 ia->data[i] = i * 1.234; | |
| 2265 // Work around memory leak warnings. | |
| 2266 free (ia); | |
| 2267 | |
| 2268 // Check named initializers. | |
| 2269 struct named_init ni = { | |
| 2270 .number = 34, | |
| 2271 .name = L"Test wide string", | |
| 2272 .average = 543.34343, | |
| 2273 }; | |
| 2274 | |
| 2275 ni.number = 58; | |
| 2276 | |
| 2277 int dynamic_array[ni.number]; | |
| 2278 dynamic_array[0] = argv[0][0]; | |
| 2279 dynamic_array[ni.number - 1] = 543; | |
| 2280 | |
| 2281 // work around unused variable warnings | |
| 2282 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
| 2283 || dynamic_array[ni.number - 1] != 543); | |
| 2284 ' | |
| 2285 | |
| 2286 # Test code for whether the C compiler supports C11 (global declarations) | |
| 2287 ac_c_conftest_c11_globals=' | |
| 2288 /* Does the compiler advertise C11 conformance? */ | |
| 2289 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
| 2290 # error "Compiler does not advertise C11 conformance" | |
| 2291 #endif | |
| 2292 | |
| 2293 // Check _Alignas. | |
| 2294 char _Alignas (double) aligned_as_double; | |
| 2295 char _Alignas (0) no_special_alignment; | |
| 2296 extern char aligned_as_int; | |
| 2297 char _Alignas (0) _Alignas (int) aligned_as_int; | |
| 2298 | |
| 2299 // Check _Alignof. | |
| 2300 enum | |
| 2301 { | |
| 2302 int_alignment = _Alignof (int), | |
| 2303 int_array_alignment = _Alignof (int[100]), | |
| 2304 char_alignment = _Alignof (char) | |
| 2305 }; | |
| 2306 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
| 2307 | |
| 2308 // Check _Noreturn. | |
| 2309 int _Noreturn does_not_return (void) { for (;;) continue; } | |
| 2310 | |
| 2311 // Check _Static_assert. | |
| 2312 struct test_static_assert | |
| 2313 { | |
| 2314 int x; | |
| 2315 _Static_assert (sizeof (int) <= sizeof (long int), | |
| 2316 "_Static_assert does not work in struct"); | |
| 2317 long int y; | |
| 2318 }; | |
| 2319 | |
| 2320 // Check UTF-8 literals. | |
| 2321 #define u8 syntax error! | |
| 2322 char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
| 2323 | |
| 2324 // Check duplicate typedefs. | |
| 2325 typedef long *long_ptr; | |
| 2326 typedef long int *long_ptr; | |
| 2327 typedef long_ptr long_ptr; | |
| 2328 | |
| 2329 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
| 2330 struct anonymous | |
| 2331 { | |
| 2332 union { | |
| 2333 struct { int i; int j; }; | |
| 2334 struct { int k; long int l; } w; | |
| 2335 }; | |
| 2336 int m; | |
| 2337 } v1; | |
| 2338 ' | |
| 2339 | |
| 2340 # Test code for whether the C compiler supports C11 (body of main). | |
| 2341 ac_c_conftest_c11_main=' | |
| 2342 _Static_assert ((offsetof (struct anonymous, i) | |
| 2343 == offsetof (struct anonymous, w.k)), | |
| 2344 "Anonymous union alignment botch"); | |
| 2345 v1.i = 2; | |
| 2346 v1.w.k = 5; | |
| 2347 ok |= v1.i != 5; | |
| 2348 ' | |
| 2349 | |
| 2350 # Test code for whether the C compiler supports C11 (complete). | |
| 2351 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
| 2352 ${ac_c_conftest_c99_globals} | |
| 2353 ${ac_c_conftest_c11_globals} | |
| 2354 | |
| 2355 int | |
| 2356 main (int argc, char **argv) | |
| 2357 { | |
| 2358 int ok = 0; | |
| 2359 ${ac_c_conftest_c89_main} | |
| 2360 ${ac_c_conftest_c99_main} | |
| 2361 ${ac_c_conftest_c11_main} | |
| 2362 return ok; | |
| 2363 } | |
| 2364 " | |
| 2365 | |
| 2366 # Test code for whether the C compiler supports C99 (complete). | |
| 2367 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
| 2368 ${ac_c_conftest_c99_globals} | |
| 2369 | |
| 2370 int | |
| 2371 main (int argc, char **argv) | |
| 2372 { | |
| 2373 int ok = 0; | |
| 2374 ${ac_c_conftest_c89_main} | |
| 2375 ${ac_c_conftest_c99_main} | |
| 2376 return ok; | |
| 2377 } | |
| 2378 " | |
| 2379 | |
| 2380 # Test code for whether the C compiler supports C89 (complete). | |
| 2381 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
| 2382 | |
| 2383 int | |
| 2384 main (int argc, char **argv) | |
| 2385 { | |
| 2386 int ok = 0; | |
| 2387 ${ac_c_conftest_c89_main} | |
| 2388 return ok; | |
| 2389 } | |
| 2390 " | |
| 2391 | |
| 2392 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
| 2393 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
| 2394 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
| 2395 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
| 2396 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
| 2397 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
| 2398 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
| 2399 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
| 2400 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
| 2401 # Check that the precious variables saved in the cache have kept the same | |
| 2402 # value. | |
| 2403 ac_cache_corrupted=false | |
| 2404 for ac_var in $ac_precious_vars; do | |
| 2405 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
| 2406 eval ac_new_set=\$ac_env_${ac_var}_set | |
| 2407 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
| 2408 eval ac_new_val=\$ac_env_${ac_var}_value | |
| 2409 case $ac_old_set,$ac_new_set in | |
| 2410 set,) | |
| 2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 | |
| 2412 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} | |
| 2413 ac_cache_corrupted=: ;; | |
| 2414 ,set) | |
| 2415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 | |
| 2416 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} | |
| 2417 ac_cache_corrupted=: ;; | |
| 2418 ,);; | |
| 2419 *) | |
| 2420 if test "x$ac_old_val" != "x$ac_new_val"; then | |
| 2421 # differences in whitespace do not lead to failure. | |
| 2422 ac_old_val_w=`echo x $ac_old_val` | |
| 2423 ac_new_val_w=`echo x $ac_new_val` | |
| 2424 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
| 2425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 | |
| 2426 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} | |
| 2427 ac_cache_corrupted=: | |
| 2428 else | |
| 2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 | |
| 2430 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} | |
| 2431 eval $ac_var=\$ac_old_val | |
| 2432 fi | |
| 2433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 | |
| 2434 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} | |
| 2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 | |
| 2436 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} | |
| 2437 fi;; | |
| 2438 esac | |
| 2439 # Pass precious variables to config.status. | |
| 2440 if test "$ac_new_set" = set; then | |
| 2441 case $ac_new_val in | |
| 2442 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 2443 *) ac_arg=$ac_var=$ac_new_val ;; | |
| 2444 esac | |
| 2445 case " $ac_configure_args " in | |
| 2446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
| 2447 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
| 2448 esac | |
| 2449 fi | |
| 2450 done | |
| 2451 if $ac_cache_corrupted; then | |
| 2452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 2453 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
| 2455 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
| 2456 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' | |
| 2457 and start over" "$LINENO" 5 | |
| 2458 fi | |
| 2459 ## -------------------- ## | |
| 2460 ## Main body of script. ## | |
| 2461 ## -------------------- ## | |
| 2462 | |
| 2463 ac_ext=c | |
| 2464 ac_cpp='$CPP $CPPFLAGS' | |
| 2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 2468 | |
| 2469 | |
| 2470 | |
| 2471 #-------------------------------------------------------------------- | |
| 2472 # Call TEA_INIT as the first TEA_ macro to set up initial vars. | |
| 2473 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows" | |
| 2474 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. | |
| 2475 #-------------------------------------------------------------------- | |
| 2476 | |
| 2477 | |
| 2478 TEA_VERSION="3.13" | |
| 2479 | |
| 2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5 | |
| 2481 printf %s "checking TEA configuration... " >&6; } | |
| 2482 if test x"${PACKAGE_NAME}" = x ; then | |
| 2483 as_fn_error $? " | |
| 2484 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5 | |
| 2485 fi | |
| 2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5 | |
| 2487 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; } | |
| 2488 | |
| 2489 # If the user did not set CFLAGS, set it now to keep macros | |
| 2490 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2". | |
| 2491 if test "${CFLAGS+set}" != "set" ; then | |
| 2492 CFLAGS="" | |
| 2493 fi | |
| 2494 | |
| 2495 case "`uname -s`" in | |
| 2496 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*) | |
| 2497 # Extract the first word of "cygpath", so it can be a program name with args. | |
| 2498 set dummy cygpath; ac_word=$2 | |
| 2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2500 printf %s "checking for $ac_word... " >&6; } | |
| 2501 if test ${ac_cv_prog_CYGPATH+y} | |
| 2502 then : | |
| 2503 printf %s "(cached) " >&6 | |
| 2504 else case e in #( | |
| 2505 e) if test -n "$CYGPATH"; then | |
| 2506 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. | |
| 2507 else | |
| 2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2509 for as_dir in $PATH | |
| 2510 do | |
| 2511 IFS=$as_save_IFS | |
| 2512 case $as_dir in #((( | |
| 2513 '') as_dir=./ ;; | |
| 2514 */) ;; | |
| 2515 *) as_dir=$as_dir/ ;; | |
| 2516 esac | |
| 2517 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 2519 ac_cv_prog_CYGPATH="cygpath -m" | |
| 2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 2521 break 2 | |
| 2522 fi | |
| 2523 done | |
| 2524 done | |
| 2525 IFS=$as_save_IFS | |
| 2526 | |
| 2527 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" | |
| 2528 fi ;; | |
| 2529 esac | |
| 2530 fi | |
| 2531 CYGPATH=$ac_cv_prog_CYGPATH | |
| 2532 if test -n "$CYGPATH"; then | |
| 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 | |
| 2534 printf "%s\n" "$CYGPATH" >&6; } | |
| 2535 else | |
| 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2537 printf "%s\n" "no" >&6; } | |
| 2538 fi | |
| 2539 | |
| 2540 | |
| 2541 EXEEXT=".exe" | |
| 2542 TEA_PLATFORM="windows" | |
| 2543 ;; | |
| 2544 *CYGWIN_*) | |
| 2545 EXEEXT=".exe" | |
| 2546 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG | |
| 2547 ;; | |
| 2548 *) | |
| 2549 CYGPATH=echo | |
| 2550 # Maybe we are cross-compiling.... | |
| 2551 case ${host_alias} in | |
| 2552 *mingw32*) | |
| 2553 EXEEXT=".exe" | |
| 2554 TEA_PLATFORM="windows" | |
| 2555 ;; | |
| 2556 *) | |
| 2557 EXEEXT="" | |
| 2558 TEA_PLATFORM="unix" | |
| 2559 ;; | |
| 2560 esac | |
| 2561 ;; | |
| 2562 esac | |
| 2563 | |
| 2564 # Check if exec_prefix is set. If not use fall back to prefix. | |
| 2565 # Note when adjusted, so that TEA_PREFIX can correct for this. | |
| 2566 # This is needed for recursive configures, since autoconf propagates | |
| 2567 # $prefix, but not $exec_prefix (doh!). | |
| 2568 if test x$exec_prefix = xNONE ; then | |
| 2569 exec_prefix_default=yes | |
| 2570 exec_prefix=$prefix | |
| 2571 fi | |
| 2572 | |
| 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5 | |
| 2574 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;} | |
| 2575 | |
| 2576 | |
| 2577 | |
| 2578 | |
| 2579 # This package name must be replaced statically for AC_SUBST to work | |
| 2580 | |
| 2581 | |
| 2582 | |
| 2583 # Substitute STUB_LIB_FILE in case package creates a stub library too. | |
| 2584 | |
| 2585 | |
| 2586 # We AC_SUBST these here to ensure they are subst'ed, | |
| 2587 # in case the user doesn't call TEA_ADD_... | |
| 2588 | |
| 2589 | |
| 2590 | |
| 2591 | |
| 2592 | |
| 2593 | |
| 2594 | |
| 2595 | |
| 2596 # Configure the installer. | |
| 2597 | |
| 2598 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c' | |
| 2599 INSTALL_DATA_DIR='${INSTALL} -d -m 755' | |
| 2600 INSTALL_DATA='${INSTALL} -m 644' | |
| 2601 INSTALL_PROGRAM='${INSTALL} -m 755' | |
| 2602 INSTALL_SCRIPT='${INSTALL} -m 755' | |
| 2603 | |
| 2604 | |
| 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5 | |
| 2606 printf %s "checking system version... " >&6; } | |
| 2607 if test ${tcl_cv_sys_version+y} | |
| 2608 then : | |
| 2609 printf %s "(cached) " >&6 | |
| 2610 else case e in #( | |
| 2611 e) | |
| 2612 # TEA specific: | |
| 2613 if test "${TEA_PLATFORM}" = "windows" ; then | |
| 2614 tcl_cv_sys_version=windows | |
| 2615 else | |
| 2616 tcl_cv_sys_version=`uname -s`-`uname -r` | |
| 2617 if test "$?" -ne 0 ; then | |
| 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 | |
| 2619 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;} | |
| 2620 tcl_cv_sys_version=unknown | |
| 2621 else | |
| 2622 if test "`uname -s`" = "AIX" ; then | |
| 2623 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` | |
| 2624 fi | |
| 2625 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then | |
| 2626 tcl_cv_sys_version=NetBSD-Debian | |
| 2627 fi | |
| 2628 fi | |
| 2629 fi | |
| 2630 ;; | |
| 2631 esac | |
| 2632 fi | |
| 2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 | |
| 2634 printf "%s\n" "$tcl_cv_sys_version" >&6; } | |
| 2635 system=$tcl_cv_sys_version | |
| 2636 | |
| 2637 case $system in | |
| 2638 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;; | |
| 2639 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;; | |
| 2640 esac | |
| 2641 | |
| 2642 | |
| 2643 | |
| 2644 | |
| 2645 | |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 #-------------------------------------------------------------------- | |
| 2654 # Load the tclConfig.sh file | |
| 2655 #-------------------------------------------------------------------- | |
| 2656 | |
| 2657 | |
| 2658 | |
| 2659 # | |
| 2660 # Ok, lets find the tcl configuration | |
| 2661 # First, look for one uninstalled. | |
| 2662 # the alternative search directory is invoked by --with-tcl | |
| 2663 # | |
| 2664 | |
| 2665 if test x"${no_tcl}" = x ; then | |
| 2666 # we reset no_tcl in case something fails here | |
| 2667 no_tcl=true | |
| 2668 | |
| 2669 # Check whether --with-tcl was given. | |
| 2670 if test ${with_tcl+y} | |
| 2671 then : | |
| 2672 withval=$with_tcl; with_tclconfig="${withval}" | |
| 2673 fi | |
| 2674 | |
| 2675 | |
| 2676 # Check whether --with-tcl8 was given. | |
| 2677 if test ${with_tcl8+y} | |
| 2678 then : | |
| 2679 withval=$with_tcl8; with_tcl8="${withval}" | |
| 2680 fi | |
| 2681 | |
| 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 | |
| 2683 printf %s "checking for Tcl configuration... " >&6; } | |
| 2684 if test ${ac_cv_c_tclconfig+y} | |
| 2685 then : | |
| 2686 printf %s "(cached) " >&6 | |
| 2687 else case e in #( | |
| 2688 e) | |
| 2689 | |
| 2690 # First check to see if --with-tcl was specified. | |
| 2691 if test x"${with_tclconfig}" != x ; then | |
| 2692 case "${with_tclconfig}" in | |
| 2693 */tclConfig.sh ) | |
| 2694 if test -f "${with_tclconfig}"; then | |
| 2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 | |
| 2696 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} | |
| 2697 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" | |
| 2698 fi ;; | |
| 2699 esac | |
| 2700 if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
| 2701 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" | |
| 2702 else | |
| 2703 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 | |
| 2704 fi | |
| 2705 fi | |
| 2706 | |
| 2707 # then check for a private Tcl installation | |
| 2708 if test x"${ac_cv_c_tclconfig}" = x ; then | |
| 2709 for i in \ | |
| 2710 ../tcl \ | |
| 2711 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
| 2712 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ | |
| 2713 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ | |
| 2714 ../../tcl \ | |
| 2715 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
| 2716 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ | |
| 2717 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ | |
| 2718 ../../../tcl \ | |
| 2719 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
| 2720 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ | |
| 2721 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
| 2722 if test "${TEA_PLATFORM}" = "windows" \ | |
| 2723 -a -f "$i/win/tclConfig.sh" ; then | |
| 2724 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" | |
| 2725 break | |
| 2726 fi | |
| 2727 if test -f "$i/unix/tclConfig.sh" ; then | |
| 2728 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" | |
| 2729 break | |
| 2730 fi | |
| 2731 done | |
| 2732 fi | |
| 2733 | |
| 2734 # on Darwin, check in Framework installation locations | |
| 2735 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then | |
| 2736 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
| 2737 `ls -d /Library/Frameworks 2>/dev/null` \ | |
| 2738 `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
| 2739 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \ | |
| 2740 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \ | |
| 2741 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \ | |
| 2742 ; do | |
| 2743 if test -f "$i/Tcl.framework/tclConfig.sh" ; then | |
| 2744 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" | |
| 2745 break | |
| 2746 fi | |
| 2747 done | |
| 2748 fi | |
| 2749 | |
| 2750 # TEA specific: on Windows, check in common installation locations | |
| 2751 if test "${TEA_PLATFORM}" = "windows" \ | |
| 2752 -a x"${ac_cv_c_tclconfig}" = x ; then | |
| 2753 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ | |
| 2754 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ | |
| 2755 ; do | |
| 2756 if test -f "$i/tclConfig.sh" ; then | |
| 2757 ac_cv_c_tclconfig="`(cd $i; pwd)`" | |
| 2758 break | |
| 2759 fi | |
| 2760 done | |
| 2761 fi | |
| 2762 | |
| 2763 # check in a few common install locations | |
| 2764 if test x"${ac_cv_c_tclconfig}" = x ; then | |
| 2765 for i in `ls -d ${libdir} 2>/dev/null` \ | |
| 2766 `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
| 2767 `ls -d ${prefix}/lib 2>/dev/null` \ | |
| 2768 `ls -d /usr/local/lib 2>/dev/null` \ | |
| 2769 `ls -d /usr/contrib/lib 2>/dev/null` \ | |
| 2770 `ls -d /usr/pkg/lib 2>/dev/null` \ | |
| 2771 `ls -d /usr/lib 2>/dev/null` \ | |
| 2772 `ls -d /usr/lib64 2>/dev/null` \ | |
| 2773 `ls -d /usr/lib/tcl8.6 2>/dev/null` \ | |
| 2774 `ls -d /usr/lib/tcl8.5 2>/dev/null` \ | |
| 2775 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \ | |
| 2776 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \ | |
| 2777 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \ | |
| 2778 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \ | |
| 2779 ; do | |
| 2780 if test -f "$i/tclConfig.sh" ; then | |
| 2781 ac_cv_c_tclconfig="`(cd $i; pwd)`" | |
| 2782 break | |
| 2783 fi | |
| 2784 done | |
| 2785 fi | |
| 2786 | |
| 2787 # check in a few other private locations | |
| 2788 if test x"${ac_cv_c_tclconfig}" = x ; then | |
| 2789 for i in \ | |
| 2790 ${srcdir}/../tcl \ | |
| 2791 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
| 2792 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ | |
| 2793 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
| 2794 if test "${TEA_PLATFORM}" = "windows" \ | |
| 2795 -a -f "$i/win/tclConfig.sh" ; then | |
| 2796 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" | |
| 2797 break | |
| 2798 fi | |
| 2799 if test -f "$i/unix/tclConfig.sh" ; then | |
| 2800 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" | |
| 2801 break | |
| 2802 fi | |
| 2803 done | |
| 2804 fi | |
| 2805 ;; | |
| 2806 esac | |
| 2807 fi | |
| 2808 | |
| 2809 | |
| 2810 if test x"${ac_cv_c_tclconfig}" = x ; then | |
| 2811 TCL_BIN_DIR="# no Tcl configs found" | |
| 2812 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5 | |
| 2813 else | |
| 2814 no_tcl= | |
| 2815 TCL_BIN_DIR="${ac_cv_c_tclconfig}" | |
| 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
| 2817 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } | |
| 2818 fi | |
| 2819 fi | |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 2829 | |
| 2830 ac_ext=c | |
| 2831 ac_cpp='$CPP $CPPFLAGS' | |
| 2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 2835 if test -n "$ac_tool_prefix"; then | |
| 2836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
| 2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
| 2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2839 printf %s "checking for $ac_word... " >&6; } | |
| 2840 if test ${ac_cv_prog_CC+y} | |
| 2841 then : | |
| 2842 printf %s "(cached) " >&6 | |
| 2843 else case e in #( | |
| 2844 e) if test -n "$CC"; then | |
| 2845 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2846 else | |
| 2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2848 for as_dir in $PATH | |
| 2849 do | |
| 2850 IFS=$as_save_IFS | |
| 2851 case $as_dir in #((( | |
| 2852 '') as_dir=./ ;; | |
| 2853 */) ;; | |
| 2854 *) as_dir=$as_dir/ ;; | |
| 2855 esac | |
| 2856 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 2858 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
| 2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 2860 break 2 | |
| 2861 fi | |
| 2862 done | |
| 2863 done | |
| 2864 IFS=$as_save_IFS | |
| 2865 | |
| 2866 fi ;; | |
| 2867 esac | |
| 2868 fi | |
| 2869 CC=$ac_cv_prog_CC | |
| 2870 if test -n "$CC"; then | |
| 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 2872 printf "%s\n" "$CC" >&6; } | |
| 2873 else | |
| 2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2875 printf "%s\n" "no" >&6; } | |
| 2876 fi | |
| 2877 | |
| 2878 | |
| 2879 fi | |
| 2880 if test -z "$ac_cv_prog_CC"; then | |
| 2881 ac_ct_CC=$CC | |
| 2882 # Extract the first word of "gcc", so it can be a program name with args. | |
| 2883 set dummy gcc; ac_word=$2 | |
| 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2885 printf %s "checking for $ac_word... " >&6; } | |
| 2886 if test ${ac_cv_prog_ac_ct_CC+y} | |
| 2887 then : | |
| 2888 printf %s "(cached) " >&6 | |
| 2889 else case e in #( | |
| 2890 e) if test -n "$ac_ct_CC"; then | |
| 2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 2892 else | |
| 2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2894 for as_dir in $PATH | |
| 2895 do | |
| 2896 IFS=$as_save_IFS | |
| 2897 case $as_dir in #((( | |
| 2898 '') as_dir=./ ;; | |
| 2899 */) ;; | |
| 2900 *) as_dir=$as_dir/ ;; | |
| 2901 esac | |
| 2902 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 2904 ac_cv_prog_ac_ct_CC="gcc" | |
| 2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 2906 break 2 | |
| 2907 fi | |
| 2908 done | |
| 2909 done | |
| 2910 IFS=$as_save_IFS | |
| 2911 | |
| 2912 fi ;; | |
| 2913 esac | |
| 2914 fi | |
| 2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 2916 if test -n "$ac_ct_CC"; then | |
| 2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 2918 printf "%s\n" "$ac_ct_CC" >&6; } | |
| 2919 else | |
| 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2921 printf "%s\n" "no" >&6; } | |
| 2922 fi | |
| 2923 | |
| 2924 if test "x$ac_ct_CC" = x; then | |
| 2925 CC="" | |
| 2926 else | |
| 2927 case $cross_compiling:$ac_tool_warned in | |
| 2928 yes:) | |
| 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 2930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 2931 ac_tool_warned=yes ;; | |
| 2932 esac | |
| 2933 CC=$ac_ct_CC | |
| 2934 fi | |
| 2935 else | |
| 2936 CC="$ac_cv_prog_CC" | |
| 2937 fi | |
| 2938 | |
| 2939 if test -z "$CC"; then | |
| 2940 if test -n "$ac_tool_prefix"; then | |
| 2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
| 2942 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
| 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2944 printf %s "checking for $ac_word... " >&6; } | |
| 2945 if test ${ac_cv_prog_CC+y} | |
| 2946 then : | |
| 2947 printf %s "(cached) " >&6 | |
| 2948 else case e in #( | |
| 2949 e) if test -n "$CC"; then | |
| 2950 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2951 else | |
| 2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2953 for as_dir in $PATH | |
| 2954 do | |
| 2955 IFS=$as_save_IFS | |
| 2956 case $as_dir in #((( | |
| 2957 '') as_dir=./ ;; | |
| 2958 */) ;; | |
| 2959 *) as_dir=$as_dir/ ;; | |
| 2960 esac | |
| 2961 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 2963 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
| 2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 2965 break 2 | |
| 2966 fi | |
| 2967 done | |
| 2968 done | |
| 2969 IFS=$as_save_IFS | |
| 2970 | |
| 2971 fi ;; | |
| 2972 esac | |
| 2973 fi | |
| 2974 CC=$ac_cv_prog_CC | |
| 2975 if test -n "$CC"; then | |
| 2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 2977 printf "%s\n" "$CC" >&6; } | |
| 2978 else | |
| 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2980 printf "%s\n" "no" >&6; } | |
| 2981 fi | |
| 2982 | |
| 2983 | |
| 2984 fi | |
| 2985 fi | |
| 2986 if test -z "$CC"; then | |
| 2987 # Extract the first word of "cc", so it can be a program name with args. | |
| 2988 set dummy cc; ac_word=$2 | |
| 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2990 printf %s "checking for $ac_word... " >&6; } | |
| 2991 if test ${ac_cv_prog_CC+y} | |
| 2992 then : | |
| 2993 printf %s "(cached) " >&6 | |
| 2994 else case e in #( | |
| 2995 e) if test -n "$CC"; then | |
| 2996 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2997 else | |
| 2998 ac_prog_rejected=no | |
| 2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3000 for as_dir in $PATH | |
| 3001 do | |
| 3002 IFS=$as_save_IFS | |
| 3003 case $as_dir in #((( | |
| 3004 '') as_dir=./ ;; | |
| 3005 */) ;; | |
| 3006 *) as_dir=$as_dir/ ;; | |
| 3007 esac | |
| 3008 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 3010 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
| 3011 ac_prog_rejected=yes | |
| 3012 continue | |
| 3013 fi | |
| 3014 ac_cv_prog_CC="cc" | |
| 3015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 3016 break 2 | |
| 3017 fi | |
| 3018 done | |
| 3019 done | |
| 3020 IFS=$as_save_IFS | |
| 3021 | |
| 3022 if test $ac_prog_rejected = yes; then | |
| 3023 # We found a bogon in the path, so make sure we never use it. | |
| 3024 set dummy $ac_cv_prog_CC | |
| 3025 shift | |
| 3026 if test $# != 0; then | |
| 3027 # We chose a different compiler from the bogus one. | |
| 3028 # However, it has the same basename, so the bogon will be chosen | |
| 3029 # first if we set CC to just the basename; use the full file name. | |
| 3030 shift | |
| 3031 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
| 3032 fi | |
| 3033 fi | |
| 3034 fi ;; | |
| 3035 esac | |
| 3036 fi | |
| 3037 CC=$ac_cv_prog_CC | |
| 3038 if test -n "$CC"; then | |
| 3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 3040 printf "%s\n" "$CC" >&6; } | |
| 3041 else | |
| 3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3043 printf "%s\n" "no" >&6; } | |
| 3044 fi | |
| 3045 | |
| 3046 | |
| 3047 fi | |
| 3048 if test -z "$CC"; then | |
| 3049 if test -n "$ac_tool_prefix"; then | |
| 3050 for ac_prog in cl.exe | |
| 3051 do | |
| 3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3055 printf %s "checking for $ac_word... " >&6; } | |
| 3056 if test ${ac_cv_prog_CC+y} | |
| 3057 then : | |
| 3058 printf %s "(cached) " >&6 | |
| 3059 else case e in #( | |
| 3060 e) if test -n "$CC"; then | |
| 3061 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 3062 else | |
| 3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3064 for as_dir in $PATH | |
| 3065 do | |
| 3066 IFS=$as_save_IFS | |
| 3067 case $as_dir in #((( | |
| 3068 '') as_dir=./ ;; | |
| 3069 */) ;; | |
| 3070 *) as_dir=$as_dir/ ;; | |
| 3071 esac | |
| 3072 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 3074 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
| 3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 3076 break 2 | |
| 3077 fi | |
| 3078 done | |
| 3079 done | |
| 3080 IFS=$as_save_IFS | |
| 3081 | |
| 3082 fi ;; | |
| 3083 esac | |
| 3084 fi | |
| 3085 CC=$ac_cv_prog_CC | |
| 3086 if test -n "$CC"; then | |
| 3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 3088 printf "%s\n" "$CC" >&6; } | |
| 3089 else | |
| 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3091 printf "%s\n" "no" >&6; } | |
| 3092 fi | |
| 3093 | |
| 3094 | |
| 3095 test -n "$CC" && break | |
| 3096 done | |
| 3097 fi | |
| 3098 if test -z "$CC"; then | |
| 3099 ac_ct_CC=$CC | |
| 3100 for ac_prog in cl.exe | |
| 3101 do | |
| 3102 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 3103 set dummy $ac_prog; ac_word=$2 | |
| 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3105 printf %s "checking for $ac_word... " >&6; } | |
| 3106 if test ${ac_cv_prog_ac_ct_CC+y} | |
| 3107 then : | |
| 3108 printf %s "(cached) " >&6 | |
| 3109 else case e in #( | |
| 3110 e) if test -n "$ac_ct_CC"; then | |
| 3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 3112 else | |
| 3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3114 for as_dir in $PATH | |
| 3115 do | |
| 3116 IFS=$as_save_IFS | |
| 3117 case $as_dir in #((( | |
| 3118 '') as_dir=./ ;; | |
| 3119 */) ;; | |
| 3120 *) as_dir=$as_dir/ ;; | |
| 3121 esac | |
| 3122 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 3124 ac_cv_prog_ac_ct_CC="$ac_prog" | |
| 3125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 3126 break 2 | |
| 3127 fi | |
| 3128 done | |
| 3129 done | |
| 3130 IFS=$as_save_IFS | |
| 3131 | |
| 3132 fi ;; | |
| 3133 esac | |
| 3134 fi | |
| 3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 3136 if test -n "$ac_ct_CC"; then | |
| 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 3138 printf "%s\n" "$ac_ct_CC" >&6; } | |
| 3139 else | |
| 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3141 printf "%s\n" "no" >&6; } | |
| 3142 fi | |
| 3143 | |
| 3144 | |
| 3145 test -n "$ac_ct_CC" && break | |
| 3146 done | |
| 3147 | |
| 3148 if test "x$ac_ct_CC" = x; then | |
| 3149 CC="" | |
| 3150 else | |
| 3151 case $cross_compiling:$ac_tool_warned in | |
| 3152 yes:) | |
| 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 3154 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 3155 ac_tool_warned=yes ;; | |
| 3156 esac | |
| 3157 CC=$ac_ct_CC | |
| 3158 fi | |
| 3159 fi | |
| 3160 | |
| 3161 fi | |
| 3162 if test -z "$CC"; then | |
| 3163 if test -n "$ac_tool_prefix"; then | |
| 3164 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
| 3165 set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
| 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3167 printf %s "checking for $ac_word... " >&6; } | |
| 3168 if test ${ac_cv_prog_CC+y} | |
| 3169 then : | |
| 3170 printf %s "(cached) " >&6 | |
| 3171 else case e in #( | |
| 3172 e) if test -n "$CC"; then | |
| 3173 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 3174 else | |
| 3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3176 for as_dir in $PATH | |
| 3177 do | |
| 3178 IFS=$as_save_IFS | |
| 3179 case $as_dir in #((( | |
| 3180 '') as_dir=./ ;; | |
| 3181 */) ;; | |
| 3182 *) as_dir=$as_dir/ ;; | |
| 3183 esac | |
| 3184 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 3186 ac_cv_prog_CC="${ac_tool_prefix}clang" | |
| 3187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 3188 break 2 | |
| 3189 fi | |
| 3190 done | |
| 3191 done | |
| 3192 IFS=$as_save_IFS | |
| 3193 | |
| 3194 fi ;; | |
| 3195 esac | |
| 3196 fi | |
| 3197 CC=$ac_cv_prog_CC | |
| 3198 if test -n "$CC"; then | |
| 3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 3200 printf "%s\n" "$CC" >&6; } | |
| 3201 else | |
| 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3203 printf "%s\n" "no" >&6; } | |
| 3204 fi | |
| 3205 | |
| 3206 | |
| 3207 fi | |
| 3208 if test -z "$ac_cv_prog_CC"; then | |
| 3209 ac_ct_CC=$CC | |
| 3210 # Extract the first word of "clang", so it can be a program name with args. | |
| 3211 set dummy clang; ac_word=$2 | |
| 3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3213 printf %s "checking for $ac_word... " >&6; } | |
| 3214 if test ${ac_cv_prog_ac_ct_CC+y} | |
| 3215 then : | |
| 3216 printf %s "(cached) " >&6 | |
| 3217 else case e in #( | |
| 3218 e) if test -n "$ac_ct_CC"; then | |
| 3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 3220 else | |
| 3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3222 for as_dir in $PATH | |
| 3223 do | |
| 3224 IFS=$as_save_IFS | |
| 3225 case $as_dir in #((( | |
| 3226 '') as_dir=./ ;; | |
| 3227 */) ;; | |
| 3228 *) as_dir=$as_dir/ ;; | |
| 3229 esac | |
| 3230 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 3232 ac_cv_prog_ac_ct_CC="clang" | |
| 3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 3234 break 2 | |
| 3235 fi | |
| 3236 done | |
| 3237 done | |
| 3238 IFS=$as_save_IFS | |
| 3239 | |
| 3240 fi ;; | |
| 3241 esac | |
| 3242 fi | |
| 3243 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 3244 if test -n "$ac_ct_CC"; then | |
| 3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 3246 printf "%s\n" "$ac_ct_CC" >&6; } | |
| 3247 else | |
| 3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3249 printf "%s\n" "no" >&6; } | |
| 3250 fi | |
| 3251 | |
| 3252 if test "x$ac_ct_CC" = x; then | |
| 3253 CC="" | |
| 3254 else | |
| 3255 case $cross_compiling:$ac_tool_warned in | |
| 3256 yes:) | |
| 3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 3258 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 3259 ac_tool_warned=yes ;; | |
| 3260 esac | |
| 3261 CC=$ac_ct_CC | |
| 3262 fi | |
| 3263 else | |
| 3264 CC="$ac_cv_prog_CC" | |
| 3265 fi | |
| 3266 | |
| 3267 fi | |
| 3268 | |
| 3269 | |
| 3270 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 3271 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 3272 as_fn_error $? "no acceptable C compiler found in \$PATH | |
| 3273 See 'config.log' for more details" "$LINENO" 5; } | |
| 3274 | |
| 3275 # Provide some information about the compiler. | |
| 3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
| 3277 set X $ac_compile | |
| 3278 ac_compiler=$2 | |
| 3279 for ac_option in --version -v -V -qversion -version; do | |
| 3280 { { ac_try="$ac_compiler $ac_option >&5" | |
| 3281 case "(($ac_try" in | |
| 3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3283 *) ac_try_echo=$ac_try;; | |
| 3284 esac | |
| 3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3286 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 3287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
| 3288 ac_status=$? | |
| 3289 if test -s conftest.err; then | |
| 3290 sed '10a\ | |
| 3291 ... rest of stderr output deleted ... | |
| 3292 10q' conftest.err >conftest.er1 | |
| 3293 cat conftest.er1 >&5 | |
| 3294 fi | |
| 3295 rm -f conftest.er1 conftest.err | |
| 3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3297 test $ac_status = 0; } | |
| 3298 done | |
| 3299 | |
| 3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3301 /* end confdefs.h. */ | |
| 3302 | |
| 3303 int | |
| 3304 main (void) | |
| 3305 { | |
| 3306 | |
| 3307 ; | |
| 3308 return 0; | |
| 3309 } | |
| 3310 _ACEOF | |
| 3311 ac_clean_files_save=$ac_clean_files | |
| 3312 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
| 3313 # Try to create an executable without -o first, disregard a.out. | |
| 3314 # It will help us diagnose broken compilers, and finding out an intuition | |
| 3315 # of exeext. | |
| 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
| 3317 printf %s "checking whether the C compiler works... " >&6; } | |
| 3318 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
| 3319 | |
| 3320 # The possible output files: | |
| 3321 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
| 3322 | |
| 3323 ac_rmfiles= | |
| 3324 for ac_file in $ac_files | |
| 3325 do | |
| 3326 case $ac_file in | |
| 3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
| 3328 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
| 3329 esac | |
| 3330 done | |
| 3331 rm -f $ac_rmfiles | |
| 3332 | |
| 3333 if { { ac_try="$ac_link_default" | |
| 3334 case "(($ac_try" in | |
| 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3336 *) ac_try_echo=$ac_try;; | |
| 3337 esac | |
| 3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3339 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 3340 (eval "$ac_link_default") 2>&5 | |
| 3341 ac_status=$? | |
| 3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3343 test $ac_status = 0; } | |
| 3344 then : | |
| 3345 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. | |
| 3346 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' | |
| 3347 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
| 3348 # so that the user can short-circuit this test for compilers unknown to | |
| 3349 # Autoconf. | |
| 3350 for ac_file in $ac_files '' | |
| 3351 do | |
| 3352 test -f "$ac_file" || continue | |
| 3353 case $ac_file in | |
| 3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
| 3355 ;; | |
| 3356 [ab].out ) | |
| 3357 # We found the default executable, but exeext='' is most | |
| 3358 # certainly right. | |
| 3359 break;; | |
| 3360 *.* ) | |
| 3361 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; | |
| 3362 then :; else | |
| 3363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 3364 fi | |
| 3365 # We set ac_cv_exeext here because the later test for it is not | |
| 3366 # safe: cross compilers may not add the suffix if given an '-o' | |
| 3367 # argument, so we may need to know it at that point already. | |
| 3368 # Even if this section looks crufty: it has the advantage of | |
| 3369 # actually working. | |
| 3370 break;; | |
| 3371 * ) | |
| 3372 break;; | |
| 3373 esac | |
| 3374 done | |
| 3375 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
| 3376 | |
| 3377 else case e in #( | |
| 3378 e) ac_file='' ;; | |
| 3379 esac | |
| 3380 fi | |
| 3381 if test -z "$ac_file" | |
| 3382 then : | |
| 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3384 printf "%s\n" "no" >&6; } | |
| 3385 printf "%s\n" "$as_me: failed program was:" >&5 | |
| 3386 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 3387 | |
| 3388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 3389 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 3390 as_fn_error 77 "C compiler cannot create executables | |
| 3391 See 'config.log' for more details" "$LINENO" 5; } | |
| 3392 else case e in #( | |
| 3393 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 3394 printf "%s\n" "yes" >&6; } ;; | |
| 3395 esac | |
| 3396 fi | |
| 3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
| 3398 printf %s "checking for C compiler default output file name... " >&6; } | |
| 3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
| 3400 printf "%s\n" "$ac_file" >&6; } | |
| 3401 ac_exeext=$ac_cv_exeext | |
| 3402 | |
| 3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
| 3404 ac_clean_files=$ac_clean_files_save | |
| 3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
| 3406 printf %s "checking for suffix of executables... " >&6; } | |
| 3407 if { { ac_try="$ac_link" | |
| 3408 case "(($ac_try" in | |
| 3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3410 *) ac_try_echo=$ac_try;; | |
| 3411 esac | |
| 3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3413 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 3414 (eval "$ac_link") 2>&5 | |
| 3415 ac_status=$? | |
| 3416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3417 test $ac_status = 0; } | |
| 3418 then : | |
| 3419 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) | |
| 3420 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will | |
| 3421 # work properly (i.e., refer to 'conftest.exe'), while it won't with | |
| 3422 # 'rm'. | |
| 3423 for ac_file in conftest.exe conftest conftest.*; do | |
| 3424 test -f "$ac_file" || continue | |
| 3425 case $ac_file in | |
| 3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
| 3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 3428 break;; | |
| 3429 * ) break;; | |
| 3430 esac | |
| 3431 done | |
| 3432 else case e in #( | |
| 3433 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 3434 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 3435 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
| 3436 See 'config.log' for more details" "$LINENO" 5; } ;; | |
| 3437 esac | |
| 3438 fi | |
| 3439 rm -f conftest conftest$ac_cv_exeext | |
| 3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
| 3441 printf "%s\n" "$ac_cv_exeext" >&6; } | |
| 3442 | |
| 3443 rm -f conftest.$ac_ext | |
| 3444 EXEEXT=$ac_cv_exeext | |
| 3445 ac_exeext=$EXEEXT | |
| 3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3447 /* end confdefs.h. */ | |
| 3448 #include <stdio.h> | |
| 3449 int | |
| 3450 main (void) | |
| 3451 { | |
| 3452 FILE *f = fopen ("conftest.out", "w"); | |
| 3453 if (!f) | |
| 3454 return 1; | |
| 3455 return ferror (f) || fclose (f) != 0; | |
| 3456 | |
| 3457 ; | |
| 3458 return 0; | |
| 3459 } | |
| 3460 _ACEOF | |
| 3461 ac_clean_files="$ac_clean_files conftest.out" | |
| 3462 # Check that the compiler produces executables we can run. If not, either | |
| 3463 # the compiler is broken, or we cross compile. | |
| 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
| 3465 printf %s "checking whether we are cross compiling... " >&6; } | |
| 3466 if test "$cross_compiling" != yes; then | |
| 3467 { { ac_try="$ac_link" | |
| 3468 case "(($ac_try" in | |
| 3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3470 *) ac_try_echo=$ac_try;; | |
| 3471 esac | |
| 3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3473 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 3474 (eval "$ac_link") 2>&5 | |
| 3475 ac_status=$? | |
| 3476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3477 test $ac_status = 0; } | |
| 3478 if { ac_try='./conftest$ac_cv_exeext' | |
| 3479 { { case "(($ac_try" in | |
| 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3481 *) ac_try_echo=$ac_try;; | |
| 3482 esac | |
| 3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3484 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 3485 (eval "$ac_try") 2>&5 | |
| 3486 ac_status=$? | |
| 3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3488 test $ac_status = 0; }; }; then | |
| 3489 cross_compiling=no | |
| 3490 else | |
| 3491 if test "$cross_compiling" = maybe; then | |
| 3492 cross_compiling=yes | |
| 3493 else | |
| 3494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 3495 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 3496 as_fn_error 77 "cannot run C compiled programs. | |
| 3497 If you meant to cross compile, use '--host'. | |
| 3498 See 'config.log' for more details" "$LINENO" 5; } | |
| 3499 fi | |
| 3500 fi | |
| 3501 fi | |
| 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
| 3503 printf "%s\n" "$cross_compiling" >&6; } | |
| 3504 | |
| 3505 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ | |
| 3506 conftest.o conftest.obj conftest.out | |
| 3507 ac_clean_files=$ac_clean_files_save | |
| 3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
| 3509 printf %s "checking for suffix of object files... " >&6; } | |
| 3510 if test ${ac_cv_objext+y} | |
| 3511 then : | |
| 3512 printf %s "(cached) " >&6 | |
| 3513 else case e in #( | |
| 3514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3515 /* end confdefs.h. */ | |
| 3516 | |
| 3517 int | |
| 3518 main (void) | |
| 3519 { | |
| 3520 | |
| 3521 ; | |
| 3522 return 0; | |
| 3523 } | |
| 3524 _ACEOF | |
| 3525 rm -f conftest.o conftest.obj | |
| 3526 if { { ac_try="$ac_compile" | |
| 3527 case "(($ac_try" in | |
| 3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3529 *) ac_try_echo=$ac_try;; | |
| 3530 esac | |
| 3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3532 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 3533 (eval "$ac_compile") 2>&5 | |
| 3534 ac_status=$? | |
| 3535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3536 test $ac_status = 0; } | |
| 3537 then : | |
| 3538 for ac_file in conftest.o conftest.obj conftest.*; do | |
| 3539 test -f "$ac_file" || continue; | |
| 3540 case $ac_file in | |
| 3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
| 3542 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
| 3543 break;; | |
| 3544 esac | |
| 3545 done | |
| 3546 else case e in #( | |
| 3547 e) printf "%s\n" "$as_me: failed program was:" >&5 | |
| 3548 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 3549 | |
| 3550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 3551 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 3552 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
| 3553 See 'config.log' for more details" "$LINENO" 5; } ;; | |
| 3554 esac | |
| 3555 fi | |
| 3556 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; | |
| 3557 esac | |
| 3558 fi | |
| 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
| 3560 printf "%s\n" "$ac_cv_objext" >&6; } | |
| 3561 OBJEXT=$ac_cv_objext | |
| 3562 ac_objext=$OBJEXT | |
| 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
| 3564 printf %s "checking whether the compiler supports GNU C... " >&6; } | |
| 3565 if test ${ac_cv_c_compiler_gnu+y} | |
| 3566 then : | |
| 3567 printf %s "(cached) " >&6 | |
| 3568 else case e in #( | |
| 3569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3570 /* end confdefs.h. */ | |
| 3571 | |
| 3572 int | |
| 3573 main (void) | |
| 3574 { | |
| 3575 #ifndef __GNUC__ | |
| 3576 choke me | |
| 3577 #endif | |
| 3578 | |
| 3579 ; | |
| 3580 return 0; | |
| 3581 } | |
| 3582 _ACEOF | |
| 3583 if ac_fn_c_try_compile "$LINENO" | |
| 3584 then : | |
| 3585 ac_compiler_gnu=yes | |
| 3586 else case e in #( | |
| 3587 e) ac_compiler_gnu=no ;; | |
| 3588 esac | |
| 3589 fi | |
| 3590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 3591 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
| 3592 ;; | |
| 3593 esac | |
| 3594 fi | |
| 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
| 3596 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
| 3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3598 | |
| 3599 if test $ac_compiler_gnu = yes; then | |
| 3600 GCC=yes | |
| 3601 else | |
| 3602 GCC= | |
| 3603 fi | |
| 3604 ac_test_CFLAGS=${CFLAGS+y} | |
| 3605 ac_save_CFLAGS=$CFLAGS | |
| 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
| 3607 printf %s "checking whether $CC accepts -g... " >&6; } | |
| 3608 if test ${ac_cv_prog_cc_g+y} | |
| 3609 then : | |
| 3610 printf %s "(cached) " >&6 | |
| 3611 else case e in #( | |
| 3612 e) ac_save_c_werror_flag=$ac_c_werror_flag | |
| 3613 ac_c_werror_flag=yes | |
| 3614 ac_cv_prog_cc_g=no | |
| 3615 CFLAGS="-g" | |
| 3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3617 /* end confdefs.h. */ | |
| 3618 | |
| 3619 int | |
| 3620 main (void) | |
| 3621 { | |
| 3622 | |
| 3623 ; | |
| 3624 return 0; | |
| 3625 } | |
| 3626 _ACEOF | |
| 3627 if ac_fn_c_try_compile "$LINENO" | |
| 3628 then : | |
| 3629 ac_cv_prog_cc_g=yes | |
| 3630 else case e in #( | |
| 3631 e) CFLAGS="" | |
| 3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3633 /* end confdefs.h. */ | |
| 3634 | |
| 3635 int | |
| 3636 main (void) | |
| 3637 { | |
| 3638 | |
| 3639 ; | |
| 3640 return 0; | |
| 3641 } | |
| 3642 _ACEOF | |
| 3643 if ac_fn_c_try_compile "$LINENO" | |
| 3644 then : | |
| 3645 | |
| 3646 else case e in #( | |
| 3647 e) ac_c_werror_flag=$ac_save_c_werror_flag | |
| 3648 CFLAGS="-g" | |
| 3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3650 /* end confdefs.h. */ | |
| 3651 | |
| 3652 int | |
| 3653 main (void) | |
| 3654 { | |
| 3655 | |
| 3656 ; | |
| 3657 return 0; | |
| 3658 } | |
| 3659 _ACEOF | |
| 3660 if ac_fn_c_try_compile "$LINENO" | |
| 3661 then : | |
| 3662 ac_cv_prog_cc_g=yes | |
| 3663 fi | |
| 3664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 3665 esac | |
| 3666 fi | |
| 3667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 3668 esac | |
| 3669 fi | |
| 3670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 3671 ac_c_werror_flag=$ac_save_c_werror_flag ;; | |
| 3672 esac | |
| 3673 fi | |
| 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
| 3675 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
| 3676 if test $ac_test_CFLAGS; then | |
| 3677 CFLAGS=$ac_save_CFLAGS | |
| 3678 elif test $ac_cv_prog_cc_g = yes; then | |
| 3679 if test "$GCC" = yes; then | |
| 3680 CFLAGS="-g -O2" | |
| 3681 else | |
| 3682 CFLAGS="-g" | |
| 3683 fi | |
| 3684 else | |
| 3685 if test "$GCC" = yes; then | |
| 3686 CFLAGS="-O2" | |
| 3687 else | |
| 3688 CFLAGS= | |
| 3689 fi | |
| 3690 fi | |
| 3691 ac_prog_cc_stdc=no | |
| 3692 if test x$ac_prog_cc_stdc = xno | |
| 3693 then : | |
| 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
| 3695 printf %s "checking for $CC option to enable C11 features... " >&6; } | |
| 3696 if test ${ac_cv_prog_cc_c11+y} | |
| 3697 then : | |
| 3698 printf %s "(cached) " >&6 | |
| 3699 else case e in #( | |
| 3700 e) ac_cv_prog_cc_c11=no | |
| 3701 ac_save_CC=$CC | |
| 3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3703 /* end confdefs.h. */ | |
| 3704 $ac_c_conftest_c11_program | |
| 3705 _ACEOF | |
| 3706 for ac_arg in '' -std=gnu11 | |
| 3707 do | |
| 3708 CC="$ac_save_CC $ac_arg" | |
| 3709 if ac_fn_c_try_compile "$LINENO" | |
| 3710 then : | |
| 3711 ac_cv_prog_cc_c11=$ac_arg | |
| 3712 fi | |
| 3713 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
| 3714 test "x$ac_cv_prog_cc_c11" != "xno" && break | |
| 3715 done | |
| 3716 rm -f conftest.$ac_ext | |
| 3717 CC=$ac_save_CC ;; | |
| 3718 esac | |
| 3719 fi | |
| 3720 | |
| 3721 if test "x$ac_cv_prog_cc_c11" = xno | |
| 3722 then : | |
| 3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 3724 printf "%s\n" "unsupported" >&6; } | |
| 3725 else case e in #( | |
| 3726 e) if test "x$ac_cv_prog_cc_c11" = x | |
| 3727 then : | |
| 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 3729 printf "%s\n" "none needed" >&6; } | |
| 3730 else case e in #( | |
| 3731 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
| 3732 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
| 3733 CC="$CC $ac_cv_prog_cc_c11" ;; | |
| 3734 esac | |
| 3735 fi | |
| 3736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
| 3737 ac_prog_cc_stdc=c11 ;; | |
| 3738 esac | |
| 3739 fi | |
| 3740 fi | |
| 3741 if test x$ac_prog_cc_stdc = xno | |
| 3742 then : | |
| 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
| 3744 printf %s "checking for $CC option to enable C99 features... " >&6; } | |
| 3745 if test ${ac_cv_prog_cc_c99+y} | |
| 3746 then : | |
| 3747 printf %s "(cached) " >&6 | |
| 3748 else case e in #( | |
| 3749 e) ac_cv_prog_cc_c99=no | |
| 3750 ac_save_CC=$CC | |
| 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3752 /* end confdefs.h. */ | |
| 3753 $ac_c_conftest_c99_program | |
| 3754 _ACEOF | |
| 3755 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
| 3756 do | |
| 3757 CC="$ac_save_CC $ac_arg" | |
| 3758 if ac_fn_c_try_compile "$LINENO" | |
| 3759 then : | |
| 3760 ac_cv_prog_cc_c99=$ac_arg | |
| 3761 fi | |
| 3762 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
| 3763 test "x$ac_cv_prog_cc_c99" != "xno" && break | |
| 3764 done | |
| 3765 rm -f conftest.$ac_ext | |
| 3766 CC=$ac_save_CC ;; | |
| 3767 esac | |
| 3768 fi | |
| 3769 | |
| 3770 if test "x$ac_cv_prog_cc_c99" = xno | |
| 3771 then : | |
| 3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 3773 printf "%s\n" "unsupported" >&6; } | |
| 3774 else case e in #( | |
| 3775 e) if test "x$ac_cv_prog_cc_c99" = x | |
| 3776 then : | |
| 3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 3778 printf "%s\n" "none needed" >&6; } | |
| 3779 else case e in #( | |
| 3780 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
| 3781 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
| 3782 CC="$CC $ac_cv_prog_cc_c99" ;; | |
| 3783 esac | |
| 3784 fi | |
| 3785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
| 3786 ac_prog_cc_stdc=c99 ;; | |
| 3787 esac | |
| 3788 fi | |
| 3789 fi | |
| 3790 if test x$ac_prog_cc_stdc = xno | |
| 3791 then : | |
| 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
| 3793 printf %s "checking for $CC option to enable C89 features... " >&6; } | |
| 3794 if test ${ac_cv_prog_cc_c89+y} | |
| 3795 then : | |
| 3796 printf %s "(cached) " >&6 | |
| 3797 else case e in #( | |
| 3798 e) ac_cv_prog_cc_c89=no | |
| 3799 ac_save_CC=$CC | |
| 3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3801 /* end confdefs.h. */ | |
| 3802 $ac_c_conftest_c89_program | |
| 3803 _ACEOF | |
| 3804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
| 3805 do | |
| 3806 CC="$ac_save_CC $ac_arg" | |
| 3807 if ac_fn_c_try_compile "$LINENO" | |
| 3808 then : | |
| 3809 ac_cv_prog_cc_c89=$ac_arg | |
| 3810 fi | |
| 3811 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
| 3812 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
| 3813 done | |
| 3814 rm -f conftest.$ac_ext | |
| 3815 CC=$ac_save_CC ;; | |
| 3816 esac | |
| 3817 fi | |
| 3818 | |
| 3819 if test "x$ac_cv_prog_cc_c89" = xno | |
| 3820 then : | |
| 3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 3822 printf "%s\n" "unsupported" >&6; } | |
| 3823 else case e in #( | |
| 3824 e) if test "x$ac_cv_prog_cc_c89" = x | |
| 3825 then : | |
| 3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 3827 printf "%s\n" "none needed" >&6; } | |
| 3828 else case e in #( | |
| 3829 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
| 3830 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
| 3831 CC="$CC $ac_cv_prog_cc_c89" ;; | |
| 3832 esac | |
| 3833 fi | |
| 3834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
| 3835 ac_prog_cc_stdc=c89 ;; | |
| 3836 esac | |
| 3837 fi | |
| 3838 fi | |
| 3839 | |
| 3840 ac_ext=c | |
| 3841 ac_cpp='$CPP $CPPFLAGS' | |
| 3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3845 | |
| 3846 | |
| 3847 | |
| 3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
| 3849 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } | |
| 3850 | |
| 3851 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then | |
| 3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5 | |
| 3853 printf "%s\n" "loading" >&6; } | |
| 3854 . "${TCL_BIN_DIR}/tclConfig.sh" | |
| 3855 else | |
| 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
| 3857 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } | |
| 3858 fi | |
| 3859 | |
| 3860 # If the TCL_BIN_DIR is the build directory (not the install directory), | |
| 3861 # then set the common variable name to the value of the build variables. | |
| 3862 # For example, the variable TCL_LIB_SPEC will be set to the value | |
| 3863 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC | |
| 3864 # instead of TCL_BUILD_LIB_SPEC since it will work with both an | |
| 3865 # installed and uninstalled version of Tcl. | |
| 3866 if test -f "${TCL_BIN_DIR}/Makefile" ; then | |
| 3867 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" | |
| 3868 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" | |
| 3869 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" | |
| 3870 elif test "`uname -s`" = "Darwin"; then | |
| 3871 # If Tcl was built as a framework, attempt to use the libraries | |
| 3872 # from the framework at the given location so that linking works | |
| 3873 # against Tcl.framework installed in an arbitrary location. | |
| 3874 case ${TCL_DEFS} in | |
| 3875 *TCL_FRAMEWORK*) | |
| 3876 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then | |
| 3877 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ | |
| 3878 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do | |
| 3879 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then | |
| 3880 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" | |
| 3881 break | |
| 3882 fi | |
| 3883 done | |
| 3884 fi | |
| 3885 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then | |
| 3886 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" | |
| 3887 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" | |
| 3888 fi | |
| 3889 ;; | |
| 3890 esac | |
| 3891 fi | |
| 3892 | |
| 3893 | |
| 3894 | |
| 3895 | |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5 | |
| 3907 printf %s "checking platform... " >&6; } | |
| 3908 hold_cc=$CC; CC="$TCL_CC" | |
| 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3910 /* end confdefs.h. */ | |
| 3911 | |
| 3912 int | |
| 3913 main (void) | |
| 3914 { | |
| 3915 | |
| 3916 #ifdef _WIN32 | |
| 3917 #error win32 | |
| 3918 #endif | |
| 3919 | |
| 3920 ; | |
| 3921 return 0; | |
| 3922 } | |
| 3923 _ACEOF | |
| 3924 if ac_fn_c_try_compile "$LINENO" | |
| 3925 then : | |
| 3926 | |
| 3927 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise: | |
| 3928 TEA_PLATFORM="${TEA_PLATFORM-unix}" | |
| 3929 CYGPATH=echo | |
| 3930 | |
| 3931 else case e in #( | |
| 3932 e) | |
| 3933 TEA_PLATFORM="windows" | |
| 3934 # Extract the first word of "cygpath", so it can be a program name with args. | |
| 3935 set dummy cygpath; ac_word=$2 | |
| 3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3937 printf %s "checking for $ac_word... " >&6; } | |
| 3938 if test ${ac_cv_prog_CYGPATH+y} | |
| 3939 then : | |
| 3940 printf %s "(cached) " >&6 | |
| 3941 else case e in #( | |
| 3942 e) if test -n "$CYGPATH"; then | |
| 3943 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. | |
| 3944 else | |
| 3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3946 for as_dir in $PATH | |
| 3947 do | |
| 3948 IFS=$as_save_IFS | |
| 3949 case $as_dir in #((( | |
| 3950 '') as_dir=./ ;; | |
| 3951 */) ;; | |
| 3952 *) as_dir=$as_dir/ ;; | |
| 3953 esac | |
| 3954 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 3956 ac_cv_prog_CYGPATH="cygpath -m" | |
| 3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 3958 break 2 | |
| 3959 fi | |
| 3960 done | |
| 3961 done | |
| 3962 IFS=$as_save_IFS | |
| 3963 | |
| 3964 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" | |
| 3965 fi ;; | |
| 3966 esac | |
| 3967 fi | |
| 3968 CYGPATH=$ac_cv_prog_CYGPATH | |
| 3969 if test -n "$CYGPATH"; then | |
| 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 | |
| 3971 printf "%s\n" "$CYGPATH" >&6; } | |
| 3972 else | |
| 3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3974 printf "%s\n" "no" >&6; } | |
| 3975 fi | |
| 3976 | |
| 3977 | |
| 3978 ;; | |
| 3979 esac | |
| 3980 fi | |
| 3981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 3982 CC=$hold_cc | |
| 3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5 | |
| 3984 printf "%s\n" "$TEA_PLATFORM" >&6; } | |
| 3985 | |
| 3986 # The BUILD_$pkg is to define the correct extern storage class | |
| 3987 # handling when making this package | |
| 3988 | |
| 3989 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h | |
| 3990 | |
| 3991 # Do this here as we have fully defined TEA_PLATFORM now | |
| 3992 if test "${TEA_PLATFORM}" = "windows" ; then | |
| 3993 EXEEXT=".exe" | |
| 3994 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" | |
| 3995 fi | |
| 3996 | |
| 3997 # TEA specific: | |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 4005 | |
| 4006 #-------------------------------------------------------------------- | |
| 4007 # Load the tkConfig.sh file if necessary (Tk extension) | |
| 4008 #-------------------------------------------------------------------- | |
| 4009 | |
| 4010 #TEA_PATH_TKCONFIG | |
| 4011 #TEA_LOAD_TKCONFIG | |
| 4012 | |
| 4013 #----------------------------------------------------------------------- | |
| 4014 # Handle the --prefix=... option by defaulting to what Tcl gave. | |
| 4015 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. | |
| 4016 #----------------------------------------------------------------------- | |
| 4017 | |
| 4018 | |
| 4019 if test "${prefix}" = "NONE"; then | |
| 4020 prefix_default=yes | |
| 4021 if test x"${TCL_PREFIX}" != x; then | |
| 4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 | |
| 4023 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} | |
| 4024 prefix=${TCL_PREFIX} | |
| 4025 else | |
| 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5 | |
| 4027 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;} | |
| 4028 prefix=/usr/local | |
| 4029 fi | |
| 4030 fi | |
| 4031 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ | |
| 4032 -o x"${exec_prefix_default}" = x"yes" ; then | |
| 4033 if test x"${TCL_EXEC_PREFIX}" != x; then | |
| 4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 | |
| 4035 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} | |
| 4036 exec_prefix=${TCL_EXEC_PREFIX} | |
| 4037 else | |
| 4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5 | |
| 4039 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} | |
| 4040 exec_prefix=$prefix | |
| 4041 fi | |
| 4042 fi | |
| 4043 | |
| 4044 | |
| 4045 #----------------------------------------------------------------------- | |
| 4046 # Standard compiler checks. | |
| 4047 # This sets up CC by using the CC env var, or looks for gcc otherwise. | |
| 4048 # This also calls AC_PROG_CC and a few others to create the basic setup | |
| 4049 # necessary to compile executables. | |
| 4050 #----------------------------------------------------------------------- | |
| 4051 | |
| 4052 | |
| 4053 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) | |
| 4054 # in this macro, they need to go into TEA_SETUP_COMPILER instead. | |
| 4055 | |
| 4056 ac_ext=c | |
| 4057 ac_cpp='$CPP $CPPFLAGS' | |
| 4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 4061 if test -n "$ac_tool_prefix"; then | |
| 4062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
| 4063 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
| 4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4065 printf %s "checking for $ac_word... " >&6; } | |
| 4066 if test ${ac_cv_prog_CC+y} | |
| 4067 then : | |
| 4068 printf %s "(cached) " >&6 | |
| 4069 else case e in #( | |
| 4070 e) if test -n "$CC"; then | |
| 4071 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 4072 else | |
| 4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4074 for as_dir in $PATH | |
| 4075 do | |
| 4076 IFS=$as_save_IFS | |
| 4077 case $as_dir in #((( | |
| 4078 '') as_dir=./ ;; | |
| 4079 */) ;; | |
| 4080 *) as_dir=$as_dir/ ;; | |
| 4081 esac | |
| 4082 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4084 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
| 4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4086 break 2 | |
| 4087 fi | |
| 4088 done | |
| 4089 done | |
| 4090 IFS=$as_save_IFS | |
| 4091 | |
| 4092 fi ;; | |
| 4093 esac | |
| 4094 fi | |
| 4095 CC=$ac_cv_prog_CC | |
| 4096 if test -n "$CC"; then | |
| 4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 4098 printf "%s\n" "$CC" >&6; } | |
| 4099 else | |
| 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4101 printf "%s\n" "no" >&6; } | |
| 4102 fi | |
| 4103 | |
| 4104 | |
| 4105 fi | |
| 4106 if test -z "$ac_cv_prog_CC"; then | |
| 4107 ac_ct_CC=$CC | |
| 4108 # Extract the first word of "gcc", so it can be a program name with args. | |
| 4109 set dummy gcc; ac_word=$2 | |
| 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4111 printf %s "checking for $ac_word... " >&6; } | |
| 4112 if test ${ac_cv_prog_ac_ct_CC+y} | |
| 4113 then : | |
| 4114 printf %s "(cached) " >&6 | |
| 4115 else case e in #( | |
| 4116 e) if test -n "$ac_ct_CC"; then | |
| 4117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 4118 else | |
| 4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4120 for as_dir in $PATH | |
| 4121 do | |
| 4122 IFS=$as_save_IFS | |
| 4123 case $as_dir in #((( | |
| 4124 '') as_dir=./ ;; | |
| 4125 */) ;; | |
| 4126 *) as_dir=$as_dir/ ;; | |
| 4127 esac | |
| 4128 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4130 ac_cv_prog_ac_ct_CC="gcc" | |
| 4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4132 break 2 | |
| 4133 fi | |
| 4134 done | |
| 4135 done | |
| 4136 IFS=$as_save_IFS | |
| 4137 | |
| 4138 fi ;; | |
| 4139 esac | |
| 4140 fi | |
| 4141 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 4142 if test -n "$ac_ct_CC"; then | |
| 4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 4144 printf "%s\n" "$ac_ct_CC" >&6; } | |
| 4145 else | |
| 4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4147 printf "%s\n" "no" >&6; } | |
| 4148 fi | |
| 4149 | |
| 4150 if test "x$ac_ct_CC" = x; then | |
| 4151 CC="" | |
| 4152 else | |
| 4153 case $cross_compiling:$ac_tool_warned in | |
| 4154 yes:) | |
| 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 4156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 4157 ac_tool_warned=yes ;; | |
| 4158 esac | |
| 4159 CC=$ac_ct_CC | |
| 4160 fi | |
| 4161 else | |
| 4162 CC="$ac_cv_prog_CC" | |
| 4163 fi | |
| 4164 | |
| 4165 if test -z "$CC"; then | |
| 4166 if test -n "$ac_tool_prefix"; then | |
| 4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
| 4168 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
| 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4170 printf %s "checking for $ac_word... " >&6; } | |
| 4171 if test ${ac_cv_prog_CC+y} | |
| 4172 then : | |
| 4173 printf %s "(cached) " >&6 | |
| 4174 else case e in #( | |
| 4175 e) if test -n "$CC"; then | |
| 4176 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 4177 else | |
| 4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4179 for as_dir in $PATH | |
| 4180 do | |
| 4181 IFS=$as_save_IFS | |
| 4182 case $as_dir in #((( | |
| 4183 '') as_dir=./ ;; | |
| 4184 */) ;; | |
| 4185 *) as_dir=$as_dir/ ;; | |
| 4186 esac | |
| 4187 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4189 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
| 4190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4191 break 2 | |
| 4192 fi | |
| 4193 done | |
| 4194 done | |
| 4195 IFS=$as_save_IFS | |
| 4196 | |
| 4197 fi ;; | |
| 4198 esac | |
| 4199 fi | |
| 4200 CC=$ac_cv_prog_CC | |
| 4201 if test -n "$CC"; then | |
| 4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 4203 printf "%s\n" "$CC" >&6; } | |
| 4204 else | |
| 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4206 printf "%s\n" "no" >&6; } | |
| 4207 fi | |
| 4208 | |
| 4209 | |
| 4210 fi | |
| 4211 fi | |
| 4212 if test -z "$CC"; then | |
| 4213 # Extract the first word of "cc", so it can be a program name with args. | |
| 4214 set dummy cc; ac_word=$2 | |
| 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4216 printf %s "checking for $ac_word... " >&6; } | |
| 4217 if test ${ac_cv_prog_CC+y} | |
| 4218 then : | |
| 4219 printf %s "(cached) " >&6 | |
| 4220 else case e in #( | |
| 4221 e) if test -n "$CC"; then | |
| 4222 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 4223 else | |
| 4224 ac_prog_rejected=no | |
| 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4226 for as_dir in $PATH | |
| 4227 do | |
| 4228 IFS=$as_save_IFS | |
| 4229 case $as_dir in #((( | |
| 4230 '') as_dir=./ ;; | |
| 4231 */) ;; | |
| 4232 *) as_dir=$as_dir/ ;; | |
| 4233 esac | |
| 4234 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4236 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
| 4237 ac_prog_rejected=yes | |
| 4238 continue | |
| 4239 fi | |
| 4240 ac_cv_prog_CC="cc" | |
| 4241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4242 break 2 | |
| 4243 fi | |
| 4244 done | |
| 4245 done | |
| 4246 IFS=$as_save_IFS | |
| 4247 | |
| 4248 if test $ac_prog_rejected = yes; then | |
| 4249 # We found a bogon in the path, so make sure we never use it. | |
| 4250 set dummy $ac_cv_prog_CC | |
| 4251 shift | |
| 4252 if test $# != 0; then | |
| 4253 # We chose a different compiler from the bogus one. | |
| 4254 # However, it has the same basename, so the bogon will be chosen | |
| 4255 # first if we set CC to just the basename; use the full file name. | |
| 4256 shift | |
| 4257 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
| 4258 fi | |
| 4259 fi | |
| 4260 fi ;; | |
| 4261 esac | |
| 4262 fi | |
| 4263 CC=$ac_cv_prog_CC | |
| 4264 if test -n "$CC"; then | |
| 4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 4266 printf "%s\n" "$CC" >&6; } | |
| 4267 else | |
| 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4269 printf "%s\n" "no" >&6; } | |
| 4270 fi | |
| 4271 | |
| 4272 | |
| 4273 fi | |
| 4274 if test -z "$CC"; then | |
| 4275 if test -n "$ac_tool_prefix"; then | |
| 4276 for ac_prog in cl.exe | |
| 4277 do | |
| 4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 4279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4281 printf %s "checking for $ac_word... " >&6; } | |
| 4282 if test ${ac_cv_prog_CC+y} | |
| 4283 then : | |
| 4284 printf %s "(cached) " >&6 | |
| 4285 else case e in #( | |
| 4286 e) if test -n "$CC"; then | |
| 4287 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 4288 else | |
| 4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4290 for as_dir in $PATH | |
| 4291 do | |
| 4292 IFS=$as_save_IFS | |
| 4293 case $as_dir in #((( | |
| 4294 '') as_dir=./ ;; | |
| 4295 */) ;; | |
| 4296 *) as_dir=$as_dir/ ;; | |
| 4297 esac | |
| 4298 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
| 4301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4302 break 2 | |
| 4303 fi | |
| 4304 done | |
| 4305 done | |
| 4306 IFS=$as_save_IFS | |
| 4307 | |
| 4308 fi ;; | |
| 4309 esac | |
| 4310 fi | |
| 4311 CC=$ac_cv_prog_CC | |
| 4312 if test -n "$CC"; then | |
| 4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 4314 printf "%s\n" "$CC" >&6; } | |
| 4315 else | |
| 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4317 printf "%s\n" "no" >&6; } | |
| 4318 fi | |
| 4319 | |
| 4320 | |
| 4321 test -n "$CC" && break | |
| 4322 done | |
| 4323 fi | |
| 4324 if test -z "$CC"; then | |
| 4325 ac_ct_CC=$CC | |
| 4326 for ac_prog in cl.exe | |
| 4327 do | |
| 4328 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 4329 set dummy $ac_prog; ac_word=$2 | |
| 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4331 printf %s "checking for $ac_word... " >&6; } | |
| 4332 if test ${ac_cv_prog_ac_ct_CC+y} | |
| 4333 then : | |
| 4334 printf %s "(cached) " >&6 | |
| 4335 else case e in #( | |
| 4336 e) if test -n "$ac_ct_CC"; then | |
| 4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 4338 else | |
| 4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4340 for as_dir in $PATH | |
| 4341 do | |
| 4342 IFS=$as_save_IFS | |
| 4343 case $as_dir in #((( | |
| 4344 '') as_dir=./ ;; | |
| 4345 */) ;; | |
| 4346 *) as_dir=$as_dir/ ;; | |
| 4347 esac | |
| 4348 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4350 ac_cv_prog_ac_ct_CC="$ac_prog" | |
| 4351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4352 break 2 | |
| 4353 fi | |
| 4354 done | |
| 4355 done | |
| 4356 IFS=$as_save_IFS | |
| 4357 | |
| 4358 fi ;; | |
| 4359 esac | |
| 4360 fi | |
| 4361 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 4362 if test -n "$ac_ct_CC"; then | |
| 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 4364 printf "%s\n" "$ac_ct_CC" >&6; } | |
| 4365 else | |
| 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4367 printf "%s\n" "no" >&6; } | |
| 4368 fi | |
| 4369 | |
| 4370 | |
| 4371 test -n "$ac_ct_CC" && break | |
| 4372 done | |
| 4373 | |
| 4374 if test "x$ac_ct_CC" = x; then | |
| 4375 CC="" | |
| 4376 else | |
| 4377 case $cross_compiling:$ac_tool_warned in | |
| 4378 yes:) | |
| 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 4380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 4381 ac_tool_warned=yes ;; | |
| 4382 esac | |
| 4383 CC=$ac_ct_CC | |
| 4384 fi | |
| 4385 fi | |
| 4386 | |
| 4387 fi | |
| 4388 if test -z "$CC"; then | |
| 4389 if test -n "$ac_tool_prefix"; then | |
| 4390 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
| 4391 set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
| 4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4393 printf %s "checking for $ac_word... " >&6; } | |
| 4394 if test ${ac_cv_prog_CC+y} | |
| 4395 then : | |
| 4396 printf %s "(cached) " >&6 | |
| 4397 else case e in #( | |
| 4398 e) if test -n "$CC"; then | |
| 4399 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 4400 else | |
| 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4402 for as_dir in $PATH | |
| 4403 do | |
| 4404 IFS=$as_save_IFS | |
| 4405 case $as_dir in #((( | |
| 4406 '') as_dir=./ ;; | |
| 4407 */) ;; | |
| 4408 *) as_dir=$as_dir/ ;; | |
| 4409 esac | |
| 4410 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4412 ac_cv_prog_CC="${ac_tool_prefix}clang" | |
| 4413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4414 break 2 | |
| 4415 fi | |
| 4416 done | |
| 4417 done | |
| 4418 IFS=$as_save_IFS | |
| 4419 | |
| 4420 fi ;; | |
| 4421 esac | |
| 4422 fi | |
| 4423 CC=$ac_cv_prog_CC | |
| 4424 if test -n "$CC"; then | |
| 4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 4426 printf "%s\n" "$CC" >&6; } | |
| 4427 else | |
| 4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4429 printf "%s\n" "no" >&6; } | |
| 4430 fi | |
| 4431 | |
| 4432 | |
| 4433 fi | |
| 4434 if test -z "$ac_cv_prog_CC"; then | |
| 4435 ac_ct_CC=$CC | |
| 4436 # Extract the first word of "clang", so it can be a program name with args. | |
| 4437 set dummy clang; ac_word=$2 | |
| 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4439 printf %s "checking for $ac_word... " >&6; } | |
| 4440 if test ${ac_cv_prog_ac_ct_CC+y} | |
| 4441 then : | |
| 4442 printf %s "(cached) " >&6 | |
| 4443 else case e in #( | |
| 4444 e) if test -n "$ac_ct_CC"; then | |
| 4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 4446 else | |
| 4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4448 for as_dir in $PATH | |
| 4449 do | |
| 4450 IFS=$as_save_IFS | |
| 4451 case $as_dir in #((( | |
| 4452 '') as_dir=./ ;; | |
| 4453 */) ;; | |
| 4454 *) as_dir=$as_dir/ ;; | |
| 4455 esac | |
| 4456 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 4458 ac_cv_prog_ac_ct_CC="clang" | |
| 4459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 4460 break 2 | |
| 4461 fi | |
| 4462 done | |
| 4463 done | |
| 4464 IFS=$as_save_IFS | |
| 4465 | |
| 4466 fi ;; | |
| 4467 esac | |
| 4468 fi | |
| 4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 4470 if test -n "$ac_ct_CC"; then | |
| 4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 4472 printf "%s\n" "$ac_ct_CC" >&6; } | |
| 4473 else | |
| 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4475 printf "%s\n" "no" >&6; } | |
| 4476 fi | |
| 4477 | |
| 4478 if test "x$ac_ct_CC" = x; then | |
| 4479 CC="" | |
| 4480 else | |
| 4481 case $cross_compiling:$ac_tool_warned in | |
| 4482 yes:) | |
| 4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 4484 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 4485 ac_tool_warned=yes ;; | |
| 4486 esac | |
| 4487 CC=$ac_ct_CC | |
| 4488 fi | |
| 4489 else | |
| 4490 CC="$ac_cv_prog_CC" | |
| 4491 fi | |
| 4492 | |
| 4493 fi | |
| 4494 | |
| 4495 | |
| 4496 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 4497 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 4498 as_fn_error $? "no acceptable C compiler found in \$PATH | |
| 4499 See 'config.log' for more details" "$LINENO" 5; } | |
| 4500 | |
| 4501 # Provide some information about the compiler. | |
| 4502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
| 4503 set X $ac_compile | |
| 4504 ac_compiler=$2 | |
| 4505 for ac_option in --version -v -V -qversion -version; do | |
| 4506 { { ac_try="$ac_compiler $ac_option >&5" | |
| 4507 case "(($ac_try" in | |
| 4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 4509 *) ac_try_echo=$ac_try;; | |
| 4510 esac | |
| 4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 4512 printf "%s\n" "$ac_try_echo"; } >&5 | |
| 4513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
| 4514 ac_status=$? | |
| 4515 if test -s conftest.err; then | |
| 4516 sed '10a\ | |
| 4517 ... rest of stderr output deleted ... | |
| 4518 10q' conftest.err >conftest.er1 | |
| 4519 cat conftest.er1 >&5 | |
| 4520 fi | |
| 4521 rm -f conftest.er1 conftest.err | |
| 4522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 4523 test $ac_status = 0; } | |
| 4524 done | |
| 4525 | |
| 4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
| 4527 printf %s "checking whether the compiler supports GNU C... " >&6; } | |
| 4528 if test ${ac_cv_c_compiler_gnu+y} | |
| 4529 then : | |
| 4530 printf %s "(cached) " >&6 | |
| 4531 else case e in #( | |
| 4532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4533 /* end confdefs.h. */ | |
| 4534 | |
| 4535 int | |
| 4536 main (void) | |
| 4537 { | |
| 4538 #ifndef __GNUC__ | |
| 4539 choke me | |
| 4540 #endif | |
| 4541 | |
| 4542 ; | |
| 4543 return 0; | |
| 4544 } | |
| 4545 _ACEOF | |
| 4546 if ac_fn_c_try_compile "$LINENO" | |
| 4547 then : | |
| 4548 ac_compiler_gnu=yes | |
| 4549 else case e in #( | |
| 4550 e) ac_compiler_gnu=no ;; | |
| 4551 esac | |
| 4552 fi | |
| 4553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 4554 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
| 4555 ;; | |
| 4556 esac | |
| 4557 fi | |
| 4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
| 4559 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
| 4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 4561 | |
| 4562 if test $ac_compiler_gnu = yes; then | |
| 4563 GCC=yes | |
| 4564 else | |
| 4565 GCC= | |
| 4566 fi | |
| 4567 ac_test_CFLAGS=${CFLAGS+y} | |
| 4568 ac_save_CFLAGS=$CFLAGS | |
| 4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
| 4570 printf %s "checking whether $CC accepts -g... " >&6; } | |
| 4571 if test ${ac_cv_prog_cc_g+y} | |
| 4572 then : | |
| 4573 printf %s "(cached) " >&6 | |
| 4574 else case e in #( | |
| 4575 e) ac_save_c_werror_flag=$ac_c_werror_flag | |
| 4576 ac_c_werror_flag=yes | |
| 4577 ac_cv_prog_cc_g=no | |
| 4578 CFLAGS="-g" | |
| 4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4580 /* end confdefs.h. */ | |
| 4581 | |
| 4582 int | |
| 4583 main (void) | |
| 4584 { | |
| 4585 | |
| 4586 ; | |
| 4587 return 0; | |
| 4588 } | |
| 4589 _ACEOF | |
| 4590 if ac_fn_c_try_compile "$LINENO" | |
| 4591 then : | |
| 4592 ac_cv_prog_cc_g=yes | |
| 4593 else case e in #( | |
| 4594 e) CFLAGS="" | |
| 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4596 /* end confdefs.h. */ | |
| 4597 | |
| 4598 int | |
| 4599 main (void) | |
| 4600 { | |
| 4601 | |
| 4602 ; | |
| 4603 return 0; | |
| 4604 } | |
| 4605 _ACEOF | |
| 4606 if ac_fn_c_try_compile "$LINENO" | |
| 4607 then : | |
| 4608 | |
| 4609 else case e in #( | |
| 4610 e) ac_c_werror_flag=$ac_save_c_werror_flag | |
| 4611 CFLAGS="-g" | |
| 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4613 /* end confdefs.h. */ | |
| 4614 | |
| 4615 int | |
| 4616 main (void) | |
| 4617 { | |
| 4618 | |
| 4619 ; | |
| 4620 return 0; | |
| 4621 } | |
| 4622 _ACEOF | |
| 4623 if ac_fn_c_try_compile "$LINENO" | |
| 4624 then : | |
| 4625 ac_cv_prog_cc_g=yes | |
| 4626 fi | |
| 4627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 4628 esac | |
| 4629 fi | |
| 4630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 4631 esac | |
| 4632 fi | |
| 4633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 4634 ac_c_werror_flag=$ac_save_c_werror_flag ;; | |
| 4635 esac | |
| 4636 fi | |
| 4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
| 4638 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
| 4639 if test $ac_test_CFLAGS; then | |
| 4640 CFLAGS=$ac_save_CFLAGS | |
| 4641 elif test $ac_cv_prog_cc_g = yes; then | |
| 4642 if test "$GCC" = yes; then | |
| 4643 CFLAGS="-g -O2" | |
| 4644 else | |
| 4645 CFLAGS="-g" | |
| 4646 fi | |
| 4647 else | |
| 4648 if test "$GCC" = yes; then | |
| 4649 CFLAGS="-O2" | |
| 4650 else | |
| 4651 CFLAGS= | |
| 4652 fi | |
| 4653 fi | |
| 4654 ac_prog_cc_stdc=no | |
| 4655 if test x$ac_prog_cc_stdc = xno | |
| 4656 then : | |
| 4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
| 4658 printf %s "checking for $CC option to enable C11 features... " >&6; } | |
| 4659 if test ${ac_cv_prog_cc_c11+y} | |
| 4660 then : | |
| 4661 printf %s "(cached) " >&6 | |
| 4662 else case e in #( | |
| 4663 e) ac_cv_prog_cc_c11=no | |
| 4664 ac_save_CC=$CC | |
| 4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4666 /* end confdefs.h. */ | |
| 4667 $ac_c_conftest_c11_program | |
| 4668 _ACEOF | |
| 4669 for ac_arg in '' -std=gnu11 | |
| 4670 do | |
| 4671 CC="$ac_save_CC $ac_arg" | |
| 4672 if ac_fn_c_try_compile "$LINENO" | |
| 4673 then : | |
| 4674 ac_cv_prog_cc_c11=$ac_arg | |
| 4675 fi | |
| 4676 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
| 4677 test "x$ac_cv_prog_cc_c11" != "xno" && break | |
| 4678 done | |
| 4679 rm -f conftest.$ac_ext | |
| 4680 CC=$ac_save_CC ;; | |
| 4681 esac | |
| 4682 fi | |
| 4683 | |
| 4684 if test "x$ac_cv_prog_cc_c11" = xno | |
| 4685 then : | |
| 4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 4687 printf "%s\n" "unsupported" >&6; } | |
| 4688 else case e in #( | |
| 4689 e) if test "x$ac_cv_prog_cc_c11" = x | |
| 4690 then : | |
| 4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 4692 printf "%s\n" "none needed" >&6; } | |
| 4693 else case e in #( | |
| 4694 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
| 4695 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
| 4696 CC="$CC $ac_cv_prog_cc_c11" ;; | |
| 4697 esac | |
| 4698 fi | |
| 4699 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
| 4700 ac_prog_cc_stdc=c11 ;; | |
| 4701 esac | |
| 4702 fi | |
| 4703 fi | |
| 4704 if test x$ac_prog_cc_stdc = xno | |
| 4705 then : | |
| 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
| 4707 printf %s "checking for $CC option to enable C99 features... " >&6; } | |
| 4708 if test ${ac_cv_prog_cc_c99+y} | |
| 4709 then : | |
| 4710 printf %s "(cached) " >&6 | |
| 4711 else case e in #( | |
| 4712 e) ac_cv_prog_cc_c99=no | |
| 4713 ac_save_CC=$CC | |
| 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4715 /* end confdefs.h. */ | |
| 4716 $ac_c_conftest_c99_program | |
| 4717 _ACEOF | |
| 4718 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
| 4719 do | |
| 4720 CC="$ac_save_CC $ac_arg" | |
| 4721 if ac_fn_c_try_compile "$LINENO" | |
| 4722 then : | |
| 4723 ac_cv_prog_cc_c99=$ac_arg | |
| 4724 fi | |
| 4725 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
| 4726 test "x$ac_cv_prog_cc_c99" != "xno" && break | |
| 4727 done | |
| 4728 rm -f conftest.$ac_ext | |
| 4729 CC=$ac_save_CC ;; | |
| 4730 esac | |
| 4731 fi | |
| 4732 | |
| 4733 if test "x$ac_cv_prog_cc_c99" = xno | |
| 4734 then : | |
| 4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 4736 printf "%s\n" "unsupported" >&6; } | |
| 4737 else case e in #( | |
| 4738 e) if test "x$ac_cv_prog_cc_c99" = x | |
| 4739 then : | |
| 4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 4741 printf "%s\n" "none needed" >&6; } | |
| 4742 else case e in #( | |
| 4743 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
| 4744 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
| 4745 CC="$CC $ac_cv_prog_cc_c99" ;; | |
| 4746 esac | |
| 4747 fi | |
| 4748 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
| 4749 ac_prog_cc_stdc=c99 ;; | |
| 4750 esac | |
| 4751 fi | |
| 4752 fi | |
| 4753 if test x$ac_prog_cc_stdc = xno | |
| 4754 then : | |
| 4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
| 4756 printf %s "checking for $CC option to enable C89 features... " >&6; } | |
| 4757 if test ${ac_cv_prog_cc_c89+y} | |
| 4758 then : | |
| 4759 printf %s "(cached) " >&6 | |
| 4760 else case e in #( | |
| 4761 e) ac_cv_prog_cc_c89=no | |
| 4762 ac_save_CC=$CC | |
| 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4764 /* end confdefs.h. */ | |
| 4765 $ac_c_conftest_c89_program | |
| 4766 _ACEOF | |
| 4767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
| 4768 do | |
| 4769 CC="$ac_save_CC $ac_arg" | |
| 4770 if ac_fn_c_try_compile "$LINENO" | |
| 4771 then : | |
| 4772 ac_cv_prog_cc_c89=$ac_arg | |
| 4773 fi | |
| 4774 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
| 4775 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
| 4776 done | |
| 4777 rm -f conftest.$ac_ext | |
| 4778 CC=$ac_save_CC ;; | |
| 4779 esac | |
| 4780 fi | |
| 4781 | |
| 4782 if test "x$ac_cv_prog_cc_c89" = xno | |
| 4783 then : | |
| 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 4785 printf "%s\n" "unsupported" >&6; } | |
| 4786 else case e in #( | |
| 4787 e) if test "x$ac_cv_prog_cc_c89" = x | |
| 4788 then : | |
| 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 4790 printf "%s\n" "none needed" >&6; } | |
| 4791 else case e in #( | |
| 4792 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
| 4793 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
| 4794 CC="$CC $ac_cv_prog_cc_c89" ;; | |
| 4795 esac | |
| 4796 fi | |
| 4797 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
| 4798 ac_prog_cc_stdc=c89 ;; | |
| 4799 esac | |
| 4800 fi | |
| 4801 fi | |
| 4802 | |
| 4803 ac_ext=c | |
| 4804 ac_cpp='$CPP $CPPFLAGS' | |
| 4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 4808 | |
| 4809 ac_ext=c | |
| 4810 ac_cpp='$CPP $CPPFLAGS' | |
| 4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
| 4815 printf %s "checking how to run the C preprocessor... " >&6; } | |
| 4816 # On Suns, sometimes $CPP names a directory. | |
| 4817 if test -n "$CPP" && test -d "$CPP"; then | |
| 4818 CPP= | |
| 4819 fi | |
| 4820 if test -z "$CPP"; then | |
| 4821 if test ${ac_cv_prog_CPP+y} | |
| 4822 then : | |
| 4823 printf %s "(cached) " >&6 | |
| 4824 else case e in #( | |
| 4825 e) # Double quotes because $CC needs to be expanded | |
| 4826 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp | |
| 4827 do | |
| 4828 ac_preproc_ok=false | |
| 4829 for ac_c_preproc_warn_flag in '' yes | |
| 4830 do | |
| 4831 # Use a header file that comes with gcc, so configuring glibc | |
| 4832 # with a fresh cross-compiler works. | |
| 4833 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 4834 # not just through cpp. "Syntax error" is here to catch this case. | |
| 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4836 /* end confdefs.h. */ | |
| 4837 #include <limits.h> | |
| 4838 Syntax error | |
| 4839 _ACEOF | |
| 4840 if ac_fn_c_try_cpp "$LINENO" | |
| 4841 then : | |
| 4842 | |
| 4843 else case e in #( | |
| 4844 e) # Broken: fails on valid input. | |
| 4845 continue ;; | |
| 4846 esac | |
| 4847 fi | |
| 4848 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 4849 | |
| 4850 # OK, works on sane cases. Now check whether nonexistent headers | |
| 4851 # can be detected and how. | |
| 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4853 /* end confdefs.h. */ | |
| 4854 #include <ac_nonexistent.h> | |
| 4855 _ACEOF | |
| 4856 if ac_fn_c_try_cpp "$LINENO" | |
| 4857 then : | |
| 4858 # Broken: success on invalid input. | |
| 4859 continue | |
| 4860 else case e in #( | |
| 4861 e) # Passes both tests. | |
| 4862 ac_preproc_ok=: | |
| 4863 break ;; | |
| 4864 esac | |
| 4865 fi | |
| 4866 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 4867 | |
| 4868 done | |
| 4869 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 4870 rm -f conftest.i conftest.err conftest.$ac_ext | |
| 4871 if $ac_preproc_ok | |
| 4872 then : | |
| 4873 break | |
| 4874 fi | |
| 4875 | |
| 4876 done | |
| 4877 ac_cv_prog_CPP=$CPP | |
| 4878 ;; | |
| 4879 esac | |
| 4880 fi | |
| 4881 CPP=$ac_cv_prog_CPP | |
| 4882 else | |
| 4883 ac_cv_prog_CPP=$CPP | |
| 4884 fi | |
| 4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
| 4886 printf "%s\n" "$CPP" >&6; } | |
| 4887 ac_preproc_ok=false | |
| 4888 for ac_c_preproc_warn_flag in '' yes | |
| 4889 do | |
| 4890 # Use a header file that comes with gcc, so configuring glibc | |
| 4891 # with a fresh cross-compiler works. | |
| 4892 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 4893 # not just through cpp. "Syntax error" is here to catch this case. | |
| 4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4895 /* end confdefs.h. */ | |
| 4896 #include <limits.h> | |
| 4897 Syntax error | |
| 4898 _ACEOF | |
| 4899 if ac_fn_c_try_cpp "$LINENO" | |
| 4900 then : | |
| 4901 | |
| 4902 else case e in #( | |
| 4903 e) # Broken: fails on valid input. | |
| 4904 continue ;; | |
| 4905 esac | |
| 4906 fi | |
| 4907 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 4908 | |
| 4909 # OK, works on sane cases. Now check whether nonexistent headers | |
| 4910 # can be detected and how. | |
| 4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 4912 /* end confdefs.h. */ | |
| 4913 #include <ac_nonexistent.h> | |
| 4914 _ACEOF | |
| 4915 if ac_fn_c_try_cpp "$LINENO" | |
| 4916 then : | |
| 4917 # Broken: success on invalid input. | |
| 4918 continue | |
| 4919 else case e in #( | |
| 4920 e) # Passes both tests. | |
| 4921 ac_preproc_ok=: | |
| 4922 break ;; | |
| 4923 esac | |
| 4924 fi | |
| 4925 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 4926 | |
| 4927 done | |
| 4928 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 4929 rm -f conftest.i conftest.err conftest.$ac_ext | |
| 4930 if $ac_preproc_ok | |
| 4931 then : | |
| 4932 | |
| 4933 else case e in #( | |
| 4934 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
| 4935 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
| 4936 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
| 4937 See 'config.log' for more details" "$LINENO" 5; } ;; | |
| 4938 esac | |
| 4939 fi | |
| 4940 | |
| 4941 ac_ext=c | |
| 4942 ac_cpp='$CPP $CPPFLAGS' | |
| 4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 4946 | |
| 4947 | |
| 4948 #-------------------------------------------------------------------- | |
| 4949 # Checks to see if the make program sets the $MAKE variable. | |
| 4950 #-------------------------------------------------------------------- | |
| 4951 | |
| 4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
| 4953 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
| 4954 set x ${MAKE-make} | |
| 4955 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
| 4956 if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
| 4957 then : | |
| 4958 printf %s "(cached) " >&6 | |
| 4959 else case e in #( | |
| 4960 e) cat >conftest.make <<\_ACEOF | |
| 4961 SHELL = /bin/sh | |
| 4962 all: | |
| 4963 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
| 4964 _ACEOF | |
| 4965 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
| 4966 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
| 4967 *@@@%%%=?*=@@@%%%*) | |
| 4968 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
| 4969 *) | |
| 4970 eval ac_cv_prog_make_${ac_make}_set=no;; | |
| 4971 esac | |
| 4972 rm -f conftest.make ;; | |
| 4973 esac | |
| 4974 fi | |
| 4975 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
| 4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 4977 printf "%s\n" "yes" >&6; } | |
| 4978 SET_MAKE= | |
| 4979 else | |
| 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4981 printf "%s\n" "no" >&6; } | |
| 4982 SET_MAKE="MAKE=${MAKE-make}" | |
| 4983 fi | |
| 4984 | |
| 4985 | |
| 4986 #-------------------------------------------------------------------- | |
| 4987 # Find ranlib | |
| 4988 #-------------------------------------------------------------------- | |
| 4989 | |
| 4990 if test -n "$ac_tool_prefix"; then | |
| 4991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
| 4992 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
| 4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4994 printf %s "checking for $ac_word... " >&6; } | |
| 4995 if test ${ac_cv_prog_RANLIB+y} | |
| 4996 then : | |
| 4997 printf %s "(cached) " >&6 | |
| 4998 else case e in #( | |
| 4999 e) if test -n "$RANLIB"; then | |
| 5000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
| 5001 else | |
| 5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5003 for as_dir in $PATH | |
| 5004 do | |
| 5005 IFS=$as_save_IFS | |
| 5006 case $as_dir in #((( | |
| 5007 '') as_dir=./ ;; | |
| 5008 */) ;; | |
| 5009 *) as_dir=$as_dir/ ;; | |
| 5010 esac | |
| 5011 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 5013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
| 5014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 5015 break 2 | |
| 5016 fi | |
| 5017 done | |
| 5018 done | |
| 5019 IFS=$as_save_IFS | |
| 5020 | |
| 5021 fi ;; | |
| 5022 esac | |
| 5023 fi | |
| 5024 RANLIB=$ac_cv_prog_RANLIB | |
| 5025 if test -n "$RANLIB"; then | |
| 5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
| 5027 printf "%s\n" "$RANLIB" >&6; } | |
| 5028 else | |
| 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5030 printf "%s\n" "no" >&6; } | |
| 5031 fi | |
| 5032 | |
| 5033 | |
| 5034 fi | |
| 5035 if test -z "$ac_cv_prog_RANLIB"; then | |
| 5036 ac_ct_RANLIB=$RANLIB | |
| 5037 # Extract the first word of "ranlib", so it can be a program name with args. | |
| 5038 set dummy ranlib; ac_word=$2 | |
| 5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5040 printf %s "checking for $ac_word... " >&6; } | |
| 5041 if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
| 5042 then : | |
| 5043 printf %s "(cached) " >&6 | |
| 5044 else case e in #( | |
| 5045 e) if test -n "$ac_ct_RANLIB"; then | |
| 5046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
| 5047 else | |
| 5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5049 for as_dir in $PATH | |
| 5050 do | |
| 5051 IFS=$as_save_IFS | |
| 5052 case $as_dir in #((( | |
| 5053 '') as_dir=./ ;; | |
| 5054 */) ;; | |
| 5055 *) as_dir=$as_dir/ ;; | |
| 5056 esac | |
| 5057 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 5059 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
| 5060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 5061 break 2 | |
| 5062 fi | |
| 5063 done | |
| 5064 done | |
| 5065 IFS=$as_save_IFS | |
| 5066 | |
| 5067 fi ;; | |
| 5068 esac | |
| 5069 fi | |
| 5070 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
| 5071 if test -n "$ac_ct_RANLIB"; then | |
| 5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
| 5073 printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
| 5074 else | |
| 5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5076 printf "%s\n" "no" >&6; } | |
| 5077 fi | |
| 5078 | |
| 5079 if test "x$ac_ct_RANLIB" = x; then | |
| 5080 RANLIB="" | |
| 5081 else | |
| 5082 case $cross_compiling:$ac_tool_warned in | |
| 5083 yes:) | |
| 5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 5085 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 5086 ac_tool_warned=yes ;; | |
| 5087 esac | |
| 5088 RANLIB=$ac_ct_RANLIB | |
| 5089 fi | |
| 5090 else | |
| 5091 RANLIB="$ac_cv_prog_RANLIB" | |
| 5092 fi | |
| 5093 | |
| 5094 | |
| 5095 #-------------------------------------------------------------------- | |
| 5096 # Determines the correct binary file extension (.o, .obj, .exe etc.) | |
| 5097 #-------------------------------------------------------------------- | |
| 5098 | |
| 5099 | |
| 5100 | |
| 5101 | |
| 5102 ac_header= ac_cache= | |
| 5103 for ac_item in $ac_header_c_list | |
| 5104 do | |
| 5105 if test $ac_cache; then | |
| 5106 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
| 5107 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
| 5108 printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
| 5109 fi | |
| 5110 ac_header= ac_cache= | |
| 5111 elif test $ac_header; then | |
| 5112 ac_cache=$ac_item | |
| 5113 else | |
| 5114 ac_header=$ac_item | |
| 5115 fi | |
| 5116 done | |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
| 5125 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
| 5126 then : | |
| 5127 | |
| 5128 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
| 5129 | |
| 5130 fi | |
| 5131 | |
| 5132 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. | |
| 5133 | |
| 5134 | |
| 5135 #------------------------------------------------------------------------ | |
| 5136 # If we're using GCC, see if the compiler understands -pipe. If so, use it. | |
| 5137 # It makes compiling go faster. (This is only a performance feature.) | |
| 5138 #------------------------------------------------------------------------ | |
| 5139 | |
| 5140 if test -z "$no_pipe" -a -n "$GCC"; then | |
| 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 | |
| 5142 printf %s "checking if the compiler understands -pipe... " >&6; } | |
| 5143 if test ${tcl_cv_cc_pipe+y} | |
| 5144 then : | |
| 5145 printf %s "(cached) " >&6 | |
| 5146 else case e in #( | |
| 5147 e) | |
| 5148 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" | |
| 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5150 /* end confdefs.h. */ | |
| 5151 | |
| 5152 int | |
| 5153 main (void) | |
| 5154 { | |
| 5155 | |
| 5156 ; | |
| 5157 return 0; | |
| 5158 } | |
| 5159 _ACEOF | |
| 5160 if ac_fn_c_try_compile "$LINENO" | |
| 5161 then : | |
| 5162 tcl_cv_cc_pipe=yes | |
| 5163 else case e in #( | |
| 5164 e) tcl_cv_cc_pipe=no ;; | |
| 5165 esac | |
| 5166 fi | |
| 5167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 5168 CFLAGS=$hold_cflags ;; | |
| 5169 esac | |
| 5170 fi | |
| 5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5 | |
| 5172 printf "%s\n" "$tcl_cv_cc_pipe" >&6; } | |
| 5173 if test $tcl_cv_cc_pipe = yes; then | |
| 5174 CFLAGS="$CFLAGS -pipe" | |
| 5175 fi | |
| 5176 fi | |
| 5177 | |
| 5178 #-------------------------------------------------------------------- | |
| 5179 # Common compiler flag setup | |
| 5180 # ####GL Suppress "warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS", taken from | |
| 5181 # ####GL https://git.ruby-lang.org/ruby.git/commit/?id=ca3cc677b31897e7306ac3b4565a0dd928168b08 | |
| 5182 #-------------------------------------------------------------------- | |
| 5183 | |
| 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
| 5185 printf %s "checking whether byte ordering is bigendian... " >&6; } | |
| 5186 if test ${ac_cv_c_bigendian+y} | |
| 5187 then : | |
| 5188 printf %s "(cached) " >&6 | |
| 5189 else case e in #( | |
| 5190 e) ac_cv_c_bigendian=unknown | |
| 5191 # See if we're dealing with a universal compiler. | |
| 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5193 /* end confdefs.h. */ | |
| 5194 #ifndef __APPLE_CC__ | |
| 5195 not a universal capable compiler | |
| 5196 #endif | |
| 5197 typedef int dummy; | |
| 5198 | |
| 5199 _ACEOF | |
| 5200 if ac_fn_c_try_compile "$LINENO" | |
| 5201 then : | |
| 5202 | |
| 5203 # Check for potential -arch flags. It is not universal unless | |
| 5204 # there are at least two -arch flags with different values. | |
| 5205 ac_arch= | |
| 5206 ac_prev= | |
| 5207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
| 5208 if test -n "$ac_prev"; then | |
| 5209 case $ac_word in | |
| 5210 i?86 | x86_64 | ppc | ppc64) | |
| 5211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
| 5212 ac_arch=$ac_word | |
| 5213 else | |
| 5214 ac_cv_c_bigendian=universal | |
| 5215 break | |
| 5216 fi | |
| 5217 ;; | |
| 5218 esac | |
| 5219 ac_prev= | |
| 5220 elif test "x$ac_word" = "x-arch"; then | |
| 5221 ac_prev=arch | |
| 5222 fi | |
| 5223 done | |
| 5224 fi | |
| 5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 5226 if test $ac_cv_c_bigendian = unknown; then | |
| 5227 # See if sys/param.h defines the BYTE_ORDER macro. | |
| 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5229 /* end confdefs.h. */ | |
| 5230 #include <sys/types.h> | |
| 5231 #include <sys/param.h> | |
| 5232 | |
| 5233 int | |
| 5234 main (void) | |
| 5235 { | |
| 5236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ | |
| 5237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ | |
| 5238 && LITTLE_ENDIAN) | |
| 5239 bogus endian macros | |
| 5240 #endif | |
| 5241 | |
| 5242 ; | |
| 5243 return 0; | |
| 5244 } | |
| 5245 _ACEOF | |
| 5246 if ac_fn_c_try_compile "$LINENO" | |
| 5247 then : | |
| 5248 # It does; now see whether it defined to BIG_ENDIAN or not. | |
| 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5250 /* end confdefs.h. */ | |
| 5251 #include <sys/types.h> | |
| 5252 #include <sys/param.h> | |
| 5253 | |
| 5254 int | |
| 5255 main (void) | |
| 5256 { | |
| 5257 #if BYTE_ORDER != BIG_ENDIAN | |
| 5258 not big endian | |
| 5259 #endif | |
| 5260 | |
| 5261 ; | |
| 5262 return 0; | |
| 5263 } | |
| 5264 _ACEOF | |
| 5265 if ac_fn_c_try_compile "$LINENO" | |
| 5266 then : | |
| 5267 ac_cv_c_bigendian=yes | |
| 5268 else case e in #( | |
| 5269 e) ac_cv_c_bigendian=no ;; | |
| 5270 esac | |
| 5271 fi | |
| 5272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 5273 fi | |
| 5274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 5275 fi | |
| 5276 if test $ac_cv_c_bigendian = unknown; then | |
| 5277 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
| 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5279 /* end confdefs.h. */ | |
| 5280 #include <limits.h> | |
| 5281 | |
| 5282 int | |
| 5283 main (void) | |
| 5284 { | |
| 5285 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
| 5286 bogus endian macros | |
| 5287 #endif | |
| 5288 | |
| 5289 ; | |
| 5290 return 0; | |
| 5291 } | |
| 5292 _ACEOF | |
| 5293 if ac_fn_c_try_compile "$LINENO" | |
| 5294 then : | |
| 5295 # It does; now see whether it defined to _BIG_ENDIAN or not. | |
| 5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5297 /* end confdefs.h. */ | |
| 5298 #include <limits.h> | |
| 5299 | |
| 5300 int | |
| 5301 main (void) | |
| 5302 { | |
| 5303 #ifndef _BIG_ENDIAN | |
| 5304 not big endian | |
| 5305 #endif | |
| 5306 | |
| 5307 ; | |
| 5308 return 0; | |
| 5309 } | |
| 5310 _ACEOF | |
| 5311 if ac_fn_c_try_compile "$LINENO" | |
| 5312 then : | |
| 5313 ac_cv_c_bigendian=yes | |
| 5314 else case e in #( | |
| 5315 e) ac_cv_c_bigendian=no ;; | |
| 5316 esac | |
| 5317 fi | |
| 5318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 5319 fi | |
| 5320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 5321 fi | |
| 5322 if test $ac_cv_c_bigendian = unknown; then | |
| 5323 # Compile a test program. | |
| 5324 if test "$cross_compiling" = yes | |
| 5325 then : | |
| 5326 # Try to guess by grepping values from an object file. | |
| 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5328 /* end confdefs.h. */ | |
| 5329 unsigned short int ascii_mm[] = | |
| 5330 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
| 5331 unsigned short int ascii_ii[] = | |
| 5332 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
| 5333 int use_ascii (int i) { | |
| 5334 return ascii_mm[i] + ascii_ii[i]; | |
| 5335 } | |
| 5336 unsigned short int ebcdic_ii[] = | |
| 5337 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
| 5338 unsigned short int ebcdic_mm[] = | |
| 5339 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
| 5340 int use_ebcdic (int i) { | |
| 5341 return ebcdic_mm[i] + ebcdic_ii[i]; | |
| 5342 } | |
| 5343 int | |
| 5344 main (int argc, char **argv) | |
| 5345 { | |
| 5346 /* Intimidate the compiler so that it does not | |
| 5347 optimize the arrays away. */ | |
| 5348 char *p = argv[0]; | |
| 5349 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; | |
| 5350 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; | |
| 5351 return use_ascii (argc) == use_ebcdic (*p); | |
| 5352 } | |
| 5353 _ACEOF | |
| 5354 if ac_fn_c_try_link "$LINENO" | |
| 5355 then : | |
| 5356 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then | |
| 5357 ac_cv_c_bigendian=yes | |
| 5358 fi | |
| 5359 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then | |
| 5360 if test "$ac_cv_c_bigendian" = unknown; then | |
| 5361 ac_cv_c_bigendian=no | |
| 5362 else | |
| 5363 # finding both strings is unlikely to happen, but who knows? | |
| 5364 ac_cv_c_bigendian=unknown | |
| 5365 fi | |
| 5366 fi | |
| 5367 fi | |
| 5368 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 5369 conftest$ac_exeext conftest.$ac_ext | |
| 5370 else case e in #( | |
| 5371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5372 /* end confdefs.h. */ | |
| 5373 $ac_includes_default | |
| 5374 int | |
| 5375 main (void) | |
| 5376 { | |
| 5377 | |
| 5378 /* Are we little or big endian? From Harbison&Steele. */ | |
| 5379 union | |
| 5380 { | |
| 5381 long int l; | |
| 5382 char c[sizeof (long int)]; | |
| 5383 } u; | |
| 5384 u.l = 1; | |
| 5385 return u.c[sizeof (long int) - 1] == 1; | |
| 5386 | |
| 5387 ; | |
| 5388 return 0; | |
| 5389 } | |
| 5390 _ACEOF | |
| 5391 if ac_fn_c_try_run "$LINENO" | |
| 5392 then : | |
| 5393 ac_cv_c_bigendian=no | |
| 5394 else case e in #( | |
| 5395 e) ac_cv_c_bigendian=yes ;; | |
| 5396 esac | |
| 5397 fi | |
| 5398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 5399 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 5400 esac | |
| 5401 fi | |
| 5402 | |
| 5403 fi ;; | |
| 5404 esac | |
| 5405 fi | |
| 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
| 5407 printf "%s\n" "$ac_cv_c_bigendian" >&6; } | |
| 5408 case $ac_cv_c_bigendian in #( | |
| 5409 yes) | |
| 5410 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
| 5411 ;; #( | |
| 5412 no) | |
| 5413 ;; #( | |
| 5414 universal) | |
| 5415 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
| 5416 | |
| 5417 ;; #( | |
| 5418 *) | |
| 5419 as_fn_error $? "unknown endianness | |
| 5420 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
| 5421 esac | |
| 5422 | |
| 5423 | |
| 5424 | |
| 5425 #----------------------------------------------------------------------- | |
| 5426 # __CHANGE__ | |
| 5427 # Specify the C source files to compile in TEA_ADD_SOURCES, | |
| 5428 # public headers that need to be installed in TEA_ADD_HEADERS, | |
| 5429 # stub library C source files to compile in TEA_ADD_STUB_SOURCES, | |
| 5430 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES. | |
| 5431 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS | |
| 5432 # and PKG_TCL_SOURCES. | |
| 5433 #----------------------------------------------------------------------- | |
| 5434 | |
| 5435 | |
| 5436 vars=" | |
| 5437 ../backend/2of5.c | |
| 5438 ../backend/auspost.c | |
| 5439 ../backend/aztec.c | |
| 5440 ../backend/bc412.c | |
| 5441 ../backend/bmp.c | |
| 5442 ../backend/codablock.c | |
| 5443 ../backend/code128.c | |
| 5444 ../backend/code16k.c | |
| 5445 ../backend/code1.c | |
| 5446 ../backend/code49.c | |
| 5447 ../backend/code.c | |
| 5448 ../backend/common.c | |
| 5449 ../backend/composite.c | |
| 5450 ../backend/dllversion.c | |
| 5451 ../backend/dmatrix.c | |
| 5452 ../backend/dotcode.c | |
| 5453 ../backend/dxfilmedge.c | |
| 5454 ../backend/eci.c | |
| 5455 ../backend/emf.c | |
| 5456 ../backend/filemem.c | |
| 5457 ../backend/general_field.c | |
| 5458 ../backend/gif.c | |
| 5459 ../backend/gridmtx.c | |
| 5460 ../backend/gs1.c | |
| 5461 ../backend/hanxin.c | |
| 5462 ../backend/imail.c | |
| 5463 ../backend/large.c | |
| 5464 ../backend/library.c | |
| 5465 ../backend/mailmark.c | |
| 5466 ../backend/maxicode.c | |
| 5467 ../backend/medical.c | |
| 5468 ../backend/output.c | |
| 5469 ../backend/pcx.c | |
| 5470 ../backend/pdf417.c | |
| 5471 ../backend/plessey.c | |
| 5472 ../backend/png.c | |
| 5473 ../backend/postal.c | |
| 5474 ../backend/ps.c | |
| 5475 ../backend/qr.c | |
| 5476 ../backend/raster.c | |
| 5477 ../backend/reedsol.c | |
| 5478 ../backend/rss.c | |
| 5479 ../backend/svg.c | |
| 5480 ../backend/telepen.c | |
| 5481 ../backend/tif.c | |
| 5482 ../backend/ultra.c | |
| 5483 ../backend/upcean.c | |
| 5484 ../backend/vector.c | |
| 5485 zint.c | |
| 5486 " | |
| 5487 for i in $vars; do | |
| 5488 case $i in | |
| 5489 \$*) | |
| 5490 # allow $-var names | |
| 5491 PKG_SOURCES="$PKG_SOURCES $i" | |
| 5492 PKG_OBJECTS="$PKG_OBJECTS $i" | |
| 5493 ;; | |
| 5494 *) | |
| 5495 # check for existence - allows for generic/win/unix VPATH | |
| 5496 # To add more dirs here (like 'src'), you have to update VPATH | |
| 5497 # in Makefile.in as well | |
| 5498 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ | |
| 5499 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ | |
| 5500 -a ! -f "${srcdir}/macosx/$i" \ | |
| 5501 ; then | |
| 5502 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 | |
| 5503 fi | |
| 5504 PKG_SOURCES="$PKG_SOURCES $i" | |
| 5505 # this assumes it is in a VPATH dir | |
| 5506 i=`basename $i` | |
| 5507 # handle user calling this before or after TEA_SETUP_COMPILER | |
| 5508 if test x"${OBJEXT}" != x ; then | |
| 5509 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" | |
| 5510 else | |
| 5511 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" | |
| 5512 fi | |
| 5513 PKG_OBJECTS="$PKG_OBJECTS $j" | |
| 5514 ;; | |
| 5515 esac | |
| 5516 done | |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | |
| 5521 vars="" | |
| 5522 for i in $vars; do | |
| 5523 # check for existence, be strict because it is installed | |
| 5524 if test ! -f "${srcdir}/$i" ; then | |
| 5525 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5 | |
| 5526 fi | |
| 5527 PKG_HEADERS="$PKG_HEADERS $i" | |
| 5528 done | |
| 5529 | |
| 5530 | |
| 5531 | |
| 5532 vars="" | |
| 5533 for i in $vars; do | |
| 5534 PKG_INCLUDES="$PKG_INCLUDES $i" | |
| 5535 done | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 vars="" | |
| 5540 for i in $vars; do | |
| 5541 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then | |
| 5542 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib | |
| 5543 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'` | |
| 5544 fi | |
| 5545 PKG_LIBS="$PKG_LIBS $i" | |
| 5546 done | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 PKG_CFLAGS="$PKG_CFLAGS -I../backend -DZINT_NO_PNG=1 -DZINT_VERSION=PACKAGE_VERSION" | |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 vars="" | |
| 5555 for i in $vars; do | |
| 5556 # check for existence - allows for generic/win/unix VPATH | |
| 5557 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ | |
| 5558 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ | |
| 5559 -a ! -f "${srcdir}/macosx/$i" \ | |
| 5560 ; then | |
| 5561 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5 | |
| 5562 fi | |
| 5563 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" | |
| 5564 # this assumes it is in a VPATH dir | |
| 5565 i=`basename $i` | |
| 5566 # handle user calling this before or after TEA_SETUP_COMPILER | |
| 5567 if test x"${OBJEXT}" != x ; then | |
| 5568 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" | |
| 5569 else | |
| 5570 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" | |
| 5571 fi | |
| 5572 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" | |
| 5573 done | |
| 5574 | |
| 5575 | |
| 5576 | |
| 5577 | |
| 5578 vars="demo/demo.tcl" | |
| 5579 for i in $vars; do | |
| 5580 # check for existence, be strict because it is installed | |
| 5581 if test ! -f "${srcdir}/$i" ; then | |
| 5582 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5 | |
| 5583 fi | |
| 5584 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" | |
| 5585 done | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 #-------------------------------------------------------------------- | |
| 5590 # __CHANGE__ | |
| 5591 # | |
| 5592 # You can add more files to clean if your extension creates any extra | |
| 5593 # files by extending CLEANFILES. | |
| 5594 # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure | |
| 5595 # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var. | |
| 5596 # | |
| 5597 # A few miscellaneous platform-specific items: | |
| 5598 # TEA_ADD_* any platform specific compiler/build info here. | |
| 5599 #-------------------------------------------------------------------- | |
| 5600 | |
| 5601 #CLEANFILES="$CLEANFILES pkgIndex.tcl" | |
| 5602 if test "${TEA_PLATFORM}" = "windows" ; then | |
| 5603 # Ensure no empty if clauses | |
| 5604 : | |
| 5605 #TEA_ADD_SOURCES([win/winFile.c]) | |
| 5606 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) | |
| 5607 else | |
| 5608 # Ensure no empty else clauses | |
| 5609 : | |
| 5610 #TEA_ADD_SOURCES([unix/unixFile.c]) | |
| 5611 | |
| 5612 vars="" | |
| 5613 for i in $vars; do | |
| 5614 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then | |
| 5615 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib | |
| 5616 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'` | |
| 5617 fi | |
| 5618 PKG_LIBS="$PKG_LIBS $i" | |
| 5619 done | |
| 5620 | |
| 5621 | |
| 5622 fi | |
| 5623 | |
| 5624 #-------------------------------------------------------------------- | |
| 5625 # __CHANGE__ | |
| 5626 # Choose which headers you need. Extension authors should try very | |
| 5627 # hard to only rely on the Tcl public header files. Internal headers | |
| 5628 # contain private data structures and are subject to change without | |
| 5629 # notice. | |
| 5630 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG | |
| 5631 #-------------------------------------------------------------------- | |
| 5632 | |
| 5633 | |
| 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5 | |
| 5635 printf %s "checking for Tcl public headers... " >&6; } | |
| 5636 | |
| 5637 | |
| 5638 # Check whether --with-tclinclude was given. | |
| 5639 if test ${with_tclinclude+y} | |
| 5640 then : | |
| 5641 withval=$with_tclinclude; with_tclinclude=${withval} | |
| 5642 fi | |
| 5643 | |
| 5644 | |
| 5645 if test ${ac_cv_c_tclh+y} | |
| 5646 then : | |
| 5647 printf %s "(cached) " >&6 | |
| 5648 else case e in #( | |
| 5649 e) | |
| 5650 # Use the value from --with-tclinclude, if it was given | |
| 5651 | |
| 5652 if test x"${with_tclinclude}" != x ; then | |
| 5653 if test -f "${with_tclinclude}/tcl.h" ; then | |
| 5654 ac_cv_c_tclh=${with_tclinclude} | |
| 5655 else | |
| 5656 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5 | |
| 5657 fi | |
| 5658 else | |
| 5659 list="" | |
| 5660 if test "`uname -s`" = "Darwin"; then | |
| 5661 # If Tcl was built as a framework, attempt to use | |
| 5662 # the framework's Headers directory | |
| 5663 case ${TCL_DEFS} in | |
| 5664 *TCL_FRAMEWORK*) | |
| 5665 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" | |
| 5666 ;; | |
| 5667 esac | |
| 5668 fi | |
| 5669 | |
| 5670 # Look in the source dir only if Tcl is not installed, | |
| 5671 # and in that situation, look there before installed locations. | |
| 5672 if test -f "${TCL_BIN_DIR}/Makefile" ; then | |
| 5673 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" | |
| 5674 fi | |
| 5675 | |
| 5676 # Check order: pkg --prefix location, Tcl's --prefix location, | |
| 5677 # relative to directory of tclConfig.sh. | |
| 5678 | |
| 5679 eval "temp_includedir=${includedir}" | |
| 5680 list="$list \ | |
| 5681 `ls -d ${temp_includedir} 2>/dev/null` \ | |
| 5682 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ | |
| 5683 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" | |
| 5684 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then | |
| 5685 list="$list /usr/local/include /usr/include" | |
| 5686 if test x"${TCL_INCLUDE_SPEC}" != x ; then | |
| 5687 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` | |
| 5688 list="$list `ls -d ${d} 2>/dev/null`" | |
| 5689 fi | |
| 5690 fi | |
| 5691 for i in $list ; do | |
| 5692 if test -f "$i/tcl.h" ; then | |
| 5693 ac_cv_c_tclh=$i | |
| 5694 break | |
| 5695 fi | |
| 5696 done | |
| 5697 fi | |
| 5698 ;; | |
| 5699 esac | |
| 5700 fi | |
| 5701 | |
| 5702 | |
| 5703 # Print a message based on how we determined the include path | |
| 5704 | |
| 5705 if test x"${ac_cv_c_tclh}" = x ; then | |
| 5706 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5 | |
| 5707 else | |
| 5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5 | |
| 5709 printf "%s\n" "${ac_cv_c_tclh}" >&6; } | |
| 5710 fi | |
| 5711 | |
| 5712 # Convert to a native path and substitute into the output files. | |
| 5713 | |
| 5714 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` | |
| 5715 | |
| 5716 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" | |
| 5717 | |
| 5718 | |
| 5719 | |
| 5720 #TEA_PRIVATE_TCL_HEADERS | |
| 5721 | |
| 5722 #TEA_PUBLIC_TK_HEADERS | |
| 5723 #TEA_PRIVATE_TK_HEADERS | |
| 5724 #TEA_PATH_X | |
| 5725 | |
| 5726 #-------------------------------------------------------------------- | |
| 5727 # Check whether --enable-threads or --disable-threads was given. | |
| 5728 # This auto-enables if Tcl was compiled threaded. | |
| 5729 #-------------------------------------------------------------------- | |
| 5730 | |
| 5731 | |
| 5732 # Check whether --enable-threads was given. | |
| 5733 if test ${enable_threads+y} | |
| 5734 then : | |
| 5735 enableval=$enable_threads; tcl_ok=$enableval | |
| 5736 else case e in #( | |
| 5737 e) tcl_ok=yes ;; | |
| 5738 esac | |
| 5739 fi | |
| 5740 | |
| 5741 | |
| 5742 if test "${enable_threads+set}" = set; then | |
| 5743 enableval="$enable_threads" | |
| 5744 tcl_ok=$enableval | |
| 5745 else | |
| 5746 tcl_ok=yes | |
| 5747 fi | |
| 5748 | |
| 5749 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then | |
| 5750 TCL_THREADS=1 | |
| 5751 | |
| 5752 if test "${TEA_PLATFORM}" != "windows" ; then | |
| 5753 # We are always OK on Windows, so check what this platform wants: | |
| 5754 | |
| 5755 # USE_THREAD_ALLOC tells us to try the special thread-based | |
| 5756 # allocator that significantly reduces lock contention | |
| 5757 | |
| 5758 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h | |
| 5759 | |
| 5760 | |
| 5761 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h | |
| 5762 | |
| 5763 if test "`uname -s`" = "SunOS" ; then | |
| 5764 | |
| 5765 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
| 5766 | |
| 5767 fi | |
| 5768 | |
| 5769 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h | |
| 5770 | |
| 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 | |
| 5772 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; } | |
| 5773 if test ${ac_cv_lib_pthread_pthread_mutex_init+y} | |
| 5774 then : | |
| 5775 printf %s "(cached) " >&6 | |
| 5776 else case e in #( | |
| 5777 e) ac_check_lib_save_LIBS=$LIBS | |
| 5778 LIBS="-lpthread $LIBS" | |
| 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5780 /* end confdefs.h. */ | |
| 5781 | |
| 5782 /* Override any GCC internal prototype to avoid an error. | |
| 5783 Use char because int might match the return type of a GCC | |
| 5784 builtin and then its argument prototype would still apply. | |
| 5785 The 'extern "C"' is for builds by C++ compilers; | |
| 5786 although this is not generally supported in C code supporting it here | |
| 5787 has little cost and some practical benefit (sr 110532). */ | |
| 5788 #ifdef __cplusplus | |
| 5789 extern "C" | |
| 5790 #endif | |
| 5791 char pthread_mutex_init (void); | |
| 5792 int | |
| 5793 main (void) | |
| 5794 { | |
| 5795 return pthread_mutex_init (); | |
| 5796 ; | |
| 5797 return 0; | |
| 5798 } | |
| 5799 _ACEOF | |
| 5800 if ac_fn_c_try_link "$LINENO" | |
| 5801 then : | |
| 5802 ac_cv_lib_pthread_pthread_mutex_init=yes | |
| 5803 else case e in #( | |
| 5804 e) ac_cv_lib_pthread_pthread_mutex_init=no ;; | |
| 5805 esac | |
| 5806 fi | |
| 5807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 5808 conftest$ac_exeext conftest.$ac_ext | |
| 5809 LIBS=$ac_check_lib_save_LIBS ;; | |
| 5810 esac | |
| 5811 fi | |
| 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | |
| 5813 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } | |
| 5814 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes | |
| 5815 then : | |
| 5816 tcl_ok=yes | |
| 5817 else case e in #( | |
| 5818 e) tcl_ok=no ;; | |
| 5819 esac | |
| 5820 fi | |
| 5821 | |
| 5822 if test "$tcl_ok" = "no"; then | |
| 5823 # Check a little harder for __pthread_mutex_init in the same | |
| 5824 # library, as some systems hide it there until pthread.h is | |
| 5825 # defined. We could alternatively do an AC_TRY_COMPILE with | |
| 5826 # pthread.h, but that will work with libpthread really doesn't | |
| 5827 # exist, like AIX 4.2. [Bug: 4359] | |
| 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5 | |
| 5829 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; } | |
| 5830 if test ${ac_cv_lib_pthread___pthread_mutex_init+y} | |
| 5831 then : | |
| 5832 printf %s "(cached) " >&6 | |
| 5833 else case e in #( | |
| 5834 e) ac_check_lib_save_LIBS=$LIBS | |
| 5835 LIBS="-lpthread $LIBS" | |
| 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5837 /* end confdefs.h. */ | |
| 5838 | |
| 5839 /* Override any GCC internal prototype to avoid an error. | |
| 5840 Use char because int might match the return type of a GCC | |
| 5841 builtin and then its argument prototype would still apply. | |
| 5842 The 'extern "C"' is for builds by C++ compilers; | |
| 5843 although this is not generally supported in C code supporting it here | |
| 5844 has little cost and some practical benefit (sr 110532). */ | |
| 5845 #ifdef __cplusplus | |
| 5846 extern "C" | |
| 5847 #endif | |
| 5848 char __pthread_mutex_init (void); | |
| 5849 int | |
| 5850 main (void) | |
| 5851 { | |
| 5852 return __pthread_mutex_init (); | |
| 5853 ; | |
| 5854 return 0; | |
| 5855 } | |
| 5856 _ACEOF | |
| 5857 if ac_fn_c_try_link "$LINENO" | |
| 5858 then : | |
| 5859 ac_cv_lib_pthread___pthread_mutex_init=yes | |
| 5860 else case e in #( | |
| 5861 e) ac_cv_lib_pthread___pthread_mutex_init=no ;; | |
| 5862 esac | |
| 5863 fi | |
| 5864 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 5865 conftest$ac_exeext conftest.$ac_ext | |
| 5866 LIBS=$ac_check_lib_save_LIBS ;; | |
| 5867 esac | |
| 5868 fi | |
| 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 | |
| 5870 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; } | |
| 5871 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes | |
| 5872 then : | |
| 5873 tcl_ok=yes | |
| 5874 else case e in #( | |
| 5875 e) tcl_ok=no ;; | |
| 5876 esac | |
| 5877 fi | |
| 5878 | |
| 5879 fi | |
| 5880 | |
| 5881 if test "$tcl_ok" = "yes"; then | |
| 5882 # The space is needed | |
| 5883 THREADS_LIBS=" -lpthread" | |
| 5884 else | |
| 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5 | |
| 5886 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; } | |
| 5887 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y} | |
| 5888 then : | |
| 5889 printf %s "(cached) " >&6 | |
| 5890 else case e in #( | |
| 5891 e) ac_check_lib_save_LIBS=$LIBS | |
| 5892 LIBS="-lpthreads $LIBS" | |
| 5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5894 /* end confdefs.h. */ | |
| 5895 | |
| 5896 /* Override any GCC internal prototype to avoid an error. | |
| 5897 Use char because int might match the return type of a GCC | |
| 5898 builtin and then its argument prototype would still apply. | |
| 5899 The 'extern "C"' is for builds by C++ compilers; | |
| 5900 although this is not generally supported in C code supporting it here | |
| 5901 has little cost and some practical benefit (sr 110532). */ | |
| 5902 #ifdef __cplusplus | |
| 5903 extern "C" | |
| 5904 #endif | |
| 5905 char pthread_mutex_init (void); | |
| 5906 int | |
| 5907 main (void) | |
| 5908 { | |
| 5909 return pthread_mutex_init (); | |
| 5910 ; | |
| 5911 return 0; | |
| 5912 } | |
| 5913 _ACEOF | |
| 5914 if ac_fn_c_try_link "$LINENO" | |
| 5915 then : | |
| 5916 ac_cv_lib_pthreads_pthread_mutex_init=yes | |
| 5917 else case e in #( | |
| 5918 e) ac_cv_lib_pthreads_pthread_mutex_init=no ;; | |
| 5919 esac | |
| 5920 fi | |
| 5921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 5922 conftest$ac_exeext conftest.$ac_ext | |
| 5923 LIBS=$ac_check_lib_save_LIBS ;; | |
| 5924 esac | |
| 5925 fi | |
| 5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 | |
| 5927 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } | |
| 5928 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes | |
| 5929 then : | |
| 5930 tcl_ok=yes | |
| 5931 else case e in #( | |
| 5932 e) tcl_ok=no ;; | |
| 5933 esac | |
| 5934 fi | |
| 5935 | |
| 5936 if test "$tcl_ok" = "yes"; then | |
| 5937 # The space is needed | |
| 5938 THREADS_LIBS=" -lpthreads" | |
| 5939 else | |
| 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 | |
| 5941 printf %s "checking for pthread_mutex_init in -lc... " >&6; } | |
| 5942 if test ${ac_cv_lib_c_pthread_mutex_init+y} | |
| 5943 then : | |
| 5944 printf %s "(cached) " >&6 | |
| 5945 else case e in #( | |
| 5946 e) ac_check_lib_save_LIBS=$LIBS | |
| 5947 LIBS="-lc $LIBS" | |
| 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 5949 /* end confdefs.h. */ | |
| 5950 | |
| 5951 /* Override any GCC internal prototype to avoid an error. | |
| 5952 Use char because int might match the return type of a GCC | |
| 5953 builtin and then its argument prototype would still apply. | |
| 5954 The 'extern "C"' is for builds by C++ compilers; | |
| 5955 although this is not generally supported in C code supporting it here | |
| 5956 has little cost and some practical benefit (sr 110532). */ | |
| 5957 #ifdef __cplusplus | |
| 5958 extern "C" | |
| 5959 #endif | |
| 5960 char pthread_mutex_init (void); | |
| 5961 int | |
| 5962 main (void) | |
| 5963 { | |
| 5964 return pthread_mutex_init (); | |
| 5965 ; | |
| 5966 return 0; | |
| 5967 } | |
| 5968 _ACEOF | |
| 5969 if ac_fn_c_try_link "$LINENO" | |
| 5970 then : | |
| 5971 ac_cv_lib_c_pthread_mutex_init=yes | |
| 5972 else case e in #( | |
| 5973 e) ac_cv_lib_c_pthread_mutex_init=no ;; | |
| 5974 esac | |
| 5975 fi | |
| 5976 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 5977 conftest$ac_exeext conftest.$ac_ext | |
| 5978 LIBS=$ac_check_lib_save_LIBS ;; | |
| 5979 esac | |
| 5980 fi | |
| 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 | |
| 5982 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; } | |
| 5983 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes | |
| 5984 then : | |
| 5985 tcl_ok=yes | |
| 5986 else case e in #( | |
| 5987 e) tcl_ok=no ;; | |
| 5988 esac | |
| 5989 fi | |
| 5990 | |
| 5991 if test "$tcl_ok" = "no"; then | |
| 5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5 | |
| 5993 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; } | |
| 5994 if test ${ac_cv_lib_c_r_pthread_mutex_init+y} | |
| 5995 then : | |
| 5996 printf %s "(cached) " >&6 | |
| 5997 else case e in #( | |
| 5998 e) ac_check_lib_save_LIBS=$LIBS | |
| 5999 LIBS="-lc_r $LIBS" | |
| 6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 6001 /* end confdefs.h. */ | |
| 6002 | |
| 6003 /* Override any GCC internal prototype to avoid an error. | |
| 6004 Use char because int might match the return type of a GCC | |
| 6005 builtin and then its argument prototype would still apply. | |
| 6006 The 'extern "C"' is for builds by C++ compilers; | |
| 6007 although this is not generally supported in C code supporting it here | |
| 6008 has little cost and some practical benefit (sr 110532). */ | |
| 6009 #ifdef __cplusplus | |
| 6010 extern "C" | |
| 6011 #endif | |
| 6012 char pthread_mutex_init (void); | |
| 6013 int | |
| 6014 main (void) | |
| 6015 { | |
| 6016 return pthread_mutex_init (); | |
| 6017 ; | |
| 6018 return 0; | |
| 6019 } | |
| 6020 _ACEOF | |
| 6021 if ac_fn_c_try_link "$LINENO" | |
| 6022 then : | |
| 6023 ac_cv_lib_c_r_pthread_mutex_init=yes | |
| 6024 else case e in #( | |
| 6025 e) ac_cv_lib_c_r_pthread_mutex_init=no ;; | |
| 6026 esac | |
| 6027 fi | |
| 6028 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 6029 conftest$ac_exeext conftest.$ac_ext | |
| 6030 LIBS=$ac_check_lib_save_LIBS ;; | |
| 6031 esac | |
| 6032 fi | |
| 6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 | |
| 6034 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; } | |
| 6035 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes | |
| 6036 then : | |
| 6037 tcl_ok=yes | |
| 6038 else case e in #( | |
| 6039 e) tcl_ok=no ;; | |
| 6040 esac | |
| 6041 fi | |
| 6042 | |
| 6043 if test "$tcl_ok" = "yes"; then | |
| 6044 # The space is needed | |
| 6045 THREADS_LIBS=" -pthread" | |
| 6046 else | |
| 6047 TCL_THREADS=0 | |
| 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 | |
| 6049 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} | |
| 6050 fi | |
| 6051 fi | |
| 6052 fi | |
| 6053 fi | |
| 6054 fi | |
| 6055 else | |
| 6056 TCL_THREADS=0 | |
| 6057 fi | |
| 6058 # Do checking message here to not mess up interleaved configure output | |
| 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5 | |
| 6060 printf %s "checking for building with threads... " >&6; } | |
| 6061 if test "${TCL_THREADS}" = 1; then | |
| 6062 | |
| 6063 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h | |
| 6064 | |
| 6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | |
| 6066 printf "%s\n" "yes (default)" >&6; } | |
| 6067 else | |
| 6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6069 printf "%s\n" "no" >&6; } | |
| 6070 fi | |
| 6071 # TCL_THREADS sanity checking. See if our request for building with | |
| 6072 # threads is the same as the way Tcl was built. If not, warn the user. | |
| 6073 case ${TCL_DEFS} in | |
| 6074 *THREADS=1*) | |
| 6075 if test "${TCL_THREADS}" = "0"; then | |
| 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: | |
| 6077 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl | |
| 6078 that IS thread-enabled. It is recommended to use --enable-threads." >&5 | |
| 6079 printf "%s\n" "$as_me: WARNING: | |
| 6080 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl | |
| 6081 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} | |
| 6082 fi | |
| 6083 ;; | |
| 6084 esac | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 #-------------------------------------------------------------------- | |
| 6089 # The statement below defines a collection of symbols related to | |
| 6090 # building as a shared library instead of a static library. | |
| 6091 #-------------------------------------------------------------------- | |
| 6092 | |
| 6093 | |
| 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 | |
| 6095 printf %s "checking how to build libraries... " >&6; } | |
| 6096 # Check whether --enable-shared was given. | |
| 6097 if test ${enable_shared+y} | |
| 6098 then : | |
| 6099 enableval=$enable_shared; shared_ok=$enableval | |
| 6100 else case e in #( | |
| 6101 e) shared_ok=yes ;; | |
| 6102 esac | |
| 6103 fi | |
| 6104 | |
| 6105 | |
| 6106 if test "${enable_shared+set}" = set; then | |
| 6107 enableval="$enable_shared" | |
| 6108 shared_ok=$enableval | |
| 6109 else | |
| 6110 shared_ok=yes | |
| 6111 fi | |
| 6112 | |
| 6113 # Check whether --enable-stubs was given. | |
| 6114 if test ${enable_stubs+y} | |
| 6115 then : | |
| 6116 enableval=$enable_stubs; stubs_ok=$enableval | |
| 6117 else case e in #( | |
| 6118 e) stubs_ok=yes ;; | |
| 6119 esac | |
| 6120 fi | |
| 6121 | |
| 6122 | |
| 6123 if test "${enable_stubs+set}" = set; then | |
| 6124 enableval="$enable_stubs" | |
| 6125 stubs_ok=$enableval | |
| 6126 else | |
| 6127 stubs_ok=yes | |
| 6128 fi | |
| 6129 | |
| 6130 # Stubs are always enabled for shared builds | |
| 6131 if test "$shared_ok" = "yes" ; then | |
| 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5 | |
| 6133 printf "%s\n" "shared" >&6; } | |
| 6134 SHARED_BUILD=1 | |
| 6135 STUBS_BUILD=1 | |
| 6136 else | |
| 6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5 | |
| 6138 printf "%s\n" "static" >&6; } | |
| 6139 SHARED_BUILD=0 | |
| 6140 | |
| 6141 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h | |
| 6142 | |
| 6143 if test "$stubs_ok" = "yes" ; then | |
| 6144 STUBS_BUILD=1 | |
| 6145 else | |
| 6146 STUBS_BUILD=0 | |
| 6147 fi | |
| 6148 fi | |
| 6149 if test "${STUBS_BUILD}" = "1" ; then | |
| 6150 | |
| 6151 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h | |
| 6152 | |
| 6153 | |
| 6154 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h | |
| 6155 | |
| 6156 if test "${TEA_WINDOWINGSYSTEM}" != ""; then | |
| 6157 | |
| 6158 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h | |
| 6159 | |
| 6160 fi | |
| 6161 fi | |
| 6162 | |
| 6163 | |
| 6164 | |
| 6165 | |
| 6166 | |
| 6167 #-------------------------------------------------------------------- | |
| 6168 # This macro figures out what flags to use with the compiler/linker | |
| 6169 # when building shared/static debug/optimized objects. This information | |
| 6170 # can be taken from the tclConfig.sh file, but this figures it all out. | |
| 6171 #-------------------------------------------------------------------- | |
| 6172 | |
| 6173 if test -n "$ac_tool_prefix"; then | |
| 6174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
| 6175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
| 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6177 printf %s "checking for $ac_word... " >&6; } | |
| 6178 if test ${ac_cv_prog_RANLIB+y} | |
| 6179 then : | |
| 6180 printf %s "(cached) " >&6 | |
| 6181 else case e in #( | |
| 6182 e) if test -n "$RANLIB"; then | |
| 6183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
| 6184 else | |
| 6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6186 for as_dir in $PATH | |
| 6187 do | |
| 6188 IFS=$as_save_IFS | |
| 6189 case $as_dir in #((( | |
| 6190 '') as_dir=./ ;; | |
| 6191 */) ;; | |
| 6192 *) as_dir=$as_dir/ ;; | |
| 6193 esac | |
| 6194 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 6196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
| 6197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 6198 break 2 | |
| 6199 fi | |
| 6200 done | |
| 6201 done | |
| 6202 IFS=$as_save_IFS | |
| 6203 | |
| 6204 fi ;; | |
| 6205 esac | |
| 6206 fi | |
| 6207 RANLIB=$ac_cv_prog_RANLIB | |
| 6208 if test -n "$RANLIB"; then | |
| 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
| 6210 printf "%s\n" "$RANLIB" >&6; } | |
| 6211 else | |
| 6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6213 printf "%s\n" "no" >&6; } | |
| 6214 fi | |
| 6215 | |
| 6216 | |
| 6217 fi | |
| 6218 if test -z "$ac_cv_prog_RANLIB"; then | |
| 6219 ac_ct_RANLIB=$RANLIB | |
| 6220 # Extract the first word of "ranlib", so it can be a program name with args. | |
| 6221 set dummy ranlib; ac_word=$2 | |
| 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6223 printf %s "checking for $ac_word... " >&6; } | |
| 6224 if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
| 6225 then : | |
| 6226 printf %s "(cached) " >&6 | |
| 6227 else case e in #( | |
| 6228 e) if test -n "$ac_ct_RANLIB"; then | |
| 6229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
| 6230 else | |
| 6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6232 for as_dir in $PATH | |
| 6233 do | |
| 6234 IFS=$as_save_IFS | |
| 6235 case $as_dir in #((( | |
| 6236 '') as_dir=./ ;; | |
| 6237 */) ;; | |
| 6238 *) as_dir=$as_dir/ ;; | |
| 6239 esac | |
| 6240 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 6242 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
| 6243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 6244 break 2 | |
| 6245 fi | |
| 6246 done | |
| 6247 done | |
| 6248 IFS=$as_save_IFS | |
| 6249 | |
| 6250 fi ;; | |
| 6251 esac | |
| 6252 fi | |
| 6253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
| 6254 if test -n "$ac_ct_RANLIB"; then | |
| 6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
| 6256 printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
| 6257 else | |
| 6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6259 printf "%s\n" "no" >&6; } | |
| 6260 fi | |
| 6261 | |
| 6262 if test "x$ac_ct_RANLIB" = x; then | |
| 6263 RANLIB=":" | |
| 6264 else | |
| 6265 case $cross_compiling:$ac_tool_warned in | |
| 6266 yes:) | |
| 6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6268 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6269 ac_tool_warned=yes ;; | |
| 6270 esac | |
| 6271 RANLIB=$ac_ct_RANLIB | |
| 6272 fi | |
| 6273 else | |
| 6274 RANLIB="$ac_cv_prog_RANLIB" | |
| 6275 fi | |
| 6276 | |
| 6277 | |
| 6278 | |
| 6279 | |
| 6280 # Step 0.a: Enable 64 bit support? | |
| 6281 | |
| 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 | |
| 6283 printf %s "checking if 64bit support is requested... " >&6; } | |
| 6284 # Check whether --enable-64bit was given. | |
| 6285 if test ${enable_64bit+y} | |
| 6286 then : | |
| 6287 enableval=$enable_64bit; do64bit=$enableval | |
| 6288 else case e in #( | |
| 6289 e) do64bit=no ;; | |
| 6290 esac | |
| 6291 fi | |
| 6292 | |
| 6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 | |
| 6294 printf "%s\n" "$do64bit" >&6; } | |
| 6295 | |
| 6296 # Step 0.b: Enable Solaris 64 bit VIS support? | |
| 6297 | |
| 6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 | |
| 6299 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; } | |
| 6300 # Check whether --enable-64bit-vis was given. | |
| 6301 if test ${enable_64bit_vis+y} | |
| 6302 then : | |
| 6303 enableval=$enable_64bit_vis; do64bitVIS=$enableval | |
| 6304 else case e in #( | |
| 6305 e) do64bitVIS=no ;; | |
| 6306 esac | |
| 6307 fi | |
| 6308 | |
| 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 | |
| 6310 printf "%s\n" "$do64bitVIS" >&6; } | |
| 6311 # Force 64bit on with VIS | |
| 6312 if test "$do64bitVIS" = "yes" | |
| 6313 then : | |
| 6314 do64bit=yes | |
| 6315 fi | |
| 6316 | |
| 6317 # Step 0.c: Check if visibility support is available. Do this here so | |
| 6318 # that platform specific alternatives can be used below if this fails. | |
| 6319 | |
| 6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5 | |
| 6321 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; } | |
| 6322 if test ${tcl_cv_cc_visibility_hidden+y} | |
| 6323 then : | |
| 6324 printf %s "(cached) " >&6 | |
| 6325 else case e in #( | |
| 6326 e) | |
| 6327 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" | |
| 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 6329 /* end confdefs.h. */ | |
| 6330 | |
| 6331 extern __attribute__((__visibility__("hidden"))) void f(void); | |
| 6332 void f(void) {} | |
| 6333 int | |
| 6334 main (void) | |
| 6335 { | |
| 6336 f(); | |
| 6337 ; | |
| 6338 return 0; | |
| 6339 } | |
| 6340 _ACEOF | |
| 6341 if ac_fn_c_try_link "$LINENO" | |
| 6342 then : | |
| 6343 tcl_cv_cc_visibility_hidden=yes | |
| 6344 else case e in #( | |
| 6345 e) tcl_cv_cc_visibility_hidden=no ;; | |
| 6346 esac | |
| 6347 fi | |
| 6348 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 6349 conftest$ac_exeext conftest.$ac_ext | |
| 6350 CFLAGS=$hold_cflags ;; | |
| 6351 esac | |
| 6352 fi | |
| 6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5 | |
| 6354 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; } | |
| 6355 if test $tcl_cv_cc_visibility_hidden = yes | |
| 6356 then : | |
| 6357 | |
| 6358 | |
| 6359 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h | |
| 6360 | |
| 6361 | |
| 6362 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h | |
| 6363 | |
| 6364 | |
| 6365 fi | |
| 6366 | |
| 6367 # Step 0.d: Disable -rpath support? | |
| 6368 | |
| 6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5 | |
| 6370 printf %s "checking if rpath support is requested... " >&6; } | |
| 6371 # Check whether --enable-rpath was given. | |
| 6372 if test ${enable_rpath+y} | |
| 6373 then : | |
| 6374 enableval=$enable_rpath; doRpath=$enableval | |
| 6375 else case e in #( | |
| 6376 e) doRpath=yes ;; | |
| 6377 esac | |
| 6378 fi | |
| 6379 | |
| 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5 | |
| 6381 printf "%s\n" "$doRpath" >&6; } | |
| 6382 | |
| 6383 # Set the variable "system" to hold the name and version number | |
| 6384 # for the system. | |
| 6385 | |
| 6386 | |
| 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5 | |
| 6388 printf %s "checking system version... " >&6; } | |
| 6389 if test ${tcl_cv_sys_version+y} | |
| 6390 then : | |
| 6391 printf %s "(cached) " >&6 | |
| 6392 else case e in #( | |
| 6393 e) | |
| 6394 # TEA specific: | |
| 6395 if test "${TEA_PLATFORM}" = "windows" ; then | |
| 6396 tcl_cv_sys_version=windows | |
| 6397 else | |
| 6398 tcl_cv_sys_version=`uname -s`-`uname -r` | |
| 6399 if test "$?" -ne 0 ; then | |
| 6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 | |
| 6401 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;} | |
| 6402 tcl_cv_sys_version=unknown | |
| 6403 else | |
| 6404 if test "`uname -s`" = "AIX" ; then | |
| 6405 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` | |
| 6406 fi | |
| 6407 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then | |
| 6408 tcl_cv_sys_version=NetBSD-Debian | |
| 6409 fi | |
| 6410 fi | |
| 6411 fi | |
| 6412 ;; | |
| 6413 esac | |
| 6414 fi | |
| 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 | |
| 6416 printf "%s\n" "$tcl_cv_sys_version" >&6; } | |
| 6417 system=$tcl_cv_sys_version | |
| 6418 | |
| 6419 | |
| 6420 # Require ranlib early so we can override it in special cases below. | |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 # Set configuration options based on system name and version. | |
| 6425 # This is similar to Tcl's unix/tcl.m4 except that we've added a | |
| 6426 # "windows" case and removed some core-only vars. | |
| 6427 | |
| 6428 do64bit_ok=no | |
| 6429 # default to '{$LIBS}' and set to "" on per-platform necessary basis | |
| 6430 SHLIB_LD_LIBS='${LIBS}' | |
| 6431 # When ld needs options to work in 64-bit mode, put them in | |
| 6432 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] | |
| 6433 # is disabled by the user. [Bug 1016796] | |
| 6434 LDFLAGS_ARCH="" | |
| 6435 UNSHARED_LIB_SUFFIX="" | |
| 6436 # TEA specific: use PACKAGE_VERSION instead of VERSION | |
| 6437 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' | |
| 6438 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' | |
| 6439 TCL_LIB_VERSIONS_OK=ok | |
| 6440 CFLAGS_DEBUG=-g | |
| 6441 if test "$GCC" = yes | |
| 6442 then : | |
| 6443 | |
| 6444 CFLAGS_OPTIMIZE=-O2 | |
| 6445 CFLAGS_WARNING="-Wall" | |
| 6446 | |
| 6447 else case e in #( | |
| 6448 e) | |
| 6449 CFLAGS_OPTIMIZE=-O | |
| 6450 CFLAGS_WARNING="" | |
| 6451 ;; | |
| 6452 esac | |
| 6453 fi | |
| 6454 if test -n "$ac_tool_prefix"; then | |
| 6455 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
| 6456 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
| 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6458 printf %s "checking for $ac_word... " >&6; } | |
| 6459 if test ${ac_cv_prog_AR+y} | |
| 6460 then : | |
| 6461 printf %s "(cached) " >&6 | |
| 6462 else case e in #( | |
| 6463 e) if test -n "$AR"; then | |
| 6464 ac_cv_prog_AR="$AR" # Let the user override the test. | |
| 6465 else | |
| 6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6467 for as_dir in $PATH | |
| 6468 do | |
| 6469 IFS=$as_save_IFS | |
| 6470 case $as_dir in #((( | |
| 6471 '') as_dir=./ ;; | |
| 6472 */) ;; | |
| 6473 *) as_dir=$as_dir/ ;; | |
| 6474 esac | |
| 6475 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 6477 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
| 6478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 6479 break 2 | |
| 6480 fi | |
| 6481 done | |
| 6482 done | |
| 6483 IFS=$as_save_IFS | |
| 6484 | |
| 6485 fi ;; | |
| 6486 esac | |
| 6487 fi | |
| 6488 AR=$ac_cv_prog_AR | |
| 6489 if test -n "$AR"; then | |
| 6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
| 6491 printf "%s\n" "$AR" >&6; } | |
| 6492 else | |
| 6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6494 printf "%s\n" "no" >&6; } | |
| 6495 fi | |
| 6496 | |
| 6497 | |
| 6498 fi | |
| 6499 if test -z "$ac_cv_prog_AR"; then | |
| 6500 ac_ct_AR=$AR | |
| 6501 # Extract the first word of "ar", so it can be a program name with args. | |
| 6502 set dummy ar; ac_word=$2 | |
| 6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6504 printf %s "checking for $ac_word... " >&6; } | |
| 6505 if test ${ac_cv_prog_ac_ct_AR+y} | |
| 6506 then : | |
| 6507 printf %s "(cached) " >&6 | |
| 6508 else case e in #( | |
| 6509 e) if test -n "$ac_ct_AR"; then | |
| 6510 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
| 6511 else | |
| 6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6513 for as_dir in $PATH | |
| 6514 do | |
| 6515 IFS=$as_save_IFS | |
| 6516 case $as_dir in #((( | |
| 6517 '') as_dir=./ ;; | |
| 6518 */) ;; | |
| 6519 *) as_dir=$as_dir/ ;; | |
| 6520 esac | |
| 6521 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 6523 ac_cv_prog_ac_ct_AR="ar" | |
| 6524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 6525 break 2 | |
| 6526 fi | |
| 6527 done | |
| 6528 done | |
| 6529 IFS=$as_save_IFS | |
| 6530 | |
| 6531 fi ;; | |
| 6532 esac | |
| 6533 fi | |
| 6534 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
| 6535 if test -n "$ac_ct_AR"; then | |
| 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
| 6537 printf "%s\n" "$ac_ct_AR" >&6; } | |
| 6538 else | |
| 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6540 printf "%s\n" "no" >&6; } | |
| 6541 fi | |
| 6542 | |
| 6543 if test "x$ac_ct_AR" = x; then | |
| 6544 AR="" | |
| 6545 else | |
| 6546 case $cross_compiling:$ac_tool_warned in | |
| 6547 yes:) | |
| 6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6550 ac_tool_warned=yes ;; | |
| 6551 esac | |
| 6552 AR=$ac_ct_AR | |
| 6553 fi | |
| 6554 else | |
| 6555 AR="$ac_cv_prog_AR" | |
| 6556 fi | |
| 6557 | |
| 6558 STLIB_LD='${AR} cr' | |
| 6559 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" | |
| 6560 if test "x$SHLIB_VERSION" = x | |
| 6561 then : | |
| 6562 SHLIB_VERSION="" | |
| 6563 else case e in #( | |
| 6564 e) SHLIB_VERSION=".$SHLIB_VERSION" ;; | |
| 6565 esac | |
| 6566 fi | |
| 6567 case $system in | |
| 6568 # TEA specific: | |
| 6569 windows) | |
| 6570 MACHINE="X86" | |
| 6571 if test "$do64bit" != "no" ; then | |
| 6572 case "$do64bit" in | |
| 6573 amd64|x64|yes) | |
| 6574 MACHINE="AMD64" ; # default to AMD64 64-bit build | |
| 6575 ;; | |
| 6576 arm64|aarch64) | |
| 6577 MACHINE="ARM64" | |
| 6578 ;; | |
| 6579 ia64) | |
| 6580 MACHINE="IA64" | |
| 6581 ;; | |
| 6582 esac | |
| 6583 fi | |
| 6584 | |
| 6585 if test "$GCC" != "yes" ; then | |
| 6586 if test "${SHARED_BUILD}" = "0" ; then | |
| 6587 runtime=-MT | |
| 6588 else | |
| 6589 runtime=-MD | |
| 6590 fi | |
| 6591 case "x`echo \${VisualStudioVersion}`" in | |
| 6592 x1[4-9]*) | |
| 6593 lflags="${lflags} -nodefaultlib:libucrt.lib" | |
| 6594 | |
| 6595 vars="ucrt.lib" | |
| 6596 for i in $vars; do | |
| 6597 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then | |
| 6598 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib | |
| 6599 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'` | |
| 6600 fi | |
| 6601 PKG_LIBS="$PKG_LIBS $i" | |
| 6602 done | |
| 6603 | |
| 6604 | |
| 6605 ;; | |
| 6606 *) | |
| 6607 ;; | |
| 6608 esac | |
| 6609 | |
| 6610 if test "$do64bit" != "no" ; then | |
| 6611 CC="cl.exe" | |
| 6612 RC="rc.exe" | |
| 6613 lflags="${lflags} -nologo -MACHINE:${MACHINE} " | |
| 6614 LINKBIN="link.exe" | |
| 6615 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" | |
| 6616 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" | |
| 6617 # Avoid 'unresolved external symbol __security_cookie' | |
| 6618 # errors, c.f. http://support.microsoft.com/?id=894573 | |
| 6619 | |
| 6620 vars="bufferoverflowU.lib" | |
| 6621 for i in $vars; do | |
| 6622 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then | |
| 6623 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib | |
| 6624 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'` | |
| 6625 fi | |
| 6626 PKG_LIBS="$PKG_LIBS $i" | |
| 6627 done | |
| 6628 | |
| 6629 | |
| 6630 else | |
| 6631 RC="rc" | |
| 6632 lflags="${lflags} -nologo" | |
| 6633 LINKBIN="link" | |
| 6634 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" | |
| 6635 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" | |
| 6636 fi | |
| 6637 fi | |
| 6638 | |
| 6639 if test "$GCC" = "yes"; then | |
| 6640 # mingw gcc mode | |
| 6641 if test -n "$ac_tool_prefix"; then | |
| 6642 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
| 6643 set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
| 6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6645 printf %s "checking for $ac_word... " >&6; } | |
| 6646 if test ${ac_cv_prog_RC+y} | |
| 6647 then : | |
| 6648 printf %s "(cached) " >&6 | |
| 6649 else case e in #( | |
| 6650 e) if test -n "$RC"; then | |
| 6651 ac_cv_prog_RC="$RC" # Let the user override the test. | |
| 6652 else | |
| 6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6654 for as_dir in $PATH | |
| 6655 do | |
| 6656 IFS=$as_save_IFS | |
| 6657 case $as_dir in #((( | |
| 6658 '') as_dir=./ ;; | |
| 6659 */) ;; | |
| 6660 *) as_dir=$as_dir/ ;; | |
| 6661 esac | |
| 6662 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 6664 ac_cv_prog_RC="${ac_tool_prefix}windres" | |
| 6665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 6666 break 2 | |
| 6667 fi | |
| 6668 done | |
| 6669 done | |
| 6670 IFS=$as_save_IFS | |
| 6671 | |
| 6672 fi ;; | |
| 6673 esac | |
| 6674 fi | |
| 6675 RC=$ac_cv_prog_RC | |
| 6676 if test -n "$RC"; then | |
| 6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 | |
| 6678 printf "%s\n" "$RC" >&6; } | |
| 6679 else | |
| 6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6681 printf "%s\n" "no" >&6; } | |
| 6682 fi | |
| 6683 | |
| 6684 | |
| 6685 fi | |
| 6686 if test -z "$ac_cv_prog_RC"; then | |
| 6687 ac_ct_RC=$RC | |
| 6688 # Extract the first word of "windres", so it can be a program name with args. | |
| 6689 set dummy windres; ac_word=$2 | |
| 6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6691 printf %s "checking for $ac_word... " >&6; } | |
| 6692 if test ${ac_cv_prog_ac_ct_RC+y} | |
| 6693 then : | |
| 6694 printf %s "(cached) " >&6 | |
| 6695 else case e in #( | |
| 6696 e) if test -n "$ac_ct_RC"; then | |
| 6697 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. | |
| 6698 else | |
| 6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6700 for as_dir in $PATH | |
| 6701 do | |
| 6702 IFS=$as_save_IFS | |
| 6703 case $as_dir in #((( | |
| 6704 '') as_dir=./ ;; | |
| 6705 */) ;; | |
| 6706 *) as_dir=$as_dir/ ;; | |
| 6707 esac | |
| 6708 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
| 6710 ac_cv_prog_ac_ct_RC="windres" | |
| 6711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
| 6712 break 2 | |
| 6713 fi | |
| 6714 done | |
| 6715 done | |
| 6716 IFS=$as_save_IFS | |
| 6717 | |
| 6718 fi ;; | |
| 6719 esac | |
| 6720 fi | |
| 6721 ac_ct_RC=$ac_cv_prog_ac_ct_RC | |
| 6722 if test -n "$ac_ct_RC"; then | |
| 6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 | |
| 6724 printf "%s\n" "$ac_ct_RC" >&6; } | |
| 6725 else | |
| 6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6727 printf "%s\n" "no" >&6; } | |
| 6728 fi | |
| 6729 | |
| 6730 if test "x$ac_ct_RC" = x; then | |
| 6731 RC="" | |
| 6732 else | |
| 6733 case $cross_compiling:$ac_tool_warned in | |
| 6734 yes:) | |
| 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6737 ac_tool_warned=yes ;; | |
| 6738 esac | |
| 6739 RC=$ac_ct_RC | |
| 6740 fi | |
| 6741 else | |
| 6742 RC="$ac_cv_prog_RC" | |
| 6743 fi | |
| 6744 | |
| 6745 CFLAGS_DEBUG="-g" | |
| 6746 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" | |
| 6747 SHLIB_LD='${CC} -shared' | |
| 6748 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' | |
| 6749 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" | |
| 6750 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" | |
| 6751 | |
| 6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5 | |
| 6753 printf %s "checking for cross-compile version of gcc... " >&6; } | |
| 6754 if test ${ac_cv_cross+y} | |
| 6755 then : | |
| 6756 printf %s "(cached) " >&6 | |
| 6757 else case e in #( | |
| 6758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 6759 /* end confdefs.h. */ | |
| 6760 | |
| 6761 #ifdef _WIN32 | |
| 6762 #error cross-compiler | |
| 6763 #endif | |
| 6764 | |
| 6765 int | |
| 6766 main (void) | |
| 6767 { | |
| 6768 | |
| 6769 ; | |
| 6770 return 0; | |
| 6771 } | |
| 6772 _ACEOF | |
| 6773 if ac_fn_c_try_compile "$LINENO" | |
| 6774 then : | |
| 6775 ac_cv_cross=yes | |
| 6776 else case e in #( | |
| 6777 e) ac_cv_cross=no ;; | |
| 6778 esac | |
| 6779 fi | |
| 6780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 6781 ;; | |
| 6782 esac | |
| 6783 fi | |
| 6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5 | |
| 6785 printf "%s\n" "$ac_cv_cross" >&6; } | |
| 6786 if test "$ac_cv_cross" = "yes"; then | |
| 6787 case "$do64bit" in | |
| 6788 amd64|x64|yes) | |
| 6789 CC="x86_64-w64-mingw32-${CC}" | |
| 6790 LD="x86_64-w64-mingw32-ld" | |
| 6791 AR="x86_64-w64-mingw32-ar" | |
| 6792 RANLIB="x86_64-w64-mingw32-ranlib" | |
| 6793 RC="x86_64-w64-mingw32-windres" | |
| 6794 ;; | |
| 6795 arm64|aarch64) | |
| 6796 CC="aarch64-w64-mingw32-clang" | |
| 6797 LD="aarch64-w64-mingw32-ld" | |
| 6798 AR="aarch64-w64-mingw32-ar" | |
| 6799 RANLIB="aarch64-w64-mingw32-ranlib" | |
| 6800 RC="aarch64-w64-mingw32-windres" | |
| 6801 ;; | |
| 6802 *) | |
| 6803 CC="i686-w64-mingw32-${CC}" | |
| 6804 LD="i686-w64-mingw32-ld" | |
| 6805 AR="i686-w64-mingw32-ar" | |
| 6806 RANLIB="i686-w64-mingw32-ranlib" | |
| 6807 RC="i686-w64-mingw32-windres" | |
| 6808 ;; | |
| 6809 esac | |
| 6810 fi | |
| 6811 | |
| 6812 else | |
| 6813 SHLIB_LD="${LINKBIN} -dll ${lflags}" | |
| 6814 # link -lib only works when -lib is the first arg | |
| 6815 STLIB_LD="${LINKBIN} -lib ${lflags}" | |
| 6816 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' | |
| 6817 PATHTYPE=-w | |
| 6818 # For information on what debugtype is most useful, see: | |
| 6819 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp | |
| 6820 # and also | |
| 6821 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx | |
| 6822 # This essentially turns it all on. | |
| 6823 LDFLAGS_DEBUG="-debug -debugtype:cv" | |
| 6824 LDFLAGS_OPTIMIZE="-release" | |
| 6825 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" | |
| 6826 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" | |
| 6827 fi | |
| 6828 | |
| 6829 SHLIB_SUFFIX=".dll" | |
| 6830 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' | |
| 6831 | |
| 6832 TCL_LIB_VERSIONS_OK=nodots | |
| 6833 ;; | |
| 6834 AIX-*) | |
| 6835 if test "$GCC" != "yes" | |
| 6836 then : | |
| 6837 | |
| 6838 # AIX requires the _r compiler when gcc isn't being used | |
| 6839 case "${CC}" in | |
| 6840 *_r|*_r\ *) | |
| 6841 # ok ... | |
| 6842 ;; | |
| 6843 *) | |
| 6844 # Make sure only first arg gets _r | |
| 6845 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` | |
| 6846 ;; | |
| 6847 esac | |
| 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 | |
| 6849 printf "%s\n" "Using $CC for compiling with threads" >&6; } | |
| 6850 | |
| 6851 fi | |
| 6852 LIBS="$LIBS -lc" | |
| 6853 SHLIB_CFLAGS="" | |
| 6854 SHLIB_SUFFIX=".so" | |
| 6855 | |
| 6856 LD_LIBRARY_PATH_VAR="LIBPATH" | |
| 6857 | |
| 6858 # Check to enable 64-bit flags for compiler/linker | |
| 6859 if test "$do64bit" = yes | |
| 6860 then : | |
| 6861 | |
| 6862 if test "$GCC" = yes | |
| 6863 then : | |
| 6864 | |
| 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 | |
| 6866 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} | |
| 6867 | |
| 6868 else case e in #( | |
| 6869 e) | |
| 6870 do64bit_ok=yes | |
| 6871 CFLAGS="$CFLAGS -q64" | |
| 6872 LDFLAGS_ARCH="-q64" | |
| 6873 RANLIB="${RANLIB} -X64" | |
| 6874 AR="${AR} -X64" | |
| 6875 SHLIB_LD_FLAGS="-b64" | |
| 6876 ;; | |
| 6877 esac | |
| 6878 fi | |
| 6879 | |
| 6880 fi | |
| 6881 | |
| 6882 if test "`uname -m`" = ia64 | |
| 6883 then : | |
| 6884 | |
| 6885 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC | |
| 6886 SHLIB_LD="/usr/ccs/bin/ld -G -z text" | |
| 6887 if test "$GCC" = yes | |
| 6888 then : | |
| 6889 | |
| 6890 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"' | |
| 6891 | |
| 6892 else case e in #( | |
| 6893 e) | |
| 6894 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"' | |
| 6895 ;; | |
| 6896 esac | |
| 6897 fi | |
| 6898 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"' | |
| 6899 | |
| 6900 else case e in #( | |
| 6901 e) | |
| 6902 if test "$GCC" = yes | |
| 6903 then : | |
| 6904 | |
| 6905 SHLIB_LD='${CC} -shared -Wl,-bexpall' | |
| 6906 | |
| 6907 else case e in #( | |
| 6908 e) | |
| 6909 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" | |
| 6910 LDFLAGS="$LDFLAGS -brtl" | |
| 6911 ;; | |
| 6912 esac | |
| 6913 fi | |
| 6914 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" | |
| 6915 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"' | |
| 6916 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 6917 ;; | |
| 6918 esac | |
| 6919 fi | |
| 6920 ;; | |
| 6921 BeOS*) | |
| 6922 SHLIB_CFLAGS="-fPIC" | |
| 6923 SHLIB_LD='${CC} -nostart' | |
| 6924 SHLIB_SUFFIX=".so" | |
| 6925 | |
| 6926 #----------------------------------------------------------- | |
| 6927 # Check for inet_ntoa in -lbind, for BeOS (which also needs | |
| 6928 # -lsocket, even if the network functions are in -lnet which | |
| 6929 # is always linked to, for compatibility. | |
| 6930 #----------------------------------------------------------- | |
| 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 | |
| 6932 printf %s "checking for inet_ntoa in -lbind... " >&6; } | |
| 6933 if test ${ac_cv_lib_bind_inet_ntoa+y} | |
| 6934 then : | |
| 6935 printf %s "(cached) " >&6 | |
| 6936 else case e in #( | |
| 6937 e) ac_check_lib_save_LIBS=$LIBS | |
| 6938 LIBS="-lbind $LIBS" | |
| 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 6940 /* end confdefs.h. */ | |
| 6941 | |
| 6942 /* Override any GCC internal prototype to avoid an error. | |
| 6943 Use char because int might match the return type of a GCC | |
| 6944 builtin and then its argument prototype would still apply. | |
| 6945 The 'extern "C"' is for builds by C++ compilers; | |
| 6946 although this is not generally supported in C code supporting it here | |
| 6947 has little cost and some practical benefit (sr 110532). */ | |
| 6948 #ifdef __cplusplus | |
| 6949 extern "C" | |
| 6950 #endif | |
| 6951 char inet_ntoa (void); | |
| 6952 int | |
| 6953 main (void) | |
| 6954 { | |
| 6955 return inet_ntoa (); | |
| 6956 ; | |
| 6957 return 0; | |
| 6958 } | |
| 6959 _ACEOF | |
| 6960 if ac_fn_c_try_link "$LINENO" | |
| 6961 then : | |
| 6962 ac_cv_lib_bind_inet_ntoa=yes | |
| 6963 else case e in #( | |
| 6964 e) ac_cv_lib_bind_inet_ntoa=no ;; | |
| 6965 esac | |
| 6966 fi | |
| 6967 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 6968 conftest$ac_exeext conftest.$ac_ext | |
| 6969 LIBS=$ac_check_lib_save_LIBS ;; | |
| 6970 esac | |
| 6971 fi | |
| 6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 | |
| 6973 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; } | |
| 6974 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes | |
| 6975 then : | |
| 6976 LIBS="$LIBS -lbind -lsocket" | |
| 6977 fi | |
| 6978 | |
| 6979 ;; | |
| 6980 BSD/OS-2.1*|BSD/OS-3*) | |
| 6981 SHLIB_CFLAGS="" | |
| 6982 SHLIB_LD="shlicc -r" | |
| 6983 SHLIB_SUFFIX=".so" | |
| 6984 CC_SEARCH_FLAGS="" | |
| 6985 LD_SEARCH_FLAGS="" | |
| 6986 ;; | |
| 6987 BSD/OS-4.*) | |
| 6988 SHLIB_CFLAGS="-export-dynamic -fPIC" | |
| 6989 SHLIB_LD='${CC} -shared' | |
| 6990 SHLIB_SUFFIX=".so" | |
| 6991 LDFLAGS="$LDFLAGS -export-dynamic" | |
| 6992 CC_SEARCH_FLAGS="" | |
| 6993 LD_SEARCH_FLAGS="" | |
| 6994 ;; | |
| 6995 CYGWIN_*) | |
| 6996 SHLIB_CFLAGS="" | |
| 6997 SHLIB_LD='${CC} -shared' | |
| 6998 SHLIB_SUFFIX=".dll" | |
| 6999 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a" | |
| 7000 EXEEXT=".exe" | |
| 7001 do64bit_ok=yes | |
| 7002 CC_SEARCH_FLAGS="" | |
| 7003 LD_SEARCH_FLAGS="" | |
| 7004 ;; | |
| 7005 dgux*) | |
| 7006 SHLIB_CFLAGS="-K PIC" | |
| 7007 SHLIB_LD='${CC} -G' | |
| 7008 SHLIB_LD_LIBS="" | |
| 7009 SHLIB_SUFFIX=".so" | |
| 7010 CC_SEARCH_FLAGS="" | |
| 7011 LD_SEARCH_FLAGS="" | |
| 7012 ;; | |
| 7013 Haiku*) | |
| 7014 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
| 7015 SHLIB_CFLAGS="-fPIC" | |
| 7016 SHLIB_SUFFIX=".so" | |
| 7017 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' | |
| 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5 | |
| 7019 printf %s "checking for inet_ntoa in -lnetwork... " >&6; } | |
| 7020 if test ${ac_cv_lib_network_inet_ntoa+y} | |
| 7021 then : | |
| 7022 printf %s "(cached) " >&6 | |
| 7023 else case e in #( | |
| 7024 e) ac_check_lib_save_LIBS=$LIBS | |
| 7025 LIBS="-lnetwork $LIBS" | |
| 7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7027 /* end confdefs.h. */ | |
| 7028 | |
| 7029 /* Override any GCC internal prototype to avoid an error. | |
| 7030 Use char because int might match the return type of a GCC | |
| 7031 builtin and then its argument prototype would still apply. | |
| 7032 The 'extern "C"' is for builds by C++ compilers; | |
| 7033 although this is not generally supported in C code supporting it here | |
| 7034 has little cost and some practical benefit (sr 110532). */ | |
| 7035 #ifdef __cplusplus | |
| 7036 extern "C" | |
| 7037 #endif | |
| 7038 char inet_ntoa (void); | |
| 7039 int | |
| 7040 main (void) | |
| 7041 { | |
| 7042 return inet_ntoa (); | |
| 7043 ; | |
| 7044 return 0; | |
| 7045 } | |
| 7046 _ACEOF | |
| 7047 if ac_fn_c_try_link "$LINENO" | |
| 7048 then : | |
| 7049 ac_cv_lib_network_inet_ntoa=yes | |
| 7050 else case e in #( | |
| 7051 e) ac_cv_lib_network_inet_ntoa=no ;; | |
| 7052 esac | |
| 7053 fi | |
| 7054 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7055 conftest$ac_exeext conftest.$ac_ext | |
| 7056 LIBS=$ac_check_lib_save_LIBS ;; | |
| 7057 esac | |
| 7058 fi | |
| 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5 | |
| 7060 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; } | |
| 7061 if test "x$ac_cv_lib_network_inet_ntoa" = xyes | |
| 7062 then : | |
| 7063 LIBS="$LIBS -lnetwork" | |
| 7064 fi | |
| 7065 | |
| 7066 ;; | |
| 7067 HP-UX-*.11.*) | |
| 7068 # Use updated header definitions where possible | |
| 7069 | |
| 7070 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | |
| 7071 | |
| 7072 # TEA specific: Needed by Tcl, but not most extensions | |
| 7073 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) | |
| 7074 #LIBS="$LIBS -lxnet" # Use the XOPEN network library | |
| 7075 | |
| 7076 if test "`uname -m`" = ia64 | |
| 7077 then : | |
| 7078 | |
| 7079 SHLIB_SUFFIX=".so" | |
| 7080 | |
| 7081 else case e in #( | |
| 7082 e) | |
| 7083 SHLIB_SUFFIX=".sl" | |
| 7084 ;; | |
| 7085 esac | |
| 7086 fi | |
| 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
| 7088 printf %s "checking for shl_load in -ldld... " >&6; } | |
| 7089 if test ${ac_cv_lib_dld_shl_load+y} | |
| 7090 then : | |
| 7091 printf %s "(cached) " >&6 | |
| 7092 else case e in #( | |
| 7093 e) ac_check_lib_save_LIBS=$LIBS | |
| 7094 LIBS="-ldld $LIBS" | |
| 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7096 /* end confdefs.h. */ | |
| 7097 | |
| 7098 /* Override any GCC internal prototype to avoid an error. | |
| 7099 Use char because int might match the return type of a GCC | |
| 7100 builtin and then its argument prototype would still apply. | |
| 7101 The 'extern "C"' is for builds by C++ compilers; | |
| 7102 although this is not generally supported in C code supporting it here | |
| 7103 has little cost and some practical benefit (sr 110532). */ | |
| 7104 #ifdef __cplusplus | |
| 7105 extern "C" | |
| 7106 #endif | |
| 7107 char shl_load (void); | |
| 7108 int | |
| 7109 main (void) | |
| 7110 { | |
| 7111 return shl_load (); | |
| 7112 ; | |
| 7113 return 0; | |
| 7114 } | |
| 7115 _ACEOF | |
| 7116 if ac_fn_c_try_link "$LINENO" | |
| 7117 then : | |
| 7118 ac_cv_lib_dld_shl_load=yes | |
| 7119 else case e in #( | |
| 7120 e) ac_cv_lib_dld_shl_load=no ;; | |
| 7121 esac | |
| 7122 fi | |
| 7123 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7124 conftest$ac_exeext conftest.$ac_ext | |
| 7125 LIBS=$ac_check_lib_save_LIBS ;; | |
| 7126 esac | |
| 7127 fi | |
| 7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
| 7129 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } | |
| 7130 if test "x$ac_cv_lib_dld_shl_load" = xyes | |
| 7131 then : | |
| 7132 tcl_ok=yes | |
| 7133 else case e in #( | |
| 7134 e) tcl_ok=no ;; | |
| 7135 esac | |
| 7136 fi | |
| 7137 | |
| 7138 if test "$tcl_ok" = yes | |
| 7139 then : | |
| 7140 | |
| 7141 SHLIB_CFLAGS="+z" | |
| 7142 SHLIB_LD="ld -b" | |
| 7143 LDFLAGS="$LDFLAGS -Wl,-E" | |
| 7144 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."' | |
| 7145 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."' | |
| 7146 LD_LIBRARY_PATH_VAR="SHLIB_PATH" | |
| 7147 | |
| 7148 fi | |
| 7149 if test "$GCC" = yes | |
| 7150 then : | |
| 7151 | |
| 7152 SHLIB_LD='${CC} -shared' | |
| 7153 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7154 | |
| 7155 else case e in #( | |
| 7156 e) | |
| 7157 CFLAGS="$CFLAGS -z" | |
| 7158 ;; | |
| 7159 esac | |
| 7160 fi | |
| 7161 | |
| 7162 # Check to enable 64-bit flags for compiler/linker | |
| 7163 if test "$do64bit" = "yes" | |
| 7164 then : | |
| 7165 | |
| 7166 if test "$GCC" = yes | |
| 7167 then : | |
| 7168 | |
| 7169 case `${CC} -dumpmachine` in | |
| 7170 hppa64*) | |
| 7171 # 64-bit gcc in use. Fix flags for GNU ld. | |
| 7172 do64bit_ok=yes | |
| 7173 SHLIB_LD='${CC} -shared' | |
| 7174 if test $doRpath = yes | |
| 7175 then : | |
| 7176 | |
| 7177 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7178 fi | |
| 7179 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7180 ;; | |
| 7181 *) | |
| 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 | |
| 7183 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} | |
| 7184 ;; | |
| 7185 esac | |
| 7186 | |
| 7187 else case e in #( | |
| 7188 e) | |
| 7189 do64bit_ok=yes | |
| 7190 CFLAGS="$CFLAGS +DD64" | |
| 7191 LDFLAGS_ARCH="+DD64" | |
| 7192 ;; | |
| 7193 esac | |
| 7194 fi | |
| 7195 | |
| 7196 fi ;; | |
| 7197 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) | |
| 7198 SHLIB_SUFFIX=".sl" | |
| 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
| 7200 printf %s "checking for shl_load in -ldld... " >&6; } | |
| 7201 if test ${ac_cv_lib_dld_shl_load+y} | |
| 7202 then : | |
| 7203 printf %s "(cached) " >&6 | |
| 7204 else case e in #( | |
| 7205 e) ac_check_lib_save_LIBS=$LIBS | |
| 7206 LIBS="-ldld $LIBS" | |
| 7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7208 /* end confdefs.h. */ | |
| 7209 | |
| 7210 /* Override any GCC internal prototype to avoid an error. | |
| 7211 Use char because int might match the return type of a GCC | |
| 7212 builtin and then its argument prototype would still apply. | |
| 7213 The 'extern "C"' is for builds by C++ compilers; | |
| 7214 although this is not generally supported in C code supporting it here | |
| 7215 has little cost and some practical benefit (sr 110532). */ | |
| 7216 #ifdef __cplusplus | |
| 7217 extern "C" | |
| 7218 #endif | |
| 7219 char shl_load (void); | |
| 7220 int | |
| 7221 main (void) | |
| 7222 { | |
| 7223 return shl_load (); | |
| 7224 ; | |
| 7225 return 0; | |
| 7226 } | |
| 7227 _ACEOF | |
| 7228 if ac_fn_c_try_link "$LINENO" | |
| 7229 then : | |
| 7230 ac_cv_lib_dld_shl_load=yes | |
| 7231 else case e in #( | |
| 7232 e) ac_cv_lib_dld_shl_load=no ;; | |
| 7233 esac | |
| 7234 fi | |
| 7235 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7236 conftest$ac_exeext conftest.$ac_ext | |
| 7237 LIBS=$ac_check_lib_save_LIBS ;; | |
| 7238 esac | |
| 7239 fi | |
| 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
| 7241 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } | |
| 7242 if test "x$ac_cv_lib_dld_shl_load" = xyes | |
| 7243 then : | |
| 7244 tcl_ok=yes | |
| 7245 else case e in #( | |
| 7246 e) tcl_ok=no ;; | |
| 7247 esac | |
| 7248 fi | |
| 7249 | |
| 7250 if test "$tcl_ok" = yes | |
| 7251 then : | |
| 7252 | |
| 7253 SHLIB_CFLAGS="+z" | |
| 7254 SHLIB_LD="ld -b" | |
| 7255 SHLIB_LD_LIBS="" | |
| 7256 LDFLAGS="$LDFLAGS -Wl,-E" | |
| 7257 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."' | |
| 7258 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."' | |
| 7259 LD_LIBRARY_PATH_VAR="SHLIB_PATH" | |
| 7260 | |
| 7261 fi ;; | |
| 7262 IRIX-5.*) | |
| 7263 SHLIB_CFLAGS="" | |
| 7264 SHLIB_LD="ld -shared -rdata_shared" | |
| 7265 SHLIB_SUFFIX=".so" | |
| 7266 case " $LIBOBJS " in | |
| 7267 *" mkstemp.$ac_objext "* ) ;; | |
| 7268 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" | |
| 7269 ;; | |
| 7270 esac | |
| 7271 | |
| 7272 if test $doRpath = yes | |
| 7273 then : | |
| 7274 | |
| 7275 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7276 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"' | |
| 7277 fi | |
| 7278 ;; | |
| 7279 IRIX-6.*) | |
| 7280 SHLIB_CFLAGS="" | |
| 7281 SHLIB_LD="ld -n32 -shared -rdata_shared" | |
| 7282 SHLIB_SUFFIX=".so" | |
| 7283 if test $doRpath = yes | |
| 7284 then : | |
| 7285 | |
| 7286 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7287 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"' | |
| 7288 fi | |
| 7289 if test "$GCC" = yes | |
| 7290 then : | |
| 7291 | |
| 7292 CFLAGS="$CFLAGS -mabi=n32" | |
| 7293 LDFLAGS="$LDFLAGS -mabi=n32" | |
| 7294 | |
| 7295 else case e in #( | |
| 7296 e) | |
| 7297 case $system in | |
| 7298 IRIX-6.3) | |
| 7299 # Use to build 6.2 compatible binaries on 6.3. | |
| 7300 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" | |
| 7301 ;; | |
| 7302 *) | |
| 7303 CFLAGS="$CFLAGS -n32" | |
| 7304 ;; | |
| 7305 esac | |
| 7306 LDFLAGS="$LDFLAGS -n32" | |
| 7307 ;; | |
| 7308 esac | |
| 7309 fi | |
| 7310 ;; | |
| 7311 IRIX64-6.*) | |
| 7312 SHLIB_CFLAGS="" | |
| 7313 SHLIB_LD="ld -n32 -shared -rdata_shared" | |
| 7314 SHLIB_SUFFIX=".so" | |
| 7315 if test $doRpath = yes | |
| 7316 then : | |
| 7317 | |
| 7318 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7319 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"' | |
| 7320 fi | |
| 7321 | |
| 7322 # Check to enable 64-bit flags for compiler/linker | |
| 7323 | |
| 7324 if test "$do64bit" = yes | |
| 7325 then : | |
| 7326 | |
| 7327 if test "$GCC" = yes | |
| 7328 then : | |
| 7329 | |
| 7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 | |
| 7331 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} | |
| 7332 | |
| 7333 else case e in #( | |
| 7334 e) | |
| 7335 do64bit_ok=yes | |
| 7336 SHLIB_LD="ld -64 -shared -rdata_shared" | |
| 7337 CFLAGS="$CFLAGS -64" | |
| 7338 LDFLAGS_ARCH="-64" | |
| 7339 ;; | |
| 7340 esac | |
| 7341 fi | |
| 7342 | |
| 7343 fi | |
| 7344 ;; | |
| 7345 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*) | |
| 7346 SHLIB_CFLAGS="-fPIC" | |
| 7347 SHLIB_SUFFIX=".so" | |
| 7348 | |
| 7349 # TEA specific: | |
| 7350 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" | |
| 7351 | |
| 7352 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS | |
| 7353 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared' | |
| 7354 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
| 7355 | |
| 7356 case $system in | |
| 7357 DragonFly-*|FreeBSD-*) | |
| 7358 if test "${TCL_THREADS}" = "1" | |
| 7359 then : | |
| 7360 | |
| 7361 # The -pthread needs to go in the LDFLAGS, not LIBS | |
| 7362 LIBS=`echo $LIBS | sed s/-pthread//` | |
| 7363 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
| 7364 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" | |
| 7365 fi | |
| 7366 ;; | |
| 7367 esac | |
| 7368 | |
| 7369 if test $doRpath = yes | |
| 7370 then : | |
| 7371 | |
| 7372 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7373 fi | |
| 7374 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7375 if test "`uname -m`" = "alpha" | |
| 7376 then : | |
| 7377 CFLAGS="$CFLAGS -mieee" | |
| 7378 fi | |
| 7379 if test $do64bit = yes | |
| 7380 then : | |
| 7381 | |
| 7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 | |
| 7383 printf %s "checking if compiler accepts -m64 flag... " >&6; } | |
| 7384 if test ${tcl_cv_cc_m64+y} | |
| 7385 then : | |
| 7386 printf %s "(cached) " >&6 | |
| 7387 else case e in #( | |
| 7388 e) | |
| 7389 hold_cflags=$CFLAGS | |
| 7390 CFLAGS="$CFLAGS -m64" | |
| 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7392 /* end confdefs.h. */ | |
| 7393 | |
| 7394 int | |
| 7395 main (void) | |
| 7396 { | |
| 7397 | |
| 7398 ; | |
| 7399 return 0; | |
| 7400 } | |
| 7401 _ACEOF | |
| 7402 if ac_fn_c_try_link "$LINENO" | |
| 7403 then : | |
| 7404 tcl_cv_cc_m64=yes | |
| 7405 else case e in #( | |
| 7406 e) tcl_cv_cc_m64=no ;; | |
| 7407 esac | |
| 7408 fi | |
| 7409 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7410 conftest$ac_exeext conftest.$ac_ext | |
| 7411 CFLAGS=$hold_cflags ;; | |
| 7412 esac | |
| 7413 fi | |
| 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 | |
| 7415 printf "%s\n" "$tcl_cv_cc_m64" >&6; } | |
| 7416 if test $tcl_cv_cc_m64 = yes | |
| 7417 then : | |
| 7418 | |
| 7419 CFLAGS="$CFLAGS -m64" | |
| 7420 do64bit_ok=yes | |
| 7421 | |
| 7422 fi | |
| 7423 | |
| 7424 fi | |
| 7425 | |
| 7426 # The combo of gcc + glibc has a bug related to inlining of | |
| 7427 # functions like strtod(). The -fno-builtin flag should address | |
| 7428 # this problem but it does not work. The -fno-inline flag is kind | |
| 7429 # of overkill but it works. Disable inlining only when one of the | |
| 7430 # files in compat/*.c is being linked in. | |
| 7431 | |
| 7432 if test x"${USE_COMPAT}" != x | |
| 7433 then : | |
| 7434 CFLAGS="$CFLAGS -fno-inline" | |
| 7435 fi | |
| 7436 ;; | |
| 7437 Lynx*) | |
| 7438 SHLIB_CFLAGS="-fPIC" | |
| 7439 SHLIB_SUFFIX=".so" | |
| 7440 CFLAGS_OPTIMIZE=-02 | |
| 7441 SHLIB_LD='${CC} -shared' | |
| 7442 LD_FLAGS="-Wl,--export-dynamic" | |
| 7443 if test $doRpath = yes | |
| 7444 then : | |
| 7445 | |
| 7446 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7447 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7448 fi | |
| 7449 ;; | |
| 7450 OpenBSD-*) | |
| 7451 arch=`arch -s` | |
| 7452 case "$arch" in | |
| 7453 alpha|sparc64) | |
| 7454 SHLIB_CFLAGS="-fPIC" | |
| 7455 ;; | |
| 7456 *) | |
| 7457 SHLIB_CFLAGS="-fpic" | |
| 7458 ;; | |
| 7459 esac | |
| 7460 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared' | |
| 7461 SHLIB_SUFFIX=".so" | |
| 7462 if test $doRpath = yes | |
| 7463 then : | |
| 7464 | |
| 7465 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7466 fi | |
| 7467 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7468 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' | |
| 7469 LDFLAGS="$LDFLAGS -Wl,-export-dynamic" | |
| 7470 CFLAGS_OPTIMIZE="-O2" | |
| 7471 # On OpenBSD: Compile with -pthread | |
| 7472 # Don't link with -lpthread | |
| 7473 LIBS=`echo $LIBS | sed s/-lpthread//` | |
| 7474 CFLAGS="$CFLAGS -pthread" | |
| 7475 # OpenBSD doesn't do version numbers with dots. | |
| 7476 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' | |
| 7477 TCL_LIB_VERSIONS_OK=nodots | |
| 7478 ;; | |
| 7479 NetBSD-*) | |
| 7480 # NetBSD has ELF and can use 'cc -shared' to build shared libs | |
| 7481 SHLIB_CFLAGS="-fPIC" | |
| 7482 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared' | |
| 7483 SHLIB_SUFFIX=".so" | |
| 7484 LDFLAGS="$LDFLAGS -export-dynamic" | |
| 7485 if test $doRpath = yes | |
| 7486 then : | |
| 7487 | |
| 7488 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7489 fi | |
| 7490 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7491 # The -pthread needs to go in the CFLAGS, not LIBS | |
| 7492 LIBS=`echo $LIBS | sed s/-pthread//` | |
| 7493 CFLAGS="$CFLAGS -pthread" | |
| 7494 LDFLAGS="$LDFLAGS -pthread" | |
| 7495 ;; | |
| 7496 Darwin-*) | |
| 7497 CFLAGS_OPTIMIZE="-Os" | |
| 7498 SHLIB_CFLAGS="-fno-common" | |
| 7499 # To avoid discrepancies between what headers configure sees during | |
| 7500 # preprocessing tests and compiling tests, move any -isysroot and | |
| 7501 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: | |
| 7502 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ | |
| 7503 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ | |
| 7504 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" | |
| 7505 CFLAGS="`echo " ${CFLAGS}" | \ | |
| 7506 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ | |
| 7507 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" | |
| 7508 if test $do64bit = yes | |
| 7509 then : | |
| 7510 | |
| 7511 case `arch` in | |
| 7512 ppc) | |
| 7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 | |
| 7514 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; } | |
| 7515 if test ${tcl_cv_cc_arch_ppc64+y} | |
| 7516 then : | |
| 7517 printf %s "(cached) " >&6 | |
| 7518 else case e in #( | |
| 7519 e) | |
| 7520 hold_cflags=$CFLAGS | |
| 7521 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" | |
| 7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7523 /* end confdefs.h. */ | |
| 7524 | |
| 7525 int | |
| 7526 main (void) | |
| 7527 { | |
| 7528 | |
| 7529 ; | |
| 7530 return 0; | |
| 7531 } | |
| 7532 _ACEOF | |
| 7533 if ac_fn_c_try_link "$LINENO" | |
| 7534 then : | |
| 7535 tcl_cv_cc_arch_ppc64=yes | |
| 7536 else case e in #( | |
| 7537 e) tcl_cv_cc_arch_ppc64=no ;; | |
| 7538 esac | |
| 7539 fi | |
| 7540 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7541 conftest$ac_exeext conftest.$ac_ext | |
| 7542 CFLAGS=$hold_cflags ;; | |
| 7543 esac | |
| 7544 fi | |
| 7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 | |
| 7546 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; } | |
| 7547 if test $tcl_cv_cc_arch_ppc64 = yes | |
| 7548 then : | |
| 7549 | |
| 7550 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" | |
| 7551 do64bit_ok=yes | |
| 7552 | |
| 7553 fi;; | |
| 7554 i386) | |
| 7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 | |
| 7556 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; } | |
| 7557 if test ${tcl_cv_cc_arch_x86_64+y} | |
| 7558 then : | |
| 7559 printf %s "(cached) " >&6 | |
| 7560 else case e in #( | |
| 7561 e) | |
| 7562 hold_cflags=$CFLAGS | |
| 7563 CFLAGS="$CFLAGS -arch x86_64" | |
| 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7565 /* end confdefs.h. */ | |
| 7566 | |
| 7567 int | |
| 7568 main (void) | |
| 7569 { | |
| 7570 | |
| 7571 ; | |
| 7572 return 0; | |
| 7573 } | |
| 7574 _ACEOF | |
| 7575 if ac_fn_c_try_link "$LINENO" | |
| 7576 then : | |
| 7577 tcl_cv_cc_arch_x86_64=yes | |
| 7578 else case e in #( | |
| 7579 e) tcl_cv_cc_arch_x86_64=no ;; | |
| 7580 esac | |
| 7581 fi | |
| 7582 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7583 conftest$ac_exeext conftest.$ac_ext | |
| 7584 CFLAGS=$hold_cflags ;; | |
| 7585 esac | |
| 7586 fi | |
| 7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 | |
| 7588 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; } | |
| 7589 if test $tcl_cv_cc_arch_x86_64 = yes | |
| 7590 then : | |
| 7591 | |
| 7592 CFLAGS="$CFLAGS -arch x86_64" | |
| 7593 do64bit_ok=yes | |
| 7594 | |
| 7595 fi;; | |
| 7596 *) | |
| 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 | |
| 7598 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; | |
| 7599 esac | |
| 7600 | |
| 7601 else case e in #( | |
| 7602 e) | |
| 7603 # Check for combined 32-bit and 64-bit fat build | |
| 7604 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ | |
| 7605 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) ' | |
| 7606 then : | |
| 7607 | |
| 7608 fat_32_64=yes | |
| 7609 fi | |
| 7610 ;; | |
| 7611 esac | |
| 7612 fi | |
| 7613 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS | |
| 7614 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' | |
| 7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 | |
| 7616 printf %s "checking if ld accepts -single_module flag... " >&6; } | |
| 7617 if test ${tcl_cv_ld_single_module+y} | |
| 7618 then : | |
| 7619 printf %s "(cached) " >&6 | |
| 7620 else case e in #( | |
| 7621 e) | |
| 7622 hold_ldflags=$LDFLAGS | |
| 7623 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" | |
| 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7625 /* end confdefs.h. */ | |
| 7626 | |
| 7627 int | |
| 7628 main (void) | |
| 7629 { | |
| 7630 int i; | |
| 7631 ; | |
| 7632 return 0; | |
| 7633 } | |
| 7634 _ACEOF | |
| 7635 if ac_fn_c_try_link "$LINENO" | |
| 7636 then : | |
| 7637 tcl_cv_ld_single_module=yes | |
| 7638 else case e in #( | |
| 7639 e) tcl_cv_ld_single_module=no ;; | |
| 7640 esac | |
| 7641 fi | |
| 7642 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7643 conftest$ac_exeext conftest.$ac_ext | |
| 7644 LDFLAGS=$hold_ldflags ;; | |
| 7645 esac | |
| 7646 fi | |
| 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 | |
| 7648 printf "%s\n" "$tcl_cv_ld_single_module" >&6; } | |
| 7649 if test $tcl_cv_ld_single_module = yes | |
| 7650 then : | |
| 7651 | |
| 7652 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" | |
| 7653 | |
| 7654 fi | |
| 7655 # TEA specific: link shlib with current and compatibility version flags | |
| 7656 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` | |
| 7657 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" | |
| 7658 SHLIB_SUFFIX=".dylib" | |
| 7659 LDFLAGS="$LDFLAGS -headerpad_max_install_names" | |
| 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 | |
| 7661 printf %s "checking if ld accepts -search_paths_first flag... " >&6; } | |
| 7662 if test ${tcl_cv_ld_search_paths_first+y} | |
| 7663 then : | |
| 7664 printf %s "(cached) " >&6 | |
| 7665 else case e in #( | |
| 7666 e) | |
| 7667 hold_ldflags=$LDFLAGS | |
| 7668 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" | |
| 7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7670 /* end confdefs.h. */ | |
| 7671 | |
| 7672 int | |
| 7673 main (void) | |
| 7674 { | |
| 7675 int i; | |
| 7676 ; | |
| 7677 return 0; | |
| 7678 } | |
| 7679 _ACEOF | |
| 7680 if ac_fn_c_try_link "$LINENO" | |
| 7681 then : | |
| 7682 tcl_cv_ld_search_paths_first=yes | |
| 7683 else case e in #( | |
| 7684 e) tcl_cv_ld_search_paths_first=no ;; | |
| 7685 esac | |
| 7686 fi | |
| 7687 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7688 conftest$ac_exeext conftest.$ac_ext | |
| 7689 LDFLAGS=$hold_ldflags ;; | |
| 7690 esac | |
| 7691 fi | |
| 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 | |
| 7693 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; } | |
| 7694 if test $tcl_cv_ld_search_paths_first = yes | |
| 7695 then : | |
| 7696 | |
| 7697 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" | |
| 7698 | |
| 7699 fi | |
| 7700 if test "$tcl_cv_cc_visibility_hidden" != yes | |
| 7701 then : | |
| 7702 | |
| 7703 | |
| 7704 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h | |
| 7705 | |
| 7706 tcl_cv_cc_visibility_hidden=yes | |
| 7707 | |
| 7708 fi | |
| 7709 CC_SEARCH_FLAGS="" | |
| 7710 LD_SEARCH_FLAGS="" | |
| 7711 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" | |
| 7712 # TEA specific: for combined 32 & 64 bit fat builds of Tk | |
| 7713 # extensions, verify that 64-bit build is possible. | |
| 7714 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}" | |
| 7715 then : | |
| 7716 | |
| 7717 if test "${TEA_WINDOWINGSYSTEM}" = x11 | |
| 7718 then : | |
| 7719 | |
| 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5 | |
| 7721 printf %s "checking for 64-bit X11... " >&6; } | |
| 7722 if test ${tcl_cv_lib_x11_64+y} | |
| 7723 then : | |
| 7724 printf %s "(cached) " >&6 | |
| 7725 else case e in #( | |
| 7726 e) | |
| 7727 for v in CFLAGS CPPFLAGS LDFLAGS; do | |
| 7728 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' | |
| 7729 done | |
| 7730 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
| 7731 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" | |
| 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7733 /* end confdefs.h. */ | |
| 7734 #include <X11/Xlib.h> | |
| 7735 int | |
| 7736 main (void) | |
| 7737 { | |
| 7738 XrmInitialize(); | |
| 7739 ; | |
| 7740 return 0; | |
| 7741 } | |
| 7742 _ACEOF | |
| 7743 if ac_fn_c_try_link "$LINENO" | |
| 7744 then : | |
| 7745 tcl_cv_lib_x11_64=yes | |
| 7746 else case e in #( | |
| 7747 e) tcl_cv_lib_x11_64=no ;; | |
| 7748 esac | |
| 7749 fi | |
| 7750 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7751 conftest$ac_exeext conftest.$ac_ext | |
| 7752 for v in CFLAGS CPPFLAGS LDFLAGS; do | |
| 7753 eval $v'="$hold_'$v'"' | |
| 7754 done ;; | |
| 7755 esac | |
| 7756 fi | |
| 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5 | |
| 7758 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; } | |
| 7759 | |
| 7760 fi | |
| 7761 if test "${TEA_WINDOWINGSYSTEM}" = aqua | |
| 7762 then : | |
| 7763 | |
| 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5 | |
| 7765 printf %s "checking for 64-bit Tk... " >&6; } | |
| 7766 if test ${tcl_cv_lib_tk_64+y} | |
| 7767 then : | |
| 7768 printf %s "(cached) " >&6 | |
| 7769 else case e in #( | |
| 7770 e) | |
| 7771 for v in CFLAGS CPPFLAGS LDFLAGS; do | |
| 7772 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' | |
| 7773 done | |
| 7774 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}" | |
| 7775 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" | |
| 7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7777 /* end confdefs.h. */ | |
| 7778 #include <tk.h> | |
| 7779 int | |
| 7780 main (void) | |
| 7781 { | |
| 7782 Tk_InitStubs(NULL, "", 0); | |
| 7783 ; | |
| 7784 return 0; | |
| 7785 } | |
| 7786 _ACEOF | |
| 7787 if ac_fn_c_try_link "$LINENO" | |
| 7788 then : | |
| 7789 tcl_cv_lib_tk_64=yes | |
| 7790 else case e in #( | |
| 7791 e) tcl_cv_lib_tk_64=no ;; | |
| 7792 esac | |
| 7793 fi | |
| 7794 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 7795 conftest$ac_exeext conftest.$ac_ext | |
| 7796 for v in CFLAGS CPPFLAGS LDFLAGS; do | |
| 7797 eval $v'="$hold_'$v'"' | |
| 7798 done ;; | |
| 7799 esac | |
| 7800 fi | |
| 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5 | |
| 7802 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; } | |
| 7803 | |
| 7804 fi | |
| 7805 # remove 64-bit arch flags from CFLAGS et al. if configuration | |
| 7806 # does not support 64-bit. | |
| 7807 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no | |
| 7808 then : | |
| 7809 | |
| 7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5 | |
| 7811 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} | |
| 7812 for v in CFLAGS CPPFLAGS LDFLAGS; do | |
| 7813 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' | |
| 7814 done | |
| 7815 fi | |
| 7816 | |
| 7817 fi | |
| 7818 ;; | |
| 7819 OS/390-*) | |
| 7820 CFLAGS_OPTIMIZE="" # Optimizer is buggy | |
| 7821 | |
| 7822 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h | |
| 7823 | |
| 7824 ;; | |
| 7825 OSF1-V*) | |
| 7826 # Digital OSF/1 | |
| 7827 SHLIB_CFLAGS="" | |
| 7828 if test "$SHARED_BUILD" = 1 | |
| 7829 then : | |
| 7830 | |
| 7831 SHLIB_LD='ld -shared -expect_unresolved "*"' | |
| 7832 | |
| 7833 else case e in #( | |
| 7834 e) | |
| 7835 SHLIB_LD='ld -non_shared -expect_unresolved "*"' | |
| 7836 ;; | |
| 7837 esac | |
| 7838 fi | |
| 7839 SHLIB_SUFFIX=".so" | |
| 7840 if test $doRpath = yes | |
| 7841 then : | |
| 7842 | |
| 7843 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' | |
| 7844 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' | |
| 7845 fi | |
| 7846 if test "$GCC" = yes | |
| 7847 then : | |
| 7848 CFLAGS="$CFLAGS -mieee" | |
| 7849 else case e in #( | |
| 7850 e) | |
| 7851 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;; | |
| 7852 esac | |
| 7853 fi | |
| 7854 # see pthread_intro(3) for pthread support on osf1, k.furukawa | |
| 7855 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" | |
| 7856 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" | |
| 7857 LIBS=`echo $LIBS | sed s/-lpthreads//` | |
| 7858 if test "$GCC" = yes | |
| 7859 then : | |
| 7860 | |
| 7861 LIBS="$LIBS -lpthread -lmach -lexc" | |
| 7862 | |
| 7863 else case e in #( | |
| 7864 e) | |
| 7865 CFLAGS="$CFLAGS -pthread" | |
| 7866 LDFLAGS="$LDFLAGS -pthread" | |
| 7867 ;; | |
| 7868 esac | |
| 7869 fi | |
| 7870 ;; | |
| 7871 QNX-6*) | |
| 7872 # QNX RTP | |
| 7873 # This may work for all QNX, but it was only reported for v6. | |
| 7874 SHLIB_CFLAGS="-fPIC" | |
| 7875 SHLIB_LD="ld -Bshareable -x" | |
| 7876 SHLIB_LD_LIBS="" | |
| 7877 SHLIB_SUFFIX=".so" | |
| 7878 CC_SEARCH_FLAGS="" | |
| 7879 LD_SEARCH_FLAGS="" | |
| 7880 ;; | |
| 7881 SCO_SV-3.2*) | |
| 7882 if test "$GCC" = yes | |
| 7883 then : | |
| 7884 | |
| 7885 SHLIB_CFLAGS="-fPIC -melf" | |
| 7886 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" | |
| 7887 | |
| 7888 else case e in #( | |
| 7889 e) | |
| 7890 SHLIB_CFLAGS="-Kpic -belf" | |
| 7891 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" | |
| 7892 ;; | |
| 7893 esac | |
| 7894 fi | |
| 7895 SHLIB_LD="ld -G" | |
| 7896 SHLIB_LD_LIBS="" | |
| 7897 SHLIB_SUFFIX=".so" | |
| 7898 CC_SEARCH_FLAGS="" | |
| 7899 LD_SEARCH_FLAGS="" | |
| 7900 ;; | |
| 7901 SunOS-5.[0-6]) | |
| 7902 # Careful to not let 5.10+ fall into this case | |
| 7903 | |
| 7904 # Note: If _REENTRANT isn't defined, then Solaris | |
| 7905 # won't define thread-safe library routines. | |
| 7906 | |
| 7907 | |
| 7908 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h | |
| 7909 | |
| 7910 | |
| 7911 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
| 7912 | |
| 7913 | |
| 7914 SHLIB_CFLAGS="-KPIC" | |
| 7915 SHLIB_SUFFIX=".so" | |
| 7916 if test "$GCC" = yes | |
| 7917 then : | |
| 7918 | |
| 7919 SHLIB_LD='${CC} -shared' | |
| 7920 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"' | |
| 7921 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7922 | |
| 7923 else case e in #( | |
| 7924 e) | |
| 7925 SHLIB_LD="/usr/ccs/bin/ld -G -z text" | |
| 7926 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"' | |
| 7927 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 7928 ;; | |
| 7929 esac | |
| 7930 fi | |
| 7931 ;; | |
| 7932 SunOS-5*) | |
| 7933 # Note: If _REENTRANT isn't defined, then Solaris | |
| 7934 # won't define thread-safe library routines. | |
| 7935 | |
| 7936 | |
| 7937 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h | |
| 7938 | |
| 7939 | |
| 7940 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
| 7941 | |
| 7942 | |
| 7943 SHLIB_CFLAGS="-KPIC" | |
| 7944 | |
| 7945 # Check to enable 64-bit flags for compiler/linker | |
| 7946 if test "$do64bit" = yes | |
| 7947 then : | |
| 7948 | |
| 7949 arch=`isainfo` | |
| 7950 if test "$arch" = "sparcv9 sparc" | |
| 7951 then : | |
| 7952 | |
| 7953 if test "$GCC" = yes | |
| 7954 then : | |
| 7955 | |
| 7956 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3 | |
| 7957 then : | |
| 7958 | |
| 7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 | |
| 7960 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} | |
| 7961 | |
| 7962 else case e in #( | |
| 7963 e) | |
| 7964 do64bit_ok=yes | |
| 7965 CFLAGS="$CFLAGS -m64 -mcpu=v9" | |
| 7966 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" | |
| 7967 SHLIB_CFLAGS="-fPIC" | |
| 7968 ;; | |
| 7969 esac | |
| 7970 fi | |
| 7971 | |
| 7972 else case e in #( | |
| 7973 e) | |
| 7974 do64bit_ok=yes | |
| 7975 if test "$do64bitVIS" = yes | |
| 7976 then : | |
| 7977 | |
| 7978 CFLAGS="$CFLAGS -xarch=v9a" | |
| 7979 LDFLAGS_ARCH="-xarch=v9a" | |
| 7980 | |
| 7981 else case e in #( | |
| 7982 e) | |
| 7983 CFLAGS="$CFLAGS -xarch=v9" | |
| 7984 LDFLAGS_ARCH="-xarch=v9" | |
| 7985 ;; | |
| 7986 esac | |
| 7987 fi | |
| 7988 # Solaris 64 uses this as well | |
| 7989 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" | |
| 7990 ;; | |
| 7991 esac | |
| 7992 fi | |
| 7993 | |
| 7994 else case e in #( | |
| 7995 e) if test "$arch" = "amd64 i386" | |
| 7996 then : | |
| 7997 | |
| 7998 if test "$GCC" = yes | |
| 7999 then : | |
| 8000 | |
| 8001 case $system in | |
| 8002 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) | |
| 8003 do64bit_ok=yes | |
| 8004 CFLAGS="$CFLAGS -m64" | |
| 8005 LDFLAGS="$LDFLAGS -m64";; | |
| 8006 *) | |
| 8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 | |
| 8008 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; | |
| 8009 esac | |
| 8010 | |
| 8011 else case e in #( | |
| 8012 e) | |
| 8013 do64bit_ok=yes | |
| 8014 case $system in | |
| 8015 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) | |
| 8016 CFLAGS="$CFLAGS -m64" | |
| 8017 LDFLAGS="$LDFLAGS -m64";; | |
| 8018 *) | |
| 8019 CFLAGS="$CFLAGS -xarch=amd64" | |
| 8020 LDFLAGS="$LDFLAGS -xarch=amd64";; | |
| 8021 esac | |
| 8022 ;; | |
| 8023 esac | |
| 8024 fi | |
| 8025 | |
| 8026 else case e in #( | |
| 8027 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 | |
| 8028 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;; | |
| 8029 esac | |
| 8030 fi ;; | |
| 8031 esac | |
| 8032 fi | |
| 8033 | |
| 8034 fi | |
| 8035 | |
| 8036 SHLIB_SUFFIX=".so" | |
| 8037 if test "$GCC" = yes | |
| 8038 then : | |
| 8039 | |
| 8040 SHLIB_LD='${CC} -shared' | |
| 8041 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"' | |
| 8042 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} | |
| 8043 if test "$do64bit_ok" = yes | |
| 8044 then : | |
| 8045 | |
| 8046 if test "$arch" = "sparcv9 sparc" | |
| 8047 then : | |
| 8048 | |
| 8049 # We need to specify -static-libgcc or we need to | |
| 8050 # add the path to the sparv9 libgcc. | |
| 8051 # JH: static-libgcc is necessary for core Tcl, but may | |
| 8052 # not be necessary for extensions. | |
| 8053 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" | |
| 8054 # for finding sparcv9 libgcc, get the regular libgcc | |
| 8055 # path, remove so name and append 'sparcv9' | |
| 8056 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." | |
| 8057 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" | |
| 8058 | |
| 8059 else case e in #( | |
| 8060 e) if test "$arch" = "amd64 i386" | |
| 8061 then : | |
| 8062 | |
| 8063 # JH: static-libgcc is necessary for core Tcl, but may | |
| 8064 # not be necessary for extensions. | |
| 8065 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" | |
| 8066 | |
| 8067 fi ;; | |
| 8068 esac | |
| 8069 fi | |
| 8070 | |
| 8071 fi | |
| 8072 | |
| 8073 else case e in #( | |
| 8074 e) | |
| 8075 case $system in | |
| 8076 SunOS-5.[1-9][0-9]*) | |
| 8077 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS | |
| 8078 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; | |
| 8079 *) | |
| 8080 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; | |
| 8081 esac | |
| 8082 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"' | |
| 8083 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"' | |
| 8084 ;; | |
| 8085 esac | |
| 8086 fi | |
| 8087 ;; | |
| 8088 UNIX_SV* | UnixWare-5*) | |
| 8089 SHLIB_CFLAGS="-KPIC" | |
| 8090 SHLIB_LD='${CC} -G' | |
| 8091 SHLIB_LD_LIBS="" | |
| 8092 SHLIB_SUFFIX=".so" | |
| 8093 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers | |
| 8094 # that don't grok the -Bexport option. Test that it does. | |
| 8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 | |
| 8096 printf %s "checking for ld accepts -Bexport flag... " >&6; } | |
| 8097 if test ${tcl_cv_ld_Bexport+y} | |
| 8098 then : | |
| 8099 printf %s "(cached) " >&6 | |
| 8100 else case e in #( | |
| 8101 e) | |
| 8102 hold_ldflags=$LDFLAGS | |
| 8103 LDFLAGS="$LDFLAGS -Wl,-Bexport" | |
| 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8105 /* end confdefs.h. */ | |
| 8106 | |
| 8107 int | |
| 8108 main (void) | |
| 8109 { | |
| 8110 int i; | |
| 8111 ; | |
| 8112 return 0; | |
| 8113 } | |
| 8114 _ACEOF | |
| 8115 if ac_fn_c_try_link "$LINENO" | |
| 8116 then : | |
| 8117 tcl_cv_ld_Bexport=yes | |
| 8118 else case e in #( | |
| 8119 e) tcl_cv_ld_Bexport=no ;; | |
| 8120 esac | |
| 8121 fi | |
| 8122 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
| 8123 conftest$ac_exeext conftest.$ac_ext | |
| 8124 LDFLAGS=$hold_ldflags ;; | |
| 8125 esac | |
| 8126 fi | |
| 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 | |
| 8128 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; } | |
| 8129 if test $tcl_cv_ld_Bexport = yes | |
| 8130 then : | |
| 8131 | |
| 8132 LDFLAGS="$LDFLAGS -Wl,-Bexport" | |
| 8133 | |
| 8134 fi | |
| 8135 CC_SEARCH_FLAGS="" | |
| 8136 LD_SEARCH_FLAGS="" | |
| 8137 ;; | |
| 8138 esac | |
| 8139 | |
| 8140 if test "$do64bit" = yes -a "$do64bit_ok" = no | |
| 8141 then : | |
| 8142 | |
| 8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 | |
| 8144 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} | |
| 8145 | |
| 8146 fi | |
| 8147 | |
| 8148 | |
| 8149 | |
| 8150 # Add in the arch flags late to ensure it wasn't removed. | |
| 8151 # Not necessary in TEA, but this is aligned with core | |
| 8152 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" | |
| 8153 | |
| 8154 # If we're running gcc, then change the C flags for compiling shared | |
| 8155 # libraries to the right flags for gcc, instead of those for the | |
| 8156 # standard manufacturer compiler. | |
| 8157 | |
| 8158 if test "$GCC" = yes | |
| 8159 then : | |
| 8160 | |
| 8161 case $system in | |
| 8162 AIX-*) ;; | |
| 8163 BSD/OS*) ;; | |
| 8164 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;; | |
| 8165 IRIX*) ;; | |
| 8166 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;; | |
| 8167 Darwin-*) ;; | |
| 8168 SCO_SV-3.2*) ;; | |
| 8169 windows) ;; | |
| 8170 *) SHLIB_CFLAGS="-fPIC" ;; | |
| 8171 esac | |
| 8172 fi | |
| 8173 | |
| 8174 if test "$tcl_cv_cc_visibility_hidden" != yes | |
| 8175 then : | |
| 8176 | |
| 8177 | |
| 8178 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h | |
| 8179 | |
| 8180 | |
| 8181 fi | |
| 8182 | |
| 8183 if test "$SHARED_LIB_SUFFIX" = "" | |
| 8184 then : | |
| 8185 | |
| 8186 # TEA specific: use PACKAGE_VERSION instead of VERSION | |
| 8187 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' | |
| 8188 fi | |
| 8189 if test "$UNSHARED_LIB_SUFFIX" = "" | |
| 8190 then : | |
| 8191 | |
| 8192 # TEA specific: use PACKAGE_VERSION instead of VERSION | |
| 8193 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' | |
| 8194 fi | |
| 8195 | |
| 8196 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then | |
| 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5 | |
| 8198 printf %s "checking for SEH support in compiler... " >&6; } | |
| 8199 if test ${tcl_cv_seh+y} | |
| 8200 then : | |
| 8201 printf %s "(cached) " >&6 | |
| 8202 else case e in #( | |
| 8203 e) if test "$cross_compiling" = yes | |
| 8204 then : | |
| 8205 tcl_cv_seh=no | |
| 8206 else case e in #( | |
| 8207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8208 /* end confdefs.h. */ | |
| 8209 | |
| 8210 #define WIN32_LEAN_AND_MEAN | |
| 8211 #include <windows.h> | |
| 8212 #undef WIN32_LEAN_AND_MEAN | |
| 8213 | |
| 8214 int main(int argc, char** argv) { | |
| 8215 int a, b = 0; | |
| 8216 __try { | |
| 8217 a = 666 / b; | |
| 8218 } | |
| 8219 __except (EXCEPTION_EXECUTE_HANDLER) { | |
| 8220 return 0; | |
| 8221 } | |
| 8222 return 1; | |
| 8223 } | |
| 8224 | |
| 8225 _ACEOF | |
| 8226 if ac_fn_c_try_run "$LINENO" | |
| 8227 then : | |
| 8228 tcl_cv_seh=yes | |
| 8229 else case e in #( | |
| 8230 e) tcl_cv_seh=no ;; | |
| 8231 esac | |
| 8232 fi | |
| 8233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 8234 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8235 esac | |
| 8236 fi | |
| 8237 | |
| 8238 ;; | |
| 8239 esac | |
| 8240 fi | |
| 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5 | |
| 8242 printf "%s\n" "$tcl_cv_seh" >&6; } | |
| 8243 if test "$tcl_cv_seh" = "no" ; then | |
| 8244 | |
| 8245 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h | |
| 8246 | |
| 8247 fi | |
| 8248 | |
| 8249 # | |
| 8250 # Check to see if the excpt.h include file provided contains the | |
| 8251 # definition for EXCEPTION_DISPOSITION; if not, which is the case | |
| 8252 # with Cygwin's version as of 2002-04-10, define it to be int, | |
| 8253 # sufficient for getting the current code to work. | |
| 8254 # | |
| 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5 | |
| 8256 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; } | |
| 8257 if test ${tcl_cv_eh_disposition+y} | |
| 8258 then : | |
| 8259 printf %s "(cached) " >&6 | |
| 8260 else case e in #( | |
| 8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8262 /* end confdefs.h. */ | |
| 8263 | |
| 8264 # define WIN32_LEAN_AND_MEAN | |
| 8265 # include <windows.h> | |
| 8266 # undef WIN32_LEAN_AND_MEAN | |
| 8267 | |
| 8268 int | |
| 8269 main (void) | |
| 8270 { | |
| 8271 | |
| 8272 EXCEPTION_DISPOSITION x; | |
| 8273 | |
| 8274 ; | |
| 8275 return 0; | |
| 8276 } | |
| 8277 _ACEOF | |
| 8278 if ac_fn_c_try_compile "$LINENO" | |
| 8279 then : | |
| 8280 tcl_cv_eh_disposition=yes | |
| 8281 else case e in #( | |
| 8282 e) tcl_cv_eh_disposition=no ;; | |
| 8283 esac | |
| 8284 fi | |
| 8285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 8286 ;; | |
| 8287 esac | |
| 8288 fi | |
| 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5 | |
| 8290 printf "%s\n" "$tcl_cv_eh_disposition" >&6; } | |
| 8291 if test "$tcl_cv_eh_disposition" = "no" ; then | |
| 8292 | |
| 8293 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h | |
| 8294 | |
| 8295 fi | |
| 8296 | |
| 8297 # Check to see if winnt.h defines CHAR, SHORT, and LONG | |
| 8298 # even if VOID has already been #defined. The win32api | |
| 8299 # used by mingw and cygwin is known to do this. | |
| 8300 | |
| 8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5 | |
| 8302 printf %s "checking for winnt.h that ignores VOID define... " >&6; } | |
| 8303 if test ${tcl_cv_winnt_ignore_void+y} | |
| 8304 then : | |
| 8305 printf %s "(cached) " >&6 | |
| 8306 else case e in #( | |
| 8307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8308 /* end confdefs.h. */ | |
| 8309 | |
| 8310 #define VOID void | |
| 8311 #define WIN32_LEAN_AND_MEAN | |
| 8312 #include <windows.h> | |
| 8313 #undef WIN32_LEAN_AND_MEAN | |
| 8314 | |
| 8315 int | |
| 8316 main (void) | |
| 8317 { | |
| 8318 | |
| 8319 CHAR c; | |
| 8320 SHORT s; | |
| 8321 LONG l; | |
| 8322 | |
| 8323 ; | |
| 8324 return 0; | |
| 8325 } | |
| 8326 _ACEOF | |
| 8327 if ac_fn_c_try_compile "$LINENO" | |
| 8328 then : | |
| 8329 tcl_cv_winnt_ignore_void=yes | |
| 8330 else case e in #( | |
| 8331 e) tcl_cv_winnt_ignore_void=no ;; | |
| 8332 esac | |
| 8333 fi | |
| 8334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 8335 ;; | |
| 8336 esac | |
| 8337 fi | |
| 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5 | |
| 8339 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; } | |
| 8340 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then | |
| 8341 | |
| 8342 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h | |
| 8343 | |
| 8344 fi | |
| 8345 fi | |
| 8346 | |
| 8347 # See if the compiler supports casting to a union type. | |
| 8348 # This is used to stop gcc from printing a compiler | |
| 8349 # warning when initializing a union member. | |
| 8350 | |
| 8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5 | |
| 8352 printf %s "checking for cast to union support... " >&6; } | |
| 8353 if test ${tcl_cv_cast_to_union+y} | |
| 8354 then : | |
| 8355 printf %s "(cached) " >&6 | |
| 8356 else case e in #( | |
| 8357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8358 /* end confdefs.h. */ | |
| 8359 | |
| 8360 int | |
| 8361 main (void) | |
| 8362 { | |
| 8363 | |
| 8364 union foo { int i; double d; }; | |
| 8365 union foo f = (union foo) (int) 0; | |
| 8366 | |
| 8367 ; | |
| 8368 return 0; | |
| 8369 } | |
| 8370 _ACEOF | |
| 8371 if ac_fn_c_try_compile "$LINENO" | |
| 8372 then : | |
| 8373 tcl_cv_cast_to_union=yes | |
| 8374 else case e in #( | |
| 8375 e) tcl_cv_cast_to_union=no ;; | |
| 8376 esac | |
| 8377 fi | |
| 8378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 8379 ;; | |
| 8380 esac | |
| 8381 fi | |
| 8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5 | |
| 8383 printf "%s\n" "$tcl_cv_cast_to_union" >&6; } | |
| 8384 if test "$tcl_cv_cast_to_union" = "yes"; then | |
| 8385 | |
| 8386 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h | |
| 8387 | |
| 8388 fi | |
| 8389 | |
| 8390 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" | |
| 8391 if test "x$ac_cv_header_stdbool_h" = xyes | |
| 8392 then : | |
| 8393 | |
| 8394 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h | |
| 8395 | |
| 8396 fi | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 # These must be called after we do the basic CFLAGS checks and | |
| 8414 # verify any possible 64-bit or similar switches are necessary | |
| 8415 | |
| 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 | |
| 8417 printf %s "checking for required early compiler flags... " >&6; } | |
| 8418 tcl_flags="" | |
| 8419 | |
| 8420 if test ${tcl_cv_flag__isoc99_source+y} | |
| 8421 then : | |
| 8422 printf %s "(cached) " >&6 | |
| 8423 else case e in #( | |
| 8424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8425 /* end confdefs.h. */ | |
| 8426 #include <stdlib.h> | |
| 8427 int | |
| 8428 main (void) | |
| 8429 { | |
| 8430 char *p = (char *)strtoll; char *q = (char *)strtoull; | |
| 8431 ; | |
| 8432 return 0; | |
| 8433 } | |
| 8434 _ACEOF | |
| 8435 if ac_fn_c_try_compile "$LINENO" | |
| 8436 then : | |
| 8437 tcl_cv_flag__isoc99_source=no | |
| 8438 else case e in #( | |
| 8439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8440 /* end confdefs.h. */ | |
| 8441 #define _ISOC99_SOURCE 1 | |
| 8442 #include <stdlib.h> | |
| 8443 int | |
| 8444 main (void) | |
| 8445 { | |
| 8446 char *p = (char *)strtoll; char *q = (char *)strtoull; | |
| 8447 ; | |
| 8448 return 0; | |
| 8449 } | |
| 8450 _ACEOF | |
| 8451 if ac_fn_c_try_compile "$LINENO" | |
| 8452 then : | |
| 8453 tcl_cv_flag__isoc99_source=yes | |
| 8454 else case e in #( | |
| 8455 e) tcl_cv_flag__isoc99_source=no ;; | |
| 8456 esac | |
| 8457 fi | |
| 8458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8459 esac | |
| 8460 fi | |
| 8461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8462 esac | |
| 8463 fi | |
| 8464 | |
| 8465 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then | |
| 8466 | |
| 8467 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h | |
| 8468 | |
| 8469 tcl_flags="$tcl_flags _ISOC99_SOURCE" | |
| 8470 fi | |
| 8471 | |
| 8472 | |
| 8473 if test ${tcl_cv_flag__largefile64_source+y} | |
| 8474 then : | |
| 8475 printf %s "(cached) " >&6 | |
| 8476 else case e in #( | |
| 8477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8478 /* end confdefs.h. */ | |
| 8479 #include <sys/stat.h> | |
| 8480 int | |
| 8481 main (void) | |
| 8482 { | |
| 8483 struct stat64 buf; int i = stat64("/", &buf); | |
| 8484 ; | |
| 8485 return 0; | |
| 8486 } | |
| 8487 _ACEOF | |
| 8488 if ac_fn_c_try_compile "$LINENO" | |
| 8489 then : | |
| 8490 tcl_cv_flag__largefile64_source=no | |
| 8491 else case e in #( | |
| 8492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8493 /* end confdefs.h. */ | |
| 8494 #define _LARGEFILE64_SOURCE 1 | |
| 8495 #include <sys/stat.h> | |
| 8496 int | |
| 8497 main (void) | |
| 8498 { | |
| 8499 struct stat64 buf; int i = stat64("/", &buf); | |
| 8500 ; | |
| 8501 return 0; | |
| 8502 } | |
| 8503 _ACEOF | |
| 8504 if ac_fn_c_try_compile "$LINENO" | |
| 8505 then : | |
| 8506 tcl_cv_flag__largefile64_source=yes | |
| 8507 else case e in #( | |
| 8508 e) tcl_cv_flag__largefile64_source=no ;; | |
| 8509 esac | |
| 8510 fi | |
| 8511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8512 esac | |
| 8513 fi | |
| 8514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8515 esac | |
| 8516 fi | |
| 8517 | |
| 8518 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then | |
| 8519 | |
| 8520 printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h | |
| 8521 | |
| 8522 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" | |
| 8523 fi | |
| 8524 | |
| 8525 | |
| 8526 if test ${tcl_cv_flag__largefile_source64+y} | |
| 8527 then : | |
| 8528 printf %s "(cached) " >&6 | |
| 8529 else case e in #( | |
| 8530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8531 /* end confdefs.h. */ | |
| 8532 #include <sys/stat.h> | |
| 8533 int | |
| 8534 main (void) | |
| 8535 { | |
| 8536 char *p = (char *)open64; | |
| 8537 ; | |
| 8538 return 0; | |
| 8539 } | |
| 8540 _ACEOF | |
| 8541 if ac_fn_c_try_compile "$LINENO" | |
| 8542 then : | |
| 8543 tcl_cv_flag__largefile_source64=no | |
| 8544 else case e in #( | |
| 8545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8546 /* end confdefs.h. */ | |
| 8547 #define _LARGEFILE_SOURCE64 1 | |
| 8548 #include <sys/stat.h> | |
| 8549 int | |
| 8550 main (void) | |
| 8551 { | |
| 8552 char *p = (char *)open64; | |
| 8553 ; | |
| 8554 return 0; | |
| 8555 } | |
| 8556 _ACEOF | |
| 8557 if ac_fn_c_try_compile "$LINENO" | |
| 8558 then : | |
| 8559 tcl_cv_flag__largefile_source64=yes | |
| 8560 else case e in #( | |
| 8561 e) tcl_cv_flag__largefile_source64=no ;; | |
| 8562 esac | |
| 8563 fi | |
| 8564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8565 esac | |
| 8566 fi | |
| 8567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8568 esac | |
| 8569 fi | |
| 8570 | |
| 8571 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then | |
| 8572 | |
| 8573 printf "%s\n" "#define _LARGEFILE_SOURCE64 1" >>confdefs.h | |
| 8574 | |
| 8575 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" | |
| 8576 fi | |
| 8577 | |
| 8578 if test "x${tcl_flags}" = "x" ; then | |
| 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
| 8580 printf "%s\n" "none" >&6; } | |
| 8581 else | |
| 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 | |
| 8583 printf "%s\n" "${tcl_flags}" >&6; } | |
| 8584 fi | |
| 8585 | |
| 8586 | |
| 8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 | |
| 8588 printf %s "checking for 64-bit integer type... " >&6; } | |
| 8589 if test ${tcl_cv_type_64bit+y} | |
| 8590 then : | |
| 8591 printf %s "(cached) " >&6 | |
| 8592 else case e in #( | |
| 8593 e) | |
| 8594 tcl_cv_type_64bit=none | |
| 8595 # See if the compiler knows natively about __int64 | |
| 8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8597 /* end confdefs.h. */ | |
| 8598 | |
| 8599 int | |
| 8600 main (void) | |
| 8601 { | |
| 8602 __int64 value = (__int64) 0; | |
| 8603 ; | |
| 8604 return 0; | |
| 8605 } | |
| 8606 _ACEOF | |
| 8607 if ac_fn_c_try_compile "$LINENO" | |
| 8608 then : | |
| 8609 tcl_type_64bit=__int64 | |
| 8610 else case e in #( | |
| 8611 e) tcl_type_64bit="long long" ;; | |
| 8612 esac | |
| 8613 fi | |
| 8614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 8615 # See if we could use long anyway Note that we substitute in the | |
| 8616 # type that is our current guess for a 64-bit type inside this check | |
| 8617 # program, so it should be modified only carefully... | |
| 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8619 /* end confdefs.h. */ | |
| 8620 | |
| 8621 int | |
| 8622 main (void) | |
| 8623 { | |
| 8624 switch (0) { | |
| 8625 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; | |
| 8626 } | |
| 8627 ; | |
| 8628 return 0; | |
| 8629 } | |
| 8630 _ACEOF | |
| 8631 if ac_fn_c_try_compile "$LINENO" | |
| 8632 then : | |
| 8633 tcl_cv_type_64bit=${tcl_type_64bit} | |
| 8634 fi | |
| 8635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8636 esac | |
| 8637 fi | |
| 8638 | |
| 8639 if test "${tcl_cv_type_64bit}" = none ; then | |
| 8640 | |
| 8641 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h | |
| 8642 | |
| 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 8644 printf "%s\n" "yes" >&6; } | |
| 8645 elif test "${tcl_cv_type_64bit}" = "__int64" \ | |
| 8646 -a "${TEA_PLATFORM}" = "windows" ; then | |
| 8647 # TEA specific: We actually want to use the default tcl.h checks in | |
| 8648 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* | |
| 8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5 | |
| 8650 printf "%s\n" "using Tcl header defaults" >&6; } | |
| 8651 else | |
| 8652 | |
| 8653 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h | |
| 8654 | |
| 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 | |
| 8656 printf "%s\n" "${tcl_cv_type_64bit}" >&6; } | |
| 8657 | |
| 8658 # Now check for auxiliary declarations | |
| 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 | |
| 8660 printf %s "checking for struct dirent64... " >&6; } | |
| 8661 if test ${tcl_cv_struct_dirent64+y} | |
| 8662 then : | |
| 8663 printf %s "(cached) " >&6 | |
| 8664 else case e in #( | |
| 8665 e) | |
| 8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8667 /* end confdefs.h. */ | |
| 8668 #include <sys/types.h> | |
| 8669 #include <dirent.h> | |
| 8670 int | |
| 8671 main (void) | |
| 8672 { | |
| 8673 struct dirent64 p; | |
| 8674 ; | |
| 8675 return 0; | |
| 8676 } | |
| 8677 _ACEOF | |
| 8678 if ac_fn_c_try_compile "$LINENO" | |
| 8679 then : | |
| 8680 tcl_cv_struct_dirent64=yes | |
| 8681 else case e in #( | |
| 8682 e) tcl_cv_struct_dirent64=no ;; | |
| 8683 esac | |
| 8684 fi | |
| 8685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8686 esac | |
| 8687 fi | |
| 8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 | |
| 8689 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; } | |
| 8690 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then | |
| 8691 | |
| 8692 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h | |
| 8693 | |
| 8694 fi | |
| 8695 | |
| 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5 | |
| 8697 printf %s "checking for DIR64... " >&6; } | |
| 8698 if test ${tcl_cv_DIR64+y} | |
| 8699 then : | |
| 8700 printf %s "(cached) " >&6 | |
| 8701 else case e in #( | |
| 8702 e) | |
| 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8704 /* end confdefs.h. */ | |
| 8705 #include <sys/types.h> | |
| 8706 #include <dirent.h> | |
| 8707 int | |
| 8708 main (void) | |
| 8709 { | |
| 8710 struct dirent64 *p; DIR64 d = opendir64("."); | |
| 8711 p = readdir64(d); rewinddir64(d); closedir64(d); | |
| 8712 ; | |
| 8713 return 0; | |
| 8714 } | |
| 8715 _ACEOF | |
| 8716 if ac_fn_c_try_compile "$LINENO" | |
| 8717 then : | |
| 8718 tcl_cv_DIR64=yes | |
| 8719 else case e in #( | |
| 8720 e) tcl_cv_DIR64=no ;; | |
| 8721 esac | |
| 8722 fi | |
| 8723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8724 esac | |
| 8725 fi | |
| 8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5 | |
| 8727 printf "%s\n" "$tcl_cv_DIR64" >&6; } | |
| 8728 if test "x${tcl_cv_DIR64}" = "xyes" ; then | |
| 8729 | |
| 8730 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h | |
| 8731 | |
| 8732 fi | |
| 8733 | |
| 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 | |
| 8735 printf %s "checking for struct stat64... " >&6; } | |
| 8736 if test ${tcl_cv_struct_stat64+y} | |
| 8737 then : | |
| 8738 printf %s "(cached) " >&6 | |
| 8739 else case e in #( | |
| 8740 e) | |
| 8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8742 /* end confdefs.h. */ | |
| 8743 #include <sys/stat.h> | |
| 8744 int | |
| 8745 main (void) | |
| 8746 { | |
| 8747 struct stat64 p; | |
| 8748 | |
| 8749 ; | |
| 8750 return 0; | |
| 8751 } | |
| 8752 _ACEOF | |
| 8753 if ac_fn_c_try_compile "$LINENO" | |
| 8754 then : | |
| 8755 tcl_cv_struct_stat64=yes | |
| 8756 else case e in #( | |
| 8757 e) tcl_cv_struct_stat64=no ;; | |
| 8758 esac | |
| 8759 fi | |
| 8760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8761 esac | |
| 8762 fi | |
| 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 | |
| 8764 printf "%s\n" "$tcl_cv_struct_stat64" >&6; } | |
| 8765 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then | |
| 8766 | |
| 8767 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h | |
| 8768 | |
| 8769 fi | |
| 8770 | |
| 8771 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64" | |
| 8772 if test "x$ac_cv_func_open64" = xyes | |
| 8773 then : | |
| 8774 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h | |
| 8775 | |
| 8776 fi | |
| 8777 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" | |
| 8778 if test "x$ac_cv_func_lseek64" = xyes | |
| 8779 then : | |
| 8780 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h | |
| 8781 | |
| 8782 fi | |
| 8783 | |
| 8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 | |
| 8785 printf %s "checking for off64_t... " >&6; } | |
| 8786 if test ${tcl_cv_type_off64_t+y} | |
| 8787 then : | |
| 8788 printf %s "(cached) " >&6 | |
| 8789 else case e in #( | |
| 8790 e) | |
| 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8792 /* end confdefs.h. */ | |
| 8793 #include <sys/types.h> | |
| 8794 int | |
| 8795 main (void) | |
| 8796 { | |
| 8797 off64_t offset; | |
| 8798 | |
| 8799 ; | |
| 8800 return 0; | |
| 8801 } | |
| 8802 _ACEOF | |
| 8803 if ac_fn_c_try_compile "$LINENO" | |
| 8804 then : | |
| 8805 tcl_cv_type_off64_t=yes | |
| 8806 else case e in #( | |
| 8807 e) tcl_cv_type_off64_t=no ;; | |
| 8808 esac | |
| 8809 fi | |
| 8810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
| 8811 esac | |
| 8812 fi | |
| 8813 | |
| 8814 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ | |
| 8815 test "x${ac_cv_func_lseek64}" = "xyes" && \ | |
| 8816 test "x${ac_cv_func_open64}" = "xyes" ; then | |
| 8817 | |
| 8818 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h | |
| 8819 | |
| 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 8821 printf "%s\n" "yes" >&6; } | |
| 8822 else | |
| 8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 8824 printf "%s\n" "no" >&6; } | |
| 8825 fi | |
| 8826 fi | |
| 8827 | |
| 8828 | |
| 8829 | |
| 8830 #-------------------------------------------------------------------- | |
| 8831 # Set the default compiler switches based on the --enable-symbols option. | |
| 8832 #-------------------------------------------------------------------- | |
| 8833 | |
| 8834 | |
| 8835 | |
| 8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 | |
| 8837 printf %s "checking for build with symbols... " >&6; } | |
| 8838 # Check whether --enable-symbols was given. | |
| 8839 if test ${enable_symbols+y} | |
| 8840 then : | |
| 8841 enableval=$enable_symbols; tcl_ok=$enableval | |
| 8842 else case e in #( | |
| 8843 e) tcl_ok=no ;; | |
| 8844 esac | |
| 8845 fi | |
| 8846 | |
| 8847 if test "$tcl_ok" = "no"; then | |
| 8848 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG" | |
| 8849 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" | |
| 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 8851 printf "%s\n" "no" >&6; } | |
| 8852 | |
| 8853 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h | |
| 8854 | |
| 8855 else | |
| 8856 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" | |
| 8857 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" | |
| 8858 if test "$tcl_ok" = "yes"; then | |
| 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 | |
| 8860 printf "%s\n" "yes (standard debugging)" >&6; } | |
| 8861 fi | |
| 8862 fi | |
| 8863 | |
| 8864 | |
| 8865 | |
| 8866 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then | |
| 8867 | |
| 8868 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h | |
| 8869 | |
| 8870 fi | |
| 8871 | |
| 8872 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then | |
| 8873 if test "$tcl_ok" = "all"; then | |
| 8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5 | |
| 8875 printf "%s\n" "enabled symbols mem debugging" >&6; } | |
| 8876 else | |
| 8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 | |
| 8878 printf "%s\n" "enabled $tcl_ok debugging" >&6; } | |
| 8879 fi | |
| 8880 fi | |
| 8881 | |
| 8882 | |
| 8883 #-------------------------------------------------------------------- | |
| 8884 # This macro generates a line to use when building a library. It | |
| 8885 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, | |
| 8886 # and TEA_LOAD_TCLCONFIG macros above. | |
| 8887 #-------------------------------------------------------------------- | |
| 8888 | |
| 8889 | |
| 8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 | |
| 8891 printf %s "checking for egrep -e... " >&6; } | |
| 8892 if test ${ac_cv_path_EGREP_TRADITIONAL+y} | |
| 8893 then : | |
| 8894 printf %s "(cached) " >&6 | |
| 8895 else case e in #( | |
| 8896 e) if test -z "$EGREP_TRADITIONAL"; then | |
| 8897 ac_path_EGREP_TRADITIONAL_found=false | |
| 8898 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 8900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
| 8901 do | |
| 8902 IFS=$as_save_IFS | |
| 8903 case $as_dir in #((( | |
| 8904 '') as_dir=./ ;; | |
| 8905 */) ;; | |
| 8906 *) as_dir=$as_dir/ ;; | |
| 8907 esac | |
| 8908 for ac_prog in grep ggrep | |
| 8909 do | |
| 8910 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 8911 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" | |
| 8912 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue | |
| 8913 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. | |
| 8914 # Check for GNU $ac_path_EGREP_TRADITIONAL | |
| 8915 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( | |
| 8916 *GNU*) | |
| 8917 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; | |
| 8918 #( | |
| 8919 *) | |
| 8920 ac_count=0 | |
| 8921 printf %s 0123456789 >"conftest.in" | |
| 8922 while : | |
| 8923 do | |
| 8924 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
| 8925 mv "conftest.tmp" "conftest.in" | |
| 8926 cp "conftest.in" "conftest.nl" | |
| 8927 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" | |
| 8928 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
| 8929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
| 8930 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
| 8931 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then | |
| 8932 # Best one so far, save it but keep looking for a better one | |
| 8933 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" | |
| 8934 ac_path_EGREP_TRADITIONAL_max=$ac_count | |
| 8935 fi | |
| 8936 # 10*(2^10) chars as input seems more than enough | |
| 8937 test $ac_count -gt 10 && break | |
| 8938 done | |
| 8939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
| 8940 esac | |
| 8941 | |
| 8942 $ac_path_EGREP_TRADITIONAL_found && break 3 | |
| 8943 done | |
| 8944 done | |
| 8945 done | |
| 8946 IFS=$as_save_IFS | |
| 8947 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then | |
| 8948 : | |
| 8949 fi | |
| 8950 else | |
| 8951 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL | |
| 8952 fi | |
| 8953 | |
| 8954 if test "$ac_cv_path_EGREP_TRADITIONAL" | |
| 8955 then : | |
| 8956 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" | |
| 8957 else case e in #( | |
| 8958 e) if test -z "$EGREP_TRADITIONAL"; then | |
| 8959 ac_path_EGREP_TRADITIONAL_found=false | |
| 8960 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 8962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
| 8963 do | |
| 8964 IFS=$as_save_IFS | |
| 8965 case $as_dir in #((( | |
| 8966 '') as_dir=./ ;; | |
| 8967 */) ;; | |
| 8968 *) as_dir=$as_dir/ ;; | |
| 8969 esac | |
| 8970 for ac_prog in egrep | |
| 8971 do | |
| 8972 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 8973 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" | |
| 8974 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue | |
| 8975 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. | |
| 8976 # Check for GNU $ac_path_EGREP_TRADITIONAL | |
| 8977 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( | |
| 8978 *GNU*) | |
| 8979 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; | |
| 8980 #( | |
| 8981 *) | |
| 8982 ac_count=0 | |
| 8983 printf %s 0123456789 >"conftest.in" | |
| 8984 while : | |
| 8985 do | |
| 8986 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
| 8987 mv "conftest.tmp" "conftest.in" | |
| 8988 cp "conftest.in" "conftest.nl" | |
| 8989 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" | |
| 8990 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
| 8991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
| 8992 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
| 8993 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then | |
| 8994 # Best one so far, save it but keep looking for a better one | |
| 8995 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" | |
| 8996 ac_path_EGREP_TRADITIONAL_max=$ac_count | |
| 8997 fi | |
| 8998 # 10*(2^10) chars as input seems more than enough | |
| 8999 test $ac_count -gt 10 && break | |
| 9000 done | |
| 9001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
| 9002 esac | |
| 9003 | |
| 9004 $ac_path_EGREP_TRADITIONAL_found && break 3 | |
| 9005 done | |
| 9006 done | |
| 9007 done | |
| 9008 IFS=$as_save_IFS | |
| 9009 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then | |
| 9010 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
| 9011 fi | |
| 9012 else | |
| 9013 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL | |
| 9014 fi | |
| 9015 ;; | |
| 9016 esac | |
| 9017 fi ;; | |
| 9018 esac | |
| 9019 fi | |
| 9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 | |
| 9021 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } | |
| 9022 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL | |
| 9023 | |
| 9024 | |
| 9025 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then | |
| 9026 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" | |
| 9027 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" | |
| 9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 9029 /* end confdefs.h. */ | |
| 9030 | |
| 9031 #if defined(_MSC_VER) && _MSC_VER >= 1400 | |
| 9032 print("manifest needed") | |
| 9033 #endif | |
| 9034 | |
| 9035 _ACEOF | |
| 9036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 9037 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1 | |
| 9038 then : | |
| 9039 | |
| 9040 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ | |
| 9041 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi" | |
| 9042 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi" | |
| 9043 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" | |
| 9044 | |
| 9045 CLEANFILES="$CLEANFILES *.manifest" | |
| 9046 | |
| 9047 | |
| 9048 fi | |
| 9049 rm -rf conftest* | |
| 9050 | |
| 9051 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)" | |
| 9052 else | |
| 9053 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" | |
| 9054 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" | |
| 9055 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" | |
| 9056 fi | |
| 9057 | |
| 9058 if test "${SHARED_BUILD}" = "1" ; then | |
| 9059 MAKE_LIB="${MAKE_SHARED_LIB} " | |
| 9060 else | |
| 9061 MAKE_LIB="${MAKE_STATIC_LIB} " | |
| 9062 fi | |
| 9063 | |
| 9064 #-------------------------------------------------------------------- | |
| 9065 # Shared libraries and static libraries have different names. | |
| 9066 # Use the double eval to make sure any variables in the suffix is | |
| 9067 # substituted. (@@@ Might not be necessary anymore) | |
| 9068 #-------------------------------------------------------------------- | |
| 9069 | |
| 9070 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}" | |
| 9071 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9" | |
| 9072 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" == x; then | |
| 9073 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}" | |
| 9074 else | |
| 9075 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}" | |
| 9076 | |
| 9077 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h | |
| 9078 | |
| 9079 fi | |
| 9080 if test "${TEA_PLATFORM}" = "windows" ; then | |
| 9081 if test "${SHARED_BUILD}" = "1" ; then | |
| 9082 # We force the unresolved linking of symbols that are really in | |
| 9083 # the private libraries of Tcl and Tk. | |
| 9084 if test x"${TK_BIN_DIR}" != x ; then | |
| 9085 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" | |
| 9086 fi | |
| 9087 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" | |
| 9088 if test "$GCC" = "yes"; then | |
| 9089 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc" | |
| 9090 fi | |
| 9091 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" | |
| 9092 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" | |
| 9093 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" | |
| 9094 else | |
| 9095 if test "$GCC" = "yes"; then | |
| 9096 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX} | |
| 9097 fi | |
| 9098 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" | |
| 9099 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" | |
| 9100 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" | |
| 9101 fi | |
| 9102 # Some packages build their own stubs libraries | |
| 9103 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" | |
| 9104 if test "$GCC" = "yes"; then | |
| 9105 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} | |
| 9106 fi | |
| 9107 # These aren't needed on Windows (either MSVC or gcc) | |
| 9108 RANLIB=: | |
| 9109 RANLIB_STUB=: | |
| 9110 else | |
| 9111 RANLIB_STUB="${RANLIB}" | |
| 9112 if test "${SHARED_BUILD}" = "1" ; then | |
| 9113 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" | |
| 9114 if test x"${TK_BIN_DIR}" != x ; then | |
| 9115 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" | |
| 9116 fi | |
| 9117 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" | |
| 9118 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" | |
| 9119 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" | |
| 9120 RANLIB=: | |
| 9121 else | |
| 9122 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" | |
| 9123 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" | |
| 9124 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" | |
| 9125 fi | |
| 9126 # Some packages build their own stubs libraries | |
| 9127 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" | |
| 9128 fi | |
| 9129 | |
| 9130 # These are escaped so that only CFLAGS is picked up at configure time. | |
| 9131 # The other values will be substituted at make time. | |
| 9132 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" | |
| 9133 if test "${SHARED_BUILD}" = "1" ; then | |
| 9134 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" | |
| 9135 fi | |
| 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 #-------------------------------------------------------------------- | |
| 9147 # Determine the name of the tclsh and/or wish executables in the | |
| 9148 # Tcl and Tk build directories or the location they were installed | |
| 9149 # into. These paths are used to support running test cases only, | |
| 9150 # the Makefile should not be making use of these paths to generate | |
| 9151 # a pkgIndex.tcl file or anything else at extension build time. | |
| 9152 #-------------------------------------------------------------------- | |
| 9153 | |
| 9154 | |
| 9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 | |
| 9156 printf %s "checking for tclsh... " >&6; } | |
| 9157 if test -f "${TCL_BIN_DIR}/Makefile" ; then | |
| 9158 # tclConfig.sh is in Tcl build directory | |
| 9159 if test "${TEA_PLATFORM}" = "windows"; then | |
| 9160 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then | |
| 9161 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" | |
| 9162 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then | |
| 9163 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" | |
| 9164 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then | |
| 9165 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" | |
| 9166 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then | |
| 9167 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" | |
| 9168 fi | |
| 9169 else | |
| 9170 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" | |
| 9171 fi | |
| 9172 else | |
| 9173 # tclConfig.sh is in install location | |
| 9174 if test "${TEA_PLATFORM}" = "windows"; then | |
| 9175 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" | |
| 9176 else | |
| 9177 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}" | |
| 9178 fi | |
| 9179 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ | |
| 9180 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ | |
| 9181 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" | |
| 9182 for i in $list ; do | |
| 9183 if test -f "$i/${TCLSH_PROG}" ; then | |
| 9184 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" | |
| 9185 break | |
| 9186 fi | |
| 9187 done | |
| 9188 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" | |
| 9189 fi | |
| 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 | |
| 9191 printf "%s\n" "${TCLSH_PROG}" >&6; } | |
| 9192 | |
| 9193 | |
| 9194 #TEA_PROG_WISH | |
| 9195 | |
| 9196 #-------------------------------------------------------------------- | |
| 9197 # Setup a *Config.sh.in configuration file. | |
| 9198 #-------------------------------------------------------------------- | |
| 9199 | |
| 9200 #TEA_EXPORT_CONFIG([sample]) | |
| 9201 #AC_SUBST(SAMPLE_VAR) | |
| 9202 | |
| 9203 #-------------------------------------------------------------------- | |
| 9204 # Specify files to substitute AC variables in. You may alternatively | |
| 9205 # have a special pkgIndex.tcl.in or other files which require | |
| 9206 # substituting the AC variables in. Include these here. | |
| 9207 #-------------------------------------------------------------------- | |
| 9208 | |
| 9209 ac_config_files="$ac_config_files Makefile pkgIndex.tcl" | |
| 9210 | |
| 9211 #AC_CONFIG_FILES([sampleConfig.sh]) | |
| 9212 | |
| 9213 #-------------------------------------------------------------------- | |
| 9214 # Finally, substitute all of the various values into the files | |
| 9215 # specified with AC_CONFIG_FILES. | |
| 9216 #-------------------------------------------------------------------- | |
| 9217 | |
| 9218 cat >confcache <<\_ACEOF | |
| 9219 # This file is a shell script that caches the results of configure | |
| 9220 # tests run on this system so they can be shared between configure | |
| 9221 # scripts and configure runs, see configure's option --config-cache. | |
| 9222 # It is not useful on other systems. If it contains results you don't | |
| 9223 # want to keep, you may remove or edit it. | |
| 9224 # | |
| 9225 # config.status only pays attention to the cache file if you give it | |
| 9226 # the --recheck option to rerun configure. | |
| 9227 # | |
| 9228 # 'ac_cv_env_foo' variables (set or unset) will be overridden when | |
| 9229 # loading this file, other *unset* 'ac_cv_foo' will be assigned the | |
| 9230 # following values. | |
| 9231 | |
| 9232 _ACEOF | |
| 9233 | |
| 9234 # The following way of writing the cache mishandles newlines in values, | |
| 9235 # but we know of no workaround that is simple, portable, and efficient. | |
| 9236 # So, we kill variables containing newlines. | |
| 9237 # Ultrix sh set writes to stderr and can't be redirected directly, | |
| 9238 # and sets the high bit in the cache file unless we assign to the vars. | |
| 9239 ( | |
| 9240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
| 9241 eval ac_val=\$$ac_var | |
| 9242 case $ac_val in #( | |
| 9243 *${as_nl}*) | |
| 9244 case $ac_var in #( | |
| 9245 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
| 9246 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
| 9247 esac | |
| 9248 case $ac_var in #( | |
| 9249 _ | IFS | as_nl) ;; #( | |
| 9250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
| 9251 *) { eval $ac_var=; unset $ac_var;} ;; | |
| 9252 esac ;; | |
| 9253 esac | |
| 9254 done | |
| 9255 | |
| 9256 (set) 2>&1 | | |
| 9257 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
| 9258 *${as_nl}ac_space=\ *) | |
| 9259 # 'set' does not quote correctly, so add quotes: double-quote | |
| 9260 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
| 9261 sed -n \ | |
| 9262 "s/'/'\\\\''/g; | |
| 9263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
| 9264 ;; #( | |
| 9265 *) | |
| 9266 # 'set' quotes correctly as required by POSIX, so do not add quotes. | |
| 9267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
| 9268 ;; | |
| 9269 esac | | |
| 9270 sort | |
| 9271 ) | | |
| 9272 sed ' | |
| 9273 /^ac_cv_env_/b end | |
| 9274 t clear | |
| 9275 :clear | |
| 9276 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | |
| 9277 t end | |
| 9278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
| 9279 :end' >>confcache | |
| 9280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
| 9281 if test -w "$cache_file"; then | |
| 9282 if test "x$cache_file" != "x/dev/null"; then | |
| 9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
| 9284 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
| 9285 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
| 9286 cat confcache >"$cache_file" | |
| 9287 else | |
| 9288 case $cache_file in #( | |
| 9289 */* | ?:*) | |
| 9290 mv -f confcache "$cache_file"$$ && | |
| 9291 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
| 9292 *) | |
| 9293 mv -f confcache "$cache_file" ;; | |
| 9294 esac | |
| 9295 fi | |
| 9296 fi | |
| 9297 else | |
| 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
| 9299 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
| 9300 fi | |
| 9301 fi | |
| 9302 rm -f confcache | |
| 9303 | |
| 9304 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
| 9305 # Let make expand exec_prefix. | |
| 9306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
| 9307 | |
| 9308 # Transform confdefs.h into DEFS. | |
| 9309 # Protect against shell expansion while executing Makefile rules. | |
| 9310 # Protect against Makefile macro expansion. | |
| 9311 # | |
| 9312 # If the first sed substitution is executed (which looks for macros that | |
| 9313 # take arguments), then branch to the quote section. Otherwise, | |
| 9314 # look for a macro that doesn't take arguments. | |
| 9315 ac_script=' | |
| 9316 :mline | |
| 9317 /\\$/{ | |
| 9318 N | |
| 9319 s,\\\n,, | |
| 9320 b mline | |
| 9321 } | |
| 9322 t clear | |
| 9323 :clear | |
| 9324 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
| 9325 t quote | |
| 9326 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
| 9327 t quote | |
| 9328 b any | |
| 9329 :quote | |
| 9330 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
| 9331 s/\$/$$/g | |
| 9332 H | |
| 9333 :any | |
| 9334 ${ | |
| 9335 g | |
| 9336 s/^\n// | |
| 9337 s/\n/ /g | |
| 9338 p | |
| 9339 } | |
| 9340 ' | |
| 9341 DEFS=`sed -n "$ac_script" confdefs.h` | |
| 9342 | |
| 9343 | |
| 9344 ac_libobjs= | |
| 9345 ac_ltlibobjs= | |
| 9346 U= | |
| 9347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
| 9348 # 1. Remove the extension, and $U if already installed. | |
| 9349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
| 9350 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | |
| 9351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
| 9352 # will be set to the directory where LIBOBJS objects are built. | |
| 9353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
| 9354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
| 9355 done | |
| 9356 LIBOBJS=$ac_libobjs | |
| 9357 | |
| 9358 LTLIBOBJS=$ac_ltlibobjs | |
| 9359 | |
| 9360 | |
| 9361 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" | |
| 9362 | |
| 9363 : "${CONFIG_STATUS=./config.status}" | |
| 9364 ac_write_fail=0 | |
| 9365 ac_clean_files_save=$ac_clean_files | |
| 9366 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
| 9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
| 9368 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
| 9369 as_write_fail=0 | |
| 9370 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
| 9371 #! $SHELL | |
| 9372 # Generated by $as_me. | |
| 9373 # Run this file to recreate the current configuration. | |
| 9374 # Compiler output produced by configure, useful for debugging | |
| 9375 # configure, is in config.log if it exists. | |
| 9376 | |
| 9377 debug=false | |
| 9378 ac_cs_recheck=false | |
| 9379 ac_cs_silent=false | |
| 9380 | |
| 9381 SHELL=\${CONFIG_SHELL-$SHELL} | |
| 9382 export SHELL | |
| 9383 _ASEOF | |
| 9384 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
| 9385 ## -------------------- ## | |
| 9386 ## M4sh Initialization. ## | |
| 9387 ## -------------------- ## | |
| 9388 | |
| 9389 # Be more Bourne compatible | |
| 9390 DUALCASE=1; export DUALCASE # for MKS sh | |
| 9391 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
| 9392 then : | |
| 9393 emulate sh | |
| 9394 NULLCMD=: | |
| 9395 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
| 9396 # is contrary to our usage. Disable this feature. | |
| 9397 alias -g '${1+"$@"}'='"$@"' | |
| 9398 setopt NO_GLOB_SUBST | |
| 9399 else case e in #( | |
| 9400 e) case `(set -o) 2>/dev/null` in #( | |
| 9401 *posix*) : | |
| 9402 set -o posix ;; #( | |
| 9403 *) : | |
| 9404 ;; | |
| 9405 esac ;; | |
| 9406 esac | |
| 9407 fi | |
| 9408 | |
| 9409 | |
| 9410 | |
| 9411 # Reset variables that may have inherited troublesome values from | |
| 9412 # the environment. | |
| 9413 | |
| 9414 # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
| 9415 # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
| 9416 # side effect of setting IFS to empty, thus disabling word splitting.) | |
| 9417 # Quoting is to prevent editors from complaining about space-tab. | |
| 9418 as_nl=' | |
| 9419 ' | |
| 9420 export as_nl | |
| 9421 IFS=" "" $as_nl" | |
| 9422 | |
| 9423 PS1='$ ' | |
| 9424 PS2='> ' | |
| 9425 PS4='+ ' | |
| 9426 | |
| 9427 # Ensure predictable behavior from utilities with locale-dependent output. | |
| 9428 LC_ALL=C | |
| 9429 export LC_ALL | |
| 9430 LANGUAGE=C | |
| 9431 export LANGUAGE | |
| 9432 | |
| 9433 # We cannot yet rely on "unset" to work, but we need these variables | |
| 9434 # to be unset--not just set to an empty or harmless value--now, to | |
| 9435 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
| 9436 # also avoids known problems related to "unset" and subshell syntax | |
| 9437 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
| 9438 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
| 9439 do eval test \${$as_var+y} \ | |
| 9440 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
| 9441 done | |
| 9442 | |
| 9443 # Ensure that fds 0, 1, and 2 are open. | |
| 9444 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
| 9445 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
| 9446 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
| 9447 | |
| 9448 # The user is always right. | |
| 9449 if ${PATH_SEPARATOR+false} :; then | |
| 9450 PATH_SEPARATOR=: | |
| 9451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
| 9452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
| 9453 PATH_SEPARATOR=';' | |
| 9454 } | |
| 9455 fi | |
| 9456 | |
| 9457 | |
| 9458 # Find who we are. Look in the path if we contain no directory separator. | |
| 9459 as_myself= | |
| 9460 case $0 in #(( | |
| 9461 *[\\/]* ) as_myself=$0 ;; | |
| 9462 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 9463 for as_dir in $PATH | |
| 9464 do | |
| 9465 IFS=$as_save_IFS | |
| 9466 case $as_dir in #((( | |
| 9467 '') as_dir=./ ;; | |
| 9468 */) ;; | |
| 9469 *) as_dir=$as_dir/ ;; | |
| 9470 esac | |
| 9471 test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
| 9472 done | |
| 9473 IFS=$as_save_IFS | |
| 9474 | |
| 9475 ;; | |
| 9476 esac | |
| 9477 # We did not find ourselves, most probably we were run as 'sh COMMAND' | |
| 9478 # in which case we are not to be found in the path. | |
| 9479 if test "x$as_myself" = x; then | |
| 9480 as_myself=$0 | |
| 9481 fi | |
| 9482 if test ! -f "$as_myself"; then | |
| 9483 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
| 9484 exit 1 | |
| 9485 fi | |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
| 9490 # ---------------------------------------- | |
| 9491 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
| 9492 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
| 9493 # script with STATUS, using 1 if that was 0. | |
| 9494 as_fn_error () | |
| 9495 { | |
| 9496 as_status=$1; test $as_status -eq 0 && as_status=1 | |
| 9497 if test "$4"; then | |
| 9498 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 9499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
| 9500 fi | |
| 9501 printf "%s\n" "$as_me: error: $2" >&2 | |
| 9502 as_fn_exit $as_status | |
| 9503 } # as_fn_error | |
| 9504 | |
| 9505 | |
| 9506 # as_fn_set_status STATUS | |
| 9507 # ----------------------- | |
| 9508 # Set $? to STATUS, without forking. | |
| 9509 as_fn_set_status () | |
| 9510 { | |
| 9511 return $1 | |
| 9512 } # as_fn_set_status | |
| 9513 | |
| 9514 # as_fn_exit STATUS | |
| 9515 # ----------------- | |
| 9516 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
| 9517 as_fn_exit () | |
| 9518 { | |
| 9519 set +e | |
| 9520 as_fn_set_status $1 | |
| 9521 exit $1 | |
| 9522 } # as_fn_exit | |
| 9523 | |
| 9524 # as_fn_unset VAR | |
| 9525 # --------------- | |
| 9526 # Portably unset VAR. | |
| 9527 as_fn_unset () | |
| 9528 { | |
| 9529 { eval $1=; unset $1;} | |
| 9530 } | |
| 9531 as_unset=as_fn_unset | |
| 9532 | |
| 9533 # as_fn_append VAR VALUE | |
| 9534 # ---------------------- | |
| 9535 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
| 9536 # advantage of any shell optimizations that allow amortized linear growth over | |
| 9537 # repeated appends, instead of the typical quadratic growth present in naive | |
| 9538 # implementations. | |
| 9539 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
| 9540 then : | |
| 9541 eval 'as_fn_append () | |
| 9542 { | |
| 9543 eval $1+=\$2 | |
| 9544 }' | |
| 9545 else case e in #( | |
| 9546 e) as_fn_append () | |
| 9547 { | |
| 9548 eval $1=\$$1\$2 | |
| 9549 } ;; | |
| 9550 esac | |
| 9551 fi # as_fn_append | |
| 9552 | |
| 9553 # as_fn_arith ARG... | |
| 9554 # ------------------ | |
| 9555 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
| 9556 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
| 9557 # must be portable across $(()) and expr. | |
| 9558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
| 9559 then : | |
| 9560 eval 'as_fn_arith () | |
| 9561 { | |
| 9562 as_val=$(( $* )) | |
| 9563 }' | |
| 9564 else case e in #( | |
| 9565 e) as_fn_arith () | |
| 9566 { | |
| 9567 as_val=`expr "$@" || test $? -eq 1` | |
| 9568 } ;; | |
| 9569 esac | |
| 9570 fi # as_fn_arith | |
| 9571 | |
| 9572 | |
| 9573 if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 9574 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 9575 as_expr=expr | |
| 9576 else | |
| 9577 as_expr=false | |
| 9578 fi | |
| 9579 | |
| 9580 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
| 9581 as_basename=basename | |
| 9582 else | |
| 9583 as_basename=false | |
| 9584 fi | |
| 9585 | |
| 9586 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
| 9587 as_dirname=dirname | |
| 9588 else | |
| 9589 as_dirname=false | |
| 9590 fi | |
| 9591 | |
| 9592 as_me=`$as_basename -- "$0" || | |
| 9593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
| 9594 X"$0" : 'X\(//\)$' \| \ | |
| 9595 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 9596 printf "%s\n" X/"$0" | | |
| 9597 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
| 9598 s//\1/ | |
| 9599 q | |
| 9600 } | |
| 9601 /^X\/\(\/\/\)$/{ | |
| 9602 s//\1/ | |
| 9603 q | |
| 9604 } | |
| 9605 /^X\/\(\/\).*/{ | |
| 9606 s//\1/ | |
| 9607 q | |
| 9608 } | |
| 9609 s/.*/./; q'` | |
| 9610 | |
| 9611 # Avoid depending upon Character Ranges. | |
| 9612 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 9613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 9614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 9615 as_cr_digits='0123456789' | |
| 9616 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 9617 | |
| 9618 | |
| 9619 # Determine whether it's possible to make 'echo' print without a newline. | |
| 9620 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
| 9621 # for compatibility with existing Makefiles. | |
| 9622 ECHO_C= ECHO_N= ECHO_T= | |
| 9623 case `echo -n x` in #((((( | |
| 9624 -n*) | |
| 9625 case `echo 'xy\c'` in | |
| 9626 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
| 9627 xy) ECHO_C='\c';; | |
| 9628 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
| 9629 ECHO_T=' ';; | |
| 9630 esac;; | |
| 9631 *) | |
| 9632 ECHO_N='-n';; | |
| 9633 esac | |
| 9634 | |
| 9635 # For backward compatibility with old third-party macros, we provide | |
| 9636 # the shell variables $as_echo and $as_echo_n. New code should use | |
| 9637 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
| 9638 as_echo='printf %s\n' | |
| 9639 as_echo_n='printf %s' | |
| 9640 | |
| 9641 rm -f conf$$ conf$$.exe conf$$.file | |
| 9642 if test -d conf$$.dir; then | |
| 9643 rm -f conf$$.dir/conf$$.file | |
| 9644 else | |
| 9645 rm -f conf$$.dir | |
| 9646 mkdir conf$$.dir 2>/dev/null | |
| 9647 fi | |
| 9648 if (echo >conf$$.file) 2>/dev/null; then | |
| 9649 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 9650 as_ln_s='ln -s' | |
| 9651 # ... but there are two gotchas: | |
| 9652 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. | |
| 9653 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
| 9654 # In both cases, we have to default to 'cp -pR'. | |
| 9655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
| 9656 as_ln_s='cp -pR' | |
| 9657 elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 9658 as_ln_s=ln | |
| 9659 else | |
| 9660 as_ln_s='cp -pR' | |
| 9661 fi | |
| 9662 else | |
| 9663 as_ln_s='cp -pR' | |
| 9664 fi | |
| 9665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
| 9666 rmdir conf$$.dir 2>/dev/null | |
| 9667 | |
| 9668 | |
| 9669 # as_fn_mkdir_p | |
| 9670 # ------------- | |
| 9671 # Create "$as_dir" as a directory, including parents if necessary. | |
| 9672 as_fn_mkdir_p () | |
| 9673 { | |
| 9674 | |
| 9675 case $as_dir in #( | |
| 9676 -*) as_dir=./$as_dir;; | |
| 9677 esac | |
| 9678 test -d "$as_dir" || eval $as_mkdir_p || { | |
| 9679 as_dirs= | |
| 9680 while :; do | |
| 9681 case $as_dir in #( | |
| 9682 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
| 9683 *) as_qdir=$as_dir;; | |
| 9684 esac | |
| 9685 as_dirs="'$as_qdir' $as_dirs" | |
| 9686 as_dir=`$as_dirname -- "$as_dir" || | |
| 9687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 9688 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
| 9689 X"$as_dir" : 'X\(//\)$' \| \ | |
| 9690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
| 9691 printf "%s\n" X"$as_dir" | | |
| 9692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 9693 s//\1/ | |
| 9694 q | |
| 9695 } | |
| 9696 /^X\(\/\/\)[^/].*/{ | |
| 9697 s//\1/ | |
| 9698 q | |
| 9699 } | |
| 9700 /^X\(\/\/\)$/{ | |
| 9701 s//\1/ | |
| 9702 q | |
| 9703 } | |
| 9704 /^X\(\/\).*/{ | |
| 9705 s//\1/ | |
| 9706 q | |
| 9707 } | |
| 9708 s/.*/./; q'` | |
| 9709 test -d "$as_dir" && break | |
| 9710 done | |
| 9711 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
| 9712 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
| 9713 | |
| 9714 | |
| 9715 } # as_fn_mkdir_p | |
| 9716 if mkdir -p . 2>/dev/null; then | |
| 9717 as_mkdir_p='mkdir -p "$as_dir"' | |
| 9718 else | |
| 9719 test -d ./-p && rmdir ./-p | |
| 9720 as_mkdir_p=false | |
| 9721 fi | |
| 9722 | |
| 9723 | |
| 9724 # as_fn_executable_p FILE | |
| 9725 # ----------------------- | |
| 9726 # Test if FILE is an executable regular file. | |
| 9727 as_fn_executable_p () | |
| 9728 { | |
| 9729 test -f "$1" && test -x "$1" | |
| 9730 } # as_fn_executable_p | |
| 9731 as_test_x='test -x' | |
| 9732 as_executable_p=as_fn_executable_p | |
| 9733 | |
| 9734 # Sed expression to map a string onto a valid CPP name. | |
| 9735 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
| 9736 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
| 9737 | |
| 9738 # Sed expression to map a string onto a valid variable name. | |
| 9739 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
| 9740 as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
| 9741 | |
| 9742 | |
| 9743 exec 6>&1 | |
| 9744 ## ----------------------------------- ## | |
| 9745 ## Main body of $CONFIG_STATUS script. ## | |
| 9746 ## ----------------------------------- ## | |
| 9747 _ASEOF | |
| 9748 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
| 9749 | |
| 9750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 9751 # Save the log message, to keep $0 and so on meaningful, and to | |
| 9752 # report actual input values of CONFIG_FILES etc. instead of their | |
| 9753 # values after options handling. | |
| 9754 ac_log=" | |
| 9755 This file was extended by zint $as_me 2.13.0, which was | |
| 9756 generated by GNU Autoconf 2.72. Invocation command line was | |
| 9757 | |
| 9758 CONFIG_FILES = $CONFIG_FILES | |
| 9759 CONFIG_HEADERS = $CONFIG_HEADERS | |
| 9760 CONFIG_LINKS = $CONFIG_LINKS | |
| 9761 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
| 9762 $ $0 $@ | |
| 9763 | |
| 9764 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 9765 " | |
| 9766 | |
| 9767 _ACEOF | |
| 9768 | |
| 9769 case $ac_config_files in *" | |
| 9770 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
| 9771 esac | |
| 9772 | |
| 9773 | |
| 9774 | |
| 9775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 9776 # Files that config.status was made for. | |
| 9777 config_files="$ac_config_files" | |
| 9778 | |
| 9779 _ACEOF | |
| 9780 | |
| 9781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 9782 ac_cs_usage="\ | |
| 9783 '$as_me' instantiates files and other configuration actions | |
| 9784 from templates according to the current configuration. Unless the files | |
| 9785 and actions are specified as TAGs, all are instantiated by default. | |
| 9786 | |
| 9787 Usage: $0 [OPTION]... [TAG]... | |
| 9788 | |
| 9789 -h, --help print this help, then exit | |
| 9790 -V, --version print version number and configuration settings, then exit | |
| 9791 --config print configuration, then exit | |
| 9792 -q, --quiet, --silent | |
| 9793 do not print progress messages | |
| 9794 -d, --debug don't remove temporary files | |
| 9795 --recheck update $as_me by reconfiguring in the same conditions | |
| 9796 --file=FILE[:TEMPLATE] | |
| 9797 instantiate the configuration file FILE | |
| 9798 | |
| 9799 Configuration files: | |
| 9800 $config_files | |
| 9801 | |
| 9802 Report bugs to the package provider." | |
| 9803 | |
| 9804 _ACEOF | |
| 9805 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
| 9806 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
| 9807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 9808 ac_cs_config='$ac_cs_config_escaped' | |
| 9809 ac_cs_version="\\ | |
| 9810 zint config.status 2.13.0 | |
| 9811 configured by $0, generated by GNU Autoconf 2.72, | |
| 9812 with options \\"\$ac_cs_config\\" | |
| 9813 | |
| 9814 Copyright (C) 2023 Free Software Foundation, Inc. | |
| 9815 This config.status script is free software; the Free Software Foundation | |
| 9816 gives unlimited permission to copy, distribute and modify it." | |
| 9817 | |
| 9818 ac_pwd='$ac_pwd' | |
| 9819 srcdir='$srcdir' | |
| 9820 test -n "\$AWK" || AWK=awk | |
| 9821 _ACEOF | |
| 9822 | |
| 9823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 9824 # The default lists apply if the user does not specify any file. | |
| 9825 ac_need_defaults=: | |
| 9826 while test $# != 0 | |
| 9827 do | |
| 9828 case $1 in | |
| 9829 --*=?*) | |
| 9830 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
| 9831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
| 9832 ac_shift=: | |
| 9833 ;; | |
| 9834 --*=) | |
| 9835 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
| 9836 ac_optarg= | |
| 9837 ac_shift=: | |
| 9838 ;; | |
| 9839 *) | |
| 9840 ac_option=$1 | |
| 9841 ac_optarg=$2 | |
| 9842 ac_shift=shift | |
| 9843 ;; | |
| 9844 esac | |
| 9845 | |
| 9846 case $ac_option in | |
| 9847 # Handling of the options. | |
| 9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
| 9849 ac_cs_recheck=: ;; | |
| 9850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
| 9851 printf "%s\n" "$ac_cs_version"; exit ;; | |
| 9852 --config | --confi | --conf | --con | --co | --c ) | |
| 9853 printf "%s\n" "$ac_cs_config"; exit ;; | |
| 9854 --debug | --debu | --deb | --de | --d | -d ) | |
| 9855 debug=: ;; | |
| 9856 --file | --fil | --fi | --f ) | |
| 9857 $ac_shift | |
| 9858 case $ac_optarg in | |
| 9859 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 9860 '') as_fn_error $? "missing file argument" ;; | |
| 9861 esac | |
| 9862 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
| 9863 ac_need_defaults=false;; | |
| 9864 --he | --h | --help | --hel | -h ) | |
| 9865 printf "%s\n" "$ac_cs_usage"; exit ;; | |
| 9866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 9867 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
| 9868 ac_cs_silent=: ;; | |
| 9869 | |
| 9870 # This is an error. | |
| 9871 -*) as_fn_error $? "unrecognized option: '$1' | |
| 9872 Try '$0 --help' for more information." ;; | |
| 9873 | |
| 9874 *) as_fn_append ac_config_targets " $1" | |
| 9875 ac_need_defaults=false ;; | |
| 9876 | |
| 9877 esac | |
| 9878 shift | |
| 9879 done | |
| 9880 | |
| 9881 ac_configure_extra_args= | |
| 9882 | |
| 9883 if $ac_cs_silent; then | |
| 9884 exec 6>/dev/null | |
| 9885 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
| 9886 fi | |
| 9887 | |
| 9888 _ACEOF | |
| 9889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 9890 if \$ac_cs_recheck; then | |
| 9891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
| 9892 shift | |
| 9893 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | |
| 9894 CONFIG_SHELL='$SHELL' | |
| 9895 export CONFIG_SHELL | |
| 9896 exec "\$@" | |
| 9897 fi | |
| 9898 | |
| 9899 _ACEOF | |
| 9900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 9901 exec 5>>config.log | |
| 9902 { | |
| 9903 echo | |
| 9904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
| 9905 ## Running $as_me. ## | |
| 9906 _ASBOX | |
| 9907 printf "%s\n" "$ac_log" | |
| 9908 } >&5 | |
| 9909 | |
| 9910 _ACEOF | |
| 9911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 9912 _ACEOF | |
| 9913 | |
| 9914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 9915 | |
| 9916 # Handling of arguments. | |
| 9917 for ac_config_target in $ac_config_targets | |
| 9918 do | |
| 9919 case $ac_config_target in | |
| 9920 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
| 9921 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; | |
| 9922 | |
| 9923 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; | |
| 9924 esac | |
| 9925 done | |
| 9926 | |
| 9927 | |
| 9928 # If the user did not use the arguments to specify the items to instantiate, | |
| 9929 # then the envvar interface is used. Set only those that are not. | |
| 9930 # We use the long form for the default assignment because of an extremely | |
| 9931 # bizarre bug on SunOS 4.1.3. | |
| 9932 if $ac_need_defaults; then | |
| 9933 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | |
| 9934 fi | |
| 9935 | |
| 9936 # Have a temporary directory for convenience. Make it in the build tree | |
| 9937 # simply because there is no reason against having it here, and in addition, | |
| 9938 # creating and moving files from /tmp can sometimes cause problems. | |
| 9939 # Hook for its removal unless debugging. | |
| 9940 # Note that there is a small window in which the directory will not be cleaned: | |
| 9941 # after its creation but before its name has been assigned to '$tmp'. | |
| 9942 $debug || | |
| 9943 { | |
| 9944 tmp= ac_tmp= | |
| 9945 trap 'exit_status=$? | |
| 9946 : "${ac_tmp:=$tmp}" | |
| 9947 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
| 9948 ' 0 | |
| 9949 trap 'as_fn_exit 1' 1 2 13 15 | |
| 9950 } | |
| 9951 # Create a (secure) tmp directory for tmp files. | |
| 9952 | |
| 9953 { | |
| 9954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
| 9955 test -d "$tmp" | |
| 9956 } || | |
| 9957 { | |
| 9958 tmp=./conf$$-$RANDOM | |
| 9959 (umask 077 && mkdir "$tmp") | |
| 9960 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
| 9961 ac_tmp=$tmp | |
| 9962 | |
| 9963 # Set up the scripts for CONFIG_FILES section. | |
| 9964 # No need to generate them if there are no CONFIG_FILES. | |
| 9965 # This happens for instance with './config.status config.h'. | |
| 9966 if test -n "$CONFIG_FILES"; then | |
| 9967 | |
| 9968 | |
| 9969 ac_cr=`echo X | tr X '\015'` | |
| 9970 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
| 9971 # But we know of no other shell where ac_cr would be empty at this | |
| 9972 # point, so we can use a bashism as a fallback. | |
| 9973 if test "x$ac_cr" = x; then | |
| 9974 eval ac_cr=\$\'\\r\' | |
| 9975 fi | |
| 9976 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
| 9977 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
| 9978 ac_cs_awk_cr='\\r' | |
| 9979 else | |
| 9980 ac_cs_awk_cr=$ac_cr | |
| 9981 fi | |
| 9982 | |
| 9983 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
| 9984 _ACEOF | |
| 9985 | |
| 9986 | |
| 9987 { | |
| 9988 echo "cat >conf$$subs.awk <<_ACEOF" && | |
| 9989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
| 9990 echo "_ACEOF" | |
| 9991 } >conf$$subs.sh || | |
| 9992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
| 9993 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
| 9994 ac_delim='%!_!# ' | |
| 9995 for ac_last_try in false false false false false :; do | |
| 9996 . ./conf$$subs.sh || | |
| 9997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
| 9998 | |
| 9999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
| 10000 if test $ac_delim_n = $ac_delim_num; then | |
| 10001 break | |
| 10002 elif $ac_last_try; then | |
| 10003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
| 10004 else | |
| 10005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
| 10006 fi | |
| 10007 done | |
| 10008 rm -f conf$$subs.sh | |
| 10009 | |
| 10010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 10011 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
| 10012 _ACEOF | |
| 10013 sed -n ' | |
| 10014 h | |
| 10015 s/^/S["/; s/!.*/"]=/ | |
| 10016 p | |
| 10017 g | |
| 10018 s/^[^!]*!// | |
| 10019 :repl | |
| 10020 t repl | |
| 10021 s/'"$ac_delim"'$// | |
| 10022 t delim | |
| 10023 :nl | |
| 10024 h | |
| 10025 s/\(.\{148\}\)..*/\1/ | |
| 10026 t more1 | |
| 10027 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
| 10028 p | |
| 10029 n | |
| 10030 b repl | |
| 10031 :more1 | |
| 10032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
| 10033 p | |
| 10034 g | |
| 10035 s/.\{148\}// | |
| 10036 t nl | |
| 10037 :delim | |
| 10038 h | |
| 10039 s/\(.\{148\}\)..*/\1/ | |
| 10040 t more2 | |
| 10041 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
| 10042 p | |
| 10043 b | |
| 10044 :more2 | |
| 10045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
| 10046 p | |
| 10047 g | |
| 10048 s/.\{148\}// | |
| 10049 t delim | |
| 10050 ' <conf$$subs.awk | sed ' | |
| 10051 /^[^""]/{ | |
| 10052 N | |
| 10053 s/\n// | |
| 10054 } | |
| 10055 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
| 10056 rm -f conf$$subs.awk | |
| 10057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 10058 _ACAWK | |
| 10059 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
| 10060 for (key in S) S_is_set[key] = 1 | |
| 10061 FS = "" | |
| 10062 | |
| 10063 } | |
| 10064 { | |
| 10065 line = $ 0 | |
| 10066 nfields = split(line, field, "@") | |
| 10067 substed = 0 | |
| 10068 len = length(field[1]) | |
| 10069 for (i = 2; i < nfields; i++) { | |
| 10070 key = field[i] | |
| 10071 keylen = length(key) | |
| 10072 if (S_is_set[key]) { | |
| 10073 value = S[key] | |
| 10074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
| 10075 len += length(value) + length(field[++i]) | |
| 10076 substed = 1 | |
| 10077 } else | |
| 10078 len += 1 + keylen | |
| 10079 } | |
| 10080 | |
| 10081 print line | |
| 10082 } | |
| 10083 | |
| 10084 _ACAWK | |
| 10085 _ACEOF | |
| 10086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 10087 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
| 10088 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
| 10089 else | |
| 10090 cat | |
| 10091 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
| 10092 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
| 10093 _ACEOF | |
| 10094 | |
| 10095 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
| 10096 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
| 10097 # trailing colons and then remove the whole line if VPATH becomes empty | |
| 10098 # (actually we leave an empty line to preserve line numbers). | |
| 10099 if test "x$srcdir" = x.; then | |
| 10100 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
| 10101 h | |
| 10102 s/// | |
| 10103 s/^/:/ | |
| 10104 s/[ ]*$/:/ | |
| 10105 s/:\$(srcdir):/:/g | |
| 10106 s/:\${srcdir}:/:/g | |
| 10107 s/:@srcdir@:/:/g | |
| 10108 s/^:*// | |
| 10109 s/:*$// | |
| 10110 x | |
| 10111 s/\(=[ ]*\).*/\1/ | |
| 10112 G | |
| 10113 s/\n// | |
| 10114 s/^[^=]*=[ ]*$// | |
| 10115 }' | |
| 10116 fi | |
| 10117 | |
| 10118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 10119 fi # test -n "$CONFIG_FILES" | |
| 10120 | |
| 10121 | |
| 10122 eval set X " :F $CONFIG_FILES " | |
| 10123 shift | |
| 10124 for ac_tag | |
| 10125 do | |
| 10126 case $ac_tag in | |
| 10127 :[FHLC]) ac_mode=$ac_tag; continue;; | |
| 10128 esac | |
| 10129 case $ac_mode$ac_tag in | |
| 10130 :[FHL]*:*);; | |
| 10131 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; | |
| 10132 :[FH]-) ac_tag=-:-;; | |
| 10133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
| 10134 esac | |
| 10135 ac_save_IFS=$IFS | |
| 10136 IFS=: | |
| 10137 set x $ac_tag | |
| 10138 IFS=$ac_save_IFS | |
| 10139 shift | |
| 10140 ac_file=$1 | |
| 10141 shift | |
| 10142 | |
| 10143 case $ac_mode in | |
| 10144 :L) ac_source=$1;; | |
| 10145 :[FH]) | |
| 10146 ac_file_inputs= | |
| 10147 for ac_f | |
| 10148 do | |
| 10149 case $ac_f in | |
| 10150 -) ac_f="$ac_tmp/stdin";; | |
| 10151 *) # Look for the file first in the build tree, then in the source tree | |
| 10152 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
| 10153 # because $ac_f cannot contain ':'. | |
| 10154 test -f "$ac_f" || | |
| 10155 case $ac_f in | |
| 10156 [\\/$]*) false;; | |
| 10157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
| 10158 esac || | |
| 10159 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; | |
| 10160 esac | |
| 10161 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
| 10162 as_fn_append ac_file_inputs " '$ac_f'" | |
| 10163 done | |
| 10164 | |
| 10165 # Let's still pretend it is 'configure' which instantiates (i.e., don't | |
| 10166 # use $as_me), people would be surprised to read: | |
| 10167 # /* config.h. Generated by config.status. */ | |
| 10168 configure_input='Generated from '` | |
| 10169 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
| 10170 `' by configure.' | |
| 10171 if test x"$ac_file" != x-; then | |
| 10172 configure_input="$ac_file. $configure_input" | |
| 10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
| 10174 printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
| 10175 fi | |
| 10176 # Neutralize special characters interpreted by sed in replacement strings. | |
| 10177 case $configure_input in #( | |
| 10178 *\&* | *\|* | *\\* ) | |
| 10179 ac_sed_conf_input=`printf "%s\n" "$configure_input" | | |
| 10180 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
| 10181 *) ac_sed_conf_input=$configure_input;; | |
| 10182 esac | |
| 10183 | |
| 10184 case $ac_tag in | |
| 10185 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
| 10186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
| 10187 esac | |
| 10188 ;; | |
| 10189 esac | |
| 10190 | |
| 10191 ac_dir=`$as_dirname -- "$ac_file" || | |
| 10192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 10193 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
| 10194 X"$ac_file" : 'X\(//\)$' \| \ | |
| 10195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
| 10196 printf "%s\n" X"$ac_file" | | |
| 10197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 10198 s//\1/ | |
| 10199 q | |
| 10200 } | |
| 10201 /^X\(\/\/\)[^/].*/{ | |
| 10202 s//\1/ | |
| 10203 q | |
| 10204 } | |
| 10205 /^X\(\/\/\)$/{ | |
| 10206 s//\1/ | |
| 10207 q | |
| 10208 } | |
| 10209 /^X\(\/\).*/{ | |
| 10210 s//\1/ | |
| 10211 q | |
| 10212 } | |
| 10213 s/.*/./; q'` | |
| 10214 as_dir="$ac_dir"; as_fn_mkdir_p | |
| 10215 ac_builddir=. | |
| 10216 | |
| 10217 case "$ac_dir" in | |
| 10218 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 10219 *) | |
| 10220 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
| 10221 # A ".." for each directory in $ac_dir_suffix. | |
| 10222 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
| 10223 case $ac_top_builddir_sub in | |
| 10224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 10225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
| 10226 esac ;; | |
| 10227 esac | |
| 10228 ac_abs_top_builddir=$ac_pwd | |
| 10229 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
| 10230 # for backward compatibility: | |
| 10231 ac_top_builddir=$ac_top_build_prefix | |
| 10232 | |
| 10233 case $srcdir in | |
| 10234 .) # We are building in place. | |
| 10235 ac_srcdir=. | |
| 10236 ac_top_srcdir=$ac_top_builddir_sub | |
| 10237 ac_abs_top_srcdir=$ac_pwd ;; | |
| 10238 [\\/]* | ?:[\\/]* ) # Absolute name. | |
| 10239 ac_srcdir=$srcdir$ac_dir_suffix; | |
| 10240 ac_top_srcdir=$srcdir | |
| 10241 ac_abs_top_srcdir=$srcdir ;; | |
| 10242 *) # Relative name. | |
| 10243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
| 10244 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
| 10245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
| 10246 esac | |
| 10247 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
| 10248 | |
| 10249 | |
| 10250 case $ac_mode in | |
| 10251 :F) | |
| 10252 # | |
| 10253 # CONFIG_FILE | |
| 10254 # | |
| 10255 | |
| 10256 _ACEOF | |
| 10257 | |
| 10258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 10259 # If the template does not know about datarootdir, expand it. | |
| 10260 # FIXME: This hack should be removed a few years after 2.60. | |
| 10261 ac_datarootdir_hack=; ac_datarootdir_seen= | |
| 10262 ac_sed_dataroot=' | |
| 10263 /datarootdir/ { | |
| 10264 p | |
| 10265 q | |
| 10266 } | |
| 10267 /@datadir@/p | |
| 10268 /@docdir@/p | |
| 10269 /@infodir@/p | |
| 10270 /@localedir@/p | |
| 10271 /@mandir@/p' | |
| 10272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
| 10273 *datarootdir*) ac_datarootdir_seen=yes;; | |
| 10274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
| 10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
| 10276 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
| 10277 _ACEOF | |
| 10278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 10279 ac_datarootdir_hack=' | |
| 10280 s&@datadir@&$datadir&g | |
| 10281 s&@docdir@&$docdir&g | |
| 10282 s&@infodir@&$infodir&g | |
| 10283 s&@localedir@&$localedir&g | |
| 10284 s&@mandir@&$mandir&g | |
| 10285 s&\\\${datarootdir}&$datarootdir&g' ;; | |
| 10286 esac | |
| 10287 _ACEOF | |
| 10288 | |
| 10289 # Neutralize VPATH when '$srcdir' = '.'. | |
| 10290 # Shell code in configure.ac might set extrasub. | |
| 10291 # FIXME: do we really want to maintain this feature? | |
| 10292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 10293 ac_sed_extra="$ac_vpsub | |
| 10294 $extrasub | |
| 10295 _ACEOF | |
| 10296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 10297 :t | |
| 10298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
| 10299 s|@configure_input@|$ac_sed_conf_input|;t t | |
| 10300 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
| 10301 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
| 10302 s&@srcdir@&$ac_srcdir&;t t | |
| 10303 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
| 10304 s&@top_srcdir@&$ac_top_srcdir&;t t | |
| 10305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
| 10306 s&@builddir@&$ac_builddir&;t t | |
| 10307 s&@abs_builddir@&$ac_abs_builddir&;t t | |
| 10308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
| 10309 $ac_datarootdir_hack | |
| 10310 " | |
| 10311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
| 10312 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
| 10313 | |
| 10314 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
| 10315 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
| 10316 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
| 10317 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
| 10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' | |
| 10319 which seems to be undefined. Please make sure it is defined" >&5 | |
| 10320 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' | |
| 10321 which seems to be undefined. Please make sure it is defined" >&2;} | |
| 10322 | |
| 10323 rm -f "$ac_tmp/stdin" | |
| 10324 case $ac_file in | |
| 10325 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
| 10326 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
| 10327 esac \ | |
| 10328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
| 10329 ;; | |
| 10330 | |
| 10331 | |
| 10332 | |
| 10333 esac | |
| 10334 | |
| 10335 done # for ac_tag | |
| 10336 | |
| 10337 | |
| 10338 as_fn_exit 0 | |
| 10339 _ACEOF | |
| 10340 ac_clean_files=$ac_clean_files_save | |
| 10341 | |
| 10342 test $ac_write_fail = 0 || | |
| 10343 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
| 10344 | |
| 10345 | |
| 10346 # configure is writing to config.log, and then calls config.status. | |
| 10347 # config.status does its own redirection, appending to config.log. | |
| 10348 # Unfortunately, on DOS this fails, as config.log is still kept open | |
| 10349 # by configure, so config.status won't be able to write to it; its | |
| 10350 # output is simply discarded. So we exec the FD to /dev/null, | |
| 10351 # effectively closing config.log, so it can be properly (re)opened and | |
| 10352 # appended to by config.status. When coming back to configure, we | |
| 10353 # need to make the FD available again. | |
| 10354 if test "$no_create" != yes; then | |
| 10355 ac_cs_success=: | |
| 10356 ac_config_status_args= | |
| 10357 test "$silent" = yes && | |
| 10358 ac_config_status_args="$ac_config_status_args --quiet" | |
| 10359 exec 5>/dev/null | |
| 10360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
| 10361 exec 5>>config.log | |
| 10362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
| 10363 # would make configure fail if this is the last instruction. | |
| 10364 $ac_cs_success || as_fn_exit 1 | |
| 10365 fi | |
| 10366 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
| 10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
| 10368 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
| 10369 fi | |
| 10370 | |
| 10371 |
