| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.72 for Web2C 2026. |
| 4 | # |
| 5 | # Report bugs to <[email protected]>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
| 9 | # Inc. |
| 10 | # |
| 11 | # |
| 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
| 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
| 17 | |
| 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 21 | then : |
| 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | setopt NO_GLOB_SUBST |
| 28 | else case e in #( |
| 29 | e) case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
| 34 | esac ;; |
| 35 | esac |
| 36 | fi |
| 37 | |
| 38 | |
| 39 | |
| 40 | # Reset variables that may have inherited troublesome values from |
| 41 | # the environment. |
| 42 | |
| 43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 45 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 46 | # Quoting is to prevent editors from complaining about space-tab. |
| 47 | as_nl=' |
| 48 | ' |
| 49 | export as_nl |
| 50 | IFS=" "" $as_nl" |
| 51 | |
| 52 | PS1='$ ' |
| 53 | PS2='> ' |
| 54 | PS4='+ ' |
| 55 | |
| 56 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 57 | LC_ALL=C |
| 58 | export LC_ALL |
| 59 | LANGUAGE=C |
| 60 | export LANGUAGE |
| 61 | |
| 62 | # We cannot yet rely on "unset" to work, but we need these variables |
| 63 | # to be unset--not just set to an empty or harmless value--now, to |
| 64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 65 | # also avoids known problems related to "unset" and subshell syntax |
| 66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 68 | do eval test \${$as_var+y} \ |
| 69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 70 | done |
| 71 | |
| 72 | # Ensure that fds 0, 1, and 2 are open. |
| 73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 76 | |
| 77 | # The user is always right. |
| 78 | if ${PATH_SEPARATOR+false} :; then |
| 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
| 84 | fi |
| 85 | |
| 86 | |
| 87 | # Find who we are. Look in the path if we contain no directory separator. |
| 88 | as_myself= |
| 89 | case $0 in #(( |
| 90 | *[\\/]* ) as_myself=$0 ;; |
| 91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 92 | for as_dir in $PATH |
| 93 | do |
| 94 | IFS=$as_save_IFS |
| 95 | case $as_dir in #((( |
| 96 | '') as_dir=./ ;; |
| 97 | */) ;; |
| 98 | *) as_dir=$as_dir/ ;; |
| 99 | esac |
| 100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | |
| 117 | # Use a proper internal environment variable to ensure we don't fall |
| 118 | # into an infinite loop, continuously re-executing ourselves. |
| 119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 120 | _as_can_reexec=no; export _as_can_reexec; |
| 121 | # We cannot yet assume a decent shell, so we have to provide a |
| 122 | # neutralization value for shells without unset; and this also |
| 123 | # works around shells that cannot unset nonexistent variables. |
| 124 | # Preserve -v and -x to the replacement shell. |
| 125 | BASH_ENV=/dev/null |
| 126 | ENV=/dev/null |
| 127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 128 | case $- in # (((( |
| 129 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 130 | *v* ) as_opts=-v ;; |
| 131 | *x* ) as_opts=-x ;; |
| 132 | * ) as_opts= ;; |
| 133 | esac |
| 134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 135 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 136 | # out after a failed 'exec'. |
| 137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 138 | exit 255 |
| 139 | fi |
| 140 | # We don't want this to propagate to other subprocesses. |
| 141 | { _as_can_reexec=; unset _as_can_reexec;} |
| 142 | if test "x$CONFIG_SHELL" = x; then |
| 143 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 144 | then : |
| 145 | emulate sh |
| 146 | NULLCMD=: |
| 147 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 148 | # is contrary to our usage. Disable this feature. |
| 149 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 150 | setopt NO_GLOB_SUBST |
| 151 | else case e in #( |
| 152 | e) case \`(set -o) 2>/dev/null\` in #( |
| 153 | *posix*) : |
| 154 | set -o posix ;; #( |
| 155 | *) : |
| 156 | ;; |
| 157 | esac ;; |
| 158 | esac |
| 159 | fi |
| 160 | " |
| 161 | as_required="as_fn_return () { (exit \$1); } |
| 162 | as_fn_success () { as_fn_return 0; } |
| 163 | as_fn_failure () { as_fn_return 1; } |
| 164 | as_fn_ret_success () { return 0; } |
| 165 | as_fn_ret_failure () { return 1; } |
| 166 | |
| 167 | exitcode=0 |
| 168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 173 | then : |
| 174 | |
| 175 | else case e in #( |
| 176 | e) exitcode=1; echo positional parameters were not saved. ;; |
| 177 | esac |
| 178 | fi |
| 179 | test x\$exitcode = x0 || exit 1 |
| 180 | blah=\$(echo \$(echo blah)) |
| 181 | test x\"\$blah\" = xblah || exit 1 |
| 182 | test -x / || exit 1" |
| 183 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 184 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 185 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 186 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 187 | |
| 188 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 189 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 190 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 191 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 192 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 193 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 194 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 195 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 196 | if (eval "$as_required") 2>/dev/null |
| 197 | then : |
| 198 | as_have_required=yes |
| 199 | else case e in #( |
| 200 | e) as_have_required=no ;; |
| 201 | esac |
| 202 | fi |
| 203 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 204 | then : |
| 205 | |
| 206 | else case e in #( |
| 207 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 208 | as_found=false |
| 209 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 210 | do |
| 211 | IFS=$as_save_IFS |
| 212 | case $as_dir in #((( |
| 213 | '') as_dir=./ ;; |
| 214 | */) ;; |
| 215 | *) as_dir=$as_dir/ ;; |
| 216 | esac |
| 217 | as_found=: |
| 218 | case $as_dir in #( |
| 219 | /*) |
| 220 | for as_base in sh bash ksh sh5; do |
| 221 | # Try only shells that exist, to save several forks. |
| 222 | as_shell=$as_dir$as_base |
| 223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 225 | then : |
| 226 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 227 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 228 | then : |
| 229 | break 2 |
| 230 | fi |
| 231 | fi |
| 232 | done;; |
| 233 | esac |
| 234 | as_found=false |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | if $as_found |
| 238 | then : |
| 239 | |
| 240 | else case e in #( |
| 241 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 243 | then : |
| 244 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 245 | fi ;; |
| 246 | esac |
| 247 | fi |
| 248 | |
| 249 | |
| 250 | if test "x$CONFIG_SHELL" != x |
| 251 | then : |
| 252 | export CONFIG_SHELL |
| 253 | # We cannot yet assume a decent shell, so we have to provide a |
| 254 | # neutralization value for shells without unset; and this also |
| 255 | # works around shells that cannot unset nonexistent variables. |
| 256 | # Preserve -v and -x to the replacement shell. |
| 257 | BASH_ENV=/dev/null |
| 258 | ENV=/dev/null |
| 259 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 260 | case $- in # (((( |
| 261 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 262 | *v* ) as_opts=-v ;; |
| 263 | *x* ) as_opts=-x ;; |
| 264 | * ) as_opts= ;; |
| 265 | esac |
| 266 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 267 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 268 | # out after a failed 'exec'. |
| 269 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 270 | exit 255 |
| 271 | fi |
| 272 | |
| 273 | if test x$as_have_required = xno |
| 274 | then : |
| 275 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 276 | printf "%s\n" "$0: the shells that I found on your system." |
| 277 | if test ${ZSH_VERSION+y} ; then |
| 278 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 279 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 280 | else |
| 281 | printf "%s\n" "$0: Please tell [email protected] and [email protected] |
| 282 | $0: about your system, including any error possibly output |
| 283 | $0: before this message. Then install a modern shell, or |
| 284 | $0: manually run the script under such a shell if you do |
| 285 | $0: have one." |
| 286 | fi |
| 287 | exit 1 |
| 288 | fi ;; |
| 289 | esac |
| 290 | fi |
| 291 | fi |
| 292 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 293 | export SHELL |
| 294 | # Unset more variables known to interfere with behavior of common tools. |
| 295 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 296 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 297 | |
| 298 | ## --------------------- ## |
| 299 | ## M4sh Shell Functions. ## |
| 300 | ## --------------------- ## |
| 301 | # as_fn_unset VAR |
| 302 | # --------------- |
| 303 | # Portably unset VAR. |
| 304 | as_fn_unset () |
| 305 | { |
| 306 | { eval $1=; unset $1;} |
| 307 | } |
| 308 | as_unset=as_fn_unset |
| 309 | |
| 310 | |
| 311 | # as_fn_set_status STATUS |
| 312 | # ----------------------- |
| 313 | # Set $? to STATUS, without forking. |
| 314 | as_fn_set_status () |
| 315 | { |
| 316 | return $1 |
| 317 | } # as_fn_set_status |
| 318 | |
| 319 | # as_fn_exit STATUS |
| 320 | # ----------------- |
| 321 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 322 | as_fn_exit () |
| 323 | { |
| 324 | set +e |
| 325 | as_fn_set_status $1 |
| 326 | exit $1 |
| 327 | } # as_fn_exit |
| 328 | |
| 329 | # as_fn_mkdir_p |
| 330 | # ------------- |
| 331 | # Create "$as_dir" as a directory, including parents if necessary. |
| 332 | as_fn_mkdir_p () |
| 333 | { |
| 334 | |
| 335 | case $as_dir in #( |
| 336 | -*) as_dir=./$as_dir;; |
| 337 | esac |
| 338 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 339 | as_dirs= |
| 340 | while :; do |
| 341 | case $as_dir in #( |
| 342 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 343 | *) as_qdir=$as_dir;; |
| 344 | esac |
| 345 | as_dirs="'$as_qdir' $as_dirs" |
| 346 | as_dir=`$as_dirname -- "$as_dir" || |
| 347 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 348 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 349 | X"$as_dir" : 'X\(//\)$' \| \ |
| 350 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 351 | printf "%s\n" X"$as_dir" | |
| 352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 353 | s//\1/ |
| 354 | q |
| 355 | } |
| 356 | /^X\(\/\/\)[^/].*/{ |
| 357 | s//\1/ |
| 358 | q |
| 359 | } |
| 360 | /^X\(\/\/\)$/{ |
| 361 | s//\1/ |
| 362 | q |
| 363 | } |
| 364 | /^X\(\/\).*/{ |
| 365 | s//\1/ |
| 366 | q |
| 367 | } |
| 368 | s/.*/./; q'` |
| 369 | test -d "$as_dir" && break |
| 370 | done |
| 371 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 372 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 373 | |
| 374 | |
| 375 | } # as_fn_mkdir_p |
| 376 | |
| 377 | # as_fn_executable_p FILE |
| 378 | # ----------------------- |
| 379 | # Test if FILE is an executable regular file. |
| 380 | as_fn_executable_p () |
| 381 | { |
| 382 | test -f "$1" && test -x "$1" |
| 383 | } # as_fn_executable_p |
| 384 | # as_fn_append VAR VALUE |
| 385 | # ---------------------- |
| 386 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 387 | # advantage of any shell optimizations that allow amortized linear growth over |
| 388 | # repeated appends, instead of the typical quadratic growth present in naive |
| 389 | # implementations. |
| 390 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 391 | then : |
| 392 | eval 'as_fn_append () |
| 393 | { |
| 394 | eval $1+=\$2 |
| 395 | }' |
| 396 | else case e in #( |
| 397 | e) as_fn_append () |
| 398 | { |
| 399 | eval $1=\$$1\$2 |
| 400 | } ;; |
| 401 | esac |
| 402 | fi # as_fn_append |
| 403 | |
| 404 | # as_fn_arith ARG... |
| 405 | # ------------------ |
| 406 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 407 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 408 | # must be portable across $(()) and expr. |
| 409 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 410 | then : |
| 411 | eval 'as_fn_arith () |
| 412 | { |
| 413 | as_val=$(( $* )) |
| 414 | }' |
| 415 | else case e in #( |
| 416 | e) as_fn_arith () |
| 417 | { |
| 418 | as_val=`expr "$@" || test $? -eq 1` |
| 419 | } ;; |
| 420 | esac |
| 421 | fi # as_fn_arith |
| 422 | |
| 423 | |
| 424 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 425 | # ---------------------------------------- |
| 426 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 427 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 428 | # script with STATUS, using 1 if that was 0. |
| 429 | as_fn_error () |
| 430 | { |
| 431 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 432 | if test "$4"; then |
| 433 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 435 | fi |
| 436 | printf "%s\n" "$as_me: error: $2" >&2 |
| 437 | as_fn_exit $as_status |
| 438 | } # as_fn_error |
| 439 | |
| 440 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 441 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 442 | as_expr=expr |
| 443 | else |
| 444 | as_expr=false |
| 445 | fi |
| 446 | |
| 447 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 448 | as_basename=basename |
| 449 | else |
| 450 | as_basename=false |
| 451 | fi |
| 452 | |
| 453 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 454 | as_dirname=dirname |
| 455 | else |
| 456 | as_dirname=false |
| 457 | fi |
| 458 | |
| 459 | as_me=`$as_basename -- "$0" || |
| 460 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 461 | X"$0" : 'X\(//\)$' \| \ |
| 462 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 463 | printf "%s\n" X/"$0" | |
| 464 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 465 | s//\1/ |
| 466 | q |
| 467 | } |
| 468 | /^X\/\(\/\/\)$/{ |
| 469 | s//\1/ |
| 470 | q |
| 471 | } |
| 472 | /^X\/\(\/\).*/{ |
| 473 | s//\1/ |
| 474 | q |
| 475 | } |
| 476 | s/.*/./; q'` |
| 477 | |
| 478 | # Avoid depending upon Character Ranges. |
| 479 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 480 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 481 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 482 | as_cr_digits='0123456789' |
| 483 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 484 | |
| 485 | |
| 486 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 487 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 488 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 489 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 490 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 491 | sed -n ' |
| 492 | p |
| 493 | /[$]LINENO/= |
| 494 | ' <$as_myself | |
| 495 | sed ' |
| 496 | t clear |
| 497 | :clear |
| 498 | s/[$]LINENO.*/&-/ |
| 499 | t lineno |
| 500 | b |
| 501 | :lineno |
| 502 | N |
| 503 | :loop |
| 504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 505 | t loop |
| 506 | s/-\n.*// |
| 507 | ' >$as_me.lineno && |
| 508 | chmod +x "$as_me.lineno" || |
| 509 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 510 | |
| 511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 512 | # already done that, so ensure we don't try to do so again and fall |
| 513 | # in an infinite loop. This has already happened in practice. |
| 514 | _as_can_reexec=no; export _as_can_reexec |
| 515 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 516 | # (the dirname of $[0] is not the place where we might find the |
| 517 | # original and so on. Autoconf is especially sensitive to this). |
| 518 | . "./$as_me.lineno" |
| 519 | # Exit status is that of the last command. |
| 520 | exit |
| 521 | } |
| 522 | |
| 523 | |
| 524 | # Determine whether it's possible to make 'echo' print without a newline. |
| 525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 526 | # for compatibility with existing Makefiles. |
| 527 | ECHO_C= ECHO_N= ECHO_T= |
| 528 | case `echo -n x` in #((((( |
| 529 | -n*) |
| 530 | case `echo 'xy\c'` in |
| 531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 532 | xy) ECHO_C='\c';; |
| 533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 534 | ECHO_T=' ';; |
| 535 | esac;; |
| 536 | *) |
| 537 | ECHO_N='-n';; |
| 538 | esac |
| 539 | |
| 540 | # For backward compatibility with old third-party macros, we provide |
| 541 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 543 | as_echo='printf %s\n' |
| 544 | as_echo_n='printf %s' |
| 545 | |
| 546 | rm -f conf$$ conf$$.exe conf$$.file |
| 547 | if test -d conf$$.dir; then |
| 548 | rm -f conf$$.dir/conf$$.file |
| 549 | else |
| 550 | rm -f conf$$.dir |
| 551 | mkdir conf$$.dir 2>/dev/null |
| 552 | fi |
| 553 | if (echo >conf$$.file) 2>/dev/null; then |
| 554 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 555 | as_ln_s='ln -s' |
| 556 | # ... but there are two gotchas: |
| 557 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 558 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 559 | # In both cases, we have to default to 'cp -pR'. |
| 560 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 561 | as_ln_s='cp -pR' |
| 562 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 563 | as_ln_s=ln |
| 564 | else |
| 565 | as_ln_s='cp -pR' |
| 566 | fi |
| 567 | else |
| 568 | as_ln_s='cp -pR' |
| 569 | fi |
| 570 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 571 | rmdir conf$$.dir 2>/dev/null |
| 572 | |
| 573 | if mkdir -p . 2>/dev/null; then |
| 574 | as_mkdir_p='mkdir -p "$as_dir"' |
| 575 | else |
| 576 | test -d ./-p && rmdir ./-p |
| 577 | as_mkdir_p=false |
| 578 | fi |
| 579 | |
| 580 | as_test_x='test -x' |
| 581 | as_executable_p=as_fn_executable_p |
| 582 | |
| 583 | # Sed expression to map a string onto a valid CPP name. |
| 584 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 585 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 586 | |
| 587 | # Sed expression to map a string onto a valid variable name. |
| 588 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 589 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 590 | |
| 591 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 592 | |
| 593 | |
| 594 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 595 | exec 6>&1 |
| 596 | |
| 597 | # Name of the host. |
| 598 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 599 | # so uname gets run too. |
| 600 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 601 | |
| 602 | # |
| 603 | # Initializations. |
| 604 | # |
| 605 | ac_default_prefix=/usr/local |
| 606 | ac_clean_files= |
| 607 | ac_config_libobj_dir=. |
| 608 | LIBOBJS= |
| 609 | cross_compiling=no |
| 610 | subdirs= |
| 611 | MFLAGS= |
| 612 | MAKEFLAGS= |
| 613 | |
| 614 | # Identity of this package. |
| 615 | PACKAGE_NAME='Web2C' |
| 616 | PACKAGE_TARNAME='web2c' |
| 617 | PACKAGE_VERSION='2026' |
| 618 | PACKAGE_STRING='Web2C 2026' |
| 619 | PACKAGE_BUGREPORT='[email protected]' |
| 620 | PACKAGE_URL='' |
| 621 | |
| 622 | ac_unique_file="cpascal.h" |
| 623 | # Factoring default headers for most tests. |
| 624 | ac_includes_default="\ |
| 625 | #include <stddef.h> |
| 626 | #ifdef HAVE_STDIO_H |
| 627 | # include <stdio.h> |
| 628 | #endif |
| 629 | #ifdef HAVE_STDLIB_H |
| 630 | # include <stdlib.h> |
| 631 | #endif |
| 632 | #ifdef HAVE_STRING_H |
| 633 | # include <string.h> |
| 634 | #endif |
| 635 | #ifdef HAVE_INTTYPES_H |
| 636 | # include <inttypes.h> |
| 637 | #endif |
| 638 | #ifdef HAVE_STDINT_H |
| 639 | # include <stdint.h> |
| 640 | #endif |
| 641 | #ifdef HAVE_STRINGS_H |
| 642 | # include <strings.h> |
| 643 | #endif |
| 644 | #ifdef HAVE_SYS_TYPES_H |
| 645 | # include <sys/types.h> |
| 646 | #endif |
| 647 | #ifdef HAVE_SYS_STAT_H |
| 648 | # include <sys/stat.h> |
| 649 | #endif |
| 650 | #ifdef HAVE_UNISTD_H |
| 651 | # include <unistd.h> |
| 652 | #endif" |
| 653 | |
| 654 | ac_header_c_list= |
| 655 | enable_option_checking=no |
| 656 | enable_year2038=no |
| 657 | ac_subst_vars='am__EXEEXT_FALSE |
| 658 | am__EXEEXT_TRUE |
| 659 | LTLIBOBJS |
| 660 | LIBOBJS |
| 661 | subdirs |
| 662 | LIBSYNCTEX |
| 663 | LTLIBSYNCTEX |
| 664 | SYNCTEX_FALSE |
| 665 | SYNCTEX_TRUE |
| 666 | SYNCTEX_LT_VERSINFO |
| 667 | SYNCTEXVERSION |
| 668 | OTANGLE |
| 669 | TIE |
| 670 | CTANGLE |
| 671 | CTANGLEBOOT |
| 672 | TANGLE |
| 673 | TANGLEBOOT |
| 674 | KPATHSEA_PATHS_H |
| 675 | XETEX_MACOSX_FALSE |
| 676 | XETEX_MACOSX_TRUE |
| 677 | FONTCONFIG_LIBS |
| 678 | FONTCONFIG_INCLUDES |
| 679 | ICU_RULE |
| 680 | ICU_DEPEND |
| 681 | ICU_LIBS |
| 682 | ICU_INCLUDES |
| 683 | ICU_CONFIG |
| 684 | HARFBUZZ_RULE |
| 685 | HARFBUZZ_DEPEND |
| 686 | HARFBUZZ_LIBS |
| 687 | HARFBUZZ_INCLUDES |
| 688 | GRAPHITE2_RULE |
| 689 | GRAPHITE2_DEPEND |
| 690 | GRAPHITE2_LIBS |
| 691 | GRAPHITE2_INCLUDES |
| 692 | TECKIT_RULE |
| 693 | TECKIT_DEPEND |
| 694 | TECKIT_LIBS |
| 695 | TECKIT_INCLUDES |
| 696 | ZZIPLIB_RULE |
| 697 | ZZIPLIB_DEPEND |
| 698 | ZZIPLIB_LIBS |
| 699 | ZZIPLIB_INCLUDES |
| 700 | XPDF_RULE |
| 701 | XPDF_DEPEND |
| 702 | XPDF_LIBS |
| 703 | XPDF_INCLUDES |
| 704 | MPFI_RULE |
| 705 | MPFI_DEPEND |
| 706 | MPFI_LIBS |
| 707 | MPFI_INCLUDES |
| 708 | MPFR_RULE |
| 709 | MPFR_DEPEND |
| 710 | MPFR_LIBS |
| 711 | MPFR_INCLUDES |
| 712 | GMP_RULE |
| 713 | GMP_DEPEND |
| 714 | GMP_LIBS |
| 715 | GMP_INCLUDES |
| 716 | POTRACE_RULE |
| 717 | POTRACE_DEPEND |
| 718 | POTRACE_LIBS |
| 719 | POTRACE_INCLUDES |
| 720 | CAIRO_RULE |
| 721 | CAIRO_DEPEND |
| 722 | CAIRO_LIBS |
| 723 | CAIRO_INCLUDES |
| 724 | PIXMAN_RULE |
| 725 | PIXMAN_DEPEND |
| 726 | PIXMAN_LIBS |
| 727 | PIXMAN_INCLUDES |
| 728 | FREETYPE2_RULE |
| 729 | FREETYPE2_DEPEND |
| 730 | FREETYPE2_LIBS |
| 731 | FREETYPE2_INCLUDES |
| 732 | FT2_CONFIG |
| 733 | LIBPNG_RULE |
| 734 | LIBPNG_DEPEND |
| 735 | LIBPNG_LIBS |
| 736 | LIBPNG_INCLUDES |
| 737 | LUAJIT_RULE |
| 738 | LUAJIT_DEPEND |
| 739 | LUAJIT_LIBS |
| 740 | LUAJIT_INCLUDES |
| 741 | LUA52_RULE |
| 742 | LUA52_DEPEND |
| 743 | LUA52_LIBS |
| 744 | LUA52_INCLUDES |
| 745 | LUA53_RULE |
| 746 | LUA53_DEPEND |
| 747 | LUA53_LIBS |
| 748 | LUA53_INCLUDES |
| 749 | ZLIB_RULE |
| 750 | ZLIB_DEPEND |
| 751 | ZLIB_LIBS |
| 752 | ZLIB_INCLUDES |
| 753 | PPLIB_RULE |
| 754 | PPLIB_DEPEND |
| 755 | PPLIB_LIBS |
| 756 | PPLIB_INCLUDES |
| 757 | PTEXENC_RULE |
| 758 | PTEXENC_DEPEND |
| 759 | PTEXENC_LIBS |
| 760 | PTEXENC_INCLUDES |
| 761 | KPATHSEA_RULE |
| 762 | KPATHSEA_DEPEND |
| 763 | KPATHSEA_LIBS |
| 764 | KPATHSEA_INCLUDES |
| 765 | PKG_CONFIG |
| 766 | LEXLIB |
| 767 | LEX_OUTPUT_ROOT |
| 768 | LEX |
| 769 | YFLAGS |
| 770 | YACC |
| 771 | UPWEB_FALSE |
| 772 | UPWEB_TRUE |
| 773 | PWEB_FALSE |
| 774 | PWEB_TRUE |
| 775 | WEB_FALSE |
| 776 | WEB_TRUE |
| 777 | wlibs |
| 778 | x_tool_libs |
| 779 | x_ext_lib |
| 780 | MFXT_FALSE |
| 781 | MFXT_TRUE |
| 782 | X_EXTRA_LIBS |
| 783 | X_LIBS |
| 784 | X_PRE_LIBS |
| 785 | X_CFLAGS |
| 786 | CPP |
| 787 | XMKMF |
| 788 | MFLUAJITN_FALSE |
| 789 | MFLUAJITN_TRUE |
| 790 | MFLUAJIT_FALSE |
| 791 | MFLUAJIT_TRUE |
| 792 | MFLUAN_FALSE |
| 793 | MFLUAN_TRUE |
| 794 | MFLUA_FALSE |
| 795 | MFLUA_TRUE |
| 796 | MFN_FALSE |
| 797 | MFN_TRUE |
| 798 | MF_FALSE |
| 799 | MF_TRUE |
| 800 | OTANGLE_FALSE |
| 801 | OTANGLE_TRUE |
| 802 | XETEX_SYNCTEX_FALSE |
| 803 | XETEX_SYNCTEX_TRUE |
| 804 | XETEX_FALSE |
| 805 | XETEX_TRUE |
| 806 | UPMP_FALSE |
| 807 | UPMP_TRUE |
| 808 | TEXPROF_FALSE |
| 809 | TEXPROF_TRUE |
| 810 | PMP_FALSE |
| 811 | PMP_TRUE |
| 812 | MP_FALSE |
| 813 | MP_TRUE |
| 814 | LUAJITHBTEX_FALSE |
| 815 | LUAJITHBTEX_TRUE |
| 816 | LUAHBTEX_FALSE |
| 817 | LUAHBTEX_TRUE |
| 818 | LUAJITTEX_FALSE |
| 819 | LUAJITTEX_TRUE |
| 820 | LUATEX_FALSE |
| 821 | LUATEX_TRUE |
| 822 | PDFTEX_SYNCTEX_FALSE |
| 823 | PDFTEX_SYNCTEX_TRUE |
| 824 | PDFTEX_FALSE |
| 825 | PDFTEX_TRUE |
| 826 | HITEX_FALSE |
| 827 | HITEX_TRUE |
| 828 | ALEPH_FALSE |
| 829 | ALEPH_TRUE |
| 830 | EUPTEX_SYNCTEX_FALSE |
| 831 | EUPTEX_SYNCTEX_TRUE |
| 832 | EUPTEX_FALSE |
| 833 | EUPTEX_TRUE |
| 834 | UPTEX_FALSE |
| 835 | UPTEX_TRUE |
| 836 | ETEX_SYNCTEX_FALSE |
| 837 | ETEX_SYNCTEX_TRUE |
| 838 | ETEX_FALSE |
| 839 | ETEX_TRUE |
| 840 | TEX_SYNCTEX_FALSE |
| 841 | TEX_SYNCTEX_TRUE |
| 842 | TEX_FALSE |
| 843 | TEX_TRUE |
| 844 | ipc_socketlibs |
| 845 | lua_socketlibs |
| 846 | USE_DLOPEN_FALSE |
| 847 | USE_DLOPEN_TRUE |
| 848 | LUAJIT_LDEXTRA |
| 849 | LUAJIT_DEFINES |
| 850 | LUA52_DEFINES |
| 851 | LUA53_DEFINES |
| 852 | WIN32_CALL_FALSE |
| 853 | WIN32_CALL_TRUE |
| 854 | MINGW32_FALSE |
| 855 | MINGW32_TRUE |
| 856 | WIN32_FALSE |
| 857 | WIN32_TRUE |
| 858 | KPSEWHICH |
| 859 | HAVE_CXX11 |
| 860 | CXXLD |
| 861 | WARNING_OBJCXXFLAGS |
| 862 | am__fastdepOBJCXX_FALSE |
| 863 | am__fastdepOBJCXX_TRUE |
| 864 | OBJCXXDEPMODE |
| 865 | ac_ct_OBJCXX |
| 866 | OBJCXXFLAGS |
| 867 | OBJCXX |
| 868 | CXXCPP |
| 869 | WARNING_CXXFLAGS |
| 870 | am__fastdepCXX_FALSE |
| 871 | am__fastdepCXX_TRUE |
| 872 | CXXDEPMODE |
| 873 | ac_ct_CXX |
| 874 | CXXFLAGS |
| 875 | CXX |
| 876 | cross_FALSE |
| 877 | cross_TRUE |
| 878 | LT_SYS_LIBRARY_PATH |
| 879 | OTOOL64 |
| 880 | OTOOL |
| 881 | LIPO |
| 882 | NMEDIT |
| 883 | DSYMUTIL |
| 884 | MANIFEST_TOOL |
| 885 | RANLIB |
| 886 | FILECMD |
| 887 | LN_S |
| 888 | NM |
| 889 | ac_ct_DUMPBIN |
| 890 | DUMPBIN |
| 891 | LD |
| 892 | FGREP |
| 893 | EGREP |
| 894 | GREP |
| 895 | SED |
| 896 | host_os |
| 897 | host_vendor |
| 898 | host_cpu |
| 899 | host |
| 900 | build_os |
| 901 | build_vendor |
| 902 | build_cpu |
| 903 | build |
| 904 | LIBTOOL |
| 905 | OBJDUMP |
| 906 | DLLTOOL |
| 907 | AS |
| 908 | ac_ct_AR |
| 909 | AR |
| 910 | WARNING_CFLAGS |
| 911 | MAINT |
| 912 | MAINTAINER_MODE_FALSE |
| 913 | MAINTAINER_MODE_TRUE |
| 914 | am__xargs_n |
| 915 | am__rm_f_notfound |
| 916 | AM_BACKSLASH |
| 917 | AM_DEFAULT_VERBOSITY |
| 918 | AM_DEFAULT_V |
| 919 | AM_V |
| 920 | CSCOPE |
| 921 | ETAGS |
| 922 | CTAGS |
| 923 | am__fastdepCC_FALSE |
| 924 | am__fastdepCC_TRUE |
| 925 | CCDEPMODE |
| 926 | am__nodep |
| 927 | AMDEPBACKSLASH |
| 928 | AMDEP_FALSE |
| 929 | AMDEP_TRUE |
| 930 | am__include |
| 931 | DEPDIR |
| 932 | am__untar |
| 933 | am__tar |
| 934 | AMTAR |
| 935 | am__leading_dot |
| 936 | SET_MAKE |
| 937 | AWK |
| 938 | mkdir_p |
| 939 | MKDIR_P |
| 940 | INSTALL_STRIP_PROGRAM |
| 941 | STRIP |
| 942 | install_sh |
| 943 | MAKEINFO |
| 944 | AUTOHEADER |
| 945 | AUTOMAKE |
| 946 | AUTOCONF |
| 947 | ACLOCAL |
| 948 | VERSION |
| 949 | PACKAGE |
| 950 | CYGPATH_W |
| 951 | am__isrc |
| 952 | INSTALL_DATA |
| 953 | INSTALL_SCRIPT |
| 954 | INSTALL_PROGRAM |
| 955 | OBJEXT |
| 956 | EXEEXT |
| 957 | ac_ct_CC |
| 958 | CPPFLAGS |
| 959 | LDFLAGS |
| 960 | CFLAGS |
| 961 | CC |
| 962 | WEB2CVERSION |
| 963 | target_alias |
| 964 | host_alias |
| 965 | build_alias |
| 966 | LIBS |
| 967 | ECHO_T |
| 968 | ECHO_N |
| 969 | ECHO_C |
| 970 | DEFS |
| 971 | mandir |
| 972 | localedir |
| 973 | libdir |
| 974 | psdir |
| 975 | pdfdir |
| 976 | dvidir |
| 977 | htmldir |
| 978 | infodir |
| 979 | docdir |
| 980 | oldincludedir |
| 981 | includedir |
| 982 | runstatedir |
| 983 | localstatedir |
| 984 | sharedstatedir |
| 985 | sysconfdir |
| 986 | datadir |
| 987 | datarootdir |
| 988 | libexecdir |
| 989 | sbindir |
| 990 | bindir |
| 991 | program_transform_name |
| 992 | prefix |
| 993 | exec_prefix |
| 994 | PACKAGE_URL |
| 995 | PACKAGE_BUGREPORT |
| 996 | PACKAGE_STRING |
| 997 | PACKAGE_VERSION |
| 998 | PACKAGE_TARNAME |
| 999 | PACKAGE_NAME |
| 1000 | PATH_SEPARATOR |
| 1001 | SHELL |
| 1002 | am__quote' |
| 1003 | ac_subst_files='' |
| 1004 | ac_user_opts=' |
| 1005 | enable_option_checking |
| 1006 | enable_dependency_tracking |
| 1007 | enable_silent_rules |
| 1008 | enable_maintainer_mode |
| 1009 | enable_compiler_warnings |
| 1010 | enable_shared |
| 1011 | enable_static |
| 1012 | enable_pic |
| 1013 | with_pic |
| 1014 | enable_fast_install |
| 1015 | enable_aix_soname |
| 1016 | with_aix_soname |
| 1017 | with_gnu_ld |
| 1018 | with_sysroot |
| 1019 | enable_libtool_lock |
| 1020 | enable_largefile |
| 1021 | enable_cxx_runtime_hack |
| 1022 | enable_libtool_hack |
| 1023 | with_banner_add |
| 1024 | with_editor |
| 1025 | enable_auto_core |
| 1026 | enable_dump_share |
| 1027 | enable_ipc |
| 1028 | enable_tex |
| 1029 | enable_tex_synctex |
| 1030 | enable_etex |
| 1031 | enable_etex_synctex |
| 1032 | enable_uptex |
| 1033 | enable_euptex |
| 1034 | enable_euptex_synctex |
| 1035 | enable_aleph |
| 1036 | enable_hitex |
| 1037 | enable_pdftex |
| 1038 | enable_pdftex_synctex |
| 1039 | enable_luatex |
| 1040 | enable_luajittex |
| 1041 | enable_luahbtex |
| 1042 | enable_luajithbtex |
| 1043 | enable_mp |
| 1044 | enable_pmp |
| 1045 | enable_texprof |
| 1046 | enable_upmp |
| 1047 | enable_xetex |
| 1048 | enable_xetex_synctex |
| 1049 | enable_mf |
| 1050 | enable_mf_nowin |
| 1051 | enable_mflua |
| 1052 | enable_mflua_nowin |
| 1053 | enable_mfluajit |
| 1054 | enable_mfluajit_nowin |
| 1055 | with_mf_x_toolkit |
| 1056 | enable_epsfwin |
| 1057 | enable_hp2627win |
| 1058 | enable_mftalkwin |
| 1059 | enable_nextwin |
| 1060 | enable_regiswin |
| 1061 | enable_suntoolswin |
| 1062 | enable_tektronixwin |
| 1063 | enable_unitermwin |
| 1064 | enable_web_progs |
| 1065 | enable_synctex |
| 1066 | enable_missing |
| 1067 | with_x |
| 1068 | with_system_kpathsea |
| 1069 | with_system_ptexenc |
| 1070 | with_system_zlib |
| 1071 | with_zlib_includes |
| 1072 | with_zlib_libdir |
| 1073 | with_system_luajit |
| 1074 | with_system_libpng |
| 1075 | with_system_freetype2 |
| 1076 | with_system_pixman |
| 1077 | with_system_cairo |
| 1078 | with_system_potrace |
| 1079 | with_potrace_includes |
| 1080 | with_potrace_libdir |
| 1081 | with_system_gmp |
| 1082 | with_gmp_includes |
| 1083 | with_gmp_libdir |
| 1084 | with_system_mpfr |
| 1085 | with_mpfr_includes |
| 1086 | with_mpfr_libdir |
| 1087 | with_system_mpfi |
| 1088 | with_mpfi_includes |
| 1089 | with_mpfi_libdir |
| 1090 | with_system_zziplib |
| 1091 | with_system_teckit |
| 1092 | with_system_graphite2 |
| 1093 | with_system_harfbuzz |
| 1094 | with_system_icu |
| 1095 | with_fontconfig_includes |
| 1096 | with_fontconfig_libdir |
| 1097 | enable_year2038 |
| 1098 | ' |
| 1099 | ac_precious_vars='build_alias |
| 1100 | host_alias |
| 1101 | target_alias |
| 1102 | CC |
| 1103 | CFLAGS |
| 1104 | LDFLAGS |
| 1105 | LIBS |
| 1106 | CPPFLAGS |
| 1107 | LT_SYS_LIBRARY_PATH |
| 1108 | CXX |
| 1109 | CXXFLAGS |
| 1110 | CCC |
| 1111 | CXXCPP |
| 1112 | OBJCXX |
| 1113 | OBJCXXFLAGS |
| 1114 | XMKMF |
| 1115 | CPP |
| 1116 | YACC |
| 1117 | YFLAGS' |
| 1118 | ac_subdirs_all='web2c' |
| 1119 | |
| 1120 | # Initialize some variables set by options. |
| 1121 | ac_init_help= |
| 1122 | ac_init_version=false |
| 1123 | ac_unrecognized_opts= |
| 1124 | ac_unrecognized_sep= |
| 1125 | # The variables have the same names as the options, with |
| 1126 | # dashes changed to underlines. |
| 1127 | cache_file=/dev/null |
| 1128 | exec_prefix=NONE |
| 1129 | no_create= |
| 1130 | no_recursion= |
| 1131 | prefix=NONE |
| 1132 | program_prefix=NONE |
| 1133 | program_suffix=NONE |
| 1134 | program_transform_name=s,x,x, |
| 1135 | silent= |
| 1136 | site= |
| 1137 | srcdir= |
| 1138 | verbose= |
| 1139 | x_includes=NONE |
| 1140 | x_libraries=NONE |
| 1141 | |
| 1142 | # Installation directory options. |
| 1143 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1144 | # and all the variables that are supposed to be based on exec_prefix |
| 1145 | # by default will actually change. |
| 1146 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1147 | # (The list follows the same order as the GNU Coding Standards.) |
| 1148 | bindir='${exec_prefix}/bin' |
| 1149 | sbindir='${exec_prefix}/sbin' |
| 1150 | libexecdir='${exec_prefix}/libexec' |
| 1151 | datarootdir='${prefix}/share' |
| 1152 | datadir='${datarootdir}' |
| 1153 | sysconfdir='${prefix}/etc' |
| 1154 | sharedstatedir='${prefix}/com' |
| 1155 | localstatedir='${prefix}/var' |
| 1156 | runstatedir='${localstatedir}/run' |
| 1157 | includedir='${prefix}/include' |
| 1158 | oldincludedir='/usr/include' |
| 1159 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1160 | infodir='${datarootdir}/info' |
| 1161 | htmldir='${docdir}' |
| 1162 | dvidir='${docdir}' |
| 1163 | pdfdir='${docdir}' |
| 1164 | psdir='${docdir}' |
| 1165 | libdir='${exec_prefix}/lib' |
| 1166 | localedir='${datarootdir}/locale' |
| 1167 | mandir='${datarootdir}/man' |
| 1168 | |
| 1169 | ac_prev= |
| 1170 | ac_dashdash= |
| 1171 | for ac_option |
| 1172 | do |
| 1173 | # If the previous option needs an argument, assign it. |
| 1174 | if test -n "$ac_prev"; then |
| 1175 | eval $ac_prev=\$ac_option |
| 1176 | ac_prev= |
| 1177 | continue |
| 1178 | fi |
| 1179 | |
| 1180 | case $ac_option in |
| 1181 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1182 | *=) ac_optarg= ;; |
| 1183 | *) ac_optarg=yes ;; |
| 1184 | esac |
| 1185 | |
| 1186 | case $ac_dashdash$ac_option in |
| 1187 | --) |
| 1188 | ac_dashdash=yes ;; |
| 1189 | |
| 1190 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1191 | ac_prev=bindir ;; |
| 1192 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1193 | bindir=$ac_optarg ;; |
| 1194 | |
| 1195 | -build | --build | --buil | --bui | --bu) |
| 1196 | ac_prev=build_alias ;; |
| 1197 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1198 | build_alias=$ac_optarg ;; |
| 1199 | |
| 1200 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1201 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1202 | ac_prev=cache_file ;; |
| 1203 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1204 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1205 | cache_file=$ac_optarg ;; |
| 1206 | |
| 1207 | --config-cache | -C) |
| 1208 | cache_file=config.cache ;; |
| 1209 | |
| 1210 | -datadir | --datadir | --datadi | --datad) |
| 1211 | ac_prev=datadir ;; |
| 1212 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1213 | datadir=$ac_optarg ;; |
| 1214 | |
| 1215 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1216 | | --dataroo | --dataro | --datar) |
| 1217 | ac_prev=datarootdir ;; |
| 1218 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1219 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1220 | datarootdir=$ac_optarg ;; |
| 1221 | |
| 1222 | -disable-* | --disable-*) |
| 1223 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1224 | # Reject names that are not valid shell variable names. |
| 1225 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1226 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 1227 | ac_useropt_orig=$ac_useropt |
| 1228 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1229 | case $ac_user_opts in |
| 1230 | *" |
| 1231 | "enable_$ac_useropt" |
| 1232 | "*) ;; |
| 1233 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1234 | ac_unrecognized_sep=', ';; |
| 1235 | esac |
| 1236 | eval enable_$ac_useropt=no ;; |
| 1237 | |
| 1238 | -docdir | --docdir | --docdi | --doc | --do) |
| 1239 | ac_prev=docdir ;; |
| 1240 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1241 | docdir=$ac_optarg ;; |
| 1242 | |
| 1243 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1244 | ac_prev=dvidir ;; |
| 1245 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1246 | dvidir=$ac_optarg ;; |
| 1247 | |
| 1248 | -enable-* | --enable-*) |
| 1249 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1250 | # Reject names that are not valid shell variable names. |
| 1251 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1252 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 1253 | ac_useropt_orig=$ac_useropt |
| 1254 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1255 | case $ac_user_opts in |
| 1256 | *" |
| 1257 | "enable_$ac_useropt" |
| 1258 | "*) ;; |
| 1259 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1260 | ac_unrecognized_sep=', ';; |
| 1261 | esac |
| 1262 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1263 | |
| 1264 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1265 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1266 | | --exec | --exe | --ex) |
| 1267 | ac_prev=exec_prefix ;; |
| 1268 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1269 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1270 | | --exec=* | --exe=* | --ex=*) |
| 1271 | exec_prefix=$ac_optarg ;; |
| 1272 | |
| 1273 | -gas | --gas | --ga | --g) |
| 1274 | # Obsolete; use --with-gas. |
| 1275 | with_gas=yes ;; |
| 1276 | |
| 1277 | -help | --help | --hel | --he | -h) |
| 1278 | ac_init_help=long ;; |
| 1279 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1280 | ac_init_help=recursive ;; |
| 1281 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1282 | ac_init_help=short ;; |
| 1283 | |
| 1284 | -host | --host | --hos | --ho) |
| 1285 | ac_prev=host_alias ;; |
| 1286 | -host=* | --host=* | --hos=* | --ho=*) |
| 1287 | host_alias=$ac_optarg ;; |
| 1288 | |
| 1289 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1290 | ac_prev=htmldir ;; |
| 1291 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1292 | | --ht=*) |
| 1293 | htmldir=$ac_optarg ;; |
| 1294 | |
| 1295 | -includedir | --includedir | --includedi | --included | --include \ |
| 1296 | | --includ | --inclu | --incl | --inc) |
| 1297 | ac_prev=includedir ;; |
| 1298 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1299 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1300 | includedir=$ac_optarg ;; |
| 1301 | |
| 1302 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1303 | ac_prev=infodir ;; |
| 1304 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1305 | infodir=$ac_optarg ;; |
| 1306 | |
| 1307 | -libdir | --libdir | --libdi | --libd) |
| 1308 | ac_prev=libdir ;; |
| 1309 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1310 | libdir=$ac_optarg ;; |
| 1311 | |
| 1312 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1313 | | --libexe | --libex | --libe) |
| 1314 | ac_prev=libexecdir ;; |
| 1315 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1316 | | --libexe=* | --libex=* | --libe=*) |
| 1317 | libexecdir=$ac_optarg ;; |
| 1318 | |
| 1319 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1320 | ac_prev=localedir ;; |
| 1321 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1322 | localedir=$ac_optarg ;; |
| 1323 | |
| 1324 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1325 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1326 | ac_prev=localstatedir ;; |
| 1327 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1328 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1329 | localstatedir=$ac_optarg ;; |
| 1330 | |
| 1331 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1332 | ac_prev=mandir ;; |
| 1333 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1334 | mandir=$ac_optarg ;; |
| 1335 | |
| 1336 | -nfp | --nfp | --nf) |
| 1337 | # Obsolete; use --without-fp. |
| 1338 | with_fp=no ;; |
| 1339 | |
| 1340 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1341 | | --no-cr | --no-c | -n) |
| 1342 | no_create=yes ;; |
| 1343 | |
| 1344 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1345 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1346 | no_recursion=yes ;; |
| 1347 | |
| 1348 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1349 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1350 | | --oldin | --oldi | --old | --ol | --o) |
| 1351 | ac_prev=oldincludedir ;; |
| 1352 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1353 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1354 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1355 | oldincludedir=$ac_optarg ;; |
| 1356 | |
| 1357 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1358 | ac_prev=prefix ;; |
| 1359 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1360 | prefix=$ac_optarg ;; |
| 1361 | |
| 1362 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1363 | | --program-pre | --program-pr | --program-p) |
| 1364 | ac_prev=program_prefix ;; |
| 1365 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1366 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1367 | program_prefix=$ac_optarg ;; |
| 1368 | |
| 1369 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1370 | | --program-suf | --program-su | --program-s) |
| 1371 | ac_prev=program_suffix ;; |
| 1372 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1373 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1374 | program_suffix=$ac_optarg ;; |
| 1375 | |
| 1376 | -program-transform-name | --program-transform-name \ |
| 1377 | | --program-transform-nam | --program-transform-na \ |
| 1378 | | --program-transform-n | --program-transform- \ |
| 1379 | | --program-transform | --program-transfor \ |
| 1380 | | --program-transfo | --program-transf \ |
| 1381 | | --program-trans | --program-tran \ |
| 1382 | | --progr-tra | --program-tr | --program-t) |
| 1383 | ac_prev=program_transform_name ;; |
| 1384 | -program-transform-name=* | --program-transform-name=* \ |
| 1385 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1386 | | --program-transform-n=* | --program-transform-=* \ |
| 1387 | | --program-transform=* | --program-transfor=* \ |
| 1388 | | --program-transfo=* | --program-transf=* \ |
| 1389 | | --program-trans=* | --program-tran=* \ |
| 1390 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1391 | program_transform_name=$ac_optarg ;; |
| 1392 | |
| 1393 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1394 | ac_prev=pdfdir ;; |
| 1395 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1396 | pdfdir=$ac_optarg ;; |
| 1397 | |
| 1398 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1399 | ac_prev=psdir ;; |
| 1400 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1401 | psdir=$ac_optarg ;; |
| 1402 | |
| 1403 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1404 | | -silent | --silent | --silen | --sile | --sil) |
| 1405 | silent=yes ;; |
| 1406 | |
| 1407 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1408 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1409 | | --run | --ru | --r) |
| 1410 | ac_prev=runstatedir ;; |
| 1411 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1412 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1413 | | --run=* | --ru=* | --r=*) |
| 1414 | runstatedir=$ac_optarg ;; |
| 1415 | |
| 1416 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1417 | ac_prev=sbindir ;; |
| 1418 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1419 | | --sbi=* | --sb=*) |
| 1420 | sbindir=$ac_optarg ;; |
| 1421 | |
| 1422 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1423 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1424 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1425 | | --sha | --sh) |
| 1426 | ac_prev=sharedstatedir ;; |
| 1427 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1428 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1429 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1430 | | --sha=* | --sh=*) |
| 1431 | sharedstatedir=$ac_optarg ;; |
| 1432 | |
| 1433 | -site | --site | --sit) |
| 1434 | ac_prev=site ;; |
| 1435 | -site=* | --site=* | --sit=*) |
| 1436 | site=$ac_optarg ;; |
| 1437 | |
| 1438 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1439 | ac_prev=srcdir ;; |
| 1440 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1441 | srcdir=$ac_optarg ;; |
| 1442 | |
| 1443 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1444 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1445 | ac_prev=sysconfdir ;; |
| 1446 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1447 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1448 | sysconfdir=$ac_optarg ;; |
| 1449 | |
| 1450 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1451 | ac_prev=target_alias ;; |
| 1452 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1453 | target_alias=$ac_optarg ;; |
| 1454 | |
| 1455 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1456 | verbose=yes ;; |
| 1457 | |
| 1458 | -version | --version | --versio | --versi | --vers | -V) |
| 1459 | ac_init_version=: ;; |
| 1460 | |
| 1461 | -with-* | --with-*) |
| 1462 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1463 | # Reject names that are not valid shell variable names. |
| 1464 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1465 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1466 | ac_useropt_orig=$ac_useropt |
| 1467 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1468 | case $ac_user_opts in |
| 1469 | *" |
| 1470 | "with_$ac_useropt" |
| 1471 | "*) ;; |
| 1472 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1473 | ac_unrecognized_sep=', ';; |
| 1474 | esac |
| 1475 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1476 | |
| 1477 | -without-* | --without-*) |
| 1478 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1479 | # Reject names that are not valid shell variable names. |
| 1480 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1481 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1482 | ac_useropt_orig=$ac_useropt |
| 1483 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1484 | case $ac_user_opts in |
| 1485 | *" |
| 1486 | "with_$ac_useropt" |
| 1487 | "*) ;; |
| 1488 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1489 | ac_unrecognized_sep=', ';; |
| 1490 | esac |
| 1491 | eval with_$ac_useropt=no ;; |
| 1492 | |
| 1493 | --x) |
| 1494 | # Obsolete; use --with-x. |
| 1495 | with_x=yes ;; |
| 1496 | |
| 1497 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1498 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1499 | ac_prev=x_includes ;; |
| 1500 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1501 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1502 | x_includes=$ac_optarg ;; |
| 1503 | |
| 1504 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1505 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1506 | ac_prev=x_libraries ;; |
| 1507 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1508 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1509 | x_libraries=$ac_optarg ;; |
| 1510 | |
| 1511 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1512 | Try '$0 --help' for more information" |
| 1513 | ;; |
| 1514 | |
| 1515 | *=*) |
| 1516 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1517 | # Reject names that are not valid shell variable names. |
| 1518 | case $ac_envvar in #( |
| 1519 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1520 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1521 | esac |
| 1522 | eval $ac_envvar=\$ac_optarg |
| 1523 | export $ac_envvar ;; |
| 1524 | |
| 1525 | *) |
| 1526 | # FIXME: should be removed in autoconf 3.0. |
| 1527 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1528 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1529 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1530 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1531 | ;; |
| 1532 | |
| 1533 | esac |
| 1534 | done |
| 1535 | |
| 1536 | if test -n "$ac_prev"; then |
| 1537 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1538 | as_fn_error $? "missing argument to $ac_option" |
| 1539 | fi |
| 1540 | |
| 1541 | if test -n "$ac_unrecognized_opts"; then |
| 1542 | case $enable_option_checking in |
| 1543 | no) ;; |
| 1544 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1545 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1546 | esac |
| 1547 | fi |
| 1548 | |
| 1549 | # Check all directory arguments for consistency. |
| 1550 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1551 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1552 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1553 | libdir localedir mandir runstatedir |
| 1554 | do |
| 1555 | eval ac_val=\$$ac_var |
| 1556 | # Remove trailing slashes. |
| 1557 | case $ac_val in |
| 1558 | */ ) |
| 1559 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1560 | eval $ac_var=\$ac_val;; |
| 1561 | esac |
| 1562 | # Be sure to have absolute directory names. |
| 1563 | case $ac_val in |
| 1564 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1565 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1566 | esac |
| 1567 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1568 | done |
| 1569 | |
| 1570 | # There might be people who depend on the old broken behavior: '$host' |
| 1571 | # used to hold the argument of --host etc. |
| 1572 | # FIXME: To remove some day. |
| 1573 | build=$build_alias |
| 1574 | host=$host_alias |
| 1575 | target=$target_alias |
| 1576 | |
| 1577 | # FIXME: To remove some day. |
| 1578 | if test "x$host_alias" != x; then |
| 1579 | if test "x$build_alias" = x; then |
| 1580 | cross_compiling=maybe |
| 1581 | elif test "x$build_alias" != "x$host_alias"; then |
| 1582 | cross_compiling=yes |
| 1583 | fi |
| 1584 | fi |
| 1585 | |
| 1586 | ac_tool_prefix= |
| 1587 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1588 | |
| 1589 | test "$silent" = yes && exec 6>/dev/null |
| 1590 | |
| 1591 | |
| 1592 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1593 | ac_ls_di=`ls -di .` && |
| 1594 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1595 | as_fn_error $? "working directory cannot be determined" |
| 1596 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1597 | as_fn_error $? "pwd does not report name of working directory" |
| 1598 | |
| 1599 | |
| 1600 | # Find the source files, if location was not specified. |
| 1601 | if test -z "$srcdir"; then |
| 1602 | ac_srcdir_defaulted=yes |
| 1603 | # Try the directory containing this script, then the parent directory. |
| 1604 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1605 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1606 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1607 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1608 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1609 | printf "%s\n" X"$as_myself" | |
| 1610 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1611 | s//\1/ |
| 1612 | q |
| 1613 | } |
| 1614 | /^X\(\/\/\)[^/].*/{ |
| 1615 | s//\1/ |
| 1616 | q |
| 1617 | } |
| 1618 | /^X\(\/\/\)$/{ |
| 1619 | s//\1/ |
| 1620 | q |
| 1621 | } |
| 1622 | /^X\(\/\).*/{ |
| 1623 | s//\1/ |
| 1624 | q |
| 1625 | } |
| 1626 | s/.*/./; q'` |
| 1627 | srcdir=$ac_confdir |
| 1628 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1629 | srcdir=.. |
| 1630 | fi |
| 1631 | else |
| 1632 | ac_srcdir_defaulted=no |
| 1633 | fi |
| 1634 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1635 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1636 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1637 | fi |
| 1638 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1639 | ac_abs_confdir=`( |
| 1640 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1641 | pwd)` |
| 1642 | # When building in place, set srcdir=. |
| 1643 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1644 | srcdir=. |
| 1645 | fi |
| 1646 | # Remove unnecessary trailing slashes from srcdir. |
| 1647 | # Double slashes in file names in object file debugging info |
| 1648 | # mess up M-x gdb in Emacs. |
| 1649 | case $srcdir in |
| 1650 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1651 | esac |
| 1652 | for ac_var in $ac_precious_vars; do |
| 1653 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1654 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1655 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1656 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1657 | done |
| 1658 | |
| 1659 | # |
| 1660 | # Report the --help message. |
| 1661 | # |
| 1662 | if test "$ac_init_help" = "long"; then |
| 1663 | # Omit some internal or obsolete options to make the list less imposing. |
| 1664 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1665 | cat <<_ACEOF |
| 1666 | 'configure' configures Web2C 2026 to adapt to many kinds of systems. |
| 1667 | |
| 1668 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1669 | |
| 1670 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1671 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1672 | |
| 1673 | Defaults for the options are specified in brackets. |
| 1674 | |
| 1675 | Configuration: |
| 1676 | -h, --help display this help and exit |
| 1677 | --help=short display options specific to this package |
| 1678 | --help=recursive display the short help of all the included packages |
| 1679 | -V, --version display version information and exit |
| 1680 | -q, --quiet, --silent do not print 'checking ...' messages |
| 1681 | --cache-file=FILE cache test results in FILE [disabled] |
| 1682 | -C, --config-cache alias for '--cache-file=config.cache' |
| 1683 | -n, --no-create do not create output files |
| 1684 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1685 | |
| 1686 | Installation directories: |
| 1687 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1688 | [$ac_default_prefix] |
| 1689 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1690 | [PREFIX] |
| 1691 | |
| 1692 | By default, 'make install' will install all the files in |
| 1693 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1694 | an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1695 | for instance '--prefix=\$HOME'. |
| 1696 | |
| 1697 | For better control, use the options below. |
| 1698 | |
| 1699 | Fine tuning of the installation directories: |
| 1700 | --bindir=DIR user executables [EPREFIX/bin] |
| 1701 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1702 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1703 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1704 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1705 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1706 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1707 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1708 | --includedir=DIR C header files [PREFIX/include] |
| 1709 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1710 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1711 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1712 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1713 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1714 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1715 | --docdir=DIR documentation root [DATAROOTDIR/doc/web2c] |
| 1716 | --htmldir=DIR html documentation [DOCDIR] |
| 1717 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1718 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1719 | --psdir=DIR ps documentation [DOCDIR] |
| 1720 | _ACEOF |
| 1721 | |
| 1722 | cat <<\_ACEOF |
| 1723 | |
| 1724 | Program names: |
| 1725 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1726 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1727 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1728 | |
| 1729 | X features: |
| 1730 | --x-includes=DIR X include files are in DIR |
| 1731 | --x-libraries=DIR X library files are in DIR |
| 1732 | |
| 1733 | System types: |
| 1734 | --build=BUILD configure for building on BUILD [guessed] |
| 1735 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1736 | _ACEOF |
| 1737 | fi |
| 1738 | |
| 1739 | if test -n "$ac_init_help"; then |
| 1740 | case $ac_init_help in |
| 1741 | short | recursive ) echo "Configuration of Web2C 2026:";; |
| 1742 | esac |
| 1743 | cat <<\_ACEOF |
| 1744 | |
| 1745 | Optional Features: |
| 1746 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1747 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1748 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1749 | --enable-dependency-tracking |
| 1750 | do not reject slow dependency extractors |
| 1751 | --disable-dependency-tracking |
| 1752 | speeds up one-time build |
| 1753 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1754 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1755 | --enable-maintainer-mode |
| 1756 | enable make rules and dependencies not useful (and |
| 1757 | sometimes confusing) to the casual installer |
| 1758 | --enable-compiler-warnings=[no|min|yes|max|all] |
| 1759 | Turn on compiler warnings [default: yes if |
| 1760 | maintainer-mode, min otherwise] |
| 1761 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1762 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1763 | --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1764 | both] |
| 1765 | --enable-fast-install[=PKGS] |
| 1766 | optimize for fast installation [default=yes] |
| 1767 | --enable-aix-soname=aix|svr4|both |
| 1768 | shared library versioning (aka "SONAME") variant to |
| 1769 | provide on AIX, [default=aix]. |
| 1770 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1771 | --disable-largefile omit support for large files |
| 1772 | --enable-cxx-runtime-hack link C++ runtime statically |
| 1773 | --enable-libtool-hack ignore libtool dependency_libs |
| 1774 | --enable-auto-core cause TeX&MF to dump core, given a certain filename |
| 1775 | --disable-dump-share make fmt/base files architecture-dependent |
| 1776 | --disable-ipc disable TeX's --ipc option, i.e., pipe to a program |
| 1777 | --disable-tex do not compile and install TeX |
| 1778 | --enable-tex-synctex build TeX with SyncTeX support |
| 1779 | --enable-etex compile and install e-TeX |
| 1780 | --disable-etex-synctex build e-TeX without SyncTeX support |
| 1781 | --enable-uptex compile and install upTeX |
| 1782 | --disable-euptex do not compile and install e-upTeX |
| 1783 | --disable-euptex-synctex build e-upTeX without SyncTeX support |
| 1784 | --disable-aleph do not compile and install Aleph |
| 1785 | --disable-hitex do not compile and install HiTeX |
| 1786 | --disable-pdftex do not compile and install pdfTeX |
| 1787 | --disable-pdftex-synctex build pdfTeX without SyncTeX support |
| 1788 | --disable-luatex do not compile and install LuaTeX |
| 1789 | --disable-luajittex do not compile and install LuaJITTeX |
| 1790 | --disable-luahbtex do not compile and install LuaHBTeX |
| 1791 | --disable-luajithbtex do not compile and install LuaHBJITTeX |
| 1792 | --disable-mp do not compile and install MetaPost |
| 1793 | --disable-pmp do not compile and install pMetaPost |
| 1794 | --disable-texprof do not compile and install TeXprof |
| 1795 | --disable-upmp do not compile and install upMetaPost |
| 1796 | --disable-xetex do not compile and install XeTeX |
| 1797 | --disable-xetex-synctex build XeTeX without SyncTeX support |
| 1798 | --disable-mf do not compile and install METAFONT |
| 1799 | --disable-mf-nowin do not build a separate non-window-capable |
| 1800 | METAFONT |
| 1801 | --disable-mflua do not compile and install MFLua |
| 1802 | --enable-mflua-nowin build a separate non-window-capable MFLua |
| 1803 | --disable-mfluajit do not compile and install MFLuaJIT |
| 1804 | --enable-mfluajit-nowin build a separate non-window-capable MFLuaJIT |
| 1805 | --enable-epsfwin include EPSF pseudo window support |
| 1806 | --enable-hp2627win include HP 2627 window support |
| 1807 | --enable-mftalkwin include mftalk (generic server) window support |
| 1808 | --enable-nextwin include NeXT window support |
| 1809 | --enable-regiswin include Regis window support |
| 1810 | --enable-suntoolswin include old Suntools (not X) window support |
| 1811 | --enable-tektronixwin include Tektronix window support |
| 1812 | --enable-unitermwin include Uniterm window support |
| 1813 | --disable-web-progs do not build WEB programs bibtex ... weave |
| 1814 | --disable-synctex do not build the SyncTeX library and tool |
| 1815 | --disable-missing terminate if a requested program or feature must be |
| 1816 | disabled, e.g., due to missing libraries |
| 1817 | --enable-year2038 support timestamps after 2038 |
| 1818 | |
| 1819 | Optional Packages: |
| 1820 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1821 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1822 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1823 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1824 | compiler's sysroot if not specified). |
| 1825 | --with-banner-add=STR add STR to version string appended to banner lines |
| 1826 | --with-editor=CMD invoke CMD from the `e' option [vi +%d '%s'] or |
| 1827 | [texworks --position=%d "%s"] |
| 1828 | --with-mf-x-toolkit use X toolkit for METAFONT |
| 1829 | --with-x use the X Window System |
| 1830 | --with-system-kpathsea use installed kpathsea headers and library (requires |
| 1831 | pkg-config) |
| 1832 | --with-system-ptexenc use installed ptexenc headers and library (requires |
| 1833 | pkg-config) |
| 1834 | --with-system-zlib use installed zlib headers and library |
| 1835 | --with-zlib-includes=DIR |
| 1836 | zlib headers installed in DIR |
| 1837 | --with-zlib-libdir=DIR zlib library installed in DIR |
| 1838 | --with-system-luajit use installed luajit headers and library (requires |
| 1839 | pkg-config) |
| 1840 | --with-system-libpng use installed libpng headers and library (requires |
| 1841 | pkg-config) |
| 1842 | --with-system-freetype2 use installed freetype2 headers and library |
| 1843 | (requires freetype-config) |
| 1844 | --with-system-pixman use installed pixman headers and library (requires |
| 1845 | pkg-config) |
| 1846 | --with-system-cairo use installed cairo headers and library (requires |
| 1847 | pkg-config) |
| 1848 | --with-system-potrace use installed potrace headers and library |
| 1849 | --with-potrace-includes=DIR |
| 1850 | potrace headers installed in DIR |
| 1851 | --with-potrace-libdir=DIR |
| 1852 | potrace library installed in DIR |
| 1853 | --with-system-gmp use installed gmp headers and library |
| 1854 | --with-gmp-includes=DIR gmp headers installed in DIR |
| 1855 | --with-gmp-libdir=DIR gmp library installed in DIR |
| 1856 | --with-system-mpfr use installed mpfr headers and library |
| 1857 | --with-mpfr-includes=DIR |
| 1858 | mpfr headers installed in DIR |
| 1859 | --with-mpfr-libdir=DIR mpfr library installed in DIR |
| 1860 | --with-system-mpfi use installed mpfi headers and library |
| 1861 | --with-mpfi-includes=DIR |
| 1862 | mpfi headers installed in DIR |
| 1863 | --with-mpfi-libdir=DIR mpfi library installed in DIR |
| 1864 | --with-system-zziplib use installed zziplib headers and library (requires |
| 1865 | pkg-config) |
| 1866 | --with-system-teckit use installed teckit headers and library (requires |
| 1867 | pkg-config) |
| 1868 | --with-system-graphite2 use installed graphite2 headers and library |
| 1869 | (requires pkg-config) |
| 1870 | --with-system-harfbuzz use installed harfbuzz headers and library (requires |
| 1871 | pkg-config) |
| 1872 | --with-system-icu use installed ICU headers and libraries (requires |
| 1873 | pkg-config or icu-config) |
| 1874 | --with-fontconfig-includes=DIR |
| 1875 | fontconfig headers installed in DIR |
| 1876 | --with-fontconfig-libdir=DIR |
| 1877 | fontconfig library installed in DIR |
| 1878 | |
| 1879 | Some influential environment variables: |
| 1880 | CC C compiler command |
| 1881 | CFLAGS C compiler flags |
| 1882 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1883 | nonstandard directory <lib dir> |
| 1884 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1885 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1886 | you have headers in a nonstandard directory <include dir> |
| 1887 | LT_SYS_LIBRARY_PATH |
| 1888 | User-defined run-time library search path. |
| 1889 | CXX C++ compiler command |
| 1890 | CXXFLAGS C++ compiler flags |
| 1891 | CXXCPP C++ preprocessor |
| 1892 | OBJCXX Objective C++ compiler command |
| 1893 | OBJCXXFLAGS Objective C++ compiler flags |
| 1894 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1895 | CPP C preprocessor |
| 1896 | YACC The 'Yet Another Compiler Compiler' implementation to use. |
| 1897 | Defaults to the first program found out of: 'bison -y', 'byacc', |
| 1898 | 'yacc'. |
| 1899 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1900 | This script will default YFLAGS to the empty string to avoid a |
| 1901 | default value of '-d' given by some make applications. |
| 1902 | |
| 1903 | Use these variables to override the choices made by 'configure' or to help |
| 1904 | it to find libraries and programs with nonstandard names/locations. |
| 1905 | |
| 1906 | Report bugs to <[email protected]>. |
| 1907 | _ACEOF |
| 1908 | ac_status=$? |
| 1909 | fi |
| 1910 | |
| 1911 | if test "$ac_init_help" = "recursive"; then |
| 1912 | # If there are subdirs, report their specific --help. |
| 1913 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1914 | test -d "$ac_dir" || |
| 1915 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1916 | continue |
| 1917 | ac_builddir=. |
| 1918 | |
| 1919 | case "$ac_dir" in |
| 1920 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1921 | *) |
| 1922 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1923 | # A ".." for each directory in $ac_dir_suffix. |
| 1924 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1925 | case $ac_top_builddir_sub in |
| 1926 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1927 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1928 | esac ;; |
| 1929 | esac |
| 1930 | ac_abs_top_builddir=$ac_pwd |
| 1931 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1932 | # for backward compatibility: |
| 1933 | ac_top_builddir=$ac_top_build_prefix |
| 1934 | |
| 1935 | case $srcdir in |
| 1936 | .) # We are building in place. |
| 1937 | ac_srcdir=. |
| 1938 | ac_top_srcdir=$ac_top_builddir_sub |
| 1939 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1940 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1941 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1942 | ac_top_srcdir=$srcdir |
| 1943 | ac_abs_top_srcdir=$srcdir ;; |
| 1944 | *) # Relative name. |
| 1945 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1946 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1947 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1948 | esac |
| 1949 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1950 | |
| 1951 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1952 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1953 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1954 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1955 | echo && |
| 1956 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1957 | elif test -f "$ac_srcdir/configure"; then |
| 1958 | echo && |
| 1959 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1960 | else |
| 1961 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1962 | fi || ac_status=$? |
| 1963 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1964 | done |
| 1965 | fi |
| 1966 | |
| 1967 | test -n "$ac_init_help" && exit $ac_status |
| 1968 | if $ac_init_version; then |
| 1969 | cat <<\_ACEOF |
| 1970 | Web2C configure 2026 |
| 1971 | generated by GNU Autoconf 2.72 |
| 1972 | |
| 1973 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 1974 | This configure script is free software; the Free Software Foundation |
| 1975 | gives unlimited permission to copy, distribute and modify it. |
| 1976 | _ACEOF |
| 1977 | exit |
| 1978 | fi |
| 1979 | |
| 1980 | ## ------------------------ ## |
| 1981 | ## Autoconf initialization. ## |
| 1982 | ## ------------------------ ## |
| 1983 | |
| 1984 | # ac_fn_c_try_compile LINENO |
| 1985 | # -------------------------- |
| 1986 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1987 | ac_fn_c_try_compile () |
| 1988 | { |
| 1989 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1990 | rm -f conftest.$ac_objext conftest.beam |
| 1991 | if { { ac_try="$ac_compile" |
| 1992 | case "(($ac_try" in |
| 1993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1994 | *) ac_try_echo=$ac_try;; |
| 1995 | esac |
| 1996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1997 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1998 | (eval "$ac_compile") 2>conftest.err |
| 1999 | ac_status=$? |
| 2000 | if test -s conftest.err; then |
| 2001 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2002 | cat conftest.er1 >&5 |
| 2003 | mv -f conftest.er1 conftest.err |
| 2004 | fi |
| 2005 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2006 | test $ac_status = 0; } && { |
| 2007 | test -z "$ac_c_werror_flag" || |
| 2008 | test ! -s conftest.err |
| 2009 | } && test -s conftest.$ac_objext |
| 2010 | then : |
| 2011 | ac_retval=0 |
| 2012 | else case e in #( |
| 2013 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2015 | |
| 2016 | ac_retval=1 ;; |
| 2017 | esac |
| 2018 | fi |
| 2019 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2020 | as_fn_set_status $ac_retval |
| 2021 | |
| 2022 | } # ac_fn_c_try_compile |
| 2023 | |
| 2024 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2025 | # ------------------------------------------------------- |
| 2026 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2027 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2028 | ac_fn_c_check_header_compile () |
| 2029 | { |
| 2030 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2032 | printf %s "checking for $2... " >&6; } |
| 2033 | if eval test \${$3+y} |
| 2034 | then : |
| 2035 | printf %s "(cached) " >&6 |
| 2036 | else case e in #( |
| 2037 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2038 | /* end confdefs.h. */ |
| 2039 | $4 |
| 2040 | #include <$2> |
| 2041 | _ACEOF |
| 2042 | if ac_fn_c_try_compile "$LINENO" |
| 2043 | then : |
| 2044 | eval "$3=yes" |
| 2045 | else case e in #( |
| 2046 | e) eval "$3=no" ;; |
| 2047 | esac |
| 2048 | fi |
| 2049 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2050 | esac |
| 2051 | fi |
| 2052 | eval ac_res=\$$3 |
| 2053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2054 | printf "%s\n" "$ac_res" >&6; } |
| 2055 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2056 | |
| 2057 | } # ac_fn_c_check_header_compile |
| 2058 | |
| 2059 | # ac_fn_c_try_link LINENO |
| 2060 | # ----------------------- |
| 2061 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2062 | ac_fn_c_try_link () |
| 2063 | { |
| 2064 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2065 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 2066 | if { { ac_try="$ac_link" |
| 2067 | case "(($ac_try" in |
| 2068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2069 | *) ac_try_echo=$ac_try;; |
| 2070 | esac |
| 2071 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2072 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2073 | (eval "$ac_link") 2>conftest.err |
| 2074 | ac_status=$? |
| 2075 | if test -s conftest.err; then |
| 2076 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2077 | cat conftest.er1 >&5 |
| 2078 | mv -f conftest.er1 conftest.err |
| 2079 | fi |
| 2080 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2081 | test $ac_status = 0; } && { |
| 2082 | test -z "$ac_c_werror_flag" || |
| 2083 | test ! -s conftest.err |
| 2084 | } && test -s conftest$ac_exeext && { |
| 2085 | test "$cross_compiling" = yes || |
| 2086 | test -x conftest$ac_exeext |
| 2087 | } |
| 2088 | then : |
| 2089 | ac_retval=0 |
| 2090 | else case e in #( |
| 2091 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2093 | |
| 2094 | ac_retval=1 ;; |
| 2095 | esac |
| 2096 | fi |
| 2097 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2098 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2099 | # interfere with the next link command; also delete a directory that is |
| 2100 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2101 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2102 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2103 | as_fn_set_status $ac_retval |
| 2104 | |
| 2105 | } # ac_fn_c_try_link |
| 2106 | |
| 2107 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2108 | # ---------------------------------- |
| 2109 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2110 | ac_fn_c_check_func () |
| 2111 | { |
| 2112 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2114 | printf %s "checking for $2... " >&6; } |
| 2115 | if eval test \${$3+y} |
| 2116 | then : |
| 2117 | printf %s "(cached) " >&6 |
| 2118 | else case e in #( |
| 2119 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2120 | /* end confdefs.h. */ |
| 2121 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2123 | #define $2 innocuous_$2 |
| 2124 | |
| 2125 | /* System header to define __stub macros and hopefully few prototypes, |
| 2126 | which can conflict with char $2 (void); below. */ |
| 2127 | |
| 2128 | #include <limits.h> |
| 2129 | #undef $2 |
| 2130 | |
| 2131 | /* Override any GCC internal prototype to avoid an error. |
| 2132 | Use char because int might match the return type of a GCC |
| 2133 | builtin and then its argument prototype would still apply. */ |
| 2134 | #ifdef __cplusplus |
| 2135 | extern "C" |
| 2136 | #endif |
| 2137 | char $2 (void); |
| 2138 | /* The GNU C library defines this for functions which it implements |
| 2139 | to always fail with ENOSYS. Some functions are actually named |
| 2140 | something starting with __ and the normal name is an alias. */ |
| 2141 | #if defined __stub_$2 || defined __stub___$2 |
| 2142 | choke me |
| 2143 | #endif |
| 2144 | |
| 2145 | int |
| 2146 | main (void) |
| 2147 | { |
| 2148 | return $2 (); |
| 2149 | ; |
| 2150 | return 0; |
| 2151 | } |
| 2152 | _ACEOF |
| 2153 | if ac_fn_c_try_link "$LINENO" |
| 2154 | then : |
| 2155 | eval "$3=yes" |
| 2156 | else case e in #( |
| 2157 | e) eval "$3=no" ;; |
| 2158 | esac |
| 2159 | fi |
| 2160 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 2161 | conftest$ac_exeext conftest.$ac_ext ;; |
| 2162 | esac |
| 2163 | fi |
| 2164 | eval ac_res=\$$3 |
| 2165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2166 | printf "%s\n" "$ac_res" >&6; } |
| 2167 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2168 | |
| 2169 | } # ac_fn_c_check_func |
| 2170 | |
| 2171 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2172 | # ------------------------------------------- |
| 2173 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2174 | # variable VAR accordingly. |
| 2175 | ac_fn_c_check_type () |
| 2176 | { |
| 2177 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2179 | printf %s "checking for $2... " >&6; } |
| 2180 | if eval test \${$3+y} |
| 2181 | then : |
| 2182 | printf %s "(cached) " >&6 |
| 2183 | else case e in #( |
| 2184 | e) eval "$3=no" |
| 2185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2186 | /* end confdefs.h. */ |
| 2187 | $4 |
| 2188 | int |
| 2189 | main (void) |
| 2190 | { |
| 2191 | if (sizeof ($2)) |
| 2192 | return 0; |
| 2193 | ; |
| 2194 | return 0; |
| 2195 | } |
| 2196 | _ACEOF |
| 2197 | if ac_fn_c_try_compile "$LINENO" |
| 2198 | then : |
| 2199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2200 | /* end confdefs.h. */ |
| 2201 | $4 |
| 2202 | int |
| 2203 | main (void) |
| 2204 | { |
| 2205 | if (sizeof (($2))) |
| 2206 | return 0; |
| 2207 | ; |
| 2208 | return 0; |
| 2209 | } |
| 2210 | _ACEOF |
| 2211 | if ac_fn_c_try_compile "$LINENO" |
| 2212 | then : |
| 2213 | |
| 2214 | else case e in #( |
| 2215 | e) eval "$3=yes" ;; |
| 2216 | esac |
| 2217 | fi |
| 2218 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2219 | fi |
| 2220 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2221 | esac |
| 2222 | fi |
| 2223 | eval ac_res=\$$3 |
| 2224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2225 | printf "%s\n" "$ac_res" >&6; } |
| 2226 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2227 | |
| 2228 | } # ac_fn_c_check_type |
| 2229 | |
| 2230 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2231 | # ----------------------------------- |
| 2232 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2233 | # accordingly. |
| 2234 | ac_fn_c_find_intX_t () |
| 2235 | { |
| 2236 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2238 | printf %s "checking for int$2_t... " >&6; } |
| 2239 | if eval test \${$3+y} |
| 2240 | then : |
| 2241 | printf %s "(cached) " >&6 |
| 2242 | else case e in #( |
| 2243 | e) eval "$3=no" |
| 2244 | # Order is important - never check a type that is potentially smaller |
| 2245 | # than half of the expected target width. |
| 2246 | for ac_type in int$2_t 'int' 'long int' \ |
| 2247 | 'long long int' 'short int' 'signed char'; do |
| 2248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2249 | /* end confdefs.h. */ |
| 2250 | $ac_includes_default |
| 2251 | enum { N = $2 / 2 - 1 }; |
| 2252 | int |
| 2253 | main (void) |
| 2254 | { |
| 2255 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 2256 | test_array [0] = 0; |
| 2257 | return test_array [0]; |
| 2258 | |
| 2259 | ; |
| 2260 | return 0; |
| 2261 | } |
| 2262 | _ACEOF |
| 2263 | if ac_fn_c_try_compile "$LINENO" |
| 2264 | then : |
| 2265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2266 | /* end confdefs.h. */ |
| 2267 | $ac_includes_default |
| 2268 | enum { N = $2 / 2 - 1 }; |
| 2269 | int |
| 2270 | main (void) |
| 2271 | { |
| 2272 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2273 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 2274 | test_array [0] = 0; |
| 2275 | return test_array [0]; |
| 2276 | |
| 2277 | ; |
| 2278 | return 0; |
| 2279 | } |
| 2280 | _ACEOF |
| 2281 | if ac_fn_c_try_compile "$LINENO" |
| 2282 | then : |
| 2283 | |
| 2284 | else case e in #( |
| 2285 | e) case $ac_type in #( |
| 2286 | int$2_t) : |
| 2287 | eval "$3=yes" ;; #( |
| 2288 | *) : |
| 2289 | eval "$3=\$ac_type" ;; |
| 2290 | esac ;; |
| 2291 | esac |
| 2292 | fi |
| 2293 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2294 | fi |
| 2295 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2296 | if eval test \"x\$"$3"\" = x"no" |
| 2297 | then : |
| 2298 | |
| 2299 | else case e in #( |
| 2300 | e) break ;; |
| 2301 | esac |
| 2302 | fi |
| 2303 | done ;; |
| 2304 | esac |
| 2305 | fi |
| 2306 | eval ac_res=\$$3 |
| 2307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2308 | printf "%s\n" "$ac_res" >&6; } |
| 2309 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2310 | |
| 2311 | } # ac_fn_c_find_intX_t |
| 2312 | |
| 2313 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2314 | # ------------------------------------ |
| 2315 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2316 | # accordingly. |
| 2317 | ac_fn_c_find_uintX_t () |
| 2318 | { |
| 2319 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2321 | printf %s "checking for uint$2_t... " >&6; } |
| 2322 | if eval test \${$3+y} |
| 2323 | then : |
| 2324 | printf %s "(cached) " >&6 |
| 2325 | else case e in #( |
| 2326 | e) eval "$3=no" |
| 2327 | # Order is important - never check a type that is potentially smaller |
| 2328 | # than half of the expected target width. |
| 2329 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2330 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2332 | /* end confdefs.h. */ |
| 2333 | $ac_includes_default |
| 2334 | int |
| 2335 | main (void) |
| 2336 | { |
| 2337 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2338 | test_array [0] = 0; |
| 2339 | return test_array [0]; |
| 2340 | |
| 2341 | ; |
| 2342 | return 0; |
| 2343 | } |
| 2344 | _ACEOF |
| 2345 | if ac_fn_c_try_compile "$LINENO" |
| 2346 | then : |
| 2347 | case $ac_type in #( |
| 2348 | uint$2_t) : |
| 2349 | eval "$3=yes" ;; #( |
| 2350 | *) : |
| 2351 | eval "$3=\$ac_type" ;; |
| 2352 | esac |
| 2353 | fi |
| 2354 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2355 | if eval test \"x\$"$3"\" = x"no" |
| 2356 | then : |
| 2357 | |
| 2358 | else case e in #( |
| 2359 | e) break ;; |
| 2360 | esac |
| 2361 | fi |
| 2362 | done ;; |
| 2363 | esac |
| 2364 | fi |
| 2365 | eval ac_res=\$$3 |
| 2366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2367 | printf "%s\n" "$ac_res" >&6; } |
| 2368 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2369 | |
| 2370 | } # ac_fn_c_find_uintX_t |
| 2371 | |
| 2372 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 2373 | # ------------------------------------------------------------------ |
| 2374 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2375 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2376 | ac_fn_check_decl () |
| 2377 | { |
| 2378 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2379 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2381 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2382 | if eval test \${$3+y} |
| 2383 | then : |
| 2384 | printf %s "(cached) " >&6 |
| 2385 | else case e in #( |
| 2386 | e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2387 | eval ac_save_FLAGS=\$$6 |
| 2388 | as_fn_append $6 " $5" |
| 2389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2390 | /* end confdefs.h. */ |
| 2391 | $4 |
| 2392 | int |
| 2393 | main (void) |
| 2394 | { |
| 2395 | #ifndef $as_decl_name |
| 2396 | #ifdef __cplusplus |
| 2397 | (void) $as_decl_use; |
| 2398 | #else |
| 2399 | (void) $as_decl_name; |
| 2400 | #endif |
| 2401 | #endif |
| 2402 | |
| 2403 | ; |
| 2404 | return 0; |
| 2405 | } |
| 2406 | _ACEOF |
| 2407 | if ac_fn_c_try_compile "$LINENO" |
| 2408 | then : |
| 2409 | eval "$3=yes" |
| 2410 | else case e in #( |
| 2411 | e) eval "$3=no" ;; |
| 2412 | esac |
| 2413 | fi |
| 2414 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2415 | eval $6=\$ac_save_FLAGS |
| 2416 | ;; |
| 2417 | esac |
| 2418 | fi |
| 2419 | eval ac_res=\$$3 |
| 2420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2421 | printf "%s\n" "$ac_res" >&6; } |
| 2422 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2423 | |
| 2424 | } # ac_fn_check_decl |
| 2425 | |
| 2426 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2427 | # ---------------------------------------------------- |
| 2428 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2429 | # INCLUDES, setting cache variable VAR accordingly. |
| 2430 | ac_fn_c_check_member () |
| 2431 | { |
| 2432 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2434 | printf %s "checking for $2.$3... " >&6; } |
| 2435 | if eval test \${$4+y} |
| 2436 | then : |
| 2437 | printf %s "(cached) " >&6 |
| 2438 | else case e in #( |
| 2439 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2440 | /* end confdefs.h. */ |
| 2441 | $5 |
| 2442 | int |
| 2443 | main (void) |
| 2444 | { |
| 2445 | static $2 ac_aggr; |
| 2446 | if (ac_aggr.$3) |
| 2447 | return 0; |
| 2448 | ; |
| 2449 | return 0; |
| 2450 | } |
| 2451 | _ACEOF |
| 2452 | if ac_fn_c_try_compile "$LINENO" |
| 2453 | then : |
| 2454 | eval "$4=yes" |
| 2455 | else case e in #( |
| 2456 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2457 | /* end confdefs.h. */ |
| 2458 | $5 |
| 2459 | int |
| 2460 | main (void) |
| 2461 | { |
| 2462 | static $2 ac_aggr; |
| 2463 | if (sizeof ac_aggr.$3) |
| 2464 | return 0; |
| 2465 | ; |
| 2466 | return 0; |
| 2467 | } |
| 2468 | _ACEOF |
| 2469 | if ac_fn_c_try_compile "$LINENO" |
| 2470 | then : |
| 2471 | eval "$4=yes" |
| 2472 | else case e in #( |
| 2473 | e) eval "$4=no" ;; |
| 2474 | esac |
| 2475 | fi |
| 2476 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2477 | esac |
| 2478 | fi |
| 2479 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2480 | esac |
| 2481 | fi |
| 2482 | eval ac_res=\$$4 |
| 2483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2484 | printf "%s\n" "$ac_res" >&6; } |
| 2485 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2486 | |
| 2487 | } # ac_fn_c_check_member |
| 2488 | |
| 2489 | # ac_fn_cxx_try_compile LINENO |
| 2490 | # ---------------------------- |
| 2491 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2492 | ac_fn_cxx_try_compile () |
| 2493 | { |
| 2494 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2495 | rm -f conftest.$ac_objext conftest.beam |
| 2496 | if { { ac_try="$ac_compile" |
| 2497 | case "(($ac_try" in |
| 2498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2499 | *) ac_try_echo=$ac_try;; |
| 2500 | esac |
| 2501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2502 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2503 | (eval "$ac_compile") 2>conftest.err |
| 2504 | ac_status=$? |
| 2505 | if test -s conftest.err; then |
| 2506 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2507 | cat conftest.er1 >&5 |
| 2508 | mv -f conftest.er1 conftest.err |
| 2509 | fi |
| 2510 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2511 | test $ac_status = 0; } && { |
| 2512 | test -z "$ac_cxx_werror_flag" || |
| 2513 | test ! -s conftest.err |
| 2514 | } && test -s conftest.$ac_objext |
| 2515 | then : |
| 2516 | ac_retval=0 |
| 2517 | else case e in #( |
| 2518 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2520 | |
| 2521 | ac_retval=1 ;; |
| 2522 | esac |
| 2523 | fi |
| 2524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2525 | as_fn_set_status $ac_retval |
| 2526 | |
| 2527 | } # ac_fn_cxx_try_compile |
| 2528 | |
| 2529 | # ac_fn_cxx_try_cpp LINENO |
| 2530 | # ------------------------ |
| 2531 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2532 | ac_fn_cxx_try_cpp () |
| 2533 | { |
| 2534 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2535 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2536 | case "(($ac_try" in |
| 2537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2538 | *) ac_try_echo=$ac_try;; |
| 2539 | esac |
| 2540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2541 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2543 | ac_status=$? |
| 2544 | if test -s conftest.err; then |
| 2545 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2546 | cat conftest.er1 >&5 |
| 2547 | mv -f conftest.er1 conftest.err |
| 2548 | fi |
| 2549 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2550 | test $ac_status = 0; } > conftest.i && { |
| 2551 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2552 | test ! -s conftest.err |
| 2553 | } |
| 2554 | then : |
| 2555 | ac_retval=0 |
| 2556 | else case e in #( |
| 2557 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2559 | |
| 2560 | ac_retval=1 ;; |
| 2561 | esac |
| 2562 | fi |
| 2563 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2564 | as_fn_set_status $ac_retval |
| 2565 | |
| 2566 | } # ac_fn_cxx_try_cpp |
| 2567 | |
| 2568 | # ac_fn_cxx_try_link LINENO |
| 2569 | # ------------------------- |
| 2570 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2571 | ac_fn_cxx_try_link () |
| 2572 | { |
| 2573 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2574 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 2575 | if { { ac_try="$ac_link" |
| 2576 | case "(($ac_try" in |
| 2577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2578 | *) ac_try_echo=$ac_try;; |
| 2579 | esac |
| 2580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2581 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2582 | (eval "$ac_link") 2>conftest.err |
| 2583 | ac_status=$? |
| 2584 | if test -s conftest.err; then |
| 2585 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2586 | cat conftest.er1 >&5 |
| 2587 | mv -f conftest.er1 conftest.err |
| 2588 | fi |
| 2589 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2590 | test $ac_status = 0; } && { |
| 2591 | test -z "$ac_cxx_werror_flag" || |
| 2592 | test ! -s conftest.err |
| 2593 | } && test -s conftest$ac_exeext && { |
| 2594 | test "$cross_compiling" = yes || |
| 2595 | test -x conftest$ac_exeext |
| 2596 | } |
| 2597 | then : |
| 2598 | ac_retval=0 |
| 2599 | else case e in #( |
| 2600 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2602 | |
| 2603 | ac_retval=1 ;; |
| 2604 | esac |
| 2605 | fi |
| 2606 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2607 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2608 | # interfere with the next link command; also delete a directory that is |
| 2609 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2610 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2611 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2612 | as_fn_set_status $ac_retval |
| 2613 | |
| 2614 | } # ac_fn_cxx_try_link |
| 2615 | |
| 2616 | # ac_fn_objcxx_try_compile LINENO |
| 2617 | # ------------------------------- |
| 2618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2619 | ac_fn_objcxx_try_compile () |
| 2620 | { |
| 2621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2622 | rm -f conftest.$ac_objext conftest.beam |
| 2623 | if { { ac_try="$ac_compile" |
| 2624 | case "(($ac_try" in |
| 2625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2626 | *) ac_try_echo=$ac_try;; |
| 2627 | esac |
| 2628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2629 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2630 | (eval "$ac_compile") 2>conftest.err |
| 2631 | ac_status=$? |
| 2632 | if test -s conftest.err; then |
| 2633 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2634 | cat conftest.er1 >&5 |
| 2635 | mv -f conftest.er1 conftest.err |
| 2636 | fi |
| 2637 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2638 | test $ac_status = 0; } && { |
| 2639 | test -z "$ac_objcxx_werror_flag" || |
| 2640 | test ! -s conftest.err |
| 2641 | } && test -s conftest.$ac_objext |
| 2642 | then : |
| 2643 | ac_retval=0 |
| 2644 | else case e in #( |
| 2645 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2647 | |
| 2648 | ac_retval=1 ;; |
| 2649 | esac |
| 2650 | fi |
| 2651 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2652 | as_fn_set_status $ac_retval |
| 2653 | |
| 2654 | } # ac_fn_objcxx_try_compile |
| 2655 | |
| 2656 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
| 2657 | # --------------------------------------------------------- |
| 2658 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2659 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2660 | ac_fn_cxx_check_header_compile () |
| 2661 | { |
| 2662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2664 | printf %s "checking for $2... " >&6; } |
| 2665 | if eval test \${$3+y} |
| 2666 | then : |
| 2667 | printf %s "(cached) " >&6 |
| 2668 | else case e in #( |
| 2669 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2670 | /* end confdefs.h. */ |
| 2671 | $4 |
| 2672 | #include <$2> |
| 2673 | _ACEOF |
| 2674 | if ac_fn_cxx_try_compile "$LINENO" |
| 2675 | then : |
| 2676 | eval "$3=yes" |
| 2677 | else case e in #( |
| 2678 | e) eval "$3=no" ;; |
| 2679 | esac |
| 2680 | fi |
| 2681 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2682 | esac |
| 2683 | fi |
| 2684 | eval ac_res=\$$3 |
| 2685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2686 | printf "%s\n" "$ac_res" >&6; } |
| 2687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2688 | |
| 2689 | } # ac_fn_cxx_check_header_compile |
| 2690 | |
| 2691 | # ac_fn_c_try_cpp LINENO |
| 2692 | # ---------------------- |
| 2693 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2694 | ac_fn_c_try_cpp () |
| 2695 | { |
| 2696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2697 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2698 | case "(($ac_try" in |
| 2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2700 | *) ac_try_echo=$ac_try;; |
| 2701 | esac |
| 2702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2703 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2704 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2705 | ac_status=$? |
| 2706 | if test -s conftest.err; then |
| 2707 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2708 | cat conftest.er1 >&5 |
| 2709 | mv -f conftest.er1 conftest.err |
| 2710 | fi |
| 2711 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2712 | test $ac_status = 0; } > conftest.i && { |
| 2713 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2714 | test ! -s conftest.err |
| 2715 | } |
| 2716 | then : |
| 2717 | ac_retval=0 |
| 2718 | else case e in #( |
| 2719 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2721 | |
| 2722 | ac_retval=1 ;; |
| 2723 | esac |
| 2724 | fi |
| 2725 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2726 | as_fn_set_status $ac_retval |
| 2727 | |
| 2728 | } # ac_fn_c_try_cpp |
| 2729 | |
| 2730 | # ac_fn_c_try_run LINENO |
| 2731 | # ---------------------- |
| 2732 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 2733 | # executables *can* be run. |
| 2734 | ac_fn_c_try_run () |
| 2735 | { |
| 2736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2737 | if { { ac_try="$ac_link" |
| 2738 | case "(($ac_try" in |
| 2739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2740 | *) ac_try_echo=$ac_try;; |
| 2741 | esac |
| 2742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2743 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2744 | (eval "$ac_link") 2>&5 |
| 2745 | ac_status=$? |
| 2746 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2747 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2748 | { { case "(($ac_try" in |
| 2749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2750 | *) ac_try_echo=$ac_try;; |
| 2751 | esac |
| 2752 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2753 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2754 | (eval "$ac_try") 2>&5 |
| 2755 | ac_status=$? |
| 2756 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2757 | test $ac_status = 0; }; } |
| 2758 | then : |
| 2759 | ac_retval=0 |
| 2760 | else case e in #( |
| 2761 | e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 2762 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 2763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2764 | |
| 2765 | ac_retval=$ac_status ;; |
| 2766 | esac |
| 2767 | fi |
| 2768 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2770 | as_fn_set_status $ac_retval |
| 2771 | |
| 2772 | } # ac_fn_c_try_run |
| 2773 | |
| 2774 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2775 | # -------------------------------------------- |
| 2776 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2777 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2778 | # computed |
| 2779 | ac_fn_c_compute_int () |
| 2780 | { |
| 2781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2782 | if test "$cross_compiling" = yes; then |
| 2783 | # Depending upon the size, compute the lo and hi bounds. |
| 2784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2785 | /* end confdefs.h. */ |
| 2786 | $4 |
| 2787 | int |
| 2788 | main (void) |
| 2789 | { |
| 2790 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2791 | test_array [0] = 0; |
| 2792 | return test_array [0]; |
| 2793 | |
| 2794 | ; |
| 2795 | return 0; |
| 2796 | } |
| 2797 | _ACEOF |
| 2798 | if ac_fn_c_try_compile "$LINENO" |
| 2799 | then : |
| 2800 | ac_lo=0 ac_mid=0 |
| 2801 | while :; do |
| 2802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2803 | /* end confdefs.h. */ |
| 2804 | $4 |
| 2805 | int |
| 2806 | main (void) |
| 2807 | { |
| 2808 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2809 | test_array [0] = 0; |
| 2810 | return test_array [0]; |
| 2811 | |
| 2812 | ; |
| 2813 | return 0; |
| 2814 | } |
| 2815 | _ACEOF |
| 2816 | if ac_fn_c_try_compile "$LINENO" |
| 2817 | then : |
| 2818 | ac_hi=$ac_mid; break |
| 2819 | else case e in #( |
| 2820 | e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2821 | if test $ac_lo -le $ac_mid; then |
| 2822 | ac_lo= ac_hi= |
| 2823 | break |
| 2824 | fi |
| 2825 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; |
| 2826 | esac |
| 2827 | fi |
| 2828 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2829 | done |
| 2830 | else case e in #( |
| 2831 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2832 | /* end confdefs.h. */ |
| 2833 | $4 |
| 2834 | int |
| 2835 | main (void) |
| 2836 | { |
| 2837 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2838 | test_array [0] = 0; |
| 2839 | return test_array [0]; |
| 2840 | |
| 2841 | ; |
| 2842 | return 0; |
| 2843 | } |
| 2844 | _ACEOF |
| 2845 | if ac_fn_c_try_compile "$LINENO" |
| 2846 | then : |
| 2847 | ac_hi=-1 ac_mid=-1 |
| 2848 | while :; do |
| 2849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2850 | /* end confdefs.h. */ |
| 2851 | $4 |
| 2852 | int |
| 2853 | main (void) |
| 2854 | { |
| 2855 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2856 | test_array [0] = 0; |
| 2857 | return test_array [0]; |
| 2858 | |
| 2859 | ; |
| 2860 | return 0; |
| 2861 | } |
| 2862 | _ACEOF |
| 2863 | if ac_fn_c_try_compile "$LINENO" |
| 2864 | then : |
| 2865 | ac_lo=$ac_mid; break |
| 2866 | else case e in #( |
| 2867 | e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2868 | if test $ac_mid -le $ac_hi; then |
| 2869 | ac_lo= ac_hi= |
| 2870 | break |
| 2871 | fi |
| 2872 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; |
| 2873 | esac |
| 2874 | fi |
| 2875 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2876 | done |
| 2877 | else case e in #( |
| 2878 | e) ac_lo= ac_hi= ;; |
| 2879 | esac |
| 2880 | fi |
| 2881 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2882 | esac |
| 2883 | fi |
| 2884 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2885 | # Binary search between lo and hi bounds. |
| 2886 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2887 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2889 | /* end confdefs.h. */ |
| 2890 | $4 |
| 2891 | int |
| 2892 | main (void) |
| 2893 | { |
| 2894 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2895 | test_array [0] = 0; |
| 2896 | return test_array [0]; |
| 2897 | |
| 2898 | ; |
| 2899 | return 0; |
| 2900 | } |
| 2901 | _ACEOF |
| 2902 | if ac_fn_c_try_compile "$LINENO" |
| 2903 | then : |
| 2904 | ac_hi=$ac_mid |
| 2905 | else case e in #( |
| 2906 | e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; |
| 2907 | esac |
| 2908 | fi |
| 2909 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2910 | done |
| 2911 | case $ac_lo in #(( |
| 2912 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2913 | '') ac_retval=1 ;; |
| 2914 | esac |
| 2915 | else |
| 2916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2917 | /* end confdefs.h. */ |
| 2918 | $4 |
| 2919 | static long int longval (void) { return $2; } |
| 2920 | static unsigned long int ulongval (void) { return $2; } |
| 2921 | #include <stdio.h> |
| 2922 | #include <stdlib.h> |
| 2923 | int |
| 2924 | main (void) |
| 2925 | { |
| 2926 | |
| 2927 | FILE *f = fopen ("conftest.val", "w"); |
| 2928 | if (! f) |
| 2929 | return 1; |
| 2930 | if (($2) < 0) |
| 2931 | { |
| 2932 | long int i = longval (); |
| 2933 | if (i != ($2)) |
| 2934 | return 1; |
| 2935 | fprintf (f, "%ld", i); |
| 2936 | } |
| 2937 | else |
| 2938 | { |
| 2939 | unsigned long int i = ulongval (); |
| 2940 | if (i != ($2)) |
| 2941 | return 1; |
| 2942 | fprintf (f, "%lu", i); |
| 2943 | } |
| 2944 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2945 | on some platforms. */ |
| 2946 | return ferror (f) || fclose (f) != 0; |
| 2947 | |
| 2948 | ; |
| 2949 | return 0; |
| 2950 | } |
| 2951 | _ACEOF |
| 2952 | if ac_fn_c_try_run "$LINENO" |
| 2953 | then : |
| 2954 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2955 | else case e in #( |
| 2956 | e) ac_retval=1 ;; |
| 2957 | esac |
| 2958 | fi |
| 2959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2960 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2961 | rm -f conftest.val |
| 2962 | |
| 2963 | fi |
| 2964 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2965 | as_fn_set_status $ac_retval |
| 2966 | |
| 2967 | } # ac_fn_c_compute_int |
| 2968 | ac_configure_args_raw= |
| 2969 | for ac_arg |
| 2970 | do |
| 2971 | case $ac_arg in |
| 2972 | *\'*) |
| 2973 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2974 | esac |
| 2975 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2976 | done |
| 2977 | |
| 2978 | case $ac_configure_args_raw in |
| 2979 | *$as_nl*) |
| 2980 | ac_safe_unquote= ;; |
| 2981 | *) |
| 2982 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2983 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2984 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2985 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2986 | esac |
| 2987 | |
| 2988 | cat >config.log <<_ACEOF |
| 2989 | This file contains any messages produced by compilers while |
| 2990 | running configure, to aid debugging if configure makes a mistake. |
| 2991 | |
| 2992 | It was created by Web2C $as_me 2026, which was |
| 2993 | generated by GNU Autoconf 2.72. Invocation command line was |
| 2994 | |
| 2995 | $ $0$ac_configure_args_raw |
| 2996 | |
| 2997 | _ACEOF |
| 2998 | exec 5>>config.log |
| 2999 | { |
| 3000 | cat <<_ASUNAME |
| 3001 | ## --------- ## |
| 3002 | ## Platform. ## |
| 3003 | ## --------- ## |
| 3004 | |
| 3005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3006 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 3007 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 3008 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 3009 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 3010 | |
| 3011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 3012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 3013 | |
| 3014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 3015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 3016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 3017 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 3018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 3019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 3020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 3021 | |
| 3022 | _ASUNAME |
| 3023 | |
| 3024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3025 | for as_dir in $PATH |
| 3026 | do |
| 3027 | IFS=$as_save_IFS |
| 3028 | case $as_dir in #((( |
| 3029 | '') as_dir=./ ;; |
| 3030 | */) ;; |
| 3031 | *) as_dir=$as_dir/ ;; |
| 3032 | esac |
| 3033 | printf "%s\n" "PATH: $as_dir" |
| 3034 | done |
| 3035 | IFS=$as_save_IFS |
| 3036 | |
| 3037 | } >&5 |
| 3038 | |
| 3039 | cat >&5 <<_ACEOF |
| 3040 | |
| 3041 | |
| 3042 | ## ----------- ## |
| 3043 | ## Core tests. ## |
| 3044 | ## ----------- ## |
| 3045 | |
| 3046 | _ACEOF |
| 3047 | |
| 3048 | |
| 3049 | # Keep a trace of the command line. |
| 3050 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3051 | # Strip out --silent because we don't want to record it for future runs. |
| 3052 | # Also quote any args containing shell meta-characters. |
| 3053 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3054 | ac_configure_args= |
| 3055 | ac_configure_args0= |
| 3056 | ac_configure_args1= |
| 3057 | ac_must_keep_next=false |
| 3058 | for ac_pass in 1 2 |
| 3059 | do |
| 3060 | for ac_arg |
| 3061 | do |
| 3062 | case $ac_arg in |
| 3063 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3065 | | -silent | --silent | --silen | --sile | --sil) |
| 3066 | continue ;; |
| 3067 | *\'*) |
| 3068 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3069 | esac |
| 3070 | case $ac_pass in |
| 3071 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 3072 | 2) |
| 3073 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 3074 | if test $ac_must_keep_next = true; then |
| 3075 | ac_must_keep_next=false # Got value, back to normal. |
| 3076 | else |
| 3077 | case $ac_arg in |
| 3078 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3079 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3080 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3081 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3082 | case "$ac_configure_args0 " in |
| 3083 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3084 | esac |
| 3085 | ;; |
| 3086 | -* ) ac_must_keep_next=true ;; |
| 3087 | esac |
| 3088 | fi |
| 3089 | as_fn_append ac_configure_args " '$ac_arg'" |
| 3090 | ;; |
| 3091 | esac |
| 3092 | done |
| 3093 | done |
| 3094 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3095 | { ac_configure_args1=; unset ac_configure_args1;} |
| 3096 | |
| 3097 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3098 | # config.log. We remove comments because anyway the quotes in there |
| 3099 | # would cause problems or look ugly. |
| 3100 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3101 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3102 | trap 'exit_status=$? |
| 3103 | # Sanitize IFS. |
| 3104 | IFS=" "" $as_nl" |
| 3105 | # Save into config.log some information that might help in debugging. |
| 3106 | { |
| 3107 | echo |
| 3108 | |
| 3109 | printf "%s\n" "## ---------------- ## |
| 3110 | ## Cache variables. ## |
| 3111 | ## ---------------- ##" |
| 3112 | echo |
| 3113 | # The following way of writing the cache mishandles newlines in values, |
| 3114 | ( |
| 3115 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3116 | eval ac_val=\$$ac_var |
| 3117 | case $ac_val in #( |
| 3118 | *${as_nl}*) |
| 3119 | case $ac_var in #( |
| 3120 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3121 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3122 | esac |
| 3123 | case $ac_var in #( |
| 3124 | _ | IFS | as_nl) ;; #( |
| 3125 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 3126 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 3127 | esac ;; |
| 3128 | esac |
| 3129 | done |
| 3130 | (set) 2>&1 | |
| 3131 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3132 | *${as_nl}ac_space=\ *) |
| 3133 | sed -n \ |
| 3134 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3136 | ;; #( |
| 3137 | *) |
| 3138 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3139 | ;; |
| 3140 | esac | |
| 3141 | sort |
| 3142 | ) |
| 3143 | echo |
| 3144 | |
| 3145 | printf "%s\n" "## ----------------- ## |
| 3146 | ## Output variables. ## |
| 3147 | ## ----------------- ##" |
| 3148 | echo |
| 3149 | for ac_var in $ac_subst_vars |
| 3150 | do |
| 3151 | eval ac_val=\$$ac_var |
| 3152 | case $ac_val in |
| 3153 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3154 | esac |
| 3155 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 3156 | done | sort |
| 3157 | echo |
| 3158 | |
| 3159 | if test -n "$ac_subst_files"; then |
| 3160 | printf "%s\n" "## ------------------- ## |
| 3161 | ## File substitutions. ## |
| 3162 | ## ------------------- ##" |
| 3163 | echo |
| 3164 | for ac_var in $ac_subst_files |
| 3165 | do |
| 3166 | eval ac_val=\$$ac_var |
| 3167 | case $ac_val in |
| 3168 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3169 | esac |
| 3170 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 3171 | done | sort |
| 3172 | echo |
| 3173 | fi |
| 3174 | |
| 3175 | if test -s confdefs.h; then |
| 3176 | printf "%s\n" "## ----------- ## |
| 3177 | ## confdefs.h. ## |
| 3178 | ## ----------- ##" |
| 3179 | echo |
| 3180 | cat confdefs.h |
| 3181 | echo |
| 3182 | fi |
| 3183 | test "$ac_signal" != 0 && |
| 3184 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 3185 | printf "%s\n" "$as_me: exit $exit_status" |
| 3186 | } >&5 |
| 3187 | rm -f core *.core core.conftest.* && |
| 3188 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3189 | exit $exit_status |
| 3190 | ' 0 |
| 3191 | for ac_signal in 1 2 13 15; do |
| 3192 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 3193 | done |
| 3194 | ac_signal=0 |
| 3195 | |
| 3196 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3197 | rm -f -r conftest* confdefs.h |
| 3198 | |
| 3199 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 3200 | |
| 3201 | # Predefined preprocessor variables. |
| 3202 | |
| 3203 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 3204 | |
| 3205 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 3206 | |
| 3207 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 3208 | |
| 3209 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 3210 | |
| 3211 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 3212 | |
| 3213 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 3214 | |
| 3215 | |
| 3216 | # Let the site file select an alternate cache file if it wants to. |
| 3217 | # Prefer an explicitly selected file to automatically selected ones. |
| 3218 | if test -n "$CONFIG_SITE"; then |
| 3219 | ac_site_files="$CONFIG_SITE" |
| 3220 | elif test "x$prefix" != xNONE; then |
| 3221 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 3222 | else |
| 3223 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 3224 | fi |
| 3225 | |
| 3226 | for ac_site_file in $ac_site_files |
| 3227 | do |
| 3228 | case $ac_site_file in #( |
| 3229 | */*) : |
| 3230 | ;; #( |
| 3231 | *) : |
| 3232 | ac_site_file=./$ac_site_file ;; |
| 3233 | esac |
| 3234 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 3235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 3236 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 3237 | sed 's/^/| /' "$ac_site_file" >&5 |
| 3238 | . "$ac_site_file" \ |
| 3239 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3240 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3241 | as_fn_error $? "failed to load site script $ac_site_file |
| 3242 | See 'config.log' for more details" "$LINENO" 5; } |
| 3243 | fi |
| 3244 | done |
| 3245 | |
| 3246 | if test -r "$cache_file"; then |
| 3247 | # Some versions of bash will fail to source /dev/null (special files |
| 3248 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3249 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 3250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 3251 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 3252 | case $cache_file in |
| 3253 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3254 | *) . "./$cache_file";; |
| 3255 | esac |
| 3256 | fi |
| 3257 | else |
| 3258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 3259 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 3260 | >$cache_file |
| 3261 | fi |
| 3262 | |
| 3263 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 3264 | # Test code for whether the C compiler supports C89 (global declarations) |
| 3265 | ac_c_conftest_c89_globals=' |
| 3266 | /* Does the compiler advertise C89 conformance? |
| 3267 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 3268 | while being otherwise adequately conformant. */ |
| 3269 | #if !defined __STDC__ |
| 3270 | # error "Compiler does not advertise C89 conformance" |
| 3271 | #endif |
| 3272 | |
| 3273 | #include <stddef.h> |
| 3274 | #include <stdarg.h> |
| 3275 | struct stat; |
| 3276 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 3277 | struct buf { int x; }; |
| 3278 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 3279 | static char *e (char **p, int i) |
| 3280 | { |
| 3281 | return p[i]; |
| 3282 | } |
| 3283 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3284 | { |
| 3285 | char *s; |
| 3286 | va_list v; |
| 3287 | va_start (v,p); |
| 3288 | s = g (p, va_arg (v,int)); |
| 3289 | va_end (v); |
| 3290 | return s; |
| 3291 | } |
| 3292 | |
| 3293 | /* C89 style stringification. */ |
| 3294 | #define noexpand_stringify(a) #a |
| 3295 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 3296 | |
| 3297 | /* C89 style token pasting. Exercises some of the corner cases that |
| 3298 | e.g. old MSVC gets wrong, but not very hard. */ |
| 3299 | #define noexpand_concat(a,b) a##b |
| 3300 | #define expand_concat(a,b) noexpand_concat(a,b) |
| 3301 | extern int vA; |
| 3302 | extern int vbee; |
| 3303 | #define aye A |
| 3304 | #define bee B |
| 3305 | int *pvA = &expand_concat(v,aye); |
| 3306 | int *pvbee = &noexpand_concat(v,bee); |
| 3307 | |
| 3308 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3309 | function prototypes and stuff, but not \xHH hex character constants. |
| 3310 | These do not provoke an error unfortunately, instead are silently treated |
| 3311 | as an "x". The following induces an error, until -std is added to get |
| 3312 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 3313 | array size at least. It is necessary to write \x00 == 0 to get something |
| 3314 | that is true only with -std. */ |
| 3315 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 3316 | |
| 3317 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3318 | inside strings and character constants. */ |
| 3319 | #define FOO(x) '\''x'\'' |
| 3320 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 3321 | |
| 3322 | int test (int i, double x); |
| 3323 | struct s1 {int (*f) (int a);}; |
| 3324 | struct s2 {int (*f) (double a);}; |
| 3325 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 3326 | int, int);' |
| 3327 | |
| 3328 | # Test code for whether the C compiler supports C89 (body of main). |
| 3329 | ac_c_conftest_c89_main=' |
| 3330 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 3331 | ' |
| 3332 | |
| 3333 | # Test code for whether the C compiler supports C99 (global declarations) |
| 3334 | ac_c_conftest_c99_globals=' |
| 3335 | /* Does the compiler advertise C99 conformance? */ |
| 3336 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 3337 | # error "Compiler does not advertise C99 conformance" |
| 3338 | #endif |
| 3339 | |
| 3340 | // See if C++-style comments work. |
| 3341 | |
| 3342 | #include <stdbool.h> |
| 3343 | extern int puts (const char *); |
| 3344 | extern int printf (const char *, ...); |
| 3345 | extern int dprintf (int, const char *, ...); |
| 3346 | extern void *malloc (size_t); |
| 3347 | extern void free (void *); |
| 3348 | |
| 3349 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 3350 | // dprintf is used instead of fprintf to avoid needing to declare |
| 3351 | // FILE and stderr. |
| 3352 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 3353 | #define showlist(...) puts (#__VA_ARGS__) |
| 3354 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 3355 | static void |
| 3356 | test_varargs_macros (void) |
| 3357 | { |
| 3358 | int x = 1234; |
| 3359 | int y = 5678; |
| 3360 | debug ("Flag"); |
| 3361 | debug ("X = %d\n", x); |
| 3362 | showlist (The first, second, and third items.); |
| 3363 | report (x>y, "x is %d but y is %d", x, y); |
| 3364 | } |
| 3365 | |
| 3366 | // Check long long types. |
| 3367 | #define BIG64 18446744073709551615ull |
| 3368 | #define BIG32 4294967295ul |
| 3369 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 3370 | #if !BIG_OK |
| 3371 | #error "your preprocessor is broken" |
| 3372 | #endif |
| 3373 | #if BIG_OK |
| 3374 | #else |
| 3375 | #error "your preprocessor is broken" |
| 3376 | #endif |
| 3377 | static long long int bignum = -9223372036854775807LL; |
| 3378 | static unsigned long long int ubignum = BIG64; |
| 3379 | |
| 3380 | struct incomplete_array |
| 3381 | { |
| 3382 | int datasize; |
| 3383 | double data[]; |
| 3384 | }; |
| 3385 | |
| 3386 | struct named_init { |
| 3387 | int number; |
| 3388 | const wchar_t *name; |
| 3389 | double average; |
| 3390 | }; |
| 3391 | |
| 3392 | typedef const char *ccp; |
| 3393 | |
| 3394 | static inline int |
| 3395 | test_restrict (ccp restrict text) |
| 3396 | { |
| 3397 | // Iterate through items via the restricted pointer. |
| 3398 | // Also check for declarations in for loops. |
| 3399 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 3400 | continue; |
| 3401 | return 0; |
| 3402 | } |
| 3403 | |
| 3404 | // Check varargs and va_copy. |
| 3405 | static bool |
| 3406 | test_varargs (const char *format, ...) |
| 3407 | { |
| 3408 | va_list args; |
| 3409 | va_start (args, format); |
| 3410 | va_list args_copy; |
| 3411 | va_copy (args_copy, args); |
| 3412 | |
| 3413 | const char *str = ""; |
| 3414 | int number = 0; |
| 3415 | float fnumber = 0; |
| 3416 | |
| 3417 | while (*format) |
| 3418 | { |
| 3419 | switch (*format++) |
| 3420 | { |
| 3421 | case '\''s'\'': // string |
| 3422 | str = va_arg (args_copy, const char *); |
| 3423 | break; |
| 3424 | case '\''d'\'': // int |
| 3425 | number = va_arg (args_copy, int); |
| 3426 | break; |
| 3427 | case '\''f'\'': // float |
| 3428 | fnumber = va_arg (args_copy, double); |
| 3429 | break; |
| 3430 | default: |
| 3431 | break; |
| 3432 | } |
| 3433 | } |
| 3434 | va_end (args_copy); |
| 3435 | va_end (args); |
| 3436 | |
| 3437 | return *str && number && fnumber; |
| 3438 | } |
| 3439 | ' |
| 3440 | |
| 3441 | # Test code for whether the C compiler supports C99 (body of main). |
| 3442 | ac_c_conftest_c99_main=' |
| 3443 | // Check bool. |
| 3444 | _Bool success = false; |
| 3445 | success |= (argc != 0); |
| 3446 | |
| 3447 | // Check restrict. |
| 3448 | if (test_restrict ("String literal") == 0) |
| 3449 | success = true; |
| 3450 | char *restrict newvar = "Another string"; |
| 3451 | |
| 3452 | // Check varargs. |
| 3453 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 3454 | test_varargs_macros (); |
| 3455 | |
| 3456 | // Check flexible array members. |
| 3457 | struct incomplete_array *ia = |
| 3458 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 3459 | ia->datasize = 10; |
| 3460 | for (int i = 0; i < ia->datasize; ++i) |
| 3461 | ia->data[i] = i * 1.234; |
| 3462 | // Work around memory leak warnings. |
| 3463 | free (ia); |
| 3464 | |
| 3465 | // Check named initializers. |
| 3466 | struct named_init ni = { |
| 3467 | .number = 34, |
| 3468 | .name = L"Test wide string", |
| 3469 | .average = 543.34343, |
| 3470 | }; |
| 3471 | |
| 3472 | ni.number = 58; |
| 3473 | |
| 3474 | int dynamic_array[ni.number]; |
| 3475 | dynamic_array[0] = argv[0][0]; |
| 3476 | dynamic_array[ni.number - 1] = 543; |
| 3477 | |
| 3478 | // work around unused variable warnings |
| 3479 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 3480 | || dynamic_array[ni.number - 1] != 543); |
| 3481 | ' |
| 3482 | |
| 3483 | # Test code for whether the C compiler supports C11 (global declarations) |
| 3484 | ac_c_conftest_c11_globals=' |
| 3485 | /* Does the compiler advertise C11 conformance? */ |
| 3486 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 3487 | # error "Compiler does not advertise C11 conformance" |
| 3488 | #endif |
| 3489 | |
| 3490 | // Check _Alignas. |
| 3491 | char _Alignas (double) aligned_as_double; |
| 3492 | char _Alignas (0) no_special_alignment; |
| 3493 | extern char aligned_as_int; |
| 3494 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 3495 | |
| 3496 | // Check _Alignof. |
| 3497 | enum |
| 3498 | { |
| 3499 | int_alignment = _Alignof (int), |
| 3500 | int_array_alignment = _Alignof (int[100]), |
| 3501 | char_alignment = _Alignof (char) |
| 3502 | }; |
| 3503 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 3504 | |
| 3505 | // Check _Noreturn. |
| 3506 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 3507 | |
| 3508 | // Check _Static_assert. |
| 3509 | struct test_static_assert |
| 3510 | { |
| 3511 | int x; |
| 3512 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 3513 | "_Static_assert does not work in struct"); |
| 3514 | long int y; |
| 3515 | }; |
| 3516 | |
| 3517 | // Check UTF-8 literals. |
| 3518 | #define u8 syntax error! |
| 3519 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 3520 | |
| 3521 | // Check duplicate typedefs. |
| 3522 | typedef long *long_ptr; |
| 3523 | typedef long int *long_ptr; |
| 3524 | typedef long_ptr long_ptr; |
| 3525 | |
| 3526 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 3527 | struct anonymous |
| 3528 | { |
| 3529 | union { |
| 3530 | struct { int i; int j; }; |
| 3531 | struct { int k; long int l; } w; |
| 3532 | }; |
| 3533 | int m; |
| 3534 | } v1; |
| 3535 | ' |
| 3536 | |
| 3537 | # Test code for whether the C compiler supports C11 (body of main). |
| 3538 | ac_c_conftest_c11_main=' |
| 3539 | _Static_assert ((offsetof (struct anonymous, i) |
| 3540 | == offsetof (struct anonymous, w.k)), |
| 3541 | "Anonymous union alignment botch"); |
| 3542 | v1.i = 2; |
| 3543 | v1.w.k = 5; |
| 3544 | ok |= v1.i != 5; |
| 3545 | ' |
| 3546 | |
| 3547 | # Test code for whether the C compiler supports C11 (complete). |
| 3548 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 3549 | ${ac_c_conftest_c99_globals} |
| 3550 | ${ac_c_conftest_c11_globals} |
| 3551 | |
| 3552 | int |
| 3553 | main (int argc, char **argv) |
| 3554 | { |
| 3555 | int ok = 0; |
| 3556 | ${ac_c_conftest_c89_main} |
| 3557 | ${ac_c_conftest_c99_main} |
| 3558 | ${ac_c_conftest_c11_main} |
| 3559 | return ok; |
| 3560 | } |
| 3561 | " |
| 3562 | |
| 3563 | # Test code for whether the C compiler supports C99 (complete). |
| 3564 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 3565 | ${ac_c_conftest_c99_globals} |
| 3566 | |
| 3567 | int |
| 3568 | main (int argc, char **argv) |
| 3569 | { |
| 3570 | int ok = 0; |
| 3571 | ${ac_c_conftest_c89_main} |
| 3572 | ${ac_c_conftest_c99_main} |
| 3573 | return ok; |
| 3574 | } |
| 3575 | " |
| 3576 | |
| 3577 | # Test code for whether the C compiler supports C89 (complete). |
| 3578 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 3579 | |
| 3580 | int |
| 3581 | main (int argc, char **argv) |
| 3582 | { |
| 3583 | int ok = 0; |
| 3584 | ${ac_c_conftest_c89_main} |
| 3585 | return ok; |
| 3586 | } |
| 3587 | " |
| 3588 | |
| 3589 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 3590 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 3591 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 3592 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 3593 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 3594 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 3595 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 3596 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 3597 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 3598 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 3599 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
| 3600 | ac_cxx_conftest_cxx98_globals=' |
| 3601 | // Does the compiler advertise C++98 conformance? |
| 3602 | #if !defined __cplusplus || __cplusplus < 199711L |
| 3603 | # error "Compiler does not advertise C++98 conformance" |
| 3604 | #endif |
| 3605 | |
| 3606 | // These inclusions are to reject old compilers that |
| 3607 | // lack the unsuffixed header files. |
| 3608 | #include <cstdlib> |
| 3609 | #include <exception> |
| 3610 | |
| 3611 | // <cassert> and <cstring> are *not* freestanding headers in C++98. |
| 3612 | extern void assert (int); |
| 3613 | namespace std { |
| 3614 | extern int strcmp (const char *, const char *); |
| 3615 | } |
| 3616 | |
| 3617 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
| 3618 | using std::exception; |
| 3619 | using std::strcmp; |
| 3620 | |
| 3621 | namespace { |
| 3622 | |
| 3623 | void test_exception_syntax() |
| 3624 | { |
| 3625 | try { |
| 3626 | throw "test"; |
| 3627 | } catch (const char *s) { |
| 3628 | // Extra parentheses suppress a warning when building autoconf itself, |
| 3629 | // due to lint rules shared with more typical C programs. |
| 3630 | assert (!(strcmp) (s, "test")); |
| 3631 | } |
| 3632 | } |
| 3633 | |
| 3634 | template <typename T> struct test_template |
| 3635 | { |
| 3636 | T const val; |
| 3637 | explicit test_template(T t) : val(t) {} |
| 3638 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
| 3639 | }; |
| 3640 | |
| 3641 | } // anonymous namespace |
| 3642 | ' |
| 3643 | |
| 3644 | # Test code for whether the C++ compiler supports C++98 (body of main) |
| 3645 | ac_cxx_conftest_cxx98_main=' |
| 3646 | assert (argc); |
| 3647 | assert (! argv[0]); |
| 3648 | { |
| 3649 | test_exception_syntax (); |
| 3650 | test_template<double> tt (2.0); |
| 3651 | assert (tt.add (4) == 6.0); |
| 3652 | assert (true && !false); |
| 3653 | } |
| 3654 | ' |
| 3655 | |
| 3656 | # Test code for whether the C++ compiler supports C++11 (global declarations) |
| 3657 | ac_cxx_conftest_cxx11_globals=' |
| 3658 | // Does the compiler advertise C++ 2011 conformance? |
| 3659 | #if !defined __cplusplus || __cplusplus < 201103L |
| 3660 | # error "Compiler does not advertise C++11 conformance" |
| 3661 | #endif |
| 3662 | |
| 3663 | namespace cxx11test |
| 3664 | { |
| 3665 | constexpr int get_val() { return 20; } |
| 3666 | |
| 3667 | struct testinit |
| 3668 | { |
| 3669 | int i; |
| 3670 | double d; |
| 3671 | }; |
| 3672 | |
| 3673 | class delegate |
| 3674 | { |
| 3675 | public: |
| 3676 | delegate(int n) : n(n) {} |
| 3677 | delegate(): delegate(2354) {} |
| 3678 | |
| 3679 | virtual int getval() { return this->n; }; |
| 3680 | protected: |
| 3681 | int n; |
| 3682 | }; |
| 3683 | |
| 3684 | class overridden : public delegate |
| 3685 | { |
| 3686 | public: |
| 3687 | overridden(int n): delegate(n) {} |
| 3688 | virtual int getval() override final { return this->n * 2; } |
| 3689 | }; |
| 3690 | |
| 3691 | class nocopy |
| 3692 | { |
| 3693 | public: |
| 3694 | nocopy(int i): i(i) {} |
| 3695 | nocopy() = default; |
| 3696 | nocopy(const nocopy&) = delete; |
| 3697 | nocopy & operator=(const nocopy&) = delete; |
| 3698 | private: |
| 3699 | int i; |
| 3700 | }; |
| 3701 | |
| 3702 | // for testing lambda expressions |
| 3703 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
| 3704 | { |
| 3705 | return f(v); |
| 3706 | } |
| 3707 | |
| 3708 | // for testing variadic templates and trailing return types |
| 3709 | template <typename V> auto sum(V first) -> V |
| 3710 | { |
| 3711 | return first; |
| 3712 | } |
| 3713 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
| 3714 | { |
| 3715 | return first + sum(rest...); |
| 3716 | } |
| 3717 | } |
| 3718 | ' |
| 3719 | |
| 3720 | # Test code for whether the C++ compiler supports C++11 (body of main) |
| 3721 | ac_cxx_conftest_cxx11_main=' |
| 3722 | { |
| 3723 | // Test auto and decltype |
| 3724 | auto a1 = 6538; |
| 3725 | auto a2 = 48573953.4; |
| 3726 | auto a3 = "String literal"; |
| 3727 | |
| 3728 | int total = 0; |
| 3729 | for (auto i = a3; *i; ++i) { total += *i; } |
| 3730 | |
| 3731 | decltype(a2) a4 = 34895.034; |
| 3732 | } |
| 3733 | { |
| 3734 | // Test constexpr |
| 3735 | short sa[cxx11test::get_val()] = { 0 }; |
| 3736 | } |
| 3737 | { |
| 3738 | // Test initializer lists |
| 3739 | cxx11test::testinit il = { 4323, 435234.23544 }; |
| 3740 | } |
| 3741 | { |
| 3742 | // Test range-based for |
| 3743 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
| 3744 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
| 3745 | for (auto &x : array) { x += 23; } |
| 3746 | } |
| 3747 | { |
| 3748 | // Test lambda expressions |
| 3749 | using cxx11test::eval; |
| 3750 | assert (eval ([](int x) { return x*2; }, 21) == 42); |
| 3751 | double d = 2.0; |
| 3752 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
| 3753 | assert (d == 5.0); |
| 3754 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
| 3755 | assert (d == 5.0); |
| 3756 | } |
| 3757 | { |
| 3758 | // Test use of variadic templates |
| 3759 | using cxx11test::sum; |
| 3760 | auto a = sum(1); |
| 3761 | auto b = sum(1, 2); |
| 3762 | auto c = sum(1.0, 2.0, 3.0); |
| 3763 | } |
| 3764 | { |
| 3765 | // Test constructor delegation |
| 3766 | cxx11test::delegate d1; |
| 3767 | cxx11test::delegate d2(); |
| 3768 | cxx11test::delegate d3(45); |
| 3769 | } |
| 3770 | { |
| 3771 | // Test override and final |
| 3772 | cxx11test::overridden o1(55464); |
| 3773 | } |
| 3774 | { |
| 3775 | // Test nullptr |
| 3776 | char *c = nullptr; |
| 3777 | } |
| 3778 | { |
| 3779 | // Test template brackets |
| 3780 | test_template<::test_template<int>> v(test_template<int>(12)); |
| 3781 | } |
| 3782 | { |
| 3783 | // Unicode literals |
| 3784 | char const *utf8 = u8"UTF-8 string \u2500"; |
| 3785 | char16_t const *utf16 = u"UTF-8 string \u2500"; |
| 3786 | char32_t const *utf32 = U"UTF-32 string \u2500"; |
| 3787 | } |
| 3788 | ' |
| 3789 | |
| 3790 | # Test code for whether the C compiler supports C++11 (complete). |
| 3791 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
| 3792 | ${ac_cxx_conftest_cxx11_globals} |
| 3793 | |
| 3794 | int |
| 3795 | main (int argc, char **argv) |
| 3796 | { |
| 3797 | int ok = 0; |
| 3798 | ${ac_cxx_conftest_cxx98_main} |
| 3799 | ${ac_cxx_conftest_cxx11_main} |
| 3800 | return ok; |
| 3801 | } |
| 3802 | " |
| 3803 | |
| 3804 | # Test code for whether the C compiler supports C++98 (complete). |
| 3805 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
| 3806 | int |
| 3807 | main (int argc, char **argv) |
| 3808 | { |
| 3809 | int ok = 0; |
| 3810 | ${ac_cxx_conftest_cxx98_main} |
| 3811 | return ok; |
| 3812 | } |
| 3813 | " |
| 3814 | |
| 3815 | |
| 3816 | # Auxiliary files required by this configure script. |
| 3817 | ac_aux_files="config.guess config.sub ltmain.sh ar-lib missing install-sh compile" |
| 3818 | |
| 3819 | # Locations in which to look for auxiliary files. |
| 3820 | ac_aux_dir_candidates="${srcdir}/../../build-aux" |
| 3821 | |
| 3822 | # Search for a directory containing all of the required auxiliary files, |
| 3823 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3824 | # If we don't find one directory that contains all the files we need, |
| 3825 | # we report the set of missing files from the *first* directory in |
| 3826 | # $ac_aux_dir_candidates and give up. |
| 3827 | ac_missing_aux_files="" |
| 3828 | ac_first_candidate=: |
| 3829 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3831 | as_found=false |
| 3832 | for as_dir in $ac_aux_dir_candidates |
| 3833 | do |
| 3834 | IFS=$as_save_IFS |
| 3835 | case $as_dir in #((( |
| 3836 | '') as_dir=./ ;; |
| 3837 | */) ;; |
| 3838 | *) as_dir=$as_dir/ ;; |
| 3839 | esac |
| 3840 | as_found=: |
| 3841 | |
| 3842 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3843 | ac_aux_dir_found=yes |
| 3844 | ac_install_sh= |
| 3845 | for ac_aux in $ac_aux_files |
| 3846 | do |
| 3847 | # As a special case, if "install-sh" is required, that requirement |
| 3848 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3849 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 3850 | if test x"$ac_aux" = x"install-sh" |
| 3851 | then |
| 3852 | if test -f "${as_dir}install-sh"; then |
| 3853 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3854 | ac_install_sh="${as_dir}install-sh -c" |
| 3855 | elif test -f "${as_dir}install.sh"; then |
| 3856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3857 | ac_install_sh="${as_dir}install.sh -c" |
| 3858 | elif test -f "${as_dir}shtool"; then |
| 3859 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3860 | ac_install_sh="${as_dir}shtool install -c" |
| 3861 | else |
| 3862 | ac_aux_dir_found=no |
| 3863 | if $ac_first_candidate; then |
| 3864 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3865 | else |
| 3866 | break |
| 3867 | fi |
| 3868 | fi |
| 3869 | else |
| 3870 | if test -f "${as_dir}${ac_aux}"; then |
| 3871 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3872 | else |
| 3873 | ac_aux_dir_found=no |
| 3874 | if $ac_first_candidate; then |
| 3875 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3876 | else |
| 3877 | break |
| 3878 | fi |
| 3879 | fi |
| 3880 | fi |
| 3881 | done |
| 3882 | if test "$ac_aux_dir_found" = yes; then |
| 3883 | ac_aux_dir="$as_dir" |
| 3884 | break |
| 3885 | fi |
| 3886 | ac_first_candidate=false |
| 3887 | |
| 3888 | as_found=false |
| 3889 | done |
| 3890 | IFS=$as_save_IFS |
| 3891 | if $as_found |
| 3892 | then : |
| 3893 | |
| 3894 | else case e in #( |
| 3895 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; |
| 3896 | esac |
| 3897 | fi |
| 3898 | |
| 3899 | |
| 3900 | # These three variables are undocumented and unsupported, |
| 3901 | # and are intended to be withdrawn in a future Autoconf release. |
| 3902 | # They can cause serious problems if a builder's source tree is in a directory |
| 3903 | # whose full name contains unusual characters. |
| 3904 | if test -f "${ac_aux_dir}config.guess"; then |
| 3905 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3906 | fi |
| 3907 | if test -f "${ac_aux_dir}config.sub"; then |
| 3908 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3909 | fi |
| 3910 | if test -f "$ac_aux_dir/configure"; then |
| 3911 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3912 | fi |
| 3913 | |
| 3914 | # Check that the precious variables saved in the cache have kept the same |
| 3915 | # value. |
| 3916 | ac_cache_corrupted=false |
| 3917 | for ac_var in $ac_precious_vars; do |
| 3918 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3919 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3920 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3921 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3922 | case $ac_old_set,$ac_new_set in |
| 3923 | set,) |
| 3924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 3925 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 3926 | ac_cache_corrupted=: ;; |
| 3927 | ,set) |
| 3928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 3929 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 3930 | ac_cache_corrupted=: ;; |
| 3931 | ,);; |
| 3932 | *) |
| 3933 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3934 | # differences in whitespace do not lead to failure. |
| 3935 | ac_old_val_w=`echo x $ac_old_val` |
| 3936 | ac_new_val_w=`echo x $ac_new_val` |
| 3937 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 3939 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 3940 | ac_cache_corrupted=: |
| 3941 | else |
| 3942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 3943 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 3944 | eval $ac_var=\$ac_old_val |
| 3945 | fi |
| 3946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 3947 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 3948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 3949 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 3950 | fi;; |
| 3951 | esac |
| 3952 | # Pass precious variables to config.status. |
| 3953 | if test "$ac_new_set" = set; then |
| 3954 | case $ac_new_val in |
| 3955 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3956 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3957 | esac |
| 3958 | case " $ac_configure_args " in |
| 3959 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3960 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3961 | esac |
| 3962 | fi |
| 3963 | done |
| 3964 | if $ac_cache_corrupted; then |
| 3965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3966 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3968 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3969 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 3970 | and start over" "$LINENO" 5 |
| 3971 | fi |
| 3972 | ## -------------------- ## |
| 3973 | ## Main body of script. ## |
| 3974 | ## -------------------- ## |
| 3975 | |
| 3976 | ac_ext=c |
| 3977 | ac_cpp='$CPP $CPPFLAGS' |
| 3978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3981 | |
| 3982 | |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | |
| 3988 | WEB2CVERSION=2026 |
| 3989 | |
| 3990 | |
| 3991 | # LuaTeX requires system extensions for socket support. |
| 3992 | # Must be at the very beginning or warnings about compiler tests. |
| 3993 | # SyncTeX and plenty of others unconditionally define GNU_SOURCE, |
| 3994 | # so it's probably more consistent to always use it. |
| 3995 | |
| 3996 | # Also, we can't easily make it conditional on LuaTeX only because then |
| 3997 | # OBJEXT ends up defined as the empty string (error: no way to make |
| 3998 | # "basechsuffix."), which seems odd, but whatever. |
| 3999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using system extensions" >&5 |
| 4000 | printf "%s\n" "$as_me: using system extensions" >&6;} |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | # Expand $ac_aux_dir to an absolute path. |
| 4013 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 4014 | |
| 4015 | ac_ext=c |
| 4016 | ac_cpp='$CPP $CPPFLAGS' |
| 4017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4020 | if test -n "$ac_tool_prefix"; then |
| 4021 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4022 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4024 | printf %s "checking for $ac_word... " >&6; } |
| 4025 | if test ${ac_cv_prog_CC+y} |
| 4026 | then : |
| 4027 | printf %s "(cached) " >&6 |
| 4028 | else case e in #( |
| 4029 | e) if test -n "$CC"; then |
| 4030 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4031 | else |
| 4032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4033 | for as_dir in $PATH |
| 4034 | do |
| 4035 | IFS=$as_save_IFS |
| 4036 | case $as_dir in #((( |
| 4037 | '') as_dir=./ ;; |
| 4038 | */) ;; |
| 4039 | *) as_dir=$as_dir/ ;; |
| 4040 | esac |
| 4041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4042 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4043 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4044 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4045 | break 2 |
| 4046 | fi |
| 4047 | done |
| 4048 | done |
| 4049 | IFS=$as_save_IFS |
| 4050 | |
| 4051 | fi ;; |
| 4052 | esac |
| 4053 | fi |
| 4054 | CC=$ac_cv_prog_CC |
| 4055 | if test -n "$CC"; then |
| 4056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4057 | printf "%s\n" "$CC" >&6; } |
| 4058 | else |
| 4059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4060 | printf "%s\n" "no" >&6; } |
| 4061 | fi |
| 4062 | |
| 4063 | |
| 4064 | fi |
| 4065 | if test -z "$ac_cv_prog_CC"; then |
| 4066 | ac_ct_CC=$CC |
| 4067 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4068 | set dummy gcc; ac_word=$2 |
| 4069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4070 | printf %s "checking for $ac_word... " >&6; } |
| 4071 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4072 | then : |
| 4073 | printf %s "(cached) " >&6 |
| 4074 | else case e in #( |
| 4075 | e) if test -n "$ac_ct_CC"; then |
| 4076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4077 | else |
| 4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4079 | for as_dir in $PATH |
| 4080 | do |
| 4081 | IFS=$as_save_IFS |
| 4082 | case $as_dir in #((( |
| 4083 | '') as_dir=./ ;; |
| 4084 | */) ;; |
| 4085 | *) as_dir=$as_dir/ ;; |
| 4086 | esac |
| 4087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4088 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4089 | ac_cv_prog_ac_ct_CC="gcc" |
| 4090 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4091 | break 2 |
| 4092 | fi |
| 4093 | done |
| 4094 | done |
| 4095 | IFS=$as_save_IFS |
| 4096 | |
| 4097 | fi ;; |
| 4098 | esac |
| 4099 | fi |
| 4100 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4101 | if test -n "$ac_ct_CC"; then |
| 4102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4103 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4104 | else |
| 4105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4106 | printf "%s\n" "no" >&6; } |
| 4107 | fi |
| 4108 | |
| 4109 | if test "x$ac_ct_CC" = x; then |
| 4110 | CC="" |
| 4111 | else |
| 4112 | case $cross_compiling:$ac_tool_warned in |
| 4113 | yes:) |
| 4114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4115 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4116 | ac_tool_warned=yes ;; |
| 4117 | esac |
| 4118 | CC=$ac_ct_CC |
| 4119 | fi |
| 4120 | else |
| 4121 | CC="$ac_cv_prog_CC" |
| 4122 | fi |
| 4123 | |
| 4124 | if test -z "$CC"; then |
| 4125 | if test -n "$ac_tool_prefix"; then |
| 4126 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4127 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4129 | printf %s "checking for $ac_word... " >&6; } |
| 4130 | if test ${ac_cv_prog_CC+y} |
| 4131 | then : |
| 4132 | printf %s "(cached) " >&6 |
| 4133 | else case e in #( |
| 4134 | e) if test -n "$CC"; then |
| 4135 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4136 | else |
| 4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4138 | for as_dir in $PATH |
| 4139 | do |
| 4140 | IFS=$as_save_IFS |
| 4141 | case $as_dir in #((( |
| 4142 | '') as_dir=./ ;; |
| 4143 | */) ;; |
| 4144 | *) as_dir=$as_dir/ ;; |
| 4145 | esac |
| 4146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4147 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4148 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4150 | break 2 |
| 4151 | fi |
| 4152 | done |
| 4153 | done |
| 4154 | IFS=$as_save_IFS |
| 4155 | |
| 4156 | fi ;; |
| 4157 | esac |
| 4158 | fi |
| 4159 | CC=$ac_cv_prog_CC |
| 4160 | if test -n "$CC"; then |
| 4161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4162 | printf "%s\n" "$CC" >&6; } |
| 4163 | else |
| 4164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4165 | printf "%s\n" "no" >&6; } |
| 4166 | fi |
| 4167 | |
| 4168 | |
| 4169 | fi |
| 4170 | fi |
| 4171 | if test -z "$CC"; then |
| 4172 | # Extract the first word of "cc", so it can be a program name with args. |
| 4173 | set dummy cc; ac_word=$2 |
| 4174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4175 | printf %s "checking for $ac_word... " >&6; } |
| 4176 | if test ${ac_cv_prog_CC+y} |
| 4177 | then : |
| 4178 | printf %s "(cached) " >&6 |
| 4179 | else case e in #( |
| 4180 | e) if test -n "$CC"; then |
| 4181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4182 | else |
| 4183 | ac_prog_rejected=no |
| 4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4185 | for as_dir in $PATH |
| 4186 | do |
| 4187 | IFS=$as_save_IFS |
| 4188 | case $as_dir in #((( |
| 4189 | '') as_dir=./ ;; |
| 4190 | */) ;; |
| 4191 | *) as_dir=$as_dir/ ;; |
| 4192 | esac |
| 4193 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4194 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4195 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4196 | ac_prog_rejected=yes |
| 4197 | continue |
| 4198 | fi |
| 4199 | ac_cv_prog_CC="cc" |
| 4200 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4201 | break 2 |
| 4202 | fi |
| 4203 | done |
| 4204 | done |
| 4205 | IFS=$as_save_IFS |
| 4206 | |
| 4207 | if test $ac_prog_rejected = yes; then |
| 4208 | # We found a bogon in the path, so make sure we never use it. |
| 4209 | set dummy $ac_cv_prog_CC |
| 4210 | shift |
| 4211 | if test $# != 0; then |
| 4212 | # We chose a different compiler from the bogus one. |
| 4213 | # However, it has the same basename, so the bogon will be chosen |
| 4214 | # first if we set CC to just the basename; use the full file name. |
| 4215 | shift |
| 4216 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4217 | fi |
| 4218 | fi |
| 4219 | fi ;; |
| 4220 | esac |
| 4221 | fi |
| 4222 | CC=$ac_cv_prog_CC |
| 4223 | if test -n "$CC"; then |
| 4224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4225 | printf "%s\n" "$CC" >&6; } |
| 4226 | else |
| 4227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4228 | printf "%s\n" "no" >&6; } |
| 4229 | fi |
| 4230 | |
| 4231 | |
| 4232 | fi |
| 4233 | if test -z "$CC"; then |
| 4234 | if test -n "$ac_tool_prefix"; then |
| 4235 | for ac_prog in cl.exe |
| 4236 | do |
| 4237 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4238 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4240 | printf %s "checking for $ac_word... " >&6; } |
| 4241 | if test ${ac_cv_prog_CC+y} |
| 4242 | then : |
| 4243 | printf %s "(cached) " >&6 |
| 4244 | else case e in #( |
| 4245 | e) if test -n "$CC"; then |
| 4246 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4247 | else |
| 4248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4249 | for as_dir in $PATH |
| 4250 | do |
| 4251 | IFS=$as_save_IFS |
| 4252 | case $as_dir in #((( |
| 4253 | '') as_dir=./ ;; |
| 4254 | */) ;; |
| 4255 | *) as_dir=$as_dir/ ;; |
| 4256 | esac |
| 4257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4258 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4259 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4260 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4261 | break 2 |
| 4262 | fi |
| 4263 | done |
| 4264 | done |
| 4265 | IFS=$as_save_IFS |
| 4266 | |
| 4267 | fi ;; |
| 4268 | esac |
| 4269 | fi |
| 4270 | CC=$ac_cv_prog_CC |
| 4271 | if test -n "$CC"; then |
| 4272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4273 | printf "%s\n" "$CC" >&6; } |
| 4274 | else |
| 4275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4276 | printf "%s\n" "no" >&6; } |
| 4277 | fi |
| 4278 | |
| 4279 | |
| 4280 | test -n "$CC" && break |
| 4281 | done |
| 4282 | fi |
| 4283 | if test -z "$CC"; then |
| 4284 | ac_ct_CC=$CC |
| 4285 | for ac_prog in cl.exe |
| 4286 | do |
| 4287 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4288 | set dummy $ac_prog; ac_word=$2 |
| 4289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4290 | printf %s "checking for $ac_word... " >&6; } |
| 4291 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4292 | then : |
| 4293 | printf %s "(cached) " >&6 |
| 4294 | else case e in #( |
| 4295 | e) if test -n "$ac_ct_CC"; then |
| 4296 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4297 | else |
| 4298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4299 | for as_dir in $PATH |
| 4300 | do |
| 4301 | IFS=$as_save_IFS |
| 4302 | case $as_dir in #((( |
| 4303 | '') as_dir=./ ;; |
| 4304 | */) ;; |
| 4305 | *) as_dir=$as_dir/ ;; |
| 4306 | esac |
| 4307 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4308 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4309 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4310 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4311 | break 2 |
| 4312 | fi |
| 4313 | done |
| 4314 | done |
| 4315 | IFS=$as_save_IFS |
| 4316 | |
| 4317 | fi ;; |
| 4318 | esac |
| 4319 | fi |
| 4320 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4321 | if test -n "$ac_ct_CC"; then |
| 4322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4323 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4324 | else |
| 4325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4326 | printf "%s\n" "no" >&6; } |
| 4327 | fi |
| 4328 | |
| 4329 | |
| 4330 | test -n "$ac_ct_CC" && break |
| 4331 | done |
| 4332 | |
| 4333 | if test "x$ac_ct_CC" = x; then |
| 4334 | CC="" |
| 4335 | else |
| 4336 | case $cross_compiling:$ac_tool_warned in |
| 4337 | yes:) |
| 4338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4339 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4340 | ac_tool_warned=yes ;; |
| 4341 | esac |
| 4342 | CC=$ac_ct_CC |
| 4343 | fi |
| 4344 | fi |
| 4345 | |
| 4346 | fi |
| 4347 | if test -z "$CC"; then |
| 4348 | if test -n "$ac_tool_prefix"; then |
| 4349 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4350 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4352 | printf %s "checking for $ac_word... " >&6; } |
| 4353 | if test ${ac_cv_prog_CC+y} |
| 4354 | then : |
| 4355 | printf %s "(cached) " >&6 |
| 4356 | else case e in #( |
| 4357 | e) if test -n "$CC"; then |
| 4358 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | case $as_dir in #((( |
| 4365 | '') as_dir=./ ;; |
| 4366 | */) ;; |
| 4367 | *) as_dir=$as_dir/ ;; |
| 4368 | esac |
| 4369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4370 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4371 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4372 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4373 | break 2 |
| 4374 | fi |
| 4375 | done |
| 4376 | done |
| 4377 | IFS=$as_save_IFS |
| 4378 | |
| 4379 | fi ;; |
| 4380 | esac |
| 4381 | fi |
| 4382 | CC=$ac_cv_prog_CC |
| 4383 | if test -n "$CC"; then |
| 4384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4385 | printf "%s\n" "$CC" >&6; } |
| 4386 | else |
| 4387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4388 | printf "%s\n" "no" >&6; } |
| 4389 | fi |
| 4390 | |
| 4391 | |
| 4392 | fi |
| 4393 | if test -z "$ac_cv_prog_CC"; then |
| 4394 | ac_ct_CC=$CC |
| 4395 | # Extract the first word of "clang", so it can be a program name with args. |
| 4396 | set dummy clang; ac_word=$2 |
| 4397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4398 | printf %s "checking for $ac_word... " >&6; } |
| 4399 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4400 | then : |
| 4401 | printf %s "(cached) " >&6 |
| 4402 | else case e in #( |
| 4403 | e) if test -n "$ac_ct_CC"; then |
| 4404 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4405 | else |
| 4406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4407 | for as_dir in $PATH |
| 4408 | do |
| 4409 | IFS=$as_save_IFS |
| 4410 | case $as_dir in #((( |
| 4411 | '') as_dir=./ ;; |
| 4412 | */) ;; |
| 4413 | *) as_dir=$as_dir/ ;; |
| 4414 | esac |
| 4415 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4416 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4417 | ac_cv_prog_ac_ct_CC="clang" |
| 4418 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4419 | break 2 |
| 4420 | fi |
| 4421 | done |
| 4422 | done |
| 4423 | IFS=$as_save_IFS |
| 4424 | |
| 4425 | fi ;; |
| 4426 | esac |
| 4427 | fi |
| 4428 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4429 | if test -n "$ac_ct_CC"; then |
| 4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4431 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4432 | else |
| 4433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4434 | printf "%s\n" "no" >&6; } |
| 4435 | fi |
| 4436 | |
| 4437 | if test "x$ac_ct_CC" = x; then |
| 4438 | CC="" |
| 4439 | else |
| 4440 | case $cross_compiling:$ac_tool_warned in |
| 4441 | yes:) |
| 4442 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4443 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4444 | ac_tool_warned=yes ;; |
| 4445 | esac |
| 4446 | CC=$ac_ct_CC |
| 4447 | fi |
| 4448 | else |
| 4449 | CC="$ac_cv_prog_CC" |
| 4450 | fi |
| 4451 | |
| 4452 | fi |
| 4453 | |
| 4454 | |
| 4455 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4456 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4457 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4458 | See 'config.log' for more details" "$LINENO" 5; } |
| 4459 | |
| 4460 | # Provide some information about the compiler. |
| 4461 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4462 | set X $ac_compile |
| 4463 | ac_compiler=$2 |
| 4464 | for ac_option in --version -v -V -qversion -version; do |
| 4465 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4466 | case "(($ac_try" in |
| 4467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4468 | *) ac_try_echo=$ac_try;; |
| 4469 | esac |
| 4470 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4471 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4472 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4473 | ac_status=$? |
| 4474 | if test -s conftest.err; then |
| 4475 | sed '10a\ |
| 4476 | ... rest of stderr output deleted ... |
| 4477 | 10q' conftest.err >conftest.er1 |
| 4478 | cat conftest.er1 >&5 |
| 4479 | fi |
| 4480 | rm -f conftest.er1 conftest.err |
| 4481 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4482 | test $ac_status = 0; } |
| 4483 | done |
| 4484 | |
| 4485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4486 | /* end confdefs.h. */ |
| 4487 | |
| 4488 | int |
| 4489 | main (void) |
| 4490 | { |
| 4491 | |
| 4492 | ; |
| 4493 | return 0; |
| 4494 | } |
| 4495 | _ACEOF |
| 4496 | ac_clean_files_save=$ac_clean_files |
| 4497 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4498 | # Try to create an executable without -o first, disregard a.out. |
| 4499 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4500 | # of exeext. |
| 4501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4502 | printf %s "checking whether the C compiler works... " >&6; } |
| 4503 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4504 | |
| 4505 | # The possible output files: |
| 4506 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4507 | |
| 4508 | ac_rmfiles= |
| 4509 | for ac_file in $ac_files |
| 4510 | do |
| 4511 | case $ac_file in |
| 4512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4513 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4514 | esac |
| 4515 | done |
| 4516 | rm -f $ac_rmfiles |
| 4517 | |
| 4518 | if { { ac_try="$ac_link_default" |
| 4519 | case "(($ac_try" in |
| 4520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4521 | *) ac_try_echo=$ac_try;; |
| 4522 | esac |
| 4523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4524 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4525 | (eval "$ac_link_default") 2>&5 |
| 4526 | ac_status=$? |
| 4527 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4528 | test $ac_status = 0; } |
| 4529 | then : |
| 4530 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 4531 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 4532 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4533 | # so that the user can short-circuit this test for compilers unknown to |
| 4534 | # Autoconf. |
| 4535 | for ac_file in $ac_files '' |
| 4536 | do |
| 4537 | test -f "$ac_file" || continue |
| 4538 | case $ac_file in |
| 4539 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4540 | ;; |
| 4541 | [ab].out ) |
| 4542 | # We found the default executable, but exeext='' is most |
| 4543 | # certainly right. |
| 4544 | break;; |
| 4545 | *.* ) |
| 4546 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4547 | then :; else |
| 4548 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4549 | fi |
| 4550 | # We set ac_cv_exeext here because the later test for it is not |
| 4551 | # safe: cross compilers may not add the suffix if given an '-o' |
| 4552 | # argument, so we may need to know it at that point already. |
| 4553 | # Even if this section looks crufty: it has the advantage of |
| 4554 | # actually working. |
| 4555 | break;; |
| 4556 | * ) |
| 4557 | break;; |
| 4558 | esac |
| 4559 | done |
| 4560 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4561 | |
| 4562 | else case e in #( |
| 4563 | e) ac_file='' ;; |
| 4564 | esac |
| 4565 | fi |
| 4566 | if test -z "$ac_file" |
| 4567 | then : |
| 4568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4569 | printf "%s\n" "no" >&6; } |
| 4570 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 4571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4572 | |
| 4573 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4574 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4575 | as_fn_error 77 "C compiler cannot create executables |
| 4576 | See 'config.log' for more details" "$LINENO" 5; } |
| 4577 | else case e in #( |
| 4578 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4579 | printf "%s\n" "yes" >&6; } ;; |
| 4580 | esac |
| 4581 | fi |
| 4582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4583 | printf %s "checking for C compiler default output file name... " >&6; } |
| 4584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4585 | printf "%s\n" "$ac_file" >&6; } |
| 4586 | ac_exeext=$ac_cv_exeext |
| 4587 | |
| 4588 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4589 | ac_clean_files=$ac_clean_files_save |
| 4590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4591 | printf %s "checking for suffix of executables... " >&6; } |
| 4592 | if { { ac_try="$ac_link" |
| 4593 | case "(($ac_try" in |
| 4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4595 | *) ac_try_echo=$ac_try;; |
| 4596 | esac |
| 4597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4598 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4599 | (eval "$ac_link") 2>&5 |
| 4600 | ac_status=$? |
| 4601 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4602 | test $ac_status = 0; } |
| 4603 | then : |
| 4604 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 4605 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 4606 | # work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 4607 | # 'rm'. |
| 4608 | for ac_file in conftest.exe conftest conftest.*; do |
| 4609 | test -f "$ac_file" || continue |
| 4610 | case $ac_file in |
| 4611 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4612 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4613 | break;; |
| 4614 | * ) break;; |
| 4615 | esac |
| 4616 | done |
| 4617 | else case e in #( |
| 4618 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4619 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4620 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4621 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4622 | esac |
| 4623 | fi |
| 4624 | rm -f conftest conftest$ac_cv_exeext |
| 4625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4626 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4627 | |
| 4628 | rm -f conftest.$ac_ext |
| 4629 | EXEEXT=$ac_cv_exeext |
| 4630 | ac_exeext=$EXEEXT |
| 4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4632 | /* end confdefs.h. */ |
| 4633 | #include <stdio.h> |
| 4634 | int |
| 4635 | main (void) |
| 4636 | { |
| 4637 | FILE *f = fopen ("conftest.out", "w"); |
| 4638 | if (!f) |
| 4639 | return 1; |
| 4640 | return ferror (f) || fclose (f) != 0; |
| 4641 | |
| 4642 | ; |
| 4643 | return 0; |
| 4644 | } |
| 4645 | _ACEOF |
| 4646 | ac_clean_files="$ac_clean_files conftest.out" |
| 4647 | # Check that the compiler produces executables we can run. If not, either |
| 4648 | # the compiler is broken, or we cross compile. |
| 4649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4650 | printf %s "checking whether we are cross compiling... " >&6; } |
| 4651 | if test "$cross_compiling" != yes; then |
| 4652 | { { ac_try="$ac_link" |
| 4653 | case "(($ac_try" in |
| 4654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4655 | *) ac_try_echo=$ac_try;; |
| 4656 | esac |
| 4657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4658 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4659 | (eval "$ac_link") 2>&5 |
| 4660 | ac_status=$? |
| 4661 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4662 | test $ac_status = 0; } |
| 4663 | if { ac_try='./conftest$ac_cv_exeext' |
| 4664 | { { case "(($ac_try" in |
| 4665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4666 | *) ac_try_echo=$ac_try;; |
| 4667 | esac |
| 4668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4669 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4670 | (eval "$ac_try") 2>&5 |
| 4671 | ac_status=$? |
| 4672 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4673 | test $ac_status = 0; }; }; then |
| 4674 | cross_compiling=no |
| 4675 | else |
| 4676 | if test "$cross_compiling" = maybe; then |
| 4677 | cross_compiling=yes |
| 4678 | else |
| 4679 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4680 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4681 | as_fn_error 77 "cannot run C compiled programs. |
| 4682 | If you meant to cross compile, use '--host'. |
| 4683 | See 'config.log' for more details" "$LINENO" 5; } |
| 4684 | fi |
| 4685 | fi |
| 4686 | fi |
| 4687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4688 | printf "%s\n" "$cross_compiling" >&6; } |
| 4689 | |
| 4690 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 4691 | conftest.o conftest.obj conftest.out |
| 4692 | ac_clean_files=$ac_clean_files_save |
| 4693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4694 | printf %s "checking for suffix of object files... " >&6; } |
| 4695 | if test ${ac_cv_objext+y} |
| 4696 | then : |
| 4697 | printf %s "(cached) " >&6 |
| 4698 | else case e in #( |
| 4699 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4700 | /* end confdefs.h. */ |
| 4701 | |
| 4702 | int |
| 4703 | main (void) |
| 4704 | { |
| 4705 | |
| 4706 | ; |
| 4707 | return 0; |
| 4708 | } |
| 4709 | _ACEOF |
| 4710 | rm -f conftest.o conftest.obj |
| 4711 | if { { ac_try="$ac_compile" |
| 4712 | case "(($ac_try" in |
| 4713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4714 | *) ac_try_echo=$ac_try;; |
| 4715 | esac |
| 4716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4717 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4718 | (eval "$ac_compile") 2>&5 |
| 4719 | ac_status=$? |
| 4720 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4721 | test $ac_status = 0; } |
| 4722 | then : |
| 4723 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4724 | test -f "$ac_file" || continue; |
| 4725 | case $ac_file in |
| 4726 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4727 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4728 | break;; |
| 4729 | esac |
| 4730 | done |
| 4731 | else case e in #( |
| 4732 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 4733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4734 | |
| 4735 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4736 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4737 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4738 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4739 | esac |
| 4740 | fi |
| 4741 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 4742 | esac |
| 4743 | fi |
| 4744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4745 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 4746 | OBJEXT=$ac_cv_objext |
| 4747 | ac_objext=$OBJEXT |
| 4748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4749 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4750 | if test ${ac_cv_c_compiler_gnu+y} |
| 4751 | then : |
| 4752 | printf %s "(cached) " >&6 |
| 4753 | else case e in #( |
| 4754 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4755 | /* end confdefs.h. */ |
| 4756 | |
| 4757 | int |
| 4758 | main (void) |
| 4759 | { |
| 4760 | #ifndef __GNUC__ |
| 4761 | choke me |
| 4762 | #endif |
| 4763 | |
| 4764 | ; |
| 4765 | return 0; |
| 4766 | } |
| 4767 | _ACEOF |
| 4768 | if ac_fn_c_try_compile "$LINENO" |
| 4769 | then : |
| 4770 | ac_compiler_gnu=yes |
| 4771 | else case e in #( |
| 4772 | e) ac_compiler_gnu=no ;; |
| 4773 | esac |
| 4774 | fi |
| 4775 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4776 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4777 | ;; |
| 4778 | esac |
| 4779 | fi |
| 4780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4781 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4783 | |
| 4784 | if test $ac_compiler_gnu = yes; then |
| 4785 | GCC=yes |
| 4786 | else |
| 4787 | GCC= |
| 4788 | fi |
| 4789 | ac_test_CFLAGS=${CFLAGS+y} |
| 4790 | ac_save_CFLAGS=$CFLAGS |
| 4791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4792 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 4793 | if test ${ac_cv_prog_cc_g+y} |
| 4794 | then : |
| 4795 | printf %s "(cached) " >&6 |
| 4796 | else case e in #( |
| 4797 | e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 4798 | ac_c_werror_flag=yes |
| 4799 | ac_cv_prog_cc_g=no |
| 4800 | CFLAGS="-g" |
| 4801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4802 | /* end confdefs.h. */ |
| 4803 | |
| 4804 | int |
| 4805 | main (void) |
| 4806 | { |
| 4807 | |
| 4808 | ; |
| 4809 | return 0; |
| 4810 | } |
| 4811 | _ACEOF |
| 4812 | if ac_fn_c_try_compile "$LINENO" |
| 4813 | then : |
| 4814 | ac_cv_prog_cc_g=yes |
| 4815 | else case e in #( |
| 4816 | e) CFLAGS="" |
| 4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4818 | /* end confdefs.h. */ |
| 4819 | |
| 4820 | int |
| 4821 | main (void) |
| 4822 | { |
| 4823 | |
| 4824 | ; |
| 4825 | return 0; |
| 4826 | } |
| 4827 | _ACEOF |
| 4828 | if ac_fn_c_try_compile "$LINENO" |
| 4829 | then : |
| 4830 | |
| 4831 | else case e in #( |
| 4832 | e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 4833 | CFLAGS="-g" |
| 4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4835 | /* end confdefs.h. */ |
| 4836 | |
| 4837 | int |
| 4838 | main (void) |
| 4839 | { |
| 4840 | |
| 4841 | ; |
| 4842 | return 0; |
| 4843 | } |
| 4844 | _ACEOF |
| 4845 | if ac_fn_c_try_compile "$LINENO" |
| 4846 | then : |
| 4847 | ac_cv_prog_cc_g=yes |
| 4848 | fi |
| 4849 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4850 | esac |
| 4851 | fi |
| 4852 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4853 | esac |
| 4854 | fi |
| 4855 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4856 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 4857 | esac |
| 4858 | fi |
| 4859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4860 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4861 | if test $ac_test_CFLAGS; then |
| 4862 | CFLAGS=$ac_save_CFLAGS |
| 4863 | elif test $ac_cv_prog_cc_g = yes; then |
| 4864 | if test "$GCC" = yes; then |
| 4865 | CFLAGS="-g -O2" |
| 4866 | else |
| 4867 | CFLAGS="-g" |
| 4868 | fi |
| 4869 | else |
| 4870 | if test "$GCC" = yes; then |
| 4871 | CFLAGS="-O2" |
| 4872 | else |
| 4873 | CFLAGS= |
| 4874 | fi |
| 4875 | fi |
| 4876 | ac_prog_cc_stdc=no |
| 4877 | if test x$ac_prog_cc_stdc = xno |
| 4878 | then : |
| 4879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4880 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4881 | if test ${ac_cv_prog_cc_c11+y} |
| 4882 | then : |
| 4883 | printf %s "(cached) " >&6 |
| 4884 | else case e in #( |
| 4885 | e) ac_cv_prog_cc_c11=no |
| 4886 | ac_save_CC=$CC |
| 4887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4888 | /* end confdefs.h. */ |
| 4889 | $ac_c_conftest_c11_program |
| 4890 | _ACEOF |
| 4891 | for ac_arg in '' -std=gnu11 |
| 4892 | do |
| 4893 | CC="$ac_save_CC $ac_arg" |
| 4894 | if ac_fn_c_try_compile "$LINENO" |
| 4895 | then : |
| 4896 | ac_cv_prog_cc_c11=$ac_arg |
| 4897 | fi |
| 4898 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4899 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4900 | done |
| 4901 | rm -f conftest.$ac_ext |
| 4902 | CC=$ac_save_CC ;; |
| 4903 | esac |
| 4904 | fi |
| 4905 | |
| 4906 | if test "x$ac_cv_prog_cc_c11" = xno |
| 4907 | then : |
| 4908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4909 | printf "%s\n" "unsupported" >&6; } |
| 4910 | else case e in #( |
| 4911 | e) if test "x$ac_cv_prog_cc_c11" = x |
| 4912 | then : |
| 4913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4914 | printf "%s\n" "none needed" >&6; } |
| 4915 | else case e in #( |
| 4916 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4917 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4918 | CC="$CC $ac_cv_prog_cc_c11" ;; |
| 4919 | esac |
| 4920 | fi |
| 4921 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4922 | ac_prog_cc_stdc=c11 ;; |
| 4923 | esac |
| 4924 | fi |
| 4925 | fi |
| 4926 | if test x$ac_prog_cc_stdc = xno |
| 4927 | then : |
| 4928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4929 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4930 | if test ${ac_cv_prog_cc_c99+y} |
| 4931 | then : |
| 4932 | printf %s "(cached) " >&6 |
| 4933 | else case e in #( |
| 4934 | e) ac_cv_prog_cc_c99=no |
| 4935 | ac_save_CC=$CC |
| 4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4937 | /* end confdefs.h. */ |
| 4938 | $ac_c_conftest_c99_program |
| 4939 | _ACEOF |
| 4940 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4941 | do |
| 4942 | CC="$ac_save_CC $ac_arg" |
| 4943 | if ac_fn_c_try_compile "$LINENO" |
| 4944 | then : |
| 4945 | ac_cv_prog_cc_c99=$ac_arg |
| 4946 | fi |
| 4947 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4948 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4949 | done |
| 4950 | rm -f conftest.$ac_ext |
| 4951 | CC=$ac_save_CC ;; |
| 4952 | esac |
| 4953 | fi |
| 4954 | |
| 4955 | if test "x$ac_cv_prog_cc_c99" = xno |
| 4956 | then : |
| 4957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4958 | printf "%s\n" "unsupported" >&6; } |
| 4959 | else case e in #( |
| 4960 | e) if test "x$ac_cv_prog_cc_c99" = x |
| 4961 | then : |
| 4962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4963 | printf "%s\n" "none needed" >&6; } |
| 4964 | else case e in #( |
| 4965 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4966 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4967 | CC="$CC $ac_cv_prog_cc_c99" ;; |
| 4968 | esac |
| 4969 | fi |
| 4970 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4971 | ac_prog_cc_stdc=c99 ;; |
| 4972 | esac |
| 4973 | fi |
| 4974 | fi |
| 4975 | if test x$ac_prog_cc_stdc = xno |
| 4976 | then : |
| 4977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4978 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4979 | if test ${ac_cv_prog_cc_c89+y} |
| 4980 | then : |
| 4981 | printf %s "(cached) " >&6 |
| 4982 | else case e in #( |
| 4983 | e) ac_cv_prog_cc_c89=no |
| 4984 | ac_save_CC=$CC |
| 4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4986 | /* end confdefs.h. */ |
| 4987 | $ac_c_conftest_c89_program |
| 4988 | _ACEOF |
| 4989 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4990 | do |
| 4991 | CC="$ac_save_CC $ac_arg" |
| 4992 | if ac_fn_c_try_compile "$LINENO" |
| 4993 | then : |
| 4994 | ac_cv_prog_cc_c89=$ac_arg |
| 4995 | fi |
| 4996 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4997 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4998 | done |
| 4999 | rm -f conftest.$ac_ext |
| 5000 | CC=$ac_save_CC ;; |
| 5001 | esac |
| 5002 | fi |
| 5003 | |
| 5004 | if test "x$ac_cv_prog_cc_c89" = xno |
| 5005 | then : |
| 5006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5007 | printf "%s\n" "unsupported" >&6; } |
| 5008 | else case e in #( |
| 5009 | e) if test "x$ac_cv_prog_cc_c89" = x |
| 5010 | then : |
| 5011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5012 | printf "%s\n" "none needed" >&6; } |
| 5013 | else case e in #( |
| 5014 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5015 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5016 | CC="$CC $ac_cv_prog_cc_c89" ;; |
| 5017 | esac |
| 5018 | fi |
| 5019 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5020 | ac_prog_cc_stdc=c89 ;; |
| 5021 | esac |
| 5022 | fi |
| 5023 | fi |
| 5024 | |
| 5025 | ac_ext=c |
| 5026 | ac_cpp='$CPP $CPPFLAGS' |
| 5027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5030 | |
| 5031 | |
| 5032 | ac_ext=c |
| 5033 | ac_cpp='$CPP $CPPFLAGS' |
| 5034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5038 | printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 5039 | if test ${am_cv_prog_cc_c_o+y} |
| 5040 | then : |
| 5041 | printf %s "(cached) " >&6 |
| 5042 | else case e in #( |
| 5043 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5044 | /* end confdefs.h. */ |
| 5045 | |
| 5046 | int |
| 5047 | main (void) |
| 5048 | { |
| 5049 | |
| 5050 | ; |
| 5051 | return 0; |
| 5052 | } |
| 5053 | _ACEOF |
| 5054 | # Make sure it works both with $CC and with simple cc. |
| 5055 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 5056 | # compilers refuse to overwrite an existing .o file with -o, |
| 5057 | # though they will create one. |
| 5058 | am_cv_prog_cc_c_o=yes |
| 5059 | for am_i in 1 2; do |
| 5060 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5061 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5062 | ac_status=$? |
| 5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5064 | (exit $ac_status); } \ |
| 5065 | && test -f conftest2.$ac_objext; then |
| 5066 | : OK |
| 5067 | else |
| 5068 | am_cv_prog_cc_c_o=no |
| 5069 | break |
| 5070 | fi |
| 5071 | done |
| 5072 | # aligned with autoconf, so not including core; see bug#72225. |
| 5073 | rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ |
| 5074 | conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ |
| 5075 | conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM |
| 5076 | unset am_i ;; |
| 5077 | esac |
| 5078 | fi |
| 5079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5080 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 5081 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 5082 | # Losing compiler, so override with the script. |
| 5083 | # FIXME: It is wrong to rewrite CC. |
| 5084 | # But if we don't then we get into trouble of one sort or another. |
| 5085 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5086 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5087 | CC="$am_aux_dir/compile $CC" |
| 5088 | fi |
| 5089 | ac_ext=c |
| 5090 | ac_cpp='$CPP $CPPFLAGS' |
| 5091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5094 | |
| 5095 | |
| 5096 | |
| 5097 | ac_header= ac_cache= |
| 5098 | for ac_item in $ac_header_c_list |
| 5099 | do |
| 5100 | if test $ac_cache; then |
| 5101 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5102 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5103 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5104 | fi |
| 5105 | ac_header= ac_cache= |
| 5106 | elif test $ac_header; then |
| 5107 | ac_cache=$ac_item |
| 5108 | else |
| 5109 | ac_header=$ac_item |
| 5110 | fi |
| 5111 | done |
| 5112 | |
| 5113 | |
| 5114 | |
| 5115 | |
| 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5121 | then : |
| 5122 | |
| 5123 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 5124 | |
| 5125 | fi |
| 5126 | |
| 5127 | |
| 5128 | |
| 5129 | |
| 5130 | |
| 5131 | |
| 5132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5133 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5134 | if test ${ac_cv_safe_to_define___extensions__+y} |
| 5135 | then : |
| 5136 | printf %s "(cached) " >&6 |
| 5137 | else case e in #( |
| 5138 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5139 | /* end confdefs.h. */ |
| 5140 | |
| 5141 | # define __EXTENSIONS__ 1 |
| 5142 | $ac_includes_default |
| 5143 | int |
| 5144 | main (void) |
| 5145 | { |
| 5146 | |
| 5147 | ; |
| 5148 | return 0; |
| 5149 | } |
| 5150 | _ACEOF |
| 5151 | if ac_fn_c_try_compile "$LINENO" |
| 5152 | then : |
| 5153 | ac_cv_safe_to_define___extensions__=yes |
| 5154 | else case e in #( |
| 5155 | e) ac_cv_safe_to_define___extensions__=no ;; |
| 5156 | esac |
| 5157 | fi |
| 5158 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5159 | esac |
| 5160 | fi |
| 5161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5162 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5163 | |
| 5164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 5165 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 5166 | if test ${ac_cv_should_define__xopen_source+y} |
| 5167 | then : |
| 5168 | printf %s "(cached) " >&6 |
| 5169 | else case e in #( |
| 5170 | e) ac_cv_should_define__xopen_source=no |
| 5171 | if test $ac_cv_header_wchar_h = yes |
| 5172 | then : |
| 5173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5174 | /* end confdefs.h. */ |
| 5175 | |
| 5176 | #include <wchar.h> |
| 5177 | mbstate_t x; |
| 5178 | int |
| 5179 | main (void) |
| 5180 | { |
| 5181 | |
| 5182 | ; |
| 5183 | return 0; |
| 5184 | } |
| 5185 | _ACEOF |
| 5186 | if ac_fn_c_try_compile "$LINENO" |
| 5187 | then : |
| 5188 | |
| 5189 | else case e in #( |
| 5190 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5191 | /* end confdefs.h. */ |
| 5192 | |
| 5193 | #define _XOPEN_SOURCE 500 |
| 5194 | #include <wchar.h> |
| 5195 | mbstate_t x; |
| 5196 | int |
| 5197 | main (void) |
| 5198 | { |
| 5199 | |
| 5200 | ; |
| 5201 | return 0; |
| 5202 | } |
| 5203 | _ACEOF |
| 5204 | if ac_fn_c_try_compile "$LINENO" |
| 5205 | then : |
| 5206 | ac_cv_should_define__xopen_source=yes |
| 5207 | fi |
| 5208 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5209 | esac |
| 5210 | fi |
| 5211 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5212 | fi ;; |
| 5213 | esac |
| 5214 | fi |
| 5215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 5216 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 5217 | |
| 5218 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 5219 | |
| 5220 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 5221 | |
| 5222 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 5223 | |
| 5224 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 5225 | |
| 5226 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 5227 | |
| 5228 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 5229 | |
| 5230 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5231 | |
| 5232 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 5233 | |
| 5234 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 5235 | |
| 5236 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 5237 | |
| 5238 | printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h |
| 5239 | |
| 5240 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 5241 | |
| 5242 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 5243 | |
| 5244 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 5245 | |
| 5246 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 5247 | |
| 5248 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5249 | |
| 5250 | if test $ac_cv_header_minix_config_h = yes |
| 5251 | then : |
| 5252 | MINIX=yes |
| 5253 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 5254 | |
| 5255 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5256 | |
| 5257 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5258 | |
| 5259 | else case e in #( |
| 5260 | e) MINIX= ;; |
| 5261 | esac |
| 5262 | fi |
| 5263 | if test $ac_cv_safe_to_define___extensions__ = yes |
| 5264 | then : |
| 5265 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5266 | |
| 5267 | fi |
| 5268 | if test $ac_cv_should_define__xopen_source = yes |
| 5269 | then : |
| 5270 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 5271 | |
| 5272 | fi |
| 5273 | |
| 5274 | |
| 5275 | am__api_version='1.18' |
| 5276 | |
| 5277 | |
| 5278 | # Find a good install program. We prefer a C program (faster), |
| 5279 | # so one script is as good as another. But avoid the broken or |
| 5280 | # incompatible versions: |
| 5281 | # SysV /etc/install, /usr/sbin/install |
| 5282 | # SunOS /usr/etc/install |
| 5283 | # IRIX /sbin/install |
| 5284 | # AIX /bin/install |
| 5285 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5286 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5287 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5288 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5289 | # OS/2's system install, which has a completely different semantic |
| 5290 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5291 | # Reject install programs that cannot install multiple files. |
| 5292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5293 | printf %s "checking for a BSD-compatible install... " >&6; } |
| 5294 | if test -z "$INSTALL"; then |
| 5295 | if test ${ac_cv_path_install+y} |
| 5296 | then : |
| 5297 | printf %s "(cached) " >&6 |
| 5298 | else case e in #( |
| 5299 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5300 | for as_dir in $PATH |
| 5301 | do |
| 5302 | IFS=$as_save_IFS |
| 5303 | case $as_dir in #((( |
| 5304 | '') as_dir=./ ;; |
| 5305 | */) ;; |
| 5306 | *) as_dir=$as_dir/ ;; |
| 5307 | esac |
| 5308 | # Account for fact that we put trailing slashes in our PATH walk. |
| 5309 | case $as_dir in #(( |
| 5310 | ./ | /[cC]/* | \ |
| 5311 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5312 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 5313 | /usr/ucb/* ) ;; |
| 5314 | *) |
| 5315 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5316 | # Don't use installbsd from OSF since it installs stuff as root |
| 5317 | # by default. |
| 5318 | for ac_prog in ginstall scoinst install; do |
| 5319 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5320 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 5321 | if test $ac_prog = install && |
| 5322 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5323 | # AIX install. It has an incompatible calling convention. |
| 5324 | : |
| 5325 | elif test $ac_prog = install && |
| 5326 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5327 | # program-specific install script used by HP pwplus--don't use. |
| 5328 | : |
| 5329 | else |
| 5330 | rm -rf conftest.one conftest.two conftest.dir |
| 5331 | echo one > conftest.one |
| 5332 | echo two > conftest.two |
| 5333 | mkdir conftest.dir |
| 5334 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 5335 | test -s conftest.one && test -s conftest.two && |
| 5336 | test -s conftest.dir/conftest.one && |
| 5337 | test -s conftest.dir/conftest.two |
| 5338 | then |
| 5339 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 5340 | break 3 |
| 5341 | fi |
| 5342 | fi |
| 5343 | fi |
| 5344 | done |
| 5345 | done |
| 5346 | ;; |
| 5347 | esac |
| 5348 | |
| 5349 | done |
| 5350 | IFS=$as_save_IFS |
| 5351 | |
| 5352 | rm -rf conftest.one conftest.two conftest.dir |
| 5353 | ;; |
| 5354 | esac |
| 5355 | fi |
| 5356 | if test ${ac_cv_path_install+y}; then |
| 5357 | INSTALL=$ac_cv_path_install |
| 5358 | else |
| 5359 | # As a last resort, use the slow shell script. Don't cache a |
| 5360 | # value for INSTALL within a source directory, because that will |
| 5361 | # break other packages using the cache if that directory is |
| 5362 | # removed, or if the value is a relative name. |
| 5363 | INSTALL=$ac_install_sh |
| 5364 | fi |
| 5365 | fi |
| 5366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5367 | printf "%s\n" "$INSTALL" >&6; } |
| 5368 | |
| 5369 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5370 | # It thinks the first close brace ends the variable substitution. |
| 5371 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5372 | |
| 5373 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5374 | |
| 5375 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5376 | |
| 5377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 |
| 5378 | printf %s "checking whether sleep supports fractional seconds... " >&6; } |
| 5379 | if test ${am_cv_sleep_fractional_seconds+y} |
| 5380 | then : |
| 5381 | printf %s "(cached) " >&6 |
| 5382 | else case e in #( |
| 5383 | e) if sleep 0.001 2>/dev/null |
| 5384 | then : |
| 5385 | am_cv_sleep_fractional_seconds=yes |
| 5386 | else case e in #( |
| 5387 | e) am_cv_sleep_fractional_seconds=no ;; |
| 5388 | esac |
| 5389 | fi |
| 5390 | ;; |
| 5391 | esac |
| 5392 | fi |
| 5393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 |
| 5394 | printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } |
| 5395 | |
| 5396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 |
| 5397 | printf %s "checking filesystem timestamp resolution... " >&6; } |
| 5398 | if test ${am_cv_filesystem_timestamp_resolution+y} |
| 5399 | then : |
| 5400 | printf %s "(cached) " >&6 |
| 5401 | else case e in #( |
| 5402 | e) # Default to the worst case. |
| 5403 | am_cv_filesystem_timestamp_resolution=2 |
| 5404 | |
| 5405 | # Only try to go finer than 1 sec if sleep can do it. |
| 5406 | # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, |
| 5407 | # - 1 sec is not much of a win compared to 2 sec, and |
| 5408 | # - it takes 2 seconds to perform the test whether 1 sec works. |
| 5409 | # |
| 5410 | # Instead, just use the default 2s on platforms that have 1s resolution, |
| 5411 | # accept the extra 1s delay when using $sleep in the Automake tests, in |
| 5412 | # exchange for not incurring the 2s delay for running the test for all |
| 5413 | # packages. |
| 5414 | # |
| 5415 | am_try_resolutions= |
| 5416 | if test "$am_cv_sleep_fractional_seconds" = yes; then |
| 5417 | # Even a millisecond often causes a bunch of false positives, |
| 5418 | # so just try a hundredth of a second. The time saved between .001 and |
| 5419 | # .01 is not terribly consequential. |
| 5420 | am_try_resolutions="0.01 0.1 $am_try_resolutions" |
| 5421 | fi |
| 5422 | |
| 5423 | # In order to catch current-generation FAT out, we must *modify* files |
| 5424 | # that already exist; the *creation* timestamp is finer. Use names |
| 5425 | # that make ls -t sort them differently when they have equal |
| 5426 | # timestamps than when they have distinct timestamps, keeping |
| 5427 | # in mind that ls -t prints the *newest* file first. |
| 5428 | rm -f conftest.ts? |
| 5429 | : > conftest.ts1 |
| 5430 | : > conftest.ts2 |
| 5431 | : > conftest.ts3 |
| 5432 | |
| 5433 | # Make sure ls -t actually works. Do 'set' in a subshell so we don't |
| 5434 | # clobber the current shell's arguments. (Outer-level square brackets |
| 5435 | # are removed by m4; they're present so that m4 does not expand |
| 5436 | # <dollar><star>; be careful, easy to get confused.) |
| 5437 | if ( |
| 5438 | set X `ls -t conftest.ts[12]` && |
| 5439 | { |
| 5440 | test "$*" != "X conftest.ts1 conftest.ts2" || |
| 5441 | test "$*" != "X conftest.ts2 conftest.ts1"; |
| 5442 | } |
| 5443 | ); then :; else |
| 5444 | # If neither matched, then we have a broken ls. This can happen |
| 5445 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 5446 | # broken ls alias from the environment. This has actually |
| 5447 | # happened. Such a system could not be considered "sane". |
| 5448 | printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 |
| 5449 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5450 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5451 | as_fn_error $? "ls -t produces unexpected output. |
| 5452 | Make sure there is not a broken ls alias in your environment. |
| 5453 | See 'config.log' for more details" "$LINENO" 5; } |
| 5454 | fi |
| 5455 | |
| 5456 | for am_try_res in $am_try_resolutions; do |
| 5457 | # Any one fine-grained sleep might happen to cross the boundary |
| 5458 | # between two values of a coarser actual resolution, but if we do |
| 5459 | # two fine-grained sleeps in a row, at least one of them will fall |
| 5460 | # entirely within a coarse interval. |
| 5461 | echo alpha > conftest.ts1 |
| 5462 | sleep $am_try_res |
| 5463 | echo beta > conftest.ts2 |
| 5464 | sleep $am_try_res |
| 5465 | echo gamma > conftest.ts3 |
| 5466 | |
| 5467 | # We assume that 'ls -t' will make use of high-resolution |
| 5468 | # timestamps if the operating system supports them at all. |
| 5469 | if (set X `ls -t conftest.ts?` && |
| 5470 | test "$2" = conftest.ts3 && |
| 5471 | test "$3" = conftest.ts2 && |
| 5472 | test "$4" = conftest.ts1); then |
| 5473 | # |
| 5474 | # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, |
| 5475 | # because we don't need to test make. |
| 5476 | make_ok=true |
| 5477 | if test $am_try_res != 1; then |
| 5478 | # But if we've succeeded so far with a subsecond resolution, we |
| 5479 | # have one more thing to check: make. It can happen that |
| 5480 | # everything else supports the subsecond mtimes, but make doesn't; |
| 5481 | # notably on macOS, which ships make 3.81 from 2006 (the last one |
| 5482 | # released under GPLv2). https://bugs.gnu.org/68808 |
| 5483 | # |
| 5484 | # We test $MAKE if it is defined in the environment, else "make". |
| 5485 | # It might get overridden later, but our hope is that in practice |
| 5486 | # it does not matter: it is the system "make" which is (by far) |
| 5487 | # the most likely to be broken, whereas if the user overrides it, |
| 5488 | # probably they did so with a better, or at least not worse, make. |
| 5489 | # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html |
| 5490 | # |
| 5491 | # Create a Makefile (real tab character here): |
| 5492 | rm -f conftest.mk |
| 5493 | echo 'conftest.ts1: conftest.ts2' >conftest.mk |
| 5494 | echo ' touch conftest.ts2' >>conftest.mk |
| 5495 | # |
| 5496 | # Now, running |
| 5497 | # touch conftest.ts1; touch conftest.ts2; make |
| 5498 | # should touch ts1 because ts2 is newer. This could happen by luck, |
| 5499 | # but most often, it will fail if make's support is insufficient. So |
| 5500 | # test for several consecutive successes. |
| 5501 | # |
| 5502 | # (We reuse conftest.ts[12] because we still want to modify existing |
| 5503 | # files, not create new ones, per above.) |
| 5504 | n=0 |
| 5505 | make=${MAKE-make} |
| 5506 | until test $n -eq 3; do |
| 5507 | echo one > conftest.ts1 |
| 5508 | sleep $am_try_res |
| 5509 | echo two > conftest.ts2 # ts2 should now be newer than ts1 |
| 5510 | if $make -f conftest.mk | grep 'up to date' >/dev/null; then |
| 5511 | make_ok=false |
| 5512 | break # out of $n loop |
| 5513 | fi |
| 5514 | n=`expr $n + 1` |
| 5515 | done |
| 5516 | fi |
| 5517 | # |
| 5518 | if $make_ok; then |
| 5519 | # Everything we know to check worked out, so call this resolution good. |
| 5520 | am_cv_filesystem_timestamp_resolution=$am_try_res |
| 5521 | break # out of $am_try_res loop |
| 5522 | fi |
| 5523 | # Otherwise, we'll go on to check the next resolution. |
| 5524 | fi |
| 5525 | done |
| 5526 | rm -f conftest.ts? |
| 5527 | # (end _am_filesystem_timestamp_resolution) |
| 5528 | ;; |
| 5529 | esac |
| 5530 | fi |
| 5531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 |
| 5532 | printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } |
| 5533 | |
| 5534 | # This check should not be cached, as it may vary across builds of |
| 5535 | # different projects. |
| 5536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 5537 | printf %s "checking whether build environment is sane... " >&6; } |
| 5538 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 5539 | # name. Accept space and tab only in the latter. |
| 5540 | am_lf=' |
| 5541 | ' |
| 5542 | case `pwd` in |
| 5543 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 5544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5545 | printf "%s\n" "no" >&6; } |
| 5546 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 5547 | esac |
| 5548 | case $srcdir in |
| 5549 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 5550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5551 | printf "%s\n" "no" >&6; } |
| 5552 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 5553 | esac |
| 5554 | |
| 5555 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 5556 | # arguments. Must try -L first in case configure is actually a |
| 5557 | # symlink; some systems play weird games with the mod time of symlinks |
| 5558 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 5559 | # directory). |
| 5560 | am_build_env_is_sane=no |
| 5561 | am_has_slept=no |
| 5562 | rm -f conftest.file |
| 5563 | for am_try in 1 2; do |
| 5564 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 5565 | if ( |
| 5566 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 5567 | if test "$*" = "X"; then |
| 5568 | # -L didn't work. |
| 5569 | set X `ls -t "$srcdir/configure" conftest.file` |
| 5570 | fi |
| 5571 | test "$2" = conftest.file |
| 5572 | ); then |
| 5573 | am_build_env_is_sane=yes |
| 5574 | break |
| 5575 | fi |
| 5576 | # Just in case. |
| 5577 | sleep "$am_cv_filesystem_timestamp_resolution" |
| 5578 | am_has_slept=yes |
| 5579 | done |
| 5580 | |
| 5581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 |
| 5582 | printf "%s\n" "$am_build_env_is_sane" >&6; } |
| 5583 | if test "$am_build_env_is_sane" = no; then |
| 5584 | as_fn_error $? "newly created file is older than distributed files! |
| 5585 | Check your system clock" "$LINENO" 5 |
| 5586 | fi |
| 5587 | |
| 5588 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 5589 | # generated files are strictly newer. |
| 5590 | am_sleep_pid= |
| 5591 | if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 |
| 5592 | then : |
| 5593 | |
| 5594 | else case e in #( |
| 5595 | e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & |
| 5596 | am_sleep_pid=$! |
| 5597 | ;; |
| 5598 | esac |
| 5599 | fi |
| 5600 | |
| 5601 | rm -f conftest.file |
| 5602 | |
| 5603 | test "$program_prefix" != NONE && |
| 5604 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 5605 | # Use a double $ so make ignores it. |
| 5606 | test "$program_suffix" != NONE && |
| 5607 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 5608 | # Double any \ or $. |
| 5609 | # By default was 's,x,x', remove it if useless. |
| 5610 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 5611 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 5612 | |
| 5613 | |
| 5614 | if test x"${MISSING+set}" != xset; then |
| 5615 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 5616 | fi |
| 5617 | # Use eval to expand $SHELL |
| 5618 | if eval "$MISSING --is-lightweight"; then |
| 5619 | am_missing_run="$MISSING " |
| 5620 | else |
| 5621 | am_missing_run= |
| 5622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 5623 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 5624 | fi |
| 5625 | |
| 5626 | if test x"${install_sh+set}" != xset; then |
| 5627 | case $am_aux_dir in |
| 5628 | *\ * | *\ *) |
| 5629 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 5630 | *) |
| 5631 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 5632 | esac |
| 5633 | fi |
| 5634 | |
| 5635 | # Installed binaries are usually stripped using 'strip' when the user |
| 5636 | # run "make install-strip". However 'strip' might not be the right |
| 5637 | # tool to use in cross-compilation environments, therefore Automake |
| 5638 | # will honor the 'STRIP' environment variable to overrule this program. |
| 5639 | if test "$cross_compiling" != no; then |
| 5640 | if test -n "$ac_tool_prefix"; then |
| 5641 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5642 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5644 | printf %s "checking for $ac_word... " >&6; } |
| 5645 | if test ${ac_cv_prog_STRIP+y} |
| 5646 | then : |
| 5647 | printf %s "(cached) " >&6 |
| 5648 | else case e in #( |
| 5649 | e) if test -n "$STRIP"; then |
| 5650 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5651 | else |
| 5652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5653 | for as_dir in $PATH |
| 5654 | do |
| 5655 | IFS=$as_save_IFS |
| 5656 | case $as_dir in #((( |
| 5657 | '') as_dir=./ ;; |
| 5658 | */) ;; |
| 5659 | *) as_dir=$as_dir/ ;; |
| 5660 | esac |
| 5661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5662 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5663 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5664 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5665 | break 2 |
| 5666 | fi |
| 5667 | done |
| 5668 | done |
| 5669 | IFS=$as_save_IFS |
| 5670 | |
| 5671 | fi ;; |
| 5672 | esac |
| 5673 | fi |
| 5674 | STRIP=$ac_cv_prog_STRIP |
| 5675 | if test -n "$STRIP"; then |
| 5676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5677 | printf "%s\n" "$STRIP" >&6; } |
| 5678 | else |
| 5679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5680 | printf "%s\n" "no" >&6; } |
| 5681 | fi |
| 5682 | |
| 5683 | |
| 5684 | fi |
| 5685 | if test -z "$ac_cv_prog_STRIP"; then |
| 5686 | ac_ct_STRIP=$STRIP |
| 5687 | # Extract the first word of "strip", so it can be a program name with args. |
| 5688 | set dummy strip; ac_word=$2 |
| 5689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5690 | printf %s "checking for $ac_word... " >&6; } |
| 5691 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 5692 | then : |
| 5693 | printf %s "(cached) " >&6 |
| 5694 | else case e in #( |
| 5695 | e) if test -n "$ac_ct_STRIP"; then |
| 5696 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5697 | else |
| 5698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5699 | for as_dir in $PATH |
| 5700 | do |
| 5701 | IFS=$as_save_IFS |
| 5702 | case $as_dir in #((( |
| 5703 | '') as_dir=./ ;; |
| 5704 | */) ;; |
| 5705 | *) as_dir=$as_dir/ ;; |
| 5706 | esac |
| 5707 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5708 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5709 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5710 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5711 | break 2 |
| 5712 | fi |
| 5713 | done |
| 5714 | done |
| 5715 | IFS=$as_save_IFS |
| 5716 | |
| 5717 | fi ;; |
| 5718 | esac |
| 5719 | fi |
| 5720 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5721 | if test -n "$ac_ct_STRIP"; then |
| 5722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5723 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 5724 | else |
| 5725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5726 | printf "%s\n" "no" >&6; } |
| 5727 | fi |
| 5728 | |
| 5729 | if test "x$ac_ct_STRIP" = x; then |
| 5730 | STRIP=":" |
| 5731 | else |
| 5732 | case $cross_compiling:$ac_tool_warned in |
| 5733 | yes:) |
| 5734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5735 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5736 | ac_tool_warned=yes ;; |
| 5737 | esac |
| 5738 | STRIP=$ac_ct_STRIP |
| 5739 | fi |
| 5740 | else |
| 5741 | STRIP="$ac_cv_prog_STRIP" |
| 5742 | fi |
| 5743 | |
| 5744 | fi |
| 5745 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 5746 | |
| 5747 | |
| 5748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 5749 | printf %s "checking for a race-free mkdir -p... " >&6; } |
| 5750 | if test -z "$MKDIR_P"; then |
| 5751 | if test ${ac_cv_path_mkdir+y} |
| 5752 | then : |
| 5753 | printf %s "(cached) " >&6 |
| 5754 | else case e in #( |
| 5755 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5756 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 5757 | do |
| 5758 | IFS=$as_save_IFS |
| 5759 | case $as_dir in #((( |
| 5760 | '') as_dir=./ ;; |
| 5761 | */) ;; |
| 5762 | *) as_dir=$as_dir/ ;; |
| 5763 | esac |
| 5764 | for ac_prog in mkdir gmkdir; do |
| 5765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5766 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 5767 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 5768 | 'mkdir ('*'coreutils) '* | \ |
| 5769 | *'BusyBox '* | \ |
| 5770 | 'mkdir (fileutils) '4.1*) |
| 5771 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 5772 | break 3;; |
| 5773 | esac |
| 5774 | done |
| 5775 | done |
| 5776 | done |
| 5777 | IFS=$as_save_IFS |
| 5778 | ;; |
| 5779 | esac |
| 5780 | fi |
| 5781 | |
| 5782 | test -d ./--version && rmdir ./--version |
| 5783 | if test ${ac_cv_path_mkdir+y}; then |
| 5784 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 5785 | else |
| 5786 | # As a last resort, use plain mkdir -p, |
| 5787 | # in the hope it doesn't have the bugs of ancient mkdir. |
| 5788 | MKDIR_P='mkdir -p' |
| 5789 | fi |
| 5790 | fi |
| 5791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 5792 | printf "%s\n" "$MKDIR_P" >&6; } |
| 5793 | |
| 5794 | for ac_prog in gawk mawk nawk awk |
| 5795 | do |
| 5796 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5797 | set dummy $ac_prog; ac_word=$2 |
| 5798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5799 | printf %s "checking for $ac_word... " >&6; } |
| 5800 | if test ${ac_cv_prog_AWK+y} |
| 5801 | then : |
| 5802 | printf %s "(cached) " >&6 |
| 5803 | else case e in #( |
| 5804 | e) if test -n "$AWK"; then |
| 5805 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 5806 | else |
| 5807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5808 | for as_dir in $PATH |
| 5809 | do |
| 5810 | IFS=$as_save_IFS |
| 5811 | case $as_dir in #((( |
| 5812 | '') as_dir=./ ;; |
| 5813 | */) ;; |
| 5814 | *) as_dir=$as_dir/ ;; |
| 5815 | esac |
| 5816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5817 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5818 | ac_cv_prog_AWK="$ac_prog" |
| 5819 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5820 | break 2 |
| 5821 | fi |
| 5822 | done |
| 5823 | done |
| 5824 | IFS=$as_save_IFS |
| 5825 | |
| 5826 | fi ;; |
| 5827 | esac |
| 5828 | fi |
| 5829 | AWK=$ac_cv_prog_AWK |
| 5830 | if test -n "$AWK"; then |
| 5831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 5832 | printf "%s\n" "$AWK" >&6; } |
| 5833 | else |
| 5834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5835 | printf "%s\n" "no" >&6; } |
| 5836 | fi |
| 5837 | |
| 5838 | |
| 5839 | test -n "$AWK" && break |
| 5840 | done |
| 5841 | |
| 5842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 5843 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5844 | set x ${MAKE-make} |
| 5845 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 5846 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 5847 | then : |
| 5848 | printf %s "(cached) " >&6 |
| 5849 | else case e in #( |
| 5850 | e) cat >conftest.make <<\_ACEOF |
| 5851 | SHELL = /bin/sh |
| 5852 | all: |
| 5853 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 5854 | _ACEOF |
| 5855 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 5856 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5857 | *@@@%%%=?*=@@@%%%*) |
| 5858 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5859 | *) |
| 5860 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5861 | esac |
| 5862 | rm -f conftest.make ;; |
| 5863 | esac |
| 5864 | fi |
| 5865 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 5866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5867 | printf "%s\n" "yes" >&6; } |
| 5868 | SET_MAKE= |
| 5869 | else |
| 5870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5871 | printf "%s\n" "no" >&6; } |
| 5872 | SET_MAKE="MAKE=${MAKE-make}" |
| 5873 | fi |
| 5874 | |
| 5875 | rm -rf .tst 2>/dev/null |
| 5876 | mkdir .tst 2>/dev/null |
| 5877 | if test -d .tst; then |
| 5878 | am__leading_dot=. |
| 5879 | else |
| 5880 | am__leading_dot=_ |
| 5881 | fi |
| 5882 | rmdir .tst 2>/dev/null |
| 5883 | |
| 5884 | DEPDIR="${am__leading_dot}deps" |
| 5885 | |
| 5886 | ac_config_commands="$ac_config_commands depfiles" |
| 5887 | |
| 5888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 5889 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 5890 | cat > confinc.mk << 'END' |
| 5891 | am__doit: |
| 5892 | @echo this is the am__doit target >confinc.out |
| 5893 | .PHONY: am__doit |
| 5894 | END |
| 5895 | am__include="#" |
| 5896 | am__quote= |
| 5897 | # BSD make does it like this. |
| 5898 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 5899 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 5900 | echo 'include confinc.mk # ignored' > confmf.GNU |
| 5901 | _am_result=no |
| 5902 | for s in GNU BSD; do |
| 5903 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 5904 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 5905 | ac_status=$? |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); } |
| 5908 | case $?:`cat confinc.out 2>/dev/null` in #( |
| 5909 | '0:this is the am__doit target') : |
| 5910 | case $s in #( |
| 5911 | BSD) : |
| 5912 | am__include='.include' am__quote='"' ;; #( |
| 5913 | *) : |
| 5914 | am__include='include' am__quote='' ;; |
| 5915 | esac ;; #( |
| 5916 | *) : |
| 5917 | ;; |
| 5918 | esac |
| 5919 | if test "$am__include" != "#"; then |
| 5920 | _am_result="yes ($s style)" |
| 5921 | break |
| 5922 | fi |
| 5923 | done |
| 5924 | rm -f confinc.* confmf.* |
| 5925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 5926 | printf "%s\n" "${_am_result}" >&6; } |
| 5927 | |
| 5928 | # Check whether --enable-dependency-tracking was given. |
| 5929 | if test ${enable_dependency_tracking+y} |
| 5930 | then : |
| 5931 | enableval=$enable_dependency_tracking; |
| 5932 | fi |
| 5933 | |
| 5934 | if test "x$enable_dependency_tracking" != xno; then |
| 5935 | am_depcomp="$ac_aux_dir/depcomp" |
| 5936 | AMDEPBACKSLASH='\' |
| 5937 | am__nodep='_no' |
| 5938 | fi |
| 5939 | if test "x$enable_dependency_tracking" != xno; then |
| 5940 | AMDEP_TRUE= |
| 5941 | AMDEP_FALSE='#' |
| 5942 | else |
| 5943 | AMDEP_TRUE='#' |
| 5944 | AMDEP_FALSE= |
| 5945 | fi |
| 5946 | |
| 5947 | |
| 5948 | AM_DEFAULT_VERBOSITY=1 |
| 5949 | # Check whether --enable-silent-rules was given. |
| 5950 | if test ${enable_silent_rules+y} |
| 5951 | then : |
| 5952 | enableval=$enable_silent_rules; |
| 5953 | fi |
| 5954 | |
| 5955 | am_make=${MAKE-make} |
| 5956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 5957 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 5958 | if test ${am_cv_make_support_nested_variables+y} |
| 5959 | then : |
| 5960 | printf %s "(cached) " >&6 |
| 5961 | else case e in #( |
| 5962 | e) if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 5963 | BAR0=false |
| 5964 | BAR1=true |
| 5965 | V=1 |
| 5966 | am__doit: |
| 5967 | @$(TRUE) |
| 5968 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 5969 | am_cv_make_support_nested_variables=yes |
| 5970 | else |
| 5971 | am_cv_make_support_nested_variables=no |
| 5972 | fi ;; |
| 5973 | esac |
| 5974 | fi |
| 5975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 5976 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 5977 | AM_BACKSLASH='\' |
| 5978 | |
| 5979 | am__rm_f_notfound= |
| 5980 | if (rm -f && rm -fr && rm -rf) 2>/dev/null |
| 5981 | then : |
| 5982 | |
| 5983 | else case e in #( |
| 5984 | e) am__rm_f_notfound='""' ;; |
| 5985 | esac |
| 5986 | fi |
| 5987 | |
| 5988 | |
| 5989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 |
| 5990 | printf %s "checking xargs -n works... " >&6; } |
| 5991 | if test ${am_cv_xargs_n_works+y} |
| 5992 | then : |
| 5993 | printf %s "(cached) " >&6 |
| 5994 | else case e in #( |
| 5995 | e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 |
| 5996 | 3" |
| 5997 | then : |
| 5998 | am_cv_xargs_n_works=yes |
| 5999 | else case e in #( |
| 6000 | e) am_cv_xargs_n_works=no ;; |
| 6001 | esac |
| 6002 | fi ;; |
| 6003 | esac |
| 6004 | fi |
| 6005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 |
| 6006 | printf "%s\n" "$am_cv_xargs_n_works" >&6; } |
| 6007 | if test "$am_cv_xargs_n_works" = yes |
| 6008 | then : |
| 6009 | am__xargs_n='xargs -n' |
| 6010 | else case e in #( |
| 6011 | e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' |
| 6012 | ;; |
| 6013 | esac |
| 6014 | fi |
| 6015 | |
| 6016 | # Check whether --enable-compiler-warnings was given. |
| 6017 | if test ${enable_compiler_warnings+y} |
| 6018 | then : |
| 6019 | enableval=$enable_compiler_warnings; |
| 6020 | fi |
| 6021 | case $enable_compiler_warnings in #( |
| 6022 | no | min | yes | max | all) : |
| 6023 | ;; #( |
| 6024 | *) : |
| 6025 | if test "x$enable_maintainer_mode" = xyes |
| 6026 | then : |
| 6027 | enable_compiler_warnings=yes |
| 6028 | else case e in #( |
| 6029 | e) enable_compiler_warnings=min ;; |
| 6030 | esac |
| 6031 | fi ;; |
| 6032 | esac |
| 6033 | |
| 6034 | case `pwd` in |
| 6035 | *\ * | *\ *) |
| 6036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 6037 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 6038 | esac |
| 6039 | |
| 6040 | |
| 6041 | |
| 6042 | macro_version='2.5.4' |
| 6043 | macro_revision='2.5.4' |
| 6044 | |
| 6045 | |
| 6046 | |
| 6047 | |
| 6048 | |
| 6049 | |
| 6050 | |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | ltmain=$ac_aux_dir/ltmain.sh |
| 6059 | |
| 6060 | |
| 6061 | |
| 6062 | # Make sure we can run config.sub. |
| 6063 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 6064 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 6065 | |
| 6066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 6067 | printf %s "checking build system type... " >&6; } |
| 6068 | if test ${ac_cv_build+y} |
| 6069 | then : |
| 6070 | printf %s "(cached) " >&6 |
| 6071 | else case e in #( |
| 6072 | e) ac_build_alias=$build_alias |
| 6073 | test "x$ac_build_alias" = x && |
| 6074 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 6075 | test "x$ac_build_alias" = x && |
| 6076 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 6077 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 6078 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 6079 | ;; |
| 6080 | esac |
| 6081 | fi |
| 6082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 6083 | printf "%s\n" "$ac_cv_build" >&6; } |
| 6084 | case $ac_cv_build in |
| 6085 | *-*-*) ;; |
| 6086 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 6087 | esac |
| 6088 | build=$ac_cv_build |
| 6089 | ac_save_IFS=$IFS; IFS='-' |
| 6090 | set x $ac_cv_build |
| 6091 | shift |
| 6092 | build_cpu=$1 |
| 6093 | build_vendor=$2 |
| 6094 | shift; shift |
| 6095 | # Remember, the first character of IFS is used to create $*, |
| 6096 | # except with old shells: |
| 6097 | build_os=$* |
| 6098 | IFS=$ac_save_IFS |
| 6099 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 6100 | |
| 6101 | |
| 6102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 6103 | printf %s "checking host system type... " >&6; } |
| 6104 | if test ${ac_cv_host+y} |
| 6105 | then : |
| 6106 | printf %s "(cached) " >&6 |
| 6107 | else case e in #( |
| 6108 | e) if test "x$host_alias" = x; then |
| 6109 | ac_cv_host=$ac_cv_build |
| 6110 | else |
| 6111 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 6112 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 6113 | fi |
| 6114 | ;; |
| 6115 | esac |
| 6116 | fi |
| 6117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 6118 | printf "%s\n" "$ac_cv_host" >&6; } |
| 6119 | case $ac_cv_host in |
| 6120 | *-*-*) ;; |
| 6121 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 6122 | esac |
| 6123 | host=$ac_cv_host |
| 6124 | ac_save_IFS=$IFS; IFS='-' |
| 6125 | set x $ac_cv_host |
| 6126 | shift |
| 6127 | host_cpu=$1 |
| 6128 | host_vendor=$2 |
| 6129 | shift; shift |
| 6130 | # Remember, the first character of IFS is used to create $*, |
| 6131 | # except with old shells: |
| 6132 | host_os=$* |
| 6133 | IFS=$ac_save_IFS |
| 6134 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 6135 | |
| 6136 | |
| 6137 | # Backslashify metacharacters that are still active within |
| 6138 | # double-quoted strings. |
| 6139 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 6140 | |
| 6141 | # Same as above, but do not quote variable references. |
| 6142 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 6143 | |
| 6144 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6145 | # double_quote_subst'ed string. |
| 6146 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6147 | |
| 6148 | # Sed substitution to delay expansion of an escaped single quote. |
| 6149 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6150 | |
| 6151 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6152 | no_glob_subst='s/\*/\\\*/g' |
| 6153 | |
| 6154 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6155 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6156 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6157 | |
| 6158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 6159 | printf %s "checking how to print strings... " >&6; } |
| 6160 | # Test print first, because it will be a builtin if present. |
| 6161 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 6162 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6163 | ECHO='print -r --' |
| 6164 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6165 | ECHO='printf %s\n' |
| 6166 | else |
| 6167 | # Use this function as a fallback that always works. |
| 6168 | func_fallback_echo () |
| 6169 | { |
| 6170 | eval 'cat <<_LTECHO_EOF |
| 6171 | $1 |
| 6172 | _LTECHO_EOF' |
| 6173 | } |
| 6174 | ECHO='func_fallback_echo' |
| 6175 | fi |
| 6176 | |
| 6177 | # func_echo_all arg... |
| 6178 | # Invoke $ECHO with all args, space-separated. |
| 6179 | func_echo_all () |
| 6180 | { |
| 6181 | $ECHO "" |
| 6182 | } |
| 6183 | |
| 6184 | case $ECHO in |
| 6185 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 6186 | printf "%s\n" "printf" >&6; } ;; |
| 6187 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 6188 | printf "%s\n" "print -r" >&6; } ;; |
| 6189 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 6190 | printf "%s\n" "cat" >&6; } ;; |
| 6191 | esac |
| 6192 | |
| 6193 | |
| 6194 | |
| 6195 | |
| 6196 | |
| 6197 | |
| 6198 | |
| 6199 | |
| 6200 | |
| 6201 | |
| 6202 | |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6207 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 6208 | if test ${ac_cv_path_SED+y} |
| 6209 | then : |
| 6210 | printf %s "(cached) " >&6 |
| 6211 | else case e in #( |
| 6212 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6213 | for ac_i in 1 2 3 4 5 6 7; do |
| 6214 | ac_script="$ac_script$as_nl$ac_script" |
| 6215 | done |
| 6216 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6217 | { ac_script=; unset ac_script;} |
| 6218 | if test -z "$SED"; then |
| 6219 | ac_path_SED_found=false |
| 6220 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6222 | for as_dir in $PATH |
| 6223 | do |
| 6224 | IFS=$as_save_IFS |
| 6225 | case $as_dir in #((( |
| 6226 | '') as_dir=./ ;; |
| 6227 | */) ;; |
| 6228 | *) as_dir=$as_dir/ ;; |
| 6229 | esac |
| 6230 | for ac_prog in sed gsed |
| 6231 | do |
| 6232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6233 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 6234 | as_fn_executable_p "$ac_path_SED" || continue |
| 6235 | # Check for GNU ac_path_SED and select it if it is found. |
| 6236 | # Check for GNU $ac_path_SED |
| 6237 | case `"$ac_path_SED" --version 2>&1` in #( |
| 6238 | *GNU*) |
| 6239 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6240 | #( |
| 6241 | *) |
| 6242 | ac_count=0 |
| 6243 | printf %s 0123456789 >"conftest.in" |
| 6244 | while : |
| 6245 | do |
| 6246 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6247 | mv "conftest.tmp" "conftest.in" |
| 6248 | cp "conftest.in" "conftest.nl" |
| 6249 | printf "%s\n" '' >> "conftest.nl" |
| 6250 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6251 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6252 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6253 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6254 | # Best one so far, save it but keep looking for a better one |
| 6255 | ac_cv_path_SED="$ac_path_SED" |
| 6256 | ac_path_SED_max=$ac_count |
| 6257 | fi |
| 6258 | # 10*(2^10) chars as input seems more than enough |
| 6259 | test $ac_count -gt 10 && break |
| 6260 | done |
| 6261 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6262 | esac |
| 6263 | |
| 6264 | $ac_path_SED_found && break 3 |
| 6265 | done |
| 6266 | done |
| 6267 | done |
| 6268 | IFS=$as_save_IFS |
| 6269 | if test -z "$ac_cv_path_SED"; then |
| 6270 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6271 | fi |
| 6272 | else |
| 6273 | ac_cv_path_SED=$SED |
| 6274 | fi |
| 6275 | ;; |
| 6276 | esac |
| 6277 | fi |
| 6278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6279 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 6280 | SED="$ac_cv_path_SED" |
| 6281 | rm -f conftest.sed |
| 6282 | |
| 6283 | test -z "$SED" && SED=sed |
| 6284 | Xsed="$SED -e 1s/^X//" |
| 6285 | |
| 6286 | |
| 6287 | |
| 6288 | |
| 6289 | |
| 6290 | |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6297 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 6298 | if test ${ac_cv_path_GREP+y} |
| 6299 | then : |
| 6300 | printf %s "(cached) " >&6 |
| 6301 | else case e in #( |
| 6302 | e) if test -z "$GREP"; then |
| 6303 | ac_path_GREP_found=false |
| 6304 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6306 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6307 | do |
| 6308 | IFS=$as_save_IFS |
| 6309 | case $as_dir in #((( |
| 6310 | '') as_dir=./ ;; |
| 6311 | */) ;; |
| 6312 | *) as_dir=$as_dir/ ;; |
| 6313 | esac |
| 6314 | for ac_prog in grep ggrep |
| 6315 | do |
| 6316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6317 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 6318 | as_fn_executable_p "$ac_path_GREP" || continue |
| 6319 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6320 | # Check for GNU $ac_path_GREP |
| 6321 | case `"$ac_path_GREP" --version 2>&1` in #( |
| 6322 | *GNU*) |
| 6323 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6324 | #( |
| 6325 | *) |
| 6326 | ac_count=0 |
| 6327 | printf %s 0123456789 >"conftest.in" |
| 6328 | while : |
| 6329 | do |
| 6330 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6331 | mv "conftest.tmp" "conftest.in" |
| 6332 | cp "conftest.in" "conftest.nl" |
| 6333 | printf "%s\n" 'GREP' >> "conftest.nl" |
| 6334 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6335 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6336 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6337 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6338 | # Best one so far, save it but keep looking for a better one |
| 6339 | ac_cv_path_GREP="$ac_path_GREP" |
| 6340 | ac_path_GREP_max=$ac_count |
| 6341 | fi |
| 6342 | # 10*(2^10) chars as input seems more than enough |
| 6343 | test $ac_count -gt 10 && break |
| 6344 | done |
| 6345 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6346 | esac |
| 6347 | |
| 6348 | $ac_path_GREP_found && break 3 |
| 6349 | done |
| 6350 | done |
| 6351 | done |
| 6352 | IFS=$as_save_IFS |
| 6353 | if test -z "$ac_cv_path_GREP"; then |
| 6354 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6355 | fi |
| 6356 | else |
| 6357 | ac_cv_path_GREP=$GREP |
| 6358 | fi |
| 6359 | ;; |
| 6360 | esac |
| 6361 | fi |
| 6362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6363 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 6364 | GREP="$ac_cv_path_GREP" |
| 6365 | |
| 6366 | |
| 6367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6368 | printf %s "checking for egrep... " >&6; } |
| 6369 | if test ${ac_cv_path_EGREP+y} |
| 6370 | then : |
| 6371 | printf %s "(cached) " >&6 |
| 6372 | else case e in #( |
| 6373 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6374 | then ac_cv_path_EGREP="$GREP -E" |
| 6375 | else |
| 6376 | if test -z "$EGREP"; then |
| 6377 | ac_path_EGREP_found=false |
| 6378 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6380 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6381 | do |
| 6382 | IFS=$as_save_IFS |
| 6383 | case $as_dir in #((( |
| 6384 | '') as_dir=./ ;; |
| 6385 | */) ;; |
| 6386 | *) as_dir=$as_dir/ ;; |
| 6387 | esac |
| 6388 | for ac_prog in egrep |
| 6389 | do |
| 6390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6391 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 6392 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 6393 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6394 | # Check for GNU $ac_path_EGREP |
| 6395 | case `"$ac_path_EGREP" --version 2>&1` in #( |
| 6396 | *GNU*) |
| 6397 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6398 | #( |
| 6399 | *) |
| 6400 | ac_count=0 |
| 6401 | printf %s 0123456789 >"conftest.in" |
| 6402 | while : |
| 6403 | do |
| 6404 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6405 | mv "conftest.tmp" "conftest.in" |
| 6406 | cp "conftest.in" "conftest.nl" |
| 6407 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 6408 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6409 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6410 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6411 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6412 | # Best one so far, save it but keep looking for a better one |
| 6413 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6414 | ac_path_EGREP_max=$ac_count |
| 6415 | fi |
| 6416 | # 10*(2^10) chars as input seems more than enough |
| 6417 | test $ac_count -gt 10 && break |
| 6418 | done |
| 6419 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6420 | esac |
| 6421 | |
| 6422 | $ac_path_EGREP_found && break 3 |
| 6423 | done |
| 6424 | done |
| 6425 | done |
| 6426 | IFS=$as_save_IFS |
| 6427 | if test -z "$ac_cv_path_EGREP"; then |
| 6428 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6429 | fi |
| 6430 | else |
| 6431 | ac_cv_path_EGREP=$EGREP |
| 6432 | fi |
| 6433 | |
| 6434 | fi ;; |
| 6435 | esac |
| 6436 | fi |
| 6437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6438 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 6439 | EGREP="$ac_cv_path_EGREP" |
| 6440 | |
| 6441 | EGREP_TRADITIONAL=$EGREP |
| 6442 | ac_cv_path_EGREP_TRADITIONAL=$EGREP |
| 6443 | |
| 6444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 6445 | printf %s "checking for fgrep... " >&6; } |
| 6446 | if test ${ac_cv_path_FGREP+y} |
| 6447 | then : |
| 6448 | printf %s "(cached) " >&6 |
| 6449 | else case e in #( |
| 6450 | e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 6451 | then ac_cv_path_FGREP="$GREP -F" |
| 6452 | else |
| 6453 | if test -z "$FGREP"; then |
| 6454 | ac_path_FGREP_found=false |
| 6455 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6457 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6458 | do |
| 6459 | IFS=$as_save_IFS |
| 6460 | case $as_dir in #((( |
| 6461 | '') as_dir=./ ;; |
| 6462 | */) ;; |
| 6463 | *) as_dir=$as_dir/ ;; |
| 6464 | esac |
| 6465 | for ac_prog in fgrep |
| 6466 | do |
| 6467 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6468 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 6469 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 6470 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 6471 | # Check for GNU $ac_path_FGREP |
| 6472 | case `"$ac_path_FGREP" --version 2>&1` in #( |
| 6473 | *GNU*) |
| 6474 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 6475 | #( |
| 6476 | *) |
| 6477 | ac_count=0 |
| 6478 | printf %s 0123456789 >"conftest.in" |
| 6479 | while : |
| 6480 | do |
| 6481 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6482 | mv "conftest.tmp" "conftest.in" |
| 6483 | cp "conftest.in" "conftest.nl" |
| 6484 | printf "%s\n" 'FGREP' >> "conftest.nl" |
| 6485 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6486 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6487 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6488 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 6489 | # Best one so far, save it but keep looking for a better one |
| 6490 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 6491 | ac_path_FGREP_max=$ac_count |
| 6492 | fi |
| 6493 | # 10*(2^10) chars as input seems more than enough |
| 6494 | test $ac_count -gt 10 && break |
| 6495 | done |
| 6496 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6497 | esac |
| 6498 | |
| 6499 | $ac_path_FGREP_found && break 3 |
| 6500 | done |
| 6501 | done |
| 6502 | done |
| 6503 | IFS=$as_save_IFS |
| 6504 | if test -z "$ac_cv_path_FGREP"; then |
| 6505 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6506 | fi |
| 6507 | else |
| 6508 | ac_cv_path_FGREP=$FGREP |
| 6509 | fi |
| 6510 | |
| 6511 | fi ;; |
| 6512 | esac |
| 6513 | fi |
| 6514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 6515 | printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 6516 | FGREP="$ac_cv_path_FGREP" |
| 6517 | |
| 6518 | |
| 6519 | test -z "$GREP" && GREP=grep |
| 6520 | |
| 6521 | |
| 6522 | |
| 6523 | |
| 6524 | |
| 6525 | |
| 6526 | |
| 6527 | |
| 6528 | |
| 6529 | |
| 6530 | |
| 6531 | |
| 6532 | |
| 6533 | |
| 6534 | |
| 6535 | |
| 6536 | |
| 6537 | |
| 6538 | |
| 6539 | # Check whether --with-gnu-ld was given. |
| 6540 | if test ${with_gnu_ld+y} |
| 6541 | then : |
| 6542 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 6543 | else case e in #( |
| 6544 | e) with_gnu_ld=no ;; |
| 6545 | esac |
| 6546 | fi |
| 6547 | |
| 6548 | ac_prog=ld |
| 6549 | if test yes = "$GCC"; then |
| 6550 | # Check if gcc -print-prog-name=ld gives a path. |
| 6551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 6552 | printf %s "checking for ld used by $CC... " >&6; } |
| 6553 | case $host in |
| 6554 | *-*-mingw* | *-*-windows*) |
| 6555 | # gcc leaves a trailing carriage return, which upsets mingw |
| 6556 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6557 | *) |
| 6558 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6559 | esac |
| 6560 | case $ac_prog in |
| 6561 | # Accept absolute paths. |
| 6562 | [\\/]* | ?:[\\/]*) |
| 6563 | re_direlt='/[^/][^/]*/\.\./' |
| 6564 | # Canonicalize the pathname of ld |
| 6565 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 6566 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 6567 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 6568 | done |
| 6569 | test -z "$LD" && LD=$ac_prog |
| 6570 | ;; |
| 6571 | "") |
| 6572 | # If it fails, then pretend we aren't using GCC. |
| 6573 | ac_prog=ld |
| 6574 | ;; |
| 6575 | *) |
| 6576 | # If it is relative, then search for the first ld in PATH. |
| 6577 | with_gnu_ld=unknown |
| 6578 | ;; |
| 6579 | esac |
| 6580 | elif test yes = "$with_gnu_ld"; then |
| 6581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6582 | printf %s "checking for GNU ld... " >&6; } |
| 6583 | else |
| 6584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6585 | printf %s "checking for non-GNU ld... " >&6; } |
| 6586 | fi |
| 6587 | if test ${lt_cv_path_LD+y} |
| 6588 | then : |
| 6589 | printf %s "(cached) " >&6 |
| 6590 | else case e in #( |
| 6591 | e) if test -z "$LD"; then |
| 6592 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6593 | for ac_dir in $PATH; do |
| 6594 | IFS=$lt_save_ifs |
| 6595 | test -z "$ac_dir" && ac_dir=. |
| 6596 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6597 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 6598 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6599 | # but apparently some variants of GNU ld only accept -v. |
| 6600 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6601 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6602 | *GNU* | *'with BFD'*) |
| 6603 | test no != "$with_gnu_ld" && break |
| 6604 | ;; |
| 6605 | *) |
| 6606 | test yes != "$with_gnu_ld" && break |
| 6607 | ;; |
| 6608 | esac |
| 6609 | fi |
| 6610 | done |
| 6611 | IFS=$lt_save_ifs |
| 6612 | else |
| 6613 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 6614 | fi ;; |
| 6615 | esac |
| 6616 | fi |
| 6617 | |
| 6618 | LD=$lt_cv_path_LD |
| 6619 | if test -n "$LD"; then |
| 6620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6621 | printf "%s\n" "$LD" >&6; } |
| 6622 | else |
| 6623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6624 | printf "%s\n" "no" >&6; } |
| 6625 | fi |
| 6626 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6628 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6629 | if test ${lt_cv_prog_gnu_ld+y} |
| 6630 | then : |
| 6631 | printf %s "(cached) " >&6 |
| 6632 | else case e in #( |
| 6633 | e) # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6634 | case `$LD -v 2>&1 </dev/null` in |
| 6635 | *GNU* | *'with BFD'*) |
| 6636 | lt_cv_prog_gnu_ld=yes |
| 6637 | ;; |
| 6638 | *) |
| 6639 | lt_cv_prog_gnu_ld=no |
| 6640 | ;; |
| 6641 | esac ;; |
| 6642 | esac |
| 6643 | fi |
| 6644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6645 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 6646 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6647 | |
| 6648 | |
| 6649 | |
| 6650 | |
| 6651 | |
| 6652 | |
| 6653 | |
| 6654 | |
| 6655 | |
| 6656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6657 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6658 | if test ${lt_cv_path_NM+y} |
| 6659 | then : |
| 6660 | printf %s "(cached) " >&6 |
| 6661 | else case e in #( |
| 6662 | e) if test -n "$NM"; then |
| 6663 | # Let the user override the test. |
| 6664 | lt_cv_path_NM=$NM |
| 6665 | else |
| 6666 | lt_nm_to_check=${ac_tool_prefix}nm |
| 6667 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6668 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6669 | fi |
| 6670 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6671 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6672 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6673 | IFS=$lt_save_ifs |
| 6674 | test -z "$ac_dir" && ac_dir=. |
| 6675 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 6676 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 6677 | # Check to see if the nm accepts a BSD-compat flag. |
| 6678 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 6679 | # nm: unknown option "B" ignored |
| 6680 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6681 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 6682 | case $build_os in |
| 6683 | mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; |
| 6684 | *) lt_bad_file=/dev/null ;; |
| 6685 | esac |
| 6686 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in |
| 6687 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 6688 | lt_cv_path_NM="$tmp_nm -B" |
| 6689 | break 2 |
| 6690 | ;; |
| 6691 | *) |
| 6692 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in |
| 6693 | */dev/null*) |
| 6694 | lt_cv_path_NM="$tmp_nm -p" |
| 6695 | break 2 |
| 6696 | ;; |
| 6697 | *) |
| 6698 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6699 | continue # so that we can try to find one that supports BSD flags |
| 6700 | ;; |
| 6701 | esac |
| 6702 | ;; |
| 6703 | esac |
| 6704 | fi |
| 6705 | done |
| 6706 | IFS=$lt_save_ifs |
| 6707 | done |
| 6708 | : ${lt_cv_path_NM=no} |
| 6709 | fi ;; |
| 6710 | esac |
| 6711 | fi |
| 6712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6713 | printf "%s\n" "$lt_cv_path_NM" >&6; } |
| 6714 | if test no != "$lt_cv_path_NM"; then |
| 6715 | NM=$lt_cv_path_NM |
| 6716 | else |
| 6717 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6718 | if test -n "$DUMPBIN"; then : |
| 6719 | # Let the user override the test. |
| 6720 | else |
| 6721 | if test -n "$ac_tool_prefix"; then |
| 6722 | for ac_prog in dumpbin "link -dump" |
| 6723 | do |
| 6724 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6725 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6727 | printf %s "checking for $ac_word... " >&6; } |
| 6728 | if test ${ac_cv_prog_DUMPBIN+y} |
| 6729 | then : |
| 6730 | printf %s "(cached) " >&6 |
| 6731 | else case e in #( |
| 6732 | e) if test -n "$DUMPBIN"; then |
| 6733 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6734 | else |
| 6735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6736 | for as_dir in $PATH |
| 6737 | do |
| 6738 | IFS=$as_save_IFS |
| 6739 | case $as_dir in #((( |
| 6740 | '') as_dir=./ ;; |
| 6741 | */) ;; |
| 6742 | *) as_dir=$as_dir/ ;; |
| 6743 | esac |
| 6744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6745 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6746 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6747 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6748 | break 2 |
| 6749 | fi |
| 6750 | done |
| 6751 | done |
| 6752 | IFS=$as_save_IFS |
| 6753 | |
| 6754 | fi ;; |
| 6755 | esac |
| 6756 | fi |
| 6757 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6758 | if test -n "$DUMPBIN"; then |
| 6759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6760 | printf "%s\n" "$DUMPBIN" >&6; } |
| 6761 | else |
| 6762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6763 | printf "%s\n" "no" >&6; } |
| 6764 | fi |
| 6765 | |
| 6766 | |
| 6767 | test -n "$DUMPBIN" && break |
| 6768 | done |
| 6769 | fi |
| 6770 | if test -z "$DUMPBIN"; then |
| 6771 | ac_ct_DUMPBIN=$DUMPBIN |
| 6772 | for ac_prog in dumpbin "link -dump" |
| 6773 | do |
| 6774 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6775 | set dummy $ac_prog; ac_word=$2 |
| 6776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6777 | printf %s "checking for $ac_word... " >&6; } |
| 6778 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y} |
| 6779 | then : |
| 6780 | printf %s "(cached) " >&6 |
| 6781 | else case e in #( |
| 6782 | e) if test -n "$ac_ct_DUMPBIN"; then |
| 6783 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6784 | else |
| 6785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6786 | for as_dir in $PATH |
| 6787 | do |
| 6788 | IFS=$as_save_IFS |
| 6789 | case $as_dir in #((( |
| 6790 | '') as_dir=./ ;; |
| 6791 | */) ;; |
| 6792 | *) as_dir=$as_dir/ ;; |
| 6793 | esac |
| 6794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6795 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6796 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6797 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6798 | break 2 |
| 6799 | fi |
| 6800 | done |
| 6801 | done |
| 6802 | IFS=$as_save_IFS |
| 6803 | |
| 6804 | fi ;; |
| 6805 | esac |
| 6806 | fi |
| 6807 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6808 | if test -n "$ac_ct_DUMPBIN"; then |
| 6809 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6810 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; } |
| 6811 | else |
| 6812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6813 | printf "%s\n" "no" >&6; } |
| 6814 | fi |
| 6815 | |
| 6816 | |
| 6817 | test -n "$ac_ct_DUMPBIN" && break |
| 6818 | done |
| 6819 | |
| 6820 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6821 | DUMPBIN=":" |
| 6822 | else |
| 6823 | case $cross_compiling:$ac_tool_warned in |
| 6824 | yes:) |
| 6825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6826 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6827 | ac_tool_warned=yes ;; |
| 6828 | esac |
| 6829 | DUMPBIN=$ac_ct_DUMPBIN |
| 6830 | fi |
| 6831 | fi |
| 6832 | |
| 6833 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in |
| 6834 | *COFF*) |
| 6835 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 6836 | ;; |
| 6837 | *) |
| 6838 | DUMPBIN=: |
| 6839 | ;; |
| 6840 | esac |
| 6841 | fi |
| 6842 | |
| 6843 | if test : != "$DUMPBIN"; then |
| 6844 | NM=$DUMPBIN |
| 6845 | fi |
| 6846 | fi |
| 6847 | test -z "$NM" && NM=nm |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | |
| 6852 | |
| 6853 | |
| 6854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6855 | printf %s "checking the name lister ($NM) interface... " >&6; } |
| 6856 | if test ${lt_cv_nm_interface+y} |
| 6857 | then : |
| 6858 | printf %s "(cached) " >&6 |
| 6859 | else case e in #( |
| 6860 | e) lt_cv_nm_interface="BSD nm" |
| 6861 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6862 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6863 | (eval "$ac_compile" 2>conftest.err) |
| 6864 | cat conftest.err >&5 |
| 6865 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6866 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6867 | cat conftest.err >&5 |
| 6868 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6869 | cat conftest.out >&5 |
| 6870 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6871 | lt_cv_nm_interface="MS dumpbin" |
| 6872 | fi |
| 6873 | rm -f conftest* ;; |
| 6874 | esac |
| 6875 | fi |
| 6876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6877 | printf "%s\n" "$lt_cv_nm_interface" >&6; } |
| 6878 | |
| 6879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6880 | printf %s "checking whether ln -s works... " >&6; } |
| 6881 | LN_S=$as_ln_s |
| 6882 | if test "$LN_S" = "ln -s"; then |
| 6883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6884 | printf "%s\n" "yes" >&6; } |
| 6885 | else |
| 6886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6887 | printf "%s\n" "no, using $LN_S" >&6; } |
| 6888 | fi |
| 6889 | |
| 6890 | # find the maximum length of command line arguments |
| 6891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6892 | printf %s "checking the maximum length of command line arguments... " >&6; } |
| 6893 | if test ${lt_cv_sys_max_cmd_len+y} |
| 6894 | then : |
| 6895 | printf %s "(cached) " >&6 |
| 6896 | else case e in #( |
| 6897 | e) i=0 |
| 6898 | teststring=ABCD |
| 6899 | |
| 6900 | case $build_os in |
| 6901 | msdosdjgpp*) |
| 6902 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6903 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6904 | # during glob expansion). Even if it were fixed, the result of this |
| 6905 | # check would be larger than it should be. |
| 6906 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6907 | ;; |
| 6908 | |
| 6909 | gnu* | ironclad*) |
| 6910 | # Under GNU Hurd and Ironclad, this test is not required because there |
| 6911 | # is no limit to the length of command line arguments. |
| 6912 | # Libtool will interpret -1 as no limit whatsoever |
| 6913 | lt_cv_sys_max_cmd_len=-1; |
| 6914 | ;; |
| 6915 | |
| 6916 | cygwin* | mingw* | windows* | cegcc*) |
| 6917 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6918 | # about 5 minutes as the teststring grows exponentially. |
| 6919 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6920 | # you end up with a "frozen" computer, even though with patience |
| 6921 | # the test eventually succeeds (with a max line length of 256k). |
| 6922 | # Instead, let's just punt: use the minimum linelength reported by |
| 6923 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6924 | lt_cv_sys_max_cmd_len=8192; |
| 6925 | ;; |
| 6926 | |
| 6927 | mint*) |
| 6928 | # On MiNT this can take a long time and run out of memory. |
| 6929 | lt_cv_sys_max_cmd_len=8192; |
| 6930 | ;; |
| 6931 | |
| 6932 | amigaos*) |
| 6933 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6934 | # So we just punt and use a minimum line length of 8192. |
| 6935 | lt_cv_sys_max_cmd_len=8192; |
| 6936 | ;; |
| 6937 | |
| 6938 | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) |
| 6939 | # This has been around since 386BSD, at least. Likely further. |
| 6940 | if test -x /sbin/sysctl; then |
| 6941 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6942 | elif test -x /usr/sbin/sysctl; then |
| 6943 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6944 | else |
| 6945 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6946 | fi |
| 6947 | # And add a safety zone |
| 6948 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6949 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6950 | ;; |
| 6951 | |
| 6952 | interix*) |
| 6953 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6954 | lt_cv_sys_max_cmd_len=196608 |
| 6955 | ;; |
| 6956 | |
| 6957 | os2*) |
| 6958 | # The test takes a long time on OS/2. |
| 6959 | lt_cv_sys_max_cmd_len=8192 |
| 6960 | ;; |
| 6961 | |
| 6962 | osf*) |
| 6963 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6964 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6965 | # nice to cause kernel panics so lets avoid the loop below. |
| 6966 | # First set a reasonable default. |
| 6967 | lt_cv_sys_max_cmd_len=16384 |
| 6968 | # |
| 6969 | if test -x /sbin/sysconfig; then |
| 6970 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6971 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6972 | esac |
| 6973 | fi |
| 6974 | ;; |
| 6975 | sco3.2v5*) |
| 6976 | lt_cv_sys_max_cmd_len=102400 |
| 6977 | ;; |
| 6978 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6979 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6980 | if test -n "$kargmax"; then |
| 6981 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` |
| 6982 | else |
| 6983 | lt_cv_sys_max_cmd_len=32768 |
| 6984 | fi |
| 6985 | ;; |
| 6986 | *) |
| 6987 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6988 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 6989 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 6990 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6991 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6992 | else |
| 6993 | # Make teststring a little bigger before we do anything with it. |
| 6994 | # a 1K string should be a reasonable start. |
| 6995 | for i in 1 2 3 4 5 6 7 8; do |
| 6996 | teststring=$teststring$teststring |
| 6997 | done |
| 6998 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6999 | # If test is not a shell built-in, we'll probably end up computing a |
| 7000 | # maximum length that is only half of the actual maximum length, but |
| 7001 | # we can't tell. |
| 7002 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 7003 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 7004 | test 17 != "$i" # 1/2 MB should be enough |
| 7005 | do |
| 7006 | i=`expr $i + 1` |
| 7007 | teststring=$teststring$teststring |
| 7008 | done |
| 7009 | # Only check the string length outside the loop. |
| 7010 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 7011 | teststring= |
| 7012 | # Add a significant safety factor because C++ compilers can tack on |
| 7013 | # massive amounts of additional arguments before passing them to the |
| 7014 | # linker. It appears as though 1/2 is a usable value. |
| 7015 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 7016 | fi |
| 7017 | ;; |
| 7018 | esac |
| 7019 | ;; |
| 7020 | esac |
| 7021 | fi |
| 7022 | |
| 7023 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 7024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 7025 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } |
| 7026 | else |
| 7027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 7028 | printf "%s\n" "none" >&6; } |
| 7029 | fi |
| 7030 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 7031 | |
| 7032 | |
| 7033 | |
| 7034 | |
| 7035 | |
| 7036 | |
| 7037 | : ${CP="cp -f"} |
| 7038 | : ${MV="mv -f"} |
| 7039 | : ${RM="rm -f"} |
| 7040 | |
| 7041 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 7042 | lt_unset=unset |
| 7043 | else |
| 7044 | lt_unset=false |
| 7045 | fi |
| 7046 | |
| 7047 | |
| 7048 | |
| 7049 | |
| 7050 | |
| 7051 | # test EBCDIC or ASCII |
| 7052 | case `echo X|tr X '\101'` in |
| 7053 | A) # ASCII based system |
| 7054 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 7055 | lt_SP2NL='tr \040 \012' |
| 7056 | lt_NL2SP='tr \015\012 \040\040' |
| 7057 | ;; |
| 7058 | *) # EBCDIC based system |
| 7059 | lt_SP2NL='tr \100 \n' |
| 7060 | lt_NL2SP='tr \r\n \100\100' |
| 7061 | ;; |
| 7062 | esac |
| 7063 | |
| 7064 | |
| 7065 | |
| 7066 | |
| 7067 | |
| 7068 | |
| 7069 | |
| 7070 | |
| 7071 | |
| 7072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 7073 | printf %s "checking how to convert $build file names to $host format... " >&6; } |
| 7074 | if test ${lt_cv_to_host_file_cmd+y} |
| 7075 | then : |
| 7076 | printf %s "(cached) " >&6 |
| 7077 | else case e in #( |
| 7078 | e) case $host in |
| 7079 | *-*-mingw* ) |
| 7080 | case $build in |
| 7081 | *-*-mingw* | *-*-windows* ) # actually msys |
| 7082 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 7083 | ;; |
| 7084 | *-*-cygwin* ) |
| 7085 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 7086 | ;; |
| 7087 | * ) # otherwise, assume *nix |
| 7088 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 7089 | ;; |
| 7090 | esac |
| 7091 | ;; |
| 7092 | *-*-cygwin* ) |
| 7093 | case $build in |
| 7094 | *-*-mingw* | *-*-windows* ) # actually msys |
| 7095 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 7096 | ;; |
| 7097 | *-*-cygwin* ) |
| 7098 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7099 | ;; |
| 7100 | * ) # otherwise, assume *nix |
| 7101 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 7102 | ;; |
| 7103 | esac |
| 7104 | ;; |
| 7105 | * ) # unhandled hosts (and "normal" native builds) |
| 7106 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7107 | ;; |
| 7108 | esac |
| 7109 | ;; |
| 7110 | esac |
| 7111 | fi |
| 7112 | |
| 7113 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 7114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 7115 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } |
| 7116 | |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | |
| 7121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 7122 | printf %s "checking how to convert $build file names to toolchain format... " >&6; } |
| 7123 | if test ${lt_cv_to_tool_file_cmd+y} |
| 7124 | then : |
| 7125 | printf %s "(cached) " >&6 |
| 7126 | else case e in #( |
| 7127 | e) #assume ordinary cross tools, or native build. |
| 7128 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 7129 | case $host in |
| 7130 | *-*-mingw* | *-*-windows* ) |
| 7131 | case $build in |
| 7132 | *-*-mingw* | *-*-windows* ) # actually msys |
| 7133 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 7134 | ;; |
| 7135 | esac |
| 7136 | ;; |
| 7137 | esac |
| 7138 | ;; |
| 7139 | esac |
| 7140 | fi |
| 7141 | |
| 7142 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 7143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 7144 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } |
| 7145 | |
| 7146 | |
| 7147 | |
| 7148 | |
| 7149 | |
| 7150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 7151 | printf %s "checking for $LD option to reload object files... " >&6; } |
| 7152 | if test ${lt_cv_ld_reload_flag+y} |
| 7153 | then : |
| 7154 | printf %s "(cached) " >&6 |
| 7155 | else case e in #( |
| 7156 | e) lt_cv_ld_reload_flag='-r' ;; |
| 7157 | esac |
| 7158 | fi |
| 7159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 7160 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } |
| 7161 | reload_flag=$lt_cv_ld_reload_flag |
| 7162 | case $reload_flag in |
| 7163 | "" | " "*) ;; |
| 7164 | *) reload_flag=" $reload_flag" ;; |
| 7165 | esac |
| 7166 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7167 | case $host_os in |
| 7168 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 7169 | if test yes != "$GCC"; then |
| 7170 | reload_cmds=false |
| 7171 | fi |
| 7172 | ;; |
| 7173 | darwin*) |
| 7174 | if test yes = "$GCC"; then |
| 7175 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 7176 | else |
| 7177 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7178 | fi |
| 7179 | ;; |
| 7180 | esac |
| 7181 | |
| 7182 | |
| 7183 | |
| 7184 | |
| 7185 | |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | |
| 7190 | # Extract the first word of "file", so it can be a program name with args. |
| 7191 | set dummy file; ac_word=$2 |
| 7192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7193 | printf %s "checking for $ac_word... " >&6; } |
| 7194 | if test ${ac_cv_prog_FILECMD+y} |
| 7195 | then : |
| 7196 | printf %s "(cached) " >&6 |
| 7197 | else case e in #( |
| 7198 | e) if test -n "$FILECMD"; then |
| 7199 | ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. |
| 7200 | else |
| 7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7202 | for as_dir in $PATH |
| 7203 | do |
| 7204 | IFS=$as_save_IFS |
| 7205 | case $as_dir in #((( |
| 7206 | '') as_dir=./ ;; |
| 7207 | */) ;; |
| 7208 | *) as_dir=$as_dir/ ;; |
| 7209 | esac |
| 7210 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7211 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7212 | ac_cv_prog_FILECMD="file" |
| 7213 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7214 | break 2 |
| 7215 | fi |
| 7216 | done |
| 7217 | done |
| 7218 | IFS=$as_save_IFS |
| 7219 | |
| 7220 | test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" |
| 7221 | fi ;; |
| 7222 | esac |
| 7223 | fi |
| 7224 | FILECMD=$ac_cv_prog_FILECMD |
| 7225 | if test -n "$FILECMD"; then |
| 7226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 |
| 7227 | printf "%s\n" "$FILECMD" >&6; } |
| 7228 | else |
| 7229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7230 | printf "%s\n" "no" >&6; } |
| 7231 | fi |
| 7232 | |
| 7233 | |
| 7234 | |
| 7235 | |
| 7236 | |
| 7237 | |
| 7238 | |
| 7239 | |
| 7240 | if test -n "$ac_tool_prefix"; then |
| 7241 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 7242 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 7243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7244 | printf %s "checking for $ac_word... " >&6; } |
| 7245 | if test ${ac_cv_prog_OBJDUMP+y} |
| 7246 | then : |
| 7247 | printf %s "(cached) " >&6 |
| 7248 | else case e in #( |
| 7249 | e) if test -n "$OBJDUMP"; then |
| 7250 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7251 | else |
| 7252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7253 | for as_dir in $PATH |
| 7254 | do |
| 7255 | IFS=$as_save_IFS |
| 7256 | case $as_dir in #((( |
| 7257 | '') as_dir=./ ;; |
| 7258 | */) ;; |
| 7259 | *) as_dir=$as_dir/ ;; |
| 7260 | esac |
| 7261 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7262 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7263 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 7264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7265 | break 2 |
| 7266 | fi |
| 7267 | done |
| 7268 | done |
| 7269 | IFS=$as_save_IFS |
| 7270 | |
| 7271 | fi ;; |
| 7272 | esac |
| 7273 | fi |
| 7274 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7275 | if test -n "$OBJDUMP"; then |
| 7276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7277 | printf "%s\n" "$OBJDUMP" >&6; } |
| 7278 | else |
| 7279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7280 | printf "%s\n" "no" >&6; } |
| 7281 | fi |
| 7282 | |
| 7283 | |
| 7284 | fi |
| 7285 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 7286 | ac_ct_OBJDUMP=$OBJDUMP |
| 7287 | # Extract the first word of "objdump", so it can be a program name with args. |
| 7288 | set dummy objdump; ac_word=$2 |
| 7289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7290 | printf %s "checking for $ac_word... " >&6; } |
| 7291 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 7292 | then : |
| 7293 | printf %s "(cached) " >&6 |
| 7294 | else case e in #( |
| 7295 | e) if test -n "$ac_ct_OBJDUMP"; then |
| 7296 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7297 | else |
| 7298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7299 | for as_dir in $PATH |
| 7300 | do |
| 7301 | IFS=$as_save_IFS |
| 7302 | case $as_dir in #((( |
| 7303 | '') as_dir=./ ;; |
| 7304 | */) ;; |
| 7305 | *) as_dir=$as_dir/ ;; |
| 7306 | esac |
| 7307 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7308 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7309 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 7310 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7311 | break 2 |
| 7312 | fi |
| 7313 | done |
| 7314 | done |
| 7315 | IFS=$as_save_IFS |
| 7316 | |
| 7317 | fi ;; |
| 7318 | esac |
| 7319 | fi |
| 7320 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7321 | if test -n "$ac_ct_OBJDUMP"; then |
| 7322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7323 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 7324 | else |
| 7325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7326 | printf "%s\n" "no" >&6; } |
| 7327 | fi |
| 7328 | |
| 7329 | if test "x$ac_ct_OBJDUMP" = x; then |
| 7330 | OBJDUMP="false" |
| 7331 | else |
| 7332 | case $cross_compiling:$ac_tool_warned in |
| 7333 | yes:) |
| 7334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7335 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7336 | ac_tool_warned=yes ;; |
| 7337 | esac |
| 7338 | OBJDUMP=$ac_ct_OBJDUMP |
| 7339 | fi |
| 7340 | else |
| 7341 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 7342 | fi |
| 7343 | |
| 7344 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7345 | |
| 7346 | |
| 7347 | |
| 7348 | |
| 7349 | |
| 7350 | |
| 7351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 7352 | printf %s "checking how to recognize dependent libraries... " >&6; } |
| 7353 | if test ${lt_cv_deplibs_check_method+y} |
| 7354 | then : |
| 7355 | printf %s "(cached) " >&6 |
| 7356 | else case e in #( |
| 7357 | e) lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 7358 | lt_cv_file_magic_test_file= |
| 7359 | lt_cv_deplibs_check_method='unknown' |
| 7360 | # Need to set the preceding variable on all platforms that support |
| 7361 | # interlibrary dependencies. |
| 7362 | # 'none' -- dependencies not supported. |
| 7363 | # 'unknown' -- same as none, but documents that we really don't know. |
| 7364 | # 'pass_all' -- all dependencies passed with no checks. |
| 7365 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 7366 | # that responds to the $file_magic_cmd with a given extended regex. |
| 7367 | # If you have 'file' or equivalent on your system and you're not sure |
| 7368 | # whether 'pass_all' will *always* work, you probably want this one. |
| 7369 | |
| 7370 | case $host_os in |
| 7371 | aix[4-9]*) |
| 7372 | lt_cv_deplibs_check_method=pass_all |
| 7373 | ;; |
| 7374 | |
| 7375 | beos*) |
| 7376 | lt_cv_deplibs_check_method=pass_all |
| 7377 | ;; |
| 7378 | |
| 7379 | bsdi[45]*) |
| 7380 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 7381 | lt_cv_file_magic_cmd='$FILECMD -L' |
| 7382 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 7383 | ;; |
| 7384 | |
| 7385 | cygwin*) |
| 7386 | # func_win32_libid is a shell function defined in ltmain.sh |
| 7387 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7388 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7389 | ;; |
| 7390 | |
| 7391 | mingw* | windows* | pw32*) |
| 7392 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 7393 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 7394 | # unless we find 'file', for example because we are cross-compiling. |
| 7395 | if ( file / ) >/dev/null 2>&1; then |
| 7396 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7397 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7398 | else |
| 7399 | # Keep this pattern in sync with the one in func_win32_libid. |
| 7400 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' |
| 7401 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7402 | fi |
| 7403 | ;; |
| 7404 | |
| 7405 | cegcc*) |
| 7406 | # use the weaker test based on 'objdump'. See mingw*. |
| 7407 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 7408 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7409 | ;; |
| 7410 | |
| 7411 | darwin* | rhapsody*) |
| 7412 | lt_cv_deplibs_check_method=pass_all |
| 7413 | ;; |
| 7414 | |
| 7415 | freebsd* | dragonfly* | midnightbsd*) |
| 7416 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7417 | case $host_cpu in |
| 7418 | i*86 ) |
| 7419 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 7420 | # Let's accept both of them until this is cleared up. |
| 7421 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 7422 | lt_cv_file_magic_cmd=$FILECMD |
| 7423 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 7424 | ;; |
| 7425 | esac |
| 7426 | else |
| 7427 | lt_cv_deplibs_check_method=pass_all |
| 7428 | fi |
| 7429 | ;; |
| 7430 | |
| 7431 | haiku*) |
| 7432 | lt_cv_deplibs_check_method=pass_all |
| 7433 | ;; |
| 7434 | |
| 7435 | hpux10.20* | hpux11*) |
| 7436 | lt_cv_file_magic_cmd=$FILECMD |
| 7437 | case $host_cpu in |
| 7438 | ia64*) |
| 7439 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 7440 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 7441 | ;; |
| 7442 | hppa*64*) |
| 7443 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 7444 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 7445 | ;; |
| 7446 | *) |
| 7447 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 7448 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 7449 | ;; |
| 7450 | esac |
| 7451 | ;; |
| 7452 | |
| 7453 | interix[3-9]*) |
| 7454 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 7455 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 7456 | ;; |
| 7457 | |
| 7458 | irix5* | irix6* | nonstopux*) |
| 7459 | case $LD in |
| 7460 | *-32|*"-32 ") libmagic=32-bit;; |
| 7461 | *-n32|*"-n32 ") libmagic=N32;; |
| 7462 | *-64|*"-64 ") libmagic=64-bit;; |
| 7463 | *) libmagic=never-match;; |
| 7464 | esac |
| 7465 | lt_cv_deplibs_check_method=pass_all |
| 7466 | ;; |
| 7467 | |
| 7468 | # This must be glibc/ELF. |
| 7469 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 7470 | lt_cv_deplibs_check_method=pass_all |
| 7471 | ;; |
| 7472 | |
| 7473 | *-mlibc) |
| 7474 | lt_cv_deplibs_check_method=pass_all |
| 7475 | ;; |
| 7476 | |
| 7477 | netbsd* | netbsdelf*-gnu) |
| 7478 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7479 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7480 | else |
| 7481 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 7482 | fi |
| 7483 | ;; |
| 7484 | |
| 7485 | newos6*) |
| 7486 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 7487 | lt_cv_file_magic_cmd=$FILECMD |
| 7488 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 7489 | ;; |
| 7490 | |
| 7491 | *nto* | *qnx*) |
| 7492 | lt_cv_deplibs_check_method=pass_all |
| 7493 | ;; |
| 7494 | |
| 7495 | openbsd*) |
| 7496 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 7497 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 7498 | else |
| 7499 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7500 | fi |
| 7501 | ;; |
| 7502 | |
| 7503 | osf3* | osf4* | osf5*) |
| 7504 | lt_cv_deplibs_check_method=pass_all |
| 7505 | ;; |
| 7506 | |
| 7507 | rdos*) |
| 7508 | lt_cv_deplibs_check_method=pass_all |
| 7509 | ;; |
| 7510 | |
| 7511 | serenity*) |
| 7512 | lt_cv_deplibs_check_method=pass_all |
| 7513 | ;; |
| 7514 | |
| 7515 | solaris*) |
| 7516 | lt_cv_deplibs_check_method=pass_all |
| 7517 | ;; |
| 7518 | |
| 7519 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 7520 | lt_cv_deplibs_check_method=pass_all |
| 7521 | ;; |
| 7522 | |
| 7523 | sysv4 | sysv4.3*) |
| 7524 | case $host_vendor in |
| 7525 | motorola) |
| 7526 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 7527 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 7528 | ;; |
| 7529 | ncr) |
| 7530 | lt_cv_deplibs_check_method=pass_all |
| 7531 | ;; |
| 7532 | sequent) |
| 7533 | lt_cv_file_magic_cmd='/bin/file' |
| 7534 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 7535 | ;; |
| 7536 | sni) |
| 7537 | lt_cv_file_magic_cmd='/bin/file' |
| 7538 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 7539 | lt_cv_file_magic_test_file=/lib/libc.so |
| 7540 | ;; |
| 7541 | siemens) |
| 7542 | lt_cv_deplibs_check_method=pass_all |
| 7543 | ;; |
| 7544 | pc) |
| 7545 | lt_cv_deplibs_check_method=pass_all |
| 7546 | ;; |
| 7547 | esac |
| 7548 | ;; |
| 7549 | |
| 7550 | tpf*) |
| 7551 | lt_cv_deplibs_check_method=pass_all |
| 7552 | ;; |
| 7553 | os2*) |
| 7554 | lt_cv_deplibs_check_method=pass_all |
| 7555 | ;; |
| 7556 | esac |
| 7557 | ;; |
| 7558 | esac |
| 7559 | fi |
| 7560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 7561 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } |
| 7562 | |
| 7563 | file_magic_glob= |
| 7564 | want_nocaseglob=no |
| 7565 | if test "$build" = "$host"; then |
| 7566 | case $host_os in |
| 7567 | mingw* | windows* | pw32*) |
| 7568 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 7569 | want_nocaseglob=yes |
| 7570 | else |
| 7571 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 7572 | fi |
| 7573 | ;; |
| 7574 | esac |
| 7575 | fi |
| 7576 | |
| 7577 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 7578 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 7579 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7580 | |
| 7581 | |
| 7582 | |
| 7583 | |
| 7584 | |
| 7585 | |
| 7586 | |
| 7587 | |
| 7588 | |
| 7589 | |
| 7590 | |
| 7591 | |
| 7592 | |
| 7593 | |
| 7594 | |
| 7595 | |
| 7596 | |
| 7597 | |
| 7598 | |
| 7599 | |
| 7600 | |
| 7601 | |
| 7602 | if test -n "$ac_tool_prefix"; then |
| 7603 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7604 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7606 | printf %s "checking for $ac_word... " >&6; } |
| 7607 | if test ${ac_cv_prog_DLLTOOL+y} |
| 7608 | then : |
| 7609 | printf %s "(cached) " >&6 |
| 7610 | else case e in #( |
| 7611 | e) if test -n "$DLLTOOL"; then |
| 7612 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7613 | else |
| 7614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7615 | for as_dir in $PATH |
| 7616 | do |
| 7617 | IFS=$as_save_IFS |
| 7618 | case $as_dir in #((( |
| 7619 | '') as_dir=./ ;; |
| 7620 | */) ;; |
| 7621 | *) as_dir=$as_dir/ ;; |
| 7622 | esac |
| 7623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7624 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7625 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7626 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7627 | break 2 |
| 7628 | fi |
| 7629 | done |
| 7630 | done |
| 7631 | IFS=$as_save_IFS |
| 7632 | |
| 7633 | fi ;; |
| 7634 | esac |
| 7635 | fi |
| 7636 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7637 | if test -n "$DLLTOOL"; then |
| 7638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7639 | printf "%s\n" "$DLLTOOL" >&6; } |
| 7640 | else |
| 7641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7642 | printf "%s\n" "no" >&6; } |
| 7643 | fi |
| 7644 | |
| 7645 | |
| 7646 | fi |
| 7647 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7648 | ac_ct_DLLTOOL=$DLLTOOL |
| 7649 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 7650 | set dummy dlltool; ac_word=$2 |
| 7651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7652 | printf %s "checking for $ac_word... " >&6; } |
| 7653 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 7654 | then : |
| 7655 | printf %s "(cached) " >&6 |
| 7656 | else case e in #( |
| 7657 | e) if test -n "$ac_ct_DLLTOOL"; then |
| 7658 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7659 | else |
| 7660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7661 | for as_dir in $PATH |
| 7662 | do |
| 7663 | IFS=$as_save_IFS |
| 7664 | case $as_dir in #((( |
| 7665 | '') as_dir=./ ;; |
| 7666 | */) ;; |
| 7667 | *) as_dir=$as_dir/ ;; |
| 7668 | esac |
| 7669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7670 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7671 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7672 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7673 | break 2 |
| 7674 | fi |
| 7675 | done |
| 7676 | done |
| 7677 | IFS=$as_save_IFS |
| 7678 | |
| 7679 | fi ;; |
| 7680 | esac |
| 7681 | fi |
| 7682 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7683 | if test -n "$ac_ct_DLLTOOL"; then |
| 7684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7685 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 7686 | else |
| 7687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7688 | printf "%s\n" "no" >&6; } |
| 7689 | fi |
| 7690 | |
| 7691 | if test "x$ac_ct_DLLTOOL" = x; then |
| 7692 | DLLTOOL="false" |
| 7693 | else |
| 7694 | case $cross_compiling:$ac_tool_warned in |
| 7695 | yes:) |
| 7696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7697 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7698 | ac_tool_warned=yes ;; |
| 7699 | esac |
| 7700 | DLLTOOL=$ac_ct_DLLTOOL |
| 7701 | fi |
| 7702 | else |
| 7703 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7704 | fi |
| 7705 | |
| 7706 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7707 | |
| 7708 | |
| 7709 | |
| 7710 | |
| 7711 | |
| 7712 | |
| 7713 | |
| 7714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7715 | printf %s "checking how to associate runtime and link libraries... " >&6; } |
| 7716 | if test ${lt_cv_sharedlib_from_linklib_cmd+y} |
| 7717 | then : |
| 7718 | printf %s "(cached) " >&6 |
| 7719 | else case e in #( |
| 7720 | e) lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7721 | |
| 7722 | case $host_os in |
| 7723 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 7724 | # two different shell functions defined in ltmain.sh; |
| 7725 | # decide which one to use based on capabilities of $DLLTOOL |
| 7726 | case `$DLLTOOL --help 2>&1` in |
| 7727 | *--identify-strict*) |
| 7728 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7729 | ;; |
| 7730 | *) |
| 7731 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7732 | ;; |
| 7733 | esac |
| 7734 | ;; |
| 7735 | *) |
| 7736 | # fallback: assume linklib IS sharedlib |
| 7737 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 7738 | ;; |
| 7739 | esac |
| 7740 | ;; |
| 7741 | esac |
| 7742 | fi |
| 7743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7744 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7745 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7746 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7747 | |
| 7748 | |
| 7749 | |
| 7750 | |
| 7751 | |
| 7752 | |
| 7753 | |
| 7754 | if test -n "$ac_tool_prefix"; then |
| 7755 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7756 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7758 | printf %s "checking for $ac_word... " >&6; } |
| 7759 | if test ${ac_cv_prog_RANLIB+y} |
| 7760 | then : |
| 7761 | printf %s "(cached) " >&6 |
| 7762 | else case e in #( |
| 7763 | e) if test -n "$RANLIB"; then |
| 7764 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7765 | else |
| 7766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7767 | for as_dir in $PATH |
| 7768 | do |
| 7769 | IFS=$as_save_IFS |
| 7770 | case $as_dir in #((( |
| 7771 | '') as_dir=./ ;; |
| 7772 | */) ;; |
| 7773 | *) as_dir=$as_dir/ ;; |
| 7774 | esac |
| 7775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7776 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7777 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7778 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7779 | break 2 |
| 7780 | fi |
| 7781 | done |
| 7782 | done |
| 7783 | IFS=$as_save_IFS |
| 7784 | |
| 7785 | fi ;; |
| 7786 | esac |
| 7787 | fi |
| 7788 | RANLIB=$ac_cv_prog_RANLIB |
| 7789 | if test -n "$RANLIB"; then |
| 7790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7791 | printf "%s\n" "$RANLIB" >&6; } |
| 7792 | else |
| 7793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7794 | printf "%s\n" "no" >&6; } |
| 7795 | fi |
| 7796 | |
| 7797 | |
| 7798 | fi |
| 7799 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7800 | ac_ct_RANLIB=$RANLIB |
| 7801 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7802 | set dummy ranlib; ac_word=$2 |
| 7803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7804 | printf %s "checking for $ac_word... " >&6; } |
| 7805 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7806 | then : |
| 7807 | printf %s "(cached) " >&6 |
| 7808 | else case e in #( |
| 7809 | e) if test -n "$ac_ct_RANLIB"; then |
| 7810 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7811 | else |
| 7812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7813 | for as_dir in $PATH |
| 7814 | do |
| 7815 | IFS=$as_save_IFS |
| 7816 | case $as_dir in #((( |
| 7817 | '') as_dir=./ ;; |
| 7818 | */) ;; |
| 7819 | *) as_dir=$as_dir/ ;; |
| 7820 | esac |
| 7821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7822 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7823 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7824 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7825 | break 2 |
| 7826 | fi |
| 7827 | done |
| 7828 | done |
| 7829 | IFS=$as_save_IFS |
| 7830 | |
| 7831 | fi ;; |
| 7832 | esac |
| 7833 | fi |
| 7834 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7835 | if test -n "$ac_ct_RANLIB"; then |
| 7836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7837 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 7838 | else |
| 7839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7840 | printf "%s\n" "no" >&6; } |
| 7841 | fi |
| 7842 | |
| 7843 | if test "x$ac_ct_RANLIB" = x; then |
| 7844 | RANLIB=":" |
| 7845 | else |
| 7846 | case $cross_compiling:$ac_tool_warned in |
| 7847 | yes:) |
| 7848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7849 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7850 | ac_tool_warned=yes ;; |
| 7851 | esac |
| 7852 | RANLIB=$ac_ct_RANLIB |
| 7853 | fi |
| 7854 | else |
| 7855 | RANLIB="$ac_cv_prog_RANLIB" |
| 7856 | fi |
| 7857 | |
| 7858 | if test -n "$ac_tool_prefix"; then |
| 7859 | for ac_prog in ar |
| 7860 | do |
| 7861 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7862 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7864 | printf %s "checking for $ac_word... " >&6; } |
| 7865 | if test ${ac_cv_prog_AR+y} |
| 7866 | then : |
| 7867 | printf %s "(cached) " >&6 |
| 7868 | else case e in #( |
| 7869 | e) if test -n "$AR"; then |
| 7870 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7871 | else |
| 7872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7873 | for as_dir in $PATH |
| 7874 | do |
| 7875 | IFS=$as_save_IFS |
| 7876 | case $as_dir in #((( |
| 7877 | '') as_dir=./ ;; |
| 7878 | */) ;; |
| 7879 | *) as_dir=$as_dir/ ;; |
| 7880 | esac |
| 7881 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7882 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7883 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7884 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7885 | break 2 |
| 7886 | fi |
| 7887 | done |
| 7888 | done |
| 7889 | IFS=$as_save_IFS |
| 7890 | |
| 7891 | fi ;; |
| 7892 | esac |
| 7893 | fi |
| 7894 | AR=$ac_cv_prog_AR |
| 7895 | if test -n "$AR"; then |
| 7896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7897 | printf "%s\n" "$AR" >&6; } |
| 7898 | else |
| 7899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7900 | printf "%s\n" "no" >&6; } |
| 7901 | fi |
| 7902 | |
| 7903 | |
| 7904 | test -n "$AR" && break |
| 7905 | done |
| 7906 | fi |
| 7907 | if test -z "$AR"; then |
| 7908 | ac_ct_AR=$AR |
| 7909 | for ac_prog in ar |
| 7910 | do |
| 7911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7912 | set dummy $ac_prog; ac_word=$2 |
| 7913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7914 | printf %s "checking for $ac_word... " >&6; } |
| 7915 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 7916 | then : |
| 7917 | printf %s "(cached) " >&6 |
| 7918 | else case e in #( |
| 7919 | e) if test -n "$ac_ct_AR"; then |
| 7920 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7921 | else |
| 7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7923 | for as_dir in $PATH |
| 7924 | do |
| 7925 | IFS=$as_save_IFS |
| 7926 | case $as_dir in #((( |
| 7927 | '') as_dir=./ ;; |
| 7928 | */) ;; |
| 7929 | *) as_dir=$as_dir/ ;; |
| 7930 | esac |
| 7931 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7932 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7933 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7934 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7935 | break 2 |
| 7936 | fi |
| 7937 | done |
| 7938 | done |
| 7939 | IFS=$as_save_IFS |
| 7940 | |
| 7941 | fi ;; |
| 7942 | esac |
| 7943 | fi |
| 7944 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7945 | if test -n "$ac_ct_AR"; then |
| 7946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7947 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 7948 | else |
| 7949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7950 | printf "%s\n" "no" >&6; } |
| 7951 | fi |
| 7952 | |
| 7953 | |
| 7954 | test -n "$ac_ct_AR" && break |
| 7955 | done |
| 7956 | |
| 7957 | if test "x$ac_ct_AR" = x; then |
| 7958 | AR="false" |
| 7959 | else |
| 7960 | case $cross_compiling:$ac_tool_warned in |
| 7961 | yes:) |
| 7962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7963 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7964 | ac_tool_warned=yes ;; |
| 7965 | esac |
| 7966 | AR=$ac_ct_AR |
| 7967 | fi |
| 7968 | fi |
| 7969 | |
| 7970 | : ${AR=ar} |
| 7971 | |
| 7972 | |
| 7973 | |
| 7974 | |
| 7975 | |
| 7976 | |
| 7977 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with |
| 7978 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have |
| 7979 | # higher priority because that's what people were doing historically (setting |
| 7980 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS |
| 7981 | # variable obsoleted/removed. |
| 7982 | |
| 7983 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} |
| 7984 | lt_ar_flags=$AR_FLAGS |
| 7985 | |
| 7986 | |
| 7987 | |
| 7988 | |
| 7989 | |
| 7990 | |
| 7991 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override |
| 7992 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die. |
| 7993 | |
| 7994 | |
| 7995 | |
| 7996 | |
| 7997 | |
| 7998 | |
| 7999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 8000 | printf %s "checking for archiver @FILE support... " >&6; } |
| 8001 | if test ${lt_cv_ar_at_file+y} |
| 8002 | then : |
| 8003 | printf %s "(cached) " >&6 |
| 8004 | else case e in #( |
| 8005 | e) lt_cv_ar_at_file=no |
| 8006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8007 | /* end confdefs.h. */ |
| 8008 | |
| 8009 | int |
| 8010 | main (void) |
| 8011 | { |
| 8012 | |
| 8013 | ; |
| 8014 | return 0; |
| 8015 | } |
| 8016 | _ACEOF |
| 8017 | if ac_fn_c_try_compile "$LINENO" |
| 8018 | then : |
| 8019 | echo conftest.$ac_objext > conftest.lst |
| 8020 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 8021 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 8022 | (eval $lt_ar_try) 2>&5 |
| 8023 | ac_status=$? |
| 8024 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8025 | test $ac_status = 0; } |
| 8026 | if test 0 -eq "$ac_status"; then |
| 8027 | # Ensure the archiver fails upon bogus file names. |
| 8028 | rm -f conftest.$ac_objext libconftest.a |
| 8029 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 8030 | (eval $lt_ar_try) 2>&5 |
| 8031 | ac_status=$? |
| 8032 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8033 | test $ac_status = 0; } |
| 8034 | if test 0 -ne "$ac_status"; then |
| 8035 | lt_cv_ar_at_file=@ |
| 8036 | fi |
| 8037 | fi |
| 8038 | rm -f conftest.* libconftest.a |
| 8039 | |
| 8040 | fi |
| 8041 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8042 | ;; |
| 8043 | esac |
| 8044 | fi |
| 8045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 8046 | printf "%s\n" "$lt_cv_ar_at_file" >&6; } |
| 8047 | |
| 8048 | if test no = "$lt_cv_ar_at_file"; then |
| 8049 | archiver_list_spec= |
| 8050 | else |
| 8051 | archiver_list_spec=$lt_cv_ar_at_file |
| 8052 | fi |
| 8053 | |
| 8054 | |
| 8055 | |
| 8056 | |
| 8057 | |
| 8058 | |
| 8059 | |
| 8060 | if test -n "$ac_tool_prefix"; then |
| 8061 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 8062 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 8063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8064 | printf %s "checking for $ac_word... " >&6; } |
| 8065 | if test ${ac_cv_prog_STRIP+y} |
| 8066 | then : |
| 8067 | printf %s "(cached) " >&6 |
| 8068 | else case e in #( |
| 8069 | e) if test -n "$STRIP"; then |
| 8070 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 8071 | else |
| 8072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8073 | for as_dir in $PATH |
| 8074 | do |
| 8075 | IFS=$as_save_IFS |
| 8076 | case $as_dir in #((( |
| 8077 | '') as_dir=./ ;; |
| 8078 | */) ;; |
| 8079 | *) as_dir=$as_dir/ ;; |
| 8080 | esac |
| 8081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8082 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8083 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 8084 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8085 | break 2 |
| 8086 | fi |
| 8087 | done |
| 8088 | done |
| 8089 | IFS=$as_save_IFS |
| 8090 | |
| 8091 | fi ;; |
| 8092 | esac |
| 8093 | fi |
| 8094 | STRIP=$ac_cv_prog_STRIP |
| 8095 | if test -n "$STRIP"; then |
| 8096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 8097 | printf "%s\n" "$STRIP" >&6; } |
| 8098 | else |
| 8099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8100 | printf "%s\n" "no" >&6; } |
| 8101 | fi |
| 8102 | |
| 8103 | |
| 8104 | fi |
| 8105 | if test -z "$ac_cv_prog_STRIP"; then |
| 8106 | ac_ct_STRIP=$STRIP |
| 8107 | # Extract the first word of "strip", so it can be a program name with args. |
| 8108 | set dummy strip; ac_word=$2 |
| 8109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8110 | printf %s "checking for $ac_word... " >&6; } |
| 8111 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 8112 | then : |
| 8113 | printf %s "(cached) " >&6 |
| 8114 | else case e in #( |
| 8115 | e) if test -n "$ac_ct_STRIP"; then |
| 8116 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 8117 | else |
| 8118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8119 | for as_dir in $PATH |
| 8120 | do |
| 8121 | IFS=$as_save_IFS |
| 8122 | case $as_dir in #((( |
| 8123 | '') as_dir=./ ;; |
| 8124 | */) ;; |
| 8125 | *) as_dir=$as_dir/ ;; |
| 8126 | esac |
| 8127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8128 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8129 | ac_cv_prog_ac_ct_STRIP="strip" |
| 8130 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8131 | break 2 |
| 8132 | fi |
| 8133 | done |
| 8134 | done |
| 8135 | IFS=$as_save_IFS |
| 8136 | |
| 8137 | fi ;; |
| 8138 | esac |
| 8139 | fi |
| 8140 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 8141 | if test -n "$ac_ct_STRIP"; then |
| 8142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 8143 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 8144 | else |
| 8145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8146 | printf "%s\n" "no" >&6; } |
| 8147 | fi |
| 8148 | |
| 8149 | if test "x$ac_ct_STRIP" = x; then |
| 8150 | STRIP=":" |
| 8151 | else |
| 8152 | case $cross_compiling:$ac_tool_warned in |
| 8153 | yes:) |
| 8154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8155 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8156 | ac_tool_warned=yes ;; |
| 8157 | esac |
| 8158 | STRIP=$ac_ct_STRIP |
| 8159 | fi |
| 8160 | else |
| 8161 | STRIP="$ac_cv_prog_STRIP" |
| 8162 | fi |
| 8163 | |
| 8164 | test -z "$STRIP" && STRIP=: |
| 8165 | |
| 8166 | |
| 8167 | |
| 8168 | |
| 8169 | |
| 8170 | |
| 8171 | |
| 8172 | test -z "$RANLIB" && RANLIB=: |
| 8173 | |
| 8174 | |
| 8175 | |
| 8176 | |
| 8177 | |
| 8178 | |
| 8179 | # Determine commands to create old-style static archives. |
| 8180 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 8181 | old_postinstall_cmds='chmod 644 $oldlib' |
| 8182 | old_postuninstall_cmds= |
| 8183 | |
| 8184 | if test -n "$RANLIB"; then |
| 8185 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 8186 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 8187 | fi |
| 8188 | |
| 8189 | case $host_os in |
| 8190 | darwin*) |
| 8191 | lock_old_archive_extraction=yes ;; |
| 8192 | *) |
| 8193 | lock_old_archive_extraction=no ;; |
| 8194 | esac |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | |
| 8217 | |
| 8218 | |
| 8219 | |
| 8220 | |
| 8221 | |
| 8222 | |
| 8223 | |
| 8224 | |
| 8225 | |
| 8226 | |
| 8227 | |
| 8228 | |
| 8229 | |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | # If no C compiler was specified, use CC. |
| 8235 | LTCC=${LTCC-"$CC"} |
| 8236 | |
| 8237 | # If no C compiler flags were specified, use CFLAGS. |
| 8238 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8239 | |
| 8240 | # Allow CC to be a program name with arguments. |
| 8241 | compiler=$CC |
| 8242 | |
| 8243 | |
| 8244 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 8245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8246 | printf %s "checking command to parse $NM output from $compiler object... " >&6; } |
| 8247 | if test ${lt_cv_sys_global_symbol_pipe+y} |
| 8248 | then : |
| 8249 | printf %s "(cached) " >&6 |
| 8250 | else case e in #( |
| 8251 | e) |
| 8252 | # These are sane defaults that work on at least a few old systems. |
| 8253 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8254 | |
| 8255 | # Character class describing NM global symbol codes. |
| 8256 | symcode='[BCDEGRST]' |
| 8257 | |
| 8258 | # Regexp to match symbols that can be accessed directly from C. |
| 8259 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8260 | |
| 8261 | # Define system-specific variables. |
| 8262 | case $host_os in |
| 8263 | aix*) |
| 8264 | symcode='[BCDT]' |
| 8265 | ;; |
| 8266 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 8267 | symcode='[ABCDGISTW]' |
| 8268 | ;; |
| 8269 | hpux*) |
| 8270 | if test ia64 = "$host_cpu"; then |
| 8271 | symcode='[ABCDEGRST]' |
| 8272 | fi |
| 8273 | ;; |
| 8274 | irix* | nonstopux*) |
| 8275 | symcode='[BCDEGRST]' |
| 8276 | ;; |
| 8277 | osf*) |
| 8278 | symcode='[BCDEGQRST]' |
| 8279 | ;; |
| 8280 | solaris*) |
| 8281 | symcode='[BCDRT]' |
| 8282 | ;; |
| 8283 | sco3.2v5*) |
| 8284 | symcode='[DT]' |
| 8285 | ;; |
| 8286 | sysv4.2uw2*) |
| 8287 | symcode='[DT]' |
| 8288 | ;; |
| 8289 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 8290 | symcode='[ABDT]' |
| 8291 | ;; |
| 8292 | sysv4) |
| 8293 | symcode='[DFNSTU]' |
| 8294 | ;; |
| 8295 | esac |
| 8296 | |
| 8297 | # If we're using GNU nm, then use its standard symbol codes. |
| 8298 | case `$NM -V 2>&1` in |
| 8299 | *GNU* | *'with BFD'*) |
| 8300 | symcode='[ABCDGIRSTW]' ;; |
| 8301 | esac |
| 8302 | |
| 8303 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8304 | # Gets list of data symbols to import. |
| 8305 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" |
| 8306 | # Adjust the below global symbol transforms to fixup imported variables. |
| 8307 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 8308 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 8309 | lt_c_name_lib_hook="\ |
| 8310 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 8311 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 8312 | else |
| 8313 | # Disable hooks by default. |
| 8314 | lt_cv_sys_global_symbol_to_import= |
| 8315 | lt_cdecl_hook= |
| 8316 | lt_c_name_hook= |
| 8317 | lt_c_name_lib_hook= |
| 8318 | fi |
| 8319 | |
| 8320 | # Transform an extracted symbol line into a proper C declaration. |
| 8321 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 8322 | # so use this general approach. |
| 8323 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ |
| 8324 | $lt_cdecl_hook\ |
| 8325 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 8326 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8327 | |
| 8328 | # Transform an extracted symbol line into symbol name and symbol address |
| 8329 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ |
| 8330 | $lt_c_name_hook\ |
| 8331 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8332 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 8333 | |
| 8334 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 8335 | # symbol address. |
| 8336 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ |
| 8337 | $lt_c_name_lib_hook\ |
| 8338 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8339 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 8340 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 8341 | |
| 8342 | # Handle CRLF in mingw tool chain |
| 8343 | opt_cr= |
| 8344 | case $build_os in |
| 8345 | mingw* | windows*) |
| 8346 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 8347 | ;; |
| 8348 | esac |
| 8349 | |
| 8350 | # Try without a prefix underscore, then with it. |
| 8351 | for ac_symprfx in "" "_"; do |
| 8352 | |
| 8353 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 8354 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 8355 | |
| 8356 | # Write the raw and C identifiers. |
| 8357 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8358 | # Fake it for dumpbin and say T for any non-static function, |
| 8359 | # D for any global variable and I for any imported variable. |
| 8360 | # Also find C++ and __fastcall symbols from MSVC++ or ICC, |
| 8361 | # which start with @ or ?. |
| 8362 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 8363 | " {last_section=section; section=\$ 3};"\ |
| 8364 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 8365 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 8366 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 8367 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 8368 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 8369 | " \$ 0!~/External *\|/{next};"\ |
| 8370 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 8371 | " {if(hide[section]) next};"\ |
| 8372 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 8373 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 8374 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 8375 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 8376 | " ' prfx=^$ac_symprfx" |
| 8377 | else |
| 8378 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 8379 | fi |
| 8380 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" |
| 8381 | |
| 8382 | # Check to see that the pipe works correctly. |
| 8383 | pipe_works=no |
| 8384 | |
| 8385 | rm -f conftest* |
| 8386 | cat > conftest.$ac_ext <<_LT_EOF |
| 8387 | #ifdef __cplusplus |
| 8388 | extern "C" { |
| 8389 | #endif |
| 8390 | char nm_test_var; |
| 8391 | void nm_test_func(void); |
| 8392 | void nm_test_func(void){} |
| 8393 | #ifdef __cplusplus |
| 8394 | } |
| 8395 | #endif |
| 8396 | int main(void){nm_test_var='a';nm_test_func();return(0);} |
| 8397 | _LT_EOF |
| 8398 | |
| 8399 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8400 | (eval $ac_compile) 2>&5 |
| 8401 | ac_status=$? |
| 8402 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8403 | test $ac_status = 0; }; then |
| 8404 | # Now try to grab the symbols. |
| 8405 | nlist=conftest.nm |
| 8406 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 8407 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 8408 | # Try sorting and uniquifying the output. |
| 8409 | if sort "$nlist" | uniq > "$nlist"T; then |
| 8410 | mv -f "$nlist"T "$nlist" |
| 8411 | else |
| 8412 | rm -f "$nlist"T |
| 8413 | fi |
| 8414 | |
| 8415 | # Make sure that we snagged all the symbols we need. |
| 8416 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 8417 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 8418 | cat <<_LT_EOF > conftest.$ac_ext |
| 8419 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 8420 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 8421 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 8422 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 8423 | # define LT_DLSYM_CONST |
| 8424 | #elif defined __osf__ |
| 8425 | /* This system does not cope well with relocations in const data. */ |
| 8426 | # define LT_DLSYM_CONST |
| 8427 | #else |
| 8428 | # define LT_DLSYM_CONST const |
| 8429 | #endif |
| 8430 | |
| 8431 | #ifdef __cplusplus |
| 8432 | extern "C" { |
| 8433 | #endif |
| 8434 | |
| 8435 | _LT_EOF |
| 8436 | # Now generate the symbol file. |
| 8437 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 8438 | |
| 8439 | cat <<_LT_EOF >> conftest.$ac_ext |
| 8440 | |
| 8441 | /* The mapping between symbol names and symbols. */ |
| 8442 | LT_DLSYM_CONST struct { |
| 8443 | const char *name; |
| 8444 | void *address; |
| 8445 | } |
| 8446 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 8447 | { |
| 8448 | { "@PROGRAM@", (void *) 0 }, |
| 8449 | _LT_EOF |
| 8450 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 8451 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 8452 | {0, (void *) 0} |
| 8453 | }; |
| 8454 | |
| 8455 | /* This works around a problem in FreeBSD linker */ |
| 8456 | #ifdef FREEBSD_WORKAROUND |
| 8457 | static const void *lt_preloaded_setup() { |
| 8458 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 8459 | } |
| 8460 | #endif |
| 8461 | |
| 8462 | #ifdef __cplusplus |
| 8463 | } |
| 8464 | #endif |
| 8465 | _LT_EOF |
| 8466 | # Now try linking the two files. |
| 8467 | mv conftest.$ac_objext conftstm.$ac_objext |
| 8468 | lt_globsym_save_LIBS=$LIBS |
| 8469 | lt_globsym_save_CFLAGS=$CFLAGS |
| 8470 | LIBS=conftstm.$ac_objext |
| 8471 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 8472 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 8473 | (eval $ac_link) 2>&5 |
| 8474 | ac_status=$? |
| 8475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8476 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 8477 | pipe_works=yes |
| 8478 | fi |
| 8479 | LIBS=$lt_globsym_save_LIBS |
| 8480 | CFLAGS=$lt_globsym_save_CFLAGS |
| 8481 | else |
| 8482 | echo "cannot find nm_test_func in $nlist" >&5 |
| 8483 | fi |
| 8484 | else |
| 8485 | echo "cannot find nm_test_var in $nlist" >&5 |
| 8486 | fi |
| 8487 | else |
| 8488 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8489 | fi |
| 8490 | else |
| 8491 | echo "$progname: failed program was:" >&5 |
| 8492 | cat conftest.$ac_ext >&5 |
| 8493 | fi |
| 8494 | rm -rf conftest* conftst* |
| 8495 | |
| 8496 | # Do not use the global_symbol_pipe unless it works. |
| 8497 | if test yes = "$pipe_works"; then |
| 8498 | break |
| 8499 | else |
| 8500 | lt_cv_sys_global_symbol_pipe= |
| 8501 | fi |
| 8502 | done |
| 8503 | ;; |
| 8504 | esac |
| 8505 | fi |
| 8506 | |
| 8507 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8508 | lt_cv_sys_global_symbol_to_cdecl= |
| 8509 | fi |
| 8510 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 8512 | printf "%s\n" "failed" >&6; } |
| 8513 | else |
| 8514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 8515 | printf "%s\n" "ok" >&6; } |
| 8516 | fi |
| 8517 | |
| 8518 | # Response file support. |
| 8519 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8520 | nm_file_list_spec='@' |
| 8521 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 8522 | nm_file_list_spec='@' |
| 8523 | fi |
| 8524 | |
| 8525 | |
| 8526 | |
| 8527 | |
| 8528 | |
| 8529 | |
| 8530 | |
| 8531 | |
| 8532 | |
| 8533 | |
| 8534 | |
| 8535 | |
| 8536 | |
| 8537 | |
| 8538 | |
| 8539 | |
| 8540 | |
| 8541 | |
| 8542 | |
| 8543 | |
| 8544 | |
| 8545 | |
| 8546 | |
| 8547 | |
| 8548 | |
| 8549 | |
| 8550 | |
| 8551 | |
| 8552 | |
| 8553 | |
| 8554 | |
| 8555 | |
| 8556 | |
| 8557 | |
| 8558 | |
| 8559 | |
| 8560 | |
| 8561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8562 | printf %s "checking for sysroot... " >&6; } |
| 8563 | |
| 8564 | # Check whether --with-sysroot was given. |
| 8565 | if test ${with_sysroot+y} |
| 8566 | then : |
| 8567 | withval=$with_sysroot; |
| 8568 | else case e in #( |
| 8569 | e) with_sysroot=no ;; |
| 8570 | esac |
| 8571 | fi |
| 8572 | |
| 8573 | |
| 8574 | lt_sysroot= |
| 8575 | case $with_sysroot in #( |
| 8576 | yes) |
| 8577 | if test yes = "$GCC"; then |
| 8578 | # Trim trailing / since we'll always append absolute paths and we want |
| 8579 | # to avoid //, if only for less confusing output for the user. |
| 8580 | lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` |
| 8581 | fi |
| 8582 | ;; #( |
| 8583 | /*) |
| 8584 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` |
| 8585 | ;; #( |
| 8586 | no|'') |
| 8587 | ;; #( |
| 8588 | *) |
| 8589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 8590 | printf "%s\n" "$with_sysroot" >&6; } |
| 8591 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8592 | ;; |
| 8593 | esac |
| 8594 | |
| 8595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8596 | printf "%s\n" "${lt_sysroot:-no}" >&6; } |
| 8597 | |
| 8598 | |
| 8599 | |
| 8600 | |
| 8601 | |
| 8602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 8603 | printf %s "checking for a working dd... " >&6; } |
| 8604 | if test ${ac_cv_path_lt_DD+y} |
| 8605 | then : |
| 8606 | printf %s "(cached) " >&6 |
| 8607 | else case e in #( |
| 8608 | e) printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8609 | cat conftest.i conftest.i >conftest2.i |
| 8610 | : ${lt_DD:=$DD} |
| 8611 | if test -z "$lt_DD"; then |
| 8612 | ac_path_lt_DD_found=false |
| 8613 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8615 | for as_dir in $PATH |
| 8616 | do |
| 8617 | IFS=$as_save_IFS |
| 8618 | case $as_dir in #((( |
| 8619 | '') as_dir=./ ;; |
| 8620 | */) ;; |
| 8621 | *) as_dir=$as_dir/ ;; |
| 8622 | esac |
| 8623 | for ac_prog in dd |
| 8624 | do |
| 8625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8626 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" |
| 8627 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 8628 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8629 | cmp -s conftest.i conftest.out \ |
| 8630 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 8631 | fi |
| 8632 | $ac_path_lt_DD_found && break 3 |
| 8633 | done |
| 8634 | done |
| 8635 | done |
| 8636 | IFS=$as_save_IFS |
| 8637 | if test -z "$ac_cv_path_lt_DD"; then |
| 8638 | : |
| 8639 | fi |
| 8640 | else |
| 8641 | ac_cv_path_lt_DD=$lt_DD |
| 8642 | fi |
| 8643 | |
| 8644 | rm -f conftest.i conftest2.i conftest.out ;; |
| 8645 | esac |
| 8646 | fi |
| 8647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 8648 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; } |
| 8649 | |
| 8650 | |
| 8651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 8652 | printf %s "checking how to truncate binary pipes... " >&6; } |
| 8653 | if test ${lt_cv_truncate_bin+y} |
| 8654 | then : |
| 8655 | printf %s "(cached) " >&6 |
| 8656 | else case e in #( |
| 8657 | e) printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8658 | cat conftest.i conftest.i >conftest2.i |
| 8659 | lt_cv_truncate_bin= |
| 8660 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8661 | cmp -s conftest.i conftest.out \ |
| 8662 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 8663 | fi |
| 8664 | rm -f conftest.i conftest2.i conftest.out |
| 8665 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; |
| 8666 | esac |
| 8667 | fi |
| 8668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 8669 | printf "%s\n" "$lt_cv_truncate_bin" >&6; } |
| 8670 | |
| 8671 | |
| 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 8678 | func_cc_basename () |
| 8679 | { |
| 8680 | for cc_temp in $*""; do |
| 8681 | case $cc_temp in |
| 8682 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8683 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8684 | \-*) ;; |
| 8685 | *) break;; |
| 8686 | esac |
| 8687 | done |
| 8688 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8689 | } |
| 8690 | |
| 8691 | # Check whether --enable-libtool-lock was given. |
| 8692 | if test ${enable_libtool_lock+y} |
| 8693 | then : |
| 8694 | enableval=$enable_libtool_lock; |
| 8695 | fi |
| 8696 | |
| 8697 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 8698 | |
| 8699 | # Some flags need to be propagated to the compiler or linker for good |
| 8700 | # libtool support. |
| 8701 | case $host in |
| 8702 | ia64-*-hpux*) |
| 8703 | # Find out what ABI is being produced by ac_compile, and set mode |
| 8704 | # options accordingly. |
| 8705 | echo 'int i;' > conftest.$ac_ext |
| 8706 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8707 | (eval $ac_compile) 2>&5 |
| 8708 | ac_status=$? |
| 8709 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8710 | test $ac_status = 0; }; then |
| 8711 | case `$FILECMD conftest.$ac_objext` in |
| 8712 | *ELF-32*) |
| 8713 | HPUX_IA64_MODE=32 |
| 8714 | ;; |
| 8715 | *ELF-64*) |
| 8716 | HPUX_IA64_MODE=64 |
| 8717 | ;; |
| 8718 | esac |
| 8719 | fi |
| 8720 | rm -rf conftest* |
| 8721 | ;; |
| 8722 | *-*-irix6*) |
| 8723 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8724 | # options accordingly. |
| 8725 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8726 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8727 | (eval $ac_compile) 2>&5 |
| 8728 | ac_status=$? |
| 8729 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8730 | test $ac_status = 0; }; then |
| 8731 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 8732 | case `$FILECMD conftest.$ac_objext` in |
| 8733 | *32-bit*) |
| 8734 | LD="${LD-ld} -melf32bsmip" |
| 8735 | ;; |
| 8736 | *N32*) |
| 8737 | LD="${LD-ld} -melf32bmipn32" |
| 8738 | ;; |
| 8739 | *64-bit*) |
| 8740 | LD="${LD-ld} -melf64bmip" |
| 8741 | ;; |
| 8742 | esac |
| 8743 | else |
| 8744 | case `$FILECMD conftest.$ac_objext` in |
| 8745 | *32-bit*) |
| 8746 | LD="${LD-ld} -32" |
| 8747 | ;; |
| 8748 | *N32*) |
| 8749 | LD="${LD-ld} -n32" |
| 8750 | ;; |
| 8751 | *64-bit*) |
| 8752 | LD="${LD-ld} -64" |
| 8753 | ;; |
| 8754 | esac |
| 8755 | fi |
| 8756 | fi |
| 8757 | rm -rf conftest* |
| 8758 | ;; |
| 8759 | |
| 8760 | mips64*-*linux*) |
| 8761 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8762 | # options accordingly. |
| 8763 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8764 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8765 | (eval $ac_compile) 2>&5 |
| 8766 | ac_status=$? |
| 8767 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8768 | test $ac_status = 0; }; then |
| 8769 | emul=elf |
| 8770 | case `$FILECMD conftest.$ac_objext` in |
| 8771 | *32-bit*) |
| 8772 | emul="${emul}32" |
| 8773 | ;; |
| 8774 | *64-bit*) |
| 8775 | emul="${emul}64" |
| 8776 | ;; |
| 8777 | esac |
| 8778 | case `$FILECMD conftest.$ac_objext` in |
| 8779 | *MSB*) |
| 8780 | emul="${emul}btsmip" |
| 8781 | ;; |
| 8782 | *LSB*) |
| 8783 | emul="${emul}ltsmip" |
| 8784 | ;; |
| 8785 | esac |
| 8786 | case `$FILECMD conftest.$ac_objext` in |
| 8787 | *N32*) |
| 8788 | emul="${emul}n32" |
| 8789 | ;; |
| 8790 | esac |
| 8791 | LD="${LD-ld} -m $emul" |
| 8792 | fi |
| 8793 | rm -rf conftest* |
| 8794 | ;; |
| 8795 | |
| 8796 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 8797 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) |
| 8798 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8799 | # options accordingly. Note that the listed cases only cover the |
| 8800 | # situations where additional linker options are needed (such as when |
| 8801 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 8802 | # vice versa); the common cases where no linker options are needed do |
| 8803 | # not appear in the list. |
| 8804 | echo 'int i;' > conftest.$ac_ext |
| 8805 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8806 | (eval $ac_compile) 2>&5 |
| 8807 | ac_status=$? |
| 8808 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8809 | test $ac_status = 0; }; then |
| 8810 | case `$FILECMD conftest.o` in |
| 8811 | *32-bit*) |
| 8812 | case $host in |
| 8813 | x86_64-*kfreebsd*-gnu) |
| 8814 | LD="${LD-ld} -m elf_i386_fbsd" |
| 8815 | ;; |
| 8816 | x86_64-*linux*|x86_64-gnu*) |
| 8817 | case `$FILECMD conftest.o` in |
| 8818 | *x86-64*) |
| 8819 | LD="${LD-ld} -m elf32_x86_64" |
| 8820 | ;; |
| 8821 | *) |
| 8822 | LD="${LD-ld} -m elf_i386" |
| 8823 | ;; |
| 8824 | esac |
| 8825 | ;; |
| 8826 | powerpc64le-*linux*) |
| 8827 | LD="${LD-ld} -m elf32lppclinux" |
| 8828 | ;; |
| 8829 | powerpc64-*linux*) |
| 8830 | LD="${LD-ld} -m elf32ppclinux" |
| 8831 | ;; |
| 8832 | s390x-*linux*) |
| 8833 | LD="${LD-ld} -m elf_s390" |
| 8834 | ;; |
| 8835 | sparc64-*linux*) |
| 8836 | LD="${LD-ld} -m elf32_sparc" |
| 8837 | ;; |
| 8838 | esac |
| 8839 | ;; |
| 8840 | *64-bit*) |
| 8841 | case $host in |
| 8842 | x86_64-*kfreebsd*-gnu) |
| 8843 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8844 | ;; |
| 8845 | x86_64-*linux*|x86_64-gnu*) |
| 8846 | LD="${LD-ld} -m elf_x86_64" |
| 8847 | ;; |
| 8848 | powerpcle-*linux*) |
| 8849 | LD="${LD-ld} -m elf64lppc" |
| 8850 | ;; |
| 8851 | powerpc-*linux*) |
| 8852 | LD="${LD-ld} -m elf64ppc" |
| 8853 | ;; |
| 8854 | s390*-*linux*|s390*-*tpf*) |
| 8855 | LD="${LD-ld} -m elf64_s390" |
| 8856 | ;; |
| 8857 | sparc*-*linux*) |
| 8858 | LD="${LD-ld} -m elf64_sparc" |
| 8859 | ;; |
| 8860 | esac |
| 8861 | ;; |
| 8862 | esac |
| 8863 | fi |
| 8864 | rm -rf conftest* |
| 8865 | ;; |
| 8866 | |
| 8867 | *-*-sco3.2v5*) |
| 8868 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8869 | SAVE_CFLAGS=$CFLAGS |
| 8870 | CFLAGS="$CFLAGS -belf" |
| 8871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8872 | printf %s "checking whether the C compiler needs -belf... " >&6; } |
| 8873 | if test ${lt_cv_cc_needs_belf+y} |
| 8874 | then : |
| 8875 | printf %s "(cached) " >&6 |
| 8876 | else case e in #( |
| 8877 | e) ac_ext=c |
| 8878 | ac_cpp='$CPP $CPPFLAGS' |
| 8879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8882 | |
| 8883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8884 | /* end confdefs.h. */ |
| 8885 | |
| 8886 | int |
| 8887 | main (void) |
| 8888 | { |
| 8889 | |
| 8890 | ; |
| 8891 | return 0; |
| 8892 | } |
| 8893 | _ACEOF |
| 8894 | if ac_fn_c_try_link "$LINENO" |
| 8895 | then : |
| 8896 | lt_cv_cc_needs_belf=yes |
| 8897 | else case e in #( |
| 8898 | e) lt_cv_cc_needs_belf=no ;; |
| 8899 | esac |
| 8900 | fi |
| 8901 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8902 | conftest$ac_exeext conftest.$ac_ext |
| 8903 | ac_ext=c |
| 8904 | ac_cpp='$CPP $CPPFLAGS' |
| 8905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8908 | ;; |
| 8909 | esac |
| 8910 | fi |
| 8911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8912 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } |
| 8913 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 8914 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8915 | CFLAGS=$SAVE_CFLAGS |
| 8916 | fi |
| 8917 | ;; |
| 8918 | *-*solaris*) |
| 8919 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8920 | # options accordingly. |
| 8921 | echo 'int i;' > conftest.$ac_ext |
| 8922 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8923 | (eval $ac_compile) 2>&5 |
| 8924 | ac_status=$? |
| 8925 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8926 | test $ac_status = 0; }; then |
| 8927 | case `$FILECMD conftest.o` in |
| 8928 | *64-bit*) |
| 8929 | case $lt_cv_prog_gnu_ld in |
| 8930 | yes*) |
| 8931 | case $host in |
| 8932 | i?86-*-solaris*|x86_64-*-solaris*) |
| 8933 | LD="${LD-ld} -m elf_x86_64" |
| 8934 | ;; |
| 8935 | sparc*-*-solaris*) |
| 8936 | LD="${LD-ld} -m elf64_sparc" |
| 8937 | ;; |
| 8938 | esac |
| 8939 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8940 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8941 | LD=${LD-ld}_sol2 |
| 8942 | fi |
| 8943 | ;; |
| 8944 | *) |
| 8945 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8946 | LD="${LD-ld} -64" |
| 8947 | fi |
| 8948 | ;; |
| 8949 | esac |
| 8950 | ;; |
| 8951 | esac |
| 8952 | fi |
| 8953 | rm -rf conftest* |
| 8954 | ;; |
| 8955 | esac |
| 8956 | |
| 8957 | need_locks=$enable_libtool_lock |
| 8958 | |
| 8959 | if test -n "$ac_tool_prefix"; then |
| 8960 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8961 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8963 | printf %s "checking for $ac_word... " >&6; } |
| 8964 | if test ${ac_cv_prog_MANIFEST_TOOL+y} |
| 8965 | then : |
| 8966 | printf %s "(cached) " >&6 |
| 8967 | else case e in #( |
| 8968 | e) if test -n "$MANIFEST_TOOL"; then |
| 8969 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8970 | else |
| 8971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8972 | for as_dir in $PATH |
| 8973 | do |
| 8974 | IFS=$as_save_IFS |
| 8975 | case $as_dir in #((( |
| 8976 | '') as_dir=./ ;; |
| 8977 | */) ;; |
| 8978 | *) as_dir=$as_dir/ ;; |
| 8979 | esac |
| 8980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8981 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8982 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8983 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8984 | break 2 |
| 8985 | fi |
| 8986 | done |
| 8987 | done |
| 8988 | IFS=$as_save_IFS |
| 8989 | |
| 8990 | fi ;; |
| 8991 | esac |
| 8992 | fi |
| 8993 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8994 | if test -n "$MANIFEST_TOOL"; then |
| 8995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8996 | printf "%s\n" "$MANIFEST_TOOL" >&6; } |
| 8997 | else |
| 8998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8999 | printf "%s\n" "no" >&6; } |
| 9000 | fi |
| 9001 | |
| 9002 | |
| 9003 | fi |
| 9004 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 9005 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 9006 | # Extract the first word of "mt", so it can be a program name with args. |
| 9007 | set dummy mt; ac_word=$2 |
| 9008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9009 | printf %s "checking for $ac_word... " >&6; } |
| 9010 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} |
| 9011 | then : |
| 9012 | printf %s "(cached) " >&6 |
| 9013 | else case e in #( |
| 9014 | e) if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 9015 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 9016 | else |
| 9017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9018 | for as_dir in $PATH |
| 9019 | do |
| 9020 | IFS=$as_save_IFS |
| 9021 | case $as_dir in #((( |
| 9022 | '') as_dir=./ ;; |
| 9023 | */) ;; |
| 9024 | *) as_dir=$as_dir/ ;; |
| 9025 | esac |
| 9026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9027 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9028 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 9029 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9030 | break 2 |
| 9031 | fi |
| 9032 | done |
| 9033 | done |
| 9034 | IFS=$as_save_IFS |
| 9035 | |
| 9036 | fi ;; |
| 9037 | esac |
| 9038 | fi |
| 9039 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 9040 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 9041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 9042 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } |
| 9043 | else |
| 9044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9045 | printf "%s\n" "no" >&6; } |
| 9046 | fi |
| 9047 | |
| 9048 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 9049 | MANIFEST_TOOL=":" |
| 9050 | else |
| 9051 | case $cross_compiling:$ac_tool_warned in |
| 9052 | yes:) |
| 9053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9054 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9055 | ac_tool_warned=yes ;; |
| 9056 | esac |
| 9057 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 9058 | fi |
| 9059 | else |
| 9060 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 9061 | fi |
| 9062 | |
| 9063 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 9064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 9065 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 9066 | if test ${lt_cv_path_manifest_tool+y} |
| 9067 | then : |
| 9068 | printf %s "(cached) " >&6 |
| 9069 | else case e in #( |
| 9070 | e) lt_cv_path_manifest_tool=no |
| 9071 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 9072 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 9073 | cat conftest.err >&5 |
| 9074 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 9075 | lt_cv_path_manifest_tool=yes |
| 9076 | fi |
| 9077 | rm -f conftest* ;; |
| 9078 | esac |
| 9079 | fi |
| 9080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 |
| 9081 | printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } |
| 9082 | if test yes != "$lt_cv_path_manifest_tool"; then |
| 9083 | MANIFEST_TOOL=: |
| 9084 | fi |
| 9085 | |
| 9086 | |
| 9087 | |
| 9088 | |
| 9089 | |
| 9090 | |
| 9091 | case $host_os in |
| 9092 | rhapsody* | darwin*) |
| 9093 | if test -n "$ac_tool_prefix"; then |
| 9094 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 9095 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 9096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9097 | printf %s "checking for $ac_word... " >&6; } |
| 9098 | if test ${ac_cv_prog_DSYMUTIL+y} |
| 9099 | then : |
| 9100 | printf %s "(cached) " >&6 |
| 9101 | else case e in #( |
| 9102 | e) if test -n "$DSYMUTIL"; then |
| 9103 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 9104 | else |
| 9105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9106 | for as_dir in $PATH |
| 9107 | do |
| 9108 | IFS=$as_save_IFS |
| 9109 | case $as_dir in #((( |
| 9110 | '') as_dir=./ ;; |
| 9111 | */) ;; |
| 9112 | *) as_dir=$as_dir/ ;; |
| 9113 | esac |
| 9114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9115 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9116 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 9117 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9118 | break 2 |
| 9119 | fi |
| 9120 | done |
| 9121 | done |
| 9122 | IFS=$as_save_IFS |
| 9123 | |
| 9124 | fi ;; |
| 9125 | esac |
| 9126 | fi |
| 9127 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 9128 | if test -n "$DSYMUTIL"; then |
| 9129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 9130 | printf "%s\n" "$DSYMUTIL" >&6; } |
| 9131 | else |
| 9132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9133 | printf "%s\n" "no" >&6; } |
| 9134 | fi |
| 9135 | |
| 9136 | |
| 9137 | fi |
| 9138 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 9139 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 9140 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 9141 | set dummy dsymutil; ac_word=$2 |
| 9142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9143 | printf %s "checking for $ac_word... " >&6; } |
| 9144 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} |
| 9145 | then : |
| 9146 | printf %s "(cached) " >&6 |
| 9147 | else case e in #( |
| 9148 | e) if test -n "$ac_ct_DSYMUTIL"; then |
| 9149 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 9150 | else |
| 9151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9152 | for as_dir in $PATH |
| 9153 | do |
| 9154 | IFS=$as_save_IFS |
| 9155 | case $as_dir in #((( |
| 9156 | '') as_dir=./ ;; |
| 9157 | */) ;; |
| 9158 | *) as_dir=$as_dir/ ;; |
| 9159 | esac |
| 9160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9161 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9162 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 9163 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9164 | break 2 |
| 9165 | fi |
| 9166 | done |
| 9167 | done |
| 9168 | IFS=$as_save_IFS |
| 9169 | |
| 9170 | fi ;; |
| 9171 | esac |
| 9172 | fi |
| 9173 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 9174 | if test -n "$ac_ct_DSYMUTIL"; then |
| 9175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 9176 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } |
| 9177 | else |
| 9178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9179 | printf "%s\n" "no" >&6; } |
| 9180 | fi |
| 9181 | |
| 9182 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 9183 | DSYMUTIL=":" |
| 9184 | else |
| 9185 | case $cross_compiling:$ac_tool_warned in |
| 9186 | yes:) |
| 9187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9188 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9189 | ac_tool_warned=yes ;; |
| 9190 | esac |
| 9191 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 9192 | fi |
| 9193 | else |
| 9194 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 9195 | fi |
| 9196 | |
| 9197 | if test -n "$ac_tool_prefix"; then |
| 9198 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 9199 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 9200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9201 | printf %s "checking for $ac_word... " >&6; } |
| 9202 | if test ${ac_cv_prog_NMEDIT+y} |
| 9203 | then : |
| 9204 | printf %s "(cached) " >&6 |
| 9205 | else case e in #( |
| 9206 | e) if test -n "$NMEDIT"; then |
| 9207 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 9208 | else |
| 9209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9210 | for as_dir in $PATH |
| 9211 | do |
| 9212 | IFS=$as_save_IFS |
| 9213 | case $as_dir in #((( |
| 9214 | '') as_dir=./ ;; |
| 9215 | */) ;; |
| 9216 | *) as_dir=$as_dir/ ;; |
| 9217 | esac |
| 9218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9219 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9220 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 9221 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9222 | break 2 |
| 9223 | fi |
| 9224 | done |
| 9225 | done |
| 9226 | IFS=$as_save_IFS |
| 9227 | |
| 9228 | fi ;; |
| 9229 | esac |
| 9230 | fi |
| 9231 | NMEDIT=$ac_cv_prog_NMEDIT |
| 9232 | if test -n "$NMEDIT"; then |
| 9233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 9234 | printf "%s\n" "$NMEDIT" >&6; } |
| 9235 | else |
| 9236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9237 | printf "%s\n" "no" >&6; } |
| 9238 | fi |
| 9239 | |
| 9240 | |
| 9241 | fi |
| 9242 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 9243 | ac_ct_NMEDIT=$NMEDIT |
| 9244 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 9245 | set dummy nmedit; ac_word=$2 |
| 9246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9247 | printf %s "checking for $ac_word... " >&6; } |
| 9248 | if test ${ac_cv_prog_ac_ct_NMEDIT+y} |
| 9249 | then : |
| 9250 | printf %s "(cached) " >&6 |
| 9251 | else case e in #( |
| 9252 | e) if test -n "$ac_ct_NMEDIT"; then |
| 9253 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9254 | else |
| 9255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9256 | for as_dir in $PATH |
| 9257 | do |
| 9258 | IFS=$as_save_IFS |
| 9259 | case $as_dir in #((( |
| 9260 | '') as_dir=./ ;; |
| 9261 | */) ;; |
| 9262 | *) as_dir=$as_dir/ ;; |
| 9263 | esac |
| 9264 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9265 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9266 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 9267 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9268 | break 2 |
| 9269 | fi |
| 9270 | done |
| 9271 | done |
| 9272 | IFS=$as_save_IFS |
| 9273 | |
| 9274 | fi ;; |
| 9275 | esac |
| 9276 | fi |
| 9277 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9278 | if test -n "$ac_ct_NMEDIT"; then |
| 9279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 9280 | printf "%s\n" "$ac_ct_NMEDIT" >&6; } |
| 9281 | else |
| 9282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9283 | printf "%s\n" "no" >&6; } |
| 9284 | fi |
| 9285 | |
| 9286 | if test "x$ac_ct_NMEDIT" = x; then |
| 9287 | NMEDIT=":" |
| 9288 | else |
| 9289 | case $cross_compiling:$ac_tool_warned in |
| 9290 | yes:) |
| 9291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9292 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9293 | ac_tool_warned=yes ;; |
| 9294 | esac |
| 9295 | NMEDIT=$ac_ct_NMEDIT |
| 9296 | fi |
| 9297 | else |
| 9298 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 9299 | fi |
| 9300 | |
| 9301 | if test -n "$ac_tool_prefix"; then |
| 9302 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9303 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 9304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9305 | printf %s "checking for $ac_word... " >&6; } |
| 9306 | if test ${ac_cv_prog_LIPO+y} |
| 9307 | then : |
| 9308 | printf %s "(cached) " >&6 |
| 9309 | else case e in #( |
| 9310 | e) if test -n "$LIPO"; then |
| 9311 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9312 | else |
| 9313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9314 | for as_dir in $PATH |
| 9315 | do |
| 9316 | IFS=$as_save_IFS |
| 9317 | case $as_dir in #((( |
| 9318 | '') as_dir=./ ;; |
| 9319 | */) ;; |
| 9320 | *) as_dir=$as_dir/ ;; |
| 9321 | esac |
| 9322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9323 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9324 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 9325 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9326 | break 2 |
| 9327 | fi |
| 9328 | done |
| 9329 | done |
| 9330 | IFS=$as_save_IFS |
| 9331 | |
| 9332 | fi ;; |
| 9333 | esac |
| 9334 | fi |
| 9335 | LIPO=$ac_cv_prog_LIPO |
| 9336 | if test -n "$LIPO"; then |
| 9337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 9338 | printf "%s\n" "$LIPO" >&6; } |
| 9339 | else |
| 9340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9341 | printf "%s\n" "no" >&6; } |
| 9342 | fi |
| 9343 | |
| 9344 | |
| 9345 | fi |
| 9346 | if test -z "$ac_cv_prog_LIPO"; then |
| 9347 | ac_ct_LIPO=$LIPO |
| 9348 | # Extract the first word of "lipo", so it can be a program name with args. |
| 9349 | set dummy lipo; ac_word=$2 |
| 9350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9351 | printf %s "checking for $ac_word... " >&6; } |
| 9352 | if test ${ac_cv_prog_ac_ct_LIPO+y} |
| 9353 | then : |
| 9354 | printf %s "(cached) " >&6 |
| 9355 | else case e in #( |
| 9356 | e) if test -n "$ac_ct_LIPO"; then |
| 9357 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9358 | else |
| 9359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9360 | for as_dir in $PATH |
| 9361 | do |
| 9362 | IFS=$as_save_IFS |
| 9363 | case $as_dir in #((( |
| 9364 | '') as_dir=./ ;; |
| 9365 | */) ;; |
| 9366 | *) as_dir=$as_dir/ ;; |
| 9367 | esac |
| 9368 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9369 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9370 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 9371 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9372 | break 2 |
| 9373 | fi |
| 9374 | done |
| 9375 | done |
| 9376 | IFS=$as_save_IFS |
| 9377 | |
| 9378 | fi ;; |
| 9379 | esac |
| 9380 | fi |
| 9381 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9382 | if test -n "$ac_ct_LIPO"; then |
| 9383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 9384 | printf "%s\n" "$ac_ct_LIPO" >&6; } |
| 9385 | else |
| 9386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9387 | printf "%s\n" "no" >&6; } |
| 9388 | fi |
| 9389 | |
| 9390 | if test "x$ac_ct_LIPO" = x; then |
| 9391 | LIPO=":" |
| 9392 | else |
| 9393 | case $cross_compiling:$ac_tool_warned in |
| 9394 | yes:) |
| 9395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9396 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9397 | ac_tool_warned=yes ;; |
| 9398 | esac |
| 9399 | LIPO=$ac_ct_LIPO |
| 9400 | fi |
| 9401 | else |
| 9402 | LIPO="$ac_cv_prog_LIPO" |
| 9403 | fi |
| 9404 | |
| 9405 | if test -n "$ac_tool_prefix"; then |
| 9406 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9407 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 9408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9409 | printf %s "checking for $ac_word... " >&6; } |
| 9410 | if test ${ac_cv_prog_OTOOL+y} |
| 9411 | then : |
| 9412 | printf %s "(cached) " >&6 |
| 9413 | else case e in #( |
| 9414 | e) if test -n "$OTOOL"; then |
| 9415 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9416 | else |
| 9417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9418 | for as_dir in $PATH |
| 9419 | do |
| 9420 | IFS=$as_save_IFS |
| 9421 | case $as_dir in #((( |
| 9422 | '') as_dir=./ ;; |
| 9423 | */) ;; |
| 9424 | *) as_dir=$as_dir/ ;; |
| 9425 | esac |
| 9426 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9427 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9428 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 9429 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9430 | break 2 |
| 9431 | fi |
| 9432 | done |
| 9433 | done |
| 9434 | IFS=$as_save_IFS |
| 9435 | |
| 9436 | fi ;; |
| 9437 | esac |
| 9438 | fi |
| 9439 | OTOOL=$ac_cv_prog_OTOOL |
| 9440 | if test -n "$OTOOL"; then |
| 9441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 9442 | printf "%s\n" "$OTOOL" >&6; } |
| 9443 | else |
| 9444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9445 | printf "%s\n" "no" >&6; } |
| 9446 | fi |
| 9447 | |
| 9448 | |
| 9449 | fi |
| 9450 | if test -z "$ac_cv_prog_OTOOL"; then |
| 9451 | ac_ct_OTOOL=$OTOOL |
| 9452 | # Extract the first word of "otool", so it can be a program name with args. |
| 9453 | set dummy otool; ac_word=$2 |
| 9454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9455 | printf %s "checking for $ac_word... " >&6; } |
| 9456 | if test ${ac_cv_prog_ac_ct_OTOOL+y} |
| 9457 | then : |
| 9458 | printf %s "(cached) " >&6 |
| 9459 | else case e in #( |
| 9460 | e) if test -n "$ac_ct_OTOOL"; then |
| 9461 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9462 | else |
| 9463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9464 | for as_dir in $PATH |
| 9465 | do |
| 9466 | IFS=$as_save_IFS |
| 9467 | case $as_dir in #((( |
| 9468 | '') as_dir=./ ;; |
| 9469 | */) ;; |
| 9470 | *) as_dir=$as_dir/ ;; |
| 9471 | esac |
| 9472 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9473 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9474 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 9475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9476 | break 2 |
| 9477 | fi |
| 9478 | done |
| 9479 | done |
| 9480 | IFS=$as_save_IFS |
| 9481 | |
| 9482 | fi ;; |
| 9483 | esac |
| 9484 | fi |
| 9485 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9486 | if test -n "$ac_ct_OTOOL"; then |
| 9487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 9488 | printf "%s\n" "$ac_ct_OTOOL" >&6; } |
| 9489 | else |
| 9490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9491 | printf "%s\n" "no" >&6; } |
| 9492 | fi |
| 9493 | |
| 9494 | if test "x$ac_ct_OTOOL" = x; then |
| 9495 | OTOOL=":" |
| 9496 | else |
| 9497 | case $cross_compiling:$ac_tool_warned in |
| 9498 | yes:) |
| 9499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9500 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9501 | ac_tool_warned=yes ;; |
| 9502 | esac |
| 9503 | OTOOL=$ac_ct_OTOOL |
| 9504 | fi |
| 9505 | else |
| 9506 | OTOOL="$ac_cv_prog_OTOOL" |
| 9507 | fi |
| 9508 | |
| 9509 | if test -n "$ac_tool_prefix"; then |
| 9510 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9511 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 9512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9513 | printf %s "checking for $ac_word... " >&6; } |
| 9514 | if test ${ac_cv_prog_OTOOL64+y} |
| 9515 | then : |
| 9516 | printf %s "(cached) " >&6 |
| 9517 | else case e in #( |
| 9518 | e) if test -n "$OTOOL64"; then |
| 9519 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9520 | else |
| 9521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9522 | for as_dir in $PATH |
| 9523 | do |
| 9524 | IFS=$as_save_IFS |
| 9525 | case $as_dir in #((( |
| 9526 | '') as_dir=./ ;; |
| 9527 | */) ;; |
| 9528 | *) as_dir=$as_dir/ ;; |
| 9529 | esac |
| 9530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9531 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9532 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 9533 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9534 | break 2 |
| 9535 | fi |
| 9536 | done |
| 9537 | done |
| 9538 | IFS=$as_save_IFS |
| 9539 | |
| 9540 | fi ;; |
| 9541 | esac |
| 9542 | fi |
| 9543 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 9544 | if test -n "$OTOOL64"; then |
| 9545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 9546 | printf "%s\n" "$OTOOL64" >&6; } |
| 9547 | else |
| 9548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9549 | printf "%s\n" "no" >&6; } |
| 9550 | fi |
| 9551 | |
| 9552 | |
| 9553 | fi |
| 9554 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 9555 | ac_ct_OTOOL64=$OTOOL64 |
| 9556 | # Extract the first word of "otool64", so it can be a program name with args. |
| 9557 | set dummy otool64; ac_word=$2 |
| 9558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9559 | printf %s "checking for $ac_word... " >&6; } |
| 9560 | if test ${ac_cv_prog_ac_ct_OTOOL64+y} |
| 9561 | then : |
| 9562 | printf %s "(cached) " >&6 |
| 9563 | else case e in #( |
| 9564 | e) if test -n "$ac_ct_OTOOL64"; then |
| 9565 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9566 | else |
| 9567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9568 | for as_dir in $PATH |
| 9569 | do |
| 9570 | IFS=$as_save_IFS |
| 9571 | case $as_dir in #((( |
| 9572 | '') as_dir=./ ;; |
| 9573 | */) ;; |
| 9574 | *) as_dir=$as_dir/ ;; |
| 9575 | esac |
| 9576 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9577 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9578 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9579 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9580 | break 2 |
| 9581 | fi |
| 9582 | done |
| 9583 | done |
| 9584 | IFS=$as_save_IFS |
| 9585 | |
| 9586 | fi ;; |
| 9587 | esac |
| 9588 | fi |
| 9589 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9590 | if test -n "$ac_ct_OTOOL64"; then |
| 9591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9592 | printf "%s\n" "$ac_ct_OTOOL64" >&6; } |
| 9593 | else |
| 9594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9595 | printf "%s\n" "no" >&6; } |
| 9596 | fi |
| 9597 | |
| 9598 | if test "x$ac_ct_OTOOL64" = x; then |
| 9599 | OTOOL64=":" |
| 9600 | else |
| 9601 | case $cross_compiling:$ac_tool_warned in |
| 9602 | yes:) |
| 9603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9604 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9605 | ac_tool_warned=yes ;; |
| 9606 | esac |
| 9607 | OTOOL64=$ac_ct_OTOOL64 |
| 9608 | fi |
| 9609 | else |
| 9610 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 9611 | fi |
| 9612 | |
| 9613 | |
| 9614 | |
| 9615 | |
| 9616 | |
| 9617 | |
| 9618 | |
| 9619 | |
| 9620 | |
| 9621 | |
| 9622 | |
| 9623 | |
| 9624 | |
| 9625 | |
| 9626 | |
| 9627 | |
| 9628 | |
| 9629 | |
| 9630 | |
| 9631 | |
| 9632 | |
| 9633 | |
| 9634 | |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | |
| 9639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9640 | printf %s "checking for -single_module linker flag... " >&6; } |
| 9641 | if test ${lt_cv_apple_cc_single_mod+y} |
| 9642 | then : |
| 9643 | printf %s "(cached) " >&6 |
| 9644 | else case e in #( |
| 9645 | e) lt_cv_apple_cc_single_mod=no |
| 9646 | if test -z "$LT_MULTI_MODULE"; then |
| 9647 | # By default we will add the -single_module flag. You can override |
| 9648 | # by either setting the environment variable LT_MULTI_MODULE |
| 9649 | # non-empty at configure time, or by adding -multi_module to the |
| 9650 | # link flags. |
| 9651 | rm -rf libconftest.dylib* |
| 9652 | echo "int foo(void){return 1;}" > conftest.c |
| 9653 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9654 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9655 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9656 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9657 | _lt_result=$? |
| 9658 | # If there is a non-empty error log, and "single_module" |
| 9659 | # appears in it, assume the flag caused a linker warning |
| 9660 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 9661 | cat conftest.err >&5 |
| 9662 | # Otherwise, if the output was created with a 0 exit code from |
| 9663 | # the compiler, it worked. |
| 9664 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 9665 | lt_cv_apple_cc_single_mod=yes |
| 9666 | else |
| 9667 | cat conftest.err >&5 |
| 9668 | fi |
| 9669 | rm -rf libconftest.dylib* |
| 9670 | rm -f conftest.* |
| 9671 | fi ;; |
| 9672 | esac |
| 9673 | fi |
| 9674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9675 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } |
| 9676 | |
| 9677 | # Feature test to disable chained fixups since it is not |
| 9678 | # compatible with '-undefined dynamic_lookup' |
| 9679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 |
| 9680 | printf %s "checking for -no_fixup_chains linker flag... " >&6; } |
| 9681 | if test ${lt_cv_support_no_fixup_chains+y} |
| 9682 | then : |
| 9683 | printf %s "(cached) " >&6 |
| 9684 | else case e in #( |
| 9685 | e) save_LDFLAGS=$LDFLAGS |
| 9686 | LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" |
| 9687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9688 | /* end confdefs.h. */ |
| 9689 | |
| 9690 | int |
| 9691 | main (void) |
| 9692 | { |
| 9693 | |
| 9694 | ; |
| 9695 | return 0; |
| 9696 | } |
| 9697 | _ACEOF |
| 9698 | if ac_fn_c_try_link "$LINENO" |
| 9699 | then : |
| 9700 | lt_cv_support_no_fixup_chains=yes |
| 9701 | else case e in #( |
| 9702 | e) lt_cv_support_no_fixup_chains=no |
| 9703 | ;; |
| 9704 | esac |
| 9705 | fi |
| 9706 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9707 | conftest$ac_exeext conftest.$ac_ext |
| 9708 | LDFLAGS=$save_LDFLAGS |
| 9709 | |
| 9710 | ;; |
| 9711 | esac |
| 9712 | fi |
| 9713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 |
| 9714 | printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } |
| 9715 | |
| 9716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9717 | printf %s "checking for -exported_symbols_list linker flag... " >&6; } |
| 9718 | if test ${lt_cv_ld_exported_symbols_list+y} |
| 9719 | then : |
| 9720 | printf %s "(cached) " >&6 |
| 9721 | else case e in #( |
| 9722 | e) lt_cv_ld_exported_symbols_list=no |
| 9723 | save_LDFLAGS=$LDFLAGS |
| 9724 | echo "_main" > conftest.sym |
| 9725 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9727 | /* end confdefs.h. */ |
| 9728 | |
| 9729 | int |
| 9730 | main (void) |
| 9731 | { |
| 9732 | |
| 9733 | ; |
| 9734 | return 0; |
| 9735 | } |
| 9736 | _ACEOF |
| 9737 | if ac_fn_c_try_link "$LINENO" |
| 9738 | then : |
| 9739 | lt_cv_ld_exported_symbols_list=yes |
| 9740 | else case e in #( |
| 9741 | e) lt_cv_ld_exported_symbols_list=no ;; |
| 9742 | esac |
| 9743 | fi |
| 9744 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9745 | conftest$ac_exeext conftest.$ac_ext |
| 9746 | LDFLAGS=$save_LDFLAGS |
| 9747 | ;; |
| 9748 | esac |
| 9749 | fi |
| 9750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9751 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9752 | |
| 9753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9754 | printf %s "checking for -force_load linker flag... " >&6; } |
| 9755 | if test ${lt_cv_ld_force_load+y} |
| 9756 | then : |
| 9757 | printf %s "(cached) " >&6 |
| 9758 | else case e in #( |
| 9759 | e) lt_cv_ld_force_load=no |
| 9760 | cat > conftest.c << _LT_EOF |
| 9761 | int forced_loaded() { return 2;} |
| 9762 | _LT_EOF |
| 9763 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9764 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9765 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 |
| 9766 | $AR $AR_FLAGS libconftest.a conftest.o 2>&5 |
| 9767 | echo "$RANLIB libconftest.a" >&5 |
| 9768 | $RANLIB libconftest.a 2>&5 |
| 9769 | cat > conftest.c << _LT_EOF |
| 9770 | int main(void) { return 0;} |
| 9771 | _LT_EOF |
| 9772 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9773 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9774 | _lt_result=$? |
| 9775 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 9776 | cat conftest.err >&5 |
| 9777 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 9778 | lt_cv_ld_force_load=yes |
| 9779 | else |
| 9780 | cat conftest.err >&5 |
| 9781 | fi |
| 9782 | rm -f conftest.err libconftest.a conftest conftest.c |
| 9783 | rm -rf conftest.dSYM |
| 9784 | ;; |
| 9785 | esac |
| 9786 | fi |
| 9787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9788 | printf "%s\n" "$lt_cv_ld_force_load" >&6; } |
| 9789 | case $host_os in |
| 9790 | rhapsody* | darwin1.[012]) |
| 9791 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 9792 | darwin1.*) |
| 9793 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9794 | darwin*) |
| 9795 | case $MACOSX_DEPLOYMENT_TARGET,$host in |
| 9796 | 10.[012],*|,*powerpc*-darwin[5-8]*) |
| 9797 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9798 | *) |
| 9799 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' |
| 9800 | if test yes = "$lt_cv_support_no_fixup_chains"; then |
| 9801 | as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' |
| 9802 | fi |
| 9803 | ;; |
| 9804 | esac |
| 9805 | ;; |
| 9806 | esac |
| 9807 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 9808 | _lt_dar_single_mod='$single_module' |
| 9809 | fi |
| 9810 | _lt_dar_needs_single_mod=no |
| 9811 | case $host_os in |
| 9812 | rhapsody* | darwin1.*) |
| 9813 | _lt_dar_needs_single_mod=yes ;; |
| 9814 | darwin*) |
| 9815 | # When targeting Mac OS X 10.4 (darwin 8) or later, |
| 9816 | # -single_module is the default and -multi_module is unsupported. |
| 9817 | # The toolchain on macOS 10.14 (darwin 18) and later cannot |
| 9818 | # target any OS version that needs -single_module. |
| 9819 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 9820 | 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) |
| 9821 | _lt_dar_needs_single_mod=yes ;; |
| 9822 | esac |
| 9823 | ;; |
| 9824 | esac |
| 9825 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 9826 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 9827 | else |
| 9828 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 9829 | fi |
| 9830 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 9831 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9832 | else |
| 9833 | _lt_dsymutil= |
| 9834 | fi |
| 9835 | ;; |
| 9836 | esac |
| 9837 | |
| 9838 | # func_munge_path_list VARIABLE PATH |
| 9839 | # ----------------------------------- |
| 9840 | # VARIABLE is name of variable containing _space_ separated list of |
| 9841 | # directories to be munged by the contents of PATH, which is string |
| 9842 | # having a format: |
| 9843 | # "DIR[:DIR]:" |
| 9844 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 9845 | # ":DIR[:DIR]" |
| 9846 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 9847 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 9848 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 9849 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 9850 | # "DIR[:DIR]" |
| 9851 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 9852 | func_munge_path_list () |
| 9853 | { |
| 9854 | case x$2 in |
| 9855 | x) |
| 9856 | ;; |
| 9857 | *:) |
| 9858 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 9859 | ;; |
| 9860 | x:*) |
| 9861 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 9862 | ;; |
| 9863 | *::*) |
| 9864 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 9865 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 9866 | ;; |
| 9867 | *) |
| 9868 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 9869 | ;; |
| 9870 | esac |
| 9871 | } |
| 9872 | |
| 9873 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9874 | " |
| 9875 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 9876 | then : |
| 9877 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 9878 | |
| 9879 | fi |
| 9880 | |
| 9881 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 9882 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 9883 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 9884 | then : |
| 9885 | printf %s "(cached) " >&6 |
| 9886 | else case e in #( |
| 9887 | e) ac_save_CFLAGS=$CFLAGS |
| 9888 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 9889 | for ac_arg in '' -fno-builtin; do |
| 9890 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 9891 | # This test program should *not* compile successfully. |
| 9892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9893 | /* end confdefs.h. */ |
| 9894 | |
| 9895 | int |
| 9896 | main (void) |
| 9897 | { |
| 9898 | (void) strchr; |
| 9899 | ; |
| 9900 | return 0; |
| 9901 | } |
| 9902 | _ACEOF |
| 9903 | if ac_fn_c_try_compile "$LINENO" |
| 9904 | then : |
| 9905 | |
| 9906 | else case e in #( |
| 9907 | e) # This test program should compile successfully. |
| 9908 | # No library function is consistently available on |
| 9909 | # freestanding implementations, so test against a dummy |
| 9910 | # declaration. Include always-available headers on the |
| 9911 | # off chance that they somehow elicit warnings. |
| 9912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9913 | /* end confdefs.h. */ |
| 9914 | #include <float.h> |
| 9915 | #include <limits.h> |
| 9916 | #include <stdarg.h> |
| 9917 | #include <stddef.h> |
| 9918 | extern void ac_decl (int, char *); |
| 9919 | |
| 9920 | int |
| 9921 | main (void) |
| 9922 | { |
| 9923 | (void) ac_decl (0, (char *) 0); |
| 9924 | (void) ac_decl; |
| 9925 | |
| 9926 | ; |
| 9927 | return 0; |
| 9928 | } |
| 9929 | _ACEOF |
| 9930 | if ac_fn_c_try_compile "$LINENO" |
| 9931 | then : |
| 9932 | if test x"$ac_arg" = x |
| 9933 | then : |
| 9934 | ac_cv_c_undeclared_builtin_options='none needed' |
| 9935 | else case e in #( |
| 9936 | e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; |
| 9937 | esac |
| 9938 | fi |
| 9939 | break |
| 9940 | fi |
| 9941 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9942 | esac |
| 9943 | fi |
| 9944 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9945 | done |
| 9946 | CFLAGS=$ac_save_CFLAGS |
| 9947 | ;; |
| 9948 | esac |
| 9949 | fi |
| 9950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 9951 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 9952 | case $ac_cv_c_undeclared_builtin_options in #( |
| 9953 | 'cannot detect') : |
| 9954 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 9955 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 9956 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 9957 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 9958 | 'none needed') : |
| 9959 | ac_c_undeclared_builtin_options='' ;; #( |
| 9960 | *) : |
| 9961 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 9962 | esac |
| 9963 | |
| 9964 | echo 'tldbg:KPSE_COMMON called (pkg=web2c programs, amopt=)' >&5 |
| 9965 | echo 'tldbg:KPSE_BASIC called (pkg=web2c programs, amopt=)' >&5 |
| 9966 | |
| 9967 | # |
| 9968 | # am_init_automake |
| 9969 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 9970 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 9971 | # is not polluted with repeated "-I." |
| 9972 | am__isrc=' -I$(srcdir)' |
| 9973 | # test to see if srcdir already configured |
| 9974 | if test -f $srcdir/config.status; then |
| 9975 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 9976 | fi |
| 9977 | fi |
| 9978 | |
| 9979 | # test whether we have cygpath |
| 9980 | if test -z "$CYGPATH_W"; then |
| 9981 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 9982 | CYGPATH_W='cygpath -w' |
| 9983 | else |
| 9984 | CYGPATH_W=echo |
| 9985 | fi |
| 9986 | fi |
| 9987 | |
| 9988 | |
| 9989 | # Define the identity of the package. |
| 9990 | PACKAGE='web2c' |
| 9991 | VERSION='2026' |
| 9992 | |
| 9993 | |
| 9994 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 9995 | |
| 9996 | |
| 9997 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 9998 | |
| 9999 | # Some tools Automake needs. |
| 10000 | |
| 10001 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 10002 | |
| 10003 | |
| 10004 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 10005 | |
| 10006 | |
| 10007 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 10008 | |
| 10009 | |
| 10010 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 10011 | |
| 10012 | |
| 10013 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 10014 | |
| 10015 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 10016 | # dies out for good. For more background, see: |
| 10017 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 10018 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 10019 | mkdir_p='$(MKDIR_P)' |
| 10020 | |
| 10021 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 10022 | # system "awk" is bad on some platforms. |
| 10023 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 10024 | # in the wild :-( We should find a proper way to deprecate it ... |
| 10025 | AMTAR='$${TAR-tar}' |
| 10026 | |
| 10027 | |
| 10028 | # We'll loop over all known methods to create a tar archive until one works. |
| 10029 | _am_tools='gnutar plaintar pax cpio none' |
| 10030 | |
| 10031 | # The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 10032 | # There is notably a 21 bits limit for the UID and the GID. In fact, |
| 10033 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 10034 | # and bug#13588). |
| 10035 | am_max_uid=2097151 # 2^21 - 1 |
| 10036 | am_max_gid=$am_max_uid |
| 10037 | # The $UID and $GID variables are not portable, so we need to resort |
| 10038 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 10039 | # below are definitely unexpected, so allow the users to see them |
| 10040 | # (that is, avoid stderr redirection). |
| 10041 | am_uid=`id -u || echo unknown` |
| 10042 | am_gid=`id -g || echo unknown` |
| 10043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 |
| 10044 | printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } |
| 10045 | if test x$am_uid = xunknown; then |
| 10046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 |
| 10047 | printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} |
| 10048 | elif test $am_uid -le $am_max_uid; then |
| 10049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10050 | printf "%s\n" "yes" >&6; } |
| 10051 | else |
| 10052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10053 | printf "%s\n" "no" >&6; } |
| 10054 | _am_tools=none |
| 10055 | fi |
| 10056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 |
| 10057 | printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } |
| 10058 | if test x$gm_gid = xunknown; then |
| 10059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 |
| 10060 | printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} |
| 10061 | elif test $am_gid -le $am_max_gid; then |
| 10062 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10063 | printf "%s\n" "yes" >&6; } |
| 10064 | else |
| 10065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10066 | printf "%s\n" "no" >&6; } |
| 10067 | _am_tools=none |
| 10068 | fi |
| 10069 | |
| 10070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 10071 | printf %s "checking how to create a ustar tar archive... " >&6; } |
| 10072 | |
| 10073 | # Go ahead even if we have the value already cached. We do so because we |
| 10074 | # need to set the values for the 'am__tar' and 'am__untar' variables. |
| 10075 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 10076 | |
| 10077 | for _am_tool in $_am_tools; do |
| 10078 | case $_am_tool in |
| 10079 | gnutar) |
| 10080 | for _am_tar in tar gnutar gtar; do |
| 10081 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 10082 | ($_am_tar --version) >&5 2>&5 |
| 10083 | ac_status=$? |
| 10084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10085 | (exit $ac_status); } && break |
| 10086 | done |
| 10087 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 10088 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 10089 | am__untar="$_am_tar -xf -" |
| 10090 | ;; |
| 10091 | plaintar) |
| 10092 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 10093 | # ustar tarball either. |
| 10094 | (tar --version) >/dev/null 2>&1 && continue |
| 10095 | am__tar='tar chf - "$$tardir"' |
| 10096 | am__tar_='tar chf - "$tardir"' |
| 10097 | am__untar='tar xf -' |
| 10098 | ;; |
| 10099 | pax) |
| 10100 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 10101 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 10102 | am__untar='pax -r' |
| 10103 | ;; |
| 10104 | cpio) |
| 10105 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 10106 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 10107 | am__untar='cpio -i -H ustar -d' |
| 10108 | ;; |
| 10109 | none) |
| 10110 | am__tar=false |
| 10111 | am__tar_=false |
| 10112 | am__untar=false |
| 10113 | ;; |
| 10114 | esac |
| 10115 | |
| 10116 | # If the value was cached, stop now. We just wanted to have am__tar |
| 10117 | # and am__untar set. |
| 10118 | test -n "${am_cv_prog_tar_ustar}" && break |
| 10119 | |
| 10120 | # tar/untar a dummy directory, and stop if the command works. |
| 10121 | rm -rf conftest.dir |
| 10122 | mkdir conftest.dir |
| 10123 | echo GrepMe > conftest.dir/file |
| 10124 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 10125 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 10126 | ac_status=$? |
| 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10128 | (exit $ac_status); } |
| 10129 | rm -rf conftest.dir |
| 10130 | if test -s conftest.tar; then |
| 10131 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 10132 | ($am__untar <conftest.tar) >&5 2>&5 |
| 10133 | ac_status=$? |
| 10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10135 | (exit $ac_status); } |
| 10136 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
| 10137 | (cat conftest.dir/file) >&5 2>&5 |
| 10138 | ac_status=$? |
| 10139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10140 | (exit $ac_status); } |
| 10141 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 10142 | fi |
| 10143 | done |
| 10144 | rm -rf conftest.dir |
| 10145 | |
| 10146 | if test ${am_cv_prog_tar_ustar+y} |
| 10147 | then : |
| 10148 | printf %s "(cached) " >&6 |
| 10149 | else case e in #( |
| 10150 | e) am_cv_prog_tar_ustar=$_am_tool ;; |
| 10151 | esac |
| 10152 | fi |
| 10153 | |
| 10154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 10155 | printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | depcc="$CC" am_compiler_list= |
| 10162 | |
| 10163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 10164 | printf %s "checking dependency style of $depcc... " >&6; } |
| 10165 | if test ${am_cv_CC_dependencies_compiler_type+y} |
| 10166 | then : |
| 10167 | printf %s "(cached) " >&6 |
| 10168 | else case e in #( |
| 10169 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 10170 | # We make a subdir and do the tests there. Otherwise we can end up |
| 10171 | # making bogus files that we don't know about and never remove. For |
| 10172 | # instance it was reported that on HP-UX the gcc test will end up |
| 10173 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 10174 | # in D". |
| 10175 | rm -rf conftest.dir |
| 10176 | mkdir conftest.dir |
| 10177 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 10178 | # using a relative directory. |
| 10179 | cp "$am_depcomp" conftest.dir |
| 10180 | cd conftest.dir |
| 10181 | # We will build objects and dependencies in a subdirectory because |
| 10182 | # it helps to detect inapplicable dependency modes. For instance |
| 10183 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 10184 | # side effect of compilation, but ICC will put the dependencies in |
| 10185 | # the current directory while Tru64 will put them in the object |
| 10186 | # directory. |
| 10187 | mkdir sub |
| 10188 | |
| 10189 | am_cv_CC_dependencies_compiler_type=none |
| 10190 | if test "$am_compiler_list" = ""; then |
| 10191 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 10192 | fi |
| 10193 | am__universal=false |
| 10194 | case " $depcc " in #( |
| 10195 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 10196 | esac |
| 10197 | |
| 10198 | for depmode in $am_compiler_list; do |
| 10199 | # Setup a source with many dependencies, because some compilers |
| 10200 | # like to wrap large dependency lists on column 80 (with \), and |
| 10201 | # we should not choose a depcomp mode which is confused by this. |
| 10202 | # |
| 10203 | # We need to recreate these files for each test, as the compiler may |
| 10204 | # overwrite some of them when testing with obscure command lines. |
| 10205 | # This happens at least with the AIX C compiler. |
| 10206 | : > sub/conftest.c |
| 10207 | for i in 1 2 3 4 5 6; do |
| 10208 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 10209 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 10210 | # Solaris 10 /bin/sh. |
| 10211 | echo '/* dummy */' > sub/conftst$i.h |
| 10212 | done |
| 10213 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 10214 | |
| 10215 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 10216 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 10217 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 10218 | # versions had trouble with output in subdirs. |
| 10219 | am__obj=sub/conftest.${OBJEXT-o} |
| 10220 | am__minus_obj="-o $am__obj" |
| 10221 | case $depmode in |
| 10222 | gcc) |
| 10223 | # This depmode causes a compiler race in universal mode. |
| 10224 | test "$am__universal" = false || continue |
| 10225 | ;; |
| 10226 | nosideeffect) |
| 10227 | # After this tag, mechanisms are not by side-effect, so they'll |
| 10228 | # only be used when explicitly requested. |
| 10229 | if test "x$enable_dependency_tracking" = xyes; then |
| 10230 | continue |
| 10231 | else |
| 10232 | break |
| 10233 | fi |
| 10234 | ;; |
| 10235 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 10236 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 10237 | # not run yet. These depmodes are late enough in the game, and |
| 10238 | # so weak that their functioning should not be impacted. |
| 10239 | am__obj=conftest.${OBJEXT-o} |
| 10240 | am__minus_obj= |
| 10241 | ;; |
| 10242 | none) break ;; |
| 10243 | esac |
| 10244 | if depmode=$depmode \ |
| 10245 | source=sub/conftest.c object=$am__obj \ |
| 10246 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 10247 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 10248 | >/dev/null 2>conftest.err && |
| 10249 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 10250 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 10251 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 10252 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 10253 | # icc doesn't choke on unknown options, it will just issue warnings |
| 10254 | # or remarks (even with -Werror). So we grep stderr for any message |
| 10255 | # that says an option was ignored or not supported. |
| 10256 | # When given -MP, icc 7.0 and 7.1 complain thus: |
| 10257 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 10258 | # The diagnosis changed in icc 8.0: |
| 10259 | # icc: Command line remark: option '-MP' not supported |
| 10260 | if (grep 'ignoring option' conftest.err || |
| 10261 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 10262 | am_cv_CC_dependencies_compiler_type=$depmode |
| 10263 | break |
| 10264 | fi |
| 10265 | fi |
| 10266 | done |
| 10267 | |
| 10268 | cd .. |
| 10269 | rm -rf conftest.dir |
| 10270 | else |
| 10271 | am_cv_CC_dependencies_compiler_type=none |
| 10272 | fi |
| 10273 | ;; |
| 10274 | esac |
| 10275 | fi |
| 10276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 10277 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 10278 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 10279 | |
| 10280 | if |
| 10281 | test "x$enable_dependency_tracking" != xno \ |
| 10282 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 10283 | am__fastdepCC_TRUE= |
| 10284 | am__fastdepCC_FALSE='#' |
| 10285 | else |
| 10286 | am__fastdepCC_TRUE='#' |
| 10287 | am__fastdepCC_FALSE= |
| 10288 | fi |
| 10289 | |
| 10290 | |
| 10291 | # Variables for tags utilities; see am/tags.am |
| 10292 | if test -z "$CTAGS"; then |
| 10293 | CTAGS=ctags |
| 10294 | fi |
| 10295 | |
| 10296 | if test -z "$ETAGS"; then |
| 10297 | ETAGS=etags |
| 10298 | fi |
| 10299 | |
| 10300 | if test -z "$CSCOPE"; then |
| 10301 | CSCOPE=cscope |
| 10302 | fi |
| 10303 | |
| 10304 | |
| 10305 | |
| 10306 | |
| 10307 | |
| 10308 | |
| 10309 | |
| 10310 | |
| 10311 | # am_maintainer_mode |
| 10312 | |
| 10313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 10314 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 10315 | # Check whether --enable-maintainer-mode was given. |
| 10316 | if test ${enable_maintainer_mode+y} |
| 10317 | then : |
| 10318 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 10319 | else case e in #( |
| 10320 | e) USE_MAINTAINER_MODE=no ;; |
| 10321 | esac |
| 10322 | fi |
| 10323 | |
| 10324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 10325 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
| 10326 | if test $USE_MAINTAINER_MODE = yes; then |
| 10327 | MAINTAINER_MODE_TRUE= |
| 10328 | MAINTAINER_MODE_FALSE='#' |
| 10329 | else |
| 10330 | MAINTAINER_MODE_TRUE='#' |
| 10331 | MAINTAINER_MODE_FALSE= |
| 10332 | fi |
| 10333 | |
| 10334 | MAINT=$MAINTAINER_MODE_TRUE |
| 10335 | |
| 10336 | |
| 10337 | |
| 10338 | # See comments in kpse-setup.m4 about system extensions. |
| 10339 | |
| 10340 | |
| 10341 | # Check whether prototypes work. |
| 10342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5 |
| 10343 | printf %s "checking whether the compiler accepts prototypes... " >&6; } |
| 10344 | if test ${kb_cv_c_prototypes+y} |
| 10345 | then : |
| 10346 | printf %s "(cached) " >&6 |
| 10347 | else case e in #( |
| 10348 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10349 | /* end confdefs.h. */ |
| 10350 | #include <stdarg.h> |
| 10351 | int |
| 10352 | main (void) |
| 10353 | { |
| 10354 | extern void foo(int i,...); |
| 10355 | ; |
| 10356 | return 0; |
| 10357 | } |
| 10358 | _ACEOF |
| 10359 | if ac_fn_c_try_link "$LINENO" |
| 10360 | then : |
| 10361 | kb_cv_c_prototypes=yes |
| 10362 | else case e in #( |
| 10363 | e) kb_cv_c_prototypes=no ;; |
| 10364 | esac |
| 10365 | fi |
| 10366 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10367 | conftest$ac_exeext conftest.$ac_ext ;; |
| 10368 | esac |
| 10369 | fi |
| 10370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5 |
| 10371 | printf "%s\n" "$kb_cv_c_prototypes" >&6; } |
| 10372 | if test "x$kb_cv_c_prototypes" = xno; then |
| 10373 | as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5 |
| 10374 | fi |
| 10375 | |
| 10376 | # kpse_compiler_warnings options. |
| 10377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 |
| 10378 | printf %s "checking what warning flags to pass to the C compiler... " >&6; } |
| 10379 | if test ${kpse_cv_warning_cflags+y} |
| 10380 | then : |
| 10381 | printf %s "(cached) " >&6 |
| 10382 | else case e in #( |
| 10383 | e) if test "x$GCC" = xyes; then |
| 10384 | kpse_cv_warning_cflags= |
| 10385 | if test "x$enable_compiler_warnings" != xno; then |
| 10386 | kpse_cv_warning_cflags="-Wimplicit -Wreturn-type" |
| 10387 | case `$CC -dumpversion` in #( |
| 10388 | 3.4.* | 4.* | 5.*) : |
| 10389 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #( |
| 10390 | *) : |
| 10391 | ;; |
| 10392 | esac |
| 10393 | case `$CC -dumpversion` in #( |
| 10394 | 3.[234].* | 4.* | 5.*) : |
| 10395 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #( |
| 10396 | *) : |
| 10397 | ;; |
| 10398 | esac |
| 10399 | if test "x$enable_compiler_warnings" != xmin; then |
| 10400 | kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags" |
| 10401 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations" |
| 10402 | if test "x$enable_compiler_warnings" != xyes; then |
| 10403 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" |
| 10404 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings" |
| 10405 | case `$CC -dumpversion` in #( |
| 10406 | 3.4.* | 4.* | 5.*) : |
| 10407 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #( |
| 10408 | *) : |
| 10409 | ;; |
| 10410 | esac |
| 10411 | if test "x$enable_compiler_warnings" != xmax; then |
| 10412 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow" |
| 10413 | fi |
| 10414 | fi |
| 10415 | fi |
| 10416 | fi |
| 10417 | elif test "x$enable_compiler_warnings" = xno; then |
| 10418 | kpse_cv_warning_cflags= |
| 10419 | else |
| 10420 | kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers |
| 10421 | fi ;; |
| 10422 | esac |
| 10423 | fi |
| 10424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5 |
| 10425 | printf "%s\n" "$kpse_cv_warning_cflags" >&6; } |
| 10426 | WARNING_CFLAGS=$kpse_cv_warning_cflags |
| 10427 | |
| 10428 | |
| 10429 | |
| 10430 | |
| 10431 | |
| 10432 | |
| 10433 | |
| 10434 | # end of kpse_basic macro. |
| 10435 | echo 'tldbg:KPSE_BASIC done (pkg=web2c programs, amopt=)' >&5 |
| 10436 | |
| 10437 | # am_prog_ar must be called before lt_init. |
| 10438 | |
| 10439 | if test -n "$ac_tool_prefix"; then |
| 10440 | for ac_prog in ar lib "link -lib" |
| 10441 | do |
| 10442 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10443 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10445 | printf %s "checking for $ac_word... " >&6; } |
| 10446 | if test ${ac_cv_prog_AR+y} |
| 10447 | then : |
| 10448 | printf %s "(cached) " >&6 |
| 10449 | else case e in #( |
| 10450 | e) if test -n "$AR"; then |
| 10451 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10452 | else |
| 10453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10454 | for as_dir in $PATH |
| 10455 | do |
| 10456 | IFS=$as_save_IFS |
| 10457 | case $as_dir in #((( |
| 10458 | '') as_dir=./ ;; |
| 10459 | */) ;; |
| 10460 | *) as_dir=$as_dir/ ;; |
| 10461 | esac |
| 10462 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10463 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10464 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 10465 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10466 | break 2 |
| 10467 | fi |
| 10468 | done |
| 10469 | done |
| 10470 | IFS=$as_save_IFS |
| 10471 | |
| 10472 | fi ;; |
| 10473 | esac |
| 10474 | fi |
| 10475 | AR=$ac_cv_prog_AR |
| 10476 | if test -n "$AR"; then |
| 10477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 10478 | printf "%s\n" "$AR" >&6; } |
| 10479 | else |
| 10480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10481 | printf "%s\n" "no" >&6; } |
| 10482 | fi |
| 10483 | |
| 10484 | |
| 10485 | test -n "$AR" && break |
| 10486 | done |
| 10487 | fi |
| 10488 | if test -z "$AR"; then |
| 10489 | ac_ct_AR=$AR |
| 10490 | for ac_prog in ar lib "link -lib" |
| 10491 | do |
| 10492 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10493 | set dummy $ac_prog; ac_word=$2 |
| 10494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10495 | printf %s "checking for $ac_word... " >&6; } |
| 10496 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 10497 | then : |
| 10498 | printf %s "(cached) " >&6 |
| 10499 | else case e in #( |
| 10500 | e) if test -n "$ac_ct_AR"; then |
| 10501 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 10502 | else |
| 10503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10504 | for as_dir in $PATH |
| 10505 | do |
| 10506 | IFS=$as_save_IFS |
| 10507 | case $as_dir in #((( |
| 10508 | '') as_dir=./ ;; |
| 10509 | */) ;; |
| 10510 | *) as_dir=$as_dir/ ;; |
| 10511 | esac |
| 10512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10513 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10514 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 10515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10516 | break 2 |
| 10517 | fi |
| 10518 | done |
| 10519 | done |
| 10520 | IFS=$as_save_IFS |
| 10521 | |
| 10522 | fi ;; |
| 10523 | esac |
| 10524 | fi |
| 10525 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10526 | if test -n "$ac_ct_AR"; then |
| 10527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 10528 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 10529 | else |
| 10530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10531 | printf "%s\n" "no" >&6; } |
| 10532 | fi |
| 10533 | |
| 10534 | |
| 10535 | test -n "$ac_ct_AR" && break |
| 10536 | done |
| 10537 | |
| 10538 | if test "x$ac_ct_AR" = x; then |
| 10539 | AR="false" |
| 10540 | else |
| 10541 | case $cross_compiling:$ac_tool_warned in |
| 10542 | yes:) |
| 10543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10544 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10545 | ac_tool_warned=yes ;; |
| 10546 | esac |
| 10547 | AR=$ac_ct_AR |
| 10548 | fi |
| 10549 | fi |
| 10550 | |
| 10551 | : ${AR=ar} |
| 10552 | : ${ARFLAGS=cr} |
| 10553 | |
| 10554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 10555 | printf %s "checking the archiver ($AR) interface... " >&6; } |
| 10556 | if test ${am_cv_ar_interface+y} |
| 10557 | then : |
| 10558 | printf %s "(cached) " >&6 |
| 10559 | else case e in #( |
| 10560 | e) ac_ext=c |
| 10561 | ac_cpp='$CPP $CPPFLAGS' |
| 10562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10565 | |
| 10566 | am_cv_ar_interface=ar |
| 10567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10568 | /* end confdefs.h. */ |
| 10569 | int some_variable = 0; |
| 10570 | _ACEOF |
| 10571 | if ac_fn_c_try_compile "$LINENO" |
| 10572 | then : |
| 10573 | am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5' |
| 10574 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 10575 | (eval $am_ar_try) 2>&5 |
| 10576 | ac_status=$? |
| 10577 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10578 | test $ac_status = 0; } |
| 10579 | if test "$ac_status" -eq 0; then |
| 10580 | am_cv_ar_interface=ar |
| 10581 | else |
| 10582 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 10583 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 10584 | (eval $am_ar_try) 2>&5 |
| 10585 | ac_status=$? |
| 10586 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10587 | test $ac_status = 0; } |
| 10588 | if test "$ac_status" -eq 0; then |
| 10589 | am_cv_ar_interface=lib |
| 10590 | else |
| 10591 | am_cv_ar_interface=unknown |
| 10592 | fi |
| 10593 | fi |
| 10594 | rm -f conftest.lib libconftest.a |
| 10595 | |
| 10596 | fi |
| 10597 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10598 | ac_ext=c |
| 10599 | ac_cpp='$CPP $CPPFLAGS' |
| 10600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10603 | ;; |
| 10604 | esac |
| 10605 | fi |
| 10606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 10607 | printf "%s\n" "$am_cv_ar_interface" >&6; } |
| 10608 | |
| 10609 | case $am_cv_ar_interface in |
| 10610 | ar) |
| 10611 | ;; |
| 10612 | lib) |
| 10613 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 10614 | # FIXME: It is wrong to rewrite AR. |
| 10615 | # But if we don't then we get into trouble of one sort or another. |
| 10616 | # A longer-term fix would be to have automake use am__AR in this case, |
| 10617 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 10618 | # similar. |
| 10619 | AR="$am_aux_dir/ar-lib $AR" |
| 10620 | ;; |
| 10621 | unknown) |
| 10622 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 10623 | ;; |
| 10624 | esac |
| 10625 | |
| 10626 | # (end am_prog_ar) |
| 10627 | # starting lt_prereq + lt_init. |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | |
| 10633 | # Set options |
| 10634 | enable_win32_dll=yes |
| 10635 | |
| 10636 | case $host in |
| 10637 | *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*) |
| 10638 | if test -n "$ac_tool_prefix"; then |
| 10639 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 10640 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 10641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10642 | printf %s "checking for $ac_word... " >&6; } |
| 10643 | if test ${ac_cv_prog_AS+y} |
| 10644 | then : |
| 10645 | printf %s "(cached) " >&6 |
| 10646 | else case e in #( |
| 10647 | e) if test -n "$AS"; then |
| 10648 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 10649 | else |
| 10650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10651 | for as_dir in $PATH |
| 10652 | do |
| 10653 | IFS=$as_save_IFS |
| 10654 | case $as_dir in #((( |
| 10655 | '') as_dir=./ ;; |
| 10656 | */) ;; |
| 10657 | *) as_dir=$as_dir/ ;; |
| 10658 | esac |
| 10659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10660 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10661 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 10662 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10663 | break 2 |
| 10664 | fi |
| 10665 | done |
| 10666 | done |
| 10667 | IFS=$as_save_IFS |
| 10668 | |
| 10669 | fi ;; |
| 10670 | esac |
| 10671 | fi |
| 10672 | AS=$ac_cv_prog_AS |
| 10673 | if test -n "$AS"; then |
| 10674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 10675 | printf "%s\n" "$AS" >&6; } |
| 10676 | else |
| 10677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10678 | printf "%s\n" "no" >&6; } |
| 10679 | fi |
| 10680 | |
| 10681 | |
| 10682 | fi |
| 10683 | if test -z "$ac_cv_prog_AS"; then |
| 10684 | ac_ct_AS=$AS |
| 10685 | # Extract the first word of "as", so it can be a program name with args. |
| 10686 | set dummy as; ac_word=$2 |
| 10687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10688 | printf %s "checking for $ac_word... " >&6; } |
| 10689 | if test ${ac_cv_prog_ac_ct_AS+y} |
| 10690 | then : |
| 10691 | printf %s "(cached) " >&6 |
| 10692 | else case e in #( |
| 10693 | e) if test -n "$ac_ct_AS"; then |
| 10694 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 10695 | else |
| 10696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10697 | for as_dir in $PATH |
| 10698 | do |
| 10699 | IFS=$as_save_IFS |
| 10700 | case $as_dir in #((( |
| 10701 | '') as_dir=./ ;; |
| 10702 | */) ;; |
| 10703 | *) as_dir=$as_dir/ ;; |
| 10704 | esac |
| 10705 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10706 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10707 | ac_cv_prog_ac_ct_AS="as" |
| 10708 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10709 | break 2 |
| 10710 | fi |
| 10711 | done |
| 10712 | done |
| 10713 | IFS=$as_save_IFS |
| 10714 | |
| 10715 | fi ;; |
| 10716 | esac |
| 10717 | fi |
| 10718 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 10719 | if test -n "$ac_ct_AS"; then |
| 10720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 10721 | printf "%s\n" "$ac_ct_AS" >&6; } |
| 10722 | else |
| 10723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10724 | printf "%s\n" "no" >&6; } |
| 10725 | fi |
| 10726 | |
| 10727 | if test "x$ac_ct_AS" = x; then |
| 10728 | AS="false" |
| 10729 | else |
| 10730 | case $cross_compiling:$ac_tool_warned in |
| 10731 | yes:) |
| 10732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10733 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10734 | ac_tool_warned=yes ;; |
| 10735 | esac |
| 10736 | AS=$ac_ct_AS |
| 10737 | fi |
| 10738 | else |
| 10739 | AS="$ac_cv_prog_AS" |
| 10740 | fi |
| 10741 | |
| 10742 | if test -n "$ac_tool_prefix"; then |
| 10743 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10744 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 10745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10746 | printf %s "checking for $ac_word... " >&6; } |
| 10747 | if test ${ac_cv_prog_DLLTOOL+y} |
| 10748 | then : |
| 10749 | printf %s "(cached) " >&6 |
| 10750 | else case e in #( |
| 10751 | e) if test -n "$DLLTOOL"; then |
| 10752 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10753 | else |
| 10754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10755 | for as_dir in $PATH |
| 10756 | do |
| 10757 | IFS=$as_save_IFS |
| 10758 | case $as_dir in #((( |
| 10759 | '') as_dir=./ ;; |
| 10760 | */) ;; |
| 10761 | *) as_dir=$as_dir/ ;; |
| 10762 | esac |
| 10763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10764 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10765 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 10766 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10767 | break 2 |
| 10768 | fi |
| 10769 | done |
| 10770 | done |
| 10771 | IFS=$as_save_IFS |
| 10772 | |
| 10773 | fi ;; |
| 10774 | esac |
| 10775 | fi |
| 10776 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10777 | if test -n "$DLLTOOL"; then |
| 10778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 10779 | printf "%s\n" "$DLLTOOL" >&6; } |
| 10780 | else |
| 10781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10782 | printf "%s\n" "no" >&6; } |
| 10783 | fi |
| 10784 | |
| 10785 | |
| 10786 | fi |
| 10787 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10788 | ac_ct_DLLTOOL=$DLLTOOL |
| 10789 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10790 | set dummy dlltool; ac_word=$2 |
| 10791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10792 | printf %s "checking for $ac_word... " >&6; } |
| 10793 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 10794 | then : |
| 10795 | printf %s "(cached) " >&6 |
| 10796 | else case e in #( |
| 10797 | e) if test -n "$ac_ct_DLLTOOL"; then |
| 10798 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10799 | else |
| 10800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10801 | for as_dir in $PATH |
| 10802 | do |
| 10803 | IFS=$as_save_IFS |
| 10804 | case $as_dir in #((( |
| 10805 | '') as_dir=./ ;; |
| 10806 | */) ;; |
| 10807 | *) as_dir=$as_dir/ ;; |
| 10808 | esac |
| 10809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10810 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10811 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 10812 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10813 | break 2 |
| 10814 | fi |
| 10815 | done |
| 10816 | done |
| 10817 | IFS=$as_save_IFS |
| 10818 | |
| 10819 | fi ;; |
| 10820 | esac |
| 10821 | fi |
| 10822 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10823 | if test -n "$ac_ct_DLLTOOL"; then |
| 10824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 10825 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 10826 | else |
| 10827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10828 | printf "%s\n" "no" >&6; } |
| 10829 | fi |
| 10830 | |
| 10831 | if test "x$ac_ct_DLLTOOL" = x; then |
| 10832 | DLLTOOL="false" |
| 10833 | else |
| 10834 | case $cross_compiling:$ac_tool_warned in |
| 10835 | yes:) |
| 10836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10837 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10838 | ac_tool_warned=yes ;; |
| 10839 | esac |
| 10840 | DLLTOOL=$ac_ct_DLLTOOL |
| 10841 | fi |
| 10842 | else |
| 10843 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10844 | fi |
| 10845 | |
| 10846 | if test -n "$ac_tool_prefix"; then |
| 10847 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10848 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 10849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10850 | printf %s "checking for $ac_word... " >&6; } |
| 10851 | if test ${ac_cv_prog_OBJDUMP+y} |
| 10852 | then : |
| 10853 | printf %s "(cached) " >&6 |
| 10854 | else case e in #( |
| 10855 | e) if test -n "$OBJDUMP"; then |
| 10856 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10857 | else |
| 10858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10859 | for as_dir in $PATH |
| 10860 | do |
| 10861 | IFS=$as_save_IFS |
| 10862 | case $as_dir in #((( |
| 10863 | '') as_dir=./ ;; |
| 10864 | */) ;; |
| 10865 | *) as_dir=$as_dir/ ;; |
| 10866 | esac |
| 10867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10868 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10869 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 10870 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10871 | break 2 |
| 10872 | fi |
| 10873 | done |
| 10874 | done |
| 10875 | IFS=$as_save_IFS |
| 10876 | |
| 10877 | fi ;; |
| 10878 | esac |
| 10879 | fi |
| 10880 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10881 | if test -n "$OBJDUMP"; then |
| 10882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 10883 | printf "%s\n" "$OBJDUMP" >&6; } |
| 10884 | else |
| 10885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10886 | printf "%s\n" "no" >&6; } |
| 10887 | fi |
| 10888 | |
| 10889 | |
| 10890 | fi |
| 10891 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10892 | ac_ct_OBJDUMP=$OBJDUMP |
| 10893 | # Extract the first word of "objdump", so it can be a program name with args. |
| 10894 | set dummy objdump; ac_word=$2 |
| 10895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10896 | printf %s "checking for $ac_word... " >&6; } |
| 10897 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 10898 | then : |
| 10899 | printf %s "(cached) " >&6 |
| 10900 | else case e in #( |
| 10901 | e) if test -n "$ac_ct_OBJDUMP"; then |
| 10902 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10903 | else |
| 10904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10905 | for as_dir in $PATH |
| 10906 | do |
| 10907 | IFS=$as_save_IFS |
| 10908 | case $as_dir in #((( |
| 10909 | '') as_dir=./ ;; |
| 10910 | */) ;; |
| 10911 | *) as_dir=$as_dir/ ;; |
| 10912 | esac |
| 10913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10914 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10915 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 10916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10917 | break 2 |
| 10918 | fi |
| 10919 | done |
| 10920 | done |
| 10921 | IFS=$as_save_IFS |
| 10922 | |
| 10923 | fi ;; |
| 10924 | esac |
| 10925 | fi |
| 10926 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10927 | if test -n "$ac_ct_OBJDUMP"; then |
| 10928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 10929 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 10930 | else |
| 10931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10932 | printf "%s\n" "no" >&6; } |
| 10933 | fi |
| 10934 | |
| 10935 | if test "x$ac_ct_OBJDUMP" = x; then |
| 10936 | OBJDUMP="false" |
| 10937 | else |
| 10938 | case $cross_compiling:$ac_tool_warned in |
| 10939 | yes:) |
| 10940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10941 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10942 | ac_tool_warned=yes ;; |
| 10943 | esac |
| 10944 | OBJDUMP=$ac_ct_OBJDUMP |
| 10945 | fi |
| 10946 | else |
| 10947 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 10948 | fi |
| 10949 | |
| 10950 | ;; |
| 10951 | esac |
| 10952 | |
| 10953 | test -z "$AS" && AS=as |
| 10954 | |
| 10955 | |
| 10956 | |
| 10957 | |
| 10958 | |
| 10959 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 10960 | |
| 10961 | |
| 10962 | |
| 10963 | |
| 10964 | |
| 10965 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 10966 | |
| 10967 | |
| 10968 | |
| 10969 | |
| 10970 | |
| 10971 | |
| 10972 | |
| 10973 | enable_dlopen=no |
| 10974 | |
| 10975 | |
| 10976 | |
| 10977 | # Check whether --enable-shared was given. |
| 10978 | if test ${enable_shared+y} |
| 10979 | then : |
| 10980 | enableval=$enable_shared; p=${PACKAGE-default} |
| 10981 | case $enableval in |
| 10982 | yes) enable_shared=yes ;; |
| 10983 | no) enable_shared=no ;; |
| 10984 | *) |
| 10985 | enable_shared=no |
| 10986 | # Look at the argument we got. We use all the common list separators. |
| 10987 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10988 | for pkg in $enableval; do |
| 10989 | IFS=$lt_save_ifs |
| 10990 | if test "X$pkg" = "X$p"; then |
| 10991 | enable_shared=yes |
| 10992 | fi |
| 10993 | done |
| 10994 | IFS=$lt_save_ifs |
| 10995 | ;; |
| 10996 | esac |
| 10997 | else case e in #( |
| 10998 | e) enable_shared=yes ;; |
| 10999 | esac |
| 11000 | fi |
| 11001 | |
| 11002 | |
| 11003 | |
| 11004 | |
| 11005 | |
| 11006 | |
| 11007 | |
| 11008 | |
| 11009 | |
| 11010 | # Check whether --enable-static was given. |
| 11011 | if test ${enable_static+y} |
| 11012 | then : |
| 11013 | enableval=$enable_static; p=${PACKAGE-default} |
| 11014 | case $enableval in |
| 11015 | yes) enable_static=yes ;; |
| 11016 | no) enable_static=no ;; |
| 11017 | *) |
| 11018 | enable_static=no |
| 11019 | # Look at the argument we got. We use all the common list separators. |
| 11020 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 11021 | for pkg in $enableval; do |
| 11022 | IFS=$lt_save_ifs |
| 11023 | if test "X$pkg" = "X$p"; then |
| 11024 | enable_static=yes |
| 11025 | fi |
| 11026 | done |
| 11027 | IFS=$lt_save_ifs |
| 11028 | ;; |
| 11029 | esac |
| 11030 | else case e in #( |
| 11031 | e) enable_static=yes ;; |
| 11032 | esac |
| 11033 | fi |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | # Check whether --enable-pic was given. |
| 11044 | if test ${enable_pic+y} |
| 11045 | then : |
| 11046 | enableval=$enable_pic; lt_p=${PACKAGE-default} |
| 11047 | case $enableval in |
| 11048 | yes|no) pic_mode=$enableval ;; |
| 11049 | *) |
| 11050 | pic_mode=default |
| 11051 | # Look at the argument we got. We use all the common list separators. |
| 11052 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 11053 | for lt_pkg in $enableval; do |
| 11054 | IFS=$lt_save_ifs |
| 11055 | if test "X$lt_pkg" = "X$lt_p"; then |
| 11056 | pic_mode=yes |
| 11057 | fi |
| 11058 | done |
| 11059 | IFS=$lt_save_ifs |
| 11060 | ;; |
| 11061 | esac |
| 11062 | else case e in #( |
| 11063 | e) # Check whether --with-pic was given. |
| 11064 | if test ${with_pic+y} |
| 11065 | then : |
| 11066 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 11067 | case $withval in |
| 11068 | yes|no) pic_mode=$withval ;; |
| 11069 | *) |
| 11070 | pic_mode=default |
| 11071 | # Look at the argument we got. We use all the common list separators. |
| 11072 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 11073 | for lt_pkg in $withval; do |
| 11074 | IFS=$lt_save_ifs |
| 11075 | if test "X$lt_pkg" = "X$lt_p"; then |
| 11076 | pic_mode=yes |
| 11077 | fi |
| 11078 | done |
| 11079 | IFS=$lt_save_ifs |
| 11080 | ;; |
| 11081 | esac |
| 11082 | else case e in #( |
| 11083 | e) pic_mode=default ;; |
| 11084 | esac |
| 11085 | fi |
| 11086 | |
| 11087 | ;; |
| 11088 | esac |
| 11089 | fi |
| 11090 | |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | |
| 11097 | |
| 11098 | # Check whether --enable-fast-install was given. |
| 11099 | if test ${enable_fast_install+y} |
| 11100 | then : |
| 11101 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 11102 | case $enableval in |
| 11103 | yes) enable_fast_install=yes ;; |
| 11104 | no) enable_fast_install=no ;; |
| 11105 | *) |
| 11106 | enable_fast_install=no |
| 11107 | # Look at the argument we got. We use all the common list separators. |
| 11108 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 11109 | for pkg in $enableval; do |
| 11110 | IFS=$lt_save_ifs |
| 11111 | if test "X$pkg" = "X$p"; then |
| 11112 | enable_fast_install=yes |
| 11113 | fi |
| 11114 | done |
| 11115 | IFS=$lt_save_ifs |
| 11116 | ;; |
| 11117 | esac |
| 11118 | else case e in #( |
| 11119 | e) enable_fast_install=yes ;; |
| 11120 | esac |
| 11121 | fi |
| 11122 | |
| 11123 | |
| 11124 | |
| 11125 | |
| 11126 | |
| 11127 | |
| 11128 | |
| 11129 | |
| 11130 | shared_archive_member_spec= |
| 11131 | case $host,$enable_shared in |
| 11132 | power*-*-aix[5-9]*,yes) |
| 11133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 11134 | printf %s "checking which variant of shared library versioning to provide... " >&6; } |
| 11135 | # Check whether --enable-aix-soname was given. |
| 11136 | if test ${enable_aix_soname+y} |
| 11137 | then : |
| 11138 | enableval=$enable_aix_soname; case $enableval in |
| 11139 | aix|svr4|both) |
| 11140 | ;; |
| 11141 | *) |
| 11142 | as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 |
| 11143 | ;; |
| 11144 | esac |
| 11145 | lt_cv_with_aix_soname=$enable_aix_soname |
| 11146 | else case e in #( |
| 11147 | e) # Check whether --with-aix-soname was given. |
| 11148 | if test ${with_aix_soname+y} |
| 11149 | then : |
| 11150 | withval=$with_aix_soname; case $withval in |
| 11151 | aix|svr4|both) |
| 11152 | ;; |
| 11153 | *) |
| 11154 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 11155 | ;; |
| 11156 | esac |
| 11157 | lt_cv_with_aix_soname=$with_aix_soname |
| 11158 | else case e in #( |
| 11159 | e) if test ${lt_cv_with_aix_soname+y} |
| 11160 | then : |
| 11161 | printf %s "(cached) " >&6 |
| 11162 | else case e in #( |
| 11163 | e) lt_cv_with_aix_soname=aix ;; |
| 11164 | esac |
| 11165 | fi |
| 11166 | ;; |
| 11167 | esac |
| 11168 | fi |
| 11169 | |
| 11170 | enable_aix_soname=$lt_cv_with_aix_soname ;; |
| 11171 | esac |
| 11172 | fi |
| 11173 | |
| 11174 | with_aix_soname=$enable_aix_soname |
| 11175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 11176 | printf "%s\n" "$with_aix_soname" >&6; } |
| 11177 | if test aix != "$with_aix_soname"; then |
| 11178 | # For the AIX way of multilib, we name the shared archive member |
| 11179 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 11180 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 11181 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 11182 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 11183 | if test 64 = "${OBJECT_MODE-32}"; then |
| 11184 | shared_archive_member_spec=shr_64 |
| 11185 | else |
| 11186 | shared_archive_member_spec=shr |
| 11187 | fi |
| 11188 | fi |
| 11189 | ;; |
| 11190 | *) |
| 11191 | with_aix_soname=aix |
| 11192 | ;; |
| 11193 | esac |
| 11194 | |
| 11195 | |
| 11196 | |
| 11197 | |
| 11198 | |
| 11199 | |
| 11200 | |
| 11201 | |
| 11202 | |
| 11203 | |
| 11204 | # This can be used to rebuild libtool when needed |
| 11205 | LIBTOOL_DEPS=$ltmain |
| 11206 | |
| 11207 | # Always use our own libtool. |
| 11208 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 11209 | |
| 11210 | |
| 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
| 11229 | |
| 11230 | |
| 11231 | |
| 11232 | |
| 11233 | |
| 11234 | |
| 11235 | |
| 11236 | |
| 11237 | |
| 11238 | |
| 11239 | test -z "$LN_S" && LN_S="ln -s" |
| 11240 | |
| 11241 | |
| 11242 | |
| 11243 | |
| 11244 | |
| 11245 | |
| 11246 | |
| 11247 | |
| 11248 | |
| 11249 | |
| 11250 | |
| 11251 | |
| 11252 | |
| 11253 | |
| 11254 | if test -n "${ZSH_VERSION+set}"; then |
| 11255 | setopt NO_GLOB_SUBST |
| 11256 | fi |
| 11257 | |
| 11258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 11259 | printf %s "checking for objdir... " >&6; } |
| 11260 | if test ${lt_cv_objdir+y} |
| 11261 | then : |
| 11262 | printf %s "(cached) " >&6 |
| 11263 | else case e in #( |
| 11264 | e) rm -f .libs 2>/dev/null |
| 11265 | mkdir .libs 2>/dev/null |
| 11266 | if test -d .libs; then |
| 11267 | lt_cv_objdir=.libs |
| 11268 | else |
| 11269 | # MS-DOS does not allow filenames that begin with a dot. |
| 11270 | lt_cv_objdir=_libs |
| 11271 | fi |
| 11272 | rmdir .libs 2>/dev/null ;; |
| 11273 | esac |
| 11274 | fi |
| 11275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 11276 | printf "%s\n" "$lt_cv_objdir" >&6; } |
| 11277 | objdir=$lt_cv_objdir |
| 11278 | |
| 11279 | |
| 11280 | |
| 11281 | |
| 11282 | |
| 11283 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h |
| 11284 | |
| 11285 | |
| 11286 | |
| 11287 | |
| 11288 | case $host_os in |
| 11289 | aix3*) |
| 11290 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11291 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11292 | # vanish in a puff of smoke. |
| 11293 | if test set != "${COLLECT_NAMES+set}"; then |
| 11294 | COLLECT_NAMES= |
| 11295 | export COLLECT_NAMES |
| 11296 | fi |
| 11297 | ;; |
| 11298 | esac |
| 11299 | |
| 11300 | # Global variables: |
| 11301 | ofile=libtool |
| 11302 | can_build_shared=yes |
| 11303 | |
| 11304 | # All known linkers require a '.a' archive for static linking (except MSVC and |
| 11305 | # ICC, which need '.lib'). |
| 11306 | libext=a |
| 11307 | |
| 11308 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11309 | |
| 11310 | old_CC=$CC |
| 11311 | old_CFLAGS=$CFLAGS |
| 11312 | |
| 11313 | # Set sane defaults for various variables |
| 11314 | test -z "$CC" && CC=cc |
| 11315 | test -z "$LTCC" && LTCC=$CC |
| 11316 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 11317 | test -z "$LD" && LD=ld |
| 11318 | test -z "$ac_objext" && ac_objext=o |
| 11319 | |
| 11320 | func_cc_basename $compiler |
| 11321 | cc_basename=$func_cc_basename_result |
| 11322 | |
| 11323 | |
| 11324 | # Only perform the check for file, if the check method requires it |
| 11325 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11326 | case $deplibs_check_method in |
| 11327 | file_magic*) |
| 11328 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 11329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 11330 | printf %s "checking for ${ac_tool_prefix}file... " >&6; } |
| 11331 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 11332 | then : |
| 11333 | printf %s "(cached) " >&6 |
| 11334 | else case e in #( |
| 11335 | e) case $MAGIC_CMD in |
| 11336 | [\\/*] | ?:[\\/]*) |
| 11337 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 11338 | ;; |
| 11339 | *) |
| 11340 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 11341 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 11342 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11343 | for ac_dir in $ac_dummy; do |
| 11344 | IFS=$lt_save_ifs |
| 11345 | test -z "$ac_dir" && ac_dir=. |
| 11346 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 11347 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 11348 | if test -n "$file_magic_test_file"; then |
| 11349 | case $deplibs_check_method in |
| 11350 | "file_magic "*) |
| 11351 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 11352 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 11353 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11354 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11355 | : |
| 11356 | else |
| 11357 | cat <<_LT_EOF 1>&2 |
| 11358 | |
| 11359 | *** Warning: the command libtool uses to detect shared libraries, |
| 11360 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11361 | *** The result is that libtool may fail to recognize shared libraries |
| 11362 | *** as such. This will affect the creation of libtool libraries that |
| 11363 | *** depend on shared libraries, but programs linked with such libtool |
| 11364 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11365 | *** may want to report the problem to your system manager and/or to |
| 11366 | *** [email protected] |
| 11367 | |
| 11368 | _LT_EOF |
| 11369 | fi ;; |
| 11370 | esac |
| 11371 | fi |
| 11372 | break |
| 11373 | fi |
| 11374 | done |
| 11375 | IFS=$lt_save_ifs |
| 11376 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 11377 | ;; |
| 11378 | esac ;; |
| 11379 | esac |
| 11380 | fi |
| 11381 | |
| 11382 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 11383 | if test -n "$MAGIC_CMD"; then |
| 11384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 11385 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 11386 | else |
| 11387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11388 | printf "%s\n" "no" >&6; } |
| 11389 | fi |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 11396 | if test -n "$ac_tool_prefix"; then |
| 11397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 11398 | printf %s "checking for file... " >&6; } |
| 11399 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 11400 | then : |
| 11401 | printf %s "(cached) " >&6 |
| 11402 | else case e in #( |
| 11403 | e) case $MAGIC_CMD in |
| 11404 | [\\/*] | ?:[\\/]*) |
| 11405 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 11406 | ;; |
| 11407 | *) |
| 11408 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 11409 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 11410 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11411 | for ac_dir in $ac_dummy; do |
| 11412 | IFS=$lt_save_ifs |
| 11413 | test -z "$ac_dir" && ac_dir=. |
| 11414 | if test -f "$ac_dir/file"; then |
| 11415 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 11416 | if test -n "$file_magic_test_file"; then |
| 11417 | case $deplibs_check_method in |
| 11418 | "file_magic "*) |
| 11419 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 11420 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 11421 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11422 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11423 | : |
| 11424 | else |
| 11425 | cat <<_LT_EOF 1>&2 |
| 11426 | |
| 11427 | *** Warning: the command libtool uses to detect shared libraries, |
| 11428 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11429 | *** The result is that libtool may fail to recognize shared libraries |
| 11430 | *** as such. This will affect the creation of libtool libraries that |
| 11431 | *** depend on shared libraries, but programs linked with such libtool |
| 11432 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11433 | *** may want to report the problem to your system manager and/or to |
| 11434 | *** [email protected] |
| 11435 | |
| 11436 | _LT_EOF |
| 11437 | fi ;; |
| 11438 | esac |
| 11439 | fi |
| 11440 | break |
| 11441 | fi |
| 11442 | done |
| 11443 | IFS=$lt_save_ifs |
| 11444 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 11445 | ;; |
| 11446 | esac ;; |
| 11447 | esac |
| 11448 | fi |
| 11449 | |
| 11450 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 11451 | if test -n "$MAGIC_CMD"; then |
| 11452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 11453 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 11454 | else |
| 11455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11456 | printf "%s\n" "no" >&6; } |
| 11457 | fi |
| 11458 | |
| 11459 | |
| 11460 | else |
| 11461 | MAGIC_CMD=: |
| 11462 | fi |
| 11463 | fi |
| 11464 | |
| 11465 | fi |
| 11466 | ;; |
| 11467 | esac |
| 11468 | |
| 11469 | # Use C for the default configuration in the libtool script |
| 11470 | |
| 11471 | lt_save_CC=$CC |
| 11472 | ac_ext=c |
| 11473 | ac_cpp='$CPP $CPPFLAGS' |
| 11474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11477 | |
| 11478 | |
| 11479 | # Source file extension for C test sources. |
| 11480 | ac_ext=c |
| 11481 | |
| 11482 | # Object file extension for compiled C test sources. |
| 11483 | objext=o |
| 11484 | objext=$objext |
| 11485 | |
| 11486 | # Code to be used in simple compile tests |
| 11487 | lt_simple_compile_test_code="int some_variable = 0;" |
| 11488 | |
| 11489 | # Code to be used in simple link tests |
| 11490 | lt_simple_link_test_code='int main(void){return(0);}' |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | # If no C compiler was specified, use CC. |
| 11499 | LTCC=${LTCC-"$CC"} |
| 11500 | |
| 11501 | # If no C compiler flags were specified, use CFLAGS. |
| 11502 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11503 | |
| 11504 | # Allow CC to be a program name with arguments. |
| 11505 | compiler=$CC |
| 11506 | |
| 11507 | # Save the default compiler, since it gets overwritten when the other |
| 11508 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 11509 | compiler_DEFAULT=$CC |
| 11510 | |
| 11511 | # save warnings/boilerplate of simple test code |
| 11512 | ac_outfile=conftest.$ac_objext |
| 11513 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11514 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11515 | _lt_compiler_boilerplate=`cat conftest.err` |
| 11516 | $RM conftest* |
| 11517 | |
| 11518 | ac_outfile=conftest.$ac_objext |
| 11519 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11520 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11521 | _lt_linker_boilerplate=`cat conftest.err` |
| 11522 | $RM -r conftest* |
| 11523 | |
| 11524 | |
| 11525 | ## CAVEAT EMPTOR: |
| 11526 | ## There is no encapsulation within the following macros, do not change |
| 11527 | ## the running order or otherwise move them around unless you know exactly |
| 11528 | ## what you are doing... |
| 11529 | if test -n "$compiler"; then |
| 11530 | |
| 11531 | lt_prog_compiler_no_builtin_flag= |
| 11532 | |
| 11533 | if test yes = "$GCC"; then |
| 11534 | case $cc_basename in |
| 11535 | nvcc*) |
| 11536 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 11537 | *) |
| 11538 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 11539 | esac |
| 11540 | |
| 11541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 11542 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 11543 | if test ${lt_cv_prog_compiler_rtti_exceptions+y} |
| 11544 | then : |
| 11545 | printf %s "(cached) " >&6 |
| 11546 | else case e in #( |
| 11547 | e) lt_cv_prog_compiler_rtti_exceptions=no |
| 11548 | ac_outfile=conftest.$ac_objext |
| 11549 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11550 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 11551 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11552 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11553 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11554 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11555 | # The option is referenced via a variable to avoid confusing sed. |
| 11556 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11557 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11558 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11559 | -e 's:$: $lt_compiler_flag:'` |
| 11560 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11561 | (eval "$lt_compile" 2>conftest.err) |
| 11562 | ac_status=$? |
| 11563 | cat conftest.err >&5 |
| 11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11565 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11566 | # The compiler can only warn and ignore the option if not recognized |
| 11567 | # So say no if there are warnings other than the usual output. |
| 11568 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 11569 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11570 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11571 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 11572 | fi |
| 11573 | fi |
| 11574 | $RM conftest* |
| 11575 | ;; |
| 11576 | esac |
| 11577 | fi |
| 11578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 11579 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 11580 | |
| 11581 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 11582 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 11583 | else |
| 11584 | : |
| 11585 | fi |
| 11586 | |
| 11587 | fi |
| 11588 | |
| 11589 | |
| 11590 | |
| 11591 | |
| 11592 | |
| 11593 | |
| 11594 | lt_prog_compiler_wl= |
| 11595 | lt_prog_compiler_pic= |
| 11596 | lt_prog_compiler_static= |
| 11597 | |
| 11598 | |
| 11599 | if test yes = "$GCC"; then |
| 11600 | lt_prog_compiler_wl='-Wl,' |
| 11601 | lt_prog_compiler_static='-static' |
| 11602 | |
| 11603 | case $host_os in |
| 11604 | aix*) |
| 11605 | # All AIX code is PIC. |
| 11606 | if test ia64 = "$host_cpu"; then |
| 11607 | # AIX 5 now supports IA64 processor |
| 11608 | lt_prog_compiler_static='-Bstatic' |
| 11609 | fi |
| 11610 | lt_prog_compiler_pic='-fPIC' |
| 11611 | ;; |
| 11612 | |
| 11613 | amigaos*) |
| 11614 | case $host_cpu in |
| 11615 | powerpc) |
| 11616 | # see comment about AmigaOS4 .so support |
| 11617 | lt_prog_compiler_pic='-fPIC' |
| 11618 | ;; |
| 11619 | m68k) |
| 11620 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11621 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 11622 | # like '-m68040'. |
| 11623 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 11624 | ;; |
| 11625 | esac |
| 11626 | ;; |
| 11627 | |
| 11628 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11629 | # PIC is the default for these OSes. |
| 11630 | ;; |
| 11631 | |
| 11632 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 11633 | # This hack is so that the source file can tell whether it is being |
| 11634 | # built for inclusion in a dll (and should export symbols for example). |
| 11635 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 11636 | # (--disable-auto-import) libraries |
| 11637 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11638 | case $host_os in |
| 11639 | os2*) |
| 11640 | lt_prog_compiler_static='$wl-static' |
| 11641 | ;; |
| 11642 | esac |
| 11643 | ;; |
| 11644 | |
| 11645 | darwin* | rhapsody*) |
| 11646 | # PIC is the default on this platform |
| 11647 | # Common symbols not allowed in MH_DYLIB files |
| 11648 | lt_prog_compiler_pic='-fno-common' |
| 11649 | ;; |
| 11650 | |
| 11651 | haiku*) |
| 11652 | # PIC is the default for Haiku. |
| 11653 | # The "-static" flag exists, but is broken. |
| 11654 | lt_prog_compiler_static= |
| 11655 | ;; |
| 11656 | |
| 11657 | hpux*) |
| 11658 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 11659 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 11660 | # sets the default TLS model and affects inlining. |
| 11661 | case $host_cpu in |
| 11662 | hppa*64*) |
| 11663 | # +Z the default |
| 11664 | ;; |
| 11665 | *) |
| 11666 | lt_prog_compiler_pic='-fPIC' |
| 11667 | ;; |
| 11668 | esac |
| 11669 | ;; |
| 11670 | |
| 11671 | interix[3-9]*) |
| 11672 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 11673 | # Instead, we relocate shared libraries at runtime. |
| 11674 | ;; |
| 11675 | |
| 11676 | msdosdjgpp*) |
| 11677 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 11678 | # on systems that don't support them. |
| 11679 | lt_prog_compiler_can_build_shared=no |
| 11680 | enable_shared=no |
| 11681 | ;; |
| 11682 | |
| 11683 | *nto* | *qnx*) |
| 11684 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11685 | # it will coredump. |
| 11686 | lt_prog_compiler_pic='-fPIC -shared' |
| 11687 | ;; |
| 11688 | |
| 11689 | sysv4*MP*) |
| 11690 | if test -d /usr/nec; then |
| 11691 | lt_prog_compiler_pic=-Kconform_pic |
| 11692 | fi |
| 11693 | ;; |
| 11694 | |
| 11695 | *) |
| 11696 | lt_prog_compiler_pic='-fPIC' |
| 11697 | ;; |
| 11698 | esac |
| 11699 | |
| 11700 | case $cc_basename in |
| 11701 | nvcc*) # Cuda Compiler Driver 2.2 |
| 11702 | lt_prog_compiler_wl='-Xlinker ' |
| 11703 | if test -n "$lt_prog_compiler_pic"; then |
| 11704 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 11705 | fi |
| 11706 | ;; |
| 11707 | esac |
| 11708 | else |
| 11709 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 11710 | case $host_os in |
| 11711 | aix*) |
| 11712 | lt_prog_compiler_wl='-Wl,' |
| 11713 | if test ia64 = "$host_cpu"; then |
| 11714 | # AIX 5 now supports IA64 processor |
| 11715 | lt_prog_compiler_static='-Bstatic' |
| 11716 | else |
| 11717 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 11718 | fi |
| 11719 | ;; |
| 11720 | |
| 11721 | darwin* | rhapsody*) |
| 11722 | # PIC is the default on this platform |
| 11723 | # Common symbols not allowed in MH_DYLIB files |
| 11724 | lt_prog_compiler_pic='-fno-common' |
| 11725 | case $cc_basename in |
| 11726 | nagfor*) |
| 11727 | # NAG Fortran compiler |
| 11728 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 11729 | lt_prog_compiler_pic='-PIC' |
| 11730 | lt_prog_compiler_static='-Bstatic' |
| 11731 | ;; |
| 11732 | esac |
| 11733 | ;; |
| 11734 | |
| 11735 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 11736 | # This hack is so that the source file can tell whether it is being |
| 11737 | # built for inclusion in a dll (and should export symbols for example). |
| 11738 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11739 | case $host_os in |
| 11740 | os2*) |
| 11741 | lt_prog_compiler_static='$wl-static' |
| 11742 | ;; |
| 11743 | esac |
| 11744 | ;; |
| 11745 | |
| 11746 | hpux9* | hpux10* | hpux11*) |
| 11747 | lt_prog_compiler_wl='-Wl,' |
| 11748 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11749 | # not for PA HP-UX. |
| 11750 | case $host_cpu in |
| 11751 | hppa*64*|ia64*) |
| 11752 | # +Z the default |
| 11753 | ;; |
| 11754 | *) |
| 11755 | lt_prog_compiler_pic='+Z' |
| 11756 | ;; |
| 11757 | esac |
| 11758 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 11759 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 11760 | ;; |
| 11761 | |
| 11762 | irix5* | irix6* | nonstopux*) |
| 11763 | lt_prog_compiler_wl='-Wl,' |
| 11764 | # PIC (with -KPIC) is the default. |
| 11765 | lt_prog_compiler_static='-non_shared' |
| 11766 | ;; |
| 11767 | |
| 11768 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 11769 | case $cc_basename in |
| 11770 | # old Intel for x86_64, which still supported -KPIC. |
| 11771 | ecc*) |
| 11772 | lt_prog_compiler_wl='-Wl,' |
| 11773 | lt_prog_compiler_pic='-KPIC' |
| 11774 | lt_prog_compiler_static='-static' |
| 11775 | ;; |
| 11776 | *flang* | ftn | f18* | f95*) |
| 11777 | # Flang compiler. |
| 11778 | lt_prog_compiler_wl='-Wl,' |
| 11779 | lt_prog_compiler_pic='-fPIC' |
| 11780 | lt_prog_compiler_static='-static' |
| 11781 | ;; |
| 11782 | # icc used to be incompatible with GCC. |
| 11783 | # ICC 10 doesn't accept -KPIC any more. |
| 11784 | icc* | ifort*) |
| 11785 | lt_prog_compiler_wl='-Wl,' |
| 11786 | lt_prog_compiler_pic='-fPIC' |
| 11787 | lt_prog_compiler_static='-static' |
| 11788 | ;; |
| 11789 | # Lahey Fortran 8.1. |
| 11790 | lf95*) |
| 11791 | lt_prog_compiler_wl='-Wl,' |
| 11792 | lt_prog_compiler_pic='--shared' |
| 11793 | lt_prog_compiler_static='--static' |
| 11794 | ;; |
| 11795 | nagfor*) |
| 11796 | # NAG Fortran compiler |
| 11797 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 11798 | lt_prog_compiler_pic='-PIC' |
| 11799 | lt_prog_compiler_static='-Bstatic' |
| 11800 | ;; |
| 11801 | tcc*) |
| 11802 | # Fabrice Bellard et al's Tiny C Compiler |
| 11803 | lt_prog_compiler_wl='-Wl,' |
| 11804 | lt_prog_compiler_pic='-fPIC' |
| 11805 | lt_prog_compiler_static='-static' |
| 11806 | ;; |
| 11807 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11808 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 11809 | # which looks to be a dead project) |
| 11810 | lt_prog_compiler_wl='-Wl,' |
| 11811 | lt_prog_compiler_pic='-fpic' |
| 11812 | lt_prog_compiler_static='-Bstatic' |
| 11813 | ;; |
| 11814 | ccc*) |
| 11815 | lt_prog_compiler_wl='-Wl,' |
| 11816 | # All Alpha code is PIC. |
| 11817 | lt_prog_compiler_static='-non_shared' |
| 11818 | ;; |
| 11819 | xl* | bgxl* | bgf* | mpixl*) |
| 11820 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 11821 | lt_prog_compiler_wl='-Wl,' |
| 11822 | lt_prog_compiler_pic='-qpic' |
| 11823 | lt_prog_compiler_static='-qstaticlink' |
| 11824 | ;; |
| 11825 | *) |
| 11826 | case `$CC -V 2>&1 | $SED 5q` in |
| 11827 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 11828 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 11829 | lt_prog_compiler_pic='-KPIC' |
| 11830 | lt_prog_compiler_static='-Bstatic' |
| 11831 | lt_prog_compiler_wl='' |
| 11832 | ;; |
| 11833 | *Sun\ F* | *Sun*Fortran*) |
| 11834 | lt_prog_compiler_pic='-KPIC' |
| 11835 | lt_prog_compiler_static='-Bstatic' |
| 11836 | lt_prog_compiler_wl='-Qoption ld ' |
| 11837 | ;; |
| 11838 | *Sun\ C*) |
| 11839 | # Sun C 5.9 |
| 11840 | lt_prog_compiler_pic='-KPIC' |
| 11841 | lt_prog_compiler_static='-Bstatic' |
| 11842 | lt_prog_compiler_wl='-Wl,' |
| 11843 | ;; |
| 11844 | *Intel*\ [CF]*Compiler*) |
| 11845 | lt_prog_compiler_wl='-Wl,' |
| 11846 | lt_prog_compiler_pic='-fPIC' |
| 11847 | lt_prog_compiler_static='-static' |
| 11848 | ;; |
| 11849 | *Portland\ Group*) |
| 11850 | lt_prog_compiler_wl='-Wl,' |
| 11851 | lt_prog_compiler_pic='-fpic' |
| 11852 | lt_prog_compiler_static='-Bstatic' |
| 11853 | ;; |
| 11854 | esac |
| 11855 | ;; |
| 11856 | esac |
| 11857 | ;; |
| 11858 | |
| 11859 | newsos6) |
| 11860 | lt_prog_compiler_pic='-KPIC' |
| 11861 | lt_prog_compiler_static='-Bstatic' |
| 11862 | ;; |
| 11863 | |
| 11864 | *-mlibc) |
| 11865 | lt_prog_compiler_wl='-Wl,' |
| 11866 | lt_prog_compiler_pic='-fPIC' |
| 11867 | lt_prog_compiler_static='-static' |
| 11868 | ;; |
| 11869 | |
| 11870 | *nto* | *qnx*) |
| 11871 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11872 | # it will coredump. |
| 11873 | lt_prog_compiler_pic='-fPIC -shared' |
| 11874 | ;; |
| 11875 | |
| 11876 | osf3* | osf4* | osf5*) |
| 11877 | lt_prog_compiler_wl='-Wl,' |
| 11878 | # All OSF/1 code is PIC. |
| 11879 | lt_prog_compiler_static='-non_shared' |
| 11880 | ;; |
| 11881 | |
| 11882 | rdos*) |
| 11883 | lt_prog_compiler_static='-non_shared' |
| 11884 | ;; |
| 11885 | |
| 11886 | serenity*) |
| 11887 | ;; |
| 11888 | |
| 11889 | solaris*) |
| 11890 | lt_prog_compiler_pic='-KPIC' |
| 11891 | lt_prog_compiler_static='-Bstatic' |
| 11892 | case $cc_basename in |
| 11893 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 11894 | lt_prog_compiler_wl='-Qoption ld ';; |
| 11895 | *) |
| 11896 | lt_prog_compiler_wl='-Wl,';; |
| 11897 | esac |
| 11898 | ;; |
| 11899 | |
| 11900 | sunos4*) |
| 11901 | lt_prog_compiler_wl='-Qoption ld ' |
| 11902 | lt_prog_compiler_pic='-PIC' |
| 11903 | lt_prog_compiler_static='-Bstatic' |
| 11904 | ;; |
| 11905 | |
| 11906 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 11907 | lt_prog_compiler_wl='-Wl,' |
| 11908 | lt_prog_compiler_pic='-KPIC' |
| 11909 | lt_prog_compiler_static='-Bstatic' |
| 11910 | ;; |
| 11911 | |
| 11912 | sysv4*MP*) |
| 11913 | if test -d /usr/nec; then |
| 11914 | lt_prog_compiler_pic='-Kconform_pic' |
| 11915 | lt_prog_compiler_static='-Bstatic' |
| 11916 | fi |
| 11917 | ;; |
| 11918 | |
| 11919 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11920 | lt_prog_compiler_wl='-Wl,' |
| 11921 | lt_prog_compiler_pic='-KPIC' |
| 11922 | lt_prog_compiler_static='-Bstatic' |
| 11923 | ;; |
| 11924 | |
| 11925 | unicos*) |
| 11926 | lt_prog_compiler_wl='-Wl,' |
| 11927 | lt_prog_compiler_can_build_shared=no |
| 11928 | ;; |
| 11929 | |
| 11930 | uts4*) |
| 11931 | lt_prog_compiler_pic='-pic' |
| 11932 | lt_prog_compiler_static='-Bstatic' |
| 11933 | ;; |
| 11934 | |
| 11935 | *) |
| 11936 | lt_prog_compiler_can_build_shared=no |
| 11937 | ;; |
| 11938 | esac |
| 11939 | fi |
| 11940 | |
| 11941 | case $host_os in |
| 11942 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 11943 | *djgpp*) |
| 11944 | lt_prog_compiler_pic= |
| 11945 | ;; |
| 11946 | *) |
| 11947 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 11948 | ;; |
| 11949 | esac |
| 11950 | |
| 11951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 11952 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 11953 | if test ${lt_cv_prog_compiler_pic+y} |
| 11954 | then : |
| 11955 | printf %s "(cached) " >&6 |
| 11956 | else case e in #( |
| 11957 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; |
| 11958 | esac |
| 11959 | fi |
| 11960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 11961 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 11962 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 11963 | |
| 11964 | # |
| 11965 | # Check to make sure the PIC flag actually works. |
| 11966 | # |
| 11967 | if test -n "$lt_prog_compiler_pic"; then |
| 11968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 11969 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 11970 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 11971 | then : |
| 11972 | printf %s "(cached) " >&6 |
| 11973 | else case e in #( |
| 11974 | e) lt_cv_prog_compiler_pic_works=no |
| 11975 | ac_outfile=conftest.$ac_objext |
| 11976 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11977 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 11978 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11979 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11980 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11981 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11982 | # The option is referenced via a variable to avoid confusing sed. |
| 11983 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11984 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11985 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11986 | -e 's:$: $lt_compiler_flag:'` |
| 11987 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11988 | (eval "$lt_compile" 2>conftest.err) |
| 11989 | ac_status=$? |
| 11990 | cat conftest.err >&5 |
| 11991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11992 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11993 | # The compiler can only warn and ignore the option if not recognized |
| 11994 | # So say no if there are warnings other than the usual output. |
| 11995 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 11996 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11997 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11998 | lt_cv_prog_compiler_pic_works=yes |
| 11999 | fi |
| 12000 | fi |
| 12001 | $RM conftest* |
| 12002 | ;; |
| 12003 | esac |
| 12004 | fi |
| 12005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 12006 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 12007 | |
| 12008 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 12009 | case $lt_prog_compiler_pic in |
| 12010 | "" | " "*) ;; |
| 12011 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12012 | esac |
| 12013 | else |
| 12014 | lt_prog_compiler_pic= |
| 12015 | lt_prog_compiler_can_build_shared=no |
| 12016 | fi |
| 12017 | |
| 12018 | fi |
| 12019 | |
| 12020 | |
| 12021 | |
| 12022 | |
| 12023 | |
| 12024 | |
| 12025 | |
| 12026 | |
| 12027 | |
| 12028 | |
| 12029 | |
| 12030 | # |
| 12031 | # Check to make sure the static flag actually works. |
| 12032 | # |
| 12033 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 12034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12035 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 12036 | if test ${lt_cv_prog_compiler_static_works+y} |
| 12037 | then : |
| 12038 | printf %s "(cached) " >&6 |
| 12039 | else case e in #( |
| 12040 | e) lt_cv_prog_compiler_static_works=no |
| 12041 | save_LDFLAGS=$LDFLAGS |
| 12042 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12043 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12044 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12045 | # The linker can only warn and ignore the option if not recognized |
| 12046 | # So say no if there are warnings |
| 12047 | if test -s conftest.err; then |
| 12048 | # Append any errors to the config.log. |
| 12049 | cat conftest.err 1>&5 |
| 12050 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 12051 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12052 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12053 | lt_cv_prog_compiler_static_works=yes |
| 12054 | fi |
| 12055 | else |
| 12056 | lt_cv_prog_compiler_static_works=yes |
| 12057 | fi |
| 12058 | fi |
| 12059 | $RM -r conftest* |
| 12060 | LDFLAGS=$save_LDFLAGS |
| 12061 | ;; |
| 12062 | esac |
| 12063 | fi |
| 12064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 12065 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 12066 | |
| 12067 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 12068 | : |
| 12069 | else |
| 12070 | lt_prog_compiler_static= |
| 12071 | fi |
| 12072 | |
| 12073 | |
| 12074 | |
| 12075 | |
| 12076 | |
| 12077 | |
| 12078 | |
| 12079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12080 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 12081 | if test ${lt_cv_prog_compiler_c_o+y} |
| 12082 | then : |
| 12083 | printf %s "(cached) " >&6 |
| 12084 | else case e in #( |
| 12085 | e) lt_cv_prog_compiler_c_o=no |
| 12086 | $RM -r conftest 2>/dev/null |
| 12087 | mkdir conftest |
| 12088 | cd conftest |
| 12089 | mkdir out |
| 12090 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12091 | |
| 12092 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12093 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12094 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12095 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12096 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12097 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12098 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12099 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12100 | -e 's:$: $lt_compiler_flag:'` |
| 12101 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 12102 | (eval "$lt_compile" 2>out/conftest.err) |
| 12103 | ac_status=$? |
| 12104 | cat out/conftest.err >&5 |
| 12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12106 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12107 | then |
| 12108 | # The compiler can only warn and ignore the option if not recognized |
| 12109 | # So say no if there are warnings |
| 12110 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 12111 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12112 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 12113 | lt_cv_prog_compiler_c_o=yes |
| 12114 | fi |
| 12115 | fi |
| 12116 | chmod u+w . 2>&5 |
| 12117 | $RM conftest* |
| 12118 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12119 | # template instantiation |
| 12120 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 12121 | $RM out/* && rmdir out |
| 12122 | cd .. |
| 12123 | $RM -r conftest |
| 12124 | $RM conftest* |
| 12125 | ;; |
| 12126 | esac |
| 12127 | fi |
| 12128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12129 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 12130 | |
| 12131 | |
| 12132 | |
| 12133 | |
| 12134 | |
| 12135 | |
| 12136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12137 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 12138 | if test ${lt_cv_prog_compiler_c_o+y} |
| 12139 | then : |
| 12140 | printf %s "(cached) " >&6 |
| 12141 | else case e in #( |
| 12142 | e) lt_cv_prog_compiler_c_o=no |
| 12143 | $RM -r conftest 2>/dev/null |
| 12144 | mkdir conftest |
| 12145 | cd conftest |
| 12146 | mkdir out |
| 12147 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12148 | |
| 12149 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12150 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12151 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12152 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12153 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12154 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12155 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12156 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12157 | -e 's:$: $lt_compiler_flag:'` |
| 12158 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 12159 | (eval "$lt_compile" 2>out/conftest.err) |
| 12160 | ac_status=$? |
| 12161 | cat out/conftest.err >&5 |
| 12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12163 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12164 | then |
| 12165 | # The compiler can only warn and ignore the option if not recognized |
| 12166 | # So say no if there are warnings |
| 12167 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 12168 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12169 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 12170 | lt_cv_prog_compiler_c_o=yes |
| 12171 | fi |
| 12172 | fi |
| 12173 | chmod u+w . 2>&5 |
| 12174 | $RM conftest* |
| 12175 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12176 | # template instantiation |
| 12177 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 12178 | $RM out/* && rmdir out |
| 12179 | cd .. |
| 12180 | $RM -r conftest |
| 12181 | $RM conftest* |
| 12182 | ;; |
| 12183 | esac |
| 12184 | fi |
| 12185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12186 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | |
| 12191 | hard_links=nottested |
| 12192 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 12193 | # do not overwrite the value of need_locks provided by the user |
| 12194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 12195 | printf %s "checking if we can lock with hard links... " >&6; } |
| 12196 | hard_links=yes |
| 12197 | $RM conftest* |
| 12198 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12199 | touch conftest.a |
| 12200 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12201 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 12203 | printf "%s\n" "$hard_links" >&6; } |
| 12204 | if test no = "$hard_links"; then |
| 12205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 12206 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 12207 | need_locks=warn |
| 12208 | fi |
| 12209 | else |
| 12210 | need_locks=no |
| 12211 | fi |
| 12212 | |
| 12213 | |
| 12214 | |
| 12215 | |
| 12216 | |
| 12217 | |
| 12218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12219 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12220 | |
| 12221 | runpath_var= |
| 12222 | allow_undefined_flag= |
| 12223 | always_export_symbols=no |
| 12224 | archive_cmds= |
| 12225 | archive_expsym_cmds= |
| 12226 | compiler_needs_object=no |
| 12227 | enable_shared_with_static_runtimes=no |
| 12228 | export_dynamic_flag_spec= |
| 12229 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12230 | hardcode_automatic=no |
| 12231 | hardcode_direct=no |
| 12232 | hardcode_direct_absolute=no |
| 12233 | hardcode_libdir_flag_spec= |
| 12234 | hardcode_libdir_separator= |
| 12235 | hardcode_minus_L=no |
| 12236 | hardcode_shlibpath_var=unsupported |
| 12237 | inherit_rpath=no |
| 12238 | link_all_deplibs=unknown |
| 12239 | module_cmds= |
| 12240 | module_expsym_cmds= |
| 12241 | old_archive_from_new_cmds= |
| 12242 | old_archive_from_expsyms_cmds= |
| 12243 | thread_safe_flag_spec= |
| 12244 | whole_archive_flag_spec= |
| 12245 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12246 | # included in the symbol list |
| 12247 | include_expsyms= |
| 12248 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12249 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 12250 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 12251 | # as well as any symbol that contains 'd'. |
| 12252 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 12253 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12254 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12255 | # the symbol is explicitly referenced. Since portable code cannot |
| 12256 | # rely on this symbol name, it's probably fine to never include it in |
| 12257 | # preloaded symbol tables. |
| 12258 | # Exclude shared library initialization/finalization symbols. |
| 12259 | extract_expsyms_cmds= |
| 12260 | |
| 12261 | case $host_os in |
| 12262 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 12263 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time |
| 12264 | # When not using gcc, we currently assume that we are using |
| 12265 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 12266 | if test yes != "$GCC"; then |
| 12267 | with_gnu_ld=no |
| 12268 | fi |
| 12269 | ;; |
| 12270 | interix*) |
| 12271 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) |
| 12272 | with_gnu_ld=yes |
| 12273 | ;; |
| 12274 | esac |
| 12275 | |
| 12276 | ld_shlibs=yes |
| 12277 | |
| 12278 | # On some targets, GNU ld is compatible enough with the native linker |
| 12279 | # that we're better off using the native interface for both. |
| 12280 | lt_use_gnu_ld_interface=no |
| 12281 | if test yes = "$with_gnu_ld"; then |
| 12282 | case $host_os in |
| 12283 | aix*) |
| 12284 | # The AIX port of GNU ld has always aspired to compatibility |
| 12285 | # with the native linker. However, as the warning in the GNU ld |
| 12286 | # block says, versions before 2.19.5* couldn't really create working |
| 12287 | # shared libraries, regardless of the interface used. |
| 12288 | case `$LD -v 2>&1` in |
| 12289 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 12290 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 12291 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 12292 | *) |
| 12293 | lt_use_gnu_ld_interface=yes |
| 12294 | ;; |
| 12295 | esac |
| 12296 | ;; |
| 12297 | *) |
| 12298 | lt_use_gnu_ld_interface=yes |
| 12299 | ;; |
| 12300 | esac |
| 12301 | fi |
| 12302 | |
| 12303 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 12304 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12305 | wlarc='$wl' |
| 12306 | |
| 12307 | # Set some defaults for GNU ld with shared library support. These |
| 12308 | # are reset later if shared libraries are not supported. Putting them |
| 12309 | # here allows them to be overridden if necessary. |
| 12310 | runpath_var=LD_RUN_PATH |
| 12311 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12312 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 12313 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12314 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 12315 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 12316 | else |
| 12317 | whole_archive_flag_spec= |
| 12318 | fi |
| 12319 | supports_anon_versioning=no |
| 12320 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
| 12321 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 12322 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12323 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12324 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12325 | *\ 2.11.*) ;; # other 2.11 versions |
| 12326 | *) supports_anon_versioning=yes ;; |
| 12327 | esac |
| 12328 | |
| 12329 | # See if GNU ld supports shared libraries. |
| 12330 | case $host_os in |
| 12331 | aix[3-9]*) |
| 12332 | # On AIX/PPC, the GNU linker is very broken |
| 12333 | if test ia64 != "$host_cpu"; then |
| 12334 | ld_shlibs=no |
| 12335 | cat <<_LT_EOF 1>&2 |
| 12336 | |
| 12337 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 12338 | *** to be unable to reliably create shared libraries on AIX. |
| 12339 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12340 | *** really care for shared libraries, you may want to install binutils |
| 12341 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 12342 | *** You will then need to restart the configuration process. |
| 12343 | |
| 12344 | _LT_EOF |
| 12345 | fi |
| 12346 | ;; |
| 12347 | |
| 12348 | amigaos*) |
| 12349 | case $host_cpu in |
| 12350 | powerpc) |
| 12351 | # see comment about AmigaOS4 .so support |
| 12352 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12353 | archive_expsym_cmds='' |
| 12354 | ;; |
| 12355 | m68k) |
| 12356 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 12357 | hardcode_libdir_flag_spec='-L$libdir' |
| 12358 | hardcode_minus_L=yes |
| 12359 | ;; |
| 12360 | esac |
| 12361 | ;; |
| 12362 | |
| 12363 | beos*) |
| 12364 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12365 | allow_undefined_flag=unsupported |
| 12366 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 12367 | # support --undefined. This deserves some investigation. FIXME |
| 12368 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12369 | else |
| 12370 | ld_shlibs=no |
| 12371 | fi |
| 12372 | ;; |
| 12373 | |
| 12374 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 12375 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12376 | # as there is no search path for DLLs. |
| 12377 | hardcode_libdir_flag_spec='-L$libdir' |
| 12378 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 12379 | allow_undefined_flag=unsupported |
| 12380 | always_export_symbols=no |
| 12381 | enable_shared_with_static_runtimes=yes |
| 12382 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 12383 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 12384 | file_list_spec='@' |
| 12385 | |
| 12386 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12388 | # If the export-symbols file already is a .def file, use it as |
| 12389 | # is; otherwise, prepend EXPORTS... |
| 12390 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 12391 | cp $export_symbols $output_objdir/$soname.def; |
| 12392 | else |
| 12393 | echo EXPORTS > $output_objdir/$soname.def; |
| 12394 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12395 | fi~ |
| 12396 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12397 | else |
| 12398 | ld_shlibs=no |
| 12399 | fi |
| 12400 | ;; |
| 12401 | |
| 12402 | haiku*) |
| 12403 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12404 | link_all_deplibs=no |
| 12405 | ;; |
| 12406 | |
| 12407 | os2*) |
| 12408 | hardcode_libdir_flag_spec='-L$libdir' |
| 12409 | hardcode_minus_L=yes |
| 12410 | allow_undefined_flag=unsupported |
| 12411 | shrext_cmds=.dll |
| 12412 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12413 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12414 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12415 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12416 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 12417 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12418 | emximp -o $lib $output_objdir/$libname.def' |
| 12419 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12420 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12421 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12422 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12423 | prefix_cmds="$SED"~ |
| 12424 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 12425 | prefix_cmds="$prefix_cmds -e 1d"; |
| 12426 | fi~ |
| 12427 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 12428 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 12429 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12430 | emximp -o $lib $output_objdir/$libname.def' |
| 12431 | old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 12432 | enable_shared_with_static_runtimes=yes |
| 12433 | file_list_spec='@' |
| 12434 | ;; |
| 12435 | |
| 12436 | interix[3-9]*) |
| 12437 | hardcode_direct=no |
| 12438 | hardcode_shlibpath_var=no |
| 12439 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12440 | export_dynamic_flag_spec='$wl-E' |
| 12441 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12442 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12443 | # default) and relocated if they conflict, which is a slow very memory |
| 12444 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12445 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12446 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12447 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12448 | archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12449 | ;; |
| 12450 | |
| 12451 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 12452 | tmp_diet=no |
| 12453 | if test linux-dietlibc = "$host_os"; then |
| 12454 | case $cc_basename in |
| 12455 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 12456 | esac |
| 12457 | fi |
| 12458 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 12459 | && test no = "$tmp_diet" |
| 12460 | then |
| 12461 | tmp_addflag=' $pic_flag' |
| 12462 | tmp_sharedflag='-shared' |
| 12463 | case $cc_basename,$host_cpu in |
| 12464 | pgcc*) # Portland Group C compiler |
| 12465 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 12466 | tmp_addflag=' $pic_flag' |
| 12467 | ;; |
| 12468 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 12469 | # Portland Group f77 and f90 compilers |
| 12470 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 12471 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 12472 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 12473 | tmp_addflag=' -i_dynamic' ;; |
| 12474 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 12475 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 12476 | ifc* | ifort*) # Intel Fortran compiler |
| 12477 | tmp_addflag=' -nofor_main' ;; |
| 12478 | lf95*) # Lahey Fortran 8.1 |
| 12479 | whole_archive_flag_spec= |
| 12480 | tmp_sharedflag='--shared' ;; |
| 12481 | nagfor*) # NAGFOR 5.3 |
| 12482 | tmp_sharedflag='-Wl,-shared' ;; |
| 12483 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 12484 | tmp_sharedflag='-qmkshrobj' |
| 12485 | tmp_addflag= ;; |
| 12486 | nvcc*) # Cuda Compiler Driver 2.2 |
| 12487 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 12488 | compiler_needs_object=yes |
| 12489 | ;; |
| 12490 | esac |
| 12491 | case `$CC -V 2>&1 | $SED 5q` in |
| 12492 | *Sun\ C*) # Sun C 5.9 |
| 12493 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 12494 | compiler_needs_object=yes |
| 12495 | tmp_sharedflag='-G' ;; |
| 12496 | *Sun\ F*) # Sun Fortran 8.3 |
| 12497 | tmp_sharedflag='-G' ;; |
| 12498 | esac |
| 12499 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12500 | |
| 12501 | if test yes = "$supports_anon_versioning"; then |
| 12502 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12503 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12504 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12505 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 12506 | fi |
| 12507 | |
| 12508 | case $cc_basename in |
| 12509 | tcc*) |
| 12510 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12511 | export_dynamic_flag_spec='-rdynamic' |
| 12512 | ;; |
| 12513 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 12514 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 12515 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 12516 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12517 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 12518 | if test yes = "$supports_anon_versioning"; then |
| 12519 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12520 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12521 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12522 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 12523 | fi |
| 12524 | ;; |
| 12525 | esac |
| 12526 | else |
| 12527 | ld_shlibs=no |
| 12528 | fi |
| 12529 | ;; |
| 12530 | |
| 12531 | *-mlibc) |
| 12532 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12533 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 12534 | ;; |
| 12535 | |
| 12536 | netbsd* | netbsdelf*-gnu) |
| 12537 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12538 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12539 | wlarc= |
| 12540 | else |
| 12541 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12542 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 12543 | fi |
| 12544 | ;; |
| 12545 | |
| 12546 | solaris*) |
| 12547 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 12548 | ld_shlibs=no |
| 12549 | cat <<_LT_EOF 1>&2 |
| 12550 | |
| 12551 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12552 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12553 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12554 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12555 | *** your PATH or compiler configuration so that the native linker is |
| 12556 | *** used, and then restart. |
| 12557 | |
| 12558 | _LT_EOF |
| 12559 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12560 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12561 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 12562 | else |
| 12563 | ld_shlibs=no |
| 12564 | fi |
| 12565 | ;; |
| 12566 | |
| 12567 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 12568 | case `$LD -v 2>&1` in |
| 12569 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 12570 | ld_shlibs=no |
| 12571 | cat <<_LT_EOF 1>&2 |
| 12572 | |
| 12573 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 12574 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 12575 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12576 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 12577 | *** your PATH or compiler configuration so that the native linker is |
| 12578 | *** used, and then restart. |
| 12579 | |
| 12580 | _LT_EOF |
| 12581 | ;; |
| 12582 | *) |
| 12583 | # For security reasons, it is highly recommended that you always |
| 12584 | # use absolute paths for naming shared libraries, and exclude the |
| 12585 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12586 | # requires that you compile everything twice, which is a pain. |
| 12587 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12588 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12589 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12590 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 12591 | else |
| 12592 | ld_shlibs=no |
| 12593 | fi |
| 12594 | ;; |
| 12595 | esac |
| 12596 | ;; |
| 12597 | |
| 12598 | sunos4*) |
| 12599 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12600 | wlarc= |
| 12601 | hardcode_direct=yes |
| 12602 | hardcode_shlibpath_var=no |
| 12603 | ;; |
| 12604 | |
| 12605 | *) |
| 12606 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12607 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12608 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 12609 | else |
| 12610 | ld_shlibs=no |
| 12611 | fi |
| 12612 | ;; |
| 12613 | esac |
| 12614 | |
| 12615 | if test no = "$ld_shlibs"; then |
| 12616 | runpath_var= |
| 12617 | hardcode_libdir_flag_spec= |
| 12618 | export_dynamic_flag_spec= |
| 12619 | whole_archive_flag_spec= |
| 12620 | fi |
| 12621 | else |
| 12622 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12623 | case $host_os in |
| 12624 | aix3*) |
| 12625 | allow_undefined_flag=unsupported |
| 12626 | always_export_symbols=yes |
| 12627 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 12628 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12629 | # are no directories specified by -L. |
| 12630 | hardcode_minus_L=yes |
| 12631 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 12632 | # Neither direct hardcoding nor static linking is supported with a |
| 12633 | # broken collect2. |
| 12634 | hardcode_direct=unsupported |
| 12635 | fi |
| 12636 | ;; |
| 12637 | |
| 12638 | aix[4-9]*) |
| 12639 | if test ia64 = "$host_cpu"; then |
| 12640 | # On IA64, the linker does run time linking by default, so we don't |
| 12641 | # have to do anything special. |
| 12642 | aix_use_runtimelinking=no |
| 12643 | exp_sym_flag='-Bexport' |
| 12644 | no_entry_flag= |
| 12645 | else |
| 12646 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12647 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 12648 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 12649 | # weak defined symbols like other global defined symbols, whereas |
| 12650 | # GNU nm marks them as "W". |
| 12651 | # While the 'weak' keyword is ignored in the Export File, we need |
| 12652 | # it in the Import File for the 'aix-soname' feature, so we have |
| 12653 | # to replace the "-B" option with "-P" for AIX nm. |
| 12654 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 12655 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 12656 | else |
| 12657 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 12658 | fi |
| 12659 | aix_use_runtimelinking=no |
| 12660 | |
| 12661 | # Test if we are trying to use run time linking or normal |
| 12662 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12663 | # have runtime linking enabled, and use it for executables. |
| 12664 | # For shared libraries, we enable/disable runtime linking |
| 12665 | # depending on the kind of the shared library created - |
| 12666 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 12667 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 12668 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 12669 | # lib.a static archive |
| 12670 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 12671 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 12672 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 12673 | # lib.a(lib.so.V) shared, rtl:no |
| 12674 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 12675 | # lib.a static archive |
| 12676 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12677 | for ld_flag in $LDFLAGS; do |
| 12678 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 12679 | aix_use_runtimelinking=yes |
| 12680 | break |
| 12681 | fi |
| 12682 | done |
| 12683 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 12684 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 12685 | # so we don't have lib.a shared libs to link our executables. |
| 12686 | # We have to force runtime linking in this case. |
| 12687 | aix_use_runtimelinking=yes |
| 12688 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 12689 | fi |
| 12690 | ;; |
| 12691 | esac |
| 12692 | |
| 12693 | exp_sym_flag='-bexport' |
| 12694 | no_entry_flag='-bnoentry' |
| 12695 | fi |
| 12696 | |
| 12697 | # When large executables or shared objects are built, AIX ld can |
| 12698 | # have problems creating the table of contents. If linking a library |
| 12699 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12700 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12701 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12702 | |
| 12703 | archive_cmds='' |
| 12704 | hardcode_direct=yes |
| 12705 | hardcode_direct_absolute=yes |
| 12706 | hardcode_libdir_separator=':' |
| 12707 | link_all_deplibs=yes |
| 12708 | file_list_spec='$wl-f,' |
| 12709 | case $with_aix_soname,$aix_use_runtimelinking in |
| 12710 | aix,*) ;; # traditional, no import file |
| 12711 | svr4,* | *,yes) # use import file |
| 12712 | # The Import File defines what to hardcode. |
| 12713 | hardcode_direct=no |
| 12714 | hardcode_direct_absolute=no |
| 12715 | ;; |
| 12716 | esac |
| 12717 | |
| 12718 | if test yes = "$GCC"; then |
| 12719 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12720 | # We only want to do this on AIX 4.2 and lower, the check |
| 12721 | # below for broken collect2 doesn't work under 4.3+ |
| 12722 | collect2name=`$CC -print-prog-name=collect2` |
| 12723 | if test -f "$collect2name" && |
| 12724 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12725 | then |
| 12726 | # We have reworked collect2 |
| 12727 | : |
| 12728 | else |
| 12729 | # We have old collect2 |
| 12730 | hardcode_direct=unsupported |
| 12731 | # It fails to find uninstalled libraries when the uninstalled |
| 12732 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12733 | # to unsupported forces relinking |
| 12734 | hardcode_minus_L=yes |
| 12735 | hardcode_libdir_flag_spec='-L$libdir' |
| 12736 | hardcode_libdir_separator= |
| 12737 | fi |
| 12738 | ;; |
| 12739 | esac |
| 12740 | shared_flag='-shared' |
| 12741 | if test yes = "$aix_use_runtimelinking"; then |
| 12742 | shared_flag="$shared_flag "'$wl-G' |
| 12743 | fi |
| 12744 | # Need to ensure runtime linking is disabled for the traditional |
| 12745 | # shared library, or the linker may eventually find shared libraries |
| 12746 | # /with/ Import File - we do not want to mix them. |
| 12747 | shared_flag_aix='-shared' |
| 12748 | shared_flag_svr4='-shared $wl-G' |
| 12749 | else |
| 12750 | # not using gcc |
| 12751 | if test ia64 = "$host_cpu"; then |
| 12752 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12753 | # chokes on -Wl,-G. The following line is correct: |
| 12754 | shared_flag='-G' |
| 12755 | else |
| 12756 | if test yes = "$aix_use_runtimelinking"; then |
| 12757 | shared_flag='$wl-G' |
| 12758 | else |
| 12759 | shared_flag='$wl-bM:SRE' |
| 12760 | fi |
| 12761 | shared_flag_aix='$wl-bM:SRE' |
| 12762 | shared_flag_svr4='$wl-G' |
| 12763 | fi |
| 12764 | fi |
| 12765 | |
| 12766 | export_dynamic_flag_spec='$wl-bexpall' |
| 12767 | # It seems that -bexpall does not export symbols beginning with |
| 12768 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12769 | always_export_symbols=yes |
| 12770 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 12771 | # Warning - without using the other runtime loading flags (-brtl), |
| 12772 | # -berok will link without error, but may produce a broken library. |
| 12773 | allow_undefined_flag='-berok' |
| 12774 | # Determine the default libpath from the value encoded in an |
| 12775 | # empty executable. |
| 12776 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 12777 | aix_libpath=$lt_cv_aix_libpath |
| 12778 | else |
| 12779 | if test ${lt_cv_aix_libpath_+y} |
| 12780 | then : |
| 12781 | printf %s "(cached) " >&6 |
| 12782 | else case e in #( |
| 12783 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12784 | /* end confdefs.h. */ |
| 12785 | |
| 12786 | int |
| 12787 | main (void) |
| 12788 | { |
| 12789 | |
| 12790 | ; |
| 12791 | return 0; |
| 12792 | } |
| 12793 | _ACEOF |
| 12794 | if ac_fn_c_try_link "$LINENO" |
| 12795 | then : |
| 12796 | |
| 12797 | lt_aix_libpath_sed=' |
| 12798 | /Import File Strings/,/^$/ { |
| 12799 | /^0/ { |
| 12800 | s/^0 *\([^ ]*\) *$/\1/ |
| 12801 | p |
| 12802 | } |
| 12803 | }' |
| 12804 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12805 | # Check for a 64-bit object if we didn't find anything. |
| 12806 | if test -z "$lt_cv_aix_libpath_"; then |
| 12807 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12808 | fi |
| 12809 | fi |
| 12810 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12811 | conftest$ac_exeext conftest.$ac_ext |
| 12812 | if test -z "$lt_cv_aix_libpath_"; then |
| 12813 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 12814 | fi |
| 12815 | ;; |
| 12816 | esac |
| 12817 | fi |
| 12818 | |
| 12819 | aix_libpath=$lt_cv_aix_libpath_ |
| 12820 | fi |
| 12821 | |
| 12822 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 12823 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 12824 | else |
| 12825 | if test ia64 = "$host_cpu"; then |
| 12826 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 12827 | allow_undefined_flag="-z nodefs" |
| 12828 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 12829 | else |
| 12830 | # Determine the default libpath from the value encoded in an |
| 12831 | # empty executable. |
| 12832 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 12833 | aix_libpath=$lt_cv_aix_libpath |
| 12834 | else |
| 12835 | if test ${lt_cv_aix_libpath_+y} |
| 12836 | then : |
| 12837 | printf %s "(cached) " >&6 |
| 12838 | else case e in #( |
| 12839 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12840 | /* end confdefs.h. */ |
| 12841 | |
| 12842 | int |
| 12843 | main (void) |
| 12844 | { |
| 12845 | |
| 12846 | ; |
| 12847 | return 0; |
| 12848 | } |
| 12849 | _ACEOF |
| 12850 | if ac_fn_c_try_link "$LINENO" |
| 12851 | then : |
| 12852 | |
| 12853 | lt_aix_libpath_sed=' |
| 12854 | /Import File Strings/,/^$/ { |
| 12855 | /^0/ { |
| 12856 | s/^0 *\([^ ]*\) *$/\1/ |
| 12857 | p |
| 12858 | } |
| 12859 | }' |
| 12860 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12861 | # Check for a 64-bit object if we didn't find anything. |
| 12862 | if test -z "$lt_cv_aix_libpath_"; then |
| 12863 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12864 | fi |
| 12865 | fi |
| 12866 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12867 | conftest$ac_exeext conftest.$ac_ext |
| 12868 | if test -z "$lt_cv_aix_libpath_"; then |
| 12869 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 12870 | fi |
| 12871 | ;; |
| 12872 | esac |
| 12873 | fi |
| 12874 | |
| 12875 | aix_libpath=$lt_cv_aix_libpath_ |
| 12876 | fi |
| 12877 | |
| 12878 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 12879 | # Warning - without using the other run time loading flags, |
| 12880 | # -berok will link without error, but may produce a broken library. |
| 12881 | no_undefined_flag=' $wl-bernotok' |
| 12882 | allow_undefined_flag=' $wl-berok' |
| 12883 | if test yes = "$with_gnu_ld"; then |
| 12884 | # We only use this code for GNU lds that support --whole-archive. |
| 12885 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 12886 | else |
| 12887 | # Exported symbols can be pulled into shared objects from archives |
| 12888 | whole_archive_flag_spec='$convenience' |
| 12889 | fi |
| 12890 | archive_cmds_need_lc=yes |
| 12891 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 12892 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 12893 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 12894 | if test svr4 != "$with_aix_soname"; then |
| 12895 | # This is similar to how AIX traditionally builds its shared libraries. |
| 12896 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 12897 | fi |
| 12898 | if test aix != "$with_aix_soname"; then |
| 12899 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 12900 | else |
| 12901 | # used by -dlpreopen to get the symbols |
| 12902 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 12903 | fi |
| 12904 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 12905 | fi |
| 12906 | fi |
| 12907 | ;; |
| 12908 | |
| 12909 | amigaos*) |
| 12910 | case $host_cpu in |
| 12911 | powerpc) |
| 12912 | # see comment about AmigaOS4 .so support |
| 12913 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12914 | archive_expsym_cmds='' |
| 12915 | ;; |
| 12916 | m68k) |
| 12917 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 12918 | hardcode_libdir_flag_spec='-L$libdir' |
| 12919 | hardcode_minus_L=yes |
| 12920 | ;; |
| 12921 | esac |
| 12922 | ;; |
| 12923 | |
| 12924 | bsdi[45]*) |
| 12925 | export_dynamic_flag_spec=-rdynamic |
| 12926 | ;; |
| 12927 | |
| 12928 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 12929 | # When not using gcc, we currently assume that we are using |
| 12930 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 12931 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12932 | # no search path for DLLs. |
| 12933 | case $cc_basename in |
| 12934 | cl* | icl*) |
| 12935 | # Native MSVC or ICC |
| 12936 | hardcode_libdir_flag_spec=' ' |
| 12937 | allow_undefined_flag=unsupported |
| 12938 | always_export_symbols=yes |
| 12939 | file_list_spec='@' |
| 12940 | # Tell ltmain to make .lib files, not .a files. |
| 12941 | libext=lib |
| 12942 | # Tell ltmain to make .dll files, not .so files. |
| 12943 | shrext_cmds=.dll |
| 12944 | # FIXME: Setting linknames here is a bad hack. |
| 12945 | archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 12946 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 12947 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 12948 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 12949 | else |
| 12950 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 12951 | fi~ |
| 12952 | $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 12953 | linknames=' |
| 12954 | # The linker will not automatically build a static lib if we build a DLL. |
| 12955 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 12956 | enable_shared_with_static_runtimes=yes |
| 12957 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 12958 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 12959 | # Don't use ranlib |
| 12960 | old_postinstall_cmds='chmod 644 $oldlib' |
| 12961 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 12962 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 12963 | case $lt_outputfile in |
| 12964 | *.exe|*.EXE) ;; |
| 12965 | *) |
| 12966 | lt_outputfile=$lt_outputfile.exe |
| 12967 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 12968 | ;; |
| 12969 | esac~ |
| 12970 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 12971 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 12972 | $RM "$lt_outputfile.manifest"; |
| 12973 | fi' |
| 12974 | ;; |
| 12975 | *) |
| 12976 | # Assume MSVC and ICC wrapper |
| 12977 | hardcode_libdir_flag_spec=' ' |
| 12978 | allow_undefined_flag=unsupported |
| 12979 | # Tell ltmain to make .lib files, not .a files. |
| 12980 | libext=lib |
| 12981 | # Tell ltmain to make .dll files, not .so files. |
| 12982 | shrext_cmds=.dll |
| 12983 | # FIXME: Setting linknames here is a bad hack. |
| 12984 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 12985 | # The linker will automatically build a .lib file if we build a DLL. |
| 12986 | old_archive_from_new_cmds='true' |
| 12987 | # FIXME: Should let the user specify the lib program. |
| 12988 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 12989 | enable_shared_with_static_runtimes=yes |
| 12990 | ;; |
| 12991 | esac |
| 12992 | ;; |
| 12993 | |
| 12994 | darwin* | rhapsody*) |
| 12995 | |
| 12996 | |
| 12997 | archive_cmds_need_lc=no |
| 12998 | hardcode_direct=no |
| 12999 | hardcode_automatic=yes |
| 13000 | hardcode_shlibpath_var=unsupported |
| 13001 | if test yes = "$lt_cv_ld_force_load"; then |
| 13002 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 13003 | |
| 13004 | else |
| 13005 | whole_archive_flag_spec='' |
| 13006 | fi |
| 13007 | link_all_deplibs=yes |
| 13008 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 13009 | case $cc_basename in |
| 13010 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 13011 | *) _lt_dar_can_shared=$GCC ;; |
| 13012 | esac |
| 13013 | if test yes = "$_lt_dar_can_shared"; then |
| 13014 | output_verbose_link_cmd=func_echo_all |
| 13015 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 13016 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 13017 | archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
| 13018 | module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
| 13019 | |
| 13020 | else |
| 13021 | ld_shlibs=no |
| 13022 | fi |
| 13023 | |
| 13024 | ;; |
| 13025 | |
| 13026 | dgux*) |
| 13027 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13028 | hardcode_libdir_flag_spec='-L$libdir' |
| 13029 | hardcode_shlibpath_var=no |
| 13030 | ;; |
| 13031 | |
| 13032 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13033 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13034 | # does not break anything, and helps significantly (at the cost of a little |
| 13035 | # extra space). |
| 13036 | freebsd2.2*) |
| 13037 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13038 | hardcode_libdir_flag_spec='-R$libdir' |
| 13039 | hardcode_direct=yes |
| 13040 | hardcode_shlibpath_var=no |
| 13041 | ;; |
| 13042 | |
| 13043 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13044 | freebsd2.*) |
| 13045 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13046 | hardcode_direct=yes |
| 13047 | hardcode_minus_L=yes |
| 13048 | hardcode_shlibpath_var=no |
| 13049 | ;; |
| 13050 | |
| 13051 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13052 | freebsd* | dragonfly* | midnightbsd*) |
| 13053 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13054 | hardcode_libdir_flag_spec='-R$libdir' |
| 13055 | hardcode_direct=yes |
| 13056 | hardcode_shlibpath_var=no |
| 13057 | ;; |
| 13058 | |
| 13059 | hpux9*) |
| 13060 | if test yes = "$GCC"; then |
| 13061 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 13062 | else |
| 13063 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 13064 | fi |
| 13065 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 13066 | hardcode_libdir_separator=: |
| 13067 | hardcode_direct=yes |
| 13068 | |
| 13069 | # hardcode_minus_L: Not really in the search PATH, |
| 13070 | # but as the default location of the library. |
| 13071 | hardcode_minus_L=yes |
| 13072 | export_dynamic_flag_spec='$wl-E' |
| 13073 | ;; |
| 13074 | |
| 13075 | hpux10*) |
| 13076 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 13077 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13078 | else |
| 13079 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13080 | fi |
| 13081 | if test no = "$with_gnu_ld"; then |
| 13082 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 13083 | hardcode_libdir_separator=: |
| 13084 | hardcode_direct=yes |
| 13085 | hardcode_direct_absolute=yes |
| 13086 | export_dynamic_flag_spec='$wl-E' |
| 13087 | # hardcode_minus_L: Not really in the search PATH, |
| 13088 | # but as the default location of the library. |
| 13089 | hardcode_minus_L=yes |
| 13090 | fi |
| 13091 | ;; |
| 13092 | |
| 13093 | hpux11*) |
| 13094 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 13095 | case $host_cpu in |
| 13096 | hppa*64*) |
| 13097 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13098 | ;; |
| 13099 | ia64*) |
| 13100 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 13101 | ;; |
| 13102 | *) |
| 13103 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13104 | ;; |
| 13105 | esac |
| 13106 | else |
| 13107 | case $host_cpu in |
| 13108 | hppa*64*) |
| 13109 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13110 | ;; |
| 13111 | ia64*) |
| 13112 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 13113 | ;; |
| 13114 | *) |
| 13115 | |
| 13116 | # Older versions of the 11.00 compiler do not understand -b yet |
| 13117 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 13118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 13119 | printf %s "checking if $CC understands -b... " >&6; } |
| 13120 | if test ${lt_cv_prog_compiler__b+y} |
| 13121 | then : |
| 13122 | printf %s "(cached) " >&6 |
| 13123 | else case e in #( |
| 13124 | e) lt_cv_prog_compiler__b=no |
| 13125 | save_LDFLAGS=$LDFLAGS |
| 13126 | LDFLAGS="$LDFLAGS -b" |
| 13127 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13128 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13129 | # The linker can only warn and ignore the option if not recognized |
| 13130 | # So say no if there are warnings |
| 13131 | if test -s conftest.err; then |
| 13132 | # Append any errors to the config.log. |
| 13133 | cat conftest.err 1>&5 |
| 13134 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 13135 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13136 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 13137 | lt_cv_prog_compiler__b=yes |
| 13138 | fi |
| 13139 | else |
| 13140 | lt_cv_prog_compiler__b=yes |
| 13141 | fi |
| 13142 | fi |
| 13143 | $RM -r conftest* |
| 13144 | LDFLAGS=$save_LDFLAGS |
| 13145 | ;; |
| 13146 | esac |
| 13147 | fi |
| 13148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 13149 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } |
| 13150 | |
| 13151 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 13152 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13153 | else |
| 13154 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13155 | fi |
| 13156 | |
| 13157 | ;; |
| 13158 | esac |
| 13159 | fi |
| 13160 | if test no = "$with_gnu_ld"; then |
| 13161 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 13162 | hardcode_libdir_separator=: |
| 13163 | |
| 13164 | case $host_cpu in |
| 13165 | hppa*64*|ia64*) |
| 13166 | hardcode_direct=no |
| 13167 | hardcode_shlibpath_var=no |
| 13168 | ;; |
| 13169 | *) |
| 13170 | hardcode_direct=yes |
| 13171 | hardcode_direct_absolute=yes |
| 13172 | export_dynamic_flag_spec='$wl-E' |
| 13173 | |
| 13174 | # hardcode_minus_L: Not really in the search PATH, |
| 13175 | # but as the default location of the library. |
| 13176 | hardcode_minus_L=yes |
| 13177 | ;; |
| 13178 | esac |
| 13179 | fi |
| 13180 | ;; |
| 13181 | |
| 13182 | irix5* | irix6* | nonstopux*) |
| 13183 | if test yes = "$GCC"; then |
| 13184 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 13185 | # Try to use the -exported_symbol ld option, if it does not |
| 13186 | # work, assume that -exports_file does not work either and |
| 13187 | # implicitly export all symbols. |
| 13188 | # This should be the same for all languages, so no per-tag cache variable. |
| 13189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 13190 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 13191 | if test ${lt_cv_irix_exported_symbol+y} |
| 13192 | then : |
| 13193 | printf %s "(cached) " >&6 |
| 13194 | else case e in #( |
| 13195 | e) save_LDFLAGS=$LDFLAGS |
| 13196 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 13197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13198 | /* end confdefs.h. */ |
| 13199 | int foo (void) { return 0; } |
| 13200 | _ACEOF |
| 13201 | if ac_fn_c_try_link "$LINENO" |
| 13202 | then : |
| 13203 | lt_cv_irix_exported_symbol=yes |
| 13204 | else case e in #( |
| 13205 | e) lt_cv_irix_exported_symbol=no ;; |
| 13206 | esac |
| 13207 | fi |
| 13208 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13209 | conftest$ac_exeext conftest.$ac_ext |
| 13210 | LDFLAGS=$save_LDFLAGS ;; |
| 13211 | esac |
| 13212 | fi |
| 13213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 13214 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } |
| 13215 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 13216 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
| 13217 | fi |
| 13218 | else |
| 13219 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 13220 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
| 13221 | fi |
| 13222 | archive_cmds_need_lc='no' |
| 13223 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13224 | hardcode_libdir_separator=: |
| 13225 | inherit_rpath=yes |
| 13226 | link_all_deplibs=yes |
| 13227 | ;; |
| 13228 | |
| 13229 | linux*) |
| 13230 | case $cc_basename in |
| 13231 | tcc*) |
| 13232 | # Fabrice Bellard et al's Tiny C Compiler |
| 13233 | ld_shlibs=yes |
| 13234 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13235 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13236 | ;; |
| 13237 | esac |
| 13238 | ;; |
| 13239 | |
| 13240 | *-mlibc) |
| 13241 | ;; |
| 13242 | |
| 13243 | netbsd* | netbsdelf*-gnu) |
| 13244 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13245 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13246 | else |
| 13247 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13248 | fi |
| 13249 | hardcode_libdir_flag_spec='-R$libdir' |
| 13250 | hardcode_direct=yes |
| 13251 | hardcode_shlibpath_var=no |
| 13252 | ;; |
| 13253 | |
| 13254 | newsos6) |
| 13255 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13256 | hardcode_direct=yes |
| 13257 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13258 | hardcode_libdir_separator=: |
| 13259 | hardcode_shlibpath_var=no |
| 13260 | ;; |
| 13261 | |
| 13262 | *nto* | *qnx*) |
| 13263 | ;; |
| 13264 | |
| 13265 | openbsd*) |
| 13266 | if test -f /usr/libexec/ld.so; then |
| 13267 | hardcode_direct=yes |
| 13268 | hardcode_shlibpath_var=no |
| 13269 | hardcode_direct_absolute=yes |
| 13270 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 13271 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13272 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 13273 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 13274 | export_dynamic_flag_spec='$wl-E' |
| 13275 | else |
| 13276 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13277 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 13278 | fi |
| 13279 | else |
| 13280 | ld_shlibs=no |
| 13281 | fi |
| 13282 | ;; |
| 13283 | |
| 13284 | os2*) |
| 13285 | hardcode_libdir_flag_spec='-L$libdir' |
| 13286 | hardcode_minus_L=yes |
| 13287 | allow_undefined_flag=unsupported |
| 13288 | shrext_cmds=.dll |
| 13289 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 13290 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 13291 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 13292 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 13293 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 13294 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 13295 | emximp -o $lib $output_objdir/$libname.def' |
| 13296 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 13297 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 13298 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 13299 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 13300 | prefix_cmds="$SED"~ |
| 13301 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 13302 | prefix_cmds="$prefix_cmds -e 1d"; |
| 13303 | fi~ |
| 13304 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 13305 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 13306 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 13307 | emximp -o $lib $output_objdir/$libname.def' |
| 13308 | old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 13309 | enable_shared_with_static_runtimes=yes |
| 13310 | file_list_spec='@' |
| 13311 | ;; |
| 13312 | |
| 13313 | osf3*) |
| 13314 | if test yes = "$GCC"; then |
| 13315 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 13316 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 13317 | else |
| 13318 | allow_undefined_flag=' -expect_unresolved \*' |
| 13319 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 13320 | fi |
| 13321 | archive_cmds_need_lc='no' |
| 13322 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13323 | hardcode_libdir_separator=: |
| 13324 | ;; |
| 13325 | |
| 13326 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13327 | if test yes = "$GCC"; then |
| 13328 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 13329 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 13330 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13331 | else |
| 13332 | allow_undefined_flag=' -expect_unresolved \*' |
| 13333 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 13334 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 13335 | $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
| 13336 | |
| 13337 | # Both c and cxx compiler support -rpath directly |
| 13338 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 13339 | fi |
| 13340 | archive_cmds_need_lc='no' |
| 13341 | hardcode_libdir_separator=: |
| 13342 | ;; |
| 13343 | |
| 13344 | serenity*) |
| 13345 | ;; |
| 13346 | |
| 13347 | solaris*) |
| 13348 | no_undefined_flag=' -z defs' |
| 13349 | if test yes = "$GCC"; then |
| 13350 | wlarc='$wl' |
| 13351 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13352 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13353 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 13354 | else |
| 13355 | case `$CC -V 2>&1` in |
| 13356 | *"Compilers 5.0"*) |
| 13357 | wlarc='' |
| 13358 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13359 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13360 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 13361 | ;; |
| 13362 | *) |
| 13363 | wlarc='$wl' |
| 13364 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13365 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13366 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 13367 | ;; |
| 13368 | esac |
| 13369 | fi |
| 13370 | hardcode_libdir_flag_spec='-R$libdir' |
| 13371 | hardcode_shlibpath_var=no |
| 13372 | case $host_os in |
| 13373 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13374 | *) |
| 13375 | # The compiler driver will combine and reorder linker options, |
| 13376 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 13377 | # but is careful enough not to reorder. |
| 13378 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13379 | if test yes = "$GCC"; then |
| 13380 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 13381 | else |
| 13382 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 13383 | fi |
| 13384 | ;; |
| 13385 | esac |
| 13386 | link_all_deplibs=yes |
| 13387 | ;; |
| 13388 | |
| 13389 | sunos4*) |
| 13390 | if test sequent = "$host_vendor"; then |
| 13391 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13392 | # files that make .init and .fini sections work. |
| 13393 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13394 | else |
| 13395 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13396 | fi |
| 13397 | hardcode_libdir_flag_spec='-L$libdir' |
| 13398 | hardcode_direct=yes |
| 13399 | hardcode_minus_L=yes |
| 13400 | hardcode_shlibpath_var=no |
| 13401 | ;; |
| 13402 | |
| 13403 | sysv4) |
| 13404 | case $host_vendor in |
| 13405 | sni) |
| 13406 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13407 | hardcode_direct=yes # is this really true??? |
| 13408 | ;; |
| 13409 | siemens) |
| 13410 | ## LD is ld it makes a PLAMLIB |
| 13411 | ## CC just makes a GrossModule. |
| 13412 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13413 | reload_cmds='$CC -r -o $output$reload_objs' |
| 13414 | hardcode_direct=no |
| 13415 | ;; |
| 13416 | motorola) |
| 13417 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13418 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 13419 | ;; |
| 13420 | esac |
| 13421 | runpath_var='LD_RUN_PATH' |
| 13422 | hardcode_shlibpath_var=no |
| 13423 | ;; |
| 13424 | |
| 13425 | sysv4.3*) |
| 13426 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13427 | hardcode_shlibpath_var=no |
| 13428 | export_dynamic_flag_spec='-Bexport' |
| 13429 | ;; |
| 13430 | |
| 13431 | sysv4*MP*) |
| 13432 | if test -d /usr/nec; then |
| 13433 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13434 | hardcode_shlibpath_var=no |
| 13435 | runpath_var=LD_RUN_PATH |
| 13436 | hardcode_runpath_var=yes |
| 13437 | ld_shlibs=yes |
| 13438 | fi |
| 13439 | ;; |
| 13440 | |
| 13441 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13442 | no_undefined_flag='$wl-z,text' |
| 13443 | archive_cmds_need_lc=no |
| 13444 | hardcode_shlibpath_var=no |
| 13445 | runpath_var='LD_RUN_PATH' |
| 13446 | |
| 13447 | if test yes = "$GCC"; then |
| 13448 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13449 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13450 | else |
| 13451 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13452 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13453 | fi |
| 13454 | ;; |
| 13455 | |
| 13456 | sysv5* | sco3.2v5* | sco5v6*) |
| 13457 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 13458 | # link with -lc, and that would cause any symbols used from libc to |
| 13459 | # always be unresolved, which means just about no library would |
| 13460 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13461 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13462 | # as -z defs. |
| 13463 | no_undefined_flag='$wl-z,text' |
| 13464 | allow_undefined_flag='$wl-z,nodefs' |
| 13465 | archive_cmds_need_lc=no |
| 13466 | hardcode_shlibpath_var=no |
| 13467 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 13468 | hardcode_libdir_separator=':' |
| 13469 | link_all_deplibs=yes |
| 13470 | export_dynamic_flag_spec='$wl-Bexport' |
| 13471 | runpath_var='LD_RUN_PATH' |
| 13472 | |
| 13473 | if test yes = "$GCC"; then |
| 13474 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13475 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13476 | else |
| 13477 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13478 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13479 | fi |
| 13480 | ;; |
| 13481 | |
| 13482 | uts4*) |
| 13483 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13484 | hardcode_libdir_flag_spec='-L$libdir' |
| 13485 | hardcode_shlibpath_var=no |
| 13486 | ;; |
| 13487 | |
| 13488 | *) |
| 13489 | ld_shlibs=no |
| 13490 | ;; |
| 13491 | esac |
| 13492 | |
| 13493 | if test sni = "$host_vendor"; then |
| 13494 | case $host in |
| 13495 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13496 | export_dynamic_flag_spec='$wl-Blargedynsym' |
| 13497 | ;; |
| 13498 | esac |
| 13499 | fi |
| 13500 | fi |
| 13501 | |
| 13502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 13503 | printf "%s\n" "$ld_shlibs" >&6; } |
| 13504 | test no = "$ld_shlibs" && can_build_shared=no |
| 13505 | |
| 13506 | with_gnu_ld=$with_gnu_ld |
| 13507 | |
| 13508 | |
| 13509 | |
| 13510 | |
| 13511 | |
| 13512 | |
| 13513 | |
| 13514 | |
| 13515 | |
| 13516 | |
| 13517 | |
| 13518 | |
| 13519 | |
| 13520 | |
| 13521 | |
| 13522 | # |
| 13523 | # Do we need to explicitly link libc? |
| 13524 | # |
| 13525 | case "x$archive_cmds_need_lc" in |
| 13526 | x|xyes) |
| 13527 | # Assume -lc should be added |
| 13528 | archive_cmds_need_lc=yes |
| 13529 | |
| 13530 | if test yes,yes = "$GCC,$enable_shared"; then |
| 13531 | case $archive_cmds in |
| 13532 | *'~'*) |
| 13533 | # FIXME: we may have to deal with multi-command sequences. |
| 13534 | ;; |
| 13535 | '$CC '*) |
| 13536 | # Test whether the compiler implicitly links with -lc since on some |
| 13537 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13538 | # to ld, don't add -lc before -lgcc. |
| 13539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 13540 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 13541 | if test ${lt_cv_archive_cmds_need_lc+y} |
| 13542 | then : |
| 13543 | printf %s "(cached) " >&6 |
| 13544 | else case e in #( |
| 13545 | e) $RM conftest* |
| 13546 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13547 | |
| 13548 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 13549 | (eval $ac_compile) 2>&5 |
| 13550 | ac_status=$? |
| 13551 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13552 | test $ac_status = 0; } 2>conftest.err; then |
| 13553 | soname=conftest |
| 13554 | lib=conftest |
| 13555 | libobjs=conftest.$ac_objext |
| 13556 | deplibs= |
| 13557 | wl=$lt_prog_compiler_wl |
| 13558 | pic_flag=$lt_prog_compiler_pic |
| 13559 | compiler_flags=-v |
| 13560 | linker_flags=-v |
| 13561 | verstring= |
| 13562 | output_objdir=. |
| 13563 | libname=conftest |
| 13564 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13565 | allow_undefined_flag= |
| 13566 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13567 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13568 | ac_status=$? |
| 13569 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13570 | test $ac_status = 0; } |
| 13571 | then |
| 13572 | lt_cv_archive_cmds_need_lc=no |
| 13573 | else |
| 13574 | lt_cv_archive_cmds_need_lc=yes |
| 13575 | fi |
| 13576 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13577 | else |
| 13578 | cat conftest.err 1>&5 |
| 13579 | fi |
| 13580 | $RM conftest* |
| 13581 | ;; |
| 13582 | esac |
| 13583 | fi |
| 13584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 13585 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } |
| 13586 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 13587 | ;; |
| 13588 | esac |
| 13589 | fi |
| 13590 | ;; |
| 13591 | esac |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | |
| 13596 | |
| 13597 | |
| 13598 | |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
| 13606 | |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | |
| 13620 | |
| 13621 | |
| 13622 | |
| 13623 | |
| 13624 | |
| 13625 | |
| 13626 | |
| 13627 | |
| 13628 | |
| 13629 | |
| 13630 | |
| 13631 | |
| 13632 | |
| 13633 | |
| 13634 | |
| 13635 | |
| 13636 | |
| 13637 | |
| 13638 | |
| 13639 | |
| 13640 | |
| 13641 | |
| 13642 | |
| 13643 | |
| 13644 | |
| 13645 | |
| 13646 | |
| 13647 | |
| 13648 | |
| 13649 | |
| 13650 | |
| 13651 | |
| 13652 | |
| 13653 | |
| 13654 | |
| 13655 | |
| 13656 | |
| 13657 | |
| 13658 | |
| 13659 | |
| 13660 | |
| 13661 | |
| 13662 | |
| 13663 | |
| 13664 | |
| 13665 | |
| 13666 | |
| 13667 | |
| 13668 | |
| 13669 | |
| 13670 | |
| 13671 | |
| 13672 | |
| 13673 | |
| 13674 | |
| 13675 | |
| 13676 | |
| 13677 | |
| 13678 | |
| 13679 | |
| 13680 | |
| 13681 | |
| 13682 | |
| 13683 | |
| 13684 | |
| 13685 | |
| 13686 | |
| 13687 | |
| 13688 | |
| 13689 | |
| 13690 | |
| 13691 | |
| 13692 | |
| 13693 | |
| 13694 | |
| 13695 | |
| 13696 | |
| 13697 | |
| 13698 | |
| 13699 | |
| 13700 | |
| 13701 | |
| 13702 | |
| 13703 | |
| 13704 | |
| 13705 | |
| 13706 | |
| 13707 | |
| 13708 | |
| 13709 | |
| 13710 | |
| 13711 | |
| 13712 | |
| 13713 | |
| 13714 | |
| 13715 | |
| 13716 | |
| 13717 | |
| 13718 | |
| 13719 | |
| 13720 | |
| 13721 | |
| 13722 | |
| 13723 | |
| 13724 | |
| 13725 | |
| 13726 | |
| 13727 | |
| 13728 | |
| 13729 | |
| 13730 | |
| 13731 | |
| 13732 | |
| 13733 | |
| 13734 | |
| 13735 | |
| 13736 | |
| 13737 | |
| 13738 | |
| 13739 | |
| 13740 | |
| 13741 | |
| 13742 | |
| 13743 | |
| 13744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13745 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 13746 | |
| 13747 | if test yes = "$GCC"; then |
| 13748 | case $host_os in |
| 13749 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 13750 | *) lt_awk_arg='/^libraries:/' ;; |
| 13751 | esac |
| 13752 | case $host_os in |
| 13753 | mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 13754 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 13755 | esac |
| 13756 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 13757 | case $lt_search_path_spec in |
| 13758 | *\;*) |
| 13759 | # if the path contains ";" then we assume it to be the separator |
| 13760 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13761 | # assumed that no part of a normal pathname contains ";" but that should |
| 13762 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13763 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 13764 | ;; |
| 13765 | *) |
| 13766 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 13767 | ;; |
| 13768 | esac |
| 13769 | # Ok, now we have the path, separated by spaces, we can step through it |
| 13770 | # and add multilib dir if necessary... |
| 13771 | lt_tmp_lt_search_path_spec= |
| 13772 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 13773 | # ...but if some path component already ends with the multilib dir we assume |
| 13774 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 13775 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 13776 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 13777 | lt_multi_os_dir= |
| 13778 | ;; |
| 13779 | esac |
| 13780 | for lt_sys_path in $lt_search_path_spec; do |
| 13781 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 13782 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 13783 | elif test -n "$lt_multi_os_dir"; then |
| 13784 | test -d "$lt_sys_path" && \ |
| 13785 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 13786 | fi |
| 13787 | done |
| 13788 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 13789 | BEGIN {RS = " "; FS = "/|\n";} { |
| 13790 | lt_foo = ""; |
| 13791 | lt_count = 0; |
| 13792 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 13793 | if ($lt_i != "" && $lt_i != ".") { |
| 13794 | if ($lt_i == "..") { |
| 13795 | lt_count++; |
| 13796 | } else { |
| 13797 | if (lt_count == 0) { |
| 13798 | lt_foo = "/" $lt_i lt_foo; |
| 13799 | } else { |
| 13800 | lt_count--; |
| 13801 | } |
| 13802 | } |
| 13803 | } |
| 13804 | } |
| 13805 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 13806 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 13807 | }'` |
| 13808 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 13809 | # for these hosts. |
| 13810 | case $host_os in |
| 13811 | mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 13812 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 13813 | esac |
| 13814 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 13815 | else |
| 13816 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13817 | fi |
| 13818 | library_names_spec= |
| 13819 | libname_spec='lib$name' |
| 13820 | soname_spec= |
| 13821 | shrext_cmds=.so |
| 13822 | postinstall_cmds= |
| 13823 | postuninstall_cmds= |
| 13824 | finish_cmds= |
| 13825 | finish_eval= |
| 13826 | shlibpath_var= |
| 13827 | shlibpath_overrides_runpath=unknown |
| 13828 | version_type=none |
| 13829 | dynamic_linker="$host_os ld.so" |
| 13830 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13831 | need_lib_prefix=unknown |
| 13832 | hardcode_into_libs=no |
| 13833 | |
| 13834 | # when you set need_version to no, make sure it does not cause -set_version |
| 13835 | # flags to be left without arguments |
| 13836 | need_version=unknown |
| 13837 | |
| 13838 | |
| 13839 | |
| 13840 | case $host_os in |
| 13841 | aix3*) |
| 13842 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13843 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 13844 | shlibpath_var=LIBPATH |
| 13845 | |
| 13846 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13847 | soname_spec='$libname$release$shared_ext$major' |
| 13848 | ;; |
| 13849 | |
| 13850 | aix[4-9]*) |
| 13851 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13852 | need_lib_prefix=no |
| 13853 | need_version=no |
| 13854 | hardcode_into_libs=yes |
| 13855 | if test ia64 = "$host_cpu"; then |
| 13856 | # AIX 5 supports IA64 |
| 13857 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 13858 | shlibpath_var=LD_LIBRARY_PATH |
| 13859 | else |
| 13860 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13861 | # for dependence libraries. The import file would start with |
| 13862 | # the line '#! .'. This would cause the generated library to |
| 13863 | # depend on '.', always an invalid library. This was fixed in |
| 13864 | # development snapshots of GCC prior to 3.0. |
| 13865 | case $host_os in |
| 13866 | aix4 | aix4.[01] | aix4.[01].*) |
| 13867 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13868 | echo ' yes ' |
| 13869 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 13870 | : |
| 13871 | else |
| 13872 | can_build_shared=no |
| 13873 | fi |
| 13874 | ;; |
| 13875 | esac |
| 13876 | # Using Import Files as archive members, it is possible to support |
| 13877 | # filename-based versioning of shared library archives on AIX. While |
| 13878 | # this would work for both with and without runtime linking, it will |
| 13879 | # prevent static linking of such archives. So we do filename-based |
| 13880 | # shared library versioning with .so extension only, which is used |
| 13881 | # when both runtime linking and shared linking is enabled. |
| 13882 | # Unfortunately, runtime linking may impact performance, so we do |
| 13883 | # not want this to be the default eventually. Also, we use the |
| 13884 | # versioned .so libs for executables only if there is the -brtl |
| 13885 | # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. |
| 13886 | # To allow for filename-based versioning support, we need to create |
| 13887 | # libNAME.so.V as an archive file, containing: |
| 13888 | # *) an Import File, referring to the versioned filename of the |
| 13889 | # archive as well as the shared archive member, telling the |
| 13890 | # bitwidth (32 or 64) of that shared object, and providing the |
| 13891 | # list of exported symbols of that shared object, eventually |
| 13892 | # decorated with the 'weak' keyword |
| 13893 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 13894 | # it being seen by the linker. |
| 13895 | # At run time we better use the real file rather than another symlink, |
| 13896 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 13897 | |
| 13898 | case $with_aix_soname,$aix_use_runtimelinking in |
| 13899 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 13900 | # soname into executable. Probably we can add versioning support to |
| 13901 | # collect2, so additional links can be useful in future. |
| 13902 | aix,yes) # traditional libtool |
| 13903 | dynamic_linker='AIX unversionable lib.so' |
| 13904 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13905 | # instead of lib<name>.a to let people know that these are not |
| 13906 | # typical AIX shared libraries. |
| 13907 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13908 | ;; |
| 13909 | aix,no) # traditional AIX only |
| 13910 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 13911 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13912 | # and later when we are not doing run time linking. |
| 13913 | library_names_spec='$libname$release.a $libname.a' |
| 13914 | soname_spec='$libname$release$shared_ext$major' |
| 13915 | ;; |
| 13916 | svr4,*) # full svr4 only |
| 13917 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 13918 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 13919 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 13920 | shlibpath_overrides_runpath=yes |
| 13921 | ;; |
| 13922 | *,yes) # both, prefer svr4 |
| 13923 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 13924 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 13925 | # unpreferred sharedlib libNAME.a needs extra handling |
| 13926 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 13927 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 13928 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 13929 | shlibpath_overrides_runpath=yes |
| 13930 | ;; |
| 13931 | *,no) # both, prefer aix |
| 13932 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 13933 | library_names_spec='$libname$release.a $libname.a' |
| 13934 | soname_spec='$libname$release$shared_ext$major' |
| 13935 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 13936 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 13937 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 13938 | ;; |
| 13939 | esac |
| 13940 | shlibpath_var=LIBPATH |
| 13941 | fi |
| 13942 | ;; |
| 13943 | |
| 13944 | amigaos*) |
| 13945 | case $host_cpu in |
| 13946 | powerpc) |
| 13947 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13948 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13949 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13950 | ;; |
| 13951 | m68k) |
| 13952 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13953 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13954 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 13955 | ;; |
| 13956 | esac |
| 13957 | ;; |
| 13958 | |
| 13959 | beos*) |
| 13960 | library_names_spec='$libname$shared_ext' |
| 13961 | dynamic_linker="$host_os ld.so" |
| 13962 | shlibpath_var=LIBRARY_PATH |
| 13963 | ;; |
| 13964 | |
| 13965 | bsdi[45]*) |
| 13966 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13967 | need_version=no |
| 13968 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13969 | soname_spec='$libname$release$shared_ext$major' |
| 13970 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13971 | shlibpath_var=LD_LIBRARY_PATH |
| 13972 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13973 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13974 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13975 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13976 | # libtool to hard-code these into programs |
| 13977 | ;; |
| 13978 | |
| 13979 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 13980 | version_type=windows |
| 13981 | shrext_cmds=.dll |
| 13982 | need_version=no |
| 13983 | need_lib_prefix=no |
| 13984 | |
| 13985 | case $GCC,$cc_basename in |
| 13986 | yes,*) |
| 13987 | # gcc |
| 13988 | library_names_spec='$libname.dll.a' |
| 13989 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13990 | # If user builds GCC with multilib enabled, |
| 13991 | # it should just install on $(libdir) |
| 13992 | # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. |
| 13993 | if test xyes = x"$multilib"; then |
| 13994 | postinstall_cmds='base_file=`basename \$file`~ |
| 13995 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 13996 | dldir=$destdir/`dirname \$dlpath`~ |
| 13997 | $install_prog $dir/$dlname $destdir/$dlname~ |
| 13998 | chmod a+x $destdir/$dlname~ |
| 13999 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14000 | eval '\''$striplib $destdir/$dlname'\'' || exit \$?; |
| 14001 | fi' |
| 14002 | else |
| 14003 | postinstall_cmds='base_file=`basename \$file`~ |
| 14004 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 14005 | dldir=$destdir/`dirname \$dlpath`~ |
| 14006 | test -d \$dldir || mkdir -p \$dldir~ |
| 14007 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14008 | chmod a+x \$dldir/$dlname~ |
| 14009 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14010 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14011 | fi' |
| 14012 | fi |
| 14013 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14014 | dlpath=$dir/\$dldll~ |
| 14015 | $RM \$dlpath' |
| 14016 | shlibpath_overrides_runpath=yes |
| 14017 | |
| 14018 | case $host_os in |
| 14019 | cygwin*) |
| 14020 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14021 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14022 | |
| 14023 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 14024 | ;; |
| 14025 | mingw* | windows* | cegcc*) |
| 14026 | # MinGW DLLs use traditional 'lib' prefix |
| 14027 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14028 | ;; |
| 14029 | pw32*) |
| 14030 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14031 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14032 | ;; |
| 14033 | esac |
| 14034 | dynamic_linker='Win32 ld.exe' |
| 14035 | ;; |
| 14036 | |
| 14037 | *,cl* | *,icl*) |
| 14038 | # Native MSVC or ICC |
| 14039 | libname_spec='$name' |
| 14040 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14041 | library_names_spec='$libname.dll.lib' |
| 14042 | |
| 14043 | case $build_os in |
| 14044 | mingw* | windows*) |
| 14045 | sys_lib_search_path_spec= |
| 14046 | lt_save_ifs=$IFS |
| 14047 | IFS=';' |
| 14048 | for lt_path in $LIB |
| 14049 | do |
| 14050 | IFS=$lt_save_ifs |
| 14051 | # Let DOS variable expansion print the short 8.3 style file name. |
| 14052 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 14053 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 14054 | done |
| 14055 | IFS=$lt_save_ifs |
| 14056 | # Convert to MSYS style. |
| 14057 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 14058 | ;; |
| 14059 | cygwin*) |
| 14060 | # Convert to unix form, then to dos form, then back to unix form |
| 14061 | # but this time dos style (no spaces!) so that the unix form looks |
| 14062 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 14063 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 14064 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 14065 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14066 | ;; |
| 14067 | *) |
| 14068 | sys_lib_search_path_spec=$LIB |
| 14069 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 14070 | # It is most probably a Windows format PATH. |
| 14071 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14072 | else |
| 14073 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14074 | fi |
| 14075 | # FIXME: find the short name or the path components, as spaces are |
| 14076 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 14077 | ;; |
| 14078 | esac |
| 14079 | |
| 14080 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14081 | postinstall_cmds='base_file=`basename \$file`~ |
| 14082 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 14083 | dldir=$destdir/`dirname \$dlpath`~ |
| 14084 | test -d \$dldir || mkdir -p \$dldir~ |
| 14085 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 14086 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14087 | dlpath=$dir/\$dldll~ |
| 14088 | $RM \$dlpath' |
| 14089 | shlibpath_overrides_runpath=yes |
| 14090 | dynamic_linker='Win32 link.exe' |
| 14091 | ;; |
| 14092 | |
| 14093 | *) |
| 14094 | # Assume MSVC and ICC wrapper |
| 14095 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 14096 | dynamic_linker='Win32 ld.exe' |
| 14097 | ;; |
| 14098 | esac |
| 14099 | # FIXME: first we should search . and the directory the executable is in |
| 14100 | shlibpath_var=PATH |
| 14101 | ;; |
| 14102 | |
| 14103 | darwin* | rhapsody*) |
| 14104 | dynamic_linker="$host_os dyld" |
| 14105 | version_type=darwin |
| 14106 | need_lib_prefix=no |
| 14107 | need_version=no |
| 14108 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 14109 | soname_spec='$libname$release$major$shared_ext' |
| 14110 | shlibpath_overrides_runpath=yes |
| 14111 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14112 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 14113 | |
| 14114 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 14115 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14116 | ;; |
| 14117 | |
| 14118 | dgux*) |
| 14119 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14120 | need_lib_prefix=no |
| 14121 | need_version=no |
| 14122 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14123 | soname_spec='$libname$release$shared_ext$major' |
| 14124 | shlibpath_var=LD_LIBRARY_PATH |
| 14125 | ;; |
| 14126 | |
| 14127 | freebsd* | dragonfly* | midnightbsd*) |
| 14128 | # DragonFly does not have aout. When/if they implement a new |
| 14129 | # versioning mechanism, adjust this. |
| 14130 | if test -x /usr/bin/objformat; then |
| 14131 | objformat=`/usr/bin/objformat` |
| 14132 | else |
| 14133 | case $host_os in |
| 14134 | freebsd[23].*) objformat=aout ;; |
| 14135 | *) objformat=elf ;; |
| 14136 | esac |
| 14137 | fi |
| 14138 | version_type=freebsd-$objformat |
| 14139 | case $version_type in |
| 14140 | freebsd-elf*) |
| 14141 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14142 | soname_spec='$libname$release$shared_ext$major' |
| 14143 | need_version=no |
| 14144 | need_lib_prefix=no |
| 14145 | ;; |
| 14146 | freebsd-*) |
| 14147 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 14148 | need_version=yes |
| 14149 | ;; |
| 14150 | esac |
| 14151 | case $host_cpu in |
| 14152 | powerpc64) |
| 14153 | # On FreeBSD bi-arch platforms, a different variable is used for 32-bit |
| 14154 | # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. |
| 14155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14156 | /* end confdefs.h. */ |
| 14157 | int test_pointer_size[sizeof (void *) - 5]; |
| 14158 | |
| 14159 | _ACEOF |
| 14160 | if ac_fn_c_try_compile "$LINENO" |
| 14161 | then : |
| 14162 | shlibpath_var=LD_LIBRARY_PATH |
| 14163 | else case e in #( |
| 14164 | e) shlibpath_var=LD_32_LIBRARY_PATH ;; |
| 14165 | esac |
| 14166 | fi |
| 14167 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14168 | ;; |
| 14169 | *) |
| 14170 | shlibpath_var=LD_LIBRARY_PATH |
| 14171 | ;; |
| 14172 | esac |
| 14173 | case $host_os in |
| 14174 | freebsd2.*) |
| 14175 | shlibpath_overrides_runpath=yes |
| 14176 | ;; |
| 14177 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 14178 | shlibpath_overrides_runpath=yes |
| 14179 | hardcode_into_libs=yes |
| 14180 | ;; |
| 14181 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 14182 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 14183 | shlibpath_overrides_runpath=no |
| 14184 | hardcode_into_libs=yes |
| 14185 | ;; |
| 14186 | *) # from 4.6 on, and DragonFly |
| 14187 | shlibpath_overrides_runpath=yes |
| 14188 | hardcode_into_libs=yes |
| 14189 | ;; |
| 14190 | esac |
| 14191 | ;; |
| 14192 | |
| 14193 | haiku*) |
| 14194 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14195 | need_lib_prefix=no |
| 14196 | need_version=no |
| 14197 | dynamic_linker="$host_os runtime_loader" |
| 14198 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14199 | soname_spec='$libname$release$shared_ext$major' |
| 14200 | shlibpath_var=LIBRARY_PATH |
| 14201 | shlibpath_overrides_runpath=no |
| 14202 | sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' |
| 14203 | sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' |
| 14204 | hardcode_into_libs=no |
| 14205 | ;; |
| 14206 | |
| 14207 | hpux9* | hpux10* | hpux11*) |
| 14208 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14209 | # link against other versions. |
| 14210 | version_type=sunos |
| 14211 | need_lib_prefix=no |
| 14212 | need_version=no |
| 14213 | case $host_cpu in |
| 14214 | ia64*) |
| 14215 | shrext_cmds='.so' |
| 14216 | hardcode_into_libs=yes |
| 14217 | dynamic_linker="$host_os dld.so" |
| 14218 | shlibpath_var=LD_LIBRARY_PATH |
| 14219 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14220 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14221 | soname_spec='$libname$release$shared_ext$major' |
| 14222 | if test 32 = "$HPUX_IA64_MODE"; then |
| 14223 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14224 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 14225 | else |
| 14226 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14227 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 14228 | fi |
| 14229 | ;; |
| 14230 | hppa*64*) |
| 14231 | shrext_cmds='.sl' |
| 14232 | hardcode_into_libs=yes |
| 14233 | dynamic_linker="$host_os dld.sl" |
| 14234 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14235 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14236 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14237 | soname_spec='$libname$release$shared_ext$major' |
| 14238 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14239 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14240 | ;; |
| 14241 | *) |
| 14242 | shrext_cmds='.sl' |
| 14243 | dynamic_linker="$host_os dld.sl" |
| 14244 | shlibpath_var=SHLIB_PATH |
| 14245 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14246 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14247 | soname_spec='$libname$release$shared_ext$major' |
| 14248 | ;; |
| 14249 | esac |
| 14250 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 14251 | postinstall_cmds='chmod 555 $lib' |
| 14252 | # or fails outright, so override atomically: |
| 14253 | install_override_mode=555 |
| 14254 | ;; |
| 14255 | |
| 14256 | interix[3-9]*) |
| 14257 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14258 | need_lib_prefix=no |
| 14259 | need_version=no |
| 14260 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14261 | soname_spec='$libname$release$shared_ext$major' |
| 14262 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 14263 | shlibpath_var=LD_LIBRARY_PATH |
| 14264 | shlibpath_overrides_runpath=no |
| 14265 | hardcode_into_libs=yes |
| 14266 | ;; |
| 14267 | |
| 14268 | irix5* | irix6* | nonstopux*) |
| 14269 | case $host_os in |
| 14270 | nonstopux*) version_type=nonstopux ;; |
| 14271 | *) |
| 14272 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 14273 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14274 | else |
| 14275 | version_type=irix |
| 14276 | fi ;; |
| 14277 | esac |
| 14278 | need_lib_prefix=no |
| 14279 | need_version=no |
| 14280 | soname_spec='$libname$release$shared_ext$major' |
| 14281 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 14282 | case $host_os in |
| 14283 | irix5* | nonstopux*) |
| 14284 | libsuff= shlibsuff= |
| 14285 | ;; |
| 14286 | *) |
| 14287 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14288 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14289 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14290 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14291 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14292 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14293 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14294 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14295 | esac |
| 14296 | ;; |
| 14297 | esac |
| 14298 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14299 | shlibpath_overrides_runpath=no |
| 14300 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 14301 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 14302 | hardcode_into_libs=yes |
| 14303 | ;; |
| 14304 | |
| 14305 | # No shared lib support for Linux oldld, aout, or coff. |
| 14306 | linux*oldld* | linux*aout* | linux*coff*) |
| 14307 | dynamic_linker=no |
| 14308 | ;; |
| 14309 | |
| 14310 | linux*android*) |
| 14311 | version_type=none # Android doesn't support versioned libraries. |
| 14312 | need_lib_prefix=no |
| 14313 | need_version=no |
| 14314 | library_names_spec='$libname$release$shared_ext $libname$shared_ext' |
| 14315 | soname_spec='$libname$release$shared_ext' |
| 14316 | finish_cmds= |
| 14317 | shlibpath_var=LD_LIBRARY_PATH |
| 14318 | shlibpath_overrides_runpath=yes |
| 14319 | |
| 14320 | # This implies no fast_install, which is unacceptable. |
| 14321 | # Some rework will be needed to allow for fast_install |
| 14322 | # before this can be enabled. |
| 14323 | hardcode_into_libs=yes |
| 14324 | |
| 14325 | dynamic_linker='Android linker' |
| 14326 | # -rpath works at least for libraries that are not overridden by |
| 14327 | # libraries installed in system locations. |
| 14328 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 14329 | ;; |
| 14330 | |
| 14331 | # This must be glibc/ELF. |
| 14332 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 14333 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14334 | need_lib_prefix=no |
| 14335 | need_version=no |
| 14336 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14337 | soname_spec='$libname$release$shared_ext$major' |
| 14338 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14339 | shlibpath_var=LD_LIBRARY_PATH |
| 14340 | shlibpath_overrides_runpath=no |
| 14341 | |
| 14342 | # Some binutils ld are patched to set DT_RUNPATH |
| 14343 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 14344 | then : |
| 14345 | printf %s "(cached) " >&6 |
| 14346 | else case e in #( |
| 14347 | e) lt_cv_shlibpath_overrides_runpath=no |
| 14348 | save_LDFLAGS=$LDFLAGS |
| 14349 | save_libdir=$libdir |
| 14350 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 14351 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 14352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14353 | /* end confdefs.h. */ |
| 14354 | |
| 14355 | int |
| 14356 | main (void) |
| 14357 | { |
| 14358 | |
| 14359 | ; |
| 14360 | return 0; |
| 14361 | } |
| 14362 | _ACEOF |
| 14363 | if ac_fn_c_try_link "$LINENO" |
| 14364 | then : |
| 14365 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 14366 | then : |
| 14367 | lt_cv_shlibpath_overrides_runpath=yes |
| 14368 | fi |
| 14369 | fi |
| 14370 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14371 | conftest$ac_exeext conftest.$ac_ext |
| 14372 | LDFLAGS=$save_LDFLAGS |
| 14373 | libdir=$save_libdir |
| 14374 | ;; |
| 14375 | esac |
| 14376 | fi |
| 14377 | |
| 14378 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 14379 | |
| 14380 | # This implies no fast_install, which is unacceptable. |
| 14381 | # Some rework will be needed to allow for fast_install |
| 14382 | # before this can be enabled. |
| 14383 | hardcode_into_libs=yes |
| 14384 | |
| 14385 | # Ideally, we could use ldconfig to report *all* directories which are |
| 14386 | # searched for libraries, however this is still not possible. Aside from not |
| 14387 | # being certain /sbin/ldconfig is available, command |
| 14388 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 14389 | # even though it is searched at run-time. Try to do the best guess by |
| 14390 | # appending ld.so.conf contents (and includes) to the search path. |
| 14391 | if test -f /etc/ld.so.conf; then |
| 14392 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 14393 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14394 | fi |
| 14395 | |
| 14396 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14397 | # powerpc, because MkLinux only supported shared libraries with the |
| 14398 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14399 | # most powerpc-linux boxes support dynamic linking these days and |
| 14400 | # people can always --disable-shared, the test was removed, and we |
| 14401 | # assume the GNU/Linux dynamic linker is in use. |
| 14402 | dynamic_linker='GNU/Linux ld.so' |
| 14403 | ;; |
| 14404 | |
| 14405 | netbsdelf*-gnu) |
| 14406 | version_type=linux |
| 14407 | need_lib_prefix=no |
| 14408 | need_version=no |
| 14409 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14410 | soname_spec='$libname$release$shared_ext$major' |
| 14411 | shlibpath_var=LD_LIBRARY_PATH |
| 14412 | shlibpath_overrides_runpath=no |
| 14413 | hardcode_into_libs=yes |
| 14414 | dynamic_linker='NetBSD ld.elf_so' |
| 14415 | ;; |
| 14416 | |
| 14417 | netbsd*) |
| 14418 | version_type=sunos |
| 14419 | need_lib_prefix=no |
| 14420 | need_version=no |
| 14421 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14422 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 14423 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14424 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14425 | else |
| 14426 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14427 | soname_spec='$libname$release$shared_ext$major' |
| 14428 | dynamic_linker='NetBSD ld.elf_so' |
| 14429 | fi |
| 14430 | shlibpath_var=LD_LIBRARY_PATH |
| 14431 | shlibpath_overrides_runpath=yes |
| 14432 | hardcode_into_libs=yes |
| 14433 | ;; |
| 14434 | |
| 14435 | *-mlibc) |
| 14436 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14437 | need_lib_prefix=no |
| 14438 | need_version=no |
| 14439 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14440 | soname_spec='$libname$release$shared_ext$major' |
| 14441 | dynamic_linker='mlibc ld.so' |
| 14442 | shlibpath_var=LD_LIBRARY_PATH |
| 14443 | shlibpath_overrides_runpath=no |
| 14444 | hardcode_into_libs=yes |
| 14445 | ;; |
| 14446 | |
| 14447 | newsos6) |
| 14448 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14449 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14450 | shlibpath_var=LD_LIBRARY_PATH |
| 14451 | shlibpath_overrides_runpath=yes |
| 14452 | ;; |
| 14453 | |
| 14454 | *nto* | *qnx*) |
| 14455 | version_type=qnx |
| 14456 | need_lib_prefix=no |
| 14457 | need_version=no |
| 14458 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14459 | soname_spec='$libname$release$shared_ext$major' |
| 14460 | shlibpath_var=LD_LIBRARY_PATH |
| 14461 | shlibpath_overrides_runpath=no |
| 14462 | hardcode_into_libs=yes |
| 14463 | dynamic_linker='ldqnx.so' |
| 14464 | ;; |
| 14465 | |
| 14466 | openbsd*) |
| 14467 | version_type=sunos |
| 14468 | sys_lib_dlsearch_path_spec=/usr/lib |
| 14469 | need_lib_prefix=no |
| 14470 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 14471 | need_version=no |
| 14472 | else |
| 14473 | need_version=yes |
| 14474 | fi |
| 14475 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 14476 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14477 | shlibpath_var=LD_LIBRARY_PATH |
| 14478 | shlibpath_overrides_runpath=yes |
| 14479 | ;; |
| 14480 | |
| 14481 | os2*) |
| 14482 | libname_spec='$name' |
| 14483 | version_type=windows |
| 14484 | shrext_cmds=.dll |
| 14485 | need_version=no |
| 14486 | need_lib_prefix=no |
| 14487 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 14488 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 14489 | v=$($ECHO $release$versuffix | tr -d .-); |
| 14490 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 14491 | $ECHO $n$v`$shared_ext' |
| 14492 | library_names_spec='${libname}_dll.$libext' |
| 14493 | dynamic_linker='OS/2 ld.exe' |
| 14494 | shlibpath_var=BEGINLIBPATH |
| 14495 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14496 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14497 | postinstall_cmds='base_file=`basename \$file`~ |
| 14498 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 14499 | dldir=$destdir/`dirname \$dlpath`~ |
| 14500 | test -d \$dldir || mkdir -p \$dldir~ |
| 14501 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14502 | chmod a+x \$dldir/$dlname~ |
| 14503 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14504 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14505 | fi' |
| 14506 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 14507 | dlpath=$dir/\$dldll~ |
| 14508 | $RM \$dlpath' |
| 14509 | ;; |
| 14510 | |
| 14511 | osf3* | osf4* | osf5*) |
| 14512 | version_type=osf |
| 14513 | need_lib_prefix=no |
| 14514 | need_version=no |
| 14515 | soname_spec='$libname$release$shared_ext$major' |
| 14516 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14517 | shlibpath_var=LD_LIBRARY_PATH |
| 14518 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14519 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14520 | ;; |
| 14521 | |
| 14522 | rdos*) |
| 14523 | dynamic_linker=no |
| 14524 | ;; |
| 14525 | |
| 14526 | serenity*) |
| 14527 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14528 | need_lib_prefix=no |
| 14529 | need_version=no |
| 14530 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14531 | soname_spec='$libname$release$shared_ext$major' |
| 14532 | shlibpath_var=LD_LIBRARY_PATH |
| 14533 | shlibpath_overrides_runpath=no |
| 14534 | dynamic_linker='SerenityOS LibELF' |
| 14535 | ;; |
| 14536 | |
| 14537 | solaris*) |
| 14538 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14539 | need_lib_prefix=no |
| 14540 | need_version=no |
| 14541 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14542 | soname_spec='$libname$release$shared_ext$major' |
| 14543 | shlibpath_var=LD_LIBRARY_PATH |
| 14544 | shlibpath_overrides_runpath=yes |
| 14545 | hardcode_into_libs=yes |
| 14546 | # ldd complains unless libraries are executable |
| 14547 | postinstall_cmds='chmod +x $lib' |
| 14548 | ;; |
| 14549 | |
| 14550 | sunos4*) |
| 14551 | version_type=sunos |
| 14552 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 14553 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14554 | shlibpath_var=LD_LIBRARY_PATH |
| 14555 | shlibpath_overrides_runpath=yes |
| 14556 | if test yes = "$with_gnu_ld"; then |
| 14557 | need_lib_prefix=no |
| 14558 | fi |
| 14559 | need_version=yes |
| 14560 | ;; |
| 14561 | |
| 14562 | sysv4 | sysv4.3*) |
| 14563 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14564 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14565 | soname_spec='$libname$release$shared_ext$major' |
| 14566 | shlibpath_var=LD_LIBRARY_PATH |
| 14567 | case $host_vendor in |
| 14568 | sni) |
| 14569 | shlibpath_overrides_runpath=no |
| 14570 | need_lib_prefix=no |
| 14571 | runpath_var=LD_RUN_PATH |
| 14572 | ;; |
| 14573 | siemens) |
| 14574 | need_lib_prefix=no |
| 14575 | ;; |
| 14576 | motorola) |
| 14577 | need_lib_prefix=no |
| 14578 | need_version=no |
| 14579 | shlibpath_overrides_runpath=no |
| 14580 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14581 | ;; |
| 14582 | esac |
| 14583 | ;; |
| 14584 | |
| 14585 | sysv4*MP*) |
| 14586 | if test -d /usr/nec; then |
| 14587 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14588 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 14589 | soname_spec='$libname$shared_ext.$major' |
| 14590 | shlibpath_var=LD_LIBRARY_PATH |
| 14591 | fi |
| 14592 | ;; |
| 14593 | |
| 14594 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14595 | version_type=sco |
| 14596 | need_lib_prefix=no |
| 14597 | need_version=no |
| 14598 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 14599 | soname_spec='$libname$release$shared_ext$major' |
| 14600 | shlibpath_var=LD_LIBRARY_PATH |
| 14601 | shlibpath_overrides_runpath=yes |
| 14602 | hardcode_into_libs=yes |
| 14603 | if test yes = "$with_gnu_ld"; then |
| 14604 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 14605 | else |
| 14606 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 14607 | case $host_os in |
| 14608 | sco3.2v5*) |
| 14609 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14610 | ;; |
| 14611 | esac |
| 14612 | fi |
| 14613 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14614 | ;; |
| 14615 | |
| 14616 | tpf*) |
| 14617 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14618 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14619 | need_lib_prefix=no |
| 14620 | need_version=no |
| 14621 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14622 | shlibpath_var=LD_LIBRARY_PATH |
| 14623 | shlibpath_overrides_runpath=no |
| 14624 | hardcode_into_libs=yes |
| 14625 | ;; |
| 14626 | |
| 14627 | uts4*) |
| 14628 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14629 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14630 | soname_spec='$libname$release$shared_ext$major' |
| 14631 | shlibpath_var=LD_LIBRARY_PATH |
| 14632 | ;; |
| 14633 | |
| 14634 | emscripten*) |
| 14635 | version_type=none |
| 14636 | need_lib_prefix=no |
| 14637 | need_version=no |
| 14638 | library_names_spec='$libname$release$shared_ext' |
| 14639 | soname_spec='$libname$release$shared_ext' |
| 14640 | finish_cmds= |
| 14641 | dynamic_linker="Emscripten linker" |
| 14642 | lt_prog_compiler_wl= |
| 14643 | lt_prog_compiler_pic= |
| 14644 | lt_prog_compiler_static= |
| 14645 | |
| 14646 | |
| 14647 | if test yes = "$GCC"; then |
| 14648 | lt_prog_compiler_wl='-Wl,' |
| 14649 | lt_prog_compiler_static='-static' |
| 14650 | |
| 14651 | case $host_os in |
| 14652 | aix*) |
| 14653 | # All AIX code is PIC. |
| 14654 | if test ia64 = "$host_cpu"; then |
| 14655 | # AIX 5 now supports IA64 processor |
| 14656 | lt_prog_compiler_static='-Bstatic' |
| 14657 | fi |
| 14658 | lt_prog_compiler_pic='-fPIC' |
| 14659 | ;; |
| 14660 | |
| 14661 | amigaos*) |
| 14662 | case $host_cpu in |
| 14663 | powerpc) |
| 14664 | # see comment about AmigaOS4 .so support |
| 14665 | lt_prog_compiler_pic='-fPIC' |
| 14666 | ;; |
| 14667 | m68k) |
| 14668 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14669 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 14670 | # like '-m68040'. |
| 14671 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 14672 | ;; |
| 14673 | esac |
| 14674 | ;; |
| 14675 | |
| 14676 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14677 | # PIC is the default for these OSes. |
| 14678 | ;; |
| 14679 | |
| 14680 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 14681 | # This hack is so that the source file can tell whether it is being |
| 14682 | # built for inclusion in a dll (and should export symbols for example). |
| 14683 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14684 | # (--disable-auto-import) libraries |
| 14685 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14686 | case $host_os in |
| 14687 | os2*) |
| 14688 | lt_prog_compiler_static='$wl-static' |
| 14689 | ;; |
| 14690 | esac |
| 14691 | ;; |
| 14692 | |
| 14693 | darwin* | rhapsody*) |
| 14694 | # PIC is the default on this platform |
| 14695 | # Common symbols not allowed in MH_DYLIB files |
| 14696 | lt_prog_compiler_pic='-fno-common' |
| 14697 | ;; |
| 14698 | |
| 14699 | haiku*) |
| 14700 | # PIC is the default for Haiku. |
| 14701 | # The "-static" flag exists, but is broken. |
| 14702 | lt_prog_compiler_static= |
| 14703 | ;; |
| 14704 | |
| 14705 | hpux*) |
| 14706 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14707 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14708 | # sets the default TLS model and affects inlining. |
| 14709 | case $host_cpu in |
| 14710 | hppa*64*) |
| 14711 | # +Z the default |
| 14712 | ;; |
| 14713 | *) |
| 14714 | lt_prog_compiler_pic='-fPIC' |
| 14715 | ;; |
| 14716 | esac |
| 14717 | ;; |
| 14718 | |
| 14719 | interix[3-9]*) |
| 14720 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14721 | # Instead, we relocate shared libraries at runtime. |
| 14722 | ;; |
| 14723 | |
| 14724 | msdosdjgpp*) |
| 14725 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14726 | # on systems that don't support them. |
| 14727 | lt_prog_compiler_can_build_shared=no |
| 14728 | enable_shared=no |
| 14729 | ;; |
| 14730 | |
| 14731 | *nto* | *qnx*) |
| 14732 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14733 | # it will coredump. |
| 14734 | lt_prog_compiler_pic='-fPIC -shared' |
| 14735 | ;; |
| 14736 | |
| 14737 | sysv4*MP*) |
| 14738 | if test -d /usr/nec; then |
| 14739 | lt_prog_compiler_pic=-Kconform_pic |
| 14740 | fi |
| 14741 | ;; |
| 14742 | |
| 14743 | *) |
| 14744 | lt_prog_compiler_pic='-fPIC' |
| 14745 | ;; |
| 14746 | esac |
| 14747 | |
| 14748 | case $cc_basename in |
| 14749 | nvcc*) # Cuda Compiler Driver 2.2 |
| 14750 | lt_prog_compiler_wl='-Xlinker ' |
| 14751 | if test -n "$lt_prog_compiler_pic"; then |
| 14752 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 14753 | fi |
| 14754 | ;; |
| 14755 | esac |
| 14756 | else |
| 14757 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14758 | case $host_os in |
| 14759 | aix*) |
| 14760 | lt_prog_compiler_wl='-Wl,' |
| 14761 | if test ia64 = "$host_cpu"; then |
| 14762 | # AIX 5 now supports IA64 processor |
| 14763 | lt_prog_compiler_static='-Bstatic' |
| 14764 | else |
| 14765 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 14766 | fi |
| 14767 | ;; |
| 14768 | |
| 14769 | darwin* | rhapsody*) |
| 14770 | # PIC is the default on this platform |
| 14771 | # Common symbols not allowed in MH_DYLIB files |
| 14772 | lt_prog_compiler_pic='-fno-common' |
| 14773 | case $cc_basename in |
| 14774 | nagfor*) |
| 14775 | # NAG Fortran compiler |
| 14776 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14777 | lt_prog_compiler_pic='-PIC' |
| 14778 | lt_prog_compiler_static='-Bstatic' |
| 14779 | ;; |
| 14780 | esac |
| 14781 | ;; |
| 14782 | |
| 14783 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 14784 | # This hack is so that the source file can tell whether it is being |
| 14785 | # built for inclusion in a dll (and should export symbols for example). |
| 14786 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14787 | case $host_os in |
| 14788 | os2*) |
| 14789 | lt_prog_compiler_static='$wl-static' |
| 14790 | ;; |
| 14791 | esac |
| 14792 | ;; |
| 14793 | |
| 14794 | hpux9* | hpux10* | hpux11*) |
| 14795 | lt_prog_compiler_wl='-Wl,' |
| 14796 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14797 | # not for PA HP-UX. |
| 14798 | case $host_cpu in |
| 14799 | hppa*64*|ia64*) |
| 14800 | # +Z the default |
| 14801 | ;; |
| 14802 | *) |
| 14803 | lt_prog_compiler_pic='+Z' |
| 14804 | ;; |
| 14805 | esac |
| 14806 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14807 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 14808 | ;; |
| 14809 | |
| 14810 | irix5* | irix6* | nonstopux*) |
| 14811 | lt_prog_compiler_wl='-Wl,' |
| 14812 | # PIC (with -KPIC) is the default. |
| 14813 | lt_prog_compiler_static='-non_shared' |
| 14814 | ;; |
| 14815 | |
| 14816 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 14817 | case $cc_basename in |
| 14818 | # old Intel for x86_64, which still supported -KPIC. |
| 14819 | ecc*) |
| 14820 | lt_prog_compiler_wl='-Wl,' |
| 14821 | lt_prog_compiler_pic='-KPIC' |
| 14822 | lt_prog_compiler_static='-static' |
| 14823 | ;; |
| 14824 | *flang* | ftn | f18* | f95*) |
| 14825 | # Flang compiler. |
| 14826 | lt_prog_compiler_wl='-Wl,' |
| 14827 | lt_prog_compiler_pic='-fPIC' |
| 14828 | lt_prog_compiler_static='-static' |
| 14829 | ;; |
| 14830 | # icc used to be incompatible with GCC. |
| 14831 | # ICC 10 doesn't accept -KPIC any more. |
| 14832 | icc* | ifort*) |
| 14833 | lt_prog_compiler_wl='-Wl,' |
| 14834 | lt_prog_compiler_pic='-fPIC' |
| 14835 | lt_prog_compiler_static='-static' |
| 14836 | ;; |
| 14837 | # Lahey Fortran 8.1. |
| 14838 | lf95*) |
| 14839 | lt_prog_compiler_wl='-Wl,' |
| 14840 | lt_prog_compiler_pic='--shared' |
| 14841 | lt_prog_compiler_static='--static' |
| 14842 | ;; |
| 14843 | nagfor*) |
| 14844 | # NAG Fortran compiler |
| 14845 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14846 | lt_prog_compiler_pic='-PIC' |
| 14847 | lt_prog_compiler_static='-Bstatic' |
| 14848 | ;; |
| 14849 | tcc*) |
| 14850 | # Fabrice Bellard et al's Tiny C Compiler |
| 14851 | lt_prog_compiler_wl='-Wl,' |
| 14852 | lt_prog_compiler_pic='-fPIC' |
| 14853 | lt_prog_compiler_static='-static' |
| 14854 | ;; |
| 14855 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 14856 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14857 | # which looks to be a dead project) |
| 14858 | lt_prog_compiler_wl='-Wl,' |
| 14859 | lt_prog_compiler_pic='-fpic' |
| 14860 | lt_prog_compiler_static='-Bstatic' |
| 14861 | ;; |
| 14862 | ccc*) |
| 14863 | lt_prog_compiler_wl='-Wl,' |
| 14864 | # All Alpha code is PIC. |
| 14865 | lt_prog_compiler_static='-non_shared' |
| 14866 | ;; |
| 14867 | xl* | bgxl* | bgf* | mpixl*) |
| 14868 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 14869 | lt_prog_compiler_wl='-Wl,' |
| 14870 | lt_prog_compiler_pic='-qpic' |
| 14871 | lt_prog_compiler_static='-qstaticlink' |
| 14872 | ;; |
| 14873 | *) |
| 14874 | case `$CC -V 2>&1 | $SED 5q` in |
| 14875 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 14876 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 14877 | lt_prog_compiler_pic='-KPIC' |
| 14878 | lt_prog_compiler_static='-Bstatic' |
| 14879 | lt_prog_compiler_wl='' |
| 14880 | ;; |
| 14881 | *Sun\ F* | *Sun*Fortran*) |
| 14882 | lt_prog_compiler_pic='-KPIC' |
| 14883 | lt_prog_compiler_static='-Bstatic' |
| 14884 | lt_prog_compiler_wl='-Qoption ld ' |
| 14885 | ;; |
| 14886 | *Sun\ C*) |
| 14887 | # Sun C 5.9 |
| 14888 | lt_prog_compiler_pic='-KPIC' |
| 14889 | lt_prog_compiler_static='-Bstatic' |
| 14890 | lt_prog_compiler_wl='-Wl,' |
| 14891 | ;; |
| 14892 | *Intel*\ [CF]*Compiler*) |
| 14893 | lt_prog_compiler_wl='-Wl,' |
| 14894 | lt_prog_compiler_pic='-fPIC' |
| 14895 | lt_prog_compiler_static='-static' |
| 14896 | ;; |
| 14897 | *Portland\ Group*) |
| 14898 | lt_prog_compiler_wl='-Wl,' |
| 14899 | lt_prog_compiler_pic='-fpic' |
| 14900 | lt_prog_compiler_static='-Bstatic' |
| 14901 | ;; |
| 14902 | esac |
| 14903 | ;; |
| 14904 | esac |
| 14905 | ;; |
| 14906 | |
| 14907 | newsos6) |
| 14908 | lt_prog_compiler_pic='-KPIC' |
| 14909 | lt_prog_compiler_static='-Bstatic' |
| 14910 | ;; |
| 14911 | |
| 14912 | *-mlibc) |
| 14913 | lt_prog_compiler_wl='-Wl,' |
| 14914 | lt_prog_compiler_pic='-fPIC' |
| 14915 | lt_prog_compiler_static='-static' |
| 14916 | ;; |
| 14917 | |
| 14918 | *nto* | *qnx*) |
| 14919 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14920 | # it will coredump. |
| 14921 | lt_prog_compiler_pic='-fPIC -shared' |
| 14922 | ;; |
| 14923 | |
| 14924 | osf3* | osf4* | osf5*) |
| 14925 | lt_prog_compiler_wl='-Wl,' |
| 14926 | # All OSF/1 code is PIC. |
| 14927 | lt_prog_compiler_static='-non_shared' |
| 14928 | ;; |
| 14929 | |
| 14930 | rdos*) |
| 14931 | lt_prog_compiler_static='-non_shared' |
| 14932 | ;; |
| 14933 | |
| 14934 | serenity*) |
| 14935 | ;; |
| 14936 | |
| 14937 | solaris*) |
| 14938 | lt_prog_compiler_pic='-KPIC' |
| 14939 | lt_prog_compiler_static='-Bstatic' |
| 14940 | case $cc_basename in |
| 14941 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 14942 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14943 | *) |
| 14944 | lt_prog_compiler_wl='-Wl,';; |
| 14945 | esac |
| 14946 | ;; |
| 14947 | |
| 14948 | sunos4*) |
| 14949 | lt_prog_compiler_wl='-Qoption ld ' |
| 14950 | lt_prog_compiler_pic='-PIC' |
| 14951 | lt_prog_compiler_static='-Bstatic' |
| 14952 | ;; |
| 14953 | |
| 14954 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 14955 | lt_prog_compiler_wl='-Wl,' |
| 14956 | lt_prog_compiler_pic='-KPIC' |
| 14957 | lt_prog_compiler_static='-Bstatic' |
| 14958 | ;; |
| 14959 | |
| 14960 | sysv4*MP*) |
| 14961 | if test -d /usr/nec; then |
| 14962 | lt_prog_compiler_pic='-Kconform_pic' |
| 14963 | lt_prog_compiler_static='-Bstatic' |
| 14964 | fi |
| 14965 | ;; |
| 14966 | |
| 14967 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14968 | lt_prog_compiler_wl='-Wl,' |
| 14969 | lt_prog_compiler_pic='-KPIC' |
| 14970 | lt_prog_compiler_static='-Bstatic' |
| 14971 | ;; |
| 14972 | |
| 14973 | unicos*) |
| 14974 | lt_prog_compiler_wl='-Wl,' |
| 14975 | lt_prog_compiler_can_build_shared=no |
| 14976 | ;; |
| 14977 | |
| 14978 | uts4*) |
| 14979 | lt_prog_compiler_pic='-pic' |
| 14980 | lt_prog_compiler_static='-Bstatic' |
| 14981 | ;; |
| 14982 | |
| 14983 | *) |
| 14984 | lt_prog_compiler_can_build_shared=no |
| 14985 | ;; |
| 14986 | esac |
| 14987 | fi |
| 14988 | |
| 14989 | case $host_os in |
| 14990 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 14991 | *djgpp*) |
| 14992 | lt_prog_compiler_pic= |
| 14993 | ;; |
| 14994 | *) |
| 14995 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14996 | ;; |
| 14997 | esac |
| 14998 | |
| 14999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 15000 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 15001 | if test ${lt_cv_prog_compiler_pic+y} |
| 15002 | then : |
| 15003 | printf %s "(cached) " >&6 |
| 15004 | else case e in #( |
| 15005 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; |
| 15006 | esac |
| 15007 | fi |
| 15008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 15009 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 15010 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 15011 | |
| 15012 | # |
| 15013 | # Check to make sure the PIC flag actually works. |
| 15014 | # |
| 15015 | if test -n "$lt_prog_compiler_pic"; then |
| 15016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 15017 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 15018 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 15019 | then : |
| 15020 | printf %s "(cached) " >&6 |
| 15021 | else case e in #( |
| 15022 | e) lt_cv_prog_compiler_pic_works=no |
| 15023 | ac_outfile=conftest.$ac_objext |
| 15024 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15025 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 15026 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15027 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15028 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15029 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15030 | # The option is referenced via a variable to avoid confusing sed. |
| 15031 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15032 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15033 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15034 | -e 's:$: $lt_compiler_flag:'` |
| 15035 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 15036 | (eval "$lt_compile" 2>conftest.err) |
| 15037 | ac_status=$? |
| 15038 | cat conftest.err >&5 |
| 15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15040 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15041 | # The compiler can only warn and ignore the option if not recognized |
| 15042 | # So say no if there are warnings other than the usual output. |
| 15043 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 15044 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15045 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 15046 | lt_cv_prog_compiler_pic_works=yes |
| 15047 | fi |
| 15048 | fi |
| 15049 | $RM conftest* |
| 15050 | ;; |
| 15051 | esac |
| 15052 | fi |
| 15053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 15054 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 15055 | |
| 15056 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 15057 | case $lt_prog_compiler_pic in |
| 15058 | "" | " "*) ;; |
| 15059 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 15060 | esac |
| 15061 | else |
| 15062 | lt_prog_compiler_pic= |
| 15063 | lt_prog_compiler_can_build_shared=no |
| 15064 | fi |
| 15065 | |
| 15066 | fi |
| 15067 | |
| 15068 | |
| 15069 | |
| 15070 | |
| 15071 | |
| 15072 | # |
| 15073 | # Check to make sure the static flag actually works. |
| 15074 | # |
| 15075 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15077 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 15078 | if test ${lt_cv_prog_compiler_static_works+y} |
| 15079 | then : |
| 15080 | printf %s "(cached) " >&6 |
| 15081 | else case e in #( |
| 15082 | e) lt_cv_prog_compiler_static_works=no |
| 15083 | save_LDFLAGS=$LDFLAGS |
| 15084 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15085 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15086 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15087 | # The linker can only warn and ignore the option if not recognized |
| 15088 | # So say no if there are warnings |
| 15089 | if test -s conftest.err; then |
| 15090 | # Append any errors to the config.log. |
| 15091 | cat conftest.err 1>&5 |
| 15092 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 15093 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15094 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15095 | lt_cv_prog_compiler_static_works=yes |
| 15096 | fi |
| 15097 | else |
| 15098 | lt_cv_prog_compiler_static_works=yes |
| 15099 | fi |
| 15100 | fi |
| 15101 | $RM -r conftest* |
| 15102 | LDFLAGS=$save_LDFLAGS |
| 15103 | ;; |
| 15104 | esac |
| 15105 | fi |
| 15106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 15107 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 15108 | |
| 15109 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 15110 | : |
| 15111 | else |
| 15112 | lt_prog_compiler_static= |
| 15113 | fi |
| 15114 | |
| 15115 | |
| 15116 | |
| 15117 | ='-fPIC' |
| 15118 | archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' |
| 15119 | archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' |
| 15120 | archive_cmds_need_lc=no |
| 15121 | no_undefined_flag= |
| 15122 | ;; |
| 15123 | |
| 15124 | *) |
| 15125 | dynamic_linker=no |
| 15126 | ;; |
| 15127 | esac |
| 15128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15129 | printf "%s\n" "$dynamic_linker" >&6; } |
| 15130 | test no = "$dynamic_linker" && can_build_shared=no |
| 15131 | |
| 15132 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15133 | if test yes = "$GCC"; then |
| 15134 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15135 | fi |
| 15136 | |
| 15137 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 15138 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 15139 | fi |
| 15140 | |
| 15141 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 15142 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 15143 | fi |
| 15144 | |
| 15145 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 15146 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 15147 | |
| 15148 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 15149 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 15150 | |
| 15151 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 15152 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 15153 | |
| 15154 | |
| 15155 | |
| 15156 | |
| 15157 | |
| 15158 | |
| 15159 | |
| 15160 | |
| 15161 | |
| 15162 | |
| 15163 | |
| 15164 | |
| 15165 | |
| 15166 | |
| 15167 | |
| 15168 | |
| 15169 | |
| 15170 | |
| 15171 | |
| 15172 | |
| 15173 | |
| 15174 | |
| 15175 | |
| 15176 | |
| 15177 | |
| 15178 | |
| 15179 | |
| 15180 | |
| 15181 | |
| 15182 | |
| 15183 | |
| 15184 | |
| 15185 | |
| 15186 | |
| 15187 | |
| 15188 | |
| 15189 | |
| 15190 | |
| 15191 | |
| 15192 | |
| 15193 | |
| 15194 | |
| 15195 | |
| 15196 | |
| 15197 | |
| 15198 | |
| 15199 | |
| 15200 | |
| 15201 | |
| 15202 | |
| 15203 | |
| 15204 | |
| 15205 | |
| 15206 | |
| 15207 | |
| 15208 | |
| 15209 | |
| 15210 | |
| 15211 | |
| 15212 | |
| 15213 | |
| 15214 | |
| 15215 | |
| 15216 | |
| 15217 | |
| 15218 | |
| 15219 | |
| 15220 | |
| 15221 | |
| 15222 | |
| 15223 | |
| 15224 | |
| 15225 | |
| 15226 | |
| 15227 | |
| 15228 | |
| 15229 | |
| 15230 | |
| 15231 | |
| 15232 | |
| 15233 | |
| 15234 | |
| 15235 | |
| 15236 | |
| 15237 | |
| 15238 | |
| 15239 | |
| 15240 | |
| 15241 | |
| 15242 | |
| 15243 | |
| 15244 | |
| 15245 | |
| 15246 | |
| 15247 | |
| 15248 | |
| 15249 | |
| 15250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15251 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 15252 | hardcode_action= |
| 15253 | if test -n "$hardcode_libdir_flag_spec" || |
| 15254 | test -n "$runpath_var" || |
| 15255 | test yes = "$hardcode_automatic"; then |
| 15256 | |
| 15257 | # We can hardcode non-existent directories. |
| 15258 | if test no != "$hardcode_direct" && |
| 15259 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15260 | # have to relink, otherwise we might link with an installed library |
| 15261 | # when we should be linking with a yet-to-be-installed one |
| 15262 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 15263 | test no != "$hardcode_minus_L"; then |
| 15264 | # Linking always hardcodes the temporary library directory. |
| 15265 | hardcode_action=relink |
| 15266 | else |
| 15267 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15268 | hardcode_action=immediate |
| 15269 | fi |
| 15270 | else |
| 15271 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15272 | # directories. |
| 15273 | hardcode_action=unsupported |
| 15274 | fi |
| 15275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 15276 | printf "%s\n" "$hardcode_action" >&6; } |
| 15277 | |
| 15278 | if test relink = "$hardcode_action" || |
| 15279 | test yes = "$inherit_rpath"; then |
| 15280 | # Fast installation is not supported |
| 15281 | enable_fast_install=no |
| 15282 | elif test yes = "$shlibpath_overrides_runpath" || |
| 15283 | test no = "$enable_shared"; then |
| 15284 | # Fast installation is not necessary |
| 15285 | enable_fast_install=needless |
| 15286 | fi |
| 15287 | |
| 15288 | |
| 15289 | |
| 15290 | |
| 15291 | |
| 15292 | |
| 15293 | if test yes != "$enable_dlopen"; then |
| 15294 | enable_dlopen=unknown |
| 15295 | enable_dlopen_self=unknown |
| 15296 | enable_dlopen_self_static=unknown |
| 15297 | else |
| 15298 | lt_cv_dlopen=no |
| 15299 | lt_cv_dlopen_libs= |
| 15300 | |
| 15301 | case $host_os in |
| 15302 | beos*) |
| 15303 | lt_cv_dlopen=load_add_on |
| 15304 | lt_cv_dlopen_libs= |
| 15305 | lt_cv_dlopen_self=yes |
| 15306 | ;; |
| 15307 | |
| 15308 | mingw* | windows* | pw32* | cegcc*) |
| 15309 | lt_cv_dlopen=LoadLibrary |
| 15310 | lt_cv_dlopen_libs= |
| 15311 | ;; |
| 15312 | |
| 15313 | cygwin*) |
| 15314 | lt_cv_dlopen=dlopen |
| 15315 | lt_cv_dlopen_libs= |
| 15316 | ;; |
| 15317 | |
| 15318 | darwin*) |
| 15319 | # if libdl is installed we need to link against it |
| 15320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 15321 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 15322 | if test ${ac_cv_lib_dl_dlopen+y} |
| 15323 | then : |
| 15324 | printf %s "(cached) " >&6 |
| 15325 | else case e in #( |
| 15326 | e) ac_check_lib_save_LIBS=$LIBS |
| 15327 | LIBS="-ldl $LIBS" |
| 15328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15329 | /* end confdefs.h. */ |
| 15330 | |
| 15331 | /* Override any GCC internal prototype to avoid an error. |
| 15332 | Use char because int might match the return type of a GCC |
| 15333 | builtin and then its argument prototype would still apply. |
| 15334 | The 'extern "C"' is for builds by C++ compilers; |
| 15335 | although this is not generally supported in C code supporting it here |
| 15336 | has little cost and some practical benefit (sr 110532). */ |
| 15337 | #ifdef __cplusplus |
| 15338 | extern "C" |
| 15339 | #endif |
| 15340 | char dlopen (void); |
| 15341 | int |
| 15342 | main (void) |
| 15343 | { |
| 15344 | return dlopen (); |
| 15345 | ; |
| 15346 | return 0; |
| 15347 | } |
| 15348 | _ACEOF |
| 15349 | if ac_fn_c_try_link "$LINENO" |
| 15350 | then : |
| 15351 | ac_cv_lib_dl_dlopen=yes |
| 15352 | else case e in #( |
| 15353 | e) ac_cv_lib_dl_dlopen=no ;; |
| 15354 | esac |
| 15355 | fi |
| 15356 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15357 | conftest$ac_exeext conftest.$ac_ext |
| 15358 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15359 | esac |
| 15360 | fi |
| 15361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15362 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 15363 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 15364 | then : |
| 15365 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 15366 | else case e in #( |
| 15367 | e) |
| 15368 | lt_cv_dlopen=dyld |
| 15369 | lt_cv_dlopen_libs= |
| 15370 | lt_cv_dlopen_self=yes |
| 15371 | ;; |
| 15372 | esac |
| 15373 | fi |
| 15374 | |
| 15375 | ;; |
| 15376 | |
| 15377 | tpf*) |
| 15378 | # Don't try to run any link tests for TPF. We know it's impossible |
| 15379 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 15380 | lt_cv_dlopen=dlopen |
| 15381 | lt_cv_dlopen_libs= |
| 15382 | lt_cv_dlopen_self=no |
| 15383 | ;; |
| 15384 | |
| 15385 | *) |
| 15386 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 15387 | if test "x$ac_cv_func_shl_load" = xyes |
| 15388 | then : |
| 15389 | lt_cv_dlopen=shl_load |
| 15390 | else case e in #( |
| 15391 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 15392 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 15393 | if test ${ac_cv_lib_dld_shl_load+y} |
| 15394 | then : |
| 15395 | printf %s "(cached) " >&6 |
| 15396 | else case e in #( |
| 15397 | e) ac_check_lib_save_LIBS=$LIBS |
| 15398 | LIBS="-ldld $LIBS" |
| 15399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15400 | /* end confdefs.h. */ |
| 15401 | |
| 15402 | /* Override any GCC internal prototype to avoid an error. |
| 15403 | Use char because int might match the return type of a GCC |
| 15404 | builtin and then its argument prototype would still apply. |
| 15405 | The 'extern "C"' is for builds by C++ compilers; |
| 15406 | although this is not generally supported in C code supporting it here |
| 15407 | has little cost and some practical benefit (sr 110532). */ |
| 15408 | #ifdef __cplusplus |
| 15409 | extern "C" |
| 15410 | #endif |
| 15411 | char shl_load (void); |
| 15412 | int |
| 15413 | main (void) |
| 15414 | { |
| 15415 | return shl_load (); |
| 15416 | ; |
| 15417 | return 0; |
| 15418 | } |
| 15419 | _ACEOF |
| 15420 | if ac_fn_c_try_link "$LINENO" |
| 15421 | then : |
| 15422 | ac_cv_lib_dld_shl_load=yes |
| 15423 | else case e in #( |
| 15424 | e) ac_cv_lib_dld_shl_load=no ;; |
| 15425 | esac |
| 15426 | fi |
| 15427 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15428 | conftest$ac_exeext conftest.$ac_ext |
| 15429 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15430 | esac |
| 15431 | fi |
| 15432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15433 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 15434 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 15435 | then : |
| 15436 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 15437 | else case e in #( |
| 15438 | e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 15439 | if test "x$ac_cv_func_dlopen" = xyes |
| 15440 | then : |
| 15441 | lt_cv_dlopen=dlopen |
| 15442 | else case e in #( |
| 15443 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 15444 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 15445 | if test ${ac_cv_lib_dl_dlopen+y} |
| 15446 | then : |
| 15447 | printf %s "(cached) " >&6 |
| 15448 | else case e in #( |
| 15449 | e) ac_check_lib_save_LIBS=$LIBS |
| 15450 | LIBS="-ldl $LIBS" |
| 15451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15452 | /* end confdefs.h. */ |
| 15453 | |
| 15454 | /* Override any GCC internal prototype to avoid an error. |
| 15455 | Use char because int might match the return type of a GCC |
| 15456 | builtin and then its argument prototype would still apply. |
| 15457 | The 'extern "C"' is for builds by C++ compilers; |
| 15458 | although this is not generally supported in C code supporting it here |
| 15459 | has little cost and some practical benefit (sr 110532). */ |
| 15460 | #ifdef __cplusplus |
| 15461 | extern "C" |
| 15462 | #endif |
| 15463 | char dlopen (void); |
| 15464 | int |
| 15465 | main (void) |
| 15466 | { |
| 15467 | return dlopen (); |
| 15468 | ; |
| 15469 | return 0; |
| 15470 | } |
| 15471 | _ACEOF |
| 15472 | if ac_fn_c_try_link "$LINENO" |
| 15473 | then : |
| 15474 | ac_cv_lib_dl_dlopen=yes |
| 15475 | else case e in #( |
| 15476 | e) ac_cv_lib_dl_dlopen=no ;; |
| 15477 | esac |
| 15478 | fi |
| 15479 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15480 | conftest$ac_exeext conftest.$ac_ext |
| 15481 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15482 | esac |
| 15483 | fi |
| 15484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15485 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 15486 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 15487 | then : |
| 15488 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 15489 | else case e in #( |
| 15490 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 15491 | printf %s "checking for dlopen in -lsvld... " >&6; } |
| 15492 | if test ${ac_cv_lib_svld_dlopen+y} |
| 15493 | then : |
| 15494 | printf %s "(cached) " >&6 |
| 15495 | else case e in #( |
| 15496 | e) ac_check_lib_save_LIBS=$LIBS |
| 15497 | LIBS="-lsvld $LIBS" |
| 15498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15499 | /* end confdefs.h. */ |
| 15500 | |
| 15501 | /* Override any GCC internal prototype to avoid an error. |
| 15502 | Use char because int might match the return type of a GCC |
| 15503 | builtin and then its argument prototype would still apply. |
| 15504 | The 'extern "C"' is for builds by C++ compilers; |
| 15505 | although this is not generally supported in C code supporting it here |
| 15506 | has little cost and some practical benefit (sr 110532). */ |
| 15507 | #ifdef __cplusplus |
| 15508 | extern "C" |
| 15509 | #endif |
| 15510 | char dlopen (void); |
| 15511 | int |
| 15512 | main (void) |
| 15513 | { |
| 15514 | return dlopen (); |
| 15515 | ; |
| 15516 | return 0; |
| 15517 | } |
| 15518 | _ACEOF |
| 15519 | if ac_fn_c_try_link "$LINENO" |
| 15520 | then : |
| 15521 | ac_cv_lib_svld_dlopen=yes |
| 15522 | else case e in #( |
| 15523 | e) ac_cv_lib_svld_dlopen=no ;; |
| 15524 | esac |
| 15525 | fi |
| 15526 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15527 | conftest$ac_exeext conftest.$ac_ext |
| 15528 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15529 | esac |
| 15530 | fi |
| 15531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 15532 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } |
| 15533 | if test "x$ac_cv_lib_svld_dlopen" = xyes |
| 15534 | then : |
| 15535 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 15536 | else case e in #( |
| 15537 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 15538 | printf %s "checking for dld_link in -ldld... " >&6; } |
| 15539 | if test ${ac_cv_lib_dld_dld_link+y} |
| 15540 | then : |
| 15541 | printf %s "(cached) " >&6 |
| 15542 | else case e in #( |
| 15543 | e) ac_check_lib_save_LIBS=$LIBS |
| 15544 | LIBS="-ldld $LIBS" |
| 15545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15546 | /* end confdefs.h. */ |
| 15547 | |
| 15548 | /* Override any GCC internal prototype to avoid an error. |
| 15549 | Use char because int might match the return type of a GCC |
| 15550 | builtin and then its argument prototype would still apply. |
| 15551 | The 'extern "C"' is for builds by C++ compilers; |
| 15552 | although this is not generally supported in C code supporting it here |
| 15553 | has little cost and some practical benefit (sr 110532). */ |
| 15554 | #ifdef __cplusplus |
| 15555 | extern "C" |
| 15556 | #endif |
| 15557 | char dld_link (void); |
| 15558 | int |
| 15559 | main (void) |
| 15560 | { |
| 15561 | return dld_link (); |
| 15562 | ; |
| 15563 | return 0; |
| 15564 | } |
| 15565 | _ACEOF |
| 15566 | if ac_fn_c_try_link "$LINENO" |
| 15567 | then : |
| 15568 | ac_cv_lib_dld_dld_link=yes |
| 15569 | else case e in #( |
| 15570 | e) ac_cv_lib_dld_dld_link=no ;; |
| 15571 | esac |
| 15572 | fi |
| 15573 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15574 | conftest$ac_exeext conftest.$ac_ext |
| 15575 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15576 | esac |
| 15577 | fi |
| 15578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 15579 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } |
| 15580 | if test "x$ac_cv_lib_dld_dld_link" = xyes |
| 15581 | then : |
| 15582 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 15583 | fi |
| 15584 | |
| 15585 | ;; |
| 15586 | esac |
| 15587 | fi |
| 15588 | |
| 15589 | ;; |
| 15590 | esac |
| 15591 | fi |
| 15592 | |
| 15593 | ;; |
| 15594 | esac |
| 15595 | fi |
| 15596 | |
| 15597 | ;; |
| 15598 | esac |
| 15599 | fi |
| 15600 | |
| 15601 | ;; |
| 15602 | esac |
| 15603 | fi |
| 15604 | |
| 15605 | ;; |
| 15606 | esac |
| 15607 | |
| 15608 | if test no = "$lt_cv_dlopen"; then |
| 15609 | enable_dlopen=no |
| 15610 | else |
| 15611 | enable_dlopen=yes |
| 15612 | fi |
| 15613 | |
| 15614 | case $lt_cv_dlopen in |
| 15615 | dlopen) |
| 15616 | save_CPPFLAGS=$CPPFLAGS |
| 15617 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 15618 | |
| 15619 | save_LDFLAGS=$LDFLAGS |
| 15620 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 15621 | |
| 15622 | save_LIBS=$LIBS |
| 15623 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 15624 | |
| 15625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 15626 | printf %s "checking whether a program can dlopen itself... " >&6; } |
| 15627 | if test ${lt_cv_dlopen_self+y} |
| 15628 | then : |
| 15629 | printf %s "(cached) " >&6 |
| 15630 | else case e in #( |
| 15631 | e) if test yes = "$cross_compiling"; then : |
| 15632 | lt_cv_dlopen_self=cross |
| 15633 | else |
| 15634 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 15635 | lt_status=$lt_dlunknown |
| 15636 | cat > conftest.$ac_ext <<_LT_EOF |
| 15637 | #line $LINENO "configure" |
| 15638 | #include "confdefs.h" |
| 15639 | |
| 15640 | #if HAVE_DLFCN_H |
| 15641 | #include <dlfcn.h> |
| 15642 | #endif |
| 15643 | |
| 15644 | #include <stdio.h> |
| 15645 | |
| 15646 | #ifdef RTLD_GLOBAL |
| 15647 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 15648 | #else |
| 15649 | # ifdef DL_GLOBAL |
| 15650 | # define LT_DLGLOBAL DL_GLOBAL |
| 15651 | # else |
| 15652 | # define LT_DLGLOBAL 0 |
| 15653 | # endif |
| 15654 | #endif |
| 15655 | |
| 15656 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 15657 | find out it does not work in some platform. */ |
| 15658 | #ifndef LT_DLLAZY_OR_NOW |
| 15659 | # ifdef RTLD_LAZY |
| 15660 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 15661 | # else |
| 15662 | # ifdef DL_LAZY |
| 15663 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 15664 | # else |
| 15665 | # ifdef RTLD_NOW |
| 15666 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 15667 | # else |
| 15668 | # ifdef DL_NOW |
| 15669 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 15670 | # else |
| 15671 | # define LT_DLLAZY_OR_NOW 0 |
| 15672 | # endif |
| 15673 | # endif |
| 15674 | # endif |
| 15675 | # endif |
| 15676 | #endif |
| 15677 | |
| 15678 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 15679 | correspondingly for the symbols needed. */ |
| 15680 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 15681 | int fnord (void) __attribute__((visibility("default"))); |
| 15682 | #endif |
| 15683 | |
| 15684 | int fnord (void) { return 42; } |
| 15685 | int main (void) |
| 15686 | { |
| 15687 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 15688 | int status = $lt_dlunknown; |
| 15689 | |
| 15690 | if (self) |
| 15691 | { |
| 15692 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 15693 | else |
| 15694 | { |
| 15695 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 15696 | else puts (dlerror ()); |
| 15697 | } |
| 15698 | /* dlclose (self); */ |
| 15699 | } |
| 15700 | else |
| 15701 | puts (dlerror ()); |
| 15702 | |
| 15703 | return status; |
| 15704 | } |
| 15705 | _LT_EOF |
| 15706 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 15707 | (eval $ac_link) 2>&5 |
| 15708 | ac_status=$? |
| 15709 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15710 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 15711 | (./conftest; exit; ) >&5 2>/dev/null |
| 15712 | lt_status=$? |
| 15713 | case x$lt_status in |
| 15714 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 15715 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 15716 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 15717 | esac |
| 15718 | else : |
| 15719 | # compilation failed |
| 15720 | lt_cv_dlopen_self=no |
| 15721 | fi |
| 15722 | fi |
| 15723 | rm -fr conftest* |
| 15724 | |
| 15725 | ;; |
| 15726 | esac |
| 15727 | fi |
| 15728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 15729 | printf "%s\n" "$lt_cv_dlopen_self" >&6; } |
| 15730 | |
| 15731 | if test yes = "$lt_cv_dlopen_self"; then |
| 15732 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 15733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 15734 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; } |
| 15735 | if test ${lt_cv_dlopen_self_static+y} |
| 15736 | then : |
| 15737 | printf %s "(cached) " >&6 |
| 15738 | else case e in #( |
| 15739 | e) if test yes = "$cross_compiling"; then : |
| 15740 | lt_cv_dlopen_self_static=cross |
| 15741 | else |
| 15742 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 15743 | lt_status=$lt_dlunknown |
| 15744 | cat > conftest.$ac_ext <<_LT_EOF |
| 15745 | #line $LINENO "configure" |
| 15746 | #include "confdefs.h" |
| 15747 | |
| 15748 | #if HAVE_DLFCN_H |
| 15749 | #include <dlfcn.h> |
| 15750 | #endif |
| 15751 | |
| 15752 | #include <stdio.h> |
| 15753 | |
| 15754 | #ifdef RTLD_GLOBAL |
| 15755 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 15756 | #else |
| 15757 | # ifdef DL_GLOBAL |
| 15758 | # define LT_DLGLOBAL DL_GLOBAL |
| 15759 | # else |
| 15760 | # define LT_DLGLOBAL 0 |
| 15761 | # endif |
| 15762 | #endif |
| 15763 | |
| 15764 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 15765 | find out it does not work in some platform. */ |
| 15766 | #ifndef LT_DLLAZY_OR_NOW |
| 15767 | # ifdef RTLD_LAZY |
| 15768 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 15769 | # else |
| 15770 | # ifdef DL_LAZY |
| 15771 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 15772 | # else |
| 15773 | # ifdef RTLD_NOW |
| 15774 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 15775 | # else |
| 15776 | # ifdef DL_NOW |
| 15777 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 15778 | # else |
| 15779 | # define LT_DLLAZY_OR_NOW 0 |
| 15780 | # endif |
| 15781 | # endif |
| 15782 | # endif |
| 15783 | # endif |
| 15784 | #endif |
| 15785 | |
| 15786 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 15787 | correspondingly for the symbols needed. */ |
| 15788 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 15789 | int fnord (void) __attribute__((visibility("default"))); |
| 15790 | #endif |
| 15791 | |
| 15792 | int fnord (void) { return 42; } |
| 15793 | int main (void) |
| 15794 | { |
| 15795 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 15796 | int status = $lt_dlunknown; |
| 15797 | |
| 15798 | if (self) |
| 15799 | { |
| 15800 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 15801 | else |
| 15802 | { |
| 15803 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 15804 | else puts (dlerror ()); |
| 15805 | } |
| 15806 | /* dlclose (self); */ |
| 15807 | } |
| 15808 | else |
| 15809 | puts (dlerror ()); |
| 15810 | |
| 15811 | return status; |
| 15812 | } |
| 15813 | _LT_EOF |
| 15814 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 15815 | (eval $ac_link) 2>&5 |
| 15816 | ac_status=$? |
| 15817 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15818 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 15819 | (./conftest; exit; ) >&5 2>/dev/null |
| 15820 | lt_status=$? |
| 15821 | case x$lt_status in |
| 15822 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 15823 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 15824 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 15825 | esac |
| 15826 | else : |
| 15827 | # compilation failed |
| 15828 | lt_cv_dlopen_self_static=no |
| 15829 | fi |
| 15830 | fi |
| 15831 | rm -fr conftest* |
| 15832 | |
| 15833 | ;; |
| 15834 | esac |
| 15835 | fi |
| 15836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 15837 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } |
| 15838 | fi |
| 15839 | |
| 15840 | CPPFLAGS=$save_CPPFLAGS |
| 15841 | LDFLAGS=$save_LDFLAGS |
| 15842 | LIBS=$save_LIBS |
| 15843 | ;; |
| 15844 | esac |
| 15845 | |
| 15846 | case $lt_cv_dlopen_self in |
| 15847 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 15848 | *) enable_dlopen_self=unknown ;; |
| 15849 | esac |
| 15850 | |
| 15851 | case $lt_cv_dlopen_self_static in |
| 15852 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 15853 | *) enable_dlopen_self_static=unknown ;; |
| 15854 | esac |
| 15855 | fi |
| 15856 | |
| 15857 | |
| 15858 | |
| 15859 | |
| 15860 | |
| 15861 | |
| 15862 | |
| 15863 | |
| 15864 | |
| 15865 | |
| 15866 | |
| 15867 | |
| 15868 | |
| 15869 | |
| 15870 | |
| 15871 | |
| 15872 | |
| 15873 | striplib= |
| 15874 | old_striplib= |
| 15875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 15876 | printf %s "checking whether stripping libraries is possible... " >&6; } |
| 15877 | if test -z "$STRIP"; then |
| 15878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15879 | printf "%s\n" "no" >&6; } |
| 15880 | else |
| 15881 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 15882 | old_striplib="$STRIP --strip-debug" |
| 15883 | striplib="$STRIP --strip-unneeded" |
| 15884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15885 | printf "%s\n" "yes" >&6; } |
| 15886 | else |
| 15887 | case $host_os in |
| 15888 | darwin*) |
| 15889 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15890 | striplib="$STRIP -x" |
| 15891 | old_striplib="$STRIP -S" |
| 15892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15893 | printf "%s\n" "yes" >&6; } |
| 15894 | ;; |
| 15895 | freebsd*) |
| 15896 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then |
| 15897 | old_striplib="$STRIP --strip-debug" |
| 15898 | striplib="$STRIP --strip-unneeded" |
| 15899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15900 | printf "%s\n" "yes" >&6; } |
| 15901 | else |
| 15902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15903 | printf "%s\n" "no" >&6; } |
| 15904 | fi |
| 15905 | ;; |
| 15906 | *) |
| 15907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15908 | printf "%s\n" "no" >&6; } |
| 15909 | ;; |
| 15910 | esac |
| 15911 | fi |
| 15912 | fi |
| 15913 | |
| 15914 | |
| 15915 | |
| 15916 | |
| 15917 | |
| 15918 | |
| 15919 | |
| 15920 | |
| 15921 | |
| 15922 | |
| 15923 | |
| 15924 | |
| 15925 | # Report what library types will actually be built |
| 15926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 15927 | printf %s "checking if libtool supports shared libraries... " >&6; } |
| 15928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 15929 | printf "%s\n" "$can_build_shared" >&6; } |
| 15930 | |
| 15931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 15932 | printf %s "checking whether to build shared libraries... " >&6; } |
| 15933 | test no = "$can_build_shared" && enable_shared=no |
| 15934 | |
| 15935 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 15936 | # are all built from PIC. |
| 15937 | case $host_os in |
| 15938 | aix3*) |
| 15939 | test yes = "$enable_shared" && enable_static=no |
| 15940 | if test -n "$RANLIB"; then |
| 15941 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 15942 | postinstall_cmds='$RANLIB $lib' |
| 15943 | fi |
| 15944 | ;; |
| 15945 | |
| 15946 | aix[4-9]*) |
| 15947 | if test ia64 != "$host_cpu"; then |
| 15948 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 15949 | yes,aix,yes) ;; # shared object as lib.so file only |
| 15950 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 15951 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 15952 | esac |
| 15953 | fi |
| 15954 | ;; |
| 15955 | esac |
| 15956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 15957 | printf "%s\n" "$enable_shared" >&6; } |
| 15958 | |
| 15959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 15960 | printf %s "checking whether to build static libraries... " >&6; } |
| 15961 | # Make sure either enable_shared or enable_static is yes. |
| 15962 | test yes = "$enable_shared" || enable_static=yes |
| 15963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 15964 | printf "%s\n" "$enable_static" >&6; } |
| 15965 | |
| 15966 | |
| 15967 | |
| 15968 | |
| 15969 | fi |
| 15970 | ac_ext=c |
| 15971 | ac_cpp='$CPP $CPPFLAGS' |
| 15972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15975 | |
| 15976 | CC=$lt_save_CC |
| 15977 | |
| 15978 | |
| 15979 | |
| 15980 | |
| 15981 | |
| 15982 | |
| 15983 | |
| 15984 | |
| 15985 | |
| 15986 | |
| 15987 | |
| 15988 | |
| 15989 | |
| 15990 | |
| 15991 | |
| 15992 | ac_config_commands="$ac_config_commands libtool" |
| 15993 | |
| 15994 | |
| 15995 | |
| 15996 | |
| 15997 | # Only expand once: |
| 15998 | |
| 15999 | |
| 16000 | # (end lt_init) |
| 16001 | # Check whether --enable-largefile was given. |
| 16002 | if test ${enable_largefile+y} |
| 16003 | then : |
| 16004 | enableval=$enable_largefile; |
| 16005 | fi |
| 16006 | if test "$enable_largefile,$enable_year2038" != no,no |
| 16007 | then : |
| 16008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 |
| 16009 | printf %s "checking for $CC option to enable large file support... " >&6; } |
| 16010 | if test ${ac_cv_sys_largefile_opts+y} |
| 16011 | then : |
| 16012 | printf %s "(cached) " >&6 |
| 16013 | else case e in #( |
| 16014 | e) ac_save_CC="$CC" |
| 16015 | ac_opt_found=no |
| 16016 | for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do |
| 16017 | if test x"$ac_opt" != x"none needed" |
| 16018 | then : |
| 16019 | CC="$ac_save_CC $ac_opt" |
| 16020 | fi |
| 16021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16022 | /* end confdefs.h. */ |
| 16023 | #include <sys/types.h> |
| 16024 | #ifndef FTYPE |
| 16025 | # define FTYPE off_t |
| 16026 | #endif |
| 16027 | /* Check that FTYPE can represent 2**63 - 1 correctly. |
| 16028 | We can't simply define LARGE_FTYPE to be 9223372036854775807, |
| 16029 | since some C++ compilers masquerading as C compilers |
| 16030 | incorrectly reject 9223372036854775807. */ |
| 16031 | #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) |
| 16032 | int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 |
| 16033 | && LARGE_FTYPE % 2147483647 == 1) |
| 16034 | ? 1 : -1]; |
| 16035 | int |
| 16036 | main (void) |
| 16037 | { |
| 16038 | |
| 16039 | ; |
| 16040 | return 0; |
| 16041 | } |
| 16042 | _ACEOF |
| 16043 | if ac_fn_c_try_compile "$LINENO" |
| 16044 | then : |
| 16045 | if test x"$ac_opt" = x"none needed" |
| 16046 | then : |
| 16047 | # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. |
| 16048 | CC="$CC -DFTYPE=ino_t" |
| 16049 | if ac_fn_c_try_compile "$LINENO" |
| 16050 | then : |
| 16051 | |
| 16052 | else case e in #( |
| 16053 | e) CC="$CC -D_FILE_OFFSET_BITS=64" |
| 16054 | if ac_fn_c_try_compile "$LINENO" |
| 16055 | then : |
| 16056 | ac_opt='-D_FILE_OFFSET_BITS=64' |
| 16057 | fi |
| 16058 | rm -f core conftest.err conftest.$ac_objext conftest.beam ;; |
| 16059 | esac |
| 16060 | fi |
| 16061 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 16062 | fi |
| 16063 | ac_cv_sys_largefile_opts=$ac_opt |
| 16064 | ac_opt_found=yes |
| 16065 | fi |
| 16066 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16067 | test $ac_opt_found = no || break |
| 16068 | done |
| 16069 | CC="$ac_save_CC" |
| 16070 | |
| 16071 | test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; |
| 16072 | esac |
| 16073 | fi |
| 16074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 |
| 16075 | printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } |
| 16076 | |
| 16077 | ac_have_largefile=yes |
| 16078 | case $ac_cv_sys_largefile_opts in #( |
| 16079 | "none needed") : |
| 16080 | ;; #( |
| 16081 | "supported through gnulib") : |
| 16082 | ;; #( |
| 16083 | "support not detected") : |
| 16084 | ac_have_largefile=no ;; #( |
| 16085 | "-D_FILE_OFFSET_BITS=64") : |
| 16086 | |
| 16087 | printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 16088 | ;; #( |
| 16089 | "-D_LARGE_FILES=1") : |
| 16090 | |
| 16091 | printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
| 16092 | ;; #( |
| 16093 | "-n32") : |
| 16094 | CC="$CC -n32" ;; #( |
| 16095 | *) : |
| 16096 | as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; |
| 16097 | esac |
| 16098 | |
| 16099 | if test "$enable_year2038" != no |
| 16100 | then : |
| 16101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 |
| 16102 | printf %s "checking for $CC option for timestamps after 2038... " >&6; } |
| 16103 | if test ${ac_cv_sys_year2038_opts+y} |
| 16104 | then : |
| 16105 | printf %s "(cached) " >&6 |
| 16106 | else case e in #( |
| 16107 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 16108 | ac_opt_found=no |
| 16109 | for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do |
| 16110 | if test x"$ac_opt" != x"none needed" |
| 16111 | then : |
| 16112 | CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 16113 | fi |
| 16114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16115 | /* end confdefs.h. */ |
| 16116 | |
| 16117 | #include <time.h> |
| 16118 | /* Check that time_t can represent 2**32 - 1 correctly. */ |
| 16119 | #define LARGE_TIME_T \\ |
| 16120 | ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 16121 | int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 16122 | && LARGE_TIME_T % 65537 == 0) |
| 16123 | ? 1 : -1]; |
| 16124 | |
| 16125 | int |
| 16126 | main (void) |
| 16127 | { |
| 16128 | |
| 16129 | ; |
| 16130 | return 0; |
| 16131 | } |
| 16132 | _ACEOF |
| 16133 | if ac_fn_c_try_compile "$LINENO" |
| 16134 | then : |
| 16135 | ac_cv_sys_year2038_opts="$ac_opt" |
| 16136 | ac_opt_found=yes |
| 16137 | fi |
| 16138 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16139 | test $ac_opt_found = no || break |
| 16140 | done |
| 16141 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 16142 | test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; |
| 16143 | esac |
| 16144 | fi |
| 16145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 |
| 16146 | printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } |
| 16147 | |
| 16148 | ac_have_year2038=yes |
| 16149 | case $ac_cv_sys_year2038_opts in #( |
| 16150 | "none needed") : |
| 16151 | ;; #( |
| 16152 | "support not detected") : |
| 16153 | ac_have_year2038=no ;; #( |
| 16154 | "-D_TIME_BITS=64") : |
| 16155 | |
| 16156 | printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h |
| 16157 | ;; #( |
| 16158 | "-D__MINGW_USE_VC2005_COMPAT") : |
| 16159 | |
| 16160 | printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h |
| 16161 | ;; #( |
| 16162 | "-U_USE_32_BIT_TIME_T"*) : |
| 16163 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16164 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 16165 | as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It |
| 16166 | will stop working after mid-January 2038. Remove |
| 16167 | _USE_32BIT_TIME_T from the compiler flags. |
| 16168 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 16169 | *) : |
| 16170 | as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; |
| 16171 | esac |
| 16172 | |
| 16173 | fi |
| 16174 | |
| 16175 | fi |
| 16176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 |
| 16177 | printf %s "checking for declarations of fseeko and ftello... " >&6; } |
| 16178 | if test ${ac_cv_func_fseeko_ftello+y} |
| 16179 | then : |
| 16180 | printf %s "(cached) " >&6 |
| 16181 | else case e in #( |
| 16182 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16183 | /* end confdefs.h. */ |
| 16184 | |
| 16185 | #if defined __hpux && !defined _LARGEFILE_SOURCE |
| 16186 | # include <limits.h> |
| 16187 | # if LONG_MAX >> 31 == 0 |
| 16188 | # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 16189 | # endif |
| 16190 | #endif |
| 16191 | #include <sys/types.h> /* for off_t */ |
| 16192 | #include <stdio.h> |
| 16193 | |
| 16194 | int |
| 16195 | main (void) |
| 16196 | { |
| 16197 | |
| 16198 | int (*fp1) (FILE *, off_t, int) = fseeko; |
| 16199 | off_t (*fp2) (FILE *) = ftello; |
| 16200 | return fseeko (stdin, 0, 0) |
| 16201 | && fp1 (stdin, 0, 0) |
| 16202 | && ftello (stdin) >= 0 |
| 16203 | && fp2 (stdin) >= 0; |
| 16204 | |
| 16205 | ; |
| 16206 | return 0; |
| 16207 | } |
| 16208 | _ACEOF |
| 16209 | if ac_fn_c_try_compile "$LINENO" |
| 16210 | then : |
| 16211 | ac_cv_func_fseeko_ftello=yes |
| 16212 | else case e in #( |
| 16213 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 16214 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 16215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16216 | /* end confdefs.h. */ |
| 16217 | |
| 16218 | #if defined __hpux && !defined _LARGEFILE_SOURCE |
| 16219 | # include <limits.h> |
| 16220 | # if LONG_MAX >> 31 == 0 |
| 16221 | # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 16222 | # endif |
| 16223 | #endif |
| 16224 | #include <sys/types.h> /* for off_t */ |
| 16225 | #include <stdio.h> |
| 16226 | |
| 16227 | int |
| 16228 | main (void) |
| 16229 | { |
| 16230 | |
| 16231 | int (*fp1) (FILE *, off_t, int) = fseeko; |
| 16232 | off_t (*fp2) (FILE *) = ftello; |
| 16233 | return fseeko (stdin, 0, 0) |
| 16234 | && fp1 (stdin, 0, 0) |
| 16235 | && ftello (stdin) >= 0 |
| 16236 | && fp2 (stdin) >= 0; |
| 16237 | |
| 16238 | ; |
| 16239 | return 0; |
| 16240 | } |
| 16241 | _ACEOF |
| 16242 | if ac_fn_c_try_compile "$LINENO" |
| 16243 | then : |
| 16244 | ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" |
| 16245 | else case e in #( |
| 16246 | e) ac_cv_func_fseeko_ftello=no ;; |
| 16247 | esac |
| 16248 | fi |
| 16249 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16250 | esac |
| 16251 | fi |
| 16252 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16253 | esac |
| 16254 | fi |
| 16255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 |
| 16256 | printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } |
| 16257 | if test "$ac_cv_func_fseeko_ftello" != no |
| 16258 | then : |
| 16259 | |
| 16260 | printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 16261 | |
| 16262 | fi |
| 16263 | if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" |
| 16264 | then : |
| 16265 | |
| 16266 | printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 16267 | |
| 16268 | fi |
| 16269 | |
| 16270 | ac_header_dirent=no |
| 16271 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 16272 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` |
| 16273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 16274 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 16275 | if eval test \${$as_ac_Header+y} |
| 16276 | then : |
| 16277 | printf %s "(cached) " >&6 |
| 16278 | else case e in #( |
| 16279 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16280 | /* end confdefs.h. */ |
| 16281 | #include <sys/types.h> |
| 16282 | #include <$ac_hdr> |
| 16283 | |
| 16284 | int |
| 16285 | main (void) |
| 16286 | { |
| 16287 | if ((DIR *) 0) |
| 16288 | return 0; |
| 16289 | ; |
| 16290 | return 0; |
| 16291 | } |
| 16292 | _ACEOF |
| 16293 | if ac_fn_c_try_compile "$LINENO" |
| 16294 | then : |
| 16295 | eval "$as_ac_Header=yes" |
| 16296 | else case e in #( |
| 16297 | e) eval "$as_ac_Header=no" ;; |
| 16298 | esac |
| 16299 | fi |
| 16300 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16301 | esac |
| 16302 | fi |
| 16303 | eval ac_res=\$$as_ac_Header |
| 16304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16305 | printf "%s\n" "$ac_res" >&6; } |
| 16306 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 16307 | then : |
| 16308 | cat >>confdefs.h <<_ACEOF |
| 16309 | #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 |
| 16310 | _ACEOF |
| 16311 | |
| 16312 | ac_header_dirent=$ac_hdr; break |
| 16313 | fi |
| 16314 | |
| 16315 | done |
| 16316 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 16317 | if test $ac_header_dirent = dirent.h; then |
| 16318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 16319 | printf %s "checking for library containing opendir... " >&6; } |
| 16320 | if test ${ac_cv_search_opendir+y} |
| 16321 | then : |
| 16322 | printf %s "(cached) " >&6 |
| 16323 | else case e in #( |
| 16324 | e) ac_func_search_save_LIBS=$LIBS |
| 16325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16326 | /* end confdefs.h. */ |
| 16327 | |
| 16328 | /* Override any GCC internal prototype to avoid an error. |
| 16329 | Use char because int might match the return type of a GCC |
| 16330 | builtin and then its argument prototype would still apply. |
| 16331 | The 'extern "C"' is for builds by C++ compilers; |
| 16332 | although this is not generally supported in C code supporting it here |
| 16333 | has little cost and some practical benefit (sr 110532). */ |
| 16334 | #ifdef __cplusplus |
| 16335 | extern "C" |
| 16336 | #endif |
| 16337 | char opendir (void); |
| 16338 | int |
| 16339 | main (void) |
| 16340 | { |
| 16341 | return opendir (); |
| 16342 | ; |
| 16343 | return 0; |
| 16344 | } |
| 16345 | _ACEOF |
| 16346 | for ac_lib in '' dir |
| 16347 | do |
| 16348 | if test -z "$ac_lib"; then |
| 16349 | ac_res="none required" |
| 16350 | else |
| 16351 | ac_res=-l$ac_lib |
| 16352 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16353 | fi |
| 16354 | if ac_fn_c_try_link "$LINENO" |
| 16355 | then : |
| 16356 | ac_cv_search_opendir=$ac_res |
| 16357 | fi |
| 16358 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16359 | conftest$ac_exeext |
| 16360 | if test ${ac_cv_search_opendir+y} |
| 16361 | then : |
| 16362 | break |
| 16363 | fi |
| 16364 | done |
| 16365 | if test ${ac_cv_search_opendir+y} |
| 16366 | then : |
| 16367 | |
| 16368 | else case e in #( |
| 16369 | e) ac_cv_search_opendir=no ;; |
| 16370 | esac |
| 16371 | fi |
| 16372 | rm conftest.$ac_ext |
| 16373 | LIBS=$ac_func_search_save_LIBS ;; |
| 16374 | esac |
| 16375 | fi |
| 16376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 16377 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 16378 | ac_res=$ac_cv_search_opendir |
| 16379 | if test "$ac_res" != no |
| 16380 | then : |
| 16381 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16382 | |
| 16383 | fi |
| 16384 | |
| 16385 | else |
| 16386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 16387 | printf %s "checking for library containing opendir... " >&6; } |
| 16388 | if test ${ac_cv_search_opendir+y} |
| 16389 | then : |
| 16390 | printf %s "(cached) " >&6 |
| 16391 | else case e in #( |
| 16392 | e) ac_func_search_save_LIBS=$LIBS |
| 16393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16394 | /* end confdefs.h. */ |
| 16395 | |
| 16396 | /* Override any GCC internal prototype to avoid an error. |
| 16397 | Use char because int might match the return type of a GCC |
| 16398 | builtin and then its argument prototype would still apply. |
| 16399 | The 'extern "C"' is for builds by C++ compilers; |
| 16400 | although this is not generally supported in C code supporting it here |
| 16401 | has little cost and some practical benefit (sr 110532). */ |
| 16402 | #ifdef __cplusplus |
| 16403 | extern "C" |
| 16404 | #endif |
| 16405 | char opendir (void); |
| 16406 | int |
| 16407 | main (void) |
| 16408 | { |
| 16409 | return opendir (); |
| 16410 | ; |
| 16411 | return 0; |
| 16412 | } |
| 16413 | _ACEOF |
| 16414 | for ac_lib in '' x |
| 16415 | do |
| 16416 | if test -z "$ac_lib"; then |
| 16417 | ac_res="none required" |
| 16418 | else |
| 16419 | ac_res=-l$ac_lib |
| 16420 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16421 | fi |
| 16422 | if ac_fn_c_try_link "$LINENO" |
| 16423 | then : |
| 16424 | ac_cv_search_opendir=$ac_res |
| 16425 | fi |
| 16426 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16427 | conftest$ac_exeext |
| 16428 | if test ${ac_cv_search_opendir+y} |
| 16429 | then : |
| 16430 | break |
| 16431 | fi |
| 16432 | done |
| 16433 | if test ${ac_cv_search_opendir+y} |
| 16434 | then : |
| 16435 | |
| 16436 | else case e in #( |
| 16437 | e) ac_cv_search_opendir=no ;; |
| 16438 | esac |
| 16439 | fi |
| 16440 | rm conftest.$ac_ext |
| 16441 | LIBS=$ac_func_search_save_LIBS ;; |
| 16442 | esac |
| 16443 | fi |
| 16444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 16445 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 16446 | ac_res=$ac_cv_search_opendir |
| 16447 | if test "$ac_res" != no |
| 16448 | then : |
| 16449 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16450 | |
| 16451 | fi |
| 16452 | |
| 16453 | fi |
| 16454 | |
| 16455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| 16456 | printf %s "checking whether closedir returns void... " >&6; } |
| 16457 | if test ${ac_cv_func_closedir_void+y} |
| 16458 | then : |
| 16459 | printf %s "(cached) " >&6 |
| 16460 | else case e in #( |
| 16461 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16462 | /* end confdefs.h. */ |
| 16463 | |
| 16464 | #include <$ac_header_dirent> |
| 16465 | |
| 16466 | int |
| 16467 | main (void) |
| 16468 | { |
| 16469 | |
| 16470 | return closedir(0); |
| 16471 | |
| 16472 | ; |
| 16473 | return 0; |
| 16474 | } |
| 16475 | _ACEOF |
| 16476 | if ac_fn_c_try_compile "$LINENO" |
| 16477 | then : |
| 16478 | ac_cv_func_closedir_void=no |
| 16479 | else case e in #( |
| 16480 | e) ac_cv_func_closedir_void=yes ;; |
| 16481 | esac |
| 16482 | fi |
| 16483 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16484 | esac |
| 16485 | fi |
| 16486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 |
| 16487 | printf "%s\n" "$ac_cv_func_closedir_void" >&6; } |
| 16488 | if test $ac_cv_func_closedir_void = yes; then |
| 16489 | |
| 16490 | printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h |
| 16491 | |
| 16492 | fi |
| 16493 | |
| 16494 | ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 16495 | if test "x$ac_cv_header_assert_h" = xyes |
| 16496 | then : |
| 16497 | printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h |
| 16498 | |
| 16499 | fi |
| 16500 | ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
| 16501 | if test "x$ac_cv_header_float_h" = xyes |
| 16502 | then : |
| 16503 | printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h |
| 16504 | |
| 16505 | fi |
| 16506 | ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 16507 | if test "x$ac_cv_header_limits_h" = xyes |
| 16508 | then : |
| 16509 | printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h |
| 16510 | |
| 16511 | fi |
| 16512 | ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
| 16513 | if test "x$ac_cv_header_pwd_h" = xyes |
| 16514 | then : |
| 16515 | printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
| 16516 | |
| 16517 | fi |
| 16518 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 16519 | if test "x$ac_cv_header_stdlib_h" = xyes |
| 16520 | then : |
| 16521 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 16522 | |
| 16523 | fi |
| 16524 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 16525 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 16526 | then : |
| 16527 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 16528 | |
| 16529 | fi |
| 16530 | |
| 16531 | ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 16532 | if test "x$ac_cv_func_putenv" = xyes |
| 16533 | then : |
| 16534 | printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 16535 | |
| 16536 | fi |
| 16537 | |
| 16538 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 16539 | if test "x$ac_cv_func_getcwd" = xyes |
| 16540 | then : |
| 16541 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 16542 | |
| 16543 | fi |
| 16544 | ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" |
| 16545 | if test "x$ac_cv_func_memcmp" = xyes |
| 16546 | then : |
| 16547 | printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h |
| 16548 | |
| 16549 | fi |
| 16550 | ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" |
| 16551 | if test "x$ac_cv_func_memcpy" = xyes |
| 16552 | then : |
| 16553 | printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h |
| 16554 | |
| 16555 | fi |
| 16556 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
| 16557 | if test "x$ac_cv_func_mkstemp" = xyes |
| 16558 | then : |
| 16559 | printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
| 16560 | |
| 16561 | fi |
| 16562 | ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp" |
| 16563 | if test "x$ac_cv_func_mktemp" = xyes |
| 16564 | then : |
| 16565 | printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h |
| 16566 | |
| 16567 | fi |
| 16568 | ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
| 16569 | if test "x$ac_cv_func_strchr" = xyes |
| 16570 | then : |
| 16571 | printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h |
| 16572 | |
| 16573 | fi |
| 16574 | ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" |
| 16575 | if test "x$ac_cv_func_strrchr" = xyes |
| 16576 | then : |
| 16577 | printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h |
| 16578 | |
| 16579 | fi |
| 16580 | |
| 16581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 16582 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 16583 | if test ${ac_cv_c_const+y} |
| 16584 | then : |
| 16585 | printf %s "(cached) " >&6 |
| 16586 | else case e in #( |
| 16587 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16588 | /* end confdefs.h. */ |
| 16589 | |
| 16590 | int |
| 16591 | main (void) |
| 16592 | { |
| 16593 | |
| 16594 | #ifndef __cplusplus |
| 16595 | /* Ultrix mips cc rejects this sort of thing. */ |
| 16596 | typedef int charset[2]; |
| 16597 | const charset cs = { 0, 0 }; |
| 16598 | /* SunOS 4.1.1 cc rejects this. */ |
| 16599 | char const *const *pcpcc; |
| 16600 | char **ppc; |
| 16601 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16602 | struct point {int x, y;}; |
| 16603 | static struct point const zero = {0,0}; |
| 16604 | /* IBM XL C 1.02.0.0 rejects this. |
| 16605 | It does not let you subtract one const X* pointer from another in |
| 16606 | an arm of an if-expression whose if-part is not a constant |
| 16607 | expression */ |
| 16608 | const char *g = "string"; |
| 16609 | pcpcc = &g + (g ? g-g : 0); |
| 16610 | /* HPUX 7.0 cc rejects these. */ |
| 16611 | ++pcpcc; |
| 16612 | ppc = (char**) pcpcc; |
| 16613 | pcpcc = (char const *const *) ppc; |
| 16614 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 16615 | char tx; |
| 16616 | char *t = &tx; |
| 16617 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 16618 | |
| 16619 | *t++ = 0; |
| 16620 | if (s) return 0; |
| 16621 | } |
| 16622 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16623 | int x[] = {25, 17}; |
| 16624 | const int *foo = &x[0]; |
| 16625 | ++foo; |
| 16626 | } |
| 16627 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16628 | typedef const int *iptr; |
| 16629 | iptr p = 0; |
| 16630 | ++p; |
| 16631 | } |
| 16632 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 16633 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16634 | struct s { int j; const int *ap[3]; } bx; |
| 16635 | struct s *b = &bx; b->j = 5; |
| 16636 | } |
| 16637 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16638 | const int foo = 10; |
| 16639 | if (!foo) return 0; |
| 16640 | } |
| 16641 | return !cs[0] && !zero.x; |
| 16642 | #endif |
| 16643 | |
| 16644 | ; |
| 16645 | return 0; |
| 16646 | } |
| 16647 | _ACEOF |
| 16648 | if ac_fn_c_try_compile "$LINENO" |
| 16649 | then : |
| 16650 | ac_cv_c_const=yes |
| 16651 | else case e in #( |
| 16652 | e) ac_cv_c_const=no ;; |
| 16653 | esac |
| 16654 | fi |
| 16655 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16656 | esac |
| 16657 | fi |
| 16658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 16659 | printf "%s\n" "$ac_cv_c_const" >&6; } |
| 16660 | if test $ac_cv_c_const = no; then |
| 16661 | |
| 16662 | printf "%s\n" "#define const /**/" >>confdefs.h |
| 16663 | |
| 16664 | fi |
| 16665 | |
| 16666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 16667 | printf %s "checking for inline... " >&6; } |
| 16668 | if test ${ac_cv_c_inline+y} |
| 16669 | then : |
| 16670 | printf %s "(cached) " >&6 |
| 16671 | else case e in #( |
| 16672 | e) ac_cv_c_inline=no |
| 16673 | for ac_kw in inline __inline__ __inline; do |
| 16674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16675 | /* end confdefs.h. */ |
| 16676 | #ifndef __cplusplus |
| 16677 | typedef int foo_t; |
| 16678 | static $ac_kw foo_t static_foo (void) {return 0; } |
| 16679 | $ac_kw foo_t foo (void) {return 0; } |
| 16680 | #endif |
| 16681 | |
| 16682 | _ACEOF |
| 16683 | if ac_fn_c_try_compile "$LINENO" |
| 16684 | then : |
| 16685 | ac_cv_c_inline=$ac_kw |
| 16686 | fi |
| 16687 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16688 | test "$ac_cv_c_inline" != no && break |
| 16689 | done |
| 16690 | ;; |
| 16691 | esac |
| 16692 | fi |
| 16693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 16694 | printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 16695 | |
| 16696 | case $ac_cv_c_inline in |
| 16697 | inline | yes) ;; |
| 16698 | *) |
| 16699 | case $ac_cv_c_inline in |
| 16700 | no) ac_val=;; |
| 16701 | *) ac_val=$ac_cv_c_inline;; |
| 16702 | esac |
| 16703 | cat >>confdefs.h <<_ACEOF |
| 16704 | #ifndef __cplusplus |
| 16705 | #define inline $ac_val |
| 16706 | #endif |
| 16707 | _ACEOF |
| 16708 | ;; |
| 16709 | esac |
| 16710 | |
| 16711 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 16712 | if test "x$ac_cv_type_size_t" = xyes |
| 16713 | then : |
| 16714 | |
| 16715 | else case e in #( |
| 16716 | e) |
| 16717 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 16718 | ;; |
| 16719 | esac |
| 16720 | fi |
| 16721 | |
| 16722 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 16723 | case $ac_cv_c_int64_t in #( |
| 16724 | no|yes) ;; #( |
| 16725 | *) |
| 16726 | |
| 16727 | printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h |
| 16728 | ;; |
| 16729 | esac |
| 16730 | |
| 16731 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 16732 | case $ac_cv_c_uint64_t in #( |
| 16733 | no|yes) ;; #( |
| 16734 | *) |
| 16735 | |
| 16736 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h |
| 16737 | |
| 16738 | |
| 16739 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h |
| 16740 | ;; |
| 16741 | esac |
| 16742 | |
| 16743 | case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #( |
| 16744 | *':no:'*) : |
| 16745 | as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #( |
| 16746 | *) : |
| 16747 | ;; |
| 16748 | esac |
| 16749 | ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h> |
| 16750 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 16751 | if test "x$ac_cv_have_decl_isascii" = xyes |
| 16752 | then : |
| 16753 | ac_have_decl=1 |
| 16754 | else case e in #( |
| 16755 | e) ac_have_decl=0 ;; |
| 16756 | esac |
| 16757 | fi |
| 16758 | printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h |
| 16759 | |
| 16760 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
| 16761 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes |
| 16762 | then : |
| 16763 | |
| 16764 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h |
| 16765 | |
| 16766 | |
| 16767 | fi |
| 16768 | |
| 16769 | |
| 16770 | |
| 16771 | if test "x$cross_compiling" = xyes; then |
| 16772 | cross_TRUE= |
| 16773 | cross_FALSE='#' |
| 16774 | else |
| 16775 | cross_TRUE='#' |
| 16776 | cross_FALSE= |
| 16777 | fi |
| 16778 | |
| 16779 | |
| 16780 | |
| 16781 | |
| 16782 | |
| 16783 | |
| 16784 | |
| 16785 | |
| 16786 | ac_ext=cpp |
| 16787 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16788 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16789 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16790 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16791 | if test -z "$CXX"; then |
| 16792 | if test -n "$CCC"; then |
| 16793 | CXX=$CCC |
| 16794 | else |
| 16795 | if test -n "$ac_tool_prefix"; then |
| 16796 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 16797 | do |
| 16798 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 16799 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 16800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16801 | printf %s "checking for $ac_word... " >&6; } |
| 16802 | if test ${ac_cv_prog_CXX+y} |
| 16803 | then : |
| 16804 | printf %s "(cached) " >&6 |
| 16805 | else case e in #( |
| 16806 | e) if test -n "$CXX"; then |
| 16807 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 16808 | else |
| 16809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16810 | for as_dir in $PATH |
| 16811 | do |
| 16812 | IFS=$as_save_IFS |
| 16813 | case $as_dir in #((( |
| 16814 | '') as_dir=./ ;; |
| 16815 | */) ;; |
| 16816 | *) as_dir=$as_dir/ ;; |
| 16817 | esac |
| 16818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16819 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 16820 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 16821 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 16822 | break 2 |
| 16823 | fi |
| 16824 | done |
| 16825 | done |
| 16826 | IFS=$as_save_IFS |
| 16827 | |
| 16828 | fi ;; |
| 16829 | esac |
| 16830 | fi |
| 16831 | CXX=$ac_cv_prog_CXX |
| 16832 | if test -n "$CXX"; then |
| 16833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 16834 | printf "%s\n" "$CXX" >&6; } |
| 16835 | else |
| 16836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16837 | printf "%s\n" "no" >&6; } |
| 16838 | fi |
| 16839 | |
| 16840 | |
| 16841 | test -n "$CXX" && break |
| 16842 | done |
| 16843 | fi |
| 16844 | if test -z "$CXX"; then |
| 16845 | ac_ct_CXX=$CXX |
| 16846 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 16847 | do |
| 16848 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16849 | set dummy $ac_prog; ac_word=$2 |
| 16850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16851 | printf %s "checking for $ac_word... " >&6; } |
| 16852 | if test ${ac_cv_prog_ac_ct_CXX+y} |
| 16853 | then : |
| 16854 | printf %s "(cached) " >&6 |
| 16855 | else case e in #( |
| 16856 | e) if test -n "$ac_ct_CXX"; then |
| 16857 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 16858 | else |
| 16859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16860 | for as_dir in $PATH |
| 16861 | do |
| 16862 | IFS=$as_save_IFS |
| 16863 | case $as_dir in #((( |
| 16864 | '') as_dir=./ ;; |
| 16865 | */) ;; |
| 16866 | *) as_dir=$as_dir/ ;; |
| 16867 | esac |
| 16868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16869 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 16870 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 16871 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 16872 | break 2 |
| 16873 | fi |
| 16874 | done |
| 16875 | done |
| 16876 | IFS=$as_save_IFS |
| 16877 | |
| 16878 | fi ;; |
| 16879 | esac |
| 16880 | fi |
| 16881 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 16882 | if test -n "$ac_ct_CXX"; then |
| 16883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 16884 | printf "%s\n" "$ac_ct_CXX" >&6; } |
| 16885 | else |
| 16886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16887 | printf "%s\n" "no" >&6; } |
| 16888 | fi |
| 16889 | |
| 16890 | |
| 16891 | test -n "$ac_ct_CXX" && break |
| 16892 | done |
| 16893 | |
| 16894 | if test "x$ac_ct_CXX" = x; then |
| 16895 | CXX="g++" |
| 16896 | else |
| 16897 | case $cross_compiling:$ac_tool_warned in |
| 16898 | yes:) |
| 16899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16900 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16901 | ac_tool_warned=yes ;; |
| 16902 | esac |
| 16903 | CXX=$ac_ct_CXX |
| 16904 | fi |
| 16905 | fi |
| 16906 | |
| 16907 | fi |
| 16908 | fi |
| 16909 | # Provide some information about the compiler. |
| 16910 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 16911 | set X $ac_compile |
| 16912 | ac_compiler=$2 |
| 16913 | for ac_option in --version -v -V -qversion; do |
| 16914 | { { ac_try="$ac_compiler $ac_option >&5" |
| 16915 | case "(($ac_try" in |
| 16916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16917 | *) ac_try_echo=$ac_try;; |
| 16918 | esac |
| 16919 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 16920 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 16921 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 16922 | ac_status=$? |
| 16923 | if test -s conftest.err; then |
| 16924 | sed '10a\ |
| 16925 | ... rest of stderr output deleted ... |
| 16926 | 10q' conftest.err >conftest.er1 |
| 16927 | cat conftest.er1 >&5 |
| 16928 | fi |
| 16929 | rm -f conftest.er1 conftest.err |
| 16930 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16931 | test $ac_status = 0; } |
| 16932 | done |
| 16933 | |
| 16934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 16935 | printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 16936 | if test ${ac_cv_cxx_compiler_gnu+y} |
| 16937 | then : |
| 16938 | printf %s "(cached) " >&6 |
| 16939 | else case e in #( |
| 16940 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16941 | /* end confdefs.h. */ |
| 16942 | |
| 16943 | int |
| 16944 | main (void) |
| 16945 | { |
| 16946 | #ifndef __GNUC__ |
| 16947 | choke me |
| 16948 | #endif |
| 16949 | |
| 16950 | ; |
| 16951 | return 0; |
| 16952 | } |
| 16953 | _ACEOF |
| 16954 | if ac_fn_cxx_try_compile "$LINENO" |
| 16955 | then : |
| 16956 | ac_compiler_gnu=yes |
| 16957 | else case e in #( |
| 16958 | e) ac_compiler_gnu=no ;; |
| 16959 | esac |
| 16960 | fi |
| 16961 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16962 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 16963 | ;; |
| 16964 | esac |
| 16965 | fi |
| 16966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 16967 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
| 16968 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16969 | |
| 16970 | if test $ac_compiler_gnu = yes; then |
| 16971 | GXX=yes |
| 16972 | else |
| 16973 | GXX= |
| 16974 | fi |
| 16975 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 16976 | ac_save_CXXFLAGS=$CXXFLAGS |
| 16977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 16978 | printf %s "checking whether $CXX accepts -g... " >&6; } |
| 16979 | if test ${ac_cv_prog_cxx_g+y} |
| 16980 | then : |
| 16981 | printf %s "(cached) " >&6 |
| 16982 | else case e in #( |
| 16983 | e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 16984 | ac_cxx_werror_flag=yes |
| 16985 | ac_cv_prog_cxx_g=no |
| 16986 | CXXFLAGS="-g" |
| 16987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16988 | /* end confdefs.h. */ |
| 16989 | |
| 16990 | int |
| 16991 | main (void) |
| 16992 | { |
| 16993 | |
| 16994 | ; |
| 16995 | return 0; |
| 16996 | } |
| 16997 | _ACEOF |
| 16998 | if ac_fn_cxx_try_compile "$LINENO" |
| 16999 | then : |
| 17000 | ac_cv_prog_cxx_g=yes |
| 17001 | else case e in #( |
| 17002 | e) CXXFLAGS="" |
| 17003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17004 | /* end confdefs.h. */ |
| 17005 | |
| 17006 | int |
| 17007 | main (void) |
| 17008 | { |
| 17009 | |
| 17010 | ; |
| 17011 | return 0; |
| 17012 | } |
| 17013 | _ACEOF |
| 17014 | if ac_fn_cxx_try_compile "$LINENO" |
| 17015 | then : |
| 17016 | |
| 17017 | else case e in #( |
| 17018 | e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 17019 | CXXFLAGS="-g" |
| 17020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17021 | /* end confdefs.h. */ |
| 17022 | |
| 17023 | int |
| 17024 | main (void) |
| 17025 | { |
| 17026 | |
| 17027 | ; |
| 17028 | return 0; |
| 17029 | } |
| 17030 | _ACEOF |
| 17031 | if ac_fn_cxx_try_compile "$LINENO" |
| 17032 | then : |
| 17033 | ac_cv_prog_cxx_g=yes |
| 17034 | fi |
| 17035 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 17036 | esac |
| 17037 | fi |
| 17038 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 17039 | esac |
| 17040 | fi |
| 17041 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17042 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; |
| 17043 | esac |
| 17044 | fi |
| 17045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 17046 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
| 17047 | if test $ac_test_CXXFLAGS; then |
| 17048 | CXXFLAGS=$ac_save_CXXFLAGS |
| 17049 | elif test $ac_cv_prog_cxx_g = yes; then |
| 17050 | if test "$GXX" = yes; then |
| 17051 | CXXFLAGS="-g -O2" |
| 17052 | else |
| 17053 | CXXFLAGS="-g" |
| 17054 | fi |
| 17055 | else |
| 17056 | if test "$GXX" = yes; then |
| 17057 | CXXFLAGS="-O2" |
| 17058 | else |
| 17059 | CXXFLAGS= |
| 17060 | fi |
| 17061 | fi |
| 17062 | ac_prog_cxx_stdcxx=no |
| 17063 | if test x$ac_prog_cxx_stdcxx = xno |
| 17064 | then : |
| 17065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 17066 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 17067 | if test ${ac_cv_prog_cxx_cxx11+y} |
| 17068 | then : |
| 17069 | printf %s "(cached) " >&6 |
| 17070 | else case e in #( |
| 17071 | e) ac_cv_prog_cxx_cxx11=no |
| 17072 | ac_save_CXX=$CXX |
| 17073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17074 | /* end confdefs.h. */ |
| 17075 | $ac_cxx_conftest_cxx11_program |
| 17076 | _ACEOF |
| 17077 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 17078 | do |
| 17079 | CXX="$ac_save_CXX $ac_arg" |
| 17080 | if ac_fn_cxx_try_compile "$LINENO" |
| 17081 | then : |
| 17082 | ac_cv_prog_cxx_cxx11=$ac_arg |
| 17083 | fi |
| 17084 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 17085 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 17086 | done |
| 17087 | rm -f conftest.$ac_ext |
| 17088 | CXX=$ac_save_CXX ;; |
| 17089 | esac |
| 17090 | fi |
| 17091 | |
| 17092 | if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 17093 | then : |
| 17094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 17095 | printf "%s\n" "unsupported" >&6; } |
| 17096 | else case e in #( |
| 17097 | e) if test "x$ac_cv_prog_cxx_cxx11" = x |
| 17098 | then : |
| 17099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 17100 | printf "%s\n" "none needed" >&6; } |
| 17101 | else case e in #( |
| 17102 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 17103 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
| 17104 | CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; |
| 17105 | esac |
| 17106 | fi |
| 17107 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 17108 | ac_prog_cxx_stdcxx=cxx11 ;; |
| 17109 | esac |
| 17110 | fi |
| 17111 | fi |
| 17112 | if test x$ac_prog_cxx_stdcxx = xno |
| 17113 | then : |
| 17114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 17115 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 17116 | if test ${ac_cv_prog_cxx_cxx98+y} |
| 17117 | then : |
| 17118 | printf %s "(cached) " >&6 |
| 17119 | else case e in #( |
| 17120 | e) ac_cv_prog_cxx_cxx98=no |
| 17121 | ac_save_CXX=$CXX |
| 17122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17123 | /* end confdefs.h. */ |
| 17124 | $ac_cxx_conftest_cxx98_program |
| 17125 | _ACEOF |
| 17126 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 17127 | do |
| 17128 | CXX="$ac_save_CXX $ac_arg" |
| 17129 | if ac_fn_cxx_try_compile "$LINENO" |
| 17130 | then : |
| 17131 | ac_cv_prog_cxx_cxx98=$ac_arg |
| 17132 | fi |
| 17133 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 17134 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 17135 | done |
| 17136 | rm -f conftest.$ac_ext |
| 17137 | CXX=$ac_save_CXX ;; |
| 17138 | esac |
| 17139 | fi |
| 17140 | |
| 17141 | if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 17142 | then : |
| 17143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 17144 | printf "%s\n" "unsupported" >&6; } |
| 17145 | else case e in #( |
| 17146 | e) if test "x$ac_cv_prog_cxx_cxx98" = x |
| 17147 | then : |
| 17148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 17149 | printf "%s\n" "none needed" >&6; } |
| 17150 | else case e in #( |
| 17151 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 17152 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
| 17153 | CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; |
| 17154 | esac |
| 17155 | fi |
| 17156 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 17157 | ac_prog_cxx_stdcxx=cxx98 ;; |
| 17158 | esac |
| 17159 | fi |
| 17160 | fi |
| 17161 | |
| 17162 | ac_ext=c |
| 17163 | ac_cpp='$CPP $CPPFLAGS' |
| 17164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17167 | |
| 17168 | depcc="$CXX" am_compiler_list= |
| 17169 | |
| 17170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 17171 | printf %s "checking dependency style of $depcc... " >&6; } |
| 17172 | if test ${am_cv_CXX_dependencies_compiler_type+y} |
| 17173 | then : |
| 17174 | printf %s "(cached) " >&6 |
| 17175 | else case e in #( |
| 17176 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 17177 | # We make a subdir and do the tests there. Otherwise we can end up |
| 17178 | # making bogus files that we don't know about and never remove. For |
| 17179 | # instance it was reported that on HP-UX the gcc test will end up |
| 17180 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 17181 | # in D". |
| 17182 | rm -rf conftest.dir |
| 17183 | mkdir conftest.dir |
| 17184 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 17185 | # using a relative directory. |
| 17186 | cp "$am_depcomp" conftest.dir |
| 17187 | cd conftest.dir |
| 17188 | # We will build objects and dependencies in a subdirectory because |
| 17189 | # it helps to detect inapplicable dependency modes. For instance |
| 17190 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 17191 | # side effect of compilation, but ICC will put the dependencies in |
| 17192 | # the current directory while Tru64 will put them in the object |
| 17193 | # directory. |
| 17194 | mkdir sub |
| 17195 | |
| 17196 | am_cv_CXX_dependencies_compiler_type=none |
| 17197 | if test "$am_compiler_list" = ""; then |
| 17198 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 17199 | fi |
| 17200 | am__universal=false |
| 17201 | case " $depcc " in #( |
| 17202 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 17203 | esac |
| 17204 | |
| 17205 | for depmode in $am_compiler_list; do |
| 17206 | # Setup a source with many dependencies, because some compilers |
| 17207 | # like to wrap large dependency lists on column 80 (with \), and |
| 17208 | # we should not choose a depcomp mode which is confused by this. |
| 17209 | # |
| 17210 | # We need to recreate these files for each test, as the compiler may |
| 17211 | # overwrite some of them when testing with obscure command lines. |
| 17212 | # This happens at least with the AIX C compiler. |
| 17213 | : > sub/conftest.c |
| 17214 | for i in 1 2 3 4 5 6; do |
| 17215 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 17216 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 17217 | # Solaris 10 /bin/sh. |
| 17218 | echo '/* dummy */' > sub/conftst$i.h |
| 17219 | done |
| 17220 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 17221 | |
| 17222 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 17223 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 17224 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 17225 | # versions had trouble with output in subdirs. |
| 17226 | am__obj=sub/conftest.${OBJEXT-o} |
| 17227 | am__minus_obj="-o $am__obj" |
| 17228 | case $depmode in |
| 17229 | gcc) |
| 17230 | # This depmode causes a compiler race in universal mode. |
| 17231 | test "$am__universal" = false || continue |
| 17232 | ;; |
| 17233 | nosideeffect) |
| 17234 | # After this tag, mechanisms are not by side-effect, so they'll |
| 17235 | # only be used when explicitly requested. |
| 17236 | if test "x$enable_dependency_tracking" = xyes; then |
| 17237 | continue |
| 17238 | else |
| 17239 | break |
| 17240 | fi |
| 17241 | ;; |
| 17242 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 17243 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 17244 | # not run yet. These depmodes are late enough in the game, and |
| 17245 | # so weak that their functioning should not be impacted. |
| 17246 | am__obj=conftest.${OBJEXT-o} |
| 17247 | am__minus_obj= |
| 17248 | ;; |
| 17249 | none) break ;; |
| 17250 | esac |
| 17251 | if depmode=$depmode \ |
| 17252 | source=sub/conftest.c object=$am__obj \ |
| 17253 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 17254 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 17255 | >/dev/null 2>conftest.err && |
| 17256 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 17257 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 17258 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 17259 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 17260 | # icc doesn't choke on unknown options, it will just issue warnings |
| 17261 | # or remarks (even with -Werror). So we grep stderr for any message |
| 17262 | # that says an option was ignored or not supported. |
| 17263 | # When given -MP, icc 7.0 and 7.1 complain thus: |
| 17264 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 17265 | # The diagnosis changed in icc 8.0: |
| 17266 | # icc: Command line remark: option '-MP' not supported |
| 17267 | if (grep 'ignoring option' conftest.err || |
| 17268 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 17269 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 17270 | break |
| 17271 | fi |
| 17272 | fi |
| 17273 | done |
| 17274 | |
| 17275 | cd .. |
| 17276 | rm -rf conftest.dir |
| 17277 | else |
| 17278 | am_cv_CXX_dependencies_compiler_type=none |
| 17279 | fi |
| 17280 | ;; |
| 17281 | esac |
| 17282 | fi |
| 17283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 17284 | printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 17285 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 17286 | |
| 17287 | if |
| 17288 | test "x$enable_dependency_tracking" != xno \ |
| 17289 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 17290 | am__fastdepCXX_TRUE= |
| 17291 | am__fastdepCXX_FALSE='#' |
| 17292 | else |
| 17293 | am__fastdepCXX_TRUE='#' |
| 17294 | am__fastdepCXX_FALSE= |
| 17295 | fi |
| 17296 | |
| 17297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5 |
| 17298 | printf %s "checking what warning flags to pass to the C++ compiler... " >&6; } |
| 17299 | if test ${kpse_cv_warning_cxxflags+y} |
| 17300 | then : |
| 17301 | printf %s "(cached) " >&6 |
| 17302 | else case e in #( |
| 17303 | e) if test "x$GXX" = xyes; then |
| 17304 | kpse_cv_warning_cxxflags= |
| 17305 | kpse_warn_strings="-Wno-write-strings" |
| 17306 | if test "x$enable_compiler_warnings" != xno; then |
| 17307 | kpse_cv_warning_cxxflags="-Wreturn-type" |
| 17308 | case `$CXX -dumpversion` in #( |
| 17309 | 3.* | 4.[012345].*) : |
| 17310 | kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #( |
| 17311 | *) : |
| 17312 | ;; |
| 17313 | esac |
| 17314 | case `$CXX -dumpversion` in #( |
| 17315 | 3.[234].* | 4.* | 5.*) : |
| 17316 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #( |
| 17317 | *) : |
| 17318 | ;; |
| 17319 | esac |
| 17320 | if test "x$enable_compiler_warnings" != xmin; then |
| 17321 | kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags" |
| 17322 | if test "x$enable_compiler_warnings" != xyes; then |
| 17323 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" |
| 17324 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align" |
| 17325 | kpse_warn_strings="-Wwrite-strings" |
| 17326 | if test "x$enable_compiler_warnings" != xmax; then |
| 17327 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow" |
| 17328 | fi |
| 17329 | fi |
| 17330 | fi |
| 17331 | fi |
| 17332 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings" |
| 17333 | elif test "x$enable_compiler_warnings" = xno; then |
| 17334 | kpse_cv_warning_cxxflags= |
| 17335 | else |
| 17336 | kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers |
| 17337 | fi ;; |
| 17338 | esac |
| 17339 | fi |
| 17340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5 |
| 17341 | printf "%s\n" "$kpse_cv_warning_cxxflags" >&6; } |
| 17342 | WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags |
| 17343 | |
| 17344 | |
| 17345 | |
| 17346 | |
| 17347 | |
| 17348 | func_stripname_cnf () |
| 17349 | { |
| 17350 | case $2 in |
| 17351 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
| 17352 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
| 17353 | esac |
| 17354 | } # func_stripname_cnf |
| 17355 | |
| 17356 | if test -n "$CXX" && ( test no != "$CXX" && |
| 17357 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
| 17358 | (test g++ != "$CXX"))); then |
| 17359 | ac_ext=cpp |
| 17360 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17361 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17362 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17363 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 17365 | printf %s "checking how to run the C++ preprocessor... " >&6; } |
| 17366 | if test -z "$CXXCPP"; then |
| 17367 | if test ${ac_cv_prog_CXXCPP+y} |
| 17368 | then : |
| 17369 | printf %s "(cached) " >&6 |
| 17370 | else case e in #( |
| 17371 | e) # Double quotes because $CXX needs to be expanded |
| 17372 | for CXXCPP in "$CXX -E" cpp /lib/cpp |
| 17373 | do |
| 17374 | ac_preproc_ok=false |
| 17375 | for ac_cxx_preproc_warn_flag in '' yes |
| 17376 | do |
| 17377 | # Use a header file that comes with gcc, so configuring glibc |
| 17378 | # with a fresh cross-compiler works. |
| 17379 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 17380 | # not just through cpp. "Syntax error" is here to catch this case. |
| 17381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17382 | /* end confdefs.h. */ |
| 17383 | #include <limits.h> |
| 17384 | Syntax error |
| 17385 | _ACEOF |
| 17386 | if ac_fn_cxx_try_cpp "$LINENO" |
| 17387 | then : |
| 17388 | |
| 17389 | else case e in #( |
| 17390 | e) # Broken: fails on valid input. |
| 17391 | continue ;; |
| 17392 | esac |
| 17393 | fi |
| 17394 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17395 | |
| 17396 | # OK, works on sane cases. Now check whether nonexistent headers |
| 17397 | # can be detected and how. |
| 17398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17399 | /* end confdefs.h. */ |
| 17400 | #include <ac_nonexistent.h> |
| 17401 | _ACEOF |
| 17402 | if ac_fn_cxx_try_cpp "$LINENO" |
| 17403 | then : |
| 17404 | # Broken: success on invalid input. |
| 17405 | continue |
| 17406 | else case e in #( |
| 17407 | e) # Passes both tests. |
| 17408 | ac_preproc_ok=: |
| 17409 | break ;; |
| 17410 | esac |
| 17411 | fi |
| 17412 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17413 | |
| 17414 | done |
| 17415 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 17416 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 17417 | if $ac_preproc_ok |
| 17418 | then : |
| 17419 | break |
| 17420 | fi |
| 17421 | |
| 17422 | done |
| 17423 | ac_cv_prog_CXXCPP=$CXXCPP |
| 17424 | ;; |
| 17425 | esac |
| 17426 | fi |
| 17427 | CXXCPP=$ac_cv_prog_CXXCPP |
| 17428 | else |
| 17429 | ac_cv_prog_CXXCPP=$CXXCPP |
| 17430 | fi |
| 17431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 17432 | printf "%s\n" "$CXXCPP" >&6; } |
| 17433 | ac_preproc_ok=false |
| 17434 | for ac_cxx_preproc_warn_flag in '' yes |
| 17435 | do |
| 17436 | # Use a header file that comes with gcc, so configuring glibc |
| 17437 | # with a fresh cross-compiler works. |
| 17438 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 17439 | # not just through cpp. "Syntax error" is here to catch this case. |
| 17440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17441 | /* end confdefs.h. */ |
| 17442 | #include <limits.h> |
| 17443 | Syntax error |
| 17444 | _ACEOF |
| 17445 | if ac_fn_cxx_try_cpp "$LINENO" |
| 17446 | then : |
| 17447 | |
| 17448 | else case e in #( |
| 17449 | e) # Broken: fails on valid input. |
| 17450 | continue ;; |
| 17451 | esac |
| 17452 | fi |
| 17453 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17454 | |
| 17455 | # OK, works on sane cases. Now check whether nonexistent headers |
| 17456 | # can be detected and how. |
| 17457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17458 | /* end confdefs.h. */ |
| 17459 | #include <ac_nonexistent.h> |
| 17460 | _ACEOF |
| 17461 | if ac_fn_cxx_try_cpp "$LINENO" |
| 17462 | then : |
| 17463 | # Broken: success on invalid input. |
| 17464 | continue |
| 17465 | else case e in #( |
| 17466 | e) # Passes both tests. |
| 17467 | ac_preproc_ok=: |
| 17468 | break ;; |
| 17469 | esac |
| 17470 | fi |
| 17471 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17472 | |
| 17473 | done |
| 17474 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 17475 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 17476 | if $ac_preproc_ok |
| 17477 | then : |
| 17478 | |
| 17479 | else case e in #( |
| 17480 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 17481 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 17482 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 17483 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 17484 | esac |
| 17485 | fi |
| 17486 | |
| 17487 | ac_ext=c |
| 17488 | ac_cpp='$CPP $CPPFLAGS' |
| 17489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17492 | |
| 17493 | else |
| 17494 | _lt_caught_CXX_error=yes |
| 17495 | fi |
| 17496 | |
| 17497 | ac_ext=cpp |
| 17498 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17499 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17500 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17501 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17502 | |
| 17503 | archive_cmds_need_lc_CXX=no |
| 17504 | allow_undefined_flag_CXX= |
| 17505 | always_export_symbols_CXX=no |
| 17506 | archive_expsym_cmds_CXX= |
| 17507 | compiler_needs_object_CXX=no |
| 17508 | export_dynamic_flag_spec_CXX= |
| 17509 | hardcode_direct_CXX=no |
| 17510 | hardcode_direct_absolute_CXX=no |
| 17511 | hardcode_libdir_flag_spec_CXX= |
| 17512 | hardcode_libdir_separator_CXX= |
| 17513 | hardcode_minus_L_CXX=no |
| 17514 | hardcode_shlibpath_var_CXX=unsupported |
| 17515 | hardcode_automatic_CXX=no |
| 17516 | inherit_rpath_CXX=no |
| 17517 | module_cmds_CXX= |
| 17518 | module_expsym_cmds_CXX= |
| 17519 | link_all_deplibs_CXX=unknown |
| 17520 | old_archive_cmds_CXX=$old_archive_cmds |
| 17521 | reload_flag_CXX=$reload_flag |
| 17522 | reload_cmds_CXX=$reload_cmds |
| 17523 | no_undefined_flag_CXX= |
| 17524 | whole_archive_flag_spec_CXX= |
| 17525 | enable_shared_with_static_runtimes_CXX=no |
| 17526 | |
| 17527 | # Source file extension for C++ test sources. |
| 17528 | ac_ext=cpp |
| 17529 | |
| 17530 | # Object file extension for compiled C++ test sources. |
| 17531 | objext=o |
| 17532 | objext_CXX=$objext |
| 17533 | |
| 17534 | # No sense in running all these tests if we already determined that |
| 17535 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 17536 | # are currently assumed to apply to all compilers on this platform, |
| 17537 | # and will be corrupted by setting them based on a non-working compiler. |
| 17538 | if test yes != "$_lt_caught_CXX_error"; then |
| 17539 | # Code to be used in simple compile tests |
| 17540 | lt_simple_compile_test_code="int some_variable = 0;" |
| 17541 | |
| 17542 | # Code to be used in simple link tests |
| 17543 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 17544 | |
| 17545 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17546 | |
| 17547 | |
| 17548 | |
| 17549 | |
| 17550 | |
| 17551 | |
| 17552 | # If no C compiler was specified, use CC. |
| 17553 | LTCC=${LTCC-"$CC"} |
| 17554 | |
| 17555 | # If no C compiler flags were specified, use CFLAGS. |
| 17556 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17557 | |
| 17558 | # Allow CC to be a program name with arguments. |
| 17559 | compiler=$CC |
| 17560 | |
| 17561 | |
| 17562 | # save warnings/boilerplate of simple test code |
| 17563 | ac_outfile=conftest.$ac_objext |
| 17564 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17565 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17566 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17567 | $RM conftest* |
| 17568 | |
| 17569 | ac_outfile=conftest.$ac_objext |
| 17570 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17571 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17572 | _lt_linker_boilerplate=`cat conftest.err` |
| 17573 | $RM -r conftest* |
| 17574 | |
| 17575 | |
| 17576 | # Allow CC to be a program name with arguments. |
| 17577 | lt_save_CC=$CC |
| 17578 | lt_save_CFLAGS=$CFLAGS |
| 17579 | lt_save_LD=$LD |
| 17580 | lt_save_GCC=$GCC |
| 17581 | GCC=$GXX |
| 17582 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17583 | lt_save_path_LD=$lt_cv_path_LD |
| 17584 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17585 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17586 | else |
| 17587 | $as_unset lt_cv_prog_gnu_ld |
| 17588 | fi |
| 17589 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17590 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17591 | else |
| 17592 | $as_unset lt_cv_path_LD |
| 17593 | fi |
| 17594 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17595 | CC=${CXX-"c++"} |
| 17596 | CFLAGS=$CXXFLAGS |
| 17597 | compiler=$CC |
| 17598 | compiler_CXX=$CC |
| 17599 | func_cc_basename $compiler |
| 17600 | cc_basename=$func_cc_basename_result |
| 17601 | |
| 17602 | |
| 17603 | if test -n "$compiler"; then |
| 17604 | # We don't want -fno-exception when compiling C++ code, so set the |
| 17605 | # no_builtin_flag separately |
| 17606 | if test yes = "$GXX"; then |
| 17607 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17608 | else |
| 17609 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17610 | fi |
| 17611 | |
| 17612 | if test yes = "$GXX"; then |
| 17613 | # Set up default GNU C++ configuration |
| 17614 | |
| 17615 | |
| 17616 | |
| 17617 | # Check whether --with-gnu-ld was given. |
| 17618 | if test ${with_gnu_ld+y} |
| 17619 | then : |
| 17620 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 17621 | else case e in #( |
| 17622 | e) with_gnu_ld=no ;; |
| 17623 | esac |
| 17624 | fi |
| 17625 | |
| 17626 | ac_prog=ld |
| 17627 | if test yes = "$GCC"; then |
| 17628 | # Check if gcc -print-prog-name=ld gives a path. |
| 17629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 17630 | printf %s "checking for ld used by $CC... " >&6; } |
| 17631 | case $host in |
| 17632 | *-*-mingw* | *-*-windows*) |
| 17633 | # gcc leaves a trailing carriage return, which upsets mingw |
| 17634 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17635 | *) |
| 17636 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17637 | esac |
| 17638 | case $ac_prog in |
| 17639 | # Accept absolute paths. |
| 17640 | [\\/]* | ?:[\\/]*) |
| 17641 | re_direlt='/[^/][^/]*/\.\./' |
| 17642 | # Canonicalize the pathname of ld |
| 17643 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 17644 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 17645 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 17646 | done |
| 17647 | test -z "$LD" && LD=$ac_prog |
| 17648 | ;; |
| 17649 | "") |
| 17650 | # If it fails, then pretend we aren't using GCC. |
| 17651 | ac_prog=ld |
| 17652 | ;; |
| 17653 | *) |
| 17654 | # If it is relative, then search for the first ld in PATH. |
| 17655 | with_gnu_ld=unknown |
| 17656 | ;; |
| 17657 | esac |
| 17658 | elif test yes = "$with_gnu_ld"; then |
| 17659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 17660 | printf %s "checking for GNU ld... " >&6; } |
| 17661 | else |
| 17662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 17663 | printf %s "checking for non-GNU ld... " >&6; } |
| 17664 | fi |
| 17665 | if test ${lt_cv_path_LD+y} |
| 17666 | then : |
| 17667 | printf %s "(cached) " >&6 |
| 17668 | else case e in #( |
| 17669 | e) if test -z "$LD"; then |
| 17670 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 17671 | for ac_dir in $PATH; do |
| 17672 | IFS=$lt_save_ifs |
| 17673 | test -z "$ac_dir" && ac_dir=. |
| 17674 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17675 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 17676 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 17677 | # but apparently some variants of GNU ld only accept -v. |
| 17678 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17679 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17680 | *GNU* | *'with BFD'*) |
| 17681 | test no != "$with_gnu_ld" && break |
| 17682 | ;; |
| 17683 | *) |
| 17684 | test yes != "$with_gnu_ld" && break |
| 17685 | ;; |
| 17686 | esac |
| 17687 | fi |
| 17688 | done |
| 17689 | IFS=$lt_save_ifs |
| 17690 | else |
| 17691 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 17692 | fi ;; |
| 17693 | esac |
| 17694 | fi |
| 17695 | |
| 17696 | LD=$lt_cv_path_LD |
| 17697 | if test -n "$LD"; then |
| 17698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 17699 | printf "%s\n" "$LD" >&6; } |
| 17700 | else |
| 17701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17702 | printf "%s\n" "no" >&6; } |
| 17703 | fi |
| 17704 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 17705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 17706 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 17707 | if test ${lt_cv_prog_gnu_ld+y} |
| 17708 | then : |
| 17709 | printf %s "(cached) " >&6 |
| 17710 | else case e in #( |
| 17711 | e) # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 17712 | case `$LD -v 2>&1 </dev/null` in |
| 17713 | *GNU* | *'with BFD'*) |
| 17714 | lt_cv_prog_gnu_ld=yes |
| 17715 | ;; |
| 17716 | *) |
| 17717 | lt_cv_prog_gnu_ld=no |
| 17718 | ;; |
| 17719 | esac ;; |
| 17720 | esac |
| 17721 | fi |
| 17722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 17723 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 17724 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17725 | |
| 17726 | |
| 17727 | |
| 17728 | |
| 17729 | |
| 17730 | |
| 17731 | |
| 17732 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17733 | # archiving commands below assume that GNU ld is being used. |
| 17734 | if test yes = "$with_gnu_ld"; then |
| 17735 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17736 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 17737 | |
| 17738 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 17739 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 17740 | |
| 17741 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17742 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17743 | # investigate it a little bit more. (MM) |
| 17744 | wlarc='$wl' |
| 17745 | |
| 17746 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17747 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 17748 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 17749 | else |
| 17750 | whole_archive_flag_spec_CXX= |
| 17751 | fi |
| 17752 | else |
| 17753 | with_gnu_ld=no |
| 17754 | wlarc= |
| 17755 | |
| 17756 | # A generic and very simple default shared library creation |
| 17757 | # command for GNU C++ for the case where it uses the native |
| 17758 | # linker, instead of GNU ld. If possible, this setting should |
| 17759 | # overridden to take advantage of the native linker features on |
| 17760 | # the platform it is being used on. |
| 17761 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17762 | fi |
| 17763 | |
| 17764 | # Commands to make compiler produce verbose output that lists |
| 17765 | # what "hidden" libraries, object files and flags are used when |
| 17766 | # linking a shared library. |
| 17767 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 17768 | |
| 17769 | else |
| 17770 | GXX=no |
| 17771 | with_gnu_ld=no |
| 17772 | wlarc= |
| 17773 | fi |
| 17774 | |
| 17775 | # PORTME: fill in a description of your system's C++ link characteristics |
| 17776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17777 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 17778 | ld_shlibs_CXX=yes |
| 17779 | case $host_os in |
| 17780 | aix3*) |
| 17781 | # FIXME: insert proper C++ library support |
| 17782 | ld_shlibs_CXX=no |
| 17783 | ;; |
| 17784 | aix[4-9]*) |
| 17785 | if test ia64 = "$host_cpu"; then |
| 17786 | # On IA64, the linker does run time linking by default, so we don't |
| 17787 | # have to do anything special. |
| 17788 | aix_use_runtimelinking=no |
| 17789 | exp_sym_flag='-Bexport' |
| 17790 | no_entry_flag= |
| 17791 | else |
| 17792 | aix_use_runtimelinking=no |
| 17793 | |
| 17794 | # Test if we are trying to use run time linking or normal |
| 17795 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17796 | # have runtime linking enabled, and use it for executables. |
| 17797 | # For shared libraries, we enable/disable runtime linking |
| 17798 | # depending on the kind of the shared library created - |
| 17799 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 17800 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 17801 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 17802 | # lib.a static archive |
| 17803 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 17804 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 17805 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 17806 | # lib.a(lib.so.V) shared, rtl:no |
| 17807 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 17808 | # lib.a static archive |
| 17809 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 17810 | for ld_flag in $LDFLAGS; do |
| 17811 | case $ld_flag in |
| 17812 | *-brtl*) |
| 17813 | aix_use_runtimelinking=yes |
| 17814 | break |
| 17815 | ;; |
| 17816 | esac |
| 17817 | done |
| 17818 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 17819 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 17820 | # so we don't have lib.a shared libs to link our executables. |
| 17821 | # We have to force runtime linking in this case. |
| 17822 | aix_use_runtimelinking=yes |
| 17823 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 17824 | fi |
| 17825 | ;; |
| 17826 | esac |
| 17827 | |
| 17828 | exp_sym_flag='-bexport' |
| 17829 | no_entry_flag='-bnoentry' |
| 17830 | fi |
| 17831 | |
| 17832 | # When large executables or shared objects are built, AIX ld can |
| 17833 | # have problems creating the table of contents. If linking a library |
| 17834 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17835 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17836 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17837 | |
| 17838 | archive_cmds_CXX='' |
| 17839 | hardcode_direct_CXX=yes |
| 17840 | hardcode_direct_absolute_CXX=yes |
| 17841 | hardcode_libdir_separator_CXX=':' |
| 17842 | link_all_deplibs_CXX=yes |
| 17843 | file_list_spec_CXX='$wl-f,' |
| 17844 | case $with_aix_soname,$aix_use_runtimelinking in |
| 17845 | aix,*) ;; # no import file |
| 17846 | svr4,* | *,yes) # use import file |
| 17847 | # The Import File defines what to hardcode. |
| 17848 | hardcode_direct_CXX=no |
| 17849 | hardcode_direct_absolute_CXX=no |
| 17850 | ;; |
| 17851 | esac |
| 17852 | |
| 17853 | if test yes = "$GXX"; then |
| 17854 | case $host_os in aix4.[012]|aix4.[012].*) |
| 17855 | # We only want to do this on AIX 4.2 and lower, the check |
| 17856 | # below for broken collect2 doesn't work under 4.3+ |
| 17857 | collect2name=`$CC -print-prog-name=collect2` |
| 17858 | if test -f "$collect2name" && |
| 17859 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 17860 | then |
| 17861 | # We have reworked collect2 |
| 17862 | : |
| 17863 | else |
| 17864 | # We have old collect2 |
| 17865 | hardcode_direct_CXX=unsupported |
| 17866 | # It fails to find uninstalled libraries when the uninstalled |
| 17867 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17868 | # to unsupported forces relinking |
| 17869 | hardcode_minus_L_CXX=yes |
| 17870 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17871 | hardcode_libdir_separator_CXX= |
| 17872 | fi |
| 17873 | esac |
| 17874 | shared_flag='-shared' |
| 17875 | if test yes = "$aix_use_runtimelinking"; then |
| 17876 | shared_flag=$shared_flag' $wl-G' |
| 17877 | fi |
| 17878 | # Need to ensure runtime linking is disabled for the traditional |
| 17879 | # shared library, or the linker may eventually find shared libraries |
| 17880 | # /with/ Import File - we do not want to mix them. |
| 17881 | shared_flag_aix='-shared' |
| 17882 | shared_flag_svr4='-shared $wl-G' |
| 17883 | else |
| 17884 | # not using gcc |
| 17885 | if test ia64 = "$host_cpu"; then |
| 17886 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17887 | # chokes on -Wl,-G. The following line is correct: |
| 17888 | shared_flag='-G' |
| 17889 | else |
| 17890 | if test yes = "$aix_use_runtimelinking"; then |
| 17891 | shared_flag='$wl-G' |
| 17892 | else |
| 17893 | shared_flag='$wl-bM:SRE' |
| 17894 | fi |
| 17895 | shared_flag_aix='$wl-bM:SRE' |
| 17896 | shared_flag_svr4='$wl-G' |
| 17897 | fi |
| 17898 | fi |
| 17899 | |
| 17900 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
| 17901 | # It seems that -bexpall does not export symbols beginning with |
| 17902 | # underscore (_), so it is better to generate a list of symbols to |
| 17903 | # export. |
| 17904 | always_export_symbols_CXX=yes |
| 17905 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 17906 | # Warning - without using the other runtime loading flags (-brtl), |
| 17907 | # -berok will link without error, but may produce a broken library. |
| 17908 | # The "-G" linker flag allows undefined symbols. |
| 17909 | no_undefined_flag_CXX='-bernotok' |
| 17910 | # Determine the default libpath from the value encoded in an empty |
| 17911 | # executable. |
| 17912 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 17913 | aix_libpath=$lt_cv_aix_libpath |
| 17914 | else |
| 17915 | if test ${lt_cv_aix_libpath__CXX+y} |
| 17916 | then : |
| 17917 | printf %s "(cached) " >&6 |
| 17918 | else case e in #( |
| 17919 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17920 | /* end confdefs.h. */ |
| 17921 | |
| 17922 | int |
| 17923 | main (void) |
| 17924 | { |
| 17925 | |
| 17926 | ; |
| 17927 | return 0; |
| 17928 | } |
| 17929 | _ACEOF |
| 17930 | if ac_fn_cxx_try_link "$LINENO" |
| 17931 | then : |
| 17932 | |
| 17933 | lt_aix_libpath_sed=' |
| 17934 | /Import File Strings/,/^$/ { |
| 17935 | /^0/ { |
| 17936 | s/^0 *\([^ ]*\) *$/\1/ |
| 17937 | p |
| 17938 | } |
| 17939 | }' |
| 17940 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17941 | # Check for a 64-bit object if we didn't find anything. |
| 17942 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17943 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17944 | fi |
| 17945 | fi |
| 17946 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17947 | conftest$ac_exeext conftest.$ac_ext |
| 17948 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17949 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 17950 | fi |
| 17951 | ;; |
| 17952 | esac |
| 17953 | fi |
| 17954 | |
| 17955 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17956 | fi |
| 17957 | |
| 17958 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 17959 | |
| 17960 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 17961 | else |
| 17962 | if test ia64 = "$host_cpu"; then |
| 17963 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' |
| 17964 | allow_undefined_flag_CXX="-z nodefs" |
| 17965 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 17966 | else |
| 17967 | # Determine the default libpath from the value encoded in an |
| 17968 | # empty executable. |
| 17969 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 17970 | aix_libpath=$lt_cv_aix_libpath |
| 17971 | else |
| 17972 | if test ${lt_cv_aix_libpath__CXX+y} |
| 17973 | then : |
| 17974 | printf %s "(cached) " >&6 |
| 17975 | else case e in #( |
| 17976 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17977 | /* end confdefs.h. */ |
| 17978 | |
| 17979 | int |
| 17980 | main (void) |
| 17981 | { |
| 17982 | |
| 17983 | ; |
| 17984 | return 0; |
| 17985 | } |
| 17986 | _ACEOF |
| 17987 | if ac_fn_cxx_try_link "$LINENO" |
| 17988 | then : |
| 17989 | |
| 17990 | lt_aix_libpath_sed=' |
| 17991 | /Import File Strings/,/^$/ { |
| 17992 | /^0/ { |
| 17993 | s/^0 *\([^ ]*\) *$/\1/ |
| 17994 | p |
| 17995 | } |
| 17996 | }' |
| 17997 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17998 | # Check for a 64-bit object if we didn't find anything. |
| 17999 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 18000 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 18001 | fi |
| 18002 | fi |
| 18003 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18004 | conftest$ac_exeext conftest.$ac_ext |
| 18005 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 18006 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 18007 | fi |
| 18008 | ;; |
| 18009 | esac |
| 18010 | fi |
| 18011 | |
| 18012 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 18013 | fi |
| 18014 | |
| 18015 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 18016 | # Warning - without using the other run time loading flags, |
| 18017 | # -berok will link without error, but may produce a broken library. |
| 18018 | no_undefined_flag_CXX=' $wl-bernotok' |
| 18019 | allow_undefined_flag_CXX=' $wl-berok' |
| 18020 | if test yes = "$with_gnu_ld"; then |
| 18021 | # We only use this code for GNU lds that support --whole-archive. |
| 18022 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 18023 | else |
| 18024 | # Exported symbols can be pulled into shared objects from archives |
| 18025 | whole_archive_flag_spec_CXX='$convenience' |
| 18026 | fi |
| 18027 | archive_cmds_need_lc_CXX=yes |
| 18028 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 18029 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 18030 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 18031 | if test svr4 != "$with_aix_soname"; then |
| 18032 | # This is similar to how AIX traditionally builds its shared |
| 18033 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
| 18034 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 18035 | fi |
| 18036 | if test aix != "$with_aix_soname"; then |
| 18037 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 18038 | else |
| 18039 | # used by -dlpreopen to get the symbols |
| 18040 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 18041 | fi |
| 18042 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' |
| 18043 | fi |
| 18044 | fi |
| 18045 | ;; |
| 18046 | |
| 18047 | beos*) |
| 18048 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 18049 | allow_undefined_flag_CXX=unsupported |
| 18050 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 18051 | # support --undefined. This deserves some investigation. FIXME |
| 18052 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18053 | else |
| 18054 | ld_shlibs_CXX=no |
| 18055 | fi |
| 18056 | ;; |
| 18057 | |
| 18058 | chorus*) |
| 18059 | case $cc_basename in |
| 18060 | *) |
| 18061 | # FIXME: insert proper C++ library support |
| 18062 | ld_shlibs_CXX=no |
| 18063 | ;; |
| 18064 | esac |
| 18065 | ;; |
| 18066 | |
| 18067 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 18068 | case $GXX,$cc_basename in |
| 18069 | ,cl* | no,cl* | ,icl* | no,icl*) |
| 18070 | # Native MSVC or ICC |
| 18071 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 18072 | # no search path for DLLs. |
| 18073 | hardcode_libdir_flag_spec_CXX=' ' |
| 18074 | allow_undefined_flag_CXX=unsupported |
| 18075 | always_export_symbols_CXX=yes |
| 18076 | file_list_spec_CXX='@' |
| 18077 | # Tell ltmain to make .lib files, not .a files. |
| 18078 | libext=lib |
| 18079 | # Tell ltmain to make .dll files, not .so files. |
| 18080 | shrext_cmds=.dll |
| 18081 | # FIXME: Setting linknames here is a bad hack. |
| 18082 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 18083 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 18084 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 18085 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 18086 | else |
| 18087 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 18088 | fi~ |
| 18089 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 18090 | linknames=' |
| 18091 | # The linker will not automatically build a static lib if we build a DLL. |
| 18092 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 18093 | enable_shared_with_static_runtimes_CXX=yes |
| 18094 | # Don't use ranlib |
| 18095 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 18096 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 18097 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 18098 | case $lt_outputfile in |
| 18099 | *.exe|*.EXE) ;; |
| 18100 | *) |
| 18101 | lt_outputfile=$lt_outputfile.exe |
| 18102 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 18103 | ;; |
| 18104 | esac~ |
| 18105 | func_to_tool_file "$lt_outputfile"~ |
| 18106 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 18107 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 18108 | $RM "$lt_outputfile.manifest"; |
| 18109 | fi' |
| 18110 | ;; |
| 18111 | *) |
| 18112 | # g++ |
| 18113 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18114 | # as there is no search path for DLLs. |
| 18115 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18116 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
| 18117 | allow_undefined_flag_CXX=unsupported |
| 18118 | always_export_symbols_CXX=no |
| 18119 | enable_shared_with_static_runtimes_CXX=yes |
| 18120 | file_list_spec_CXX='@' |
| 18121 | |
| 18122 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 18123 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 18124 | # If the export-symbols file already is a .def file, use it as |
| 18125 | # is; otherwise, prepend EXPORTS... |
| 18126 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 18127 | cp $export_symbols $output_objdir/$soname.def; |
| 18128 | else |
| 18129 | echo EXPORTS > $output_objdir/$soname.def; |
| 18130 | cat $export_symbols >> $output_objdir/$soname.def; |
| 18131 | fi~ |
| 18132 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 18133 | else |
| 18134 | ld_shlibs_CXX=no |
| 18135 | fi |
| 18136 | ;; |
| 18137 | esac |
| 18138 | ;; |
| 18139 | darwin* | rhapsody*) |
| 18140 | |
| 18141 | |
| 18142 | archive_cmds_need_lc_CXX=no |
| 18143 | hardcode_direct_CXX=no |
| 18144 | hardcode_automatic_CXX=yes |
| 18145 | hardcode_shlibpath_var_CXX=unsupported |
| 18146 | if test yes = "$lt_cv_ld_force_load"; then |
| 18147 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 18148 | |
| 18149 | else |
| 18150 | whole_archive_flag_spec_CXX='' |
| 18151 | fi |
| 18152 | link_all_deplibs_CXX=yes |
| 18153 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
| 18154 | case $cc_basename in |
| 18155 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 18156 | *) _lt_dar_can_shared=$GCC ;; |
| 18157 | esac |
| 18158 | if test yes = "$_lt_dar_can_shared"; then |
| 18159 | output_verbose_link_cmd=func_echo_all |
| 18160 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 18161 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 18162 | archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
| 18163 | module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
| 18164 | if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then |
| 18165 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" |
| 18166 | archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" |
| 18167 | fi |
| 18168 | |
| 18169 | else |
| 18170 | ld_shlibs_CXX=no |
| 18171 | fi |
| 18172 | |
| 18173 | ;; |
| 18174 | |
| 18175 | os2*) |
| 18176 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18177 | hardcode_minus_L_CXX=yes |
| 18178 | allow_undefined_flag_CXX=unsupported |
| 18179 | shrext_cmds=.dll |
| 18180 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 18181 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 18182 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 18183 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 18184 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 18185 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 18186 | emximp -o $lib $output_objdir/$libname.def' |
| 18187 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 18188 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 18189 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 18190 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 18191 | prefix_cmds="$SED"~ |
| 18192 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 18193 | prefix_cmds="$prefix_cmds -e 1d"; |
| 18194 | fi~ |
| 18195 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 18196 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 18197 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 18198 | emximp -o $lib $output_objdir/$libname.def' |
| 18199 | old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 18200 | enable_shared_with_static_runtimes_CXX=yes |
| 18201 | file_list_spec_CXX='@' |
| 18202 | ;; |
| 18203 | |
| 18204 | dgux*) |
| 18205 | case $cc_basename in |
| 18206 | ec++*) |
| 18207 | # FIXME: insert proper C++ library support |
| 18208 | ld_shlibs_CXX=no |
| 18209 | ;; |
| 18210 | ghcx*) |
| 18211 | # Green Hills C++ Compiler |
| 18212 | # FIXME: insert proper C++ library support |
| 18213 | ld_shlibs_CXX=no |
| 18214 | ;; |
| 18215 | *) |
| 18216 | # FIXME: insert proper C++ library support |
| 18217 | ld_shlibs_CXX=no |
| 18218 | ;; |
| 18219 | esac |
| 18220 | ;; |
| 18221 | |
| 18222 | freebsd2.*) |
| 18223 | # C++ shared libraries reported to be fairly broken before |
| 18224 | # switch to ELF |
| 18225 | ld_shlibs_CXX=no |
| 18226 | ;; |
| 18227 | |
| 18228 | freebsd-elf*) |
| 18229 | archive_cmds_need_lc_CXX=no |
| 18230 | ;; |
| 18231 | |
| 18232 | freebsd* | dragonfly* | midnightbsd*) |
| 18233 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18234 | # conventions |
| 18235 | ld_shlibs_CXX=yes |
| 18236 | ;; |
| 18237 | |
| 18238 | haiku*) |
| 18239 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18240 | link_all_deplibs_CXX=no |
| 18241 | ;; |
| 18242 | |
| 18243 | hpux9*) |
| 18244 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 18245 | hardcode_libdir_separator_CXX=: |
| 18246 | export_dynamic_flag_spec_CXX='$wl-E' |
| 18247 | hardcode_direct_CXX=yes |
| 18248 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18249 | # but as the default |
| 18250 | # location of the library. |
| 18251 | |
| 18252 | case $cc_basename in |
| 18253 | CC*) |
| 18254 | # FIXME: insert proper C++ library support |
| 18255 | ld_shlibs_CXX=no |
| 18256 | ;; |
| 18257 | aCC*) |
| 18258 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 18259 | # Commands to make compiler produce verbose output that lists |
| 18260 | # what "hidden" libraries, object files and flags are used when |
| 18261 | # linking a shared library. |
| 18262 | # |
| 18263 | # There doesn't appear to be a way to prevent this compiler from |
| 18264 | # explicitly linking system object files so we need to strip them |
| 18265 | # from the output so that they don't get included in the library |
| 18266 | # dependencies. |
| 18267 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 18268 | ;; |
| 18269 | *) |
| 18270 | if test yes = "$GXX"; then |
| 18271 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 18272 | else |
| 18273 | # FIXME: insert proper C++ library support |
| 18274 | ld_shlibs_CXX=no |
| 18275 | fi |
| 18276 | ;; |
| 18277 | esac |
| 18278 | ;; |
| 18279 | |
| 18280 | hpux10*|hpux11*) |
| 18281 | if test no = "$with_gnu_ld"; then |
| 18282 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 18283 | hardcode_libdir_separator_CXX=: |
| 18284 | |
| 18285 | case $host_cpu in |
| 18286 | hppa*64*|ia64*) |
| 18287 | ;; |
| 18288 | *) |
| 18289 | export_dynamic_flag_spec_CXX='$wl-E' |
| 18290 | ;; |
| 18291 | esac |
| 18292 | fi |
| 18293 | case $host_cpu in |
| 18294 | hppa*64*|ia64*) |
| 18295 | hardcode_direct_CXX=no |
| 18296 | hardcode_shlibpath_var_CXX=no |
| 18297 | ;; |
| 18298 | *) |
| 18299 | hardcode_direct_CXX=yes |
| 18300 | hardcode_direct_absolute_CXX=yes |
| 18301 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18302 | # but as the default |
| 18303 | # location of the library. |
| 18304 | ;; |
| 18305 | esac |
| 18306 | |
| 18307 | case $cc_basename in |
| 18308 | CC*) |
| 18309 | # FIXME: insert proper C++ library support |
| 18310 | ld_shlibs_CXX=no |
| 18311 | ;; |
| 18312 | aCC*) |
| 18313 | case $host_cpu in |
| 18314 | hppa*64*) |
| 18315 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18316 | ;; |
| 18317 | ia64*) |
| 18318 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18319 | ;; |
| 18320 | *) |
| 18321 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18322 | ;; |
| 18323 | esac |
| 18324 | # Commands to make compiler produce verbose output that lists |
| 18325 | # what "hidden" libraries, object files and flags are used when |
| 18326 | # linking a shared library. |
| 18327 | # |
| 18328 | # There doesn't appear to be a way to prevent this compiler from |
| 18329 | # explicitly linking system object files so we need to strip them |
| 18330 | # from the output so that they don't get included in the library |
| 18331 | # dependencies. |
| 18332 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 18333 | ;; |
| 18334 | *) |
| 18335 | if test yes = "$GXX"; then |
| 18336 | if test no = "$with_gnu_ld"; then |
| 18337 | case $host_cpu in |
| 18338 | hppa*64*) |
| 18339 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18340 | ;; |
| 18341 | ia64*) |
| 18342 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18343 | ;; |
| 18344 | *) |
| 18345 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18346 | ;; |
| 18347 | esac |
| 18348 | fi |
| 18349 | else |
| 18350 | # FIXME: insert proper C++ library support |
| 18351 | ld_shlibs_CXX=no |
| 18352 | fi |
| 18353 | ;; |
| 18354 | esac |
| 18355 | ;; |
| 18356 | |
| 18357 | interix[3-9]*) |
| 18358 | hardcode_direct_CXX=no |
| 18359 | hardcode_shlibpath_var_CXX=no |
| 18360 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 18361 | export_dynamic_flag_spec_CXX='$wl-E' |
| 18362 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18363 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18364 | # default) and relocated if they conflict, which is a slow very memory |
| 18365 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18366 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18367 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18368 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 18369 | archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 18370 | ;; |
| 18371 | irix5* | irix6*) |
| 18372 | case $cc_basename in |
| 18373 | CC*) |
| 18374 | # SGI C++ |
| 18375 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 18376 | |
| 18377 | # Archives containing C++ object files must be created using |
| 18378 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18379 | # necessary to make sure instantiated templates are included |
| 18380 | # in the archive. |
| 18381 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18382 | ;; |
| 18383 | *) |
| 18384 | if test yes = "$GXX"; then |
| 18385 | if test no = "$with_gnu_ld"; then |
| 18386 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 18387 | else |
| 18388 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' |
| 18389 | fi |
| 18390 | fi |
| 18391 | link_all_deplibs_CXX=yes |
| 18392 | ;; |
| 18393 | esac |
| 18394 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 18395 | hardcode_libdir_separator_CXX=: |
| 18396 | inherit_rpath_CXX=yes |
| 18397 | ;; |
| 18398 | |
| 18399 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 18400 | case $cc_basename in |
| 18401 | KCC*) |
| 18402 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18403 | |
| 18404 | # KCC will only create a shared library if the output file |
| 18405 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18406 | # to its proper name (with version) after linking. |
| 18407 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 18408 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 18409 | # Commands to make compiler produce verbose output that lists |
| 18410 | # what "hidden" libraries, object files and flags are used when |
| 18411 | # linking a shared library. |
| 18412 | # |
| 18413 | # There doesn't appear to be a way to prevent this compiler from |
| 18414 | # explicitly linking system object files so we need to strip them |
| 18415 | # from the output so that they don't get included in the library |
| 18416 | # dependencies. |
| 18417 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 18418 | |
| 18419 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 18420 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 18421 | |
| 18422 | # Archives containing C++ object files must be created using |
| 18423 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18424 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18425 | ;; |
| 18426 | icpc* | ecpc* ) |
| 18427 | # Intel C++ |
| 18428 | with_gnu_ld=yes |
| 18429 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18430 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18431 | # earlier do not add the objects themselves. |
| 18432 | case `$CC -V 2>&1` in |
| 18433 | *"Version 7."*) |
| 18434 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18435 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 18436 | ;; |
| 18437 | *) # Version 8.0 or newer |
| 18438 | tmp_idyn= |
| 18439 | case $host_cpu in |
| 18440 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18441 | esac |
| 18442 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18443 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 18444 | ;; |
| 18445 | esac |
| 18446 | archive_cmds_need_lc_CXX=no |
| 18447 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 18448 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 18449 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 18450 | ;; |
| 18451 | pgCC* | pgcpp*) |
| 18452 | # Portland Group C++ compiler |
| 18453 | case `$CC -V` in |
| 18454 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 18455 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 18456 | rm -rf $tpldir~ |
| 18457 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 18458 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 18459 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 18460 | rm -rf $tpldir~ |
| 18461 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 18462 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 18463 | $RANLIB $oldlib' |
| 18464 | archive_cmds_CXX='tpldir=Template.dir~ |
| 18465 | rm -rf $tpldir~ |
| 18466 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 18467 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18468 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 18469 | rm -rf $tpldir~ |
| 18470 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 18471 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 18472 | ;; |
| 18473 | *) # Version 6 and above use weak symbols |
| 18474 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18475 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 18476 | ;; |
| 18477 | esac |
| 18478 | |
| 18479 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
| 18480 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 18481 | whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 18482 | ;; |
| 18483 | cxx*) |
| 18484 | # Compaq C++ |
| 18485 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18486 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' |
| 18487 | |
| 18488 | runpath_var=LD_RUN_PATH |
| 18489 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18490 | hardcode_libdir_separator_CXX=: |
| 18491 | |
| 18492 | # Commands to make compiler produce verbose output that lists |
| 18493 | # what "hidden" libraries, object files and flags are used when |
| 18494 | # linking a shared library. |
| 18495 | # |
| 18496 | # There doesn't appear to be a way to prevent this compiler from |
| 18497 | # explicitly linking system object files so we need to strip them |
| 18498 | # from the output so that they don't get included in the library |
| 18499 | # dependencies. |
| 18500 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
| 18501 | ;; |
| 18502 | xl* | mpixl* | bgxl*) |
| 18503 | # IBM XL 8.0 on PPC, with GNU ld |
| 18504 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 18505 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 18506 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 18507 | if test yes = "$supports_anon_versioning"; then |
| 18508 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 18509 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 18510 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 18511 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 18512 | fi |
| 18513 | ;; |
| 18514 | *) |
| 18515 | case `$CC -V 2>&1 | $SED 5q` in |
| 18516 | *Sun\ C*) |
| 18517 | # Sun C++ 5.9 |
| 18518 | no_undefined_flag_CXX=' -zdefs' |
| 18519 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18520 | archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' |
| 18521 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18522 | whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 18523 | compiler_needs_object_CXX=yes |
| 18524 | |
| 18525 | # Not sure whether something based on |
| 18526 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 18527 | # would be better. |
| 18528 | output_verbose_link_cmd='func_echo_all' |
| 18529 | |
| 18530 | # Archives containing C++ object files must be created using |
| 18531 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18532 | # necessary to make sure instantiated templates are included |
| 18533 | # in the archive. |
| 18534 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18535 | ;; |
| 18536 | esac |
| 18537 | ;; |
| 18538 | esac |
| 18539 | ;; |
| 18540 | |
| 18541 | lynxos*) |
| 18542 | # FIXME: insert proper C++ library support |
| 18543 | ld_shlibs_CXX=no |
| 18544 | ;; |
| 18545 | |
| 18546 | m88k*) |
| 18547 | # FIXME: insert proper C++ library support |
| 18548 | ld_shlibs_CXX=no |
| 18549 | ;; |
| 18550 | |
| 18551 | mvs*) |
| 18552 | case $cc_basename in |
| 18553 | cxx*) |
| 18554 | # FIXME: insert proper C++ library support |
| 18555 | ld_shlibs_CXX=no |
| 18556 | ;; |
| 18557 | *) |
| 18558 | # FIXME: insert proper C++ library support |
| 18559 | ld_shlibs_CXX=no |
| 18560 | ;; |
| 18561 | esac |
| 18562 | ;; |
| 18563 | |
| 18564 | *-mlibc) |
| 18565 | ld_shlibs_CXX=yes |
| 18566 | ;; |
| 18567 | |
| 18568 | netbsd*) |
| 18569 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 18570 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18571 | wlarc= |
| 18572 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18573 | hardcode_direct_CXX=yes |
| 18574 | hardcode_shlibpath_var_CXX=no |
| 18575 | fi |
| 18576 | # Workaround some broken pre-1.5 toolchains |
| 18577 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18578 | ;; |
| 18579 | |
| 18580 | *nto* | *qnx*) |
| 18581 | ld_shlibs_CXX=yes |
| 18582 | ;; |
| 18583 | |
| 18584 | openbsd*) |
| 18585 | if test -f /usr/libexec/ld.so; then |
| 18586 | hardcode_direct_CXX=yes |
| 18587 | hardcode_shlibpath_var_CXX=no |
| 18588 | hardcode_direct_absolute_CXX=yes |
| 18589 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18590 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 18591 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
| 18592 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' |
| 18593 | export_dynamic_flag_spec_CXX='$wl-E' |
| 18594 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 18595 | fi |
| 18596 | output_verbose_link_cmd=func_echo_all |
| 18597 | else |
| 18598 | ld_shlibs_CXX=no |
| 18599 | fi |
| 18600 | ;; |
| 18601 | |
| 18602 | osf3* | osf4* | osf5*) |
| 18603 | case $cc_basename in |
| 18604 | KCC*) |
| 18605 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18606 | |
| 18607 | # KCC will only create a shared library if the output file |
| 18608 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18609 | # to its proper name (with version) after linking. |
| 18610 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 18611 | |
| 18612 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 18613 | hardcode_libdir_separator_CXX=: |
| 18614 | |
| 18615 | # Archives containing C++ object files must be created using |
| 18616 | # the KAI C++ compiler. |
| 18617 | case $host in |
| 18618 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 18619 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 18620 | esac |
| 18621 | ;; |
| 18622 | RCC*) |
| 18623 | # Rational C++ 2.4.1 |
| 18624 | # FIXME: insert proper C++ library support |
| 18625 | ld_shlibs_CXX=no |
| 18626 | ;; |
| 18627 | cxx*) |
| 18628 | case $host in |
| 18629 | osf3*) |
| 18630 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 18631 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 18632 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 18633 | ;; |
| 18634 | *) |
| 18635 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 18636 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 18637 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18638 | echo "-hidden">> $lib.exp~ |
| 18639 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ |
| 18640 | $RM $lib.exp' |
| 18641 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18642 | ;; |
| 18643 | esac |
| 18644 | |
| 18645 | hardcode_libdir_separator_CXX=: |
| 18646 | |
| 18647 | # Commands to make compiler produce verbose output that lists |
| 18648 | # what "hidden" libraries, object files and flags are used when |
| 18649 | # linking a shared library. |
| 18650 | # |
| 18651 | # There doesn't appear to be a way to prevent this compiler from |
| 18652 | # explicitly linking system object files so we need to strip them |
| 18653 | # from the output so that they don't get included in the library |
| 18654 | # dependencies. |
| 18655 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 18656 | ;; |
| 18657 | *) |
| 18658 | if test yes,no = "$GXX,$with_gnu_ld"; then |
| 18659 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 18660 | case $host in |
| 18661 | osf3*) |
| 18662 | archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 18663 | ;; |
| 18664 | *) |
| 18665 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 18666 | ;; |
| 18667 | esac |
| 18668 | |
| 18669 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 18670 | hardcode_libdir_separator_CXX=: |
| 18671 | |
| 18672 | # Commands to make compiler produce verbose output that lists |
| 18673 | # what "hidden" libraries, object files and flags are used when |
| 18674 | # linking a shared library. |
| 18675 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 18676 | |
| 18677 | else |
| 18678 | # FIXME: insert proper C++ library support |
| 18679 | ld_shlibs_CXX=no |
| 18680 | fi |
| 18681 | ;; |
| 18682 | esac |
| 18683 | ;; |
| 18684 | |
| 18685 | psos*) |
| 18686 | # FIXME: insert proper C++ library support |
| 18687 | ld_shlibs_CXX=no |
| 18688 | ;; |
| 18689 | |
| 18690 | serenity*) |
| 18691 | ;; |
| 18692 | |
| 18693 | sunos4*) |
| 18694 | case $cc_basename in |
| 18695 | CC*) |
| 18696 | # Sun C++ 4.x |
| 18697 | # FIXME: insert proper C++ library support |
| 18698 | ld_shlibs_CXX=no |
| 18699 | ;; |
| 18700 | lcc*) |
| 18701 | # Lucid |
| 18702 | # FIXME: insert proper C++ library support |
| 18703 | ld_shlibs_CXX=no |
| 18704 | ;; |
| 18705 | *) |
| 18706 | # FIXME: insert proper C++ library support |
| 18707 | ld_shlibs_CXX=no |
| 18708 | ;; |
| 18709 | esac |
| 18710 | ;; |
| 18711 | |
| 18712 | solaris*) |
| 18713 | case $cc_basename in |
| 18714 | CC* | sunCC*) |
| 18715 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18716 | archive_cmds_need_lc_CXX=yes |
| 18717 | no_undefined_flag_CXX=' -zdefs' |
| 18718 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18719 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18720 | $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 18721 | |
| 18722 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18723 | hardcode_shlibpath_var_CXX=no |
| 18724 | case $host_os in |
| 18725 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18726 | *) |
| 18727 | # The compiler driver will combine and reorder linker options, |
| 18728 | # but understands '-z linker_flag'. |
| 18729 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 18730 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 18731 | ;; |
| 18732 | esac |
| 18733 | link_all_deplibs_CXX=yes |
| 18734 | |
| 18735 | output_verbose_link_cmd='func_echo_all' |
| 18736 | |
| 18737 | # Archives containing C++ object files must be created using |
| 18738 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18739 | # necessary to make sure instantiated templates are included |
| 18740 | # in the archive. |
| 18741 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18742 | ;; |
| 18743 | gcx*) |
| 18744 | # Green Hills C++ Compiler |
| 18745 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 18746 | |
| 18747 | # The C++ compiler must be used to create the archive. |
| 18748 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18749 | ;; |
| 18750 | *) |
| 18751 | # GNU C++ compiler with Solaris linker |
| 18752 | if test yes,no = "$GXX,$with_gnu_ld"; then |
| 18753 | no_undefined_flag_CXX=' $wl-z ${wl}defs' |
| 18754 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 18755 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 18756 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18757 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 18758 | |
| 18759 | # Commands to make compiler produce verbose output that lists |
| 18760 | # what "hidden" libraries, object files and flags are used when |
| 18761 | # linking a shared library. |
| 18762 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 18763 | else |
| 18764 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
| 18765 | # platform. |
| 18766 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 18767 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18768 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 18769 | |
| 18770 | # Commands to make compiler produce verbose output that lists |
| 18771 | # what "hidden" libraries, object files and flags are used when |
| 18772 | # linking a shared library. |
| 18773 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 18774 | fi |
| 18775 | |
| 18776 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
| 18777 | case $host_os in |
| 18778 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18779 | *) |
| 18780 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 18781 | ;; |
| 18782 | esac |
| 18783 | fi |
| 18784 | ;; |
| 18785 | esac |
| 18786 | ;; |
| 18787 | |
| 18788 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18789 | no_undefined_flag_CXX='$wl-z,text' |
| 18790 | archive_cmds_need_lc_CXX=no |
| 18791 | hardcode_shlibpath_var_CXX=no |
| 18792 | runpath_var='LD_RUN_PATH' |
| 18793 | |
| 18794 | case $cc_basename in |
| 18795 | CC*) |
| 18796 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18797 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18798 | ;; |
| 18799 | *) |
| 18800 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18801 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18802 | ;; |
| 18803 | esac |
| 18804 | ;; |
| 18805 | |
| 18806 | sysv5* | sco3.2v5* | sco5v6*) |
| 18807 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 18808 | # link with -lc, and that would cause any symbols used from libc to |
| 18809 | # always be unresolved, which means just about no library would |
| 18810 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18811 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18812 | # as -z defs. |
| 18813 | no_undefined_flag_CXX='$wl-z,text' |
| 18814 | allow_undefined_flag_CXX='$wl-z,nodefs' |
| 18815 | archive_cmds_need_lc_CXX=no |
| 18816 | hardcode_shlibpath_var_CXX=no |
| 18817 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
| 18818 | hardcode_libdir_separator_CXX=':' |
| 18819 | link_all_deplibs_CXX=yes |
| 18820 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
| 18821 | runpath_var='LD_RUN_PATH' |
| 18822 | |
| 18823 | case $cc_basename in |
| 18824 | CC*) |
| 18825 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18826 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18827 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 18828 | '"$old_archive_cmds_CXX" |
| 18829 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 18830 | '"$reload_cmds_CXX" |
| 18831 | ;; |
| 18832 | *) |
| 18833 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18834 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18835 | ;; |
| 18836 | esac |
| 18837 | ;; |
| 18838 | |
| 18839 | tandem*) |
| 18840 | case $cc_basename in |
| 18841 | NCC*) |
| 18842 | # NonStop-UX NCC 3.20 |
| 18843 | # FIXME: insert proper C++ library support |
| 18844 | ld_shlibs_CXX=no |
| 18845 | ;; |
| 18846 | *) |
| 18847 | # FIXME: insert proper C++ library support |
| 18848 | ld_shlibs_CXX=no |
| 18849 | ;; |
| 18850 | esac |
| 18851 | ;; |
| 18852 | |
| 18853 | vxworks*) |
| 18854 | # FIXME: insert proper C++ library support |
| 18855 | ld_shlibs_CXX=no |
| 18856 | ;; |
| 18857 | |
| 18858 | *) |
| 18859 | # FIXME: insert proper C++ library support |
| 18860 | ld_shlibs_CXX=no |
| 18861 | ;; |
| 18862 | esac |
| 18863 | |
| 18864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 18865 | printf "%s\n" "$ld_shlibs_CXX" >&6; } |
| 18866 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 18867 | |
| 18868 | GCC_CXX=$GXX |
| 18869 | LD_CXX=$LD |
| 18870 | |
| 18871 | ## CAVEAT EMPTOR: |
| 18872 | ## There is no encapsulation within the following macros, do not change |
| 18873 | ## the running order or otherwise move them around unless you know exactly |
| 18874 | ## what you are doing... |
| 18875 | # Dependencies to place before and after the object being linked: |
| 18876 | predep_objects_CXX= |
| 18877 | postdep_objects_CXX= |
| 18878 | predeps_CXX= |
| 18879 | postdeps_CXX= |
| 18880 | compiler_lib_search_path_CXX= |
| 18881 | |
| 18882 | cat > conftest.$ac_ext <<_LT_EOF |
| 18883 | class Foo |
| 18884 | { |
| 18885 | public: |
| 18886 | Foo (void) { a = 0; } |
| 18887 | private: |
| 18888 | int a; |
| 18889 | }; |
| 18890 | _LT_EOF |
| 18891 | |
| 18892 | |
| 18893 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 18894 | case "$CC $CFLAGS " in #( |
| 18895 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 18896 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 18897 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 18898 | esac |
| 18899 | |
| 18900 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 18901 | (eval $ac_compile) 2>&5 |
| 18902 | ac_status=$? |
| 18903 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18904 | test $ac_status = 0; }; then |
| 18905 | # Parse the compiler output and extract the necessary |
| 18906 | # objects, libraries and library flags. |
| 18907 | |
| 18908 | # Sentinel used to keep track of whether or not we are before |
| 18909 | # the conftest object file. |
| 18910 | pre_test_object_deps_done=no |
| 18911 | |
| 18912 | for p in `eval "$output_verbose_link_cmd"`; do |
| 18913 | case $prev$p in |
| 18914 | |
| 18915 | -L* | -R* | -l*) |
| 18916 | # Some compilers place space between "-{L,R,l}" and the path. |
| 18917 | # Remove the space. |
| 18918 | if test x-L = x"$p" || |
| 18919 | test x-R = x"$p" || |
| 18920 | test x-l = x"$p"; then |
| 18921 | prev=$p |
| 18922 | continue |
| 18923 | fi |
| 18924 | |
| 18925 | # Expand the sysroot to ease extracting the directories later. |
| 18926 | if test -z "$prev"; then |
| 18927 | case $p in |
| 18928 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 18929 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 18930 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 18931 | esac |
| 18932 | fi |
| 18933 | case $p in |
| 18934 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 18935 | esac |
| 18936 | if test no = "$pre_test_object_deps_done"; then |
| 18937 | case $prev in |
| 18938 | -L | -R) |
| 18939 | # Internal compiler library paths should come after those |
| 18940 | # provided the user. The postdeps already come after the |
| 18941 | # user supplied libs so there is no need to process them. |
| 18942 | if test -z "$compiler_lib_search_path_CXX"; then |
| 18943 | compiler_lib_search_path_CXX=$prev$p |
| 18944 | else |
| 18945 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
| 18946 | fi |
| 18947 | ;; |
| 18948 | # The "-l" case would never come before the object being |
| 18949 | # linked, so don't bother handling this case. |
| 18950 | esac |
| 18951 | else |
| 18952 | if test -z "$postdeps_CXX"; then |
| 18953 | postdeps_CXX=$prev$p |
| 18954 | else |
| 18955 | postdeps_CXX="${postdeps_CXX} $prev$p" |
| 18956 | fi |
| 18957 | fi |
| 18958 | prev= |
| 18959 | ;; |
| 18960 | |
| 18961 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 18962 | *.$objext) |
| 18963 | # This assumes that the test object file only shows up |
| 18964 | # once in the compiler output. |
| 18965 | if test "$p" = "conftest.$objext"; then |
| 18966 | pre_test_object_deps_done=yes |
| 18967 | continue |
| 18968 | fi |
| 18969 | |
| 18970 | if test no = "$pre_test_object_deps_done"; then |
| 18971 | if test -z "$predep_objects_CXX"; then |
| 18972 | predep_objects_CXX=$p |
| 18973 | else |
| 18974 | predep_objects_CXX="$predep_objects_CXX $p" |
| 18975 | fi |
| 18976 | else |
| 18977 | if test -z "$postdep_objects_CXX"; then |
| 18978 | postdep_objects_CXX=$p |
| 18979 | else |
| 18980 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 18981 | fi |
| 18982 | fi |
| 18983 | ;; |
| 18984 | |
| 18985 | *) ;; # Ignore the rest. |
| 18986 | |
| 18987 | esac |
| 18988 | done |
| 18989 | |
| 18990 | # Clean up. |
| 18991 | rm -f a.out a.exe |
| 18992 | else |
| 18993 | echo "libtool.m4: error: problem compiling CXX test program" |
| 18994 | fi |
| 18995 | |
| 18996 | $RM -f confest.$objext |
| 18997 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 18998 | |
| 18999 | # PORTME: override above test on systems where it is broken |
| 19000 | case $host_os in |
| 19001 | interix[3-9]*) |
| 19002 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19003 | # hack all around it, let's just trust "g++" to DTRT. |
| 19004 | predep_objects_CXX= |
| 19005 | postdep_objects_CXX= |
| 19006 | postdeps_CXX= |
| 19007 | ;; |
| 19008 | esac |
| 19009 | |
| 19010 | |
| 19011 | case " $postdeps_CXX " in |
| 19012 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19013 | esac |
| 19014 | compiler_lib_search_dirs_CXX= |
| 19015 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 19016 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
| 19017 | fi |
| 19018 | |
| 19019 | |
| 19020 | |
| 19021 | |
| 19022 | |
| 19023 | |
| 19024 | |
| 19025 | |
| 19026 | |
| 19027 | |
| 19028 | |
| 19029 | |
| 19030 | |
| 19031 | |
| 19032 | |
| 19033 | |
| 19034 | |
| 19035 | |
| 19036 | |
| 19037 | |
| 19038 | |
| 19039 | |
| 19040 | |
| 19041 | |
| 19042 | |
| 19043 | |
| 19044 | |
| 19045 | |
| 19046 | |
| 19047 | |
| 19048 | |
| 19049 | lt_prog_compiler_wl_CXX= |
| 19050 | lt_prog_compiler_pic_CXX= |
| 19051 | lt_prog_compiler_static_CXX= |
| 19052 | |
| 19053 | |
| 19054 | # C++ specific cases for pic, static, wl, etc. |
| 19055 | if test yes = "$GXX"; then |
| 19056 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19057 | lt_prog_compiler_static_CXX='-static' |
| 19058 | |
| 19059 | case $host_os in |
| 19060 | aix*) |
| 19061 | # All AIX code is PIC. |
| 19062 | if test ia64 = "$host_cpu"; then |
| 19063 | # AIX 5 now supports IA64 processor |
| 19064 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19065 | fi |
| 19066 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19067 | ;; |
| 19068 | |
| 19069 | amigaos*) |
| 19070 | case $host_cpu in |
| 19071 | powerpc) |
| 19072 | # see comment about AmigaOS4 .so support |
| 19073 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19074 | ;; |
| 19075 | m68k) |
| 19076 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19077 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 19078 | # like '-m68040'. |
| 19079 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19080 | ;; |
| 19081 | esac |
| 19082 | ;; |
| 19083 | |
| 19084 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19085 | # PIC is the default for these OSes. |
| 19086 | ;; |
| 19087 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 19088 | # This hack is so that the source file can tell whether it is being |
| 19089 | # built for inclusion in a dll (and should export symbols for example). |
| 19090 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 19091 | # (--disable-auto-import) libraries |
| 19092 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19093 | case $host_os in |
| 19094 | os2*) |
| 19095 | lt_prog_compiler_static_CXX='$wl-static' |
| 19096 | ;; |
| 19097 | esac |
| 19098 | ;; |
| 19099 | darwin* | rhapsody*) |
| 19100 | # PIC is the default on this platform |
| 19101 | # Common symbols not allowed in MH_DYLIB files |
| 19102 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19103 | ;; |
| 19104 | *djgpp*) |
| 19105 | # DJGPP does not support shared libraries at all |
| 19106 | lt_prog_compiler_pic_CXX= |
| 19107 | ;; |
| 19108 | haiku*) |
| 19109 | # PIC is the default for Haiku. |
| 19110 | # The "-static" flag exists, but is broken. |
| 19111 | lt_prog_compiler_static_CXX= |
| 19112 | ;; |
| 19113 | interix[3-9]*) |
| 19114 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19115 | # Instead, we relocate shared libraries at runtime. |
| 19116 | ;; |
| 19117 | sysv4*MP*) |
| 19118 | if test -d /usr/nec; then |
| 19119 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19120 | fi |
| 19121 | ;; |
| 19122 | hpux*) |
| 19123 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 19124 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 19125 | # sets the default TLS model and affects inlining. |
| 19126 | case $host_cpu in |
| 19127 | hppa*64*) |
| 19128 | ;; |
| 19129 | *) |
| 19130 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19131 | ;; |
| 19132 | esac |
| 19133 | ;; |
| 19134 | *qnx* | *nto*) |
| 19135 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 19136 | # it will coredump. |
| 19137 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 19138 | ;; |
| 19139 | *) |
| 19140 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19141 | ;; |
| 19142 | esac |
| 19143 | else |
| 19144 | case $host_os in |
| 19145 | aix[4-9]*) |
| 19146 | # All AIX code is PIC. |
| 19147 | if test ia64 = "$host_cpu"; then |
| 19148 | # AIX 5 now supports IA64 processor |
| 19149 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19150 | else |
| 19151 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19152 | fi |
| 19153 | ;; |
| 19154 | chorus*) |
| 19155 | case $cc_basename in |
| 19156 | cxch68*) |
| 19157 | # Green Hills C++ Compiler |
| 19158 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 19159 | ;; |
| 19160 | esac |
| 19161 | ;; |
| 19162 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 19163 | # This hack is so that the source file can tell whether it is being |
| 19164 | # built for inclusion in a dll (and should export symbols for example). |
| 19165 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19166 | ;; |
| 19167 | dgux*) |
| 19168 | case $cc_basename in |
| 19169 | ec++*) |
| 19170 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19171 | ;; |
| 19172 | ghcx*) |
| 19173 | # Green Hills C++ Compiler |
| 19174 | lt_prog_compiler_pic_CXX='-pic' |
| 19175 | ;; |
| 19176 | *) |
| 19177 | ;; |
| 19178 | esac |
| 19179 | ;; |
| 19180 | freebsd* | dragonfly* | midnightbsd*) |
| 19181 | # FreeBSD uses GNU C++ |
| 19182 | ;; |
| 19183 | hpux9* | hpux10* | hpux11*) |
| 19184 | case $cc_basename in |
| 19185 | CC*) |
| 19186 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19187 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 19188 | if test ia64 != "$host_cpu"; then |
| 19189 | lt_prog_compiler_pic_CXX='+Z' |
| 19190 | fi |
| 19191 | ;; |
| 19192 | aCC*) |
| 19193 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19194 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 19195 | case $host_cpu in |
| 19196 | hppa*64*|ia64*) |
| 19197 | # +Z the default |
| 19198 | ;; |
| 19199 | *) |
| 19200 | lt_prog_compiler_pic_CXX='+Z' |
| 19201 | ;; |
| 19202 | esac |
| 19203 | ;; |
| 19204 | *) |
| 19205 | ;; |
| 19206 | esac |
| 19207 | ;; |
| 19208 | interix*) |
| 19209 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19210 | # Anyone wants to do a port? |
| 19211 | ;; |
| 19212 | irix5* | irix6* | nonstopux*) |
| 19213 | case $cc_basename in |
| 19214 | CC*) |
| 19215 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19216 | lt_prog_compiler_static_CXX='-non_shared' |
| 19217 | # CC pic flag -KPIC is the default. |
| 19218 | ;; |
| 19219 | *) |
| 19220 | ;; |
| 19221 | esac |
| 19222 | ;; |
| 19223 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 19224 | case $cc_basename in |
| 19225 | KCC*) |
| 19226 | # KAI C++ Compiler |
| 19227 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19228 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19229 | ;; |
| 19230 | ecpc* ) |
| 19231 | # old Intel C++ for x86_64, which still supported -KPIC. |
| 19232 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19233 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19234 | lt_prog_compiler_static_CXX='-static' |
| 19235 | ;; |
| 19236 | icpc* ) |
| 19237 | # Intel C++, used to be incompatible with GCC. |
| 19238 | # ICC 10 doesn't accept -KPIC any more. |
| 19239 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19240 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19241 | lt_prog_compiler_static_CXX='-static' |
| 19242 | ;; |
| 19243 | pgCC* | pgcpp*) |
| 19244 | # Portland Group C++ compiler |
| 19245 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19246 | lt_prog_compiler_pic_CXX='-fpic' |
| 19247 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19248 | ;; |
| 19249 | cxx*) |
| 19250 | # Compaq C++ |
| 19251 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19252 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19253 | lt_prog_compiler_pic_CXX= |
| 19254 | lt_prog_compiler_static_CXX='-non_shared' |
| 19255 | ;; |
| 19256 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 19257 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 19258 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19259 | lt_prog_compiler_pic_CXX='-qpic' |
| 19260 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 19261 | ;; |
| 19262 | *) |
| 19263 | case `$CC -V 2>&1 | $SED 5q` in |
| 19264 | *Sun\ C*) |
| 19265 | # Sun C++ 5.9 |
| 19266 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19267 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19268 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19269 | ;; |
| 19270 | esac |
| 19271 | ;; |
| 19272 | esac |
| 19273 | ;; |
| 19274 | lynxos*) |
| 19275 | ;; |
| 19276 | m88k*) |
| 19277 | ;; |
| 19278 | mvs*) |
| 19279 | case $cc_basename in |
| 19280 | cxx*) |
| 19281 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19282 | ;; |
| 19283 | *) |
| 19284 | ;; |
| 19285 | esac |
| 19286 | ;; |
| 19287 | netbsd* | netbsdelf*-gnu) |
| 19288 | ;; |
| 19289 | *-mlibc) |
| 19290 | ;; |
| 19291 | *qnx* | *nto*) |
| 19292 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 19293 | # it will coredump. |
| 19294 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 19295 | ;; |
| 19296 | osf3* | osf4* | osf5*) |
| 19297 | case $cc_basename in |
| 19298 | KCC*) |
| 19299 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19300 | ;; |
| 19301 | RCC*) |
| 19302 | # Rational C++ 2.4.1 |
| 19303 | lt_prog_compiler_pic_CXX='-pic' |
| 19304 | ;; |
| 19305 | cxx*) |
| 19306 | # Digital/Compaq C++ |
| 19307 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19308 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19309 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19310 | lt_prog_compiler_pic_CXX= |
| 19311 | lt_prog_compiler_static_CXX='-non_shared' |
| 19312 | ;; |
| 19313 | *) |
| 19314 | ;; |
| 19315 | esac |
| 19316 | ;; |
| 19317 | psos*) |
| 19318 | ;; |
| 19319 | serenity*) |
| 19320 | ;; |
| 19321 | solaris*) |
| 19322 | case $cc_basename in |
| 19323 | CC* | sunCC*) |
| 19324 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19325 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19326 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19327 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19328 | ;; |
| 19329 | gcx*) |
| 19330 | # Green Hills C++ Compiler |
| 19331 | lt_prog_compiler_pic_CXX='-PIC' |
| 19332 | ;; |
| 19333 | *) |
| 19334 | ;; |
| 19335 | esac |
| 19336 | ;; |
| 19337 | sunos4*) |
| 19338 | case $cc_basename in |
| 19339 | CC*) |
| 19340 | # Sun C++ 4.x |
| 19341 | lt_prog_compiler_pic_CXX='-pic' |
| 19342 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19343 | ;; |
| 19344 | lcc*) |
| 19345 | # Lucid |
| 19346 | lt_prog_compiler_pic_CXX='-pic' |
| 19347 | ;; |
| 19348 | *) |
| 19349 | ;; |
| 19350 | esac |
| 19351 | ;; |
| 19352 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19353 | case $cc_basename in |
| 19354 | CC*) |
| 19355 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19356 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19357 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19358 | ;; |
| 19359 | esac |
| 19360 | ;; |
| 19361 | tandem*) |
| 19362 | case $cc_basename in |
| 19363 | NCC*) |
| 19364 | # NonStop-UX NCC 3.20 |
| 19365 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19366 | ;; |
| 19367 | *) |
| 19368 | ;; |
| 19369 | esac |
| 19370 | ;; |
| 19371 | vxworks*) |
| 19372 | ;; |
| 19373 | *) |
| 19374 | lt_prog_compiler_can_build_shared_CXX=no |
| 19375 | ;; |
| 19376 | esac |
| 19377 | fi |
| 19378 | |
| 19379 | case $host_os in |
| 19380 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 19381 | *djgpp*) |
| 19382 | lt_prog_compiler_pic_CXX= |
| 19383 | ;; |
| 19384 | *) |
| 19385 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19386 | ;; |
| 19387 | esac |
| 19388 | |
| 19389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 19390 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 19391 | if test ${lt_cv_prog_compiler_pic_CXX+y} |
| 19392 | then : |
| 19393 | printf %s "(cached) " >&6 |
| 19394 | else case e in #( |
| 19395 | e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; |
| 19396 | esac |
| 19397 | fi |
| 19398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 19399 | printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 19400 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 19401 | |
| 19402 | # |
| 19403 | # Check to make sure the PIC flag actually works. |
| 19404 | # |
| 19405 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 19406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19407 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 19408 | if test ${lt_cv_prog_compiler_pic_works_CXX+y} |
| 19409 | then : |
| 19410 | printf %s "(cached) " >&6 |
| 19411 | else case e in #( |
| 19412 | e) lt_cv_prog_compiler_pic_works_CXX=no |
| 19413 | ac_outfile=conftest.$ac_objext |
| 19414 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19415 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 19416 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19417 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19418 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19419 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19420 | # The option is referenced via a variable to avoid confusing sed. |
| 19421 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19422 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 19423 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19424 | -e 's:$: $lt_compiler_flag:'` |
| 19425 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 19426 | (eval "$lt_compile" 2>conftest.err) |
| 19427 | ac_status=$? |
| 19428 | cat conftest.err >&5 |
| 19429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19430 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19431 | # The compiler can only warn and ignore the option if not recognized |
| 19432 | # So say no if there are warnings other than the usual output. |
| 19433 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 19434 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19435 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 19436 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 19437 | fi |
| 19438 | fi |
| 19439 | $RM conftest* |
| 19440 | ;; |
| 19441 | esac |
| 19442 | fi |
| 19443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 19444 | printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 19445 | |
| 19446 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
| 19447 | case $lt_prog_compiler_pic_CXX in |
| 19448 | "" | " "*) ;; |
| 19449 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19450 | esac |
| 19451 | else |
| 19452 | lt_prog_compiler_pic_CXX= |
| 19453 | lt_prog_compiler_can_build_shared_CXX=no |
| 19454 | fi |
| 19455 | |
| 19456 | fi |
| 19457 | |
| 19458 | |
| 19459 | |
| 19460 | |
| 19461 | |
| 19462 | # |
| 19463 | # Check to make sure the static flag actually works. |
| 19464 | # |
| 19465 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19467 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 19468 | if test ${lt_cv_prog_compiler_static_works_CXX+y} |
| 19469 | then : |
| 19470 | printf %s "(cached) " >&6 |
| 19471 | else case e in #( |
| 19472 | e) lt_cv_prog_compiler_static_works_CXX=no |
| 19473 | save_LDFLAGS=$LDFLAGS |
| 19474 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19475 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19476 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19477 | # The linker can only warn and ignore the option if not recognized |
| 19478 | # So say no if there are warnings |
| 19479 | if test -s conftest.err; then |
| 19480 | # Append any errors to the config.log. |
| 19481 | cat conftest.err 1>&5 |
| 19482 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 19483 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19484 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19485 | lt_cv_prog_compiler_static_works_CXX=yes |
| 19486 | fi |
| 19487 | else |
| 19488 | lt_cv_prog_compiler_static_works_CXX=yes |
| 19489 | fi |
| 19490 | fi |
| 19491 | $RM -r conftest* |
| 19492 | LDFLAGS=$save_LDFLAGS |
| 19493 | ;; |
| 19494 | esac |
| 19495 | fi |
| 19496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 19497 | printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 19498 | |
| 19499 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
| 19500 | : |
| 19501 | else |
| 19502 | lt_prog_compiler_static_CXX= |
| 19503 | fi |
| 19504 | |
| 19505 | |
| 19506 | |
| 19507 | |
| 19508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19509 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 19510 | if test ${lt_cv_prog_compiler_c_o_CXX+y} |
| 19511 | then : |
| 19512 | printf %s "(cached) " >&6 |
| 19513 | else case e in #( |
| 19514 | e) lt_cv_prog_compiler_c_o_CXX=no |
| 19515 | $RM -r conftest 2>/dev/null |
| 19516 | mkdir conftest |
| 19517 | cd conftest |
| 19518 | mkdir out |
| 19519 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19520 | |
| 19521 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19522 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19523 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19524 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19525 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19526 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19527 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 19528 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19529 | -e 's:$: $lt_compiler_flag:'` |
| 19530 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 19531 | (eval "$lt_compile" 2>out/conftest.err) |
| 19532 | ac_status=$? |
| 19533 | cat out/conftest.err >&5 |
| 19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19535 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19536 | then |
| 19537 | # The compiler can only warn and ignore the option if not recognized |
| 19538 | # So say no if there are warnings |
| 19539 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 19540 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19541 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 19542 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19543 | fi |
| 19544 | fi |
| 19545 | chmod u+w . 2>&5 |
| 19546 | $RM conftest* |
| 19547 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19548 | # template instantiation |
| 19549 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 19550 | $RM out/* && rmdir out |
| 19551 | cd .. |
| 19552 | $RM -r conftest |
| 19553 | $RM conftest* |
| 19554 | ;; |
| 19555 | esac |
| 19556 | fi |
| 19557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19558 | printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 19559 | |
| 19560 | |
| 19561 | |
| 19562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19563 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 19564 | if test ${lt_cv_prog_compiler_c_o_CXX+y} |
| 19565 | then : |
| 19566 | printf %s "(cached) " >&6 |
| 19567 | else case e in #( |
| 19568 | e) lt_cv_prog_compiler_c_o_CXX=no |
| 19569 | $RM -r conftest 2>/dev/null |
| 19570 | mkdir conftest |
| 19571 | cd conftest |
| 19572 | mkdir out |
| 19573 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19574 | |
| 19575 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19576 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19577 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19578 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19579 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19580 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19581 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 19582 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19583 | -e 's:$: $lt_compiler_flag:'` |
| 19584 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 19585 | (eval "$lt_compile" 2>out/conftest.err) |
| 19586 | ac_status=$? |
| 19587 | cat out/conftest.err >&5 |
| 19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19589 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19590 | then |
| 19591 | # The compiler can only warn and ignore the option if not recognized |
| 19592 | # So say no if there are warnings |
| 19593 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 19594 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19595 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 19596 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19597 | fi |
| 19598 | fi |
| 19599 | chmod u+w . 2>&5 |
| 19600 | $RM conftest* |
| 19601 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19602 | # template instantiation |
| 19603 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 19604 | $RM out/* && rmdir out |
| 19605 | cd .. |
| 19606 | $RM -r conftest |
| 19607 | $RM conftest* |
| 19608 | ;; |
| 19609 | esac |
| 19610 | fi |
| 19611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19612 | printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 19613 | |
| 19614 | |
| 19615 | |
| 19616 | |
| 19617 | hard_links=nottested |
| 19618 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then |
| 19619 | # do not overwrite the value of need_locks provided by the user |
| 19620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 19621 | printf %s "checking if we can lock with hard links... " >&6; } |
| 19622 | hard_links=yes |
| 19623 | $RM conftest* |
| 19624 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19625 | touch conftest.a |
| 19626 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19627 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 19629 | printf "%s\n" "$hard_links" >&6; } |
| 19630 | if test no = "$hard_links"; then |
| 19631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 19632 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 19633 | need_locks=warn |
| 19634 | fi |
| 19635 | else |
| 19636 | need_locks=no |
| 19637 | fi |
| 19638 | |
| 19639 | |
| 19640 | |
| 19641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19642 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 19643 | |
| 19644 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19645 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 19646 | case $host_os in |
| 19647 | aix[4-9]*) |
| 19648 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19649 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 19650 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 19651 | # weak defined symbols like other global defined symbols, whereas |
| 19652 | # GNU nm marks them as "W". |
| 19653 | # While the 'weak' keyword is ignored in the Export File, we need |
| 19654 | # it in the Import File for the 'aix-soname' feature, so we have |
| 19655 | # to replace the "-B" option with "-P" for AIX nm. |
| 19656 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 19657 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 19658 | else |
| 19659 | export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 19660 | fi |
| 19661 | ;; |
| 19662 | pw32*) |
| 19663 | export_symbols_cmds_CXX=$ltdll_cmds |
| 19664 | ;; |
| 19665 | cygwin* | mingw* | windows* | cegcc*) |
| 19666 | case $cc_basename in |
| 19667 | cl* | icl*) |
| 19668 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 19669 | ;; |
| 19670 | *) |
| 19671 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 19672 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 19673 | ;; |
| 19674 | esac |
| 19675 | ;; |
| 19676 | *) |
| 19677 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19678 | ;; |
| 19679 | esac |
| 19680 | |
| 19681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 19682 | printf "%s\n" "$ld_shlibs_CXX" >&6; } |
| 19683 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 19684 | |
| 19685 | with_gnu_ld_CXX=$with_gnu_ld |
| 19686 | |
| 19687 | |
| 19688 | |
| 19689 | |
| 19690 | |
| 19691 | |
| 19692 | # |
| 19693 | # Do we need to explicitly link libc? |
| 19694 | # |
| 19695 | case "x$archive_cmds_need_lc_CXX" in |
| 19696 | x|xyes) |
| 19697 | # Assume -lc should be added |
| 19698 | archive_cmds_need_lc_CXX=yes |
| 19699 | |
| 19700 | if test yes,yes = "$GCC,$enable_shared"; then |
| 19701 | case $archive_cmds_CXX in |
| 19702 | *'~'*) |
| 19703 | # FIXME: we may have to deal with multi-command sequences. |
| 19704 | ;; |
| 19705 | '$CC '*) |
| 19706 | # Test whether the compiler implicitly links with -lc since on some |
| 19707 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19708 | # to ld, don't add -lc before -lgcc. |
| 19709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 19710 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 19711 | if test ${lt_cv_archive_cmds_need_lc_CXX+y} |
| 19712 | then : |
| 19713 | printf %s "(cached) " >&6 |
| 19714 | else case e in #( |
| 19715 | e) $RM conftest* |
| 19716 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19717 | |
| 19718 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 19719 | (eval $ac_compile) 2>&5 |
| 19720 | ac_status=$? |
| 19721 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19722 | test $ac_status = 0; } 2>conftest.err; then |
| 19723 | soname=conftest |
| 19724 | lib=conftest |
| 19725 | libobjs=conftest.$ac_objext |
| 19726 | deplibs= |
| 19727 | wl=$lt_prog_compiler_wl_CXX |
| 19728 | pic_flag=$lt_prog_compiler_pic_CXX |
| 19729 | compiler_flags=-v |
| 19730 | linker_flags=-v |
| 19731 | verstring= |
| 19732 | output_objdir=. |
| 19733 | libname=conftest |
| 19734 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19735 | allow_undefined_flag_CXX= |
| 19736 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 19737 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19738 | ac_status=$? |
| 19739 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19740 | test $ac_status = 0; } |
| 19741 | then |
| 19742 | lt_cv_archive_cmds_need_lc_CXX=no |
| 19743 | else |
| 19744 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 19745 | fi |
| 19746 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19747 | else |
| 19748 | cat conftest.err 1>&5 |
| 19749 | fi |
| 19750 | $RM conftest* |
| 19751 | ;; |
| 19752 | esac |
| 19753 | fi |
| 19754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 19755 | printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 19756 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 19757 | ;; |
| 19758 | esac |
| 19759 | fi |
| 19760 | ;; |
| 19761 | esac |
| 19762 | |
| 19763 | |
| 19764 | |
| 19765 | |
| 19766 | |
| 19767 | |
| 19768 | |
| 19769 | |
| 19770 | |
| 19771 | |
| 19772 | |
| 19773 | |
| 19774 | |
| 19775 | |
| 19776 | |
| 19777 | |
| 19778 | |
| 19779 | |
| 19780 | |
| 19781 | |
| 19782 | |
| 19783 | |
| 19784 | |
| 19785 | |
| 19786 | |
| 19787 | |
| 19788 | |
| 19789 | |
| 19790 | |
| 19791 | |
| 19792 | |
| 19793 | |
| 19794 | |
| 19795 | |
| 19796 | |
| 19797 | |
| 19798 | |
| 19799 | |
| 19800 | |
| 19801 | |
| 19802 | |
| 19803 | |
| 19804 | |
| 19805 | |
| 19806 | |
| 19807 | |
| 19808 | |
| 19809 | |
| 19810 | |
| 19811 | |
| 19812 | |
| 19813 | |
| 19814 | |
| 19815 | |
| 19816 | |
| 19817 | |
| 19818 | |
| 19819 | |
| 19820 | |
| 19821 | |
| 19822 | |
| 19823 | |
| 19824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 19825 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 19826 | |
| 19827 | library_names_spec= |
| 19828 | libname_spec='lib$name' |
| 19829 | soname_spec= |
| 19830 | shrext_cmds=.so |
| 19831 | postinstall_cmds= |
| 19832 | postuninstall_cmds= |
| 19833 | finish_cmds= |
| 19834 | finish_eval= |
| 19835 | shlibpath_var= |
| 19836 | shlibpath_overrides_runpath=unknown |
| 19837 | version_type=none |
| 19838 | dynamic_linker="$host_os ld.so" |
| 19839 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19840 | need_lib_prefix=unknown |
| 19841 | hardcode_into_libs=no |
| 19842 | |
| 19843 | # when you set need_version to no, make sure it does not cause -set_version |
| 19844 | # flags to be left without arguments |
| 19845 | need_version=unknown |
| 19846 | |
| 19847 | |
| 19848 | |
| 19849 | case $host_os in |
| 19850 | aix3*) |
| 19851 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19852 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 19853 | shlibpath_var=LIBPATH |
| 19854 | |
| 19855 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19856 | soname_spec='$libname$release$shared_ext$major' |
| 19857 | ;; |
| 19858 | |
| 19859 | aix[4-9]*) |
| 19860 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19861 | need_lib_prefix=no |
| 19862 | need_version=no |
| 19863 | hardcode_into_libs=yes |
| 19864 | if test ia64 = "$host_cpu"; then |
| 19865 | # AIX 5 supports IA64 |
| 19866 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 19867 | shlibpath_var=LD_LIBRARY_PATH |
| 19868 | else |
| 19869 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19870 | # for dependence libraries. The import file would start with |
| 19871 | # the line '#! .'. This would cause the generated library to |
| 19872 | # depend on '.', always an invalid library. This was fixed in |
| 19873 | # development snapshots of GCC prior to 3.0. |
| 19874 | case $host_os in |
| 19875 | aix4 | aix4.[01] | aix4.[01].*) |
| 19876 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19877 | echo ' yes ' |
| 19878 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 19879 | : |
| 19880 | else |
| 19881 | can_build_shared=no |
| 19882 | fi |
| 19883 | ;; |
| 19884 | esac |
| 19885 | # Using Import Files as archive members, it is possible to support |
| 19886 | # filename-based versioning of shared library archives on AIX. While |
| 19887 | # this would work for both with and without runtime linking, it will |
| 19888 | # prevent static linking of such archives. So we do filename-based |
| 19889 | # shared library versioning with .so extension only, which is used |
| 19890 | # when both runtime linking and shared linking is enabled. |
| 19891 | # Unfortunately, runtime linking may impact performance, so we do |
| 19892 | # not want this to be the default eventually. Also, we use the |
| 19893 | # versioned .so libs for executables only if there is the -brtl |
| 19894 | # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. |
| 19895 | # To allow for filename-based versioning support, we need to create |
| 19896 | # libNAME.so.V as an archive file, containing: |
| 19897 | # *) an Import File, referring to the versioned filename of the |
| 19898 | # archive as well as the shared archive member, telling the |
| 19899 | # bitwidth (32 or 64) of that shared object, and providing the |
| 19900 | # list of exported symbols of that shared object, eventually |
| 19901 | # decorated with the 'weak' keyword |
| 19902 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 19903 | # it being seen by the linker. |
| 19904 | # At run time we better use the real file rather than another symlink, |
| 19905 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 19906 | |
| 19907 | case $with_aix_soname,$aix_use_runtimelinking in |
| 19908 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 19909 | # soname into executable. Probably we can add versioning support to |
| 19910 | # collect2, so additional links can be useful in future. |
| 19911 | aix,yes) # traditional libtool |
| 19912 | dynamic_linker='AIX unversionable lib.so' |
| 19913 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19914 | # instead of lib<name>.a to let people know that these are not |
| 19915 | # typical AIX shared libraries. |
| 19916 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19917 | ;; |
| 19918 | aix,no) # traditional AIX only |
| 19919 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 19920 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19921 | # and later when we are not doing run time linking. |
| 19922 | library_names_spec='$libname$release.a $libname.a' |
| 19923 | soname_spec='$libname$release$shared_ext$major' |
| 19924 | ;; |
| 19925 | svr4,*) # full svr4 only |
| 19926 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 19927 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 19928 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 19929 | shlibpath_overrides_runpath=yes |
| 19930 | ;; |
| 19931 | *,yes) # both, prefer svr4 |
| 19932 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 19933 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 19934 | # unpreferred sharedlib libNAME.a needs extra handling |
| 19935 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 19936 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 19937 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 19938 | shlibpath_overrides_runpath=yes |
| 19939 | ;; |
| 19940 | *,no) # both, prefer aix |
| 19941 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 19942 | library_names_spec='$libname$release.a $libname.a' |
| 19943 | soname_spec='$libname$release$shared_ext$major' |
| 19944 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 19945 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 19946 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 19947 | ;; |
| 19948 | esac |
| 19949 | shlibpath_var=LIBPATH |
| 19950 | fi |
| 19951 | ;; |
| 19952 | |
| 19953 | amigaos*) |
| 19954 | case $host_cpu in |
| 19955 | powerpc) |
| 19956 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 19957 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 19958 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19959 | ;; |
| 19960 | m68k) |
| 19961 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19962 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 19963 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 19964 | ;; |
| 19965 | esac |
| 19966 | ;; |
| 19967 | |
| 19968 | beos*) |
| 19969 | library_names_spec='$libname$shared_ext' |
| 19970 | dynamic_linker="$host_os ld.so" |
| 19971 | shlibpath_var=LIBRARY_PATH |
| 19972 | ;; |
| 19973 | |
| 19974 | bsdi[45]*) |
| 19975 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19976 | need_version=no |
| 19977 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19978 | soname_spec='$libname$release$shared_ext$major' |
| 19979 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19980 | shlibpath_var=LD_LIBRARY_PATH |
| 19981 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19982 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19983 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19984 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19985 | # libtool to hard-code these into programs |
| 19986 | ;; |
| 19987 | |
| 19988 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 19989 | version_type=windows |
| 19990 | shrext_cmds=.dll |
| 19991 | need_version=no |
| 19992 | need_lib_prefix=no |
| 19993 | |
| 19994 | case $GCC,$cc_basename in |
| 19995 | yes,*) |
| 19996 | # gcc |
| 19997 | library_names_spec='$libname.dll.a' |
| 19998 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19999 | # If user builds GCC with multilib enabled, |
| 20000 | # it should just install on $(libdir) |
| 20001 | # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. |
| 20002 | if test xyes = x"$multilib"; then |
| 20003 | postinstall_cmds='base_file=`basename \$file`~ |
| 20004 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 20005 | dldir=$destdir/`dirname \$dlpath`~ |
| 20006 | $install_prog $dir/$dlname $destdir/$dlname~ |
| 20007 | chmod a+x $destdir/$dlname~ |
| 20008 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 20009 | eval '\''$striplib $destdir/$dlname'\'' || exit \$?; |
| 20010 | fi' |
| 20011 | else |
| 20012 | postinstall_cmds='base_file=`basename \$file`~ |
| 20013 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 20014 | dldir=$destdir/`dirname \$dlpath`~ |
| 20015 | test -d \$dldir || mkdir -p \$dldir~ |
| 20016 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20017 | chmod a+x \$dldir/$dlname~ |
| 20018 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 20019 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 20020 | fi' |
| 20021 | fi |
| 20022 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20023 | dlpath=$dir/\$dldll~ |
| 20024 | $RM \$dlpath' |
| 20025 | shlibpath_overrides_runpath=yes |
| 20026 | |
| 20027 | case $host_os in |
| 20028 | cygwin*) |
| 20029 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20030 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 20031 | |
| 20032 | ;; |
| 20033 | mingw* | windows* | cegcc*) |
| 20034 | # MinGW DLLs use traditional 'lib' prefix |
| 20035 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 20036 | ;; |
| 20037 | pw32*) |
| 20038 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 20039 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 20040 | ;; |
| 20041 | esac |
| 20042 | dynamic_linker='Win32 ld.exe' |
| 20043 | ;; |
| 20044 | |
| 20045 | *,cl* | *,icl*) |
| 20046 | # Native MSVC or ICC |
| 20047 | libname_spec='$name' |
| 20048 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 20049 | library_names_spec='$libname.dll.lib' |
| 20050 | |
| 20051 | case $build_os in |
| 20052 | mingw* | windows*) |
| 20053 | sys_lib_search_path_spec= |
| 20054 | lt_save_ifs=$IFS |
| 20055 | IFS=';' |
| 20056 | for lt_path in $LIB |
| 20057 | do |
| 20058 | IFS=$lt_save_ifs |
| 20059 | # Let DOS variable expansion print the short 8.3 style file name. |
| 20060 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 20061 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 20062 | done |
| 20063 | IFS=$lt_save_ifs |
| 20064 | # Convert to MSYS style. |
| 20065 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 20066 | ;; |
| 20067 | cygwin*) |
| 20068 | # Convert to unix form, then to dos form, then back to unix form |
| 20069 | # but this time dos style (no spaces!) so that the unix form looks |
| 20070 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 20071 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 20072 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 20073 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20074 | ;; |
| 20075 | *) |
| 20076 | sys_lib_search_path_spec=$LIB |
| 20077 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 20078 | # It is most probably a Windows format PATH. |
| 20079 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20080 | else |
| 20081 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20082 | fi |
| 20083 | # FIXME: find the short name or the path components, as spaces are |
| 20084 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 20085 | ;; |
| 20086 | esac |
| 20087 | |
| 20088 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 20089 | postinstall_cmds='base_file=`basename \$file`~ |
| 20090 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 20091 | dldir=$destdir/`dirname \$dlpath`~ |
| 20092 | test -d \$dldir || mkdir -p \$dldir~ |
| 20093 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 20094 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20095 | dlpath=$dir/\$dldll~ |
| 20096 | $RM \$dlpath' |
| 20097 | shlibpath_overrides_runpath=yes |
| 20098 | dynamic_linker='Win32 link.exe' |
| 20099 | ;; |
| 20100 | |
| 20101 | *) |
| 20102 | # Assume MSVC and ICC wrapper |
| 20103 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 20104 | dynamic_linker='Win32 ld.exe' |
| 20105 | ;; |
| 20106 | esac |
| 20107 | # FIXME: first we should search . and the directory the executable is in |
| 20108 | shlibpath_var=PATH |
| 20109 | ;; |
| 20110 | |
| 20111 | darwin* | rhapsody*) |
| 20112 | dynamic_linker="$host_os dyld" |
| 20113 | version_type=darwin |
| 20114 | need_lib_prefix=no |
| 20115 | need_version=no |
| 20116 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 20117 | soname_spec='$libname$release$major$shared_ext' |
| 20118 | shlibpath_overrides_runpath=yes |
| 20119 | shlibpath_var=DYLD_LIBRARY_PATH |
| 20120 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 20121 | |
| 20122 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20123 | ;; |
| 20124 | |
| 20125 | dgux*) |
| 20126 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20127 | need_lib_prefix=no |
| 20128 | need_version=no |
| 20129 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20130 | soname_spec='$libname$release$shared_ext$major' |
| 20131 | shlibpath_var=LD_LIBRARY_PATH |
| 20132 | ;; |
| 20133 | |
| 20134 | freebsd* | dragonfly* | midnightbsd*) |
| 20135 | # DragonFly does not have aout. When/if they implement a new |
| 20136 | # versioning mechanism, adjust this. |
| 20137 | if test -x /usr/bin/objformat; then |
| 20138 | objformat=`/usr/bin/objformat` |
| 20139 | else |
| 20140 | case $host_os in |
| 20141 | freebsd[23].*) objformat=aout ;; |
| 20142 | *) objformat=elf ;; |
| 20143 | esac |
| 20144 | fi |
| 20145 | version_type=freebsd-$objformat |
| 20146 | case $version_type in |
| 20147 | freebsd-elf*) |
| 20148 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20149 | soname_spec='$libname$release$shared_ext$major' |
| 20150 | need_version=no |
| 20151 | need_lib_prefix=no |
| 20152 | ;; |
| 20153 | freebsd-*) |
| 20154 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 20155 | need_version=yes |
| 20156 | ;; |
| 20157 | esac |
| 20158 | case $host_cpu in |
| 20159 | powerpc64) |
| 20160 | # On FreeBSD bi-arch platforms, a different variable is used for 32-bit |
| 20161 | # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. |
| 20162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20163 | /* end confdefs.h. */ |
| 20164 | int test_pointer_size[sizeof (void *) - 5]; |
| 20165 | |
| 20166 | _ACEOF |
| 20167 | if ac_fn_cxx_try_compile "$LINENO" |
| 20168 | then : |
| 20169 | shlibpath_var=LD_LIBRARY_PATH |
| 20170 | else case e in #( |
| 20171 | e) shlibpath_var=LD_32_LIBRARY_PATH ;; |
| 20172 | esac |
| 20173 | fi |
| 20174 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20175 | ;; |
| 20176 | *) |
| 20177 | shlibpath_var=LD_LIBRARY_PATH |
| 20178 | ;; |
| 20179 | esac |
| 20180 | case $host_os in |
| 20181 | freebsd2.*) |
| 20182 | shlibpath_overrides_runpath=yes |
| 20183 | ;; |
| 20184 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 20185 | shlibpath_overrides_runpath=yes |
| 20186 | hardcode_into_libs=yes |
| 20187 | ;; |
| 20188 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20189 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 20190 | shlibpath_overrides_runpath=no |
| 20191 | hardcode_into_libs=yes |
| 20192 | ;; |
| 20193 | *) # from 4.6 on, and DragonFly |
| 20194 | shlibpath_overrides_runpath=yes |
| 20195 | hardcode_into_libs=yes |
| 20196 | ;; |
| 20197 | esac |
| 20198 | ;; |
| 20199 | |
| 20200 | haiku*) |
| 20201 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20202 | need_lib_prefix=no |
| 20203 | need_version=no |
| 20204 | dynamic_linker="$host_os runtime_loader" |
| 20205 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20206 | soname_spec='$libname$release$shared_ext$major' |
| 20207 | shlibpath_var=LIBRARY_PATH |
| 20208 | shlibpath_overrides_runpath=no |
| 20209 | sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' |
| 20210 | sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' |
| 20211 | hardcode_into_libs=no |
| 20212 | ;; |
| 20213 | |
| 20214 | hpux9* | hpux10* | hpux11*) |
| 20215 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20216 | # link against other versions. |
| 20217 | version_type=sunos |
| 20218 | need_lib_prefix=no |
| 20219 | need_version=no |
| 20220 | case $host_cpu in |
| 20221 | ia64*) |
| 20222 | shrext_cmds='.so' |
| 20223 | hardcode_into_libs=yes |
| 20224 | dynamic_linker="$host_os dld.so" |
| 20225 | shlibpath_var=LD_LIBRARY_PATH |
| 20226 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20227 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20228 | soname_spec='$libname$release$shared_ext$major' |
| 20229 | if test 32 = "$HPUX_IA64_MODE"; then |
| 20230 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20231 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 20232 | else |
| 20233 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20234 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 20235 | fi |
| 20236 | ;; |
| 20237 | hppa*64*) |
| 20238 | shrext_cmds='.sl' |
| 20239 | hardcode_into_libs=yes |
| 20240 | dynamic_linker="$host_os dld.sl" |
| 20241 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20242 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20243 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20244 | soname_spec='$libname$release$shared_ext$major' |
| 20245 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20246 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20247 | ;; |
| 20248 | *) |
| 20249 | shrext_cmds='.sl' |
| 20250 | dynamic_linker="$host_os dld.sl" |
| 20251 | shlibpath_var=SHLIB_PATH |
| 20252 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20253 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20254 | soname_spec='$libname$release$shared_ext$major' |
| 20255 | ;; |
| 20256 | esac |
| 20257 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 20258 | postinstall_cmds='chmod 555 $lib' |
| 20259 | # or fails outright, so override atomically: |
| 20260 | install_override_mode=555 |
| 20261 | ;; |
| 20262 | |
| 20263 | interix[3-9]*) |
| 20264 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20265 | need_lib_prefix=no |
| 20266 | need_version=no |
| 20267 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20268 | soname_spec='$libname$release$shared_ext$major' |
| 20269 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20270 | shlibpath_var=LD_LIBRARY_PATH |
| 20271 | shlibpath_overrides_runpath=no |
| 20272 | hardcode_into_libs=yes |
| 20273 | ;; |
| 20274 | |
| 20275 | irix5* | irix6* | nonstopux*) |
| 20276 | case $host_os in |
| 20277 | nonstopux*) version_type=nonstopux ;; |
| 20278 | *) |
| 20279 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 20280 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20281 | else |
| 20282 | version_type=irix |
| 20283 | fi ;; |
| 20284 | esac |
| 20285 | need_lib_prefix=no |
| 20286 | need_version=no |
| 20287 | soname_spec='$libname$release$shared_ext$major' |
| 20288 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 20289 | case $host_os in |
| 20290 | irix5* | nonstopux*) |
| 20291 | libsuff= shlibsuff= |
| 20292 | ;; |
| 20293 | *) |
| 20294 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20295 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20296 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20297 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20298 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20299 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20300 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20301 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20302 | esac |
| 20303 | ;; |
| 20304 | esac |
| 20305 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20306 | shlibpath_overrides_runpath=no |
| 20307 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 20308 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 20309 | hardcode_into_libs=yes |
| 20310 | ;; |
| 20311 | |
| 20312 | # No shared lib support for Linux oldld, aout, or coff. |
| 20313 | linux*oldld* | linux*aout* | linux*coff*) |
| 20314 | dynamic_linker=no |
| 20315 | ;; |
| 20316 | |
| 20317 | linux*android*) |
| 20318 | version_type=none # Android doesn't support versioned libraries. |
| 20319 | need_lib_prefix=no |
| 20320 | need_version=no |
| 20321 | library_names_spec='$libname$release$shared_ext $libname$shared_ext' |
| 20322 | soname_spec='$libname$release$shared_ext' |
| 20323 | finish_cmds= |
| 20324 | shlibpath_var=LD_LIBRARY_PATH |
| 20325 | shlibpath_overrides_runpath=yes |
| 20326 | |
| 20327 | # This implies no fast_install, which is unacceptable. |
| 20328 | # Some rework will be needed to allow for fast_install |
| 20329 | # before this can be enabled. |
| 20330 | hardcode_into_libs=yes |
| 20331 | |
| 20332 | dynamic_linker='Android linker' |
| 20333 | # -rpath works at least for libraries that are not overridden by |
| 20334 | # libraries installed in system locations. |
| 20335 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 20336 | ;; |
| 20337 | |
| 20338 | # This must be glibc/ELF. |
| 20339 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 20340 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20341 | need_lib_prefix=no |
| 20342 | need_version=no |
| 20343 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20344 | soname_spec='$libname$release$shared_ext$major' |
| 20345 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20346 | shlibpath_var=LD_LIBRARY_PATH |
| 20347 | shlibpath_overrides_runpath=no |
| 20348 | |
| 20349 | # Some binutils ld are patched to set DT_RUNPATH |
| 20350 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 20351 | then : |
| 20352 | printf %s "(cached) " >&6 |
| 20353 | else case e in #( |
| 20354 | e) lt_cv_shlibpath_overrides_runpath=no |
| 20355 | save_LDFLAGS=$LDFLAGS |
| 20356 | save_libdir=$libdir |
| 20357 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 20358 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 20359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20360 | /* end confdefs.h. */ |
| 20361 | |
| 20362 | int |
| 20363 | main (void) |
| 20364 | { |
| 20365 | |
| 20366 | ; |
| 20367 | return 0; |
| 20368 | } |
| 20369 | _ACEOF |
| 20370 | if ac_fn_cxx_try_link "$LINENO" |
| 20371 | then : |
| 20372 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 20373 | then : |
| 20374 | lt_cv_shlibpath_overrides_runpath=yes |
| 20375 | fi |
| 20376 | fi |
| 20377 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20378 | conftest$ac_exeext conftest.$ac_ext |
| 20379 | LDFLAGS=$save_LDFLAGS |
| 20380 | libdir=$save_libdir |
| 20381 | ;; |
| 20382 | esac |
| 20383 | fi |
| 20384 | |
| 20385 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 20386 | |
| 20387 | # This implies no fast_install, which is unacceptable. |
| 20388 | # Some rework will be needed to allow for fast_install |
| 20389 | # before this can be enabled. |
| 20390 | hardcode_into_libs=yes |
| 20391 | |
| 20392 | # Ideally, we could use ldconfig to report *all* directories which are |
| 20393 | # searched for libraries, however this is still not possible. Aside from not |
| 20394 | # being certain /sbin/ldconfig is available, command |
| 20395 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 20396 | # even though it is searched at run-time. Try to do the best guess by |
| 20397 | # appending ld.so.conf contents (and includes) to the search path. |
| 20398 | if test -f /etc/ld.so.conf; then |
| 20399 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 20400 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20401 | fi |
| 20402 | |
| 20403 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20404 | # powerpc, because MkLinux only supported shared libraries with the |
| 20405 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20406 | # most powerpc-linux boxes support dynamic linking these days and |
| 20407 | # people can always --disable-shared, the test was removed, and we |
| 20408 | # assume the GNU/Linux dynamic linker is in use. |
| 20409 | dynamic_linker='GNU/Linux ld.so' |
| 20410 | ;; |
| 20411 | |
| 20412 | netbsdelf*-gnu) |
| 20413 | version_type=linux |
| 20414 | need_lib_prefix=no |
| 20415 | need_version=no |
| 20416 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20417 | soname_spec='$libname$release$shared_ext$major' |
| 20418 | shlibpath_var=LD_LIBRARY_PATH |
| 20419 | shlibpath_overrides_runpath=no |
| 20420 | hardcode_into_libs=yes |
| 20421 | dynamic_linker='NetBSD ld.elf_so' |
| 20422 | ;; |
| 20423 | |
| 20424 | netbsd*) |
| 20425 | version_type=sunos |
| 20426 | need_lib_prefix=no |
| 20427 | need_version=no |
| 20428 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 20429 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 20430 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20431 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20432 | else |
| 20433 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20434 | soname_spec='$libname$release$shared_ext$major' |
| 20435 | dynamic_linker='NetBSD ld.elf_so' |
| 20436 | fi |
| 20437 | shlibpath_var=LD_LIBRARY_PATH |
| 20438 | shlibpath_overrides_runpath=yes |
| 20439 | hardcode_into_libs=yes |
| 20440 | ;; |
| 20441 | |
| 20442 | *-mlibc) |
| 20443 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20444 | need_lib_prefix=no |
| 20445 | need_version=no |
| 20446 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20447 | soname_spec='$libname$release$shared_ext$major' |
| 20448 | dynamic_linker='mlibc ld.so' |
| 20449 | shlibpath_var=LD_LIBRARY_PATH |
| 20450 | shlibpath_overrides_runpath=no |
| 20451 | hardcode_into_libs=yes |
| 20452 | ;; |
| 20453 | |
| 20454 | newsos6) |
| 20455 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20456 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20457 | shlibpath_var=LD_LIBRARY_PATH |
| 20458 | shlibpath_overrides_runpath=yes |
| 20459 | ;; |
| 20460 | |
| 20461 | *nto* | *qnx*) |
| 20462 | version_type=qnx |
| 20463 | need_lib_prefix=no |
| 20464 | need_version=no |
| 20465 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20466 | soname_spec='$libname$release$shared_ext$major' |
| 20467 | shlibpath_var=LD_LIBRARY_PATH |
| 20468 | shlibpath_overrides_runpath=no |
| 20469 | hardcode_into_libs=yes |
| 20470 | dynamic_linker='ldqnx.so' |
| 20471 | ;; |
| 20472 | |
| 20473 | openbsd*) |
| 20474 | version_type=sunos |
| 20475 | sys_lib_dlsearch_path_spec=/usr/lib |
| 20476 | need_lib_prefix=no |
| 20477 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 20478 | need_version=no |
| 20479 | else |
| 20480 | need_version=yes |
| 20481 | fi |
| 20482 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 20483 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20484 | shlibpath_var=LD_LIBRARY_PATH |
| 20485 | shlibpath_overrides_runpath=yes |
| 20486 | ;; |
| 20487 | |
| 20488 | os2*) |
| 20489 | libname_spec='$name' |
| 20490 | version_type=windows |
| 20491 | shrext_cmds=.dll |
| 20492 | need_version=no |
| 20493 | need_lib_prefix=no |
| 20494 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 20495 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 20496 | v=$($ECHO $release$versuffix | tr -d .-); |
| 20497 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 20498 | $ECHO $n$v`$shared_ext' |
| 20499 | library_names_spec='${libname}_dll.$libext' |
| 20500 | dynamic_linker='OS/2 ld.exe' |
| 20501 | shlibpath_var=BEGINLIBPATH |
| 20502 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20503 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20504 | postinstall_cmds='base_file=`basename \$file`~ |
| 20505 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 20506 | dldir=$destdir/`dirname \$dlpath`~ |
| 20507 | test -d \$dldir || mkdir -p \$dldir~ |
| 20508 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20509 | chmod a+x \$dldir/$dlname~ |
| 20510 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 20511 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 20512 | fi' |
| 20513 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 20514 | dlpath=$dir/\$dldll~ |
| 20515 | $RM \$dlpath' |
| 20516 | ;; |
| 20517 | |
| 20518 | osf3* | osf4* | osf5*) |
| 20519 | version_type=osf |
| 20520 | need_lib_prefix=no |
| 20521 | need_version=no |
| 20522 | soname_spec='$libname$release$shared_ext$major' |
| 20523 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20524 | shlibpath_var=LD_LIBRARY_PATH |
| 20525 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20526 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20527 | ;; |
| 20528 | |
| 20529 | rdos*) |
| 20530 | dynamic_linker=no |
| 20531 | ;; |
| 20532 | |
| 20533 | serenity*) |
| 20534 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20535 | need_lib_prefix=no |
| 20536 | need_version=no |
| 20537 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20538 | soname_spec='$libname$release$shared_ext$major' |
| 20539 | shlibpath_var=LD_LIBRARY_PATH |
| 20540 | shlibpath_overrides_runpath=no |
| 20541 | dynamic_linker='SerenityOS LibELF' |
| 20542 | ;; |
| 20543 | |
| 20544 | solaris*) |
| 20545 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20546 | need_lib_prefix=no |
| 20547 | need_version=no |
| 20548 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20549 | soname_spec='$libname$release$shared_ext$major' |
| 20550 | shlibpath_var=LD_LIBRARY_PATH |
| 20551 | shlibpath_overrides_runpath=yes |
| 20552 | hardcode_into_libs=yes |
| 20553 | # ldd complains unless libraries are executable |
| 20554 | postinstall_cmds='chmod +x $lib' |
| 20555 | ;; |
| 20556 | |
| 20557 | sunos4*) |
| 20558 | version_type=sunos |
| 20559 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 20560 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20561 | shlibpath_var=LD_LIBRARY_PATH |
| 20562 | shlibpath_overrides_runpath=yes |
| 20563 | if test yes = "$with_gnu_ld"; then |
| 20564 | need_lib_prefix=no |
| 20565 | fi |
| 20566 | need_version=yes |
| 20567 | ;; |
| 20568 | |
| 20569 | sysv4 | sysv4.3*) |
| 20570 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20571 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20572 | soname_spec='$libname$release$shared_ext$major' |
| 20573 | shlibpath_var=LD_LIBRARY_PATH |
| 20574 | case $host_vendor in |
| 20575 | sni) |
| 20576 | shlibpath_overrides_runpath=no |
| 20577 | need_lib_prefix=no |
| 20578 | runpath_var=LD_RUN_PATH |
| 20579 | ;; |
| 20580 | siemens) |
| 20581 | need_lib_prefix=no |
| 20582 | ;; |
| 20583 | motorola) |
| 20584 | need_lib_prefix=no |
| 20585 | need_version=no |
| 20586 | shlibpath_overrides_runpath=no |
| 20587 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20588 | ;; |
| 20589 | esac |
| 20590 | ;; |
| 20591 | |
| 20592 | sysv4*MP*) |
| 20593 | if test -d /usr/nec; then |
| 20594 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20595 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 20596 | soname_spec='$libname$shared_ext.$major' |
| 20597 | shlibpath_var=LD_LIBRARY_PATH |
| 20598 | fi |
| 20599 | ;; |
| 20600 | |
| 20601 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20602 | version_type=sco |
| 20603 | need_lib_prefix=no |
| 20604 | need_version=no |
| 20605 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 20606 | soname_spec='$libname$release$shared_ext$major' |
| 20607 | shlibpath_var=LD_LIBRARY_PATH |
| 20608 | shlibpath_overrides_runpath=yes |
| 20609 | hardcode_into_libs=yes |
| 20610 | if test yes = "$with_gnu_ld"; then |
| 20611 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20612 | else |
| 20613 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20614 | case $host_os in |
| 20615 | sco3.2v5*) |
| 20616 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20617 | ;; |
| 20618 | esac |
| 20619 | fi |
| 20620 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20621 | ;; |
| 20622 | |
| 20623 | tpf*) |
| 20624 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 20625 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20626 | need_lib_prefix=no |
| 20627 | need_version=no |
| 20628 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20629 | shlibpath_var=LD_LIBRARY_PATH |
| 20630 | shlibpath_overrides_runpath=no |
| 20631 | hardcode_into_libs=yes |
| 20632 | ;; |
| 20633 | |
| 20634 | uts4*) |
| 20635 | version_type=linux # correct to gnu/linux during the next big refactor |
| 20636 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 20637 | soname_spec='$libname$release$shared_ext$major' |
| 20638 | shlibpath_var=LD_LIBRARY_PATH |
| 20639 | ;; |
| 20640 | |
| 20641 | emscripten*) |
| 20642 | version_type=none |
| 20643 | need_lib_prefix=no |
| 20644 | need_version=no |
| 20645 | library_names_spec='$libname$release$shared_ext' |
| 20646 | soname_spec='$libname$release$shared_ext' |
| 20647 | finish_cmds= |
| 20648 | dynamic_linker="Emscripten linker" |
| 20649 | lt_prog_compiler_wl_CXX= |
| 20650 | lt_prog_compiler_pic_CXX= |
| 20651 | lt_prog_compiler_static_CXX= |
| 20652 | |
| 20653 | |
| 20654 | # C++ specific cases for pic, static, wl, etc. |
| 20655 | if test yes = "$GXX"; then |
| 20656 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20657 | lt_prog_compiler_static_CXX='-static' |
| 20658 | |
| 20659 | case $host_os in |
| 20660 | aix*) |
| 20661 | # All AIX code is PIC. |
| 20662 | if test ia64 = "$host_cpu"; then |
| 20663 | # AIX 5 now supports IA64 processor |
| 20664 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20665 | fi |
| 20666 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20667 | ;; |
| 20668 | |
| 20669 | amigaos*) |
| 20670 | case $host_cpu in |
| 20671 | powerpc) |
| 20672 | # see comment about AmigaOS4 .so support |
| 20673 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20674 | ;; |
| 20675 | m68k) |
| 20676 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20677 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 20678 | # like '-m68040'. |
| 20679 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 20680 | ;; |
| 20681 | esac |
| 20682 | ;; |
| 20683 | |
| 20684 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20685 | # PIC is the default for these OSes. |
| 20686 | ;; |
| 20687 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 20688 | # This hack is so that the source file can tell whether it is being |
| 20689 | # built for inclusion in a dll (and should export symbols for example). |
| 20690 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 20691 | # (--disable-auto-import) libraries |
| 20692 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 20693 | case $host_os in |
| 20694 | os2*) |
| 20695 | lt_prog_compiler_static_CXX='$wl-static' |
| 20696 | ;; |
| 20697 | esac |
| 20698 | ;; |
| 20699 | darwin* | rhapsody*) |
| 20700 | # PIC is the default on this platform |
| 20701 | # Common symbols not allowed in MH_DYLIB files |
| 20702 | lt_prog_compiler_pic_CXX='-fno-common' |
| 20703 | ;; |
| 20704 | *djgpp*) |
| 20705 | # DJGPP does not support shared libraries at all |
| 20706 | lt_prog_compiler_pic_CXX= |
| 20707 | ;; |
| 20708 | haiku*) |
| 20709 | # PIC is the default for Haiku. |
| 20710 | # The "-static" flag exists, but is broken. |
| 20711 | lt_prog_compiler_static_CXX= |
| 20712 | ;; |
| 20713 | interix[3-9]*) |
| 20714 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20715 | # Instead, we relocate shared libraries at runtime. |
| 20716 | ;; |
| 20717 | sysv4*MP*) |
| 20718 | if test -d /usr/nec; then |
| 20719 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 20720 | fi |
| 20721 | ;; |
| 20722 | hpux*) |
| 20723 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 20724 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 20725 | # sets the default TLS model and affects inlining. |
| 20726 | case $host_cpu in |
| 20727 | hppa*64*) |
| 20728 | ;; |
| 20729 | *) |
| 20730 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20731 | ;; |
| 20732 | esac |
| 20733 | ;; |
| 20734 | *qnx* | *nto*) |
| 20735 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20736 | # it will coredump. |
| 20737 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 20738 | ;; |
| 20739 | *) |
| 20740 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20741 | ;; |
| 20742 | esac |
| 20743 | else |
| 20744 | case $host_os in |
| 20745 | aix[4-9]*) |
| 20746 | # All AIX code is PIC. |
| 20747 | if test ia64 = "$host_cpu"; then |
| 20748 | # AIX 5 now supports IA64 processor |
| 20749 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20750 | else |
| 20751 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 20752 | fi |
| 20753 | ;; |
| 20754 | chorus*) |
| 20755 | case $cc_basename in |
| 20756 | cxch68*) |
| 20757 | # Green Hills C++ Compiler |
| 20758 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 20759 | ;; |
| 20760 | esac |
| 20761 | ;; |
| 20762 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 20763 | # This hack is so that the source file can tell whether it is being |
| 20764 | # built for inclusion in a dll (and should export symbols for example). |
| 20765 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 20766 | ;; |
| 20767 | dgux*) |
| 20768 | case $cc_basename in |
| 20769 | ec++*) |
| 20770 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20771 | ;; |
| 20772 | ghcx*) |
| 20773 | # Green Hills C++ Compiler |
| 20774 | lt_prog_compiler_pic_CXX='-pic' |
| 20775 | ;; |
| 20776 | *) |
| 20777 | ;; |
| 20778 | esac |
| 20779 | ;; |
| 20780 | freebsd* | dragonfly* | midnightbsd*) |
| 20781 | # FreeBSD uses GNU C++ |
| 20782 | ;; |
| 20783 | hpux9* | hpux10* | hpux11*) |
| 20784 | case $cc_basename in |
| 20785 | CC*) |
| 20786 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20787 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 20788 | if test ia64 != "$host_cpu"; then |
| 20789 | lt_prog_compiler_pic_CXX='+Z' |
| 20790 | fi |
| 20791 | ;; |
| 20792 | aCC*) |
| 20793 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20794 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 20795 | case $host_cpu in |
| 20796 | hppa*64*|ia64*) |
| 20797 | # +Z the default |
| 20798 | ;; |
| 20799 | *) |
| 20800 | lt_prog_compiler_pic_CXX='+Z' |
| 20801 | ;; |
| 20802 | esac |
| 20803 | ;; |
| 20804 | *) |
| 20805 | ;; |
| 20806 | esac |
| 20807 | ;; |
| 20808 | interix*) |
| 20809 | # This is c89, which is MS Visual C++ (no shared libs) |
| 20810 | # Anyone wants to do a port? |
| 20811 | ;; |
| 20812 | irix5* | irix6* | nonstopux*) |
| 20813 | case $cc_basename in |
| 20814 | CC*) |
| 20815 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20816 | lt_prog_compiler_static_CXX='-non_shared' |
| 20817 | # CC pic flag -KPIC is the default. |
| 20818 | ;; |
| 20819 | *) |
| 20820 | ;; |
| 20821 | esac |
| 20822 | ;; |
| 20823 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 20824 | case $cc_basename in |
| 20825 | KCC*) |
| 20826 | # KAI C++ Compiler |
| 20827 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20828 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20829 | ;; |
| 20830 | ecpc* ) |
| 20831 | # old Intel C++ for x86_64, which still supported -KPIC. |
| 20832 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20833 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20834 | lt_prog_compiler_static_CXX='-static' |
| 20835 | ;; |
| 20836 | icpc* ) |
| 20837 | # Intel C++, used to be incompatible with GCC. |
| 20838 | # ICC 10 doesn't accept -KPIC any more. |
| 20839 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20840 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20841 | lt_prog_compiler_static_CXX='-static' |
| 20842 | ;; |
| 20843 | pgCC* | pgcpp*) |
| 20844 | # Portland Group C++ compiler |
| 20845 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20846 | lt_prog_compiler_pic_CXX='-fpic' |
| 20847 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20848 | ;; |
| 20849 | cxx*) |
| 20850 | # Compaq C++ |
| 20851 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20852 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20853 | lt_prog_compiler_pic_CXX= |
| 20854 | lt_prog_compiler_static_CXX='-non_shared' |
| 20855 | ;; |
| 20856 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 20857 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 20858 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20859 | lt_prog_compiler_pic_CXX='-qpic' |
| 20860 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 20861 | ;; |
| 20862 | *) |
| 20863 | case `$CC -V 2>&1 | $SED 5q` in |
| 20864 | *Sun\ C*) |
| 20865 | # Sun C++ 5.9 |
| 20866 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20867 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20868 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20869 | ;; |
| 20870 | esac |
| 20871 | ;; |
| 20872 | esac |
| 20873 | ;; |
| 20874 | lynxos*) |
| 20875 | ;; |
| 20876 | m88k*) |
| 20877 | ;; |
| 20878 | mvs*) |
| 20879 | case $cc_basename in |
| 20880 | cxx*) |
| 20881 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 20882 | ;; |
| 20883 | *) |
| 20884 | ;; |
| 20885 | esac |
| 20886 | ;; |
| 20887 | netbsd* | netbsdelf*-gnu) |
| 20888 | ;; |
| 20889 | *-mlibc) |
| 20890 | ;; |
| 20891 | *qnx* | *nto*) |
| 20892 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20893 | # it will coredump. |
| 20894 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 20895 | ;; |
| 20896 | osf3* | osf4* | osf5*) |
| 20897 | case $cc_basename in |
| 20898 | KCC*) |
| 20899 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20900 | ;; |
| 20901 | RCC*) |
| 20902 | # Rational C++ 2.4.1 |
| 20903 | lt_prog_compiler_pic_CXX='-pic' |
| 20904 | ;; |
| 20905 | cxx*) |
| 20906 | # Digital/Compaq C++ |
| 20907 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20908 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20909 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20910 | lt_prog_compiler_pic_CXX= |
| 20911 | lt_prog_compiler_static_CXX='-non_shared' |
| 20912 | ;; |
| 20913 | *) |
| 20914 | ;; |
| 20915 | esac |
| 20916 | ;; |
| 20917 | psos*) |
| 20918 | ;; |
| 20919 | serenity*) |
| 20920 | ;; |
| 20921 | solaris*) |
| 20922 | case $cc_basename in |
| 20923 | CC* | sunCC*) |
| 20924 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 20925 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20926 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20927 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20928 | ;; |
| 20929 | gcx*) |
| 20930 | # Green Hills C++ Compiler |
| 20931 | lt_prog_compiler_pic_CXX='-PIC' |
| 20932 | ;; |
| 20933 | *) |
| 20934 | ;; |
| 20935 | esac |
| 20936 | ;; |
| 20937 | sunos4*) |
| 20938 | case $cc_basename in |
| 20939 | CC*) |
| 20940 | # Sun C++ 4.x |
| 20941 | lt_prog_compiler_pic_CXX='-pic' |
| 20942 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20943 | ;; |
| 20944 | lcc*) |
| 20945 | # Lucid |
| 20946 | lt_prog_compiler_pic_CXX='-pic' |
| 20947 | ;; |
| 20948 | *) |
| 20949 | ;; |
| 20950 | esac |
| 20951 | ;; |
| 20952 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20953 | case $cc_basename in |
| 20954 | CC*) |
| 20955 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20956 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20957 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20958 | ;; |
| 20959 | esac |
| 20960 | ;; |
| 20961 | tandem*) |
| 20962 | case $cc_basename in |
| 20963 | NCC*) |
| 20964 | # NonStop-UX NCC 3.20 |
| 20965 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20966 | ;; |
| 20967 | *) |
| 20968 | ;; |
| 20969 | esac |
| 20970 | ;; |
| 20971 | vxworks*) |
| 20972 | ;; |
| 20973 | *) |
| 20974 | lt_prog_compiler_can_build_shared_CXX=no |
| 20975 | ;; |
| 20976 | esac |
| 20977 | fi |
| 20978 | |
| 20979 | case $host_os in |
| 20980 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 20981 | *djgpp*) |
| 20982 | lt_prog_compiler_pic_CXX= |
| 20983 | ;; |
| 20984 | *) |
| 20985 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20986 | ;; |
| 20987 | esac |
| 20988 | |
| 20989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 20990 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 20991 | if test ${lt_cv_prog_compiler_pic_CXX+y} |
| 20992 | then : |
| 20993 | printf %s "(cached) " >&6 |
| 20994 | else case e in #( |
| 20995 | e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; |
| 20996 | esac |
| 20997 | fi |
| 20998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 20999 | printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 21000 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 21001 | |
| 21002 | # |
| 21003 | # Check to make sure the PIC flag actually works. |
| 21004 | # |
| 21005 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 21006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 21007 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 21008 | if test ${lt_cv_prog_compiler_pic_works_CXX+y} |
| 21009 | then : |
| 21010 | printf %s "(cached) " >&6 |
| 21011 | else case e in #( |
| 21012 | e) lt_cv_prog_compiler_pic_works_CXX=no |
| 21013 | ac_outfile=conftest.$ac_objext |
| 21014 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21015 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 21016 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21017 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21018 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21019 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21020 | # The option is referenced via a variable to avoid confusing sed. |
| 21021 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21022 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 21023 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21024 | -e 's:$: $lt_compiler_flag:'` |
| 21025 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 21026 | (eval "$lt_compile" 2>conftest.err) |
| 21027 | ac_status=$? |
| 21028 | cat conftest.err >&5 |
| 21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21030 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21031 | # The compiler can only warn and ignore the option if not recognized |
| 21032 | # So say no if there are warnings other than the usual output. |
| 21033 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 21034 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21035 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 21036 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 21037 | fi |
| 21038 | fi |
| 21039 | $RM conftest* |
| 21040 | ;; |
| 21041 | esac |
| 21042 | fi |
| 21043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 21044 | printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 21045 | |
| 21046 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
| 21047 | case $lt_prog_compiler_pic_CXX in |
| 21048 | "" | " "*) ;; |
| 21049 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 21050 | esac |
| 21051 | else |
| 21052 | lt_prog_compiler_pic_CXX= |
| 21053 | lt_prog_compiler_can_build_shared_CXX=no |
| 21054 | fi |
| 21055 | |
| 21056 | fi |
| 21057 | |
| 21058 | |
| 21059 | |
| 21060 | |
| 21061 | |
| 21062 | # |
| 21063 | # Check to make sure the static flag actually works. |
| 21064 | # |
| 21065 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 21066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21067 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 21068 | if test ${lt_cv_prog_compiler_static_works_CXX+y} |
| 21069 | then : |
| 21070 | printf %s "(cached) " >&6 |
| 21071 | else case e in #( |
| 21072 | e) lt_cv_prog_compiler_static_works_CXX=no |
| 21073 | save_LDFLAGS=$LDFLAGS |
| 21074 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21075 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21076 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21077 | # The linker can only warn and ignore the option if not recognized |
| 21078 | # So say no if there are warnings |
| 21079 | if test -s conftest.err; then |
| 21080 | # Append any errors to the config.log. |
| 21081 | cat conftest.err 1>&5 |
| 21082 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 21083 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21084 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21085 | lt_cv_prog_compiler_static_works_CXX=yes |
| 21086 | fi |
| 21087 | else |
| 21088 | lt_cv_prog_compiler_static_works_CXX=yes |
| 21089 | fi |
| 21090 | fi |
| 21091 | $RM -r conftest* |
| 21092 | LDFLAGS=$save_LDFLAGS |
| 21093 | ;; |
| 21094 | esac |
| 21095 | fi |
| 21096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 21097 | printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 21098 | |
| 21099 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
| 21100 | : |
| 21101 | else |
| 21102 | lt_prog_compiler_static_CXX= |
| 21103 | fi |
| 21104 | |
| 21105 | |
| 21106 | |
| 21107 | ='-fPIC' |
| 21108 | archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' |
| 21109 | archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' |
| 21110 | archive_cmds_need_lc_CXX=no |
| 21111 | no_undefined_flag_CXX= |
| 21112 | ;; |
| 21113 | |
| 21114 | *) |
| 21115 | dynamic_linker=no |
| 21116 | ;; |
| 21117 | esac |
| 21118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 21119 | printf "%s\n" "$dynamic_linker" >&6; } |
| 21120 | test no = "$dynamic_linker" && can_build_shared=no |
| 21121 | |
| 21122 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 21123 | if test yes = "$GCC"; then |
| 21124 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 21125 | fi |
| 21126 | |
| 21127 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 21128 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 21129 | fi |
| 21130 | |
| 21131 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 21132 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 21133 | fi |
| 21134 | |
| 21135 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 21136 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 21137 | |
| 21138 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 21139 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 21140 | |
| 21141 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 21142 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 21143 | |
| 21144 | |
| 21145 | |
| 21146 | |
| 21147 | |
| 21148 | |
| 21149 | |
| 21150 | |
| 21151 | |
| 21152 | |
| 21153 | |
| 21154 | |
| 21155 | |
| 21156 | |
| 21157 | |
| 21158 | |
| 21159 | |
| 21160 | |
| 21161 | |
| 21162 | |
| 21163 | |
| 21164 | |
| 21165 | |
| 21166 | |
| 21167 | |
| 21168 | |
| 21169 | |
| 21170 | |
| 21171 | |
| 21172 | |
| 21173 | |
| 21174 | |
| 21175 | |
| 21176 | |
| 21177 | |
| 21178 | |
| 21179 | |
| 21180 | |
| 21181 | |
| 21182 | |
| 21183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 21184 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 21185 | hardcode_action_CXX= |
| 21186 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 21187 | test -n "$runpath_var_CXX" || |
| 21188 | test yes = "$hardcode_automatic_CXX"; then |
| 21189 | |
| 21190 | # We can hardcode non-existent directories. |
| 21191 | if test no != "$hardcode_direct_CXX" && |
| 21192 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 21193 | # have to relink, otherwise we might link with an installed library |
| 21194 | # when we should be linking with a yet-to-be-installed one |
| 21195 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
| 21196 | test no != "$hardcode_minus_L_CXX"; then |
| 21197 | # Linking always hardcodes the temporary library directory. |
| 21198 | hardcode_action_CXX=relink |
| 21199 | else |
| 21200 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 21201 | hardcode_action_CXX=immediate |
| 21202 | fi |
| 21203 | else |
| 21204 | # We cannot hardcode anything, or else we can only hardcode existing |
| 21205 | # directories. |
| 21206 | hardcode_action_CXX=unsupported |
| 21207 | fi |
| 21208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 21209 | printf "%s\n" "$hardcode_action_CXX" >&6; } |
| 21210 | |
| 21211 | if test relink = "$hardcode_action_CXX" || |
| 21212 | test yes = "$inherit_rpath_CXX"; then |
| 21213 | # Fast installation is not supported |
| 21214 | enable_fast_install=no |
| 21215 | elif test yes = "$shlibpath_overrides_runpath" || |
| 21216 | test no = "$enable_shared"; then |
| 21217 | # Fast installation is not necessary |
| 21218 | enable_fast_install=needless |
| 21219 | fi |
| 21220 | |
| 21221 | |
| 21222 | |
| 21223 | |
| 21224 | |
| 21225 | |
| 21226 | |
| 21227 | fi # test -n "$compiler" |
| 21228 | |
| 21229 | CC=$lt_save_CC |
| 21230 | CFLAGS=$lt_save_CFLAGS |
| 21231 | LDCXX=$LD |
| 21232 | LD=$lt_save_LD |
| 21233 | GCC=$lt_save_GCC |
| 21234 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21235 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21236 | lt_cv_path_LD=$lt_save_path_LD |
| 21237 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21238 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21239 | fi # test yes != "$_lt_caught_CXX_error" |
| 21240 | |
| 21241 | ac_ext=c |
| 21242 | ac_cpp='$CPP $CPPFLAGS' |
| 21243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21246 | |
| 21247 | |
| 21248 | ac_ext=mm |
| 21249 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
| 21250 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21251 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21252 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu |
| 21253 | if test -n "$ac_tool_prefix"; then |
| 21254 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 21255 | do |
| 21256 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 21257 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 21258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 21259 | printf %s "checking for $ac_word... " >&6; } |
| 21260 | if test ${ac_cv_prog_OBJCXX+y} |
| 21261 | then : |
| 21262 | printf %s "(cached) " >&6 |
| 21263 | else case e in #( |
| 21264 | e) if test -n "$OBJCXX"; then |
| 21265 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. |
| 21266 | else |
| 21267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21268 | for as_dir in $PATH |
| 21269 | do |
| 21270 | IFS=$as_save_IFS |
| 21271 | case $as_dir in #((( |
| 21272 | '') as_dir=./ ;; |
| 21273 | */) ;; |
| 21274 | *) as_dir=$as_dir/ ;; |
| 21275 | esac |
| 21276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21277 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 21278 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
| 21279 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 21280 | break 2 |
| 21281 | fi |
| 21282 | done |
| 21283 | done |
| 21284 | IFS=$as_save_IFS |
| 21285 | |
| 21286 | fi ;; |
| 21287 | esac |
| 21288 | fi |
| 21289 | OBJCXX=$ac_cv_prog_OBJCXX |
| 21290 | if test -n "$OBJCXX"; then |
| 21291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 |
| 21292 | printf "%s\n" "$OBJCXX" >&6; } |
| 21293 | else |
| 21294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21295 | printf "%s\n" "no" >&6; } |
| 21296 | fi |
| 21297 | |
| 21298 | |
| 21299 | test -n "$OBJCXX" && break |
| 21300 | done |
| 21301 | fi |
| 21302 | if test -z "$OBJCXX"; then |
| 21303 | ac_ct_OBJCXX=$OBJCXX |
| 21304 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 21305 | do |
| 21306 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21307 | set dummy $ac_prog; ac_word=$2 |
| 21308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 21309 | printf %s "checking for $ac_word... " >&6; } |
| 21310 | if test ${ac_cv_prog_ac_ct_OBJCXX+y} |
| 21311 | then : |
| 21312 | printf %s "(cached) " >&6 |
| 21313 | else case e in #( |
| 21314 | e) if test -n "$ac_ct_OBJCXX"; then |
| 21315 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. |
| 21316 | else |
| 21317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21318 | for as_dir in $PATH |
| 21319 | do |
| 21320 | IFS=$as_save_IFS |
| 21321 | case $as_dir in #((( |
| 21322 | '') as_dir=./ ;; |
| 21323 | */) ;; |
| 21324 | *) as_dir=$as_dir/ ;; |
| 21325 | esac |
| 21326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21327 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 21328 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
| 21329 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 21330 | break 2 |
| 21331 | fi |
| 21332 | done |
| 21333 | done |
| 21334 | IFS=$as_save_IFS |
| 21335 | |
| 21336 | fi ;; |
| 21337 | esac |
| 21338 | fi |
| 21339 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
| 21340 | if test -n "$ac_ct_OBJCXX"; then |
| 21341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 |
| 21342 | printf "%s\n" "$ac_ct_OBJCXX" >&6; } |
| 21343 | else |
| 21344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21345 | printf "%s\n" "no" >&6; } |
| 21346 | fi |
| 21347 | |
| 21348 | |
| 21349 | test -n "$ac_ct_OBJCXX" && break |
| 21350 | done |
| 21351 | |
| 21352 | if test "x$ac_ct_OBJCXX" = x; then |
| 21353 | OBJCXX="g++" |
| 21354 | else |
| 21355 | case $cross_compiling:$ac_tool_warned in |
| 21356 | yes:) |
| 21357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 21358 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 21359 | ac_tool_warned=yes ;; |
| 21360 | esac |
| 21361 | OBJCXX=$ac_ct_OBJCXX |
| 21362 | fi |
| 21363 | fi |
| 21364 | |
| 21365 | # Provide some information about the compiler. |
| 21366 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
| 21367 | set X $ac_compile |
| 21368 | ac_compiler=$2 |
| 21369 | for ac_option in --version -v -V -qversion; do |
| 21370 | { { ac_try="$ac_compiler $ac_option >&5" |
| 21371 | case "(($ac_try" in |
| 21372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21373 | *) ac_try_echo=$ac_try;; |
| 21374 | esac |
| 21375 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 21376 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 21377 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 21378 | ac_status=$? |
| 21379 | if test -s conftest.err; then |
| 21380 | sed '10a\ |
| 21381 | ... rest of stderr output deleted ... |
| 21382 | 10q' conftest.err >conftest.er1 |
| 21383 | cat conftest.er1 >&5 |
| 21384 | fi |
| 21385 | rm -f conftest.er1 conftest.err |
| 21386 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21387 | test $ac_status = 0; } |
| 21388 | done |
| 21389 | |
| 21390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Objective C++" >&5 |
| 21391 | printf %s "checking whether the compiler supports GNU Objective C++... " >&6; } |
| 21392 | if test ${ac_cv_objcxx_compiler_gnu+y} |
| 21393 | then : |
| 21394 | printf %s "(cached) " >&6 |
| 21395 | else case e in #( |
| 21396 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21397 | /* end confdefs.h. */ |
| 21398 | |
| 21399 | int |
| 21400 | main (void) |
| 21401 | { |
| 21402 | #ifndef __GNUC__ |
| 21403 | choke me |
| 21404 | #endif |
| 21405 | |
| 21406 | ; |
| 21407 | return 0; |
| 21408 | } |
| 21409 | _ACEOF |
| 21410 | if ac_fn_objcxx_try_compile "$LINENO" |
| 21411 | then : |
| 21412 | ac_compiler_gnu=yes |
| 21413 | else case e in #( |
| 21414 | e) ac_compiler_gnu=no ;; |
| 21415 | esac |
| 21416 | fi |
| 21417 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21418 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
| 21419 | ;; |
| 21420 | esac |
| 21421 | fi |
| 21422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
| 21423 | printf "%s\n" "$ac_cv_objcxx_compiler_gnu" >&6; } |
| 21424 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu |
| 21425 | |
| 21426 | if test $ac_compiler_gnu = yes; then |
| 21427 | GOBJCXX=yes |
| 21428 | else |
| 21429 | GOBJCXX= |
| 21430 | fi |
| 21431 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+y} |
| 21432 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS |
| 21433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 |
| 21434 | printf %s "checking whether $OBJCXX accepts -g... " >&6; } |
| 21435 | if test ${ac_cv_prog_objcxx_g+y} |
| 21436 | then : |
| 21437 | printf %s "(cached) " >&6 |
| 21438 | else case e in #( |
| 21439 | e) ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
| 21440 | ac_objcxx_werror_flag=yes |
| 21441 | ac_cv_prog_objcxx_g=no |
| 21442 | OBJCXXFLAGS="-g" |
| 21443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21444 | /* end confdefs.h. */ |
| 21445 | |
| 21446 | int |
| 21447 | main (void) |
| 21448 | { |
| 21449 | |
| 21450 | ; |
| 21451 | return 0; |
| 21452 | } |
| 21453 | _ACEOF |
| 21454 | if ac_fn_objcxx_try_compile "$LINENO" |
| 21455 | then : |
| 21456 | ac_cv_prog_objcxx_g=yes |
| 21457 | else case e in #( |
| 21458 | e) OBJCXXFLAGS="" |
| 21459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21460 | /* end confdefs.h. */ |
| 21461 | |
| 21462 | int |
| 21463 | main (void) |
| 21464 | { |
| 21465 | |
| 21466 | ; |
| 21467 | return 0; |
| 21468 | } |
| 21469 | _ACEOF |
| 21470 | if ac_fn_objcxx_try_compile "$LINENO" |
| 21471 | then : |
| 21472 | |
| 21473 | else case e in #( |
| 21474 | e) ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
| 21475 | OBJCXXFLAGS="-g" |
| 21476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21477 | /* end confdefs.h. */ |
| 21478 | |
| 21479 | int |
| 21480 | main (void) |
| 21481 | { |
| 21482 | |
| 21483 | ; |
| 21484 | return 0; |
| 21485 | } |
| 21486 | _ACEOF |
| 21487 | if ac_fn_objcxx_try_compile "$LINENO" |
| 21488 | then : |
| 21489 | ac_cv_prog_objcxx_g=yes |
| 21490 | fi |
| 21491 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 21492 | esac |
| 21493 | fi |
| 21494 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 21495 | esac |
| 21496 | fi |
| 21497 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21498 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag ;; |
| 21499 | esac |
| 21500 | fi |
| 21501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
| 21502 | printf "%s\n" "$ac_cv_prog_objcxx_g" >&6; } |
| 21503 | if test $ac_test_OBJCXXFLAGS; then |
| 21504 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS |
| 21505 | elif test $ac_cv_prog_objcxx_g = yes; then |
| 21506 | if test "$GOBJCXX" = yes; then |
| 21507 | OBJCXXFLAGS="-g -O2" |
| 21508 | else |
| 21509 | OBJCXXFLAGS="-g" |
| 21510 | fi |
| 21511 | else |
| 21512 | if test "$GOBJCXX" = yes; then |
| 21513 | OBJCXXFLAGS="-O2" |
| 21514 | else |
| 21515 | OBJCXXFLAGS= |
| 21516 | fi |
| 21517 | fi |
| 21518 | ac_ext=c |
| 21519 | ac_cpp='$CPP $CPPFLAGS' |
| 21520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21523 | |
| 21524 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
| 21525 | |
| 21526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 21527 | printf %s "checking dependency style of $depcc... " >&6; } |
| 21528 | if test ${am_cv_OBJCXX_dependencies_compiler_type+y} |
| 21529 | then : |
| 21530 | printf %s "(cached) " >&6 |
| 21531 | else case e in #( |
| 21532 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 21533 | # We make a subdir and do the tests there. Otherwise we can end up |
| 21534 | # making bogus files that we don't know about and never remove. For |
| 21535 | # instance it was reported that on HP-UX the gcc test will end up |
| 21536 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 21537 | # in D". |
| 21538 | rm -rf conftest.dir |
| 21539 | mkdir conftest.dir |
| 21540 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 21541 | # using a relative directory. |
| 21542 | cp "$am_depcomp" conftest.dir |
| 21543 | cd conftest.dir |
| 21544 | # We will build objects and dependencies in a subdirectory because |
| 21545 | # it helps to detect inapplicable dependency modes. For instance |
| 21546 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 21547 | # side effect of compilation, but ICC will put the dependencies in |
| 21548 | # the current directory while Tru64 will put them in the object |
| 21549 | # directory. |
| 21550 | mkdir sub |
| 21551 | |
| 21552 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 21553 | if test "$am_compiler_list" = ""; then |
| 21554 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 21555 | fi |
| 21556 | am__universal=false |
| 21557 | |
| 21558 | |
| 21559 | for depmode in $am_compiler_list; do |
| 21560 | # Setup a source with many dependencies, because some compilers |
| 21561 | # like to wrap large dependency lists on column 80 (with \), and |
| 21562 | # we should not choose a depcomp mode which is confused by this. |
| 21563 | # |
| 21564 | # We need to recreate these files for each test, as the compiler may |
| 21565 | # overwrite some of them when testing with obscure command lines. |
| 21566 | # This happens at least with the AIX C compiler. |
| 21567 | : > sub/conftest.c |
| 21568 | for i in 1 2 3 4 5 6; do |
| 21569 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 21570 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 21571 | # Solaris 10 /bin/sh. |
| 21572 | echo '/* dummy */' > sub/conftst$i.h |
| 21573 | done |
| 21574 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 21575 | |
| 21576 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 21577 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 21578 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 21579 | # versions had trouble with output in subdirs. |
| 21580 | am__obj=sub/conftest.${OBJEXT-o} |
| 21581 | am__minus_obj="-o $am__obj" |
| 21582 | case $depmode in |
| 21583 | gcc) |
| 21584 | # This depmode causes a compiler race in universal mode. |
| 21585 | test "$am__universal" = false || continue |
| 21586 | ;; |
| 21587 | nosideeffect) |
| 21588 | # After this tag, mechanisms are not by side-effect, so they'll |
| 21589 | # only be used when explicitly requested. |
| 21590 | if test "x$enable_dependency_tracking" = xyes; then |
| 21591 | continue |
| 21592 | else |
| 21593 | break |
| 21594 | fi |
| 21595 | ;; |
| 21596 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 21597 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 21598 | # not run yet. These depmodes are late enough in the game, and |
| 21599 | # so weak that their functioning should not be impacted. |
| 21600 | am__obj=conftest.${OBJEXT-o} |
| 21601 | am__minus_obj= |
| 21602 | ;; |
| 21603 | none) break ;; |
| 21604 | esac |
| 21605 | if depmode=$depmode \ |
| 21606 | source=sub/conftest.c object=$am__obj \ |
| 21607 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 21608 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 21609 | >/dev/null 2>conftest.err && |
| 21610 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 21611 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 21612 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 21613 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 21614 | # icc doesn't choke on unknown options, it will just issue warnings |
| 21615 | # or remarks (even with -Werror). So we grep stderr for any message |
| 21616 | # that says an option was ignored or not supported. |
| 21617 | # When given -MP, icc 7.0 and 7.1 complain thus: |
| 21618 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 21619 | # The diagnosis changed in icc 8.0: |
| 21620 | # icc: Command line remark: option '-MP' not supported |
| 21621 | if (grep 'ignoring option' conftest.err || |
| 21622 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 21623 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
| 21624 | break |
| 21625 | fi |
| 21626 | fi |
| 21627 | done |
| 21628 | |
| 21629 | cd .. |
| 21630 | rm -rf conftest.dir |
| 21631 | else |
| 21632 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 21633 | fi |
| 21634 | ;; |
| 21635 | esac |
| 21636 | fi |
| 21637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
| 21638 | printf "%s\n" "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } |
| 21639 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type |
| 21640 | |
| 21641 | if |
| 21642 | test "x$enable_dependency_tracking" != xno \ |
| 21643 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
| 21644 | am__fastdepOBJCXX_TRUE= |
| 21645 | am__fastdepOBJCXX_FALSE='#' |
| 21646 | else |
| 21647 | am__fastdepOBJCXX_TRUE='#' |
| 21648 | am__fastdepOBJCXX_FALSE= |
| 21649 | fi |
| 21650 | |
| 21651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the Objective C++ compiler" >&5 |
| 21652 | printf %s "checking what warning flags to pass to the Objective C++ compiler... " >&6; } |
| 21653 | if test ${kpse_cv_warning_objcxxflags+y} |
| 21654 | then : |
| 21655 | printf %s "(cached) " >&6 |
| 21656 | else case e in #( |
| 21657 | e) if test "x$GOBJCXX" = xyes; then |
| 21658 | kpse_cv_warning_objcxxflags= |
| 21659 | kpse_warn_strings="-Wno-write-strings" |
| 21660 | if test "x$enable_compiler_warnings" != xno; then |
| 21661 | kpse_cv_warning_objcxxflags="-Wreturn-type" |
| 21662 | case `$OBJCXX -dumpversion` in #( |
| 21663 | 3.* | 4.[012345].*) : |
| 21664 | kpse_cv_warning_objcxxflags="-Wimplicit $kpse_cv_warning_objcxxflags" ;; #( |
| 21665 | *) : |
| 21666 | ;; |
| 21667 | esac |
| 21668 | case `$OBJCXX -dumpversion` in #( |
| 21669 | 3.[234].* | 4.* | 5.*) : |
| 21670 | kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wno-unknown-pragmas" ;; #( |
| 21671 | *) : |
| 21672 | ;; |
| 21673 | esac |
| 21674 | if test "x$enable_compiler_warnings" != xmin; then |
| 21675 | kpse_cv_warning_objcxxflags="-Wall -Wunused $kpse_cv_warning_objcxxflags" |
| 21676 | if test "x$enable_compiler_warnings" != xyes; then |
| 21677 | kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" |
| 21678 | kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wcast-qual -Wcast-align" |
| 21679 | kpse_warn_strings="-Wwrite-strings" |
| 21680 | if test "x$enable_compiler_warnings" != xmax; then |
| 21681 | kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wshadow" |
| 21682 | fi |
| 21683 | fi |
| 21684 | fi |
| 21685 | fi |
| 21686 | kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags $kpse_warn_strings" |
| 21687 | elif test "x$enable_compiler_warnings" = xno; then |
| 21688 | kpse_cv_warning_objcxxflags= |
| 21689 | else |
| 21690 | kpse_cv_warning_objcxxflags= # FIXME: warning flags for non-GNU Objective C++ compilers |
| 21691 | fi ;; |
| 21692 | esac |
| 21693 | fi |
| 21694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_objcxxflags" >&5 |
| 21695 | printf "%s\n" "$kpse_cv_warning_objcxxflags" >&6; } |
| 21696 | WARNING_OBJCXXFLAGS=$kpse_cv_warning_objcxxflags |
| 21697 | |
| 21698 | |
| 21699 | |
| 21700 | # Check whether --enable-cxx-runtime-hack was given. |
| 21701 | if test ${enable_cxx_runtime_hack+y} |
| 21702 | then : |
| 21703 | enableval=$enable_cxx_runtime_hack; |
| 21704 | fi |
| 21705 | |
| 21706 | if test "x$GXX:$enable_cxx_runtime_hack" = xyes:yes; then |
| 21707 | |
| 21708 | ac_ext=cpp |
| 21709 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21710 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21711 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21712 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21713 | |
| 21714 | ac_fn_cxx_check_header_compile "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" |
| 21715 | if test "x$ac_cv_header_iostream" = xyes |
| 21716 | then : |
| 21717 | printf "%s\n" "#define HAVE_IOSTREAM 1" >>confdefs.h |
| 21718 | |
| 21719 | fi |
| 21720 | |
| 21721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statically linking C++ runtime library" >&5 |
| 21722 | printf %s "checking for statically linking C++ runtime library... " >&6; } |
| 21723 | if test ${kpse_cv_cxx_hack+y} |
| 21724 | then : |
| 21725 | printf %s "(cached) " >&6 |
| 21726 | else case e in #( |
| 21727 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21728 | /* end confdefs.h. */ |
| 21729 | #ifdef HAVE_IOSTREAM |
| 21730 | #include <iostream> |
| 21731 | using namespace std; |
| 21732 | #else |
| 21733 | #include <iostream.h> |
| 21734 | #endif |
| 21735 | int |
| 21736 | main (void) |
| 21737 | { |
| 21738 | cout <<"worksok\n"; |
| 21739 | ; |
| 21740 | return 0; |
| 21741 | } |
| 21742 | _ACEOF |
| 21743 | case $host in #( |
| 21744 | *cygwin*) : |
| 21745 | flags_try0='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' ;; #( |
| 21746 | *) : |
| 21747 | flags_try0='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm' |
| 21748 | flags_try1='-lgcc_eh -lgcc -lc -lgcc_eh -lgcc' |
| 21749 | flags_try2='-lgcc -lc -lgcc' ;; |
| 21750 | esac |
| 21751 | kpse_save_LIBS=$LIBS |
| 21752 | cpp_link_hack=false |
| 21753 | for flags in "$flags_try1" "$flags_try2"; do |
| 21754 | LIBS="$kpse_save_LIBS $flags_try0 $flags" |
| 21755 | if ac_fn_cxx_try_link "$LINENO" |
| 21756 | then : |
| 21757 | if test "x$cross_compiling" = xyes |
| 21758 | then : |
| 21759 | cpp_link_hack=true; break |
| 21760 | else case e in #( |
| 21761 | e) case `(./conftest$ac_exeext; exit) 2>/dev/null` in #( |
| 21762 | worksok) : |
| 21763 | cpp_link_hack=true; break ;; #( |
| 21764 | *) : |
| 21765 | ;; |
| 21766 | esac ;; |
| 21767 | esac |
| 21768 | fi |
| 21769 | fi |
| 21770 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21771 | conftest$ac_exeext |
| 21772 | done |
| 21773 | LIBS=$kpse_save_LIBS |
| 21774 | if $cpp_link_hack; then |
| 21775 | kpse_cv_cxx_hack=ok |
| 21776 | kpse_cv_cxx_flags="$flags_try0 $flags" |
| 21777 | else |
| 21778 | kpse_cv_cxx_hack="not supported" |
| 21779 | fi ;; |
| 21780 | esac |
| 21781 | fi |
| 21782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_cxx_hack" >&5 |
| 21783 | printf "%s\n" "$kpse_cv_cxx_hack" >&6; } |
| 21784 | if test "x$kpse_cv_cxx_hack" = xok; then |
| 21785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using $kpse_cv_cxx_flags" >&5 |
| 21786 | printf "%s\n" "$as_me: using $kpse_cv_cxx_flags" >&6;} |
| 21787 | fi |
| 21788 | ac_ext=c |
| 21789 | ac_cpp='$CPP $CPPFLAGS' |
| 21790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21793 | |
| 21794 | |
| 21795 | fi |
| 21796 | if test "x$kpse_cv_cxx_hack" = xok; then |
| 21797 | CXXLD='$(top_builddir)/CXXLD.sh' |
| 21798 | cxxld_sh="#! ${CONFIG_SHELL-/bin/sh} |
| 21799 | # CXXLD.sh. Generated by configure. |
| 21800 | set -- $CXX \"\$@\" $kpse_cv_cxx_flags |
| 21801 | echo \"\$0:\" \"\$@\" |
| 21802 | exec \"\$@\"" |
| 21803 | ac_config_commands="$ac_config_commands CXXLD.sh" |
| 21804 | |
| 21805 | else |
| 21806 | CXXLD='$(CXX)' |
| 21807 | fi |
| 21808 | |
| 21809 | |
| 21810 | # Check whether --enable-libtool-hack was given. |
| 21811 | if test ${enable_libtool_hack+y} |
| 21812 | then : |
| 21813 | enableval=$enable_libtool_hack; |
| 21814 | fi |
| 21815 | |
| 21816 | |
| 21817 | |
| 21818 | |
| 21819 | |
| 21820 | |
| 21821 | # Include additional code for web2c. |
| 21822 | |
| 21823 | # texk/web2c/ac/web2c.ac: configure.ac fragment for TL subdir |
| 21824 | # configure options for TeX and MF |
| 21825 | |
| 21826 | # Check whether --with-banner-add was given. |
| 21827 | if test ${with_banner_add+y} |
| 21828 | then : |
| 21829 | withval=$with_banner_add; |
| 21830 | fi |
| 21831 | |
| 21832 | # Check whether --with-editor was given. |
| 21833 | if test ${with_editor+y} |
| 21834 | then : |
| 21835 | withval=$with_editor; |
| 21836 | fi |
| 21837 | # Check whether --enable-auto-core was given. |
| 21838 | if test ${enable_auto_core+y} |
| 21839 | then : |
| 21840 | enableval=$enable_auto_core; |
| 21841 | fi |
| 21842 | # Check whether --enable-dump-share was given. |
| 21843 | if test ${enable_dump_share+y} |
| 21844 | then : |
| 21845 | enableval=$enable_dump_share; |
| 21846 | fi |
| 21847 | ## configure options for TeX |
| 21848 | # Check whether --enable-ipc was given. |
| 21849 | if test ${enable_ipc+y} |
| 21850 | then : |
| 21851 | enableval=$enable_ipc; |
| 21852 | fi |
| 21853 | # Check whether --enable-tex was given. |
| 21854 | if test ${enable_tex+y} |
| 21855 | then : |
| 21856 | enableval=$enable_tex; |
| 21857 | fi |
| 21858 | case $enable_tex in #( |
| 21859 | yes | no) : |
| 21860 | ;; #( |
| 21861 | *) : |
| 21862 | enable_tex=yes ;; |
| 21863 | esac |
| 21864 | |
| 21865 | # Check whether --enable-tex-synctex was given. |
| 21866 | if test ${enable_tex_synctex+y} |
| 21867 | then : |
| 21868 | enableval=$enable_tex_synctex; |
| 21869 | fi |
| 21870 | # Check whether --enable-etex was given. |
| 21871 | if test ${enable_etex+y} |
| 21872 | then : |
| 21873 | enableval=$enable_etex; |
| 21874 | fi |
| 21875 | case $enable_etex in #( |
| 21876 | yes | no) : |
| 21877 | ;; #( |
| 21878 | *) : |
| 21879 | enable_etex=no ;; |
| 21880 | esac |
| 21881 | |
| 21882 | # Check whether --enable-etex-synctex was given. |
| 21883 | if test ${enable_etex_synctex+y} |
| 21884 | then : |
| 21885 | enableval=$enable_etex_synctex; |
| 21886 | fi |
| 21887 | |
| 21888 | test "x$enable_web2c:$enable_etex" = xyes:yes && { |
| 21889 | need_zlib=yes |
| 21890 | } |
| 21891 | # Check whether --enable-uptex was given. |
| 21892 | if test ${enable_uptex+y} |
| 21893 | then : |
| 21894 | enableval=$enable_uptex; |
| 21895 | fi |
| 21896 | case $enable_uptex in #( |
| 21897 | yes | no) : |
| 21898 | ;; #( |
| 21899 | *) : |
| 21900 | enable_uptex=no ;; |
| 21901 | esac |
| 21902 | |
| 21903 | test "x$enable_web2c:$enable_uptex" = xyes:yes && { |
| 21904 | need_ptexenc=yes |
| 21905 | need_zlib=yes |
| 21906 | } |
| 21907 | # Check whether --enable-euptex was given. |
| 21908 | if test ${enable_euptex+y} |
| 21909 | then : |
| 21910 | enableval=$enable_euptex; |
| 21911 | fi |
| 21912 | case $enable_euptex in #( |
| 21913 | yes | no) : |
| 21914 | ;; #( |
| 21915 | *) : |
| 21916 | enable_euptex=yes ;; |
| 21917 | esac |
| 21918 | |
| 21919 | # Check whether --enable-euptex-synctex was given. |
| 21920 | if test ${enable_euptex_synctex+y} |
| 21921 | then : |
| 21922 | enableval=$enable_euptex_synctex; |
| 21923 | fi |
| 21924 | |
| 21925 | test "x$enable_web2c:$enable_euptex" = xyes:yes && { |
| 21926 | need_ptexenc=yes |
| 21927 | need_zlib=yes |
| 21928 | } |
| 21929 | # Check whether --enable-aleph was given. |
| 21930 | if test ${enable_aleph+y} |
| 21931 | then : |
| 21932 | enableval=$enable_aleph; |
| 21933 | fi |
| 21934 | case $enable_aleph in #( |
| 21935 | yes | no) : |
| 21936 | ;; #( |
| 21937 | *) : |
| 21938 | enable_aleph=yes ;; |
| 21939 | esac |
| 21940 | # Check whether --enable-hitex was given. |
| 21941 | if test ${enable_hitex+y} |
| 21942 | then : |
| 21943 | enableval=$enable_hitex; |
| 21944 | fi |
| 21945 | case $enable_hitex in #( |
| 21946 | yes | no) : |
| 21947 | ;; #( |
| 21948 | *) : |
| 21949 | enable_hitex=yes ;; |
| 21950 | esac |
| 21951 | |
| 21952 | test "x$enable_web2c:$enable_hitex" = xyes:yes && { |
| 21953 | need_harfbuzz=yes |
| 21954 | need_zlib=yes |
| 21955 | } |
| 21956 | # Check whether --enable-pdftex was given. |
| 21957 | if test ${enable_pdftex+y} |
| 21958 | then : |
| 21959 | enableval=$enable_pdftex; |
| 21960 | fi |
| 21961 | case $enable_pdftex in #( |
| 21962 | yes | no) : |
| 21963 | ;; #( |
| 21964 | *) : |
| 21965 | enable_pdftex=yes ;; |
| 21966 | esac |
| 21967 | |
| 21968 | # Check whether --enable-pdftex-synctex was given. |
| 21969 | if test ${enable_pdftex_synctex+y} |
| 21970 | then : |
| 21971 | enableval=$enable_pdftex_synctex; |
| 21972 | fi |
| 21973 | |
| 21974 | test "x$enable_web2c:$enable_pdftex" = xyes:yes && { |
| 21975 | need_xpdf=yes |
| 21976 | need_libpng=yes |
| 21977 | need_zlib=yes |
| 21978 | } |
| 21979 | # Check whether --enable-luatex was given. |
| 21980 | if test ${enable_luatex+y} |
| 21981 | then : |
| 21982 | enableval=$enable_luatex; |
| 21983 | fi |
| 21984 | case $enable_luatex in #( |
| 21985 | yes | no) : |
| 21986 | ;; #( |
| 21987 | *) : |
| 21988 | enable_luatex=yes ;; |
| 21989 | esac |
| 21990 | |
| 21991 | test "x$enable_web2c:$enable_luatex" = xyes:yes && { |
| 21992 | need_pplib=yes |
| 21993 | need_libpng=yes |
| 21994 | need_zziplib=yes |
| 21995 | need_lua53=yes |
| 21996 | } |
| 21997 | # Check whether --enable-luajittex was given. |
| 21998 | if test ${enable_luajittex+y} |
| 21999 | then : |
| 22000 | enableval=$enable_luajittex; |
| 22001 | fi |
| 22002 | case $enable_luajittex in #( |
| 22003 | yes | no) : |
| 22004 | ;; #( |
| 22005 | *) : |
| 22006 | enable_luajittex=yes ;; |
| 22007 | esac |
| 22008 | |
| 22009 | test "x$enable_web2c:$enable_luajittex" = xyes:yes && { |
| 22010 | need_pplib=yes |
| 22011 | need_libpng=yes |
| 22012 | need_zziplib=yes |
| 22013 | need_luajit=yes |
| 22014 | } |
| 22015 | # Check whether --enable-luahbtex was given. |
| 22016 | if test ${enable_luahbtex+y} |
| 22017 | then : |
| 22018 | enableval=$enable_luahbtex; |
| 22019 | fi |
| 22020 | case $enable_luahbtex in #( |
| 22021 | yes | no) : |
| 22022 | ;; #( |
| 22023 | *) : |
| 22024 | enable_luahbtex=yes ;; |
| 22025 | esac |
| 22026 | |
| 22027 | test "x$enable_web2c:$enable_luahbtex" = xyes:yes && { |
| 22028 | need_pplib=yes |
| 22029 | need_libpng=yes |
| 22030 | need_zziplib=yes |
| 22031 | need_lua53=yes |
| 22032 | need_harfbuzz=yes |
| 22033 | } |
| 22034 | # Check whether --enable-luajithbtex was given. |
| 22035 | if test ${enable_luajithbtex+y} |
| 22036 | then : |
| 22037 | enableval=$enable_luajithbtex; |
| 22038 | fi |
| 22039 | case $enable_luajithbtex in #( |
| 22040 | yes | no) : |
| 22041 | ;; #( |
| 22042 | *) : |
| 22043 | enable_luajithbtex=yes ;; |
| 22044 | esac |
| 22045 | |
| 22046 | test "x$enable_web2c:$enable_luajithbtex" = xyes:yes && { |
| 22047 | need_pplib=yes |
| 22048 | need_libpng=yes |
| 22049 | need_zziplib=yes |
| 22050 | need_luajit=yes |
| 22051 | need_harfbuzz=yes |
| 22052 | } |
| 22053 | # Check whether --enable-mp was given. |
| 22054 | if test ${enable_mp+y} |
| 22055 | then : |
| 22056 | enableval=$enable_mp; |
| 22057 | fi |
| 22058 | case $enable_mp in #( |
| 22059 | yes | no) : |
| 22060 | ;; #( |
| 22061 | *) : |
| 22062 | enable_mp=yes ;; |
| 22063 | esac |
| 22064 | |
| 22065 | test "x$enable_web2c:$enable_mp" = xyes:yes && { |
| 22066 | need_mpfi=yes |
| 22067 | need_mpfr=yes |
| 22068 | need_cairo=yes |
| 22069 | need_libpng=yes |
| 22070 | } |
| 22071 | # Check whether --enable-pmp was given. |
| 22072 | if test ${enable_pmp+y} |
| 22073 | then : |
| 22074 | enableval=$enable_pmp; |
| 22075 | fi |
| 22076 | case $enable_pmp in #( |
| 22077 | yes | no) : |
| 22078 | ;; #( |
| 22079 | *) : |
| 22080 | enable_pmp=yes ;; |
| 22081 | esac |
| 22082 | |
| 22083 | test "x$enable_web2c:$enable_pmp" = xyes:yes && { |
| 22084 | need_mpfi=yes |
| 22085 | need_mpfr=yes |
| 22086 | need_cairo=yes |
| 22087 | need_libpng=yes |
| 22088 | need_ptexenc=yes |
| 22089 | } |
| 22090 | # Check whether --enable-texprof was given. |
| 22091 | if test ${enable_texprof+y} |
| 22092 | then : |
| 22093 | enableval=$enable_texprof; |
| 22094 | fi |
| 22095 | case $enable_texprof in #( |
| 22096 | yes | no) : |
| 22097 | ;; #( |
| 22098 | *) : |
| 22099 | enable_texprof=yes ;; |
| 22100 | esac |
| 22101 | # Check whether --enable-upmp was given. |
| 22102 | if test ${enable_upmp+y} |
| 22103 | then : |
| 22104 | enableval=$enable_upmp; |
| 22105 | fi |
| 22106 | case $enable_upmp in #( |
| 22107 | yes | no) : |
| 22108 | ;; #( |
| 22109 | *) : |
| 22110 | enable_upmp=yes ;; |
| 22111 | esac |
| 22112 | |
| 22113 | test "x$enable_web2c:$enable_upmp" = xyes:yes && { |
| 22114 | need_mpfi=yes |
| 22115 | need_mpfr=yes |
| 22116 | need_cairo=yes |
| 22117 | need_libpng=yes |
| 22118 | need_ptexenc=yes |
| 22119 | } |
| 22120 | # Check whether --enable-xetex was given. |
| 22121 | if test ${enable_xetex+y} |
| 22122 | then : |
| 22123 | enableval=$enable_xetex; |
| 22124 | fi |
| 22125 | case $enable_xetex in #( |
| 22126 | yes | no) : |
| 22127 | ;; #( |
| 22128 | *) : |
| 22129 | enable_xetex=yes ;; |
| 22130 | esac |
| 22131 | |
| 22132 | # Check whether --enable-xetex-synctex was given. |
| 22133 | if test ${enable_xetex_synctex+y} |
| 22134 | then : |
| 22135 | enableval=$enable_xetex_synctex; |
| 22136 | fi |
| 22137 | |
| 22138 | test "x$enable_web2c:$enable_xetex" = xyes:yes && { |
| 22139 | need_pplib=yes |
| 22140 | need_libpng=yes |
| 22141 | need_freetype2=yes |
| 22142 | need_teckit=yes |
| 22143 | need_harfbuzz=yes |
| 22144 | } |
| 22145 | ## configure options for MF |
| 22146 | # Check whether --enable-mf was given. |
| 22147 | if test ${enable_mf+y} |
| 22148 | then : |
| 22149 | enableval=$enable_mf; |
| 22150 | fi |
| 22151 | case $enable_mf in #( |
| 22152 | yes | no) : |
| 22153 | ;; #( |
| 22154 | *) : |
| 22155 | enable_mf=yes ;; |
| 22156 | esac |
| 22157 | |
| 22158 | # Check whether --enable-mf-nowin was given. |
| 22159 | if test ${enable_mf_nowin+y} |
| 22160 | then : |
| 22161 | enableval=$enable_mf_nowin; |
| 22162 | fi |
| 22163 | case $enable_mf_nowin in #( |
| 22164 | yes | no) : |
| 22165 | ;; #( |
| 22166 | *) : |
| 22167 | enable_mf_nowin=yes ;; |
| 22168 | esac |
| 22169 | # Check whether --enable-mflua was given. |
| 22170 | if test ${enable_mflua+y} |
| 22171 | then : |
| 22172 | enableval=$enable_mflua; |
| 22173 | fi |
| 22174 | case $enable_mflua in #( |
| 22175 | yes | no) : |
| 22176 | ;; #( |
| 22177 | *) : |
| 22178 | enable_mflua=yes ;; |
| 22179 | esac |
| 22180 | |
| 22181 | # Check whether --enable-mflua-nowin was given. |
| 22182 | if test ${enable_mflua_nowin+y} |
| 22183 | then : |
| 22184 | enableval=$enable_mflua_nowin; |
| 22185 | fi |
| 22186 | case $enable_mflua_nowin in #( |
| 22187 | yes | no) : |
| 22188 | ;; #( |
| 22189 | *) : |
| 22190 | enable_mflua_nowin=no ;; |
| 22191 | esac |
| 22192 | |
| 22193 | test "x$enable_web2c:$enable_mflua" = xyes:yes && { |
| 22194 | need_lua53=yes |
| 22195 | need_potrace=yes |
| 22196 | } |
| 22197 | # Check whether --enable-mfluajit was given. |
| 22198 | if test ${enable_mfluajit+y} |
| 22199 | then : |
| 22200 | enableval=$enable_mfluajit; |
| 22201 | fi |
| 22202 | case $enable_mfluajit in #( |
| 22203 | yes | no) : |
| 22204 | ;; #( |
| 22205 | *) : |
| 22206 | enable_mfluajit=yes ;; |
| 22207 | esac |
| 22208 | |
| 22209 | # Check whether --enable-mfluajit-nowin was given. |
| 22210 | if test ${enable_mfluajit_nowin+y} |
| 22211 | then : |
| 22212 | enableval=$enable_mfluajit_nowin; |
| 22213 | fi |
| 22214 | case $enable_mfluajit_nowin in #( |
| 22215 | yes | no) : |
| 22216 | ;; #( |
| 22217 | *) : |
| 22218 | enable_mfluajit_nowin=no ;; |
| 22219 | esac |
| 22220 | |
| 22221 | test "x$enable_web2c:$enable_mfluajit" = xyes:yes && { |
| 22222 | need_luajit=yes |
| 22223 | need_potrace=yes |
| 22224 | } |
| 22225 | |
| 22226 | # Check whether --with-mf-x-toolkit was given. |
| 22227 | if test ${with_mf_x_toolkit+y} |
| 22228 | then : |
| 22229 | withval=$with_mf_x_toolkit; |
| 22230 | fi |
| 22231 | # Check whether --enable-epsfwin was given. |
| 22232 | if test ${enable_epsfwin+y} |
| 22233 | then : |
| 22234 | enableval=$enable_epsfwin; |
| 22235 | fi |
| 22236 | # Check whether --enable-hp2627win was given. |
| 22237 | if test ${enable_hp2627win+y} |
| 22238 | then : |
| 22239 | enableval=$enable_hp2627win; |
| 22240 | fi |
| 22241 | # Check whether --enable-mftalkwin was given. |
| 22242 | if test ${enable_mftalkwin+y} |
| 22243 | then : |
| 22244 | enableval=$enable_mftalkwin; |
| 22245 | fi |
| 22246 | # Check whether --enable-nextwin was given. |
| 22247 | if test ${enable_nextwin+y} |
| 22248 | then : |
| 22249 | enableval=$enable_nextwin; |
| 22250 | fi |
| 22251 | # Check whether --enable-regiswin was given. |
| 22252 | if test ${enable_regiswin+y} |
| 22253 | then : |
| 22254 | enableval=$enable_regiswin; |
| 22255 | fi |
| 22256 | # Check whether --enable-suntoolswin was given. |
| 22257 | if test ${enable_suntoolswin+y} |
| 22258 | then : |
| 22259 | enableval=$enable_suntoolswin; |
| 22260 | fi |
| 22261 | # Check whether --enable-tektronixwin was given. |
| 22262 | if test ${enable_tektronixwin+y} |
| 22263 | then : |
| 22264 | enableval=$enable_tektronixwin; |
| 22265 | fi |
| 22266 | # Check whether --enable-unitermwin was given. |
| 22267 | if test ${enable_unitermwin+y} |
| 22268 | then : |
| 22269 | enableval=$enable_unitermwin; |
| 22270 | fi |
| 22271 | ## configure options for WEB programs |
| 22272 | # Check whether --enable-web-progs was given. |
| 22273 | if test ${enable_web_progs+y} |
| 22274 | then : |
| 22275 | enableval=$enable_web_progs; |
| 22276 | fi |
| 22277 | ## configure option for the SyncTeX library and tool |
| 22278 | # Check whether --enable-synctex was given. |
| 22279 | if test ${enable_synctex+y} |
| 22280 | then : |
| 22281 | enableval=$enable_synctex; |
| 22282 | fi |
| 22283 | |
| 22284 | # end texk/web2c/ac/web2c.ac. |
| 22285 | |
| 22286 | |
| 22287 | # XeTeX requires C++11 because ICU does :(. |
| 22288 | if test "x$enable_xetex" = xyes; then |
| 22289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++11, since XeTeX is enabled" >&5 |
| 22290 | printf "%s\n" "$as_me: checking for C++11, since XeTeX is enabled" >&6;} |
| 22291 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true |
| 22292 | ac_ext=cpp |
| 22293 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22297 | ac_success=no |
| 22298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 22299 | printf %s "checking whether $CXX supports C++11 features by default... " >&6; } |
| 22300 | if test ${ax_cv_cxx_compile_cxx11+y} |
| 22301 | then : |
| 22302 | printf %s "(cached) " >&6 |
| 22303 | else case e in #( |
| 22304 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22305 | /* end confdefs.h. */ |
| 22306 | |
| 22307 | |
| 22308 | // If the compiler admits that it is not ready for C++11, why torture it? |
| 22309 | // Hopefully, this will speed up the test. |
| 22310 | |
| 22311 | #ifndef __cplusplus |
| 22312 | |
| 22313 | #error "This is not a C++ compiler" |
| 22314 | |
| 22315 | #elif __cplusplus < 201103L |
| 22316 | |
| 22317 | #error "This is not a C++11 compiler" |
| 22318 | |
| 22319 | #else |
| 22320 | |
| 22321 | namespace cxx11 |
| 22322 | { |
| 22323 | |
| 22324 | namespace test_static_assert |
| 22325 | { |
| 22326 | |
| 22327 | template <typename T> |
| 22328 | struct check |
| 22329 | { |
| 22330 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 22331 | }; |
| 22332 | |
| 22333 | } |
| 22334 | |
| 22335 | namespace test_final_override |
| 22336 | { |
| 22337 | |
| 22338 | struct Base |
| 22339 | { |
| 22340 | virtual void f() {} |
| 22341 | }; |
| 22342 | |
| 22343 | struct Derived : public Base |
| 22344 | { |
| 22345 | virtual void f() override {} |
| 22346 | }; |
| 22347 | |
| 22348 | } |
| 22349 | |
| 22350 | namespace test_double_right_angle_brackets |
| 22351 | { |
| 22352 | |
| 22353 | template < typename T > |
| 22354 | struct check {}; |
| 22355 | |
| 22356 | typedef check<void> single_type; |
| 22357 | typedef check<check<void>> double_type; |
| 22358 | typedef check<check<check<void>>> triple_type; |
| 22359 | typedef check<check<check<check<void>>>> quadruple_type; |
| 22360 | |
| 22361 | } |
| 22362 | |
| 22363 | namespace test_decltype |
| 22364 | { |
| 22365 | |
| 22366 | int |
| 22367 | f() |
| 22368 | { |
| 22369 | int a = 1; |
| 22370 | decltype(a) b = 2; |
| 22371 | return a + b; |
| 22372 | } |
| 22373 | |
| 22374 | } |
| 22375 | |
| 22376 | namespace test_type_deduction |
| 22377 | { |
| 22378 | |
| 22379 | template < typename T1, typename T2 > |
| 22380 | struct is_same |
| 22381 | { |
| 22382 | static const bool value = false; |
| 22383 | }; |
| 22384 | |
| 22385 | template < typename T > |
| 22386 | struct is_same<T, T> |
| 22387 | { |
| 22388 | static const bool value = true; |
| 22389 | }; |
| 22390 | |
| 22391 | template < typename T1, typename T2 > |
| 22392 | auto |
| 22393 | add(T1 a1, T2 a2) -> decltype(a1 + a2) |
| 22394 | { |
| 22395 | return a1 + a2; |
| 22396 | } |
| 22397 | |
| 22398 | int |
| 22399 | test(const int c, volatile int v) |
| 22400 | { |
| 22401 | static_assert(is_same<int, decltype(0)>::value == true, ""); |
| 22402 | static_assert(is_same<int, decltype(c)>::value == false, ""); |
| 22403 | static_assert(is_same<int, decltype(v)>::value == false, ""); |
| 22404 | auto ac = c; |
| 22405 | auto av = v; |
| 22406 | auto sumi = ac + av + 'x'; |
| 22407 | auto sumf = ac + av + 1.0; |
| 22408 | static_assert(is_same<int, decltype(ac)>::value == true, ""); |
| 22409 | static_assert(is_same<int, decltype(av)>::value == true, ""); |
| 22410 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); |
| 22411 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); |
| 22412 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); |
| 22413 | return (sumf > 0.0) ? sumi : add(c, v); |
| 22414 | } |
| 22415 | |
| 22416 | } |
| 22417 | |
| 22418 | namespace test_noexcept |
| 22419 | { |
| 22420 | |
| 22421 | int f() { return 0; } |
| 22422 | int g() noexcept { return 0; } |
| 22423 | |
| 22424 | static_assert(noexcept(f()) == false, ""); |
| 22425 | static_assert(noexcept(g()) == true, ""); |
| 22426 | |
| 22427 | } |
| 22428 | |
| 22429 | namespace test_constexpr |
| 22430 | { |
| 22431 | |
| 22432 | template < typename CharT > |
| 22433 | unsigned long constexpr |
| 22434 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept |
| 22435 | { |
| 22436 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; |
| 22437 | } |
| 22438 | |
| 22439 | template < typename CharT > |
| 22440 | unsigned long constexpr |
| 22441 | strlen_c(const CharT *const s) noexcept |
| 22442 | { |
| 22443 | return strlen_c_r(s, 0UL); |
| 22444 | } |
| 22445 | |
| 22446 | static_assert(strlen_c("") == 0UL, ""); |
| 22447 | static_assert(strlen_c("1") == 1UL, ""); |
| 22448 | static_assert(strlen_c("example") == 7UL, ""); |
| 22449 | static_assert(strlen_c("another\0example") == 7UL, ""); |
| 22450 | |
| 22451 | } |
| 22452 | |
| 22453 | namespace test_rvalue_references |
| 22454 | { |
| 22455 | |
| 22456 | template < int N > |
| 22457 | struct answer |
| 22458 | { |
| 22459 | static constexpr int value = N; |
| 22460 | }; |
| 22461 | |
| 22462 | answer<1> f(int&) { return answer<1>(); } |
| 22463 | answer<2> f(const int&) { return answer<2>(); } |
| 22464 | answer<3> f(int&&) { return answer<3>(); } |
| 22465 | |
| 22466 | void |
| 22467 | test() |
| 22468 | { |
| 22469 | int i = 0; |
| 22470 | const int c = 0; |
| 22471 | static_assert(decltype(f(i))::value == 1, ""); |
| 22472 | static_assert(decltype(f(c))::value == 2, ""); |
| 22473 | static_assert(decltype(f(0))::value == 3, ""); |
| 22474 | } |
| 22475 | |
| 22476 | } |
| 22477 | |
| 22478 | namespace test_uniform_initialization |
| 22479 | { |
| 22480 | |
| 22481 | struct test |
| 22482 | { |
| 22483 | static const int zero {}; |
| 22484 | static const int one {1}; |
| 22485 | }; |
| 22486 | |
| 22487 | static_assert(test::zero == 0, ""); |
| 22488 | static_assert(test::one == 1, ""); |
| 22489 | |
| 22490 | } |
| 22491 | |
| 22492 | namespace test_lambdas |
| 22493 | { |
| 22494 | |
| 22495 | void |
| 22496 | test1() |
| 22497 | { |
| 22498 | auto lambda1 = [](){}; |
| 22499 | auto lambda2 = lambda1; |
| 22500 | lambda1(); |
| 22501 | lambda2(); |
| 22502 | } |
| 22503 | |
| 22504 | int |
| 22505 | test2() |
| 22506 | { |
| 22507 | auto a = [](int i, int j){ return i + j; }(1, 2); |
| 22508 | auto b = []() -> int { return '0'; }(); |
| 22509 | auto c = [=](){ return a + b; }(); |
| 22510 | auto d = [&](){ return c; }(); |
| 22511 | auto e = [a, &b](int x) mutable { |
| 22512 | const auto identity = [](int y){ return y; }; |
| 22513 | for (auto i = 0; i < a; ++i) |
| 22514 | a += b--; |
| 22515 | return x + identity(a + b); |
| 22516 | }(0); |
| 22517 | return a + b + c + d + e; |
| 22518 | } |
| 22519 | |
| 22520 | int |
| 22521 | test3() |
| 22522 | { |
| 22523 | const auto nullary = [](){ return 0; }; |
| 22524 | const auto unary = [](int x){ return x; }; |
| 22525 | using nullary_t = decltype(nullary); |
| 22526 | using unary_t = decltype(unary); |
| 22527 | const auto higher1st = [](nullary_t f){ return f(); }; |
| 22528 | const auto higher2nd = [unary](nullary_t f1){ |
| 22529 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; |
| 22530 | }; |
| 22531 | return higher1st(nullary) + higher2nd(nullary)(unary); |
| 22532 | } |
| 22533 | |
| 22534 | } |
| 22535 | |
| 22536 | namespace test_variadic_templates |
| 22537 | { |
| 22538 | |
| 22539 | template <int...> |
| 22540 | struct sum; |
| 22541 | |
| 22542 | template <int N0, int... N1toN> |
| 22543 | struct sum<N0, N1toN...> |
| 22544 | { |
| 22545 | static constexpr auto value = N0 + sum<N1toN...>::value; |
| 22546 | }; |
| 22547 | |
| 22548 | template <> |
| 22549 | struct sum<> |
| 22550 | { |
| 22551 | static constexpr auto value = 0; |
| 22552 | }; |
| 22553 | |
| 22554 | static_assert(sum<>::value == 0, ""); |
| 22555 | static_assert(sum<1>::value == 1, ""); |
| 22556 | static_assert(sum<23>::value == 23, ""); |
| 22557 | static_assert(sum<1, 2>::value == 3, ""); |
| 22558 | static_assert(sum<5, 5, 11>::value == 21, ""); |
| 22559 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); |
| 22560 | |
| 22561 | } |
| 22562 | |
| 22563 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae |
| 22564 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function |
| 22565 | // because of this. |
| 22566 | namespace test_template_alias_sfinae |
| 22567 | { |
| 22568 | |
| 22569 | struct foo {}; |
| 22570 | |
| 22571 | template<typename T> |
| 22572 | using member = typename T::member_type; |
| 22573 | |
| 22574 | template<typename T> |
| 22575 | void func(...) {} |
| 22576 | |
| 22577 | template<typename T> |
| 22578 | void func(member<T>*) {} |
| 22579 | |
| 22580 | void test(); |
| 22581 | |
| 22582 | void test() { func<foo>(0); } |
| 22583 | |
| 22584 | } |
| 22585 | |
| 22586 | } // namespace cxx11 |
| 22587 | |
| 22588 | #endif // __cplusplus >= 201103L |
| 22589 | |
| 22590 | |
| 22591 | |
| 22592 | _ACEOF |
| 22593 | if ac_fn_cxx_try_compile "$LINENO" |
| 22594 | then : |
| 22595 | ax_cv_cxx_compile_cxx11=yes |
| 22596 | else case e in #( |
| 22597 | e) ax_cv_cxx_compile_cxx11=no ;; |
| 22598 | esac |
| 22599 | fi |
| 22600 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 22601 | esac |
| 22602 | fi |
| 22603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 22604 | printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; } |
| 22605 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 22606 | ac_success=yes |
| 22607 | fi |
| 22608 | |
| 22609 | if test x$ac_success = xno; then |
| 22610 | for alternative in ${ax_cxx_compile_alternatives}; do |
| 22611 | switch="-std=gnu++${alternative}" |
| 22612 | cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"` |
| 22613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 22614 | printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 22615 | if eval test \${$cachevar+y} |
| 22616 | then : |
| 22617 | printf %s "(cached) " >&6 |
| 22618 | else case e in #( |
| 22619 | e) ac_save_CXX="$CXX" |
| 22620 | CXX="$CXX $switch" |
| 22621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22622 | /* end confdefs.h. */ |
| 22623 | |
| 22624 | |
| 22625 | // If the compiler admits that it is not ready for C++11, why torture it? |
| 22626 | // Hopefully, this will speed up the test. |
| 22627 | |
| 22628 | #ifndef __cplusplus |
| 22629 | |
| 22630 | #error "This is not a C++ compiler" |
| 22631 | |
| 22632 | #elif __cplusplus < 201103L |
| 22633 | |
| 22634 | #error "This is not a C++11 compiler" |
| 22635 | |
| 22636 | #else |
| 22637 | |
| 22638 | namespace cxx11 |
| 22639 | { |
| 22640 | |
| 22641 | namespace test_static_assert |
| 22642 | { |
| 22643 | |
| 22644 | template <typename T> |
| 22645 | struct check |
| 22646 | { |
| 22647 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 22648 | }; |
| 22649 | |
| 22650 | } |
| 22651 | |
| 22652 | namespace test_final_override |
| 22653 | { |
| 22654 | |
| 22655 | struct Base |
| 22656 | { |
| 22657 | virtual void f() {} |
| 22658 | }; |
| 22659 | |
| 22660 | struct Derived : public Base |
| 22661 | { |
| 22662 | virtual void f() override {} |
| 22663 | }; |
| 22664 | |
| 22665 | } |
| 22666 | |
| 22667 | namespace test_double_right_angle_brackets |
| 22668 | { |
| 22669 | |
| 22670 | template < typename T > |
| 22671 | struct check {}; |
| 22672 | |
| 22673 | typedef check<void> single_type; |
| 22674 | typedef check<check<void>> double_type; |
| 22675 | typedef check<check<check<void>>> triple_type; |
| 22676 | typedef check<check<check<check<void>>>> quadruple_type; |
| 22677 | |
| 22678 | } |
| 22679 | |
| 22680 | namespace test_decltype |
| 22681 | { |
| 22682 | |
| 22683 | int |
| 22684 | f() |
| 22685 | { |
| 22686 | int a = 1; |
| 22687 | decltype(a) b = 2; |
| 22688 | return a + b; |
| 22689 | } |
| 22690 | |
| 22691 | } |
| 22692 | |
| 22693 | namespace test_type_deduction |
| 22694 | { |
| 22695 | |
| 22696 | template < typename T1, typename T2 > |
| 22697 | struct is_same |
| 22698 | { |
| 22699 | static const bool value = false; |
| 22700 | }; |
| 22701 | |
| 22702 | template < typename T > |
| 22703 | struct is_same<T, T> |
| 22704 | { |
| 22705 | static const bool value = true; |
| 22706 | }; |
| 22707 | |
| 22708 | template < typename T1, typename T2 > |
| 22709 | auto |
| 22710 | add(T1 a1, T2 a2) -> decltype(a1 + a2) |
| 22711 | { |
| 22712 | return a1 + a2; |
| 22713 | } |
| 22714 | |
| 22715 | int |
| 22716 | test(const int c, volatile int v) |
| 22717 | { |
| 22718 | static_assert(is_same<int, decltype(0)>::value == true, ""); |
| 22719 | static_assert(is_same<int, decltype(c)>::value == false, ""); |
| 22720 | static_assert(is_same<int, decltype(v)>::value == false, ""); |
| 22721 | auto ac = c; |
| 22722 | auto av = v; |
| 22723 | auto sumi = ac + av + 'x'; |
| 22724 | auto sumf = ac + av + 1.0; |
| 22725 | static_assert(is_same<int, decltype(ac)>::value == true, ""); |
| 22726 | static_assert(is_same<int, decltype(av)>::value == true, ""); |
| 22727 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); |
| 22728 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); |
| 22729 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); |
| 22730 | return (sumf > 0.0) ? sumi : add(c, v); |
| 22731 | } |
| 22732 | |
| 22733 | } |
| 22734 | |
| 22735 | namespace test_noexcept |
| 22736 | { |
| 22737 | |
| 22738 | int f() { return 0; } |
| 22739 | int g() noexcept { return 0; } |
| 22740 | |
| 22741 | static_assert(noexcept(f()) == false, ""); |
| 22742 | static_assert(noexcept(g()) == true, ""); |
| 22743 | |
| 22744 | } |
| 22745 | |
| 22746 | namespace test_constexpr |
| 22747 | { |
| 22748 | |
| 22749 | template < typename CharT > |
| 22750 | unsigned long constexpr |
| 22751 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept |
| 22752 | { |
| 22753 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; |
| 22754 | } |
| 22755 | |
| 22756 | template < typename CharT > |
| 22757 | unsigned long constexpr |
| 22758 | strlen_c(const CharT *const s) noexcept |
| 22759 | { |
| 22760 | return strlen_c_r(s, 0UL); |
| 22761 | } |
| 22762 | |
| 22763 | static_assert(strlen_c("") == 0UL, ""); |
| 22764 | static_assert(strlen_c("1") == 1UL, ""); |
| 22765 | static_assert(strlen_c("example") == 7UL, ""); |
| 22766 | static_assert(strlen_c("another\0example") == 7UL, ""); |
| 22767 | |
| 22768 | } |
| 22769 | |
| 22770 | namespace test_rvalue_references |
| 22771 | { |
| 22772 | |
| 22773 | template < int N > |
| 22774 | struct answer |
| 22775 | { |
| 22776 | static constexpr int value = N; |
| 22777 | }; |
| 22778 | |
| 22779 | answer<1> f(int&) { return answer<1>(); } |
| 22780 | answer<2> f(const int&) { return answer<2>(); } |
| 22781 | answer<3> f(int&&) { return answer<3>(); } |
| 22782 | |
| 22783 | void |
| 22784 | test() |
| 22785 | { |
| 22786 | int i = 0; |
| 22787 | const int c = 0; |
| 22788 | static_assert(decltype(f(i))::value == 1, ""); |
| 22789 | static_assert(decltype(f(c))::value == 2, ""); |
| 22790 | static_assert(decltype(f(0))::value == 3, ""); |
| 22791 | } |
| 22792 | |
| 22793 | } |
| 22794 | |
| 22795 | namespace test_uniform_initialization |
| 22796 | { |
| 22797 | |
| 22798 | struct test |
| 22799 | { |
| 22800 | static const int zero {}; |
| 22801 | static const int one {1}; |
| 22802 | }; |
| 22803 | |
| 22804 | static_assert(test::zero == 0, ""); |
| 22805 | static_assert(test::one == 1, ""); |
| 22806 | |
| 22807 | } |
| 22808 | |
| 22809 | namespace test_lambdas |
| 22810 | { |
| 22811 | |
| 22812 | void |
| 22813 | test1() |
| 22814 | { |
| 22815 | auto lambda1 = [](){}; |
| 22816 | auto lambda2 = lambda1; |
| 22817 | lambda1(); |
| 22818 | lambda2(); |
| 22819 | } |
| 22820 | |
| 22821 | int |
| 22822 | test2() |
| 22823 | { |
| 22824 | auto a = [](int i, int j){ return i + j; }(1, 2); |
| 22825 | auto b = []() -> int { return '0'; }(); |
| 22826 | auto c = [=](){ return a + b; }(); |
| 22827 | auto d = [&](){ return c; }(); |
| 22828 | auto e = [a, &b](int x) mutable { |
| 22829 | const auto identity = [](int y){ return y; }; |
| 22830 | for (auto i = 0; i < a; ++i) |
| 22831 | a += b--; |
| 22832 | return x + identity(a + b); |
| 22833 | }(0); |
| 22834 | return a + b + c + d + e; |
| 22835 | } |
| 22836 | |
| 22837 | int |
| 22838 | test3() |
| 22839 | { |
| 22840 | const auto nullary = [](){ return 0; }; |
| 22841 | const auto unary = [](int x){ return x; }; |
| 22842 | using nullary_t = decltype(nullary); |
| 22843 | using unary_t = decltype(unary); |
| 22844 | const auto higher1st = [](nullary_t f){ return f(); }; |
| 22845 | const auto higher2nd = [unary](nullary_t f1){ |
| 22846 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; |
| 22847 | }; |
| 22848 | return higher1st(nullary) + higher2nd(nullary)(unary); |
| 22849 | } |
| 22850 | |
| 22851 | } |
| 22852 | |
| 22853 | namespace test_variadic_templates |
| 22854 | { |
| 22855 | |
| 22856 | template <int...> |
| 22857 | struct sum; |
| 22858 | |
| 22859 | template <int N0, int... N1toN> |
| 22860 | struct sum<N0, N1toN...> |
| 22861 | { |
| 22862 | static constexpr auto value = N0 + sum<N1toN...>::value; |
| 22863 | }; |
| 22864 | |
| 22865 | template <> |
| 22866 | struct sum<> |
| 22867 | { |
| 22868 | static constexpr auto value = 0; |
| 22869 | }; |
| 22870 | |
| 22871 | static_assert(sum<>::value == 0, ""); |
| 22872 | static_assert(sum<1>::value == 1, ""); |
| 22873 | static_assert(sum<23>::value == 23, ""); |
| 22874 | static_assert(sum<1, 2>::value == 3, ""); |
| 22875 | static_assert(sum<5, 5, 11>::value == 21, ""); |
| 22876 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); |
| 22877 | |
| 22878 | } |
| 22879 | |
| 22880 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae |
| 22881 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function |
| 22882 | // because of this. |
| 22883 | namespace test_template_alias_sfinae |
| 22884 | { |
| 22885 | |
| 22886 | struct foo {}; |
| 22887 | |
| 22888 | template<typename T> |
| 22889 | using member = typename T::member_type; |
| 22890 | |
| 22891 | template<typename T> |
| 22892 | void func(...) {} |
| 22893 | |
| 22894 | template<typename T> |
| 22895 | void func(member<T>*) {} |
| 22896 | |
| 22897 | void test(); |
| 22898 | |
| 22899 | void test() { func<foo>(0); } |
| 22900 | |
| 22901 | } |
| 22902 | |
| 22903 | } // namespace cxx11 |
| 22904 | |
| 22905 | #endif // __cplusplus >= 201103L |
| 22906 | |
| 22907 | |
| 22908 | |
| 22909 | _ACEOF |
| 22910 | if ac_fn_cxx_try_compile "$LINENO" |
| 22911 | then : |
| 22912 | eval $cachevar=yes |
| 22913 | else case e in #( |
| 22914 | e) eval $cachevar=no ;; |
| 22915 | esac |
| 22916 | fi |
| 22917 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22918 | CXX="$ac_save_CXX" ;; |
| 22919 | esac |
| 22920 | fi |
| 22921 | eval ac_res=\$$cachevar |
| 22922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 22923 | printf "%s\n" "$ac_res" >&6; } |
| 22924 | if eval test x\$$cachevar = xyes; then |
| 22925 | CXX="$CXX $switch" |
| 22926 | if test -n "$CXXCPP" ; then |
| 22927 | CXXCPP="$CXXCPP $switch" |
| 22928 | fi |
| 22929 | ac_success=yes |
| 22930 | break |
| 22931 | fi |
| 22932 | done |
| 22933 | fi |
| 22934 | |
| 22935 | if test x$ac_success = xno; then |
| 22936 | for alternative in ${ax_cxx_compile_alternatives}; do |
| 22937 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do |
| 22938 | cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"` |
| 22939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 22940 | printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 22941 | if eval test \${$cachevar+y} |
| 22942 | then : |
| 22943 | printf %s "(cached) " >&6 |
| 22944 | else case e in #( |
| 22945 | e) ac_save_CXX="$CXX" |
| 22946 | CXX="$CXX $switch" |
| 22947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22948 | /* end confdefs.h. */ |
| 22949 | |
| 22950 | |
| 22951 | // If the compiler admits that it is not ready for C++11, why torture it? |
| 22952 | // Hopefully, this will speed up the test. |
| 22953 | |
| 22954 | #ifndef __cplusplus |
| 22955 | |
| 22956 | #error "This is not a C++ compiler" |
| 22957 | |
| 22958 | #elif __cplusplus < 201103L |
| 22959 | |
| 22960 | #error "This is not a C++11 compiler" |
| 22961 | |
| 22962 | #else |
| 22963 | |
| 22964 | namespace cxx11 |
| 22965 | { |
| 22966 | |
| 22967 | namespace test_static_assert |
| 22968 | { |
| 22969 | |
| 22970 | template <typename T> |
| 22971 | struct check |
| 22972 | { |
| 22973 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 22974 | }; |
| 22975 | |
| 22976 | } |
| 22977 | |
| 22978 | namespace test_final_override |
| 22979 | { |
| 22980 | |
| 22981 | struct Base |
| 22982 | { |
| 22983 | virtual void f() {} |
| 22984 | }; |
| 22985 | |
| 22986 | struct Derived : public Base |
| 22987 | { |
| 22988 | virtual void f() override {} |
| 22989 | }; |
| 22990 | |
| 22991 | } |
| 22992 | |
| 22993 | namespace test_double_right_angle_brackets |
| 22994 | { |
| 22995 | |
| 22996 | template < typename T > |
| 22997 | struct check {}; |
| 22998 | |
| 22999 | typedef check<void> single_type; |
| 23000 | typedef check<check<void>> double_type; |
| 23001 | typedef check<check<check<void>>> triple_type; |
| 23002 | typedef check<check<check<check<void>>>> quadruple_type; |
| 23003 | |
| 23004 | } |
| 23005 | |
| 23006 | namespace test_decltype |
| 23007 | { |
| 23008 | |
| 23009 | int |
| 23010 | f() |
| 23011 | { |
| 23012 | int a = 1; |
| 23013 | decltype(a) b = 2; |
| 23014 | return a + b; |
| 23015 | } |
| 23016 | |
| 23017 | } |
| 23018 | |
| 23019 | namespace test_type_deduction |
| 23020 | { |
| 23021 | |
| 23022 | template < typename T1, typename T2 > |
| 23023 | struct is_same |
| 23024 | { |
| 23025 | static const bool value = false; |
| 23026 | }; |
| 23027 | |
| 23028 | template < typename T > |
| 23029 | struct is_same<T, T> |
| 23030 | { |
| 23031 | static const bool value = true; |
| 23032 | }; |
| 23033 | |
| 23034 | template < typename T1, typename T2 > |
| 23035 | auto |
| 23036 | add(T1 a1, T2 a2) -> decltype(a1 + a2) |
| 23037 | { |
| 23038 | return a1 + a2; |
| 23039 | } |
| 23040 | |
| 23041 | int |
| 23042 | test(const int c, volatile int v) |
| 23043 | { |
| 23044 | static_assert(is_same<int, decltype(0)>::value == true, ""); |
| 23045 | static_assert(is_same<int, decltype(c)>::value == false, ""); |
| 23046 | static_assert(is_same<int, decltype(v)>::value == false, ""); |
| 23047 | auto ac = c; |
| 23048 | auto av = v; |
| 23049 | auto sumi = ac + av + 'x'; |
| 23050 | auto sumf = ac + av + 1.0; |
| 23051 | static_assert(is_same<int, decltype(ac)>::value == true, ""); |
| 23052 | static_assert(is_same<int, decltype(av)>::value == true, ""); |
| 23053 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); |
| 23054 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); |
| 23055 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); |
| 23056 | return (sumf > 0.0) ? sumi : add(c, v); |
| 23057 | } |
| 23058 | |
| 23059 | } |
| 23060 | |
| 23061 | namespace test_noexcept |
| 23062 | { |
| 23063 | |
| 23064 | int f() { return 0; } |
| 23065 | int g() noexcept { return 0; } |
| 23066 | |
| 23067 | static_assert(noexcept(f()) == false, ""); |
| 23068 | static_assert(noexcept(g()) == true, ""); |
| 23069 | |
| 23070 | } |
| 23071 | |
| 23072 | namespace test_constexpr |
| 23073 | { |
| 23074 | |
| 23075 | template < typename CharT > |
| 23076 | unsigned long constexpr |
| 23077 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept |
| 23078 | { |
| 23079 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; |
| 23080 | } |
| 23081 | |
| 23082 | template < typename CharT > |
| 23083 | unsigned long constexpr |
| 23084 | strlen_c(const CharT *const s) noexcept |
| 23085 | { |
| 23086 | return strlen_c_r(s, 0UL); |
| 23087 | } |
| 23088 | |
| 23089 | static_assert(strlen_c("") == 0UL, ""); |
| 23090 | static_assert(strlen_c("1") == 1UL, ""); |
| 23091 | static_assert(strlen_c("example") == 7UL, ""); |
| 23092 | static_assert(strlen_c("another\0example") == 7UL, ""); |
| 23093 | |
| 23094 | } |
| 23095 | |
| 23096 | namespace test_rvalue_references |
| 23097 | { |
| 23098 | |
| 23099 | template < int N > |
| 23100 | struct answer |
| 23101 | { |
| 23102 | static constexpr int value = N; |
| 23103 | }; |
| 23104 | |
| 23105 | answer<1> f(int&) { return answer<1>(); } |
| 23106 | answer<2> f(const int&) { return answer<2>(); } |
| 23107 | answer<3> f(int&&) { return answer<3>(); } |
| 23108 | |
| 23109 | void |
| 23110 | test() |
| 23111 | { |
| 23112 | int i = 0; |
| 23113 | const int c = 0; |
| 23114 | static_assert(decltype(f(i))::value == 1, ""); |
| 23115 | static_assert(decltype(f(c))::value == 2, ""); |
| 23116 | static_assert(decltype(f(0))::value == 3, ""); |
| 23117 | } |
| 23118 | |
| 23119 | } |
| 23120 | |
| 23121 | namespace test_uniform_initialization |
| 23122 | { |
| 23123 | |
| 23124 | struct test |
| 23125 | { |
| 23126 | static const int zero {}; |
| 23127 | static const int one {1}; |
| 23128 | }; |
| 23129 | |
| 23130 | static_assert(test::zero == 0, ""); |
| 23131 | static_assert(test::one == 1, ""); |
| 23132 | |
| 23133 | } |
| 23134 | |
| 23135 | namespace test_lambdas |
| 23136 | { |
| 23137 | |
| 23138 | void |
| 23139 | test1() |
| 23140 | { |
| 23141 | auto lambda1 = [](){}; |
| 23142 | auto lambda2 = lambda1; |
| 23143 | lambda1(); |
| 23144 | lambda2(); |
| 23145 | } |
| 23146 | |
| 23147 | int |
| 23148 | test2() |
| 23149 | { |
| 23150 | auto a = [](int i, int j){ return i + j; }(1, 2); |
| 23151 | auto b = []() -> int { return '0'; }(); |
| 23152 | auto c = [=](){ return a + b; }(); |
| 23153 | auto d = [&](){ return c; }(); |
| 23154 | auto e = [a, &b](int x) mutable { |
| 23155 | const auto identity = [](int y){ return y; }; |
| 23156 | for (auto i = 0; i < a; ++i) |
| 23157 | a += b--; |
| 23158 | return x + identity(a + b); |
| 23159 | }(0); |
| 23160 | return a + b + c + d + e; |
| 23161 | } |
| 23162 | |
| 23163 | int |
| 23164 | test3() |
| 23165 | { |
| 23166 | const auto nullary = [](){ return 0; }; |
| 23167 | const auto unary = [](int x){ return x; }; |
| 23168 | using nullary_t = decltype(nullary); |
| 23169 | using unary_t = decltype(unary); |
| 23170 | const auto higher1st = [](nullary_t f){ return f(); }; |
| 23171 | const auto higher2nd = [unary](nullary_t f1){ |
| 23172 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; |
| 23173 | }; |
| 23174 | return higher1st(nullary) + higher2nd(nullary)(unary); |
| 23175 | } |
| 23176 | |
| 23177 | } |
| 23178 | |
| 23179 | namespace test_variadic_templates |
| 23180 | { |
| 23181 | |
| 23182 | template <int...> |
| 23183 | struct sum; |
| 23184 | |
| 23185 | template <int N0, int... N1toN> |
| 23186 | struct sum<N0, N1toN...> |
| 23187 | { |
| 23188 | static constexpr auto value = N0 + sum<N1toN...>::value; |
| 23189 | }; |
| 23190 | |
| 23191 | template <> |
| 23192 | struct sum<> |
| 23193 | { |
| 23194 | static constexpr auto value = 0; |
| 23195 | }; |
| 23196 | |
| 23197 | static_assert(sum<>::value == 0, ""); |
| 23198 | static_assert(sum<1>::value == 1, ""); |
| 23199 | static_assert(sum<23>::value == 23, ""); |
| 23200 | static_assert(sum<1, 2>::value == 3, ""); |
| 23201 | static_assert(sum<5, 5, 11>::value == 21, ""); |
| 23202 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); |
| 23203 | |
| 23204 | } |
| 23205 | |
| 23206 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae |
| 23207 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function |
| 23208 | // because of this. |
| 23209 | namespace test_template_alias_sfinae |
| 23210 | { |
| 23211 | |
| 23212 | struct foo {}; |
| 23213 | |
| 23214 | template<typename T> |
| 23215 | using member = typename T::member_type; |
| 23216 | |
| 23217 | template<typename T> |
| 23218 | void func(...) {} |
| 23219 | |
| 23220 | template<typename T> |
| 23221 | void func(member<T>*) {} |
| 23222 | |
| 23223 | void test(); |
| 23224 | |
| 23225 | void test() { func<foo>(0); } |
| 23226 | |
| 23227 | } |
| 23228 | |
| 23229 | } // namespace cxx11 |
| 23230 | |
| 23231 | #endif // __cplusplus >= 201103L |
| 23232 | |
| 23233 | |
| 23234 | |
| 23235 | _ACEOF |
| 23236 | if ac_fn_cxx_try_compile "$LINENO" |
| 23237 | then : |
| 23238 | eval $cachevar=yes |
| 23239 | else case e in #( |
| 23240 | e) eval $cachevar=no ;; |
| 23241 | esac |
| 23242 | fi |
| 23243 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23244 | CXX="$ac_save_CXX" ;; |
| 23245 | esac |
| 23246 | fi |
| 23247 | eval ac_res=\$$cachevar |
| 23248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 23249 | printf "%s\n" "$ac_res" >&6; } |
| 23250 | if eval test x\$$cachevar = xyes; then |
| 23251 | CXX="$CXX $switch" |
| 23252 | if test -n "$CXXCPP" ; then |
| 23253 | CXXCPP="$CXXCPP $switch" |
| 23254 | fi |
| 23255 | ac_success=yes |
| 23256 | break |
| 23257 | fi |
| 23258 | done |
| 23259 | if test x$ac_success = xyes; then |
| 23260 | break |
| 23261 | fi |
| 23262 | done |
| 23263 | fi |
| 23264 | ac_ext=c |
| 23265 | ac_cpp='$CPP $CPPFLAGS' |
| 23266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23269 | |
| 23270 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 23271 | if test x$ac_success = xno; then |
| 23272 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 23273 | fi |
| 23274 | fi |
| 23275 | if test x$ac_success = xno; then |
| 23276 | HAVE_CXX11=0 |
| 23277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 23278 | printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} |
| 23279 | else |
| 23280 | HAVE_CXX11=1 |
| 23281 | |
| 23282 | printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h |
| 23283 | |
| 23284 | fi |
| 23285 | |
| 23286 | |
| 23287 | |
| 23288 | fi |
| 23289 | |
| 23290 | if test "x$enable_texlive_build" = xyes |
| 23291 | then : |
| 23292 | banner_pre='TeX Live' |
| 23293 | else case e in #( |
| 23294 | e) banner_pre='Web2C' ;; |
| 23295 | esac |
| 23296 | fi |
| 23297 | printf "%s\n" "#define WEB2CVERSION \" ($banner_pre $WEB2CVERSION$with_banner_add)\"" >>confdefs.h |
| 23298 | |
| 23299 | |
| 23300 | for ac_prog in kpsewhich |
| 23301 | do |
| 23302 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 23303 | set dummy $ac_prog; ac_word=$2 |
| 23304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 23305 | printf %s "checking for $ac_word... " >&6; } |
| 23306 | if test ${ac_cv_prog_KPSEWHICH+y} |
| 23307 | then : |
| 23308 | printf %s "(cached) " >&6 |
| 23309 | else case e in #( |
| 23310 | e) if test -n "$KPSEWHICH"; then |
| 23311 | ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test. |
| 23312 | else |
| 23313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23314 | for as_dir in $PATH |
| 23315 | do |
| 23316 | IFS=$as_save_IFS |
| 23317 | case $as_dir in #((( |
| 23318 | '') as_dir=./ ;; |
| 23319 | */) ;; |
| 23320 | *) as_dir=$as_dir/ ;; |
| 23321 | esac |
| 23322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 23323 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 23324 | ac_cv_prog_KPSEWHICH="$ac_prog" |
| 23325 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 23326 | break 2 |
| 23327 | fi |
| 23328 | done |
| 23329 | done |
| 23330 | IFS=$as_save_IFS |
| 23331 | |
| 23332 | fi ;; |
| 23333 | esac |
| 23334 | fi |
| 23335 | KPSEWHICH=$ac_cv_prog_KPSEWHICH |
| 23336 | if test -n "$KPSEWHICH"; then |
| 23337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5 |
| 23338 | printf "%s\n" "$KPSEWHICH" >&6; } |
| 23339 | else |
| 23340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23341 | printf "%s\n" "no" >&6; } |
| 23342 | fi |
| 23343 | |
| 23344 | |
| 23345 | test -n "$KPSEWHICH" && break |
| 23346 | done |
| 23347 | test -n "$KPSEWHICH" || KPSEWHICH="false" |
| 23348 | |
| 23349 | |
| 23350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc asm needs underscore" >&5 |
| 23351 | printf %s "checking whether gcc asm needs underscore... " >&6; } |
| 23352 | if test ${pb_cv_asm_underscore+y} |
| 23353 | then : |
| 23354 | printf %s "(cached) " >&6 |
| 23355 | else case e in #( |
| 23356 | e) |
| 23357 | # Some versions of GCC asm for i386 need an underscore prepended to |
| 23358 | # external symbols. Figure out if this is so. |
| 23359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23360 | /* end confdefs.h. */ |
| 23361 | |
| 23362 | extern char val ; |
| 23363 | extern void sub () ; |
| 23364 | #if defined (__i386__) && defined (__GNUC__) |
| 23365 | asm(" .align 4\n" |
| 23366 | ".globl sub\n" |
| 23367 | "sub:\n" |
| 23368 | " movb \$1,val\n" |
| 23369 | " ret\n"); |
| 23370 | #else |
| 23371 | void sub () { val = 1; } |
| 23372 | #endif /* assembler */ |
| 23373 | char val ; |
| 23374 | int |
| 23375 | main (void) |
| 23376 | { |
| 23377 | sub (); return 0; |
| 23378 | ; |
| 23379 | return 0; |
| 23380 | } |
| 23381 | _ACEOF |
| 23382 | if ac_fn_c_try_link "$LINENO" |
| 23383 | then : |
| 23384 | pb_cv_asm_underscore=no |
| 23385 | else case e in #( |
| 23386 | e) pb_cv_asm_underscore=yes ;; |
| 23387 | esac |
| 23388 | fi |
| 23389 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23390 | conftest$ac_exeext conftest.$ac_ext ;; |
| 23391 | esac |
| 23392 | fi |
| 23393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pb_cv_asm_underscore" >&5 |
| 23394 | printf "%s\n" "$pb_cv_asm_underscore" >&6; } |
| 23395 | if test "x$pb_cv_asm_underscore" = xyes; then |
| 23396 | |
| 23397 | printf "%s\n" "#define ASM_NEEDS_UNDERSCORE 1" >>confdefs.h |
| 23398 | |
| 23399 | fi |
| 23400 | |
| 23401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5 |
| 23402 | printf %s "checking for native WIN32 or MINGW32... " >&6; } |
| 23403 | if test ${kpse_cv_have_win32+y} |
| 23404 | then : |
| 23405 | printf %s "(cached) " >&6 |
| 23406 | else case e in #( |
| 23407 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23408 | /* end confdefs.h. */ |
| 23409 | #ifndef WIN32 |
| 23410 | choke me |
| 23411 | #endif |
| 23412 | int |
| 23413 | main (void) |
| 23414 | { |
| 23415 | |
| 23416 | ; |
| 23417 | return 0; |
| 23418 | } |
| 23419 | _ACEOF |
| 23420 | if ac_fn_c_try_compile "$LINENO" |
| 23421 | then : |
| 23422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23423 | /* end confdefs.h. */ |
| 23424 | #ifndef __MINGW32__ |
| 23425 | choke me |
| 23426 | #endif |
| 23427 | int |
| 23428 | main (void) |
| 23429 | { |
| 23430 | |
| 23431 | ; |
| 23432 | return 0; |
| 23433 | } |
| 23434 | _ACEOF |
| 23435 | if ac_fn_c_try_compile "$LINENO" |
| 23436 | then : |
| 23437 | kpse_cv_have_win32=mingw32 |
| 23438 | else case e in #( |
| 23439 | e) kpse_cv_have_win32=native ;; |
| 23440 | esac |
| 23441 | fi |
| 23442 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23443 | else case e in #( |
| 23444 | e) kpse_cv_have_win32=no ;; |
| 23445 | esac |
| 23446 | fi |
| 23447 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 23448 | esac |
| 23449 | fi |
| 23450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5 |
| 23451 | printf "%s\n" "$kpse_cv_have_win32" >&6; } |
| 23452 | |
| 23453 | if test "x$kpse_cv_have_win32" != xno; then |
| 23454 | WIN32_TRUE= |
| 23455 | WIN32_FALSE='#' |
| 23456 | else |
| 23457 | WIN32_TRUE='#' |
| 23458 | WIN32_FALSE= |
| 23459 | fi |
| 23460 | |
| 23461 | |
| 23462 | if test "x$kpse_cv_have_win32" = xmingw32; then |
| 23463 | MINGW32_TRUE= |
| 23464 | MINGW32_FALSE='#' |
| 23465 | else |
| 23466 | MINGW32_TRUE='#' |
| 23467 | MINGW32_FALSE= |
| 23468 | fi |
| 23469 | |
| 23470 | |
| 23471 | if test -r "$srcdir/../texlive/windows_wrapper/callexe.c"; then |
| 23472 | WIN32_CALL_TRUE= |
| 23473 | WIN32_CALL_FALSE='#' |
| 23474 | else |
| 23475 | WIN32_CALL_TRUE='#' |
| 23476 | WIN32_CALL_FALSE= |
| 23477 | fi |
| 23478 | |
| 23479 | if test -z "$WIN32_TRUE"; then : |
| 23480 | ac_config_links="$ac_config_links callexe.c:../texlive/windows_wrapper/callexe.c" |
| 23481 | |
| 23482 | fi |
| 23483 | |
| 23484 | |
| 23485 | case $with_editor in #( |
| 23486 | ''|yes|no) : |
| 23487 | if test "x$kpse_cv_have_win32" = xno |
| 23488 | then : |
| 23489 | with_editor="vi +%d '%s'" |
| 23490 | else case e in #( |
| 23491 | e) with_editor='texworks --position=%d \"%s\"' ;; |
| 23492 | esac |
| 23493 | fi ;; #( |
| 23494 | *) : |
| 23495 | ;; |
| 23496 | esac |
| 23497 | |
| 23498 | printf "%s\n" "#define EDITOR \"$with_editor\"" >>confdefs.h |
| 23499 | |
| 23500 | |
| 23501 | if test "x$enable_auto_core" = xyes |
| 23502 | then : |
| 23503 | |
| 23504 | printf "%s\n" "#define FUNNY_CORE_DUMP 1" >>confdefs.h |
| 23505 | |
| 23506 | fi |
| 23507 | |
| 23508 | if test "x$enable_dump_share" = xno |
| 23509 | then : |
| 23510 | |
| 23511 | printf "%s\n" "#define NO_DUMP_SHARE 1" >>confdefs.h |
| 23512 | |
| 23513 | fi |
| 23514 | |
| 23515 | case $enable_ipc in #( |
| 23516 | yes|no) : |
| 23517 | ;; #( |
| 23518 | *) : |
| 23519 | enable_ipc=yes ;; |
| 23520 | esac |
| 23521 | |
| 23522 | |
| 23523 | if test "x$kpse_cv_have_win32" = xno |
| 23524 | then : |
| 23525 | kpse_save_LIBS=$LIBS |
| 23526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 |
| 23527 | printf %s "checking for library containing connect... " >&6; } |
| 23528 | if test ${ac_cv_search_connect+y} |
| 23529 | then : |
| 23530 | printf %s "(cached) " >&6 |
| 23531 | else case e in #( |
| 23532 | e) ac_func_search_save_LIBS=$LIBS |
| 23533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23534 | /* end confdefs.h. */ |
| 23535 | |
| 23536 | /* Override any GCC internal prototype to avoid an error. |
| 23537 | Use char because int might match the return type of a GCC |
| 23538 | builtin and then its argument prototype would still apply. |
| 23539 | The 'extern "C"' is for builds by C++ compilers; |
| 23540 | although this is not generally supported in C code supporting it here |
| 23541 | has little cost and some practical benefit (sr 110532). */ |
| 23542 | #ifdef __cplusplus |
| 23543 | extern "C" |
| 23544 | #endif |
| 23545 | char connect (void); |
| 23546 | int |
| 23547 | main (void) |
| 23548 | { |
| 23549 | return connect (); |
| 23550 | ; |
| 23551 | return 0; |
| 23552 | } |
| 23553 | _ACEOF |
| 23554 | for ac_lib in '' socket nsl |
| 23555 | do |
| 23556 | if test -z "$ac_lib"; then |
| 23557 | ac_res="none required" |
| 23558 | else |
| 23559 | ac_res=-l$ac_lib |
| 23560 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 23561 | fi |
| 23562 | if ac_fn_c_try_link "$LINENO" |
| 23563 | then : |
| 23564 | ac_cv_search_connect=$ac_res |
| 23565 | fi |
| 23566 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23567 | conftest$ac_exeext |
| 23568 | if test ${ac_cv_search_connect+y} |
| 23569 | then : |
| 23570 | break |
| 23571 | fi |
| 23572 | done |
| 23573 | if test ${ac_cv_search_connect+y} |
| 23574 | then : |
| 23575 | |
| 23576 | else case e in #( |
| 23577 | e) ac_cv_search_connect=no ;; |
| 23578 | esac |
| 23579 | fi |
| 23580 | rm conftest.$ac_ext |
| 23581 | LIBS=$ac_func_search_save_LIBS ;; |
| 23582 | esac |
| 23583 | fi |
| 23584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 |
| 23585 | printf "%s\n" "$ac_cv_search_connect" >&6; } |
| 23586 | ac_res=$ac_cv_search_connect |
| 23587 | if test "$ac_res" != no |
| 23588 | then : |
| 23589 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 23590 | |
| 23591 | fi |
| 23592 | |
| 23593 | LIBS=$kpse_save_LIBS |
| 23594 | else case e in #( |
| 23595 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 |
| 23596 | printf %s "checking for main in -lwsock32... " >&6; } |
| 23597 | if test ${ac_cv_lib_wsock32_main+y} |
| 23598 | then : |
| 23599 | printf %s "(cached) " >&6 |
| 23600 | else case e in #( |
| 23601 | e) ac_check_lib_save_LIBS=$LIBS |
| 23602 | LIBS="-lwsock32 $LIBS" |
| 23603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23604 | /* end confdefs.h. */ |
| 23605 | |
| 23606 | |
| 23607 | int |
| 23608 | main (void) |
| 23609 | { |
| 23610 | return main (); |
| 23611 | ; |
| 23612 | return 0; |
| 23613 | } |
| 23614 | _ACEOF |
| 23615 | if ac_fn_c_try_link "$LINENO" |
| 23616 | then : |
| 23617 | ac_cv_lib_wsock32_main=yes |
| 23618 | else case e in #( |
| 23619 | e) ac_cv_lib_wsock32_main=no ;; |
| 23620 | esac |
| 23621 | fi |
| 23622 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23623 | conftest$ac_exeext conftest.$ac_ext |
| 23624 | LIBS=$ac_check_lib_save_LIBS ;; |
| 23625 | esac |
| 23626 | fi |
| 23627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 |
| 23628 | printf "%s\n" "$ac_cv_lib_wsock32_main" >&6; } |
| 23629 | if test "x$ac_cv_lib_wsock32_main" = xyes |
| 23630 | then : |
| 23631 | ac_cv_search_connect=-lwsock32 |
| 23632 | else case e in #( |
| 23633 | e) ac_cv_search_connect=no ;; |
| 23634 | esac |
| 23635 | fi |
| 23636 | ;; |
| 23637 | esac |
| 23638 | fi |
| 23639 | |
| 23640 | # Check whether --enable-missing was given. |
| 23641 | if test ${enable_missing+y} |
| 23642 | then : |
| 23643 | enableval=$enable_missing; |
| 23644 | fi |
| 23645 | |
| 23646 | case $ac_cv_search_connect in #( |
| 23647 | "none required") : |
| 23648 | ;; #( |
| 23649 | no) : |
| 23650 | if test "x$enable_luatex" = xyes |
| 23651 | then : |
| 23652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no socket library: disabling luatex" >&5 |
| 23653 | printf "%s\n" "$as_me: WARNING: Sorry, no socket library: disabling luatex" >&2;} |
| 23654 | if test "x$enable_missing" = xno |
| 23655 | then : |
| 23656 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 23657 | fi |
| 23658 | |
| 23659 | enable_luatex=no |
| 23660 | fi |
| 23661 | |
| 23662 | if test "x$enable_luatex53" = xyes |
| 23663 | then : |
| 23664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no socket library: disabling luatex53" >&5 |
| 23665 | printf "%s\n" "$as_me: WARNING: Sorry, no socket library: disabling luatex53" >&2;} |
| 23666 | if test "x$enable_missing" = xno |
| 23667 | then : |
| 23668 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 23669 | fi |
| 23670 | |
| 23671 | enable_luatex53=no |
| 23672 | fi |
| 23673 | |
| 23674 | if test "x$enable_ipc" = xyes |
| 23675 | then : |
| 23676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no socket library: disabling ipc" >&5 |
| 23677 | printf "%s\n" "$as_me: WARNING: Sorry, no socket library: disabling ipc" >&2;} |
| 23678 | if test "x$enable_missing" = xno |
| 23679 | then : |
| 23680 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 23681 | fi |
| 23682 | |
| 23683 | enable_ipc=no |
| 23684 | fi |
| 23685 | ;; #( |
| 23686 | *) : |
| 23687 | socketlibs=$ac_cv_search_connect ;; |
| 23688 | esac |
| 23689 | if test "x$enable_ipc" = xyes; then |
| 23690 | ipc_socketlibs=$socketlibs |
| 23691 | |
| 23692 | printf "%s\n" "#define IPC 1" >>confdefs.h |
| 23693 | |
| 23694 | fi |
| 23695 | |
| 23696 | # We may need additional libraries for LuaTeX. |
| 23697 | # On Solaris -lnsl for gethostbyname(), -lrt for nanosleep(), |
| 23698 | # and maybe -lresolv for inet_aton(). |
| 23699 | lua_socketlibs=$socketlibs |
| 23700 | kpse_save_LIBS=$LIBS |
| 23701 | LUA53_DEFINES='-DLUA_COMPAT_MODULE -DLUA_COMPAT_5_2 -DLUAI_HASHLIMIT=6' |
| 23702 | |
| 23703 | if test "x$kpse_cv_have_win32" = xno; then |
| 23704 | LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_POSIX" |
| 23705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 23706 | printf %s "checking for library containing dlopen... " >&6; } |
| 23707 | if test ${ac_cv_search_dlopen+y} |
| 23708 | then : |
| 23709 | printf %s "(cached) " >&6 |
| 23710 | else case e in #( |
| 23711 | e) ac_func_search_save_LIBS=$LIBS |
| 23712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23713 | /* end confdefs.h. */ |
| 23714 | |
| 23715 | /* Override any GCC internal prototype to avoid an error. |
| 23716 | Use char because int might match the return type of a GCC |
| 23717 | builtin and then its argument prototype would still apply. |
| 23718 | The 'extern "C"' is for builds by C++ compilers; |
| 23719 | although this is not generally supported in C code supporting it here |
| 23720 | has little cost and some practical benefit (sr 110532). */ |
| 23721 | #ifdef __cplusplus |
| 23722 | extern "C" |
| 23723 | #endif |
| 23724 | char dlopen (void); |
| 23725 | int |
| 23726 | main (void) |
| 23727 | { |
| 23728 | return dlopen (); |
| 23729 | ; |
| 23730 | return 0; |
| 23731 | } |
| 23732 | _ACEOF |
| 23733 | for ac_lib in '' dl |
| 23734 | do |
| 23735 | if test -z "$ac_lib"; then |
| 23736 | ac_res="none required" |
| 23737 | else |
| 23738 | ac_res=-l$ac_lib |
| 23739 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 23740 | fi |
| 23741 | if ac_fn_c_try_link "$LINENO" |
| 23742 | then : |
| 23743 | ac_cv_search_dlopen=$ac_res |
| 23744 | fi |
| 23745 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23746 | conftest$ac_exeext |
| 23747 | if test ${ac_cv_search_dlopen+y} |
| 23748 | then : |
| 23749 | break |
| 23750 | fi |
| 23751 | done |
| 23752 | if test ${ac_cv_search_dlopen+y} |
| 23753 | then : |
| 23754 | |
| 23755 | else case e in #( |
| 23756 | e) ac_cv_search_dlopen=no ;; |
| 23757 | esac |
| 23758 | fi |
| 23759 | rm conftest.$ac_ext |
| 23760 | LIBS=$ac_func_search_save_LIBS ;; |
| 23761 | esac |
| 23762 | fi |
| 23763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 23764 | printf "%s\n" "$ac_cv_search_dlopen" >&6; } |
| 23765 | ac_res=$ac_cv_search_dlopen |
| 23766 | if test "$ac_res" != no |
| 23767 | then : |
| 23768 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 23769 | |
| 23770 | fi |
| 23771 | |
| 23772 | if test "x$ac_cv_search_dlopen" != xno; then |
| 23773 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 23774 | " |
| 23775 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 23776 | then : |
| 23777 | LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_DLOPEN" |
| 23778 | fi |
| 23779 | |
| 23780 | fi |
| 23781 | fi |
| 23782 | |
| 23783 | LUA52_DEFINES='-DLUA_COMPAT_MODULE -DLUAI_HASHLIMIT=6' |
| 23784 | |
| 23785 | if test "x$kpse_cv_have_win32" = xno; then |
| 23786 | LUA52_DEFINES="$LUA52_DEFINES -DLUA_USE_POSIX" |
| 23787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 23788 | printf %s "checking for library containing dlopen... " >&6; } |
| 23789 | if test ${ac_cv_search_dlopen+y} |
| 23790 | then : |
| 23791 | printf %s "(cached) " >&6 |
| 23792 | else case e in #( |
| 23793 | e) ac_func_search_save_LIBS=$LIBS |
| 23794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23795 | /* end confdefs.h. */ |
| 23796 | |
| 23797 | /* Override any GCC internal prototype to avoid an error. |
| 23798 | Use char because int might match the return type of a GCC |
| 23799 | builtin and then its argument prototype would still apply. |
| 23800 | The 'extern "C"' is for builds by C++ compilers; |
| 23801 | although this is not generally supported in C code supporting it here |
| 23802 | has little cost and some practical benefit (sr 110532). */ |
| 23803 | #ifdef __cplusplus |
| 23804 | extern "C" |
| 23805 | #endif |
| 23806 | char dlopen (void); |
| 23807 | int |
| 23808 | main (void) |
| 23809 | { |
| 23810 | return dlopen (); |
| 23811 | ; |
| 23812 | return 0; |
| 23813 | } |
| 23814 | _ACEOF |
| 23815 | for ac_lib in '' dl |
| 23816 | do |
| 23817 | if test -z "$ac_lib"; then |
| 23818 | ac_res="none required" |
| 23819 | else |
| 23820 | ac_res=-l$ac_lib |
| 23821 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 23822 | fi |
| 23823 | if ac_fn_c_try_link "$LINENO" |
| 23824 | then : |
| 23825 | ac_cv_search_dlopen=$ac_res |
| 23826 | fi |
| 23827 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23828 | conftest$ac_exeext |
| 23829 | if test ${ac_cv_search_dlopen+y} |
| 23830 | then : |
| 23831 | break |
| 23832 | fi |
| 23833 | done |
| 23834 | if test ${ac_cv_search_dlopen+y} |
| 23835 | then : |
| 23836 | |
| 23837 | else case e in #( |
| 23838 | e) ac_cv_search_dlopen=no ;; |
| 23839 | esac |
| 23840 | fi |
| 23841 | rm conftest.$ac_ext |
| 23842 | LIBS=$ac_func_search_save_LIBS ;; |
| 23843 | esac |
| 23844 | fi |
| 23845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 23846 | printf "%s\n" "$ac_cv_search_dlopen" >&6; } |
| 23847 | ac_res=$ac_cv_search_dlopen |
| 23848 | if test "$ac_res" != no |
| 23849 | then : |
| 23850 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 23851 | |
| 23852 | fi |
| 23853 | |
| 23854 | if test "x$ac_cv_search_dlopen" != xno; then |
| 23855 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 23856 | " |
| 23857 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 23858 | then : |
| 23859 | LUA52_DEFINES="$LUA52_DEFINES -DLUA_USE_DLOPEN" |
| 23860 | fi |
| 23861 | |
| 23862 | fi |
| 23863 | fi |
| 23864 | |
| 23865 | LUAJIT_DEFINES='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6' |
| 23866 | |
| 23867 | case $host_os:$host_cpu in #( |
| 23868 | *darwin*:x86_64) : |
| 23869 | LUAJIT_LDEXTRA='-pagezero_size 10000 -image_base 100000000' ;; #( |
| 23870 | *) : |
| 23871 | ;; |
| 23872 | esac |
| 23873 | |
| 23874 | |
| 23875 | if test "x$enable_largefile" != xno; then |
| 23876 | case $ac_cv_sys_file_offset_bits in #( |
| 23877 | no) : |
| 23878 | ;; #( |
| 23879 | unknown) : |
| 23880 | case $ac_cv_sys_large_files in #( |
| 23881 | no | unknown) : |
| 23882 | ;; #( |
| 23883 | *) : |
| 23884 | LUA53_DEFINES="$LUA53_DEFINES -D_LARGE_FILES" ;; |
| 23885 | esac ;; #( |
| 23886 | *) : |
| 23887 | LUA53_DEFINES="$LUA53_DEFINES -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" ;; |
| 23888 | esac |
| 23889 | fi |
| 23890 | case $ac_cv_sys_largefile_source in #( |
| 23891 | no | unknown) : |
| 23892 | ;; #( |
| 23893 | *) : |
| 23894 | LUA53_DEFINES="$LUA53_DEFINES -D_LARGEFILE_SOURCE" ;; |
| 23895 | esac |
| 23896 | |
| 23897 | if test "x$enable_largefile" != xno; then |
| 23898 | case $ac_cv_sys_file_offset_bits in #( |
| 23899 | no) : |
| 23900 | ;; #( |
| 23901 | unknown) : |
| 23902 | case $ac_cv_sys_large_files in #( |
| 23903 | no | unknown) : |
| 23904 | ;; #( |
| 23905 | *) : |
| 23906 | LUA52_DEFINES="$LUA52_DEFINES -D_LARGE_FILES" ;; |
| 23907 | esac ;; #( |
| 23908 | *) : |
| 23909 | LUA52_DEFINES="$LUA52_DEFINES -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" ;; |
| 23910 | esac |
| 23911 | fi |
| 23912 | case $ac_cv_sys_largefile_source in #( |
| 23913 | no | unknown) : |
| 23914 | ;; #( |
| 23915 | *) : |
| 23916 | LUA52_DEFINES="$LUA52_DEFINES -D_LARGEFILE_SOURCE" ;; |
| 23917 | esac |
| 23918 | |
| 23919 | if test "x$enable_largefile" != xno; then |
| 23920 | case $ac_cv_sys_file_offset_bits in #( |
| 23921 | no) : |
| 23922 | ;; #( |
| 23923 | unknown) : |
| 23924 | case $ac_cv_sys_large_files in #( |
| 23925 | no | unknown) : |
| 23926 | ;; #( |
| 23927 | *) : |
| 23928 | LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGE_FILES" ;; |
| 23929 | esac ;; #( |
| 23930 | *) : |
| 23931 | LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" ;; |
| 23932 | esac |
| 23933 | fi |
| 23934 | case $ac_cv_sys_largefile_source in #( |
| 23935 | no | unknown) : |
| 23936 | ;; #( |
| 23937 | *) : |
| 23938 | LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGEFILE_SOURCE" ;; |
| 23939 | esac |
| 23940 | |
| 23941 | LIBS=$kpse_save_LIBS |
| 23942 | if test "x$kpse_cv_have_win32" = xno; then |
| 23943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 23944 | printf %s "checking for library containing gethostbyname... " >&6; } |
| 23945 | if test ${ac_cv_search_gethostbyname+y} |
| 23946 | then : |
| 23947 | printf %s "(cached) " >&6 |
| 23948 | else case e in #( |
| 23949 | e) ac_func_search_save_LIBS=$LIBS |
| 23950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23951 | /* end confdefs.h. */ |
| 23952 | |
| 23953 | /* Override any GCC internal prototype to avoid an error. |
| 23954 | Use char because int might match the return type of a GCC |
| 23955 | builtin and then its argument prototype would still apply. |
| 23956 | The 'extern "C"' is for builds by C++ compilers; |
| 23957 | although this is not generally supported in C code supporting it here |
| 23958 | has little cost and some practical benefit (sr 110532). */ |
| 23959 | #ifdef __cplusplus |
| 23960 | extern "C" |
| 23961 | #endif |
| 23962 | char gethostbyname (void); |
| 23963 | int |
| 23964 | main (void) |
| 23965 | { |
| 23966 | return gethostbyname (); |
| 23967 | ; |
| 23968 | return 0; |
| 23969 | } |
| 23970 | _ACEOF |
| 23971 | for ac_lib in '' nsl |
| 23972 | do |
| 23973 | if test -z "$ac_lib"; then |
| 23974 | ac_res="none required" |
| 23975 | else |
| 23976 | ac_res=-l$ac_lib |
| 23977 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 23978 | fi |
| 23979 | if ac_fn_c_try_link "$LINENO" |
| 23980 | then : |
| 23981 | ac_cv_search_gethostbyname=$ac_res |
| 23982 | fi |
| 23983 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23984 | conftest$ac_exeext |
| 23985 | if test ${ac_cv_search_gethostbyname+y} |
| 23986 | then : |
| 23987 | break |
| 23988 | fi |
| 23989 | done |
| 23990 | if test ${ac_cv_search_gethostbyname+y} |
| 23991 | then : |
| 23992 | |
| 23993 | else case e in #( |
| 23994 | e) ac_cv_search_gethostbyname=no ;; |
| 23995 | esac |
| 23996 | fi |
| 23997 | rm conftest.$ac_ext |
| 23998 | LIBS=$ac_func_search_save_LIBS ;; |
| 23999 | esac |
| 24000 | fi |
| 24001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 24002 | printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
| 24003 | ac_res=$ac_cv_search_gethostbyname |
| 24004 | if test "$ac_res" != no |
| 24005 | then : |
| 24006 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24007 | |
| 24008 | fi |
| 24009 | |
| 24010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 |
| 24011 | printf %s "checking for library containing hstrerror... " >&6; } |
| 24012 | if test ${ac_cv_search_hstrerror+y} |
| 24013 | then : |
| 24014 | printf %s "(cached) " >&6 |
| 24015 | else case e in #( |
| 24016 | e) ac_func_search_save_LIBS=$LIBS |
| 24017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24018 | /* end confdefs.h. */ |
| 24019 | |
| 24020 | /* Override any GCC internal prototype to avoid an error. |
| 24021 | Use char because int might match the return type of a GCC |
| 24022 | builtin and then its argument prototype would still apply. |
| 24023 | The 'extern "C"' is for builds by C++ compilers; |
| 24024 | although this is not generally supported in C code supporting it here |
| 24025 | has little cost and some practical benefit (sr 110532). */ |
| 24026 | #ifdef __cplusplus |
| 24027 | extern "C" |
| 24028 | #endif |
| 24029 | char hstrerror (void); |
| 24030 | int |
| 24031 | main (void) |
| 24032 | { |
| 24033 | return hstrerror (); |
| 24034 | ; |
| 24035 | return 0; |
| 24036 | } |
| 24037 | _ACEOF |
| 24038 | for ac_lib in '' resolv |
| 24039 | do |
| 24040 | if test -z "$ac_lib"; then |
| 24041 | ac_res="none required" |
| 24042 | else |
| 24043 | ac_res=-l$ac_lib |
| 24044 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24045 | fi |
| 24046 | if ac_fn_c_try_link "$LINENO" |
| 24047 | then : |
| 24048 | ac_cv_search_hstrerror=$ac_res |
| 24049 | fi |
| 24050 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24051 | conftest$ac_exeext |
| 24052 | if test ${ac_cv_search_hstrerror+y} |
| 24053 | then : |
| 24054 | break |
| 24055 | fi |
| 24056 | done |
| 24057 | if test ${ac_cv_search_hstrerror+y} |
| 24058 | then : |
| 24059 | |
| 24060 | else case e in #( |
| 24061 | e) ac_cv_search_hstrerror=no ;; |
| 24062 | esac |
| 24063 | fi |
| 24064 | rm conftest.$ac_ext |
| 24065 | LIBS=$ac_func_search_save_LIBS ;; |
| 24066 | esac |
| 24067 | fi |
| 24068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 |
| 24069 | printf "%s\n" "$ac_cv_search_hstrerror" >&6; } |
| 24070 | ac_res=$ac_cv_search_hstrerror |
| 24071 | if test "$ac_res" != no |
| 24072 | then : |
| 24073 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24074 | |
| 24075 | fi |
| 24076 | |
| 24077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
| 24078 | printf %s "checking for library containing inet_aton... " >&6; } |
| 24079 | if test ${ac_cv_search_inet_aton+y} |
| 24080 | then : |
| 24081 | printf %s "(cached) " >&6 |
| 24082 | else case e in #( |
| 24083 | e) ac_func_search_save_LIBS=$LIBS |
| 24084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24085 | /* end confdefs.h. */ |
| 24086 | |
| 24087 | /* Override any GCC internal prototype to avoid an error. |
| 24088 | Use char because int might match the return type of a GCC |
| 24089 | builtin and then its argument prototype would still apply. |
| 24090 | The 'extern "C"' is for builds by C++ compilers; |
| 24091 | although this is not generally supported in C code supporting it here |
| 24092 | has little cost and some practical benefit (sr 110532). */ |
| 24093 | #ifdef __cplusplus |
| 24094 | extern "C" |
| 24095 | #endif |
| 24096 | char inet_aton (void); |
| 24097 | int |
| 24098 | main (void) |
| 24099 | { |
| 24100 | return inet_aton (); |
| 24101 | ; |
| 24102 | return 0; |
| 24103 | } |
| 24104 | _ACEOF |
| 24105 | for ac_lib in '' resolv |
| 24106 | do |
| 24107 | if test -z "$ac_lib"; then |
| 24108 | ac_res="none required" |
| 24109 | else |
| 24110 | ac_res=-l$ac_lib |
| 24111 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24112 | fi |
| 24113 | if ac_fn_c_try_link "$LINENO" |
| 24114 | then : |
| 24115 | ac_cv_search_inet_aton=$ac_res |
| 24116 | fi |
| 24117 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24118 | conftest$ac_exeext |
| 24119 | if test ${ac_cv_search_inet_aton+y} |
| 24120 | then : |
| 24121 | break |
| 24122 | fi |
| 24123 | done |
| 24124 | if test ${ac_cv_search_inet_aton+y} |
| 24125 | then : |
| 24126 | |
| 24127 | else case e in #( |
| 24128 | e) ac_cv_search_inet_aton=no ;; |
| 24129 | esac |
| 24130 | fi |
| 24131 | rm conftest.$ac_ext |
| 24132 | LIBS=$ac_func_search_save_LIBS ;; |
| 24133 | esac |
| 24134 | fi |
| 24135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
| 24136 | printf "%s\n" "$ac_cv_search_inet_aton" >&6; } |
| 24137 | ac_res=$ac_cv_search_inet_aton |
| 24138 | if test "$ac_res" != no |
| 24139 | then : |
| 24140 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24141 | |
| 24142 | fi |
| 24143 | |
| 24144 | LIBS=$kpse_save_LIBS |
| 24145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
| 24146 | printf %s "checking for library containing nanosleep... " >&6; } |
| 24147 | if test ${ac_cv_search_nanosleep+y} |
| 24148 | then : |
| 24149 | printf %s "(cached) " >&6 |
| 24150 | else case e in #( |
| 24151 | e) ac_func_search_save_LIBS=$LIBS |
| 24152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24153 | /* end confdefs.h. */ |
| 24154 | |
| 24155 | /* Override any GCC internal prototype to avoid an error. |
| 24156 | Use char because int might match the return type of a GCC |
| 24157 | builtin and then its argument prototype would still apply. |
| 24158 | The 'extern "C"' is for builds by C++ compilers; |
| 24159 | although this is not generally supported in C code supporting it here |
| 24160 | has little cost and some practical benefit (sr 110532). */ |
| 24161 | #ifdef __cplusplus |
| 24162 | extern "C" |
| 24163 | #endif |
| 24164 | char nanosleep (void); |
| 24165 | int |
| 24166 | main (void) |
| 24167 | { |
| 24168 | return nanosleep (); |
| 24169 | ; |
| 24170 | return 0; |
| 24171 | } |
| 24172 | _ACEOF |
| 24173 | for ac_lib in '' rt |
| 24174 | do |
| 24175 | if test -z "$ac_lib"; then |
| 24176 | ac_res="none required" |
| 24177 | else |
| 24178 | ac_res=-l$ac_lib |
| 24179 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24180 | fi |
| 24181 | if ac_fn_c_try_link "$LINENO" |
| 24182 | then : |
| 24183 | ac_cv_search_nanosleep=$ac_res |
| 24184 | fi |
| 24185 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24186 | conftest$ac_exeext |
| 24187 | if test ${ac_cv_search_nanosleep+y} |
| 24188 | then : |
| 24189 | break |
| 24190 | fi |
| 24191 | done |
| 24192 | if test ${ac_cv_search_nanosleep+y} |
| 24193 | then : |
| 24194 | |
| 24195 | else case e in #( |
| 24196 | e) ac_cv_search_nanosleep=no ;; |
| 24197 | esac |
| 24198 | fi |
| 24199 | rm conftest.$ac_ext |
| 24200 | LIBS=$ac_func_search_save_LIBS ;; |
| 24201 | esac |
| 24202 | fi |
| 24203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 |
| 24204 | printf "%s\n" "$ac_cv_search_nanosleep" >&6; } |
| 24205 | ac_res=$ac_cv_search_nanosleep |
| 24206 | if test "$ac_res" != no |
| 24207 | then : |
| 24208 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24209 | |
| 24210 | fi |
| 24211 | |
| 24212 | LIBS=$kpse_save_LIBS |
| 24213 | case $ac_cv_header_dlfcn_h in #( |
| 24214 | yes) : |
| 24215 | case $ac_cv_search_dlopen in #( |
| 24216 | no*) : |
| 24217 | ;; #( |
| 24218 | *) : |
| 24219 | lua_socketlibs="$lua_socketlibs $ac_cv_search_dlopen" ;; |
| 24220 | esac ;; #( |
| 24221 | *) : |
| 24222 | ;; |
| 24223 | esac |
| 24224 | case $ac_cv_search_hstrerror in #( |
| 24225 | "none required") : |
| 24226 | ;; #( |
| 24227 | no) : |
| 24228 | if test "x$enable_luatex" = xyes |
| 24229 | then : |
| 24230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no hstrerror(): disabling luatex" >&5 |
| 24231 | printf "%s\n" "$as_me: WARNING: Sorry, no hstrerror(): disabling luatex" >&2;} |
| 24232 | if test "x$enable_missing" = xno |
| 24233 | then : |
| 24234 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24235 | fi |
| 24236 | |
| 24237 | enable_luatex=no |
| 24238 | fi |
| 24239 | if test "x$enable_luatex53" = xyes |
| 24240 | then : |
| 24241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no hstrerror(): disabling luatex53" >&5 |
| 24242 | printf "%s\n" "$as_me: WARNING: Sorry, no hstrerror(): disabling luatex53" >&2;} |
| 24243 | if test "x$enable_missing" = xno |
| 24244 | then : |
| 24245 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24246 | fi |
| 24247 | |
| 24248 | enable_luatex53=no |
| 24249 | fi |
| 24250 | ;; #( |
| 24251 | *) : |
| 24252 | lua_socketlibs="$lua_socketlibs $ac_cv_search_hstrerror" ;; |
| 24253 | esac |
| 24254 | case $ac_cv_search_inet_aton in #( |
| 24255 | "none required") : |
| 24256 | ;; #( |
| 24257 | no) : |
| 24258 | if test "x$enable_luatex" = xyes |
| 24259 | then : |
| 24260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no inet_aton(): disabling luatex" >&5 |
| 24261 | printf "%s\n" "$as_me: WARNING: Sorry, no inet_aton(): disabling luatex" >&2;} |
| 24262 | if test "x$enable_missing" = xno |
| 24263 | then : |
| 24264 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24265 | fi |
| 24266 | |
| 24267 | enable_luatex=no |
| 24268 | fi |
| 24269 | if test "x$enable_luatex53" = xyes |
| 24270 | then : |
| 24271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no inet_aton(): disabling luatex53" >&5 |
| 24272 | printf "%s\n" "$as_me: WARNING: Sorry, no inet_aton(): disabling luatex53" >&2;} |
| 24273 | if test "x$enable_missing" = xno |
| 24274 | then : |
| 24275 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24276 | fi |
| 24277 | |
| 24278 | enable_luatex53=no |
| 24279 | fi |
| 24280 | ;; #( |
| 24281 | *) : |
| 24282 | lua_socketlibs="$lua_socketlibs $ac_cv_search_inet_aton" ;; |
| 24283 | esac |
| 24284 | case $ac_cv_search_gethostbyname in #( |
| 24285 | "none required") : |
| 24286 | ;; #( |
| 24287 | no) : |
| 24288 | if test "x$enable_luatex" = xyes |
| 24289 | then : |
| 24290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no gethostbyname(): disabling luatex" >&5 |
| 24291 | printf "%s\n" "$as_me: WARNING: Sorry, no gethostbyname(): disabling luatex" >&2;} |
| 24292 | if test "x$enable_missing" = xno |
| 24293 | then : |
| 24294 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24295 | fi |
| 24296 | |
| 24297 | enable_luatex=no |
| 24298 | fi |
| 24299 | if test "x$enable_luatex53" = xyes |
| 24300 | then : |
| 24301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no gethostbyname(): disabling luatex53" >&5 |
| 24302 | printf "%s\n" "$as_me: WARNING: Sorry, no gethostbyname(): disabling luatex53" >&2;} |
| 24303 | if test "x$enable_missing" = xno |
| 24304 | then : |
| 24305 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24306 | fi |
| 24307 | |
| 24308 | enable_luatex53=no |
| 24309 | fi |
| 24310 | ;; #( |
| 24311 | *) : |
| 24312 | lua_socketlibs="$lua_socketlibs $ac_cv_search_gethostbyname" ;; |
| 24313 | esac |
| 24314 | case $ac_cv_search_nanosleep in #( |
| 24315 | "none required") : |
| 24316 | ;; #( |
| 24317 | no) : |
| 24318 | if test "x$enable_luatex" = xyes |
| 24319 | then : |
| 24320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no nanosleep(): disabling luatex" >&5 |
| 24321 | printf "%s\n" "$as_me: WARNING: Sorry, no nanosleep(): disabling luatex" >&2;} |
| 24322 | if test "x$enable_missing" = xno |
| 24323 | then : |
| 24324 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24325 | fi |
| 24326 | |
| 24327 | enable_luatex=no |
| 24328 | fi |
| 24329 | if test "x$enable_luatex53" = xyes |
| 24330 | then : |
| 24331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no nanosleep(): disabling luatex53" >&5 |
| 24332 | printf "%s\n" "$as_me: WARNING: Sorry, no nanosleep(): disabling luatex53" >&2;} |
| 24333 | if test "x$enable_missing" = xno |
| 24334 | then : |
| 24335 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24336 | fi |
| 24337 | |
| 24338 | enable_luatex53=no |
| 24339 | fi |
| 24340 | ;; #( |
| 24341 | *) : |
| 24342 | lua_socketlibs="$lua_socketlibs $ac_cv_search_nanosleep" ;; |
| 24343 | esac |
| 24344 | else |
| 24345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 |
| 24346 | printf %s "checking for main in -lws2_32... " >&6; } |
| 24347 | if test ${ac_cv_lib_ws2_32_main+y} |
| 24348 | then : |
| 24349 | printf %s "(cached) " >&6 |
| 24350 | else case e in #( |
| 24351 | e) ac_check_lib_save_LIBS=$LIBS |
| 24352 | LIBS="-lws2_32 $LIBS" |
| 24353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24354 | /* end confdefs.h. */ |
| 24355 | |
| 24356 | |
| 24357 | int |
| 24358 | main (void) |
| 24359 | { |
| 24360 | return main (); |
| 24361 | ; |
| 24362 | return 0; |
| 24363 | } |
| 24364 | _ACEOF |
| 24365 | if ac_fn_c_try_link "$LINENO" |
| 24366 | then : |
| 24367 | ac_cv_lib_ws2_32_main=yes |
| 24368 | else case e in #( |
| 24369 | e) ac_cv_lib_ws2_32_main=no ;; |
| 24370 | esac |
| 24371 | fi |
| 24372 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24373 | conftest$ac_exeext conftest.$ac_ext |
| 24374 | LIBS=$ac_check_lib_save_LIBS ;; |
| 24375 | esac |
| 24376 | fi |
| 24377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 |
| 24378 | printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } |
| 24379 | if test "x$ac_cv_lib_ws2_32_main" = xyes |
| 24380 | then : |
| 24381 | lua_socketlibs="$socketlibs -lws2_32" |
| 24382 | else case e in #( |
| 24383 | e) if test "x$enable_luatex" = xyes |
| 24384 | then : |
| 24385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no getaddrinfo(): disabling luatex" >&5 |
| 24386 | printf "%s\n" "$as_me: WARNING: Sorry, no getaddrinfo(): disabling luatex" >&2;} |
| 24387 | if test "x$enable_missing" = xno |
| 24388 | then : |
| 24389 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24390 | fi |
| 24391 | |
| 24392 | enable_luatex=no |
| 24393 | fi |
| 24394 | if test "x$enable_luatex53" = xyes |
| 24395 | then : |
| 24396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no getaddrinfo(): disabling luatex53" >&5 |
| 24397 | printf "%s\n" "$as_me: WARNING: Sorry, no getaddrinfo(): disabling luatex53" >&2;} |
| 24398 | if test "x$enable_missing" = xno |
| 24399 | then : |
| 24400 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 24401 | fi |
| 24402 | |
| 24403 | enable_luatex53=no |
| 24404 | fi |
| 24405 | ;; |
| 24406 | esac |
| 24407 | fi |
| 24408 | |
| 24409 | fi |
| 24410 | if test "x$ac_cv_header_dlfcn_h" = xyes; then |
| 24411 | USE_DLOPEN_TRUE= |
| 24412 | USE_DLOPEN_FALSE='#' |
| 24413 | else |
| 24414 | USE_DLOPEN_TRUE='#' |
| 24415 | USE_DLOPEN_FALSE= |
| 24416 | fi |
| 24417 | |
| 24418 | |
| 24419 | |
| 24420 | |
| 24421 | if test "x$enable_tex" = xyes; then |
| 24422 | TEX_TRUE= |
| 24423 | TEX_FALSE='#' |
| 24424 | else |
| 24425 | TEX_TRUE='#' |
| 24426 | TEX_FALSE= |
| 24427 | fi |
| 24428 | |
| 24429 | case $enable_native_texlive_build:$enable_tex_synctex in #( |
| 24430 | yes:no | no:yes | no:no) : |
| 24431 | ;; #( |
| 24432 | *) : |
| 24433 | if test -z "$enable_tex_synctex" |
| 24434 | then : |
| 24435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-tex-synctex=no'" >&5 |
| 24436 | printf "%s\n" "$as_me: Assuming \`--enable-tex-synctex=no'" >&6;} |
| 24437 | else case e in #( |
| 24438 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-tex-synctex=no' (native TeX Live build)" >&5 |
| 24439 | printf "%s\n" "$as_me: WARNING: Enforcing \`--enable-tex-synctex=no' (native TeX Live build)" >&2;} ;; |
| 24440 | esac |
| 24441 | fi |
| 24442 | enable_tex_synctex=no ;; |
| 24443 | esac |
| 24444 | if test "x$enable_tex_synctex" = xyes; then |
| 24445 | TEX_SYNCTEX_TRUE= |
| 24446 | TEX_SYNCTEX_FALSE='#' |
| 24447 | else |
| 24448 | TEX_SYNCTEX_TRUE='#' |
| 24449 | TEX_SYNCTEX_FALSE= |
| 24450 | fi |
| 24451 | if test "x$enable_etex" = xyes; then |
| 24452 | ETEX_TRUE= |
| 24453 | ETEX_FALSE='#' |
| 24454 | else |
| 24455 | ETEX_TRUE='#' |
| 24456 | ETEX_FALSE= |
| 24457 | fi |
| 24458 | |
| 24459 | case $enable_native_texlive_build:$enable_etex_synctex in #( |
| 24460 | yes:yes | no:yes | no:no) : |
| 24461 | ;; #( |
| 24462 | *) : |
| 24463 | if test -z "$enable_etex_synctex" |
| 24464 | then : |
| 24465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-etex-synctex=yes'" >&5 |
| 24466 | printf "%s\n" "$as_me: Assuming \`--enable-etex-synctex=yes'" >&6;} |
| 24467 | else case e in #( |
| 24468 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-etex-synctex=yes' (native TeX Live build)" >&5 |
| 24469 | printf "%s\n" "$as_me: WARNING: Enforcing \`--enable-etex-synctex=yes' (native TeX Live build)" >&2;} ;; |
| 24470 | esac |
| 24471 | fi |
| 24472 | enable_etex_synctex=yes ;; |
| 24473 | esac |
| 24474 | if test "x$enable_etex_synctex" = xyes; then |
| 24475 | ETEX_SYNCTEX_TRUE= |
| 24476 | ETEX_SYNCTEX_FALSE='#' |
| 24477 | else |
| 24478 | ETEX_SYNCTEX_TRUE='#' |
| 24479 | ETEX_SYNCTEX_FALSE= |
| 24480 | fi |
| 24481 | if test "x$enable_uptex" = xyes; then |
| 24482 | UPTEX_TRUE= |
| 24483 | UPTEX_FALSE='#' |
| 24484 | else |
| 24485 | UPTEX_TRUE='#' |
| 24486 | UPTEX_FALSE= |
| 24487 | fi |
| 24488 | if test "x$enable_euptex" = xyes; then |
| 24489 | EUPTEX_TRUE= |
| 24490 | EUPTEX_FALSE='#' |
| 24491 | else |
| 24492 | EUPTEX_TRUE='#' |
| 24493 | EUPTEX_FALSE= |
| 24494 | fi |
| 24495 | |
| 24496 | case $enable_native_texlive_build:$enable_euptex_synctex in #( |
| 24497 | yes:yes | no:yes | no:no) : |
| 24498 | ;; #( |
| 24499 | *) : |
| 24500 | if test -z "$enable_euptex_synctex" |
| 24501 | then : |
| 24502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-euptex-synctex=yes'" >&5 |
| 24503 | printf "%s\n" "$as_me: Assuming \`--enable-euptex-synctex=yes'" >&6;} |
| 24504 | else case e in #( |
| 24505 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-euptex-synctex=yes' (native TeX Live build)" >&5 |
| 24506 | printf "%s\n" "$as_me: WARNING: Enforcing \`--enable-euptex-synctex=yes' (native TeX Live build)" >&2;} ;; |
| 24507 | esac |
| 24508 | fi |
| 24509 | enable_euptex_synctex=yes ;; |
| 24510 | esac |
| 24511 | if test "x$enable_euptex_synctex" = xyes; then |
| 24512 | EUPTEX_SYNCTEX_TRUE= |
| 24513 | EUPTEX_SYNCTEX_FALSE='#' |
| 24514 | else |
| 24515 | EUPTEX_SYNCTEX_TRUE='#' |
| 24516 | EUPTEX_SYNCTEX_FALSE= |
| 24517 | fi |
| 24518 | if test "x$enable_aleph" = xyes; then |
| 24519 | ALEPH_TRUE= |
| 24520 | ALEPH_FALSE='#' |
| 24521 | else |
| 24522 | ALEPH_TRUE='#' |
| 24523 | ALEPH_FALSE= |
| 24524 | fi |
| 24525 | if test "x$enable_hitex" = xyes; then |
| 24526 | HITEX_TRUE= |
| 24527 | HITEX_FALSE='#' |
| 24528 | else |
| 24529 | HITEX_TRUE='#' |
| 24530 | HITEX_FALSE= |
| 24531 | fi |
| 24532 | if test "x$enable_pdftex" = xyes; then |
| 24533 | PDFTEX_TRUE= |
| 24534 | PDFTEX_FALSE='#' |
| 24535 | else |
| 24536 | PDFTEX_TRUE='#' |
| 24537 | PDFTEX_FALSE= |
| 24538 | fi |
| 24539 | |
| 24540 | case $enable_native_texlive_build:$enable_pdftex_synctex in #( |
| 24541 | yes:yes | no:yes | no:no) : |
| 24542 | ;; #( |
| 24543 | *) : |
| 24544 | if test -z "$enable_pdftex_synctex" |
| 24545 | then : |
| 24546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-pdftex-synctex=yes'" >&5 |
| 24547 | printf "%s\n" "$as_me: Assuming \`--enable-pdftex-synctex=yes'" >&6;} |
| 24548 | else case e in #( |
| 24549 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-pdftex-synctex=yes' (native TeX Live build)" >&5 |
| 24550 | printf "%s\n" "$as_me: WARNING: Enforcing \`--enable-pdftex-synctex=yes' (native TeX Live build)" >&2;} ;; |
| 24551 | esac |
| 24552 | fi |
| 24553 | enable_pdftex_synctex=yes ;; |
| 24554 | esac |
| 24555 | if test "x$enable_pdftex_synctex" = xyes; then |
| 24556 | PDFTEX_SYNCTEX_TRUE= |
| 24557 | PDFTEX_SYNCTEX_FALSE='#' |
| 24558 | else |
| 24559 | PDFTEX_SYNCTEX_TRUE='#' |
| 24560 | PDFTEX_SYNCTEX_FALSE= |
| 24561 | fi |
| 24562 | if test "x$enable_luatex" = xyes; then |
| 24563 | LUATEX_TRUE= |
| 24564 | LUATEX_FALSE='#' |
| 24565 | else |
| 24566 | LUATEX_TRUE='#' |
| 24567 | LUATEX_FALSE= |
| 24568 | fi |
| 24569 | if test "x$enable_luajittex" = xyes; then |
| 24570 | LUAJITTEX_TRUE= |
| 24571 | LUAJITTEX_FALSE='#' |
| 24572 | else |
| 24573 | LUAJITTEX_TRUE='#' |
| 24574 | LUAJITTEX_FALSE= |
| 24575 | fi |
| 24576 | if test "x$enable_luahbtex" = xyes; then |
| 24577 | LUAHBTEX_TRUE= |
| 24578 | LUAHBTEX_FALSE='#' |
| 24579 | else |
| 24580 | LUAHBTEX_TRUE='#' |
| 24581 | LUAHBTEX_FALSE= |
| 24582 | fi |
| 24583 | if test "x$enable_luajithbtex" = xyes; then |
| 24584 | LUAJITHBTEX_TRUE= |
| 24585 | LUAJITHBTEX_FALSE='#' |
| 24586 | else |
| 24587 | LUAJITHBTEX_TRUE='#' |
| 24588 | LUAJITHBTEX_FALSE= |
| 24589 | fi |
| 24590 | if test "x$enable_mp" = xyes; then |
| 24591 | MP_TRUE= |
| 24592 | MP_FALSE='#' |
| 24593 | else |
| 24594 | MP_TRUE='#' |
| 24595 | MP_FALSE= |
| 24596 | fi |
| 24597 | if test "x$enable_pmp" = xyes; then |
| 24598 | PMP_TRUE= |
| 24599 | PMP_FALSE='#' |
| 24600 | else |
| 24601 | PMP_TRUE='#' |
| 24602 | PMP_FALSE= |
| 24603 | fi |
| 24604 | if test "x$enable_texprof" = xyes; then |
| 24605 | TEXPROF_TRUE= |
| 24606 | TEXPROF_FALSE='#' |
| 24607 | else |
| 24608 | TEXPROF_TRUE='#' |
| 24609 | TEXPROF_FALSE= |
| 24610 | fi |
| 24611 | if test "x$enable_upmp" = xyes; then |
| 24612 | UPMP_TRUE= |
| 24613 | UPMP_FALSE='#' |
| 24614 | else |
| 24615 | UPMP_TRUE='#' |
| 24616 | UPMP_FALSE= |
| 24617 | fi |
| 24618 | if test "x$enable_xetex" = xyes; then |
| 24619 | XETEX_TRUE= |
| 24620 | XETEX_FALSE='#' |
| 24621 | else |
| 24622 | XETEX_TRUE='#' |
| 24623 | XETEX_FALSE= |
| 24624 | fi |
| 24625 | |
| 24626 | case $enable_native_texlive_build:$enable_xetex_synctex in #( |
| 24627 | yes:yes | no:yes | no:no) : |
| 24628 | ;; #( |
| 24629 | *) : |
| 24630 | if test -z "$enable_xetex_synctex" |
| 24631 | then : |
| 24632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-xetex-synctex=yes'" >&5 |
| 24633 | printf "%s\n" "$as_me: Assuming \`--enable-xetex-synctex=yes'" >&6;} |
| 24634 | else case e in #( |
| 24635 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-xetex-synctex=yes' (native TeX Live build)" >&5 |
| 24636 | printf "%s\n" "$as_me: WARNING: Enforcing \`--enable-xetex-synctex=yes' (native TeX Live build)" >&2;} ;; |
| 24637 | esac |
| 24638 | fi |
| 24639 | enable_xetex_synctex=yes ;; |
| 24640 | esac |
| 24641 | if test "x$enable_xetex_synctex" = xyes; then |
| 24642 | XETEX_SYNCTEX_TRUE= |
| 24643 | XETEX_SYNCTEX_FALSE='#' |
| 24644 | else |
| 24645 | XETEX_SYNCTEX_TRUE='#' |
| 24646 | XETEX_SYNCTEX_FALSE= |
| 24647 | fi |
| 24648 | |
| 24649 | test "x$enable_omfonts" = xno || enable_omfonts=yes |
| 24650 | |
| 24651 | if test "x$enable_aleph:$enable_xetex:$enable_omfonts" = xno:no:yes |
| 24652 | then : |
| 24653 | enable_otangle=no |
| 24654 | else case e in #( |
| 24655 | e) enable_otangle=yes ;; |
| 24656 | esac |
| 24657 | fi |
| 24658 | if test "x$enable_otangle" = xyes; then |
| 24659 | OTANGLE_TRUE= |
| 24660 | OTANGLE_FALSE='#' |
| 24661 | else |
| 24662 | OTANGLE_TRUE='#' |
| 24663 | OTANGLE_FALSE= |
| 24664 | fi |
| 24665 | |
| 24666 | # Handle --with-mf-x-toolkit and --with-x |
| 24667 | case $with_mf_x_toolkit in #( |
| 24668 | yes|no) : |
| 24669 | ;; #( |
| 24670 | '') : |
| 24671 | with_mf_x_toolkit=no ;; #( |
| 24672 | y|ye) : |
| 24673 | with_mf_x_toolkit=yes ;; #( |
| 24674 | n) : |
| 24675 | with_mf_x_toolkit=no ;; #( |
| 24676 | *) : |
| 24677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown --with-mf-x-toolkit argument \`$with_mf_x_toolkit'; using no." >&5 |
| 24678 | printf "%s\n" "$as_me: WARNING: unknown --with-mf-x-toolkit argument \`$with_mf_x_toolkit'; using no." >&2;} |
| 24679 | with_mf_x_toolkit=no ;; |
| 24680 | esac |
| 24681 | test "x$with_x_toolkit" = xyes && with_x=yes |
| 24682 | test "x$with_x" = xno && with_x_toolkit=no |
| 24683 | |
| 24684 | if test "x$enable_mf" != xno; then |
| 24685 | MF_TRUE= |
| 24686 | MF_FALSE='#' |
| 24687 | else |
| 24688 | MF_TRUE='#' |
| 24689 | MF_FALSE= |
| 24690 | fi |
| 24691 | test "x$enable_mf" = xyes && : ${with_x=yes} |
| 24692 | |
| 24693 | if test "x$enable_mf_nowin" != xno; then |
| 24694 | MFN_TRUE= |
| 24695 | MFN_FALSE='#' |
| 24696 | else |
| 24697 | MFN_TRUE='#' |
| 24698 | MFN_FALSE= |
| 24699 | fi |
| 24700 | if test "x$enable_mflua" != xno; then |
| 24701 | MFLUA_TRUE= |
| 24702 | MFLUA_FALSE='#' |
| 24703 | else |
| 24704 | MFLUA_TRUE='#' |
| 24705 | MFLUA_FALSE= |
| 24706 | fi |
| 24707 | test "x$enable_mflua" = xyes && : ${with_x=yes} |
| 24708 | |
| 24709 | if test "x$enable_mflua_nowin" != xno; then |
| 24710 | MFLUAN_TRUE= |
| 24711 | MFLUAN_FALSE='#' |
| 24712 | else |
| 24713 | MFLUAN_TRUE='#' |
| 24714 | MFLUAN_FALSE= |
| 24715 | fi |
| 24716 | if test "x$enable_mfluajit" != xno; then |
| 24717 | MFLUAJIT_TRUE= |
| 24718 | MFLUAJIT_FALSE='#' |
| 24719 | else |
| 24720 | MFLUAJIT_TRUE='#' |
| 24721 | MFLUAJIT_FALSE= |
| 24722 | fi |
| 24723 | test "x$enable_mfluajit" = xyes && : ${with_x=yes} |
| 24724 | |
| 24725 | if test "x$enable_mfluajit_nowin" != xno; then |
| 24726 | MFLUAJITN_TRUE= |
| 24727 | MFLUAJITN_FALSE='#' |
| 24728 | else |
| 24729 | MFLUAJITN_TRUE='#' |
| 24730 | MFLUAJITN_FALSE= |
| 24731 | fi |
| 24732 | : ${with_x=yes} |
| 24733 | |
| 24734 | # Distinguish no X at all, no toolkit, or toolkit. |
| 24735 | ac_ext=c |
| 24736 | ac_cpp='$CPP $CPPFLAGS' |
| 24737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 24741 | printf %s "checking how to run the C preprocessor... " >&6; } |
| 24742 | # On Suns, sometimes $CPP names a directory. |
| 24743 | if test -n "$CPP" && test -d "$CPP"; then |
| 24744 | CPP= |
| 24745 | fi |
| 24746 | if test -z "$CPP"; then |
| 24747 | if test ${ac_cv_prog_CPP+y} |
| 24748 | then : |
| 24749 | printf %s "(cached) " >&6 |
| 24750 | else case e in #( |
| 24751 | e) # Double quotes because $CC needs to be expanded |
| 24752 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 24753 | do |
| 24754 | ac_preproc_ok=false |
| 24755 | for ac_c_preproc_warn_flag in '' yes |
| 24756 | do |
| 24757 | # Use a header file that comes with gcc, so configuring glibc |
| 24758 | # with a fresh cross-compiler works. |
| 24759 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 24760 | # not just through cpp. "Syntax error" is here to catch this case. |
| 24761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24762 | /* end confdefs.h. */ |
| 24763 | #include <limits.h> |
| 24764 | Syntax error |
| 24765 | _ACEOF |
| 24766 | if ac_fn_c_try_cpp "$LINENO" |
| 24767 | then : |
| 24768 | |
| 24769 | else case e in #( |
| 24770 | e) # Broken: fails on valid input. |
| 24771 | continue ;; |
| 24772 | esac |
| 24773 | fi |
| 24774 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 24775 | |
| 24776 | # OK, works on sane cases. Now check whether nonexistent headers |
| 24777 | # can be detected and how. |
| 24778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24779 | /* end confdefs.h. */ |
| 24780 | #include <ac_nonexistent.h> |
| 24781 | _ACEOF |
| 24782 | if ac_fn_c_try_cpp "$LINENO" |
| 24783 | then : |
| 24784 | # Broken: success on invalid input. |
| 24785 | continue |
| 24786 | else case e in #( |
| 24787 | e) # Passes both tests. |
| 24788 | ac_preproc_ok=: |
| 24789 | break ;; |
| 24790 | esac |
| 24791 | fi |
| 24792 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 24793 | |
| 24794 | done |
| 24795 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 24796 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 24797 | if $ac_preproc_ok |
| 24798 | then : |
| 24799 | break |
| 24800 | fi |
| 24801 | |
| 24802 | done |
| 24803 | ac_cv_prog_CPP=$CPP |
| 24804 | ;; |
| 24805 | esac |
| 24806 | fi |
| 24807 | CPP=$ac_cv_prog_CPP |
| 24808 | else |
| 24809 | ac_cv_prog_CPP=$CPP |
| 24810 | fi |
| 24811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 24812 | printf "%s\n" "$CPP" >&6; } |
| 24813 | ac_preproc_ok=false |
| 24814 | for ac_c_preproc_warn_flag in '' yes |
| 24815 | do |
| 24816 | # Use a header file that comes with gcc, so configuring glibc |
| 24817 | # with a fresh cross-compiler works. |
| 24818 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 24819 | # not just through cpp. "Syntax error" is here to catch this case. |
| 24820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24821 | /* end confdefs.h. */ |
| 24822 | #include <limits.h> |
| 24823 | Syntax error |
| 24824 | _ACEOF |
| 24825 | if ac_fn_c_try_cpp "$LINENO" |
| 24826 | then : |
| 24827 | |
| 24828 | else case e in #( |
| 24829 | e) # Broken: fails on valid input. |
| 24830 | continue ;; |
| 24831 | esac |
| 24832 | fi |
| 24833 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 24834 | |
| 24835 | # OK, works on sane cases. Now check whether nonexistent headers |
| 24836 | # can be detected and how. |
| 24837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24838 | /* end confdefs.h. */ |
| 24839 | #include <ac_nonexistent.h> |
| 24840 | _ACEOF |
| 24841 | if ac_fn_c_try_cpp "$LINENO" |
| 24842 | then : |
| 24843 | # Broken: success on invalid input. |
| 24844 | continue |
| 24845 | else case e in #( |
| 24846 | e) # Passes both tests. |
| 24847 | ac_preproc_ok=: |
| 24848 | break ;; |
| 24849 | esac |
| 24850 | fi |
| 24851 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 24852 | |
| 24853 | done |
| 24854 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 24855 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 24856 | if $ac_preproc_ok |
| 24857 | then : |
| 24858 | |
| 24859 | else case e in #( |
| 24860 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 24861 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 24862 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 24863 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 24864 | esac |
| 24865 | fi |
| 24866 | |
| 24867 | ac_ext=c |
| 24868 | ac_cpp='$CPP $CPPFLAGS' |
| 24869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24872 | |
| 24873 | |
| 24874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 24875 | printf %s "checking for X... " >&6; } |
| 24876 | |
| 24877 | |
| 24878 | # Check whether --with-x was given. |
| 24879 | if test ${with_x+y} |
| 24880 | then : |
| 24881 | withval=$with_x; |
| 24882 | fi |
| 24883 | |
| 24884 | # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know. |
| 24885 | if test "x$with_x" = xno; then |
| 24886 | # The user explicitly disabled X. |
| 24887 | have_x=disabled |
| 24888 | else |
| 24889 | case $x_includes,$x_libraries in #( |
| 24890 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 24891 | *,NONE | NONE,*) if test ${ac_cv_have_x+y} |
| 24892 | then : |
| 24893 | printf %s "(cached) " >&6 |
| 24894 | else case e in #( |
| 24895 | e) # One or both of the vars are not set, and there is no cached value. |
| 24896 | ac_x_includes=no |
| 24897 | ac_x_libraries=no |
| 24898 | # Do we need to do anything special at all? |
| 24899 | ac_save_LIBS=$LIBS |
| 24900 | LIBS="-lX11 $LIBS" |
| 24901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24902 | /* end confdefs.h. */ |
| 24903 | #include <X11/Xlib.h> |
| 24904 | int |
| 24905 | main (void) |
| 24906 | { |
| 24907 | XrmInitialize () |
| 24908 | ; |
| 24909 | return 0; |
| 24910 | } |
| 24911 | _ACEOF |
| 24912 | if ac_fn_c_try_link "$LINENO" |
| 24913 | then : |
| 24914 | # We can compile and link X programs with no special options. |
| 24915 | ac_x_includes= |
| 24916 | ac_x_libraries= |
| 24917 | fi |
| 24918 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24919 | conftest$ac_exeext conftest.$ac_ext |
| 24920 | LIBS="$ac_save_LIBS" |
| 24921 | # If that didn't work, only try xmkmf and file system searches |
| 24922 | # for native compilation. |
| 24923 | if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
| 24924 | then : |
| 24925 | rm -f -r conftest.dir |
| 24926 | if mkdir conftest.dir; then |
| 24927 | cd conftest.dir |
| 24928 | cat >Imakefile <<'_ACEOF' |
| 24929 | incroot: |
| 24930 | @echo incroot='${INCROOT}' |
| 24931 | usrlibdir: |
| 24932 | @echo usrlibdir='${USRLIBDIR}' |
| 24933 | libdir: |
| 24934 | @echo libdir='${LIBDIR}' |
| 24935 | _ACEOF |
| 24936 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 24937 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 24938 | for ac_var in incroot usrlibdir libdir; do |
| 24939 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 24940 | done |
| 24941 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 24942 | for ac_extension in a so sl dylib la dll; do |
| 24943 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 24944 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 24945 | ac_im_usrlibdir=$ac_im_libdir; break |
| 24946 | fi |
| 24947 | done |
| 24948 | # Screen out bogus values from the imake configuration. They are |
| 24949 | # bogus both because they are the default anyway, and because |
| 24950 | # using them would break gcc on systems where it needs fixed includes. |
| 24951 | case $ac_im_incroot in |
| 24952 | /usr/include) ac_x_includes= ;; |
| 24953 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 24954 | esac |
| 24955 | case $ac_im_usrlibdir in |
| 24956 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 24957 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 24958 | esac |
| 24959 | fi |
| 24960 | cd .. |
| 24961 | rm -f -r conftest.dir |
| 24962 | fi |
| 24963 | |
| 24964 | # Standard set of common directories for X headers. |
| 24965 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 24966 | ac_x_header_dirs=' |
| 24967 | /usr/X11/include |
| 24968 | /usr/X11R7/include |
| 24969 | /usr/X11R6/include |
| 24970 | /usr/X11R5/include |
| 24971 | /usr/X11R4/include |
| 24972 | |
| 24973 | /usr/include/X11 |
| 24974 | /usr/include/X11R7 |
| 24975 | /usr/include/X11R6 |
| 24976 | /usr/include/X11R5 |
| 24977 | /usr/include/X11R4 |
| 24978 | |
| 24979 | /usr/local/X11/include |
| 24980 | /usr/local/X11R7/include |
| 24981 | /usr/local/X11R6/include |
| 24982 | /usr/local/X11R5/include |
| 24983 | /usr/local/X11R4/include |
| 24984 | |
| 24985 | /usr/local/include/X11 |
| 24986 | /usr/local/include/X11R7 |
| 24987 | /usr/local/include/X11R6 |
| 24988 | /usr/local/include/X11R5 |
| 24989 | /usr/local/include/X11R4 |
| 24990 | |
| 24991 | /opt/X11/include |
| 24992 | |
| 24993 | /usr/X386/include |
| 24994 | /usr/x386/include |
| 24995 | /usr/XFree86/include/X11 |
| 24996 | |
| 24997 | /usr/include |
| 24998 | /usr/local/include |
| 24999 | /usr/unsupported/include |
| 25000 | /usr/athena/include |
| 25001 | /usr/local/x11r5/include |
| 25002 | /usr/lpp/Xamples/include |
| 25003 | |
| 25004 | /usr/openwin/include |
| 25005 | /usr/openwin/share/include' |
| 25006 | |
| 25007 | if test "$ac_x_includes" = no; then |
| 25008 | # Guess where to find include files, by looking for Xlib.h. |
| 25009 | # First, try using that file with no special directory specified. |
| 25010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25011 | /* end confdefs.h. */ |
| 25012 | #include <X11/Xlib.h> |
| 25013 | _ACEOF |
| 25014 | if ac_fn_c_try_cpp "$LINENO" |
| 25015 | then : |
| 25016 | # We can compile using X headers with no special include directory. |
| 25017 | ac_x_includes= |
| 25018 | else case e in #( |
| 25019 | e) for ac_dir in $ac_x_header_dirs; do |
| 25020 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 25021 | ac_x_includes=$ac_dir |
| 25022 | break |
| 25023 | fi |
| 25024 | done ;; |
| 25025 | esac |
| 25026 | fi |
| 25027 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 25028 | fi # $ac_x_includes = no |
| 25029 | |
| 25030 | if test "$ac_x_libraries" = no; then |
| 25031 | # Check for the libraries. |
| 25032 | # See if we find them without any special options. |
| 25033 | # Don't add to $LIBS permanently. |
| 25034 | ac_save_LIBS=$LIBS |
| 25035 | LIBS="-lX11 $LIBS" |
| 25036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25037 | /* end confdefs.h. */ |
| 25038 | #include <X11/Xlib.h> |
| 25039 | int |
| 25040 | main (void) |
| 25041 | { |
| 25042 | XrmInitialize () |
| 25043 | ; |
| 25044 | return 0; |
| 25045 | } |
| 25046 | _ACEOF |
| 25047 | if ac_fn_c_try_link "$LINENO" |
| 25048 | then : |
| 25049 | LIBS=$ac_save_LIBS |
| 25050 | # We can link X programs with no special library path. |
| 25051 | ac_x_libraries= |
| 25052 | else case e in #( |
| 25053 | e) LIBS=$ac_save_LIBS |
| 25054 | for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 25055 | do |
| 25056 | # Don't even attempt the hair of trying to link an X program! |
| 25057 | for ac_extension in a so sl dylib la dll; do |
| 25058 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 25059 | ac_x_libraries=$ac_dir |
| 25060 | break 2 |
| 25061 | fi |
| 25062 | done |
| 25063 | done ;; |
| 25064 | esac |
| 25065 | fi |
| 25066 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25067 | conftest$ac_exeext conftest.$ac_ext |
| 25068 | fi # $ac_x_libraries = no |
| 25069 | |
| 25070 | fi |
| 25071 | # Record the results. |
| 25072 | case $ac_x_includes,$ac_x_libraries in #( |
| 25073 | no,* | *,no | *\'*) : |
| 25074 | # Didn't find X, or a directory has "'" in its name. |
| 25075 | ac_cv_have_x="have_x=no" ;; #( |
| 25076 | *) : |
| 25077 | # Record where we found X for the cache. |
| 25078 | ac_cv_have_x="have_x=yes\ |
| 25079 | ac_x_includes='$ac_x_includes'\ |
| 25080 | ac_x_libraries='$ac_x_libraries'" ;; |
| 25081 | esac ;; |
| 25082 | esac |
| 25083 | fi |
| 25084 | ;; #( |
| 25085 | *) have_x=yes;; |
| 25086 | esac |
| 25087 | eval "$ac_cv_have_x" |
| 25088 | fi # $with_x != no |
| 25089 | |
| 25090 | if test "$have_x" != yes; then |
| 25091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 25092 | printf "%s\n" "$have_x" >&6; } |
| 25093 | no_x=yes |
| 25094 | else |
| 25095 | # If each of the values was on the command line, it overrides each guess. |
| 25096 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 25097 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 25098 | # Update the cache value to reflect the command line values. |
| 25099 | ac_cv_have_x="have_x=yes\ |
| 25100 | ac_x_includes='$x_includes'\ |
| 25101 | ac_x_libraries='$x_libraries'" |
| 25102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 25103 | printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
| 25104 | fi |
| 25105 | |
| 25106 | if test "$no_x" = yes; then |
| 25107 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 25108 | |
| 25109 | printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| 25110 | |
| 25111 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 25112 | else |
| 25113 | if test -n "$x_includes"; then |
| 25114 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 25115 | fi |
| 25116 | |
| 25117 | # It would also be nice to do this for all -L options, not just this one. |
| 25118 | if test -n "$x_libraries"; then |
| 25119 | X_LIBS="$X_LIBS -L$x_libraries" |
| 25120 | # For Solaris; some versions of Sun CC require a space after -R and |
| 25121 | # others require no space. Words are not sufficient . . . . |
| 25122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| 25123 | printf %s "checking whether -R must be followed by a space... " >&6; } |
| 25124 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 25125 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 25126 | ac_c_werror_flag=yes |
| 25127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25128 | /* end confdefs.h. */ |
| 25129 | |
| 25130 | int |
| 25131 | main (void) |
| 25132 | { |
| 25133 | |
| 25134 | ; |
| 25135 | return 0; |
| 25136 | } |
| 25137 | _ACEOF |
| 25138 | if ac_fn_c_try_link "$LINENO" |
| 25139 | then : |
| 25140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25141 | printf "%s\n" "no" >&6; } |
| 25142 | X_LIBS="$X_LIBS -R$x_libraries" |
| 25143 | else case e in #( |
| 25144 | e) LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 25145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25146 | /* end confdefs.h. */ |
| 25147 | |
| 25148 | int |
| 25149 | main (void) |
| 25150 | { |
| 25151 | |
| 25152 | ; |
| 25153 | return 0; |
| 25154 | } |
| 25155 | _ACEOF |
| 25156 | if ac_fn_c_try_link "$LINENO" |
| 25157 | then : |
| 25158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 25159 | printf "%s\n" "yes" >&6; } |
| 25160 | X_LIBS="$X_LIBS -R $x_libraries" |
| 25161 | else case e in #( |
| 25162 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| 25163 | printf "%s\n" "neither works" >&6; } ;; |
| 25164 | esac |
| 25165 | fi |
| 25166 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25167 | conftest$ac_exeext conftest.$ac_ext ;; |
| 25168 | esac |
| 25169 | fi |
| 25170 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25171 | conftest$ac_exeext conftest.$ac_ext |
| 25172 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 25173 | LIBS=$ac_xsave_LIBS |
| 25174 | fi |
| 25175 | |
| 25176 | # Check for system-dependent libraries X programs must link with. |
| 25177 | # Do this before checking for the system-independent R6 libraries |
| 25178 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 25179 | |
| 25180 | if test "$ISC" = yes; then |
| 25181 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 25182 | else |
| 25183 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 25184 | # libraries were built with DECnet support. And Karl Berry says |
| 25185 | # the Alpha needs dnet_stub (dnet does not exist). |
| 25186 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 25187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25188 | /* end confdefs.h. */ |
| 25189 | |
| 25190 | /* Override any GCC internal prototype to avoid an error. |
| 25191 | Use char because int might match the return type of a GCC |
| 25192 | builtin and then its argument prototype would still apply. |
| 25193 | The 'extern "C"' is for builds by C++ compilers; |
| 25194 | although this is not generally supported in C code supporting it here |
| 25195 | has little cost and some practical benefit (sr 110532). */ |
| 25196 | #ifdef __cplusplus |
| 25197 | extern "C" |
| 25198 | #endif |
| 25199 | char XOpenDisplay (void); |
| 25200 | int |
| 25201 | main (void) |
| 25202 | { |
| 25203 | return XOpenDisplay (); |
| 25204 | ; |
| 25205 | return 0; |
| 25206 | } |
| 25207 | _ACEOF |
| 25208 | if ac_fn_c_try_link "$LINENO" |
| 25209 | then : |
| 25210 | |
| 25211 | else case e in #( |
| 25212 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 25213 | printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
| 25214 | if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
| 25215 | then : |
| 25216 | printf %s "(cached) " >&6 |
| 25217 | else case e in #( |
| 25218 | e) ac_check_lib_save_LIBS=$LIBS |
| 25219 | LIBS="-ldnet $LIBS" |
| 25220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25221 | /* end confdefs.h. */ |
| 25222 | |
| 25223 | /* Override any GCC internal prototype to avoid an error. |
| 25224 | Use char because int might match the return type of a GCC |
| 25225 | builtin and then its argument prototype would still apply. |
| 25226 | The 'extern "C"' is for builds by C++ compilers; |
| 25227 | although this is not generally supported in C code supporting it here |
| 25228 | has little cost and some practical benefit (sr 110532). */ |
| 25229 | #ifdef __cplusplus |
| 25230 | extern "C" |
| 25231 | #endif |
| 25232 | char dnet_ntoa (void); |
| 25233 | int |
| 25234 | main (void) |
| 25235 | { |
| 25236 | return dnet_ntoa (); |
| 25237 | ; |
| 25238 | return 0; |
| 25239 | } |
| 25240 | _ACEOF |
| 25241 | if ac_fn_c_try_link "$LINENO" |
| 25242 | then : |
| 25243 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 25244 | else case e in #( |
| 25245 | e) ac_cv_lib_dnet_dnet_ntoa=no ;; |
| 25246 | esac |
| 25247 | fi |
| 25248 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25249 | conftest$ac_exeext conftest.$ac_ext |
| 25250 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25251 | esac |
| 25252 | fi |
| 25253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 25254 | printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 25255 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
| 25256 | then : |
| 25257 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 25258 | fi |
| 25259 | |
| 25260 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 25261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 25262 | printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 25263 | if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
| 25264 | then : |
| 25265 | printf %s "(cached) " >&6 |
| 25266 | else case e in #( |
| 25267 | e) ac_check_lib_save_LIBS=$LIBS |
| 25268 | LIBS="-ldnet_stub $LIBS" |
| 25269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25270 | /* end confdefs.h. */ |
| 25271 | |
| 25272 | /* Override any GCC internal prototype to avoid an error. |
| 25273 | Use char because int might match the return type of a GCC |
| 25274 | builtin and then its argument prototype would still apply. |
| 25275 | The 'extern "C"' is for builds by C++ compilers; |
| 25276 | although this is not generally supported in C code supporting it here |
| 25277 | has little cost and some practical benefit (sr 110532). */ |
| 25278 | #ifdef __cplusplus |
| 25279 | extern "C" |
| 25280 | #endif |
| 25281 | char dnet_ntoa (void); |
| 25282 | int |
| 25283 | main (void) |
| 25284 | { |
| 25285 | return dnet_ntoa (); |
| 25286 | ; |
| 25287 | return 0; |
| 25288 | } |
| 25289 | _ACEOF |
| 25290 | if ac_fn_c_try_link "$LINENO" |
| 25291 | then : |
| 25292 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 25293 | else case e in #( |
| 25294 | e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;; |
| 25295 | esac |
| 25296 | fi |
| 25297 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25298 | conftest$ac_exeext conftest.$ac_ext |
| 25299 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25300 | esac |
| 25301 | fi |
| 25302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 25303 | printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 25304 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
| 25305 | then : |
| 25306 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 25307 | fi |
| 25308 | |
| 25309 | fi ;; |
| 25310 | esac |
| 25311 | fi |
| 25312 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25313 | conftest$ac_exeext conftest.$ac_ext |
| 25314 | LIBS="$ac_xsave_LIBS" |
| 25315 | |
| 25316 | # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, |
| 25317 | # to get the SysV transport functions. |
| 25318 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 25319 | # needs -lnsl. |
| 25320 | # The nsl library prevents programs from opening the X display |
| 25321 | # on Irix 5.2, according to T.E. Dickey. |
| 25322 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 25323 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 25324 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 25325 | if test "x$ac_cv_func_gethostbyname" = xyes |
| 25326 | then : |
| 25327 | |
| 25328 | fi |
| 25329 | |
| 25330 | if test $ac_cv_func_gethostbyname = no; then |
| 25331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 25332 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 25333 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 25334 | then : |
| 25335 | printf %s "(cached) " >&6 |
| 25336 | else case e in #( |
| 25337 | e) ac_check_lib_save_LIBS=$LIBS |
| 25338 | LIBS="-lnsl $LIBS" |
| 25339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25340 | /* end confdefs.h. */ |
| 25341 | |
| 25342 | /* Override any GCC internal prototype to avoid an error. |
| 25343 | Use char because int might match the return type of a GCC |
| 25344 | builtin and then its argument prototype would still apply. |
| 25345 | The 'extern "C"' is for builds by C++ compilers; |
| 25346 | although this is not generally supported in C code supporting it here |
| 25347 | has little cost and some practical benefit (sr 110532). */ |
| 25348 | #ifdef __cplusplus |
| 25349 | extern "C" |
| 25350 | #endif |
| 25351 | char gethostbyname (void); |
| 25352 | int |
| 25353 | main (void) |
| 25354 | { |
| 25355 | return gethostbyname (); |
| 25356 | ; |
| 25357 | return 0; |
| 25358 | } |
| 25359 | _ACEOF |
| 25360 | if ac_fn_c_try_link "$LINENO" |
| 25361 | then : |
| 25362 | ac_cv_lib_nsl_gethostbyname=yes |
| 25363 | else case e in #( |
| 25364 | e) ac_cv_lib_nsl_gethostbyname=no ;; |
| 25365 | esac |
| 25366 | fi |
| 25367 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25368 | conftest$ac_exeext conftest.$ac_ext |
| 25369 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25370 | esac |
| 25371 | fi |
| 25372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 25373 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 25374 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 25375 | then : |
| 25376 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 25377 | fi |
| 25378 | |
| 25379 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 25380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| 25381 | printf %s "checking for gethostbyname in -lbsd... " >&6; } |
| 25382 | if test ${ac_cv_lib_bsd_gethostbyname+y} |
| 25383 | then : |
| 25384 | printf %s "(cached) " >&6 |
| 25385 | else case e in #( |
| 25386 | e) ac_check_lib_save_LIBS=$LIBS |
| 25387 | LIBS="-lbsd $LIBS" |
| 25388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25389 | /* end confdefs.h. */ |
| 25390 | |
| 25391 | /* Override any GCC internal prototype to avoid an error. |
| 25392 | Use char because int might match the return type of a GCC |
| 25393 | builtin and then its argument prototype would still apply. |
| 25394 | The 'extern "C"' is for builds by C++ compilers; |
| 25395 | although this is not generally supported in C code supporting it here |
| 25396 | has little cost and some practical benefit (sr 110532). */ |
| 25397 | #ifdef __cplusplus |
| 25398 | extern "C" |
| 25399 | #endif |
| 25400 | char gethostbyname (void); |
| 25401 | int |
| 25402 | main (void) |
| 25403 | { |
| 25404 | return gethostbyname (); |
| 25405 | ; |
| 25406 | return 0; |
| 25407 | } |
| 25408 | _ACEOF |
| 25409 | if ac_fn_c_try_link "$LINENO" |
| 25410 | then : |
| 25411 | ac_cv_lib_bsd_gethostbyname=yes |
| 25412 | else case e in #( |
| 25413 | e) ac_cv_lib_bsd_gethostbyname=no ;; |
| 25414 | esac |
| 25415 | fi |
| 25416 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25417 | conftest$ac_exeext conftest.$ac_ext |
| 25418 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25419 | esac |
| 25420 | fi |
| 25421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 25422 | printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 25423 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
| 25424 | then : |
| 25425 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 25426 | fi |
| 25427 | |
| 25428 | fi |
| 25429 | fi |
| 25430 | |
| 25431 | # [email protected] says without -lsocket, |
| 25432 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 25433 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 25434 | # on later versions), says Simon Leinen: it contains gethostby* |
| 25435 | # variants that don't use the name server (or something). -lsocket |
| 25436 | # must be given before -lnsl if both are needed. We assume that |
| 25437 | # if connect needs -lnsl, so does gethostbyname. |
| 25438 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 25439 | if test "x$ac_cv_func_connect" = xyes |
| 25440 | then : |
| 25441 | |
| 25442 | fi |
| 25443 | |
| 25444 | if test $ac_cv_func_connect = no; then |
| 25445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| 25446 | printf %s "checking for connect in -lsocket... " >&6; } |
| 25447 | if test ${ac_cv_lib_socket_connect+y} |
| 25448 | then : |
| 25449 | printf %s "(cached) " >&6 |
| 25450 | else case e in #( |
| 25451 | e) ac_check_lib_save_LIBS=$LIBS |
| 25452 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 25453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25454 | /* end confdefs.h. */ |
| 25455 | |
| 25456 | /* Override any GCC internal prototype to avoid an error. |
| 25457 | Use char because int might match the return type of a GCC |
| 25458 | builtin and then its argument prototype would still apply. |
| 25459 | The 'extern "C"' is for builds by C++ compilers; |
| 25460 | although this is not generally supported in C code supporting it here |
| 25461 | has little cost and some practical benefit (sr 110532). */ |
| 25462 | #ifdef __cplusplus |
| 25463 | extern "C" |
| 25464 | #endif |
| 25465 | char connect (void); |
| 25466 | int |
| 25467 | main (void) |
| 25468 | { |
| 25469 | return connect (); |
| 25470 | ; |
| 25471 | return 0; |
| 25472 | } |
| 25473 | _ACEOF |
| 25474 | if ac_fn_c_try_link "$LINENO" |
| 25475 | then : |
| 25476 | ac_cv_lib_socket_connect=yes |
| 25477 | else case e in #( |
| 25478 | e) ac_cv_lib_socket_connect=no ;; |
| 25479 | esac |
| 25480 | fi |
| 25481 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25482 | conftest$ac_exeext conftest.$ac_ext |
| 25483 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25484 | esac |
| 25485 | fi |
| 25486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| 25487 | printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
| 25488 | if test "x$ac_cv_lib_socket_connect" = xyes |
| 25489 | then : |
| 25490 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 25491 | fi |
| 25492 | |
| 25493 | fi |
| 25494 | |
| 25495 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 25496 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 25497 | if test "x$ac_cv_func_remove" = xyes |
| 25498 | then : |
| 25499 | |
| 25500 | fi |
| 25501 | |
| 25502 | if test $ac_cv_func_remove = no; then |
| 25503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| 25504 | printf %s "checking for remove in -lposix... " >&6; } |
| 25505 | if test ${ac_cv_lib_posix_remove+y} |
| 25506 | then : |
| 25507 | printf %s "(cached) " >&6 |
| 25508 | else case e in #( |
| 25509 | e) ac_check_lib_save_LIBS=$LIBS |
| 25510 | LIBS="-lposix $LIBS" |
| 25511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25512 | /* end confdefs.h. */ |
| 25513 | |
| 25514 | /* Override any GCC internal prototype to avoid an error. |
| 25515 | Use char because int might match the return type of a GCC |
| 25516 | builtin and then its argument prototype would still apply. |
| 25517 | The 'extern "C"' is for builds by C++ compilers; |
| 25518 | although this is not generally supported in C code supporting it here |
| 25519 | has little cost and some practical benefit (sr 110532). */ |
| 25520 | #ifdef __cplusplus |
| 25521 | extern "C" |
| 25522 | #endif |
| 25523 | char remove (void); |
| 25524 | int |
| 25525 | main (void) |
| 25526 | { |
| 25527 | return remove (); |
| 25528 | ; |
| 25529 | return 0; |
| 25530 | } |
| 25531 | _ACEOF |
| 25532 | if ac_fn_c_try_link "$LINENO" |
| 25533 | then : |
| 25534 | ac_cv_lib_posix_remove=yes |
| 25535 | else case e in #( |
| 25536 | e) ac_cv_lib_posix_remove=no ;; |
| 25537 | esac |
| 25538 | fi |
| 25539 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25540 | conftest$ac_exeext conftest.$ac_ext |
| 25541 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25542 | esac |
| 25543 | fi |
| 25544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| 25545 | printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
| 25546 | if test "x$ac_cv_lib_posix_remove" = xyes |
| 25547 | then : |
| 25548 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 25549 | fi |
| 25550 | |
| 25551 | fi |
| 25552 | |
| 25553 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 25554 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 25555 | if test "x$ac_cv_func_shmat" = xyes |
| 25556 | then : |
| 25557 | |
| 25558 | fi |
| 25559 | |
| 25560 | if test $ac_cv_func_shmat = no; then |
| 25561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| 25562 | printf %s "checking for shmat in -lipc... " >&6; } |
| 25563 | if test ${ac_cv_lib_ipc_shmat+y} |
| 25564 | then : |
| 25565 | printf %s "(cached) " >&6 |
| 25566 | else case e in #( |
| 25567 | e) ac_check_lib_save_LIBS=$LIBS |
| 25568 | LIBS="-lipc $LIBS" |
| 25569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25570 | /* end confdefs.h. */ |
| 25571 | |
| 25572 | /* Override any GCC internal prototype to avoid an error. |
| 25573 | Use char because int might match the return type of a GCC |
| 25574 | builtin and then its argument prototype would still apply. |
| 25575 | The 'extern "C"' is for builds by C++ compilers; |
| 25576 | although this is not generally supported in C code supporting it here |
| 25577 | has little cost and some practical benefit (sr 110532). */ |
| 25578 | #ifdef __cplusplus |
| 25579 | extern "C" |
| 25580 | #endif |
| 25581 | char shmat (void); |
| 25582 | int |
| 25583 | main (void) |
| 25584 | { |
| 25585 | return shmat (); |
| 25586 | ; |
| 25587 | return 0; |
| 25588 | } |
| 25589 | _ACEOF |
| 25590 | if ac_fn_c_try_link "$LINENO" |
| 25591 | then : |
| 25592 | ac_cv_lib_ipc_shmat=yes |
| 25593 | else case e in #( |
| 25594 | e) ac_cv_lib_ipc_shmat=no ;; |
| 25595 | esac |
| 25596 | fi |
| 25597 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25598 | conftest$ac_exeext conftest.$ac_ext |
| 25599 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25600 | esac |
| 25601 | fi |
| 25602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| 25603 | printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
| 25604 | if test "x$ac_cv_lib_ipc_shmat" = xyes |
| 25605 | then : |
| 25606 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 25607 | fi |
| 25608 | |
| 25609 | fi |
| 25610 | fi |
| 25611 | |
| 25612 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 25613 | ac_save_LDFLAGS=$LDFLAGS |
| 25614 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 25615 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 25616 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 25617 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 25618 | # These have to be linked with before -lX11, unlike the other |
| 25619 | # libraries we check for below, so use a different variable. |
| 25620 | # John Interrante, Karl Berry |
| 25621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| 25622 | printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
| 25623 | if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
| 25624 | then : |
| 25625 | printf %s "(cached) " >&6 |
| 25626 | else case e in #( |
| 25627 | e) ac_check_lib_save_LIBS=$LIBS |
| 25628 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 25629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25630 | /* end confdefs.h. */ |
| 25631 | |
| 25632 | /* Override any GCC internal prototype to avoid an error. |
| 25633 | Use char because int might match the return type of a GCC |
| 25634 | builtin and then its argument prototype would still apply. |
| 25635 | The 'extern "C"' is for builds by C++ compilers; |
| 25636 | although this is not generally supported in C code supporting it here |
| 25637 | has little cost and some practical benefit (sr 110532). */ |
| 25638 | #ifdef __cplusplus |
| 25639 | extern "C" |
| 25640 | #endif |
| 25641 | char IceConnectionNumber (void); |
| 25642 | int |
| 25643 | main (void) |
| 25644 | { |
| 25645 | return IceConnectionNumber (); |
| 25646 | ; |
| 25647 | return 0; |
| 25648 | } |
| 25649 | _ACEOF |
| 25650 | if ac_fn_c_try_link "$LINENO" |
| 25651 | then : |
| 25652 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 25653 | else case e in #( |
| 25654 | e) ac_cv_lib_ICE_IceConnectionNumber=no ;; |
| 25655 | esac |
| 25656 | fi |
| 25657 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25658 | conftest$ac_exeext conftest.$ac_ext |
| 25659 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25660 | esac |
| 25661 | fi |
| 25662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 25663 | printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 25664 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
| 25665 | then : |
| 25666 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 25667 | fi |
| 25668 | |
| 25669 | LDFLAGS=$ac_save_LDFLAGS |
| 25670 | |
| 25671 | fi |
| 25672 | |
| 25673 | if test "x$with_x" = xyes; then |
| 25674 | if test "x$no_x" = xyes; then |
| 25675 | as_fn_error $? "Sorry, could not find X include and library files required for Metafont." "$LINENO" 5 |
| 25676 | fi |
| 25677 | test -n "$x_libraries" && XLFLAG="-L$x_libraries" |
| 25678 | wlibs="$XLFLAG -lX11" |
| 25679 | if test -z "$x_ext_lib"; then # allow envvar override |
| 25680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XextCreateExtension in -lXext" >&5 |
| 25681 | printf %s "checking for XextCreateExtension in -lXext... " >&6; } |
| 25682 | if test ${ac_cv_lib_Xext_XextCreateExtension+y} |
| 25683 | then : |
| 25684 | printf %s "(cached) " >&6 |
| 25685 | else case e in #( |
| 25686 | e) ac_check_lib_save_LIBS=$LIBS |
| 25687 | LIBS="-lXext $wlibs $X_EXTRA_LIBS $LIBS" |
| 25688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25689 | /* end confdefs.h. */ |
| 25690 | |
| 25691 | /* Override any GCC internal prototype to avoid an error. |
| 25692 | Use char because int might match the return type of a GCC |
| 25693 | builtin and then its argument prototype would still apply. |
| 25694 | The 'extern "C"' is for builds by C++ compilers; |
| 25695 | although this is not generally supported in C code supporting it here |
| 25696 | has little cost and some practical benefit (sr 110532). */ |
| 25697 | #ifdef __cplusplus |
| 25698 | extern "C" |
| 25699 | #endif |
| 25700 | char XextCreateExtension (void); |
| 25701 | int |
| 25702 | main (void) |
| 25703 | { |
| 25704 | return XextCreateExtension (); |
| 25705 | ; |
| 25706 | return 0; |
| 25707 | } |
| 25708 | _ACEOF |
| 25709 | if ac_fn_c_try_link "$LINENO" |
| 25710 | then : |
| 25711 | ac_cv_lib_Xext_XextCreateExtension=yes |
| 25712 | else case e in #( |
| 25713 | e) ac_cv_lib_Xext_XextCreateExtension=no ;; |
| 25714 | esac |
| 25715 | fi |
| 25716 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25717 | conftest$ac_exeext conftest.$ac_ext |
| 25718 | LIBS=$ac_check_lib_save_LIBS ;; |
| 25719 | esac |
| 25720 | fi |
| 25721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 |
| 25722 | printf "%s\n" "$ac_cv_lib_Xext_XextCreateExtension" >&6; } |
| 25723 | if test "x$ac_cv_lib_Xext_XextCreateExtension" = xyes |
| 25724 | then : |
| 25725 | x_ext_lib=-lXext |
| 25726 | fi |
| 25727 | |
| 25728 | fi |
| 25729 | test "x$with_mf_x_toolkit" = xyes && x_tool_libs="-lXt" |
| 25730 | |
| 25731 | printf "%s\n" "#define X11WIN 1" >>confdefs.h |
| 25732 | |
| 25733 | fi # have X |
| 25734 | if test "x$with_mf_x_toolkit" = xyes; then |
| 25735 | MFXT_TRUE= |
| 25736 | MFXT_FALSE='#' |
| 25737 | else |
| 25738 | MFXT_TRUE='#' |
| 25739 | MFXT_FALSE= |
| 25740 | fi |
| 25741 | |
| 25742 | |
| 25743 | |
| 25744 | |
| 25745 | |
| 25746 | if test "x$enable_epsfwin" = xyes |
| 25747 | then : |
| 25748 | |
| 25749 | printf "%s\n" "#define EPSFWIN /**/" >>confdefs.h |
| 25750 | |
| 25751 | fi |
| 25752 | if test "x$enable_hp2627win" = xyes |
| 25753 | then : |
| 25754 | |
| 25755 | printf "%s\n" "#define HP2627WIN /**/" >>confdefs.h |
| 25756 | |
| 25757 | fi |
| 25758 | if test "x$enable_mftalkwin" = xyes |
| 25759 | then : |
| 25760 | |
| 25761 | printf "%s\n" "#define MFTALKWIN /**/" >>confdefs.h |
| 25762 | |
| 25763 | fi |
| 25764 | if test "x$enable_nextwin" = xyes |
| 25765 | then : |
| 25766 | |
| 25767 | printf "%s\n" "#define NEXTWIN /**/" >>confdefs.h |
| 25768 | |
| 25769 | fi |
| 25770 | if test "x$enable_regiswin" = xyes |
| 25771 | then : |
| 25772 | |
| 25773 | printf "%s\n" "#define REGISWIN /**/" >>confdefs.h |
| 25774 | |
| 25775 | fi |
| 25776 | if test "x$enable_suntoolswin" = xyes |
| 25777 | then : |
| 25778 | |
| 25779 | printf "%s\n" "#define SUNWIN /**/" >>confdefs.h |
| 25780 | |
| 25781 | fi |
| 25782 | if test "x$enable_tektronixwin" = xyes |
| 25783 | then : |
| 25784 | |
| 25785 | printf "%s\n" "#define TEKTRONIXWIN /**/" >>confdefs.h |
| 25786 | |
| 25787 | fi |
| 25788 | if test "x$enable_unitermwin" = xyes |
| 25789 | then : |
| 25790 | |
| 25791 | printf "%s\n" "#define UNITERMWIN /**/" >>confdefs.h |
| 25792 | |
| 25793 | fi |
| 25794 | |
| 25795 | if test "x$enable_web_progs" != xno; then |
| 25796 | WEB_TRUE= |
| 25797 | WEB_FALSE='#' |
| 25798 | else |
| 25799 | WEB_TRUE='#' |
| 25800 | WEB_FALSE= |
| 25801 | fi |
| 25802 | |
| 25803 | |
| 25804 | if test "x$enable_eptex" = xno:no |
| 25805 | then : |
| 25806 | enable_pweb_progs=no |
| 25807 | else case e in #( |
| 25808 | e) enable_pweb_progs=$enable_web_progs ;; |
| 25809 | esac |
| 25810 | fi |
| 25811 | if test "x$enable_pweb_progs" != xno; then |
| 25812 | PWEB_TRUE= |
| 25813 | PWEB_FALSE='#' |
| 25814 | else |
| 25815 | PWEB_TRUE='#' |
| 25816 | PWEB_FALSE= |
| 25817 | fi |
| 25818 | |
| 25819 | |
| 25820 | if test "x$enable_euptex" = xno:no |
| 25821 | then : |
| 25822 | enable_upweb_progs=no |
| 25823 | else case e in #( |
| 25824 | e) enable_upweb_progs=$enable_web_progs ;; |
| 25825 | esac |
| 25826 | fi |
| 25827 | if test "x$enable_upweb_progs" != xno; then |
| 25828 | UPWEB_TRUE= |
| 25829 | UPWEB_FALSE='#' |
| 25830 | else |
| 25831 | UPWEB_TRUE='#' |
| 25832 | UPWEB_FALSE= |
| 25833 | fi |
| 25834 | |
| 25835 | |
| 25836 | for ac_prog in 'bison -y' byacc |
| 25837 | do |
| 25838 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25839 | set dummy $ac_prog; ac_word=$2 |
| 25840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25841 | printf %s "checking for $ac_word... " >&6; } |
| 25842 | if test ${ac_cv_prog_YACC+y} |
| 25843 | then : |
| 25844 | printf %s "(cached) " >&6 |
| 25845 | else case e in #( |
| 25846 | e) if test -n "$YACC"; then |
| 25847 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 25848 | else |
| 25849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25850 | for as_dir in $PATH |
| 25851 | do |
| 25852 | IFS=$as_save_IFS |
| 25853 | case $as_dir in #((( |
| 25854 | '') as_dir=./ ;; |
| 25855 | */) ;; |
| 25856 | *) as_dir=$as_dir/ ;; |
| 25857 | esac |
| 25858 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25859 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 25860 | ac_cv_prog_YACC="$ac_prog" |
| 25861 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 25862 | break 2 |
| 25863 | fi |
| 25864 | done |
| 25865 | done |
| 25866 | IFS=$as_save_IFS |
| 25867 | |
| 25868 | fi ;; |
| 25869 | esac |
| 25870 | fi |
| 25871 | YACC=$ac_cv_prog_YACC |
| 25872 | if test -n "$YACC"; then |
| 25873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
| 25874 | printf "%s\n" "$YACC" >&6; } |
| 25875 | else |
| 25876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25877 | printf "%s\n" "no" >&6; } |
| 25878 | fi |
| 25879 | |
| 25880 | |
| 25881 | test -n "$YACC" && break |
| 25882 | done |
| 25883 | test -n "$YACC" || YACC="yacc" |
| 25884 | |
| 25885 | for ac_prog in flex lex |
| 25886 | do |
| 25887 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25888 | set dummy $ac_prog; ac_word=$2 |
| 25889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25890 | printf %s "checking for $ac_word... " >&6; } |
| 25891 | if test ${ac_cv_prog_LEX+y} |
| 25892 | then : |
| 25893 | printf %s "(cached) " >&6 |
| 25894 | else case e in #( |
| 25895 | e) if test -n "$LEX"; then |
| 25896 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 25897 | else |
| 25898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25899 | for as_dir in $PATH |
| 25900 | do |
| 25901 | IFS=$as_save_IFS |
| 25902 | case $as_dir in #((( |
| 25903 | '') as_dir=./ ;; |
| 25904 | */) ;; |
| 25905 | *) as_dir=$as_dir/ ;; |
| 25906 | esac |
| 25907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25908 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 25909 | ac_cv_prog_LEX="$ac_prog" |
| 25910 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 25911 | break 2 |
| 25912 | fi |
| 25913 | done |
| 25914 | done |
| 25915 | IFS=$as_save_IFS |
| 25916 | |
| 25917 | fi ;; |
| 25918 | esac |
| 25919 | fi |
| 25920 | LEX=$ac_cv_prog_LEX |
| 25921 | if test -n "$LEX"; then |
| 25922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
| 25923 | printf "%s\n" "$LEX" >&6; } |
| 25924 | else |
| 25925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25926 | printf "%s\n" "no" >&6; } |
| 25927 | fi |
| 25928 | |
| 25929 | |
| 25930 | test -n "$LEX" && break |
| 25931 | done |
| 25932 | test -n "$LEX" || LEX=":" |
| 25933 | |
| 25934 | if test "x$LEX" != "x:"; then |
| 25935 | cat >conftest.l <<_ACEOF |
| 25936 | %{ |
| 25937 | #ifdef __cplusplus |
| 25938 | extern "C" |
| 25939 | #endif |
| 25940 | int yywrap(void); |
| 25941 | %} |
| 25942 | %% |
| 25943 | a { ECHO; } |
| 25944 | b { REJECT; } |
| 25945 | c { yymore (); } |
| 25946 | d { yyless (1); } |
| 25947 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
| 25948 | #ifdef __cplusplus |
| 25949 | yyless ((yyinput () != 0)); |
| 25950 | #else |
| 25951 | yyless ((input () != 0)); |
| 25952 | #endif |
| 25953 | } |
| 25954 | f { unput (yytext[0]); } |
| 25955 | . { BEGIN INITIAL; } |
| 25956 | %% |
| 25957 | #ifdef YYTEXT_POINTER |
| 25958 | extern char *yytext; |
| 25959 | #endif |
| 25960 | int |
| 25961 | yywrap (void) |
| 25962 | { |
| 25963 | return 1; |
| 25964 | } |
| 25965 | int |
| 25966 | main (void) |
| 25967 | { |
| 25968 | return ! yylex (); |
| 25969 | } |
| 25970 | _ACEOF |
| 25971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 |
| 25972 | printf %s "checking for lex output file root... " >&6; } |
| 25973 | if test ${ac_cv_prog_lex_root+y} |
| 25974 | then : |
| 25975 | printf %s "(cached) " >&6 |
| 25976 | else case e in #( |
| 25977 | e) |
| 25978 | ac_cv_prog_lex_root=unknown |
| 25979 | { { ac_try="$LEX conftest.l" |
| 25980 | case "(($ac_try" in |
| 25981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25982 | *) ac_try_echo=$ac_try;; |
| 25983 | esac |
| 25984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 25985 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 25986 | (eval "$LEX conftest.l") 2>&5 |
| 25987 | ac_status=$? |
| 25988 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25989 | test $ac_status = 0; } && |
| 25990 | if test -f lex.yy.c; then |
| 25991 | ac_cv_prog_lex_root=lex.yy |
| 25992 | elif test -f lexyy.c; then |
| 25993 | ac_cv_prog_lex_root=lexyy |
| 25994 | fi ;; |
| 25995 | esac |
| 25996 | fi |
| 25997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
| 25998 | printf "%s\n" "$ac_cv_prog_lex_root" >&6; } |
| 25999 | if test "$ac_cv_prog_lex_root" = unknown |
| 26000 | then : |
| 26001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 |
| 26002 | printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} |
| 26003 | LEX=: LEXLIB= |
| 26004 | fi |
| 26005 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 26006 | |
| 26007 | if test ${LEXLIB+y} |
| 26008 | then : |
| 26009 | |
| 26010 | else case e in #( |
| 26011 | e) |
| 26012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 |
| 26013 | printf %s "checking for lex library... " >&6; } |
| 26014 | if test ${ac_cv_lib_lex+y} |
| 26015 | then : |
| 26016 | printf %s "(cached) " >&6 |
| 26017 | else case e in #( |
| 26018 | e) |
| 26019 | ac_save_LIBS="$LIBS" |
| 26020 | ac_found=false |
| 26021 | for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do |
| 26022 | case $ac_cv_lib_lex in #( |
| 26023 | 'none needed') : |
| 26024 | ;; #( |
| 26025 | 'not found') : |
| 26026 | break ;; #( |
| 26027 | *) : |
| 26028 | LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( |
| 26029 | *) : |
| 26030 | ;; |
| 26031 | esac |
| 26032 | |
| 26033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26034 | /* end confdefs.h. */ |
| 26035 | `cat $LEX_OUTPUT_ROOT.c` |
| 26036 | _ACEOF |
| 26037 | if ac_fn_c_try_link "$LINENO" |
| 26038 | then : |
| 26039 | ac_found=: |
| 26040 | fi |
| 26041 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26042 | conftest$ac_exeext conftest.$ac_ext |
| 26043 | if $ac_found; then |
| 26044 | break |
| 26045 | fi |
| 26046 | done |
| 26047 | LIBS="$ac_save_LIBS" |
| 26048 | ;; |
| 26049 | esac |
| 26050 | fi |
| 26051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
| 26052 | printf "%s\n" "$ac_cv_lib_lex" >&6; } |
| 26053 | if test "$ac_cv_lib_lex" = 'not found' |
| 26054 | then : |
| 26055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 |
| 26056 | printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} |
| 26057 | LEX=: LEXLIB= |
| 26058 | elif test "$ac_cv_lib_lex" = 'none needed' |
| 26059 | then : |
| 26060 | LEXLIB='' |
| 26061 | else case e in #( |
| 26062 | e) LEXLIB=$ac_cv_lib_lex ;; |
| 26063 | esac |
| 26064 | fi |
| 26065 | ac_save_LIBS="$LIBS" |
| 26066 | LIBS= |
| 26067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 |
| 26068 | printf %s "checking for library containing yywrap... " >&6; } |
| 26069 | if test ${ac_cv_search_yywrap+y} |
| 26070 | then : |
| 26071 | printf %s "(cached) " >&6 |
| 26072 | else case e in #( |
| 26073 | e) ac_func_search_save_LIBS=$LIBS |
| 26074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26075 | /* end confdefs.h. */ |
| 26076 | |
| 26077 | /* Override any GCC internal prototype to avoid an error. |
| 26078 | Use char because int might match the return type of a GCC |
| 26079 | builtin and then its argument prototype would still apply. |
| 26080 | The 'extern "C"' is for builds by C++ compilers; |
| 26081 | although this is not generally supported in C code supporting it here |
| 26082 | has little cost and some practical benefit (sr 110532). */ |
| 26083 | #ifdef __cplusplus |
| 26084 | extern "C" |
| 26085 | #endif |
| 26086 | char yywrap (void); |
| 26087 | int |
| 26088 | main (void) |
| 26089 | { |
| 26090 | return yywrap (); |
| 26091 | ; |
| 26092 | return 0; |
| 26093 | } |
| 26094 | _ACEOF |
| 26095 | for ac_lib in '' fl l |
| 26096 | do |
| 26097 | if test -z "$ac_lib"; then |
| 26098 | ac_res="none required" |
| 26099 | else |
| 26100 | ac_res=-l$ac_lib |
| 26101 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 26102 | fi |
| 26103 | if ac_fn_c_try_link "$LINENO" |
| 26104 | then : |
| 26105 | ac_cv_search_yywrap=$ac_res |
| 26106 | fi |
| 26107 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26108 | conftest$ac_exeext |
| 26109 | if test ${ac_cv_search_yywrap+y} |
| 26110 | then : |
| 26111 | break |
| 26112 | fi |
| 26113 | done |
| 26114 | if test ${ac_cv_search_yywrap+y} |
| 26115 | then : |
| 26116 | |
| 26117 | else case e in #( |
| 26118 | e) ac_cv_search_yywrap=no ;; |
| 26119 | esac |
| 26120 | fi |
| 26121 | rm conftest.$ac_ext |
| 26122 | LIBS=$ac_func_search_save_LIBS ;; |
| 26123 | esac |
| 26124 | fi |
| 26125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 |
| 26126 | printf "%s\n" "$ac_cv_search_yywrap" >&6; } |
| 26127 | ac_res=$ac_cv_search_yywrap |
| 26128 | if test "$ac_res" != no |
| 26129 | then : |
| 26130 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 26131 | LEXLIB="$LIBS" |
| 26132 | fi |
| 26133 | |
| 26134 | LIBS="$ac_save_LIBS" ;; |
| 26135 | esac |
| 26136 | fi |
| 26137 | |
| 26138 | |
| 26139 | if test "$LEX" != : |
| 26140 | then : |
| 26141 | |
| 26142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
| 26143 | printf %s "checking whether yytext is a pointer... " >&6; } |
| 26144 | if test ${ac_cv_prog_lex_yytext_pointer+y} |
| 26145 | then : |
| 26146 | printf %s "(cached) " >&6 |
| 26147 | else case e in #( |
| 26148 | e) # POSIX says lex can declare yytext either as a pointer or an array; the |
| 26149 | # default is implementation-dependent. Figure out which it is, since |
| 26150 | # not all implementations provide the %pointer and %array declarations. |
| 26151 | ac_cv_prog_lex_yytext_pointer=no |
| 26152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26153 | /* end confdefs.h. */ |
| 26154 | |
| 26155 | #define YYTEXT_POINTER 1 |
| 26156 | `cat $LEX_OUTPUT_ROOT.c` |
| 26157 | _ACEOF |
| 26158 | if ac_fn_c_try_compile "$LINENO" |
| 26159 | then : |
| 26160 | ac_cv_prog_lex_yytext_pointer=yes |
| 26161 | fi |
| 26162 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26163 | ;; |
| 26164 | esac |
| 26165 | fi |
| 26166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 26167 | printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 26168 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 26169 | |
| 26170 | printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h |
| 26171 | |
| 26172 | fi |
| 26173 | |
| 26174 | fi |
| 26175 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
| 26176 | |
| 26177 | fi |
| 26178 | # Work around a problem with Flex Version 2.5.31 which needs -l flag. |
| 26179 | # Since all recent versions of flex support -l, don't check for the |
| 26180 | # specific version, but check that at least "--version" is supported. |
| 26181 | # We also want to catch LEX=/some/where/flex, so: |
| 26182 | case $LEX in |
| 26183 | *flex) $LEX --version >/dev/null 2>&1 && LEX="$LEX -l" ;; |
| 26184 | esac |
| 26185 | |
| 26186 | |
| 26187 | # Needed on A/UX 3.0. I don't want to pull in other -lposix's, though. |
| 26188 | # From: [email protected] (Bernt Guldbrandtsen) |
| 26189 | if test `(uname) 2>/dev/null` = aux; then |
| 26190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigemptyset in -lposix" >&5 |
| 26191 | printf %s "checking for sigemptyset in -lposix... " >&6; } |
| 26192 | if test ${ac_cv_lib_posix_sigemptyset+y} |
| 26193 | then : |
| 26194 | printf %s "(cached) " >&6 |
| 26195 | else case e in #( |
| 26196 | e) ac_check_lib_save_LIBS=$LIBS |
| 26197 | LIBS="-lposix $LIBS" |
| 26198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26199 | /* end confdefs.h. */ |
| 26200 | |
| 26201 | /* Override any GCC internal prototype to avoid an error. |
| 26202 | Use char because int might match the return type of a GCC |
| 26203 | builtin and then its argument prototype would still apply. |
| 26204 | The 'extern "C"' is for builds by C++ compilers; |
| 26205 | although this is not generally supported in C code supporting it here |
| 26206 | has little cost and some practical benefit (sr 110532). */ |
| 26207 | #ifdef __cplusplus |
| 26208 | extern "C" |
| 26209 | #endif |
| 26210 | char sigemptyset (void); |
| 26211 | int |
| 26212 | main (void) |
| 26213 | { |
| 26214 | return sigemptyset (); |
| 26215 | ; |
| 26216 | return 0; |
| 26217 | } |
| 26218 | _ACEOF |
| 26219 | if ac_fn_c_try_link "$LINENO" |
| 26220 | then : |
| 26221 | ac_cv_lib_posix_sigemptyset=yes |
| 26222 | else case e in #( |
| 26223 | e) ac_cv_lib_posix_sigemptyset=no ;; |
| 26224 | esac |
| 26225 | fi |
| 26226 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26227 | conftest$ac_exeext conftest.$ac_ext |
| 26228 | LIBS=$ac_check_lib_save_LIBS ;; |
| 26229 | esac |
| 26230 | fi |
| 26231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_sigemptyset" >&5 |
| 26232 | printf "%s\n" "$ac_cv_lib_posix_sigemptyset" >&6; } |
| 26233 | if test "x$ac_cv_lib_posix_sigemptyset" = xyes |
| 26234 | then : |
| 26235 | printf "%s\n" "#define HAVE_LIBPOSIX 1" >>confdefs.h |
| 26236 | |
| 26237 | LIBS="-lposix $LIBS" |
| 26238 | |
| 26239 | fi |
| 26240 | |
| 26241 | fi |
| 26242 | |
| 26243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 26244 | printf %s "checking whether char is unsigned... " >&6; } |
| 26245 | if test ${ac_cv_c_char_unsigned+y} |
| 26246 | then : |
| 26247 | printf %s "(cached) " >&6 |
| 26248 | else case e in #( |
| 26249 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26250 | /* end confdefs.h. */ |
| 26251 | $ac_includes_default |
| 26252 | int |
| 26253 | main (void) |
| 26254 | { |
| 26255 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 26256 | test_array [0] = 0; |
| 26257 | return test_array [0]; |
| 26258 | |
| 26259 | ; |
| 26260 | return 0; |
| 26261 | } |
| 26262 | _ACEOF |
| 26263 | if ac_fn_c_try_compile "$LINENO" |
| 26264 | then : |
| 26265 | ac_cv_c_char_unsigned=no |
| 26266 | else case e in #( |
| 26267 | e) ac_cv_c_char_unsigned=yes ;; |
| 26268 | esac |
| 26269 | fi |
| 26270 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 26271 | esac |
| 26272 | fi |
| 26273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 26274 | printf "%s\n" "$ac_cv_c_char_unsigned" >&6; } |
| 26275 | if test $ac_cv_c_char_unsigned = yes; then |
| 26276 | printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| 26277 | |
| 26278 | fi |
| 26279 | |
| 26280 | # The cast to long int works around a bug in the HP C Compiler |
| 26281 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 26282 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 26283 | # This bug is HP SR number 8606223364. |
| 26284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 26285 | printf %s "checking size of int... " >&6; } |
| 26286 | if test ${ac_cv_sizeof_int+y} |
| 26287 | then : |
| 26288 | printf %s "(cached) " >&6 |
| 26289 | else case e in #( |
| 26290 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 26291 | then : |
| 26292 | |
| 26293 | else case e in #( |
| 26294 | e) if test "$ac_cv_type_int" = yes; then |
| 26295 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 26296 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 26297 | as_fn_error 77 "cannot compute sizeof (int) |
| 26298 | See 'config.log' for more details" "$LINENO" 5; } |
| 26299 | else |
| 26300 | ac_cv_sizeof_int=0 |
| 26301 | fi ;; |
| 26302 | esac |
| 26303 | fi |
| 26304 | ;; |
| 26305 | esac |
| 26306 | fi |
| 26307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 26308 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
| 26309 | |
| 26310 | |
| 26311 | |
| 26312 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 26313 | |
| 26314 | |
| 26315 | if test $ac_cv_sizeof_int -lt 4; then |
| 26316 | as_fn_error $? "Sorry, need \`int' with at least 4 bytes." "$LINENO" 5 |
| 26317 | fi |
| 26318 | # The cast to long int works around a bug in the HP C Compiler |
| 26319 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 26320 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 26321 | # This bug is HP SR number 8606223364. |
| 26322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 26323 | printf %s "checking size of long... " >&6; } |
| 26324 | if test ${ac_cv_sizeof_long+y} |
| 26325 | then : |
| 26326 | printf %s "(cached) " >&6 |
| 26327 | else case e in #( |
| 26328 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 26329 | then : |
| 26330 | |
| 26331 | else case e in #( |
| 26332 | e) if test "$ac_cv_type_long" = yes; then |
| 26333 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 26334 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 26335 | as_fn_error 77 "cannot compute sizeof (long) |
| 26336 | See 'config.log' for more details" "$LINENO" 5; } |
| 26337 | else |
| 26338 | ac_cv_sizeof_long=0 |
| 26339 | fi ;; |
| 26340 | esac |
| 26341 | fi |
| 26342 | ;; |
| 26343 | esac |
| 26344 | fi |
| 26345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 26346 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
| 26347 | |
| 26348 | |
| 26349 | |
| 26350 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 26351 | |
| 26352 | |
| 26353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 |
| 26354 | printf %s "checking for library containing pow... " >&6; } |
| 26355 | if test ${ac_cv_search_pow+y} |
| 26356 | then : |
| 26357 | printf %s "(cached) " >&6 |
| 26358 | else case e in #( |
| 26359 | e) ac_func_search_save_LIBS=$LIBS |
| 26360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26361 | /* end confdefs.h. */ |
| 26362 | |
| 26363 | /* Override any GCC internal prototype to avoid an error. |
| 26364 | Use char because int might match the return type of a GCC |
| 26365 | builtin and then its argument prototype would still apply. |
| 26366 | The 'extern "C"' is for builds by C++ compilers; |
| 26367 | although this is not generally supported in C code supporting it here |
| 26368 | has little cost and some practical benefit (sr 110532). */ |
| 26369 | #ifdef __cplusplus |
| 26370 | extern "C" |
| 26371 | #endif |
| 26372 | char pow (void); |
| 26373 | int |
| 26374 | main (void) |
| 26375 | { |
| 26376 | return pow (); |
| 26377 | ; |
| 26378 | return 0; |
| 26379 | } |
| 26380 | _ACEOF |
| 26381 | for ac_lib in '' m |
| 26382 | do |
| 26383 | if test -z "$ac_lib"; then |
| 26384 | ac_res="none required" |
| 26385 | else |
| 26386 | ac_res=-l$ac_lib |
| 26387 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 26388 | fi |
| 26389 | if ac_fn_c_try_link "$LINENO" |
| 26390 | then : |
| 26391 | ac_cv_search_pow=$ac_res |
| 26392 | fi |
| 26393 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26394 | conftest$ac_exeext |
| 26395 | if test ${ac_cv_search_pow+y} |
| 26396 | then : |
| 26397 | break |
| 26398 | fi |
| 26399 | done |
| 26400 | if test ${ac_cv_search_pow+y} |
| 26401 | then : |
| 26402 | |
| 26403 | else case e in #( |
| 26404 | e) ac_cv_search_pow=no ;; |
| 26405 | esac |
| 26406 | fi |
| 26407 | rm conftest.$ac_ext |
| 26408 | LIBS=$ac_func_search_save_LIBS ;; |
| 26409 | esac |
| 26410 | fi |
| 26411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 |
| 26412 | printf "%s\n" "$ac_cv_search_pow" >&6; } |
| 26413 | ac_res=$ac_cv_search_pow |
| 26414 | if test "$ac_res" != no |
| 26415 | then : |
| 26416 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 26417 | |
| 26418 | fi |
| 26419 | |
| 26420 | ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access" |
| 26421 | if test "x$ac_cv_func_access" = xyes |
| 26422 | then : |
| 26423 | printf "%s\n" "#define HAVE_ACCESS 1" >>confdefs.h |
| 26424 | |
| 26425 | fi |
| 26426 | ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi" |
| 26427 | if test "x$ac_cv_func_atoi" = xyes |
| 26428 | then : |
| 26429 | printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h |
| 26430 | |
| 26431 | fi |
| 26432 | ac_fn_c_check_func "$LINENO" "fmax" "ac_cv_func_fmax" |
| 26433 | if test "x$ac_cv_func_fmax" = xyes |
| 26434 | then : |
| 26435 | printf "%s\n" "#define HAVE_FMAX 1" >>confdefs.h |
| 26436 | |
| 26437 | fi |
| 26438 | ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" |
| 26439 | if test "x$ac_cv_func_ftime" = xyes |
| 26440 | then : |
| 26441 | printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h |
| 26442 | |
| 26443 | fi |
| 26444 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 26445 | if test "x$ac_cv_func_gettimeofday" = xyes |
| 26446 | then : |
| 26447 | printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 26448 | |
| 26449 | fi |
| 26450 | ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs" |
| 26451 | if test "x$ac_cv_func_fabs" = xyes |
| 26452 | then : |
| 26453 | printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h |
| 26454 | |
| 26455 | fi |
| 26456 | ac_fn_c_check_func "$LINENO" "labs" "ac_cv_func_labs" |
| 26457 | if test "x$ac_cv_func_labs" = xyes |
| 26458 | then : |
| 26459 | printf "%s\n" "#define HAVE_LABS 1" >>confdefs.h |
| 26460 | |
| 26461 | fi |
| 26462 | ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" |
| 26463 | if test "x$ac_cv_func_mkdtemp" = xyes |
| 26464 | then : |
| 26465 | printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h |
| 26466 | |
| 26467 | fi |
| 26468 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
| 26469 | if test "x$ac_cv_func_setlocale" = xyes |
| 26470 | then : |
| 26471 | printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h |
| 26472 | |
| 26473 | fi |
| 26474 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 26475 | if test "x$ac_cv_func_strerror" = xyes |
| 26476 | then : |
| 26477 | printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
| 26478 | |
| 26479 | fi |
| 26480 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" |
| 26481 | if test "x$ac_cv_func_strlcat" = xyes |
| 26482 | then : |
| 26483 | printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h |
| 26484 | |
| 26485 | fi |
| 26486 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
| 26487 | if test "x$ac_cv_func_strlcpy" = xyes |
| 26488 | then : |
| 26489 | printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h |
| 26490 | |
| 26491 | fi |
| 26492 | ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" |
| 26493 | if test "x$ac_cv_func_strndup" = xyes |
| 26494 | then : |
| 26495 | printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h |
| 26496 | |
| 26497 | fi |
| 26498 | |
| 26499 | ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 26500 | if test "x$ac_cv_have_decl_strndup" = xyes |
| 26501 | then : |
| 26502 | ac_have_decl=1 |
| 26503 | else case e in #( |
| 26504 | e) ac_have_decl=0 ;; |
| 26505 | esac |
| 26506 | fi |
| 26507 | printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h |
| 26508 | |
| 26509 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 26510 | if test "x$ac_cv_header_errno_h" = xyes |
| 26511 | then : |
| 26512 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
| 26513 | |
| 26514 | fi |
| 26515 | ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 26516 | if test "x$ac_cv_header_langinfo_h" = xyes |
| 26517 | then : |
| 26518 | printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h |
| 26519 | |
| 26520 | fi |
| 26521 | ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
| 26522 | if test "x$ac_cv_header_locale_h" = xyes |
| 26523 | then : |
| 26524 | printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h |
| 26525 | |
| 26526 | fi |
| 26527 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 26528 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 26529 | then : |
| 26530 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 26531 | |
| 26532 | fi |
| 26533 | ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 26534 | if test "x$ac_cv_header_sys_timeb_h" = xyes |
| 26535 | then : |
| 26536 | printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h |
| 26537 | |
| 26538 | fi |
| 26539 | ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" |
| 26540 | if test "x$ac_cv_header_sys_wait_h" = xyes |
| 26541 | then : |
| 26542 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 26543 | |
| 26544 | fi |
| 26545 | ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 26546 | if test "x$ac_cv_header_time_h" = xyes |
| 26547 | then : |
| 26548 | printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
| 26549 | |
| 26550 | fi |
| 26551 | |
| 26552 | # The cast to long int works around a bug in the HP C Compiler |
| 26553 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 26554 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 26555 | # This bug is HP SR number 8606223364. |
| 26556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 26557 | printf %s "checking size of void *... " >&6; } |
| 26558 | if test ${ac_cv_sizeof_void_p+y} |
| 26559 | then : |
| 26560 | printf %s "(cached) " >&6 |
| 26561 | else case e in #( |
| 26562 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" |
| 26563 | then : |
| 26564 | |
| 26565 | else case e in #( |
| 26566 | e) if test "$ac_cv_type_void_p" = yes; then |
| 26567 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 26568 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 26569 | as_fn_error 77 "cannot compute sizeof (void *) |
| 26570 | See 'config.log' for more details" "$LINENO" 5; } |
| 26571 | else |
| 26572 | ac_cv_sizeof_void_p=0 |
| 26573 | fi ;; |
| 26574 | esac |
| 26575 | fi |
| 26576 | ;; |
| 26577 | esac |
| 26578 | fi |
| 26579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 26580 | printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } |
| 26581 | |
| 26582 | |
| 26583 | |
| 26584 | printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h |
| 26585 | |
| 26586 | |
| 26587 | |
| 26588 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 26589 | if test "x$ac_cv_type_uintptr_t" = xyes |
| 26590 | then : |
| 26591 | |
| 26592 | printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h |
| 26593 | |
| 26594 | else case e in #( |
| 26595 | e) for ac_type in 'unsigned int' 'unsigned long int' \ |
| 26596 | 'unsigned long long int'; do |
| 26597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26598 | /* end confdefs.h. */ |
| 26599 | $ac_includes_default |
| 26600 | int |
| 26601 | main (void) |
| 26602 | { |
| 26603 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| 26604 | test_array [0] = 0; |
| 26605 | return test_array [0]; |
| 26606 | |
| 26607 | ; |
| 26608 | return 0; |
| 26609 | } |
| 26610 | _ACEOF |
| 26611 | if ac_fn_c_try_compile "$LINENO" |
| 26612 | then : |
| 26613 | |
| 26614 | printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h |
| 26615 | |
| 26616 | ac_type= |
| 26617 | fi |
| 26618 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26619 | test -z "$ac_type" && break |
| 26620 | done ;; |
| 26621 | esac |
| 26622 | fi |
| 26623 | |
| 26624 | |
| 26625 | |
| 26626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 26627 | printf %s "checking for long double... " >&6; } |
| 26628 | if test ${ac_cv_type_long_double+y} |
| 26629 | then : |
| 26630 | printf %s "(cached) " >&6 |
| 26631 | else case e in #( |
| 26632 | e) if test "$GCC" = yes; then |
| 26633 | ac_cv_type_long_double=yes |
| 26634 | else |
| 26635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26636 | /* end confdefs.h. */ |
| 26637 | /* The Stardent Vistra knows sizeof (long double), but does |
| 26638 | not support it. */ |
| 26639 | long double foo = 0.0L; |
| 26640 | int |
| 26641 | main (void) |
| 26642 | { |
| 26643 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 26644 | sizeof (double) <= sizeof (long double))]; |
| 26645 | test_array [0] = 0; |
| 26646 | return test_array [0]; |
| 26647 | |
| 26648 | ; |
| 26649 | return 0; |
| 26650 | } |
| 26651 | _ACEOF |
| 26652 | if ac_fn_c_try_compile "$LINENO" |
| 26653 | then : |
| 26654 | ac_cv_type_long_double=yes |
| 26655 | else case e in #( |
| 26656 | e) ac_cv_type_long_double=no ;; |
| 26657 | esac |
| 26658 | fi |
| 26659 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26660 | fi ;; |
| 26661 | esac |
| 26662 | fi |
| 26663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 26664 | printf "%s\n" "$ac_cv_type_long_double" >&6; } |
| 26665 | if test $ac_cv_type_long_double = yes; then |
| 26666 | |
| 26667 | printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
| 26668 | |
| 26669 | fi |
| 26670 | |
| 26671 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 26672 | if test "x$ac_cv_type__Bool" = xyes |
| 26673 | then : |
| 26674 | |
| 26675 | printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h |
| 26676 | |
| 26677 | |
| 26678 | fi |
| 26679 | |
| 26680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5 |
| 26681 | printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; } |
| 26682 | if test ${ac_cv_header_stdbool_h+y} |
| 26683 | then : |
| 26684 | printf %s "(cached) " >&6 |
| 26685 | else case e in #( |
| 26686 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26687 | /* end confdefs.h. */ |
| 26688 | #include <stdbool.h> |
| 26689 | |
| 26690 | /* "true" and "false" should be usable in #if expressions and |
| 26691 | integer constant expressions, and "bool" should be a valid |
| 26692 | type name. |
| 26693 | |
| 26694 | Although C99 requires bool, true, and false to be macros, |
| 26695 | C23 and C++11 overrule that, so do not test for that. |
| 26696 | Although C99 requires __bool_true_false_are_defined and |
| 26697 | _Bool, C23 says they are obsolescent, so do not require |
| 26698 | them. */ |
| 26699 | |
| 26700 | #if !true |
| 26701 | #error "'true' is not true" |
| 26702 | #endif |
| 26703 | #if true != 1 |
| 26704 | #error "'true' is not equal to 1" |
| 26705 | #endif |
| 26706 | char b[true == 1 ? 1 : -1]; |
| 26707 | char c[true]; |
| 26708 | |
| 26709 | #if false |
| 26710 | #error "'false' is not false" |
| 26711 | #endif |
| 26712 | #if false != 0 |
| 26713 | #error "'false' is not equal to 0" |
| 26714 | #endif |
| 26715 | char d[false == 0 ? 1 : -1]; |
| 26716 | |
| 26717 | enum { e = false, f = true, g = false * true, h = true * 256 }; |
| 26718 | |
| 26719 | char i[(bool) 0.5 == true ? 1 : -1]; |
| 26720 | char j[(bool) 0.0 == false ? 1 : -1]; |
| 26721 | char k[sizeof (bool) > 0 ? 1 : -1]; |
| 26722 | |
| 26723 | struct sb { bool s: 1; bool t; } s; |
| 26724 | char l[sizeof s.t > 0 ? 1 : -1]; |
| 26725 | |
| 26726 | /* The following fails for |
| 26727 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 26728 | bool m[h]; |
| 26729 | char n[sizeof m == h * sizeof m[0] ? 1 : -1]; |
| 26730 | char o[-1 - (bool) 0 < 0 ? 1 : -1]; |
| 26731 | /* Catch a bug in an HP-UX C compiler. See |
| 26732 | https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 26733 | https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html |
| 26734 | */ |
| 26735 | bool p = true; |
| 26736 | bool *pp = &p; |
| 26737 | |
| 26738 | int |
| 26739 | main (void) |
| 26740 | { |
| 26741 | |
| 26742 | bool ps = &s; |
| 26743 | *pp |= p; |
| 26744 | *pp |= ! p; |
| 26745 | |
| 26746 | /* Refer to every declared value, so they cannot be |
| 26747 | discarded as unused. */ |
| 26748 | return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k |
| 26749 | + !l + !m + !n + !o + !p + !pp + !ps); |
| 26750 | |
| 26751 | ; |
| 26752 | return 0; |
| 26753 | } |
| 26754 | _ACEOF |
| 26755 | if ac_fn_c_try_compile "$LINENO" |
| 26756 | then : |
| 26757 | ac_cv_header_stdbool_h=yes |
| 26758 | else case e in #( |
| 26759 | e) ac_cv_header_stdbool_h=no ;; |
| 26760 | esac |
| 26761 | fi |
| 26762 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 26763 | esac |
| 26764 | fi |
| 26765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 26766 | printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } |
| 26767 | |
| 26768 | if test $ac_cv_header_stdbool_h = yes; then |
| 26769 | |
| 26770 | printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| 26771 | |
| 26772 | fi |
| 26773 | |
| 26774 | |
| 26775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 26776 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 26777 | if test ${ac_cv_c_bigendian+y} |
| 26778 | then : |
| 26779 | printf %s "(cached) " >&6 |
| 26780 | else case e in #( |
| 26781 | e) ac_cv_c_bigendian=unknown |
| 26782 | # See if we're dealing with a universal compiler. |
| 26783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26784 | /* end confdefs.h. */ |
| 26785 | #ifndef __APPLE_CC__ |
| 26786 | not a universal capable compiler |
| 26787 | #endif |
| 26788 | typedef int dummy; |
| 26789 | |
| 26790 | _ACEOF |
| 26791 | if ac_fn_c_try_compile "$LINENO" |
| 26792 | then : |
| 26793 | |
| 26794 | # Check for potential -arch flags. It is not universal unless |
| 26795 | # there are at least two -arch flags with different values. |
| 26796 | ac_arch= |
| 26797 | ac_prev= |
| 26798 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 26799 | if test -n "$ac_prev"; then |
| 26800 | case $ac_word in |
| 26801 | i?86 | x86_64 | ppc | ppc64) |
| 26802 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 26803 | ac_arch=$ac_word |
| 26804 | else |
| 26805 | ac_cv_c_bigendian=universal |
| 26806 | break |
| 26807 | fi |
| 26808 | ;; |
| 26809 | esac |
| 26810 | ac_prev= |
| 26811 | elif test "x$ac_word" = "x-arch"; then |
| 26812 | ac_prev=arch |
| 26813 | fi |
| 26814 | done |
| 26815 | fi |
| 26816 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26817 | if test $ac_cv_c_bigendian = unknown; then |
| 26818 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 26819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26820 | /* end confdefs.h. */ |
| 26821 | #include <sys/types.h> |
| 26822 | #include <sys/param.h> |
| 26823 | |
| 26824 | int |
| 26825 | main (void) |
| 26826 | { |
| 26827 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ |
| 26828 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ |
| 26829 | && LITTLE_ENDIAN) |
| 26830 | bogus endian macros |
| 26831 | #endif |
| 26832 | |
| 26833 | ; |
| 26834 | return 0; |
| 26835 | } |
| 26836 | _ACEOF |
| 26837 | if ac_fn_c_try_compile "$LINENO" |
| 26838 | then : |
| 26839 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 26840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26841 | /* end confdefs.h. */ |
| 26842 | #include <sys/types.h> |
| 26843 | #include <sys/param.h> |
| 26844 | |
| 26845 | int |
| 26846 | main (void) |
| 26847 | { |
| 26848 | #if BYTE_ORDER != BIG_ENDIAN |
| 26849 | not big endian |
| 26850 | #endif |
| 26851 | |
| 26852 | ; |
| 26853 | return 0; |
| 26854 | } |
| 26855 | _ACEOF |
| 26856 | if ac_fn_c_try_compile "$LINENO" |
| 26857 | then : |
| 26858 | ac_cv_c_bigendian=yes |
| 26859 | else case e in #( |
| 26860 | e) ac_cv_c_bigendian=no ;; |
| 26861 | esac |
| 26862 | fi |
| 26863 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26864 | fi |
| 26865 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26866 | fi |
| 26867 | if test $ac_cv_c_bigendian = unknown; then |
| 26868 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 26869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26870 | /* end confdefs.h. */ |
| 26871 | #include <limits.h> |
| 26872 | |
| 26873 | int |
| 26874 | main (void) |
| 26875 | { |
| 26876 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 26877 | bogus endian macros |
| 26878 | #endif |
| 26879 | |
| 26880 | ; |
| 26881 | return 0; |
| 26882 | } |
| 26883 | _ACEOF |
| 26884 | if ac_fn_c_try_compile "$LINENO" |
| 26885 | then : |
| 26886 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 26887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26888 | /* end confdefs.h. */ |
| 26889 | #include <limits.h> |
| 26890 | |
| 26891 | int |
| 26892 | main (void) |
| 26893 | { |
| 26894 | #ifndef _BIG_ENDIAN |
| 26895 | not big endian |
| 26896 | #endif |
| 26897 | |
| 26898 | ; |
| 26899 | return 0; |
| 26900 | } |
| 26901 | _ACEOF |
| 26902 | if ac_fn_c_try_compile "$LINENO" |
| 26903 | then : |
| 26904 | ac_cv_c_bigendian=yes |
| 26905 | else case e in #( |
| 26906 | e) ac_cv_c_bigendian=no ;; |
| 26907 | esac |
| 26908 | fi |
| 26909 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26910 | fi |
| 26911 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26912 | fi |
| 26913 | if test $ac_cv_c_bigendian = unknown; then |
| 26914 | # Compile a test program. |
| 26915 | if test "$cross_compiling" = yes |
| 26916 | then : |
| 26917 | # Try to guess by grepping values from an object file. |
| 26918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26919 | /* end confdefs.h. */ |
| 26920 | unsigned short int ascii_mm[] = |
| 26921 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 26922 | unsigned short int ascii_ii[] = |
| 26923 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 26924 | int use_ascii (int i) { |
| 26925 | return ascii_mm[i] + ascii_ii[i]; |
| 26926 | } |
| 26927 | unsigned short int ebcdic_ii[] = |
| 26928 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 26929 | unsigned short int ebcdic_mm[] = |
| 26930 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 26931 | int use_ebcdic (int i) { |
| 26932 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 26933 | } |
| 26934 | int |
| 26935 | main (int argc, char **argv) |
| 26936 | { |
| 26937 | /* Intimidate the compiler so that it does not |
| 26938 | optimize the arrays away. */ |
| 26939 | char *p = argv[0]; |
| 26940 | ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; |
| 26941 | ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; |
| 26942 | return use_ascii (argc) == use_ebcdic (*p); |
| 26943 | } |
| 26944 | _ACEOF |
| 26945 | if ac_fn_c_try_link "$LINENO" |
| 26946 | then : |
| 26947 | if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then |
| 26948 | ac_cv_c_bigendian=yes |
| 26949 | fi |
| 26950 | if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then |
| 26951 | if test "$ac_cv_c_bigendian" = unknown; then |
| 26952 | ac_cv_c_bigendian=no |
| 26953 | else |
| 26954 | # finding both strings is unlikely to happen, but who knows? |
| 26955 | ac_cv_c_bigendian=unknown |
| 26956 | fi |
| 26957 | fi |
| 26958 | fi |
| 26959 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26960 | conftest$ac_exeext conftest.$ac_ext |
| 26961 | else case e in #( |
| 26962 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26963 | /* end confdefs.h. */ |
| 26964 | $ac_includes_default |
| 26965 | int |
| 26966 | main (void) |
| 26967 | { |
| 26968 | |
| 26969 | /* Are we little or big endian? From Harbison&Steele. */ |
| 26970 | union |
| 26971 | { |
| 26972 | long int l; |
| 26973 | char c[sizeof (long int)]; |
| 26974 | } u; |
| 26975 | u.l = 1; |
| 26976 | return u.c[sizeof (long int) - 1] == 1; |
| 26977 | |
| 26978 | ; |
| 26979 | return 0; |
| 26980 | } |
| 26981 | _ACEOF |
| 26982 | if ac_fn_c_try_run "$LINENO" |
| 26983 | then : |
| 26984 | ac_cv_c_bigendian=no |
| 26985 | else case e in #( |
| 26986 | e) ac_cv_c_bigendian=yes ;; |
| 26987 | esac |
| 26988 | fi |
| 26989 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 26990 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 26991 | esac |
| 26992 | fi |
| 26993 | |
| 26994 | fi ;; |
| 26995 | esac |
| 26996 | fi |
| 26997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 26998 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 26999 | case $ac_cv_c_bigendian in #( |
| 27000 | yes) |
| 27001 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 27002 | ;; #( |
| 27003 | no) |
| 27004 | ;; #( |
| 27005 | universal) |
| 27006 | |
| 27007 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 27008 | |
| 27009 | ;; #( |
| 27010 | *) |
| 27011 | as_fn_error $? "unknown endianness |
| 27012 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 27013 | esac |
| 27014 | |
| 27015 | |
| 27016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| 27017 | printf %s "checking return type of signal handlers... " >&6; } |
| 27018 | if test ${ac_cv_type_signal+y} |
| 27019 | then : |
| 27020 | printf %s "(cached) " >&6 |
| 27021 | else case e in #( |
| 27022 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27023 | /* end confdefs.h. */ |
| 27024 | #include <sys/types.h> |
| 27025 | #include <signal.h> |
| 27026 | |
| 27027 | int |
| 27028 | main (void) |
| 27029 | { |
| 27030 | return *(signal (0, 0)) (0) == 1; |
| 27031 | ; |
| 27032 | return 0; |
| 27033 | } |
| 27034 | _ACEOF |
| 27035 | if ac_fn_c_try_compile "$LINENO" |
| 27036 | then : |
| 27037 | ac_cv_type_signal=int |
| 27038 | else case e in #( |
| 27039 | e) ac_cv_type_signal=void ;; |
| 27040 | esac |
| 27041 | fi |
| 27042 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 27043 | esac |
| 27044 | fi |
| 27045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| 27046 | printf "%s\n" "$ac_cv_type_signal" >&6; } |
| 27047 | |
| 27048 | printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h |
| 27049 | |
| 27050 | |
| 27051 | |
| 27052 | # kpse_kpathsea_flags needs to pull in pkg-config, in case of a system |
| 27053 | # kpathsea being used. So nothing above should use pkg-config. |
| 27054 | kpse_save_CPPFLAGS=$CPPFLAGS |
| 27055 | kpse_save_LIBS=$LIBS |
| 27056 | |
| 27057 | ##tldbg _KPSE_INIT: Initialize TL infrastructure. |
| 27058 | kpse_BLD=`(cd "./../../." && pwd)` |
| 27059 | kpse_SRC=`(cd "$srcdir/../../." && pwd)` |
| 27060 | |
| 27061 | echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5 |
| 27062 | : ${CONFIG_LT=./config.lt} |
| 27063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 |
| 27064 | printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;} |
| 27065 | as_write_fail=0 |
| 27066 | cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 |
| 27067 | #! $SHELL |
| 27068 | # Generated by $as_me. |
| 27069 | # Run this file to recreate a libtool stub with the current configuration. |
| 27070 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27071 | export SHELL |
| 27072 | _ASEOF |
| 27073 | cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 |
| 27074 | ## -------------------- ## |
| 27075 | ## M4sh Initialization. ## |
| 27076 | ## -------------------- ## |
| 27077 | |
| 27078 | # Be more Bourne compatible |
| 27079 | DUALCASE=1; export DUALCASE # for MKS sh |
| 27080 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 27081 | then : |
| 27082 | emulate sh |
| 27083 | NULLCMD=: |
| 27084 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 27085 | # is contrary to our usage. Disable this feature. |
| 27086 | alias -g '${1+"$@"}'='"$@"' |
| 27087 | setopt NO_GLOB_SUBST |
| 27088 | else case e in #( |
| 27089 | e) case `(set -o) 2>/dev/null` in #( |
| 27090 | *posix*) : |
| 27091 | set -o posix ;; #( |
| 27092 | *) : |
| 27093 | ;; |
| 27094 | esac ;; |
| 27095 | esac |
| 27096 | fi |
| 27097 | |
| 27098 | |
| 27099 | |
| 27100 | # Reset variables that may have inherited troublesome values from |
| 27101 | # the environment. |
| 27102 | |
| 27103 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 27104 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 27105 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 27106 | # Quoting is to prevent editors from complaining about space-tab. |
| 27107 | as_nl=' |
| 27108 | ' |
| 27109 | export as_nl |
| 27110 | IFS=" "" $as_nl" |
| 27111 | |
| 27112 | PS1='$ ' |
| 27113 | PS2='> ' |
| 27114 | PS4='+ ' |
| 27115 | |
| 27116 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 27117 | LC_ALL=C |
| 27118 | export LC_ALL |
| 27119 | LANGUAGE=C |
| 27120 | export LANGUAGE |
| 27121 | |
| 27122 | # We cannot yet rely on "unset" to work, but we need these variables |
| 27123 | # to be unset--not just set to an empty or harmless value--now, to |
| 27124 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 27125 | # also avoids known problems related to "unset" and subshell syntax |
| 27126 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 27127 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 27128 | do eval test \${$as_var+y} \ |
| 27129 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 27130 | done |
| 27131 | |
| 27132 | # Ensure that fds 0, 1, and 2 are open. |
| 27133 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 27134 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 27135 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 27136 | |
| 27137 | # The user is always right. |
| 27138 | if ${PATH_SEPARATOR+false} :; then |
| 27139 | PATH_SEPARATOR=: |
| 27140 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 27141 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 27142 | PATH_SEPARATOR=';' |
| 27143 | } |
| 27144 | fi |
| 27145 | |
| 27146 | |
| 27147 | # Find who we are. Look in the path if we contain no directory separator. |
| 27148 | as_myself= |
| 27149 | case $0 in #(( |
| 27150 | *[\\/]* ) as_myself=$0 ;; |
| 27151 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27152 | for as_dir in $PATH |
| 27153 | do |
| 27154 | IFS=$as_save_IFS |
| 27155 | case $as_dir in #((( |
| 27156 | '') as_dir=./ ;; |
| 27157 | */) ;; |
| 27158 | *) as_dir=$as_dir/ ;; |
| 27159 | esac |
| 27160 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 27161 | done |
| 27162 | IFS=$as_save_IFS |
| 27163 | |
| 27164 | ;; |
| 27165 | esac |
| 27166 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 27167 | # in which case we are not to be found in the path. |
| 27168 | if test "x$as_myself" = x; then |
| 27169 | as_myself=$0 |
| 27170 | fi |
| 27171 | if test ! -f "$as_myself"; then |
| 27172 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 27173 | exit 1 |
| 27174 | fi |
| 27175 | |
| 27176 | |
| 27177 | |
| 27178 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 27179 | # ---------------------------------------- |
| 27180 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 27181 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 27182 | # script with STATUS, using 1 if that was 0. |
| 27183 | as_fn_error () |
| 27184 | { |
| 27185 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 27186 | if test "$4"; then |
| 27187 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 27188 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 27189 | fi |
| 27190 | printf "%s\n" "$as_me: error: $2" >&2 |
| 27191 | as_fn_exit $as_status |
| 27192 | } # as_fn_error |
| 27193 | |
| 27194 | |
| 27195 | # as_fn_set_status STATUS |
| 27196 | # ----------------------- |
| 27197 | # Set $? to STATUS, without forking. |
| 27198 | as_fn_set_status () |
| 27199 | { |
| 27200 | return $1 |
| 27201 | } # as_fn_set_status |
| 27202 | |
| 27203 | # as_fn_exit STATUS |
| 27204 | # ----------------- |
| 27205 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 27206 | as_fn_exit () |
| 27207 | { |
| 27208 | set +e |
| 27209 | as_fn_set_status $1 |
| 27210 | exit $1 |
| 27211 | } # as_fn_exit |
| 27212 | |
| 27213 | # as_fn_unset VAR |
| 27214 | # --------------- |
| 27215 | # Portably unset VAR. |
| 27216 | as_fn_unset () |
| 27217 | { |
| 27218 | { eval $1=; unset $1;} |
| 27219 | } |
| 27220 | as_unset=as_fn_unset |
| 27221 | |
| 27222 | # as_fn_append VAR VALUE |
| 27223 | # ---------------------- |
| 27224 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 27225 | # advantage of any shell optimizations that allow amortized linear growth over |
| 27226 | # repeated appends, instead of the typical quadratic growth present in naive |
| 27227 | # implementations. |
| 27228 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 27229 | then : |
| 27230 | eval 'as_fn_append () |
| 27231 | { |
| 27232 | eval $1+=\$2 |
| 27233 | }' |
| 27234 | else case e in #( |
| 27235 | e) as_fn_append () |
| 27236 | { |
| 27237 | eval $1=\$$1\$2 |
| 27238 | } ;; |
| 27239 | esac |
| 27240 | fi # as_fn_append |
| 27241 | |
| 27242 | # as_fn_arith ARG... |
| 27243 | # ------------------ |
| 27244 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 27245 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 27246 | # must be portable across $(()) and expr. |
| 27247 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 27248 | then : |
| 27249 | eval 'as_fn_arith () |
| 27250 | { |
| 27251 | as_val=$(( $* )) |
| 27252 | }' |
| 27253 | else case e in #( |
| 27254 | e) as_fn_arith () |
| 27255 | { |
| 27256 | as_val=`expr "$@" || test $? -eq 1` |
| 27257 | } ;; |
| 27258 | esac |
| 27259 | fi # as_fn_arith |
| 27260 | |
| 27261 | |
| 27262 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27263 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 27264 | as_expr=expr |
| 27265 | else |
| 27266 | as_expr=false |
| 27267 | fi |
| 27268 | |
| 27269 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 27270 | as_basename=basename |
| 27271 | else |
| 27272 | as_basename=false |
| 27273 | fi |
| 27274 | |
| 27275 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 27276 | as_dirname=dirname |
| 27277 | else |
| 27278 | as_dirname=false |
| 27279 | fi |
| 27280 | |
| 27281 | as_me=`$as_basename -- "$0" || |
| 27282 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 27283 | X"$0" : 'X\(//\)$' \| \ |
| 27284 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 27285 | printf "%s\n" X/"$0" | |
| 27286 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 27287 | s//\1/ |
| 27288 | q |
| 27289 | } |
| 27290 | /^X\/\(\/\/\)$/{ |
| 27291 | s//\1/ |
| 27292 | q |
| 27293 | } |
| 27294 | /^X\/\(\/\).*/{ |
| 27295 | s//\1/ |
| 27296 | q |
| 27297 | } |
| 27298 | s/.*/./; q'` |
| 27299 | |
| 27300 | # Avoid depending upon Character Ranges. |
| 27301 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27302 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27303 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27304 | as_cr_digits='0123456789' |
| 27305 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27306 | |
| 27307 | |
| 27308 | # Determine whether it's possible to make 'echo' print without a newline. |
| 27309 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 27310 | # for compatibility with existing Makefiles. |
| 27311 | ECHO_C= ECHO_N= ECHO_T= |
| 27312 | case `echo -n x` in #((((( |
| 27313 | -n*) |
| 27314 | case `echo 'xy\c'` in |
| 27315 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 27316 | xy) ECHO_C='\c';; |
| 27317 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 27318 | ECHO_T=' ';; |
| 27319 | esac;; |
| 27320 | *) |
| 27321 | ECHO_N='-n';; |
| 27322 | esac |
| 27323 | |
| 27324 | # For backward compatibility with old third-party macros, we provide |
| 27325 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 27326 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 27327 | as_echo='printf %s\n' |
| 27328 | as_echo_n='printf %s' |
| 27329 | |
| 27330 | rm -f conf$$ conf$$.exe conf$$.file |
| 27331 | if test -d conf$$.dir; then |
| 27332 | rm -f conf$$.dir/conf$$.file |
| 27333 | else |
| 27334 | rm -f conf$$.dir |
| 27335 | mkdir conf$$.dir 2>/dev/null |
| 27336 | fi |
| 27337 | if (echo >conf$$.file) 2>/dev/null; then |
| 27338 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 27339 | as_ln_s='ln -s' |
| 27340 | # ... but there are two gotchas: |
| 27341 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 27342 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 27343 | # In both cases, we have to default to 'cp -pR'. |
| 27344 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 27345 | as_ln_s='cp -pR' |
| 27346 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 27347 | as_ln_s=ln |
| 27348 | else |
| 27349 | as_ln_s='cp -pR' |
| 27350 | fi |
| 27351 | else |
| 27352 | as_ln_s='cp -pR' |
| 27353 | fi |
| 27354 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 27355 | rmdir conf$$.dir 2>/dev/null |
| 27356 | |
| 27357 | |
| 27358 | # as_fn_mkdir_p |
| 27359 | # ------------- |
| 27360 | # Create "$as_dir" as a directory, including parents if necessary. |
| 27361 | as_fn_mkdir_p () |
| 27362 | { |
| 27363 | |
| 27364 | case $as_dir in #( |
| 27365 | -*) as_dir=./$as_dir;; |
| 27366 | esac |
| 27367 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 27368 | as_dirs= |
| 27369 | while :; do |
| 27370 | case $as_dir in #( |
| 27371 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 27372 | *) as_qdir=$as_dir;; |
| 27373 | esac |
| 27374 | as_dirs="'$as_qdir' $as_dirs" |
| 27375 | as_dir=`$as_dirname -- "$as_dir" || |
| 27376 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 27377 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 27378 | X"$as_dir" : 'X\(//\)$' \| \ |
| 27379 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 27380 | printf "%s\n" X"$as_dir" | |
| 27381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27382 | s//\1/ |
| 27383 | q |
| 27384 | } |
| 27385 | /^X\(\/\/\)[^/].*/{ |
| 27386 | s//\1/ |
| 27387 | q |
| 27388 | } |
| 27389 | /^X\(\/\/\)$/{ |
| 27390 | s//\1/ |
| 27391 | q |
| 27392 | } |
| 27393 | /^X\(\/\).*/{ |
| 27394 | s//\1/ |
| 27395 | q |
| 27396 | } |
| 27397 | s/.*/./; q'` |
| 27398 | test -d "$as_dir" && break |
| 27399 | done |
| 27400 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 27401 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 27402 | |
| 27403 | |
| 27404 | } # as_fn_mkdir_p |
| 27405 | if mkdir -p . 2>/dev/null; then |
| 27406 | as_mkdir_p='mkdir -p "$as_dir"' |
| 27407 | else |
| 27408 | test -d ./-p && rmdir ./-p |
| 27409 | as_mkdir_p=false |
| 27410 | fi |
| 27411 | |
| 27412 | |
| 27413 | # as_fn_executable_p FILE |
| 27414 | # ----------------------- |
| 27415 | # Test if FILE is an executable regular file. |
| 27416 | as_fn_executable_p () |
| 27417 | { |
| 27418 | test -f "$1" && test -x "$1" |
| 27419 | } # as_fn_executable_p |
| 27420 | as_test_x='test -x' |
| 27421 | as_executable_p=as_fn_executable_p |
| 27422 | |
| 27423 | # Sed expression to map a string onto a valid CPP name. |
| 27424 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 27425 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 27426 | |
| 27427 | # Sed expression to map a string onto a valid variable name. |
| 27428 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 27429 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 27430 | |
| 27431 | |
| 27432 | exec 6>&1 |
| 27433 | ## --------------------------------- ## |
| 27434 | ## Main body of "$CONFIG_LT" script. ## |
| 27435 | ## --------------------------------- ## |
| 27436 | _ASEOF |
| 27437 | test $as_write_fail = 0 && chmod +x "$CONFIG_LT" |
| 27438 | |
| 27439 | cat >>"$CONFIG_LT" <<\_LTEOF |
| 27440 | lt_cl_silent=false |
| 27441 | exec 5>>config.log |
| 27442 | { |
| 27443 | echo |
| 27444 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 27445 | ## Running $as_me. ## |
| 27446 | _ASBOX |
| 27447 | } >&5 |
| 27448 | |
| 27449 | lt_cl_help="\ |
| 27450 | '$as_me' creates a local libtool stub from the current configuration, |
| 27451 | for use in further configure time tests before the real libtool is |
| 27452 | generated. |
| 27453 | |
| 27454 | Usage: $0 [OPTIONS] |
| 27455 | |
| 27456 | -h, --help print this help, then exit |
| 27457 | -V, --version print version number, then exit |
| 27458 | -q, --quiet do not print progress messages |
| 27459 | -d, --debug don't remove temporary files |
| 27460 | |
| 27461 | Report bugs to <[email protected]>." |
| 27462 | |
| 27463 | lt_cl_version="\ |
| 27464 | Web2C config.lt 2026 |
| 27465 | configured by $0, generated by GNU Autoconf 2.72. |
| 27466 | |
| 27467 | Copyright (C) 2024 Free Software Foundation, Inc. |
| 27468 | This config.lt script is free software; the Free Software Foundation |
| 27469 | gives unlimited permission to copy, distribute and modify it." |
| 27470 | |
| 27471 | while test 0 != $# |
| 27472 | do |
| 27473 | case $1 in |
| 27474 | --version | --v* | -V ) |
| 27475 | echo "$lt_cl_version"; exit 0 ;; |
| 27476 | --help | --h* | -h ) |
| 27477 | echo "$lt_cl_help"; exit 0 ;; |
| 27478 | --debug | --d* | -d ) |
| 27479 | debug=: ;; |
| 27480 | --quiet | --q* | --silent | --s* | -q ) |
| 27481 | lt_cl_silent=: ;; |
| 27482 | |
| 27483 | -*) as_fn_error $? "unrecognized option: $1 |
| 27484 | Try '$0 --help' for more information." "$LINENO" 5 ;; |
| 27485 | |
| 27486 | *) as_fn_error $? "unrecognized argument: $1 |
| 27487 | Try '$0 --help' for more information." "$LINENO" 5 ;; |
| 27488 | esac |
| 27489 | shift |
| 27490 | done |
| 27491 | |
| 27492 | if $lt_cl_silent; then |
| 27493 | exec 6>/dev/null |
| 27494 | fi |
| 27495 | _LTEOF |
| 27496 | |
| 27497 | cat >>"$CONFIG_LT" <<_LTEOF |
| 27498 | |
| 27499 | |
| 27500 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 27501 | # if CDPATH is set. |
| 27502 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 27503 | |
| 27504 | sed_quote_subst='$sed_quote_subst' |
| 27505 | double_quote_subst='$double_quote_subst' |
| 27506 | delay_variable_subst='$delay_variable_subst' |
| 27507 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 27508 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 27509 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 27510 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 27511 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 27512 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 27513 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 27514 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 27515 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 27516 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 27517 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 27518 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 27519 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 27520 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 27521 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 27522 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 27523 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 27524 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 27525 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 27526 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 27527 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 27528 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 27529 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 27530 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 27531 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 27532 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 27533 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 27534 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 27535 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 27536 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 27537 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 27538 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 27539 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 27540 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 27541 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 27542 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 27543 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 27544 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 27545 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 27546 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 27547 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 27548 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 27549 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 27550 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 27551 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 27552 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 27553 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 27554 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 27555 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 27556 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 27557 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 27558 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 27559 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 27560 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 27561 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 27562 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 27563 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 27564 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 27565 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 27566 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 27567 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 27568 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 27569 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 27570 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 27571 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 27572 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 27573 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 27574 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 27575 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 27576 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 27577 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 27578 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 27579 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 27580 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 27581 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 27582 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 27583 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 27584 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 27585 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 27586 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 27587 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 27588 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 27589 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 27590 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 27591 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 27592 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 27593 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 27594 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 27595 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 27596 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 27597 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 27598 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 27599 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 27600 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 27601 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 27602 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 27603 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 27604 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 27605 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 27606 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 27607 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 27608 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 27609 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 27610 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 27611 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 27612 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 27613 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 27614 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 27615 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 27616 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 27617 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 27618 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 27619 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 27620 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 27621 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 27622 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 27623 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 27624 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 27625 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 27626 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 27627 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 27628 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 27629 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 27630 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 27631 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 27632 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 27633 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 27634 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 27635 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 27636 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 27637 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 27638 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 27639 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 27640 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 27641 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 27642 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 27643 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 27644 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 27645 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 27646 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 27647 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 27648 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 27649 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 27650 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 27651 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 27652 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 27653 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27654 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27655 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 27656 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 27657 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 27658 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 27659 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 27660 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 27661 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 27662 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 27663 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 27664 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 27665 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 27666 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 27667 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27668 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27669 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27670 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27671 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27672 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27673 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 27674 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 27675 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 27676 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 27677 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 27678 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 27679 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 27680 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 27681 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 27682 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 27683 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 27684 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 27685 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 27686 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27687 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 27688 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 27689 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27690 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 27691 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 27692 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 27693 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 27694 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 27695 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 27696 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 27697 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 27698 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 27699 | |
| 27700 | LTCC='$LTCC' |
| 27701 | LTCFLAGS='$LTCFLAGS' |
| 27702 | compiler='$compiler_DEFAULT' |
| 27703 | |
| 27704 | # A function that is used when there is no print builtin or printf. |
| 27705 | func_fallback_echo () |
| 27706 | { |
| 27707 | eval 'cat <<_LTECHO_EOF |
| 27708 | \$1 |
| 27709 | _LTECHO_EOF' |
| 27710 | } |
| 27711 | |
| 27712 | # Quote evaled strings. |
| 27713 | for var in AS \ |
| 27714 | DLLTOOL \ |
| 27715 | OBJDUMP \ |
| 27716 | SHELL \ |
| 27717 | ECHO \ |
| 27718 | PATH_SEPARATOR \ |
| 27719 | SED \ |
| 27720 | GREP \ |
| 27721 | EGREP \ |
| 27722 | FGREP \ |
| 27723 | LD \ |
| 27724 | NM \ |
| 27725 | LN_S \ |
| 27726 | lt_SP2NL \ |
| 27727 | lt_NL2SP \ |
| 27728 | reload_flag \ |
| 27729 | FILECMD \ |
| 27730 | deplibs_check_method \ |
| 27731 | file_magic_cmd \ |
| 27732 | file_magic_glob \ |
| 27733 | want_nocaseglob \ |
| 27734 | sharedlib_from_linklib_cmd \ |
| 27735 | AR \ |
| 27736 | archiver_list_spec \ |
| 27737 | STRIP \ |
| 27738 | RANLIB \ |
| 27739 | CC \ |
| 27740 | CFLAGS \ |
| 27741 | compiler \ |
| 27742 | lt_cv_sys_global_symbol_pipe \ |
| 27743 | lt_cv_sys_global_symbol_to_cdecl \ |
| 27744 | lt_cv_sys_global_symbol_to_import \ |
| 27745 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 27746 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 27747 | lt_cv_nm_interface \ |
| 27748 | nm_file_list_spec \ |
| 27749 | lt_cv_truncate_bin \ |
| 27750 | lt_prog_compiler_no_builtin_flag \ |
| 27751 | lt_prog_compiler_pic \ |
| 27752 | lt_prog_compiler_wl \ |
| 27753 | lt_prog_compiler_static \ |
| 27754 | lt_cv_prog_compiler_c_o \ |
| 27755 | need_locks \ |
| 27756 | MANIFEST_TOOL \ |
| 27757 | DSYMUTIL \ |
| 27758 | NMEDIT \ |
| 27759 | LIPO \ |
| 27760 | OTOOL \ |
| 27761 | OTOOL64 \ |
| 27762 | shrext_cmds \ |
| 27763 | export_dynamic_flag_spec \ |
| 27764 | whole_archive_flag_spec \ |
| 27765 | compiler_needs_object \ |
| 27766 | with_gnu_ld \ |
| 27767 | allow_undefined_flag \ |
| 27768 | no_undefined_flag \ |
| 27769 | hardcode_libdir_flag_spec \ |
| 27770 | hardcode_libdir_separator \ |
| 27771 | exclude_expsyms \ |
| 27772 | include_expsyms \ |
| 27773 | file_list_spec \ |
| 27774 | variables_saved_for_relink \ |
| 27775 | libname_spec \ |
| 27776 | library_names_spec \ |
| 27777 | soname_spec \ |
| 27778 | install_override_mode \ |
| 27779 | finish_eval \ |
| 27780 | old_striplib \ |
| 27781 | striplib \ |
| 27782 | compiler_lib_search_dirs \ |
| 27783 | predep_objects \ |
| 27784 | postdep_objects \ |
| 27785 | predeps \ |
| 27786 | postdeps \ |
| 27787 | compiler_lib_search_path \ |
| 27788 | LD_CXX \ |
| 27789 | reload_flag_CXX \ |
| 27790 | compiler_CXX \ |
| 27791 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 27792 | lt_prog_compiler_pic_CXX \ |
| 27793 | lt_prog_compiler_wl_CXX \ |
| 27794 | lt_prog_compiler_static_CXX \ |
| 27795 | lt_cv_prog_compiler_c_o_CXX \ |
| 27796 | export_dynamic_flag_spec_CXX \ |
| 27797 | whole_archive_flag_spec_CXX \ |
| 27798 | compiler_needs_object_CXX \ |
| 27799 | with_gnu_ld_CXX \ |
| 27800 | allow_undefined_flag_CXX \ |
| 27801 | no_undefined_flag_CXX \ |
| 27802 | hardcode_libdir_flag_spec_CXX \ |
| 27803 | hardcode_libdir_separator_CXX \ |
| 27804 | exclude_expsyms_CXX \ |
| 27805 | include_expsyms_CXX \ |
| 27806 | file_list_spec_CXX \ |
| 27807 | compiler_lib_search_dirs_CXX \ |
| 27808 | predep_objects_CXX \ |
| 27809 | postdep_objects_CXX \ |
| 27810 | predeps_CXX \ |
| 27811 | postdeps_CXX \ |
| 27812 | compiler_lib_search_path_CXX; do |
| 27813 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 27814 | *[\\\\\\\`\\"\\\$]*) |
| 27815 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 27816 | ;; |
| 27817 | *) |
| 27818 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 27819 | ;; |
| 27820 | esac |
| 27821 | done |
| 27822 | |
| 27823 | # Double-quote double-evaled strings. |
| 27824 | for var in reload_cmds \ |
| 27825 | old_postinstall_cmds \ |
| 27826 | old_postuninstall_cmds \ |
| 27827 | old_archive_cmds \ |
| 27828 | extract_expsyms_cmds \ |
| 27829 | old_archive_from_new_cmds \ |
| 27830 | old_archive_from_expsyms_cmds \ |
| 27831 | archive_cmds \ |
| 27832 | archive_expsym_cmds \ |
| 27833 | module_cmds \ |
| 27834 | module_expsym_cmds \ |
| 27835 | export_symbols_cmds \ |
| 27836 | prelink_cmds \ |
| 27837 | postlink_cmds \ |
| 27838 | postinstall_cmds \ |
| 27839 | postuninstall_cmds \ |
| 27840 | finish_cmds \ |
| 27841 | sys_lib_search_path_spec \ |
| 27842 | configure_time_dlsearch_path \ |
| 27843 | configure_time_lt_sys_library_path \ |
| 27844 | reload_cmds_CXX \ |
| 27845 | old_archive_cmds_CXX \ |
| 27846 | old_archive_from_new_cmds_CXX \ |
| 27847 | old_archive_from_expsyms_cmds_CXX \ |
| 27848 | archive_cmds_CXX \ |
| 27849 | archive_expsym_cmds_CXX \ |
| 27850 | module_cmds_CXX \ |
| 27851 | module_expsym_cmds_CXX \ |
| 27852 | export_symbols_cmds_CXX \ |
| 27853 | prelink_cmds_CXX \ |
| 27854 | postlink_cmds_CXX; do |
| 27855 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 27856 | *[\\\\\\\`\\"\\\$]*) |
| 27857 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 27858 | ;; |
| 27859 | *) |
| 27860 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 27861 | ;; |
| 27862 | esac |
| 27863 | done |
| 27864 | |
| 27865 | ac_aux_dir='$ac_aux_dir' |
| 27866 | |
| 27867 | # See if we are running on zsh, and set the options that allow our |
| 27868 | # commands through without removal of \ escapes INIT. |
| 27869 | if test -n "\${ZSH_VERSION+set}"; then |
| 27870 | setopt NO_GLOB_SUBST |
| 27871 | fi |
| 27872 | |
| 27873 | |
| 27874 | PACKAGE='$PACKAGE' |
| 27875 | VERSION='$VERSION' |
| 27876 | RM='$RM' |
| 27877 | ofile='$ofile' |
| 27878 | |
| 27879 | |
| 27880 | |
| 27881 | enable_libtool_hack='$enable_libtool_hack' |
| 27882 | |
| 27883 | |
| 27884 | _LTEOF |
| 27885 | |
| 27886 | cat >>"$CONFIG_LT" <<\_LTEOF |
| 27887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 |
| 27888 | printf "%s\n" "$as_me: creating $ofile" >&6;} |
| 27889 | |
| 27890 | |
| 27891 | # See if we are running on zsh, and set the options that allow our |
| 27892 | # commands through without removal of \ escapes. |
| 27893 | if test -n "${ZSH_VERSION+set}"; then |
| 27894 | setopt NO_GLOB_SUBST |
| 27895 | fi |
| 27896 | |
| 27897 | cfgfile=${ofile}T |
| 27898 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 27899 | $RM "$cfgfile" |
| 27900 | |
| 27901 | cat <<_LT_EOF >> "$cfgfile" |
| 27902 | #! $SHELL |
| 27903 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 27904 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 27905 | |
| 27906 | # Provide generalized library-building support services. |
| 27907 | # Written by Gordon Matzigkeit, 1996 |
| 27908 | |
| 27909 | # Copyright (C) 2024 Free Software Foundation, Inc. |
| 27910 | # This is free software; see the source for copying conditions. There is NO |
| 27911 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 27912 | |
| 27913 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 27914 | # it under the terms of the GNU General Public License as published by |
| 27915 | # the Free Software Foundation; either version 2 of the License, or |
| 27916 | # (at your option) any later version. |
| 27917 | # |
| 27918 | # As a special exception to the GNU General Public License, if you |
| 27919 | # distribute this file as part of a program or library that is built |
| 27920 | # using GNU Libtool, you may include this file under the same |
| 27921 | # distribution terms that you use for the rest of that program. |
| 27922 | # |
| 27923 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 27924 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27925 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27926 | # GNU General Public License for more details. |
| 27927 | # |
| 27928 | # You should have received a copy of the GNU General Public License |
| 27929 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 27930 | |
| 27931 | |
| 27932 | # The names of the tagged configurations supported by this script. |
| 27933 | available_tags='CXX ' |
| 27934 | |
| 27935 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 27936 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 27937 | |
| 27938 | # ### BEGIN LIBTOOL CONFIG |
| 27939 | |
| 27940 | # Which release of libtool.m4 was used? |
| 27941 | macro_version=$macro_version |
| 27942 | macro_revision=$macro_revision |
| 27943 | |
| 27944 | # Assembler program. |
| 27945 | AS=$lt_AS |
| 27946 | |
| 27947 | # DLL creation program. |
| 27948 | DLLTOOL=$lt_DLLTOOL |
| 27949 | |
| 27950 | # Object dumper program. |
| 27951 | OBJDUMP=$lt_OBJDUMP |
| 27952 | |
| 27953 | # Whether or not to build shared libraries. |
| 27954 | build_libtool_libs=$enable_shared |
| 27955 | |
| 27956 | # Whether or not to build static libraries. |
| 27957 | build_old_libs=$enable_static |
| 27958 | |
| 27959 | # What type of objects to build. |
| 27960 | pic_mode=$pic_mode |
| 27961 | |
| 27962 | # Whether or not to optimize for fast installation. |
| 27963 | fast_install=$enable_fast_install |
| 27964 | |
| 27965 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 27966 | shared_archive_member_spec=$shared_archive_member_spec |
| 27967 | |
| 27968 | # Shell to use when invoking shell scripts. |
| 27969 | SHELL=$lt_SHELL |
| 27970 | |
| 27971 | # An echo program that protects backslashes. |
| 27972 | ECHO=$lt_ECHO |
| 27973 | |
| 27974 | # The PATH separator for the build system. |
| 27975 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 27976 | |
| 27977 | # The host system. |
| 27978 | host_alias=$host_alias |
| 27979 | host=$host |
| 27980 | host_os=$host_os |
| 27981 | |
| 27982 | # The build system. |
| 27983 | build_alias=$build_alias |
| 27984 | build=$build |
| 27985 | build_os=$build_os |
| 27986 | |
| 27987 | # A sed program that does not truncate output. |
| 27988 | SED=$lt_SED |
| 27989 | |
| 27990 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 27991 | Xsed="\$SED -e 1s/^X//" |
| 27992 | |
| 27993 | # A grep program that handles long lines. |
| 27994 | GREP=$lt_GREP |
| 27995 | |
| 27996 | # An ERE matcher. |
| 27997 | EGREP=$lt_EGREP |
| 27998 | |
| 27999 | # A literal string matcher. |
| 28000 | FGREP=$lt_FGREP |
| 28001 | |
| 28002 | # A BSD- or MS-compatible name lister. |
| 28003 | NM=$lt_NM |
| 28004 | |
| 28005 | # Whether we need soft or hard links. |
| 28006 | LN_S=$lt_LN_S |
| 28007 | |
| 28008 | # What is the maximum length of a command? |
| 28009 | max_cmd_len=$max_cmd_len |
| 28010 | |
| 28011 | # Object file suffix (normally "o"). |
| 28012 | objext=$ac_objext |
| 28013 | |
| 28014 | # Executable file suffix (normally ""). |
| 28015 | exeext=$exeext |
| 28016 | |
| 28017 | # whether the shell understands "unset". |
| 28018 | lt_unset=$lt_unset |
| 28019 | |
| 28020 | # turn spaces into newlines. |
| 28021 | SP2NL=$lt_lt_SP2NL |
| 28022 | |
| 28023 | # turn newlines into spaces. |
| 28024 | NL2SP=$lt_lt_NL2SP |
| 28025 | |
| 28026 | # convert \$build file names to \$host format. |
| 28027 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 28028 | |
| 28029 | # convert \$build files to toolchain format. |
| 28030 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 28031 | |
| 28032 | # A file(cmd) program that detects file types. |
| 28033 | FILECMD=$lt_FILECMD |
| 28034 | |
| 28035 | # Method to check whether dependent libraries are shared objects. |
| 28036 | deplibs_check_method=$lt_deplibs_check_method |
| 28037 | |
| 28038 | # Command to use when deplibs_check_method = "file_magic". |
| 28039 | file_magic_cmd=$lt_file_magic_cmd |
| 28040 | |
| 28041 | # How to find potential files when deplibs_check_method = "file_magic". |
| 28042 | file_magic_glob=$lt_file_magic_glob |
| 28043 | |
| 28044 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 28045 | want_nocaseglob=$lt_want_nocaseglob |
| 28046 | |
| 28047 | # Command to associate shared and link libraries. |
| 28048 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 28049 | |
| 28050 | # The archiver. |
| 28051 | AR=$lt_AR |
| 28052 | |
| 28053 | # Flags to create an archive (by configure). |
| 28054 | lt_ar_flags=$lt_ar_flags |
| 28055 | |
| 28056 | # Flags to create an archive. |
| 28057 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 28058 | |
| 28059 | # How to feed a file listing to the archiver. |
| 28060 | archiver_list_spec=$lt_archiver_list_spec |
| 28061 | |
| 28062 | # A symbol stripping program. |
| 28063 | STRIP=$lt_STRIP |
| 28064 | |
| 28065 | # Commands used to install an old-style archive. |
| 28066 | RANLIB=$lt_RANLIB |
| 28067 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 28068 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 28069 | |
| 28070 | # Whether to use a lock for old archive extraction. |
| 28071 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 28072 | |
| 28073 | # A C compiler. |
| 28074 | LTCC=$lt_CC |
| 28075 | |
| 28076 | # LTCC compiler flags. |
| 28077 | LTCFLAGS=$lt_CFLAGS |
| 28078 | |
| 28079 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 28080 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 28081 | |
| 28082 | # Transform the output of nm in a proper C declaration. |
| 28083 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 28084 | |
| 28085 | # Transform the output of nm into a list of symbols to manually relocate. |
| 28086 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 28087 | |
| 28088 | # Transform the output of nm in a C name address pair. |
| 28089 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 28090 | |
| 28091 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 28092 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 28093 | |
| 28094 | # The name lister interface. |
| 28095 | nm_interface=$lt_lt_cv_nm_interface |
| 28096 | |
| 28097 | # Specify filename containing input files for \$NM. |
| 28098 | nm_file_list_spec=$lt_nm_file_list_spec |
| 28099 | |
| 28100 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 28101 | lt_sysroot=$lt_sysroot |
| 28102 | |
| 28103 | # Command to truncate a binary pipe. |
| 28104 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 28105 | |
| 28106 | # The name of the directory that contains temporary libtool files. |
| 28107 | objdir=$objdir |
| 28108 | |
| 28109 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 28110 | MAGIC_CMD=$MAGIC_CMD |
| 28111 | |
| 28112 | # Must we lock files when doing compilation? |
| 28113 | need_locks=$lt_need_locks |
| 28114 | |
| 28115 | # Manifest tool. |
| 28116 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 28117 | |
| 28118 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 28119 | DSYMUTIL=$lt_DSYMUTIL |
| 28120 | |
| 28121 | # Tool to change global to local symbols on Mac OS X. |
| 28122 | NMEDIT=$lt_NMEDIT |
| 28123 | |
| 28124 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 28125 | LIPO=$lt_LIPO |
| 28126 | |
| 28127 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 28128 | OTOOL=$lt_OTOOL |
| 28129 | |
| 28130 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 28131 | OTOOL64=$lt_OTOOL64 |
| 28132 | |
| 28133 | # Old archive suffix (normally "a"). |
| 28134 | libext=$libext |
| 28135 | |
| 28136 | # Shared library suffix (normally ".so"). |
| 28137 | shrext_cmds=$lt_shrext_cmds |
| 28138 | |
| 28139 | # The commands to extract the exported symbol list from a shared archive. |
| 28140 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 28141 | |
| 28142 | # Variables whose values should be saved in libtool wrapper scripts and |
| 28143 | # restored at link time. |
| 28144 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 28145 | |
| 28146 | # Do we need the "lib" prefix for modules? |
| 28147 | need_lib_prefix=$need_lib_prefix |
| 28148 | |
| 28149 | # Do we need a version for libraries? |
| 28150 | need_version=$need_version |
| 28151 | |
| 28152 | # Library versioning type. |
| 28153 | version_type=$version_type |
| 28154 | |
| 28155 | # Shared library runtime path variable. |
| 28156 | runpath_var=$runpath_var |
| 28157 | |
| 28158 | # Shared library path variable. |
| 28159 | shlibpath_var=$shlibpath_var |
| 28160 | |
| 28161 | # Is shlibpath searched before the hard-coded library search path? |
| 28162 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 28163 | |
| 28164 | # Format of library name prefix. |
| 28165 | libname_spec=$lt_libname_spec |
| 28166 | |
| 28167 | # List of archive names. First name is the real one, the rest are links. |
| 28168 | # The last name is the one that the linker finds with -lNAME |
| 28169 | library_names_spec=$lt_library_names_spec |
| 28170 | |
| 28171 | # The coded name of the library, if different from the real name. |
| 28172 | soname_spec=$lt_soname_spec |
| 28173 | |
| 28174 | # Permission mode override for installation of shared libraries. |
| 28175 | install_override_mode=$lt_install_override_mode |
| 28176 | |
| 28177 | # Command to use after installation of a shared archive. |
| 28178 | postinstall_cmds=$lt_postinstall_cmds |
| 28179 | |
| 28180 | # Command to use after uninstallation of a shared archive. |
| 28181 | postuninstall_cmds=$lt_postuninstall_cmds |
| 28182 | |
| 28183 | # Commands used to finish a libtool library installation in a directory. |
| 28184 | finish_cmds=$lt_finish_cmds |
| 28185 | |
| 28186 | # As "finish_cmds", except a single script fragment to be evaled but |
| 28187 | # not shown. |
| 28188 | finish_eval=$lt_finish_eval |
| 28189 | |
| 28190 | # Whether we should hardcode library paths into libraries. |
| 28191 | hardcode_into_libs=$hardcode_into_libs |
| 28192 | |
| 28193 | # Compile-time system search path for libraries. |
| 28194 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 28195 | |
| 28196 | # Detected run-time system search path for libraries. |
| 28197 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 28198 | |
| 28199 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 28200 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 28201 | |
| 28202 | # Whether dlopen is supported. |
| 28203 | dlopen_support=$enable_dlopen |
| 28204 | |
| 28205 | # Whether dlopen of programs is supported. |
| 28206 | dlopen_self=$enable_dlopen_self |
| 28207 | |
| 28208 | # Whether dlopen of statically linked programs is supported. |
| 28209 | dlopen_self_static=$enable_dlopen_self_static |
| 28210 | |
| 28211 | # Commands to strip libraries. |
| 28212 | old_striplib=$lt_old_striplib |
| 28213 | striplib=$lt_striplib |
| 28214 | |
| 28215 | |
| 28216 | # The linker used to build libraries. |
| 28217 | LD=$lt_LD |
| 28218 | |
| 28219 | # How to create reloadable object files. |
| 28220 | reload_flag=$lt_reload_flag |
| 28221 | reload_cmds=$lt_reload_cmds |
| 28222 | |
| 28223 | # Commands used to build an old-style archive. |
| 28224 | old_archive_cmds=$lt_old_archive_cmds |
| 28225 | |
| 28226 | # A language specific compiler. |
| 28227 | CC=$lt_compiler |
| 28228 | |
| 28229 | # Is the compiler the GNU compiler? |
| 28230 | with_gcc=$GCC |
| 28231 | |
| 28232 | # Compiler flag to turn off builtin functions. |
| 28233 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 28234 | |
| 28235 | # Additional compiler flags for building library objects. |
| 28236 | pic_flag=$lt_lt_prog_compiler_pic |
| 28237 | |
| 28238 | # How to pass a linker flag through the compiler. |
| 28239 | wl=$lt_lt_prog_compiler_wl |
| 28240 | |
| 28241 | # Compiler flag to prevent dynamic linking. |
| 28242 | link_static_flag=$lt_lt_prog_compiler_static |
| 28243 | |
| 28244 | # Does compiler simultaneously support -c and -o options? |
| 28245 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 28246 | |
| 28247 | # Whether or not to add -lc for building shared libraries. |
| 28248 | build_libtool_need_lc=$archive_cmds_need_lc |
| 28249 | |
| 28250 | # Whether or not to disallow shared libs when runtime libs are static. |
| 28251 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 28252 | |
| 28253 | # Compiler flag to allow reflexive dlopens. |
| 28254 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 28255 | |
| 28256 | # Compiler flag to generate shared objects directly from archives. |
| 28257 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 28258 | |
| 28259 | # Whether the compiler copes with passing no objects directly. |
| 28260 | compiler_needs_object=$lt_compiler_needs_object |
| 28261 | |
| 28262 | # Create an old-style archive from a shared archive. |
| 28263 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 28264 | |
| 28265 | # Create a temporary old-style archive to link instead of a shared archive. |
| 28266 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 28267 | |
| 28268 | # Commands used to build a shared archive. |
| 28269 | archive_cmds=$lt_archive_cmds |
| 28270 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 28271 | |
| 28272 | # Commands used to build a loadable module if different from building |
| 28273 | # a shared archive. |
| 28274 | module_cmds=$lt_module_cmds |
| 28275 | module_expsym_cmds=$lt_module_expsym_cmds |
| 28276 | |
| 28277 | # Whether we are building with GNU ld or not. |
| 28278 | with_gnu_ld=$lt_with_gnu_ld |
| 28279 | |
| 28280 | # Flag that allows shared libraries with undefined symbols to be built. |
| 28281 | allow_undefined_flag=$lt_allow_undefined_flag |
| 28282 | |
| 28283 | # Flag that enforces no undefined symbols. |
| 28284 | no_undefined_flag=$lt_no_undefined_flag |
| 28285 | |
| 28286 | # Flag to hardcode \$libdir into a binary during linking. |
| 28287 | # This must work even if \$libdir does not exist |
| 28288 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 28289 | |
| 28290 | # Whether we need a single "-rpath" flag with a separated argument. |
| 28291 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 28292 | |
| 28293 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 28294 | # DIR into the resulting binary. |
| 28295 | hardcode_direct=$hardcode_direct |
| 28296 | |
| 28297 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 28298 | # DIR into the resulting binary and the resulting library dependency is |
| 28299 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 28300 | # library is relocated. |
| 28301 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 28302 | |
| 28303 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 28304 | # into the resulting binary. |
| 28305 | hardcode_minus_L=$hardcode_minus_L |
| 28306 | |
| 28307 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 28308 | # into the resulting binary. |
| 28309 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 28310 | |
| 28311 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 28312 | # into the library and all subsequent libraries and executables linked |
| 28313 | # against it. |
| 28314 | hardcode_automatic=$hardcode_automatic |
| 28315 | |
| 28316 | # Set to yes if linker adds runtime paths of dependent libraries |
| 28317 | # to runtime path list. |
| 28318 | inherit_rpath=$inherit_rpath |
| 28319 | |
| 28320 | # Whether libtool must link a program against all its dependency libraries. |
| 28321 | link_all_deplibs=$link_all_deplibs |
| 28322 | |
| 28323 | # Set to "yes" if exported symbols are required. |
| 28324 | always_export_symbols=$always_export_symbols |
| 28325 | |
| 28326 | # The commands to list exported symbols. |
| 28327 | export_symbols_cmds=$lt_export_symbols_cmds |
| 28328 | |
| 28329 | # Symbols that should not be listed in the preloaded symbols. |
| 28330 | exclude_expsyms=$lt_exclude_expsyms |
| 28331 | |
| 28332 | # Symbols that must always be exported. |
| 28333 | include_expsyms=$lt_include_expsyms |
| 28334 | |
| 28335 | # Commands necessary for linking programs (against libraries) with templates. |
| 28336 | prelink_cmds=$lt_prelink_cmds |
| 28337 | |
| 28338 | # Commands necessary for finishing linking programs. |
| 28339 | postlink_cmds=$lt_postlink_cmds |
| 28340 | |
| 28341 | # Specify filename containing input files. |
| 28342 | file_list_spec=$lt_file_list_spec |
| 28343 | |
| 28344 | # How to hardcode a shared library path into an executable. |
| 28345 | hardcode_action=$hardcode_action |
| 28346 | |
| 28347 | # The directories searched by this compiler when creating a shared library. |
| 28348 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 28349 | |
| 28350 | # Dependencies to place before and after the objects being linked to |
| 28351 | # create a shared library. |
| 28352 | predep_objects=$lt_predep_objects |
| 28353 | postdep_objects=$lt_postdep_objects |
| 28354 | predeps=$lt_predeps |
| 28355 | postdeps=$lt_postdeps |
| 28356 | |
| 28357 | # The library search path used internally by the compiler when linking |
| 28358 | # a shared library. |
| 28359 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 28360 | |
| 28361 | # ### END LIBTOOL CONFIG |
| 28362 | |
| 28363 | _LT_EOF |
| 28364 | |
| 28365 | cat <<'_LT_EOF' >> "$cfgfile" |
| 28366 | |
| 28367 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 28368 | |
| 28369 | # func_munge_path_list VARIABLE PATH |
| 28370 | # ----------------------------------- |
| 28371 | # VARIABLE is name of variable containing _space_ separated list of |
| 28372 | # directories to be munged by the contents of PATH, which is string |
| 28373 | # having a format: |
| 28374 | # "DIR[:DIR]:" |
| 28375 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 28376 | # ":DIR[:DIR]" |
| 28377 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 28378 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 28379 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 28380 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 28381 | # "DIR[:DIR]" |
| 28382 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 28383 | func_munge_path_list () |
| 28384 | { |
| 28385 | case x$2 in |
| 28386 | x) |
| 28387 | ;; |
| 28388 | *:) |
| 28389 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 28390 | ;; |
| 28391 | x:*) |
| 28392 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 28393 | ;; |
| 28394 | *::*) |
| 28395 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 28396 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 28397 | ;; |
| 28398 | *) |
| 28399 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 28400 | ;; |
| 28401 | esac |
| 28402 | } |
| 28403 | |
| 28404 | |
| 28405 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 28406 | func_cc_basename () |
| 28407 | { |
| 28408 | for cc_temp in $*""; do |
| 28409 | case $cc_temp in |
| 28410 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 28411 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 28412 | \-*) ;; |
| 28413 | *) break;; |
| 28414 | esac |
| 28415 | done |
| 28416 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 28417 | } |
| 28418 | |
| 28419 | |
| 28420 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 28421 | |
| 28422 | _LT_EOF |
| 28423 | |
| 28424 | case $host_os in |
| 28425 | aix3*) |
| 28426 | cat <<\_LT_EOF >> "$cfgfile" |
| 28427 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 28428 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 28429 | # vanish in a puff of smoke. |
| 28430 | if test set != "${COLLECT_NAMES+set}"; then |
| 28431 | COLLECT_NAMES= |
| 28432 | export COLLECT_NAMES |
| 28433 | fi |
| 28434 | _LT_EOF |
| 28435 | ;; |
| 28436 | esac |
| 28437 | |
| 28438 | |
| 28439 | |
| 28440 | ltmain=$ac_aux_dir/ltmain.sh |
| 28441 | |
| 28442 | |
| 28443 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 28444 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 28445 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 28446 | # is reportedly fixed, but why not run on old versions too? |
| 28447 | $SED '$q' "$ltmain" >> "$cfgfile" \ |
| 28448 | || (rm -f "$cfgfile"; exit 1) |
| 28449 | |
| 28450 | mv -f "$cfgfile" "$ofile" || |
| 28451 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 28452 | chmod +x "$ofile" |
| 28453 | |
| 28454 | |
| 28455 | cat <<_LT_EOF >> "$ofile" |
| 28456 | |
| 28457 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 28458 | |
| 28459 | # The linker used to build libraries. |
| 28460 | LD=$lt_LD_CXX |
| 28461 | |
| 28462 | # How to create reloadable object files. |
| 28463 | reload_flag=$lt_reload_flag_CXX |
| 28464 | reload_cmds=$lt_reload_cmds_CXX |
| 28465 | |
| 28466 | # Commands used to build an old-style archive. |
| 28467 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 28468 | |
| 28469 | # A language specific compiler. |
| 28470 | CC=$lt_compiler_CXX |
| 28471 | |
| 28472 | # Is the compiler the GNU compiler? |
| 28473 | with_gcc=$GCC_CXX |
| 28474 | |
| 28475 | # Compiler flag to turn off builtin functions. |
| 28476 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 28477 | |
| 28478 | # Additional compiler flags for building library objects. |
| 28479 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 28480 | |
| 28481 | # How to pass a linker flag through the compiler. |
| 28482 | wl=$lt_lt_prog_compiler_wl_CXX |
| 28483 | |
| 28484 | # Compiler flag to prevent dynamic linking. |
| 28485 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 28486 | |
| 28487 | # Does compiler simultaneously support -c and -o options? |
| 28488 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 28489 | |
| 28490 | # Whether or not to add -lc for building shared libraries. |
| 28491 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 28492 | |
| 28493 | # Whether or not to disallow shared libs when runtime libs are static. |
| 28494 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 28495 | |
| 28496 | # Compiler flag to allow reflexive dlopens. |
| 28497 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 28498 | |
| 28499 | # Compiler flag to generate shared objects directly from archives. |
| 28500 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 28501 | |
| 28502 | # Whether the compiler copes with passing no objects directly. |
| 28503 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 28504 | |
| 28505 | # Create an old-style archive from a shared archive. |
| 28506 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 28507 | |
| 28508 | # Create a temporary old-style archive to link instead of a shared archive. |
| 28509 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 28510 | |
| 28511 | # Commands used to build a shared archive. |
| 28512 | archive_cmds=$lt_archive_cmds_CXX |
| 28513 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 28514 | |
| 28515 | # Commands used to build a loadable module if different from building |
| 28516 | # a shared archive. |
| 28517 | module_cmds=$lt_module_cmds_CXX |
| 28518 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 28519 | |
| 28520 | # Whether we are building with GNU ld or not. |
| 28521 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 28522 | |
| 28523 | # Flag that allows shared libraries with undefined symbols to be built. |
| 28524 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 28525 | |
| 28526 | # Flag that enforces no undefined symbols. |
| 28527 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 28528 | |
| 28529 | # Flag to hardcode \$libdir into a binary during linking. |
| 28530 | # This must work even if \$libdir does not exist |
| 28531 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 28532 | |
| 28533 | # Whether we need a single "-rpath" flag with a separated argument. |
| 28534 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 28535 | |
| 28536 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 28537 | # DIR into the resulting binary. |
| 28538 | hardcode_direct=$hardcode_direct_CXX |
| 28539 | |
| 28540 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 28541 | # DIR into the resulting binary and the resulting library dependency is |
| 28542 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 28543 | # library is relocated. |
| 28544 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 28545 | |
| 28546 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 28547 | # into the resulting binary. |
| 28548 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 28549 | |
| 28550 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 28551 | # into the resulting binary. |
| 28552 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 28553 | |
| 28554 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 28555 | # into the library and all subsequent libraries and executables linked |
| 28556 | # against it. |
| 28557 | hardcode_automatic=$hardcode_automatic_CXX |
| 28558 | |
| 28559 | # Set to yes if linker adds runtime paths of dependent libraries |
| 28560 | # to runtime path list. |
| 28561 | inherit_rpath=$inherit_rpath_CXX |
| 28562 | |
| 28563 | # Whether libtool must link a program against all its dependency libraries. |
| 28564 | link_all_deplibs=$link_all_deplibs_CXX |
| 28565 | |
| 28566 | # Set to "yes" if exported symbols are required. |
| 28567 | always_export_symbols=$always_export_symbols_CXX |
| 28568 | |
| 28569 | # The commands to list exported symbols. |
| 28570 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 28571 | |
| 28572 | # Symbols that should not be listed in the preloaded symbols. |
| 28573 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 28574 | |
| 28575 | # Symbols that must always be exported. |
| 28576 | include_expsyms=$lt_include_expsyms_CXX |
| 28577 | |
| 28578 | # Commands necessary for linking programs (against libraries) with templates. |
| 28579 | prelink_cmds=$lt_prelink_cmds_CXX |
| 28580 | |
| 28581 | # Commands necessary for finishing linking programs. |
| 28582 | postlink_cmds=$lt_postlink_cmds_CXX |
| 28583 | |
| 28584 | # Specify filename containing input files. |
| 28585 | file_list_spec=$lt_file_list_spec_CXX |
| 28586 | |
| 28587 | # How to hardcode a shared library path into an executable. |
| 28588 | hardcode_action=$hardcode_action_CXX |
| 28589 | |
| 28590 | # The directories searched by this compiler when creating a shared library. |
| 28591 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 28592 | |
| 28593 | # Dependencies to place before and after the objects being linked to |
| 28594 | # create a shared library. |
| 28595 | predep_objects=$lt_predep_objects_CXX |
| 28596 | postdep_objects=$lt_postdep_objects_CXX |
| 28597 | predeps=$lt_predeps_CXX |
| 28598 | postdeps=$lt_postdeps_CXX |
| 28599 | |
| 28600 | # The library search path used internally by the compiler when linking |
| 28601 | # a shared library. |
| 28602 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 28603 | |
| 28604 | # ### END LIBTOOL TAG CONFIG: CXX |
| 28605 | _LT_EOF |
| 28606 | |
| 28607 | ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs |
| 28608 | if test "x$enable_libtool_hack" = xyes; then |
| 28609 | $SED '/# Convert "-framework/i\ |
| 28610 | ## KPSE_LT_HACK: ignore dependency_libs\ |
| 28611 | test "X$installed" = Xyes && dependency_libs=\ |
| 28612 | ' "$ofile" >"$cfgfile" |
| 28613 | mv "$cfgfile" "$ofile" || |
| 28614 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 28615 | chmod +x "$ofile" |
| 28616 | fi |
| 28617 | |
| 28618 | as_fn_exit 0 |
| 28619 | _LTEOF |
| 28620 | chmod +x "$CONFIG_LT" |
| 28621 | |
| 28622 | # configure is writing to config.log, but config.lt does its own redirection, |
| 28623 | # appending to config.log, which fails on DOS, as config.log is still kept |
| 28624 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
| 28625 | # config.log, so it can be properly (re)opened and appended to by config.lt. |
| 28626 | lt_cl_success=: |
| 28627 | test yes = "$silent" && |
| 28628 | lt_config_lt_args="$lt_config_lt_args --quiet" |
| 28629 | exec 5>/dev/null |
| 28630 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
| 28631 | exec 5>>config.log |
| 28632 | $lt_cl_success || as_fn_exit 1 |
| 28633 | |
| 28634 | # |
| 28635 | # |
| 28636 | ac_ext=c |
| 28637 | ac_cpp='$CPP $CPPFLAGS' |
| 28638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28641 | ac_link="./libtool --mode=link --tag=CC $ac_link" |
| 28642 | |
| 28643 | if test -n "$ac_tool_prefix"; then |
| 28644 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 28645 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 28646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 28647 | printf %s "checking for $ac_word... " >&6; } |
| 28648 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 28649 | then : |
| 28650 | printf %s "(cached) " >&6 |
| 28651 | else case e in #( |
| 28652 | e) if test -n "$PKG_CONFIG"; then |
| 28653 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 28654 | else |
| 28655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28656 | for as_dir in $PATH |
| 28657 | do |
| 28658 | IFS=$as_save_IFS |
| 28659 | case $as_dir in #((( |
| 28660 | '') as_dir=./ ;; |
| 28661 | */) ;; |
| 28662 | *) as_dir=$as_dir/ ;; |
| 28663 | esac |
| 28664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 28665 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 28666 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 28667 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 28668 | break 2 |
| 28669 | fi |
| 28670 | done |
| 28671 | done |
| 28672 | IFS=$as_save_IFS |
| 28673 | |
| 28674 | fi ;; |
| 28675 | esac |
| 28676 | fi |
| 28677 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 28678 | if test -n "$PKG_CONFIG"; then |
| 28679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 28680 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 28681 | else |
| 28682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28683 | printf "%s\n" "no" >&6; } |
| 28684 | fi |
| 28685 | |
| 28686 | |
| 28687 | fi |
| 28688 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 28689 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 28690 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 28691 | set dummy pkg-config; ac_word=$2 |
| 28692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 28693 | printf %s "checking for $ac_word... " >&6; } |
| 28694 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 28695 | then : |
| 28696 | printf %s "(cached) " >&6 |
| 28697 | else case e in #( |
| 28698 | e) if test -n "$ac_ct_PKG_CONFIG"; then |
| 28699 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 28700 | else |
| 28701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28702 | for as_dir in $PATH |
| 28703 | do |
| 28704 | IFS=$as_save_IFS |
| 28705 | case $as_dir in #((( |
| 28706 | '') as_dir=./ ;; |
| 28707 | */) ;; |
| 28708 | *) as_dir=$as_dir/ ;; |
| 28709 | esac |
| 28710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 28711 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 28712 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 28713 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 28714 | break 2 |
| 28715 | fi |
| 28716 | done |
| 28717 | done |
| 28718 | IFS=$as_save_IFS |
| 28719 | |
| 28720 | fi ;; |
| 28721 | esac |
| 28722 | fi |
| 28723 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 28724 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 28725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 28726 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
| 28727 | else |
| 28728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28729 | printf "%s\n" "no" >&6; } |
| 28730 | fi |
| 28731 | |
| 28732 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 28733 | PKG_CONFIG="false" |
| 28734 | else |
| 28735 | case $cross_compiling:$ac_tool_warned in |
| 28736 | yes:) |
| 28737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 28738 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 28739 | ac_tool_warned=yes ;; |
| 28740 | esac |
| 28741 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 28742 | fi |
| 28743 | else |
| 28744 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 28745 | fi |
| 28746 | |
| 28747 | ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags. |
| 28748 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5 |
| 28749 | ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt. |
| 28750 | |
| 28751 | # Check whether --with-system-kpathsea was given. |
| 28752 | if test ${with_system_kpathsea+y} |
| 28753 | then : |
| 28754 | withval=$with_system_kpathsea; |
| 28755 | fi |
| 28756 | if test "x$with_system_kpathsea" = xyes; then |
| 28757 | if $PKG_CONFIG kpathsea; then |
| 28758 | KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags` |
| 28759 | KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs` |
| 28760 | elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then |
| 28761 | as_fn_error $? "did not find kpathsea" "$LINENO" 5 |
| 28762 | fi |
| 28763 | else |
| 28764 | KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk" |
| 28765 | KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la" |
| 28766 | KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la' |
| 28767 | KPATHSEA_RULE='# Rebuild libkpathsea |
| 28768 | $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h |
| 28769 | cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 28770 | ${top_builddir}/../kpathsea/paths.h: |
| 28771 | cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28772 | fi |
| 28773 | |
| 28774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5 |
| 28775 | printf %s "checking if libkpathsea supports debugging... " >&6; } |
| 28776 | if test ${kpse_cv_kpse_debug+y} |
| 28777 | then : |
| 28778 | printf %s "(cached) " >&6 |
| 28779 | else case e in #( |
| 28780 | e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" |
| 28781 | eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" |
| 28782 | |
| 28783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28784 | /* end confdefs.h. */ |
| 28785 | #include <kpathsea/kpathsea.h> |
| 28786 | int |
| 28787 | main (void) |
| 28788 | { |
| 28789 | FILE *f = fopen("f", "r") |
| 28790 | ; |
| 28791 | return 0; |
| 28792 | } |
| 28793 | _ACEOF |
| 28794 | if ac_fn_c_try_link "$LINENO" |
| 28795 | then : |
| 28796 | kpse_cv_kpse_debug=yes |
| 28797 | else case e in #( |
| 28798 | e) kpse_cv_kpse_debug=no ;; |
| 28799 | esac |
| 28800 | fi |
| 28801 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28802 | conftest$ac_exeext conftest.$ac_ext |
| 28803 | CPPFLAGS=$kpse_save_CPPFLAGS |
| 28804 | LIBS=$kpse_save_LIBS |
| 28805 | ;; |
| 28806 | esac |
| 28807 | fi |
| 28808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5 |
| 28809 | printf "%s\n" "$kpse_cv_kpse_debug" >&6; } |
| 28810 | if test "x$kpse_cv_kpse_debug" != xyes |
| 28811 | then : |
| 28812 | KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG" |
| 28813 | fi |
| 28814 | |
| 28815 | |
| 28816 | ##tldbg _KPSE_LIB_FLAGS: Setup ptexenc (-lptexenc) flags. |
| 28817 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=ptexenc, libname=ptexenc, options=lt, tlincl=-IBLD/texk/ptexenc -ISRC/texk/ptexenc, tllib=BLD/texk/ptexenc/libptexenc.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h, rebuildblddeps=.' >&5 |
| 28818 | ##tldbg _KPSE_LIB_FLAGS_TL: ptexenc (ptexenc) lt. |
| 28819 | |
| 28820 | # Check whether --with-system-ptexenc was given. |
| 28821 | if test ${with_system_ptexenc+y} |
| 28822 | then : |
| 28823 | withval=$with_system_ptexenc; |
| 28824 | fi |
| 28825 | if test "x$with_system_ptexenc" = xyes; then |
| 28826 | if $PKG_CONFIG ptexenc; then |
| 28827 | PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags` |
| 28828 | PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs` |
| 28829 | elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then |
| 28830 | as_fn_error $? "did not find ptexenc" "$LINENO" 5 |
| 28831 | fi |
| 28832 | else |
| 28833 | PTEXENC_INCLUDES="-I$kpse_BLD/texk/ptexenc -I$kpse_SRC/texk/ptexenc" |
| 28834 | PTEXENC_LIBS="$kpse_BLD/texk/ptexenc/libptexenc.la" |
| 28835 | PTEXENC_DEPEND='${top_builddir}/../ptexenc/libptexenc.la' |
| 28836 | PTEXENC_RULE='# Rebuild libptexenc |
| 28837 | $(PTEXENC_DEPEND): ${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h |
| 28838 | cd ${top_builddir}/../ptexenc && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28839 | fi |
| 28840 | |
| 28841 | ##tldbg _KPSE_LIB_FLAGS: Setup pplib (-lpplib) flags. |
| 28842 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=pplib, libname=pplib, options=tree, tlincl=-IBLD/libs/pplib/include, tllib=BLD/libs/pplib/libpplib.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/pplib/include/pplib.h.' >&5 |
| 28843 | ##tldbg _KPSE_LIB_FLAGS_TL: pplib (pplib) tree. |
| 28844 | PPLIB_INCLUDES="-I$kpse_BLD/libs/pplib/include" |
| 28845 | PPLIB_LIBS="$kpse_BLD/libs/pplib/libpplib.a" |
| 28846 | PPLIB_DEPEND='${top_builddir}/../../libs/pplib/libpplib.a' |
| 28847 | PPLIB_RULE='# Rebuild libpplib |
| 28848 | $(PPLIB_DEPEND): ${top_builddir}/../../libs/pplib/include/pplib.h |
| 28849 | cd ${top_builddir}/../../libs/pplib && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 28850 | ${top_builddir}/../../libs/pplib/include/pplib.h: |
| 28851 | cd ${top_builddir}/../../libs/pplib && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28852 | |
| 28853 | ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags. |
| 28854 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5 |
| 28855 | ##tldbg _KPSE_LIB_FLAGS_TL: zlib (z) . |
| 28856 | |
| 28857 | # Check whether --with-system-zlib was given. |
| 28858 | if test ${with_system_zlib+y} |
| 28859 | then : |
| 28860 | withval=$with_system_zlib; |
| 28861 | fi |
| 28862 | |
| 28863 | # Check whether --with-zlib-includes was given. |
| 28864 | if test ${with_zlib_includes+y} |
| 28865 | then : |
| 28866 | withval=$with_zlib_includes; |
| 28867 | fi |
| 28868 | |
| 28869 | # Check whether --with-zlib-libdir was given. |
| 28870 | if test ${with_zlib_libdir+y} |
| 28871 | then : |
| 28872 | withval=$with_zlib_libdir; |
| 28873 | fi |
| 28874 | if test "x$with_system_zlib" = xyes; then |
| 28875 | ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z). |
| 28876 | if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then |
| 28877 | ZLIB_INCLUDES="-I$with_zlib_includes" |
| 28878 | fi |
| 28879 | ZLIB_LIBS="-lz" |
| 28880 | if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then |
| 28881 | ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS" |
| 28882 | fi |
| 28883 | else |
| 28884 | ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include" |
| 28885 | ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a" |
| 28886 | ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a' |
| 28887 | ZLIB_RULE='# Rebuild libz |
| 28888 | $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h |
| 28889 | cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 28890 | ${top_builddir}/../../libs/zlib/include/zconf.h: |
| 28891 | cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28892 | fi |
| 28893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5 |
| 28894 | printf %s "checking if <zlib.h> defines 'z_const'... " >&6; } |
| 28895 | if test ${kpse_cv_have_decl_z_const+y} |
| 28896 | then : |
| 28897 | printf %s "(cached) " >&6 |
| 28898 | else case e in #( |
| 28899 | e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\" |
| 28900 | eval LIBS=\"$ZLIB_LIBS \$LIBS\" |
| 28901 | |
| 28902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28903 | /* end confdefs.h. */ |
| 28904 | #include <zlib.h> |
| 28905 | int |
| 28906 | main (void) |
| 28907 | { |
| 28908 | z_const char * foo(); |
| 28909 | ; |
| 28910 | return 0; |
| 28911 | } |
| 28912 | _ACEOF |
| 28913 | if ac_fn_c_try_compile "$LINENO" |
| 28914 | then : |
| 28915 | kpse_cv_have_decl_z_const=yes |
| 28916 | else case e in #( |
| 28917 | e) kpse_cv_have_decl_z_const=no ;; |
| 28918 | esac |
| 28919 | fi |
| 28920 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28921 | CPPFLAGS=$kpse_save_CPPFLAGS |
| 28922 | LIBS=$kpse_save_LIBS |
| 28923 | ;; |
| 28924 | esac |
| 28925 | fi |
| 28926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5 |
| 28927 | printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; } |
| 28928 | case $kpse_cv_have_decl_z_const in #( |
| 28929 | yes) : |
| 28930 | |
| 28931 | printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h |
| 28932 | ;; #( |
| 28933 | *) : |
| 28934 | |
| 28935 | printf "%s\n" "#define z_const /**/" >>confdefs.h |
| 28936 | ;; |
| 28937 | esac |
| 28938 | |
| 28939 | ##tldbg _KPSE_LIB_FLAGS: Setup lua53 (-ltexlua53) flags. |
| 28940 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=lua53, libname=texlua53, options=lt tree, tlincl=-IBLD/libs/lua53/include, tllib=BLD/libs/lua53/libtexlua53.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/lua53/include/lua.h.' >&5 |
| 28941 | ##tldbg _KPSE_LIB_FLAGS_TL: lua53 (texlua53) lt tree. |
| 28942 | LUA53_INCLUDES="-I$kpse_BLD/libs/lua53/include" |
| 28943 | LUA53_LIBS="$kpse_BLD/libs/lua53/libtexlua53.la" |
| 28944 | LUA53_DEPEND='${top_builddir}/../../libs/lua53/libtexlua53.la' |
| 28945 | LUA53_RULE='# Rebuild libtexlua53 |
| 28946 | $(LUA53_DEPEND): ${top_builddir}/../../libs/lua53/include/lua.h |
| 28947 | cd ${top_builddir}/../../libs/lua53 && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 28948 | ${top_builddir}/../../libs/lua53/include/lua.h: |
| 28949 | cd ${top_builddir}/../../libs/lua53 && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28950 | |
| 28951 | ##tldbg _KPSE_LIB_FLAGS: Setup lua52 (-ltexlua52) flags. |
| 28952 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=lua52, libname=texlua52, options=lt tree, tlincl=-IBLD/libs/lua52/include, tllib=BLD/libs/lua52/libtexlua52.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/lua52/include/lua.h.' >&5 |
| 28953 | ##tldbg _KPSE_LIB_FLAGS_TL: lua52 (texlua52) lt tree. |
| 28954 | LUA52_INCLUDES="-I$kpse_BLD/libs/lua52/include" |
| 28955 | LUA52_LIBS="$kpse_BLD/libs/lua52/libtexlua52.la" |
| 28956 | LUA52_DEPEND='${top_builddir}/../../libs/lua52/libtexlua52.la' |
| 28957 | LUA52_RULE='# Rebuild libtexlua52 |
| 28958 | $(LUA52_DEPEND): ${top_builddir}/../../libs/lua52/include/lua.h |
| 28959 | cd ${top_builddir}/../../libs/lua52 && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 28960 | ${top_builddir}/../../libs/lua52/include/lua.h: |
| 28961 | cd ${top_builddir}/../../libs/lua52 && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28962 | |
| 28963 | echo 'tldbg:KPSE_LUAJIT_FLAGS called.' >&5 |
| 28964 | ##tldbg _KPSE_LIB_FLAGS: Setup luajit (-ltexluajit) flags. |
| 28965 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=luajit, libname=texluajit, options=lt, tlincl=-IBLD/libs/luajit/include, tllib=BLD/libs/luajit/libtexluajit.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/luajit/include/luajit.h.' >&5 |
| 28966 | ##tldbg _KPSE_LIB_FLAGS_TL: luajit (texluajit) lt. |
| 28967 | |
| 28968 | # Check whether --with-system-luajit was given. |
| 28969 | if test ${with_system_luajit+y} |
| 28970 | then : |
| 28971 | withval=$with_system_luajit; |
| 28972 | fi |
| 28973 | if test "x$with_system_luajit" = xyes; then |
| 28974 | if $PKG_CONFIG luajit; then |
| 28975 | LUAJIT_INCLUDES=`$PKG_CONFIG luajit --cflags` |
| 28976 | LUAJIT_LIBS=`$PKG_CONFIG luajit --libs` |
| 28977 | elif test "x$need_luajit:$with_system_luajit" = xyes:yes; then |
| 28978 | as_fn_error $? "did not find luajit" "$LINENO" 5 |
| 28979 | fi |
| 28980 | else |
| 28981 | LUAJIT_INCLUDES="-I$kpse_BLD/libs/luajit/include" |
| 28982 | LUAJIT_LIBS="$kpse_BLD/libs/luajit/libtexluajit.la" |
| 28983 | LUAJIT_DEPEND='${top_builddir}/../../libs/luajit/libtexluajit.la' |
| 28984 | LUAJIT_RULE='# Rebuild libtexluajit |
| 28985 | $(LUAJIT_DEPEND): ${top_builddir}/../../libs/luajit/include/luajit.h |
| 28986 | cd ${top_builddir}/../../libs/luajit && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 28987 | ${top_builddir}/../../libs/luajit/include/luajit.h: |
| 28988 | cd ${top_builddir}/../../libs/luajit && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 28989 | fi |
| 28990 | # |
| 28991 | # checking for openbsd for additional jit libraries needed, which is the |
| 28992 | # case for clang; no point in going to the trouble elsewhere since no |
| 28993 | # other system needs it. |
| 28994 | case $build_os in |
| 28995 | openbsd*) |
| 28996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking on openbsd if additional jit libraries are needed" >&5 |
| 28997 | printf %s "checking on openbsd if additional jit libraries are needed... " >&6; } |
| 28998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28999 | /* end confdefs.h. */ |
| 29000 | #include "stdint.h" |
| 29001 | typedef struct _Unwind_Context _Unwind_Context; |
| 29002 | extern uintptr_t _Unwind_GetCFA(_Unwind_Context *); |
| 29003 | int |
| 29004 | main (void) |
| 29005 | { |
| 29006 | _Unwind_Context *ctx; |
| 29007 | _Unwind_GetCFA(ctx); |
| 29008 | |
| 29009 | ; |
| 29010 | return 0; |
| 29011 | } |
| 29012 | _ACEOF |
| 29013 | if ac_fn_c_try_link "$LINENO" |
| 29014 | then : |
| 29015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29016 | printf "%s\n" "no" >&6; } |
| 29017 | else case e in #( |
| 29018 | e) |
| 29019 | jitlibs="-lc++abi -lpthread" |
| 29020 | save_LIBS=$LIBS |
| 29021 | LIBS="$LIBS $jitlibs" |
| 29022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29023 | /* end confdefs.h. */ |
| 29024 | #include "stdint.h" |
| 29025 | typedef struct _Unwind_Context _Unwind_Context; |
| 29026 | extern uintptr_t _Unwind_GetCFA(_Unwind_Context *); |
| 29027 | int |
| 29028 | main (void) |
| 29029 | { |
| 29030 | _Unwind_Context *ctx; |
| 29031 | _Unwind_GetCFA(ctx); |
| 29032 | |
| 29033 | ; |
| 29034 | return 0; |
| 29035 | } |
| 29036 | _ACEOF |
| 29037 | if ac_fn_c_try_link "$LINENO" |
| 29038 | then : |
| 29039 | |
| 29040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$jitlibs\"" >&5 |
| 29041 | printf "%s\n" "\"$jitlibs\"" >&6; } |
| 29042 | LIBLUAJIT_LDEXTRA="$LIBLUAJIT_LDEXTRA $jitlibs" |
| 29043 | |
| 29044 | else case e in #( |
| 29045 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 29046 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 29047 | as_fn_error $? "luajit could not be linked |
| 29048 | See 'config.log' for more details" "$LINENO" 5; } |
| 29049 | ;; |
| 29050 | esac |
| 29051 | fi |
| 29052 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29053 | conftest$ac_exeext conftest.$ac_ext |
| 29054 | LIBS=$save_LIBS |
| 29055 | |
| 29056 | ;; |
| 29057 | esac |
| 29058 | fi |
| 29059 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29060 | conftest$ac_exeext conftest.$ac_ext |
| 29061 | ;; |
| 29062 | esac |
| 29063 | echo 'tldbg:KPSE_LUAJIT_FLAGS done.' >&5 |
| 29064 | |
| 29065 | ##tldbg _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags. |
| 29066 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=libpng, libname=png, options=, tlincl=-IBLD/libs/libpng/include, tllib=BLD/libs/libpng/libpng.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/libpng/include/png.h.' >&5 |
| 29067 | ##tldbg _KPSE_LIB_FLAGS_TL: libpng (png) . |
| 29068 | |
| 29069 | # Check whether --with-system-libpng was given. |
| 29070 | if test ${with_system_libpng+y} |
| 29071 | then : |
| 29072 | withval=$with_system_libpng; |
| 29073 | fi |
| 29074 | if test "x$with_system_libpng" = xyes; then |
| 29075 | if $PKG_CONFIG libpng; then |
| 29076 | LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags` |
| 29077 | LIBPNG_LIBS=`$PKG_CONFIG libpng --libs` |
| 29078 | elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then |
| 29079 | as_fn_error $? "did not find libpng" "$LINENO" 5 |
| 29080 | fi |
| 29081 | else |
| 29082 | LIBPNG_INCLUDES="-I$kpse_BLD/libs/libpng/include" |
| 29083 | LIBPNG_LIBS="$kpse_BLD/libs/libpng/libpng.a" |
| 29084 | LIBPNG_DEPEND='${top_builddir}/../../libs/libpng/libpng.a' |
| 29085 | LIBPNG_RULE='# Rebuild libpng |
| 29086 | $(LIBPNG_DEPEND): ${top_builddir}/../../libs/libpng/include/png.h |
| 29087 | cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29088 | ${top_builddir}/../../libs/libpng/include/png.h: |
| 29089 | cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29090 | fi |
| 29091 | |
| 29092 | ##tldbg _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags. |
| 29093 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=freetype2, libname=freetype, options=, tlincl=-IBLD/libs/freetype2/freetype2, tllib=BLD/libs/freetype2/libfreetype.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/freetype2/freetype2/ft2build.h.' >&5 |
| 29094 | ##tldbg _KPSE_LIB_FLAGS_TL: freetype2 (freetype) . |
| 29095 | |
| 29096 | # Check whether --with-system-freetype2 was given. |
| 29097 | if test ${with_system_freetype2+y} |
| 29098 | then : |
| 29099 | withval=$with_system_freetype2; |
| 29100 | fi |
| 29101 | if test "x$with_system_freetype2" = xyes; then |
| 29102 | if test -n "$ac_tool_prefix"; then |
| 29103 | # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args. |
| 29104 | set dummy ${ac_tool_prefix}freetype-config; ac_word=$2 |
| 29105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29106 | printf %s "checking for $ac_word... " >&6; } |
| 29107 | if test ${ac_cv_prog_FT2_CONFIG+y} |
| 29108 | then : |
| 29109 | printf %s "(cached) " >&6 |
| 29110 | else case e in #( |
| 29111 | e) if test -n "$FT2_CONFIG"; then |
| 29112 | ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test. |
| 29113 | else |
| 29114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29115 | for as_dir in $PATH |
| 29116 | do |
| 29117 | IFS=$as_save_IFS |
| 29118 | case $as_dir in #((( |
| 29119 | '') as_dir=./ ;; |
| 29120 | */) ;; |
| 29121 | *) as_dir=$as_dir/ ;; |
| 29122 | esac |
| 29123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29124 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29125 | ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config" |
| 29126 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29127 | break 2 |
| 29128 | fi |
| 29129 | done |
| 29130 | done |
| 29131 | IFS=$as_save_IFS |
| 29132 | |
| 29133 | fi ;; |
| 29134 | esac |
| 29135 | fi |
| 29136 | FT2_CONFIG=$ac_cv_prog_FT2_CONFIG |
| 29137 | if test -n "$FT2_CONFIG"; then |
| 29138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5 |
| 29139 | printf "%s\n" "$FT2_CONFIG" >&6; } |
| 29140 | else |
| 29141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29142 | printf "%s\n" "no" >&6; } |
| 29143 | fi |
| 29144 | |
| 29145 | |
| 29146 | fi |
| 29147 | if test -z "$ac_cv_prog_FT2_CONFIG"; then |
| 29148 | ac_ct_FT2_CONFIG=$FT2_CONFIG |
| 29149 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 29150 | set dummy freetype-config; ac_word=$2 |
| 29151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29152 | printf %s "checking for $ac_word... " >&6; } |
| 29153 | if test ${ac_cv_prog_ac_ct_FT2_CONFIG+y} |
| 29154 | then : |
| 29155 | printf %s "(cached) " >&6 |
| 29156 | else case e in #( |
| 29157 | e) if test -n "$ac_ct_FT2_CONFIG"; then |
| 29158 | ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test. |
| 29159 | else |
| 29160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29161 | for as_dir in $PATH |
| 29162 | do |
| 29163 | IFS=$as_save_IFS |
| 29164 | case $as_dir in #((( |
| 29165 | '') as_dir=./ ;; |
| 29166 | */) ;; |
| 29167 | *) as_dir=$as_dir/ ;; |
| 29168 | esac |
| 29169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29170 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29171 | ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config" |
| 29172 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29173 | break 2 |
| 29174 | fi |
| 29175 | done |
| 29176 | done |
| 29177 | IFS=$as_save_IFS |
| 29178 | |
| 29179 | fi ;; |
| 29180 | esac |
| 29181 | fi |
| 29182 | ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG |
| 29183 | if test -n "$ac_ct_FT2_CONFIG"; then |
| 29184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5 |
| 29185 | printf "%s\n" "$ac_ct_FT2_CONFIG" >&6; } |
| 29186 | else |
| 29187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29188 | printf "%s\n" "no" >&6; } |
| 29189 | fi |
| 29190 | |
| 29191 | if test "x$ac_ct_FT2_CONFIG" = x; then |
| 29192 | FT2_CONFIG="false" |
| 29193 | else |
| 29194 | case $cross_compiling:$ac_tool_warned in |
| 29195 | yes:) |
| 29196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 29197 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 29198 | ac_tool_warned=yes ;; |
| 29199 | esac |
| 29200 | FT2_CONFIG=$ac_ct_FT2_CONFIG |
| 29201 | fi |
| 29202 | else |
| 29203 | FT2_CONFIG="$ac_cv_prog_FT2_CONFIG" |
| 29204 | fi |
| 29205 | if test -n "$ac_tool_prefix"; then |
| 29206 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 29207 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 29208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29209 | printf %s "checking for $ac_word... " >&6; } |
| 29210 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 29211 | then : |
| 29212 | printf %s "(cached) " >&6 |
| 29213 | else case e in #( |
| 29214 | e) if test -n "$PKG_CONFIG"; then |
| 29215 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 29216 | else |
| 29217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29218 | for as_dir in $PATH |
| 29219 | do |
| 29220 | IFS=$as_save_IFS |
| 29221 | case $as_dir in #((( |
| 29222 | '') as_dir=./ ;; |
| 29223 | */) ;; |
| 29224 | *) as_dir=$as_dir/ ;; |
| 29225 | esac |
| 29226 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29227 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29228 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 29229 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29230 | break 2 |
| 29231 | fi |
| 29232 | done |
| 29233 | done |
| 29234 | IFS=$as_save_IFS |
| 29235 | |
| 29236 | fi ;; |
| 29237 | esac |
| 29238 | fi |
| 29239 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 29240 | if test -n "$PKG_CONFIG"; then |
| 29241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 29242 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 29243 | else |
| 29244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29245 | printf "%s\n" "no" >&6; } |
| 29246 | fi |
| 29247 | |
| 29248 | |
| 29249 | fi |
| 29250 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 29251 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 29252 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 29253 | set dummy pkg-config; ac_word=$2 |
| 29254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29255 | printf %s "checking for $ac_word... " >&6; } |
| 29256 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 29257 | then : |
| 29258 | printf %s "(cached) " >&6 |
| 29259 | else case e in #( |
| 29260 | e) if test -n "$ac_ct_PKG_CONFIG"; then |
| 29261 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 29262 | else |
| 29263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29264 | for as_dir in $PATH |
| 29265 | do |
| 29266 | IFS=$as_save_IFS |
| 29267 | case $as_dir in #((( |
| 29268 | '') as_dir=./ ;; |
| 29269 | */) ;; |
| 29270 | *) as_dir=$as_dir/ ;; |
| 29271 | esac |
| 29272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29273 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29274 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 29275 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29276 | break 2 |
| 29277 | fi |
| 29278 | done |
| 29279 | done |
| 29280 | IFS=$as_save_IFS |
| 29281 | |
| 29282 | fi ;; |
| 29283 | esac |
| 29284 | fi |
| 29285 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 29286 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 29287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 29288 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
| 29289 | else |
| 29290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29291 | printf "%s\n" "no" >&6; } |
| 29292 | fi |
| 29293 | |
| 29294 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 29295 | PKG_CONFIG="false" |
| 29296 | else |
| 29297 | case $cross_compiling:$ac_tool_warned in |
| 29298 | yes:) |
| 29299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 29300 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 29301 | ac_tool_warned=yes ;; |
| 29302 | esac |
| 29303 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 29304 | fi |
| 29305 | else |
| 29306 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 29307 | fi |
| 29308 | if $FT2_CONFIG --ftversion >/dev/null 2>&1; then |
| 29309 | FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags` |
| 29310 | FREETYPE2_LIBS=`$FT2_CONFIG --libs` |
| 29311 | elif $PKG_CONFIG --libs freetype2 >/dev/null 2>&1; then |
| 29312 | FREETYPE2_INCLUDES=`$PKG_CONFIG --cflags freetype2` |
| 29313 | FREETYPE2_LIBS=`$PKG_CONFIG --libs freetype2` |
| 29314 | elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then |
| 29315 | as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5 |
| 29316 | fi |
| 29317 | else |
| 29318 | FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2" |
| 29319 | FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a" |
| 29320 | FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a' |
| 29321 | FREETYPE2_RULE='# Rebuild libfreetype |
| 29322 | $(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h |
| 29323 | cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29324 | ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h: |
| 29325 | cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29326 | fi |
| 29327 | |
| 29328 | ##tldbg _KPSE_LIB_FLAGS: Setup pixman (-lpixman) flags. |
| 29329 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=pixman, libname=pixman, options=, tlincl=-IBLD/libs/pixman/include, tllib=BLD/libs/pixman/libpixman.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/pixman/include/pixman.h.' >&5 |
| 29330 | ##tldbg _KPSE_LIB_FLAGS_TL: pixman (pixman) . |
| 29331 | |
| 29332 | # Check whether --with-system-pixman was given. |
| 29333 | if test ${with_system_pixman+y} |
| 29334 | then : |
| 29335 | withval=$with_system_pixman; |
| 29336 | fi |
| 29337 | if test "x$with_system_pixman" = xyes; then |
| 29338 | if $PKG_CONFIG pixman-1 --atleast-version=0.18; then |
| 29339 | PIXMAN_INCLUDES=`$PKG_CONFIG pixman-1 --cflags` |
| 29340 | PIXMAN_LIBS=`$PKG_CONFIG pixman-1 --libs` |
| 29341 | elif test "x$need_pixman:$with_system_pixman" = xyes:yes; then |
| 29342 | as_fn_error $? "did not find pixman-1 0.18 or better" "$LINENO" 5 |
| 29343 | fi |
| 29344 | else |
| 29345 | PIXMAN_INCLUDES="-I$kpse_BLD/libs/pixman/include" |
| 29346 | PIXMAN_LIBS="$kpse_BLD/libs/pixman/libpixman.a" |
| 29347 | PIXMAN_DEPEND='${top_builddir}/../../libs/pixman/libpixman.a' |
| 29348 | PIXMAN_RULE='# Rebuild libpixman |
| 29349 | $(PIXMAN_DEPEND): ${top_builddir}/../../libs/pixman/include/pixman.h |
| 29350 | cd ${top_builddir}/../../libs/pixman && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29351 | ${top_builddir}/../../libs/pixman/include/pixman.h: |
| 29352 | cd ${top_builddir}/../../libs/pixman && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29353 | fi |
| 29354 | |
| 29355 | ##tldbg _KPSE_LIB_FLAGS: Setup cairo (-lcairo) flags. |
| 29356 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=cairo, libname=cairo, options=, tlincl=-IBLD/libs/cairo/cairo, tllib=BLD/libs/cairo/libcairo.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/cairo/cairo/cairo.h.' >&5 |
| 29357 | ##tldbg _KPSE_LIB_FLAGS_TL: cairo (cairo) . |
| 29358 | |
| 29359 | # Check whether --with-system-cairo was given. |
| 29360 | if test ${with_system_cairo+y} |
| 29361 | then : |
| 29362 | withval=$with_system_cairo; |
| 29363 | fi |
| 29364 | if test "x$with_system_cairo" = xyes; then |
| 29365 | if $PKG_CONFIG cairo --atleast-version=1.12; then |
| 29366 | CAIRO_INCLUDES=`$PKG_CONFIG cairo --cflags` |
| 29367 | CAIRO_LIBS=`$PKG_CONFIG cairo --libs` |
| 29368 | elif test "x$need_cairo:$with_system_cairo" = xyes:yes; then |
| 29369 | as_fn_error $? "did not find cairo 1.12 or better" "$LINENO" 5 |
| 29370 | fi |
| 29371 | else |
| 29372 | CAIRO_INCLUDES="-I$kpse_BLD/libs/cairo/cairo" |
| 29373 | CAIRO_LIBS="$kpse_BLD/libs/cairo/libcairo.a" |
| 29374 | CAIRO_DEPEND='${top_builddir}/../../libs/cairo/libcairo.a' |
| 29375 | CAIRO_RULE='# Rebuild libcairo |
| 29376 | $(CAIRO_DEPEND): ${top_builddir}/../../libs/cairo/cairo/cairo.h |
| 29377 | cd ${top_builddir}/../../libs/cairo && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29378 | ${top_builddir}/../../libs/cairo/cairo/cairo.h: |
| 29379 | cd ${top_builddir}/../../libs/cairo && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29380 | fi |
| 29381 | |
| 29382 | ##tldbg _KPSE_LIB_FLAGS: Setup potrace (-lpotrace) flags. |
| 29383 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=potrace, libname=potrace, options=, tlincl=-IBLD/libs/potrace/include, tllib=BLD/libs/potrace/libpotrace.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/potrace/include/potrace.h.' >&5 |
| 29384 | ##tldbg _KPSE_LIB_FLAGS_TL: potrace (potrace) . |
| 29385 | |
| 29386 | # Check whether --with-system-potrace was given. |
| 29387 | if test ${with_system_potrace+y} |
| 29388 | then : |
| 29389 | withval=$with_system_potrace; |
| 29390 | fi |
| 29391 | |
| 29392 | # Check whether --with-potrace-includes was given. |
| 29393 | if test ${with_potrace_includes+y} |
| 29394 | then : |
| 29395 | withval=$with_potrace_includes; |
| 29396 | fi |
| 29397 | |
| 29398 | # Check whether --with-potrace-libdir was given. |
| 29399 | if test ${with_potrace_libdir+y} |
| 29400 | then : |
| 29401 | withval=$with_potrace_libdir; |
| 29402 | fi |
| 29403 | if test "x$with_system_potrace" = xyes; then |
| 29404 | ##tldbg _KPSE_LIB_FLAGS_SYSTEM: potrace (potrace). |
| 29405 | if test "x$with_potrace_includes" != x && test "x$with_potrace_includes" != xyes; then |
| 29406 | POTRACE_INCLUDES="-I$with_potrace_includes" |
| 29407 | fi |
| 29408 | POTRACE_LIBS="-lpotrace" |
| 29409 | if test "x$with_potrace_libdir" != x && test "x$with_potrace_libdir" != xyes; then |
| 29410 | POTRACE_LIBS="-L$with_potrace_libdir $POTRACE_LIBS" |
| 29411 | fi |
| 29412 | else |
| 29413 | POTRACE_INCLUDES="-I$kpse_BLD/libs/potrace/include" |
| 29414 | POTRACE_LIBS="$kpse_BLD/libs/potrace/libpotrace.a" |
| 29415 | POTRACE_DEPEND='${top_builddir}/../../libs/potrace/libpotrace.a' |
| 29416 | POTRACE_RULE='# Rebuild libpotrace |
| 29417 | $(POTRACE_DEPEND): ${top_builddir}/../../libs/potrace/include/potrace.h |
| 29418 | cd ${top_builddir}/../../libs/potrace && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29419 | ${top_builddir}/../../libs/potrace/include/potrace.h: |
| 29420 | cd ${top_builddir}/../../libs/potrace && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29421 | fi |
| 29422 | |
| 29423 | ##tldbg _KPSE_LIB_FLAGS: Setup gmp (-lgmp) flags. |
| 29424 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=gmp, libname=gmp, options=, tlincl=-IBLD/libs/gmp/include, tllib=BLD/libs/gmp/libgmp.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/gmp/include/gmp.h.' >&5 |
| 29425 | ##tldbg _KPSE_LIB_FLAGS_TL: gmp (gmp) . |
| 29426 | |
| 29427 | # Check whether --with-system-gmp was given. |
| 29428 | if test ${with_system_gmp+y} |
| 29429 | then : |
| 29430 | withval=$with_system_gmp; |
| 29431 | fi |
| 29432 | |
| 29433 | # Check whether --with-gmp-includes was given. |
| 29434 | if test ${with_gmp_includes+y} |
| 29435 | then : |
| 29436 | withval=$with_gmp_includes; |
| 29437 | fi |
| 29438 | |
| 29439 | # Check whether --with-gmp-libdir was given. |
| 29440 | if test ${with_gmp_libdir+y} |
| 29441 | then : |
| 29442 | withval=$with_gmp_libdir; |
| 29443 | fi |
| 29444 | if test "x$with_system_gmp" = xyes; then |
| 29445 | ##tldbg _KPSE_LIB_FLAGS_SYSTEM: gmp (gmp). |
| 29446 | if test "x$with_gmp_includes" != x && test "x$with_gmp_includes" != xyes; then |
| 29447 | GMP_INCLUDES="-I$with_gmp_includes" |
| 29448 | fi |
| 29449 | GMP_LIBS="-lgmp" |
| 29450 | if test "x$with_gmp_libdir" != x && test "x$with_gmp_libdir" != xyes; then |
| 29451 | GMP_LIBS="-L$with_gmp_libdir $GMP_LIBS" |
| 29452 | fi |
| 29453 | else |
| 29454 | GMP_INCLUDES="-I$kpse_BLD/libs/gmp/include" |
| 29455 | GMP_LIBS="$kpse_BLD/libs/gmp/libgmp.a" |
| 29456 | GMP_DEPEND='${top_builddir}/../../libs/gmp/libgmp.a' |
| 29457 | GMP_RULE='# Rebuild libgmp |
| 29458 | $(GMP_DEPEND): ${top_builddir}/../../libs/gmp/include/gmp.h |
| 29459 | cd ${top_builddir}/../../libs/gmp && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29460 | ${top_builddir}/../../libs/gmp/include/gmp.h: |
| 29461 | cd ${top_builddir}/../../libs/gmp && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29462 | fi |
| 29463 | |
| 29464 | ##tldbg _KPSE_LIB_FLAGS: Setup mpfr (-lmpfr) flags. |
| 29465 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=mpfr, libname=mpfr, options=, tlincl=-IBLD/libs/mpfr/include, tllib=BLD/libs/mpfr/libmpfr.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/mpfr/include/mpfr.h.' >&5 |
| 29466 | ##tldbg _KPSE_LIB_FLAGS_TL: mpfr (mpfr) . |
| 29467 | |
| 29468 | # Check whether --with-system-mpfr was given. |
| 29469 | if test ${with_system_mpfr+y} |
| 29470 | then : |
| 29471 | withval=$with_system_mpfr; |
| 29472 | fi |
| 29473 | |
| 29474 | # Check whether --with-mpfr-includes was given. |
| 29475 | if test ${with_mpfr_includes+y} |
| 29476 | then : |
| 29477 | withval=$with_mpfr_includes; |
| 29478 | fi |
| 29479 | |
| 29480 | # Check whether --with-mpfr-libdir was given. |
| 29481 | if test ${with_mpfr_libdir+y} |
| 29482 | then : |
| 29483 | withval=$with_mpfr_libdir; |
| 29484 | fi |
| 29485 | if test "x$with_system_mpfr" = xyes; then |
| 29486 | ##tldbg _KPSE_LIB_FLAGS_SYSTEM: mpfr (mpfr). |
| 29487 | if test "x$with_mpfr_includes" != x && test "x$with_mpfr_includes" != xyes; then |
| 29488 | MPFR_INCLUDES="-I$with_mpfr_includes" |
| 29489 | fi |
| 29490 | MPFR_LIBS="-lmpfr" |
| 29491 | if test "x$with_mpfr_libdir" != x && test "x$with_mpfr_libdir" != xyes; then |
| 29492 | MPFR_LIBS="-L$with_mpfr_libdir $MPFR_LIBS" |
| 29493 | fi |
| 29494 | else |
| 29495 | MPFR_INCLUDES="-I$kpse_BLD/libs/mpfr/include" |
| 29496 | MPFR_LIBS="$kpse_BLD/libs/mpfr/libmpfr.a" |
| 29497 | MPFR_DEPEND='${top_builddir}/../../libs/mpfr/libmpfr.a' |
| 29498 | MPFR_RULE='# Rebuild libmpfr |
| 29499 | $(MPFR_DEPEND): ${top_builddir}/../../libs/mpfr/include/mpfr.h |
| 29500 | cd ${top_builddir}/../../libs/mpfr && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29501 | ${top_builddir}/../../libs/mpfr/include/mpfr.h: |
| 29502 | cd ${top_builddir}/../../libs/mpfr && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29503 | fi |
| 29504 | |
| 29505 | ##tldbg _KPSE_LIB_FLAGS: Setup mpfi (-lmpfi) flags. |
| 29506 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=mpfi, libname=mpfi, options=, tlincl=-IBLD/libs/mpfi/include, tllib=BLD/libs/mpfi/libmpfi.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/mpfi/include/mpfi.h.' >&5 |
| 29507 | ##tldbg _KPSE_LIB_FLAGS_TL: mpfi (mpfi) . |
| 29508 | |
| 29509 | # Check whether --with-system-mpfi was given. |
| 29510 | if test ${with_system_mpfi+y} |
| 29511 | then : |
| 29512 | withval=$with_system_mpfi; |
| 29513 | fi |
| 29514 | |
| 29515 | # Check whether --with-mpfi-includes was given. |
| 29516 | if test ${with_mpfi_includes+y} |
| 29517 | then : |
| 29518 | withval=$with_mpfi_includes; |
| 29519 | fi |
| 29520 | |
| 29521 | # Check whether --with-mpfi-libdir was given. |
| 29522 | if test ${with_mpfi_libdir+y} |
| 29523 | then : |
| 29524 | withval=$with_mpfi_libdir; |
| 29525 | fi |
| 29526 | if test "x$with_system_mpfi" = xyes; then |
| 29527 | ##tldbg _KPSE_LIB_FLAGS_SYSTEM: mpfi (mpfi). |
| 29528 | if test "x$with_mpfi_includes" != x && test "x$with_mpfi_includes" != xyes; then |
| 29529 | MPFI_INCLUDES="-I$with_mpfi_includes" |
| 29530 | fi |
| 29531 | MPFI_LIBS="-lmpfi" |
| 29532 | if test "x$with_mpfi_libdir" != x && test "x$with_mpfi_libdir" != xyes; then |
| 29533 | MPFI_LIBS="-L$with_mpfi_libdir $MPFI_LIBS" |
| 29534 | fi |
| 29535 | else |
| 29536 | MPFI_INCLUDES="-I$kpse_BLD/libs/mpfi/include" |
| 29537 | MPFI_LIBS="$kpse_BLD/libs/mpfi/libmpfi.a" |
| 29538 | MPFI_DEPEND='${top_builddir}/../../libs/mpfi/libmpfi.a' |
| 29539 | MPFI_RULE='# Rebuild libmpfi |
| 29540 | $(MPFI_DEPEND): ${top_builddir}/../../libs/mpfi/include/mpfi.h |
| 29541 | cd ${top_builddir}/../../libs/mpfi && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29542 | ${top_builddir}/../../libs/mpfi/include/mpfi.h: |
| 29543 | cd ${top_builddir}/../../libs/mpfi && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29544 | fi |
| 29545 | |
| 29546 | ##tldbg _KPSE_LIB_FLAGS: Setup xpdf (-lxpdf) flags. |
| 29547 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=xpdf, libname=xpdf, options=, tlincl=-DPDF_PARSER_ONLY -IBLD/libs/xpdf -IBLD/libs/xpdf/goo -IBLD/libs/xpdf/xpdf, tllib=BLD/libs/xpdf/libxpdf.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/xpdf/xpdf/Stream.h.' >&5 |
| 29548 | ##tldbg _KPSE_LIB_FLAGS_TL: xpdf (xpdf) . |
| 29549 | : "kpse_xpdf_options - no-op" |
| 29550 | if test "x$with_system_xpdf" = xyes; then |
| 29551 | : "kpse_xpdf_system_flags - no-op" |
| 29552 | else |
| 29553 | XPDF_INCLUDES="-DPDF_PARSER_ONLY -I$kpse_BLD/libs/xpdf -I$kpse_BLD/libs/xpdf/goo -I$kpse_BLD/libs/xpdf/xpdf" |
| 29554 | XPDF_LIBS="$kpse_BLD/libs/xpdf/libxpdf.a" |
| 29555 | XPDF_DEPEND='${top_builddir}/../../libs/xpdf/libxpdf.a' |
| 29556 | XPDF_RULE='# Rebuild libxpdf |
| 29557 | $(XPDF_DEPEND): ${top_builddir}/../../libs/xpdf/xpdf/Stream.h |
| 29558 | cd ${top_builddir}/../../libs/xpdf && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29559 | ${top_builddir}/../../libs/xpdf/xpdf/Stream.h: |
| 29560 | cd ${top_builddir}/../../libs/xpdf && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29561 | fi |
| 29562 | test "x$kpse_cv_have_win32" = xno || XPDF_LIBS="$XPDF_LIBS -lgdi32" |
| 29563 | |
| 29564 | ##tldbg _KPSE_LIB_FLAGS: Setup zziplib (-lzzip) flags. |
| 29565 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zziplib, libname=zzip, options=, tlincl=-IBLD/libs/zziplib/include, tllib=BLD/libs/zziplib/libzzip.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zziplib/include/zzip/zzip.h.' >&5 |
| 29566 | ##tldbg _KPSE_LIB_FLAGS_TL: zziplib (zzip) . |
| 29567 | |
| 29568 | # Check whether --with-system-zziplib was given. |
| 29569 | if test ${with_system_zziplib+y} |
| 29570 | then : |
| 29571 | withval=$with_system_zziplib; |
| 29572 | fi |
| 29573 | if test "x$with_system_zziplib" = xyes; then |
| 29574 | if $PKG_CONFIG zziplib --atleast-version=0.12; then |
| 29575 | ZZIPLIB_INCLUDES=`$PKG_CONFIG zziplib --cflags` |
| 29576 | ZZIPLIB_LIBS=`$PKG_CONFIG zziplib --libs` |
| 29577 | elif test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then |
| 29578 | as_fn_error $? "did not find zziplib 0.12 or better" "$LINENO" 5 |
| 29579 | fi |
| 29580 | else |
| 29581 | ZZIPLIB_INCLUDES="-I$kpse_BLD/libs/zziplib/include" |
| 29582 | ZZIPLIB_LIBS="$kpse_BLD/libs/zziplib/libzzip.a" |
| 29583 | ZZIPLIB_DEPEND='${top_builddir}/../../libs/zziplib/libzzip.a' |
| 29584 | ZZIPLIB_RULE='# Rebuild libzzip |
| 29585 | $(ZZIPLIB_DEPEND): ${top_builddir}/../../libs/zziplib/include/zzip/zzip.h |
| 29586 | cd ${top_builddir}/../../libs/zziplib && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29587 | ${top_builddir}/../../libs/zziplib/include/zzip/zzip.h: |
| 29588 | cd ${top_builddir}/../../libs/zziplib && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29589 | fi |
| 29590 | |
| 29591 | ##tldbg _KPSE_LIB_FLAGS: Setup teckit (-lTECkit) flags. |
| 29592 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=teckit, libname=TECkit, options=, tlincl=-IBLD/libs/teckit/include, tllib=BLD/libs/teckit/libTECkit.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/teckit/include/teckit/TECkit_Common.h.' >&5 |
| 29593 | ##tldbg _KPSE_LIB_FLAGS_TL: teckit (TECkit) . |
| 29594 | |
| 29595 | # Check whether --with-system-teckit was given. |
| 29596 | if test ${with_system_teckit+y} |
| 29597 | then : |
| 29598 | withval=$with_system_teckit; |
| 29599 | fi |
| 29600 | if test "x$with_system_teckit" = xyes; then |
| 29601 | if $PKG_CONFIG teckit; then |
| 29602 | TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags` |
| 29603 | TECKIT_LIBS=`$PKG_CONFIG teckit --libs` |
| 29604 | elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then |
| 29605 | as_fn_error $? "did not find teckit" "$LINENO" 5 |
| 29606 | fi |
| 29607 | else |
| 29608 | TECKIT_INCLUDES="-I$kpse_BLD/libs/teckit/include" |
| 29609 | TECKIT_LIBS="$kpse_BLD/libs/teckit/libTECkit.a" |
| 29610 | TECKIT_DEPEND='${top_builddir}/../../libs/teckit/libTECkit.a' |
| 29611 | TECKIT_RULE='# Rebuild libTECkit |
| 29612 | $(TECKIT_DEPEND): ${top_builddir}/../../libs/teckit/include/teckit/TECkit_Common.h |
| 29613 | cd ${top_builddir}/../../libs/teckit && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29614 | ${top_builddir}/../../libs/teckit/include/teckit/TECkit_Common.h: |
| 29615 | cd ${top_builddir}/../../libs/teckit && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29616 | fi |
| 29617 | |
| 29618 | |
| 29619 | # XeTeX and lua[jit]hbtex and hitex need harfbuzz, though regular |
| 29620 | # luatex[53] does not. |
| 29621 | if test "x$enable_xetex" = xyes \ |
| 29622 | || test "x$enable_luahbtex" = xyes \ |
| 29623 | || test "x$enable_luajithbtex" = xyes \ |
| 29624 | || test "x$enable_hitex" = xyes; then |
| 29625 | ##tldbg _KPSE_LIB_FLAGS: Setup graphite2 (-lgraphite2) flags. |
| 29626 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=graphite2, libname=graphite2, options=, tlincl=-IBLD/libs/graphite2/include -DGRAPHITE2_STATIC, tllib=BLD/libs/graphite2/libgraphite2.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/graphite2/include/graphite2/Font.h.' >&5 |
| 29627 | ##tldbg _KPSE_LIB_FLAGS_TL: graphite2 (graphite2) . |
| 29628 | |
| 29629 | # Check whether --with-system-graphite2 was given. |
| 29630 | if test ${with_system_graphite2+y} |
| 29631 | then : |
| 29632 | withval=$with_system_graphite2; |
| 29633 | fi |
| 29634 | if test "x$with_system_graphite2" = xyes; then |
| 29635 | if $PKG_CONFIG graphite2; then |
| 29636 | GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags` |
| 29637 | GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs` |
| 29638 | elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then |
| 29639 | as_fn_error $? "did not find graphite2" "$LINENO" 5 |
| 29640 | fi |
| 29641 | else |
| 29642 | GRAPHITE2_INCLUDES="-I$kpse_BLD/libs/graphite2/include -DGRAPHITE2_STATIC" |
| 29643 | GRAPHITE2_LIBS="$kpse_BLD/libs/graphite2/libgraphite2.a" |
| 29644 | GRAPHITE2_DEPEND='${top_builddir}/../../libs/graphite2/libgraphite2.a' |
| 29645 | GRAPHITE2_RULE='# Rebuild libgraphite2 |
| 29646 | $(GRAPHITE2_DEPEND): ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h |
| 29647 | cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29648 | ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h: |
| 29649 | cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29650 | fi |
| 29651 | |
| 29652 | ##tldbg _KPSE_LIB_FLAGS: Setup harfbuzz (-lharfbuzz) flags. |
| 29653 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=harfbuzz, libname=harfbuzz, options=, tlincl=-IBLD/libs/harfbuzz/include, tllib=BLD/libs/harfbuzz/libharfbuzz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/harfbuzz/include/hb.h.' >&5 |
| 29654 | ##tldbg _KPSE_LIB_FLAGS_TL: harfbuzz (harfbuzz) . |
| 29655 | |
| 29656 | # Check whether --with-system-harfbuzz was given. |
| 29657 | if test ${with_system_harfbuzz+y} |
| 29658 | then : |
| 29659 | withval=$with_system_harfbuzz; |
| 29660 | fi |
| 29661 | if test "x$with_system_harfbuzz" = xyes; then |
| 29662 | if $PKG_CONFIG harfbuzz-subset; then |
| 29663 | HARFBUZZ_INCLUDES=`$PKG_CONFIG harfbuzz-subset --cflags` |
| 29664 | HARFBUZZ_LIBS=`$PKG_CONFIG harfbuzz-subset --libs` |
| 29665 | elif test "x$need_harfbuzz:$with_system_harfbuzz" = xyes:yes; then |
| 29666 | as_fn_error $? "did not find harfbuzz-subset" "$LINENO" 5 |
| 29667 | fi |
| 29668 | else |
| 29669 | HARFBUZZ_INCLUDES="-I$kpse_BLD/libs/harfbuzz/include" |
| 29670 | HARFBUZZ_LIBS="$kpse_BLD/libs/harfbuzz/libharfbuzz.a" |
| 29671 | HARFBUZZ_DEPEND='${top_builddir}/../../libs/harfbuzz/libharfbuzz.a' |
| 29672 | HARFBUZZ_RULE='# Rebuild libharfbuzz |
| 29673 | $(HARFBUZZ_DEPEND): ${top_builddir}/../../libs/harfbuzz/include/hb.h |
| 29674 | cd ${top_builddir}/../../libs/harfbuzz && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29675 | ${top_builddir}/../../libs/harfbuzz/include/hb.h: |
| 29676 | cd ${top_builddir}/../../libs/harfbuzz && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29677 | fi |
| 29678 | |
| 29679 | fi # end xetex/luatex for harfbuzz |
| 29680 | |
| 29681 | # XeTeX, but not LuaTeX, needs icu and graphite. |
| 29682 | if test "x$enable_xetex" = xyes; then |
| 29683 | echo 'tldbg:KPSE_ICU_FLAGS called: more-icu-libs=, icu-config-args=.' >&5 |
| 29684 | ##tldbg _KPSE_LIB_FLAGS: Setup icu (-licuxxx) flags. |
| 29685 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=icu, libname=icuxxx, options=, tlincl=-DU_STATIC_IMPLEMENTATION -IBLD/libs/icu/include, tllib= BLD/libs/icu/icu-build/lib/libicuuc.a BLD/libs/icu/icu-build/lib/libicudata.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/icu/include/unicode/uversion.h.' >&5 |
| 29686 | ##tldbg _KPSE_LIB_FLAGS_TL: icu (icuxxx) . |
| 29687 | |
| 29688 | # Check whether --with-system-icu was given. |
| 29689 | if test ${with_system_icu+y} |
| 29690 | then : |
| 29691 | withval=$with_system_icu; |
| 29692 | fi |
| 29693 | if test "x$with_system_icu" = xyes; then |
| 29694 | echo 'tldbg:KPSE_ICU_SYSTEM_FLAGS called.' >&5 |
| 29695 | if test -n "$ac_tool_prefix"; then |
| 29696 | # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args. |
| 29697 | set dummy ${ac_tool_prefix}icu-config; ac_word=$2 |
| 29698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29699 | printf %s "checking for $ac_word... " >&6; } |
| 29700 | if test ${ac_cv_prog_ICU_CONFIG+y} |
| 29701 | then : |
| 29702 | printf %s "(cached) " >&6 |
| 29703 | else case e in #( |
| 29704 | e) if test -n "$ICU_CONFIG"; then |
| 29705 | ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test. |
| 29706 | else |
| 29707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29708 | for as_dir in $PATH |
| 29709 | do |
| 29710 | IFS=$as_save_IFS |
| 29711 | case $as_dir in #((( |
| 29712 | '') as_dir=./ ;; |
| 29713 | */) ;; |
| 29714 | *) as_dir=$as_dir/ ;; |
| 29715 | esac |
| 29716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29717 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29718 | ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config" |
| 29719 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29720 | break 2 |
| 29721 | fi |
| 29722 | done |
| 29723 | done |
| 29724 | IFS=$as_save_IFS |
| 29725 | |
| 29726 | fi ;; |
| 29727 | esac |
| 29728 | fi |
| 29729 | ICU_CONFIG=$ac_cv_prog_ICU_CONFIG |
| 29730 | if test -n "$ICU_CONFIG"; then |
| 29731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5 |
| 29732 | printf "%s\n" "$ICU_CONFIG" >&6; } |
| 29733 | else |
| 29734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29735 | printf "%s\n" "no" >&6; } |
| 29736 | fi |
| 29737 | |
| 29738 | |
| 29739 | fi |
| 29740 | if test -z "$ac_cv_prog_ICU_CONFIG"; then |
| 29741 | ac_ct_ICU_CONFIG=$ICU_CONFIG |
| 29742 | # Extract the first word of "icu-config", so it can be a program name with args. |
| 29743 | set dummy icu-config; ac_word=$2 |
| 29744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29745 | printf %s "checking for $ac_word... " >&6; } |
| 29746 | if test ${ac_cv_prog_ac_ct_ICU_CONFIG+y} |
| 29747 | then : |
| 29748 | printf %s "(cached) " >&6 |
| 29749 | else case e in #( |
| 29750 | e) if test -n "$ac_ct_ICU_CONFIG"; then |
| 29751 | ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test. |
| 29752 | else |
| 29753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29754 | for as_dir in $PATH |
| 29755 | do |
| 29756 | IFS=$as_save_IFS |
| 29757 | case $as_dir in #((( |
| 29758 | '') as_dir=./ ;; |
| 29759 | */) ;; |
| 29760 | *) as_dir=$as_dir/ ;; |
| 29761 | esac |
| 29762 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29763 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29764 | ac_cv_prog_ac_ct_ICU_CONFIG="icu-config" |
| 29765 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29766 | break 2 |
| 29767 | fi |
| 29768 | done |
| 29769 | done |
| 29770 | IFS=$as_save_IFS |
| 29771 | |
| 29772 | fi ;; |
| 29773 | esac |
| 29774 | fi |
| 29775 | ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG |
| 29776 | if test -n "$ac_ct_ICU_CONFIG"; then |
| 29777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5 |
| 29778 | printf "%s\n" "$ac_ct_ICU_CONFIG" >&6; } |
| 29779 | else |
| 29780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29781 | printf "%s\n" "no" >&6; } |
| 29782 | fi |
| 29783 | |
| 29784 | if test "x$ac_ct_ICU_CONFIG" = x; then |
| 29785 | ICU_CONFIG="false" |
| 29786 | else |
| 29787 | case $cross_compiling:$ac_tool_warned in |
| 29788 | yes:) |
| 29789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 29790 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 29791 | ac_tool_warned=yes ;; |
| 29792 | esac |
| 29793 | ICU_CONFIG=$ac_ct_ICU_CONFIG |
| 29794 | fi |
| 29795 | else |
| 29796 | ICU_CONFIG="$ac_cv_prog_ICU_CONFIG" |
| 29797 | fi |
| 29798 | if test -n "$ac_tool_prefix"; then |
| 29799 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 29800 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 29801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29802 | printf %s "checking for $ac_word... " >&6; } |
| 29803 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 29804 | then : |
| 29805 | printf %s "(cached) " >&6 |
| 29806 | else case e in #( |
| 29807 | e) if test -n "$PKG_CONFIG"; then |
| 29808 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 29809 | else |
| 29810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29811 | for as_dir in $PATH |
| 29812 | do |
| 29813 | IFS=$as_save_IFS |
| 29814 | case $as_dir in #((( |
| 29815 | '') as_dir=./ ;; |
| 29816 | */) ;; |
| 29817 | *) as_dir=$as_dir/ ;; |
| 29818 | esac |
| 29819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29820 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29821 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 29822 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29823 | break 2 |
| 29824 | fi |
| 29825 | done |
| 29826 | done |
| 29827 | IFS=$as_save_IFS |
| 29828 | |
| 29829 | fi ;; |
| 29830 | esac |
| 29831 | fi |
| 29832 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 29833 | if test -n "$PKG_CONFIG"; then |
| 29834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 29835 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 29836 | else |
| 29837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29838 | printf "%s\n" "no" >&6; } |
| 29839 | fi |
| 29840 | |
| 29841 | |
| 29842 | fi |
| 29843 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 29844 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 29845 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 29846 | set dummy pkg-config; ac_word=$2 |
| 29847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 29848 | printf %s "checking for $ac_word... " >&6; } |
| 29849 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 29850 | then : |
| 29851 | printf %s "(cached) " >&6 |
| 29852 | else case e in #( |
| 29853 | e) if test -n "$ac_ct_PKG_CONFIG"; then |
| 29854 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 29855 | else |
| 29856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29857 | for as_dir in $PATH |
| 29858 | do |
| 29859 | IFS=$as_save_IFS |
| 29860 | case $as_dir in #((( |
| 29861 | '') as_dir=./ ;; |
| 29862 | */) ;; |
| 29863 | *) as_dir=$as_dir/ ;; |
| 29864 | esac |
| 29865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 29866 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 29867 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 29868 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 29869 | break 2 |
| 29870 | fi |
| 29871 | done |
| 29872 | done |
| 29873 | IFS=$as_save_IFS |
| 29874 | |
| 29875 | fi ;; |
| 29876 | esac |
| 29877 | fi |
| 29878 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 29879 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 29880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 29881 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
| 29882 | else |
| 29883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29884 | printf "%s\n" "no" >&6; } |
| 29885 | fi |
| 29886 | |
| 29887 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 29888 | PKG_CONFIG="false" |
| 29889 | else |
| 29890 | case $cross_compiling:$ac_tool_warned in |
| 29891 | yes:) |
| 29892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 29893 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 29894 | ac_tool_warned=yes ;; |
| 29895 | esac |
| 29896 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 29897 | fi |
| 29898 | else |
| 29899 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 29900 | fi |
| 29901 | if $ICU_CONFIG --version >/dev/null 2>&1; then |
| 29902 | ICU_INCLUDES=`$ICU_CONFIG --cppflags` |
| 29903 | ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly --ldflags-system` |
| 29904 | elif $PKG_CONFIG --libs icu-uc icu-io >/dev/null 2>&1; then |
| 29905 | ICU_INCLUDES=`$PKG_CONFIG --cflags icu-uc icu-io` |
| 29906 | ICU_LIBS=`$PKG_CONFIG --libs icu-uc icu-io` |
| 29907 | elif test "x$need_icu:$with_system_icu" = xyes:yes; then |
| 29908 | as_fn_error $? "did not find either pkg-config or icu-config; one is required for system icu library support" "$LINENO" 5 |
| 29909 | fi |
| 29910 | else |
| 29911 | ICU_INCLUDES="-DU_STATIC_IMPLEMENTATION -I$kpse_BLD/libs/icu/include" |
| 29912 | ICU_LIBS=" $kpse_BLD/libs/icu/icu-build/lib/libicuuc.a $kpse_BLD/libs/icu/icu-build/lib/libicudata.a" |
| 29913 | ICU_DEPEND=' ${top_builddir}/../../libs/icu/icu-build/lib/libicuuc.a ${top_builddir}/../../libs/icu/icu-build/lib/libicudata.a' |
| 29914 | ICU_RULE='# Rebuild libicuxxx |
| 29915 | $(ICU_DEPEND): ${top_builddir}/../../libs/icu/include/unicode/uversion.h |
| 29916 | cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29917 | ${top_builddir}/../../libs/icu/include/unicode/uversion.h: |
| 29918 | cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29919 | fi |
| 29920 | # checking for openbsd to add -lpthread for icu. |
| 29921 | case $build_os in |
| 29922 | openbsd*) |
| 29923 | eval ICUXXX_LIBS=\"$ICUXXX_LIBS -lpthread\" |
| 29924 | ;; |
| 29925 | esac |
| 29926 | |
| 29927 | ##tldbg _KPSE_LIB_FLAGS: Setup graphite2 (-lgraphite2) flags. |
| 29928 | echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=graphite2, libname=graphite2, options=, tlincl=-IBLD/libs/graphite2/include -DGRAPHITE2_STATIC, tllib=BLD/libs/graphite2/libgraphite2.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/graphite2/include/graphite2/Font.h.' >&5 |
| 29929 | ##tldbg _KPSE_LIB_FLAGS_TL: graphite2 (graphite2) . |
| 29930 | |
| 29931 | # Check whether --with-system-graphite2 was given. |
| 29932 | if test ${with_system_graphite2+y} |
| 29933 | then : |
| 29934 | withval=$with_system_graphite2; |
| 29935 | fi |
| 29936 | if test "x$with_system_graphite2" = xyes; then |
| 29937 | if $PKG_CONFIG graphite2; then |
| 29938 | GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags` |
| 29939 | GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs` |
| 29940 | elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then |
| 29941 | as_fn_error $? "did not find graphite2" "$LINENO" 5 |
| 29942 | fi |
| 29943 | else |
| 29944 | GRAPHITE2_INCLUDES="-I$kpse_BLD/libs/graphite2/include -DGRAPHITE2_STATIC" |
| 29945 | GRAPHITE2_LIBS="$kpse_BLD/libs/graphite2/libgraphite2.a" |
| 29946 | GRAPHITE2_DEPEND='${top_builddir}/../../libs/graphite2/libgraphite2.a' |
| 29947 | GRAPHITE2_RULE='# Rebuild libgraphite2 |
| 29948 | $(GRAPHITE2_DEPEND): ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h |
| 29949 | cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 29950 | ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h: |
| 29951 | cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 29952 | fi |
| 29953 | |
| 29954 | |
| 29955 | # XeTeX also needs fontconfig or the Mac ApplicationServices. |
| 29956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mac OS X ApplicationServices framework" >&5 |
| 29957 | printf %s "checking for Mac OS X ApplicationServices framework... " >&6; } |
| 29958 | if test ${kpse_cv_have_ApplicationServices+y} |
| 29959 | then : |
| 29960 | printf %s "(cached) " >&6 |
| 29961 | else case e in #( |
| 29962 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29963 | /* end confdefs.h. */ |
| 29964 | #include <ApplicationServices/ApplicationServices.h> |
| 29965 | int |
| 29966 | main (void) |
| 29967 | { |
| 29968 | CTFontRef font |
| 29969 | ; |
| 29970 | return 0; |
| 29971 | } |
| 29972 | _ACEOF |
| 29973 | if ac_fn_c_try_compile "$LINENO" |
| 29974 | then : |
| 29975 | kpse_cv_have_ApplicationServices=yes |
| 29976 | else case e in #( |
| 29977 | e) kpse_cv_have_ApplicationServices=no ;; |
| 29978 | esac |
| 29979 | fi |
| 29980 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 29981 | esac |
| 29982 | fi |
| 29983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_ApplicationServices" >&5 |
| 29984 | printf "%s\n" "$kpse_cv_have_ApplicationServices" >&6; } |
| 29985 | if test "x$kpse_cv_have_ApplicationServices" = xyes |
| 29986 | then : |
| 29987 | |
| 29988 | printf "%s\n" "#define HAVE_APPLICATIONSERVICES 1" >>confdefs.h |
| 29989 | |
| 29990 | fi |
| 29991 | |
| 29992 | |
| 29993 | # Check whether --with-fontconfig-includes was given. |
| 29994 | if test ${with_fontconfig_includes+y} |
| 29995 | then : |
| 29996 | withval=$with_fontconfig_includes; |
| 29997 | fi |
| 29998 | |
| 29999 | # Check whether --with-fontconfig-libdir was given. |
| 30000 | if test ${with_fontconfig_libdir+y} |
| 30001 | then : |
| 30002 | withval=$with_fontconfig_libdir; |
| 30003 | fi |
| 30004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for installed fontconfig headers and library" >&5 |
| 30005 | printf %s "checking for installed fontconfig headers and library... " >&6; } |
| 30006 | if test ${kpse_cv_have_fontconfig+y} |
| 30007 | then : |
| 30008 | printf %s "(cached) " >&6 |
| 30009 | else case e in #( |
| 30010 | e) kpse_save_CPPFLAGS=$CPPFLAGS |
| 30011 | kpse_save_LIBS=$LIBS |
| 30012 | kpse_cv_fontconfig_includes= |
| 30013 | kpse_cv_fontconfig_libs='-lfontconfig' |
| 30014 | if test "x$with_fontconfig_includes:$with_fontconfig_libdir" != x:; then |
| 30015 | if test "x$with_fontconfig_includes" != x; then |
| 30016 | kpse_cv_fontconfig_includes="-I$with_fontconfig_includes" |
| 30017 | fi |
| 30018 | if test "x$with_fontconfig_libdir" != x; then |
| 30019 | kpse_cv_fontconfig_libs="-L$with_fontconfig_libdir $kpse_cv_fontconfig_libs" |
| 30020 | fi |
| 30021 | elif $PKG_CONFIG fontconfig; then |
| 30022 | kpse_cv_fontconfig_includes=`$PKG_CONFIG fontconfig --cflags` |
| 30023 | kpse_cv_fontconfig_libs=`$PKG_CONFIG fontconfig --libs` |
| 30024 | fi |
| 30025 | CPPFLAGS="$kpse_cv_fontconfig_includes $CPPFLAGS" |
| 30026 | LIBS="$kpse_cv_fontconfig_libs $LIBS" |
| 30027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30028 | /* end confdefs.h. */ |
| 30029 | #include <fontconfig/fontconfig.h> |
| 30030 | int |
| 30031 | main (void) |
| 30032 | { |
| 30033 | FcObjectSet *os; FcInit(); |
| 30034 | ; |
| 30035 | return 0; |
| 30036 | } |
| 30037 | _ACEOF |
| 30038 | if ac_fn_c_try_link "$LINENO" |
| 30039 | then : |
| 30040 | kpse_cv_have_fontconfig=yes |
| 30041 | else case e in #( |
| 30042 | e) kpse_cv_have_fontconfig=no ;; |
| 30043 | esac |
| 30044 | fi |
| 30045 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30046 | conftest$ac_exeext conftest.$ac_ext |
| 30047 | CPPFLAGS=$kpse_save_CPPFLAGS |
| 30048 | LIBS=$kpse_save_LIBS ;; |
| 30049 | esac |
| 30050 | fi |
| 30051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_fontconfig" >&5 |
| 30052 | printf "%s\n" "$kpse_cv_have_fontconfig" >&6; } |
| 30053 | if test "x$kpse_cv_have_fontconfig" = xyes; then |
| 30054 | FONTCONFIG_INCLUDES=$kpse_cv_fontconfig_includes |
| 30055 | FONTCONFIG_LIBS=$kpse_cv_fontconfig_libs |
| 30056 | |
| 30057 | printf "%s\n" "#define HAVE_LIBFONTCONFIG 1" >>confdefs.h |
| 30058 | |
| 30059 | fi |
| 30060 | |
| 30061 | |
| 30062 | |
| 30063 | if test "x$kpse_cv_have_ApplicationServices:$kpse_cv_have_fontconfig" = xno:no |
| 30064 | then : |
| 30065 | if test "x$enable_xetex" = xyes |
| 30066 | then : |
| 30067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, neither ApplicationServices framework nor fontconfig library: disabling xetex" >&5 |
| 30068 | printf "%s\n" "$as_me: WARNING: Sorry, neither ApplicationServices framework nor fontconfig library: disabling xetex" >&2;} |
| 30069 | if test "x$enable_missing" = xno |
| 30070 | then : |
| 30071 | as_fn_error $? "kpse_msg_warn: terminating rather than warning since we have disable-missing." "$LINENO" 5 |
| 30072 | fi |
| 30073 | |
| 30074 | enable_xetex=no |
| 30075 | fi |
| 30076 | |
| 30077 | fi |
| 30078 | |
| 30079 | fi # end xetex for icu/graphite and fontconfig/mac font lookups. |
| 30080 | |
| 30081 | # Are we building XeTeX on Mac? Automake conditional required regardless. |
| 30082 | if (test "x$enable_xetex" = xyes \ |
| 30083 | && test "x$kpse_cv_have_ApplicationServices" = xyes); then |
| 30084 | XETEX_MACOSX_TRUE= |
| 30085 | XETEX_MACOSX_FALSE='#' |
| 30086 | else |
| 30087 | XETEX_MACOSX_TRUE='#' |
| 30088 | XETEX_MACOSX_FALSE= |
| 30089 | fi |
| 30090 | |
| 30091 | |
| 30092 | # Check size of off_t (using <kpathsea/config.h>) |
| 30093 | eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" |
| 30094 | eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" |
| 30095 | |
| 30096 | # The cast to long int works around a bug in the HP C Compiler |
| 30097 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 30098 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 30099 | # This bug is HP SR number 8606223364. |
| 30100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 30101 | printf %s "checking size of off_t... " >&6; } |
| 30102 | if test ${ac_cv_sizeof_off_t+y} |
| 30103 | then : |
| 30104 | printf %s "(cached) " >&6 |
| 30105 | else case e in #( |
| 30106 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default |
| 30107 | #include <kpathsea/config.h> |
| 30108 | " |
| 30109 | then : |
| 30110 | |
| 30111 | else case e in #( |
| 30112 | e) if test "$ac_cv_type_off_t" = yes; then |
| 30113 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 30114 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 30115 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 30116 | See 'config.log' for more details" "$LINENO" 5; } |
| 30117 | else |
| 30118 | ac_cv_sizeof_off_t=0 |
| 30119 | fi ;; |
| 30120 | esac |
| 30121 | fi |
| 30122 | ;; |
| 30123 | esac |
| 30124 | fi |
| 30125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 30126 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } |
| 30127 | |
| 30128 | |
| 30129 | |
| 30130 | printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
| 30131 | |
| 30132 | |
| 30133 | |
| 30134 | if test "x$with_system_kpathsea" = xyes; then |
| 30135 | # We want to support building Web2C (TeX & co.) |
| 30136 | # using installed (system) kpathsea headers and library. |
| 30137 | # In that case we need the location of <kpathsea/paths.h>. |
| 30138 | list="/usr/include /usr/local/include `echo $KPATHSEA_INCLUDES | sed 's/-I//g'`" |
| 30139 | found=no |
| 30140 | for KPATHSEA_PATHS_H in $list; do |
| 30141 | if test -r "$KPATHSEA_PATHS_H/kpathsea/paths.h"; then |
| 30142 | found=yes |
| 30143 | break |
| 30144 | fi |
| 30145 | done |
| 30146 | if test "x$found" = xno; then |
| 30147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: You requested to build \`web2c' using an installed \`kpathsea' version," >&5 |
| 30148 | printf "%s\n" "$as_me: You requested to build \`web2c' using an installed \`kpathsea' version," >&6;} |
| 30149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: which requires to locate the <kpathsea/paths.h> header file." >&5 |
| 30150 | printf "%s\n" "$as_me: which requires to locate the <kpathsea/paths.h> header file." >&6;} |
| 30151 | as_fn_error $? "Sorry, not found under any of: $list *****" "$LINENO" 5 |
| 30152 | fi |
| 30153 | else |
| 30154 | KPATHSEA_PATHS_H='${top_builddir}/..' |
| 30155 | fi |
| 30156 | |
| 30157 | |
| 30158 | ac_ext=cpp |
| 30159 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30160 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30161 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30162 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30163 | ac_link="./libtool --mode=link --tag=CXX $ac_link" |
| 30164 | |
| 30165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Object::initCmd(const char*) etc" >&5 |
| 30166 | printf %s "checking for Object::initCmd(const char*) etc... " >&6; } |
| 30167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30168 | /* end confdefs.h. */ |
| 30169 | #include <Object.h> |
| 30170 | int |
| 30171 | main (void) |
| 30172 | { |
| 30173 | Object *obj; const char *name; |
| 30174 | obj->initCmd(name)->isStream(name); |
| 30175 | ; |
| 30176 | return 0; |
| 30177 | } |
| 30178 | _ACEOF |
| 30179 | if ac_fn_cxx_try_compile "$LINENO" |
| 30180 | then : |
| 30181 | kpse_cv_have_Object_initCmd_const_charp=yes |
| 30182 | else case e in #( |
| 30183 | e) kpse_cv_have_Object_initCmd_const_charp=no ;; |
| 30184 | esac |
| 30185 | fi |
| 30186 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_Object_initCmd_const_charp" >&5 |
| 30188 | printf "%s\n" "$kpse_cv_have_Object_initCmd_const_charp" >&6; } |
| 30189 | ac_ext=c |
| 30190 | ac_cpp='$CPP $CPPFLAGS' |
| 30191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30194 | ac_link="./libtool --mode=link --tag=CC $ac_link" |
| 30195 | |
| 30196 | if test "x$kpse_cv_have_Object_initCmd_const_charp" = xyes; then |
| 30197 | |
| 30198 | printf "%s\n" "#define HAVE_OBJECT_INITCMD_CONST_CHARP 1" >>confdefs.h |
| 30199 | |
| 30200 | fi |
| 30201 | CPPFLAGS=$kpse_save_CPPFLAGS |
| 30202 | LIBS=$kpse_save_LIBS |
| 30203 | |
| 30204 | |
| 30205 | ac_config_headers="$ac_config_headers w2c/c-auto.h:c-auto.in" |
| 30206 | |
| 30207 | |
| 30208 | |
| 30209 | |
| 30210 | |
| 30211 | ac_config_headers="$ac_config_headers ff-config.h:luatexdir/luafontloader/ff-config.in" |
| 30212 | |
| 30213 | |
| 30214 | # For cross-compilation. Put at the end so there is a fair chance |
| 30215 | # these are still visible when the configure script has finished. |
| 30216 | |
| 30217 | # The supporting programs we need to have available on the build machine. |
| 30218 | # make variable cross native |
| 30219 | if test "x$cross_compiling" = xyes |
| 30220 | then : |
| 30221 | # Extract the first word of "tangle", so it can be a program name with args. |
| 30222 | set dummy tangle; ac_word=$2 |
| 30223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 30224 | printf %s "checking for $ac_word... " >&6; } |
| 30225 | if test ${ac_cv_path_TANGLEBOOT+y} |
| 30226 | then : |
| 30227 | printf %s "(cached) " >&6 |
| 30228 | else case e in #( |
| 30229 | e) case $TANGLEBOOT in |
| 30230 | [\\/]* | ?:[\\/]*) |
| 30231 | ac_cv_path_TANGLEBOOT="$TANGLEBOOT" # Let the user override the test with a path. |
| 30232 | ;; |
| 30233 | *) |
| 30234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30235 | for as_dir in $PATH |
| 30236 | do |
| 30237 | IFS=$as_save_IFS |
| 30238 | case $as_dir in #((( |
| 30239 | '') as_dir=./ ;; |
| 30240 | */) ;; |
| 30241 | *) as_dir=$as_dir/ ;; |
| 30242 | esac |
| 30243 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30244 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 30245 | ac_cv_path_TANGLEBOOT="$as_dir$ac_word$ac_exec_ext" |
| 30246 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 30247 | break 2 |
| 30248 | fi |
| 30249 | done |
| 30250 | done |
| 30251 | IFS=$as_save_IFS |
| 30252 | |
| 30253 | ;; |
| 30254 | esac ;; |
| 30255 | esac |
| 30256 | fi |
| 30257 | TANGLEBOOT=$ac_cv_path_TANGLEBOOT |
| 30258 | if test -n "$TANGLEBOOT"; then |
| 30259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TANGLEBOOT" >&5 |
| 30260 | printf "%s\n" "$TANGLEBOOT" >&6; } |
| 30261 | else |
| 30262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30263 | printf "%s\n" "no" >&6; } |
| 30264 | fi |
| 30265 | |
| 30266 | |
| 30267 | if test -z "${TANGLEBOOT}" |
| 30268 | then : |
| 30269 | as_fn_error $? "tangle was not found but is required when cross-compiling. |
| 30270 | Install tangle or set \$TANGLEBOOT to the full pathname." "$LINENO" 5 |
| 30271 | fi |
| 30272 | else case e in #( |
| 30273 | e) TANGLEBOOT=./tangleboot ;; |
| 30274 | esac |
| 30275 | fi |
| 30276 | |
| 30277 | if test "x$cross_compiling" = xyes |
| 30278 | then : |
| 30279 | # Extract the first word of "tangle", so it can be a program name with args. |
| 30280 | set dummy tangle; ac_word=$2 |
| 30281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 30282 | printf %s "checking for $ac_word... " >&6; } |
| 30283 | if test ${ac_cv_path_TANGLE+y} |
| 30284 | then : |
| 30285 | printf %s "(cached) " >&6 |
| 30286 | else case e in #( |
| 30287 | e) case $TANGLE in |
| 30288 | [\\/]* | ?:[\\/]*) |
| 30289 | ac_cv_path_TANGLE="$TANGLE" # Let the user override the test with a path. |
| 30290 | ;; |
| 30291 | *) |
| 30292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30293 | for as_dir in $PATH |
| 30294 | do |
| 30295 | IFS=$as_save_IFS |
| 30296 | case $as_dir in #((( |
| 30297 | '') as_dir=./ ;; |
| 30298 | */) ;; |
| 30299 | *) as_dir=$as_dir/ ;; |
| 30300 | esac |
| 30301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30302 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 30303 | ac_cv_path_TANGLE="$as_dir$ac_word$ac_exec_ext" |
| 30304 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 30305 | break 2 |
| 30306 | fi |
| 30307 | done |
| 30308 | done |
| 30309 | IFS=$as_save_IFS |
| 30310 | |
| 30311 | ;; |
| 30312 | esac ;; |
| 30313 | esac |
| 30314 | fi |
| 30315 | TANGLE=$ac_cv_path_TANGLE |
| 30316 | if test -n "$TANGLE"; then |
| 30317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TANGLE" >&5 |
| 30318 | printf "%s\n" "$TANGLE" >&6; } |
| 30319 | else |
| 30320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30321 | printf "%s\n" "no" >&6; } |
| 30322 | fi |
| 30323 | |
| 30324 | |
| 30325 | if test -z "${TANGLE}" |
| 30326 | then : |
| 30327 | as_fn_error $? "tangle was not found but is required when cross-compiling. |
| 30328 | Install tangle or set \$TANGLE to the full pathname." "$LINENO" 5 |
| 30329 | fi |
| 30330 | else case e in #( |
| 30331 | e) TANGLE=./tangle ;; |
| 30332 | esac |
| 30333 | fi |
| 30334 | |
| 30335 | if test "x$cross_compiling" = xyes |
| 30336 | then : |
| 30337 | # Extract the first word of "ctangle", so it can be a program name with args. |
| 30338 | set dummy ctangle; ac_word=$2 |
| 30339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 30340 | printf %s "checking for $ac_word... " >&6; } |
| 30341 | if test ${ac_cv_path_CTANGLEBOOT+y} |
| 30342 | then : |
| 30343 | printf %s "(cached) " >&6 |
| 30344 | else case e in #( |
| 30345 | e) case $CTANGLEBOOT in |
| 30346 | [\\/]* | ?:[\\/]*) |
| 30347 | ac_cv_path_CTANGLEBOOT="$CTANGLEBOOT" # Let the user override the test with a path. |
| 30348 | ;; |
| 30349 | *) |
| 30350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30351 | for as_dir in $PATH |
| 30352 | do |
| 30353 | IFS=$as_save_IFS |
| 30354 | case $as_dir in #((( |
| 30355 | '') as_dir=./ ;; |
| 30356 | */) ;; |
| 30357 | *) as_dir=$as_dir/ ;; |
| 30358 | esac |
| 30359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30360 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 30361 | ac_cv_path_CTANGLEBOOT="$as_dir$ac_word$ac_exec_ext" |
| 30362 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 30363 | break 2 |
| 30364 | fi |
| 30365 | done |
| 30366 | done |
| 30367 | IFS=$as_save_IFS |
| 30368 | |
| 30369 | ;; |
| 30370 | esac ;; |
| 30371 | esac |
| 30372 | fi |
| 30373 | CTANGLEBOOT=$ac_cv_path_CTANGLEBOOT |
| 30374 | if test -n "$CTANGLEBOOT"; then |
| 30375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CTANGLEBOOT" >&5 |
| 30376 | printf "%s\n" "$CTANGLEBOOT" >&6; } |
| 30377 | else |
| 30378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30379 | printf "%s\n" "no" >&6; } |
| 30380 | fi |
| 30381 | |
| 30382 | |
| 30383 | if test -z "${CTANGLEBOOT}" |
| 30384 | then : |
| 30385 | as_fn_error $? "ctangle was not found but is required when cross-compiling. |
| 30386 | Install ctangle or set \$CTANGLEBOOT to the full pathname." "$LINENO" 5 |
| 30387 | fi |
| 30388 | else case e in #( |
| 30389 | e) CTANGLEBOOT=./ctangleboot ;; |
| 30390 | esac |
| 30391 | fi |
| 30392 | |
| 30393 | if test "x$cross_compiling" = xyes |
| 30394 | then : |
| 30395 | # Extract the first word of "ctangle", so it can be a program name with args. |
| 30396 | set dummy ctangle; ac_word=$2 |
| 30397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 30398 | printf %s "checking for $ac_word... " >&6; } |
| 30399 | if test ${ac_cv_path_CTANGLE+y} |
| 30400 | then : |
| 30401 | printf %s "(cached) " >&6 |
| 30402 | else case e in #( |
| 30403 | e) case $CTANGLE in |
| 30404 | [\\/]* | ?:[\\/]*) |
| 30405 | ac_cv_path_CTANGLE="$CTANGLE" # Let the user override the test with a path. |
| 30406 | ;; |
| 30407 | *) |
| 30408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30409 | for as_dir in $PATH |
| 30410 | do |
| 30411 | IFS=$as_save_IFS |
| 30412 | case $as_dir in #((( |
| 30413 | '') as_dir=./ ;; |
| 30414 | */) ;; |
| 30415 | *) as_dir=$as_dir/ ;; |
| 30416 | esac |
| 30417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30418 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 30419 | ac_cv_path_CTANGLE="$as_dir$ac_word$ac_exec_ext" |
| 30420 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 30421 | break 2 |
| 30422 | fi |
| 30423 | done |
| 30424 | done |
| 30425 | IFS=$as_save_IFS |
| 30426 | |
| 30427 | ;; |
| 30428 | esac ;; |
| 30429 | esac |
| 30430 | fi |
| 30431 | CTANGLE=$ac_cv_path_CTANGLE |
| 30432 | if test -n "$CTANGLE"; then |
| 30433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CTANGLE" >&5 |
| 30434 | printf "%s\n" "$CTANGLE" >&6; } |
| 30435 | else |
| 30436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30437 | printf "%s\n" "no" >&6; } |
| 30438 | fi |
| 30439 | |
| 30440 | |
| 30441 | if test -z "${CTANGLE}" |
| 30442 | then : |
| 30443 | as_fn_error $? "ctangle was not found but is required when cross-compiling. |
| 30444 | Install ctangle or set \$CTANGLE to the full pathname." "$LINENO" 5 |
| 30445 | fi |
| 30446 | else case e in #( |
| 30447 | e) CTANGLE=./ctangle ;; |
| 30448 | esac |
| 30449 | fi |
| 30450 | |
| 30451 | if test "x$cross_compiling" = xyes |
| 30452 | then : |
| 30453 | # Extract the first word of "tie", so it can be a program name with args. |
| 30454 | set dummy tie; ac_word=$2 |
| 30455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 30456 | printf %s "checking for $ac_word... " >&6; } |
| 30457 | if test ${ac_cv_path_TIE+y} |
| 30458 | then : |
| 30459 | printf %s "(cached) " >&6 |
| 30460 | else case e in #( |
| 30461 | e) case $TIE in |
| 30462 | [\\/]* | ?:[\\/]*) |
| 30463 | ac_cv_path_TIE="$TIE" # Let the user override the test with a path. |
| 30464 | ;; |
| 30465 | *) |
| 30466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30467 | for as_dir in $PATH |
| 30468 | do |
| 30469 | IFS=$as_save_IFS |
| 30470 | case $as_dir in #((( |
| 30471 | '') as_dir=./ ;; |
| 30472 | */) ;; |
| 30473 | *) as_dir=$as_dir/ ;; |
| 30474 | esac |
| 30475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30476 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 30477 | ac_cv_path_TIE="$as_dir$ac_word$ac_exec_ext" |
| 30478 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 30479 | break 2 |
| 30480 | fi |
| 30481 | done |
| 30482 | done |
| 30483 | IFS=$as_save_IFS |
| 30484 | |
| 30485 | ;; |
| 30486 | esac ;; |
| 30487 | esac |
| 30488 | fi |
| 30489 | TIE=$ac_cv_path_TIE |
| 30490 | if test -n "$TIE"; then |
| 30491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIE" >&5 |
| 30492 | printf "%s\n" "$TIE" >&6; } |
| 30493 | else |
| 30494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30495 | printf "%s\n" "no" >&6; } |
| 30496 | fi |
| 30497 | |
| 30498 | |
| 30499 | if test -z "${TIE}" |
| 30500 | then : |
| 30501 | as_fn_error $? "tie was not found but is required when cross-compiling. |
| 30502 | Install tie or set \$TIE to the full pathname." "$LINENO" 5 |
| 30503 | fi |
| 30504 | else case e in #( |
| 30505 | e) TIE=./tie ;; |
| 30506 | esac |
| 30507 | fi |
| 30508 | |
| 30509 | if test "x$cross_compiling" = xyes |
| 30510 | then : |
| 30511 | # Extract the first word of "otangle", so it can be a program name with args. |
| 30512 | set dummy otangle; ac_word=$2 |
| 30513 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 30514 | printf %s "checking for $ac_word... " >&6; } |
| 30515 | if test ${ac_cv_path_OTANGLE+y} |
| 30516 | then : |
| 30517 | printf %s "(cached) " >&6 |
| 30518 | else case e in #( |
| 30519 | e) case $OTANGLE in |
| 30520 | [\\/]* | ?:[\\/]*) |
| 30521 | ac_cv_path_OTANGLE="$OTANGLE" # Let the user override the test with a path. |
| 30522 | ;; |
| 30523 | *) |
| 30524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30525 | for as_dir in $PATH |
| 30526 | do |
| 30527 | IFS=$as_save_IFS |
| 30528 | case $as_dir in #((( |
| 30529 | '') as_dir=./ ;; |
| 30530 | */) ;; |
| 30531 | *) as_dir=$as_dir/ ;; |
| 30532 | esac |
| 30533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30534 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 30535 | ac_cv_path_OTANGLE="$as_dir$ac_word$ac_exec_ext" |
| 30536 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 30537 | break 2 |
| 30538 | fi |
| 30539 | done |
| 30540 | done |
| 30541 | IFS=$as_save_IFS |
| 30542 | |
| 30543 | ;; |
| 30544 | esac ;; |
| 30545 | esac |
| 30546 | fi |
| 30547 | OTANGLE=$ac_cv_path_OTANGLE |
| 30548 | if test -n "$OTANGLE"; then |
| 30549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTANGLE" >&5 |
| 30550 | printf "%s\n" "$OTANGLE" >&6; } |
| 30551 | else |
| 30552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30553 | printf "%s\n" "no" >&6; } |
| 30554 | fi |
| 30555 | |
| 30556 | |
| 30557 | if test -z "${OTANGLE}" |
| 30558 | then : |
| 30559 | as_fn_error $? "otangle was not found but is required when cross-compiling. |
| 30560 | Install otangle or set \$OTANGLE to the full pathname." "$LINENO" 5 |
| 30561 | fi |
| 30562 | else case e in #( |
| 30563 | e) OTANGLE=./otangle ;; |
| 30564 | esac |
| 30565 | fi |
| 30566 | |
| 30567 | |
| 30568 | if test "x$cross_compiling" = xyes; then |
| 30569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your tie supports WEBINPUTS" >&5 |
| 30570 | printf %s "checking if your tie supports WEBINPUTS... " >&6; } |
| 30571 | ( WEBINPUTS=$srcdir/tiedir |
| 30572 | export WEBINPUTS |
| 30573 | $TIE -c tie.outc tie.tie tie.cf1 tie.cf2 tie.cf3 |
| 30574 | $TIE -m tie.outm tie.tie tie.cf1 tie.cf2 tie.cf3 ) >/dev/null 2>&1 |
| 30575 | if diff tie.outc $srcdir/tiedir/tie.chf.gen >/dev/null 2>&1 && \ |
| 30576 | diff tie.outm $srcdir/tiedir/tie.master.gen >/dev/null 2>&1; then |
| 30577 | tool_ok=yes |
| 30578 | else |
| 30579 | tool_ok=no |
| 30580 | fi |
| 30581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tool_ok" >&5 |
| 30582 | printf "%s\n" "$tool_ok" >&6; } |
| 30583 | if test "x$tool_ok" != xyes; then |
| 30584 | as_fn_error $? "Sorry, your $TIE is too old and does not support WEBINPUTS" "$LINENO" 5 |
| 30585 | fi |
| 30586 | rm -f tie.outc tie.outm |
| 30587 | if test "x$enable_otangle" = xyes; then |
| 30588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your otangle supports WEBINPUTS" >&5 |
| 30589 | printf %s "checking if your otangle supports WEBINPUTS... " >&6; } |
| 30590 | ( WEBINPUTS=$srcdir/cftests |
| 30591 | export WEBINPUTS |
| 30592 | $OTANGLE cftest cftest ) >/dev/null 2>&1 |
| 30593 | if diff cftest.p $srcdir/cftests/ocftest.p >/dev/null 2>&1; then |
| 30594 | tool_ok=yes |
| 30595 | else |
| 30596 | tool_ok=no |
| 30597 | fi |
| 30598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tool_ok" >&5 |
| 30599 | printf "%s\n" "$tool_ok" >&6; } |
| 30600 | if test "x$tool_ok" != xyes; then |
| 30601 | as_fn_error $? "Sorry, your $OTANGLE is too old and does not support WEBINPUTS" "$LINENO" 5 |
| 30602 | fi |
| 30603 | rm -f cftest.p |
| 30604 | fi |
| 30605 | fi |
| 30606 | |
| 30607 | ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile omegafonts/Makefile otps/Makefile otps/win32/Makefile window/Makefile" |
| 30608 | |
| 30609 | ac_config_files="$ac_config_files web2c-sh" |
| 30610 | |
| 30611 | ac_config_files="$ac_config_files tangle-sh" |
| 30612 | |
| 30613 | ac_config_files="$ac_config_files ctangleboot-sh" |
| 30614 | |
| 30615 | ac_config_files="$ac_config_files silent-sh" |
| 30616 | |
| 30617 | |
| 30618 | ## texk/web2c/synctexdir/ac/synctex.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/ |
| 30619 | |
| 30620 | SYNCTEXVERSION=2.0.0 |
| 30621 | |
| 30622 | |
| 30623 | SYNCTEX_LT_VERSINFO=2:0:0 |
| 30624 | |
| 30625 | |
| 30626 | if test "x$enable_synctex" != xno; then |
| 30627 | SYNCTEX_TRUE= |
| 30628 | SYNCTEX_FALSE='#' |
| 30629 | else |
| 30630 | SYNCTEX_TRUE='#' |
| 30631 | SYNCTEX_FALSE= |
| 30632 | fi |
| 30633 | |
| 30634 | |
| 30635 | if test "x$with_system_zlib" = xyes |
| 30636 | then : |
| 30637 | LTLIBSYNCTEX=libsynctex.la |
| 30638 | |
| 30639 | else case e in #( |
| 30640 | e) LIBSYNCTEX=libsynctex.a |
| 30641 | ;; |
| 30642 | esac |
| 30643 | fi |
| 30644 | |
| 30645 | ac_config_files="$ac_config_files synctexdir/synctex.pc" |
| 30646 | |
| 30647 | |
| 30648 | |
| 30649 | |
| 30650 | if test "x$host_alias" != x && test "x$build_alias" = x |
| 30651 | then : |
| 30652 | as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5 |
| 30653 | fi |
| 30654 | eval kpse_build_alias=\${build_alias-$build} |
| 30655 | |
| 30656 | |
| 30657 | |
| 30658 | subdirs="$subdirs web2c" |
| 30659 | |
| 30660 | |
| 30661 | |
| 30662 | |
| 30663 | cat >confcache <<\_ACEOF |
| 30664 | # This file is a shell script that caches the results of configure |
| 30665 | # tests run on this system so they can be shared between configure |
| 30666 | # scripts and configure runs, see configure's option --config-cache. |
| 30667 | # It is not useful on other systems. If it contains results you don't |
| 30668 | # want to keep, you may remove or edit it. |
| 30669 | # |
| 30670 | # config.status only pays attention to the cache file if you give it |
| 30671 | # the --recheck option to rerun configure. |
| 30672 | # |
| 30673 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 30674 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 30675 | # following values. |
| 30676 | |
| 30677 | _ACEOF |
| 30678 | |
| 30679 | # The following way of writing the cache mishandles newlines in values, |
| 30680 | # but we know of no workaround that is simple, portable, and efficient. |
| 30681 | # So, we kill variables containing newlines. |
| 30682 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 30683 | # and sets the high bit in the cache file unless we assign to the vars. |
| 30684 | ( |
| 30685 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 30686 | eval ac_val=\$$ac_var |
| 30687 | case $ac_val in #( |
| 30688 | *${as_nl}*) |
| 30689 | case $ac_var in #( |
| 30690 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 30691 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 30692 | esac |
| 30693 | case $ac_var in #( |
| 30694 | _ | IFS | as_nl) ;; #( |
| 30695 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 30696 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 30697 | esac ;; |
| 30698 | esac |
| 30699 | done |
| 30700 | |
| 30701 | (set) 2>&1 | |
| 30702 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 30703 | *${as_nl}ac_space=\ *) |
| 30704 | # 'set' does not quote correctly, so add quotes: double-quote |
| 30705 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 30706 | sed -n \ |
| 30707 | "s/'/'\\\\''/g; |
| 30708 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 30709 | ;; #( |
| 30710 | *) |
| 30711 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 30712 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 30713 | ;; |
| 30714 | esac | |
| 30715 | sort |
| 30716 | ) | |
| 30717 | sed ' |
| 30718 | /^ac_cv_env_/b end |
| 30719 | t clear |
| 30720 | :clear |
| 30721 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 30722 | t end |
| 30723 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 30724 | :end' >>confcache |
| 30725 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 30726 | if test -w "$cache_file"; then |
| 30727 | if test "x$cache_file" != "x/dev/null"; then |
| 30728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 30729 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 30730 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 30731 | cat confcache >"$cache_file" |
| 30732 | else |
| 30733 | case $cache_file in #( |
| 30734 | */* | ?:*) |
| 30735 | mv -f confcache "$cache_file"$$ && |
| 30736 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 30737 | *) |
| 30738 | mv -f confcache "$cache_file" ;; |
| 30739 | esac |
| 30740 | fi |
| 30741 | fi |
| 30742 | else |
| 30743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 30744 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 30745 | fi |
| 30746 | fi |
| 30747 | rm -f confcache |
| 30748 | |
| 30749 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 30750 | # Let make expand exec_prefix. |
| 30751 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 30752 | |
| 30753 | DEFS=-DHAVE_CONFIG_H |
| 30754 | |
| 30755 | ac_libobjs= |
| 30756 | ac_ltlibobjs= |
| 30757 | U= |
| 30758 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 30759 | # 1. Remove the extension, and $U if already installed. |
| 30760 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 30761 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 30762 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 30763 | # will be set to the directory where LIBOBJS objects are built. |
| 30764 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 30765 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 30766 | done |
| 30767 | LIBOBJS=$ac_libobjs |
| 30768 | |
| 30769 | LTLIBOBJS=$ac_ltlibobjs |
| 30770 | |
| 30771 | |
| 30772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 30773 | printf %s "checking that generated files are newer than configure... " >&6; } |
| 30774 | if test -n "$am_sleep_pid"; then |
| 30775 | # Hide warnings about reused PIDs. |
| 30776 | wait $am_sleep_pid 2>/dev/null |
| 30777 | fi |
| 30778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 30779 | printf "%s\n" "done" >&6; } |
| 30780 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 30781 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 30782 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30783 | fi |
| 30784 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 30785 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 30786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30787 | fi |
| 30788 | case $enable_silent_rules in # ((( |
| 30789 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 30790 | no) AM_DEFAULT_VERBOSITY=1;; |
| 30791 | esac |
| 30792 | if test $am_cv_make_support_nested_variables = yes; then |
| 30793 | AM_V='$(V)' |
| 30794 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 30795 | else |
| 30796 | AM_V=$AM_DEFAULT_VERBOSITY |
| 30797 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 30798 | fi |
| 30799 | |
| 30800 | if test -n "$EXEEXT"; then |
| 30801 | am__EXEEXT_TRUE= |
| 30802 | am__EXEEXT_FALSE='#' |
| 30803 | else |
| 30804 | am__EXEEXT_TRUE='#' |
| 30805 | am__EXEEXT_FALSE= |
| 30806 | fi |
| 30807 | |
| 30808 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 30809 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 30810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30811 | fi |
| 30812 | # Check whether --enable-year2038 was given. |
| 30813 | if test ${enable_year2038+y} |
| 30814 | then : |
| 30815 | enableval=$enable_year2038; |
| 30816 | fi |
| 30817 | |
| 30818 | if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then |
| 30819 | as_fn_error $? "conditional \"cross\" was never defined. |
| 30820 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30821 | fi |
| 30822 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 30823 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 30824 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30825 | fi |
| 30826 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then |
| 30827 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. |
| 30828 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30829 | fi |
| 30830 | if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then |
| 30831 | as_fn_error $? "conditional \"WIN32\" was never defined. |
| 30832 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30833 | fi |
| 30834 | if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then |
| 30835 | as_fn_error $? "conditional \"MINGW32\" was never defined. |
| 30836 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30837 | fi |
| 30838 | if test -z "${WIN32_CALL_TRUE}" && test -z "${WIN32_CALL_FALSE}"; then |
| 30839 | as_fn_error $? "conditional \"WIN32_CALL\" was never defined. |
| 30840 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30841 | fi |
| 30842 | if test -z "${USE_DLOPEN_TRUE}" && test -z "${USE_DLOPEN_FALSE}"; then |
| 30843 | as_fn_error $? "conditional \"USE_DLOPEN\" was never defined. |
| 30844 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30845 | fi |
| 30846 | if test -z "${TEX_TRUE}" && test -z "${TEX_FALSE}"; then |
| 30847 | as_fn_error $? "conditional \"TEX\" was never defined. |
| 30848 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30849 | fi |
| 30850 | if test -z "${TEX_SYNCTEX_TRUE}" && test -z "${TEX_SYNCTEX_FALSE}"; then |
| 30851 | as_fn_error $? "conditional \"TEX_SYNCTEX\" was never defined. |
| 30852 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30853 | fi |
| 30854 | if test -z "${ETEX_TRUE}" && test -z "${ETEX_FALSE}"; then |
| 30855 | as_fn_error $? "conditional \"ETEX\" was never defined. |
| 30856 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30857 | fi |
| 30858 | if test -z "${ETEX_SYNCTEX_TRUE}" && test -z "${ETEX_SYNCTEX_FALSE}"; then |
| 30859 | as_fn_error $? "conditional \"ETEX_SYNCTEX\" was never defined. |
| 30860 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30861 | fi |
| 30862 | if test -z "${UPTEX_TRUE}" && test -z "${UPTEX_FALSE}"; then |
| 30863 | as_fn_error $? "conditional \"UPTEX\" was never defined. |
| 30864 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30865 | fi |
| 30866 | if test -z "${EUPTEX_TRUE}" && test -z "${EUPTEX_FALSE}"; then |
| 30867 | as_fn_error $? "conditional \"EUPTEX\" was never defined. |
| 30868 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30869 | fi |
| 30870 | if test -z "${EUPTEX_SYNCTEX_TRUE}" && test -z "${EUPTEX_SYNCTEX_FALSE}"; then |
| 30871 | as_fn_error $? "conditional \"EUPTEX_SYNCTEX\" was never defined. |
| 30872 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30873 | fi |
| 30874 | if test -z "${ALEPH_TRUE}" && test -z "${ALEPH_FALSE}"; then |
| 30875 | as_fn_error $? "conditional \"ALEPH\" was never defined. |
| 30876 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30877 | fi |
| 30878 | if test -z "${HITEX_TRUE}" && test -z "${HITEX_FALSE}"; then |
| 30879 | as_fn_error $? "conditional \"HITEX\" was never defined. |
| 30880 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30881 | fi |
| 30882 | if test -z "${PDFTEX_TRUE}" && test -z "${PDFTEX_FALSE}"; then |
| 30883 | as_fn_error $? "conditional \"PDFTEX\" was never defined. |
| 30884 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30885 | fi |
| 30886 | if test -z "${PDFTEX_SYNCTEX_TRUE}" && test -z "${PDFTEX_SYNCTEX_FALSE}"; then |
| 30887 | as_fn_error $? "conditional \"PDFTEX_SYNCTEX\" was never defined. |
| 30888 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30889 | fi |
| 30890 | if test -z "${LUATEX_TRUE}" && test -z "${LUATEX_FALSE}"; then |
| 30891 | as_fn_error $? "conditional \"LUATEX\" was never defined. |
| 30892 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30893 | fi |
| 30894 | if test -z "${LUAJITTEX_TRUE}" && test -z "${LUAJITTEX_FALSE}"; then |
| 30895 | as_fn_error $? "conditional \"LUAJITTEX\" was never defined. |
| 30896 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30897 | fi |
| 30898 | if test -z "${LUAHBTEX_TRUE}" && test -z "${LUAHBTEX_FALSE}"; then |
| 30899 | as_fn_error $? "conditional \"LUAHBTEX\" was never defined. |
| 30900 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30901 | fi |
| 30902 | if test -z "${LUAJITHBTEX_TRUE}" && test -z "${LUAJITHBTEX_FALSE}"; then |
| 30903 | as_fn_error $? "conditional \"LUAJITHBTEX\" was never defined. |
| 30904 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30905 | fi |
| 30906 | if test -z "${MP_TRUE}" && test -z "${MP_FALSE}"; then |
| 30907 | as_fn_error $? "conditional \"MP\" was never defined. |
| 30908 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30909 | fi |
| 30910 | if test -z "${PMP_TRUE}" && test -z "${PMP_FALSE}"; then |
| 30911 | as_fn_error $? "conditional \"PMP\" was never defined. |
| 30912 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30913 | fi |
| 30914 | if test -z "${TEXPROF_TRUE}" && test -z "${TEXPROF_FALSE}"; then |
| 30915 | as_fn_error $? "conditional \"TEXPROF\" was never defined. |
| 30916 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30917 | fi |
| 30918 | if test -z "${UPMP_TRUE}" && test -z "${UPMP_FALSE}"; then |
| 30919 | as_fn_error $? "conditional \"UPMP\" was never defined. |
| 30920 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30921 | fi |
| 30922 | if test -z "${XETEX_TRUE}" && test -z "${XETEX_FALSE}"; then |
| 30923 | as_fn_error $? "conditional \"XETEX\" was never defined. |
| 30924 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30925 | fi |
| 30926 | if test -z "${XETEX_SYNCTEX_TRUE}" && test -z "${XETEX_SYNCTEX_FALSE}"; then |
| 30927 | as_fn_error $? "conditional \"XETEX_SYNCTEX\" was never defined. |
| 30928 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30929 | fi |
| 30930 | if test -z "${OTANGLE_TRUE}" && test -z "${OTANGLE_FALSE}"; then |
| 30931 | as_fn_error $? "conditional \"OTANGLE\" was never defined. |
| 30932 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30933 | fi |
| 30934 | if test -z "${MF_TRUE}" && test -z "${MF_FALSE}"; then |
| 30935 | as_fn_error $? "conditional \"MF\" was never defined. |
| 30936 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30937 | fi |
| 30938 | if test -z "${MFN_TRUE}" && test -z "${MFN_FALSE}"; then |
| 30939 | as_fn_error $? "conditional \"MFN\" was never defined. |
| 30940 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30941 | fi |
| 30942 | if test -z "${MFLUA_TRUE}" && test -z "${MFLUA_FALSE}"; then |
| 30943 | as_fn_error $? "conditional \"MFLUA\" was never defined. |
| 30944 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30945 | fi |
| 30946 | if test -z "${MFLUAN_TRUE}" && test -z "${MFLUAN_FALSE}"; then |
| 30947 | as_fn_error $? "conditional \"MFLUAN\" was never defined. |
| 30948 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30949 | fi |
| 30950 | if test -z "${MFLUAJIT_TRUE}" && test -z "${MFLUAJIT_FALSE}"; then |
| 30951 | as_fn_error $? "conditional \"MFLUAJIT\" was never defined. |
| 30952 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30953 | fi |
| 30954 | if test -z "${MFLUAJITN_TRUE}" && test -z "${MFLUAJITN_FALSE}"; then |
| 30955 | as_fn_error $? "conditional \"MFLUAJITN\" was never defined. |
| 30956 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30957 | fi |
| 30958 | if test -z "${MFXT_TRUE}" && test -z "${MFXT_FALSE}"; then |
| 30959 | as_fn_error $? "conditional \"MFXT\" was never defined. |
| 30960 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30961 | fi |
| 30962 | if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then |
| 30963 | as_fn_error $? "conditional \"WEB\" was never defined. |
| 30964 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30965 | fi |
| 30966 | if test -z "${PWEB_TRUE}" && test -z "${PWEB_FALSE}"; then |
| 30967 | as_fn_error $? "conditional \"PWEB\" was never defined. |
| 30968 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30969 | fi |
| 30970 | if test -z "${UPWEB_TRUE}" && test -z "${UPWEB_FALSE}"; then |
| 30971 | as_fn_error $? "conditional \"UPWEB\" was never defined. |
| 30972 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30973 | fi |
| 30974 | |
| 30975 | if test -z "${XETEX_MACOSX_TRUE}" && test -z "${XETEX_MACOSX_FALSE}"; then |
| 30976 | as_fn_error $? "conditional \"XETEX_MACOSX\" was never defined. |
| 30977 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30978 | fi |
| 30979 | if test -z "${SYNCTEX_TRUE}" && test -z "${SYNCTEX_FALSE}"; then |
| 30980 | as_fn_error $? "conditional \"SYNCTEX\" was never defined. |
| 30981 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 30982 | fi |
| 30983 | |
| 30984 | : "${CONFIG_STATUS=./config.status}" |
| 30985 | ac_write_fail=0 |
| 30986 | ac_clean_files_save=$ac_clean_files |
| 30987 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 30988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 30989 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 30990 | as_write_fail=0 |
| 30991 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 30992 | #! $SHELL |
| 30993 | # Generated by $as_me. |
| 30994 | # Run this file to recreate the current configuration. |
| 30995 | # Compiler output produced by configure, useful for debugging |
| 30996 | # configure, is in config.log if it exists. |
| 30997 | |
| 30998 | debug=false |
| 30999 | ac_cs_recheck=false |
| 31000 | ac_cs_silent=false |
| 31001 | |
| 31002 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 31003 | export SHELL |
| 31004 | _ASEOF |
| 31005 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 31006 | ## -------------------- ## |
| 31007 | ## M4sh Initialization. ## |
| 31008 | ## -------------------- ## |
| 31009 | |
| 31010 | # Be more Bourne compatible |
| 31011 | DUALCASE=1; export DUALCASE # for MKS sh |
| 31012 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 31013 | then : |
| 31014 | emulate sh |
| 31015 | NULLCMD=: |
| 31016 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 31017 | # is contrary to our usage. Disable this feature. |
| 31018 | alias -g '${1+"$@"}'='"$@"' |
| 31019 | setopt NO_GLOB_SUBST |
| 31020 | else case e in #( |
| 31021 | e) case `(set -o) 2>/dev/null` in #( |
| 31022 | *posix*) : |
| 31023 | set -o posix ;; #( |
| 31024 | *) : |
| 31025 | ;; |
| 31026 | esac ;; |
| 31027 | esac |
| 31028 | fi |
| 31029 | |
| 31030 | |
| 31031 | |
| 31032 | # Reset variables that may have inherited troublesome values from |
| 31033 | # the environment. |
| 31034 | |
| 31035 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 31036 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 31037 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 31038 | # Quoting is to prevent editors from complaining about space-tab. |
| 31039 | as_nl=' |
| 31040 | ' |
| 31041 | export as_nl |
| 31042 | IFS=" "" $as_nl" |
| 31043 | |
| 31044 | PS1='$ ' |
| 31045 | PS2='> ' |
| 31046 | PS4='+ ' |
| 31047 | |
| 31048 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 31049 | LC_ALL=C |
| 31050 | export LC_ALL |
| 31051 | LANGUAGE=C |
| 31052 | export LANGUAGE |
| 31053 | |
| 31054 | # We cannot yet rely on "unset" to work, but we need these variables |
| 31055 | # to be unset--not just set to an empty or harmless value--now, to |
| 31056 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 31057 | # also avoids known problems related to "unset" and subshell syntax |
| 31058 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 31059 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 31060 | do eval test \${$as_var+y} \ |
| 31061 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 31062 | done |
| 31063 | |
| 31064 | # Ensure that fds 0, 1, and 2 are open. |
| 31065 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 31066 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 31067 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 31068 | |
| 31069 | # The user is always right. |
| 31070 | if ${PATH_SEPARATOR+false} :; then |
| 31071 | PATH_SEPARATOR=: |
| 31072 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 31073 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 31074 | PATH_SEPARATOR=';' |
| 31075 | } |
| 31076 | fi |
| 31077 | |
| 31078 | |
| 31079 | # Find who we are. Look in the path if we contain no directory separator. |
| 31080 | as_myself= |
| 31081 | case $0 in #(( |
| 31082 | *[\\/]* ) as_myself=$0 ;; |
| 31083 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31084 | for as_dir in $PATH |
| 31085 | do |
| 31086 | IFS=$as_save_IFS |
| 31087 | case $as_dir in #((( |
| 31088 | '') as_dir=./ ;; |
| 31089 | */) ;; |
| 31090 | *) as_dir=$as_dir/ ;; |
| 31091 | esac |
| 31092 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 31093 | done |
| 31094 | IFS=$as_save_IFS |
| 31095 | |
| 31096 | ;; |
| 31097 | esac |
| 31098 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 31099 | # in which case we are not to be found in the path. |
| 31100 | if test "x$as_myself" = x; then |
| 31101 | as_myself=$0 |
| 31102 | fi |
| 31103 | if test ! -f "$as_myself"; then |
| 31104 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 31105 | exit 1 |
| 31106 | fi |
| 31107 | |
| 31108 | |
| 31109 | |
| 31110 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 31111 | # ---------------------------------------- |
| 31112 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 31113 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 31114 | # script with STATUS, using 1 if that was 0. |
| 31115 | as_fn_error () |
| 31116 | { |
| 31117 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 31118 | if test "$4"; then |
| 31119 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 31120 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 31121 | fi |
| 31122 | printf "%s\n" "$as_me: error: $2" >&2 |
| 31123 | as_fn_exit $as_status |
| 31124 | } # as_fn_error |
| 31125 | |
| 31126 | |
| 31127 | # as_fn_set_status STATUS |
| 31128 | # ----------------------- |
| 31129 | # Set $? to STATUS, without forking. |
| 31130 | as_fn_set_status () |
| 31131 | { |
| 31132 | return $1 |
| 31133 | } # as_fn_set_status |
| 31134 | |
| 31135 | # as_fn_exit STATUS |
| 31136 | # ----------------- |
| 31137 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 31138 | as_fn_exit () |
| 31139 | { |
| 31140 | set +e |
| 31141 | as_fn_set_status $1 |
| 31142 | exit $1 |
| 31143 | } # as_fn_exit |
| 31144 | |
| 31145 | # as_fn_unset VAR |
| 31146 | # --------------- |
| 31147 | # Portably unset VAR. |
| 31148 | as_fn_unset () |
| 31149 | { |
| 31150 | { eval $1=; unset $1;} |
| 31151 | } |
| 31152 | as_unset=as_fn_unset |
| 31153 | |
| 31154 | # as_fn_append VAR VALUE |
| 31155 | # ---------------------- |
| 31156 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 31157 | # advantage of any shell optimizations that allow amortized linear growth over |
| 31158 | # repeated appends, instead of the typical quadratic growth present in naive |
| 31159 | # implementations. |
| 31160 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 31161 | then : |
| 31162 | eval 'as_fn_append () |
| 31163 | { |
| 31164 | eval $1+=\$2 |
| 31165 | }' |
| 31166 | else case e in #( |
| 31167 | e) as_fn_append () |
| 31168 | { |
| 31169 | eval $1=\$$1\$2 |
| 31170 | } ;; |
| 31171 | esac |
| 31172 | fi # as_fn_append |
| 31173 | |
| 31174 | # as_fn_arith ARG... |
| 31175 | # ------------------ |
| 31176 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 31177 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 31178 | # must be portable across $(()) and expr. |
| 31179 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 31180 | then : |
| 31181 | eval 'as_fn_arith () |
| 31182 | { |
| 31183 | as_val=$(( $* )) |
| 31184 | }' |
| 31185 | else case e in #( |
| 31186 | e) as_fn_arith () |
| 31187 | { |
| 31188 | as_val=`expr "$@" || test $? -eq 1` |
| 31189 | } ;; |
| 31190 | esac |
| 31191 | fi # as_fn_arith |
| 31192 | |
| 31193 | |
| 31194 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 31195 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 31196 | as_expr=expr |
| 31197 | else |
| 31198 | as_expr=false |
| 31199 | fi |
| 31200 | |
| 31201 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 31202 | as_basename=basename |
| 31203 | else |
| 31204 | as_basename=false |
| 31205 | fi |
| 31206 | |
| 31207 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 31208 | as_dirname=dirname |
| 31209 | else |
| 31210 | as_dirname=false |
| 31211 | fi |
| 31212 | |
| 31213 | as_me=`$as_basename -- "$0" || |
| 31214 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 31215 | X"$0" : 'X\(//\)$' \| \ |
| 31216 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 31217 | printf "%s\n" X/"$0" | |
| 31218 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 31219 | s//\1/ |
| 31220 | q |
| 31221 | } |
| 31222 | /^X\/\(\/\/\)$/{ |
| 31223 | s//\1/ |
| 31224 | q |
| 31225 | } |
| 31226 | /^X\/\(\/\).*/{ |
| 31227 | s//\1/ |
| 31228 | q |
| 31229 | } |
| 31230 | s/.*/./; q'` |
| 31231 | |
| 31232 | # Avoid depending upon Character Ranges. |
| 31233 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31234 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 31235 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 31236 | as_cr_digits='0123456789' |
| 31237 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 31238 | |
| 31239 | |
| 31240 | # Determine whether it's possible to make 'echo' print without a newline. |
| 31241 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 31242 | # for compatibility with existing Makefiles. |
| 31243 | ECHO_C= ECHO_N= ECHO_T= |
| 31244 | case `echo -n x` in #((((( |
| 31245 | -n*) |
| 31246 | case `echo 'xy\c'` in |
| 31247 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 31248 | xy) ECHO_C='\c';; |
| 31249 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 31250 | ECHO_T=' ';; |
| 31251 | esac;; |
| 31252 | *) |
| 31253 | ECHO_N='-n';; |
| 31254 | esac |
| 31255 | |
| 31256 | # For backward compatibility with old third-party macros, we provide |
| 31257 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 31258 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 31259 | as_echo='printf %s\n' |
| 31260 | as_echo_n='printf %s' |
| 31261 | |
| 31262 | rm -f conf$$ conf$$.exe conf$$.file |
| 31263 | if test -d conf$$.dir; then |
| 31264 | rm -f conf$$.dir/conf$$.file |
| 31265 | else |
| 31266 | rm -f conf$$.dir |
| 31267 | mkdir conf$$.dir 2>/dev/null |
| 31268 | fi |
| 31269 | if (echo >conf$$.file) 2>/dev/null; then |
| 31270 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 31271 | as_ln_s='ln -s' |
| 31272 | # ... but there are two gotchas: |
| 31273 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 31274 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 31275 | # In both cases, we have to default to 'cp -pR'. |
| 31276 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 31277 | as_ln_s='cp -pR' |
| 31278 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 31279 | as_ln_s=ln |
| 31280 | else |
| 31281 | as_ln_s='cp -pR' |
| 31282 | fi |
| 31283 | else |
| 31284 | as_ln_s='cp -pR' |
| 31285 | fi |
| 31286 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 31287 | rmdir conf$$.dir 2>/dev/null |
| 31288 | |
| 31289 | |
| 31290 | # as_fn_mkdir_p |
| 31291 | # ------------- |
| 31292 | # Create "$as_dir" as a directory, including parents if necessary. |
| 31293 | as_fn_mkdir_p () |
| 31294 | { |
| 31295 | |
| 31296 | case $as_dir in #( |
| 31297 | -*) as_dir=./$as_dir;; |
| 31298 | esac |
| 31299 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 31300 | as_dirs= |
| 31301 | while :; do |
| 31302 | case $as_dir in #( |
| 31303 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 31304 | *) as_qdir=$as_dir;; |
| 31305 | esac |
| 31306 | as_dirs="'$as_qdir' $as_dirs" |
| 31307 | as_dir=`$as_dirname -- "$as_dir" || |
| 31308 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 31309 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31310 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31311 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 31312 | printf "%s\n" X"$as_dir" | |
| 31313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 31314 | s//\1/ |
| 31315 | q |
| 31316 | } |
| 31317 | /^X\(\/\/\)[^/].*/{ |
| 31318 | s//\1/ |
| 31319 | q |
| 31320 | } |
| 31321 | /^X\(\/\/\)$/{ |
| 31322 | s//\1/ |
| 31323 | q |
| 31324 | } |
| 31325 | /^X\(\/\).*/{ |
| 31326 | s//\1/ |
| 31327 | q |
| 31328 | } |
| 31329 | s/.*/./; q'` |
| 31330 | test -d "$as_dir" && break |
| 31331 | done |
| 31332 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 31333 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 31334 | |
| 31335 | |
| 31336 | } # as_fn_mkdir_p |
| 31337 | if mkdir -p . 2>/dev/null; then |
| 31338 | as_mkdir_p='mkdir -p "$as_dir"' |
| 31339 | else |
| 31340 | test -d ./-p && rmdir ./-p |
| 31341 | as_mkdir_p=false |
| 31342 | fi |
| 31343 | |
| 31344 | |
| 31345 | # as_fn_executable_p FILE |
| 31346 | # ----------------------- |
| 31347 | # Test if FILE is an executable regular file. |
| 31348 | as_fn_executable_p () |
| 31349 | { |
| 31350 | test -f "$1" && test -x "$1" |
| 31351 | } # as_fn_executable_p |
| 31352 | as_test_x='test -x' |
| 31353 | as_executable_p=as_fn_executable_p |
| 31354 | |
| 31355 | # Sed expression to map a string onto a valid CPP name. |
| 31356 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 31357 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 31358 | |
| 31359 | # Sed expression to map a string onto a valid variable name. |
| 31360 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 31361 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 31362 | |
| 31363 | |
| 31364 | exec 6>&1 |
| 31365 | ## ----------------------------------- ## |
| 31366 | ## Main body of $CONFIG_STATUS script. ## |
| 31367 | ## ----------------------------------- ## |
| 31368 | _ASEOF |
| 31369 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 31370 | |
| 31371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31372 | # Save the log message, to keep $0 and so on meaningful, and to |
| 31373 | # report actual input values of CONFIG_FILES etc. instead of their |
| 31374 | # values after options handling. |
| 31375 | ac_log=" |
| 31376 | This file was extended by Web2C $as_me 2026, which was |
| 31377 | generated by GNU Autoconf 2.72. Invocation command line was |
| 31378 | |
| 31379 | CONFIG_FILES = $CONFIG_FILES |
| 31380 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 31381 | CONFIG_LINKS = $CONFIG_LINKS |
| 31382 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 31383 | $ $0 $@ |
| 31384 | |
| 31385 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 31386 | " |
| 31387 | |
| 31388 | _ACEOF |
| 31389 | |
| 31390 | case $ac_config_files in *" |
| 31391 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 31392 | esac |
| 31393 | |
| 31394 | case $ac_config_headers in *" |
| 31395 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 31396 | esac |
| 31397 | |
| 31398 | |
| 31399 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31400 | # Files that config.status was made for. |
| 31401 | config_files="$ac_config_files" |
| 31402 | config_headers="$ac_config_headers" |
| 31403 | config_links="$ac_config_links" |
| 31404 | config_commands="$ac_config_commands" |
| 31405 | |
| 31406 | _ACEOF |
| 31407 | |
| 31408 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31409 | ac_cs_usage="\ |
| 31410 | '$as_me' instantiates files and other configuration actions |
| 31411 | from templates according to the current configuration. Unless the files |
| 31412 | and actions are specified as TAGs, all are instantiated by default. |
| 31413 | |
| 31414 | Usage: $0 [OPTION]... [TAG]... |
| 31415 | |
| 31416 | -h, --help print this help, then exit |
| 31417 | -V, --version print version number and configuration settings, then exit |
| 31418 | --config print configuration, then exit |
| 31419 | -q, --quiet, --silent |
| 31420 | do not print progress messages |
| 31421 | -d, --debug don't remove temporary files |
| 31422 | --recheck update $as_me by reconfiguring in the same conditions |
| 31423 | --file=FILE[:TEMPLATE] |
| 31424 | instantiate the configuration file FILE |
| 31425 | --header=FILE[:TEMPLATE] |
| 31426 | instantiate the configuration header FILE |
| 31427 | |
| 31428 | Configuration files: |
| 31429 | $config_files |
| 31430 | |
| 31431 | Configuration headers: |
| 31432 | $config_headers |
| 31433 | |
| 31434 | Configuration links: |
| 31435 | $config_links |
| 31436 | |
| 31437 | Configuration commands: |
| 31438 | $config_commands |
| 31439 | |
| 31440 | Report bugs to <[email protected]>." |
| 31441 | |
| 31442 | _ACEOF |
| 31443 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 31444 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 31445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31446 | ac_cs_config='$ac_cs_config_escaped' |
| 31447 | ac_cs_version="\\ |
| 31448 | Web2C config.status 2026 |
| 31449 | configured by $0, generated by GNU Autoconf 2.72, |
| 31450 | with options \\"\$ac_cs_config\\" |
| 31451 | |
| 31452 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 31453 | This config.status script is free software; the Free Software Foundation |
| 31454 | gives unlimited permission to copy, distribute and modify it." |
| 31455 | |
| 31456 | ac_pwd='$ac_pwd' |
| 31457 | srcdir='$srcdir' |
| 31458 | INSTALL='$INSTALL' |
| 31459 | MKDIR_P='$MKDIR_P' |
| 31460 | AWK='$AWK' |
| 31461 | test -n "\$AWK" || AWK=awk |
| 31462 | _ACEOF |
| 31463 | |
| 31464 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31465 | # The default lists apply if the user does not specify any file. |
| 31466 | ac_need_defaults=: |
| 31467 | while test $# != 0 |
| 31468 | do |
| 31469 | case $1 in |
| 31470 | --*=?*) |
| 31471 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 31472 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 31473 | ac_shift=: |
| 31474 | ;; |
| 31475 | --*=) |
| 31476 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 31477 | ac_optarg= |
| 31478 | ac_shift=: |
| 31479 | ;; |
| 31480 | *) |
| 31481 | ac_option=$1 |
| 31482 | ac_optarg=$2 |
| 31483 | ac_shift=shift |
| 31484 | ;; |
| 31485 | esac |
| 31486 | |
| 31487 | case $ac_option in |
| 31488 | # Handling of the options. |
| 31489 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 31490 | ac_cs_recheck=: ;; |
| 31491 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 31492 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 31493 | --config | --confi | --conf | --con | --co | --c ) |
| 31494 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 31495 | --debug | --debu | --deb | --de | --d | -d ) |
| 31496 | debug=: ;; |
| 31497 | --file | --fil | --fi | --f ) |
| 31498 | $ac_shift |
| 31499 | case $ac_optarg in |
| 31500 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 31501 | '') as_fn_error $? "missing file argument" ;; |
| 31502 | esac |
| 31503 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 31504 | ac_need_defaults=false;; |
| 31505 | --header | --heade | --head | --hea ) |
| 31506 | $ac_shift |
| 31507 | case $ac_optarg in |
| 31508 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 31509 | esac |
| 31510 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 31511 | ac_need_defaults=false;; |
| 31512 | --he | --h) |
| 31513 | # Conflict between --help and --header |
| 31514 | as_fn_error $? "ambiguous option: '$1' |
| 31515 | Try '$0 --help' for more information.";; |
| 31516 | --help | --hel | -h ) |
| 31517 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 31518 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 31519 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 31520 | ac_cs_silent=: ;; |
| 31521 | |
| 31522 | # This is an error. |
| 31523 | -*) as_fn_error $? "unrecognized option: '$1' |
| 31524 | Try '$0 --help' for more information." ;; |
| 31525 | |
| 31526 | *) as_fn_append ac_config_targets " $1" |
| 31527 | ac_need_defaults=false ;; |
| 31528 | |
| 31529 | esac |
| 31530 | shift |
| 31531 | done |
| 31532 | |
| 31533 | ac_configure_extra_args= |
| 31534 | |
| 31535 | if $ac_cs_silent; then |
| 31536 | exec 6>/dev/null |
| 31537 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 31538 | fi |
| 31539 | |
| 31540 | _ACEOF |
| 31541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31542 | if \$ac_cs_recheck; then |
| 31543 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 31544 | shift |
| 31545 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 31546 | CONFIG_SHELL='$SHELL' |
| 31547 | export CONFIG_SHELL |
| 31548 | exec "\$@" |
| 31549 | fi |
| 31550 | |
| 31551 | _ACEOF |
| 31552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31553 | exec 5>>config.log |
| 31554 | { |
| 31555 | echo |
| 31556 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 31557 | ## Running $as_me. ## |
| 31558 | _ASBOX |
| 31559 | printf "%s\n" "$ac_log" |
| 31560 | } >&5 |
| 31561 | |
| 31562 | _ACEOF |
| 31563 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31564 | # |
| 31565 | # INIT-COMMANDS |
| 31566 | # |
| 31567 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 31568 | |
| 31569 | |
| 31570 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 31571 | # if CDPATH is set. |
| 31572 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 31573 | |
| 31574 | sed_quote_subst='$sed_quote_subst' |
| 31575 | double_quote_subst='$double_quote_subst' |
| 31576 | delay_variable_subst='$delay_variable_subst' |
| 31577 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 31578 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 31579 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 31580 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 31581 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 31582 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 31583 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 31584 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 31585 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 31586 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 31587 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 31588 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 31589 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 31590 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 31591 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 31592 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 31593 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 31594 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 31595 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 31596 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 31597 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 31598 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 31599 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 31600 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 31601 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 31602 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 31603 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 31604 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 31605 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 31606 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 31607 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 31608 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 31609 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 31610 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 31611 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 31612 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 31613 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 31614 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 31615 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 31616 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 31617 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 31618 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 31619 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 31620 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 31621 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 31622 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 31623 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 31624 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 31625 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 31626 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 31627 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 31628 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 31629 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 31630 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 31631 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 31632 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 31633 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 31634 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 31635 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 31636 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 31637 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 31638 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 31639 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 31640 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 31641 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 31642 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 31643 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 31644 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 31645 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 31646 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 31647 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 31648 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 31649 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 31650 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 31651 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 31652 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 31653 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 31654 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 31655 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 31656 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 31657 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 31658 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 31659 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 31660 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 31661 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 31662 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 31663 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 31664 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 31665 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 31666 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 31667 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 31668 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 31669 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 31670 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 31671 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 31672 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 31673 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 31674 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 31675 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 31676 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 31677 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 31678 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 31679 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 31680 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 31681 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 31682 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 31683 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 31684 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 31685 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 31686 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 31687 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 31688 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 31689 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 31690 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 31691 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 31692 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 31693 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 31694 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 31695 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 31696 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 31697 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 31698 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 31699 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 31700 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 31701 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 31702 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 31703 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 31704 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 31705 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 31706 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 31707 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 31708 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 31709 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 31710 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 31711 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 31712 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 31713 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 31714 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 31715 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 31716 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 31717 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 31718 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 31719 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 31720 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 31721 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 31722 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 31723 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31724 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31725 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 31726 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 31727 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 31728 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 31729 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 31730 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 31731 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 31732 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 31733 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 31734 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 31735 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 31736 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 31737 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31738 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31739 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31740 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31741 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31742 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31743 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 31744 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 31745 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 31746 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 31747 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 31748 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 31749 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 31750 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 31751 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 31752 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 31753 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 31754 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 31755 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 31756 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31757 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 31758 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 31759 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31760 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 31761 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 31762 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 31763 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 31764 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 31765 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 31766 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 31767 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 31768 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 31769 | |
| 31770 | LTCC='$LTCC' |
| 31771 | LTCFLAGS='$LTCFLAGS' |
| 31772 | compiler='$compiler_DEFAULT' |
| 31773 | |
| 31774 | # A function that is used when there is no print builtin or printf. |
| 31775 | func_fallback_echo () |
| 31776 | { |
| 31777 | eval 'cat <<_LTECHO_EOF |
| 31778 | \$1 |
| 31779 | _LTECHO_EOF' |
| 31780 | } |
| 31781 | |
| 31782 | # Quote evaled strings. |
| 31783 | for var in AS \ |
| 31784 | DLLTOOL \ |
| 31785 | OBJDUMP \ |
| 31786 | SHELL \ |
| 31787 | ECHO \ |
| 31788 | PATH_SEPARATOR \ |
| 31789 | SED \ |
| 31790 | GREP \ |
| 31791 | EGREP \ |
| 31792 | FGREP \ |
| 31793 | LD \ |
| 31794 | NM \ |
| 31795 | LN_S \ |
| 31796 | lt_SP2NL \ |
| 31797 | lt_NL2SP \ |
| 31798 | reload_flag \ |
| 31799 | FILECMD \ |
| 31800 | deplibs_check_method \ |
| 31801 | file_magic_cmd \ |
| 31802 | file_magic_glob \ |
| 31803 | want_nocaseglob \ |
| 31804 | sharedlib_from_linklib_cmd \ |
| 31805 | AR \ |
| 31806 | archiver_list_spec \ |
| 31807 | STRIP \ |
| 31808 | RANLIB \ |
| 31809 | CC \ |
| 31810 | CFLAGS \ |
| 31811 | compiler \ |
| 31812 | lt_cv_sys_global_symbol_pipe \ |
| 31813 | lt_cv_sys_global_symbol_to_cdecl \ |
| 31814 | lt_cv_sys_global_symbol_to_import \ |
| 31815 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 31816 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 31817 | lt_cv_nm_interface \ |
| 31818 | nm_file_list_spec \ |
| 31819 | lt_cv_truncate_bin \ |
| 31820 | lt_prog_compiler_no_builtin_flag \ |
| 31821 | lt_prog_compiler_pic \ |
| 31822 | lt_prog_compiler_wl \ |
| 31823 | lt_prog_compiler_static \ |
| 31824 | lt_cv_prog_compiler_c_o \ |
| 31825 | need_locks \ |
| 31826 | MANIFEST_TOOL \ |
| 31827 | DSYMUTIL \ |
| 31828 | NMEDIT \ |
| 31829 | LIPO \ |
| 31830 | OTOOL \ |
| 31831 | OTOOL64 \ |
| 31832 | shrext_cmds \ |
| 31833 | export_dynamic_flag_spec \ |
| 31834 | whole_archive_flag_spec \ |
| 31835 | compiler_needs_object \ |
| 31836 | with_gnu_ld \ |
| 31837 | allow_undefined_flag \ |
| 31838 | no_undefined_flag \ |
| 31839 | hardcode_libdir_flag_spec \ |
| 31840 | hardcode_libdir_separator \ |
| 31841 | exclude_expsyms \ |
| 31842 | include_expsyms \ |
| 31843 | file_list_spec \ |
| 31844 | variables_saved_for_relink \ |
| 31845 | libname_spec \ |
| 31846 | library_names_spec \ |
| 31847 | soname_spec \ |
| 31848 | install_override_mode \ |
| 31849 | finish_eval \ |
| 31850 | old_striplib \ |
| 31851 | striplib \ |
| 31852 | compiler_lib_search_dirs \ |
| 31853 | predep_objects \ |
| 31854 | postdep_objects \ |
| 31855 | predeps \ |
| 31856 | postdeps \ |
| 31857 | compiler_lib_search_path \ |
| 31858 | LD_CXX \ |
| 31859 | reload_flag_CXX \ |
| 31860 | compiler_CXX \ |
| 31861 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 31862 | lt_prog_compiler_pic_CXX \ |
| 31863 | lt_prog_compiler_wl_CXX \ |
| 31864 | lt_prog_compiler_static_CXX \ |
| 31865 | lt_cv_prog_compiler_c_o_CXX \ |
| 31866 | export_dynamic_flag_spec_CXX \ |
| 31867 | whole_archive_flag_spec_CXX \ |
| 31868 | compiler_needs_object_CXX \ |
| 31869 | with_gnu_ld_CXX \ |
| 31870 | allow_undefined_flag_CXX \ |
| 31871 | no_undefined_flag_CXX \ |
| 31872 | hardcode_libdir_flag_spec_CXX \ |
| 31873 | hardcode_libdir_separator_CXX \ |
| 31874 | exclude_expsyms_CXX \ |
| 31875 | include_expsyms_CXX \ |
| 31876 | file_list_spec_CXX \ |
| 31877 | compiler_lib_search_dirs_CXX \ |
| 31878 | predep_objects_CXX \ |
| 31879 | postdep_objects_CXX \ |
| 31880 | predeps_CXX \ |
| 31881 | postdeps_CXX \ |
| 31882 | compiler_lib_search_path_CXX; do |
| 31883 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 31884 | *[\\\\\\\`\\"\\\$]*) |
| 31885 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 31886 | ;; |
| 31887 | *) |
| 31888 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 31889 | ;; |
| 31890 | esac |
| 31891 | done |
| 31892 | |
| 31893 | # Double-quote double-evaled strings. |
| 31894 | for var in reload_cmds \ |
| 31895 | old_postinstall_cmds \ |
| 31896 | old_postuninstall_cmds \ |
| 31897 | old_archive_cmds \ |
| 31898 | extract_expsyms_cmds \ |
| 31899 | old_archive_from_new_cmds \ |
| 31900 | old_archive_from_expsyms_cmds \ |
| 31901 | archive_cmds \ |
| 31902 | archive_expsym_cmds \ |
| 31903 | module_cmds \ |
| 31904 | module_expsym_cmds \ |
| 31905 | export_symbols_cmds \ |
| 31906 | prelink_cmds \ |
| 31907 | postlink_cmds \ |
| 31908 | postinstall_cmds \ |
| 31909 | postuninstall_cmds \ |
| 31910 | finish_cmds \ |
| 31911 | sys_lib_search_path_spec \ |
| 31912 | configure_time_dlsearch_path \ |
| 31913 | configure_time_lt_sys_library_path \ |
| 31914 | reload_cmds_CXX \ |
| 31915 | old_archive_cmds_CXX \ |
| 31916 | old_archive_from_new_cmds_CXX \ |
| 31917 | old_archive_from_expsyms_cmds_CXX \ |
| 31918 | archive_cmds_CXX \ |
| 31919 | archive_expsym_cmds_CXX \ |
| 31920 | module_cmds_CXX \ |
| 31921 | module_expsym_cmds_CXX \ |
| 31922 | export_symbols_cmds_CXX \ |
| 31923 | prelink_cmds_CXX \ |
| 31924 | postlink_cmds_CXX; do |
| 31925 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 31926 | *[\\\\\\\`\\"\\\$]*) |
| 31927 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 31928 | ;; |
| 31929 | *) |
| 31930 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 31931 | ;; |
| 31932 | esac |
| 31933 | done |
| 31934 | |
| 31935 | ac_aux_dir='$ac_aux_dir' |
| 31936 | |
| 31937 | # See if we are running on zsh, and set the options that allow our |
| 31938 | # commands through without removal of \ escapes INIT. |
| 31939 | if test -n "\${ZSH_VERSION+set}"; then |
| 31940 | setopt NO_GLOB_SUBST |
| 31941 | fi |
| 31942 | |
| 31943 | |
| 31944 | PACKAGE='$PACKAGE' |
| 31945 | VERSION='$VERSION' |
| 31946 | RM='$RM' |
| 31947 | ofile='$ofile' |
| 31948 | |
| 31949 | |
| 31950 | |
| 31951 | enable_libtool_hack='$enable_libtool_hack' |
| 31952 | ac_aux_dir='$ac_aux_dir' |
| 31953 | |
| 31954 | |
| 31955 | cxxld_sh='$cxxld_sh' |
| 31956 | |
| 31957 | _ACEOF |
| 31958 | |
| 31959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31960 | |
| 31961 | # Handling of arguments. |
| 31962 | for ac_config_target in $ac_config_targets |
| 31963 | do |
| 31964 | case $ac_config_target in |
| 31965 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 31966 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 31967 | "CXXLD.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS CXXLD.sh" ;; |
| 31968 | "callexe.c") CONFIG_LINKS="$CONFIG_LINKS callexe.c:../texlive/windows_wrapper/callexe.c" ;; |
| 31969 | "w2c/c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS w2c/c-auto.h:c-auto.in" ;; |
| 31970 | "ff-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ff-config.h:luatexdir/luafontloader/ff-config.in" ;; |
| 31971 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 31972 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 31973 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 31974 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
| 31975 | "omegafonts/Makefile") CONFIG_FILES="$CONFIG_FILES omegafonts/Makefile" ;; |
| 31976 | "otps/Makefile") CONFIG_FILES="$CONFIG_FILES otps/Makefile" ;; |
| 31977 | "otps/win32/Makefile") CONFIG_FILES="$CONFIG_FILES otps/win32/Makefile" ;; |
| 31978 | "window/Makefile") CONFIG_FILES="$CONFIG_FILES window/Makefile" ;; |
| 31979 | "web2c-sh") CONFIG_FILES="$CONFIG_FILES web2c-sh" ;; |
| 31980 | "tangle-sh") CONFIG_FILES="$CONFIG_FILES tangle-sh" ;; |
| 31981 | "ctangleboot-sh") CONFIG_FILES="$CONFIG_FILES ctangleboot-sh" ;; |
| 31982 | "silent-sh") CONFIG_FILES="$CONFIG_FILES silent-sh" ;; |
| 31983 | "synctexdir/synctex.pc") CONFIG_FILES="$CONFIG_FILES synctexdir/synctex.pc" ;; |
| 31984 | |
| 31985 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 31986 | esac |
| 31987 | done |
| 31988 | |
| 31989 | |
| 31990 | # If the user did not use the arguments to specify the items to instantiate, |
| 31991 | # then the envvar interface is used. Set only those that are not. |
| 31992 | # We use the long form for the default assignment because of an extremely |
| 31993 | # bizarre bug on SunOS 4.1.3. |
| 31994 | if $ac_need_defaults; then |
| 31995 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 31996 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 31997 | test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links |
| 31998 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 31999 | fi |
| 32000 | |
| 32001 | # Have a temporary directory for convenience. Make it in the build tree |
| 32002 | # simply because there is no reason against having it here, and in addition, |
| 32003 | # creating and moving files from /tmp can sometimes cause problems. |
| 32004 | # Hook for its removal unless debugging. |
| 32005 | # Note that there is a small window in which the directory will not be cleaned: |
| 32006 | # after its creation but before its name has been assigned to '$tmp'. |
| 32007 | $debug || |
| 32008 | { |
| 32009 | tmp= ac_tmp= |
| 32010 | trap 'exit_status=$? |
| 32011 | : "${ac_tmp:=$tmp}" |
| 32012 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 32013 | ' 0 |
| 32014 | trap 'as_fn_exit 1' 1 2 13 15 |
| 32015 | } |
| 32016 | # Create a (secure) tmp directory for tmp files. |
| 32017 | |
| 32018 | { |
| 32019 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 32020 | test -d "$tmp" |
| 32021 | } || |
| 32022 | { |
| 32023 | tmp=./conf$$-$RANDOM |
| 32024 | (umask 077 && mkdir "$tmp") |
| 32025 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 32026 | ac_tmp=$tmp |
| 32027 | |
| 32028 | # Set up the scripts for CONFIG_FILES section. |
| 32029 | # No need to generate them if there are no CONFIG_FILES. |
| 32030 | # This happens for instance with './config.status config.h'. |
| 32031 | if test -n "$CONFIG_FILES"; then |
| 32032 | |
| 32033 | |
| 32034 | ac_cr=`echo X | tr X '\015'` |
| 32035 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 32036 | # But we know of no other shell where ac_cr would be empty at this |
| 32037 | # point, so we can use a bashism as a fallback. |
| 32038 | if test "x$ac_cr" = x; then |
| 32039 | eval ac_cr=\$\'\\r\' |
| 32040 | fi |
| 32041 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 32042 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 32043 | ac_cs_awk_cr='\\r' |
| 32044 | else |
| 32045 | ac_cs_awk_cr=$ac_cr |
| 32046 | fi |
| 32047 | |
| 32048 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 32049 | _ACEOF |
| 32050 | |
| 32051 | |
| 32052 | { |
| 32053 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 32054 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 32055 | echo "_ACEOF" |
| 32056 | } >conf$$subs.sh || |
| 32057 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 32058 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 32059 | ac_delim='%!_!# ' |
| 32060 | for ac_last_try in false false false false false :; do |
| 32061 | . ./conf$$subs.sh || |
| 32062 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 32063 | |
| 32064 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 32065 | if test $ac_delim_n = $ac_delim_num; then |
| 32066 | break |
| 32067 | elif $ac_last_try; then |
| 32068 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 32069 | else |
| 32070 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32071 | fi |
| 32072 | done |
| 32073 | rm -f conf$$subs.sh |
| 32074 | |
| 32075 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32076 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 32077 | _ACEOF |
| 32078 | sed -n ' |
| 32079 | h |
| 32080 | s/^/S["/; s/!.*/"]=/ |
| 32081 | p |
| 32082 | g |
| 32083 | s/^[^!]*!// |
| 32084 | :repl |
| 32085 | t repl |
| 32086 | s/'"$ac_delim"'$// |
| 32087 | t delim |
| 32088 | :nl |
| 32089 | h |
| 32090 | s/\(.\{148\}\)..*/\1/ |
| 32091 | t more1 |
| 32092 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 32093 | p |
| 32094 | n |
| 32095 | b repl |
| 32096 | :more1 |
| 32097 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 32098 | p |
| 32099 | g |
| 32100 | s/.\{148\}// |
| 32101 | t nl |
| 32102 | :delim |
| 32103 | h |
| 32104 | s/\(.\{148\}\)..*/\1/ |
| 32105 | t more2 |
| 32106 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 32107 | p |
| 32108 | b |
| 32109 | :more2 |
| 32110 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 32111 | p |
| 32112 | g |
| 32113 | s/.\{148\}// |
| 32114 | t delim |
| 32115 | ' <conf$$subs.awk | sed ' |
| 32116 | /^[^""]/{ |
| 32117 | N |
| 32118 | s/\n// |
| 32119 | } |
| 32120 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 32121 | rm -f conf$$subs.awk |
| 32122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32123 | _ACAWK |
| 32124 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 32125 | for (key in S) S_is_set[key] = 1 |
| 32126 | FS = "" |
| 32127 | |
| 32128 | } |
| 32129 | { |
| 32130 | line = $ 0 |
| 32131 | nfields = split(line, field, "@") |
| 32132 | substed = 0 |
| 32133 | len = length(field[1]) |
| 32134 | for (i = 2; i < nfields; i++) { |
| 32135 | key = field[i] |
| 32136 | keylen = length(key) |
| 32137 | if (S_is_set[key]) { |
| 32138 | value = S[key] |
| 32139 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 32140 | len += length(value) + length(field[++i]) |
| 32141 | substed = 1 |
| 32142 | } else |
| 32143 | len += 1 + keylen |
| 32144 | } |
| 32145 | |
| 32146 | print line |
| 32147 | } |
| 32148 | |
| 32149 | _ACAWK |
| 32150 | _ACEOF |
| 32151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32152 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 32153 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 32154 | else |
| 32155 | cat |
| 32156 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 32157 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 32158 | _ACEOF |
| 32159 | |
| 32160 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 32161 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 32162 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 32163 | # (actually we leave an empty line to preserve line numbers). |
| 32164 | if test "x$srcdir" = x.; then |
| 32165 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 32166 | h |
| 32167 | s/// |
| 32168 | s/^/:/ |
| 32169 | s/[ ]*$/:/ |
| 32170 | s/:\$(srcdir):/:/g |
| 32171 | s/:\${srcdir}:/:/g |
| 32172 | s/:@srcdir@:/:/g |
| 32173 | s/^:*// |
| 32174 | s/:*$// |
| 32175 | x |
| 32176 | s/\(=[ ]*\).*/\1/ |
| 32177 | G |
| 32178 | s/\n// |
| 32179 | s/^[^=]*=[ ]*$// |
| 32180 | }' |
| 32181 | fi |
| 32182 | |
| 32183 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32184 | fi # test -n "$CONFIG_FILES" |
| 32185 | |
| 32186 | # Set up the scripts for CONFIG_HEADERS section. |
| 32187 | # No need to generate them if there are no CONFIG_HEADERS. |
| 32188 | # This happens for instance with './config.status Makefile'. |
| 32189 | if test -n "$CONFIG_HEADERS"; then |
| 32190 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 32191 | BEGIN { |
| 32192 | _ACEOF |
| 32193 | |
| 32194 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 32195 | # here-document in config.status, that substitutes the proper values into |
| 32196 | # config.h.in to produce config.h. |
| 32197 | |
| 32198 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 32199 | # handling of long lines. |
| 32200 | ac_delim='%!_!# ' |
| 32201 | for ac_last_try in false false :; do |
| 32202 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 32203 | if test -z "$ac_tt"; then |
| 32204 | break |
| 32205 | elif $ac_last_try; then |
| 32206 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 32207 | else |
| 32208 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32209 | fi |
| 32210 | done |
| 32211 | |
| 32212 | # For the awk script, D is an array of macro values keyed by name, |
| 32213 | # likewise P contains macro parameters if any. Preserve backslash |
| 32214 | # newline sequences. |
| 32215 | |
| 32216 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 32217 | sed -n ' |
| 32218 | s/.\{148\}/&'"$ac_delim"'/g |
| 32219 | t rset |
| 32220 | :rset |
| 32221 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 32222 | t def |
| 32223 | d |
| 32224 | :def |
| 32225 | s/\\$// |
| 32226 | t bsnl |
| 32227 | s/["\\]/\\&/g |
| 32228 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 32229 | D["\1"]=" \3"/p |
| 32230 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 32231 | d |
| 32232 | :bsnl |
| 32233 | s/["\\]/\\&/g |
| 32234 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 32235 | D["\1"]=" \3\\\\\\n"\\/p |
| 32236 | t cont |
| 32237 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 32238 | t cont |
| 32239 | d |
| 32240 | :cont |
| 32241 | n |
| 32242 | s/.\{148\}/&'"$ac_delim"'/g |
| 32243 | t clear |
| 32244 | :clear |
| 32245 | s/\\$// |
| 32246 | t bsnlc |
| 32247 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 32248 | d |
| 32249 | :bsnlc |
| 32250 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 32251 | b cont |
| 32252 | ' <confdefs.h | sed ' |
| 32253 | s/'"$ac_delim"'/"\\\ |
| 32254 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 32255 | |
| 32256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32257 | for (key in D) D_is_set[key] = 1 |
| 32258 | FS = "" |
| 32259 | } |
| 32260 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 32261 | line = \$ 0 |
| 32262 | split(line, arg, " ") |
| 32263 | if (arg[1] == "#") { |
| 32264 | defundef = arg[2] |
| 32265 | mac1 = arg[3] |
| 32266 | } else { |
| 32267 | defundef = substr(arg[1], 2) |
| 32268 | mac1 = arg[2] |
| 32269 | } |
| 32270 | split(mac1, mac2, "(") #) |
| 32271 | macro = mac2[1] |
| 32272 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 32273 | if (D_is_set[macro]) { |
| 32274 | # Preserve the white space surrounding the "#". |
| 32275 | print prefix "define", macro P[macro] D[macro] |
| 32276 | next |
| 32277 | } else { |
| 32278 | # Replace #undef with comments. This is necessary, for example, |
| 32279 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 32280 | # on some systems where configure will not decide to define it. |
| 32281 | if (defundef == "undef") { |
| 32282 | print "/*", prefix defundef, macro, "*/" |
| 32283 | next |
| 32284 | } |
| 32285 | } |
| 32286 | } |
| 32287 | { print } |
| 32288 | _ACAWK |
| 32289 | _ACEOF |
| 32290 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32291 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 32292 | fi # test -n "$CONFIG_HEADERS" |
| 32293 | |
| 32294 | |
| 32295 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
| 32296 | shift |
| 32297 | for ac_tag |
| 32298 | do |
| 32299 | case $ac_tag in |
| 32300 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 32301 | esac |
| 32302 | case $ac_mode$ac_tag in |
| 32303 | :[FHL]*:*);; |
| 32304 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 32305 | :[FH]-) ac_tag=-:-;; |
| 32306 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 32307 | esac |
| 32308 | ac_save_IFS=$IFS |
| 32309 | IFS=: |
| 32310 | set x $ac_tag |
| 32311 | IFS=$ac_save_IFS |
| 32312 | shift |
| 32313 | ac_file=$1 |
| 32314 | shift |
| 32315 | |
| 32316 | case $ac_mode in |
| 32317 | :L) ac_source=$1;; |
| 32318 | :[FH]) |
| 32319 | ac_file_inputs= |
| 32320 | for ac_f |
| 32321 | do |
| 32322 | case $ac_f in |
| 32323 | -) ac_f="$ac_tmp/stdin";; |
| 32324 | *) # Look for the file first in the build tree, then in the source tree |
| 32325 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 32326 | # because $ac_f cannot contain ':'. |
| 32327 | test -f "$ac_f" || |
| 32328 | case $ac_f in |
| 32329 | [\\/$]*) false;; |
| 32330 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 32331 | esac || |
| 32332 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 32333 | esac |
| 32334 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 32335 | as_fn_append ac_file_inputs " '$ac_f'" |
| 32336 | done |
| 32337 | |
| 32338 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 32339 | # use $as_me), people would be surprised to read: |
| 32340 | # /* config.h. Generated by config.status. */ |
| 32341 | configure_input='Generated from '` |
| 32342 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 32343 | `' by configure.' |
| 32344 | if test x"$ac_file" != x-; then |
| 32345 | configure_input="$ac_file. $configure_input" |
| 32346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 32347 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 32348 | fi |
| 32349 | # Neutralize special characters interpreted by sed in replacement strings. |
| 32350 | case $configure_input in #( |
| 32351 | *\&* | *\|* | *\\* ) |
| 32352 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 32353 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 32354 | *) ac_sed_conf_input=$configure_input;; |
| 32355 | esac |
| 32356 | |
| 32357 | case $ac_tag in |
| 32358 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 32359 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 32360 | esac |
| 32361 | ;; |
| 32362 | esac |
| 32363 | |
| 32364 | ac_dir=`$as_dirname -- "$ac_file" || |
| 32365 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32366 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 32367 | X"$ac_file" : 'X\(//\)$' \| \ |
| 32368 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 32369 | printf "%s\n" X"$ac_file" | |
| 32370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32371 | s//\1/ |
| 32372 | q |
| 32373 | } |
| 32374 | /^X\(\/\/\)[^/].*/{ |
| 32375 | s//\1/ |
| 32376 | q |
| 32377 | } |
| 32378 | /^X\(\/\/\)$/{ |
| 32379 | s//\1/ |
| 32380 | q |
| 32381 | } |
| 32382 | /^X\(\/\).*/{ |
| 32383 | s//\1/ |
| 32384 | q |
| 32385 | } |
| 32386 | s/.*/./; q'` |
| 32387 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 32388 | ac_builddir=. |
| 32389 | |
| 32390 | case "$ac_dir" in |
| 32391 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 32392 | *) |
| 32393 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 32394 | # A ".." for each directory in $ac_dir_suffix. |
| 32395 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 32396 | case $ac_top_builddir_sub in |
| 32397 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 32398 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 32399 | esac ;; |
| 32400 | esac |
| 32401 | ac_abs_top_builddir=$ac_pwd |
| 32402 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 32403 | # for backward compatibility: |
| 32404 | ac_top_builddir=$ac_top_build_prefix |
| 32405 | |
| 32406 | case $srcdir in |
| 32407 | .) # We are building in place. |
| 32408 | ac_srcdir=. |
| 32409 | ac_top_srcdir=$ac_top_builddir_sub |
| 32410 | ac_abs_top_srcdir=$ac_pwd ;; |
| 32411 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 32412 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32413 | ac_top_srcdir=$srcdir |
| 32414 | ac_abs_top_srcdir=$srcdir ;; |
| 32415 | *) # Relative name. |
| 32416 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 32417 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 32418 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 32419 | esac |
| 32420 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 32421 | |
| 32422 | |
| 32423 | case $ac_mode in |
| 32424 | :F) |
| 32425 | # |
| 32426 | # CONFIG_FILE |
| 32427 | # |
| 32428 | |
| 32429 | case $INSTALL in |
| 32430 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 32431 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 32432 | esac |
| 32433 | ac_MKDIR_P=$MKDIR_P |
| 32434 | case $MKDIR_P in |
| 32435 | [\\/$]* | ?:[\\/]* ) ;; |
| 32436 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 32437 | esac |
| 32438 | _ACEOF |
| 32439 | |
| 32440 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32441 | # If the template does not know about datarootdir, expand it. |
| 32442 | # FIXME: This hack should be removed a few years after 2.60. |
| 32443 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 32444 | ac_sed_dataroot=' |
| 32445 | /datarootdir/ { |
| 32446 | p |
| 32447 | q |
| 32448 | } |
| 32449 | /@datadir@/p |
| 32450 | /@docdir@/p |
| 32451 | /@infodir@/p |
| 32452 | /@localedir@/p |
| 32453 | /@mandir@/p' |
| 32454 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 32455 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 32456 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 32457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 32458 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 32459 | _ACEOF |
| 32460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32461 | ac_datarootdir_hack=' |
| 32462 | s&@datadir@&$datadir&g |
| 32463 | s&@docdir@&$docdir&g |
| 32464 | s&@infodir@&$infodir&g |
| 32465 | s&@localedir@&$localedir&g |
| 32466 | s&@mandir@&$mandir&g |
| 32467 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 32468 | esac |
| 32469 | _ACEOF |
| 32470 | |
| 32471 | # Neutralize VPATH when '$srcdir' = '.'. |
| 32472 | # Shell code in configure.ac might set extrasub. |
| 32473 | # FIXME: do we really want to maintain this feature? |
| 32474 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32475 | ac_sed_extra="$ac_vpsub |
| 32476 | $extrasub |
| 32477 | _ACEOF |
| 32478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32479 | :t |
| 32480 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 32481 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 32482 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 32483 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 32484 | s&@srcdir@&$ac_srcdir&;t t |
| 32485 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 32486 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 32487 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 32488 | s&@builddir@&$ac_builddir&;t t |
| 32489 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 32490 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 32491 | s&@INSTALL@&$ac_INSTALL&;t t |
| 32492 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 32493 | $ac_datarootdir_hack |
| 32494 | " |
| 32495 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 32496 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 32497 | |
| 32498 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 32499 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 32500 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 32501 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 32502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 32503 | which seems to be undefined. Please make sure it is defined" >&5 |
| 32504 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 32505 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 32506 | |
| 32507 | rm -f "$ac_tmp/stdin" |
| 32508 | case $ac_file in |
| 32509 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 32510 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 32511 | esac \ |
| 32512 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 32513 | ;; |
| 32514 | :H) |
| 32515 | # |
| 32516 | # CONFIG_HEADER |
| 32517 | # |
| 32518 | if test x"$ac_file" != x-; then |
| 32519 | { |
| 32520 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 32521 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 32522 | } >"$ac_tmp/config.h" \ |
| 32523 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 32524 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 32525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 32526 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 32527 | else |
| 32528 | rm -f "$ac_file" |
| 32529 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 32530 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 32531 | fi |
| 32532 | else |
| 32533 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 32534 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 32535 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 32536 | fi |
| 32537 | # Compute "$ac_file"'s index in $config_headers. |
| 32538 | _am_arg="$ac_file" |
| 32539 | _am_stamp_count=1 |
| 32540 | for _am_header in $config_headers :; do |
| 32541 | case $_am_header in |
| 32542 | $_am_arg | $_am_arg:* ) |
| 32543 | break ;; |
| 32544 | * ) |
| 32545 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 32546 | esac |
| 32547 | done |
| 32548 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 32549 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32550 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 32551 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 32552 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 32553 | printf "%s\n" X"$_am_arg" | |
| 32554 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32555 | s//\1/ |
| 32556 | q |
| 32557 | } |
| 32558 | /^X\(\/\/\)[^/].*/{ |
| 32559 | s//\1/ |
| 32560 | q |
| 32561 | } |
| 32562 | /^X\(\/\/\)$/{ |
| 32563 | s//\1/ |
| 32564 | q |
| 32565 | } |
| 32566 | /^X\(\/\).*/{ |
| 32567 | s//\1/ |
| 32568 | q |
| 32569 | } |
| 32570 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 32571 | ;; |
| 32572 | :L) |
| 32573 | # |
| 32574 | # CONFIG_LINK |
| 32575 | # |
| 32576 | |
| 32577 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 32578 | : |
| 32579 | else |
| 32580 | # Prefer the file from the source tree if names are identical. |
| 32581 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 32582 | ac_source=$srcdir/$ac_source |
| 32583 | fi |
| 32584 | |
| 32585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 32586 | printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} |
| 32587 | |
| 32588 | if test ! -r "$ac_source"; then |
| 32589 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
| 32590 | fi |
| 32591 | rm -f "$ac_file" |
| 32592 | |
| 32593 | # Try a relative symlink, then a hard link, then a copy. |
| 32594 | case $ac_source in |
| 32595 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 32596 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 32597 | esac |
| 32598 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 32599 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 32600 | cp -p "$ac_source" "$ac_file" || |
| 32601 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 |
| 32602 | fi |
| 32603 | ;; |
| 32604 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 32605 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 32606 | ;; |
| 32607 | esac |
| 32608 | |
| 32609 | |
| 32610 | case $ac_file$ac_mode in |
| 32611 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 32612 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 32613 | # are listed without --file. Let's play safe and only enable the eval |
| 32614 | # if we detect the quoting. |
| 32615 | # TODO: see whether this extra hack can be removed once we start |
| 32616 | # requiring Autoconf 2.70 or later. |
| 32617 | case $CONFIG_FILES in #( |
| 32618 | *\'*) : |
| 32619 | eval set x "$CONFIG_FILES" ;; #( |
| 32620 | *) : |
| 32621 | set x $CONFIG_FILES ;; #( |
| 32622 | *) : |
| 32623 | ;; |
| 32624 | esac |
| 32625 | shift |
| 32626 | # Used to flag and report bootstrapping failures. |
| 32627 | am_rc=0 |
| 32628 | for am_mf |
| 32629 | do |
| 32630 | # Strip MF so we end up with the name of the file. |
| 32631 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 32632 | # Check whether this is an Automake generated Makefile which includes |
| 32633 | # dependency-tracking related rules and includes. |
| 32634 | # Grep'ing the whole file directly is not great: AIX grep has a line |
| 32635 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 32636 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 32637 | || continue |
| 32638 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 32639 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32640 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 32641 | X"$am_mf" : 'X\(//\)$' \| \ |
| 32642 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 32643 | printf "%s\n" X"$am_mf" | |
| 32644 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32645 | s//\1/ |
| 32646 | q |
| 32647 | } |
| 32648 | /^X\(\/\/\)[^/].*/{ |
| 32649 | s//\1/ |
| 32650 | q |
| 32651 | } |
| 32652 | /^X\(\/\/\)$/{ |
| 32653 | s//\1/ |
| 32654 | q |
| 32655 | } |
| 32656 | /^X\(\/\).*/{ |
| 32657 | s//\1/ |
| 32658 | q |
| 32659 | } |
| 32660 | s/.*/./; q'` |
| 32661 | am_filepart=`$as_basename -- "$am_mf" || |
| 32662 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 32663 | X"$am_mf" : 'X\(//\)$' \| \ |
| 32664 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 32665 | printf "%s\n" X/"$am_mf" | |
| 32666 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 32667 | s//\1/ |
| 32668 | q |
| 32669 | } |
| 32670 | /^X\/\(\/\/\)$/{ |
| 32671 | s//\1/ |
| 32672 | q |
| 32673 | } |
| 32674 | /^X\/\(\/\).*/{ |
| 32675 | s//\1/ |
| 32676 | q |
| 32677 | } |
| 32678 | s/.*/./; q'` |
| 32679 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 32680 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 32681 | | $MAKE -f - am--depfiles" >&5 |
| 32682 | (cd "$am_dirpart" \ |
| 32683 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 32684 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 32685 | ac_status=$? |
| 32686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32687 | (exit $ac_status); } || am_rc=$? |
| 32688 | done |
| 32689 | if test $am_rc -ne 0; then |
| 32690 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 32691 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 32692 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 32693 | for automatic dependency tracking. If GNU make was not used, consider |
| 32694 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 32695 | necessary). You can also try re-running configure with the |
| 32696 | '--disable-dependency-tracking' option to at least be able to build |
| 32697 | the package (albeit without support for automatic dependency tracking). |
| 32698 | See 'config.log' for more details" "$LINENO" 5; } |
| 32699 | fi |
| 32700 | { am_dirpart=; unset am_dirpart;} |
| 32701 | { am_filepart=; unset am_filepart;} |
| 32702 | { am_mf=; unset am_mf;} |
| 32703 | { am_rc=; unset am_rc;} |
| 32704 | rm -f conftest-deps.mk |
| 32705 | } |
| 32706 | ;; |
| 32707 | "libtool":C) |
| 32708 | |
| 32709 | # See if we are running on zsh, and set the options that allow our |
| 32710 | # commands through without removal of \ escapes. |
| 32711 | if test -n "${ZSH_VERSION+set}"; then |
| 32712 | setopt NO_GLOB_SUBST |
| 32713 | fi |
| 32714 | |
| 32715 | cfgfile=${ofile}T |
| 32716 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 32717 | $RM "$cfgfile" |
| 32718 | |
| 32719 | cat <<_LT_EOF >> "$cfgfile" |
| 32720 | #! $SHELL |
| 32721 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 32722 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 32723 | |
| 32724 | # Provide generalized library-building support services. |
| 32725 | # Written by Gordon Matzigkeit, 1996 |
| 32726 | |
| 32727 | # Copyright (C) 2024 Free Software Foundation, Inc. |
| 32728 | # This is free software; see the source for copying conditions. There is NO |
| 32729 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 32730 | |
| 32731 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 32732 | # it under the terms of the GNU General Public License as published by |
| 32733 | # the Free Software Foundation; either version 2 of the License, or |
| 32734 | # (at your option) any later version. |
| 32735 | # |
| 32736 | # As a special exception to the GNU General Public License, if you |
| 32737 | # distribute this file as part of a program or library that is built |
| 32738 | # using GNU Libtool, you may include this file under the same |
| 32739 | # distribution terms that you use for the rest of that program. |
| 32740 | # |
| 32741 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 32742 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 32743 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 32744 | # GNU General Public License for more details. |
| 32745 | # |
| 32746 | # You should have received a copy of the GNU General Public License |
| 32747 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 32748 | |
| 32749 | |
| 32750 | # The names of the tagged configurations supported by this script. |
| 32751 | available_tags='CXX ' |
| 32752 | |
| 32753 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 32754 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 32755 | |
| 32756 | # ### BEGIN LIBTOOL CONFIG |
| 32757 | |
| 32758 | # Which release of libtool.m4 was used? |
| 32759 | macro_version=$macro_version |
| 32760 | macro_revision=$macro_revision |
| 32761 | |
| 32762 | # Assembler program. |
| 32763 | AS=$lt_AS |
| 32764 | |
| 32765 | # DLL creation program. |
| 32766 | DLLTOOL=$lt_DLLTOOL |
| 32767 | |
| 32768 | # Object dumper program. |
| 32769 | OBJDUMP=$lt_OBJDUMP |
| 32770 | |
| 32771 | # Whether or not to build shared libraries. |
| 32772 | build_libtool_libs=$enable_shared |
| 32773 | |
| 32774 | # Whether or not to build static libraries. |
| 32775 | build_old_libs=$enable_static |
| 32776 | |
| 32777 | # What type of objects to build. |
| 32778 | pic_mode=$pic_mode |
| 32779 | |
| 32780 | # Whether or not to optimize for fast installation. |
| 32781 | fast_install=$enable_fast_install |
| 32782 | |
| 32783 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 32784 | shared_archive_member_spec=$shared_archive_member_spec |
| 32785 | |
| 32786 | # Shell to use when invoking shell scripts. |
| 32787 | SHELL=$lt_SHELL |
| 32788 | |
| 32789 | # An echo program that protects backslashes. |
| 32790 | ECHO=$lt_ECHO |
| 32791 | |
| 32792 | # The PATH separator for the build system. |
| 32793 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 32794 | |
| 32795 | # The host system. |
| 32796 | host_alias=$host_alias |
| 32797 | host=$host |
| 32798 | host_os=$host_os |
| 32799 | |
| 32800 | # The build system. |
| 32801 | build_alias=$build_alias |
| 32802 | build=$build |
| 32803 | build_os=$build_os |
| 32804 | |
| 32805 | # A sed program that does not truncate output. |
| 32806 | SED=$lt_SED |
| 32807 | |
| 32808 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 32809 | Xsed="\$SED -e 1s/^X//" |
| 32810 | |
| 32811 | # A grep program that handles long lines. |
| 32812 | GREP=$lt_GREP |
| 32813 | |
| 32814 | # An ERE matcher. |
| 32815 | EGREP=$lt_EGREP |
| 32816 | |
| 32817 | # A literal string matcher. |
| 32818 | FGREP=$lt_FGREP |
| 32819 | |
| 32820 | # A BSD- or MS-compatible name lister. |
| 32821 | NM=$lt_NM |
| 32822 | |
| 32823 | # Whether we need soft or hard links. |
| 32824 | LN_S=$lt_LN_S |
| 32825 | |
| 32826 | # What is the maximum length of a command? |
| 32827 | max_cmd_len=$max_cmd_len |
| 32828 | |
| 32829 | # Object file suffix (normally "o"). |
| 32830 | objext=$ac_objext |
| 32831 | |
| 32832 | # Executable file suffix (normally ""). |
| 32833 | exeext=$exeext |
| 32834 | |
| 32835 | # whether the shell understands "unset". |
| 32836 | lt_unset=$lt_unset |
| 32837 | |
| 32838 | # turn spaces into newlines. |
| 32839 | SP2NL=$lt_lt_SP2NL |
| 32840 | |
| 32841 | # turn newlines into spaces. |
| 32842 | NL2SP=$lt_lt_NL2SP |
| 32843 | |
| 32844 | # convert \$build file names to \$host format. |
| 32845 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 32846 | |
| 32847 | # convert \$build files to toolchain format. |
| 32848 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 32849 | |
| 32850 | # A file(cmd) program that detects file types. |
| 32851 | FILECMD=$lt_FILECMD |
| 32852 | |
| 32853 | # Method to check whether dependent libraries are shared objects. |
| 32854 | deplibs_check_method=$lt_deplibs_check_method |
| 32855 | |
| 32856 | # Command to use when deplibs_check_method = "file_magic". |
| 32857 | file_magic_cmd=$lt_file_magic_cmd |
| 32858 | |
| 32859 | # How to find potential files when deplibs_check_method = "file_magic". |
| 32860 | file_magic_glob=$lt_file_magic_glob |
| 32861 | |
| 32862 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 32863 | want_nocaseglob=$lt_want_nocaseglob |
| 32864 | |
| 32865 | # Command to associate shared and link libraries. |
| 32866 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 32867 | |
| 32868 | # The archiver. |
| 32869 | AR=$lt_AR |
| 32870 | |
| 32871 | # Flags to create an archive (by configure). |
| 32872 | lt_ar_flags=$lt_ar_flags |
| 32873 | |
| 32874 | # Flags to create an archive. |
| 32875 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 32876 | |
| 32877 | # How to feed a file listing to the archiver. |
| 32878 | archiver_list_spec=$lt_archiver_list_spec |
| 32879 | |
| 32880 | # A symbol stripping program. |
| 32881 | STRIP=$lt_STRIP |
| 32882 | |
| 32883 | # Commands used to install an old-style archive. |
| 32884 | RANLIB=$lt_RANLIB |
| 32885 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 32886 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 32887 | |
| 32888 | # Whether to use a lock for old archive extraction. |
| 32889 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 32890 | |
| 32891 | # A C compiler. |
| 32892 | LTCC=$lt_CC |
| 32893 | |
| 32894 | # LTCC compiler flags. |
| 32895 | LTCFLAGS=$lt_CFLAGS |
| 32896 | |
| 32897 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 32898 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 32899 | |
| 32900 | # Transform the output of nm in a proper C declaration. |
| 32901 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 32902 | |
| 32903 | # Transform the output of nm into a list of symbols to manually relocate. |
| 32904 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 32905 | |
| 32906 | # Transform the output of nm in a C name address pair. |
| 32907 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 32908 | |
| 32909 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 32910 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 32911 | |
| 32912 | # The name lister interface. |
| 32913 | nm_interface=$lt_lt_cv_nm_interface |
| 32914 | |
| 32915 | # Specify filename containing input files for \$NM. |
| 32916 | nm_file_list_spec=$lt_nm_file_list_spec |
| 32917 | |
| 32918 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 32919 | lt_sysroot=$lt_sysroot |
| 32920 | |
| 32921 | # Command to truncate a binary pipe. |
| 32922 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 32923 | |
| 32924 | # The name of the directory that contains temporary libtool files. |
| 32925 | objdir=$objdir |
| 32926 | |
| 32927 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 32928 | MAGIC_CMD=$MAGIC_CMD |
| 32929 | |
| 32930 | # Must we lock files when doing compilation? |
| 32931 | need_locks=$lt_need_locks |
| 32932 | |
| 32933 | # Manifest tool. |
| 32934 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 32935 | |
| 32936 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 32937 | DSYMUTIL=$lt_DSYMUTIL |
| 32938 | |
| 32939 | # Tool to change global to local symbols on Mac OS X. |
| 32940 | NMEDIT=$lt_NMEDIT |
| 32941 | |
| 32942 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 32943 | LIPO=$lt_LIPO |
| 32944 | |
| 32945 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 32946 | OTOOL=$lt_OTOOL |
| 32947 | |
| 32948 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 32949 | OTOOL64=$lt_OTOOL64 |
| 32950 | |
| 32951 | # Old archive suffix (normally "a"). |
| 32952 | libext=$libext |
| 32953 | |
| 32954 | # Shared library suffix (normally ".so"). |
| 32955 | shrext_cmds=$lt_shrext_cmds |
| 32956 | |
| 32957 | # The commands to extract the exported symbol list from a shared archive. |
| 32958 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 32959 | |
| 32960 | # Variables whose values should be saved in libtool wrapper scripts and |
| 32961 | # restored at link time. |
| 32962 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 32963 | |
| 32964 | # Do we need the "lib" prefix for modules? |
| 32965 | need_lib_prefix=$need_lib_prefix |
| 32966 | |
| 32967 | # Do we need a version for libraries? |
| 32968 | need_version=$need_version |
| 32969 | |
| 32970 | # Library versioning type. |
| 32971 | version_type=$version_type |
| 32972 | |
| 32973 | # Shared library runtime path variable. |
| 32974 | runpath_var=$runpath_var |
| 32975 | |
| 32976 | # Shared library path variable. |
| 32977 | shlibpath_var=$shlibpath_var |
| 32978 | |
| 32979 | # Is shlibpath searched before the hard-coded library search path? |
| 32980 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 32981 | |
| 32982 | # Format of library name prefix. |
| 32983 | libname_spec=$lt_libname_spec |
| 32984 | |
| 32985 | # List of archive names. First name is the real one, the rest are links. |
| 32986 | # The last name is the one that the linker finds with -lNAME |
| 32987 | library_names_spec=$lt_library_names_spec |
| 32988 | |
| 32989 | # The coded name of the library, if different from the real name. |
| 32990 | soname_spec=$lt_soname_spec |
| 32991 | |
| 32992 | # Permission mode override for installation of shared libraries. |
| 32993 | install_override_mode=$lt_install_override_mode |
| 32994 | |
| 32995 | # Command to use after installation of a shared archive. |
| 32996 | postinstall_cmds=$lt_postinstall_cmds |
| 32997 | |
| 32998 | # Command to use after uninstallation of a shared archive. |
| 32999 | postuninstall_cmds=$lt_postuninstall_cmds |
| 33000 | |
| 33001 | # Commands used to finish a libtool library installation in a directory. |
| 33002 | finish_cmds=$lt_finish_cmds |
| 33003 | |
| 33004 | # As "finish_cmds", except a single script fragment to be evaled but |
| 33005 | # not shown. |
| 33006 | finish_eval=$lt_finish_eval |
| 33007 | |
| 33008 | # Whether we should hardcode library paths into libraries. |
| 33009 | hardcode_into_libs=$hardcode_into_libs |
| 33010 | |
| 33011 | # Compile-time system search path for libraries. |
| 33012 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 33013 | |
| 33014 | # Detected run-time system search path for libraries. |
| 33015 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 33016 | |
| 33017 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 33018 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 33019 | |
| 33020 | # Whether dlopen is supported. |
| 33021 | dlopen_support=$enable_dlopen |
| 33022 | |
| 33023 | # Whether dlopen of programs is supported. |
| 33024 | dlopen_self=$enable_dlopen_self |
| 33025 | |
| 33026 | # Whether dlopen of statically linked programs is supported. |
| 33027 | dlopen_self_static=$enable_dlopen_self_static |
| 33028 | |
| 33029 | # Commands to strip libraries. |
| 33030 | old_striplib=$lt_old_striplib |
| 33031 | striplib=$lt_striplib |
| 33032 | |
| 33033 | |
| 33034 | # The linker used to build libraries. |
| 33035 | LD=$lt_LD |
| 33036 | |
| 33037 | # How to create reloadable object files. |
| 33038 | reload_flag=$lt_reload_flag |
| 33039 | reload_cmds=$lt_reload_cmds |
| 33040 | |
| 33041 | # Commands used to build an old-style archive. |
| 33042 | old_archive_cmds=$lt_old_archive_cmds |
| 33043 | |
| 33044 | # A language specific compiler. |
| 33045 | CC=$lt_compiler |
| 33046 | |
| 33047 | # Is the compiler the GNU compiler? |
| 33048 | with_gcc=$GCC |
| 33049 | |
| 33050 | # Compiler flag to turn off builtin functions. |
| 33051 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 33052 | |
| 33053 | # Additional compiler flags for building library objects. |
| 33054 | pic_flag=$lt_lt_prog_compiler_pic |
| 33055 | |
| 33056 | # How to pass a linker flag through the compiler. |
| 33057 | wl=$lt_lt_prog_compiler_wl |
| 33058 | |
| 33059 | # Compiler flag to prevent dynamic linking. |
| 33060 | link_static_flag=$lt_lt_prog_compiler_static |
| 33061 | |
| 33062 | # Does compiler simultaneously support -c and -o options? |
| 33063 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 33064 | |
| 33065 | # Whether or not to add -lc for building shared libraries. |
| 33066 | build_libtool_need_lc=$archive_cmds_need_lc |
| 33067 | |
| 33068 | # Whether or not to disallow shared libs when runtime libs are static. |
| 33069 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 33070 | |
| 33071 | # Compiler flag to allow reflexive dlopens. |
| 33072 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 33073 | |
| 33074 | # Compiler flag to generate shared objects directly from archives. |
| 33075 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 33076 | |
| 33077 | # Whether the compiler copes with passing no objects directly. |
| 33078 | compiler_needs_object=$lt_compiler_needs_object |
| 33079 | |
| 33080 | # Create an old-style archive from a shared archive. |
| 33081 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 33082 | |
| 33083 | # Create a temporary old-style archive to link instead of a shared archive. |
| 33084 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 33085 | |
| 33086 | # Commands used to build a shared archive. |
| 33087 | archive_cmds=$lt_archive_cmds |
| 33088 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 33089 | |
| 33090 | # Commands used to build a loadable module if different from building |
| 33091 | # a shared archive. |
| 33092 | module_cmds=$lt_module_cmds |
| 33093 | module_expsym_cmds=$lt_module_expsym_cmds |
| 33094 | |
| 33095 | # Whether we are building with GNU ld or not. |
| 33096 | with_gnu_ld=$lt_with_gnu_ld |
| 33097 | |
| 33098 | # Flag that allows shared libraries with undefined symbols to be built. |
| 33099 | allow_undefined_flag=$lt_allow_undefined_flag |
| 33100 | |
| 33101 | # Flag that enforces no undefined symbols. |
| 33102 | no_undefined_flag=$lt_no_undefined_flag |
| 33103 | |
| 33104 | # Flag to hardcode \$libdir into a binary during linking. |
| 33105 | # This must work even if \$libdir does not exist |
| 33106 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 33107 | |
| 33108 | # Whether we need a single "-rpath" flag with a separated argument. |
| 33109 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 33110 | |
| 33111 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 33112 | # DIR into the resulting binary. |
| 33113 | hardcode_direct=$hardcode_direct |
| 33114 | |
| 33115 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 33116 | # DIR into the resulting binary and the resulting library dependency is |
| 33117 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 33118 | # library is relocated. |
| 33119 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 33120 | |
| 33121 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 33122 | # into the resulting binary. |
| 33123 | hardcode_minus_L=$hardcode_minus_L |
| 33124 | |
| 33125 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 33126 | # into the resulting binary. |
| 33127 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 33128 | |
| 33129 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 33130 | # into the library and all subsequent libraries and executables linked |
| 33131 | # against it. |
| 33132 | hardcode_automatic=$hardcode_automatic |
| 33133 | |
| 33134 | # Set to yes if linker adds runtime paths of dependent libraries |
| 33135 | # to runtime path list. |
| 33136 | inherit_rpath=$inherit_rpath |
| 33137 | |
| 33138 | # Whether libtool must link a program against all its dependency libraries. |
| 33139 | link_all_deplibs=$link_all_deplibs |
| 33140 | |
| 33141 | # Set to "yes" if exported symbols are required. |
| 33142 | always_export_symbols=$always_export_symbols |
| 33143 | |
| 33144 | # The commands to list exported symbols. |
| 33145 | export_symbols_cmds=$lt_export_symbols_cmds |
| 33146 | |
| 33147 | # Symbols that should not be listed in the preloaded symbols. |
| 33148 | exclude_expsyms=$lt_exclude_expsyms |
| 33149 | |
| 33150 | # Symbols that must always be exported. |
| 33151 | include_expsyms=$lt_include_expsyms |
| 33152 | |
| 33153 | # Commands necessary for linking programs (against libraries) with templates. |
| 33154 | prelink_cmds=$lt_prelink_cmds |
| 33155 | |
| 33156 | # Commands necessary for finishing linking programs. |
| 33157 | postlink_cmds=$lt_postlink_cmds |
| 33158 | |
| 33159 | # Specify filename containing input files. |
| 33160 | file_list_spec=$lt_file_list_spec |
| 33161 | |
| 33162 | # How to hardcode a shared library path into an executable. |
| 33163 | hardcode_action=$hardcode_action |
| 33164 | |
| 33165 | # The directories searched by this compiler when creating a shared library. |
| 33166 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 33167 | |
| 33168 | # Dependencies to place before and after the objects being linked to |
| 33169 | # create a shared library. |
| 33170 | predep_objects=$lt_predep_objects |
| 33171 | postdep_objects=$lt_postdep_objects |
| 33172 | predeps=$lt_predeps |
| 33173 | postdeps=$lt_postdeps |
| 33174 | |
| 33175 | # The library search path used internally by the compiler when linking |
| 33176 | # a shared library. |
| 33177 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 33178 | |
| 33179 | # ### END LIBTOOL CONFIG |
| 33180 | |
| 33181 | _LT_EOF |
| 33182 | |
| 33183 | cat <<'_LT_EOF' >> "$cfgfile" |
| 33184 | |
| 33185 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 33186 | |
| 33187 | # func_munge_path_list VARIABLE PATH |
| 33188 | # ----------------------------------- |
| 33189 | # VARIABLE is name of variable containing _space_ separated list of |
| 33190 | # directories to be munged by the contents of PATH, which is string |
| 33191 | # having a format: |
| 33192 | # "DIR[:DIR]:" |
| 33193 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 33194 | # ":DIR[:DIR]" |
| 33195 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 33196 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 33197 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 33198 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 33199 | # "DIR[:DIR]" |
| 33200 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 33201 | func_munge_path_list () |
| 33202 | { |
| 33203 | case x$2 in |
| 33204 | x) |
| 33205 | ;; |
| 33206 | *:) |
| 33207 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 33208 | ;; |
| 33209 | x:*) |
| 33210 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 33211 | ;; |
| 33212 | *::*) |
| 33213 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 33214 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 33215 | ;; |
| 33216 | *) |
| 33217 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 33218 | ;; |
| 33219 | esac |
| 33220 | } |
| 33221 | |
| 33222 | |
| 33223 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 33224 | func_cc_basename () |
| 33225 | { |
| 33226 | for cc_temp in $*""; do |
| 33227 | case $cc_temp in |
| 33228 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 33229 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 33230 | \-*) ;; |
| 33231 | *) break;; |
| 33232 | esac |
| 33233 | done |
| 33234 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 33235 | } |
| 33236 | |
| 33237 | |
| 33238 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 33239 | |
| 33240 | _LT_EOF |
| 33241 | |
| 33242 | case $host_os in |
| 33243 | aix3*) |
| 33244 | cat <<\_LT_EOF >> "$cfgfile" |
| 33245 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 33246 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 33247 | # vanish in a puff of smoke. |
| 33248 | if test set != "${COLLECT_NAMES+set}"; then |
| 33249 | COLLECT_NAMES= |
| 33250 | export COLLECT_NAMES |
| 33251 | fi |
| 33252 | _LT_EOF |
| 33253 | ;; |
| 33254 | esac |
| 33255 | |
| 33256 | |
| 33257 | |
| 33258 | ltmain=$ac_aux_dir/ltmain.sh |
| 33259 | |
| 33260 | |
| 33261 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 33262 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 33263 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 33264 | # is reportedly fixed, but why not run on old versions too? |
| 33265 | $SED '$q' "$ltmain" >> "$cfgfile" \ |
| 33266 | || (rm -f "$cfgfile"; exit 1) |
| 33267 | |
| 33268 | mv -f "$cfgfile" "$ofile" || |
| 33269 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 33270 | chmod +x "$ofile" |
| 33271 | |
| 33272 | |
| 33273 | cat <<_LT_EOF >> "$ofile" |
| 33274 | |
| 33275 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 33276 | |
| 33277 | # The linker used to build libraries. |
| 33278 | LD=$lt_LD_CXX |
| 33279 | |
| 33280 | # How to create reloadable object files. |
| 33281 | reload_flag=$lt_reload_flag_CXX |
| 33282 | reload_cmds=$lt_reload_cmds_CXX |
| 33283 | |
| 33284 | # Commands used to build an old-style archive. |
| 33285 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 33286 | |
| 33287 | # A language specific compiler. |
| 33288 | CC=$lt_compiler_CXX |
| 33289 | |
| 33290 | # Is the compiler the GNU compiler? |
| 33291 | with_gcc=$GCC_CXX |
| 33292 | |
| 33293 | # Compiler flag to turn off builtin functions. |
| 33294 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 33295 | |
| 33296 | # Additional compiler flags for building library objects. |
| 33297 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 33298 | |
| 33299 | # How to pass a linker flag through the compiler. |
| 33300 | wl=$lt_lt_prog_compiler_wl_CXX |
| 33301 | |
| 33302 | # Compiler flag to prevent dynamic linking. |
| 33303 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 33304 | |
| 33305 | # Does compiler simultaneously support -c and -o options? |
| 33306 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 33307 | |
| 33308 | # Whether or not to add -lc for building shared libraries. |
| 33309 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 33310 | |
| 33311 | # Whether or not to disallow shared libs when runtime libs are static. |
| 33312 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 33313 | |
| 33314 | # Compiler flag to allow reflexive dlopens. |
| 33315 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 33316 | |
| 33317 | # Compiler flag to generate shared objects directly from archives. |
| 33318 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 33319 | |
| 33320 | # Whether the compiler copes with passing no objects directly. |
| 33321 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 33322 | |
| 33323 | # Create an old-style archive from a shared archive. |
| 33324 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 33325 | |
| 33326 | # Create a temporary old-style archive to link instead of a shared archive. |
| 33327 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 33328 | |
| 33329 | # Commands used to build a shared archive. |
| 33330 | archive_cmds=$lt_archive_cmds_CXX |
| 33331 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 33332 | |
| 33333 | # Commands used to build a loadable module if different from building |
| 33334 | # a shared archive. |
| 33335 | module_cmds=$lt_module_cmds_CXX |
| 33336 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 33337 | |
| 33338 | # Whether we are building with GNU ld or not. |
| 33339 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 33340 | |
| 33341 | # Flag that allows shared libraries with undefined symbols to be built. |
| 33342 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 33343 | |
| 33344 | # Flag that enforces no undefined symbols. |
| 33345 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 33346 | |
| 33347 | # Flag to hardcode \$libdir into a binary during linking. |
| 33348 | # This must work even if \$libdir does not exist |
| 33349 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 33350 | |
| 33351 | # Whether we need a single "-rpath" flag with a separated argument. |
| 33352 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 33353 | |
| 33354 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 33355 | # DIR into the resulting binary. |
| 33356 | hardcode_direct=$hardcode_direct_CXX |
| 33357 | |
| 33358 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 33359 | # DIR into the resulting binary and the resulting library dependency is |
| 33360 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 33361 | # library is relocated. |
| 33362 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 33363 | |
| 33364 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 33365 | # into the resulting binary. |
| 33366 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 33367 | |
| 33368 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 33369 | # into the resulting binary. |
| 33370 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 33371 | |
| 33372 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 33373 | # into the library and all subsequent libraries and executables linked |
| 33374 | # against it. |
| 33375 | hardcode_automatic=$hardcode_automatic_CXX |
| 33376 | |
| 33377 | # Set to yes if linker adds runtime paths of dependent libraries |
| 33378 | # to runtime path list. |
| 33379 | inherit_rpath=$inherit_rpath_CXX |
| 33380 | |
| 33381 | # Whether libtool must link a program against all its dependency libraries. |
| 33382 | link_all_deplibs=$link_all_deplibs_CXX |
| 33383 | |
| 33384 | # Set to "yes" if exported symbols are required. |
| 33385 | always_export_symbols=$always_export_symbols_CXX |
| 33386 | |
| 33387 | # The commands to list exported symbols. |
| 33388 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 33389 | |
| 33390 | # Symbols that should not be listed in the preloaded symbols. |
| 33391 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 33392 | |
| 33393 | # Symbols that must always be exported. |
| 33394 | include_expsyms=$lt_include_expsyms_CXX |
| 33395 | |
| 33396 | # Commands necessary for linking programs (against libraries) with templates. |
| 33397 | prelink_cmds=$lt_prelink_cmds_CXX |
| 33398 | |
| 33399 | # Commands necessary for finishing linking programs. |
| 33400 | postlink_cmds=$lt_postlink_cmds_CXX |
| 33401 | |
| 33402 | # Specify filename containing input files. |
| 33403 | file_list_spec=$lt_file_list_spec_CXX |
| 33404 | |
| 33405 | # How to hardcode a shared library path into an executable. |
| 33406 | hardcode_action=$hardcode_action_CXX |
| 33407 | |
| 33408 | # The directories searched by this compiler when creating a shared library. |
| 33409 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 33410 | |
| 33411 | # Dependencies to place before and after the objects being linked to |
| 33412 | # create a shared library. |
| 33413 | predep_objects=$lt_predep_objects_CXX |
| 33414 | postdep_objects=$lt_postdep_objects_CXX |
| 33415 | predeps=$lt_predeps_CXX |
| 33416 | postdeps=$lt_postdeps_CXX |
| 33417 | |
| 33418 | # The library search path used internally by the compiler when linking |
| 33419 | # a shared library. |
| 33420 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 33421 | |
| 33422 | # ### END LIBTOOL TAG CONFIG: CXX |
| 33423 | _LT_EOF |
| 33424 | |
| 33425 | ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs |
| 33426 | if test "x$enable_libtool_hack" = xyes; then |
| 33427 | $SED '/# Convert "-framework/i\ |
| 33428 | ## KPSE_LT_HACK: ignore dependency_libs\ |
| 33429 | test "X$installed" = Xyes && dependency_libs=\ |
| 33430 | ' "$ofile" >"$cfgfile" |
| 33431 | mv "$cfgfile" "$ofile" || |
| 33432 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 33433 | chmod +x "$ofile" |
| 33434 | fi |
| 33435 | ;; |
| 33436 | "CXXLD.sh":C) echo "$cxxld_sh" >CXXLD.sh; chmod +x CXXLD.sh ;; |
| 33437 | "w2c/c-auto.h":H) sed -e 's/^#define PACKAGE/#define WEB2C_PACKAGE/' \ |
| 33438 | -e 's/^#define VERSION/#define WEB2C_VERSION/' w2c/c-auto.h >c-auto.tmp \ |
| 33439 | && mv -f c-auto.tmp w2c/c-auto.h ;; |
| 33440 | "web2c-sh":F) chmod +x web2c-sh ;; |
| 33441 | "tangle-sh":F) chmod +x tangle-sh ;; |
| 33442 | "ctangleboot-sh":F) chmod +x ctangleboot-sh ;; |
| 33443 | "silent-sh":F) chmod +x silent-sh ;; |
| 33444 | |
| 33445 | esac |
| 33446 | done # for ac_tag |
| 33447 | |
| 33448 | |
| 33449 | as_fn_exit 0 |
| 33450 | _ACEOF |
| 33451 | ac_clean_files=$ac_clean_files_save |
| 33452 | |
| 33453 | test $ac_write_fail = 0 || |
| 33454 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 33455 | |
| 33456 | if test "x$cross_compiling" = xyes |
| 33457 | then : |
| 33458 | if test "x$cache_file" != x/dev/null |
| 33459 | then : |
| 33460 | cache_file=config.cache |
| 33461 | fi |
| 33462 | ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \ |
| 33463 | CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \ |
| 33464 | CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'" |
| 33465 | fi |
| 33466 | |
| 33467 | # configure is writing to config.log, and then calls config.status. |
| 33468 | # config.status does its own redirection, appending to config.log. |
| 33469 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 33470 | # by configure, so config.status won't be able to write to it; its |
| 33471 | # output is simply discarded. So we exec the FD to /dev/null, |
| 33472 | # effectively closing config.log, so it can be properly (re)opened and |
| 33473 | # appended to by config.status. When coming back to configure, we |
| 33474 | # need to make the FD available again. |
| 33475 | if test "$no_create" != yes; then |
| 33476 | ac_cs_success=: |
| 33477 | ac_config_status_args= |
| 33478 | test "$silent" = yes && |
| 33479 | ac_config_status_args="$ac_config_status_args --quiet" |
| 33480 | exec 5>/dev/null |
| 33481 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 33482 | exec 5>>config.log |
| 33483 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 33484 | # would make configure fail if this is the last instruction. |
| 33485 | $ac_cs_success || as_fn_exit 1 |
| 33486 | fi |
| 33487 | |
| 33488 | # |
| 33489 | # CONFIG_SUBDIRS section. |
| 33490 | # |
| 33491 | if test "$no_recursion" != yes; then |
| 33492 | |
| 33493 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 33494 | # so they do not pile up. |
| 33495 | ac_sub_configure_args= |
| 33496 | ac_prev= |
| 33497 | eval "set x $ac_configure_args" |
| 33498 | shift |
| 33499 | for ac_arg |
| 33500 | do |
| 33501 | if test -n "$ac_prev"; then |
| 33502 | ac_prev= |
| 33503 | continue |
| 33504 | fi |
| 33505 | case $ac_arg in |
| 33506 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 33507 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 33508 | ac_prev=cache_file ;; |
| 33509 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 33510 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 33511 | | --c=*) |
| 33512 | ;; |
| 33513 | --config-cache | -C) |
| 33514 | ;; |
| 33515 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 33516 | ac_prev=srcdir ;; |
| 33517 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 33518 | ;; |
| 33519 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 33520 | ac_prev=prefix ;; |
| 33521 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 33522 | ;; |
| 33523 | --disable-option-checking) |
| 33524 | ;; |
| 33525 | *) |
| 33526 | case $ac_arg in |
| 33527 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 33528 | esac |
| 33529 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
| 33530 | esac |
| 33531 | done |
| 33532 | |
| 33533 | # Always prepend --prefix to ensure using the same prefix |
| 33534 | # in subdir configurations. |
| 33535 | ac_arg="--prefix=$prefix" |
| 33536 | case $ac_arg in |
| 33537 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 33538 | esac |
| 33539 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 33540 | |
| 33541 | # Pass --silent |
| 33542 | if test "$silent" = yes; then |
| 33543 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 33544 | fi |
| 33545 | |
| 33546 | # Always prepend --disable-option-checking to silence warnings, since |
| 33547 | # different subdirs can have different --enable and --with options. |
| 33548 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
| 33549 | |
| 33550 | ac_popdir=`pwd` |
| 33551 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 33552 | |
| 33553 | # Do not complain, so a configure script can configure whichever |
| 33554 | # parts of a large source tree are present. |
| 33555 | test -d "$srcdir/$ac_dir" || continue |
| 33556 | |
| 33557 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 33558 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 33559 | printf "%s\n" "$ac_msg" >&6 |
| 33560 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 33561 | ac_builddir=. |
| 33562 | |
| 33563 | case "$ac_dir" in |
| 33564 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 33565 | *) |
| 33566 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 33567 | # A ".." for each directory in $ac_dir_suffix. |
| 33568 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 33569 | case $ac_top_builddir_sub in |
| 33570 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 33571 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 33572 | esac ;; |
| 33573 | esac |
| 33574 | ac_abs_top_builddir=$ac_pwd |
| 33575 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 33576 | # for backward compatibility: |
| 33577 | ac_top_builddir=$ac_top_build_prefix |
| 33578 | |
| 33579 | case $srcdir in |
| 33580 | .) # We are building in place. |
| 33581 | ac_srcdir=. |
| 33582 | ac_top_srcdir=$ac_top_builddir_sub |
| 33583 | ac_abs_top_srcdir=$ac_pwd ;; |
| 33584 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 33585 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 33586 | ac_top_srcdir=$srcdir |
| 33587 | ac_abs_top_srcdir=$srcdir ;; |
| 33588 | *) # Relative name. |
| 33589 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 33590 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 33591 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 33592 | esac |
| 33593 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 33594 | |
| 33595 | |
| 33596 | cd "$ac_dir" |
| 33597 | |
| 33598 | # Check for configure.gnu first; this name is used for a wrapper for |
| 33599 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 33600 | if test -f "$ac_srcdir/configure.gnu"; then |
| 33601 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 33602 | elif test -f "$ac_srcdir/configure"; then |
| 33603 | ac_sub_configure=$ac_srcdir/configure |
| 33604 | else |
| 33605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
| 33606 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 33607 | ac_sub_configure= |
| 33608 | fi |
| 33609 | |
| 33610 | # The recursion is here. |
| 33611 | if test -n "$ac_sub_configure"; then |
| 33612 | # Make the cache file name correct relative to the subdirectory. |
| 33613 | case $cache_file in |
| 33614 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 33615 | *) # Relative name. |
| 33616 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 33617 | esac |
| 33618 | |
| 33619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 33620 | printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 33621 | # The eval makes quoting arguments work. |
| 33622 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 33623 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
| 33624 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
| 33625 | fi |
| 33626 | |
| 33627 | cd "$ac_popdir" |
| 33628 | done |
| 33629 | fi |
| 33630 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 33631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 33632 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 33633 | fi |
| 33634 | |
| 33635 |