| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.72 for extended BibTeX (TeX Live) 4.03. |
| 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='extended BibTeX (TeX Live)' |
| 616 | PACKAGE_TARNAME='extended-bibtex--tex-live-' |
| 617 | PACKAGE_VERSION='4.03' |
| 618 | PACKAGE_STRING='extended BibTeX (TeX Live) 4.03' |
| 619 | PACKAGE_BUGREPORT='[email protected]' |
| 620 | PACKAGE_URL='' |
| 621 | |
| 622 | ac_unique_file="bibtex-1.c" |
| 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_year2038=no |
| 656 | ac_subst_vars='am__EXEEXT_FALSE |
| 657 | am__EXEEXT_TRUE |
| 658 | LTLIBOBJS |
| 659 | LIBOBJS |
| 660 | BIBTEXU_FALSE |
| 661 | BIBTEXU_TRUE |
| 662 | BIBTEX8_FALSE |
| 663 | BIBTEX8_TRUE |
| 664 | ICU_RULE |
| 665 | ICU_DEPEND |
| 666 | ICU_LIBS |
| 667 | ICU_INCLUDES |
| 668 | ICU_CONFIG |
| 669 | PTHREAD_LIB |
| 670 | KPATHSEA_RULE |
| 671 | KPATHSEA_DEPEND |
| 672 | KPATHSEA_LIBS |
| 673 | KPATHSEA_INCLUDES |
| 674 | PKG_CONFIG |
| 675 | CXXLD |
| 676 | CXXCPP |
| 677 | WARNING_CXXFLAGS |
| 678 | am__fastdepCXX_FALSE |
| 679 | am__fastdepCXX_TRUE |
| 680 | CXXDEPMODE |
| 681 | ac_ct_CXX |
| 682 | CXXFLAGS |
| 683 | CXX |
| 684 | LT_SYS_LIBRARY_PATH |
| 685 | OTOOL64 |
| 686 | OTOOL |
| 687 | LIPO |
| 688 | NMEDIT |
| 689 | DSYMUTIL |
| 690 | MANIFEST_TOOL |
| 691 | RANLIB |
| 692 | FILECMD |
| 693 | LN_S |
| 694 | NM |
| 695 | ac_ct_DUMPBIN |
| 696 | DUMPBIN |
| 697 | LD |
| 698 | FGREP |
| 699 | EGREP |
| 700 | GREP |
| 701 | SED |
| 702 | host_os |
| 703 | host_vendor |
| 704 | host_cpu |
| 705 | host |
| 706 | build_os |
| 707 | build_vendor |
| 708 | build_cpu |
| 709 | build |
| 710 | LIBTOOL |
| 711 | OBJDUMP |
| 712 | DLLTOOL |
| 713 | AS |
| 714 | ac_ct_AR |
| 715 | AR |
| 716 | WARNING_CFLAGS |
| 717 | am__fastdepCC_FALSE |
| 718 | am__fastdepCC_TRUE |
| 719 | CCDEPMODE |
| 720 | am__nodep |
| 721 | AMDEPBACKSLASH |
| 722 | AMDEP_FALSE |
| 723 | AMDEP_TRUE |
| 724 | am__include |
| 725 | DEPDIR |
| 726 | OBJEXT |
| 727 | EXEEXT |
| 728 | ac_ct_CC |
| 729 | CPPFLAGS |
| 730 | LDFLAGS |
| 731 | CFLAGS |
| 732 | CC |
| 733 | MAINT |
| 734 | MAINTAINER_MODE_FALSE |
| 735 | MAINTAINER_MODE_TRUE |
| 736 | am__xargs_n |
| 737 | am__rm_f_notfound |
| 738 | AM_BACKSLASH |
| 739 | AM_DEFAULT_VERBOSITY |
| 740 | AM_DEFAULT_V |
| 741 | AM_V |
| 742 | CSCOPE |
| 743 | ETAGS |
| 744 | CTAGS |
| 745 | am__untar |
| 746 | am__tar |
| 747 | AMTAR |
| 748 | am__leading_dot |
| 749 | SET_MAKE |
| 750 | AWK |
| 751 | mkdir_p |
| 752 | MKDIR_P |
| 753 | INSTALL_STRIP_PROGRAM |
| 754 | STRIP |
| 755 | install_sh |
| 756 | MAKEINFO |
| 757 | AUTOHEADER |
| 758 | AUTOMAKE |
| 759 | AUTOCONF |
| 760 | ACLOCAL |
| 761 | VERSION |
| 762 | PACKAGE |
| 763 | CYGPATH_W |
| 764 | am__isrc |
| 765 | INSTALL_DATA |
| 766 | INSTALL_SCRIPT |
| 767 | INSTALL_PROGRAM |
| 768 | target_alias |
| 769 | host_alias |
| 770 | build_alias |
| 771 | LIBS |
| 772 | ECHO_T |
| 773 | ECHO_N |
| 774 | ECHO_C |
| 775 | DEFS |
| 776 | mandir |
| 777 | localedir |
| 778 | libdir |
| 779 | psdir |
| 780 | pdfdir |
| 781 | dvidir |
| 782 | htmldir |
| 783 | infodir |
| 784 | docdir |
| 785 | oldincludedir |
| 786 | includedir |
| 787 | runstatedir |
| 788 | localstatedir |
| 789 | sharedstatedir |
| 790 | sysconfdir |
| 791 | datadir |
| 792 | datarootdir |
| 793 | libexecdir |
| 794 | sbindir |
| 795 | bindir |
| 796 | program_transform_name |
| 797 | prefix |
| 798 | exec_prefix |
| 799 | PACKAGE_URL |
| 800 | PACKAGE_BUGREPORT |
| 801 | PACKAGE_STRING |
| 802 | PACKAGE_VERSION |
| 803 | PACKAGE_TARNAME |
| 804 | PACKAGE_NAME |
| 805 | PATH_SEPARATOR |
| 806 | SHELL |
| 807 | am__quote' |
| 808 | ac_subst_files='' |
| 809 | ac_user_opts=' |
| 810 | enable_option_checking |
| 811 | enable_silent_rules |
| 812 | enable_maintainer_mode |
| 813 | enable_dependency_tracking |
| 814 | enable_compiler_warnings |
| 815 | enable_shared |
| 816 | enable_static |
| 817 | enable_pic |
| 818 | with_pic |
| 819 | enable_fast_install |
| 820 | enable_aix_soname |
| 821 | with_aix_soname |
| 822 | with_gnu_ld |
| 823 | with_sysroot |
| 824 | enable_libtool_lock |
| 825 | enable_largefile |
| 826 | enable_bibtex8 |
| 827 | enable_bibtexu |
| 828 | enable_cxx_runtime_hack |
| 829 | with_system_kpathsea |
| 830 | with_system_icu |
| 831 | enable_year2038 |
| 832 | ' |
| 833 | ac_precious_vars='build_alias |
| 834 | host_alias |
| 835 | target_alias |
| 836 | CC |
| 837 | CFLAGS |
| 838 | LDFLAGS |
| 839 | LIBS |
| 840 | CPPFLAGS |
| 841 | LT_SYS_LIBRARY_PATH |
| 842 | CXX |
| 843 | CXXFLAGS |
| 844 | CCC |
| 845 | CXXCPP' |
| 846 | |
| 847 | |
| 848 | # Initialize some variables set by options. |
| 849 | ac_init_help= |
| 850 | ac_init_version=false |
| 851 | ac_unrecognized_opts= |
| 852 | ac_unrecognized_sep= |
| 853 | # The variables have the same names as the options, with |
| 854 | # dashes changed to underlines. |
| 855 | cache_file=/dev/null |
| 856 | exec_prefix=NONE |
| 857 | no_create= |
| 858 | no_recursion= |
| 859 | prefix=NONE |
| 860 | program_prefix=NONE |
| 861 | program_suffix=NONE |
| 862 | program_transform_name=s,x,x, |
| 863 | silent= |
| 864 | site= |
| 865 | srcdir= |
| 866 | verbose= |
| 867 | x_includes=NONE |
| 868 | x_libraries=NONE |
| 869 | |
| 870 | # Installation directory options. |
| 871 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 872 | # and all the variables that are supposed to be based on exec_prefix |
| 873 | # by default will actually change. |
| 874 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 875 | # (The list follows the same order as the GNU Coding Standards.) |
| 876 | bindir='${exec_prefix}/bin' |
| 877 | sbindir='${exec_prefix}/sbin' |
| 878 | libexecdir='${exec_prefix}/libexec' |
| 879 | datarootdir='${prefix}/share' |
| 880 | datadir='${datarootdir}' |
| 881 | sysconfdir='${prefix}/etc' |
| 882 | sharedstatedir='${prefix}/com' |
| 883 | localstatedir='${prefix}/var' |
| 884 | runstatedir='${localstatedir}/run' |
| 885 | includedir='${prefix}/include' |
| 886 | oldincludedir='/usr/include' |
| 887 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 888 | infodir='${datarootdir}/info' |
| 889 | htmldir='${docdir}' |
| 890 | dvidir='${docdir}' |
| 891 | pdfdir='${docdir}' |
| 892 | psdir='${docdir}' |
| 893 | libdir='${exec_prefix}/lib' |
| 894 | localedir='${datarootdir}/locale' |
| 895 | mandir='${datarootdir}/man' |
| 896 | |
| 897 | ac_prev= |
| 898 | ac_dashdash= |
| 899 | for ac_option |
| 900 | do |
| 901 | # If the previous option needs an argument, assign it. |
| 902 | if test -n "$ac_prev"; then |
| 903 | eval $ac_prev=\$ac_option |
| 904 | ac_prev= |
| 905 | continue |
| 906 | fi |
| 907 | |
| 908 | case $ac_option in |
| 909 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 910 | *=) ac_optarg= ;; |
| 911 | *) ac_optarg=yes ;; |
| 912 | esac |
| 913 | |
| 914 | case $ac_dashdash$ac_option in |
| 915 | --) |
| 916 | ac_dashdash=yes ;; |
| 917 | |
| 918 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 919 | ac_prev=bindir ;; |
| 920 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 921 | bindir=$ac_optarg ;; |
| 922 | |
| 923 | -build | --build | --buil | --bui | --bu) |
| 924 | ac_prev=build_alias ;; |
| 925 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 926 | build_alias=$ac_optarg ;; |
| 927 | |
| 928 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 929 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 930 | ac_prev=cache_file ;; |
| 931 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 932 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 933 | cache_file=$ac_optarg ;; |
| 934 | |
| 935 | --config-cache | -C) |
| 936 | cache_file=config.cache ;; |
| 937 | |
| 938 | -datadir | --datadir | --datadi | --datad) |
| 939 | ac_prev=datadir ;; |
| 940 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 941 | datadir=$ac_optarg ;; |
| 942 | |
| 943 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 944 | | --dataroo | --dataro | --datar) |
| 945 | ac_prev=datarootdir ;; |
| 946 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 947 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 948 | datarootdir=$ac_optarg ;; |
| 949 | |
| 950 | -disable-* | --disable-*) |
| 951 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 952 | # Reject names that are not valid shell variable names. |
| 953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 954 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 955 | ac_useropt_orig=$ac_useropt |
| 956 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 957 | case $ac_user_opts in |
| 958 | *" |
| 959 | "enable_$ac_useropt" |
| 960 | "*) ;; |
| 961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 962 | ac_unrecognized_sep=', ';; |
| 963 | esac |
| 964 | eval enable_$ac_useropt=no ;; |
| 965 | |
| 966 | -docdir | --docdir | --docdi | --doc | --do) |
| 967 | ac_prev=docdir ;; |
| 968 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 969 | docdir=$ac_optarg ;; |
| 970 | |
| 971 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 972 | ac_prev=dvidir ;; |
| 973 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 974 | dvidir=$ac_optarg ;; |
| 975 | |
| 976 | -enable-* | --enable-*) |
| 977 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 978 | # Reject names that are not valid shell variable names. |
| 979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 980 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 981 | ac_useropt_orig=$ac_useropt |
| 982 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 983 | case $ac_user_opts in |
| 984 | *" |
| 985 | "enable_$ac_useropt" |
| 986 | "*) ;; |
| 987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 988 | ac_unrecognized_sep=', ';; |
| 989 | esac |
| 990 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 991 | |
| 992 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 993 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 994 | | --exec | --exe | --ex) |
| 995 | ac_prev=exec_prefix ;; |
| 996 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 997 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 998 | | --exec=* | --exe=* | --ex=*) |
| 999 | exec_prefix=$ac_optarg ;; |
| 1000 | |
| 1001 | -gas | --gas | --ga | --g) |
| 1002 | # Obsolete; use --with-gas. |
| 1003 | with_gas=yes ;; |
| 1004 | |
| 1005 | -help | --help | --hel | --he | -h) |
| 1006 | ac_init_help=long ;; |
| 1007 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1008 | ac_init_help=recursive ;; |
| 1009 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1010 | ac_init_help=short ;; |
| 1011 | |
| 1012 | -host | --host | --hos | --ho) |
| 1013 | ac_prev=host_alias ;; |
| 1014 | -host=* | --host=* | --hos=* | --ho=*) |
| 1015 | host_alias=$ac_optarg ;; |
| 1016 | |
| 1017 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1018 | ac_prev=htmldir ;; |
| 1019 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1020 | | --ht=*) |
| 1021 | htmldir=$ac_optarg ;; |
| 1022 | |
| 1023 | -includedir | --includedir | --includedi | --included | --include \ |
| 1024 | | --includ | --inclu | --incl | --inc) |
| 1025 | ac_prev=includedir ;; |
| 1026 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1027 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1028 | includedir=$ac_optarg ;; |
| 1029 | |
| 1030 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1031 | ac_prev=infodir ;; |
| 1032 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1033 | infodir=$ac_optarg ;; |
| 1034 | |
| 1035 | -libdir | --libdir | --libdi | --libd) |
| 1036 | ac_prev=libdir ;; |
| 1037 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1038 | libdir=$ac_optarg ;; |
| 1039 | |
| 1040 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1041 | | --libexe | --libex | --libe) |
| 1042 | ac_prev=libexecdir ;; |
| 1043 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1044 | | --libexe=* | --libex=* | --libe=*) |
| 1045 | libexecdir=$ac_optarg ;; |
| 1046 | |
| 1047 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1048 | ac_prev=localedir ;; |
| 1049 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1050 | localedir=$ac_optarg ;; |
| 1051 | |
| 1052 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1053 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1054 | ac_prev=localstatedir ;; |
| 1055 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1056 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1057 | localstatedir=$ac_optarg ;; |
| 1058 | |
| 1059 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1060 | ac_prev=mandir ;; |
| 1061 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1062 | mandir=$ac_optarg ;; |
| 1063 | |
| 1064 | -nfp | --nfp | --nf) |
| 1065 | # Obsolete; use --without-fp. |
| 1066 | with_fp=no ;; |
| 1067 | |
| 1068 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1069 | | --no-cr | --no-c | -n) |
| 1070 | no_create=yes ;; |
| 1071 | |
| 1072 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1073 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1074 | no_recursion=yes ;; |
| 1075 | |
| 1076 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1077 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1078 | | --oldin | --oldi | --old | --ol | --o) |
| 1079 | ac_prev=oldincludedir ;; |
| 1080 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1081 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1082 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1083 | oldincludedir=$ac_optarg ;; |
| 1084 | |
| 1085 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1086 | ac_prev=prefix ;; |
| 1087 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1088 | prefix=$ac_optarg ;; |
| 1089 | |
| 1090 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1091 | | --program-pre | --program-pr | --program-p) |
| 1092 | ac_prev=program_prefix ;; |
| 1093 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1094 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1095 | program_prefix=$ac_optarg ;; |
| 1096 | |
| 1097 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1098 | | --program-suf | --program-su | --program-s) |
| 1099 | ac_prev=program_suffix ;; |
| 1100 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1101 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1102 | program_suffix=$ac_optarg ;; |
| 1103 | |
| 1104 | -program-transform-name | --program-transform-name \ |
| 1105 | | --program-transform-nam | --program-transform-na \ |
| 1106 | | --program-transform-n | --program-transform- \ |
| 1107 | | --program-transform | --program-transfor \ |
| 1108 | | --program-transfo | --program-transf \ |
| 1109 | | --program-trans | --program-tran \ |
| 1110 | | --progr-tra | --program-tr | --program-t) |
| 1111 | ac_prev=program_transform_name ;; |
| 1112 | -program-transform-name=* | --program-transform-name=* \ |
| 1113 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1114 | | --program-transform-n=* | --program-transform-=* \ |
| 1115 | | --program-transform=* | --program-transfor=* \ |
| 1116 | | --program-transfo=* | --program-transf=* \ |
| 1117 | | --program-trans=* | --program-tran=* \ |
| 1118 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1119 | program_transform_name=$ac_optarg ;; |
| 1120 | |
| 1121 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1122 | ac_prev=pdfdir ;; |
| 1123 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1124 | pdfdir=$ac_optarg ;; |
| 1125 | |
| 1126 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1127 | ac_prev=psdir ;; |
| 1128 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1129 | psdir=$ac_optarg ;; |
| 1130 | |
| 1131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1132 | | -silent | --silent | --silen | --sile | --sil) |
| 1133 | silent=yes ;; |
| 1134 | |
| 1135 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1136 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1137 | | --run | --ru | --r) |
| 1138 | ac_prev=runstatedir ;; |
| 1139 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1140 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1141 | | --run=* | --ru=* | --r=*) |
| 1142 | runstatedir=$ac_optarg ;; |
| 1143 | |
| 1144 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1145 | ac_prev=sbindir ;; |
| 1146 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1147 | | --sbi=* | --sb=*) |
| 1148 | sbindir=$ac_optarg ;; |
| 1149 | |
| 1150 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1151 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1152 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1153 | | --sha | --sh) |
| 1154 | ac_prev=sharedstatedir ;; |
| 1155 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1156 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1157 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1158 | | --sha=* | --sh=*) |
| 1159 | sharedstatedir=$ac_optarg ;; |
| 1160 | |
| 1161 | -site | --site | --sit) |
| 1162 | ac_prev=site ;; |
| 1163 | -site=* | --site=* | --sit=*) |
| 1164 | site=$ac_optarg ;; |
| 1165 | |
| 1166 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1167 | ac_prev=srcdir ;; |
| 1168 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1169 | srcdir=$ac_optarg ;; |
| 1170 | |
| 1171 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1172 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1173 | ac_prev=sysconfdir ;; |
| 1174 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1175 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1176 | sysconfdir=$ac_optarg ;; |
| 1177 | |
| 1178 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1179 | ac_prev=target_alias ;; |
| 1180 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1181 | target_alias=$ac_optarg ;; |
| 1182 | |
| 1183 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1184 | verbose=yes ;; |
| 1185 | |
| 1186 | -version | --version | --versio | --versi | --vers | -V) |
| 1187 | ac_init_version=: ;; |
| 1188 | |
| 1189 | -with-* | --with-*) |
| 1190 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1191 | # Reject names that are not valid shell variable names. |
| 1192 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1193 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1194 | ac_useropt_orig=$ac_useropt |
| 1195 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1196 | case $ac_user_opts in |
| 1197 | *" |
| 1198 | "with_$ac_useropt" |
| 1199 | "*) ;; |
| 1200 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1201 | ac_unrecognized_sep=', ';; |
| 1202 | esac |
| 1203 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1204 | |
| 1205 | -without-* | --without-*) |
| 1206 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1207 | # Reject names that are not valid shell variable names. |
| 1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1209 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1210 | ac_useropt_orig=$ac_useropt |
| 1211 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1212 | case $ac_user_opts in |
| 1213 | *" |
| 1214 | "with_$ac_useropt" |
| 1215 | "*) ;; |
| 1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1217 | ac_unrecognized_sep=', ';; |
| 1218 | esac |
| 1219 | eval with_$ac_useropt=no ;; |
| 1220 | |
| 1221 | --x) |
| 1222 | # Obsolete; use --with-x. |
| 1223 | with_x=yes ;; |
| 1224 | |
| 1225 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1226 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1227 | ac_prev=x_includes ;; |
| 1228 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1229 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1230 | x_includes=$ac_optarg ;; |
| 1231 | |
| 1232 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1233 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1234 | ac_prev=x_libraries ;; |
| 1235 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1236 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1237 | x_libraries=$ac_optarg ;; |
| 1238 | |
| 1239 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1240 | Try '$0 --help' for more information" |
| 1241 | ;; |
| 1242 | |
| 1243 | *=*) |
| 1244 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1245 | # Reject names that are not valid shell variable names. |
| 1246 | case $ac_envvar in #( |
| 1247 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1248 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1249 | esac |
| 1250 | eval $ac_envvar=\$ac_optarg |
| 1251 | export $ac_envvar ;; |
| 1252 | |
| 1253 | *) |
| 1254 | # FIXME: should be removed in autoconf 3.0. |
| 1255 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1256 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1257 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1258 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1259 | ;; |
| 1260 | |
| 1261 | esac |
| 1262 | done |
| 1263 | |
| 1264 | if test -n "$ac_prev"; then |
| 1265 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1266 | as_fn_error $? "missing argument to $ac_option" |
| 1267 | fi |
| 1268 | |
| 1269 | if test -n "$ac_unrecognized_opts"; then |
| 1270 | case $enable_option_checking in |
| 1271 | no) ;; |
| 1272 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1273 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1274 | esac |
| 1275 | fi |
| 1276 | |
| 1277 | # Check all directory arguments for consistency. |
| 1278 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1279 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1280 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1281 | libdir localedir mandir runstatedir |
| 1282 | do |
| 1283 | eval ac_val=\$$ac_var |
| 1284 | # Remove trailing slashes. |
| 1285 | case $ac_val in |
| 1286 | */ ) |
| 1287 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1288 | eval $ac_var=\$ac_val;; |
| 1289 | esac |
| 1290 | # Be sure to have absolute directory names. |
| 1291 | case $ac_val in |
| 1292 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1293 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1294 | esac |
| 1295 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1296 | done |
| 1297 | |
| 1298 | # There might be people who depend on the old broken behavior: '$host' |
| 1299 | # used to hold the argument of --host etc. |
| 1300 | # FIXME: To remove some day. |
| 1301 | build=$build_alias |
| 1302 | host=$host_alias |
| 1303 | target=$target_alias |
| 1304 | |
| 1305 | # FIXME: To remove some day. |
| 1306 | if test "x$host_alias" != x; then |
| 1307 | if test "x$build_alias" = x; then |
| 1308 | cross_compiling=maybe |
| 1309 | elif test "x$build_alias" != "x$host_alias"; then |
| 1310 | cross_compiling=yes |
| 1311 | fi |
| 1312 | fi |
| 1313 | |
| 1314 | ac_tool_prefix= |
| 1315 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1316 | |
| 1317 | test "$silent" = yes && exec 6>/dev/null |
| 1318 | |
| 1319 | |
| 1320 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1321 | ac_ls_di=`ls -di .` && |
| 1322 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1323 | as_fn_error $? "working directory cannot be determined" |
| 1324 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1325 | as_fn_error $? "pwd does not report name of working directory" |
| 1326 | |
| 1327 | |
| 1328 | # Find the source files, if location was not specified. |
| 1329 | if test -z "$srcdir"; then |
| 1330 | ac_srcdir_defaulted=yes |
| 1331 | # Try the directory containing this script, then the parent directory. |
| 1332 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1333 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1334 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1335 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1336 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1337 | printf "%s\n" X"$as_myself" | |
| 1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\/\)[^/].*/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\/\)$/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | /^X\(\/\).*/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | s/.*/./; q'` |
| 1355 | srcdir=$ac_confdir |
| 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1357 | srcdir=.. |
| 1358 | fi |
| 1359 | else |
| 1360 | ac_srcdir_defaulted=no |
| 1361 | fi |
| 1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1364 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1365 | fi |
| 1366 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1367 | ac_abs_confdir=`( |
| 1368 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1369 | pwd)` |
| 1370 | # When building in place, set srcdir=. |
| 1371 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1372 | srcdir=. |
| 1373 | fi |
| 1374 | # Remove unnecessary trailing slashes from srcdir. |
| 1375 | # Double slashes in file names in object file debugging info |
| 1376 | # mess up M-x gdb in Emacs. |
| 1377 | case $srcdir in |
| 1378 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1379 | esac |
| 1380 | for ac_var in $ac_precious_vars; do |
| 1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1382 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1385 | done |
| 1386 | |
| 1387 | # |
| 1388 | # Report the --help message. |
| 1389 | # |
| 1390 | if test "$ac_init_help" = "long"; then |
| 1391 | # Omit some internal or obsolete options to make the list less imposing. |
| 1392 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1393 | cat <<_ACEOF |
| 1394 | 'configure' configures extended BibTeX (TeX Live) 4.03 to adapt to many kinds of systems. |
| 1395 | |
| 1396 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1397 | |
| 1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1399 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1400 | |
| 1401 | Defaults for the options are specified in brackets. |
| 1402 | |
| 1403 | Configuration: |
| 1404 | -h, --help display this help and exit |
| 1405 | --help=short display options specific to this package |
| 1406 | --help=recursive display the short help of all the included packages |
| 1407 | -V, --version display version information and exit |
| 1408 | -q, --quiet, --silent do not print 'checking ...' messages |
| 1409 | --cache-file=FILE cache test results in FILE [disabled] |
| 1410 | -C, --config-cache alias for '--cache-file=config.cache' |
| 1411 | -n, --no-create do not create output files |
| 1412 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1413 | |
| 1414 | Installation directories: |
| 1415 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1416 | [$ac_default_prefix] |
| 1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1418 | [PREFIX] |
| 1419 | |
| 1420 | By default, 'make install' will install all the files in |
| 1421 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1422 | an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1423 | for instance '--prefix=\$HOME'. |
| 1424 | |
| 1425 | For better control, use the options below. |
| 1426 | |
| 1427 | Fine tuning of the installation directories: |
| 1428 | --bindir=DIR user executables [EPREFIX/bin] |
| 1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1430 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1434 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1435 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1436 | --includedir=DIR C header files [PREFIX/include] |
| 1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1440 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1442 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1443 | --docdir=DIR documentation root |
| 1444 | [DATAROOTDIR/doc/extended-bibtex--tex-live-] |
| 1445 | --htmldir=DIR html documentation [DOCDIR] |
| 1446 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1448 | --psdir=DIR ps documentation [DOCDIR] |
| 1449 | _ACEOF |
| 1450 | |
| 1451 | cat <<\_ACEOF |
| 1452 | |
| 1453 | Program names: |
| 1454 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1455 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1456 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1457 | |
| 1458 | System types: |
| 1459 | --build=BUILD configure for building on BUILD [guessed] |
| 1460 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1461 | _ACEOF |
| 1462 | fi |
| 1463 | |
| 1464 | if test -n "$ac_init_help"; then |
| 1465 | case $ac_init_help in |
| 1466 | short | recursive ) echo "Configuration of extended BibTeX (TeX Live) 4.03:";; |
| 1467 | esac |
| 1468 | cat <<\_ACEOF |
| 1469 | |
| 1470 | Optional Features: |
| 1471 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1472 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1473 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1474 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1475 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1476 | --enable-maintainer-mode |
| 1477 | enable make rules and dependencies not useful (and |
| 1478 | sometimes confusing) to the casual installer |
| 1479 | --enable-dependency-tracking |
| 1480 | do not reject slow dependency extractors |
| 1481 | --disable-dependency-tracking |
| 1482 | speeds up one-time build |
| 1483 | --enable-compiler-warnings=[no|min|yes|max|all] |
| 1484 | Turn on compiler warnings [default: yes if |
| 1485 | maintainer-mode, min otherwise] |
| 1486 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1487 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1488 | --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1489 | both] |
| 1490 | --enable-fast-install[=PKGS] |
| 1491 | optimize for fast installation [default=yes] |
| 1492 | --enable-aix-soname=aix|svr4|both |
| 1493 | shared library versioning (aka "SONAME") variant to |
| 1494 | provide on AIX, [default=aix]. |
| 1495 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1496 | --disable-largefile omit support for large files |
| 1497 | --disable-bibtex8 do not build the bibtex8 program |
| 1498 | --disable-bibtexu do not build the bibtexu program |
| 1499 | --enable-cxx-runtime-hack link C++ runtime statically |
| 1500 | --enable-year2038 support timestamps after 2038 |
| 1501 | |
| 1502 | Optional Packages: |
| 1503 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1504 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1505 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1506 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1507 | compiler's sysroot if not specified). |
| 1508 | --with-system-kpathsea use installed kpathsea headers and library (requires |
| 1509 | pkg-config) |
| 1510 | --with-system-icu use installed ICU headers and libraries (requires |
| 1511 | pkg-config or icu-config) |
| 1512 | |
| 1513 | Some influential environment variables: |
| 1514 | CC C compiler command |
| 1515 | CFLAGS C compiler flags |
| 1516 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1517 | nonstandard directory <lib dir> |
| 1518 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1519 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1520 | you have headers in a nonstandard directory <include dir> |
| 1521 | LT_SYS_LIBRARY_PATH |
| 1522 | User-defined run-time library search path. |
| 1523 | CXX C++ compiler command |
| 1524 | CXXFLAGS C++ compiler flags |
| 1525 | CXXCPP C++ preprocessor |
| 1526 | |
| 1527 | Use these variables to override the choices made by 'configure' or to help |
| 1528 | it to find libraries and programs with nonstandard names/locations. |
| 1529 | |
| 1530 | Report bugs to <[email protected]>. |
| 1531 | _ACEOF |
| 1532 | ac_status=$? |
| 1533 | fi |
| 1534 | |
| 1535 | if test "$ac_init_help" = "recursive"; then |
| 1536 | # If there are subdirs, report their specific --help. |
| 1537 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1538 | test -d "$ac_dir" || |
| 1539 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1540 | continue |
| 1541 | ac_builddir=. |
| 1542 | |
| 1543 | case "$ac_dir" in |
| 1544 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1545 | *) |
| 1546 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1547 | # A ".." for each directory in $ac_dir_suffix. |
| 1548 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1549 | case $ac_top_builddir_sub in |
| 1550 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1551 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1552 | esac ;; |
| 1553 | esac |
| 1554 | ac_abs_top_builddir=$ac_pwd |
| 1555 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1556 | # for backward compatibility: |
| 1557 | ac_top_builddir=$ac_top_build_prefix |
| 1558 | |
| 1559 | case $srcdir in |
| 1560 | .) # We are building in place. |
| 1561 | ac_srcdir=. |
| 1562 | ac_top_srcdir=$ac_top_builddir_sub |
| 1563 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1564 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1565 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1566 | ac_top_srcdir=$srcdir |
| 1567 | ac_abs_top_srcdir=$srcdir ;; |
| 1568 | *) # Relative name. |
| 1569 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1570 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1571 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1572 | esac |
| 1573 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1574 | |
| 1575 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1576 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1577 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1578 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1579 | echo && |
| 1580 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1581 | elif test -f "$ac_srcdir/configure"; then |
| 1582 | echo && |
| 1583 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1584 | else |
| 1585 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1586 | fi || ac_status=$? |
| 1587 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1588 | done |
| 1589 | fi |
| 1590 | |
| 1591 | test -n "$ac_init_help" && exit $ac_status |
| 1592 | if $ac_init_version; then |
| 1593 | cat <<\_ACEOF |
| 1594 | extended BibTeX (TeX Live) configure 4.03 |
| 1595 | generated by GNU Autoconf 2.72 |
| 1596 | |
| 1597 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 1598 | This configure script is free software; the Free Software Foundation |
| 1599 | gives unlimited permission to copy, distribute and modify it. |
| 1600 | _ACEOF |
| 1601 | exit |
| 1602 | fi |
| 1603 | |
| 1604 | ## ------------------------ ## |
| 1605 | ## Autoconf initialization. ## |
| 1606 | ## ------------------------ ## |
| 1607 | |
| 1608 | # ac_fn_c_try_compile LINENO |
| 1609 | # -------------------------- |
| 1610 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1611 | ac_fn_c_try_compile () |
| 1612 | { |
| 1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1614 | rm -f conftest.$ac_objext conftest.beam |
| 1615 | if { { ac_try="$ac_compile" |
| 1616 | case "(($ac_try" in |
| 1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1618 | *) ac_try_echo=$ac_try;; |
| 1619 | esac |
| 1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1621 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1622 | (eval "$ac_compile") 2>conftest.err |
| 1623 | ac_status=$? |
| 1624 | if test -s conftest.err; then |
| 1625 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1626 | cat conftest.er1 >&5 |
| 1627 | mv -f conftest.er1 conftest.err |
| 1628 | fi |
| 1629 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1630 | test $ac_status = 0; } && { |
| 1631 | test -z "$ac_c_werror_flag" || |
| 1632 | test ! -s conftest.err |
| 1633 | } && test -s conftest.$ac_objext |
| 1634 | then : |
| 1635 | ac_retval=0 |
| 1636 | else case e in #( |
| 1637 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1639 | |
| 1640 | ac_retval=1 ;; |
| 1641 | esac |
| 1642 | fi |
| 1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1644 | as_fn_set_status $ac_retval |
| 1645 | |
| 1646 | } # ac_fn_c_try_compile |
| 1647 | |
| 1648 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1649 | # ------------------------------------------------------- |
| 1650 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1651 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1652 | ac_fn_c_check_header_compile () |
| 1653 | { |
| 1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1656 | printf %s "checking for $2... " >&6; } |
| 1657 | if eval test \${$3+y} |
| 1658 | then : |
| 1659 | printf %s "(cached) " >&6 |
| 1660 | else case e in #( |
| 1661 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1662 | /* end confdefs.h. */ |
| 1663 | $4 |
| 1664 | #include <$2> |
| 1665 | _ACEOF |
| 1666 | if ac_fn_c_try_compile "$LINENO" |
| 1667 | then : |
| 1668 | eval "$3=yes" |
| 1669 | else case e in #( |
| 1670 | e) eval "$3=no" ;; |
| 1671 | esac |
| 1672 | fi |
| 1673 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1674 | esac |
| 1675 | fi |
| 1676 | eval ac_res=\$$3 |
| 1677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1678 | printf "%s\n" "$ac_res" >&6; } |
| 1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1680 | |
| 1681 | } # ac_fn_c_check_header_compile |
| 1682 | |
| 1683 | # ac_fn_c_try_link LINENO |
| 1684 | # ----------------------- |
| 1685 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1686 | ac_fn_c_try_link () |
| 1687 | { |
| 1688 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1689 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1690 | if { { ac_try="$ac_link" |
| 1691 | case "(($ac_try" in |
| 1692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1693 | *) ac_try_echo=$ac_try;; |
| 1694 | esac |
| 1695 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1696 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1697 | (eval "$ac_link") 2>conftest.err |
| 1698 | ac_status=$? |
| 1699 | if test -s conftest.err; then |
| 1700 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1701 | cat conftest.er1 >&5 |
| 1702 | mv -f conftest.er1 conftest.err |
| 1703 | fi |
| 1704 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1705 | test $ac_status = 0; } && { |
| 1706 | test -z "$ac_c_werror_flag" || |
| 1707 | test ! -s conftest.err |
| 1708 | } && test -s conftest$ac_exeext && { |
| 1709 | test "$cross_compiling" = yes || |
| 1710 | test -x conftest$ac_exeext |
| 1711 | } |
| 1712 | then : |
| 1713 | ac_retval=0 |
| 1714 | else case e in #( |
| 1715 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1717 | |
| 1718 | ac_retval=1 ;; |
| 1719 | esac |
| 1720 | fi |
| 1721 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1722 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1723 | # interfere with the next link command; also delete a directory that is |
| 1724 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1725 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1727 | as_fn_set_status $ac_retval |
| 1728 | |
| 1729 | } # ac_fn_c_try_link |
| 1730 | |
| 1731 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1732 | # ---------------------------------- |
| 1733 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1734 | ac_fn_c_check_func () |
| 1735 | { |
| 1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1738 | printf %s "checking for $2... " >&6; } |
| 1739 | if eval test \${$3+y} |
| 1740 | then : |
| 1741 | printf %s "(cached) " >&6 |
| 1742 | else case e in #( |
| 1743 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1744 | /* end confdefs.h. */ |
| 1745 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1746 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1747 | #define $2 innocuous_$2 |
| 1748 | |
| 1749 | /* System header to define __stub macros and hopefully few prototypes, |
| 1750 | which can conflict with char $2 (void); below. */ |
| 1751 | |
| 1752 | #include <limits.h> |
| 1753 | #undef $2 |
| 1754 | |
| 1755 | /* Override any GCC internal prototype to avoid an error. |
| 1756 | Use char because int might match the return type of a GCC |
| 1757 | builtin and then its argument prototype would still apply. */ |
| 1758 | #ifdef __cplusplus |
| 1759 | extern "C" |
| 1760 | #endif |
| 1761 | char $2 (void); |
| 1762 | /* The GNU C library defines this for functions which it implements |
| 1763 | to always fail with ENOSYS. Some functions are actually named |
| 1764 | something starting with __ and the normal name is an alias. */ |
| 1765 | #if defined __stub_$2 || defined __stub___$2 |
| 1766 | choke me |
| 1767 | #endif |
| 1768 | |
| 1769 | int |
| 1770 | main (void) |
| 1771 | { |
| 1772 | return $2 (); |
| 1773 | ; |
| 1774 | return 0; |
| 1775 | } |
| 1776 | _ACEOF |
| 1777 | if ac_fn_c_try_link "$LINENO" |
| 1778 | then : |
| 1779 | eval "$3=yes" |
| 1780 | else case e in #( |
| 1781 | e) eval "$3=no" ;; |
| 1782 | esac |
| 1783 | fi |
| 1784 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1785 | conftest$ac_exeext conftest.$ac_ext ;; |
| 1786 | esac |
| 1787 | fi |
| 1788 | eval ac_res=\$$3 |
| 1789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1790 | printf "%s\n" "$ac_res" >&6; } |
| 1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1792 | |
| 1793 | } # ac_fn_c_check_func |
| 1794 | |
| 1795 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1796 | # ------------------------------------------- |
| 1797 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1798 | # variable VAR accordingly. |
| 1799 | ac_fn_c_check_type () |
| 1800 | { |
| 1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1803 | printf %s "checking for $2... " >&6; } |
| 1804 | if eval test \${$3+y} |
| 1805 | then : |
| 1806 | printf %s "(cached) " >&6 |
| 1807 | else case e in #( |
| 1808 | e) eval "$3=no" |
| 1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1810 | /* end confdefs.h. */ |
| 1811 | $4 |
| 1812 | int |
| 1813 | main (void) |
| 1814 | { |
| 1815 | if (sizeof ($2)) |
| 1816 | return 0; |
| 1817 | ; |
| 1818 | return 0; |
| 1819 | } |
| 1820 | _ACEOF |
| 1821 | if ac_fn_c_try_compile "$LINENO" |
| 1822 | then : |
| 1823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1824 | /* end confdefs.h. */ |
| 1825 | $4 |
| 1826 | int |
| 1827 | main (void) |
| 1828 | { |
| 1829 | if (sizeof (($2))) |
| 1830 | return 0; |
| 1831 | ; |
| 1832 | return 0; |
| 1833 | } |
| 1834 | _ACEOF |
| 1835 | if ac_fn_c_try_compile "$LINENO" |
| 1836 | then : |
| 1837 | |
| 1838 | else case e in #( |
| 1839 | e) eval "$3=yes" ;; |
| 1840 | esac |
| 1841 | fi |
| 1842 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1843 | fi |
| 1844 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1845 | esac |
| 1846 | fi |
| 1847 | eval ac_res=\$$3 |
| 1848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1849 | printf "%s\n" "$ac_res" >&6; } |
| 1850 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1851 | |
| 1852 | } # ac_fn_c_check_type |
| 1853 | |
| 1854 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1855 | # ----------------------------------- |
| 1856 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1857 | # accordingly. |
| 1858 | ac_fn_c_find_intX_t () |
| 1859 | { |
| 1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1862 | printf %s "checking for int$2_t... " >&6; } |
| 1863 | if eval test \${$3+y} |
| 1864 | then : |
| 1865 | printf %s "(cached) " >&6 |
| 1866 | else case e in #( |
| 1867 | e) eval "$3=no" |
| 1868 | # Order is important - never check a type that is potentially smaller |
| 1869 | # than half of the expected target width. |
| 1870 | for ac_type in int$2_t 'int' 'long int' \ |
| 1871 | 'long long int' 'short int' 'signed char'; do |
| 1872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1873 | /* end confdefs.h. */ |
| 1874 | $ac_includes_default |
| 1875 | enum { N = $2 / 2 - 1 }; |
| 1876 | int |
| 1877 | main (void) |
| 1878 | { |
| 1879 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 1880 | test_array [0] = 0; |
| 1881 | return test_array [0]; |
| 1882 | |
| 1883 | ; |
| 1884 | return 0; |
| 1885 | } |
| 1886 | _ACEOF |
| 1887 | if ac_fn_c_try_compile "$LINENO" |
| 1888 | then : |
| 1889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1890 | /* end confdefs.h. */ |
| 1891 | $ac_includes_default |
| 1892 | enum { N = $2 / 2 - 1 }; |
| 1893 | int |
| 1894 | main (void) |
| 1895 | { |
| 1896 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 1897 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1898 | test_array [0] = 0; |
| 1899 | return test_array [0]; |
| 1900 | |
| 1901 | ; |
| 1902 | return 0; |
| 1903 | } |
| 1904 | _ACEOF |
| 1905 | if ac_fn_c_try_compile "$LINENO" |
| 1906 | then : |
| 1907 | |
| 1908 | else case e in #( |
| 1909 | e) case $ac_type in #( |
| 1910 | int$2_t) : |
| 1911 | eval "$3=yes" ;; #( |
| 1912 | *) : |
| 1913 | eval "$3=\$ac_type" ;; |
| 1914 | esac ;; |
| 1915 | esac |
| 1916 | fi |
| 1917 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1918 | fi |
| 1919 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1920 | if eval test \"x\$"$3"\" = x"no" |
| 1921 | then : |
| 1922 | |
| 1923 | else case e in #( |
| 1924 | e) break ;; |
| 1925 | esac |
| 1926 | fi |
| 1927 | done ;; |
| 1928 | esac |
| 1929 | fi |
| 1930 | eval ac_res=\$$3 |
| 1931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1932 | printf "%s\n" "$ac_res" >&6; } |
| 1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1934 | |
| 1935 | } # ac_fn_c_find_intX_t |
| 1936 | |
| 1937 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1938 | # ------------------------------------ |
| 1939 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1940 | # accordingly. |
| 1941 | ac_fn_c_find_uintX_t () |
| 1942 | { |
| 1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1945 | printf %s "checking for uint$2_t... " >&6; } |
| 1946 | if eval test \${$3+y} |
| 1947 | then : |
| 1948 | printf %s "(cached) " >&6 |
| 1949 | else case e in #( |
| 1950 | e) eval "$3=no" |
| 1951 | # Order is important - never check a type that is potentially smaller |
| 1952 | # than half of the expected target width. |
| 1953 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1954 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1956 | /* end confdefs.h. */ |
| 1957 | $ac_includes_default |
| 1958 | int |
| 1959 | main (void) |
| 1960 | { |
| 1961 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1962 | test_array [0] = 0; |
| 1963 | return test_array [0]; |
| 1964 | |
| 1965 | ; |
| 1966 | return 0; |
| 1967 | } |
| 1968 | _ACEOF |
| 1969 | if ac_fn_c_try_compile "$LINENO" |
| 1970 | then : |
| 1971 | case $ac_type in #( |
| 1972 | uint$2_t) : |
| 1973 | eval "$3=yes" ;; #( |
| 1974 | *) : |
| 1975 | eval "$3=\$ac_type" ;; |
| 1976 | esac |
| 1977 | fi |
| 1978 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1979 | if eval test \"x\$"$3"\" = x"no" |
| 1980 | then : |
| 1981 | |
| 1982 | else case e in #( |
| 1983 | e) break ;; |
| 1984 | esac |
| 1985 | fi |
| 1986 | done ;; |
| 1987 | esac |
| 1988 | fi |
| 1989 | eval ac_res=\$$3 |
| 1990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1991 | printf "%s\n" "$ac_res" >&6; } |
| 1992 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1993 | |
| 1994 | } # ac_fn_c_find_uintX_t |
| 1995 | |
| 1996 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 1997 | # ------------------------------------------------------------------ |
| 1998 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1999 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2000 | ac_fn_check_decl () |
| 2001 | { |
| 2002 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2003 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2005 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2006 | if eval test \${$3+y} |
| 2007 | then : |
| 2008 | printf %s "(cached) " >&6 |
| 2009 | else case e in #( |
| 2010 | e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2011 | eval ac_save_FLAGS=\$$6 |
| 2012 | as_fn_append $6 " $5" |
| 2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2014 | /* end confdefs.h. */ |
| 2015 | $4 |
| 2016 | int |
| 2017 | main (void) |
| 2018 | { |
| 2019 | #ifndef $as_decl_name |
| 2020 | #ifdef __cplusplus |
| 2021 | (void) $as_decl_use; |
| 2022 | #else |
| 2023 | (void) $as_decl_name; |
| 2024 | #endif |
| 2025 | #endif |
| 2026 | |
| 2027 | ; |
| 2028 | return 0; |
| 2029 | } |
| 2030 | _ACEOF |
| 2031 | if ac_fn_c_try_compile "$LINENO" |
| 2032 | then : |
| 2033 | eval "$3=yes" |
| 2034 | else case e in #( |
| 2035 | e) eval "$3=no" ;; |
| 2036 | esac |
| 2037 | fi |
| 2038 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2039 | eval $6=\$ac_save_FLAGS |
| 2040 | ;; |
| 2041 | esac |
| 2042 | fi |
| 2043 | eval ac_res=\$$3 |
| 2044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2045 | printf "%s\n" "$ac_res" >&6; } |
| 2046 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2047 | |
| 2048 | } # ac_fn_check_decl |
| 2049 | |
| 2050 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2051 | # ---------------------------------------------------- |
| 2052 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2053 | # INCLUDES, setting cache variable VAR accordingly. |
| 2054 | ac_fn_c_check_member () |
| 2055 | { |
| 2056 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2058 | printf %s "checking for $2.$3... " >&6; } |
| 2059 | if eval test \${$4+y} |
| 2060 | then : |
| 2061 | printf %s "(cached) " >&6 |
| 2062 | else case e in #( |
| 2063 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2064 | /* end confdefs.h. */ |
| 2065 | $5 |
| 2066 | int |
| 2067 | main (void) |
| 2068 | { |
| 2069 | static $2 ac_aggr; |
| 2070 | if (ac_aggr.$3) |
| 2071 | return 0; |
| 2072 | ; |
| 2073 | return 0; |
| 2074 | } |
| 2075 | _ACEOF |
| 2076 | if ac_fn_c_try_compile "$LINENO" |
| 2077 | then : |
| 2078 | eval "$4=yes" |
| 2079 | else case e in #( |
| 2080 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2081 | /* end confdefs.h. */ |
| 2082 | $5 |
| 2083 | int |
| 2084 | main (void) |
| 2085 | { |
| 2086 | static $2 ac_aggr; |
| 2087 | if (sizeof ac_aggr.$3) |
| 2088 | return 0; |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
| 2093 | if ac_fn_c_try_compile "$LINENO" |
| 2094 | then : |
| 2095 | eval "$4=yes" |
| 2096 | else case e in #( |
| 2097 | e) eval "$4=no" ;; |
| 2098 | esac |
| 2099 | fi |
| 2100 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2101 | esac |
| 2102 | fi |
| 2103 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2104 | esac |
| 2105 | fi |
| 2106 | eval ac_res=\$$4 |
| 2107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2108 | printf "%s\n" "$ac_res" >&6; } |
| 2109 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2110 | |
| 2111 | } # ac_fn_c_check_member |
| 2112 | |
| 2113 | # ac_fn_cxx_try_compile LINENO |
| 2114 | # ---------------------------- |
| 2115 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2116 | ac_fn_cxx_try_compile () |
| 2117 | { |
| 2118 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2119 | rm -f conftest.$ac_objext conftest.beam |
| 2120 | if { { ac_try="$ac_compile" |
| 2121 | case "(($ac_try" in |
| 2122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2123 | *) ac_try_echo=$ac_try;; |
| 2124 | esac |
| 2125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2126 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2127 | (eval "$ac_compile") 2>conftest.err |
| 2128 | ac_status=$? |
| 2129 | if test -s conftest.err; then |
| 2130 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2131 | cat conftest.er1 >&5 |
| 2132 | mv -f conftest.er1 conftest.err |
| 2133 | fi |
| 2134 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2135 | test $ac_status = 0; } && { |
| 2136 | test -z "$ac_cxx_werror_flag" || |
| 2137 | test ! -s conftest.err |
| 2138 | } && test -s conftest.$ac_objext |
| 2139 | then : |
| 2140 | ac_retval=0 |
| 2141 | else case e in #( |
| 2142 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2144 | |
| 2145 | ac_retval=1 ;; |
| 2146 | esac |
| 2147 | fi |
| 2148 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2149 | as_fn_set_status $ac_retval |
| 2150 | |
| 2151 | } # ac_fn_cxx_try_compile |
| 2152 | |
| 2153 | # ac_fn_cxx_try_cpp LINENO |
| 2154 | # ------------------------ |
| 2155 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2156 | ac_fn_cxx_try_cpp () |
| 2157 | { |
| 2158 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2159 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2160 | case "(($ac_try" in |
| 2161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2162 | *) ac_try_echo=$ac_try;; |
| 2163 | esac |
| 2164 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2165 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2167 | ac_status=$? |
| 2168 | if test -s conftest.err; then |
| 2169 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2170 | cat conftest.er1 >&5 |
| 2171 | mv -f conftest.er1 conftest.err |
| 2172 | fi |
| 2173 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2174 | test $ac_status = 0; } > conftest.i && { |
| 2175 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2176 | test ! -s conftest.err |
| 2177 | } |
| 2178 | then : |
| 2179 | ac_retval=0 |
| 2180 | else case e in #( |
| 2181 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2183 | |
| 2184 | ac_retval=1 ;; |
| 2185 | esac |
| 2186 | fi |
| 2187 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2188 | as_fn_set_status $ac_retval |
| 2189 | |
| 2190 | } # ac_fn_cxx_try_cpp |
| 2191 | |
| 2192 | # ac_fn_cxx_try_link LINENO |
| 2193 | # ------------------------- |
| 2194 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2195 | ac_fn_cxx_try_link () |
| 2196 | { |
| 2197 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2198 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 2199 | if { { ac_try="$ac_link" |
| 2200 | case "(($ac_try" in |
| 2201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2202 | *) ac_try_echo=$ac_try;; |
| 2203 | esac |
| 2204 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2205 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2206 | (eval "$ac_link") 2>conftest.err |
| 2207 | ac_status=$? |
| 2208 | if test -s conftest.err; then |
| 2209 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2210 | cat conftest.er1 >&5 |
| 2211 | mv -f conftest.er1 conftest.err |
| 2212 | fi |
| 2213 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2214 | test $ac_status = 0; } && { |
| 2215 | test -z "$ac_cxx_werror_flag" || |
| 2216 | test ! -s conftest.err |
| 2217 | } && test -s conftest$ac_exeext && { |
| 2218 | test "$cross_compiling" = yes || |
| 2219 | test -x conftest$ac_exeext |
| 2220 | } |
| 2221 | then : |
| 2222 | ac_retval=0 |
| 2223 | else case e in #( |
| 2224 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2226 | |
| 2227 | ac_retval=1 ;; |
| 2228 | esac |
| 2229 | fi |
| 2230 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2231 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2232 | # interfere with the next link command; also delete a directory that is |
| 2233 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2234 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2235 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2236 | as_fn_set_status $ac_retval |
| 2237 | |
| 2238 | } # ac_fn_cxx_try_link |
| 2239 | |
| 2240 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
| 2241 | # --------------------------------------------------------- |
| 2242 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2243 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2244 | ac_fn_cxx_check_header_compile () |
| 2245 | { |
| 2246 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2248 | printf %s "checking for $2... " >&6; } |
| 2249 | if eval test \${$3+y} |
| 2250 | then : |
| 2251 | printf %s "(cached) " >&6 |
| 2252 | else case e in #( |
| 2253 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2254 | /* end confdefs.h. */ |
| 2255 | $4 |
| 2256 | #include <$2> |
| 2257 | _ACEOF |
| 2258 | if ac_fn_cxx_try_compile "$LINENO" |
| 2259 | then : |
| 2260 | eval "$3=yes" |
| 2261 | else case e in #( |
| 2262 | e) eval "$3=no" ;; |
| 2263 | esac |
| 2264 | fi |
| 2265 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2266 | esac |
| 2267 | fi |
| 2268 | eval ac_res=\$$3 |
| 2269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2270 | printf "%s\n" "$ac_res" >&6; } |
| 2271 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2272 | |
| 2273 | } # ac_fn_cxx_check_header_compile |
| 2274 | ac_configure_args_raw= |
| 2275 | for ac_arg |
| 2276 | do |
| 2277 | case $ac_arg in |
| 2278 | *\'*) |
| 2279 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2280 | esac |
| 2281 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2282 | done |
| 2283 | |
| 2284 | case $ac_configure_args_raw in |
| 2285 | *$as_nl*) |
| 2286 | ac_safe_unquote= ;; |
| 2287 | *) |
| 2288 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2289 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2290 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2291 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2292 | esac |
| 2293 | |
| 2294 | cat >config.log <<_ACEOF |
| 2295 | This file contains any messages produced by compilers while |
| 2296 | running configure, to aid debugging if configure makes a mistake. |
| 2297 | |
| 2298 | It was created by extended BibTeX (TeX Live) $as_me 4.03, which was |
| 2299 | generated by GNU Autoconf 2.72. Invocation command line was |
| 2300 | |
| 2301 | $ $0$ac_configure_args_raw |
| 2302 | |
| 2303 | _ACEOF |
| 2304 | exec 5>>config.log |
| 2305 | { |
| 2306 | cat <<_ASUNAME |
| 2307 | ## --------- ## |
| 2308 | ## Platform. ## |
| 2309 | ## --------- ## |
| 2310 | |
| 2311 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2312 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2313 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2314 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2315 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2316 | |
| 2317 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2318 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2319 | |
| 2320 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2321 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2322 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2323 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2324 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2325 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2326 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2327 | |
| 2328 | _ASUNAME |
| 2329 | |
| 2330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2331 | for as_dir in $PATH |
| 2332 | do |
| 2333 | IFS=$as_save_IFS |
| 2334 | case $as_dir in #((( |
| 2335 | '') as_dir=./ ;; |
| 2336 | */) ;; |
| 2337 | *) as_dir=$as_dir/ ;; |
| 2338 | esac |
| 2339 | printf "%s\n" "PATH: $as_dir" |
| 2340 | done |
| 2341 | IFS=$as_save_IFS |
| 2342 | |
| 2343 | } >&5 |
| 2344 | |
| 2345 | cat >&5 <<_ACEOF |
| 2346 | |
| 2347 | |
| 2348 | ## ----------- ## |
| 2349 | ## Core tests. ## |
| 2350 | ## ----------- ## |
| 2351 | |
| 2352 | _ACEOF |
| 2353 | |
| 2354 | |
| 2355 | # Keep a trace of the command line. |
| 2356 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2357 | # Strip out --silent because we don't want to record it for future runs. |
| 2358 | # Also quote any args containing shell meta-characters. |
| 2359 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2360 | ac_configure_args= |
| 2361 | ac_configure_args0= |
| 2362 | ac_configure_args1= |
| 2363 | ac_must_keep_next=false |
| 2364 | for ac_pass in 1 2 |
| 2365 | do |
| 2366 | for ac_arg |
| 2367 | do |
| 2368 | case $ac_arg in |
| 2369 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2370 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2371 | | -silent | --silent | --silen | --sile | --sil) |
| 2372 | continue ;; |
| 2373 | *\'*) |
| 2374 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2375 | esac |
| 2376 | case $ac_pass in |
| 2377 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2378 | 2) |
| 2379 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2380 | if test $ac_must_keep_next = true; then |
| 2381 | ac_must_keep_next=false # Got value, back to normal. |
| 2382 | else |
| 2383 | case $ac_arg in |
| 2384 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2385 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2386 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2387 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2388 | case "$ac_configure_args0 " in |
| 2389 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2390 | esac |
| 2391 | ;; |
| 2392 | -* ) ac_must_keep_next=true ;; |
| 2393 | esac |
| 2394 | fi |
| 2395 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2396 | ;; |
| 2397 | esac |
| 2398 | done |
| 2399 | done |
| 2400 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2401 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2402 | |
| 2403 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2404 | # config.log. We remove comments because anyway the quotes in there |
| 2405 | # would cause problems or look ugly. |
| 2406 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2407 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2408 | trap 'exit_status=$? |
| 2409 | # Sanitize IFS. |
| 2410 | IFS=" "" $as_nl" |
| 2411 | # Save into config.log some information that might help in debugging. |
| 2412 | { |
| 2413 | echo |
| 2414 | |
| 2415 | printf "%s\n" "## ---------------- ## |
| 2416 | ## Cache variables. ## |
| 2417 | ## ---------------- ##" |
| 2418 | echo |
| 2419 | # The following way of writing the cache mishandles newlines in values, |
| 2420 | ( |
| 2421 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2422 | eval ac_val=\$$ac_var |
| 2423 | case $ac_val in #( |
| 2424 | *${as_nl}*) |
| 2425 | case $ac_var in #( |
| 2426 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2427 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2428 | esac |
| 2429 | case $ac_var in #( |
| 2430 | _ | IFS | as_nl) ;; #( |
| 2431 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2432 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2433 | esac ;; |
| 2434 | esac |
| 2435 | done |
| 2436 | (set) 2>&1 | |
| 2437 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2438 | *${as_nl}ac_space=\ *) |
| 2439 | sed -n \ |
| 2440 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2441 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2442 | ;; #( |
| 2443 | *) |
| 2444 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2445 | ;; |
| 2446 | esac | |
| 2447 | sort |
| 2448 | ) |
| 2449 | echo |
| 2450 | |
| 2451 | printf "%s\n" "## ----------------- ## |
| 2452 | ## Output variables. ## |
| 2453 | ## ----------------- ##" |
| 2454 | echo |
| 2455 | for ac_var in $ac_subst_vars |
| 2456 | do |
| 2457 | eval ac_val=\$$ac_var |
| 2458 | case $ac_val in |
| 2459 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2460 | esac |
| 2461 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2462 | done | sort |
| 2463 | echo |
| 2464 | |
| 2465 | if test -n "$ac_subst_files"; then |
| 2466 | printf "%s\n" "## ------------------- ## |
| 2467 | ## File substitutions. ## |
| 2468 | ## ------------------- ##" |
| 2469 | echo |
| 2470 | for ac_var in $ac_subst_files |
| 2471 | do |
| 2472 | eval ac_val=\$$ac_var |
| 2473 | case $ac_val in |
| 2474 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2475 | esac |
| 2476 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2477 | done | sort |
| 2478 | echo |
| 2479 | fi |
| 2480 | |
| 2481 | if test -s confdefs.h; then |
| 2482 | printf "%s\n" "## ----------- ## |
| 2483 | ## confdefs.h. ## |
| 2484 | ## ----------- ##" |
| 2485 | echo |
| 2486 | cat confdefs.h |
| 2487 | echo |
| 2488 | fi |
| 2489 | test "$ac_signal" != 0 && |
| 2490 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2491 | printf "%s\n" "$as_me: exit $exit_status" |
| 2492 | } >&5 |
| 2493 | rm -f core *.core core.conftest.* && |
| 2494 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2495 | exit $exit_status |
| 2496 | ' 0 |
| 2497 | for ac_signal in 1 2 13 15; do |
| 2498 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2499 | done |
| 2500 | ac_signal=0 |
| 2501 | |
| 2502 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2503 | rm -f -r conftest* confdefs.h |
| 2504 | |
| 2505 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2506 | |
| 2507 | # Predefined preprocessor variables. |
| 2508 | |
| 2509 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2510 | |
| 2511 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2512 | |
| 2513 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2514 | |
| 2515 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2516 | |
| 2517 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2518 | |
| 2519 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2520 | |
| 2521 | |
| 2522 | # Let the site file select an alternate cache file if it wants to. |
| 2523 | # Prefer an explicitly selected file to automatically selected ones. |
| 2524 | if test -n "$CONFIG_SITE"; then |
| 2525 | ac_site_files="$CONFIG_SITE" |
| 2526 | elif test "x$prefix" != xNONE; then |
| 2527 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2528 | else |
| 2529 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2530 | fi |
| 2531 | |
| 2532 | for ac_site_file in $ac_site_files |
| 2533 | do |
| 2534 | case $ac_site_file in #( |
| 2535 | */*) : |
| 2536 | ;; #( |
| 2537 | *) : |
| 2538 | ac_site_file=./$ac_site_file ;; |
| 2539 | esac |
| 2540 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2542 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2543 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2544 | . "$ac_site_file" \ |
| 2545 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2546 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2547 | as_fn_error $? "failed to load site script $ac_site_file |
| 2548 | See 'config.log' for more details" "$LINENO" 5; } |
| 2549 | fi |
| 2550 | done |
| 2551 | |
| 2552 | if test -r "$cache_file"; then |
| 2553 | # Some versions of bash will fail to source /dev/null (special files |
| 2554 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2555 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2557 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2558 | case $cache_file in |
| 2559 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2560 | *) . "./$cache_file";; |
| 2561 | esac |
| 2562 | fi |
| 2563 | else |
| 2564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2565 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2566 | >$cache_file |
| 2567 | fi |
| 2568 | |
| 2569 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2570 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2571 | ac_c_conftest_c89_globals=' |
| 2572 | /* Does the compiler advertise C89 conformance? |
| 2573 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2574 | while being otherwise adequately conformant. */ |
| 2575 | #if !defined __STDC__ |
| 2576 | # error "Compiler does not advertise C89 conformance" |
| 2577 | #endif |
| 2578 | |
| 2579 | #include <stddef.h> |
| 2580 | #include <stdarg.h> |
| 2581 | struct stat; |
| 2582 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2583 | struct buf { int x; }; |
| 2584 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2585 | static char *e (char **p, int i) |
| 2586 | { |
| 2587 | return p[i]; |
| 2588 | } |
| 2589 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2590 | { |
| 2591 | char *s; |
| 2592 | va_list v; |
| 2593 | va_start (v,p); |
| 2594 | s = g (p, va_arg (v,int)); |
| 2595 | va_end (v); |
| 2596 | return s; |
| 2597 | } |
| 2598 | |
| 2599 | /* C89 style stringification. */ |
| 2600 | #define noexpand_stringify(a) #a |
| 2601 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2602 | |
| 2603 | /* C89 style token pasting. Exercises some of the corner cases that |
| 2604 | e.g. old MSVC gets wrong, but not very hard. */ |
| 2605 | #define noexpand_concat(a,b) a##b |
| 2606 | #define expand_concat(a,b) noexpand_concat(a,b) |
| 2607 | extern int vA; |
| 2608 | extern int vbee; |
| 2609 | #define aye A |
| 2610 | #define bee B |
| 2611 | int *pvA = &expand_concat(v,aye); |
| 2612 | int *pvbee = &noexpand_concat(v,bee); |
| 2613 | |
| 2614 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2615 | function prototypes and stuff, but not \xHH hex character constants. |
| 2616 | These do not provoke an error unfortunately, instead are silently treated |
| 2617 | as an "x". The following induces an error, until -std is added to get |
| 2618 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2619 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2620 | that is true only with -std. */ |
| 2621 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2622 | |
| 2623 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2624 | inside strings and character constants. */ |
| 2625 | #define FOO(x) '\''x'\'' |
| 2626 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2627 | |
| 2628 | int test (int i, double x); |
| 2629 | struct s1 {int (*f) (int a);}; |
| 2630 | struct s2 {int (*f) (double a);}; |
| 2631 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2632 | int, int);' |
| 2633 | |
| 2634 | # Test code for whether the C compiler supports C89 (body of main). |
| 2635 | ac_c_conftest_c89_main=' |
| 2636 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2637 | ' |
| 2638 | |
| 2639 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2640 | ac_c_conftest_c99_globals=' |
| 2641 | /* Does the compiler advertise C99 conformance? */ |
| 2642 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2643 | # error "Compiler does not advertise C99 conformance" |
| 2644 | #endif |
| 2645 | |
| 2646 | // See if C++-style comments work. |
| 2647 | |
| 2648 | #include <stdbool.h> |
| 2649 | extern int puts (const char *); |
| 2650 | extern int printf (const char *, ...); |
| 2651 | extern int dprintf (int, const char *, ...); |
| 2652 | extern void *malloc (size_t); |
| 2653 | extern void free (void *); |
| 2654 | |
| 2655 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2656 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2657 | // FILE and stderr. |
| 2658 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2659 | #define showlist(...) puts (#__VA_ARGS__) |
| 2660 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2661 | static void |
| 2662 | test_varargs_macros (void) |
| 2663 | { |
| 2664 | int x = 1234; |
| 2665 | int y = 5678; |
| 2666 | debug ("Flag"); |
| 2667 | debug ("X = %d\n", x); |
| 2668 | showlist (The first, second, and third items.); |
| 2669 | report (x>y, "x is %d but y is %d", x, y); |
| 2670 | } |
| 2671 | |
| 2672 | // Check long long types. |
| 2673 | #define BIG64 18446744073709551615ull |
| 2674 | #define BIG32 4294967295ul |
| 2675 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2676 | #if !BIG_OK |
| 2677 | #error "your preprocessor is broken" |
| 2678 | #endif |
| 2679 | #if BIG_OK |
| 2680 | #else |
| 2681 | #error "your preprocessor is broken" |
| 2682 | #endif |
| 2683 | static long long int bignum = -9223372036854775807LL; |
| 2684 | static unsigned long long int ubignum = BIG64; |
| 2685 | |
| 2686 | struct incomplete_array |
| 2687 | { |
| 2688 | int datasize; |
| 2689 | double data[]; |
| 2690 | }; |
| 2691 | |
| 2692 | struct named_init { |
| 2693 | int number; |
| 2694 | const wchar_t *name; |
| 2695 | double average; |
| 2696 | }; |
| 2697 | |
| 2698 | typedef const char *ccp; |
| 2699 | |
| 2700 | static inline int |
| 2701 | test_restrict (ccp restrict text) |
| 2702 | { |
| 2703 | // Iterate through items via the restricted pointer. |
| 2704 | // Also check for declarations in for loops. |
| 2705 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2706 | continue; |
| 2707 | return 0; |
| 2708 | } |
| 2709 | |
| 2710 | // Check varargs and va_copy. |
| 2711 | static bool |
| 2712 | test_varargs (const char *format, ...) |
| 2713 | { |
| 2714 | va_list args; |
| 2715 | va_start (args, format); |
| 2716 | va_list args_copy; |
| 2717 | va_copy (args_copy, args); |
| 2718 | |
| 2719 | const char *str = ""; |
| 2720 | int number = 0; |
| 2721 | float fnumber = 0; |
| 2722 | |
| 2723 | while (*format) |
| 2724 | { |
| 2725 | switch (*format++) |
| 2726 | { |
| 2727 | case '\''s'\'': // string |
| 2728 | str = va_arg (args_copy, const char *); |
| 2729 | break; |
| 2730 | case '\''d'\'': // int |
| 2731 | number = va_arg (args_copy, int); |
| 2732 | break; |
| 2733 | case '\''f'\'': // float |
| 2734 | fnumber = va_arg (args_copy, double); |
| 2735 | break; |
| 2736 | default: |
| 2737 | break; |
| 2738 | } |
| 2739 | } |
| 2740 | va_end (args_copy); |
| 2741 | va_end (args); |
| 2742 | |
| 2743 | return *str && number && fnumber; |
| 2744 | } |
| 2745 | ' |
| 2746 | |
| 2747 | # Test code for whether the C compiler supports C99 (body of main). |
| 2748 | ac_c_conftest_c99_main=' |
| 2749 | // Check bool. |
| 2750 | _Bool success = false; |
| 2751 | success |= (argc != 0); |
| 2752 | |
| 2753 | // Check restrict. |
| 2754 | if (test_restrict ("String literal") == 0) |
| 2755 | success = true; |
| 2756 | char *restrict newvar = "Another string"; |
| 2757 | |
| 2758 | // Check varargs. |
| 2759 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2760 | test_varargs_macros (); |
| 2761 | |
| 2762 | // Check flexible array members. |
| 2763 | struct incomplete_array *ia = |
| 2764 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2765 | ia->datasize = 10; |
| 2766 | for (int i = 0; i < ia->datasize; ++i) |
| 2767 | ia->data[i] = i * 1.234; |
| 2768 | // Work around memory leak warnings. |
| 2769 | free (ia); |
| 2770 | |
| 2771 | // Check named initializers. |
| 2772 | struct named_init ni = { |
| 2773 | .number = 34, |
| 2774 | .name = L"Test wide string", |
| 2775 | .average = 543.34343, |
| 2776 | }; |
| 2777 | |
| 2778 | ni.number = 58; |
| 2779 | |
| 2780 | int dynamic_array[ni.number]; |
| 2781 | dynamic_array[0] = argv[0][0]; |
| 2782 | dynamic_array[ni.number - 1] = 543; |
| 2783 | |
| 2784 | // work around unused variable warnings |
| 2785 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2786 | || dynamic_array[ni.number - 1] != 543); |
| 2787 | ' |
| 2788 | |
| 2789 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2790 | ac_c_conftest_c11_globals=' |
| 2791 | /* Does the compiler advertise C11 conformance? */ |
| 2792 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2793 | # error "Compiler does not advertise C11 conformance" |
| 2794 | #endif |
| 2795 | |
| 2796 | // Check _Alignas. |
| 2797 | char _Alignas (double) aligned_as_double; |
| 2798 | char _Alignas (0) no_special_alignment; |
| 2799 | extern char aligned_as_int; |
| 2800 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2801 | |
| 2802 | // Check _Alignof. |
| 2803 | enum |
| 2804 | { |
| 2805 | int_alignment = _Alignof (int), |
| 2806 | int_array_alignment = _Alignof (int[100]), |
| 2807 | char_alignment = _Alignof (char) |
| 2808 | }; |
| 2809 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2810 | |
| 2811 | // Check _Noreturn. |
| 2812 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2813 | |
| 2814 | // Check _Static_assert. |
| 2815 | struct test_static_assert |
| 2816 | { |
| 2817 | int x; |
| 2818 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2819 | "_Static_assert does not work in struct"); |
| 2820 | long int y; |
| 2821 | }; |
| 2822 | |
| 2823 | // Check UTF-8 literals. |
| 2824 | #define u8 syntax error! |
| 2825 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2826 | |
| 2827 | // Check duplicate typedefs. |
| 2828 | typedef long *long_ptr; |
| 2829 | typedef long int *long_ptr; |
| 2830 | typedef long_ptr long_ptr; |
| 2831 | |
| 2832 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2833 | struct anonymous |
| 2834 | { |
| 2835 | union { |
| 2836 | struct { int i; int j; }; |
| 2837 | struct { int k; long int l; } w; |
| 2838 | }; |
| 2839 | int m; |
| 2840 | } v1; |
| 2841 | ' |
| 2842 | |
| 2843 | # Test code for whether the C compiler supports C11 (body of main). |
| 2844 | ac_c_conftest_c11_main=' |
| 2845 | _Static_assert ((offsetof (struct anonymous, i) |
| 2846 | == offsetof (struct anonymous, w.k)), |
| 2847 | "Anonymous union alignment botch"); |
| 2848 | v1.i = 2; |
| 2849 | v1.w.k = 5; |
| 2850 | ok |= v1.i != 5; |
| 2851 | ' |
| 2852 | |
| 2853 | # Test code for whether the C compiler supports C11 (complete). |
| 2854 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2855 | ${ac_c_conftest_c99_globals} |
| 2856 | ${ac_c_conftest_c11_globals} |
| 2857 | |
| 2858 | int |
| 2859 | main (int argc, char **argv) |
| 2860 | { |
| 2861 | int ok = 0; |
| 2862 | ${ac_c_conftest_c89_main} |
| 2863 | ${ac_c_conftest_c99_main} |
| 2864 | ${ac_c_conftest_c11_main} |
| 2865 | return ok; |
| 2866 | } |
| 2867 | " |
| 2868 | |
| 2869 | # Test code for whether the C compiler supports C99 (complete). |
| 2870 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2871 | ${ac_c_conftest_c99_globals} |
| 2872 | |
| 2873 | int |
| 2874 | main (int argc, char **argv) |
| 2875 | { |
| 2876 | int ok = 0; |
| 2877 | ${ac_c_conftest_c89_main} |
| 2878 | ${ac_c_conftest_c99_main} |
| 2879 | return ok; |
| 2880 | } |
| 2881 | " |
| 2882 | |
| 2883 | # Test code for whether the C compiler supports C89 (complete). |
| 2884 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2885 | |
| 2886 | int |
| 2887 | main (int argc, char **argv) |
| 2888 | { |
| 2889 | int ok = 0; |
| 2890 | ${ac_c_conftest_c89_main} |
| 2891 | return ok; |
| 2892 | } |
| 2893 | " |
| 2894 | |
| 2895 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2896 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2897 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2898 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2899 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2900 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2901 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2902 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2903 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 2904 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 2905 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
| 2906 | ac_cxx_conftest_cxx98_globals=' |
| 2907 | // Does the compiler advertise C++98 conformance? |
| 2908 | #if !defined __cplusplus || __cplusplus < 199711L |
| 2909 | # error "Compiler does not advertise C++98 conformance" |
| 2910 | #endif |
| 2911 | |
| 2912 | // These inclusions are to reject old compilers that |
| 2913 | // lack the unsuffixed header files. |
| 2914 | #include <cstdlib> |
| 2915 | #include <exception> |
| 2916 | |
| 2917 | // <cassert> and <cstring> are *not* freestanding headers in C++98. |
| 2918 | extern void assert (int); |
| 2919 | namespace std { |
| 2920 | extern int strcmp (const char *, const char *); |
| 2921 | } |
| 2922 | |
| 2923 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
| 2924 | using std::exception; |
| 2925 | using std::strcmp; |
| 2926 | |
| 2927 | namespace { |
| 2928 | |
| 2929 | void test_exception_syntax() |
| 2930 | { |
| 2931 | try { |
| 2932 | throw "test"; |
| 2933 | } catch (const char *s) { |
| 2934 | // Extra parentheses suppress a warning when building autoconf itself, |
| 2935 | // due to lint rules shared with more typical C programs. |
| 2936 | assert (!(strcmp) (s, "test")); |
| 2937 | } |
| 2938 | } |
| 2939 | |
| 2940 | template <typename T> struct test_template |
| 2941 | { |
| 2942 | T const val; |
| 2943 | explicit test_template(T t) : val(t) {} |
| 2944 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
| 2945 | }; |
| 2946 | |
| 2947 | } // anonymous namespace |
| 2948 | ' |
| 2949 | |
| 2950 | # Test code for whether the C++ compiler supports C++98 (body of main) |
| 2951 | ac_cxx_conftest_cxx98_main=' |
| 2952 | assert (argc); |
| 2953 | assert (! argv[0]); |
| 2954 | { |
| 2955 | test_exception_syntax (); |
| 2956 | test_template<double> tt (2.0); |
| 2957 | assert (tt.add (4) == 6.0); |
| 2958 | assert (true && !false); |
| 2959 | } |
| 2960 | ' |
| 2961 | |
| 2962 | # Test code for whether the C++ compiler supports C++11 (global declarations) |
| 2963 | ac_cxx_conftest_cxx11_globals=' |
| 2964 | // Does the compiler advertise C++ 2011 conformance? |
| 2965 | #if !defined __cplusplus || __cplusplus < 201103L |
| 2966 | # error "Compiler does not advertise C++11 conformance" |
| 2967 | #endif |
| 2968 | |
| 2969 | namespace cxx11test |
| 2970 | { |
| 2971 | constexpr int get_val() { return 20; } |
| 2972 | |
| 2973 | struct testinit |
| 2974 | { |
| 2975 | int i; |
| 2976 | double d; |
| 2977 | }; |
| 2978 | |
| 2979 | class delegate |
| 2980 | { |
| 2981 | public: |
| 2982 | delegate(int n) : n(n) {} |
| 2983 | delegate(): delegate(2354) {} |
| 2984 | |
| 2985 | virtual int getval() { return this->n; }; |
| 2986 | protected: |
| 2987 | int n; |
| 2988 | }; |
| 2989 | |
| 2990 | class overridden : public delegate |
| 2991 | { |
| 2992 | public: |
| 2993 | overridden(int n): delegate(n) {} |
| 2994 | virtual int getval() override final { return this->n * 2; } |
| 2995 | }; |
| 2996 | |
| 2997 | class nocopy |
| 2998 | { |
| 2999 | public: |
| 3000 | nocopy(int i): i(i) {} |
| 3001 | nocopy() = default; |
| 3002 | nocopy(const nocopy&) = delete; |
| 3003 | nocopy & operator=(const nocopy&) = delete; |
| 3004 | private: |
| 3005 | int i; |
| 3006 | }; |
| 3007 | |
| 3008 | // for testing lambda expressions |
| 3009 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
| 3010 | { |
| 3011 | return f(v); |
| 3012 | } |
| 3013 | |
| 3014 | // for testing variadic templates and trailing return types |
| 3015 | template <typename V> auto sum(V first) -> V |
| 3016 | { |
| 3017 | return first; |
| 3018 | } |
| 3019 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
| 3020 | { |
| 3021 | return first + sum(rest...); |
| 3022 | } |
| 3023 | } |
| 3024 | ' |
| 3025 | |
| 3026 | # Test code for whether the C++ compiler supports C++11 (body of main) |
| 3027 | ac_cxx_conftest_cxx11_main=' |
| 3028 | { |
| 3029 | // Test auto and decltype |
| 3030 | auto a1 = 6538; |
| 3031 | auto a2 = 48573953.4; |
| 3032 | auto a3 = "String literal"; |
| 3033 | |
| 3034 | int total = 0; |
| 3035 | for (auto i = a3; *i; ++i) { total += *i; } |
| 3036 | |
| 3037 | decltype(a2) a4 = 34895.034; |
| 3038 | } |
| 3039 | { |
| 3040 | // Test constexpr |
| 3041 | short sa[cxx11test::get_val()] = { 0 }; |
| 3042 | } |
| 3043 | { |
| 3044 | // Test initializer lists |
| 3045 | cxx11test::testinit il = { 4323, 435234.23544 }; |
| 3046 | } |
| 3047 | { |
| 3048 | // Test range-based for |
| 3049 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
| 3050 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
| 3051 | for (auto &x : array) { x += 23; } |
| 3052 | } |
| 3053 | { |
| 3054 | // Test lambda expressions |
| 3055 | using cxx11test::eval; |
| 3056 | assert (eval ([](int x) { return x*2; }, 21) == 42); |
| 3057 | double d = 2.0; |
| 3058 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
| 3059 | assert (d == 5.0); |
| 3060 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
| 3061 | assert (d == 5.0); |
| 3062 | } |
| 3063 | { |
| 3064 | // Test use of variadic templates |
| 3065 | using cxx11test::sum; |
| 3066 | auto a = sum(1); |
| 3067 | auto b = sum(1, 2); |
| 3068 | auto c = sum(1.0, 2.0, 3.0); |
| 3069 | } |
| 3070 | { |
| 3071 | // Test constructor delegation |
| 3072 | cxx11test::delegate d1; |
| 3073 | cxx11test::delegate d2(); |
| 3074 | cxx11test::delegate d3(45); |
| 3075 | } |
| 3076 | { |
| 3077 | // Test override and final |
| 3078 | cxx11test::overridden o1(55464); |
| 3079 | } |
| 3080 | { |
| 3081 | // Test nullptr |
| 3082 | char *c = nullptr; |
| 3083 | } |
| 3084 | { |
| 3085 | // Test template brackets |
| 3086 | test_template<::test_template<int>> v(test_template<int>(12)); |
| 3087 | } |
| 3088 | { |
| 3089 | // Unicode literals |
| 3090 | char const *utf8 = u8"UTF-8 string \u2500"; |
| 3091 | char16_t const *utf16 = u"UTF-8 string \u2500"; |
| 3092 | char32_t const *utf32 = U"UTF-32 string \u2500"; |
| 3093 | } |
| 3094 | ' |
| 3095 | |
| 3096 | # Test code for whether the C compiler supports C++11 (complete). |
| 3097 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
| 3098 | ${ac_cxx_conftest_cxx11_globals} |
| 3099 | |
| 3100 | int |
| 3101 | main (int argc, char **argv) |
| 3102 | { |
| 3103 | int ok = 0; |
| 3104 | ${ac_cxx_conftest_cxx98_main} |
| 3105 | ${ac_cxx_conftest_cxx11_main} |
| 3106 | return ok; |
| 3107 | } |
| 3108 | " |
| 3109 | |
| 3110 | # Test code for whether the C compiler supports C++98 (complete). |
| 3111 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
| 3112 | int |
| 3113 | main (int argc, char **argv) |
| 3114 | { |
| 3115 | int ok = 0; |
| 3116 | ${ac_cxx_conftest_cxx98_main} |
| 3117 | return ok; |
| 3118 | } |
| 3119 | " |
| 3120 | |
| 3121 | |
| 3122 | # Auxiliary files required by this configure script. |
| 3123 | ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh" |
| 3124 | |
| 3125 | # Locations in which to look for auxiliary files. |
| 3126 | ac_aux_dir_candidates="${srcdir}/../../build-aux" |
| 3127 | |
| 3128 | # Search for a directory containing all of the required auxiliary files, |
| 3129 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3130 | # If we don't find one directory that contains all the files we need, |
| 3131 | # we report the set of missing files from the *first* directory in |
| 3132 | # $ac_aux_dir_candidates and give up. |
| 3133 | ac_missing_aux_files="" |
| 3134 | ac_first_candidate=: |
| 3135 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3137 | as_found=false |
| 3138 | for as_dir in $ac_aux_dir_candidates |
| 3139 | do |
| 3140 | IFS=$as_save_IFS |
| 3141 | case $as_dir in #((( |
| 3142 | '') as_dir=./ ;; |
| 3143 | */) ;; |
| 3144 | *) as_dir=$as_dir/ ;; |
| 3145 | esac |
| 3146 | as_found=: |
| 3147 | |
| 3148 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3149 | ac_aux_dir_found=yes |
| 3150 | ac_install_sh= |
| 3151 | for ac_aux in $ac_aux_files |
| 3152 | do |
| 3153 | # As a special case, if "install-sh" is required, that requirement |
| 3154 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3155 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 3156 | if test x"$ac_aux" = x"install-sh" |
| 3157 | then |
| 3158 | if test -f "${as_dir}install-sh"; then |
| 3159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3160 | ac_install_sh="${as_dir}install-sh -c" |
| 3161 | elif test -f "${as_dir}install.sh"; then |
| 3162 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3163 | ac_install_sh="${as_dir}install.sh -c" |
| 3164 | elif test -f "${as_dir}shtool"; then |
| 3165 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3166 | ac_install_sh="${as_dir}shtool install -c" |
| 3167 | else |
| 3168 | ac_aux_dir_found=no |
| 3169 | if $ac_first_candidate; then |
| 3170 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3171 | else |
| 3172 | break |
| 3173 | fi |
| 3174 | fi |
| 3175 | else |
| 3176 | if test -f "${as_dir}${ac_aux}"; then |
| 3177 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3178 | else |
| 3179 | ac_aux_dir_found=no |
| 3180 | if $ac_first_candidate; then |
| 3181 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3182 | else |
| 3183 | break |
| 3184 | fi |
| 3185 | fi |
| 3186 | fi |
| 3187 | done |
| 3188 | if test "$ac_aux_dir_found" = yes; then |
| 3189 | ac_aux_dir="$as_dir" |
| 3190 | break |
| 3191 | fi |
| 3192 | ac_first_candidate=false |
| 3193 | |
| 3194 | as_found=false |
| 3195 | done |
| 3196 | IFS=$as_save_IFS |
| 3197 | if $as_found |
| 3198 | then : |
| 3199 | |
| 3200 | else case e in #( |
| 3201 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; |
| 3202 | esac |
| 3203 | fi |
| 3204 | |
| 3205 | |
| 3206 | # These three variables are undocumented and unsupported, |
| 3207 | # and are intended to be withdrawn in a future Autoconf release. |
| 3208 | # They can cause serious problems if a builder's source tree is in a directory |
| 3209 | # whose full name contains unusual characters. |
| 3210 | if test -f "${ac_aux_dir}config.guess"; then |
| 3211 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3212 | fi |
| 3213 | if test -f "${ac_aux_dir}config.sub"; then |
| 3214 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3215 | fi |
| 3216 | if test -f "$ac_aux_dir/configure"; then |
| 3217 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3218 | fi |
| 3219 | |
| 3220 | # Check that the precious variables saved in the cache have kept the same |
| 3221 | # value. |
| 3222 | ac_cache_corrupted=false |
| 3223 | for ac_var in $ac_precious_vars; do |
| 3224 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3225 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3226 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3227 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3228 | case $ac_old_set,$ac_new_set in |
| 3229 | set,) |
| 3230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 3231 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 3232 | ac_cache_corrupted=: ;; |
| 3233 | ,set) |
| 3234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 3235 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 3236 | ac_cache_corrupted=: ;; |
| 3237 | ,);; |
| 3238 | *) |
| 3239 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3240 | # differences in whitespace do not lead to failure. |
| 3241 | ac_old_val_w=`echo x $ac_old_val` |
| 3242 | ac_new_val_w=`echo x $ac_new_val` |
| 3243 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 3245 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 3246 | ac_cache_corrupted=: |
| 3247 | else |
| 3248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 3249 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 3250 | eval $ac_var=\$ac_old_val |
| 3251 | fi |
| 3252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 3253 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 3254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 3255 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 3256 | fi;; |
| 3257 | esac |
| 3258 | # Pass precious variables to config.status. |
| 3259 | if test "$ac_new_set" = set; then |
| 3260 | case $ac_new_val in |
| 3261 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3262 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3263 | esac |
| 3264 | case " $ac_configure_args " in |
| 3265 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3266 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3267 | esac |
| 3268 | fi |
| 3269 | done |
| 3270 | if $ac_cache_corrupted; then |
| 3271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3272 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3274 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3275 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 3276 | and start over" "$LINENO" 5 |
| 3277 | fi |
| 3278 | ## -------------------- ## |
| 3279 | ## Main body of script. ## |
| 3280 | ## -------------------- ## |
| 3281 | |
| 3282 | ac_ext=c |
| 3283 | ac_cpp='$CPP $CPPFLAGS' |
| 3284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3287 | |
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | |
| 3294 | am__api_version='1.18' |
| 3295 | |
| 3296 | |
| 3297 | |
| 3298 | # Find a good install program. We prefer a C program (faster), |
| 3299 | # so one script is as good as another. But avoid the broken or |
| 3300 | # incompatible versions: |
| 3301 | # SysV /etc/install, /usr/sbin/install |
| 3302 | # SunOS /usr/etc/install |
| 3303 | # IRIX /sbin/install |
| 3304 | # AIX /bin/install |
| 3305 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3306 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3307 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3308 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3309 | # OS/2's system install, which has a completely different semantic |
| 3310 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3311 | # Reject install programs that cannot install multiple files. |
| 3312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3313 | printf %s "checking for a BSD-compatible install... " >&6; } |
| 3314 | if test -z "$INSTALL"; then |
| 3315 | if test ${ac_cv_path_install+y} |
| 3316 | then : |
| 3317 | printf %s "(cached) " >&6 |
| 3318 | else case e in #( |
| 3319 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3320 | for as_dir in $PATH |
| 3321 | do |
| 3322 | IFS=$as_save_IFS |
| 3323 | case $as_dir in #((( |
| 3324 | '') as_dir=./ ;; |
| 3325 | */) ;; |
| 3326 | *) as_dir=$as_dir/ ;; |
| 3327 | esac |
| 3328 | # Account for fact that we put trailing slashes in our PATH walk. |
| 3329 | case $as_dir in #(( |
| 3330 | ./ | /[cC]/* | \ |
| 3331 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3332 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3333 | /usr/ucb/* ) ;; |
| 3334 | *) |
| 3335 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3336 | # Don't use installbsd from OSF since it installs stuff as root |
| 3337 | # by default. |
| 3338 | for ac_prog in ginstall scoinst install; do |
| 3339 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3340 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 3341 | if test $ac_prog = install && |
| 3342 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3343 | # AIX install. It has an incompatible calling convention. |
| 3344 | : |
| 3345 | elif test $ac_prog = install && |
| 3346 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3347 | # program-specific install script used by HP pwplus--don't use. |
| 3348 | : |
| 3349 | else |
| 3350 | rm -rf conftest.one conftest.two conftest.dir |
| 3351 | echo one > conftest.one |
| 3352 | echo two > conftest.two |
| 3353 | mkdir conftest.dir |
| 3354 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 3355 | test -s conftest.one && test -s conftest.two && |
| 3356 | test -s conftest.dir/conftest.one && |
| 3357 | test -s conftest.dir/conftest.two |
| 3358 | then |
| 3359 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 3360 | break 3 |
| 3361 | fi |
| 3362 | fi |
| 3363 | fi |
| 3364 | done |
| 3365 | done |
| 3366 | ;; |
| 3367 | esac |
| 3368 | |
| 3369 | done |
| 3370 | IFS=$as_save_IFS |
| 3371 | |
| 3372 | rm -rf conftest.one conftest.two conftest.dir |
| 3373 | ;; |
| 3374 | esac |
| 3375 | fi |
| 3376 | if test ${ac_cv_path_install+y}; then |
| 3377 | INSTALL=$ac_cv_path_install |
| 3378 | else |
| 3379 | # As a last resort, use the slow shell script. Don't cache a |
| 3380 | # value for INSTALL within a source directory, because that will |
| 3381 | # break other packages using the cache if that directory is |
| 3382 | # removed, or if the value is a relative name. |
| 3383 | INSTALL=$ac_install_sh |
| 3384 | fi |
| 3385 | fi |
| 3386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3387 | printf "%s\n" "$INSTALL" >&6; } |
| 3388 | |
| 3389 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3390 | # It thinks the first close brace ends the variable substitution. |
| 3391 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3392 | |
| 3393 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3394 | |
| 3395 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3396 | |
| 3397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 |
| 3398 | printf %s "checking whether sleep supports fractional seconds... " >&6; } |
| 3399 | if test ${am_cv_sleep_fractional_seconds+y} |
| 3400 | then : |
| 3401 | printf %s "(cached) " >&6 |
| 3402 | else case e in #( |
| 3403 | e) if sleep 0.001 2>/dev/null |
| 3404 | then : |
| 3405 | am_cv_sleep_fractional_seconds=yes |
| 3406 | else case e in #( |
| 3407 | e) am_cv_sleep_fractional_seconds=no ;; |
| 3408 | esac |
| 3409 | fi |
| 3410 | ;; |
| 3411 | esac |
| 3412 | fi |
| 3413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 |
| 3414 | printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } |
| 3415 | |
| 3416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 |
| 3417 | printf %s "checking filesystem timestamp resolution... " >&6; } |
| 3418 | if test ${am_cv_filesystem_timestamp_resolution+y} |
| 3419 | then : |
| 3420 | printf %s "(cached) " >&6 |
| 3421 | else case e in #( |
| 3422 | e) # Default to the worst case. |
| 3423 | am_cv_filesystem_timestamp_resolution=2 |
| 3424 | |
| 3425 | # Only try to go finer than 1 sec if sleep can do it. |
| 3426 | # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, |
| 3427 | # - 1 sec is not much of a win compared to 2 sec, and |
| 3428 | # - it takes 2 seconds to perform the test whether 1 sec works. |
| 3429 | # |
| 3430 | # Instead, just use the default 2s on platforms that have 1s resolution, |
| 3431 | # accept the extra 1s delay when using $sleep in the Automake tests, in |
| 3432 | # exchange for not incurring the 2s delay for running the test for all |
| 3433 | # packages. |
| 3434 | # |
| 3435 | am_try_resolutions= |
| 3436 | if test "$am_cv_sleep_fractional_seconds" = yes; then |
| 3437 | # Even a millisecond often causes a bunch of false positives, |
| 3438 | # so just try a hundredth of a second. The time saved between .001 and |
| 3439 | # .01 is not terribly consequential. |
| 3440 | am_try_resolutions="0.01 0.1 $am_try_resolutions" |
| 3441 | fi |
| 3442 | |
| 3443 | # In order to catch current-generation FAT out, we must *modify* files |
| 3444 | # that already exist; the *creation* timestamp is finer. Use names |
| 3445 | # that make ls -t sort them differently when they have equal |
| 3446 | # timestamps than when they have distinct timestamps, keeping |
| 3447 | # in mind that ls -t prints the *newest* file first. |
| 3448 | rm -f conftest.ts? |
| 3449 | : > conftest.ts1 |
| 3450 | : > conftest.ts2 |
| 3451 | : > conftest.ts3 |
| 3452 | |
| 3453 | # Make sure ls -t actually works. Do 'set' in a subshell so we don't |
| 3454 | # clobber the current shell's arguments. (Outer-level square brackets |
| 3455 | # are removed by m4; they're present so that m4 does not expand |
| 3456 | # <dollar><star>; be careful, easy to get confused.) |
| 3457 | if ( |
| 3458 | set X `ls -t conftest.ts[12]` && |
| 3459 | { |
| 3460 | test "$*" != "X conftest.ts1 conftest.ts2" || |
| 3461 | test "$*" != "X conftest.ts2 conftest.ts1"; |
| 3462 | } |
| 3463 | ); then :; else |
| 3464 | # If neither matched, then we have a broken ls. This can happen |
| 3465 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3466 | # broken ls alias from the environment. This has actually |
| 3467 | # happened. Such a system could not be considered "sane". |
| 3468 | printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 |
| 3469 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3470 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3471 | as_fn_error $? "ls -t produces unexpected output. |
| 3472 | Make sure there is not a broken ls alias in your environment. |
| 3473 | See 'config.log' for more details" "$LINENO" 5; } |
| 3474 | fi |
| 3475 | |
| 3476 | for am_try_res in $am_try_resolutions; do |
| 3477 | # Any one fine-grained sleep might happen to cross the boundary |
| 3478 | # between two values of a coarser actual resolution, but if we do |
| 3479 | # two fine-grained sleeps in a row, at least one of them will fall |
| 3480 | # entirely within a coarse interval. |
| 3481 | echo alpha > conftest.ts1 |
| 3482 | sleep $am_try_res |
| 3483 | echo beta > conftest.ts2 |
| 3484 | sleep $am_try_res |
| 3485 | echo gamma > conftest.ts3 |
| 3486 | |
| 3487 | # We assume that 'ls -t' will make use of high-resolution |
| 3488 | # timestamps if the operating system supports them at all. |
| 3489 | if (set X `ls -t conftest.ts?` && |
| 3490 | test "$2" = conftest.ts3 && |
| 3491 | test "$3" = conftest.ts2 && |
| 3492 | test "$4" = conftest.ts1); then |
| 3493 | # |
| 3494 | # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, |
| 3495 | # because we don't need to test make. |
| 3496 | make_ok=true |
| 3497 | if test $am_try_res != 1; then |
| 3498 | # But if we've succeeded so far with a subsecond resolution, we |
| 3499 | # have one more thing to check: make. It can happen that |
| 3500 | # everything else supports the subsecond mtimes, but make doesn't; |
| 3501 | # notably on macOS, which ships make 3.81 from 2006 (the last one |
| 3502 | # released under GPLv2). https://bugs.gnu.org/68808 |
| 3503 | # |
| 3504 | # We test $MAKE if it is defined in the environment, else "make". |
| 3505 | # It might get overridden later, but our hope is that in practice |
| 3506 | # it does not matter: it is the system "make" which is (by far) |
| 3507 | # the most likely to be broken, whereas if the user overrides it, |
| 3508 | # probably they did so with a better, or at least not worse, make. |
| 3509 | # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html |
| 3510 | # |
| 3511 | # Create a Makefile (real tab character here): |
| 3512 | rm -f conftest.mk |
| 3513 | echo 'conftest.ts1: conftest.ts2' >conftest.mk |
| 3514 | echo ' touch conftest.ts2' >>conftest.mk |
| 3515 | # |
| 3516 | # Now, running |
| 3517 | # touch conftest.ts1; touch conftest.ts2; make |
| 3518 | # should touch ts1 because ts2 is newer. This could happen by luck, |
| 3519 | # but most often, it will fail if make's support is insufficient. So |
| 3520 | # test for several consecutive successes. |
| 3521 | # |
| 3522 | # (We reuse conftest.ts[12] because we still want to modify existing |
| 3523 | # files, not create new ones, per above.) |
| 3524 | n=0 |
| 3525 | make=${MAKE-make} |
| 3526 | until test $n -eq 3; do |
| 3527 | echo one > conftest.ts1 |
| 3528 | sleep $am_try_res |
| 3529 | echo two > conftest.ts2 # ts2 should now be newer than ts1 |
| 3530 | if $make -f conftest.mk | grep 'up to date' >/dev/null; then |
| 3531 | make_ok=false |
| 3532 | break # out of $n loop |
| 3533 | fi |
| 3534 | n=`expr $n + 1` |
| 3535 | done |
| 3536 | fi |
| 3537 | # |
| 3538 | if $make_ok; then |
| 3539 | # Everything we know to check worked out, so call this resolution good. |
| 3540 | am_cv_filesystem_timestamp_resolution=$am_try_res |
| 3541 | break # out of $am_try_res loop |
| 3542 | fi |
| 3543 | # Otherwise, we'll go on to check the next resolution. |
| 3544 | fi |
| 3545 | done |
| 3546 | rm -f conftest.ts? |
| 3547 | # (end _am_filesystem_timestamp_resolution) |
| 3548 | ;; |
| 3549 | esac |
| 3550 | fi |
| 3551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 |
| 3552 | printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } |
| 3553 | |
| 3554 | # This check should not be cached, as it may vary across builds of |
| 3555 | # different projects. |
| 3556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3557 | printf %s "checking whether build environment is sane... " >&6; } |
| 3558 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3559 | # name. Accept space and tab only in the latter. |
| 3560 | am_lf=' |
| 3561 | ' |
| 3562 | case `pwd` in |
| 3563 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 3564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3565 | printf "%s\n" "no" >&6; } |
| 3566 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3567 | esac |
| 3568 | case $srcdir in |
| 3569 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3571 | printf "%s\n" "no" >&6; } |
| 3572 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3573 | esac |
| 3574 | |
| 3575 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 3576 | # arguments. Must try -L first in case configure is actually a |
| 3577 | # symlink; some systems play weird games with the mod time of symlinks |
| 3578 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3579 | # directory). |
| 3580 | am_build_env_is_sane=no |
| 3581 | am_has_slept=no |
| 3582 | rm -f conftest.file |
| 3583 | for am_try in 1 2; do |
| 3584 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3585 | if ( |
| 3586 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3587 | if test "$*" = "X"; then |
| 3588 | # -L didn't work. |
| 3589 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3590 | fi |
| 3591 | test "$2" = conftest.file |
| 3592 | ); then |
| 3593 | am_build_env_is_sane=yes |
| 3594 | break |
| 3595 | fi |
| 3596 | # Just in case. |
| 3597 | sleep "$am_cv_filesystem_timestamp_resolution" |
| 3598 | am_has_slept=yes |
| 3599 | done |
| 3600 | |
| 3601 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 |
| 3602 | printf "%s\n" "$am_build_env_is_sane" >&6; } |
| 3603 | if test "$am_build_env_is_sane" = no; then |
| 3604 | as_fn_error $? "newly created file is older than distributed files! |
| 3605 | Check your system clock" "$LINENO" 5 |
| 3606 | fi |
| 3607 | |
| 3608 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3609 | # generated files are strictly newer. |
| 3610 | am_sleep_pid= |
| 3611 | if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 |
| 3612 | then : |
| 3613 | |
| 3614 | else case e in #( |
| 3615 | e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & |
| 3616 | am_sleep_pid=$! |
| 3617 | ;; |
| 3618 | esac |
| 3619 | fi |
| 3620 | |
| 3621 | rm -f conftest.file |
| 3622 | |
| 3623 | test "$program_prefix" != NONE && |
| 3624 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3625 | # Use a double $ so make ignores it. |
| 3626 | test "$program_suffix" != NONE && |
| 3627 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3628 | # Double any \ or $. |
| 3629 | # By default was 's,x,x', remove it if useless. |
| 3630 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3631 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 3632 | |
| 3633 | |
| 3634 | # Expand $ac_aux_dir to an absolute path. |
| 3635 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3636 | |
| 3637 | |
| 3638 | if test x"${MISSING+set}" != xset; then |
| 3639 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 3640 | fi |
| 3641 | # Use eval to expand $SHELL |
| 3642 | if eval "$MISSING --is-lightweight"; then |
| 3643 | am_missing_run="$MISSING " |
| 3644 | else |
| 3645 | am_missing_run= |
| 3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3647 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3648 | fi |
| 3649 | |
| 3650 | if test x"${install_sh+set}" != xset; then |
| 3651 | case $am_aux_dir in |
| 3652 | *\ * | *\ *) |
| 3653 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3654 | *) |
| 3655 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3656 | esac |
| 3657 | fi |
| 3658 | |
| 3659 | # Installed binaries are usually stripped using 'strip' when the user |
| 3660 | # run "make install-strip". However 'strip' might not be the right |
| 3661 | # tool to use in cross-compilation environments, therefore Automake |
| 3662 | # will honor the 'STRIP' environment variable to overrule this program. |
| 3663 | if test "$cross_compiling" != no; then |
| 3664 | if test -n "$ac_tool_prefix"; then |
| 3665 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3666 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3668 | printf %s "checking for $ac_word... " >&6; } |
| 3669 | if test ${ac_cv_prog_STRIP+y} |
| 3670 | then : |
| 3671 | printf %s "(cached) " >&6 |
| 3672 | else case e in #( |
| 3673 | e) if test -n "$STRIP"; then |
| 3674 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3675 | else |
| 3676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3677 | for as_dir in $PATH |
| 3678 | do |
| 3679 | IFS=$as_save_IFS |
| 3680 | case $as_dir in #((( |
| 3681 | '') as_dir=./ ;; |
| 3682 | */) ;; |
| 3683 | *) as_dir=$as_dir/ ;; |
| 3684 | esac |
| 3685 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3686 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3687 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3688 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3689 | break 2 |
| 3690 | fi |
| 3691 | done |
| 3692 | done |
| 3693 | IFS=$as_save_IFS |
| 3694 | |
| 3695 | fi ;; |
| 3696 | esac |
| 3697 | fi |
| 3698 | STRIP=$ac_cv_prog_STRIP |
| 3699 | if test -n "$STRIP"; then |
| 3700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3701 | printf "%s\n" "$STRIP" >&6; } |
| 3702 | else |
| 3703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3704 | printf "%s\n" "no" >&6; } |
| 3705 | fi |
| 3706 | |
| 3707 | |
| 3708 | fi |
| 3709 | if test -z "$ac_cv_prog_STRIP"; then |
| 3710 | ac_ct_STRIP=$STRIP |
| 3711 | # Extract the first word of "strip", so it can be a program name with args. |
| 3712 | set dummy strip; ac_word=$2 |
| 3713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3714 | printf %s "checking for $ac_word... " >&6; } |
| 3715 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 3716 | then : |
| 3717 | printf %s "(cached) " >&6 |
| 3718 | else case e in #( |
| 3719 | e) if test -n "$ac_ct_STRIP"; then |
| 3720 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3721 | else |
| 3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3723 | for as_dir in $PATH |
| 3724 | do |
| 3725 | IFS=$as_save_IFS |
| 3726 | case $as_dir in #((( |
| 3727 | '') as_dir=./ ;; |
| 3728 | */) ;; |
| 3729 | *) as_dir=$as_dir/ ;; |
| 3730 | esac |
| 3731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3732 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3733 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3734 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3735 | break 2 |
| 3736 | fi |
| 3737 | done |
| 3738 | done |
| 3739 | IFS=$as_save_IFS |
| 3740 | |
| 3741 | fi ;; |
| 3742 | esac |
| 3743 | fi |
| 3744 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3745 | if test -n "$ac_ct_STRIP"; then |
| 3746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3747 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 3748 | else |
| 3749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3750 | printf "%s\n" "no" >&6; } |
| 3751 | fi |
| 3752 | |
| 3753 | if test "x$ac_ct_STRIP" = x; then |
| 3754 | STRIP=":" |
| 3755 | else |
| 3756 | case $cross_compiling:$ac_tool_warned in |
| 3757 | yes:) |
| 3758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3759 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3760 | ac_tool_warned=yes ;; |
| 3761 | esac |
| 3762 | STRIP=$ac_ct_STRIP |
| 3763 | fi |
| 3764 | else |
| 3765 | STRIP="$ac_cv_prog_STRIP" |
| 3766 | fi |
| 3767 | |
| 3768 | fi |
| 3769 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3770 | |
| 3771 | |
| 3772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 3773 | printf %s "checking for a race-free mkdir -p... " >&6; } |
| 3774 | if test -z "$MKDIR_P"; then |
| 3775 | if test ${ac_cv_path_mkdir+y} |
| 3776 | then : |
| 3777 | printf %s "(cached) " >&6 |
| 3778 | else case e in #( |
| 3779 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3780 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3781 | do |
| 3782 | IFS=$as_save_IFS |
| 3783 | case $as_dir in #((( |
| 3784 | '') as_dir=./ ;; |
| 3785 | */) ;; |
| 3786 | *) as_dir=$as_dir/ ;; |
| 3787 | esac |
| 3788 | for ac_prog in mkdir gmkdir; do |
| 3789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3790 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 3791 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3792 | 'mkdir ('*'coreutils) '* | \ |
| 3793 | *'BusyBox '* | \ |
| 3794 | 'mkdir (fileutils) '4.1*) |
| 3795 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 3796 | break 3;; |
| 3797 | esac |
| 3798 | done |
| 3799 | done |
| 3800 | done |
| 3801 | IFS=$as_save_IFS |
| 3802 | ;; |
| 3803 | esac |
| 3804 | fi |
| 3805 | |
| 3806 | test -d ./--version && rmdir ./--version |
| 3807 | if test ${ac_cv_path_mkdir+y}; then |
| 3808 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3809 | else |
| 3810 | # As a last resort, use plain mkdir -p, |
| 3811 | # in the hope it doesn't have the bugs of ancient mkdir. |
| 3812 | MKDIR_P='mkdir -p' |
| 3813 | fi |
| 3814 | fi |
| 3815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3816 | printf "%s\n" "$MKDIR_P" >&6; } |
| 3817 | |
| 3818 | for ac_prog in gawk mawk nawk awk |
| 3819 | do |
| 3820 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3821 | set dummy $ac_prog; ac_word=$2 |
| 3822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3823 | printf %s "checking for $ac_word... " >&6; } |
| 3824 | if test ${ac_cv_prog_AWK+y} |
| 3825 | then : |
| 3826 | printf %s "(cached) " >&6 |
| 3827 | else case e in #( |
| 3828 | e) if test -n "$AWK"; then |
| 3829 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3830 | else |
| 3831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3832 | for as_dir in $PATH |
| 3833 | do |
| 3834 | IFS=$as_save_IFS |
| 3835 | case $as_dir in #((( |
| 3836 | '') as_dir=./ ;; |
| 3837 | */) ;; |
| 3838 | *) as_dir=$as_dir/ ;; |
| 3839 | esac |
| 3840 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3841 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3842 | ac_cv_prog_AWK="$ac_prog" |
| 3843 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3844 | break 2 |
| 3845 | fi |
| 3846 | done |
| 3847 | done |
| 3848 | IFS=$as_save_IFS |
| 3849 | |
| 3850 | fi ;; |
| 3851 | esac |
| 3852 | fi |
| 3853 | AWK=$ac_cv_prog_AWK |
| 3854 | if test -n "$AWK"; then |
| 3855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3856 | printf "%s\n" "$AWK" >&6; } |
| 3857 | else |
| 3858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3859 | printf "%s\n" "no" >&6; } |
| 3860 | fi |
| 3861 | |
| 3862 | |
| 3863 | test -n "$AWK" && break |
| 3864 | done |
| 3865 | |
| 3866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3867 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3868 | set x ${MAKE-make} |
| 3869 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3870 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 3871 | then : |
| 3872 | printf %s "(cached) " >&6 |
| 3873 | else case e in #( |
| 3874 | e) cat >conftest.make <<\_ACEOF |
| 3875 | SHELL = /bin/sh |
| 3876 | all: |
| 3877 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3878 | _ACEOF |
| 3879 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3880 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3881 | *@@@%%%=?*=@@@%%%*) |
| 3882 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3883 | *) |
| 3884 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3885 | esac |
| 3886 | rm -f conftest.make ;; |
| 3887 | esac |
| 3888 | fi |
| 3889 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3891 | printf "%s\n" "yes" >&6; } |
| 3892 | SET_MAKE= |
| 3893 | else |
| 3894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3895 | printf "%s\n" "no" >&6; } |
| 3896 | SET_MAKE="MAKE=${MAKE-make}" |
| 3897 | fi |
| 3898 | |
| 3899 | rm -rf .tst 2>/dev/null |
| 3900 | mkdir .tst 2>/dev/null |
| 3901 | if test -d .tst; then |
| 3902 | am__leading_dot=. |
| 3903 | else |
| 3904 | am__leading_dot=_ |
| 3905 | fi |
| 3906 | rmdir .tst 2>/dev/null |
| 3907 | |
| 3908 | AM_DEFAULT_VERBOSITY=1 |
| 3909 | # Check whether --enable-silent-rules was given. |
| 3910 | if test ${enable_silent_rules+y} |
| 3911 | then : |
| 3912 | enableval=$enable_silent_rules; |
| 3913 | fi |
| 3914 | |
| 3915 | am_make=${MAKE-make} |
| 3916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3917 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 3918 | if test ${am_cv_make_support_nested_variables+y} |
| 3919 | then : |
| 3920 | printf %s "(cached) " >&6 |
| 3921 | else case e in #( |
| 3922 | e) if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 3923 | BAR0=false |
| 3924 | BAR1=true |
| 3925 | V=1 |
| 3926 | am__doit: |
| 3927 | @$(TRUE) |
| 3928 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3929 | am_cv_make_support_nested_variables=yes |
| 3930 | else |
| 3931 | am_cv_make_support_nested_variables=no |
| 3932 | fi ;; |
| 3933 | esac |
| 3934 | fi |
| 3935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3936 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 3937 | AM_BACKSLASH='\' |
| 3938 | |
| 3939 | am__rm_f_notfound= |
| 3940 | if (rm -f && rm -fr && rm -rf) 2>/dev/null |
| 3941 | then : |
| 3942 | |
| 3943 | else case e in #( |
| 3944 | e) am__rm_f_notfound='""' ;; |
| 3945 | esac |
| 3946 | fi |
| 3947 | |
| 3948 | |
| 3949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 |
| 3950 | printf %s "checking xargs -n works... " >&6; } |
| 3951 | if test ${am_cv_xargs_n_works+y} |
| 3952 | then : |
| 3953 | printf %s "(cached) " >&6 |
| 3954 | else case e in #( |
| 3955 | e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 |
| 3956 | 3" |
| 3957 | then : |
| 3958 | am_cv_xargs_n_works=yes |
| 3959 | else case e in #( |
| 3960 | e) am_cv_xargs_n_works=no ;; |
| 3961 | esac |
| 3962 | fi ;; |
| 3963 | esac |
| 3964 | fi |
| 3965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 |
| 3966 | printf "%s\n" "$am_cv_xargs_n_works" >&6; } |
| 3967 | if test "$am_cv_xargs_n_works" = yes |
| 3968 | then : |
| 3969 | am__xargs_n='xargs -n' |
| 3970 | else case e in #( |
| 3971 | e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' |
| 3972 | ;; |
| 3973 | esac |
| 3974 | fi |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | |
| 3982 | |
| 3983 | |
| 3984 | |
| 3985 | DEPDIR="${am__leading_dot}deps" |
| 3986 | |
| 3987 | ac_config_commands="$ac_config_commands depfiles" |
| 3988 | |
| 3989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 3990 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 3991 | cat > confinc.mk << 'END' |
| 3992 | am__doit: |
| 3993 | @echo this is the am__doit target >confinc.out |
| 3994 | .PHONY: am__doit |
| 3995 | END |
| 3996 | am__include="#" |
| 3997 | am__quote= |
| 3998 | # BSD make does it like this. |
| 3999 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 4000 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 4001 | echo 'include confinc.mk # ignored' > confmf.GNU |
| 4002 | _am_result=no |
| 4003 | for s in GNU BSD; do |
| 4004 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 4005 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 4006 | ac_status=$? |
| 4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4008 | (exit $ac_status); } |
| 4009 | case $?:`cat confinc.out 2>/dev/null` in #( |
| 4010 | '0:this is the am__doit target') : |
| 4011 | case $s in #( |
| 4012 | BSD) : |
| 4013 | am__include='.include' am__quote='"' ;; #( |
| 4014 | *) : |
| 4015 | am__include='include' am__quote='' ;; |
| 4016 | esac ;; #( |
| 4017 | *) : |
| 4018 | ;; |
| 4019 | esac |
| 4020 | if test "$am__include" != "#"; then |
| 4021 | _am_result="yes ($s style)" |
| 4022 | break |
| 4023 | fi |
| 4024 | done |
| 4025 | rm -f confinc.* confmf.* |
| 4026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 4027 | printf "%s\n" "${_am_result}" >&6; } |
| 4028 | |
| 4029 | # Check whether --enable-dependency-tracking was given. |
| 4030 | if test ${enable_dependency_tracking+y} |
| 4031 | then : |
| 4032 | enableval=$enable_dependency_tracking; |
| 4033 | fi |
| 4034 | |
| 4035 | if test "x$enable_dependency_tracking" != xno; then |
| 4036 | am_depcomp="$ac_aux_dir/depcomp" |
| 4037 | AMDEPBACKSLASH='\' |
| 4038 | am__nodep='_no' |
| 4039 | fi |
| 4040 | if test "x$enable_dependency_tracking" != xno; then |
| 4041 | AMDEP_TRUE= |
| 4042 | AMDEP_FALSE='#' |
| 4043 | else |
| 4044 | AMDEP_TRUE='#' |
| 4045 | AMDEP_FALSE= |
| 4046 | fi |
| 4047 | |
| 4048 | |
| 4049 | ac_ext=c |
| 4050 | ac_cpp='$CPP $CPPFLAGS' |
| 4051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4054 | if test -n "$ac_tool_prefix"; then |
| 4055 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4056 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4058 | printf %s "checking for $ac_word... " >&6; } |
| 4059 | if test ${ac_cv_prog_CC+y} |
| 4060 | then : |
| 4061 | printf %s "(cached) " >&6 |
| 4062 | else case e in #( |
| 4063 | e) if test -n "$CC"; then |
| 4064 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4065 | else |
| 4066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4067 | for as_dir in $PATH |
| 4068 | do |
| 4069 | IFS=$as_save_IFS |
| 4070 | case $as_dir in #((( |
| 4071 | '') as_dir=./ ;; |
| 4072 | */) ;; |
| 4073 | *) as_dir=$as_dir/ ;; |
| 4074 | esac |
| 4075 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4076 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4077 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4078 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4079 | break 2 |
| 4080 | fi |
| 4081 | done |
| 4082 | done |
| 4083 | IFS=$as_save_IFS |
| 4084 | |
| 4085 | fi ;; |
| 4086 | esac |
| 4087 | fi |
| 4088 | CC=$ac_cv_prog_CC |
| 4089 | if test -n "$CC"; then |
| 4090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4091 | printf "%s\n" "$CC" >&6; } |
| 4092 | else |
| 4093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4094 | printf "%s\n" "no" >&6; } |
| 4095 | fi |
| 4096 | |
| 4097 | |
| 4098 | fi |
| 4099 | if test -z "$ac_cv_prog_CC"; then |
| 4100 | ac_ct_CC=$CC |
| 4101 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4102 | set dummy gcc; ac_word=$2 |
| 4103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4104 | printf %s "checking for $ac_word... " >&6; } |
| 4105 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4106 | then : |
| 4107 | printf %s "(cached) " >&6 |
| 4108 | else case e in #( |
| 4109 | e) if test -n "$ac_ct_CC"; then |
| 4110 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4111 | else |
| 4112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4113 | for as_dir in $PATH |
| 4114 | do |
| 4115 | IFS=$as_save_IFS |
| 4116 | case $as_dir in #((( |
| 4117 | '') as_dir=./ ;; |
| 4118 | */) ;; |
| 4119 | *) as_dir=$as_dir/ ;; |
| 4120 | esac |
| 4121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4122 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4123 | ac_cv_prog_ac_ct_CC="gcc" |
| 4124 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4125 | break 2 |
| 4126 | fi |
| 4127 | done |
| 4128 | done |
| 4129 | IFS=$as_save_IFS |
| 4130 | |
| 4131 | fi ;; |
| 4132 | esac |
| 4133 | fi |
| 4134 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4135 | if test -n "$ac_ct_CC"; then |
| 4136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4137 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4138 | else |
| 4139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4140 | printf "%s\n" "no" >&6; } |
| 4141 | fi |
| 4142 | |
| 4143 | if test "x$ac_ct_CC" = x; then |
| 4144 | CC="" |
| 4145 | else |
| 4146 | case $cross_compiling:$ac_tool_warned in |
| 4147 | yes:) |
| 4148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4149 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4150 | ac_tool_warned=yes ;; |
| 4151 | esac |
| 4152 | CC=$ac_ct_CC |
| 4153 | fi |
| 4154 | else |
| 4155 | CC="$ac_cv_prog_CC" |
| 4156 | fi |
| 4157 | |
| 4158 | if test -z "$CC"; then |
| 4159 | if test -n "$ac_tool_prefix"; then |
| 4160 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4161 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4163 | printf %s "checking for $ac_word... " >&6; } |
| 4164 | if test ${ac_cv_prog_CC+y} |
| 4165 | then : |
| 4166 | printf %s "(cached) " >&6 |
| 4167 | else case e in #( |
| 4168 | e) if test -n "$CC"; then |
| 4169 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4170 | else |
| 4171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4172 | for as_dir in $PATH |
| 4173 | do |
| 4174 | IFS=$as_save_IFS |
| 4175 | case $as_dir in #((( |
| 4176 | '') as_dir=./ ;; |
| 4177 | */) ;; |
| 4178 | *) as_dir=$as_dir/ ;; |
| 4179 | esac |
| 4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4181 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4182 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4183 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4184 | break 2 |
| 4185 | fi |
| 4186 | done |
| 4187 | done |
| 4188 | IFS=$as_save_IFS |
| 4189 | |
| 4190 | fi ;; |
| 4191 | esac |
| 4192 | fi |
| 4193 | CC=$ac_cv_prog_CC |
| 4194 | if test -n "$CC"; then |
| 4195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4196 | printf "%s\n" "$CC" >&6; } |
| 4197 | else |
| 4198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4199 | printf "%s\n" "no" >&6; } |
| 4200 | fi |
| 4201 | |
| 4202 | |
| 4203 | fi |
| 4204 | fi |
| 4205 | if test -z "$CC"; then |
| 4206 | # Extract the first word of "cc", so it can be a program name with args. |
| 4207 | set dummy cc; ac_word=$2 |
| 4208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4209 | printf %s "checking for $ac_word... " >&6; } |
| 4210 | if test ${ac_cv_prog_CC+y} |
| 4211 | then : |
| 4212 | printf %s "(cached) " >&6 |
| 4213 | else case e in #( |
| 4214 | e) if test -n "$CC"; then |
| 4215 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4216 | else |
| 4217 | ac_prog_rejected=no |
| 4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4219 | for as_dir in $PATH |
| 4220 | do |
| 4221 | IFS=$as_save_IFS |
| 4222 | case $as_dir in #((( |
| 4223 | '') as_dir=./ ;; |
| 4224 | */) ;; |
| 4225 | *) as_dir=$as_dir/ ;; |
| 4226 | esac |
| 4227 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4228 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4229 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4230 | ac_prog_rejected=yes |
| 4231 | continue |
| 4232 | fi |
| 4233 | ac_cv_prog_CC="cc" |
| 4234 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4235 | break 2 |
| 4236 | fi |
| 4237 | done |
| 4238 | done |
| 4239 | IFS=$as_save_IFS |
| 4240 | |
| 4241 | if test $ac_prog_rejected = yes; then |
| 4242 | # We found a bogon in the path, so make sure we never use it. |
| 4243 | set dummy $ac_cv_prog_CC |
| 4244 | shift |
| 4245 | if test $# != 0; then |
| 4246 | # We chose a different compiler from the bogus one. |
| 4247 | # However, it has the same basename, so the bogon will be chosen |
| 4248 | # first if we set CC to just the basename; use the full file name. |
| 4249 | shift |
| 4250 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4251 | fi |
| 4252 | fi |
| 4253 | fi ;; |
| 4254 | esac |
| 4255 | fi |
| 4256 | CC=$ac_cv_prog_CC |
| 4257 | if test -n "$CC"; then |
| 4258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4259 | printf "%s\n" "$CC" >&6; } |
| 4260 | else |
| 4261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4262 | printf "%s\n" "no" >&6; } |
| 4263 | fi |
| 4264 | |
| 4265 | |
| 4266 | fi |
| 4267 | if test -z "$CC"; then |
| 4268 | if test -n "$ac_tool_prefix"; then |
| 4269 | for ac_prog in cl.exe |
| 4270 | do |
| 4271 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4272 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4274 | printf %s "checking for $ac_word... " >&6; } |
| 4275 | if test ${ac_cv_prog_CC+y} |
| 4276 | then : |
| 4277 | printf %s "(cached) " >&6 |
| 4278 | else case e in #( |
| 4279 | e) if test -n "$CC"; then |
| 4280 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4281 | else |
| 4282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4283 | for as_dir in $PATH |
| 4284 | do |
| 4285 | IFS=$as_save_IFS |
| 4286 | case $as_dir in #((( |
| 4287 | '') as_dir=./ ;; |
| 4288 | */) ;; |
| 4289 | *) as_dir=$as_dir/ ;; |
| 4290 | esac |
| 4291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4292 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4293 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4294 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4295 | break 2 |
| 4296 | fi |
| 4297 | done |
| 4298 | done |
| 4299 | IFS=$as_save_IFS |
| 4300 | |
| 4301 | fi ;; |
| 4302 | esac |
| 4303 | fi |
| 4304 | CC=$ac_cv_prog_CC |
| 4305 | if test -n "$CC"; then |
| 4306 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4307 | printf "%s\n" "$CC" >&6; } |
| 4308 | else |
| 4309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4310 | printf "%s\n" "no" >&6; } |
| 4311 | fi |
| 4312 | |
| 4313 | |
| 4314 | test -n "$CC" && break |
| 4315 | done |
| 4316 | fi |
| 4317 | if test -z "$CC"; then |
| 4318 | ac_ct_CC=$CC |
| 4319 | for ac_prog in cl.exe |
| 4320 | do |
| 4321 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4322 | set dummy $ac_prog; ac_word=$2 |
| 4323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4324 | printf %s "checking for $ac_word... " >&6; } |
| 4325 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4326 | then : |
| 4327 | printf %s "(cached) " >&6 |
| 4328 | else case e in #( |
| 4329 | e) if test -n "$ac_ct_CC"; then |
| 4330 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4331 | else |
| 4332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4333 | for as_dir in $PATH |
| 4334 | do |
| 4335 | IFS=$as_save_IFS |
| 4336 | case $as_dir in #((( |
| 4337 | '') as_dir=./ ;; |
| 4338 | */) ;; |
| 4339 | *) as_dir=$as_dir/ ;; |
| 4340 | esac |
| 4341 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4342 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4343 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4344 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4345 | break 2 |
| 4346 | fi |
| 4347 | done |
| 4348 | done |
| 4349 | IFS=$as_save_IFS |
| 4350 | |
| 4351 | fi ;; |
| 4352 | esac |
| 4353 | fi |
| 4354 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4355 | if test -n "$ac_ct_CC"; then |
| 4356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4357 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4358 | else |
| 4359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4360 | printf "%s\n" "no" >&6; } |
| 4361 | fi |
| 4362 | |
| 4363 | |
| 4364 | test -n "$ac_ct_CC" && break |
| 4365 | done |
| 4366 | |
| 4367 | if test "x$ac_ct_CC" = x; then |
| 4368 | CC="" |
| 4369 | else |
| 4370 | case $cross_compiling:$ac_tool_warned in |
| 4371 | yes:) |
| 4372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4373 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4374 | ac_tool_warned=yes ;; |
| 4375 | esac |
| 4376 | CC=$ac_ct_CC |
| 4377 | fi |
| 4378 | fi |
| 4379 | |
| 4380 | fi |
| 4381 | if test -z "$CC"; then |
| 4382 | if test -n "$ac_tool_prefix"; then |
| 4383 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4384 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4386 | printf %s "checking for $ac_word... " >&6; } |
| 4387 | if test ${ac_cv_prog_CC+y} |
| 4388 | then : |
| 4389 | printf %s "(cached) " >&6 |
| 4390 | else case e in #( |
| 4391 | e) if test -n "$CC"; then |
| 4392 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4393 | else |
| 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4395 | for as_dir in $PATH |
| 4396 | do |
| 4397 | IFS=$as_save_IFS |
| 4398 | case $as_dir in #((( |
| 4399 | '') as_dir=./ ;; |
| 4400 | */) ;; |
| 4401 | *) as_dir=$as_dir/ ;; |
| 4402 | esac |
| 4403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4404 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4405 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4406 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4407 | break 2 |
| 4408 | fi |
| 4409 | done |
| 4410 | done |
| 4411 | IFS=$as_save_IFS |
| 4412 | |
| 4413 | fi ;; |
| 4414 | esac |
| 4415 | fi |
| 4416 | CC=$ac_cv_prog_CC |
| 4417 | if test -n "$CC"; then |
| 4418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4419 | printf "%s\n" "$CC" >&6; } |
| 4420 | else |
| 4421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4422 | printf "%s\n" "no" >&6; } |
| 4423 | fi |
| 4424 | |
| 4425 | |
| 4426 | fi |
| 4427 | if test -z "$ac_cv_prog_CC"; then |
| 4428 | ac_ct_CC=$CC |
| 4429 | # Extract the first word of "clang", so it can be a program name with args. |
| 4430 | set dummy clang; ac_word=$2 |
| 4431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4432 | printf %s "checking for $ac_word... " >&6; } |
| 4433 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4434 | then : |
| 4435 | printf %s "(cached) " >&6 |
| 4436 | else case e in #( |
| 4437 | e) if test -n "$ac_ct_CC"; then |
| 4438 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4439 | else |
| 4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4441 | for as_dir in $PATH |
| 4442 | do |
| 4443 | IFS=$as_save_IFS |
| 4444 | case $as_dir in #((( |
| 4445 | '') as_dir=./ ;; |
| 4446 | */) ;; |
| 4447 | *) as_dir=$as_dir/ ;; |
| 4448 | esac |
| 4449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4450 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4451 | ac_cv_prog_ac_ct_CC="clang" |
| 4452 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4453 | break 2 |
| 4454 | fi |
| 4455 | done |
| 4456 | done |
| 4457 | IFS=$as_save_IFS |
| 4458 | |
| 4459 | fi ;; |
| 4460 | esac |
| 4461 | fi |
| 4462 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4463 | if test -n "$ac_ct_CC"; then |
| 4464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4465 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4466 | else |
| 4467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4468 | printf "%s\n" "no" >&6; } |
| 4469 | fi |
| 4470 | |
| 4471 | if test "x$ac_ct_CC" = x; then |
| 4472 | CC="" |
| 4473 | else |
| 4474 | case $cross_compiling:$ac_tool_warned in |
| 4475 | yes:) |
| 4476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4477 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4478 | ac_tool_warned=yes ;; |
| 4479 | esac |
| 4480 | CC=$ac_ct_CC |
| 4481 | fi |
| 4482 | else |
| 4483 | CC="$ac_cv_prog_CC" |
| 4484 | fi |
| 4485 | |
| 4486 | fi |
| 4487 | |
| 4488 | |
| 4489 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4490 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4491 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4492 | See 'config.log' for more details" "$LINENO" 5; } |
| 4493 | |
| 4494 | # Provide some information about the compiler. |
| 4495 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4496 | set X $ac_compile |
| 4497 | ac_compiler=$2 |
| 4498 | for ac_option in --version -v -V -qversion -version; do |
| 4499 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4500 | case "(($ac_try" in |
| 4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4502 | *) ac_try_echo=$ac_try;; |
| 4503 | esac |
| 4504 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4505 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4506 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4507 | ac_status=$? |
| 4508 | if test -s conftest.err; then |
| 4509 | sed '10a\ |
| 4510 | ... rest of stderr output deleted ... |
| 4511 | 10q' conftest.err >conftest.er1 |
| 4512 | cat conftest.er1 >&5 |
| 4513 | fi |
| 4514 | rm -f conftest.er1 conftest.err |
| 4515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4516 | test $ac_status = 0; } |
| 4517 | done |
| 4518 | |
| 4519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4520 | /* end confdefs.h. */ |
| 4521 | |
| 4522 | int |
| 4523 | main (void) |
| 4524 | { |
| 4525 | |
| 4526 | ; |
| 4527 | return 0; |
| 4528 | } |
| 4529 | _ACEOF |
| 4530 | ac_clean_files_save=$ac_clean_files |
| 4531 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4532 | # Try to create an executable without -o first, disregard a.out. |
| 4533 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4534 | # of exeext. |
| 4535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4536 | printf %s "checking whether the C compiler works... " >&6; } |
| 4537 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4538 | |
| 4539 | # The possible output files: |
| 4540 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4541 | |
| 4542 | ac_rmfiles= |
| 4543 | for ac_file in $ac_files |
| 4544 | do |
| 4545 | case $ac_file in |
| 4546 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4547 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4548 | esac |
| 4549 | done |
| 4550 | rm -f $ac_rmfiles |
| 4551 | |
| 4552 | if { { ac_try="$ac_link_default" |
| 4553 | case "(($ac_try" in |
| 4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4555 | *) ac_try_echo=$ac_try;; |
| 4556 | esac |
| 4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4558 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4559 | (eval "$ac_link_default") 2>&5 |
| 4560 | ac_status=$? |
| 4561 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4562 | test $ac_status = 0; } |
| 4563 | then : |
| 4564 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 4565 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 4566 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4567 | # so that the user can short-circuit this test for compilers unknown to |
| 4568 | # Autoconf. |
| 4569 | for ac_file in $ac_files '' |
| 4570 | do |
| 4571 | test -f "$ac_file" || continue |
| 4572 | case $ac_file in |
| 4573 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4574 | ;; |
| 4575 | [ab].out ) |
| 4576 | # We found the default executable, but exeext='' is most |
| 4577 | # certainly right. |
| 4578 | break;; |
| 4579 | *.* ) |
| 4580 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4581 | then :; else |
| 4582 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4583 | fi |
| 4584 | # We set ac_cv_exeext here because the later test for it is not |
| 4585 | # safe: cross compilers may not add the suffix if given an '-o' |
| 4586 | # argument, so we may need to know it at that point already. |
| 4587 | # Even if this section looks crufty: it has the advantage of |
| 4588 | # actually working. |
| 4589 | break;; |
| 4590 | * ) |
| 4591 | break;; |
| 4592 | esac |
| 4593 | done |
| 4594 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4595 | |
| 4596 | else case e in #( |
| 4597 | e) ac_file='' ;; |
| 4598 | esac |
| 4599 | fi |
| 4600 | if test -z "$ac_file" |
| 4601 | then : |
| 4602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4603 | printf "%s\n" "no" >&6; } |
| 4604 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 4605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4606 | |
| 4607 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4608 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4609 | as_fn_error 77 "C compiler cannot create executables |
| 4610 | See 'config.log' for more details" "$LINENO" 5; } |
| 4611 | else case e in #( |
| 4612 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4613 | printf "%s\n" "yes" >&6; } ;; |
| 4614 | esac |
| 4615 | fi |
| 4616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4617 | printf %s "checking for C compiler default output file name... " >&6; } |
| 4618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4619 | printf "%s\n" "$ac_file" >&6; } |
| 4620 | ac_exeext=$ac_cv_exeext |
| 4621 | |
| 4622 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4623 | ac_clean_files=$ac_clean_files_save |
| 4624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4625 | printf %s "checking for suffix of executables... " >&6; } |
| 4626 | if { { ac_try="$ac_link" |
| 4627 | case "(($ac_try" in |
| 4628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4629 | *) ac_try_echo=$ac_try;; |
| 4630 | esac |
| 4631 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4632 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4633 | (eval "$ac_link") 2>&5 |
| 4634 | ac_status=$? |
| 4635 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4636 | test $ac_status = 0; } |
| 4637 | then : |
| 4638 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 4639 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 4640 | # work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 4641 | # 'rm'. |
| 4642 | for ac_file in conftest.exe conftest conftest.*; do |
| 4643 | test -f "$ac_file" || continue |
| 4644 | case $ac_file in |
| 4645 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4646 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4647 | break;; |
| 4648 | * ) break;; |
| 4649 | esac |
| 4650 | done |
| 4651 | else case e in #( |
| 4652 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4653 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4654 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4655 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4656 | esac |
| 4657 | fi |
| 4658 | rm -f conftest conftest$ac_cv_exeext |
| 4659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4660 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4661 | |
| 4662 | rm -f conftest.$ac_ext |
| 4663 | EXEEXT=$ac_cv_exeext |
| 4664 | ac_exeext=$EXEEXT |
| 4665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4666 | /* end confdefs.h. */ |
| 4667 | #include <stdio.h> |
| 4668 | int |
| 4669 | main (void) |
| 4670 | { |
| 4671 | FILE *f = fopen ("conftest.out", "w"); |
| 4672 | if (!f) |
| 4673 | return 1; |
| 4674 | return ferror (f) || fclose (f) != 0; |
| 4675 | |
| 4676 | ; |
| 4677 | return 0; |
| 4678 | } |
| 4679 | _ACEOF |
| 4680 | ac_clean_files="$ac_clean_files conftest.out" |
| 4681 | # Check that the compiler produces executables we can run. If not, either |
| 4682 | # the compiler is broken, or we cross compile. |
| 4683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4684 | printf %s "checking whether we are cross compiling... " >&6; } |
| 4685 | if test "$cross_compiling" != yes; then |
| 4686 | { { ac_try="$ac_link" |
| 4687 | case "(($ac_try" in |
| 4688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4689 | *) ac_try_echo=$ac_try;; |
| 4690 | esac |
| 4691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4692 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4693 | (eval "$ac_link") 2>&5 |
| 4694 | ac_status=$? |
| 4695 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4696 | test $ac_status = 0; } |
| 4697 | if { ac_try='./conftest$ac_cv_exeext' |
| 4698 | { { case "(($ac_try" in |
| 4699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4700 | *) ac_try_echo=$ac_try;; |
| 4701 | esac |
| 4702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4703 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4704 | (eval "$ac_try") 2>&5 |
| 4705 | ac_status=$? |
| 4706 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4707 | test $ac_status = 0; }; }; then |
| 4708 | cross_compiling=no |
| 4709 | else |
| 4710 | if test "$cross_compiling" = maybe; then |
| 4711 | cross_compiling=yes |
| 4712 | else |
| 4713 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4714 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4715 | as_fn_error 77 "cannot run C compiled programs. |
| 4716 | If you meant to cross compile, use '--host'. |
| 4717 | See 'config.log' for more details" "$LINENO" 5; } |
| 4718 | fi |
| 4719 | fi |
| 4720 | fi |
| 4721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4722 | printf "%s\n" "$cross_compiling" >&6; } |
| 4723 | |
| 4724 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 4725 | conftest.o conftest.obj conftest.out |
| 4726 | ac_clean_files=$ac_clean_files_save |
| 4727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4728 | printf %s "checking for suffix of object files... " >&6; } |
| 4729 | if test ${ac_cv_objext+y} |
| 4730 | then : |
| 4731 | printf %s "(cached) " >&6 |
| 4732 | else case e in #( |
| 4733 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4734 | /* end confdefs.h. */ |
| 4735 | |
| 4736 | int |
| 4737 | main (void) |
| 4738 | { |
| 4739 | |
| 4740 | ; |
| 4741 | return 0; |
| 4742 | } |
| 4743 | _ACEOF |
| 4744 | rm -f conftest.o conftest.obj |
| 4745 | if { { ac_try="$ac_compile" |
| 4746 | case "(($ac_try" in |
| 4747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4748 | *) ac_try_echo=$ac_try;; |
| 4749 | esac |
| 4750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4751 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4752 | (eval "$ac_compile") 2>&5 |
| 4753 | ac_status=$? |
| 4754 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4755 | test $ac_status = 0; } |
| 4756 | then : |
| 4757 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4758 | test -f "$ac_file" || continue; |
| 4759 | case $ac_file in |
| 4760 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4761 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4762 | break;; |
| 4763 | esac |
| 4764 | done |
| 4765 | else case e in #( |
| 4766 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4768 | |
| 4769 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4770 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4771 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4772 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4773 | esac |
| 4774 | fi |
| 4775 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 4776 | esac |
| 4777 | fi |
| 4778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4779 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 4780 | OBJEXT=$ac_cv_objext |
| 4781 | ac_objext=$OBJEXT |
| 4782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4783 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4784 | if test ${ac_cv_c_compiler_gnu+y} |
| 4785 | then : |
| 4786 | printf %s "(cached) " >&6 |
| 4787 | else case e in #( |
| 4788 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4789 | /* end confdefs.h. */ |
| 4790 | |
| 4791 | int |
| 4792 | main (void) |
| 4793 | { |
| 4794 | #ifndef __GNUC__ |
| 4795 | choke me |
| 4796 | #endif |
| 4797 | |
| 4798 | ; |
| 4799 | return 0; |
| 4800 | } |
| 4801 | _ACEOF |
| 4802 | if ac_fn_c_try_compile "$LINENO" |
| 4803 | then : |
| 4804 | ac_compiler_gnu=yes |
| 4805 | else case e in #( |
| 4806 | e) ac_compiler_gnu=no ;; |
| 4807 | esac |
| 4808 | fi |
| 4809 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4810 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4811 | ;; |
| 4812 | esac |
| 4813 | fi |
| 4814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4815 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4817 | |
| 4818 | if test $ac_compiler_gnu = yes; then |
| 4819 | GCC=yes |
| 4820 | else |
| 4821 | GCC= |
| 4822 | fi |
| 4823 | ac_test_CFLAGS=${CFLAGS+y} |
| 4824 | ac_save_CFLAGS=$CFLAGS |
| 4825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4826 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 4827 | if test ${ac_cv_prog_cc_g+y} |
| 4828 | then : |
| 4829 | printf %s "(cached) " >&6 |
| 4830 | else case e in #( |
| 4831 | e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 4832 | ac_c_werror_flag=yes |
| 4833 | ac_cv_prog_cc_g=no |
| 4834 | CFLAGS="-g" |
| 4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4836 | /* end confdefs.h. */ |
| 4837 | |
| 4838 | int |
| 4839 | main (void) |
| 4840 | { |
| 4841 | |
| 4842 | ; |
| 4843 | return 0; |
| 4844 | } |
| 4845 | _ACEOF |
| 4846 | if ac_fn_c_try_compile "$LINENO" |
| 4847 | then : |
| 4848 | ac_cv_prog_cc_g=yes |
| 4849 | else case e in #( |
| 4850 | e) CFLAGS="" |
| 4851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4852 | /* end confdefs.h. */ |
| 4853 | |
| 4854 | int |
| 4855 | main (void) |
| 4856 | { |
| 4857 | |
| 4858 | ; |
| 4859 | return 0; |
| 4860 | } |
| 4861 | _ACEOF |
| 4862 | if ac_fn_c_try_compile "$LINENO" |
| 4863 | then : |
| 4864 | |
| 4865 | else case e in #( |
| 4866 | e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 4867 | CFLAGS="-g" |
| 4868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4869 | /* end confdefs.h. */ |
| 4870 | |
| 4871 | int |
| 4872 | main (void) |
| 4873 | { |
| 4874 | |
| 4875 | ; |
| 4876 | return 0; |
| 4877 | } |
| 4878 | _ACEOF |
| 4879 | if ac_fn_c_try_compile "$LINENO" |
| 4880 | then : |
| 4881 | ac_cv_prog_cc_g=yes |
| 4882 | fi |
| 4883 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4884 | esac |
| 4885 | fi |
| 4886 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4887 | esac |
| 4888 | fi |
| 4889 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4890 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 4891 | esac |
| 4892 | fi |
| 4893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4894 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4895 | if test $ac_test_CFLAGS; then |
| 4896 | CFLAGS=$ac_save_CFLAGS |
| 4897 | elif test $ac_cv_prog_cc_g = yes; then |
| 4898 | if test "$GCC" = yes; then |
| 4899 | CFLAGS="-g -O2" |
| 4900 | else |
| 4901 | CFLAGS="-g" |
| 4902 | fi |
| 4903 | else |
| 4904 | if test "$GCC" = yes; then |
| 4905 | CFLAGS="-O2" |
| 4906 | else |
| 4907 | CFLAGS= |
| 4908 | fi |
| 4909 | fi |
| 4910 | ac_prog_cc_stdc=no |
| 4911 | if test x$ac_prog_cc_stdc = xno |
| 4912 | then : |
| 4913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4914 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4915 | if test ${ac_cv_prog_cc_c11+y} |
| 4916 | then : |
| 4917 | printf %s "(cached) " >&6 |
| 4918 | else case e in #( |
| 4919 | e) ac_cv_prog_cc_c11=no |
| 4920 | ac_save_CC=$CC |
| 4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4922 | /* end confdefs.h. */ |
| 4923 | $ac_c_conftest_c11_program |
| 4924 | _ACEOF |
| 4925 | for ac_arg in '' -std=gnu11 |
| 4926 | do |
| 4927 | CC="$ac_save_CC $ac_arg" |
| 4928 | if ac_fn_c_try_compile "$LINENO" |
| 4929 | then : |
| 4930 | ac_cv_prog_cc_c11=$ac_arg |
| 4931 | fi |
| 4932 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4933 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4934 | done |
| 4935 | rm -f conftest.$ac_ext |
| 4936 | CC=$ac_save_CC ;; |
| 4937 | esac |
| 4938 | fi |
| 4939 | |
| 4940 | if test "x$ac_cv_prog_cc_c11" = xno |
| 4941 | then : |
| 4942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4943 | printf "%s\n" "unsupported" >&6; } |
| 4944 | else case e in #( |
| 4945 | e) if test "x$ac_cv_prog_cc_c11" = x |
| 4946 | then : |
| 4947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4948 | printf "%s\n" "none needed" >&6; } |
| 4949 | else case e in #( |
| 4950 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4951 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4952 | CC="$CC $ac_cv_prog_cc_c11" ;; |
| 4953 | esac |
| 4954 | fi |
| 4955 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4956 | ac_prog_cc_stdc=c11 ;; |
| 4957 | esac |
| 4958 | fi |
| 4959 | fi |
| 4960 | if test x$ac_prog_cc_stdc = xno |
| 4961 | then : |
| 4962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4963 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4964 | if test ${ac_cv_prog_cc_c99+y} |
| 4965 | then : |
| 4966 | printf %s "(cached) " >&6 |
| 4967 | else case e in #( |
| 4968 | e) ac_cv_prog_cc_c99=no |
| 4969 | ac_save_CC=$CC |
| 4970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4971 | /* end confdefs.h. */ |
| 4972 | $ac_c_conftest_c99_program |
| 4973 | _ACEOF |
| 4974 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4975 | do |
| 4976 | CC="$ac_save_CC $ac_arg" |
| 4977 | if ac_fn_c_try_compile "$LINENO" |
| 4978 | then : |
| 4979 | ac_cv_prog_cc_c99=$ac_arg |
| 4980 | fi |
| 4981 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4982 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4983 | done |
| 4984 | rm -f conftest.$ac_ext |
| 4985 | CC=$ac_save_CC ;; |
| 4986 | esac |
| 4987 | fi |
| 4988 | |
| 4989 | if test "x$ac_cv_prog_cc_c99" = xno |
| 4990 | then : |
| 4991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4992 | printf "%s\n" "unsupported" >&6; } |
| 4993 | else case e in #( |
| 4994 | e) if test "x$ac_cv_prog_cc_c99" = x |
| 4995 | then : |
| 4996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4997 | printf "%s\n" "none needed" >&6; } |
| 4998 | else case e in #( |
| 4999 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 5000 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 5001 | CC="$CC $ac_cv_prog_cc_c99" ;; |
| 5002 | esac |
| 5003 | fi |
| 5004 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5005 | ac_prog_cc_stdc=c99 ;; |
| 5006 | esac |
| 5007 | fi |
| 5008 | fi |
| 5009 | if test x$ac_prog_cc_stdc = xno |
| 5010 | then : |
| 5011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 5012 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 5013 | if test ${ac_cv_prog_cc_c89+y} |
| 5014 | then : |
| 5015 | printf %s "(cached) " >&6 |
| 5016 | else case e in #( |
| 5017 | e) ac_cv_prog_cc_c89=no |
| 5018 | ac_save_CC=$CC |
| 5019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5020 | /* end confdefs.h. */ |
| 5021 | $ac_c_conftest_c89_program |
| 5022 | _ACEOF |
| 5023 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5024 | do |
| 5025 | CC="$ac_save_CC $ac_arg" |
| 5026 | if ac_fn_c_try_compile "$LINENO" |
| 5027 | then : |
| 5028 | ac_cv_prog_cc_c89=$ac_arg |
| 5029 | fi |
| 5030 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5031 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5032 | done |
| 5033 | rm -f conftest.$ac_ext |
| 5034 | CC=$ac_save_CC ;; |
| 5035 | esac |
| 5036 | fi |
| 5037 | |
| 5038 | if test "x$ac_cv_prog_cc_c89" = xno |
| 5039 | then : |
| 5040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5041 | printf "%s\n" "unsupported" >&6; } |
| 5042 | else case e in #( |
| 5043 | e) if test "x$ac_cv_prog_cc_c89" = x |
| 5044 | then : |
| 5045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5046 | printf "%s\n" "none needed" >&6; } |
| 5047 | else case e in #( |
| 5048 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5049 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5050 | CC="$CC $ac_cv_prog_cc_c89" ;; |
| 5051 | esac |
| 5052 | fi |
| 5053 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5054 | ac_prog_cc_stdc=c89 ;; |
| 5055 | esac |
| 5056 | fi |
| 5057 | fi |
| 5058 | |
| 5059 | ac_ext=c |
| 5060 | ac_cpp='$CPP $CPPFLAGS' |
| 5061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5064 | |
| 5065 | |
| 5066 | ac_ext=c |
| 5067 | ac_cpp='$CPP $CPPFLAGS' |
| 5068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5072 | printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 5073 | if test ${am_cv_prog_cc_c_o+y} |
| 5074 | then : |
| 5075 | printf %s "(cached) " >&6 |
| 5076 | else case e in #( |
| 5077 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5078 | /* end confdefs.h. */ |
| 5079 | |
| 5080 | int |
| 5081 | main (void) |
| 5082 | { |
| 5083 | |
| 5084 | ; |
| 5085 | return 0; |
| 5086 | } |
| 5087 | _ACEOF |
| 5088 | # Make sure it works both with $CC and with simple cc. |
| 5089 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 5090 | # compilers refuse to overwrite an existing .o file with -o, |
| 5091 | # though they will create one. |
| 5092 | am_cv_prog_cc_c_o=yes |
| 5093 | for am_i in 1 2; do |
| 5094 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5095 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5096 | ac_status=$? |
| 5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5098 | (exit $ac_status); } \ |
| 5099 | && test -f conftest2.$ac_objext; then |
| 5100 | : OK |
| 5101 | else |
| 5102 | am_cv_prog_cc_c_o=no |
| 5103 | break |
| 5104 | fi |
| 5105 | done |
| 5106 | # aligned with autoconf, so not including core; see bug#72225. |
| 5107 | rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ |
| 5108 | conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ |
| 5109 | conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM |
| 5110 | unset am_i ;; |
| 5111 | esac |
| 5112 | fi |
| 5113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5114 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 5115 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 5116 | # Losing compiler, so override with the script. |
| 5117 | # FIXME: It is wrong to rewrite CC. |
| 5118 | # But if we don't then we get into trouble of one sort or another. |
| 5119 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5120 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5121 | CC="$am_aux_dir/compile $CC" |
| 5122 | fi |
| 5123 | ac_ext=c |
| 5124 | ac_cpp='$CPP $CPPFLAGS' |
| 5125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5128 | |
| 5129 | |
| 5130 | depcc="$CC" am_compiler_list= |
| 5131 | |
| 5132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5133 | printf %s "checking dependency style of $depcc... " >&6; } |
| 5134 | if test ${am_cv_CC_dependencies_compiler_type+y} |
| 5135 | then : |
| 5136 | printf %s "(cached) " >&6 |
| 5137 | else case e in #( |
| 5138 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5139 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5140 | # making bogus files that we don't know about and never remove. For |
| 5141 | # instance it was reported that on HP-UX the gcc test will end up |
| 5142 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5143 | # in D". |
| 5144 | rm -rf conftest.dir |
| 5145 | mkdir conftest.dir |
| 5146 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5147 | # using a relative directory. |
| 5148 | cp "$am_depcomp" conftest.dir |
| 5149 | cd conftest.dir |
| 5150 | # We will build objects and dependencies in a subdirectory because |
| 5151 | # it helps to detect inapplicable dependency modes. For instance |
| 5152 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5153 | # side effect of compilation, but ICC will put the dependencies in |
| 5154 | # the current directory while Tru64 will put them in the object |
| 5155 | # directory. |
| 5156 | mkdir sub |
| 5157 | |
| 5158 | am_cv_CC_dependencies_compiler_type=none |
| 5159 | if test "$am_compiler_list" = ""; then |
| 5160 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5161 | fi |
| 5162 | am__universal=false |
| 5163 | case " $depcc " in #( |
| 5164 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5165 | esac |
| 5166 | |
| 5167 | for depmode in $am_compiler_list; do |
| 5168 | # Setup a source with many dependencies, because some compilers |
| 5169 | # like to wrap large dependency lists on column 80 (with \), and |
| 5170 | # we should not choose a depcomp mode which is confused by this. |
| 5171 | # |
| 5172 | # We need to recreate these files for each test, as the compiler may |
| 5173 | # overwrite some of them when testing with obscure command lines. |
| 5174 | # This happens at least with the AIX C compiler. |
| 5175 | : > sub/conftest.c |
| 5176 | for i in 1 2 3 4 5 6; do |
| 5177 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5178 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5179 | # Solaris 10 /bin/sh. |
| 5180 | echo '/* dummy */' > sub/conftst$i.h |
| 5181 | done |
| 5182 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5183 | |
| 5184 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5185 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5186 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5187 | # versions had trouble with output in subdirs. |
| 5188 | am__obj=sub/conftest.${OBJEXT-o} |
| 5189 | am__minus_obj="-o $am__obj" |
| 5190 | case $depmode in |
| 5191 | gcc) |
| 5192 | # This depmode causes a compiler race in universal mode. |
| 5193 | test "$am__universal" = false || continue |
| 5194 | ;; |
| 5195 | nosideeffect) |
| 5196 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5197 | # only be used when explicitly requested. |
| 5198 | if test "x$enable_dependency_tracking" = xyes; then |
| 5199 | continue |
| 5200 | else |
| 5201 | break |
| 5202 | fi |
| 5203 | ;; |
| 5204 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5205 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 5206 | # not run yet. These depmodes are late enough in the game, and |
| 5207 | # so weak that their functioning should not be impacted. |
| 5208 | am__obj=conftest.${OBJEXT-o} |
| 5209 | am__minus_obj= |
| 5210 | ;; |
| 5211 | none) break ;; |
| 5212 | esac |
| 5213 | if depmode=$depmode \ |
| 5214 | source=sub/conftest.c object=$am__obj \ |
| 5215 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5216 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5217 | >/dev/null 2>conftest.err && |
| 5218 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5219 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5220 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5221 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5222 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5223 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5224 | # that says an option was ignored or not supported. |
| 5225 | # When given -MP, icc 7.0 and 7.1 complain thus: |
| 5226 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5227 | # The diagnosis changed in icc 8.0: |
| 5228 | # icc: Command line remark: option '-MP' not supported |
| 5229 | if (grep 'ignoring option' conftest.err || |
| 5230 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5231 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5232 | break |
| 5233 | fi |
| 5234 | fi |
| 5235 | done |
| 5236 | |
| 5237 | cd .. |
| 5238 | rm -rf conftest.dir |
| 5239 | else |
| 5240 | am_cv_CC_dependencies_compiler_type=none |
| 5241 | fi |
| 5242 | ;; |
| 5243 | esac |
| 5244 | fi |
| 5245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5246 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5247 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5248 | |
| 5249 | if |
| 5250 | test "x$enable_dependency_tracking" != xno \ |
| 5251 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5252 | am__fastdepCC_TRUE= |
| 5253 | am__fastdepCC_FALSE='#' |
| 5254 | else |
| 5255 | am__fastdepCC_TRUE='#' |
| 5256 | am__fastdepCC_FALSE= |
| 5257 | fi |
| 5258 | |
| 5259 | |
| 5260 | |
| 5261 | ac_header= ac_cache= |
| 5262 | for ac_item in $ac_header_c_list |
| 5263 | do |
| 5264 | if test $ac_cache; then |
| 5265 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5266 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5267 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5268 | fi |
| 5269 | ac_header= ac_cache= |
| 5270 | elif test $ac_header; then |
| 5271 | ac_cache=$ac_item |
| 5272 | else |
| 5273 | ac_header=$ac_item |
| 5274 | fi |
| 5275 | done |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | |
| 5284 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5285 | then : |
| 5286 | |
| 5287 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 5288 | |
| 5289 | fi |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | |
| 5294 | |
| 5295 | |
| 5296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5297 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5298 | if test ${ac_cv_safe_to_define___extensions__+y} |
| 5299 | then : |
| 5300 | printf %s "(cached) " >&6 |
| 5301 | else case e in #( |
| 5302 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5303 | /* end confdefs.h. */ |
| 5304 | |
| 5305 | # define __EXTENSIONS__ 1 |
| 5306 | $ac_includes_default |
| 5307 | int |
| 5308 | main (void) |
| 5309 | { |
| 5310 | |
| 5311 | ; |
| 5312 | return 0; |
| 5313 | } |
| 5314 | _ACEOF |
| 5315 | if ac_fn_c_try_compile "$LINENO" |
| 5316 | then : |
| 5317 | ac_cv_safe_to_define___extensions__=yes |
| 5318 | else case e in #( |
| 5319 | e) ac_cv_safe_to_define___extensions__=no ;; |
| 5320 | esac |
| 5321 | fi |
| 5322 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5323 | esac |
| 5324 | fi |
| 5325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5326 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5327 | |
| 5328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 5329 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 5330 | if test ${ac_cv_should_define__xopen_source+y} |
| 5331 | then : |
| 5332 | printf %s "(cached) " >&6 |
| 5333 | else case e in #( |
| 5334 | e) ac_cv_should_define__xopen_source=no |
| 5335 | if test $ac_cv_header_wchar_h = yes |
| 5336 | then : |
| 5337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5338 | /* end confdefs.h. */ |
| 5339 | |
| 5340 | #include <wchar.h> |
| 5341 | mbstate_t x; |
| 5342 | int |
| 5343 | main (void) |
| 5344 | { |
| 5345 | |
| 5346 | ; |
| 5347 | return 0; |
| 5348 | } |
| 5349 | _ACEOF |
| 5350 | if ac_fn_c_try_compile "$LINENO" |
| 5351 | then : |
| 5352 | |
| 5353 | else case e in #( |
| 5354 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5355 | /* end confdefs.h. */ |
| 5356 | |
| 5357 | #define _XOPEN_SOURCE 500 |
| 5358 | #include <wchar.h> |
| 5359 | mbstate_t x; |
| 5360 | int |
| 5361 | main (void) |
| 5362 | { |
| 5363 | |
| 5364 | ; |
| 5365 | return 0; |
| 5366 | } |
| 5367 | _ACEOF |
| 5368 | if ac_fn_c_try_compile "$LINENO" |
| 5369 | then : |
| 5370 | ac_cv_should_define__xopen_source=yes |
| 5371 | fi |
| 5372 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5373 | esac |
| 5374 | fi |
| 5375 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5376 | fi ;; |
| 5377 | esac |
| 5378 | fi |
| 5379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 5380 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 5381 | |
| 5382 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 5383 | |
| 5384 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 5385 | |
| 5386 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 5387 | |
| 5388 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 5389 | |
| 5390 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 5391 | |
| 5392 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 5393 | |
| 5394 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5395 | |
| 5396 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 5397 | |
| 5398 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 5399 | |
| 5400 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 5401 | |
| 5402 | printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h |
| 5403 | |
| 5404 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 5405 | |
| 5406 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 5407 | |
| 5408 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 5409 | |
| 5410 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 5411 | |
| 5412 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5413 | |
| 5414 | if test $ac_cv_header_minix_config_h = yes |
| 5415 | then : |
| 5416 | MINIX=yes |
| 5417 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 5418 | |
| 5419 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5420 | |
| 5421 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5422 | |
| 5423 | else case e in #( |
| 5424 | e) MINIX= ;; |
| 5425 | esac |
| 5426 | fi |
| 5427 | if test $ac_cv_safe_to_define___extensions__ = yes |
| 5428 | then : |
| 5429 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5430 | |
| 5431 | fi |
| 5432 | if test $ac_cv_should_define__xopen_source = yes |
| 5433 | then : |
| 5434 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 5435 | |
| 5436 | fi |
| 5437 | |
| 5438 | # Check whether --enable-compiler-warnings was given. |
| 5439 | if test ${enable_compiler_warnings+y} |
| 5440 | then : |
| 5441 | enableval=$enable_compiler_warnings; |
| 5442 | fi |
| 5443 | case $enable_compiler_warnings in #( |
| 5444 | no | min | yes | max | all) : |
| 5445 | ;; #( |
| 5446 | *) : |
| 5447 | if test "x$enable_maintainer_mode" = xyes |
| 5448 | then : |
| 5449 | enable_compiler_warnings=yes |
| 5450 | else case e in #( |
| 5451 | e) enable_compiler_warnings=min ;; |
| 5452 | esac |
| 5453 | fi ;; |
| 5454 | esac |
| 5455 | |
| 5456 | case `pwd` in |
| 5457 | *\ * | *\ *) |
| 5458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 5459 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 5460 | esac |
| 5461 | |
| 5462 | |
| 5463 | |
| 5464 | macro_version='2.5.4' |
| 5465 | macro_revision='2.5.4' |
| 5466 | |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | |
| 5471 | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | |
| 5480 | ltmain=$ac_aux_dir/ltmain.sh |
| 5481 | |
| 5482 | |
| 5483 | |
| 5484 | # Make sure we can run config.sub. |
| 5485 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 5486 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 5487 | |
| 5488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 5489 | printf %s "checking build system type... " >&6; } |
| 5490 | if test ${ac_cv_build+y} |
| 5491 | then : |
| 5492 | printf %s "(cached) " >&6 |
| 5493 | else case e in #( |
| 5494 | e) ac_build_alias=$build_alias |
| 5495 | test "x$ac_build_alias" = x && |
| 5496 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 5497 | test "x$ac_build_alias" = x && |
| 5498 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 5499 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 5500 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 5501 | ;; |
| 5502 | esac |
| 5503 | fi |
| 5504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 5505 | printf "%s\n" "$ac_cv_build" >&6; } |
| 5506 | case $ac_cv_build in |
| 5507 | *-*-*) ;; |
| 5508 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 5509 | esac |
| 5510 | build=$ac_cv_build |
| 5511 | ac_save_IFS=$IFS; IFS='-' |
| 5512 | set x $ac_cv_build |
| 5513 | shift |
| 5514 | build_cpu=$1 |
| 5515 | build_vendor=$2 |
| 5516 | shift; shift |
| 5517 | # Remember, the first character of IFS is used to create $*, |
| 5518 | # except with old shells: |
| 5519 | build_os=$* |
| 5520 | IFS=$ac_save_IFS |
| 5521 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 5522 | |
| 5523 | |
| 5524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 5525 | printf %s "checking host system type... " >&6; } |
| 5526 | if test ${ac_cv_host+y} |
| 5527 | then : |
| 5528 | printf %s "(cached) " >&6 |
| 5529 | else case e in #( |
| 5530 | e) if test "x$host_alias" = x; then |
| 5531 | ac_cv_host=$ac_cv_build |
| 5532 | else |
| 5533 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 5534 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 5535 | fi |
| 5536 | ;; |
| 5537 | esac |
| 5538 | fi |
| 5539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 5540 | printf "%s\n" "$ac_cv_host" >&6; } |
| 5541 | case $ac_cv_host in |
| 5542 | *-*-*) ;; |
| 5543 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 5544 | esac |
| 5545 | host=$ac_cv_host |
| 5546 | ac_save_IFS=$IFS; IFS='-' |
| 5547 | set x $ac_cv_host |
| 5548 | shift |
| 5549 | host_cpu=$1 |
| 5550 | host_vendor=$2 |
| 5551 | shift; shift |
| 5552 | # Remember, the first character of IFS is used to create $*, |
| 5553 | # except with old shells: |
| 5554 | host_os=$* |
| 5555 | IFS=$ac_save_IFS |
| 5556 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 5557 | |
| 5558 | |
| 5559 | # Backslashify metacharacters that are still active within |
| 5560 | # double-quoted strings. |
| 5561 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 5562 | |
| 5563 | # Same as above, but do not quote variable references. |
| 5564 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 5565 | |
| 5566 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5567 | # double_quote_subst'ed string. |
| 5568 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5569 | |
| 5570 | # Sed substitution to delay expansion of an escaped single quote. |
| 5571 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 5572 | |
| 5573 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5574 | no_glob_subst='s/\*/\\\*/g' |
| 5575 | |
| 5576 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5577 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5578 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5579 | |
| 5580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 5581 | printf %s "checking how to print strings... " >&6; } |
| 5582 | # Test print first, because it will be a builtin if present. |
| 5583 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 5584 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5585 | ECHO='print -r --' |
| 5586 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5587 | ECHO='printf %s\n' |
| 5588 | else |
| 5589 | # Use this function as a fallback that always works. |
| 5590 | func_fallback_echo () |
| 5591 | { |
| 5592 | eval 'cat <<_LTECHO_EOF |
| 5593 | $1 |
| 5594 | _LTECHO_EOF' |
| 5595 | } |
| 5596 | ECHO='func_fallback_echo' |
| 5597 | fi |
| 5598 | |
| 5599 | # func_echo_all arg... |
| 5600 | # Invoke $ECHO with all args, space-separated. |
| 5601 | func_echo_all () |
| 5602 | { |
| 5603 | $ECHO "" |
| 5604 | } |
| 5605 | |
| 5606 | case $ECHO in |
| 5607 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 5608 | printf "%s\n" "printf" >&6; } ;; |
| 5609 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 5610 | printf "%s\n" "print -r" >&6; } ;; |
| 5611 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 5612 | printf "%s\n" "cat" >&6; } ;; |
| 5613 | esac |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
| 5626 | |
| 5627 | |
| 5628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5629 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 5630 | if test ${ac_cv_path_SED+y} |
| 5631 | then : |
| 5632 | printf %s "(cached) " >&6 |
| 5633 | else case e in #( |
| 5634 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5635 | for ac_i in 1 2 3 4 5 6 7; do |
| 5636 | ac_script="$ac_script$as_nl$ac_script" |
| 5637 | done |
| 5638 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5639 | { ac_script=; unset ac_script;} |
| 5640 | if test -z "$SED"; then |
| 5641 | ac_path_SED_found=false |
| 5642 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5644 | for as_dir in $PATH |
| 5645 | do |
| 5646 | IFS=$as_save_IFS |
| 5647 | case $as_dir in #((( |
| 5648 | '') as_dir=./ ;; |
| 5649 | */) ;; |
| 5650 | *) as_dir=$as_dir/ ;; |
| 5651 | esac |
| 5652 | for ac_prog in sed gsed |
| 5653 | do |
| 5654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5655 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 5656 | as_fn_executable_p "$ac_path_SED" || continue |
| 5657 | # Check for GNU ac_path_SED and select it if it is found. |
| 5658 | # Check for GNU $ac_path_SED |
| 5659 | case `"$ac_path_SED" --version 2>&1` in #( |
| 5660 | *GNU*) |
| 5661 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5662 | #( |
| 5663 | *) |
| 5664 | ac_count=0 |
| 5665 | printf %s 0123456789 >"conftest.in" |
| 5666 | while : |
| 5667 | do |
| 5668 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5669 | mv "conftest.tmp" "conftest.in" |
| 5670 | cp "conftest.in" "conftest.nl" |
| 5671 | printf "%s\n" '' >> "conftest.nl" |
| 5672 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5673 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5674 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5675 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5676 | # Best one so far, save it but keep looking for a better one |
| 5677 | ac_cv_path_SED="$ac_path_SED" |
| 5678 | ac_path_SED_max=$ac_count |
| 5679 | fi |
| 5680 | # 10*(2^10) chars as input seems more than enough |
| 5681 | test $ac_count -gt 10 && break |
| 5682 | done |
| 5683 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5684 | esac |
| 5685 | |
| 5686 | $ac_path_SED_found && break 3 |
| 5687 | done |
| 5688 | done |
| 5689 | done |
| 5690 | IFS=$as_save_IFS |
| 5691 | if test -z "$ac_cv_path_SED"; then |
| 5692 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5693 | fi |
| 5694 | else |
| 5695 | ac_cv_path_SED=$SED |
| 5696 | fi |
| 5697 | ;; |
| 5698 | esac |
| 5699 | fi |
| 5700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5701 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 5702 | SED="$ac_cv_path_SED" |
| 5703 | rm -f conftest.sed |
| 5704 | |
| 5705 | test -z "$SED" && SED=sed |
| 5706 | Xsed="$SED -e 1s/^X//" |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | |
| 5717 | |
| 5718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5719 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 5720 | if test ${ac_cv_path_GREP+y} |
| 5721 | then : |
| 5722 | printf %s "(cached) " >&6 |
| 5723 | else case e in #( |
| 5724 | e) if test -z "$GREP"; then |
| 5725 | ac_path_GREP_found=false |
| 5726 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5728 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5729 | do |
| 5730 | IFS=$as_save_IFS |
| 5731 | case $as_dir in #((( |
| 5732 | '') as_dir=./ ;; |
| 5733 | */) ;; |
| 5734 | *) as_dir=$as_dir/ ;; |
| 5735 | esac |
| 5736 | for ac_prog in grep ggrep |
| 5737 | do |
| 5738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5739 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 5740 | as_fn_executable_p "$ac_path_GREP" || continue |
| 5741 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5742 | # Check for GNU $ac_path_GREP |
| 5743 | case `"$ac_path_GREP" --version 2>&1` in #( |
| 5744 | *GNU*) |
| 5745 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5746 | #( |
| 5747 | *) |
| 5748 | ac_count=0 |
| 5749 | printf %s 0123456789 >"conftest.in" |
| 5750 | while : |
| 5751 | do |
| 5752 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5753 | mv "conftest.tmp" "conftest.in" |
| 5754 | cp "conftest.in" "conftest.nl" |
| 5755 | printf "%s\n" 'GREP' >> "conftest.nl" |
| 5756 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5757 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5758 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5759 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5760 | # Best one so far, save it but keep looking for a better one |
| 5761 | ac_cv_path_GREP="$ac_path_GREP" |
| 5762 | ac_path_GREP_max=$ac_count |
| 5763 | fi |
| 5764 | # 10*(2^10) chars as input seems more than enough |
| 5765 | test $ac_count -gt 10 && break |
| 5766 | done |
| 5767 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5768 | esac |
| 5769 | |
| 5770 | $ac_path_GREP_found && break 3 |
| 5771 | done |
| 5772 | done |
| 5773 | done |
| 5774 | IFS=$as_save_IFS |
| 5775 | if test -z "$ac_cv_path_GREP"; then |
| 5776 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5777 | fi |
| 5778 | else |
| 5779 | ac_cv_path_GREP=$GREP |
| 5780 | fi |
| 5781 | ;; |
| 5782 | esac |
| 5783 | fi |
| 5784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5785 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 5786 | GREP="$ac_cv_path_GREP" |
| 5787 | |
| 5788 | |
| 5789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5790 | printf %s "checking for egrep... " >&6; } |
| 5791 | if test ${ac_cv_path_EGREP+y} |
| 5792 | then : |
| 5793 | printf %s "(cached) " >&6 |
| 5794 | else case e in #( |
| 5795 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5796 | then ac_cv_path_EGREP="$GREP -E" |
| 5797 | else |
| 5798 | if test -z "$EGREP"; then |
| 5799 | ac_path_EGREP_found=false |
| 5800 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5802 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5803 | do |
| 5804 | IFS=$as_save_IFS |
| 5805 | case $as_dir in #((( |
| 5806 | '') as_dir=./ ;; |
| 5807 | */) ;; |
| 5808 | *) as_dir=$as_dir/ ;; |
| 5809 | esac |
| 5810 | for ac_prog in egrep |
| 5811 | do |
| 5812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5813 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 5814 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 5815 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5816 | # Check for GNU $ac_path_EGREP |
| 5817 | case `"$ac_path_EGREP" --version 2>&1` in #( |
| 5818 | *GNU*) |
| 5819 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5820 | #( |
| 5821 | *) |
| 5822 | ac_count=0 |
| 5823 | printf %s 0123456789 >"conftest.in" |
| 5824 | while : |
| 5825 | do |
| 5826 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5827 | mv "conftest.tmp" "conftest.in" |
| 5828 | cp "conftest.in" "conftest.nl" |
| 5829 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 5830 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5831 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5832 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5833 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5834 | # Best one so far, save it but keep looking for a better one |
| 5835 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5836 | ac_path_EGREP_max=$ac_count |
| 5837 | fi |
| 5838 | # 10*(2^10) chars as input seems more than enough |
| 5839 | test $ac_count -gt 10 && break |
| 5840 | done |
| 5841 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5842 | esac |
| 5843 | |
| 5844 | $ac_path_EGREP_found && break 3 |
| 5845 | done |
| 5846 | done |
| 5847 | done |
| 5848 | IFS=$as_save_IFS |
| 5849 | if test -z "$ac_cv_path_EGREP"; then |
| 5850 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5851 | fi |
| 5852 | else |
| 5853 | ac_cv_path_EGREP=$EGREP |
| 5854 | fi |
| 5855 | |
| 5856 | fi ;; |
| 5857 | esac |
| 5858 | fi |
| 5859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5860 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 5861 | EGREP="$ac_cv_path_EGREP" |
| 5862 | |
| 5863 | EGREP_TRADITIONAL=$EGREP |
| 5864 | ac_cv_path_EGREP_TRADITIONAL=$EGREP |
| 5865 | |
| 5866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5867 | printf %s "checking for fgrep... " >&6; } |
| 5868 | if test ${ac_cv_path_FGREP+y} |
| 5869 | then : |
| 5870 | printf %s "(cached) " >&6 |
| 5871 | else case e in #( |
| 5872 | e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5873 | then ac_cv_path_FGREP="$GREP -F" |
| 5874 | else |
| 5875 | if test -z "$FGREP"; then |
| 5876 | ac_path_FGREP_found=false |
| 5877 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5879 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5880 | do |
| 5881 | IFS=$as_save_IFS |
| 5882 | case $as_dir in #((( |
| 5883 | '') as_dir=./ ;; |
| 5884 | */) ;; |
| 5885 | *) as_dir=$as_dir/ ;; |
| 5886 | esac |
| 5887 | for ac_prog in fgrep |
| 5888 | do |
| 5889 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5890 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 5891 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 5892 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5893 | # Check for GNU $ac_path_FGREP |
| 5894 | case `"$ac_path_FGREP" --version 2>&1` in #( |
| 5895 | *GNU*) |
| 5896 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5897 | #( |
| 5898 | *) |
| 5899 | ac_count=0 |
| 5900 | printf %s 0123456789 >"conftest.in" |
| 5901 | while : |
| 5902 | do |
| 5903 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5904 | mv "conftest.tmp" "conftest.in" |
| 5905 | cp "conftest.in" "conftest.nl" |
| 5906 | printf "%s\n" 'FGREP' >> "conftest.nl" |
| 5907 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5908 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5909 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5910 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5911 | # Best one so far, save it but keep looking for a better one |
| 5912 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5913 | ac_path_FGREP_max=$ac_count |
| 5914 | fi |
| 5915 | # 10*(2^10) chars as input seems more than enough |
| 5916 | test $ac_count -gt 10 && break |
| 5917 | done |
| 5918 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5919 | esac |
| 5920 | |
| 5921 | $ac_path_FGREP_found && break 3 |
| 5922 | done |
| 5923 | done |
| 5924 | done |
| 5925 | IFS=$as_save_IFS |
| 5926 | if test -z "$ac_cv_path_FGREP"; then |
| 5927 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5928 | fi |
| 5929 | else |
| 5930 | ac_cv_path_FGREP=$FGREP |
| 5931 | fi |
| 5932 | |
| 5933 | fi ;; |
| 5934 | esac |
| 5935 | fi |
| 5936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5937 | printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 5938 | FGREP="$ac_cv_path_FGREP" |
| 5939 | |
| 5940 | |
| 5941 | test -z "$GREP" && GREP=grep |
| 5942 | |
| 5943 | |
| 5944 | |
| 5945 | |
| 5946 | |
| 5947 | |
| 5948 | |
| 5949 | |
| 5950 | |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 | |
| 5955 | |
| 5956 | |
| 5957 | |
| 5958 | |
| 5959 | |
| 5960 | |
| 5961 | # Check whether --with-gnu-ld was given. |
| 5962 | if test ${with_gnu_ld+y} |
| 5963 | then : |
| 5964 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 5965 | else case e in #( |
| 5966 | e) with_gnu_ld=no ;; |
| 5967 | esac |
| 5968 | fi |
| 5969 | |
| 5970 | ac_prog=ld |
| 5971 | if test yes = "$GCC"; then |
| 5972 | # Check if gcc -print-prog-name=ld gives a path. |
| 5973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5974 | printf %s "checking for ld used by $CC... " >&6; } |
| 5975 | case $host in |
| 5976 | *-*-mingw* | *-*-windows*) |
| 5977 | # gcc leaves a trailing carriage return, which upsets mingw |
| 5978 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5979 | *) |
| 5980 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5981 | esac |
| 5982 | case $ac_prog in |
| 5983 | # Accept absolute paths. |
| 5984 | [\\/]* | ?:[\\/]*) |
| 5985 | re_direlt='/[^/][^/]*/\.\./' |
| 5986 | # Canonicalize the pathname of ld |
| 5987 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5988 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5989 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5990 | done |
| 5991 | test -z "$LD" && LD=$ac_prog |
| 5992 | ;; |
| 5993 | "") |
| 5994 | # If it fails, then pretend we aren't using GCC. |
| 5995 | ac_prog=ld |
| 5996 | ;; |
| 5997 | *) |
| 5998 | # If it is relative, then search for the first ld in PATH. |
| 5999 | with_gnu_ld=unknown |
| 6000 | ;; |
| 6001 | esac |
| 6002 | elif test yes = "$with_gnu_ld"; then |
| 6003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6004 | printf %s "checking for GNU ld... " >&6; } |
| 6005 | else |
| 6006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6007 | printf %s "checking for non-GNU ld... " >&6; } |
| 6008 | fi |
| 6009 | if test ${lt_cv_path_LD+y} |
| 6010 | then : |
| 6011 | printf %s "(cached) " >&6 |
| 6012 | else case e in #( |
| 6013 | e) if test -z "$LD"; then |
| 6014 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6015 | for ac_dir in $PATH; do |
| 6016 | IFS=$lt_save_ifs |
| 6017 | test -z "$ac_dir" && ac_dir=. |
| 6018 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6019 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 6020 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6021 | # but apparently some variants of GNU ld only accept -v. |
| 6022 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6023 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6024 | *GNU* | *'with BFD'*) |
| 6025 | test no != "$with_gnu_ld" && break |
| 6026 | ;; |
| 6027 | *) |
| 6028 | test yes != "$with_gnu_ld" && break |
| 6029 | ;; |
| 6030 | esac |
| 6031 | fi |
| 6032 | done |
| 6033 | IFS=$lt_save_ifs |
| 6034 | else |
| 6035 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 6036 | fi ;; |
| 6037 | esac |
| 6038 | fi |
| 6039 | |
| 6040 | LD=$lt_cv_path_LD |
| 6041 | if test -n "$LD"; then |
| 6042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6043 | printf "%s\n" "$LD" >&6; } |
| 6044 | else |
| 6045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6046 | printf "%s\n" "no" >&6; } |
| 6047 | fi |
| 6048 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6050 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6051 | if test ${lt_cv_prog_gnu_ld+y} |
| 6052 | then : |
| 6053 | printf %s "(cached) " >&6 |
| 6054 | else case e in #( |
| 6055 | e) # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6056 | case `$LD -v 2>&1 </dev/null` in |
| 6057 | *GNU* | *'with BFD'*) |
| 6058 | lt_cv_prog_gnu_ld=yes |
| 6059 | ;; |
| 6060 | *) |
| 6061 | lt_cv_prog_gnu_ld=no |
| 6062 | ;; |
| 6063 | esac ;; |
| 6064 | esac |
| 6065 | fi |
| 6066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6067 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 6068 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6069 | |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6079 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6080 | if test ${lt_cv_path_NM+y} |
| 6081 | then : |
| 6082 | printf %s "(cached) " >&6 |
| 6083 | else case e in #( |
| 6084 | e) if test -n "$NM"; then |
| 6085 | # Let the user override the test. |
| 6086 | lt_cv_path_NM=$NM |
| 6087 | else |
| 6088 | lt_nm_to_check=${ac_tool_prefix}nm |
| 6089 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6090 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6091 | fi |
| 6092 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6093 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6094 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6095 | IFS=$lt_save_ifs |
| 6096 | test -z "$ac_dir" && ac_dir=. |
| 6097 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 6098 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 6099 | # Check to see if the nm accepts a BSD-compat flag. |
| 6100 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 6101 | # nm: unknown option "B" ignored |
| 6102 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6103 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 6104 | case $build_os in |
| 6105 | mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; |
| 6106 | *) lt_bad_file=/dev/null ;; |
| 6107 | esac |
| 6108 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in |
| 6109 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 6110 | lt_cv_path_NM="$tmp_nm -B" |
| 6111 | break 2 |
| 6112 | ;; |
| 6113 | *) |
| 6114 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in |
| 6115 | */dev/null*) |
| 6116 | lt_cv_path_NM="$tmp_nm -p" |
| 6117 | break 2 |
| 6118 | ;; |
| 6119 | *) |
| 6120 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6121 | continue # so that we can try to find one that supports BSD flags |
| 6122 | ;; |
| 6123 | esac |
| 6124 | ;; |
| 6125 | esac |
| 6126 | fi |
| 6127 | done |
| 6128 | IFS=$lt_save_ifs |
| 6129 | done |
| 6130 | : ${lt_cv_path_NM=no} |
| 6131 | fi ;; |
| 6132 | esac |
| 6133 | fi |
| 6134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6135 | printf "%s\n" "$lt_cv_path_NM" >&6; } |
| 6136 | if test no != "$lt_cv_path_NM"; then |
| 6137 | NM=$lt_cv_path_NM |
| 6138 | else |
| 6139 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6140 | if test -n "$DUMPBIN"; then : |
| 6141 | # Let the user override the test. |
| 6142 | else |
| 6143 | if test -n "$ac_tool_prefix"; then |
| 6144 | for ac_prog in dumpbin "link -dump" |
| 6145 | do |
| 6146 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6147 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6149 | printf %s "checking for $ac_word... " >&6; } |
| 6150 | if test ${ac_cv_prog_DUMPBIN+y} |
| 6151 | then : |
| 6152 | printf %s "(cached) " >&6 |
| 6153 | else case e in #( |
| 6154 | e) if test -n "$DUMPBIN"; then |
| 6155 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6156 | else |
| 6157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6158 | for as_dir in $PATH |
| 6159 | do |
| 6160 | IFS=$as_save_IFS |
| 6161 | case $as_dir in #((( |
| 6162 | '') as_dir=./ ;; |
| 6163 | */) ;; |
| 6164 | *) as_dir=$as_dir/ ;; |
| 6165 | esac |
| 6166 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6167 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6168 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6169 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6170 | break 2 |
| 6171 | fi |
| 6172 | done |
| 6173 | done |
| 6174 | IFS=$as_save_IFS |
| 6175 | |
| 6176 | fi ;; |
| 6177 | esac |
| 6178 | fi |
| 6179 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6180 | if test -n "$DUMPBIN"; then |
| 6181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6182 | printf "%s\n" "$DUMPBIN" >&6; } |
| 6183 | else |
| 6184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6185 | printf "%s\n" "no" >&6; } |
| 6186 | fi |
| 6187 | |
| 6188 | |
| 6189 | test -n "$DUMPBIN" && break |
| 6190 | done |
| 6191 | fi |
| 6192 | if test -z "$DUMPBIN"; then |
| 6193 | ac_ct_DUMPBIN=$DUMPBIN |
| 6194 | for ac_prog in dumpbin "link -dump" |
| 6195 | do |
| 6196 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6197 | set dummy $ac_prog; ac_word=$2 |
| 6198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6199 | printf %s "checking for $ac_word... " >&6; } |
| 6200 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y} |
| 6201 | then : |
| 6202 | printf %s "(cached) " >&6 |
| 6203 | else case e in #( |
| 6204 | e) if test -n "$ac_ct_DUMPBIN"; then |
| 6205 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6206 | else |
| 6207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6208 | for as_dir in $PATH |
| 6209 | do |
| 6210 | IFS=$as_save_IFS |
| 6211 | case $as_dir in #((( |
| 6212 | '') as_dir=./ ;; |
| 6213 | */) ;; |
| 6214 | *) as_dir=$as_dir/ ;; |
| 6215 | esac |
| 6216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6217 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6218 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6219 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6220 | break 2 |
| 6221 | fi |
| 6222 | done |
| 6223 | done |
| 6224 | IFS=$as_save_IFS |
| 6225 | |
| 6226 | fi ;; |
| 6227 | esac |
| 6228 | fi |
| 6229 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6230 | if test -n "$ac_ct_DUMPBIN"; then |
| 6231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6232 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; } |
| 6233 | else |
| 6234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6235 | printf "%s\n" "no" >&6; } |
| 6236 | fi |
| 6237 | |
| 6238 | |
| 6239 | test -n "$ac_ct_DUMPBIN" && break |
| 6240 | done |
| 6241 | |
| 6242 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6243 | DUMPBIN=":" |
| 6244 | else |
| 6245 | case $cross_compiling:$ac_tool_warned in |
| 6246 | yes:) |
| 6247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6248 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6249 | ac_tool_warned=yes ;; |
| 6250 | esac |
| 6251 | DUMPBIN=$ac_ct_DUMPBIN |
| 6252 | fi |
| 6253 | fi |
| 6254 | |
| 6255 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in |
| 6256 | *COFF*) |
| 6257 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 6258 | ;; |
| 6259 | *) |
| 6260 | DUMPBIN=: |
| 6261 | ;; |
| 6262 | esac |
| 6263 | fi |
| 6264 | |
| 6265 | if test : != "$DUMPBIN"; then |
| 6266 | NM=$DUMPBIN |
| 6267 | fi |
| 6268 | fi |
| 6269 | test -z "$NM" && NM=nm |
| 6270 | |
| 6271 | |
| 6272 | |
| 6273 | |
| 6274 | |
| 6275 | |
| 6276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6277 | printf %s "checking the name lister ($NM) interface... " >&6; } |
| 6278 | if test ${lt_cv_nm_interface+y} |
| 6279 | then : |
| 6280 | printf %s "(cached) " >&6 |
| 6281 | else case e in #( |
| 6282 | e) lt_cv_nm_interface="BSD nm" |
| 6283 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6284 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6285 | (eval "$ac_compile" 2>conftest.err) |
| 6286 | cat conftest.err >&5 |
| 6287 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6288 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6289 | cat conftest.err >&5 |
| 6290 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6291 | cat conftest.out >&5 |
| 6292 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6293 | lt_cv_nm_interface="MS dumpbin" |
| 6294 | fi |
| 6295 | rm -f conftest* ;; |
| 6296 | esac |
| 6297 | fi |
| 6298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6299 | printf "%s\n" "$lt_cv_nm_interface" >&6; } |
| 6300 | |
| 6301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6302 | printf %s "checking whether ln -s works... " >&6; } |
| 6303 | LN_S=$as_ln_s |
| 6304 | if test "$LN_S" = "ln -s"; then |
| 6305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6306 | printf "%s\n" "yes" >&6; } |
| 6307 | else |
| 6308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6309 | printf "%s\n" "no, using $LN_S" >&6; } |
| 6310 | fi |
| 6311 | |
| 6312 | # find the maximum length of command line arguments |
| 6313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6314 | printf %s "checking the maximum length of command line arguments... " >&6; } |
| 6315 | if test ${lt_cv_sys_max_cmd_len+y} |
| 6316 | then : |
| 6317 | printf %s "(cached) " >&6 |
| 6318 | else case e in #( |
| 6319 | e) i=0 |
| 6320 | teststring=ABCD |
| 6321 | |
| 6322 | case $build_os in |
| 6323 | msdosdjgpp*) |
| 6324 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6325 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6326 | # during glob expansion). Even if it were fixed, the result of this |
| 6327 | # check would be larger than it should be. |
| 6328 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6329 | ;; |
| 6330 | |
| 6331 | gnu* | ironclad*) |
| 6332 | # Under GNU Hurd and Ironclad, this test is not required because there |
| 6333 | # is no limit to the length of command line arguments. |
| 6334 | # Libtool will interpret -1 as no limit whatsoever |
| 6335 | lt_cv_sys_max_cmd_len=-1; |
| 6336 | ;; |
| 6337 | |
| 6338 | cygwin* | mingw* | windows* | cegcc*) |
| 6339 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6340 | # about 5 minutes as the teststring grows exponentially. |
| 6341 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6342 | # you end up with a "frozen" computer, even though with patience |
| 6343 | # the test eventually succeeds (with a max line length of 256k). |
| 6344 | # Instead, let's just punt: use the minimum linelength reported by |
| 6345 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6346 | lt_cv_sys_max_cmd_len=8192; |
| 6347 | ;; |
| 6348 | |
| 6349 | mint*) |
| 6350 | # On MiNT this can take a long time and run out of memory. |
| 6351 | lt_cv_sys_max_cmd_len=8192; |
| 6352 | ;; |
| 6353 | |
| 6354 | amigaos*) |
| 6355 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6356 | # So we just punt and use a minimum line length of 8192. |
| 6357 | lt_cv_sys_max_cmd_len=8192; |
| 6358 | ;; |
| 6359 | |
| 6360 | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) |
| 6361 | # This has been around since 386BSD, at least. Likely further. |
| 6362 | if test -x /sbin/sysctl; then |
| 6363 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6364 | elif test -x /usr/sbin/sysctl; then |
| 6365 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6366 | else |
| 6367 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6368 | fi |
| 6369 | # And add a safety zone |
| 6370 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6371 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6372 | ;; |
| 6373 | |
| 6374 | interix*) |
| 6375 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6376 | lt_cv_sys_max_cmd_len=196608 |
| 6377 | ;; |
| 6378 | |
| 6379 | os2*) |
| 6380 | # The test takes a long time on OS/2. |
| 6381 | lt_cv_sys_max_cmd_len=8192 |
| 6382 | ;; |
| 6383 | |
| 6384 | osf*) |
| 6385 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6386 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6387 | # nice to cause kernel panics so lets avoid the loop below. |
| 6388 | # First set a reasonable default. |
| 6389 | lt_cv_sys_max_cmd_len=16384 |
| 6390 | # |
| 6391 | if test -x /sbin/sysconfig; then |
| 6392 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6393 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6394 | esac |
| 6395 | fi |
| 6396 | ;; |
| 6397 | sco3.2v5*) |
| 6398 | lt_cv_sys_max_cmd_len=102400 |
| 6399 | ;; |
| 6400 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6401 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6402 | if test -n "$kargmax"; then |
| 6403 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` |
| 6404 | else |
| 6405 | lt_cv_sys_max_cmd_len=32768 |
| 6406 | fi |
| 6407 | ;; |
| 6408 | *) |
| 6409 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6410 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 6411 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 6412 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6413 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6414 | else |
| 6415 | # Make teststring a little bigger before we do anything with it. |
| 6416 | # a 1K string should be a reasonable start. |
| 6417 | for i in 1 2 3 4 5 6 7 8; do |
| 6418 | teststring=$teststring$teststring |
| 6419 | done |
| 6420 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6421 | # If test is not a shell built-in, we'll probably end up computing a |
| 6422 | # maximum length that is only half of the actual maximum length, but |
| 6423 | # we can't tell. |
| 6424 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 6425 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6426 | test 17 != "$i" # 1/2 MB should be enough |
| 6427 | do |
| 6428 | i=`expr $i + 1` |
| 6429 | teststring=$teststring$teststring |
| 6430 | done |
| 6431 | # Only check the string length outside the loop. |
| 6432 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6433 | teststring= |
| 6434 | # Add a significant safety factor because C++ compilers can tack on |
| 6435 | # massive amounts of additional arguments before passing them to the |
| 6436 | # linker. It appears as though 1/2 is a usable value. |
| 6437 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6438 | fi |
| 6439 | ;; |
| 6440 | esac |
| 6441 | ;; |
| 6442 | esac |
| 6443 | fi |
| 6444 | |
| 6445 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6447 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } |
| 6448 | else |
| 6449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6450 | printf "%s\n" "none" >&6; } |
| 6451 | fi |
| 6452 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6453 | |
| 6454 | |
| 6455 | |
| 6456 | |
| 6457 | |
| 6458 | |
| 6459 | : ${CP="cp -f"} |
| 6460 | : ${MV="mv -f"} |
| 6461 | : ${RM="rm -f"} |
| 6462 | |
| 6463 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6464 | lt_unset=unset |
| 6465 | else |
| 6466 | lt_unset=false |
| 6467 | fi |
| 6468 | |
| 6469 | |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | # test EBCDIC or ASCII |
| 6474 | case `echo X|tr X '\101'` in |
| 6475 | A) # ASCII based system |
| 6476 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6477 | lt_SP2NL='tr \040 \012' |
| 6478 | lt_NL2SP='tr \015\012 \040\040' |
| 6479 | ;; |
| 6480 | *) # EBCDIC based system |
| 6481 | lt_SP2NL='tr \100 \n' |
| 6482 | lt_NL2SP='tr \r\n \100\100' |
| 6483 | ;; |
| 6484 | esac |
| 6485 | |
| 6486 | |
| 6487 | |
| 6488 | |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | |
| 6493 | |
| 6494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 6495 | printf %s "checking how to convert $build file names to $host format... " >&6; } |
| 6496 | if test ${lt_cv_to_host_file_cmd+y} |
| 6497 | then : |
| 6498 | printf %s "(cached) " >&6 |
| 6499 | else case e in #( |
| 6500 | e) case $host in |
| 6501 | *-*-mingw* ) |
| 6502 | case $build in |
| 6503 | *-*-mingw* | *-*-windows* ) # actually msys |
| 6504 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 6505 | ;; |
| 6506 | *-*-cygwin* ) |
| 6507 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 6508 | ;; |
| 6509 | * ) # otherwise, assume *nix |
| 6510 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 6511 | ;; |
| 6512 | esac |
| 6513 | ;; |
| 6514 | *-*-cygwin* ) |
| 6515 | case $build in |
| 6516 | *-*-mingw* | *-*-windows* ) # actually msys |
| 6517 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 6518 | ;; |
| 6519 | *-*-cygwin* ) |
| 6520 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6521 | ;; |
| 6522 | * ) # otherwise, assume *nix |
| 6523 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 6524 | ;; |
| 6525 | esac |
| 6526 | ;; |
| 6527 | * ) # unhandled hosts (and "normal" native builds) |
| 6528 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6529 | ;; |
| 6530 | esac |
| 6531 | ;; |
| 6532 | esac |
| 6533 | fi |
| 6534 | |
| 6535 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 6536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 6537 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } |
| 6538 | |
| 6539 | |
| 6540 | |
| 6541 | |
| 6542 | |
| 6543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 6544 | printf %s "checking how to convert $build file names to toolchain format... " >&6; } |
| 6545 | if test ${lt_cv_to_tool_file_cmd+y} |
| 6546 | then : |
| 6547 | printf %s "(cached) " >&6 |
| 6548 | else case e in #( |
| 6549 | e) #assume ordinary cross tools, or native build. |
| 6550 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 6551 | case $host in |
| 6552 | *-*-mingw* | *-*-windows* ) |
| 6553 | case $build in |
| 6554 | *-*-mingw* | *-*-windows* ) # actually msys |
| 6555 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 6556 | ;; |
| 6557 | esac |
| 6558 | ;; |
| 6559 | esac |
| 6560 | ;; |
| 6561 | esac |
| 6562 | fi |
| 6563 | |
| 6564 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 6565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 6566 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } |
| 6567 | |
| 6568 | |
| 6569 | |
| 6570 | |
| 6571 | |
| 6572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 6573 | printf %s "checking for $LD option to reload object files... " >&6; } |
| 6574 | if test ${lt_cv_ld_reload_flag+y} |
| 6575 | then : |
| 6576 | printf %s "(cached) " >&6 |
| 6577 | else case e in #( |
| 6578 | e) lt_cv_ld_reload_flag='-r' ;; |
| 6579 | esac |
| 6580 | fi |
| 6581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 6582 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } |
| 6583 | reload_flag=$lt_cv_ld_reload_flag |
| 6584 | case $reload_flag in |
| 6585 | "" | " "*) ;; |
| 6586 | *) reload_flag=" $reload_flag" ;; |
| 6587 | esac |
| 6588 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6589 | case $host_os in |
| 6590 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 6591 | if test yes != "$GCC"; then |
| 6592 | reload_cmds=false |
| 6593 | fi |
| 6594 | ;; |
| 6595 | darwin*) |
| 6596 | if test yes = "$GCC"; then |
| 6597 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 6598 | else |
| 6599 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6600 | fi |
| 6601 | ;; |
| 6602 | esac |
| 6603 | |
| 6604 | |
| 6605 | |
| 6606 | |
| 6607 | |
| 6608 | |
| 6609 | |
| 6610 | |
| 6611 | |
| 6612 | # Extract the first word of "file", so it can be a program name with args. |
| 6613 | set dummy file; ac_word=$2 |
| 6614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6615 | printf %s "checking for $ac_word... " >&6; } |
| 6616 | if test ${ac_cv_prog_FILECMD+y} |
| 6617 | then : |
| 6618 | printf %s "(cached) " >&6 |
| 6619 | else case e in #( |
| 6620 | e) if test -n "$FILECMD"; then |
| 6621 | ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. |
| 6622 | else |
| 6623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6624 | for as_dir in $PATH |
| 6625 | do |
| 6626 | IFS=$as_save_IFS |
| 6627 | case $as_dir in #((( |
| 6628 | '') as_dir=./ ;; |
| 6629 | */) ;; |
| 6630 | *) as_dir=$as_dir/ ;; |
| 6631 | esac |
| 6632 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6633 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6634 | ac_cv_prog_FILECMD="file" |
| 6635 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6636 | break 2 |
| 6637 | fi |
| 6638 | done |
| 6639 | done |
| 6640 | IFS=$as_save_IFS |
| 6641 | |
| 6642 | test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" |
| 6643 | fi ;; |
| 6644 | esac |
| 6645 | fi |
| 6646 | FILECMD=$ac_cv_prog_FILECMD |
| 6647 | if test -n "$FILECMD"; then |
| 6648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 |
| 6649 | printf "%s\n" "$FILECMD" >&6; } |
| 6650 | else |
| 6651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6652 | printf "%s\n" "no" >&6; } |
| 6653 | fi |
| 6654 | |
| 6655 | |
| 6656 | |
| 6657 | |
| 6658 | |
| 6659 | |
| 6660 | |
| 6661 | |
| 6662 | if test -n "$ac_tool_prefix"; then |
| 6663 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 6664 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 6665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6666 | printf %s "checking for $ac_word... " >&6; } |
| 6667 | if test ${ac_cv_prog_OBJDUMP+y} |
| 6668 | then : |
| 6669 | printf %s "(cached) " >&6 |
| 6670 | else case e in #( |
| 6671 | e) if test -n "$OBJDUMP"; then |
| 6672 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 6673 | else |
| 6674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6675 | for as_dir in $PATH |
| 6676 | do |
| 6677 | IFS=$as_save_IFS |
| 6678 | case $as_dir in #((( |
| 6679 | '') as_dir=./ ;; |
| 6680 | */) ;; |
| 6681 | *) as_dir=$as_dir/ ;; |
| 6682 | esac |
| 6683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6684 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6685 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 6686 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6687 | break 2 |
| 6688 | fi |
| 6689 | done |
| 6690 | done |
| 6691 | IFS=$as_save_IFS |
| 6692 | |
| 6693 | fi ;; |
| 6694 | esac |
| 6695 | fi |
| 6696 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 6697 | if test -n "$OBJDUMP"; then |
| 6698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 6699 | printf "%s\n" "$OBJDUMP" >&6; } |
| 6700 | else |
| 6701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6702 | printf "%s\n" "no" >&6; } |
| 6703 | fi |
| 6704 | |
| 6705 | |
| 6706 | fi |
| 6707 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 6708 | ac_ct_OBJDUMP=$OBJDUMP |
| 6709 | # Extract the first word of "objdump", so it can be a program name with args. |
| 6710 | set dummy objdump; ac_word=$2 |
| 6711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6712 | printf %s "checking for $ac_word... " >&6; } |
| 6713 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 6714 | then : |
| 6715 | printf %s "(cached) " >&6 |
| 6716 | else case e in #( |
| 6717 | e) if test -n "$ac_ct_OBJDUMP"; then |
| 6718 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 6719 | else |
| 6720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6721 | for as_dir in $PATH |
| 6722 | do |
| 6723 | IFS=$as_save_IFS |
| 6724 | case $as_dir in #((( |
| 6725 | '') as_dir=./ ;; |
| 6726 | */) ;; |
| 6727 | *) as_dir=$as_dir/ ;; |
| 6728 | esac |
| 6729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6730 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6731 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 6732 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6733 | break 2 |
| 6734 | fi |
| 6735 | done |
| 6736 | done |
| 6737 | IFS=$as_save_IFS |
| 6738 | |
| 6739 | fi ;; |
| 6740 | esac |
| 6741 | fi |
| 6742 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 6743 | if test -n "$ac_ct_OBJDUMP"; then |
| 6744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 6745 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 6746 | else |
| 6747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6748 | printf "%s\n" "no" >&6; } |
| 6749 | fi |
| 6750 | |
| 6751 | if test "x$ac_ct_OBJDUMP" = x; then |
| 6752 | OBJDUMP="false" |
| 6753 | else |
| 6754 | case $cross_compiling:$ac_tool_warned in |
| 6755 | yes:) |
| 6756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6757 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6758 | ac_tool_warned=yes ;; |
| 6759 | esac |
| 6760 | OBJDUMP=$ac_ct_OBJDUMP |
| 6761 | fi |
| 6762 | else |
| 6763 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 6764 | fi |
| 6765 | |
| 6766 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6767 | |
| 6768 | |
| 6769 | |
| 6770 | |
| 6771 | |
| 6772 | |
| 6773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 6774 | printf %s "checking how to recognize dependent libraries... " >&6; } |
| 6775 | if test ${lt_cv_deplibs_check_method+y} |
| 6776 | then : |
| 6777 | printf %s "(cached) " >&6 |
| 6778 | else case e in #( |
| 6779 | e) lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 6780 | lt_cv_file_magic_test_file= |
| 6781 | lt_cv_deplibs_check_method='unknown' |
| 6782 | # Need to set the preceding variable on all platforms that support |
| 6783 | # interlibrary dependencies. |
| 6784 | # 'none' -- dependencies not supported. |
| 6785 | # 'unknown' -- same as none, but documents that we really don't know. |
| 6786 | # 'pass_all' -- all dependencies passed with no checks. |
| 6787 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 6788 | # that responds to the $file_magic_cmd with a given extended regex. |
| 6789 | # If you have 'file' or equivalent on your system and you're not sure |
| 6790 | # whether 'pass_all' will *always* work, you probably want this one. |
| 6791 | |
| 6792 | case $host_os in |
| 6793 | aix[4-9]*) |
| 6794 | lt_cv_deplibs_check_method=pass_all |
| 6795 | ;; |
| 6796 | |
| 6797 | beos*) |
| 6798 | lt_cv_deplibs_check_method=pass_all |
| 6799 | ;; |
| 6800 | |
| 6801 | bsdi[45]*) |
| 6802 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 6803 | lt_cv_file_magic_cmd='$FILECMD -L' |
| 6804 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 6805 | ;; |
| 6806 | |
| 6807 | cygwin*) |
| 6808 | # func_win32_libid is a shell function defined in ltmain.sh |
| 6809 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6810 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6811 | ;; |
| 6812 | |
| 6813 | mingw* | windows* | pw32*) |
| 6814 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 6815 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 6816 | # unless we find 'file', for example because we are cross-compiling. |
| 6817 | if ( file / ) >/dev/null 2>&1; then |
| 6818 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6819 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6820 | else |
| 6821 | # Keep this pattern in sync with the one in func_win32_libid. |
| 6822 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' |
| 6823 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6824 | fi |
| 6825 | ;; |
| 6826 | |
| 6827 | cegcc*) |
| 6828 | # use the weaker test based on 'objdump'. See mingw*. |
| 6829 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 6830 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6831 | ;; |
| 6832 | |
| 6833 | darwin* | rhapsody*) |
| 6834 | lt_cv_deplibs_check_method=pass_all |
| 6835 | ;; |
| 6836 | |
| 6837 | freebsd* | dragonfly* | midnightbsd*) |
| 6838 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6839 | case $host_cpu in |
| 6840 | i*86 ) |
| 6841 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 6842 | # Let's accept both of them until this is cleared up. |
| 6843 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 6844 | lt_cv_file_magic_cmd=$FILECMD |
| 6845 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 6846 | ;; |
| 6847 | esac |
| 6848 | else |
| 6849 | lt_cv_deplibs_check_method=pass_all |
| 6850 | fi |
| 6851 | ;; |
| 6852 | |
| 6853 | haiku*) |
| 6854 | lt_cv_deplibs_check_method=pass_all |
| 6855 | ;; |
| 6856 | |
| 6857 | hpux10.20* | hpux11*) |
| 6858 | lt_cv_file_magic_cmd=$FILECMD |
| 6859 | case $host_cpu in |
| 6860 | ia64*) |
| 6861 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 6862 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 6863 | ;; |
| 6864 | hppa*64*) |
| 6865 | 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]' |
| 6866 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 6867 | ;; |
| 6868 | *) |
| 6869 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 6870 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 6871 | ;; |
| 6872 | esac |
| 6873 | ;; |
| 6874 | |
| 6875 | interix[3-9]*) |
| 6876 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 6877 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 6878 | ;; |
| 6879 | |
| 6880 | irix5* | irix6* | nonstopux*) |
| 6881 | case $LD in |
| 6882 | *-32|*"-32 ") libmagic=32-bit;; |
| 6883 | *-n32|*"-n32 ") libmagic=N32;; |
| 6884 | *-64|*"-64 ") libmagic=64-bit;; |
| 6885 | *) libmagic=never-match;; |
| 6886 | esac |
| 6887 | lt_cv_deplibs_check_method=pass_all |
| 6888 | ;; |
| 6889 | |
| 6890 | # This must be glibc/ELF. |
| 6891 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 6892 | lt_cv_deplibs_check_method=pass_all |
| 6893 | ;; |
| 6894 | |
| 6895 | *-mlibc) |
| 6896 | lt_cv_deplibs_check_method=pass_all |
| 6897 | ;; |
| 6898 | |
| 6899 | netbsd* | netbsdelf*-gnu) |
| 6900 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6901 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6902 | else |
| 6903 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 6904 | fi |
| 6905 | ;; |
| 6906 | |
| 6907 | newos6*) |
| 6908 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 6909 | lt_cv_file_magic_cmd=$FILECMD |
| 6910 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6911 | ;; |
| 6912 | |
| 6913 | *nto* | *qnx*) |
| 6914 | lt_cv_deplibs_check_method=pass_all |
| 6915 | ;; |
| 6916 | |
| 6917 | openbsd*) |
| 6918 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 6919 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 6920 | else |
| 6921 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6922 | fi |
| 6923 | ;; |
| 6924 | |
| 6925 | osf3* | osf4* | osf5*) |
| 6926 | lt_cv_deplibs_check_method=pass_all |
| 6927 | ;; |
| 6928 | |
| 6929 | rdos*) |
| 6930 | lt_cv_deplibs_check_method=pass_all |
| 6931 | ;; |
| 6932 | |
| 6933 | serenity*) |
| 6934 | lt_cv_deplibs_check_method=pass_all |
| 6935 | ;; |
| 6936 | |
| 6937 | solaris*) |
| 6938 | lt_cv_deplibs_check_method=pass_all |
| 6939 | ;; |
| 6940 | |
| 6941 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6942 | lt_cv_deplibs_check_method=pass_all |
| 6943 | ;; |
| 6944 | |
| 6945 | sysv4 | sysv4.3*) |
| 6946 | case $host_vendor in |
| 6947 | motorola) |
| 6948 | 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]' |
| 6949 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6950 | ;; |
| 6951 | ncr) |
| 6952 | lt_cv_deplibs_check_method=pass_all |
| 6953 | ;; |
| 6954 | sequent) |
| 6955 | lt_cv_file_magic_cmd='/bin/file' |
| 6956 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 6957 | ;; |
| 6958 | sni) |
| 6959 | lt_cv_file_magic_cmd='/bin/file' |
| 6960 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 6961 | lt_cv_file_magic_test_file=/lib/libc.so |
| 6962 | ;; |
| 6963 | siemens) |
| 6964 | lt_cv_deplibs_check_method=pass_all |
| 6965 | ;; |
| 6966 | pc) |
| 6967 | lt_cv_deplibs_check_method=pass_all |
| 6968 | ;; |
| 6969 | esac |
| 6970 | ;; |
| 6971 | |
| 6972 | tpf*) |
| 6973 | lt_cv_deplibs_check_method=pass_all |
| 6974 | ;; |
| 6975 | os2*) |
| 6976 | lt_cv_deplibs_check_method=pass_all |
| 6977 | ;; |
| 6978 | esac |
| 6979 | ;; |
| 6980 | esac |
| 6981 | fi |
| 6982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 6983 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } |
| 6984 | |
| 6985 | file_magic_glob= |
| 6986 | want_nocaseglob=no |
| 6987 | if test "$build" = "$host"; then |
| 6988 | case $host_os in |
| 6989 | mingw* | windows* | pw32*) |
| 6990 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 6991 | want_nocaseglob=yes |
| 6992 | else |
| 6993 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 6994 | fi |
| 6995 | ;; |
| 6996 | esac |
| 6997 | fi |
| 6998 | |
| 6999 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 7000 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 7001 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7002 | |
| 7003 | |
| 7004 | |
| 7005 | |
| 7006 | |
| 7007 | |
| 7008 | |
| 7009 | |
| 7010 | |
| 7011 | |
| 7012 | |
| 7013 | |
| 7014 | |
| 7015 | |
| 7016 | |
| 7017 | |
| 7018 | |
| 7019 | |
| 7020 | |
| 7021 | |
| 7022 | |
| 7023 | |
| 7024 | if test -n "$ac_tool_prefix"; then |
| 7025 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7026 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7028 | printf %s "checking for $ac_word... " >&6; } |
| 7029 | if test ${ac_cv_prog_DLLTOOL+y} |
| 7030 | then : |
| 7031 | printf %s "(cached) " >&6 |
| 7032 | else case e in #( |
| 7033 | e) if test -n "$DLLTOOL"; then |
| 7034 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7035 | else |
| 7036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7037 | for as_dir in $PATH |
| 7038 | do |
| 7039 | IFS=$as_save_IFS |
| 7040 | case $as_dir in #((( |
| 7041 | '') as_dir=./ ;; |
| 7042 | */) ;; |
| 7043 | *) as_dir=$as_dir/ ;; |
| 7044 | esac |
| 7045 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7046 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7047 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7048 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7049 | break 2 |
| 7050 | fi |
| 7051 | done |
| 7052 | done |
| 7053 | IFS=$as_save_IFS |
| 7054 | |
| 7055 | fi ;; |
| 7056 | esac |
| 7057 | fi |
| 7058 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7059 | if test -n "$DLLTOOL"; then |
| 7060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7061 | printf "%s\n" "$DLLTOOL" >&6; } |
| 7062 | else |
| 7063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7064 | printf "%s\n" "no" >&6; } |
| 7065 | fi |
| 7066 | |
| 7067 | |
| 7068 | fi |
| 7069 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7070 | ac_ct_DLLTOOL=$DLLTOOL |
| 7071 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 7072 | set dummy dlltool; ac_word=$2 |
| 7073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7074 | printf %s "checking for $ac_word... " >&6; } |
| 7075 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 7076 | then : |
| 7077 | printf %s "(cached) " >&6 |
| 7078 | else case e in #( |
| 7079 | e) if test -n "$ac_ct_DLLTOOL"; then |
| 7080 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7081 | else |
| 7082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7083 | for as_dir in $PATH |
| 7084 | do |
| 7085 | IFS=$as_save_IFS |
| 7086 | case $as_dir in #((( |
| 7087 | '') as_dir=./ ;; |
| 7088 | */) ;; |
| 7089 | *) as_dir=$as_dir/ ;; |
| 7090 | esac |
| 7091 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7092 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7093 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7094 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7095 | break 2 |
| 7096 | fi |
| 7097 | done |
| 7098 | done |
| 7099 | IFS=$as_save_IFS |
| 7100 | |
| 7101 | fi ;; |
| 7102 | esac |
| 7103 | fi |
| 7104 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7105 | if test -n "$ac_ct_DLLTOOL"; then |
| 7106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7107 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 7108 | else |
| 7109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7110 | printf "%s\n" "no" >&6; } |
| 7111 | fi |
| 7112 | |
| 7113 | if test "x$ac_ct_DLLTOOL" = x; then |
| 7114 | DLLTOOL="false" |
| 7115 | else |
| 7116 | case $cross_compiling:$ac_tool_warned in |
| 7117 | yes:) |
| 7118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7119 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7120 | ac_tool_warned=yes ;; |
| 7121 | esac |
| 7122 | DLLTOOL=$ac_ct_DLLTOOL |
| 7123 | fi |
| 7124 | else |
| 7125 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7126 | fi |
| 7127 | |
| 7128 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7129 | |
| 7130 | |
| 7131 | |
| 7132 | |
| 7133 | |
| 7134 | |
| 7135 | |
| 7136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7137 | printf %s "checking how to associate runtime and link libraries... " >&6; } |
| 7138 | if test ${lt_cv_sharedlib_from_linklib_cmd+y} |
| 7139 | then : |
| 7140 | printf %s "(cached) " >&6 |
| 7141 | else case e in #( |
| 7142 | e) lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7143 | |
| 7144 | case $host_os in |
| 7145 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 7146 | # two different shell functions defined in ltmain.sh; |
| 7147 | # decide which one to use based on capabilities of $DLLTOOL |
| 7148 | case `$DLLTOOL --help 2>&1` in |
| 7149 | *--identify-strict*) |
| 7150 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7151 | ;; |
| 7152 | *) |
| 7153 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7154 | ;; |
| 7155 | esac |
| 7156 | ;; |
| 7157 | *) |
| 7158 | # fallback: assume linklib IS sharedlib |
| 7159 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 7160 | ;; |
| 7161 | esac |
| 7162 | ;; |
| 7163 | esac |
| 7164 | fi |
| 7165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7166 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7167 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7168 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7169 | |
| 7170 | |
| 7171 | |
| 7172 | |
| 7173 | |
| 7174 | |
| 7175 | |
| 7176 | if test -n "$ac_tool_prefix"; then |
| 7177 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7178 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7180 | printf %s "checking for $ac_word... " >&6; } |
| 7181 | if test ${ac_cv_prog_RANLIB+y} |
| 7182 | then : |
| 7183 | printf %s "(cached) " >&6 |
| 7184 | else case e in #( |
| 7185 | e) if test -n "$RANLIB"; then |
| 7186 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7187 | else |
| 7188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7189 | for as_dir in $PATH |
| 7190 | do |
| 7191 | IFS=$as_save_IFS |
| 7192 | case $as_dir in #((( |
| 7193 | '') as_dir=./ ;; |
| 7194 | */) ;; |
| 7195 | *) as_dir=$as_dir/ ;; |
| 7196 | esac |
| 7197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7198 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7199 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7200 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7201 | break 2 |
| 7202 | fi |
| 7203 | done |
| 7204 | done |
| 7205 | IFS=$as_save_IFS |
| 7206 | |
| 7207 | fi ;; |
| 7208 | esac |
| 7209 | fi |
| 7210 | RANLIB=$ac_cv_prog_RANLIB |
| 7211 | if test -n "$RANLIB"; then |
| 7212 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7213 | printf "%s\n" "$RANLIB" >&6; } |
| 7214 | else |
| 7215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7216 | printf "%s\n" "no" >&6; } |
| 7217 | fi |
| 7218 | |
| 7219 | |
| 7220 | fi |
| 7221 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7222 | ac_ct_RANLIB=$RANLIB |
| 7223 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7224 | set dummy ranlib; ac_word=$2 |
| 7225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7226 | printf %s "checking for $ac_word... " >&6; } |
| 7227 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7228 | then : |
| 7229 | printf %s "(cached) " >&6 |
| 7230 | else case e in #( |
| 7231 | e) if test -n "$ac_ct_RANLIB"; then |
| 7232 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7233 | else |
| 7234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7235 | for as_dir in $PATH |
| 7236 | do |
| 7237 | IFS=$as_save_IFS |
| 7238 | case $as_dir in #((( |
| 7239 | '') as_dir=./ ;; |
| 7240 | */) ;; |
| 7241 | *) as_dir=$as_dir/ ;; |
| 7242 | esac |
| 7243 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7244 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7245 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7246 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7247 | break 2 |
| 7248 | fi |
| 7249 | done |
| 7250 | done |
| 7251 | IFS=$as_save_IFS |
| 7252 | |
| 7253 | fi ;; |
| 7254 | esac |
| 7255 | fi |
| 7256 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7257 | if test -n "$ac_ct_RANLIB"; then |
| 7258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7259 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 7260 | else |
| 7261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7262 | printf "%s\n" "no" >&6; } |
| 7263 | fi |
| 7264 | |
| 7265 | if test "x$ac_ct_RANLIB" = x; then |
| 7266 | RANLIB=":" |
| 7267 | else |
| 7268 | case $cross_compiling:$ac_tool_warned in |
| 7269 | yes:) |
| 7270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7271 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7272 | ac_tool_warned=yes ;; |
| 7273 | esac |
| 7274 | RANLIB=$ac_ct_RANLIB |
| 7275 | fi |
| 7276 | else |
| 7277 | RANLIB="$ac_cv_prog_RANLIB" |
| 7278 | fi |
| 7279 | |
| 7280 | if test -n "$ac_tool_prefix"; then |
| 7281 | for ac_prog in ar |
| 7282 | do |
| 7283 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7284 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7286 | printf %s "checking for $ac_word... " >&6; } |
| 7287 | if test ${ac_cv_prog_AR+y} |
| 7288 | then : |
| 7289 | printf %s "(cached) " >&6 |
| 7290 | else case e in #( |
| 7291 | e) if test -n "$AR"; then |
| 7292 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7293 | else |
| 7294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7295 | for as_dir in $PATH |
| 7296 | do |
| 7297 | IFS=$as_save_IFS |
| 7298 | case $as_dir in #((( |
| 7299 | '') as_dir=./ ;; |
| 7300 | */) ;; |
| 7301 | *) as_dir=$as_dir/ ;; |
| 7302 | esac |
| 7303 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7304 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7305 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7306 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7307 | break 2 |
| 7308 | fi |
| 7309 | done |
| 7310 | done |
| 7311 | IFS=$as_save_IFS |
| 7312 | |
| 7313 | fi ;; |
| 7314 | esac |
| 7315 | fi |
| 7316 | AR=$ac_cv_prog_AR |
| 7317 | if test -n "$AR"; then |
| 7318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7319 | printf "%s\n" "$AR" >&6; } |
| 7320 | else |
| 7321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7322 | printf "%s\n" "no" >&6; } |
| 7323 | fi |
| 7324 | |
| 7325 | |
| 7326 | test -n "$AR" && break |
| 7327 | done |
| 7328 | fi |
| 7329 | if test -z "$AR"; then |
| 7330 | ac_ct_AR=$AR |
| 7331 | for ac_prog in ar |
| 7332 | do |
| 7333 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7334 | set dummy $ac_prog; ac_word=$2 |
| 7335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7336 | printf %s "checking for $ac_word... " >&6; } |
| 7337 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 7338 | then : |
| 7339 | printf %s "(cached) " >&6 |
| 7340 | else case e in #( |
| 7341 | e) if test -n "$ac_ct_AR"; then |
| 7342 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7343 | else |
| 7344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7345 | for as_dir in $PATH |
| 7346 | do |
| 7347 | IFS=$as_save_IFS |
| 7348 | case $as_dir in #((( |
| 7349 | '') as_dir=./ ;; |
| 7350 | */) ;; |
| 7351 | *) as_dir=$as_dir/ ;; |
| 7352 | esac |
| 7353 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7354 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7355 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7356 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7357 | break 2 |
| 7358 | fi |
| 7359 | done |
| 7360 | done |
| 7361 | IFS=$as_save_IFS |
| 7362 | |
| 7363 | fi ;; |
| 7364 | esac |
| 7365 | fi |
| 7366 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7367 | if test -n "$ac_ct_AR"; then |
| 7368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7369 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 7370 | else |
| 7371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7372 | printf "%s\n" "no" >&6; } |
| 7373 | fi |
| 7374 | |
| 7375 | |
| 7376 | test -n "$ac_ct_AR" && break |
| 7377 | done |
| 7378 | |
| 7379 | if test "x$ac_ct_AR" = x; then |
| 7380 | AR="false" |
| 7381 | else |
| 7382 | case $cross_compiling:$ac_tool_warned in |
| 7383 | yes:) |
| 7384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7385 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7386 | ac_tool_warned=yes ;; |
| 7387 | esac |
| 7388 | AR=$ac_ct_AR |
| 7389 | fi |
| 7390 | fi |
| 7391 | |
| 7392 | : ${AR=ar} |
| 7393 | |
| 7394 | |
| 7395 | |
| 7396 | |
| 7397 | |
| 7398 | |
| 7399 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with |
| 7400 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have |
| 7401 | # higher priority because that's what people were doing historically (setting |
| 7402 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS |
| 7403 | # variable obsoleted/removed. |
| 7404 | |
| 7405 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} |
| 7406 | lt_ar_flags=$AR_FLAGS |
| 7407 | |
| 7408 | |
| 7409 | |
| 7410 | |
| 7411 | |
| 7412 | |
| 7413 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override |
| 7414 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die. |
| 7415 | |
| 7416 | |
| 7417 | |
| 7418 | |
| 7419 | |
| 7420 | |
| 7421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7422 | printf %s "checking for archiver @FILE support... " >&6; } |
| 7423 | if test ${lt_cv_ar_at_file+y} |
| 7424 | then : |
| 7425 | printf %s "(cached) " >&6 |
| 7426 | else case e in #( |
| 7427 | e) lt_cv_ar_at_file=no |
| 7428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7429 | /* end confdefs.h. */ |
| 7430 | |
| 7431 | int |
| 7432 | main (void) |
| 7433 | { |
| 7434 | |
| 7435 | ; |
| 7436 | return 0; |
| 7437 | } |
| 7438 | _ACEOF |
| 7439 | if ac_fn_c_try_compile "$LINENO" |
| 7440 | then : |
| 7441 | echo conftest.$ac_objext > conftest.lst |
| 7442 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7443 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7444 | (eval $lt_ar_try) 2>&5 |
| 7445 | ac_status=$? |
| 7446 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7447 | test $ac_status = 0; } |
| 7448 | if test 0 -eq "$ac_status"; then |
| 7449 | # Ensure the archiver fails upon bogus file names. |
| 7450 | rm -f conftest.$ac_objext libconftest.a |
| 7451 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7452 | (eval $lt_ar_try) 2>&5 |
| 7453 | ac_status=$? |
| 7454 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7455 | test $ac_status = 0; } |
| 7456 | if test 0 -ne "$ac_status"; then |
| 7457 | lt_cv_ar_at_file=@ |
| 7458 | fi |
| 7459 | fi |
| 7460 | rm -f conftest.* libconftest.a |
| 7461 | |
| 7462 | fi |
| 7463 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7464 | ;; |
| 7465 | esac |
| 7466 | fi |
| 7467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7468 | printf "%s\n" "$lt_cv_ar_at_file" >&6; } |
| 7469 | |
| 7470 | if test no = "$lt_cv_ar_at_file"; then |
| 7471 | archiver_list_spec= |
| 7472 | else |
| 7473 | archiver_list_spec=$lt_cv_ar_at_file |
| 7474 | fi |
| 7475 | |
| 7476 | |
| 7477 | |
| 7478 | |
| 7479 | |
| 7480 | |
| 7481 | |
| 7482 | if test -n "$ac_tool_prefix"; then |
| 7483 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7484 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7486 | printf %s "checking for $ac_word... " >&6; } |
| 7487 | if test ${ac_cv_prog_STRIP+y} |
| 7488 | then : |
| 7489 | printf %s "(cached) " >&6 |
| 7490 | else case e in #( |
| 7491 | e) if test -n "$STRIP"; then |
| 7492 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7493 | else |
| 7494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7495 | for as_dir in $PATH |
| 7496 | do |
| 7497 | IFS=$as_save_IFS |
| 7498 | case $as_dir in #((( |
| 7499 | '') as_dir=./ ;; |
| 7500 | */) ;; |
| 7501 | *) as_dir=$as_dir/ ;; |
| 7502 | esac |
| 7503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7504 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7505 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7506 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7507 | break 2 |
| 7508 | fi |
| 7509 | done |
| 7510 | done |
| 7511 | IFS=$as_save_IFS |
| 7512 | |
| 7513 | fi ;; |
| 7514 | esac |
| 7515 | fi |
| 7516 | STRIP=$ac_cv_prog_STRIP |
| 7517 | if test -n "$STRIP"; then |
| 7518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7519 | printf "%s\n" "$STRIP" >&6; } |
| 7520 | else |
| 7521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7522 | printf "%s\n" "no" >&6; } |
| 7523 | fi |
| 7524 | |
| 7525 | |
| 7526 | fi |
| 7527 | if test -z "$ac_cv_prog_STRIP"; then |
| 7528 | ac_ct_STRIP=$STRIP |
| 7529 | # Extract the first word of "strip", so it can be a program name with args. |
| 7530 | set dummy strip; ac_word=$2 |
| 7531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7532 | printf %s "checking for $ac_word... " >&6; } |
| 7533 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 7534 | then : |
| 7535 | printf %s "(cached) " >&6 |
| 7536 | else case e in #( |
| 7537 | e) if test -n "$ac_ct_STRIP"; then |
| 7538 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7539 | else |
| 7540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7541 | for as_dir in $PATH |
| 7542 | do |
| 7543 | IFS=$as_save_IFS |
| 7544 | case $as_dir in #((( |
| 7545 | '') as_dir=./ ;; |
| 7546 | */) ;; |
| 7547 | *) as_dir=$as_dir/ ;; |
| 7548 | esac |
| 7549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7550 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7551 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7553 | break 2 |
| 7554 | fi |
| 7555 | done |
| 7556 | done |
| 7557 | IFS=$as_save_IFS |
| 7558 | |
| 7559 | fi ;; |
| 7560 | esac |
| 7561 | fi |
| 7562 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7563 | if test -n "$ac_ct_STRIP"; then |
| 7564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7565 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 7566 | else |
| 7567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7568 | printf "%s\n" "no" >&6; } |
| 7569 | fi |
| 7570 | |
| 7571 | if test "x$ac_ct_STRIP" = x; then |
| 7572 | STRIP=":" |
| 7573 | else |
| 7574 | case $cross_compiling:$ac_tool_warned in |
| 7575 | yes:) |
| 7576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7577 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7578 | ac_tool_warned=yes ;; |
| 7579 | esac |
| 7580 | STRIP=$ac_ct_STRIP |
| 7581 | fi |
| 7582 | else |
| 7583 | STRIP="$ac_cv_prog_STRIP" |
| 7584 | fi |
| 7585 | |
| 7586 | test -z "$STRIP" && STRIP=: |
| 7587 | |
| 7588 | |
| 7589 | |
| 7590 | |
| 7591 | |
| 7592 | |
| 7593 | |
| 7594 | test -z "$RANLIB" && RANLIB=: |
| 7595 | |
| 7596 | |
| 7597 | |
| 7598 | |
| 7599 | |
| 7600 | |
| 7601 | # Determine commands to create old-style static archives. |
| 7602 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 7603 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7604 | old_postuninstall_cmds= |
| 7605 | |
| 7606 | if test -n "$RANLIB"; then |
| 7607 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 7608 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 7609 | fi |
| 7610 | |
| 7611 | case $host_os in |
| 7612 | darwin*) |
| 7613 | lock_old_archive_extraction=yes ;; |
| 7614 | *) |
| 7615 | lock_old_archive_extraction=no ;; |
| 7616 | esac |
| 7617 | |
| 7618 | |
| 7619 | |
| 7620 | |
| 7621 | |
| 7622 | |
| 7623 | |
| 7624 | |
| 7625 | |
| 7626 | |
| 7627 | |
| 7628 | |
| 7629 | |
| 7630 | |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
| 7637 | |
| 7638 | |
| 7639 | |
| 7640 | |
| 7641 | |
| 7642 | |
| 7643 | |
| 7644 | |
| 7645 | |
| 7646 | |
| 7647 | |
| 7648 | |
| 7649 | |
| 7650 | |
| 7651 | |
| 7652 | |
| 7653 | |
| 7654 | |
| 7655 | |
| 7656 | # If no C compiler was specified, use CC. |
| 7657 | LTCC=${LTCC-"$CC"} |
| 7658 | |
| 7659 | # If no C compiler flags were specified, use CFLAGS. |
| 7660 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7661 | |
| 7662 | # Allow CC to be a program name with arguments. |
| 7663 | compiler=$CC |
| 7664 | |
| 7665 | |
| 7666 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 7668 | printf %s "checking command to parse $NM output from $compiler object... " >&6; } |
| 7669 | if test ${lt_cv_sys_global_symbol_pipe+y} |
| 7670 | then : |
| 7671 | printf %s "(cached) " >&6 |
| 7672 | else case e in #( |
| 7673 | e) |
| 7674 | # These are sane defaults that work on at least a few old systems. |
| 7675 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7676 | |
| 7677 | # Character class describing NM global symbol codes. |
| 7678 | symcode='[BCDEGRST]' |
| 7679 | |
| 7680 | # Regexp to match symbols that can be accessed directly from C. |
| 7681 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7682 | |
| 7683 | # Define system-specific variables. |
| 7684 | case $host_os in |
| 7685 | aix*) |
| 7686 | symcode='[BCDT]' |
| 7687 | ;; |
| 7688 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 7689 | symcode='[ABCDGISTW]' |
| 7690 | ;; |
| 7691 | hpux*) |
| 7692 | if test ia64 = "$host_cpu"; then |
| 7693 | symcode='[ABCDEGRST]' |
| 7694 | fi |
| 7695 | ;; |
| 7696 | irix* | nonstopux*) |
| 7697 | symcode='[BCDEGRST]' |
| 7698 | ;; |
| 7699 | osf*) |
| 7700 | symcode='[BCDEGQRST]' |
| 7701 | ;; |
| 7702 | solaris*) |
| 7703 | symcode='[BCDRT]' |
| 7704 | ;; |
| 7705 | sco3.2v5*) |
| 7706 | symcode='[DT]' |
| 7707 | ;; |
| 7708 | sysv4.2uw2*) |
| 7709 | symcode='[DT]' |
| 7710 | ;; |
| 7711 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 7712 | symcode='[ABDT]' |
| 7713 | ;; |
| 7714 | sysv4) |
| 7715 | symcode='[DFNSTU]' |
| 7716 | ;; |
| 7717 | esac |
| 7718 | |
| 7719 | # If we're using GNU nm, then use its standard symbol codes. |
| 7720 | case `$NM -V 2>&1` in |
| 7721 | *GNU* | *'with BFD'*) |
| 7722 | symcode='[ABCDGIRSTW]' ;; |
| 7723 | esac |
| 7724 | |
| 7725 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7726 | # Gets list of data symbols to import. |
| 7727 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" |
| 7728 | # Adjust the below global symbol transforms to fixup imported variables. |
| 7729 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 7730 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 7731 | lt_c_name_lib_hook="\ |
| 7732 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 7733 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 7734 | else |
| 7735 | # Disable hooks by default. |
| 7736 | lt_cv_sys_global_symbol_to_import= |
| 7737 | lt_cdecl_hook= |
| 7738 | lt_c_name_hook= |
| 7739 | lt_c_name_lib_hook= |
| 7740 | fi |
| 7741 | |
| 7742 | # Transform an extracted symbol line into a proper C declaration. |
| 7743 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 7744 | # so use this general approach. |
| 7745 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ |
| 7746 | $lt_cdecl_hook\ |
| 7747 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 7748 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7749 | |
| 7750 | # Transform an extracted symbol line into symbol name and symbol address |
| 7751 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ |
| 7752 | $lt_c_name_hook\ |
| 7753 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 7754 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 7755 | |
| 7756 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 7757 | # symbol address. |
| 7758 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ |
| 7759 | $lt_c_name_lib_hook\ |
| 7760 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 7761 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 7762 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 7763 | |
| 7764 | # Handle CRLF in mingw tool chain |
| 7765 | opt_cr= |
| 7766 | case $build_os in |
| 7767 | mingw* | windows*) |
| 7768 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7769 | ;; |
| 7770 | esac |
| 7771 | |
| 7772 | # Try without a prefix underscore, then with it. |
| 7773 | for ac_symprfx in "" "_"; do |
| 7774 | |
| 7775 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 7776 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 7777 | |
| 7778 | # Write the raw and C identifiers. |
| 7779 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7780 | # Fake it for dumpbin and say T for any non-static function, |
| 7781 | # D for any global variable and I for any imported variable. |
| 7782 | # Also find C++ and __fastcall symbols from MSVC++ or ICC, |
| 7783 | # which start with @ or ?. |
| 7784 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 7785 | " {last_section=section; section=\$ 3};"\ |
| 7786 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 7787 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 7788 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 7789 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 7790 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 7791 | " \$ 0!~/External *\|/{next};"\ |
| 7792 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 7793 | " {if(hide[section]) next};"\ |
| 7794 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 7795 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 7796 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 7797 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 7798 | " ' prfx=^$ac_symprfx" |
| 7799 | else |
| 7800 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 7801 | fi |
| 7802 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" |
| 7803 | |
| 7804 | # Check to see that the pipe works correctly. |
| 7805 | pipe_works=no |
| 7806 | |
| 7807 | rm -f conftest* |
| 7808 | cat > conftest.$ac_ext <<_LT_EOF |
| 7809 | #ifdef __cplusplus |
| 7810 | extern "C" { |
| 7811 | #endif |
| 7812 | char nm_test_var; |
| 7813 | void nm_test_func(void); |
| 7814 | void nm_test_func(void){} |
| 7815 | #ifdef __cplusplus |
| 7816 | } |
| 7817 | #endif |
| 7818 | int main(void){nm_test_var='a';nm_test_func();return(0);} |
| 7819 | _LT_EOF |
| 7820 | |
| 7821 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7822 | (eval $ac_compile) 2>&5 |
| 7823 | ac_status=$? |
| 7824 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7825 | test $ac_status = 0; }; then |
| 7826 | # Now try to grab the symbols. |
| 7827 | nlist=conftest.nm |
| 7828 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 7829 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 7830 | # Try sorting and uniquifying the output. |
| 7831 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7832 | mv -f "$nlist"T "$nlist" |
| 7833 | else |
| 7834 | rm -f "$nlist"T |
| 7835 | fi |
| 7836 | |
| 7837 | # Make sure that we snagged all the symbols we need. |
| 7838 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 7839 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 7840 | cat <<_LT_EOF > conftest.$ac_ext |
| 7841 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 7842 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 7843 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 7844 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 7845 | # define LT_DLSYM_CONST |
| 7846 | #elif defined __osf__ |
| 7847 | /* This system does not cope well with relocations in const data. */ |
| 7848 | # define LT_DLSYM_CONST |
| 7849 | #else |
| 7850 | # define LT_DLSYM_CONST const |
| 7851 | #endif |
| 7852 | |
| 7853 | #ifdef __cplusplus |
| 7854 | extern "C" { |
| 7855 | #endif |
| 7856 | |
| 7857 | _LT_EOF |
| 7858 | # Now generate the symbol file. |
| 7859 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 7860 | |
| 7861 | cat <<_LT_EOF >> conftest.$ac_ext |
| 7862 | |
| 7863 | /* The mapping between symbol names and symbols. */ |
| 7864 | LT_DLSYM_CONST struct { |
| 7865 | const char *name; |
| 7866 | void *address; |
| 7867 | } |
| 7868 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 7869 | { |
| 7870 | { "@PROGRAM@", (void *) 0 }, |
| 7871 | _LT_EOF |
| 7872 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 7873 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 7874 | {0, (void *) 0} |
| 7875 | }; |
| 7876 | |
| 7877 | /* This works around a problem in FreeBSD linker */ |
| 7878 | #ifdef FREEBSD_WORKAROUND |
| 7879 | static const void *lt_preloaded_setup() { |
| 7880 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 7881 | } |
| 7882 | #endif |
| 7883 | |
| 7884 | #ifdef __cplusplus |
| 7885 | } |
| 7886 | #endif |
| 7887 | _LT_EOF |
| 7888 | # Now try linking the two files. |
| 7889 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7890 | lt_globsym_save_LIBS=$LIBS |
| 7891 | lt_globsym_save_CFLAGS=$CFLAGS |
| 7892 | LIBS=conftstm.$ac_objext |
| 7893 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7894 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7895 | (eval $ac_link) 2>&5 |
| 7896 | ac_status=$? |
| 7897 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7898 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 7899 | pipe_works=yes |
| 7900 | fi |
| 7901 | LIBS=$lt_globsym_save_LIBS |
| 7902 | CFLAGS=$lt_globsym_save_CFLAGS |
| 7903 | else |
| 7904 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7905 | fi |
| 7906 | else |
| 7907 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7908 | fi |
| 7909 | else |
| 7910 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7911 | fi |
| 7912 | else |
| 7913 | echo "$progname: failed program was:" >&5 |
| 7914 | cat conftest.$ac_ext >&5 |
| 7915 | fi |
| 7916 | rm -rf conftest* conftst* |
| 7917 | |
| 7918 | # Do not use the global_symbol_pipe unless it works. |
| 7919 | if test yes = "$pipe_works"; then |
| 7920 | break |
| 7921 | else |
| 7922 | lt_cv_sys_global_symbol_pipe= |
| 7923 | fi |
| 7924 | done |
| 7925 | ;; |
| 7926 | esac |
| 7927 | fi |
| 7928 | |
| 7929 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7930 | lt_cv_sys_global_symbol_to_cdecl= |
| 7931 | fi |
| 7932 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 7934 | printf "%s\n" "failed" >&6; } |
| 7935 | else |
| 7936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 7937 | printf "%s\n" "ok" >&6; } |
| 7938 | fi |
| 7939 | |
| 7940 | # Response file support. |
| 7941 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7942 | nm_file_list_spec='@' |
| 7943 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 7944 | nm_file_list_spec='@' |
| 7945 | fi |
| 7946 | |
| 7947 | |
| 7948 | |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | |
| 7954 | |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
| 7966 | |
| 7967 | |
| 7968 | |
| 7969 | |
| 7970 | |
| 7971 | |
| 7972 | |
| 7973 | |
| 7974 | |
| 7975 | |
| 7976 | |
| 7977 | |
| 7978 | |
| 7979 | |
| 7980 | |
| 7981 | |
| 7982 | |
| 7983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 7984 | printf %s "checking for sysroot... " >&6; } |
| 7985 | |
| 7986 | # Check whether --with-sysroot was given. |
| 7987 | if test ${with_sysroot+y} |
| 7988 | then : |
| 7989 | withval=$with_sysroot; |
| 7990 | else case e in #( |
| 7991 | e) with_sysroot=no ;; |
| 7992 | esac |
| 7993 | fi |
| 7994 | |
| 7995 | |
| 7996 | lt_sysroot= |
| 7997 | case $with_sysroot in #( |
| 7998 | yes) |
| 7999 | if test yes = "$GCC"; then |
| 8000 | # Trim trailing / since we'll always append absolute paths and we want |
| 8001 | # to avoid //, if only for less confusing output for the user. |
| 8002 | lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` |
| 8003 | fi |
| 8004 | ;; #( |
| 8005 | /*) |
| 8006 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` |
| 8007 | ;; #( |
| 8008 | no|'') |
| 8009 | ;; #( |
| 8010 | *) |
| 8011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 8012 | printf "%s\n" "$with_sysroot" >&6; } |
| 8013 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8014 | ;; |
| 8015 | esac |
| 8016 | |
| 8017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8018 | printf "%s\n" "${lt_sysroot:-no}" >&6; } |
| 8019 | |
| 8020 | |
| 8021 | |
| 8022 | |
| 8023 | |
| 8024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 8025 | printf %s "checking for a working dd... " >&6; } |
| 8026 | if test ${ac_cv_path_lt_DD+y} |
| 8027 | then : |
| 8028 | printf %s "(cached) " >&6 |
| 8029 | else case e in #( |
| 8030 | e) printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8031 | cat conftest.i conftest.i >conftest2.i |
| 8032 | : ${lt_DD:=$DD} |
| 8033 | if test -z "$lt_DD"; then |
| 8034 | ac_path_lt_DD_found=false |
| 8035 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8037 | for as_dir in $PATH |
| 8038 | do |
| 8039 | IFS=$as_save_IFS |
| 8040 | case $as_dir in #((( |
| 8041 | '') as_dir=./ ;; |
| 8042 | */) ;; |
| 8043 | *) as_dir=$as_dir/ ;; |
| 8044 | esac |
| 8045 | for ac_prog in dd |
| 8046 | do |
| 8047 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8048 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" |
| 8049 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 8050 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8051 | cmp -s conftest.i conftest.out \ |
| 8052 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 8053 | fi |
| 8054 | $ac_path_lt_DD_found && break 3 |
| 8055 | done |
| 8056 | done |
| 8057 | done |
| 8058 | IFS=$as_save_IFS |
| 8059 | if test -z "$ac_cv_path_lt_DD"; then |
| 8060 | : |
| 8061 | fi |
| 8062 | else |
| 8063 | ac_cv_path_lt_DD=$lt_DD |
| 8064 | fi |
| 8065 | |
| 8066 | rm -f conftest.i conftest2.i conftest.out ;; |
| 8067 | esac |
| 8068 | fi |
| 8069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 8070 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; } |
| 8071 | |
| 8072 | |
| 8073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 8074 | printf %s "checking how to truncate binary pipes... " >&6; } |
| 8075 | if test ${lt_cv_truncate_bin+y} |
| 8076 | then : |
| 8077 | printf %s "(cached) " >&6 |
| 8078 | else case e in #( |
| 8079 | e) printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8080 | cat conftest.i conftest.i >conftest2.i |
| 8081 | lt_cv_truncate_bin= |
| 8082 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8083 | cmp -s conftest.i conftest.out \ |
| 8084 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 8085 | fi |
| 8086 | rm -f conftest.i conftest2.i conftest.out |
| 8087 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; |
| 8088 | esac |
| 8089 | fi |
| 8090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 8091 | printf "%s\n" "$lt_cv_truncate_bin" >&6; } |
| 8092 | |
| 8093 | |
| 8094 | |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 8100 | func_cc_basename () |
| 8101 | { |
| 8102 | for cc_temp in $*""; do |
| 8103 | case $cc_temp in |
| 8104 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8105 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8106 | \-*) ;; |
| 8107 | *) break;; |
| 8108 | esac |
| 8109 | done |
| 8110 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8111 | } |
| 8112 | |
| 8113 | # Check whether --enable-libtool-lock was given. |
| 8114 | if test ${enable_libtool_lock+y} |
| 8115 | then : |
| 8116 | enableval=$enable_libtool_lock; |
| 8117 | fi |
| 8118 | |
| 8119 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 8120 | |
| 8121 | # Some flags need to be propagated to the compiler or linker for good |
| 8122 | # libtool support. |
| 8123 | case $host in |
| 8124 | ia64-*-hpux*) |
| 8125 | # Find out what ABI is being produced by ac_compile, and set mode |
| 8126 | # options accordingly. |
| 8127 | echo 'int i;' > conftest.$ac_ext |
| 8128 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8129 | (eval $ac_compile) 2>&5 |
| 8130 | ac_status=$? |
| 8131 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8132 | test $ac_status = 0; }; then |
| 8133 | case `$FILECMD conftest.$ac_objext` in |
| 8134 | *ELF-32*) |
| 8135 | HPUX_IA64_MODE=32 |
| 8136 | ;; |
| 8137 | *ELF-64*) |
| 8138 | HPUX_IA64_MODE=64 |
| 8139 | ;; |
| 8140 | esac |
| 8141 | fi |
| 8142 | rm -rf conftest* |
| 8143 | ;; |
| 8144 | *-*-irix6*) |
| 8145 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8146 | # options accordingly. |
| 8147 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8148 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8149 | (eval $ac_compile) 2>&5 |
| 8150 | ac_status=$? |
| 8151 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8152 | test $ac_status = 0; }; then |
| 8153 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 8154 | case `$FILECMD conftest.$ac_objext` in |
| 8155 | *32-bit*) |
| 8156 | LD="${LD-ld} -melf32bsmip" |
| 8157 | ;; |
| 8158 | *N32*) |
| 8159 | LD="${LD-ld} -melf32bmipn32" |
| 8160 | ;; |
| 8161 | *64-bit*) |
| 8162 | LD="${LD-ld} -melf64bmip" |
| 8163 | ;; |
| 8164 | esac |
| 8165 | else |
| 8166 | case `$FILECMD conftest.$ac_objext` in |
| 8167 | *32-bit*) |
| 8168 | LD="${LD-ld} -32" |
| 8169 | ;; |
| 8170 | *N32*) |
| 8171 | LD="${LD-ld} -n32" |
| 8172 | ;; |
| 8173 | *64-bit*) |
| 8174 | LD="${LD-ld} -64" |
| 8175 | ;; |
| 8176 | esac |
| 8177 | fi |
| 8178 | fi |
| 8179 | rm -rf conftest* |
| 8180 | ;; |
| 8181 | |
| 8182 | mips64*-*linux*) |
| 8183 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8184 | # options accordingly. |
| 8185 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8186 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8187 | (eval $ac_compile) 2>&5 |
| 8188 | ac_status=$? |
| 8189 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8190 | test $ac_status = 0; }; then |
| 8191 | emul=elf |
| 8192 | case `$FILECMD conftest.$ac_objext` in |
| 8193 | *32-bit*) |
| 8194 | emul="${emul}32" |
| 8195 | ;; |
| 8196 | *64-bit*) |
| 8197 | emul="${emul}64" |
| 8198 | ;; |
| 8199 | esac |
| 8200 | case `$FILECMD conftest.$ac_objext` in |
| 8201 | *MSB*) |
| 8202 | emul="${emul}btsmip" |
| 8203 | ;; |
| 8204 | *LSB*) |
| 8205 | emul="${emul}ltsmip" |
| 8206 | ;; |
| 8207 | esac |
| 8208 | case `$FILECMD conftest.$ac_objext` in |
| 8209 | *N32*) |
| 8210 | emul="${emul}n32" |
| 8211 | ;; |
| 8212 | esac |
| 8213 | LD="${LD-ld} -m $emul" |
| 8214 | fi |
| 8215 | rm -rf conftest* |
| 8216 | ;; |
| 8217 | |
| 8218 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 8219 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) |
| 8220 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8221 | # options accordingly. Note that the listed cases only cover the |
| 8222 | # situations where additional linker options are needed (such as when |
| 8223 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 8224 | # vice versa); the common cases where no linker options are needed do |
| 8225 | # not appear in the list. |
| 8226 | echo 'int i;' > conftest.$ac_ext |
| 8227 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8228 | (eval $ac_compile) 2>&5 |
| 8229 | ac_status=$? |
| 8230 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8231 | test $ac_status = 0; }; then |
| 8232 | case `$FILECMD conftest.o` in |
| 8233 | *32-bit*) |
| 8234 | case $host in |
| 8235 | x86_64-*kfreebsd*-gnu) |
| 8236 | LD="${LD-ld} -m elf_i386_fbsd" |
| 8237 | ;; |
| 8238 | x86_64-*linux*|x86_64-gnu*) |
| 8239 | case `$FILECMD conftest.o` in |
| 8240 | *x86-64*) |
| 8241 | LD="${LD-ld} -m elf32_x86_64" |
| 8242 | ;; |
| 8243 | *) |
| 8244 | LD="${LD-ld} -m elf_i386" |
| 8245 | ;; |
| 8246 | esac |
| 8247 | ;; |
| 8248 | powerpc64le-*linux*) |
| 8249 | LD="${LD-ld} -m elf32lppclinux" |
| 8250 | ;; |
| 8251 | powerpc64-*linux*) |
| 8252 | LD="${LD-ld} -m elf32ppclinux" |
| 8253 | ;; |
| 8254 | s390x-*linux*) |
| 8255 | LD="${LD-ld} -m elf_s390" |
| 8256 | ;; |
| 8257 | sparc64-*linux*) |
| 8258 | LD="${LD-ld} -m elf32_sparc" |
| 8259 | ;; |
| 8260 | esac |
| 8261 | ;; |
| 8262 | *64-bit*) |
| 8263 | case $host in |
| 8264 | x86_64-*kfreebsd*-gnu) |
| 8265 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8266 | ;; |
| 8267 | x86_64-*linux*|x86_64-gnu*) |
| 8268 | LD="${LD-ld} -m elf_x86_64" |
| 8269 | ;; |
| 8270 | powerpcle-*linux*) |
| 8271 | LD="${LD-ld} -m elf64lppc" |
| 8272 | ;; |
| 8273 | powerpc-*linux*) |
| 8274 | LD="${LD-ld} -m elf64ppc" |
| 8275 | ;; |
| 8276 | s390*-*linux*|s390*-*tpf*) |
| 8277 | LD="${LD-ld} -m elf64_s390" |
| 8278 | ;; |
| 8279 | sparc*-*linux*) |
| 8280 | LD="${LD-ld} -m elf64_sparc" |
| 8281 | ;; |
| 8282 | esac |
| 8283 | ;; |
| 8284 | esac |
| 8285 | fi |
| 8286 | rm -rf conftest* |
| 8287 | ;; |
| 8288 | |
| 8289 | *-*-sco3.2v5*) |
| 8290 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8291 | SAVE_CFLAGS=$CFLAGS |
| 8292 | CFLAGS="$CFLAGS -belf" |
| 8293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8294 | printf %s "checking whether the C compiler needs -belf... " >&6; } |
| 8295 | if test ${lt_cv_cc_needs_belf+y} |
| 8296 | then : |
| 8297 | printf %s "(cached) " >&6 |
| 8298 | else case e in #( |
| 8299 | e) ac_ext=c |
| 8300 | ac_cpp='$CPP $CPPFLAGS' |
| 8301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8304 | |
| 8305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8306 | /* end confdefs.h. */ |
| 8307 | |
| 8308 | int |
| 8309 | main (void) |
| 8310 | { |
| 8311 | |
| 8312 | ; |
| 8313 | return 0; |
| 8314 | } |
| 8315 | _ACEOF |
| 8316 | if ac_fn_c_try_link "$LINENO" |
| 8317 | then : |
| 8318 | lt_cv_cc_needs_belf=yes |
| 8319 | else case e in #( |
| 8320 | e) lt_cv_cc_needs_belf=no ;; |
| 8321 | esac |
| 8322 | fi |
| 8323 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8324 | conftest$ac_exeext conftest.$ac_ext |
| 8325 | ac_ext=c |
| 8326 | ac_cpp='$CPP $CPPFLAGS' |
| 8327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8330 | ;; |
| 8331 | esac |
| 8332 | fi |
| 8333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8334 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } |
| 8335 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 8336 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8337 | CFLAGS=$SAVE_CFLAGS |
| 8338 | fi |
| 8339 | ;; |
| 8340 | *-*solaris*) |
| 8341 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8342 | # options accordingly. |
| 8343 | echo 'int i;' > conftest.$ac_ext |
| 8344 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8345 | (eval $ac_compile) 2>&5 |
| 8346 | ac_status=$? |
| 8347 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8348 | test $ac_status = 0; }; then |
| 8349 | case `$FILECMD conftest.o` in |
| 8350 | *64-bit*) |
| 8351 | case $lt_cv_prog_gnu_ld in |
| 8352 | yes*) |
| 8353 | case $host in |
| 8354 | i?86-*-solaris*|x86_64-*-solaris*) |
| 8355 | LD="${LD-ld} -m elf_x86_64" |
| 8356 | ;; |
| 8357 | sparc*-*-solaris*) |
| 8358 | LD="${LD-ld} -m elf64_sparc" |
| 8359 | ;; |
| 8360 | esac |
| 8361 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8362 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8363 | LD=${LD-ld}_sol2 |
| 8364 | fi |
| 8365 | ;; |
| 8366 | *) |
| 8367 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8368 | LD="${LD-ld} -64" |
| 8369 | fi |
| 8370 | ;; |
| 8371 | esac |
| 8372 | ;; |
| 8373 | esac |
| 8374 | fi |
| 8375 | rm -rf conftest* |
| 8376 | ;; |
| 8377 | esac |
| 8378 | |
| 8379 | need_locks=$enable_libtool_lock |
| 8380 | |
| 8381 | if test -n "$ac_tool_prefix"; then |
| 8382 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8383 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8385 | printf %s "checking for $ac_word... " >&6; } |
| 8386 | if test ${ac_cv_prog_MANIFEST_TOOL+y} |
| 8387 | then : |
| 8388 | printf %s "(cached) " >&6 |
| 8389 | else case e in #( |
| 8390 | e) if test -n "$MANIFEST_TOOL"; then |
| 8391 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8392 | else |
| 8393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8394 | for as_dir in $PATH |
| 8395 | do |
| 8396 | IFS=$as_save_IFS |
| 8397 | case $as_dir in #((( |
| 8398 | '') as_dir=./ ;; |
| 8399 | */) ;; |
| 8400 | *) as_dir=$as_dir/ ;; |
| 8401 | esac |
| 8402 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8403 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8404 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8405 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8406 | break 2 |
| 8407 | fi |
| 8408 | done |
| 8409 | done |
| 8410 | IFS=$as_save_IFS |
| 8411 | |
| 8412 | fi ;; |
| 8413 | esac |
| 8414 | fi |
| 8415 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8416 | if test -n "$MANIFEST_TOOL"; then |
| 8417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8418 | printf "%s\n" "$MANIFEST_TOOL" >&6; } |
| 8419 | else |
| 8420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8421 | printf "%s\n" "no" >&6; } |
| 8422 | fi |
| 8423 | |
| 8424 | |
| 8425 | fi |
| 8426 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8427 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8428 | # Extract the first word of "mt", so it can be a program name with args. |
| 8429 | set dummy mt; ac_word=$2 |
| 8430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8431 | printf %s "checking for $ac_word... " >&6; } |
| 8432 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} |
| 8433 | then : |
| 8434 | printf %s "(cached) " >&6 |
| 8435 | else case e in #( |
| 8436 | e) if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8437 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8438 | else |
| 8439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8440 | for as_dir in $PATH |
| 8441 | do |
| 8442 | IFS=$as_save_IFS |
| 8443 | case $as_dir in #((( |
| 8444 | '') as_dir=./ ;; |
| 8445 | */) ;; |
| 8446 | *) as_dir=$as_dir/ ;; |
| 8447 | esac |
| 8448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8449 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8450 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8451 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8452 | break 2 |
| 8453 | fi |
| 8454 | done |
| 8455 | done |
| 8456 | IFS=$as_save_IFS |
| 8457 | |
| 8458 | fi ;; |
| 8459 | esac |
| 8460 | fi |
| 8461 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8462 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8464 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8465 | else |
| 8466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8467 | printf "%s\n" "no" >&6; } |
| 8468 | fi |
| 8469 | |
| 8470 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8471 | MANIFEST_TOOL=":" |
| 8472 | else |
| 8473 | case $cross_compiling:$ac_tool_warned in |
| 8474 | yes:) |
| 8475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8476 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8477 | ac_tool_warned=yes ;; |
| 8478 | esac |
| 8479 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8480 | fi |
| 8481 | else |
| 8482 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8483 | fi |
| 8484 | |
| 8485 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8487 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8488 | if test ${lt_cv_path_manifest_tool+y} |
| 8489 | then : |
| 8490 | printf %s "(cached) " >&6 |
| 8491 | else case e in #( |
| 8492 | e) lt_cv_path_manifest_tool=no |
| 8493 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8494 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8495 | cat conftest.err >&5 |
| 8496 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8497 | lt_cv_path_manifest_tool=yes |
| 8498 | fi |
| 8499 | rm -f conftest* ;; |
| 8500 | esac |
| 8501 | fi |
| 8502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 |
| 8503 | printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } |
| 8504 | if test yes != "$lt_cv_path_manifest_tool"; then |
| 8505 | MANIFEST_TOOL=: |
| 8506 | fi |
| 8507 | |
| 8508 | |
| 8509 | |
| 8510 | |
| 8511 | |
| 8512 | |
| 8513 | case $host_os in |
| 8514 | rhapsody* | darwin*) |
| 8515 | if test -n "$ac_tool_prefix"; then |
| 8516 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8517 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 8518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8519 | printf %s "checking for $ac_word... " >&6; } |
| 8520 | if test ${ac_cv_prog_DSYMUTIL+y} |
| 8521 | then : |
| 8522 | printf %s "(cached) " >&6 |
| 8523 | else case e in #( |
| 8524 | e) if test -n "$DSYMUTIL"; then |
| 8525 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 8526 | else |
| 8527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8528 | for as_dir in $PATH |
| 8529 | do |
| 8530 | IFS=$as_save_IFS |
| 8531 | case $as_dir in #((( |
| 8532 | '') as_dir=./ ;; |
| 8533 | */) ;; |
| 8534 | *) as_dir=$as_dir/ ;; |
| 8535 | esac |
| 8536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8537 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8538 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 8539 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8540 | break 2 |
| 8541 | fi |
| 8542 | done |
| 8543 | done |
| 8544 | IFS=$as_save_IFS |
| 8545 | |
| 8546 | fi ;; |
| 8547 | esac |
| 8548 | fi |
| 8549 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8550 | if test -n "$DSYMUTIL"; then |
| 8551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8552 | printf "%s\n" "$DSYMUTIL" >&6; } |
| 8553 | else |
| 8554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8555 | printf "%s\n" "no" >&6; } |
| 8556 | fi |
| 8557 | |
| 8558 | |
| 8559 | fi |
| 8560 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 8561 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 8562 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 8563 | set dummy dsymutil; ac_word=$2 |
| 8564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8565 | printf %s "checking for $ac_word... " >&6; } |
| 8566 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} |
| 8567 | then : |
| 8568 | printf %s "(cached) " >&6 |
| 8569 | else case e in #( |
| 8570 | e) if test -n "$ac_ct_DSYMUTIL"; then |
| 8571 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 8572 | else |
| 8573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8574 | for as_dir in $PATH |
| 8575 | do |
| 8576 | IFS=$as_save_IFS |
| 8577 | case $as_dir in #((( |
| 8578 | '') as_dir=./ ;; |
| 8579 | */) ;; |
| 8580 | *) as_dir=$as_dir/ ;; |
| 8581 | esac |
| 8582 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8583 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8584 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 8585 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8586 | break 2 |
| 8587 | fi |
| 8588 | done |
| 8589 | done |
| 8590 | IFS=$as_save_IFS |
| 8591 | |
| 8592 | fi ;; |
| 8593 | esac |
| 8594 | fi |
| 8595 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 8596 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 8598 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } |
| 8599 | else |
| 8600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8601 | printf "%s\n" "no" >&6; } |
| 8602 | fi |
| 8603 | |
| 8604 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 8605 | DSYMUTIL=":" |
| 8606 | else |
| 8607 | case $cross_compiling:$ac_tool_warned in |
| 8608 | yes:) |
| 8609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8610 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8611 | ac_tool_warned=yes ;; |
| 8612 | esac |
| 8613 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 8614 | fi |
| 8615 | else |
| 8616 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 8617 | fi |
| 8618 | |
| 8619 | if test -n "$ac_tool_prefix"; then |
| 8620 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 8621 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 8622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8623 | printf %s "checking for $ac_word... " >&6; } |
| 8624 | if test ${ac_cv_prog_NMEDIT+y} |
| 8625 | then : |
| 8626 | printf %s "(cached) " >&6 |
| 8627 | else case e in #( |
| 8628 | e) if test -n "$NMEDIT"; then |
| 8629 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 8630 | else |
| 8631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8632 | for as_dir in $PATH |
| 8633 | do |
| 8634 | IFS=$as_save_IFS |
| 8635 | case $as_dir in #((( |
| 8636 | '') as_dir=./ ;; |
| 8637 | */) ;; |
| 8638 | *) as_dir=$as_dir/ ;; |
| 8639 | esac |
| 8640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8641 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8642 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 8643 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8644 | break 2 |
| 8645 | fi |
| 8646 | done |
| 8647 | done |
| 8648 | IFS=$as_save_IFS |
| 8649 | |
| 8650 | fi ;; |
| 8651 | esac |
| 8652 | fi |
| 8653 | NMEDIT=$ac_cv_prog_NMEDIT |
| 8654 | if test -n "$NMEDIT"; then |
| 8655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 8656 | printf "%s\n" "$NMEDIT" >&6; } |
| 8657 | else |
| 8658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8659 | printf "%s\n" "no" >&6; } |
| 8660 | fi |
| 8661 | |
| 8662 | |
| 8663 | fi |
| 8664 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 8665 | ac_ct_NMEDIT=$NMEDIT |
| 8666 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 8667 | set dummy nmedit; ac_word=$2 |
| 8668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8669 | printf %s "checking for $ac_word... " >&6; } |
| 8670 | if test ${ac_cv_prog_ac_ct_NMEDIT+y} |
| 8671 | then : |
| 8672 | printf %s "(cached) " >&6 |
| 8673 | else case e in #( |
| 8674 | e) if test -n "$ac_ct_NMEDIT"; then |
| 8675 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 8676 | else |
| 8677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8678 | for as_dir in $PATH |
| 8679 | do |
| 8680 | IFS=$as_save_IFS |
| 8681 | case $as_dir in #((( |
| 8682 | '') as_dir=./ ;; |
| 8683 | */) ;; |
| 8684 | *) as_dir=$as_dir/ ;; |
| 8685 | esac |
| 8686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8687 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8688 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 8689 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8690 | break 2 |
| 8691 | fi |
| 8692 | done |
| 8693 | done |
| 8694 | IFS=$as_save_IFS |
| 8695 | |
| 8696 | fi ;; |
| 8697 | esac |
| 8698 | fi |
| 8699 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 8700 | if test -n "$ac_ct_NMEDIT"; then |
| 8701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 8702 | printf "%s\n" "$ac_ct_NMEDIT" >&6; } |
| 8703 | else |
| 8704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8705 | printf "%s\n" "no" >&6; } |
| 8706 | fi |
| 8707 | |
| 8708 | if test "x$ac_ct_NMEDIT" = x; then |
| 8709 | NMEDIT=":" |
| 8710 | else |
| 8711 | case $cross_compiling:$ac_tool_warned in |
| 8712 | yes:) |
| 8713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8714 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8715 | ac_tool_warned=yes ;; |
| 8716 | esac |
| 8717 | NMEDIT=$ac_ct_NMEDIT |
| 8718 | fi |
| 8719 | else |
| 8720 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 8721 | fi |
| 8722 | |
| 8723 | if test -n "$ac_tool_prefix"; then |
| 8724 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 8725 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 8726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8727 | printf %s "checking for $ac_word... " >&6; } |
| 8728 | if test ${ac_cv_prog_LIPO+y} |
| 8729 | then : |
| 8730 | printf %s "(cached) " >&6 |
| 8731 | else case e in #( |
| 8732 | e) if test -n "$LIPO"; then |
| 8733 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 8734 | else |
| 8735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8736 | for as_dir in $PATH |
| 8737 | do |
| 8738 | IFS=$as_save_IFS |
| 8739 | case $as_dir in #((( |
| 8740 | '') as_dir=./ ;; |
| 8741 | */) ;; |
| 8742 | *) as_dir=$as_dir/ ;; |
| 8743 | esac |
| 8744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8745 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8746 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 8747 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8748 | break 2 |
| 8749 | fi |
| 8750 | done |
| 8751 | done |
| 8752 | IFS=$as_save_IFS |
| 8753 | |
| 8754 | fi ;; |
| 8755 | esac |
| 8756 | fi |
| 8757 | LIPO=$ac_cv_prog_LIPO |
| 8758 | if test -n "$LIPO"; then |
| 8759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 8760 | printf "%s\n" "$LIPO" >&6; } |
| 8761 | else |
| 8762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8763 | printf "%s\n" "no" >&6; } |
| 8764 | fi |
| 8765 | |
| 8766 | |
| 8767 | fi |
| 8768 | if test -z "$ac_cv_prog_LIPO"; then |
| 8769 | ac_ct_LIPO=$LIPO |
| 8770 | # Extract the first word of "lipo", so it can be a program name with args. |
| 8771 | set dummy lipo; ac_word=$2 |
| 8772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8773 | printf %s "checking for $ac_word... " >&6; } |
| 8774 | if test ${ac_cv_prog_ac_ct_LIPO+y} |
| 8775 | then : |
| 8776 | printf %s "(cached) " >&6 |
| 8777 | else case e in #( |
| 8778 | e) if test -n "$ac_ct_LIPO"; then |
| 8779 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 8780 | else |
| 8781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8782 | for as_dir in $PATH |
| 8783 | do |
| 8784 | IFS=$as_save_IFS |
| 8785 | case $as_dir in #((( |
| 8786 | '') as_dir=./ ;; |
| 8787 | */) ;; |
| 8788 | *) as_dir=$as_dir/ ;; |
| 8789 | esac |
| 8790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8791 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8792 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 8793 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8794 | break 2 |
| 8795 | fi |
| 8796 | done |
| 8797 | done |
| 8798 | IFS=$as_save_IFS |
| 8799 | |
| 8800 | fi ;; |
| 8801 | esac |
| 8802 | fi |
| 8803 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 8804 | if test -n "$ac_ct_LIPO"; then |
| 8805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 8806 | printf "%s\n" "$ac_ct_LIPO" >&6; } |
| 8807 | else |
| 8808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8809 | printf "%s\n" "no" >&6; } |
| 8810 | fi |
| 8811 | |
| 8812 | if test "x$ac_ct_LIPO" = x; then |
| 8813 | LIPO=":" |
| 8814 | else |
| 8815 | case $cross_compiling:$ac_tool_warned in |
| 8816 | yes:) |
| 8817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8818 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8819 | ac_tool_warned=yes ;; |
| 8820 | esac |
| 8821 | LIPO=$ac_ct_LIPO |
| 8822 | fi |
| 8823 | else |
| 8824 | LIPO="$ac_cv_prog_LIPO" |
| 8825 | fi |
| 8826 | |
| 8827 | if test -n "$ac_tool_prefix"; then |
| 8828 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 8829 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 8830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8831 | printf %s "checking for $ac_word... " >&6; } |
| 8832 | if test ${ac_cv_prog_OTOOL+y} |
| 8833 | then : |
| 8834 | printf %s "(cached) " >&6 |
| 8835 | else case e in #( |
| 8836 | e) if test -n "$OTOOL"; then |
| 8837 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 8838 | else |
| 8839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8840 | for as_dir in $PATH |
| 8841 | do |
| 8842 | IFS=$as_save_IFS |
| 8843 | case $as_dir in #((( |
| 8844 | '') as_dir=./ ;; |
| 8845 | */) ;; |
| 8846 | *) as_dir=$as_dir/ ;; |
| 8847 | esac |
| 8848 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8849 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8850 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 8851 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8852 | break 2 |
| 8853 | fi |
| 8854 | done |
| 8855 | done |
| 8856 | IFS=$as_save_IFS |
| 8857 | |
| 8858 | fi ;; |
| 8859 | esac |
| 8860 | fi |
| 8861 | OTOOL=$ac_cv_prog_OTOOL |
| 8862 | if test -n "$OTOOL"; then |
| 8863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 8864 | printf "%s\n" "$OTOOL" >&6; } |
| 8865 | else |
| 8866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8867 | printf "%s\n" "no" >&6; } |
| 8868 | fi |
| 8869 | |
| 8870 | |
| 8871 | fi |
| 8872 | if test -z "$ac_cv_prog_OTOOL"; then |
| 8873 | ac_ct_OTOOL=$OTOOL |
| 8874 | # Extract the first word of "otool", so it can be a program name with args. |
| 8875 | set dummy otool; ac_word=$2 |
| 8876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8877 | printf %s "checking for $ac_word... " >&6; } |
| 8878 | if test ${ac_cv_prog_ac_ct_OTOOL+y} |
| 8879 | then : |
| 8880 | printf %s "(cached) " >&6 |
| 8881 | else case e in #( |
| 8882 | e) if test -n "$ac_ct_OTOOL"; then |
| 8883 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 8884 | else |
| 8885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8886 | for as_dir in $PATH |
| 8887 | do |
| 8888 | IFS=$as_save_IFS |
| 8889 | case $as_dir in #((( |
| 8890 | '') as_dir=./ ;; |
| 8891 | */) ;; |
| 8892 | *) as_dir=$as_dir/ ;; |
| 8893 | esac |
| 8894 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8895 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8896 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 8897 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8898 | break 2 |
| 8899 | fi |
| 8900 | done |
| 8901 | done |
| 8902 | IFS=$as_save_IFS |
| 8903 | |
| 8904 | fi ;; |
| 8905 | esac |
| 8906 | fi |
| 8907 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 8908 | if test -n "$ac_ct_OTOOL"; then |
| 8909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 8910 | printf "%s\n" "$ac_ct_OTOOL" >&6; } |
| 8911 | else |
| 8912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8913 | printf "%s\n" "no" >&6; } |
| 8914 | fi |
| 8915 | |
| 8916 | if test "x$ac_ct_OTOOL" = x; then |
| 8917 | OTOOL=":" |
| 8918 | else |
| 8919 | case $cross_compiling:$ac_tool_warned in |
| 8920 | yes:) |
| 8921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8922 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8923 | ac_tool_warned=yes ;; |
| 8924 | esac |
| 8925 | OTOOL=$ac_ct_OTOOL |
| 8926 | fi |
| 8927 | else |
| 8928 | OTOOL="$ac_cv_prog_OTOOL" |
| 8929 | fi |
| 8930 | |
| 8931 | if test -n "$ac_tool_prefix"; then |
| 8932 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 8933 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 8934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8935 | printf %s "checking for $ac_word... " >&6; } |
| 8936 | if test ${ac_cv_prog_OTOOL64+y} |
| 8937 | then : |
| 8938 | printf %s "(cached) " >&6 |
| 8939 | else case e in #( |
| 8940 | e) if test -n "$OTOOL64"; then |
| 8941 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 8942 | else |
| 8943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8944 | for as_dir in $PATH |
| 8945 | do |
| 8946 | IFS=$as_save_IFS |
| 8947 | case $as_dir in #((( |
| 8948 | '') as_dir=./ ;; |
| 8949 | */) ;; |
| 8950 | *) as_dir=$as_dir/ ;; |
| 8951 | esac |
| 8952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8953 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8954 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 8955 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8956 | break 2 |
| 8957 | fi |
| 8958 | done |
| 8959 | done |
| 8960 | IFS=$as_save_IFS |
| 8961 | |
| 8962 | fi ;; |
| 8963 | esac |
| 8964 | fi |
| 8965 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 8966 | if test -n "$OTOOL64"; then |
| 8967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 8968 | printf "%s\n" "$OTOOL64" >&6; } |
| 8969 | else |
| 8970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8971 | printf "%s\n" "no" >&6; } |
| 8972 | fi |
| 8973 | |
| 8974 | |
| 8975 | fi |
| 8976 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 8977 | ac_ct_OTOOL64=$OTOOL64 |
| 8978 | # Extract the first word of "otool64", so it can be a program name with args. |
| 8979 | set dummy otool64; ac_word=$2 |
| 8980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8981 | printf %s "checking for $ac_word... " >&6; } |
| 8982 | if test ${ac_cv_prog_ac_ct_OTOOL64+y} |
| 8983 | then : |
| 8984 | printf %s "(cached) " >&6 |
| 8985 | else case e in #( |
| 8986 | e) if test -n "$ac_ct_OTOOL64"; then |
| 8987 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 8988 | else |
| 8989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8990 | for as_dir in $PATH |
| 8991 | do |
| 8992 | IFS=$as_save_IFS |
| 8993 | case $as_dir in #((( |
| 8994 | '') as_dir=./ ;; |
| 8995 | */) ;; |
| 8996 | *) as_dir=$as_dir/ ;; |
| 8997 | esac |
| 8998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8999 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9000 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9001 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9002 | break 2 |
| 9003 | fi |
| 9004 | done |
| 9005 | done |
| 9006 | IFS=$as_save_IFS |
| 9007 | |
| 9008 | fi ;; |
| 9009 | esac |
| 9010 | fi |
| 9011 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9012 | if test -n "$ac_ct_OTOOL64"; then |
| 9013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9014 | printf "%s\n" "$ac_ct_OTOOL64" >&6; } |
| 9015 | else |
| 9016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9017 | printf "%s\n" "no" >&6; } |
| 9018 | fi |
| 9019 | |
| 9020 | if test "x$ac_ct_OTOOL64" = x; then |
| 9021 | OTOOL64=":" |
| 9022 | else |
| 9023 | case $cross_compiling:$ac_tool_warned in |
| 9024 | yes:) |
| 9025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9026 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9027 | ac_tool_warned=yes ;; |
| 9028 | esac |
| 9029 | OTOOL64=$ac_ct_OTOOL64 |
| 9030 | fi |
| 9031 | else |
| 9032 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 9033 | fi |
| 9034 | |
| 9035 | |
| 9036 | |
| 9037 | |
| 9038 | |
| 9039 | |
| 9040 | |
| 9041 | |
| 9042 | |
| 9043 | |
| 9044 | |
| 9045 | |
| 9046 | |
| 9047 | |
| 9048 | |
| 9049 | |
| 9050 | |
| 9051 | |
| 9052 | |
| 9053 | |
| 9054 | |
| 9055 | |
| 9056 | |
| 9057 | |
| 9058 | |
| 9059 | |
| 9060 | |
| 9061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9062 | printf %s "checking for -single_module linker flag... " >&6; } |
| 9063 | if test ${lt_cv_apple_cc_single_mod+y} |
| 9064 | then : |
| 9065 | printf %s "(cached) " >&6 |
| 9066 | else case e in #( |
| 9067 | e) lt_cv_apple_cc_single_mod=no |
| 9068 | if test -z "$LT_MULTI_MODULE"; then |
| 9069 | # By default we will add the -single_module flag. You can override |
| 9070 | # by either setting the environment variable LT_MULTI_MODULE |
| 9071 | # non-empty at configure time, or by adding -multi_module to the |
| 9072 | # link flags. |
| 9073 | rm -rf libconftest.dylib* |
| 9074 | echo "int foo(void){return 1;}" > conftest.c |
| 9075 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9076 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9077 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9078 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9079 | _lt_result=$? |
| 9080 | # If there is a non-empty error log, and "single_module" |
| 9081 | # appears in it, assume the flag caused a linker warning |
| 9082 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 9083 | cat conftest.err >&5 |
| 9084 | # Otherwise, if the output was created with a 0 exit code from |
| 9085 | # the compiler, it worked. |
| 9086 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 9087 | lt_cv_apple_cc_single_mod=yes |
| 9088 | else |
| 9089 | cat conftest.err >&5 |
| 9090 | fi |
| 9091 | rm -rf libconftest.dylib* |
| 9092 | rm -f conftest.* |
| 9093 | fi ;; |
| 9094 | esac |
| 9095 | fi |
| 9096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9097 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } |
| 9098 | |
| 9099 | # Feature test to disable chained fixups since it is not |
| 9100 | # compatible with '-undefined dynamic_lookup' |
| 9101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 |
| 9102 | printf %s "checking for -no_fixup_chains linker flag... " >&6; } |
| 9103 | if test ${lt_cv_support_no_fixup_chains+y} |
| 9104 | then : |
| 9105 | printf %s "(cached) " >&6 |
| 9106 | else case e in #( |
| 9107 | e) save_LDFLAGS=$LDFLAGS |
| 9108 | LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" |
| 9109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9110 | /* end confdefs.h. */ |
| 9111 | |
| 9112 | int |
| 9113 | main (void) |
| 9114 | { |
| 9115 | |
| 9116 | ; |
| 9117 | return 0; |
| 9118 | } |
| 9119 | _ACEOF |
| 9120 | if ac_fn_c_try_link "$LINENO" |
| 9121 | then : |
| 9122 | lt_cv_support_no_fixup_chains=yes |
| 9123 | else case e in #( |
| 9124 | e) lt_cv_support_no_fixup_chains=no |
| 9125 | ;; |
| 9126 | esac |
| 9127 | fi |
| 9128 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9129 | conftest$ac_exeext conftest.$ac_ext |
| 9130 | LDFLAGS=$save_LDFLAGS |
| 9131 | |
| 9132 | ;; |
| 9133 | esac |
| 9134 | fi |
| 9135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 |
| 9136 | printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } |
| 9137 | |
| 9138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9139 | printf %s "checking for -exported_symbols_list linker flag... " >&6; } |
| 9140 | if test ${lt_cv_ld_exported_symbols_list+y} |
| 9141 | then : |
| 9142 | printf %s "(cached) " >&6 |
| 9143 | else case e in #( |
| 9144 | e) lt_cv_ld_exported_symbols_list=no |
| 9145 | save_LDFLAGS=$LDFLAGS |
| 9146 | echo "_main" > conftest.sym |
| 9147 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9149 | /* end confdefs.h. */ |
| 9150 | |
| 9151 | int |
| 9152 | main (void) |
| 9153 | { |
| 9154 | |
| 9155 | ; |
| 9156 | return 0; |
| 9157 | } |
| 9158 | _ACEOF |
| 9159 | if ac_fn_c_try_link "$LINENO" |
| 9160 | then : |
| 9161 | lt_cv_ld_exported_symbols_list=yes |
| 9162 | else case e in #( |
| 9163 | e) lt_cv_ld_exported_symbols_list=no ;; |
| 9164 | esac |
| 9165 | fi |
| 9166 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9167 | conftest$ac_exeext conftest.$ac_ext |
| 9168 | LDFLAGS=$save_LDFLAGS |
| 9169 | ;; |
| 9170 | esac |
| 9171 | fi |
| 9172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9173 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9174 | |
| 9175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9176 | printf %s "checking for -force_load linker flag... " >&6; } |
| 9177 | if test ${lt_cv_ld_force_load+y} |
| 9178 | then : |
| 9179 | printf %s "(cached) " >&6 |
| 9180 | else case e in #( |
| 9181 | e) lt_cv_ld_force_load=no |
| 9182 | cat > conftest.c << _LT_EOF |
| 9183 | int forced_loaded() { return 2;} |
| 9184 | _LT_EOF |
| 9185 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9186 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9187 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 |
| 9188 | $AR $AR_FLAGS libconftest.a conftest.o 2>&5 |
| 9189 | echo "$RANLIB libconftest.a" >&5 |
| 9190 | $RANLIB libconftest.a 2>&5 |
| 9191 | cat > conftest.c << _LT_EOF |
| 9192 | int main(void) { return 0;} |
| 9193 | _LT_EOF |
| 9194 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9195 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9196 | _lt_result=$? |
| 9197 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 9198 | cat conftest.err >&5 |
| 9199 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 9200 | lt_cv_ld_force_load=yes |
| 9201 | else |
| 9202 | cat conftest.err >&5 |
| 9203 | fi |
| 9204 | rm -f conftest.err libconftest.a conftest conftest.c |
| 9205 | rm -rf conftest.dSYM |
| 9206 | ;; |
| 9207 | esac |
| 9208 | fi |
| 9209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9210 | printf "%s\n" "$lt_cv_ld_force_load" >&6; } |
| 9211 | case $host_os in |
| 9212 | rhapsody* | darwin1.[012]) |
| 9213 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 9214 | darwin1.*) |
| 9215 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9216 | darwin*) |
| 9217 | case $MACOSX_DEPLOYMENT_TARGET,$host in |
| 9218 | 10.[012],*|,*powerpc*-darwin[5-8]*) |
| 9219 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9220 | *) |
| 9221 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' |
| 9222 | if test yes = "$lt_cv_support_no_fixup_chains"; then |
| 9223 | as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' |
| 9224 | fi |
| 9225 | ;; |
| 9226 | esac |
| 9227 | ;; |
| 9228 | esac |
| 9229 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 9230 | _lt_dar_single_mod='$single_module' |
| 9231 | fi |
| 9232 | _lt_dar_needs_single_mod=no |
| 9233 | case $host_os in |
| 9234 | rhapsody* | darwin1.*) |
| 9235 | _lt_dar_needs_single_mod=yes ;; |
| 9236 | darwin*) |
| 9237 | # When targeting Mac OS X 10.4 (darwin 8) or later, |
| 9238 | # -single_module is the default and -multi_module is unsupported. |
| 9239 | # The toolchain on macOS 10.14 (darwin 18) and later cannot |
| 9240 | # target any OS version that needs -single_module. |
| 9241 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 9242 | 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) |
| 9243 | _lt_dar_needs_single_mod=yes ;; |
| 9244 | esac |
| 9245 | ;; |
| 9246 | esac |
| 9247 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 9248 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 9249 | else |
| 9250 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 9251 | fi |
| 9252 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 9253 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9254 | else |
| 9255 | _lt_dsymutil= |
| 9256 | fi |
| 9257 | ;; |
| 9258 | esac |
| 9259 | |
| 9260 | # func_munge_path_list VARIABLE PATH |
| 9261 | # ----------------------------------- |
| 9262 | # VARIABLE is name of variable containing _space_ separated list of |
| 9263 | # directories to be munged by the contents of PATH, which is string |
| 9264 | # having a format: |
| 9265 | # "DIR[:DIR]:" |
| 9266 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 9267 | # ":DIR[:DIR]" |
| 9268 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 9269 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 9270 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 9271 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 9272 | # "DIR[:DIR]" |
| 9273 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 9274 | func_munge_path_list () |
| 9275 | { |
| 9276 | case x$2 in |
| 9277 | x) |
| 9278 | ;; |
| 9279 | *:) |
| 9280 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 9281 | ;; |
| 9282 | x:*) |
| 9283 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 9284 | ;; |
| 9285 | *::*) |
| 9286 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 9287 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 9288 | ;; |
| 9289 | *) |
| 9290 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 9291 | ;; |
| 9292 | esac |
| 9293 | } |
| 9294 | |
| 9295 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9296 | " |
| 9297 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 9298 | then : |
| 9299 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 9300 | |
| 9301 | fi |
| 9302 | |
| 9303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 9304 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 9305 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 9306 | then : |
| 9307 | printf %s "(cached) " >&6 |
| 9308 | else case e in #( |
| 9309 | e) ac_save_CFLAGS=$CFLAGS |
| 9310 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 9311 | for ac_arg in '' -fno-builtin; do |
| 9312 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 9313 | # This test program should *not* compile successfully. |
| 9314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9315 | /* end confdefs.h. */ |
| 9316 | |
| 9317 | int |
| 9318 | main (void) |
| 9319 | { |
| 9320 | (void) strchr; |
| 9321 | ; |
| 9322 | return 0; |
| 9323 | } |
| 9324 | _ACEOF |
| 9325 | if ac_fn_c_try_compile "$LINENO" |
| 9326 | then : |
| 9327 | |
| 9328 | else case e in #( |
| 9329 | e) # This test program should compile successfully. |
| 9330 | # No library function is consistently available on |
| 9331 | # freestanding implementations, so test against a dummy |
| 9332 | # declaration. Include always-available headers on the |
| 9333 | # off chance that they somehow elicit warnings. |
| 9334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9335 | /* end confdefs.h. */ |
| 9336 | #include <float.h> |
| 9337 | #include <limits.h> |
| 9338 | #include <stdarg.h> |
| 9339 | #include <stddef.h> |
| 9340 | extern void ac_decl (int, char *); |
| 9341 | |
| 9342 | int |
| 9343 | main (void) |
| 9344 | { |
| 9345 | (void) ac_decl (0, (char *) 0); |
| 9346 | (void) ac_decl; |
| 9347 | |
| 9348 | ; |
| 9349 | return 0; |
| 9350 | } |
| 9351 | _ACEOF |
| 9352 | if ac_fn_c_try_compile "$LINENO" |
| 9353 | then : |
| 9354 | if test x"$ac_arg" = x |
| 9355 | then : |
| 9356 | ac_cv_c_undeclared_builtin_options='none needed' |
| 9357 | else case e in #( |
| 9358 | e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; |
| 9359 | esac |
| 9360 | fi |
| 9361 | break |
| 9362 | fi |
| 9363 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9364 | esac |
| 9365 | fi |
| 9366 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9367 | done |
| 9368 | CFLAGS=$ac_save_CFLAGS |
| 9369 | ;; |
| 9370 | esac |
| 9371 | fi |
| 9372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 9373 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 9374 | case $ac_cv_c_undeclared_builtin_options in #( |
| 9375 | 'cannot detect') : |
| 9376 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 9377 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 9378 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 9379 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 9380 | 'none needed') : |
| 9381 | ac_c_undeclared_builtin_options='' ;; #( |
| 9382 | *) : |
| 9383 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 9384 | esac |
| 9385 | |
| 9386 | echo 'tldbg:KPSE_COMMON called (pkg=bibtex-x, amopt=no-define)' >&5 |
| 9387 | echo 'tldbg:KPSE_BASIC called (pkg=bibtex-x, amopt=no-define)' >&5 |
| 9388 | |
| 9389 | # |
| 9390 | # am_init_automake |
| 9391 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 9392 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 9393 | # is not polluted with repeated "-I." |
| 9394 | am__isrc=' -I$(srcdir)' |
| 9395 | # test to see if srcdir already configured |
| 9396 | if test -f $srcdir/config.status; then |
| 9397 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 9398 | fi |
| 9399 | fi |
| 9400 | |
| 9401 | # test whether we have cygpath |
| 9402 | if test -z "$CYGPATH_W"; then |
| 9403 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 9404 | CYGPATH_W='cygpath -w' |
| 9405 | else |
| 9406 | CYGPATH_W=echo |
| 9407 | fi |
| 9408 | fi |
| 9409 | |
| 9410 | |
| 9411 | # Define the identity of the package. |
| 9412 | PACKAGE='extended-bibtex--tex-live-' |
| 9413 | VERSION='4.03' |
| 9414 | |
| 9415 | |
| 9416 | # Some tools Automake needs. |
| 9417 | |
| 9418 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 9419 | |
| 9420 | |
| 9421 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 9422 | |
| 9423 | |
| 9424 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 9425 | |
| 9426 | |
| 9427 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 9428 | |
| 9429 | |
| 9430 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 9431 | |
| 9432 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 9433 | # dies out for good. For more background, see: |
| 9434 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 9435 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 9436 | mkdir_p='$(MKDIR_P)' |
| 9437 | |
| 9438 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 9439 | # system "awk" is bad on some platforms. |
| 9440 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 9441 | # in the wild :-( We should find a proper way to deprecate it ... |
| 9442 | AMTAR='$${TAR-tar}' |
| 9443 | |
| 9444 | |
| 9445 | # We'll loop over all known methods to create a tar archive until one works. |
| 9446 | _am_tools='gnutar plaintar pax cpio none' |
| 9447 | |
| 9448 | # The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 9449 | # There is notably a 21 bits limit for the UID and the GID. In fact, |
| 9450 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 9451 | # and bug#13588). |
| 9452 | am_max_uid=2097151 # 2^21 - 1 |
| 9453 | am_max_gid=$am_max_uid |
| 9454 | # The $UID and $GID variables are not portable, so we need to resort |
| 9455 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 9456 | # below are definitely unexpected, so allow the users to see them |
| 9457 | # (that is, avoid stderr redirection). |
| 9458 | am_uid=`id -u || echo unknown` |
| 9459 | am_gid=`id -g || echo unknown` |
| 9460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 |
| 9461 | printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } |
| 9462 | if test x$am_uid = xunknown; then |
| 9463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 |
| 9464 | printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} |
| 9465 | elif test $am_uid -le $am_max_uid; then |
| 9466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9467 | printf "%s\n" "yes" >&6; } |
| 9468 | else |
| 9469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9470 | printf "%s\n" "no" >&6; } |
| 9471 | _am_tools=none |
| 9472 | fi |
| 9473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 |
| 9474 | printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } |
| 9475 | if test x$gm_gid = xunknown; then |
| 9476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 |
| 9477 | printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} |
| 9478 | elif test $am_gid -le $am_max_gid; then |
| 9479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9480 | printf "%s\n" "yes" >&6; } |
| 9481 | else |
| 9482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9483 | printf "%s\n" "no" >&6; } |
| 9484 | _am_tools=none |
| 9485 | fi |
| 9486 | |
| 9487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 9488 | printf %s "checking how to create a ustar tar archive... " >&6; } |
| 9489 | |
| 9490 | # Go ahead even if we have the value already cached. We do so because we |
| 9491 | # need to set the values for the 'am__tar' and 'am__untar' variables. |
| 9492 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 9493 | |
| 9494 | for _am_tool in $_am_tools; do |
| 9495 | case $_am_tool in |
| 9496 | gnutar) |
| 9497 | for _am_tar in tar gnutar gtar; do |
| 9498 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 9499 | ($_am_tar --version) >&5 2>&5 |
| 9500 | ac_status=$? |
| 9501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9502 | (exit $ac_status); } && break |
| 9503 | done |
| 9504 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 9505 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 9506 | am__untar="$_am_tar -xf -" |
| 9507 | ;; |
| 9508 | plaintar) |
| 9509 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 9510 | # ustar tarball either. |
| 9511 | (tar --version) >/dev/null 2>&1 && continue |
| 9512 | am__tar='tar chf - "$$tardir"' |
| 9513 | am__tar_='tar chf - "$tardir"' |
| 9514 | am__untar='tar xf -' |
| 9515 | ;; |
| 9516 | pax) |
| 9517 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 9518 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 9519 | am__untar='pax -r' |
| 9520 | ;; |
| 9521 | cpio) |
| 9522 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 9523 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 9524 | am__untar='cpio -i -H ustar -d' |
| 9525 | ;; |
| 9526 | none) |
| 9527 | am__tar=false |
| 9528 | am__tar_=false |
| 9529 | am__untar=false |
| 9530 | ;; |
| 9531 | esac |
| 9532 | |
| 9533 | # If the value was cached, stop now. We just wanted to have am__tar |
| 9534 | # and am__untar set. |
| 9535 | test -n "${am_cv_prog_tar_ustar}" && break |
| 9536 | |
| 9537 | # tar/untar a dummy directory, and stop if the command works. |
| 9538 | rm -rf conftest.dir |
| 9539 | mkdir conftest.dir |
| 9540 | echo GrepMe > conftest.dir/file |
| 9541 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 9542 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 9543 | ac_status=$? |
| 9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9545 | (exit $ac_status); } |
| 9546 | rm -rf conftest.dir |
| 9547 | if test -s conftest.tar; then |
| 9548 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 9549 | ($am__untar <conftest.tar) >&5 2>&5 |
| 9550 | ac_status=$? |
| 9551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9552 | (exit $ac_status); } |
| 9553 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
| 9554 | (cat conftest.dir/file) >&5 2>&5 |
| 9555 | ac_status=$? |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); } |
| 9558 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 9559 | fi |
| 9560 | done |
| 9561 | rm -rf conftest.dir |
| 9562 | |
| 9563 | if test ${am_cv_prog_tar_ustar+y} |
| 9564 | then : |
| 9565 | printf %s "(cached) " >&6 |
| 9566 | else case e in #( |
| 9567 | e) am_cv_prog_tar_ustar=$_am_tool ;; |
| 9568 | esac |
| 9569 | fi |
| 9570 | |
| 9571 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 9572 | printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } |
| 9573 | |
| 9574 | |
| 9575 | |
| 9576 | |
| 9577 | |
| 9578 | # Variables for tags utilities; see am/tags.am |
| 9579 | if test -z "$CTAGS"; then |
| 9580 | CTAGS=ctags |
| 9581 | fi |
| 9582 | |
| 9583 | if test -z "$ETAGS"; then |
| 9584 | ETAGS=etags |
| 9585 | fi |
| 9586 | |
| 9587 | if test -z "$CSCOPE"; then |
| 9588 | CSCOPE=cscope |
| 9589 | fi |
| 9590 | |
| 9591 | |
| 9592 | |
| 9593 | |
| 9594 | |
| 9595 | |
| 9596 | |
| 9597 | |
| 9598 | # am_maintainer_mode |
| 9599 | |
| 9600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 9601 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 9602 | # Check whether --enable-maintainer-mode was given. |
| 9603 | if test ${enable_maintainer_mode+y} |
| 9604 | then : |
| 9605 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 9606 | else case e in #( |
| 9607 | e) USE_MAINTAINER_MODE=no ;; |
| 9608 | esac |
| 9609 | fi |
| 9610 | |
| 9611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 9612 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
| 9613 | if test $USE_MAINTAINER_MODE = yes; then |
| 9614 | MAINTAINER_MODE_TRUE= |
| 9615 | MAINTAINER_MODE_FALSE='#' |
| 9616 | else |
| 9617 | MAINTAINER_MODE_TRUE='#' |
| 9618 | MAINTAINER_MODE_FALSE= |
| 9619 | fi |
| 9620 | |
| 9621 | MAINT=$MAINTAINER_MODE_TRUE |
| 9622 | |
| 9623 | |
| 9624 | |
| 9625 | # See comments in kpse-setup.m4 about system extensions. |
| 9626 | |
| 9627 | |
| 9628 | # Check whether prototypes work. |
| 9629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5 |
| 9630 | printf %s "checking whether the compiler accepts prototypes... " >&6; } |
| 9631 | if test ${kb_cv_c_prototypes+y} |
| 9632 | then : |
| 9633 | printf %s "(cached) " >&6 |
| 9634 | else case e in #( |
| 9635 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9636 | /* end confdefs.h. */ |
| 9637 | #include <stdarg.h> |
| 9638 | int |
| 9639 | main (void) |
| 9640 | { |
| 9641 | extern void foo(int i,...); |
| 9642 | ; |
| 9643 | return 0; |
| 9644 | } |
| 9645 | _ACEOF |
| 9646 | if ac_fn_c_try_link "$LINENO" |
| 9647 | then : |
| 9648 | kb_cv_c_prototypes=yes |
| 9649 | else case e in #( |
| 9650 | e) kb_cv_c_prototypes=no ;; |
| 9651 | esac |
| 9652 | fi |
| 9653 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9654 | conftest$ac_exeext conftest.$ac_ext ;; |
| 9655 | esac |
| 9656 | fi |
| 9657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5 |
| 9658 | printf "%s\n" "$kb_cv_c_prototypes" >&6; } |
| 9659 | if test "x$kb_cv_c_prototypes" = xno; then |
| 9660 | as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5 |
| 9661 | fi |
| 9662 | |
| 9663 | # kpse_compiler_warnings options. |
| 9664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 |
| 9665 | printf %s "checking what warning flags to pass to the C compiler... " >&6; } |
| 9666 | if test ${kpse_cv_warning_cflags+y} |
| 9667 | then : |
| 9668 | printf %s "(cached) " >&6 |
| 9669 | else case e in #( |
| 9670 | e) if test "x$GCC" = xyes; then |
| 9671 | kpse_cv_warning_cflags= |
| 9672 | if test "x$enable_compiler_warnings" != xno; then |
| 9673 | kpse_cv_warning_cflags="-Wimplicit -Wreturn-type" |
| 9674 | case `$CC -dumpversion` in #( |
| 9675 | 3.4.* | 4.* | 5.*) : |
| 9676 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #( |
| 9677 | *) : |
| 9678 | ;; |
| 9679 | esac |
| 9680 | case `$CC -dumpversion` in #( |
| 9681 | 3.[234].* | 4.* | 5.*) : |
| 9682 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #( |
| 9683 | *) : |
| 9684 | ;; |
| 9685 | esac |
| 9686 | if test "x$enable_compiler_warnings" != xmin; then |
| 9687 | kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags" |
| 9688 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations" |
| 9689 | if test "x$enable_compiler_warnings" != xyes; then |
| 9690 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" |
| 9691 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings" |
| 9692 | case `$CC -dumpversion` in #( |
| 9693 | 3.4.* | 4.* | 5.*) : |
| 9694 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #( |
| 9695 | *) : |
| 9696 | ;; |
| 9697 | esac |
| 9698 | if test "x$enable_compiler_warnings" != xmax; then |
| 9699 | kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow" |
| 9700 | fi |
| 9701 | fi |
| 9702 | fi |
| 9703 | fi |
| 9704 | elif test "x$enable_compiler_warnings" = xno; then |
| 9705 | kpse_cv_warning_cflags= |
| 9706 | else |
| 9707 | kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers |
| 9708 | fi ;; |
| 9709 | esac |
| 9710 | fi |
| 9711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5 |
| 9712 | printf "%s\n" "$kpse_cv_warning_cflags" >&6; } |
| 9713 | WARNING_CFLAGS=$kpse_cv_warning_cflags |
| 9714 | |
| 9715 | |
| 9716 | |
| 9717 | |
| 9718 | |
| 9719 | |
| 9720 | |
| 9721 | # end of kpse_basic macro. |
| 9722 | echo 'tldbg:KPSE_BASIC done (pkg=bibtex-x, amopt=no-define)' >&5 |
| 9723 | |
| 9724 | # am_prog_ar must be called before lt_init. |
| 9725 | |
| 9726 | if test -n "$ac_tool_prefix"; then |
| 9727 | for ac_prog in ar lib "link -lib" |
| 9728 | do |
| 9729 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 9730 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 9731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9732 | printf %s "checking for $ac_word... " >&6; } |
| 9733 | if test ${ac_cv_prog_AR+y} |
| 9734 | then : |
| 9735 | printf %s "(cached) " >&6 |
| 9736 | else case e in #( |
| 9737 | e) if test -n "$AR"; then |
| 9738 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9739 | else |
| 9740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9741 | for as_dir in $PATH |
| 9742 | do |
| 9743 | IFS=$as_save_IFS |
| 9744 | case $as_dir in #((( |
| 9745 | '') as_dir=./ ;; |
| 9746 | */) ;; |
| 9747 | *) as_dir=$as_dir/ ;; |
| 9748 | esac |
| 9749 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9750 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9751 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 9752 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9753 | break 2 |
| 9754 | fi |
| 9755 | done |
| 9756 | done |
| 9757 | IFS=$as_save_IFS |
| 9758 | |
| 9759 | fi ;; |
| 9760 | esac |
| 9761 | fi |
| 9762 | AR=$ac_cv_prog_AR |
| 9763 | if test -n "$AR"; then |
| 9764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 9765 | printf "%s\n" "$AR" >&6; } |
| 9766 | else |
| 9767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9768 | printf "%s\n" "no" >&6; } |
| 9769 | fi |
| 9770 | |
| 9771 | |
| 9772 | test -n "$AR" && break |
| 9773 | done |
| 9774 | fi |
| 9775 | if test -z "$AR"; then |
| 9776 | ac_ct_AR=$AR |
| 9777 | for ac_prog in ar lib "link -lib" |
| 9778 | do |
| 9779 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9780 | set dummy $ac_prog; ac_word=$2 |
| 9781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9782 | printf %s "checking for $ac_word... " >&6; } |
| 9783 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 9784 | then : |
| 9785 | printf %s "(cached) " >&6 |
| 9786 | else case e in #( |
| 9787 | e) if test -n "$ac_ct_AR"; then |
| 9788 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 9789 | else |
| 9790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9791 | for as_dir in $PATH |
| 9792 | do |
| 9793 | IFS=$as_save_IFS |
| 9794 | case $as_dir in #((( |
| 9795 | '') as_dir=./ ;; |
| 9796 | */) ;; |
| 9797 | *) as_dir=$as_dir/ ;; |
| 9798 | esac |
| 9799 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9800 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9801 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 9802 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9803 | break 2 |
| 9804 | fi |
| 9805 | done |
| 9806 | done |
| 9807 | IFS=$as_save_IFS |
| 9808 | |
| 9809 | fi ;; |
| 9810 | esac |
| 9811 | fi |
| 9812 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9813 | if test -n "$ac_ct_AR"; then |
| 9814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 9815 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 9816 | else |
| 9817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9818 | printf "%s\n" "no" >&6; } |
| 9819 | fi |
| 9820 | |
| 9821 | |
| 9822 | test -n "$ac_ct_AR" && break |
| 9823 | done |
| 9824 | |
| 9825 | if test "x$ac_ct_AR" = x; then |
| 9826 | AR="false" |
| 9827 | else |
| 9828 | case $cross_compiling:$ac_tool_warned in |
| 9829 | yes:) |
| 9830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9831 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9832 | ac_tool_warned=yes ;; |
| 9833 | esac |
| 9834 | AR=$ac_ct_AR |
| 9835 | fi |
| 9836 | fi |
| 9837 | |
| 9838 | : ${AR=ar} |
| 9839 | : ${ARFLAGS=cr} |
| 9840 | |
| 9841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 9842 | printf %s "checking the archiver ($AR) interface... " >&6; } |
| 9843 | if test ${am_cv_ar_interface+y} |
| 9844 | then : |
| 9845 | printf %s "(cached) " >&6 |
| 9846 | else case e in #( |
| 9847 | e) ac_ext=c |
| 9848 | ac_cpp='$CPP $CPPFLAGS' |
| 9849 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9850 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9851 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9852 | |
| 9853 | am_cv_ar_interface=ar |
| 9854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9855 | /* end confdefs.h. */ |
| 9856 | int some_variable = 0; |
| 9857 | _ACEOF |
| 9858 | if ac_fn_c_try_compile "$LINENO" |
| 9859 | then : |
| 9860 | am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5' |
| 9861 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 9862 | (eval $am_ar_try) 2>&5 |
| 9863 | ac_status=$? |
| 9864 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9865 | test $ac_status = 0; } |
| 9866 | if test "$ac_status" -eq 0; then |
| 9867 | am_cv_ar_interface=ar |
| 9868 | else |
| 9869 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 9870 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 9871 | (eval $am_ar_try) 2>&5 |
| 9872 | ac_status=$? |
| 9873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9874 | test $ac_status = 0; } |
| 9875 | if test "$ac_status" -eq 0; then |
| 9876 | am_cv_ar_interface=lib |
| 9877 | else |
| 9878 | am_cv_ar_interface=unknown |
| 9879 | fi |
| 9880 | fi |
| 9881 | rm -f conftest.lib libconftest.a |
| 9882 | |
| 9883 | fi |
| 9884 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9885 | ac_ext=c |
| 9886 | ac_cpp='$CPP $CPPFLAGS' |
| 9887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9890 | ;; |
| 9891 | esac |
| 9892 | fi |
| 9893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 9894 | printf "%s\n" "$am_cv_ar_interface" >&6; } |
| 9895 | |
| 9896 | case $am_cv_ar_interface in |
| 9897 | ar) |
| 9898 | ;; |
| 9899 | lib) |
| 9900 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 9901 | # FIXME: It is wrong to rewrite AR. |
| 9902 | # But if we don't then we get into trouble of one sort or another. |
| 9903 | # A longer-term fix would be to have automake use am__AR in this case, |
| 9904 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 9905 | # similar. |
| 9906 | AR="$am_aux_dir/ar-lib $AR" |
| 9907 | ;; |
| 9908 | unknown) |
| 9909 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 9910 | ;; |
| 9911 | esac |
| 9912 | |
| 9913 | # (end am_prog_ar) |
| 9914 | # starting lt_prereq + lt_init. |
| 9915 | |
| 9916 | |
| 9917 | |
| 9918 | |
| 9919 | |
| 9920 | # Set options |
| 9921 | enable_win32_dll=yes |
| 9922 | |
| 9923 | case $host in |
| 9924 | *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*) |
| 9925 | if test -n "$ac_tool_prefix"; then |
| 9926 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 9927 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 9928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9929 | printf %s "checking for $ac_word... " >&6; } |
| 9930 | if test ${ac_cv_prog_AS+y} |
| 9931 | then : |
| 9932 | printf %s "(cached) " >&6 |
| 9933 | else case e in #( |
| 9934 | e) if test -n "$AS"; then |
| 9935 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 9936 | else |
| 9937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9938 | for as_dir in $PATH |
| 9939 | do |
| 9940 | IFS=$as_save_IFS |
| 9941 | case $as_dir in #((( |
| 9942 | '') as_dir=./ ;; |
| 9943 | */) ;; |
| 9944 | *) as_dir=$as_dir/ ;; |
| 9945 | esac |
| 9946 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9947 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9948 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 9949 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9950 | break 2 |
| 9951 | fi |
| 9952 | done |
| 9953 | done |
| 9954 | IFS=$as_save_IFS |
| 9955 | |
| 9956 | fi ;; |
| 9957 | esac |
| 9958 | fi |
| 9959 | AS=$ac_cv_prog_AS |
| 9960 | if test -n "$AS"; then |
| 9961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 9962 | printf "%s\n" "$AS" >&6; } |
| 9963 | else |
| 9964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9965 | printf "%s\n" "no" >&6; } |
| 9966 | fi |
| 9967 | |
| 9968 | |
| 9969 | fi |
| 9970 | if test -z "$ac_cv_prog_AS"; then |
| 9971 | ac_ct_AS=$AS |
| 9972 | # Extract the first word of "as", so it can be a program name with args. |
| 9973 | set dummy as; ac_word=$2 |
| 9974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9975 | printf %s "checking for $ac_word... " >&6; } |
| 9976 | if test ${ac_cv_prog_ac_ct_AS+y} |
| 9977 | then : |
| 9978 | printf %s "(cached) " >&6 |
| 9979 | else case e in #( |
| 9980 | e) if test -n "$ac_ct_AS"; then |
| 9981 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 9982 | else |
| 9983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9984 | for as_dir in $PATH |
| 9985 | do |
| 9986 | IFS=$as_save_IFS |
| 9987 | case $as_dir in #((( |
| 9988 | '') as_dir=./ ;; |
| 9989 | */) ;; |
| 9990 | *) as_dir=$as_dir/ ;; |
| 9991 | esac |
| 9992 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9993 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9994 | ac_cv_prog_ac_ct_AS="as" |
| 9995 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9996 | break 2 |
| 9997 | fi |
| 9998 | done |
| 9999 | done |
| 10000 | IFS=$as_save_IFS |
| 10001 | |
| 10002 | fi ;; |
| 10003 | esac |
| 10004 | fi |
| 10005 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 10006 | if test -n "$ac_ct_AS"; then |
| 10007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 10008 | printf "%s\n" "$ac_ct_AS" >&6; } |
| 10009 | else |
| 10010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10011 | printf "%s\n" "no" >&6; } |
| 10012 | fi |
| 10013 | |
| 10014 | if test "x$ac_ct_AS" = x; then |
| 10015 | AS="false" |
| 10016 | else |
| 10017 | case $cross_compiling:$ac_tool_warned in |
| 10018 | yes:) |
| 10019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10020 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10021 | ac_tool_warned=yes ;; |
| 10022 | esac |
| 10023 | AS=$ac_ct_AS |
| 10024 | fi |
| 10025 | else |
| 10026 | AS="$ac_cv_prog_AS" |
| 10027 | fi |
| 10028 | |
| 10029 | if test -n "$ac_tool_prefix"; then |
| 10030 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10031 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 10032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10033 | printf %s "checking for $ac_word... " >&6; } |
| 10034 | if test ${ac_cv_prog_DLLTOOL+y} |
| 10035 | then : |
| 10036 | printf %s "(cached) " >&6 |
| 10037 | else case e in #( |
| 10038 | e) if test -n "$DLLTOOL"; then |
| 10039 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10040 | else |
| 10041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10042 | for as_dir in $PATH |
| 10043 | do |
| 10044 | IFS=$as_save_IFS |
| 10045 | case $as_dir in #((( |
| 10046 | '') as_dir=./ ;; |
| 10047 | */) ;; |
| 10048 | *) as_dir=$as_dir/ ;; |
| 10049 | esac |
| 10050 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10051 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10052 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 10053 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10054 | break 2 |
| 10055 | fi |
| 10056 | done |
| 10057 | done |
| 10058 | IFS=$as_save_IFS |
| 10059 | |
| 10060 | fi ;; |
| 10061 | esac |
| 10062 | fi |
| 10063 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10064 | if test -n "$DLLTOOL"; then |
| 10065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 10066 | printf "%s\n" "$DLLTOOL" >&6; } |
| 10067 | else |
| 10068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10069 | printf "%s\n" "no" >&6; } |
| 10070 | fi |
| 10071 | |
| 10072 | |
| 10073 | fi |
| 10074 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10075 | ac_ct_DLLTOOL=$DLLTOOL |
| 10076 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10077 | set dummy dlltool; ac_word=$2 |
| 10078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10079 | printf %s "checking for $ac_word... " >&6; } |
| 10080 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 10081 | then : |
| 10082 | printf %s "(cached) " >&6 |
| 10083 | else case e in #( |
| 10084 | e) if test -n "$ac_ct_DLLTOOL"; then |
| 10085 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10086 | else |
| 10087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10088 | for as_dir in $PATH |
| 10089 | do |
| 10090 | IFS=$as_save_IFS |
| 10091 | case $as_dir in #((( |
| 10092 | '') as_dir=./ ;; |
| 10093 | */) ;; |
| 10094 | *) as_dir=$as_dir/ ;; |
| 10095 | esac |
| 10096 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10097 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10098 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 10099 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10100 | break 2 |
| 10101 | fi |
| 10102 | done |
| 10103 | done |
| 10104 | IFS=$as_save_IFS |
| 10105 | |
| 10106 | fi ;; |
| 10107 | esac |
| 10108 | fi |
| 10109 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10110 | if test -n "$ac_ct_DLLTOOL"; then |
| 10111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 10112 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 10113 | else |
| 10114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10115 | printf "%s\n" "no" >&6; } |
| 10116 | fi |
| 10117 | |
| 10118 | if test "x$ac_ct_DLLTOOL" = x; then |
| 10119 | DLLTOOL="false" |
| 10120 | else |
| 10121 | case $cross_compiling:$ac_tool_warned in |
| 10122 | yes:) |
| 10123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10124 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10125 | ac_tool_warned=yes ;; |
| 10126 | esac |
| 10127 | DLLTOOL=$ac_ct_DLLTOOL |
| 10128 | fi |
| 10129 | else |
| 10130 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10131 | fi |
| 10132 | |
| 10133 | if test -n "$ac_tool_prefix"; then |
| 10134 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10135 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 10136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10137 | printf %s "checking for $ac_word... " >&6; } |
| 10138 | if test ${ac_cv_prog_OBJDUMP+y} |
| 10139 | then : |
| 10140 | printf %s "(cached) " >&6 |
| 10141 | else case e in #( |
| 10142 | e) if test -n "$OBJDUMP"; then |
| 10143 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10144 | else |
| 10145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10146 | for as_dir in $PATH |
| 10147 | do |
| 10148 | IFS=$as_save_IFS |
| 10149 | case $as_dir in #((( |
| 10150 | '') as_dir=./ ;; |
| 10151 | */) ;; |
| 10152 | *) as_dir=$as_dir/ ;; |
| 10153 | esac |
| 10154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10155 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10156 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 10157 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10158 | break 2 |
| 10159 | fi |
| 10160 | done |
| 10161 | done |
| 10162 | IFS=$as_save_IFS |
| 10163 | |
| 10164 | fi ;; |
| 10165 | esac |
| 10166 | fi |
| 10167 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10168 | if test -n "$OBJDUMP"; then |
| 10169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 10170 | printf "%s\n" "$OBJDUMP" >&6; } |
| 10171 | else |
| 10172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10173 | printf "%s\n" "no" >&6; } |
| 10174 | fi |
| 10175 | |
| 10176 | |
| 10177 | fi |
| 10178 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10179 | ac_ct_OBJDUMP=$OBJDUMP |
| 10180 | # Extract the first word of "objdump", so it can be a program name with args. |
| 10181 | set dummy objdump; ac_word=$2 |
| 10182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10183 | printf %s "checking for $ac_word... " >&6; } |
| 10184 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 10185 | then : |
| 10186 | printf %s "(cached) " >&6 |
| 10187 | else case e in #( |
| 10188 | e) if test -n "$ac_ct_OBJDUMP"; then |
| 10189 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10190 | else |
| 10191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10192 | for as_dir in $PATH |
| 10193 | do |
| 10194 | IFS=$as_save_IFS |
| 10195 | case $as_dir in #((( |
| 10196 | '') as_dir=./ ;; |
| 10197 | */) ;; |
| 10198 | *) as_dir=$as_dir/ ;; |
| 10199 | esac |
| 10200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10201 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10202 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 10203 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10204 | break 2 |
| 10205 | fi |
| 10206 | done |
| 10207 | done |
| 10208 | IFS=$as_save_IFS |
| 10209 | |
| 10210 | fi ;; |
| 10211 | esac |
| 10212 | fi |
| 10213 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10214 | if test -n "$ac_ct_OBJDUMP"; then |
| 10215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 10216 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 10217 | else |
| 10218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10219 | printf "%s\n" "no" >&6; } |
| 10220 | fi |
| 10221 | |
| 10222 | if test "x$ac_ct_OBJDUMP" = x; then |
| 10223 | OBJDUMP="false" |
| 10224 | else |
| 10225 | case $cross_compiling:$ac_tool_warned in |
| 10226 | yes:) |
| 10227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10228 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10229 | ac_tool_warned=yes ;; |
| 10230 | esac |
| 10231 | OBJDUMP=$ac_ct_OBJDUMP |
| 10232 | fi |
| 10233 | else |
| 10234 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 10235 | fi |
| 10236 | |
| 10237 | ;; |
| 10238 | esac |
| 10239 | |
| 10240 | test -z "$AS" && AS=as |
| 10241 | |
| 10242 | |
| 10243 | |
| 10244 | |
| 10245 | |
| 10246 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 10247 | |
| 10248 | |
| 10249 | |
| 10250 | |
| 10251 | |
| 10252 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 10253 | |
| 10254 | |
| 10255 | |
| 10256 | |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | enable_dlopen=no |
| 10261 | |
| 10262 | |
| 10263 | |
| 10264 | # Check whether --enable-shared was given. |
| 10265 | if test ${enable_shared+y} |
| 10266 | then : |
| 10267 | enableval=$enable_shared; p=${PACKAGE-default} |
| 10268 | case $enableval in |
| 10269 | yes) enable_shared=yes ;; |
| 10270 | no) enable_shared=no ;; |
| 10271 | *) |
| 10272 | enable_shared=no |
| 10273 | # Look at the argument we got. We use all the common list separators. |
| 10274 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10275 | for pkg in $enableval; do |
| 10276 | IFS=$lt_save_ifs |
| 10277 | if test "X$pkg" = "X$p"; then |
| 10278 | enable_shared=yes |
| 10279 | fi |
| 10280 | done |
| 10281 | IFS=$lt_save_ifs |
| 10282 | ;; |
| 10283 | esac |
| 10284 | else case e in #( |
| 10285 | e) enable_shared=yes ;; |
| 10286 | esac |
| 10287 | fi |
| 10288 | |
| 10289 | |
| 10290 | |
| 10291 | |
| 10292 | |
| 10293 | |
| 10294 | |
| 10295 | |
| 10296 | |
| 10297 | # Check whether --enable-static was given. |
| 10298 | if test ${enable_static+y} |
| 10299 | then : |
| 10300 | enableval=$enable_static; p=${PACKAGE-default} |
| 10301 | case $enableval in |
| 10302 | yes) enable_static=yes ;; |
| 10303 | no) enable_static=no ;; |
| 10304 | *) |
| 10305 | enable_static=no |
| 10306 | # Look at the argument we got. We use all the common list separators. |
| 10307 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10308 | for pkg in $enableval; do |
| 10309 | IFS=$lt_save_ifs |
| 10310 | if test "X$pkg" = "X$p"; then |
| 10311 | enable_static=yes |
| 10312 | fi |
| 10313 | done |
| 10314 | IFS=$lt_save_ifs |
| 10315 | ;; |
| 10316 | esac |
| 10317 | else case e in #( |
| 10318 | e) enable_static=yes ;; |
| 10319 | esac |
| 10320 | fi |
| 10321 | |
| 10322 | |
| 10323 | |
| 10324 | |
| 10325 | |
| 10326 | |
| 10327 | |
| 10328 | |
| 10329 | |
| 10330 | # Check whether --enable-pic was given. |
| 10331 | if test ${enable_pic+y} |
| 10332 | then : |
| 10333 | enableval=$enable_pic; lt_p=${PACKAGE-default} |
| 10334 | case $enableval in |
| 10335 | yes|no) pic_mode=$enableval ;; |
| 10336 | *) |
| 10337 | pic_mode=default |
| 10338 | # Look at the argument we got. We use all the common list separators. |
| 10339 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10340 | for lt_pkg in $enableval; do |
| 10341 | IFS=$lt_save_ifs |
| 10342 | if test "X$lt_pkg" = "X$lt_p"; then |
| 10343 | pic_mode=yes |
| 10344 | fi |
| 10345 | done |
| 10346 | IFS=$lt_save_ifs |
| 10347 | ;; |
| 10348 | esac |
| 10349 | else case e in #( |
| 10350 | e) # Check whether --with-pic was given. |
| 10351 | if test ${with_pic+y} |
| 10352 | then : |
| 10353 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 10354 | case $withval in |
| 10355 | yes|no) pic_mode=$withval ;; |
| 10356 | *) |
| 10357 | pic_mode=default |
| 10358 | # Look at the argument we got. We use all the common list separators. |
| 10359 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10360 | for lt_pkg in $withval; do |
| 10361 | IFS=$lt_save_ifs |
| 10362 | if test "X$lt_pkg" = "X$lt_p"; then |
| 10363 | pic_mode=yes |
| 10364 | fi |
| 10365 | done |
| 10366 | IFS=$lt_save_ifs |
| 10367 | ;; |
| 10368 | esac |
| 10369 | else case e in #( |
| 10370 | e) pic_mode=default ;; |
| 10371 | esac |
| 10372 | fi |
| 10373 | |
| 10374 | ;; |
| 10375 | esac |
| 10376 | fi |
| 10377 | |
| 10378 | |
| 10379 | |
| 10380 | |
| 10381 | |
| 10382 | |
| 10383 | |
| 10384 | |
| 10385 | # Check whether --enable-fast-install was given. |
| 10386 | if test ${enable_fast_install+y} |
| 10387 | then : |
| 10388 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 10389 | case $enableval in |
| 10390 | yes) enable_fast_install=yes ;; |
| 10391 | no) enable_fast_install=no ;; |
| 10392 | *) |
| 10393 | enable_fast_install=no |
| 10394 | # Look at the argument we got. We use all the common list separators. |
| 10395 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10396 | for pkg in $enableval; do |
| 10397 | IFS=$lt_save_ifs |
| 10398 | if test "X$pkg" = "X$p"; then |
| 10399 | enable_fast_install=yes |
| 10400 | fi |
| 10401 | done |
| 10402 | IFS=$lt_save_ifs |
| 10403 | ;; |
| 10404 | esac |
| 10405 | else case e in #( |
| 10406 | e) enable_fast_install=yes ;; |
| 10407 | esac |
| 10408 | fi |
| 10409 | |
| 10410 | |
| 10411 | |
| 10412 | |
| 10413 | |
| 10414 | |
| 10415 | |
| 10416 | |
| 10417 | shared_archive_member_spec= |
| 10418 | case $host,$enable_shared in |
| 10419 | power*-*-aix[5-9]*,yes) |
| 10420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 10421 | printf %s "checking which variant of shared library versioning to provide... " >&6; } |
| 10422 | # Check whether --enable-aix-soname was given. |
| 10423 | if test ${enable_aix_soname+y} |
| 10424 | then : |
| 10425 | enableval=$enable_aix_soname; case $enableval in |
| 10426 | aix|svr4|both) |
| 10427 | ;; |
| 10428 | *) |
| 10429 | as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 |
| 10430 | ;; |
| 10431 | esac |
| 10432 | lt_cv_with_aix_soname=$enable_aix_soname |
| 10433 | else case e in #( |
| 10434 | e) # Check whether --with-aix-soname was given. |
| 10435 | if test ${with_aix_soname+y} |
| 10436 | then : |
| 10437 | withval=$with_aix_soname; case $withval in |
| 10438 | aix|svr4|both) |
| 10439 | ;; |
| 10440 | *) |
| 10441 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 10442 | ;; |
| 10443 | esac |
| 10444 | lt_cv_with_aix_soname=$with_aix_soname |
| 10445 | else case e in #( |
| 10446 | e) if test ${lt_cv_with_aix_soname+y} |
| 10447 | then : |
| 10448 | printf %s "(cached) " >&6 |
| 10449 | else case e in #( |
| 10450 | e) lt_cv_with_aix_soname=aix ;; |
| 10451 | esac |
| 10452 | fi |
| 10453 | ;; |
| 10454 | esac |
| 10455 | fi |
| 10456 | |
| 10457 | enable_aix_soname=$lt_cv_with_aix_soname ;; |
| 10458 | esac |
| 10459 | fi |
| 10460 | |
| 10461 | with_aix_soname=$enable_aix_soname |
| 10462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 10463 | printf "%s\n" "$with_aix_soname" >&6; } |
| 10464 | if test aix != "$with_aix_soname"; then |
| 10465 | # For the AIX way of multilib, we name the shared archive member |
| 10466 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 10467 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 10468 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 10469 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 10470 | if test 64 = "${OBJECT_MODE-32}"; then |
| 10471 | shared_archive_member_spec=shr_64 |
| 10472 | else |
| 10473 | shared_archive_member_spec=shr |
| 10474 | fi |
| 10475 | fi |
| 10476 | ;; |
| 10477 | *) |
| 10478 | with_aix_soname=aix |
| 10479 | ;; |
| 10480 | esac |
| 10481 | |
| 10482 | |
| 10483 | |
| 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | # This can be used to rebuild libtool when needed |
| 10492 | LIBTOOL_DEPS=$ltmain |
| 10493 | |
| 10494 | # Always use our own libtool. |
| 10495 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 10496 | |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | |
| 10502 | |
| 10503 | |
| 10504 | |
| 10505 | |
| 10506 | |
| 10507 | |
| 10508 | |
| 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | |
| 10519 | |
| 10520 | |
| 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
| 10526 | test -z "$LN_S" && LN_S="ln -s" |
| 10527 | |
| 10528 | |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | |
| 10534 | |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | if test -n "${ZSH_VERSION+set}"; then |
| 10542 | setopt NO_GLOB_SUBST |
| 10543 | fi |
| 10544 | |
| 10545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 10546 | printf %s "checking for objdir... " >&6; } |
| 10547 | if test ${lt_cv_objdir+y} |
| 10548 | then : |
| 10549 | printf %s "(cached) " >&6 |
| 10550 | else case e in #( |
| 10551 | e) rm -f .libs 2>/dev/null |
| 10552 | mkdir .libs 2>/dev/null |
| 10553 | if test -d .libs; then |
| 10554 | lt_cv_objdir=.libs |
| 10555 | else |
| 10556 | # MS-DOS does not allow filenames that begin with a dot. |
| 10557 | lt_cv_objdir=_libs |
| 10558 | fi |
| 10559 | rmdir .libs 2>/dev/null ;; |
| 10560 | esac |
| 10561 | fi |
| 10562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 10563 | printf "%s\n" "$lt_cv_objdir" >&6; } |
| 10564 | objdir=$lt_cv_objdir |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | case $host_os in |
| 10576 | aix3*) |
| 10577 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10578 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10579 | # vanish in a puff of smoke. |
| 10580 | if test set != "${COLLECT_NAMES+set}"; then |
| 10581 | COLLECT_NAMES= |
| 10582 | export COLLECT_NAMES |
| 10583 | fi |
| 10584 | ;; |
| 10585 | esac |
| 10586 | |
| 10587 | # Global variables: |
| 10588 | ofile=libtool |
| 10589 | can_build_shared=yes |
| 10590 | |
| 10591 | # All known linkers require a '.a' archive for static linking (except MSVC and |
| 10592 | # ICC, which need '.lib'). |
| 10593 | libext=a |
| 10594 | |
| 10595 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10596 | |
| 10597 | old_CC=$CC |
| 10598 | old_CFLAGS=$CFLAGS |
| 10599 | |
| 10600 | # Set sane defaults for various variables |
| 10601 | test -z "$CC" && CC=cc |
| 10602 | test -z "$LTCC" && LTCC=$CC |
| 10603 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 10604 | test -z "$LD" && LD=ld |
| 10605 | test -z "$ac_objext" && ac_objext=o |
| 10606 | |
| 10607 | func_cc_basename $compiler |
| 10608 | cc_basename=$func_cc_basename_result |
| 10609 | |
| 10610 | |
| 10611 | # Only perform the check for file, if the check method requires it |
| 10612 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 10613 | case $deplibs_check_method in |
| 10614 | file_magic*) |
| 10615 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 10616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 10617 | printf %s "checking for ${ac_tool_prefix}file... " >&6; } |
| 10618 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 10619 | then : |
| 10620 | printf %s "(cached) " >&6 |
| 10621 | else case e in #( |
| 10622 | e) case $MAGIC_CMD in |
| 10623 | [\\/*] | ?:[\\/]*) |
| 10624 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10625 | ;; |
| 10626 | *) |
| 10627 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10628 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10629 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10630 | for ac_dir in $ac_dummy; do |
| 10631 | IFS=$lt_save_ifs |
| 10632 | test -z "$ac_dir" && ac_dir=. |
| 10633 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 10634 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 10635 | if test -n "$file_magic_test_file"; then |
| 10636 | case $deplibs_check_method in |
| 10637 | "file_magic "*) |
| 10638 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10639 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10640 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10641 | $EGREP "$file_magic_regex" > /dev/null; then |
| 10642 | : |
| 10643 | else |
| 10644 | cat <<_LT_EOF 1>&2 |
| 10645 | |
| 10646 | *** Warning: the command libtool uses to detect shared libraries, |
| 10647 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10648 | *** The result is that libtool may fail to recognize shared libraries |
| 10649 | *** as such. This will affect the creation of libtool libraries that |
| 10650 | *** depend on shared libraries, but programs linked with such libtool |
| 10651 | *** libraries will work regardless of this problem. Nevertheless, you |
| 10652 | *** may want to report the problem to your system manager and/or to |
| 10653 | *** [email protected] |
| 10654 | |
| 10655 | _LT_EOF |
| 10656 | fi ;; |
| 10657 | esac |
| 10658 | fi |
| 10659 | break |
| 10660 | fi |
| 10661 | done |
| 10662 | IFS=$lt_save_ifs |
| 10663 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10664 | ;; |
| 10665 | esac ;; |
| 10666 | esac |
| 10667 | fi |
| 10668 | |
| 10669 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10670 | if test -n "$MAGIC_CMD"; then |
| 10671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10672 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 10673 | else |
| 10674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10675 | printf "%s\n" "no" >&6; } |
| 10676 | fi |
| 10677 | |
| 10678 | |
| 10679 | |
| 10680 | |
| 10681 | |
| 10682 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 10683 | if test -n "$ac_tool_prefix"; then |
| 10684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 10685 | printf %s "checking for file... " >&6; } |
| 10686 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 10687 | then : |
| 10688 | printf %s "(cached) " >&6 |
| 10689 | else case e in #( |
| 10690 | e) case $MAGIC_CMD in |
| 10691 | [\\/*] | ?:[\\/]*) |
| 10692 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10693 | ;; |
| 10694 | *) |
| 10695 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10696 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10697 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10698 | for ac_dir in $ac_dummy; do |
| 10699 | IFS=$lt_save_ifs |
| 10700 | test -z "$ac_dir" && ac_dir=. |
| 10701 | if test -f "$ac_dir/file"; then |
| 10702 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 10703 | if test -n "$file_magic_test_file"; then |
| 10704 | case $deplibs_check_method in |
| 10705 | "file_magic "*) |
| 10706 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10707 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10708 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10709 | $EGREP "$file_magic_regex" > /dev/null; then |
| 10710 | : |
| 10711 | else |
| 10712 | cat <<_LT_EOF 1>&2 |
| 10713 | |
| 10714 | *** Warning: the command libtool uses to detect shared libraries, |
| 10715 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10716 | *** The result is that libtool may fail to recognize shared libraries |
| 10717 | *** as such. This will affect the creation of libtool libraries that |
| 10718 | *** depend on shared libraries, but programs linked with such libtool |
| 10719 | *** libraries will work regardless of this problem. Nevertheless, you |
| 10720 | *** may want to report the problem to your system manager and/or to |
| 10721 | *** [email protected] |
| 10722 | |
| 10723 | _LT_EOF |
| 10724 | fi ;; |
| 10725 | esac |
| 10726 | fi |
| 10727 | break |
| 10728 | fi |
| 10729 | done |
| 10730 | IFS=$lt_save_ifs |
| 10731 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10732 | ;; |
| 10733 | esac ;; |
| 10734 | esac |
| 10735 | fi |
| 10736 | |
| 10737 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10738 | if test -n "$MAGIC_CMD"; then |
| 10739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10740 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 10741 | else |
| 10742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10743 | printf "%s\n" "no" >&6; } |
| 10744 | fi |
| 10745 | |
| 10746 | |
| 10747 | else |
| 10748 | MAGIC_CMD=: |
| 10749 | fi |
| 10750 | fi |
| 10751 | |
| 10752 | fi |
| 10753 | ;; |
| 10754 | esac |
| 10755 | |
| 10756 | # Use C for the default configuration in the libtool script |
| 10757 | |
| 10758 | lt_save_CC=$CC |
| 10759 | ac_ext=c |
| 10760 | ac_cpp='$CPP $CPPFLAGS' |
| 10761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10764 | |
| 10765 | |
| 10766 | # Source file extension for C test sources. |
| 10767 | ac_ext=c |
| 10768 | |
| 10769 | # Object file extension for compiled C test sources. |
| 10770 | objext=o |
| 10771 | objext=$objext |
| 10772 | |
| 10773 | # Code to be used in simple compile tests |
| 10774 | lt_simple_compile_test_code="int some_variable = 0;" |
| 10775 | |
| 10776 | # Code to be used in simple link tests |
| 10777 | lt_simple_link_test_code='int main(void){return(0);}' |
| 10778 | |
| 10779 | |
| 10780 | |
| 10781 | |
| 10782 | |
| 10783 | |
| 10784 | |
| 10785 | # If no C compiler was specified, use CC. |
| 10786 | LTCC=${LTCC-"$CC"} |
| 10787 | |
| 10788 | # If no C compiler flags were specified, use CFLAGS. |
| 10789 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10790 | |
| 10791 | # Allow CC to be a program name with arguments. |
| 10792 | compiler=$CC |
| 10793 | |
| 10794 | # Save the default compiler, since it gets overwritten when the other |
| 10795 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 10796 | compiler_DEFAULT=$CC |
| 10797 | |
| 10798 | # save warnings/boilerplate of simple test code |
| 10799 | ac_outfile=conftest.$ac_objext |
| 10800 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10801 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10802 | _lt_compiler_boilerplate=`cat conftest.err` |
| 10803 | $RM conftest* |
| 10804 | |
| 10805 | ac_outfile=conftest.$ac_objext |
| 10806 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10807 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10808 | _lt_linker_boilerplate=`cat conftest.err` |
| 10809 | $RM -r conftest* |
| 10810 | |
| 10811 | |
| 10812 | ## CAVEAT EMPTOR: |
| 10813 | ## There is no encapsulation within the following macros, do not change |
| 10814 | ## the running order or otherwise move them around unless you know exactly |
| 10815 | ## what you are doing... |
| 10816 | if test -n "$compiler"; then |
| 10817 | |
| 10818 | lt_prog_compiler_no_builtin_flag= |
| 10819 | |
| 10820 | if test yes = "$GCC"; then |
| 10821 | case $cc_basename in |
| 10822 | nvcc*) |
| 10823 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 10824 | *) |
| 10825 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 10826 | esac |
| 10827 | |
| 10828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 10829 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 10830 | if test ${lt_cv_prog_compiler_rtti_exceptions+y} |
| 10831 | then : |
| 10832 | printf %s "(cached) " >&6 |
| 10833 | else case e in #( |
| 10834 | e) lt_cv_prog_compiler_rtti_exceptions=no |
| 10835 | ac_outfile=conftest.$ac_objext |
| 10836 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10837 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 10838 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10839 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10840 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10841 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10842 | # The option is referenced via a variable to avoid confusing sed. |
| 10843 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10844 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10845 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10846 | -e 's:$: $lt_compiler_flag:'` |
| 10847 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10848 | (eval "$lt_compile" 2>conftest.err) |
| 10849 | ac_status=$? |
| 10850 | cat conftest.err >&5 |
| 10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10852 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10853 | # The compiler can only warn and ignore the option if not recognized |
| 10854 | # So say no if there are warnings other than the usual output. |
| 10855 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10856 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10857 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10858 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 10859 | fi |
| 10860 | fi |
| 10861 | $RM conftest* |
| 10862 | ;; |
| 10863 | esac |
| 10864 | fi |
| 10865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 10866 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 10867 | |
| 10868 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 10869 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 10870 | else |
| 10871 | : |
| 10872 | fi |
| 10873 | |
| 10874 | fi |
| 10875 | |
| 10876 | |
| 10877 | |
| 10878 | |
| 10879 | |
| 10880 | |
| 10881 | lt_prog_compiler_wl= |
| 10882 | lt_prog_compiler_pic= |
| 10883 | lt_prog_compiler_static= |
| 10884 | |
| 10885 | |
| 10886 | if test yes = "$GCC"; then |
| 10887 | lt_prog_compiler_wl='-Wl,' |
| 10888 | lt_prog_compiler_static='-static' |
| 10889 | |
| 10890 | case $host_os in |
| 10891 | aix*) |
| 10892 | # All AIX code is PIC. |
| 10893 | if test ia64 = "$host_cpu"; then |
| 10894 | # AIX 5 now supports IA64 processor |
| 10895 | lt_prog_compiler_static='-Bstatic' |
| 10896 | fi |
| 10897 | lt_prog_compiler_pic='-fPIC' |
| 10898 | ;; |
| 10899 | |
| 10900 | amigaos*) |
| 10901 | case $host_cpu in |
| 10902 | powerpc) |
| 10903 | # see comment about AmigaOS4 .so support |
| 10904 | lt_prog_compiler_pic='-fPIC' |
| 10905 | ;; |
| 10906 | m68k) |
| 10907 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10908 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 10909 | # like '-m68040'. |
| 10910 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 10911 | ;; |
| 10912 | esac |
| 10913 | ;; |
| 10914 | |
| 10915 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10916 | # PIC is the default for these OSes. |
| 10917 | ;; |
| 10918 | |
| 10919 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 10920 | # This hack is so that the source file can tell whether it is being |
| 10921 | # built for inclusion in a dll (and should export symbols for example). |
| 10922 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10923 | # (--disable-auto-import) libraries |
| 10924 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10925 | case $host_os in |
| 10926 | os2*) |
| 10927 | lt_prog_compiler_static='$wl-static' |
| 10928 | ;; |
| 10929 | esac |
| 10930 | ;; |
| 10931 | |
| 10932 | darwin* | rhapsody*) |
| 10933 | # PIC is the default on this platform |
| 10934 | # Common symbols not allowed in MH_DYLIB files |
| 10935 | lt_prog_compiler_pic='-fno-common' |
| 10936 | ;; |
| 10937 | |
| 10938 | haiku*) |
| 10939 | # PIC is the default for Haiku. |
| 10940 | # The "-static" flag exists, but is broken. |
| 10941 | lt_prog_compiler_static= |
| 10942 | ;; |
| 10943 | |
| 10944 | hpux*) |
| 10945 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 10946 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 10947 | # sets the default TLS model and affects inlining. |
| 10948 | case $host_cpu in |
| 10949 | hppa*64*) |
| 10950 | # +Z the default |
| 10951 | ;; |
| 10952 | *) |
| 10953 | lt_prog_compiler_pic='-fPIC' |
| 10954 | ;; |
| 10955 | esac |
| 10956 | ;; |
| 10957 | |
| 10958 | interix[3-9]*) |
| 10959 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10960 | # Instead, we relocate shared libraries at runtime. |
| 10961 | ;; |
| 10962 | |
| 10963 | msdosdjgpp*) |
| 10964 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10965 | # on systems that don't support them. |
| 10966 | lt_prog_compiler_can_build_shared=no |
| 10967 | enable_shared=no |
| 10968 | ;; |
| 10969 | |
| 10970 | *nto* | *qnx*) |
| 10971 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10972 | # it will coredump. |
| 10973 | lt_prog_compiler_pic='-fPIC -shared' |
| 10974 | ;; |
| 10975 | |
| 10976 | sysv4*MP*) |
| 10977 | if test -d /usr/nec; then |
| 10978 | lt_prog_compiler_pic=-Kconform_pic |
| 10979 | fi |
| 10980 | ;; |
| 10981 | |
| 10982 | *) |
| 10983 | lt_prog_compiler_pic='-fPIC' |
| 10984 | ;; |
| 10985 | esac |
| 10986 | |
| 10987 | case $cc_basename in |
| 10988 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10989 | lt_prog_compiler_wl='-Xlinker ' |
| 10990 | if test -n "$lt_prog_compiler_pic"; then |
| 10991 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 10992 | fi |
| 10993 | ;; |
| 10994 | esac |
| 10995 | else |
| 10996 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 10997 | case $host_os in |
| 10998 | aix*) |
| 10999 | lt_prog_compiler_wl='-Wl,' |
| 11000 | if test ia64 = "$host_cpu"; then |
| 11001 | # AIX 5 now supports IA64 processor |
| 11002 | lt_prog_compiler_static='-Bstatic' |
| 11003 | else |
| 11004 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 11005 | fi |
| 11006 | ;; |
| 11007 | |
| 11008 | darwin* | rhapsody*) |
| 11009 | # PIC is the default on this platform |
| 11010 | # Common symbols not allowed in MH_DYLIB files |
| 11011 | lt_prog_compiler_pic='-fno-common' |
| 11012 | case $cc_basename in |
| 11013 | nagfor*) |
| 11014 | # NAG Fortran compiler |
| 11015 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 11016 | lt_prog_compiler_pic='-PIC' |
| 11017 | lt_prog_compiler_static='-Bstatic' |
| 11018 | ;; |
| 11019 | esac |
| 11020 | ;; |
| 11021 | |
| 11022 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 11023 | # This hack is so that the source file can tell whether it is being |
| 11024 | # built for inclusion in a dll (and should export symbols for example). |
| 11025 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11026 | case $host_os in |
| 11027 | os2*) |
| 11028 | lt_prog_compiler_static='$wl-static' |
| 11029 | ;; |
| 11030 | esac |
| 11031 | ;; |
| 11032 | |
| 11033 | hpux9* | hpux10* | hpux11*) |
| 11034 | lt_prog_compiler_wl='-Wl,' |
| 11035 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11036 | # not for PA HP-UX. |
| 11037 | case $host_cpu in |
| 11038 | hppa*64*|ia64*) |
| 11039 | # +Z the default |
| 11040 | ;; |
| 11041 | *) |
| 11042 | lt_prog_compiler_pic='+Z' |
| 11043 | ;; |
| 11044 | esac |
| 11045 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 11046 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 11047 | ;; |
| 11048 | |
| 11049 | irix5* | irix6* | nonstopux*) |
| 11050 | lt_prog_compiler_wl='-Wl,' |
| 11051 | # PIC (with -KPIC) is the default. |
| 11052 | lt_prog_compiler_static='-non_shared' |
| 11053 | ;; |
| 11054 | |
| 11055 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 11056 | case $cc_basename in |
| 11057 | # old Intel for x86_64, which still supported -KPIC. |
| 11058 | ecc*) |
| 11059 | lt_prog_compiler_wl='-Wl,' |
| 11060 | lt_prog_compiler_pic='-KPIC' |
| 11061 | lt_prog_compiler_static='-static' |
| 11062 | ;; |
| 11063 | *flang* | ftn | f18* | f95*) |
| 11064 | # Flang compiler. |
| 11065 | lt_prog_compiler_wl='-Wl,' |
| 11066 | lt_prog_compiler_pic='-fPIC' |
| 11067 | lt_prog_compiler_static='-static' |
| 11068 | ;; |
| 11069 | # icc used to be incompatible with GCC. |
| 11070 | # ICC 10 doesn't accept -KPIC any more. |
| 11071 | icc* | ifort*) |
| 11072 | lt_prog_compiler_wl='-Wl,' |
| 11073 | lt_prog_compiler_pic='-fPIC' |
| 11074 | lt_prog_compiler_static='-static' |
| 11075 | ;; |
| 11076 | # Lahey Fortran 8.1. |
| 11077 | lf95*) |
| 11078 | lt_prog_compiler_wl='-Wl,' |
| 11079 | lt_prog_compiler_pic='--shared' |
| 11080 | lt_prog_compiler_static='--static' |
| 11081 | ;; |
| 11082 | nagfor*) |
| 11083 | # NAG Fortran compiler |
| 11084 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 11085 | lt_prog_compiler_pic='-PIC' |
| 11086 | lt_prog_compiler_static='-Bstatic' |
| 11087 | ;; |
| 11088 | tcc*) |
| 11089 | # Fabrice Bellard et al's Tiny C Compiler |
| 11090 | lt_prog_compiler_wl='-Wl,' |
| 11091 | lt_prog_compiler_pic='-fPIC' |
| 11092 | lt_prog_compiler_static='-static' |
| 11093 | ;; |
| 11094 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11095 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 11096 | # which looks to be a dead project) |
| 11097 | lt_prog_compiler_wl='-Wl,' |
| 11098 | lt_prog_compiler_pic='-fpic' |
| 11099 | lt_prog_compiler_static='-Bstatic' |
| 11100 | ;; |
| 11101 | ccc*) |
| 11102 | lt_prog_compiler_wl='-Wl,' |
| 11103 | # All Alpha code is PIC. |
| 11104 | lt_prog_compiler_static='-non_shared' |
| 11105 | ;; |
| 11106 | xl* | bgxl* | bgf* | mpixl*) |
| 11107 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 11108 | lt_prog_compiler_wl='-Wl,' |
| 11109 | lt_prog_compiler_pic='-qpic' |
| 11110 | lt_prog_compiler_static='-qstaticlink' |
| 11111 | ;; |
| 11112 | *) |
| 11113 | case `$CC -V 2>&1 | $SED 5q` in |
| 11114 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 11115 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 11116 | lt_prog_compiler_pic='-KPIC' |
| 11117 | lt_prog_compiler_static='-Bstatic' |
| 11118 | lt_prog_compiler_wl='' |
| 11119 | ;; |
| 11120 | *Sun\ F* | *Sun*Fortran*) |
| 11121 | lt_prog_compiler_pic='-KPIC' |
| 11122 | lt_prog_compiler_static='-Bstatic' |
| 11123 | lt_prog_compiler_wl='-Qoption ld ' |
| 11124 | ;; |
| 11125 | *Sun\ C*) |
| 11126 | # Sun C 5.9 |
| 11127 | lt_prog_compiler_pic='-KPIC' |
| 11128 | lt_prog_compiler_static='-Bstatic' |
| 11129 | lt_prog_compiler_wl='-Wl,' |
| 11130 | ;; |
| 11131 | *Intel*\ [CF]*Compiler*) |
| 11132 | lt_prog_compiler_wl='-Wl,' |
| 11133 | lt_prog_compiler_pic='-fPIC' |
| 11134 | lt_prog_compiler_static='-static' |
| 11135 | ;; |
| 11136 | *Portland\ Group*) |
| 11137 | lt_prog_compiler_wl='-Wl,' |
| 11138 | lt_prog_compiler_pic='-fpic' |
| 11139 | lt_prog_compiler_static='-Bstatic' |
| 11140 | ;; |
| 11141 | esac |
| 11142 | ;; |
| 11143 | esac |
| 11144 | ;; |
| 11145 | |
| 11146 | newsos6) |
| 11147 | lt_prog_compiler_pic='-KPIC' |
| 11148 | lt_prog_compiler_static='-Bstatic' |
| 11149 | ;; |
| 11150 | |
| 11151 | *-mlibc) |
| 11152 | lt_prog_compiler_wl='-Wl,' |
| 11153 | lt_prog_compiler_pic='-fPIC' |
| 11154 | lt_prog_compiler_static='-static' |
| 11155 | ;; |
| 11156 | |
| 11157 | *nto* | *qnx*) |
| 11158 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11159 | # it will coredump. |
| 11160 | lt_prog_compiler_pic='-fPIC -shared' |
| 11161 | ;; |
| 11162 | |
| 11163 | osf3* | osf4* | osf5*) |
| 11164 | lt_prog_compiler_wl='-Wl,' |
| 11165 | # All OSF/1 code is PIC. |
| 11166 | lt_prog_compiler_static='-non_shared' |
| 11167 | ;; |
| 11168 | |
| 11169 | rdos*) |
| 11170 | lt_prog_compiler_static='-non_shared' |
| 11171 | ;; |
| 11172 | |
| 11173 | serenity*) |
| 11174 | ;; |
| 11175 | |
| 11176 | solaris*) |
| 11177 | lt_prog_compiler_pic='-KPIC' |
| 11178 | lt_prog_compiler_static='-Bstatic' |
| 11179 | case $cc_basename in |
| 11180 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 11181 | lt_prog_compiler_wl='-Qoption ld ';; |
| 11182 | *) |
| 11183 | lt_prog_compiler_wl='-Wl,';; |
| 11184 | esac |
| 11185 | ;; |
| 11186 | |
| 11187 | sunos4*) |
| 11188 | lt_prog_compiler_wl='-Qoption ld ' |
| 11189 | lt_prog_compiler_pic='-PIC' |
| 11190 | lt_prog_compiler_static='-Bstatic' |
| 11191 | ;; |
| 11192 | |
| 11193 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 11194 | lt_prog_compiler_wl='-Wl,' |
| 11195 | lt_prog_compiler_pic='-KPIC' |
| 11196 | lt_prog_compiler_static='-Bstatic' |
| 11197 | ;; |
| 11198 | |
| 11199 | sysv4*MP*) |
| 11200 | if test -d /usr/nec; then |
| 11201 | lt_prog_compiler_pic='-Kconform_pic' |
| 11202 | lt_prog_compiler_static='-Bstatic' |
| 11203 | fi |
| 11204 | ;; |
| 11205 | |
| 11206 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11207 | lt_prog_compiler_wl='-Wl,' |
| 11208 | lt_prog_compiler_pic='-KPIC' |
| 11209 | lt_prog_compiler_static='-Bstatic' |
| 11210 | ;; |
| 11211 | |
| 11212 | unicos*) |
| 11213 | lt_prog_compiler_wl='-Wl,' |
| 11214 | lt_prog_compiler_can_build_shared=no |
| 11215 | ;; |
| 11216 | |
| 11217 | uts4*) |
| 11218 | lt_prog_compiler_pic='-pic' |
| 11219 | lt_prog_compiler_static='-Bstatic' |
| 11220 | ;; |
| 11221 | |
| 11222 | *) |
| 11223 | lt_prog_compiler_can_build_shared=no |
| 11224 | ;; |
| 11225 | esac |
| 11226 | fi |
| 11227 | |
| 11228 | case $host_os in |
| 11229 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 11230 | *djgpp*) |
| 11231 | lt_prog_compiler_pic= |
| 11232 | ;; |
| 11233 | *) |
| 11234 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 11235 | ;; |
| 11236 | esac |
| 11237 | |
| 11238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 11239 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 11240 | if test ${lt_cv_prog_compiler_pic+y} |
| 11241 | then : |
| 11242 | printf %s "(cached) " >&6 |
| 11243 | else case e in #( |
| 11244 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; |
| 11245 | esac |
| 11246 | fi |
| 11247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 11248 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 11249 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 11250 | |
| 11251 | # |
| 11252 | # Check to make sure the PIC flag actually works. |
| 11253 | # |
| 11254 | if test -n "$lt_prog_compiler_pic"; then |
| 11255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 11256 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 11257 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 11258 | then : |
| 11259 | printf %s "(cached) " >&6 |
| 11260 | else case e in #( |
| 11261 | e) lt_cv_prog_compiler_pic_works=no |
| 11262 | ac_outfile=conftest.$ac_objext |
| 11263 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11264 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 11265 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11266 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11267 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11268 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11269 | # The option is referenced via a variable to avoid confusing sed. |
| 11270 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11271 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11272 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11273 | -e 's:$: $lt_compiler_flag:'` |
| 11274 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11275 | (eval "$lt_compile" 2>conftest.err) |
| 11276 | ac_status=$? |
| 11277 | cat conftest.err >&5 |
| 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11279 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11280 | # The compiler can only warn and ignore the option if not recognized |
| 11281 | # So say no if there are warnings other than the usual output. |
| 11282 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 11283 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11284 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11285 | lt_cv_prog_compiler_pic_works=yes |
| 11286 | fi |
| 11287 | fi |
| 11288 | $RM conftest* |
| 11289 | ;; |
| 11290 | esac |
| 11291 | fi |
| 11292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 11293 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 11294 | |
| 11295 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 11296 | case $lt_prog_compiler_pic in |
| 11297 | "" | " "*) ;; |
| 11298 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 11299 | esac |
| 11300 | else |
| 11301 | lt_prog_compiler_pic= |
| 11302 | lt_prog_compiler_can_build_shared=no |
| 11303 | fi |
| 11304 | |
| 11305 | fi |
| 11306 | |
| 11307 | |
| 11308 | |
| 11309 | |
| 11310 | |
| 11311 | |
| 11312 | |
| 11313 | |
| 11314 | |
| 11315 | |
| 11316 | |
| 11317 | # |
| 11318 | # Check to make sure the static flag actually works. |
| 11319 | # |
| 11320 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 11321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 11322 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 11323 | if test ${lt_cv_prog_compiler_static_works+y} |
| 11324 | then : |
| 11325 | printf %s "(cached) " >&6 |
| 11326 | else case e in #( |
| 11327 | e) lt_cv_prog_compiler_static_works=no |
| 11328 | save_LDFLAGS=$LDFLAGS |
| 11329 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 11330 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11331 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11332 | # The linker can only warn and ignore the option if not recognized |
| 11333 | # So say no if there are warnings |
| 11334 | if test -s conftest.err; then |
| 11335 | # Append any errors to the config.log. |
| 11336 | cat conftest.err 1>&5 |
| 11337 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 11338 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11339 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 11340 | lt_cv_prog_compiler_static_works=yes |
| 11341 | fi |
| 11342 | else |
| 11343 | lt_cv_prog_compiler_static_works=yes |
| 11344 | fi |
| 11345 | fi |
| 11346 | $RM -r conftest* |
| 11347 | LDFLAGS=$save_LDFLAGS |
| 11348 | ;; |
| 11349 | esac |
| 11350 | fi |
| 11351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 11352 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 11353 | |
| 11354 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 11355 | : |
| 11356 | else |
| 11357 | lt_prog_compiler_static= |
| 11358 | fi |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11367 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11368 | if test ${lt_cv_prog_compiler_c_o+y} |
| 11369 | then : |
| 11370 | printf %s "(cached) " >&6 |
| 11371 | else case e in #( |
| 11372 | e) lt_cv_prog_compiler_c_o=no |
| 11373 | $RM -r conftest 2>/dev/null |
| 11374 | mkdir conftest |
| 11375 | cd conftest |
| 11376 | mkdir out |
| 11377 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11378 | |
| 11379 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11380 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11381 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11382 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11383 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11384 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11385 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11386 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11387 | -e 's:$: $lt_compiler_flag:'` |
| 11388 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11389 | (eval "$lt_compile" 2>out/conftest.err) |
| 11390 | ac_status=$? |
| 11391 | cat out/conftest.err >&5 |
| 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11394 | then |
| 11395 | # The compiler can only warn and ignore the option if not recognized |
| 11396 | # So say no if there are warnings |
| 11397 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11398 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11399 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11400 | lt_cv_prog_compiler_c_o=yes |
| 11401 | fi |
| 11402 | fi |
| 11403 | chmod u+w . 2>&5 |
| 11404 | $RM conftest* |
| 11405 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11406 | # template instantiation |
| 11407 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11408 | $RM out/* && rmdir out |
| 11409 | cd .. |
| 11410 | $RM -r conftest |
| 11411 | $RM conftest* |
| 11412 | ;; |
| 11413 | esac |
| 11414 | fi |
| 11415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11416 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11424 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11425 | if test ${lt_cv_prog_compiler_c_o+y} |
| 11426 | then : |
| 11427 | printf %s "(cached) " >&6 |
| 11428 | else case e in #( |
| 11429 | e) lt_cv_prog_compiler_c_o=no |
| 11430 | $RM -r conftest 2>/dev/null |
| 11431 | mkdir conftest |
| 11432 | cd conftest |
| 11433 | mkdir out |
| 11434 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11435 | |
| 11436 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11437 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11438 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11439 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11440 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11441 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11442 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11443 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11444 | -e 's:$: $lt_compiler_flag:'` |
| 11445 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11446 | (eval "$lt_compile" 2>out/conftest.err) |
| 11447 | ac_status=$? |
| 11448 | cat out/conftest.err >&5 |
| 11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11450 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11451 | then |
| 11452 | # The compiler can only warn and ignore the option if not recognized |
| 11453 | # So say no if there are warnings |
| 11454 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11455 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11456 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11457 | lt_cv_prog_compiler_c_o=yes |
| 11458 | fi |
| 11459 | fi |
| 11460 | chmod u+w . 2>&5 |
| 11461 | $RM conftest* |
| 11462 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11463 | # template instantiation |
| 11464 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11465 | $RM out/* && rmdir out |
| 11466 | cd .. |
| 11467 | $RM -r conftest |
| 11468 | $RM conftest* |
| 11469 | ;; |
| 11470 | esac |
| 11471 | fi |
| 11472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11473 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 11474 | |
| 11475 | |
| 11476 | |
| 11477 | |
| 11478 | hard_links=nottested |
| 11479 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 11480 | # do not overwrite the value of need_locks provided by the user |
| 11481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 11482 | printf %s "checking if we can lock with hard links... " >&6; } |
| 11483 | hard_links=yes |
| 11484 | $RM conftest* |
| 11485 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11486 | touch conftest.a |
| 11487 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11488 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 11490 | printf "%s\n" "$hard_links" >&6; } |
| 11491 | if test no = "$hard_links"; then |
| 11492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 11493 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 11494 | need_locks=warn |
| 11495 | fi |
| 11496 | else |
| 11497 | need_locks=no |
| 11498 | fi |
| 11499 | |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11506 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11507 | |
| 11508 | runpath_var= |
| 11509 | allow_undefined_flag= |
| 11510 | always_export_symbols=no |
| 11511 | archive_cmds= |
| 11512 | archive_expsym_cmds= |
| 11513 | compiler_needs_object=no |
| 11514 | enable_shared_with_static_runtimes=no |
| 11515 | export_dynamic_flag_spec= |
| 11516 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11517 | hardcode_automatic=no |
| 11518 | hardcode_direct=no |
| 11519 | hardcode_direct_absolute=no |
| 11520 | hardcode_libdir_flag_spec= |
| 11521 | hardcode_libdir_separator= |
| 11522 | hardcode_minus_L=no |
| 11523 | hardcode_shlibpath_var=unsupported |
| 11524 | inherit_rpath=no |
| 11525 | link_all_deplibs=unknown |
| 11526 | module_cmds= |
| 11527 | module_expsym_cmds= |
| 11528 | old_archive_from_new_cmds= |
| 11529 | old_archive_from_expsyms_cmds= |
| 11530 | thread_safe_flag_spec= |
| 11531 | whole_archive_flag_spec= |
| 11532 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 11533 | # included in the symbol list |
| 11534 | include_expsyms= |
| 11535 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 11536 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 11537 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 11538 | # as well as any symbol that contains 'd'. |
| 11539 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 11540 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 11541 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 11542 | # the symbol is explicitly referenced. Since portable code cannot |
| 11543 | # rely on this symbol name, it's probably fine to never include it in |
| 11544 | # preloaded symbol tables. |
| 11545 | # Exclude shared library initialization/finalization symbols. |
| 11546 | extract_expsyms_cmds= |
| 11547 | |
| 11548 | case $host_os in |
| 11549 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 11550 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time |
| 11551 | # When not using gcc, we currently assume that we are using |
| 11552 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 11553 | if test yes != "$GCC"; then |
| 11554 | with_gnu_ld=no |
| 11555 | fi |
| 11556 | ;; |
| 11557 | interix*) |
| 11558 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) |
| 11559 | with_gnu_ld=yes |
| 11560 | ;; |
| 11561 | esac |
| 11562 | |
| 11563 | ld_shlibs=yes |
| 11564 | |
| 11565 | # On some targets, GNU ld is compatible enough with the native linker |
| 11566 | # that we're better off using the native interface for both. |
| 11567 | lt_use_gnu_ld_interface=no |
| 11568 | if test yes = "$with_gnu_ld"; then |
| 11569 | case $host_os in |
| 11570 | aix*) |
| 11571 | # The AIX port of GNU ld has always aspired to compatibility |
| 11572 | # with the native linker. However, as the warning in the GNU ld |
| 11573 | # block says, versions before 2.19.5* couldn't really create working |
| 11574 | # shared libraries, regardless of the interface used. |
| 11575 | case `$LD -v 2>&1` in |
| 11576 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 11577 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 11578 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 11579 | *) |
| 11580 | lt_use_gnu_ld_interface=yes |
| 11581 | ;; |
| 11582 | esac |
| 11583 | ;; |
| 11584 | *) |
| 11585 | lt_use_gnu_ld_interface=yes |
| 11586 | ;; |
| 11587 | esac |
| 11588 | fi |
| 11589 | |
| 11590 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 11591 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11592 | wlarc='$wl' |
| 11593 | |
| 11594 | # Set some defaults for GNU ld with shared library support. These |
| 11595 | # are reset later if shared libraries are not supported. Putting them |
| 11596 | # here allows them to be overridden if necessary. |
| 11597 | runpath_var=LD_RUN_PATH |
| 11598 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11599 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 11600 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11601 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 11602 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 11603 | else |
| 11604 | whole_archive_flag_spec= |
| 11605 | fi |
| 11606 | supports_anon_versioning=no |
| 11607 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
| 11608 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 11609 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11610 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11611 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11612 | *\ 2.11.*) ;; # other 2.11 versions |
| 11613 | *) supports_anon_versioning=yes ;; |
| 11614 | esac |
| 11615 | |
| 11616 | # See if GNU ld supports shared libraries. |
| 11617 | case $host_os in |
| 11618 | aix[3-9]*) |
| 11619 | # On AIX/PPC, the GNU linker is very broken |
| 11620 | if test ia64 != "$host_cpu"; then |
| 11621 | ld_shlibs=no |
| 11622 | cat <<_LT_EOF 1>&2 |
| 11623 | |
| 11624 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 11625 | *** to be unable to reliably create shared libraries on AIX. |
| 11626 | *** Therefore, libtool is disabling shared libraries support. If you |
| 11627 | *** really care for shared libraries, you may want to install binutils |
| 11628 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 11629 | *** You will then need to restart the configuration process. |
| 11630 | |
| 11631 | _LT_EOF |
| 11632 | fi |
| 11633 | ;; |
| 11634 | |
| 11635 | amigaos*) |
| 11636 | case $host_cpu in |
| 11637 | powerpc) |
| 11638 | # see comment about AmigaOS4 .so support |
| 11639 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11640 | archive_expsym_cmds='' |
| 11641 | ;; |
| 11642 | m68k) |
| 11643 | 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)' |
| 11644 | hardcode_libdir_flag_spec='-L$libdir' |
| 11645 | hardcode_minus_L=yes |
| 11646 | ;; |
| 11647 | esac |
| 11648 | ;; |
| 11649 | |
| 11650 | beos*) |
| 11651 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11652 | allow_undefined_flag=unsupported |
| 11653 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 11654 | # support --undefined. This deserves some investigation. FIXME |
| 11655 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11656 | else |
| 11657 | ld_shlibs=no |
| 11658 | fi |
| 11659 | ;; |
| 11660 | |
| 11661 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 11662 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 11663 | # as there is no search path for DLLs. |
| 11664 | hardcode_libdir_flag_spec='-L$libdir' |
| 11665 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 11666 | allow_undefined_flag=unsupported |
| 11667 | always_export_symbols=no |
| 11668 | enable_shared_with_static_runtimes=yes |
| 11669 | 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' |
| 11670 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 11671 | file_list_spec='@' |
| 11672 | |
| 11673 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11674 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11675 | # If the export-symbols file already is a .def file, use it as |
| 11676 | # is; otherwise, prepend EXPORTS... |
| 11677 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11678 | cp $export_symbols $output_objdir/$soname.def; |
| 11679 | else |
| 11680 | echo EXPORTS > $output_objdir/$soname.def; |
| 11681 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11682 | fi~ |
| 11683 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11684 | else |
| 11685 | ld_shlibs=no |
| 11686 | fi |
| 11687 | ;; |
| 11688 | |
| 11689 | haiku*) |
| 11690 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11691 | link_all_deplibs=no |
| 11692 | ;; |
| 11693 | |
| 11694 | os2*) |
| 11695 | hardcode_libdir_flag_spec='-L$libdir' |
| 11696 | hardcode_minus_L=yes |
| 11697 | allow_undefined_flag=unsupported |
| 11698 | shrext_cmds=.dll |
| 11699 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11700 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11701 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11702 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11703 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 11704 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11705 | emximp -o $lib $output_objdir/$libname.def' |
| 11706 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11707 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11708 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11709 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11710 | prefix_cmds="$SED"~ |
| 11711 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 11712 | prefix_cmds="$prefix_cmds -e 1d"; |
| 11713 | fi~ |
| 11714 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 11715 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 11716 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11717 | emximp -o $lib $output_objdir/$libname.def' |
| 11718 | old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 11719 | enable_shared_with_static_runtimes=yes |
| 11720 | file_list_spec='@' |
| 11721 | ;; |
| 11722 | |
| 11723 | interix[3-9]*) |
| 11724 | hardcode_direct=no |
| 11725 | hardcode_shlibpath_var=no |
| 11726 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 11727 | export_dynamic_flag_spec='$wl-E' |
| 11728 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11729 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11730 | # default) and relocated if they conflict, which is a slow very memory |
| 11731 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11732 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11733 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11734 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11735 | 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' |
| 11736 | ;; |
| 11737 | |
| 11738 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11739 | tmp_diet=no |
| 11740 | if test linux-dietlibc = "$host_os"; then |
| 11741 | case $cc_basename in |
| 11742 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 11743 | esac |
| 11744 | fi |
| 11745 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 11746 | && test no = "$tmp_diet" |
| 11747 | then |
| 11748 | tmp_addflag=' $pic_flag' |
| 11749 | tmp_sharedflag='-shared' |
| 11750 | case $cc_basename,$host_cpu in |
| 11751 | pgcc*) # Portland Group C compiler |
| 11752 | 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' |
| 11753 | tmp_addflag=' $pic_flag' |
| 11754 | ;; |
| 11755 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11756 | # Portland Group f77 and f90 compilers |
| 11757 | 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' |
| 11758 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 11759 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 11760 | tmp_addflag=' -i_dynamic' ;; |
| 11761 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 11762 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 11763 | ifc* | ifort*) # Intel Fortran compiler |
| 11764 | tmp_addflag=' -nofor_main' ;; |
| 11765 | lf95*) # Lahey Fortran 8.1 |
| 11766 | whole_archive_flag_spec= |
| 11767 | tmp_sharedflag='--shared' ;; |
| 11768 | nagfor*) # NAGFOR 5.3 |
| 11769 | tmp_sharedflag='-Wl,-shared' ;; |
| 11770 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 11771 | tmp_sharedflag='-qmkshrobj' |
| 11772 | tmp_addflag= ;; |
| 11773 | nvcc*) # Cuda Compiler Driver 2.2 |
| 11774 | 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' |
| 11775 | compiler_needs_object=yes |
| 11776 | ;; |
| 11777 | esac |
| 11778 | case `$CC -V 2>&1 | $SED 5q` in |
| 11779 | *Sun\ C*) # Sun C 5.9 |
| 11780 | 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' |
| 11781 | compiler_needs_object=yes |
| 11782 | tmp_sharedflag='-G' ;; |
| 11783 | *Sun\ F*) # Sun Fortran 8.3 |
| 11784 | tmp_sharedflag='-G' ;; |
| 11785 | esac |
| 11786 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11787 | |
| 11788 | if test yes = "$supports_anon_versioning"; then |
| 11789 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11790 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11791 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11792 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 11793 | fi |
| 11794 | |
| 11795 | case $cc_basename in |
| 11796 | tcc*) |
| 11797 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11798 | export_dynamic_flag_spec='-rdynamic' |
| 11799 | ;; |
| 11800 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 11801 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 11802 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 11803 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11804 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 11805 | if test yes = "$supports_anon_versioning"; then |
| 11806 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11807 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11808 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11809 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 11810 | fi |
| 11811 | ;; |
| 11812 | esac |
| 11813 | else |
| 11814 | ld_shlibs=no |
| 11815 | fi |
| 11816 | ;; |
| 11817 | |
| 11818 | *-mlibc) |
| 11819 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11820 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11821 | ;; |
| 11822 | |
| 11823 | netbsd* | netbsdelf*-gnu) |
| 11824 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11825 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 11826 | wlarc= |
| 11827 | else |
| 11828 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11829 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11830 | fi |
| 11831 | ;; |
| 11832 | |
| 11833 | solaris*) |
| 11834 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 11835 | ld_shlibs=no |
| 11836 | cat <<_LT_EOF 1>&2 |
| 11837 | |
| 11838 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 11839 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 11840 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 11841 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 11842 | *** your PATH or compiler configuration so that the native linker is |
| 11843 | *** used, and then restart. |
| 11844 | |
| 11845 | _LT_EOF |
| 11846 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11847 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11848 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11849 | else |
| 11850 | ld_shlibs=no |
| 11851 | fi |
| 11852 | ;; |
| 11853 | |
| 11854 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 11855 | case `$LD -v 2>&1` in |
| 11856 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 11857 | ld_shlibs=no |
| 11858 | cat <<_LT_EOF 1>&2 |
| 11859 | |
| 11860 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 11861 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 11862 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 11863 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 11864 | *** your PATH or compiler configuration so that the native linker is |
| 11865 | *** used, and then restart. |
| 11866 | |
| 11867 | _LT_EOF |
| 11868 | ;; |
| 11869 | *) |
| 11870 | # For security reasons, it is highly recommended that you always |
| 11871 | # use absolute paths for naming shared libraries, and exclude the |
| 11872 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 11873 | # requires that you compile everything twice, which is a pain. |
| 11874 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11875 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11876 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11877 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11878 | else |
| 11879 | ld_shlibs=no |
| 11880 | fi |
| 11881 | ;; |
| 11882 | esac |
| 11883 | ;; |
| 11884 | |
| 11885 | sunos4*) |
| 11886 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11887 | wlarc= |
| 11888 | hardcode_direct=yes |
| 11889 | hardcode_shlibpath_var=no |
| 11890 | ;; |
| 11891 | |
| 11892 | *) |
| 11893 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11894 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11895 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11896 | else |
| 11897 | ld_shlibs=no |
| 11898 | fi |
| 11899 | ;; |
| 11900 | esac |
| 11901 | |
| 11902 | if test no = "$ld_shlibs"; then |
| 11903 | runpath_var= |
| 11904 | hardcode_libdir_flag_spec= |
| 11905 | export_dynamic_flag_spec= |
| 11906 | whole_archive_flag_spec= |
| 11907 | fi |
| 11908 | else |
| 11909 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 11910 | case $host_os in |
| 11911 | aix3*) |
| 11912 | allow_undefined_flag=unsupported |
| 11913 | always_export_symbols=yes |
| 11914 | 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' |
| 11915 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 11916 | # are no directories specified by -L. |
| 11917 | hardcode_minus_L=yes |
| 11918 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 11919 | # Neither direct hardcoding nor static linking is supported with a |
| 11920 | # broken collect2. |
| 11921 | hardcode_direct=unsupported |
| 11922 | fi |
| 11923 | ;; |
| 11924 | |
| 11925 | aix[4-9]*) |
| 11926 | if test ia64 = "$host_cpu"; then |
| 11927 | # On IA64, the linker does run time linking by default, so we don't |
| 11928 | # have to do anything special. |
| 11929 | aix_use_runtimelinking=no |
| 11930 | exp_sym_flag='-Bexport' |
| 11931 | no_entry_flag= |
| 11932 | else |
| 11933 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11934 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 11935 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 11936 | # weak defined symbols like other global defined symbols, whereas |
| 11937 | # GNU nm marks them as "W". |
| 11938 | # While the 'weak' keyword is ignored in the Export File, we need |
| 11939 | # it in the Import File for the 'aix-soname' feature, so we have |
| 11940 | # to replace the "-B" option with "-P" for AIX nm. |
| 11941 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 11942 | 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' |
| 11943 | else |
| 11944 | 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' |
| 11945 | fi |
| 11946 | aix_use_runtimelinking=no |
| 11947 | |
| 11948 | # Test if we are trying to use run time linking or normal |
| 11949 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11950 | # have runtime linking enabled, and use it for executables. |
| 11951 | # For shared libraries, we enable/disable runtime linking |
| 11952 | # depending on the kind of the shared library created - |
| 11953 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 11954 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 11955 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 11956 | # lib.a static archive |
| 11957 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 11958 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 11959 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11960 | # lib.a(lib.so.V) shared, rtl:no |
| 11961 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11962 | # lib.a static archive |
| 11963 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11964 | for ld_flag in $LDFLAGS; do |
| 11965 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 11966 | aix_use_runtimelinking=yes |
| 11967 | break |
| 11968 | fi |
| 11969 | done |
| 11970 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11971 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 11972 | # so we don't have lib.a shared libs to link our executables. |
| 11973 | # We have to force runtime linking in this case. |
| 11974 | aix_use_runtimelinking=yes |
| 11975 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 11976 | fi |
| 11977 | ;; |
| 11978 | esac |
| 11979 | |
| 11980 | exp_sym_flag='-bexport' |
| 11981 | no_entry_flag='-bnoentry' |
| 11982 | fi |
| 11983 | |
| 11984 | # When large executables or shared objects are built, AIX ld can |
| 11985 | # have problems creating the table of contents. If linking a library |
| 11986 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11987 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11988 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11989 | |
| 11990 | archive_cmds='' |
| 11991 | hardcode_direct=yes |
| 11992 | hardcode_direct_absolute=yes |
| 11993 | hardcode_libdir_separator=':' |
| 11994 | link_all_deplibs=yes |
| 11995 | file_list_spec='$wl-f,' |
| 11996 | case $with_aix_soname,$aix_use_runtimelinking in |
| 11997 | aix,*) ;; # traditional, no import file |
| 11998 | svr4,* | *,yes) # use import file |
| 11999 | # The Import File defines what to hardcode. |
| 12000 | hardcode_direct=no |
| 12001 | hardcode_direct_absolute=no |
| 12002 | ;; |
| 12003 | esac |
| 12004 | |
| 12005 | if test yes = "$GCC"; then |
| 12006 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12007 | # We only want to do this on AIX 4.2 and lower, the check |
| 12008 | # below for broken collect2 doesn't work under 4.3+ |
| 12009 | collect2name=`$CC -print-prog-name=collect2` |
| 12010 | if test -f "$collect2name" && |
| 12011 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12012 | then |
| 12013 | # We have reworked collect2 |
| 12014 | : |
| 12015 | else |
| 12016 | # We have old collect2 |
| 12017 | hardcode_direct=unsupported |
| 12018 | # It fails to find uninstalled libraries when the uninstalled |
| 12019 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12020 | # to unsupported forces relinking |
| 12021 | hardcode_minus_L=yes |
| 12022 | hardcode_libdir_flag_spec='-L$libdir' |
| 12023 | hardcode_libdir_separator= |
| 12024 | fi |
| 12025 | ;; |
| 12026 | esac |
| 12027 | shared_flag='-shared' |
| 12028 | if test yes = "$aix_use_runtimelinking"; then |
| 12029 | shared_flag="$shared_flag "'$wl-G' |
| 12030 | fi |
| 12031 | # Need to ensure runtime linking is disabled for the traditional |
| 12032 | # shared library, or the linker may eventually find shared libraries |
| 12033 | # /with/ Import File - we do not want to mix them. |
| 12034 | shared_flag_aix='-shared' |
| 12035 | shared_flag_svr4='-shared $wl-G' |
| 12036 | else |
| 12037 | # not using gcc |
| 12038 | if test ia64 = "$host_cpu"; then |
| 12039 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12040 | # chokes on -Wl,-G. The following line is correct: |
| 12041 | shared_flag='-G' |
| 12042 | else |
| 12043 | if test yes = "$aix_use_runtimelinking"; then |
| 12044 | shared_flag='$wl-G' |
| 12045 | else |
| 12046 | shared_flag='$wl-bM:SRE' |
| 12047 | fi |
| 12048 | shared_flag_aix='$wl-bM:SRE' |
| 12049 | shared_flag_svr4='$wl-G' |
| 12050 | fi |
| 12051 | fi |
| 12052 | |
| 12053 | export_dynamic_flag_spec='$wl-bexpall' |
| 12054 | # It seems that -bexpall does not export symbols beginning with |
| 12055 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12056 | always_export_symbols=yes |
| 12057 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 12058 | # Warning - without using the other runtime loading flags (-brtl), |
| 12059 | # -berok will link without error, but may produce a broken library. |
| 12060 | allow_undefined_flag='-berok' |
| 12061 | # Determine the default libpath from the value encoded in an |
| 12062 | # empty executable. |
| 12063 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 12064 | aix_libpath=$lt_cv_aix_libpath |
| 12065 | else |
| 12066 | if test ${lt_cv_aix_libpath_+y} |
| 12067 | then : |
| 12068 | printf %s "(cached) " >&6 |
| 12069 | else case e in #( |
| 12070 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12071 | /* end confdefs.h. */ |
| 12072 | |
| 12073 | int |
| 12074 | main (void) |
| 12075 | { |
| 12076 | |
| 12077 | ; |
| 12078 | return 0; |
| 12079 | } |
| 12080 | _ACEOF |
| 12081 | if ac_fn_c_try_link "$LINENO" |
| 12082 | then : |
| 12083 | |
| 12084 | lt_aix_libpath_sed=' |
| 12085 | /Import File Strings/,/^$/ { |
| 12086 | /^0/ { |
| 12087 | s/^0 *\([^ ]*\) *$/\1/ |
| 12088 | p |
| 12089 | } |
| 12090 | }' |
| 12091 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12092 | # Check for a 64-bit object if we didn't find anything. |
| 12093 | if test -z "$lt_cv_aix_libpath_"; then |
| 12094 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12095 | fi |
| 12096 | fi |
| 12097 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12098 | conftest$ac_exeext conftest.$ac_ext |
| 12099 | if test -z "$lt_cv_aix_libpath_"; then |
| 12100 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 12101 | fi |
| 12102 | ;; |
| 12103 | esac |
| 12104 | fi |
| 12105 | |
| 12106 | aix_libpath=$lt_cv_aix_libpath_ |
| 12107 | fi |
| 12108 | |
| 12109 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 12110 | 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 |
| 12111 | else |
| 12112 | if test ia64 = "$host_cpu"; then |
| 12113 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 12114 | allow_undefined_flag="-z nodefs" |
| 12115 | 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" |
| 12116 | else |
| 12117 | # Determine the default libpath from the value encoded in an |
| 12118 | # empty executable. |
| 12119 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 12120 | aix_libpath=$lt_cv_aix_libpath |
| 12121 | else |
| 12122 | if test ${lt_cv_aix_libpath_+y} |
| 12123 | then : |
| 12124 | printf %s "(cached) " >&6 |
| 12125 | else case e in #( |
| 12126 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12127 | /* end confdefs.h. */ |
| 12128 | |
| 12129 | int |
| 12130 | main (void) |
| 12131 | { |
| 12132 | |
| 12133 | ; |
| 12134 | return 0; |
| 12135 | } |
| 12136 | _ACEOF |
| 12137 | if ac_fn_c_try_link "$LINENO" |
| 12138 | then : |
| 12139 | |
| 12140 | lt_aix_libpath_sed=' |
| 12141 | /Import File Strings/,/^$/ { |
| 12142 | /^0/ { |
| 12143 | s/^0 *\([^ ]*\) *$/\1/ |
| 12144 | p |
| 12145 | } |
| 12146 | }' |
| 12147 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12148 | # Check for a 64-bit object if we didn't find anything. |
| 12149 | if test -z "$lt_cv_aix_libpath_"; then |
| 12150 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12151 | fi |
| 12152 | fi |
| 12153 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12154 | conftest$ac_exeext conftest.$ac_ext |
| 12155 | if test -z "$lt_cv_aix_libpath_"; then |
| 12156 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 12157 | fi |
| 12158 | ;; |
| 12159 | esac |
| 12160 | fi |
| 12161 | |
| 12162 | aix_libpath=$lt_cv_aix_libpath_ |
| 12163 | fi |
| 12164 | |
| 12165 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 12166 | # Warning - without using the other run time loading flags, |
| 12167 | # -berok will link without error, but may produce a broken library. |
| 12168 | no_undefined_flag=' $wl-bernotok' |
| 12169 | allow_undefined_flag=' $wl-berok' |
| 12170 | if test yes = "$with_gnu_ld"; then |
| 12171 | # We only use this code for GNU lds that support --whole-archive. |
| 12172 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 12173 | else |
| 12174 | # Exported symbols can be pulled into shared objects from archives |
| 12175 | whole_archive_flag_spec='$convenience' |
| 12176 | fi |
| 12177 | archive_cmds_need_lc=yes |
| 12178 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 12179 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 12180 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 12181 | if test svr4 != "$with_aix_soname"; then |
| 12182 | # This is similar to how AIX traditionally builds its shared libraries. |
| 12183 | 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' |
| 12184 | fi |
| 12185 | if test aix != "$with_aix_soname"; then |
| 12186 | 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' |
| 12187 | else |
| 12188 | # used by -dlpreopen to get the symbols |
| 12189 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 12190 | fi |
| 12191 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 12192 | fi |
| 12193 | fi |
| 12194 | ;; |
| 12195 | |
| 12196 | amigaos*) |
| 12197 | case $host_cpu in |
| 12198 | powerpc) |
| 12199 | # see comment about AmigaOS4 .so support |
| 12200 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 12201 | archive_expsym_cmds='' |
| 12202 | ;; |
| 12203 | m68k) |
| 12204 | 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)' |
| 12205 | hardcode_libdir_flag_spec='-L$libdir' |
| 12206 | hardcode_minus_L=yes |
| 12207 | ;; |
| 12208 | esac |
| 12209 | ;; |
| 12210 | |
| 12211 | bsdi[45]*) |
| 12212 | export_dynamic_flag_spec=-rdynamic |
| 12213 | ;; |
| 12214 | |
| 12215 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 12216 | # When not using gcc, we currently assume that we are using |
| 12217 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 12218 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12219 | # no search path for DLLs. |
| 12220 | case $cc_basename in |
| 12221 | cl* | icl*) |
| 12222 | # Native MSVC or ICC |
| 12223 | hardcode_libdir_flag_spec=' ' |
| 12224 | allow_undefined_flag=unsupported |
| 12225 | always_export_symbols=yes |
| 12226 | file_list_spec='@' |
| 12227 | # Tell ltmain to make .lib files, not .a files. |
| 12228 | libext=lib |
| 12229 | # Tell ltmain to make .dll files, not .so files. |
| 12230 | shrext_cmds=.dll |
| 12231 | # FIXME: Setting linknames here is a bad hack. |
| 12232 | archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 12233 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 12234 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 12235 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 12236 | else |
| 12237 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 12238 | fi~ |
| 12239 | $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 12240 | linknames=' |
| 12241 | # The linker will not automatically build a static lib if we build a DLL. |
| 12242 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 12243 | enable_shared_with_static_runtimes=yes |
| 12244 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 12245 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 12246 | # Don't use ranlib |
| 12247 | old_postinstall_cmds='chmod 644 $oldlib' |
| 12248 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 12249 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 12250 | case $lt_outputfile in |
| 12251 | *.exe|*.EXE) ;; |
| 12252 | *) |
| 12253 | lt_outputfile=$lt_outputfile.exe |
| 12254 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 12255 | ;; |
| 12256 | esac~ |
| 12257 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 12258 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 12259 | $RM "$lt_outputfile.manifest"; |
| 12260 | fi' |
| 12261 | ;; |
| 12262 | *) |
| 12263 | # Assume MSVC and ICC wrapper |
| 12264 | hardcode_libdir_flag_spec=' ' |
| 12265 | allow_undefined_flag=unsupported |
| 12266 | # Tell ltmain to make .lib files, not .a files. |
| 12267 | libext=lib |
| 12268 | # Tell ltmain to make .dll files, not .so files. |
| 12269 | shrext_cmds=.dll |
| 12270 | # FIXME: Setting linknames here is a bad hack. |
| 12271 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 12272 | # The linker will automatically build a .lib file if we build a DLL. |
| 12273 | old_archive_from_new_cmds='true' |
| 12274 | # FIXME: Should let the user specify the lib program. |
| 12275 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 12276 | enable_shared_with_static_runtimes=yes |
| 12277 | ;; |
| 12278 | esac |
| 12279 | ;; |
| 12280 | |
| 12281 | darwin* | rhapsody*) |
| 12282 | |
| 12283 | |
| 12284 | archive_cmds_need_lc=no |
| 12285 | hardcode_direct=no |
| 12286 | hardcode_automatic=yes |
| 12287 | hardcode_shlibpath_var=unsupported |
| 12288 | if test yes = "$lt_cv_ld_force_load"; then |
| 12289 | 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\"`' |
| 12290 | |
| 12291 | else |
| 12292 | whole_archive_flag_spec='' |
| 12293 | fi |
| 12294 | link_all_deplibs=yes |
| 12295 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 12296 | case $cc_basename in |
| 12297 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 12298 | *) _lt_dar_can_shared=$GCC ;; |
| 12299 | esac |
| 12300 | if test yes = "$_lt_dar_can_shared"; then |
| 12301 | output_verbose_link_cmd=func_echo_all |
| 12302 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 12303 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 12304 | 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" |
| 12305 | 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" |
| 12306 | |
| 12307 | else |
| 12308 | ld_shlibs=no |
| 12309 | fi |
| 12310 | |
| 12311 | ;; |
| 12312 | |
| 12313 | dgux*) |
| 12314 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12315 | hardcode_libdir_flag_spec='-L$libdir' |
| 12316 | hardcode_shlibpath_var=no |
| 12317 | ;; |
| 12318 | |
| 12319 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12320 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12321 | # does not break anything, and helps significantly (at the cost of a little |
| 12322 | # extra space). |
| 12323 | freebsd2.2*) |
| 12324 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12325 | hardcode_libdir_flag_spec='-R$libdir' |
| 12326 | hardcode_direct=yes |
| 12327 | hardcode_shlibpath_var=no |
| 12328 | ;; |
| 12329 | |
| 12330 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12331 | freebsd2.*) |
| 12332 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12333 | hardcode_direct=yes |
| 12334 | hardcode_minus_L=yes |
| 12335 | hardcode_shlibpath_var=no |
| 12336 | ;; |
| 12337 | |
| 12338 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 12339 | freebsd* | dragonfly* | midnightbsd*) |
| 12340 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12341 | hardcode_libdir_flag_spec='-R$libdir' |
| 12342 | hardcode_direct=yes |
| 12343 | hardcode_shlibpath_var=no |
| 12344 | ;; |
| 12345 | |
| 12346 | hpux9*) |
| 12347 | if test yes = "$GCC"; then |
| 12348 | 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' |
| 12349 | else |
| 12350 | 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' |
| 12351 | fi |
| 12352 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12353 | hardcode_libdir_separator=: |
| 12354 | hardcode_direct=yes |
| 12355 | |
| 12356 | # hardcode_minus_L: Not really in the search PATH, |
| 12357 | # but as the default location of the library. |
| 12358 | hardcode_minus_L=yes |
| 12359 | export_dynamic_flag_spec='$wl-E' |
| 12360 | ;; |
| 12361 | |
| 12362 | hpux10*) |
| 12363 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 12364 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12365 | else |
| 12366 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12367 | fi |
| 12368 | if test no = "$with_gnu_ld"; then |
| 12369 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12370 | hardcode_libdir_separator=: |
| 12371 | hardcode_direct=yes |
| 12372 | hardcode_direct_absolute=yes |
| 12373 | export_dynamic_flag_spec='$wl-E' |
| 12374 | # hardcode_minus_L: Not really in the search PATH, |
| 12375 | # but as the default location of the library. |
| 12376 | hardcode_minus_L=yes |
| 12377 | fi |
| 12378 | ;; |
| 12379 | |
| 12380 | hpux11*) |
| 12381 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 12382 | case $host_cpu in |
| 12383 | hppa*64*) |
| 12384 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12385 | ;; |
| 12386 | ia64*) |
| 12387 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12388 | ;; |
| 12389 | *) |
| 12390 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12391 | ;; |
| 12392 | esac |
| 12393 | else |
| 12394 | case $host_cpu in |
| 12395 | hppa*64*) |
| 12396 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12397 | ;; |
| 12398 | ia64*) |
| 12399 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12400 | ;; |
| 12401 | *) |
| 12402 | |
| 12403 | # Older versions of the 11.00 compiler do not understand -b yet |
| 12404 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 12405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 12406 | printf %s "checking if $CC understands -b... " >&6; } |
| 12407 | if test ${lt_cv_prog_compiler__b+y} |
| 12408 | then : |
| 12409 | printf %s "(cached) " >&6 |
| 12410 | else case e in #( |
| 12411 | e) lt_cv_prog_compiler__b=no |
| 12412 | save_LDFLAGS=$LDFLAGS |
| 12413 | LDFLAGS="$LDFLAGS -b" |
| 12414 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12415 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12416 | # The linker can only warn and ignore the option if not recognized |
| 12417 | # So say no if there are warnings |
| 12418 | if test -s conftest.err; then |
| 12419 | # Append any errors to the config.log. |
| 12420 | cat conftest.err 1>&5 |
| 12421 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 12422 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12423 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12424 | lt_cv_prog_compiler__b=yes |
| 12425 | fi |
| 12426 | else |
| 12427 | lt_cv_prog_compiler__b=yes |
| 12428 | fi |
| 12429 | fi |
| 12430 | $RM -r conftest* |
| 12431 | LDFLAGS=$save_LDFLAGS |
| 12432 | ;; |
| 12433 | esac |
| 12434 | fi |
| 12435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 12436 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } |
| 12437 | |
| 12438 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 12439 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12440 | else |
| 12441 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12442 | fi |
| 12443 | |
| 12444 | ;; |
| 12445 | esac |
| 12446 | fi |
| 12447 | if test no = "$with_gnu_ld"; then |
| 12448 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12449 | hardcode_libdir_separator=: |
| 12450 | |
| 12451 | case $host_cpu in |
| 12452 | hppa*64*|ia64*) |
| 12453 | hardcode_direct=no |
| 12454 | hardcode_shlibpath_var=no |
| 12455 | ;; |
| 12456 | *) |
| 12457 | hardcode_direct=yes |
| 12458 | hardcode_direct_absolute=yes |
| 12459 | export_dynamic_flag_spec='$wl-E' |
| 12460 | |
| 12461 | # hardcode_minus_L: Not really in the search PATH, |
| 12462 | # but as the default location of the library. |
| 12463 | hardcode_minus_L=yes |
| 12464 | ;; |
| 12465 | esac |
| 12466 | fi |
| 12467 | ;; |
| 12468 | |
| 12469 | irix5* | irix6* | nonstopux*) |
| 12470 | if test yes = "$GCC"; then |
| 12471 | 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' |
| 12472 | # Try to use the -exported_symbol ld option, if it does not |
| 12473 | # work, assume that -exports_file does not work either and |
| 12474 | # implicitly export all symbols. |
| 12475 | # This should be the same for all languages, so no per-tag cache variable. |
| 12476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 12477 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 12478 | if test ${lt_cv_irix_exported_symbol+y} |
| 12479 | then : |
| 12480 | printf %s "(cached) " >&6 |
| 12481 | else case e in #( |
| 12482 | e) save_LDFLAGS=$LDFLAGS |
| 12483 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 12484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12485 | /* end confdefs.h. */ |
| 12486 | int foo (void) { return 0; } |
| 12487 | _ACEOF |
| 12488 | if ac_fn_c_try_link "$LINENO" |
| 12489 | then : |
| 12490 | lt_cv_irix_exported_symbol=yes |
| 12491 | else case e in #( |
| 12492 | e) lt_cv_irix_exported_symbol=no ;; |
| 12493 | esac |
| 12494 | fi |
| 12495 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12496 | conftest$ac_exeext conftest.$ac_ext |
| 12497 | LDFLAGS=$save_LDFLAGS ;; |
| 12498 | esac |
| 12499 | fi |
| 12500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 12501 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } |
| 12502 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 12503 | 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' |
| 12504 | fi |
| 12505 | else |
| 12506 | 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' |
| 12507 | 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' |
| 12508 | fi |
| 12509 | archive_cmds_need_lc='no' |
| 12510 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12511 | hardcode_libdir_separator=: |
| 12512 | inherit_rpath=yes |
| 12513 | link_all_deplibs=yes |
| 12514 | ;; |
| 12515 | |
| 12516 | linux*) |
| 12517 | case $cc_basename in |
| 12518 | tcc*) |
| 12519 | # Fabrice Bellard et al's Tiny C Compiler |
| 12520 | ld_shlibs=yes |
| 12521 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12522 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12523 | ;; |
| 12524 | esac |
| 12525 | ;; |
| 12526 | |
| 12527 | *-mlibc) |
| 12528 | ;; |
| 12529 | |
| 12530 | netbsd* | netbsdelf*-gnu) |
| 12531 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12532 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12533 | else |
| 12534 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12535 | fi |
| 12536 | hardcode_libdir_flag_spec='-R$libdir' |
| 12537 | hardcode_direct=yes |
| 12538 | hardcode_shlibpath_var=no |
| 12539 | ;; |
| 12540 | |
| 12541 | newsos6) |
| 12542 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12543 | hardcode_direct=yes |
| 12544 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12545 | hardcode_libdir_separator=: |
| 12546 | hardcode_shlibpath_var=no |
| 12547 | ;; |
| 12548 | |
| 12549 | *nto* | *qnx*) |
| 12550 | ;; |
| 12551 | |
| 12552 | openbsd*) |
| 12553 | if test -f /usr/libexec/ld.so; then |
| 12554 | hardcode_direct=yes |
| 12555 | hardcode_shlibpath_var=no |
| 12556 | hardcode_direct_absolute=yes |
| 12557 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 12558 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12559 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 12560 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12561 | export_dynamic_flag_spec='$wl-E' |
| 12562 | else |
| 12563 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12564 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12565 | fi |
| 12566 | else |
| 12567 | ld_shlibs=no |
| 12568 | fi |
| 12569 | ;; |
| 12570 | |
| 12571 | os2*) |
| 12572 | hardcode_libdir_flag_spec='-L$libdir' |
| 12573 | hardcode_minus_L=yes |
| 12574 | allow_undefined_flag=unsupported |
| 12575 | shrext_cmds=.dll |
| 12576 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12577 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12578 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12579 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12580 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 12581 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12582 | emximp -o $lib $output_objdir/$libname.def' |
| 12583 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12584 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12585 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12586 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12587 | prefix_cmds="$SED"~ |
| 12588 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 12589 | prefix_cmds="$prefix_cmds -e 1d"; |
| 12590 | fi~ |
| 12591 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 12592 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 12593 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12594 | emximp -o $lib $output_objdir/$libname.def' |
| 12595 | old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 12596 | enable_shared_with_static_runtimes=yes |
| 12597 | file_list_spec='@' |
| 12598 | ;; |
| 12599 | |
| 12600 | osf3*) |
| 12601 | if test yes = "$GCC"; then |
| 12602 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12603 | 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' |
| 12604 | else |
| 12605 | allow_undefined_flag=' -expect_unresolved \*' |
| 12606 | 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' |
| 12607 | fi |
| 12608 | archive_cmds_need_lc='no' |
| 12609 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12610 | hardcode_libdir_separator=: |
| 12611 | ;; |
| 12612 | |
| 12613 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12614 | if test yes = "$GCC"; then |
| 12615 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12616 | 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' |
| 12617 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12618 | else |
| 12619 | allow_undefined_flag=' -expect_unresolved \*' |
| 12620 | 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' |
| 12621 | 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~ |
| 12622 | $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' |
| 12623 | |
| 12624 | # Both c and cxx compiler support -rpath directly |
| 12625 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12626 | fi |
| 12627 | archive_cmds_need_lc='no' |
| 12628 | hardcode_libdir_separator=: |
| 12629 | ;; |
| 12630 | |
| 12631 | serenity*) |
| 12632 | ;; |
| 12633 | |
| 12634 | solaris*) |
| 12635 | no_undefined_flag=' -z defs' |
| 12636 | if test yes = "$GCC"; then |
| 12637 | wlarc='$wl' |
| 12638 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12639 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12640 | $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' |
| 12641 | else |
| 12642 | case `$CC -V 2>&1` in |
| 12643 | *"Compilers 5.0"*) |
| 12644 | wlarc='' |
| 12645 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12646 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12647 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12648 | ;; |
| 12649 | *) |
| 12650 | wlarc='$wl' |
| 12651 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12652 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12653 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12654 | ;; |
| 12655 | esac |
| 12656 | fi |
| 12657 | hardcode_libdir_flag_spec='-R$libdir' |
| 12658 | hardcode_shlibpath_var=no |
| 12659 | case $host_os in |
| 12660 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12661 | *) |
| 12662 | # The compiler driver will combine and reorder linker options, |
| 12663 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 12664 | # but is careful enough not to reorder. |
| 12665 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12666 | if test yes = "$GCC"; then |
| 12667 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 12668 | else |
| 12669 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12670 | fi |
| 12671 | ;; |
| 12672 | esac |
| 12673 | link_all_deplibs=yes |
| 12674 | ;; |
| 12675 | |
| 12676 | sunos4*) |
| 12677 | if test sequent = "$host_vendor"; then |
| 12678 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12679 | # files that make .init and .fini sections work. |
| 12680 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12681 | else |
| 12682 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12683 | fi |
| 12684 | hardcode_libdir_flag_spec='-L$libdir' |
| 12685 | hardcode_direct=yes |
| 12686 | hardcode_minus_L=yes |
| 12687 | hardcode_shlibpath_var=no |
| 12688 | ;; |
| 12689 | |
| 12690 | sysv4) |
| 12691 | case $host_vendor in |
| 12692 | sni) |
| 12693 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12694 | hardcode_direct=yes # is this really true??? |
| 12695 | ;; |
| 12696 | siemens) |
| 12697 | ## LD is ld it makes a PLAMLIB |
| 12698 | ## CC just makes a GrossModule. |
| 12699 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12700 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12701 | hardcode_direct=no |
| 12702 | ;; |
| 12703 | motorola) |
| 12704 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12705 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12706 | ;; |
| 12707 | esac |
| 12708 | runpath_var='LD_RUN_PATH' |
| 12709 | hardcode_shlibpath_var=no |
| 12710 | ;; |
| 12711 | |
| 12712 | sysv4.3*) |
| 12713 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12714 | hardcode_shlibpath_var=no |
| 12715 | export_dynamic_flag_spec='-Bexport' |
| 12716 | ;; |
| 12717 | |
| 12718 | sysv4*MP*) |
| 12719 | if test -d /usr/nec; then |
| 12720 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12721 | hardcode_shlibpath_var=no |
| 12722 | runpath_var=LD_RUN_PATH |
| 12723 | hardcode_runpath_var=yes |
| 12724 | ld_shlibs=yes |
| 12725 | fi |
| 12726 | ;; |
| 12727 | |
| 12728 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12729 | no_undefined_flag='$wl-z,text' |
| 12730 | archive_cmds_need_lc=no |
| 12731 | hardcode_shlibpath_var=no |
| 12732 | runpath_var='LD_RUN_PATH' |
| 12733 | |
| 12734 | if test yes = "$GCC"; then |
| 12735 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12736 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12737 | else |
| 12738 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12739 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12740 | fi |
| 12741 | ;; |
| 12742 | |
| 12743 | sysv5* | sco3.2v5* | sco5v6*) |
| 12744 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 12745 | # link with -lc, and that would cause any symbols used from libc to |
| 12746 | # always be unresolved, which means just about no library would |
| 12747 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12748 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12749 | # as -z defs. |
| 12750 | no_undefined_flag='$wl-z,text' |
| 12751 | allow_undefined_flag='$wl-z,nodefs' |
| 12752 | archive_cmds_need_lc=no |
| 12753 | hardcode_shlibpath_var=no |
| 12754 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 12755 | hardcode_libdir_separator=':' |
| 12756 | link_all_deplibs=yes |
| 12757 | export_dynamic_flag_spec='$wl-Bexport' |
| 12758 | runpath_var='LD_RUN_PATH' |
| 12759 | |
| 12760 | if test yes = "$GCC"; then |
| 12761 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12762 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12763 | else |
| 12764 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12765 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12766 | fi |
| 12767 | ;; |
| 12768 | |
| 12769 | uts4*) |
| 12770 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12771 | hardcode_libdir_flag_spec='-L$libdir' |
| 12772 | hardcode_shlibpath_var=no |
| 12773 | ;; |
| 12774 | |
| 12775 | *) |
| 12776 | ld_shlibs=no |
| 12777 | ;; |
| 12778 | esac |
| 12779 | |
| 12780 | if test sni = "$host_vendor"; then |
| 12781 | case $host in |
| 12782 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12783 | export_dynamic_flag_spec='$wl-Blargedynsym' |
| 12784 | ;; |
| 12785 | esac |
| 12786 | fi |
| 12787 | fi |
| 12788 | |
| 12789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 12790 | printf "%s\n" "$ld_shlibs" >&6; } |
| 12791 | test no = "$ld_shlibs" && can_build_shared=no |
| 12792 | |
| 12793 | with_gnu_ld=$with_gnu_ld |
| 12794 | |
| 12795 | |
| 12796 | |
| 12797 | |
| 12798 | |
| 12799 | |
| 12800 | |
| 12801 | |
| 12802 | |
| 12803 | |
| 12804 | |
| 12805 | |
| 12806 | |
| 12807 | |
| 12808 | |
| 12809 | # |
| 12810 | # Do we need to explicitly link libc? |
| 12811 | # |
| 12812 | case "x$archive_cmds_need_lc" in |
| 12813 | x|xyes) |
| 12814 | # Assume -lc should be added |
| 12815 | archive_cmds_need_lc=yes |
| 12816 | |
| 12817 | if test yes,yes = "$GCC,$enable_shared"; then |
| 12818 | case $archive_cmds in |
| 12819 | *'~'*) |
| 12820 | # FIXME: we may have to deal with multi-command sequences. |
| 12821 | ;; |
| 12822 | '$CC '*) |
| 12823 | # Test whether the compiler implicitly links with -lc since on some |
| 12824 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12825 | # to ld, don't add -lc before -lgcc. |
| 12826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 12827 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 12828 | if test ${lt_cv_archive_cmds_need_lc+y} |
| 12829 | then : |
| 12830 | printf %s "(cached) " >&6 |
| 12831 | else case e in #( |
| 12832 | e) $RM conftest* |
| 12833 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12834 | |
| 12835 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12836 | (eval $ac_compile) 2>&5 |
| 12837 | ac_status=$? |
| 12838 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12839 | test $ac_status = 0; } 2>conftest.err; then |
| 12840 | soname=conftest |
| 12841 | lib=conftest |
| 12842 | libobjs=conftest.$ac_objext |
| 12843 | deplibs= |
| 12844 | wl=$lt_prog_compiler_wl |
| 12845 | pic_flag=$lt_prog_compiler_pic |
| 12846 | compiler_flags=-v |
| 12847 | linker_flags=-v |
| 12848 | verstring= |
| 12849 | output_objdir=. |
| 12850 | libname=conftest |
| 12851 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 12852 | allow_undefined_flag= |
| 12853 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 12854 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12855 | ac_status=$? |
| 12856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12857 | test $ac_status = 0; } |
| 12858 | then |
| 12859 | lt_cv_archive_cmds_need_lc=no |
| 12860 | else |
| 12861 | lt_cv_archive_cmds_need_lc=yes |
| 12862 | fi |
| 12863 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 12864 | else |
| 12865 | cat conftest.err 1>&5 |
| 12866 | fi |
| 12867 | $RM conftest* |
| 12868 | ;; |
| 12869 | esac |
| 12870 | fi |
| 12871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 12872 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } |
| 12873 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 12874 | ;; |
| 12875 | esac |
| 12876 | fi |
| 12877 | ;; |
| 12878 | esac |
| 12879 | |
| 12880 | |
| 12881 | |
| 12882 | |
| 12883 | |
| 12884 | |
| 12885 | |
| 12886 | |
| 12887 | |
| 12888 | |
| 12889 | |
| 12890 | |
| 12891 | |
| 12892 | |
| 12893 | |
| 12894 | |
| 12895 | |
| 12896 | |
| 12897 | |
| 12898 | |
| 12899 | |
| 12900 | |
| 12901 | |
| 12902 | |
| 12903 | |
| 12904 | |
| 12905 | |
| 12906 | |
| 12907 | |
| 12908 | |
| 12909 | |
| 12910 | |
| 12911 | |
| 12912 | |
| 12913 | |
| 12914 | |
| 12915 | |
| 12916 | |
| 12917 | |
| 12918 | |
| 12919 | |
| 12920 | |
| 12921 | |
| 12922 | |
| 12923 | |
| 12924 | |
| 12925 | |
| 12926 | |
| 12927 | |
| 12928 | |
| 12929 | |
| 12930 | |
| 12931 | |
| 12932 | |
| 12933 | |
| 12934 | |
| 12935 | |
| 12936 | |
| 12937 | |
| 12938 | |
| 12939 | |
| 12940 | |
| 12941 | |
| 12942 | |
| 12943 | |
| 12944 | |
| 12945 | |
| 12946 | |
| 12947 | |
| 12948 | |
| 12949 | |
| 12950 | |
| 12951 | |
| 12952 | |
| 12953 | |
| 12954 | |
| 12955 | |
| 12956 | |
| 12957 | |
| 12958 | |
| 12959 | |
| 12960 | |
| 12961 | |
| 12962 | |
| 12963 | |
| 12964 | |
| 12965 | |
| 12966 | |
| 12967 | |
| 12968 | |
| 12969 | |
| 12970 | |
| 12971 | |
| 12972 | |
| 12973 | |
| 12974 | |
| 12975 | |
| 12976 | |
| 12977 | |
| 12978 | |
| 12979 | |
| 12980 | |
| 12981 | |
| 12982 | |
| 12983 | |
| 12984 | |
| 12985 | |
| 12986 | |
| 12987 | |
| 12988 | |
| 12989 | |
| 12990 | |
| 12991 | |
| 12992 | |
| 12993 | |
| 12994 | |
| 12995 | |
| 12996 | |
| 12997 | |
| 12998 | |
| 12999 | |
| 13000 | |
| 13001 | |
| 13002 | |
| 13003 | |
| 13004 | |
| 13005 | |
| 13006 | |
| 13007 | |
| 13008 | |
| 13009 | |
| 13010 | |
| 13011 | |
| 13012 | |
| 13013 | |
| 13014 | |
| 13015 | |
| 13016 | |
| 13017 | |
| 13018 | |
| 13019 | |
| 13020 | |
| 13021 | |
| 13022 | |
| 13023 | |
| 13024 | |
| 13025 | |
| 13026 | |
| 13027 | |
| 13028 | |
| 13029 | |
| 13030 | |
| 13031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13032 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 13033 | |
| 13034 | if test yes = "$GCC"; then |
| 13035 | case $host_os in |
| 13036 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 13037 | *) lt_awk_arg='/^libraries:/' ;; |
| 13038 | esac |
| 13039 | case $host_os in |
| 13040 | mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 13041 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 13042 | esac |
| 13043 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 13044 | case $lt_search_path_spec in |
| 13045 | *\;*) |
| 13046 | # if the path contains ";" then we assume it to be the separator |
| 13047 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13048 | # assumed that no part of a normal pathname contains ";" but that should |
| 13049 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13050 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 13051 | ;; |
| 13052 | *) |
| 13053 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 13054 | ;; |
| 13055 | esac |
| 13056 | # Ok, now we have the path, separated by spaces, we can step through it |
| 13057 | # and add multilib dir if necessary... |
| 13058 | lt_tmp_lt_search_path_spec= |
| 13059 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 13060 | # ...but if some path component already ends with the multilib dir we assume |
| 13061 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 13062 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 13063 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 13064 | lt_multi_os_dir= |
| 13065 | ;; |
| 13066 | esac |
| 13067 | for lt_sys_path in $lt_search_path_spec; do |
| 13068 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 13069 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 13070 | elif test -n "$lt_multi_os_dir"; then |
| 13071 | test -d "$lt_sys_path" && \ |
| 13072 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 13073 | fi |
| 13074 | done |
| 13075 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 13076 | BEGIN {RS = " "; FS = "/|\n";} { |
| 13077 | lt_foo = ""; |
| 13078 | lt_count = 0; |
| 13079 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 13080 | if ($lt_i != "" && $lt_i != ".") { |
| 13081 | if ($lt_i == "..") { |
| 13082 | lt_count++; |
| 13083 | } else { |
| 13084 | if (lt_count == 0) { |
| 13085 | lt_foo = "/" $lt_i lt_foo; |
| 13086 | } else { |
| 13087 | lt_count--; |
| 13088 | } |
| 13089 | } |
| 13090 | } |
| 13091 | } |
| 13092 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 13093 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 13094 | }'` |
| 13095 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 13096 | # for these hosts. |
| 13097 | case $host_os in |
| 13098 | mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 13099 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 13100 | esac |
| 13101 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 13102 | else |
| 13103 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13104 | fi |
| 13105 | library_names_spec= |
| 13106 | libname_spec='lib$name' |
| 13107 | soname_spec= |
| 13108 | shrext_cmds=.so |
| 13109 | postinstall_cmds= |
| 13110 | postuninstall_cmds= |
| 13111 | finish_cmds= |
| 13112 | finish_eval= |
| 13113 | shlibpath_var= |
| 13114 | shlibpath_overrides_runpath=unknown |
| 13115 | version_type=none |
| 13116 | dynamic_linker="$host_os ld.so" |
| 13117 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13118 | need_lib_prefix=unknown |
| 13119 | hardcode_into_libs=no |
| 13120 | |
| 13121 | # when you set need_version to no, make sure it does not cause -set_version |
| 13122 | # flags to be left without arguments |
| 13123 | need_version=unknown |
| 13124 | |
| 13125 | |
| 13126 | |
| 13127 | case $host_os in |
| 13128 | aix3*) |
| 13129 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13130 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 13131 | shlibpath_var=LIBPATH |
| 13132 | |
| 13133 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13134 | soname_spec='$libname$release$shared_ext$major' |
| 13135 | ;; |
| 13136 | |
| 13137 | aix[4-9]*) |
| 13138 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13139 | need_lib_prefix=no |
| 13140 | need_version=no |
| 13141 | hardcode_into_libs=yes |
| 13142 | if test ia64 = "$host_cpu"; then |
| 13143 | # AIX 5 supports IA64 |
| 13144 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 13145 | shlibpath_var=LD_LIBRARY_PATH |
| 13146 | else |
| 13147 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13148 | # for dependence libraries. The import file would start with |
| 13149 | # the line '#! .'. This would cause the generated library to |
| 13150 | # depend on '.', always an invalid library. This was fixed in |
| 13151 | # development snapshots of GCC prior to 3.0. |
| 13152 | case $host_os in |
| 13153 | aix4 | aix4.[01] | aix4.[01].*) |
| 13154 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13155 | echo ' yes ' |
| 13156 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 13157 | : |
| 13158 | else |
| 13159 | can_build_shared=no |
| 13160 | fi |
| 13161 | ;; |
| 13162 | esac |
| 13163 | # Using Import Files as archive members, it is possible to support |
| 13164 | # filename-based versioning of shared library archives on AIX. While |
| 13165 | # this would work for both with and without runtime linking, it will |
| 13166 | # prevent static linking of such archives. So we do filename-based |
| 13167 | # shared library versioning with .so extension only, which is used |
| 13168 | # when both runtime linking and shared linking is enabled. |
| 13169 | # Unfortunately, runtime linking may impact performance, so we do |
| 13170 | # not want this to be the default eventually. Also, we use the |
| 13171 | # versioned .so libs for executables only if there is the -brtl |
| 13172 | # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. |
| 13173 | # To allow for filename-based versioning support, we need to create |
| 13174 | # libNAME.so.V as an archive file, containing: |
| 13175 | # *) an Import File, referring to the versioned filename of the |
| 13176 | # archive as well as the shared archive member, telling the |
| 13177 | # bitwidth (32 or 64) of that shared object, and providing the |
| 13178 | # list of exported symbols of that shared object, eventually |
| 13179 | # decorated with the 'weak' keyword |
| 13180 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 13181 | # it being seen by the linker. |
| 13182 | # At run time we better use the real file rather than another symlink, |
| 13183 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 13184 | |
| 13185 | case $with_aix_soname,$aix_use_runtimelinking in |
| 13186 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 13187 | # soname into executable. Probably we can add versioning support to |
| 13188 | # collect2, so additional links can be useful in future. |
| 13189 | aix,yes) # traditional libtool |
| 13190 | dynamic_linker='AIX unversionable lib.so' |
| 13191 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13192 | # instead of lib<name>.a to let people know that these are not |
| 13193 | # typical AIX shared libraries. |
| 13194 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13195 | ;; |
| 13196 | aix,no) # traditional AIX only |
| 13197 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 13198 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13199 | # and later when we are not doing run time linking. |
| 13200 | library_names_spec='$libname$release.a $libname.a' |
| 13201 | soname_spec='$libname$release$shared_ext$major' |
| 13202 | ;; |
| 13203 | svr4,*) # full svr4 only |
| 13204 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 13205 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 13206 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 13207 | shlibpath_overrides_runpath=yes |
| 13208 | ;; |
| 13209 | *,yes) # both, prefer svr4 |
| 13210 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 13211 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 13212 | # unpreferred sharedlib libNAME.a needs extra handling |
| 13213 | 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"' |
| 13214 | 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"' |
| 13215 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 13216 | shlibpath_overrides_runpath=yes |
| 13217 | ;; |
| 13218 | *,no) # both, prefer aix |
| 13219 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 13220 | library_names_spec='$libname$release.a $libname.a' |
| 13221 | soname_spec='$libname$release$shared_ext$major' |
| 13222 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 13223 | 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)' |
| 13224 | 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"' |
| 13225 | ;; |
| 13226 | esac |
| 13227 | shlibpath_var=LIBPATH |
| 13228 | fi |
| 13229 | ;; |
| 13230 | |
| 13231 | amigaos*) |
| 13232 | case $host_cpu in |
| 13233 | powerpc) |
| 13234 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13235 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13236 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13237 | ;; |
| 13238 | m68k) |
| 13239 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13240 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13241 | 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' |
| 13242 | ;; |
| 13243 | esac |
| 13244 | ;; |
| 13245 | |
| 13246 | beos*) |
| 13247 | library_names_spec='$libname$shared_ext' |
| 13248 | dynamic_linker="$host_os ld.so" |
| 13249 | shlibpath_var=LIBRARY_PATH |
| 13250 | ;; |
| 13251 | |
| 13252 | bsdi[45]*) |
| 13253 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13254 | need_version=no |
| 13255 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13256 | soname_spec='$libname$release$shared_ext$major' |
| 13257 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13258 | shlibpath_var=LD_LIBRARY_PATH |
| 13259 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13260 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13261 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13262 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13263 | # libtool to hard-code these into programs |
| 13264 | ;; |
| 13265 | |
| 13266 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 13267 | version_type=windows |
| 13268 | shrext_cmds=.dll |
| 13269 | need_version=no |
| 13270 | need_lib_prefix=no |
| 13271 | |
| 13272 | case $GCC,$cc_basename in |
| 13273 | yes,*) |
| 13274 | # gcc |
| 13275 | library_names_spec='$libname.dll.a' |
| 13276 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13277 | # If user builds GCC with multilib enabled, |
| 13278 | # it should just install on $(libdir) |
| 13279 | # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. |
| 13280 | if test xyes = x"$multilib"; then |
| 13281 | postinstall_cmds='base_file=`basename \$file`~ |
| 13282 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 13283 | dldir=$destdir/`dirname \$dlpath`~ |
| 13284 | $install_prog $dir/$dlname $destdir/$dlname~ |
| 13285 | chmod a+x $destdir/$dlname~ |
| 13286 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13287 | eval '\''$striplib $destdir/$dlname'\'' || exit \$?; |
| 13288 | fi' |
| 13289 | else |
| 13290 | postinstall_cmds='base_file=`basename \$file`~ |
| 13291 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 13292 | dldir=$destdir/`dirname \$dlpath`~ |
| 13293 | test -d \$dldir || mkdir -p \$dldir~ |
| 13294 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13295 | chmod a+x \$dldir/$dlname~ |
| 13296 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13297 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13298 | fi' |
| 13299 | fi |
| 13300 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13301 | dlpath=$dir/\$dldll~ |
| 13302 | $RM \$dlpath' |
| 13303 | shlibpath_overrides_runpath=yes |
| 13304 | |
| 13305 | case $host_os in |
| 13306 | cygwin*) |
| 13307 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13308 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 13309 | |
| 13310 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 13311 | ;; |
| 13312 | mingw* | windows* | cegcc*) |
| 13313 | # MinGW DLLs use traditional 'lib' prefix |
| 13314 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 13315 | ;; |
| 13316 | pw32*) |
| 13317 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13318 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 13319 | ;; |
| 13320 | esac |
| 13321 | dynamic_linker='Win32 ld.exe' |
| 13322 | ;; |
| 13323 | |
| 13324 | *,cl* | *,icl*) |
| 13325 | # Native MSVC or ICC |
| 13326 | libname_spec='$name' |
| 13327 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 13328 | library_names_spec='$libname.dll.lib' |
| 13329 | |
| 13330 | case $build_os in |
| 13331 | mingw* | windows*) |
| 13332 | sys_lib_search_path_spec= |
| 13333 | lt_save_ifs=$IFS |
| 13334 | IFS=';' |
| 13335 | for lt_path in $LIB |
| 13336 | do |
| 13337 | IFS=$lt_save_ifs |
| 13338 | # Let DOS variable expansion print the short 8.3 style file name. |
| 13339 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 13340 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 13341 | done |
| 13342 | IFS=$lt_save_ifs |
| 13343 | # Convert to MSYS style. |
| 13344 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 13345 | ;; |
| 13346 | cygwin*) |
| 13347 | # Convert to unix form, then to dos form, then back to unix form |
| 13348 | # but this time dos style (no spaces!) so that the unix form looks |
| 13349 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 13350 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 13351 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 13352 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13353 | ;; |
| 13354 | *) |
| 13355 | sys_lib_search_path_spec=$LIB |
| 13356 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 13357 | # It is most probably a Windows format PATH. |
| 13358 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13359 | else |
| 13360 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13361 | fi |
| 13362 | # FIXME: find the short name or the path components, as spaces are |
| 13363 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 13364 | ;; |
| 13365 | esac |
| 13366 | |
| 13367 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13368 | postinstall_cmds='base_file=`basename \$file`~ |
| 13369 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 13370 | dldir=$destdir/`dirname \$dlpath`~ |
| 13371 | test -d \$dldir || mkdir -p \$dldir~ |
| 13372 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 13373 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13374 | dlpath=$dir/\$dldll~ |
| 13375 | $RM \$dlpath' |
| 13376 | shlibpath_overrides_runpath=yes |
| 13377 | dynamic_linker='Win32 link.exe' |
| 13378 | ;; |
| 13379 | |
| 13380 | *) |
| 13381 | # Assume MSVC and ICC wrapper |
| 13382 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 13383 | dynamic_linker='Win32 ld.exe' |
| 13384 | ;; |
| 13385 | esac |
| 13386 | # FIXME: first we should search . and the directory the executable is in |
| 13387 | shlibpath_var=PATH |
| 13388 | ;; |
| 13389 | |
| 13390 | darwin* | rhapsody*) |
| 13391 | dynamic_linker="$host_os dyld" |
| 13392 | version_type=darwin |
| 13393 | need_lib_prefix=no |
| 13394 | need_version=no |
| 13395 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 13396 | soname_spec='$libname$release$major$shared_ext' |
| 13397 | shlibpath_overrides_runpath=yes |
| 13398 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13399 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13400 | |
| 13401 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 13402 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13403 | ;; |
| 13404 | |
| 13405 | dgux*) |
| 13406 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13407 | need_lib_prefix=no |
| 13408 | need_version=no |
| 13409 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13410 | soname_spec='$libname$release$shared_ext$major' |
| 13411 | shlibpath_var=LD_LIBRARY_PATH |
| 13412 | ;; |
| 13413 | |
| 13414 | freebsd* | dragonfly* | midnightbsd*) |
| 13415 | # DragonFly does not have aout. When/if they implement a new |
| 13416 | # versioning mechanism, adjust this. |
| 13417 | if test -x /usr/bin/objformat; then |
| 13418 | objformat=`/usr/bin/objformat` |
| 13419 | else |
| 13420 | case $host_os in |
| 13421 | freebsd[23].*) objformat=aout ;; |
| 13422 | *) objformat=elf ;; |
| 13423 | esac |
| 13424 | fi |
| 13425 | version_type=freebsd-$objformat |
| 13426 | case $version_type in |
| 13427 | freebsd-elf*) |
| 13428 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13429 | soname_spec='$libname$release$shared_ext$major' |
| 13430 | need_version=no |
| 13431 | need_lib_prefix=no |
| 13432 | ;; |
| 13433 | freebsd-*) |
| 13434 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13435 | need_version=yes |
| 13436 | ;; |
| 13437 | esac |
| 13438 | case $host_cpu in |
| 13439 | powerpc64) |
| 13440 | # On FreeBSD bi-arch platforms, a different variable is used for 32-bit |
| 13441 | # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. |
| 13442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13443 | /* end confdefs.h. */ |
| 13444 | int test_pointer_size[sizeof (void *) - 5]; |
| 13445 | |
| 13446 | _ACEOF |
| 13447 | if ac_fn_c_try_compile "$LINENO" |
| 13448 | then : |
| 13449 | shlibpath_var=LD_LIBRARY_PATH |
| 13450 | else case e in #( |
| 13451 | e) shlibpath_var=LD_32_LIBRARY_PATH ;; |
| 13452 | esac |
| 13453 | fi |
| 13454 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13455 | ;; |
| 13456 | *) |
| 13457 | shlibpath_var=LD_LIBRARY_PATH |
| 13458 | ;; |
| 13459 | esac |
| 13460 | case $host_os in |
| 13461 | freebsd2.*) |
| 13462 | shlibpath_overrides_runpath=yes |
| 13463 | ;; |
| 13464 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 13465 | shlibpath_overrides_runpath=yes |
| 13466 | hardcode_into_libs=yes |
| 13467 | ;; |
| 13468 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13469 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13470 | shlibpath_overrides_runpath=no |
| 13471 | hardcode_into_libs=yes |
| 13472 | ;; |
| 13473 | *) # from 4.6 on, and DragonFly |
| 13474 | shlibpath_overrides_runpath=yes |
| 13475 | hardcode_into_libs=yes |
| 13476 | ;; |
| 13477 | esac |
| 13478 | ;; |
| 13479 | |
| 13480 | haiku*) |
| 13481 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13482 | need_lib_prefix=no |
| 13483 | need_version=no |
| 13484 | dynamic_linker="$host_os runtime_loader" |
| 13485 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13486 | soname_spec='$libname$release$shared_ext$major' |
| 13487 | shlibpath_var=LIBRARY_PATH |
| 13488 | shlibpath_overrides_runpath=no |
| 13489 | sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' |
| 13490 | sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' |
| 13491 | hardcode_into_libs=no |
| 13492 | ;; |
| 13493 | |
| 13494 | hpux9* | hpux10* | hpux11*) |
| 13495 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13496 | # link against other versions. |
| 13497 | version_type=sunos |
| 13498 | need_lib_prefix=no |
| 13499 | need_version=no |
| 13500 | case $host_cpu in |
| 13501 | ia64*) |
| 13502 | shrext_cmds='.so' |
| 13503 | hardcode_into_libs=yes |
| 13504 | dynamic_linker="$host_os dld.so" |
| 13505 | shlibpath_var=LD_LIBRARY_PATH |
| 13506 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13507 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13508 | soname_spec='$libname$release$shared_ext$major' |
| 13509 | if test 32 = "$HPUX_IA64_MODE"; then |
| 13510 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13511 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 13512 | else |
| 13513 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13514 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 13515 | fi |
| 13516 | ;; |
| 13517 | hppa*64*) |
| 13518 | shrext_cmds='.sl' |
| 13519 | hardcode_into_libs=yes |
| 13520 | dynamic_linker="$host_os dld.sl" |
| 13521 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13522 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13523 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13524 | soname_spec='$libname$release$shared_ext$major' |
| 13525 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13526 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13527 | ;; |
| 13528 | *) |
| 13529 | shrext_cmds='.sl' |
| 13530 | dynamic_linker="$host_os dld.sl" |
| 13531 | shlibpath_var=SHLIB_PATH |
| 13532 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13533 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13534 | soname_spec='$libname$release$shared_ext$major' |
| 13535 | ;; |
| 13536 | esac |
| 13537 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 13538 | postinstall_cmds='chmod 555 $lib' |
| 13539 | # or fails outright, so override atomically: |
| 13540 | install_override_mode=555 |
| 13541 | ;; |
| 13542 | |
| 13543 | interix[3-9]*) |
| 13544 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13545 | need_lib_prefix=no |
| 13546 | need_version=no |
| 13547 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13548 | soname_spec='$libname$release$shared_ext$major' |
| 13549 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13550 | shlibpath_var=LD_LIBRARY_PATH |
| 13551 | shlibpath_overrides_runpath=no |
| 13552 | hardcode_into_libs=yes |
| 13553 | ;; |
| 13554 | |
| 13555 | irix5* | irix6* | nonstopux*) |
| 13556 | case $host_os in |
| 13557 | nonstopux*) version_type=nonstopux ;; |
| 13558 | *) |
| 13559 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 13560 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13561 | else |
| 13562 | version_type=irix |
| 13563 | fi ;; |
| 13564 | esac |
| 13565 | need_lib_prefix=no |
| 13566 | need_version=no |
| 13567 | soname_spec='$libname$release$shared_ext$major' |
| 13568 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 13569 | case $host_os in |
| 13570 | irix5* | nonstopux*) |
| 13571 | libsuff= shlibsuff= |
| 13572 | ;; |
| 13573 | *) |
| 13574 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13575 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13576 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13577 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13578 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13579 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13580 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13581 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13582 | esac |
| 13583 | ;; |
| 13584 | esac |
| 13585 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13586 | shlibpath_overrides_runpath=no |
| 13587 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 13588 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 13589 | hardcode_into_libs=yes |
| 13590 | ;; |
| 13591 | |
| 13592 | # No shared lib support for Linux oldld, aout, or coff. |
| 13593 | linux*oldld* | linux*aout* | linux*coff*) |
| 13594 | dynamic_linker=no |
| 13595 | ;; |
| 13596 | |
| 13597 | linux*android*) |
| 13598 | version_type=none # Android doesn't support versioned libraries. |
| 13599 | need_lib_prefix=no |
| 13600 | need_version=no |
| 13601 | library_names_spec='$libname$release$shared_ext $libname$shared_ext' |
| 13602 | soname_spec='$libname$release$shared_ext' |
| 13603 | finish_cmds= |
| 13604 | shlibpath_var=LD_LIBRARY_PATH |
| 13605 | shlibpath_overrides_runpath=yes |
| 13606 | |
| 13607 | # This implies no fast_install, which is unacceptable. |
| 13608 | # Some rework will be needed to allow for fast_install |
| 13609 | # before this can be enabled. |
| 13610 | hardcode_into_libs=yes |
| 13611 | |
| 13612 | dynamic_linker='Android linker' |
| 13613 | # -rpath works at least for libraries that are not overridden by |
| 13614 | # libraries installed in system locations. |
| 13615 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13616 | ;; |
| 13617 | |
| 13618 | # This must be glibc/ELF. |
| 13619 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 13620 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13621 | need_lib_prefix=no |
| 13622 | need_version=no |
| 13623 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13624 | soname_spec='$libname$release$shared_ext$major' |
| 13625 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13626 | shlibpath_var=LD_LIBRARY_PATH |
| 13627 | shlibpath_overrides_runpath=no |
| 13628 | |
| 13629 | # Some binutils ld are patched to set DT_RUNPATH |
| 13630 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 13631 | then : |
| 13632 | printf %s "(cached) " >&6 |
| 13633 | else case e in #( |
| 13634 | e) lt_cv_shlibpath_overrides_runpath=no |
| 13635 | save_LDFLAGS=$LDFLAGS |
| 13636 | save_libdir=$libdir |
| 13637 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 13638 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 13639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13640 | /* end confdefs.h. */ |
| 13641 | |
| 13642 | int |
| 13643 | main (void) |
| 13644 | { |
| 13645 | |
| 13646 | ; |
| 13647 | return 0; |
| 13648 | } |
| 13649 | _ACEOF |
| 13650 | if ac_fn_c_try_link "$LINENO" |
| 13651 | then : |
| 13652 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 13653 | then : |
| 13654 | lt_cv_shlibpath_overrides_runpath=yes |
| 13655 | fi |
| 13656 | fi |
| 13657 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13658 | conftest$ac_exeext conftest.$ac_ext |
| 13659 | LDFLAGS=$save_LDFLAGS |
| 13660 | libdir=$save_libdir |
| 13661 | ;; |
| 13662 | esac |
| 13663 | fi |
| 13664 | |
| 13665 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 13666 | |
| 13667 | # This implies no fast_install, which is unacceptable. |
| 13668 | # Some rework will be needed to allow for fast_install |
| 13669 | # before this can be enabled. |
| 13670 | hardcode_into_libs=yes |
| 13671 | |
| 13672 | # Ideally, we could use ldconfig to report *all* directories which are |
| 13673 | # searched for libraries, however this is still not possible. Aside from not |
| 13674 | # being certain /sbin/ldconfig is available, command |
| 13675 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 13676 | # even though it is searched at run-time. Try to do the best guess by |
| 13677 | # appending ld.so.conf contents (and includes) to the search path. |
| 13678 | if test -f /etc/ld.so.conf; then |
| 13679 | 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' ' '` |
| 13680 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13681 | fi |
| 13682 | |
| 13683 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13684 | # powerpc, because MkLinux only supported shared libraries with the |
| 13685 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13686 | # most powerpc-linux boxes support dynamic linking these days and |
| 13687 | # people can always --disable-shared, the test was removed, and we |
| 13688 | # assume the GNU/Linux dynamic linker is in use. |
| 13689 | dynamic_linker='GNU/Linux ld.so' |
| 13690 | ;; |
| 13691 | |
| 13692 | netbsdelf*-gnu) |
| 13693 | version_type=linux |
| 13694 | need_lib_prefix=no |
| 13695 | need_version=no |
| 13696 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13697 | soname_spec='$libname$release$shared_ext$major' |
| 13698 | shlibpath_var=LD_LIBRARY_PATH |
| 13699 | shlibpath_overrides_runpath=no |
| 13700 | hardcode_into_libs=yes |
| 13701 | dynamic_linker='NetBSD ld.elf_so' |
| 13702 | ;; |
| 13703 | |
| 13704 | netbsd*) |
| 13705 | version_type=sunos |
| 13706 | need_lib_prefix=no |
| 13707 | need_version=no |
| 13708 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13709 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13710 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13711 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13712 | else |
| 13713 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13714 | soname_spec='$libname$release$shared_ext$major' |
| 13715 | dynamic_linker='NetBSD ld.elf_so' |
| 13716 | fi |
| 13717 | shlibpath_var=LD_LIBRARY_PATH |
| 13718 | shlibpath_overrides_runpath=yes |
| 13719 | hardcode_into_libs=yes |
| 13720 | ;; |
| 13721 | |
| 13722 | *-mlibc) |
| 13723 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13724 | need_lib_prefix=no |
| 13725 | need_version=no |
| 13726 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13727 | soname_spec='$libname$release$shared_ext$major' |
| 13728 | dynamic_linker='mlibc ld.so' |
| 13729 | shlibpath_var=LD_LIBRARY_PATH |
| 13730 | shlibpath_overrides_runpath=no |
| 13731 | hardcode_into_libs=yes |
| 13732 | ;; |
| 13733 | |
| 13734 | newsos6) |
| 13735 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13736 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13737 | shlibpath_var=LD_LIBRARY_PATH |
| 13738 | shlibpath_overrides_runpath=yes |
| 13739 | ;; |
| 13740 | |
| 13741 | *nto* | *qnx*) |
| 13742 | version_type=qnx |
| 13743 | need_lib_prefix=no |
| 13744 | need_version=no |
| 13745 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13746 | soname_spec='$libname$release$shared_ext$major' |
| 13747 | shlibpath_var=LD_LIBRARY_PATH |
| 13748 | shlibpath_overrides_runpath=no |
| 13749 | hardcode_into_libs=yes |
| 13750 | dynamic_linker='ldqnx.so' |
| 13751 | ;; |
| 13752 | |
| 13753 | openbsd*) |
| 13754 | version_type=sunos |
| 13755 | sys_lib_dlsearch_path_spec=/usr/lib |
| 13756 | need_lib_prefix=no |
| 13757 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 13758 | need_version=no |
| 13759 | else |
| 13760 | need_version=yes |
| 13761 | fi |
| 13762 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13763 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13764 | shlibpath_var=LD_LIBRARY_PATH |
| 13765 | shlibpath_overrides_runpath=yes |
| 13766 | ;; |
| 13767 | |
| 13768 | os2*) |
| 13769 | libname_spec='$name' |
| 13770 | version_type=windows |
| 13771 | shrext_cmds=.dll |
| 13772 | need_version=no |
| 13773 | need_lib_prefix=no |
| 13774 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 13775 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 13776 | v=$($ECHO $release$versuffix | tr -d .-); |
| 13777 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 13778 | $ECHO $n$v`$shared_ext' |
| 13779 | library_names_spec='${libname}_dll.$libext' |
| 13780 | dynamic_linker='OS/2 ld.exe' |
| 13781 | shlibpath_var=BEGINLIBPATH |
| 13782 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13783 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13784 | postinstall_cmds='base_file=`basename \$file`~ |
| 13785 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 13786 | dldir=$destdir/`dirname \$dlpath`~ |
| 13787 | test -d \$dldir || mkdir -p \$dldir~ |
| 13788 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13789 | chmod a+x \$dldir/$dlname~ |
| 13790 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13791 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13792 | fi' |
| 13793 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 13794 | dlpath=$dir/\$dldll~ |
| 13795 | $RM \$dlpath' |
| 13796 | ;; |
| 13797 | |
| 13798 | osf3* | osf4* | osf5*) |
| 13799 | version_type=osf |
| 13800 | need_lib_prefix=no |
| 13801 | need_version=no |
| 13802 | soname_spec='$libname$release$shared_ext$major' |
| 13803 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13804 | shlibpath_var=LD_LIBRARY_PATH |
| 13805 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13806 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13807 | ;; |
| 13808 | |
| 13809 | rdos*) |
| 13810 | dynamic_linker=no |
| 13811 | ;; |
| 13812 | |
| 13813 | serenity*) |
| 13814 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13815 | need_lib_prefix=no |
| 13816 | need_version=no |
| 13817 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13818 | soname_spec='$libname$release$shared_ext$major' |
| 13819 | shlibpath_var=LD_LIBRARY_PATH |
| 13820 | shlibpath_overrides_runpath=no |
| 13821 | dynamic_linker='SerenityOS LibELF' |
| 13822 | ;; |
| 13823 | |
| 13824 | solaris*) |
| 13825 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13826 | need_lib_prefix=no |
| 13827 | need_version=no |
| 13828 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13829 | soname_spec='$libname$release$shared_ext$major' |
| 13830 | shlibpath_var=LD_LIBRARY_PATH |
| 13831 | shlibpath_overrides_runpath=yes |
| 13832 | hardcode_into_libs=yes |
| 13833 | # ldd complains unless libraries are executable |
| 13834 | postinstall_cmds='chmod +x $lib' |
| 13835 | ;; |
| 13836 | |
| 13837 | sunos4*) |
| 13838 | version_type=sunos |
| 13839 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13840 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13841 | shlibpath_var=LD_LIBRARY_PATH |
| 13842 | shlibpath_overrides_runpath=yes |
| 13843 | if test yes = "$with_gnu_ld"; then |
| 13844 | need_lib_prefix=no |
| 13845 | fi |
| 13846 | need_version=yes |
| 13847 | ;; |
| 13848 | |
| 13849 | sysv4 | sysv4.3*) |
| 13850 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13851 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13852 | soname_spec='$libname$release$shared_ext$major' |
| 13853 | shlibpath_var=LD_LIBRARY_PATH |
| 13854 | case $host_vendor in |
| 13855 | sni) |
| 13856 | shlibpath_overrides_runpath=no |
| 13857 | need_lib_prefix=no |
| 13858 | runpath_var=LD_RUN_PATH |
| 13859 | ;; |
| 13860 | siemens) |
| 13861 | need_lib_prefix=no |
| 13862 | ;; |
| 13863 | motorola) |
| 13864 | need_lib_prefix=no |
| 13865 | need_version=no |
| 13866 | shlibpath_overrides_runpath=no |
| 13867 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13868 | ;; |
| 13869 | esac |
| 13870 | ;; |
| 13871 | |
| 13872 | sysv4*MP*) |
| 13873 | if test -d /usr/nec; then |
| 13874 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13875 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 13876 | soname_spec='$libname$shared_ext.$major' |
| 13877 | shlibpath_var=LD_LIBRARY_PATH |
| 13878 | fi |
| 13879 | ;; |
| 13880 | |
| 13881 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13882 | version_type=sco |
| 13883 | need_lib_prefix=no |
| 13884 | need_version=no |
| 13885 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 13886 | soname_spec='$libname$release$shared_ext$major' |
| 13887 | shlibpath_var=LD_LIBRARY_PATH |
| 13888 | shlibpath_overrides_runpath=yes |
| 13889 | hardcode_into_libs=yes |
| 13890 | if test yes = "$with_gnu_ld"; then |
| 13891 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13892 | else |
| 13893 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13894 | case $host_os in |
| 13895 | sco3.2v5*) |
| 13896 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13897 | ;; |
| 13898 | esac |
| 13899 | fi |
| 13900 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13901 | ;; |
| 13902 | |
| 13903 | tpf*) |
| 13904 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13905 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13906 | need_lib_prefix=no |
| 13907 | need_version=no |
| 13908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13909 | shlibpath_var=LD_LIBRARY_PATH |
| 13910 | shlibpath_overrides_runpath=no |
| 13911 | hardcode_into_libs=yes |
| 13912 | ;; |
| 13913 | |
| 13914 | uts4*) |
| 13915 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13916 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13917 | soname_spec='$libname$release$shared_ext$major' |
| 13918 | shlibpath_var=LD_LIBRARY_PATH |
| 13919 | ;; |
| 13920 | |
| 13921 | emscripten*) |
| 13922 | version_type=none |
| 13923 | need_lib_prefix=no |
| 13924 | need_version=no |
| 13925 | library_names_spec='$libname$release$shared_ext' |
| 13926 | soname_spec='$libname$release$shared_ext' |
| 13927 | finish_cmds= |
| 13928 | dynamic_linker="Emscripten linker" |
| 13929 | lt_prog_compiler_wl= |
| 13930 | lt_prog_compiler_pic= |
| 13931 | lt_prog_compiler_static= |
| 13932 | |
| 13933 | |
| 13934 | if test yes = "$GCC"; then |
| 13935 | lt_prog_compiler_wl='-Wl,' |
| 13936 | lt_prog_compiler_static='-static' |
| 13937 | |
| 13938 | case $host_os in |
| 13939 | aix*) |
| 13940 | # All AIX code is PIC. |
| 13941 | if test ia64 = "$host_cpu"; then |
| 13942 | # AIX 5 now supports IA64 processor |
| 13943 | lt_prog_compiler_static='-Bstatic' |
| 13944 | fi |
| 13945 | lt_prog_compiler_pic='-fPIC' |
| 13946 | ;; |
| 13947 | |
| 13948 | amigaos*) |
| 13949 | case $host_cpu in |
| 13950 | powerpc) |
| 13951 | # see comment about AmigaOS4 .so support |
| 13952 | lt_prog_compiler_pic='-fPIC' |
| 13953 | ;; |
| 13954 | m68k) |
| 13955 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13956 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 13957 | # like '-m68040'. |
| 13958 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 13959 | ;; |
| 13960 | esac |
| 13961 | ;; |
| 13962 | |
| 13963 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13964 | # PIC is the default for these OSes. |
| 13965 | ;; |
| 13966 | |
| 13967 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 13968 | # This hack is so that the source file can tell whether it is being |
| 13969 | # built for inclusion in a dll (and should export symbols for example). |
| 13970 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 13971 | # (--disable-auto-import) libraries |
| 13972 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13973 | case $host_os in |
| 13974 | os2*) |
| 13975 | lt_prog_compiler_static='$wl-static' |
| 13976 | ;; |
| 13977 | esac |
| 13978 | ;; |
| 13979 | |
| 13980 | darwin* | rhapsody*) |
| 13981 | # PIC is the default on this platform |
| 13982 | # Common symbols not allowed in MH_DYLIB files |
| 13983 | lt_prog_compiler_pic='-fno-common' |
| 13984 | ;; |
| 13985 | |
| 13986 | haiku*) |
| 13987 | # PIC is the default for Haiku. |
| 13988 | # The "-static" flag exists, but is broken. |
| 13989 | lt_prog_compiler_static= |
| 13990 | ;; |
| 13991 | |
| 13992 | hpux*) |
| 13993 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 13994 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 13995 | # sets the default TLS model and affects inlining. |
| 13996 | case $host_cpu in |
| 13997 | hppa*64*) |
| 13998 | # +Z the default |
| 13999 | ;; |
| 14000 | *) |
| 14001 | lt_prog_compiler_pic='-fPIC' |
| 14002 | ;; |
| 14003 | esac |
| 14004 | ;; |
| 14005 | |
| 14006 | interix[3-9]*) |
| 14007 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14008 | # Instead, we relocate shared libraries at runtime. |
| 14009 | ;; |
| 14010 | |
| 14011 | msdosdjgpp*) |
| 14012 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14013 | # on systems that don't support them. |
| 14014 | lt_prog_compiler_can_build_shared=no |
| 14015 | enable_shared=no |
| 14016 | ;; |
| 14017 | |
| 14018 | *nto* | *qnx*) |
| 14019 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14020 | # it will coredump. |
| 14021 | lt_prog_compiler_pic='-fPIC -shared' |
| 14022 | ;; |
| 14023 | |
| 14024 | sysv4*MP*) |
| 14025 | if test -d /usr/nec; then |
| 14026 | lt_prog_compiler_pic=-Kconform_pic |
| 14027 | fi |
| 14028 | ;; |
| 14029 | |
| 14030 | *) |
| 14031 | lt_prog_compiler_pic='-fPIC' |
| 14032 | ;; |
| 14033 | esac |
| 14034 | |
| 14035 | case $cc_basename in |
| 14036 | nvcc*) # Cuda Compiler Driver 2.2 |
| 14037 | lt_prog_compiler_wl='-Xlinker ' |
| 14038 | if test -n "$lt_prog_compiler_pic"; then |
| 14039 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 14040 | fi |
| 14041 | ;; |
| 14042 | esac |
| 14043 | else |
| 14044 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14045 | case $host_os in |
| 14046 | aix*) |
| 14047 | lt_prog_compiler_wl='-Wl,' |
| 14048 | if test ia64 = "$host_cpu"; then |
| 14049 | # AIX 5 now supports IA64 processor |
| 14050 | lt_prog_compiler_static='-Bstatic' |
| 14051 | else |
| 14052 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 14053 | fi |
| 14054 | ;; |
| 14055 | |
| 14056 | darwin* | rhapsody*) |
| 14057 | # PIC is the default on this platform |
| 14058 | # Common symbols not allowed in MH_DYLIB files |
| 14059 | lt_prog_compiler_pic='-fno-common' |
| 14060 | case $cc_basename in |
| 14061 | nagfor*) |
| 14062 | # NAG Fortran compiler |
| 14063 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14064 | lt_prog_compiler_pic='-PIC' |
| 14065 | lt_prog_compiler_static='-Bstatic' |
| 14066 | ;; |
| 14067 | esac |
| 14068 | ;; |
| 14069 | |
| 14070 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 14071 | # This hack is so that the source file can tell whether it is being |
| 14072 | # built for inclusion in a dll (and should export symbols for example). |
| 14073 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14074 | case $host_os in |
| 14075 | os2*) |
| 14076 | lt_prog_compiler_static='$wl-static' |
| 14077 | ;; |
| 14078 | esac |
| 14079 | ;; |
| 14080 | |
| 14081 | hpux9* | hpux10* | hpux11*) |
| 14082 | lt_prog_compiler_wl='-Wl,' |
| 14083 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14084 | # not for PA HP-UX. |
| 14085 | case $host_cpu in |
| 14086 | hppa*64*|ia64*) |
| 14087 | # +Z the default |
| 14088 | ;; |
| 14089 | *) |
| 14090 | lt_prog_compiler_pic='+Z' |
| 14091 | ;; |
| 14092 | esac |
| 14093 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14094 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 14095 | ;; |
| 14096 | |
| 14097 | irix5* | irix6* | nonstopux*) |
| 14098 | lt_prog_compiler_wl='-Wl,' |
| 14099 | # PIC (with -KPIC) is the default. |
| 14100 | lt_prog_compiler_static='-non_shared' |
| 14101 | ;; |
| 14102 | |
| 14103 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 14104 | case $cc_basename in |
| 14105 | # old Intel for x86_64, which still supported -KPIC. |
| 14106 | ecc*) |
| 14107 | lt_prog_compiler_wl='-Wl,' |
| 14108 | lt_prog_compiler_pic='-KPIC' |
| 14109 | lt_prog_compiler_static='-static' |
| 14110 | ;; |
| 14111 | *flang* | ftn | f18* | f95*) |
| 14112 | # Flang compiler. |
| 14113 | lt_prog_compiler_wl='-Wl,' |
| 14114 | lt_prog_compiler_pic='-fPIC' |
| 14115 | lt_prog_compiler_static='-static' |
| 14116 | ;; |
| 14117 | # icc used to be incompatible with GCC. |
| 14118 | # ICC 10 doesn't accept -KPIC any more. |
| 14119 | icc* | ifort*) |
| 14120 | lt_prog_compiler_wl='-Wl,' |
| 14121 | lt_prog_compiler_pic='-fPIC' |
| 14122 | lt_prog_compiler_static='-static' |
| 14123 | ;; |
| 14124 | # Lahey Fortran 8.1. |
| 14125 | lf95*) |
| 14126 | lt_prog_compiler_wl='-Wl,' |
| 14127 | lt_prog_compiler_pic='--shared' |
| 14128 | lt_prog_compiler_static='--static' |
| 14129 | ;; |
| 14130 | nagfor*) |
| 14131 | # NAG Fortran compiler |
| 14132 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14133 | lt_prog_compiler_pic='-PIC' |
| 14134 | lt_prog_compiler_static='-Bstatic' |
| 14135 | ;; |
| 14136 | tcc*) |
| 14137 | # Fabrice Bellard et al's Tiny C Compiler |
| 14138 | lt_prog_compiler_wl='-Wl,' |
| 14139 | lt_prog_compiler_pic='-fPIC' |
| 14140 | lt_prog_compiler_static='-static' |
| 14141 | ;; |
| 14142 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 14143 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14144 | # which looks to be a dead project) |
| 14145 | lt_prog_compiler_wl='-Wl,' |
| 14146 | lt_prog_compiler_pic='-fpic' |
| 14147 | lt_prog_compiler_static='-Bstatic' |
| 14148 | ;; |
| 14149 | ccc*) |
| 14150 | lt_prog_compiler_wl='-Wl,' |
| 14151 | # All Alpha code is PIC. |
| 14152 | lt_prog_compiler_static='-non_shared' |
| 14153 | ;; |
| 14154 | xl* | bgxl* | bgf* | mpixl*) |
| 14155 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 14156 | lt_prog_compiler_wl='-Wl,' |
| 14157 | lt_prog_compiler_pic='-qpic' |
| 14158 | lt_prog_compiler_static='-qstaticlink' |
| 14159 | ;; |
| 14160 | *) |
| 14161 | case `$CC -V 2>&1 | $SED 5q` in |
| 14162 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 14163 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 14164 | lt_prog_compiler_pic='-KPIC' |
| 14165 | lt_prog_compiler_static='-Bstatic' |
| 14166 | lt_prog_compiler_wl='' |
| 14167 | ;; |
| 14168 | *Sun\ F* | *Sun*Fortran*) |
| 14169 | lt_prog_compiler_pic='-KPIC' |
| 14170 | lt_prog_compiler_static='-Bstatic' |
| 14171 | lt_prog_compiler_wl='-Qoption ld ' |
| 14172 | ;; |
| 14173 | *Sun\ C*) |
| 14174 | # Sun C 5.9 |
| 14175 | lt_prog_compiler_pic='-KPIC' |
| 14176 | lt_prog_compiler_static='-Bstatic' |
| 14177 | lt_prog_compiler_wl='-Wl,' |
| 14178 | ;; |
| 14179 | *Intel*\ [CF]*Compiler*) |
| 14180 | lt_prog_compiler_wl='-Wl,' |
| 14181 | lt_prog_compiler_pic='-fPIC' |
| 14182 | lt_prog_compiler_static='-static' |
| 14183 | ;; |
| 14184 | *Portland\ Group*) |
| 14185 | lt_prog_compiler_wl='-Wl,' |
| 14186 | lt_prog_compiler_pic='-fpic' |
| 14187 | lt_prog_compiler_static='-Bstatic' |
| 14188 | ;; |
| 14189 | esac |
| 14190 | ;; |
| 14191 | esac |
| 14192 | ;; |
| 14193 | |
| 14194 | newsos6) |
| 14195 | lt_prog_compiler_pic='-KPIC' |
| 14196 | lt_prog_compiler_static='-Bstatic' |
| 14197 | ;; |
| 14198 | |
| 14199 | *-mlibc) |
| 14200 | lt_prog_compiler_wl='-Wl,' |
| 14201 | lt_prog_compiler_pic='-fPIC' |
| 14202 | lt_prog_compiler_static='-static' |
| 14203 | ;; |
| 14204 | |
| 14205 | *nto* | *qnx*) |
| 14206 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14207 | # it will coredump. |
| 14208 | lt_prog_compiler_pic='-fPIC -shared' |
| 14209 | ;; |
| 14210 | |
| 14211 | osf3* | osf4* | osf5*) |
| 14212 | lt_prog_compiler_wl='-Wl,' |
| 14213 | # All OSF/1 code is PIC. |
| 14214 | lt_prog_compiler_static='-non_shared' |
| 14215 | ;; |
| 14216 | |
| 14217 | rdos*) |
| 14218 | lt_prog_compiler_static='-non_shared' |
| 14219 | ;; |
| 14220 | |
| 14221 | serenity*) |
| 14222 | ;; |
| 14223 | |
| 14224 | solaris*) |
| 14225 | lt_prog_compiler_pic='-KPIC' |
| 14226 | lt_prog_compiler_static='-Bstatic' |
| 14227 | case $cc_basename in |
| 14228 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 14229 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14230 | *) |
| 14231 | lt_prog_compiler_wl='-Wl,';; |
| 14232 | esac |
| 14233 | ;; |
| 14234 | |
| 14235 | sunos4*) |
| 14236 | lt_prog_compiler_wl='-Qoption ld ' |
| 14237 | lt_prog_compiler_pic='-PIC' |
| 14238 | lt_prog_compiler_static='-Bstatic' |
| 14239 | ;; |
| 14240 | |
| 14241 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 14242 | lt_prog_compiler_wl='-Wl,' |
| 14243 | lt_prog_compiler_pic='-KPIC' |
| 14244 | lt_prog_compiler_static='-Bstatic' |
| 14245 | ;; |
| 14246 | |
| 14247 | sysv4*MP*) |
| 14248 | if test -d /usr/nec; then |
| 14249 | lt_prog_compiler_pic='-Kconform_pic' |
| 14250 | lt_prog_compiler_static='-Bstatic' |
| 14251 | fi |
| 14252 | ;; |
| 14253 | |
| 14254 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14255 | lt_prog_compiler_wl='-Wl,' |
| 14256 | lt_prog_compiler_pic='-KPIC' |
| 14257 | lt_prog_compiler_static='-Bstatic' |
| 14258 | ;; |
| 14259 | |
| 14260 | unicos*) |
| 14261 | lt_prog_compiler_wl='-Wl,' |
| 14262 | lt_prog_compiler_can_build_shared=no |
| 14263 | ;; |
| 14264 | |
| 14265 | uts4*) |
| 14266 | lt_prog_compiler_pic='-pic' |
| 14267 | lt_prog_compiler_static='-Bstatic' |
| 14268 | ;; |
| 14269 | |
| 14270 | *) |
| 14271 | lt_prog_compiler_can_build_shared=no |
| 14272 | ;; |
| 14273 | esac |
| 14274 | fi |
| 14275 | |
| 14276 | case $host_os in |
| 14277 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 14278 | *djgpp*) |
| 14279 | lt_prog_compiler_pic= |
| 14280 | ;; |
| 14281 | *) |
| 14282 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14283 | ;; |
| 14284 | esac |
| 14285 | |
| 14286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14287 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 14288 | if test ${lt_cv_prog_compiler_pic+y} |
| 14289 | then : |
| 14290 | printf %s "(cached) " >&6 |
| 14291 | else case e in #( |
| 14292 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; |
| 14293 | esac |
| 14294 | fi |
| 14295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 14296 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 14297 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 14298 | |
| 14299 | # |
| 14300 | # Check to make sure the PIC flag actually works. |
| 14301 | # |
| 14302 | if test -n "$lt_prog_compiler_pic"; then |
| 14303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14304 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 14305 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 14306 | then : |
| 14307 | printf %s "(cached) " >&6 |
| 14308 | else case e in #( |
| 14309 | e) lt_cv_prog_compiler_pic_works=no |
| 14310 | ac_outfile=conftest.$ac_objext |
| 14311 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14312 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 14313 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14314 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14315 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14316 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14317 | # The option is referenced via a variable to avoid confusing sed. |
| 14318 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14319 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14320 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14321 | -e 's:$: $lt_compiler_flag:'` |
| 14322 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14323 | (eval "$lt_compile" 2>conftest.err) |
| 14324 | ac_status=$? |
| 14325 | cat conftest.err >&5 |
| 14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14327 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14328 | # The compiler can only warn and ignore the option if not recognized |
| 14329 | # So say no if there are warnings other than the usual output. |
| 14330 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14331 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14332 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14333 | lt_cv_prog_compiler_pic_works=yes |
| 14334 | fi |
| 14335 | fi |
| 14336 | $RM conftest* |
| 14337 | ;; |
| 14338 | esac |
| 14339 | fi |
| 14340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 14341 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 14342 | |
| 14343 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 14344 | case $lt_prog_compiler_pic in |
| 14345 | "" | " "*) ;; |
| 14346 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14347 | esac |
| 14348 | else |
| 14349 | lt_prog_compiler_pic= |
| 14350 | lt_prog_compiler_can_build_shared=no |
| 14351 | fi |
| 14352 | |
| 14353 | fi |
| 14354 | |
| 14355 | |
| 14356 | |
| 14357 | |
| 14358 | |
| 14359 | # |
| 14360 | # Check to make sure the static flag actually works. |
| 14361 | # |
| 14362 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14364 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14365 | if test ${lt_cv_prog_compiler_static_works+y} |
| 14366 | then : |
| 14367 | printf %s "(cached) " >&6 |
| 14368 | else case e in #( |
| 14369 | e) lt_cv_prog_compiler_static_works=no |
| 14370 | save_LDFLAGS=$LDFLAGS |
| 14371 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14372 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14373 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14374 | # The linker can only warn and ignore the option if not recognized |
| 14375 | # So say no if there are warnings |
| 14376 | if test -s conftest.err; then |
| 14377 | # Append any errors to the config.log. |
| 14378 | cat conftest.err 1>&5 |
| 14379 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14380 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14381 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14382 | lt_cv_prog_compiler_static_works=yes |
| 14383 | fi |
| 14384 | else |
| 14385 | lt_cv_prog_compiler_static_works=yes |
| 14386 | fi |
| 14387 | fi |
| 14388 | $RM -r conftest* |
| 14389 | LDFLAGS=$save_LDFLAGS |
| 14390 | ;; |
| 14391 | esac |
| 14392 | fi |
| 14393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 14394 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 14395 | |
| 14396 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 14397 | : |
| 14398 | else |
| 14399 | lt_prog_compiler_static= |
| 14400 | fi |
| 14401 | |
| 14402 | |
| 14403 | |
| 14404 | ='-fPIC' |
| 14405 | archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' |
| 14406 | 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' |
| 14407 | archive_cmds_need_lc=no |
| 14408 | no_undefined_flag= |
| 14409 | ;; |
| 14410 | |
| 14411 | *) |
| 14412 | dynamic_linker=no |
| 14413 | ;; |
| 14414 | esac |
| 14415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14416 | printf "%s\n" "$dynamic_linker" >&6; } |
| 14417 | test no = "$dynamic_linker" && can_build_shared=no |
| 14418 | |
| 14419 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14420 | if test yes = "$GCC"; then |
| 14421 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14422 | fi |
| 14423 | |
| 14424 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 14425 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 14426 | fi |
| 14427 | |
| 14428 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 14429 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 14430 | fi |
| 14431 | |
| 14432 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 14433 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 14434 | |
| 14435 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 14436 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 14437 | |
| 14438 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 14439 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 14440 | |
| 14441 | |
| 14442 | |
| 14443 | |
| 14444 | |
| 14445 | |
| 14446 | |
| 14447 | |
| 14448 | |
| 14449 | |
| 14450 | |
| 14451 | |
| 14452 | |
| 14453 | |
| 14454 | |
| 14455 | |
| 14456 | |
| 14457 | |
| 14458 | |
| 14459 | |
| 14460 | |
| 14461 | |
| 14462 | |
| 14463 | |
| 14464 | |
| 14465 | |
| 14466 | |
| 14467 | |
| 14468 | |
| 14469 | |
| 14470 | |
| 14471 | |
| 14472 | |
| 14473 | |
| 14474 | |
| 14475 | |
| 14476 | |
| 14477 | |
| 14478 | |
| 14479 | |
| 14480 | |
| 14481 | |
| 14482 | |
| 14483 | |
| 14484 | |
| 14485 | |
| 14486 | |
| 14487 | |
| 14488 | |
| 14489 | |
| 14490 | |
| 14491 | |
| 14492 | |
| 14493 | |
| 14494 | |
| 14495 | |
| 14496 | |
| 14497 | |
| 14498 | |
| 14499 | |
| 14500 | |
| 14501 | |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
| 14506 | |
| 14507 | |
| 14508 | |
| 14509 | |
| 14510 | |
| 14511 | |
| 14512 | |
| 14513 | |
| 14514 | |
| 14515 | |
| 14516 | |
| 14517 | |
| 14518 | |
| 14519 | |
| 14520 | |
| 14521 | |
| 14522 | |
| 14523 | |
| 14524 | |
| 14525 | |
| 14526 | |
| 14527 | |
| 14528 | |
| 14529 | |
| 14530 | |
| 14531 | |
| 14532 | |
| 14533 | |
| 14534 | |
| 14535 | |
| 14536 | |
| 14537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 14538 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 14539 | hardcode_action= |
| 14540 | if test -n "$hardcode_libdir_flag_spec" || |
| 14541 | test -n "$runpath_var" || |
| 14542 | test yes = "$hardcode_automatic"; then |
| 14543 | |
| 14544 | # We can hardcode non-existent directories. |
| 14545 | if test no != "$hardcode_direct" && |
| 14546 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14547 | # have to relink, otherwise we might link with an installed library |
| 14548 | # when we should be linking with a yet-to-be-installed one |
| 14549 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 14550 | test no != "$hardcode_minus_L"; then |
| 14551 | # Linking always hardcodes the temporary library directory. |
| 14552 | hardcode_action=relink |
| 14553 | else |
| 14554 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14555 | hardcode_action=immediate |
| 14556 | fi |
| 14557 | else |
| 14558 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14559 | # directories. |
| 14560 | hardcode_action=unsupported |
| 14561 | fi |
| 14562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 14563 | printf "%s\n" "$hardcode_action" >&6; } |
| 14564 | |
| 14565 | if test relink = "$hardcode_action" || |
| 14566 | test yes = "$inherit_rpath"; then |
| 14567 | # Fast installation is not supported |
| 14568 | enable_fast_install=no |
| 14569 | elif test yes = "$shlibpath_overrides_runpath" || |
| 14570 | test no = "$enable_shared"; then |
| 14571 | # Fast installation is not necessary |
| 14572 | enable_fast_install=needless |
| 14573 | fi |
| 14574 | |
| 14575 | |
| 14576 | |
| 14577 | |
| 14578 | |
| 14579 | |
| 14580 | if test yes != "$enable_dlopen"; then |
| 14581 | enable_dlopen=unknown |
| 14582 | enable_dlopen_self=unknown |
| 14583 | enable_dlopen_self_static=unknown |
| 14584 | else |
| 14585 | lt_cv_dlopen=no |
| 14586 | lt_cv_dlopen_libs= |
| 14587 | |
| 14588 | case $host_os in |
| 14589 | beos*) |
| 14590 | lt_cv_dlopen=load_add_on |
| 14591 | lt_cv_dlopen_libs= |
| 14592 | lt_cv_dlopen_self=yes |
| 14593 | ;; |
| 14594 | |
| 14595 | mingw* | windows* | pw32* | cegcc*) |
| 14596 | lt_cv_dlopen=LoadLibrary |
| 14597 | lt_cv_dlopen_libs= |
| 14598 | ;; |
| 14599 | |
| 14600 | cygwin*) |
| 14601 | lt_cv_dlopen=dlopen |
| 14602 | lt_cv_dlopen_libs= |
| 14603 | ;; |
| 14604 | |
| 14605 | darwin*) |
| 14606 | # if libdl is installed we need to link against it |
| 14607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 14608 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 14609 | if test ${ac_cv_lib_dl_dlopen+y} |
| 14610 | then : |
| 14611 | printf %s "(cached) " >&6 |
| 14612 | else case e in #( |
| 14613 | e) ac_check_lib_save_LIBS=$LIBS |
| 14614 | LIBS="-ldl $LIBS" |
| 14615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14616 | /* end confdefs.h. */ |
| 14617 | |
| 14618 | /* Override any GCC internal prototype to avoid an error. |
| 14619 | Use char because int might match the return type of a GCC |
| 14620 | builtin and then its argument prototype would still apply. |
| 14621 | The 'extern "C"' is for builds by C++ compilers; |
| 14622 | although this is not generally supported in C code supporting it here |
| 14623 | has little cost and some practical benefit (sr 110532). */ |
| 14624 | #ifdef __cplusplus |
| 14625 | extern "C" |
| 14626 | #endif |
| 14627 | char dlopen (void); |
| 14628 | int |
| 14629 | main (void) |
| 14630 | { |
| 14631 | return dlopen (); |
| 14632 | ; |
| 14633 | return 0; |
| 14634 | } |
| 14635 | _ACEOF |
| 14636 | if ac_fn_c_try_link "$LINENO" |
| 14637 | then : |
| 14638 | ac_cv_lib_dl_dlopen=yes |
| 14639 | else case e in #( |
| 14640 | e) ac_cv_lib_dl_dlopen=no ;; |
| 14641 | esac |
| 14642 | fi |
| 14643 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14644 | conftest$ac_exeext conftest.$ac_ext |
| 14645 | LIBS=$ac_check_lib_save_LIBS ;; |
| 14646 | esac |
| 14647 | fi |
| 14648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14649 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 14650 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 14651 | then : |
| 14652 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 14653 | else case e in #( |
| 14654 | e) |
| 14655 | lt_cv_dlopen=dyld |
| 14656 | lt_cv_dlopen_libs= |
| 14657 | lt_cv_dlopen_self=yes |
| 14658 | ;; |
| 14659 | esac |
| 14660 | fi |
| 14661 | |
| 14662 | ;; |
| 14663 | |
| 14664 | tpf*) |
| 14665 | # Don't try to run any link tests for TPF. We know it's impossible |
| 14666 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 14667 | lt_cv_dlopen=dlopen |
| 14668 | lt_cv_dlopen_libs= |
| 14669 | lt_cv_dlopen_self=no |
| 14670 | ;; |
| 14671 | |
| 14672 | *) |
| 14673 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 14674 | if test "x$ac_cv_func_shl_load" = xyes |
| 14675 | then : |
| 14676 | lt_cv_dlopen=shl_load |
| 14677 | else case e in #( |
| 14678 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 14679 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 14680 | if test ${ac_cv_lib_dld_shl_load+y} |
| 14681 | then : |
| 14682 | printf %s "(cached) " >&6 |
| 14683 | else case e in #( |
| 14684 | e) ac_check_lib_save_LIBS=$LIBS |
| 14685 | LIBS="-ldld $LIBS" |
| 14686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14687 | /* end confdefs.h. */ |
| 14688 | |
| 14689 | /* Override any GCC internal prototype to avoid an error. |
| 14690 | Use char because int might match the return type of a GCC |
| 14691 | builtin and then its argument prototype would still apply. |
| 14692 | The 'extern "C"' is for builds by C++ compilers; |
| 14693 | although this is not generally supported in C code supporting it here |
| 14694 | has little cost and some practical benefit (sr 110532). */ |
| 14695 | #ifdef __cplusplus |
| 14696 | extern "C" |
| 14697 | #endif |
| 14698 | char shl_load (void); |
| 14699 | int |
| 14700 | main (void) |
| 14701 | { |
| 14702 | return shl_load (); |
| 14703 | ; |
| 14704 | return 0; |
| 14705 | } |
| 14706 | _ACEOF |
| 14707 | if ac_fn_c_try_link "$LINENO" |
| 14708 | then : |
| 14709 | ac_cv_lib_dld_shl_load=yes |
| 14710 | else case e in #( |
| 14711 | e) ac_cv_lib_dld_shl_load=no ;; |
| 14712 | esac |
| 14713 | fi |
| 14714 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14715 | conftest$ac_exeext conftest.$ac_ext |
| 14716 | LIBS=$ac_check_lib_save_LIBS ;; |
| 14717 | esac |
| 14718 | fi |
| 14719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 14720 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 14721 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 14722 | then : |
| 14723 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 14724 | else case e in #( |
| 14725 | e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 14726 | if test "x$ac_cv_func_dlopen" = xyes |
| 14727 | then : |
| 14728 | lt_cv_dlopen=dlopen |
| 14729 | else case e in #( |
| 14730 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 14731 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 14732 | if test ${ac_cv_lib_dl_dlopen+y} |
| 14733 | then : |
| 14734 | printf %s "(cached) " >&6 |
| 14735 | else case e in #( |
| 14736 | e) ac_check_lib_save_LIBS=$LIBS |
| 14737 | LIBS="-ldl $LIBS" |
| 14738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14739 | /* end confdefs.h. */ |
| 14740 | |
| 14741 | /* Override any GCC internal prototype to avoid an error. |
| 14742 | Use char because int might match the return type of a GCC |
| 14743 | builtin and then its argument prototype would still apply. |
| 14744 | The 'extern "C"' is for builds by C++ compilers; |
| 14745 | although this is not generally supported in C code supporting it here |
| 14746 | has little cost and some practical benefit (sr 110532). */ |
| 14747 | #ifdef __cplusplus |
| 14748 | extern "C" |
| 14749 | #endif |
| 14750 | char dlopen (void); |
| 14751 | int |
| 14752 | main (void) |
| 14753 | { |
| 14754 | return dlopen (); |
| 14755 | ; |
| 14756 | return 0; |
| 14757 | } |
| 14758 | _ACEOF |
| 14759 | if ac_fn_c_try_link "$LINENO" |
| 14760 | then : |
| 14761 | ac_cv_lib_dl_dlopen=yes |
| 14762 | else case e in #( |
| 14763 | e) ac_cv_lib_dl_dlopen=no ;; |
| 14764 | esac |
| 14765 | fi |
| 14766 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14767 | conftest$ac_exeext conftest.$ac_ext |
| 14768 | LIBS=$ac_check_lib_save_LIBS ;; |
| 14769 | esac |
| 14770 | fi |
| 14771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14772 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 14773 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 14774 | then : |
| 14775 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 14776 | else case e in #( |
| 14777 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 14778 | printf %s "checking for dlopen in -lsvld... " >&6; } |
| 14779 | if test ${ac_cv_lib_svld_dlopen+y} |
| 14780 | then : |
| 14781 | printf %s "(cached) " >&6 |
| 14782 | else case e in #( |
| 14783 | e) ac_check_lib_save_LIBS=$LIBS |
| 14784 | LIBS="-lsvld $LIBS" |
| 14785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14786 | /* end confdefs.h. */ |
| 14787 | |
| 14788 | /* Override any GCC internal prototype to avoid an error. |
| 14789 | Use char because int might match the return type of a GCC |
| 14790 | builtin and then its argument prototype would still apply. |
| 14791 | The 'extern "C"' is for builds by C++ compilers; |
| 14792 | although this is not generally supported in C code supporting it here |
| 14793 | has little cost and some practical benefit (sr 110532). */ |
| 14794 | #ifdef __cplusplus |
| 14795 | extern "C" |
| 14796 | #endif |
| 14797 | char dlopen (void); |
| 14798 | int |
| 14799 | main (void) |
| 14800 | { |
| 14801 | return dlopen (); |
| 14802 | ; |
| 14803 | return 0; |
| 14804 | } |
| 14805 | _ACEOF |
| 14806 | if ac_fn_c_try_link "$LINENO" |
| 14807 | then : |
| 14808 | ac_cv_lib_svld_dlopen=yes |
| 14809 | else case e in #( |
| 14810 | e) ac_cv_lib_svld_dlopen=no ;; |
| 14811 | esac |
| 14812 | fi |
| 14813 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14814 | conftest$ac_exeext conftest.$ac_ext |
| 14815 | LIBS=$ac_check_lib_save_LIBS ;; |
| 14816 | esac |
| 14817 | fi |
| 14818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 14819 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } |
| 14820 | if test "x$ac_cv_lib_svld_dlopen" = xyes |
| 14821 | then : |
| 14822 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 14823 | else case e in #( |
| 14824 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 14825 | printf %s "checking for dld_link in -ldld... " >&6; } |
| 14826 | if test ${ac_cv_lib_dld_dld_link+y} |
| 14827 | then : |
| 14828 | printf %s "(cached) " >&6 |
| 14829 | else case e in #( |
| 14830 | e) ac_check_lib_save_LIBS=$LIBS |
| 14831 | LIBS="-ldld $LIBS" |
| 14832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14833 | /* end confdefs.h. */ |
| 14834 | |
| 14835 | /* Override any GCC internal prototype to avoid an error. |
| 14836 | Use char because int might match the return type of a GCC |
| 14837 | builtin and then its argument prototype would still apply. |
| 14838 | The 'extern "C"' is for builds by C++ compilers; |
| 14839 | although this is not generally supported in C code supporting it here |
| 14840 | has little cost and some practical benefit (sr 110532). */ |
| 14841 | #ifdef __cplusplus |
| 14842 | extern "C" |
| 14843 | #endif |
| 14844 | char dld_link (void); |
| 14845 | int |
| 14846 | main (void) |
| 14847 | { |
| 14848 | return dld_link (); |
| 14849 | ; |
| 14850 | return 0; |
| 14851 | } |
| 14852 | _ACEOF |
| 14853 | if ac_fn_c_try_link "$LINENO" |
| 14854 | then : |
| 14855 | ac_cv_lib_dld_dld_link=yes |
| 14856 | else case e in #( |
| 14857 | e) ac_cv_lib_dld_dld_link=no ;; |
| 14858 | esac |
| 14859 | fi |
| 14860 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14861 | conftest$ac_exeext conftest.$ac_ext |
| 14862 | LIBS=$ac_check_lib_save_LIBS ;; |
| 14863 | esac |
| 14864 | fi |
| 14865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 14866 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } |
| 14867 | if test "x$ac_cv_lib_dld_dld_link" = xyes |
| 14868 | then : |
| 14869 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 14870 | fi |
| 14871 | |
| 14872 | ;; |
| 14873 | esac |
| 14874 | fi |
| 14875 | |
| 14876 | ;; |
| 14877 | esac |
| 14878 | fi |
| 14879 | |
| 14880 | ;; |
| 14881 | esac |
| 14882 | fi |
| 14883 | |
| 14884 | ;; |
| 14885 | esac |
| 14886 | fi |
| 14887 | |
| 14888 | ;; |
| 14889 | esac |
| 14890 | fi |
| 14891 | |
| 14892 | ;; |
| 14893 | esac |
| 14894 | |
| 14895 | if test no = "$lt_cv_dlopen"; then |
| 14896 | enable_dlopen=no |
| 14897 | else |
| 14898 | enable_dlopen=yes |
| 14899 | fi |
| 14900 | |
| 14901 | case $lt_cv_dlopen in |
| 14902 | dlopen) |
| 14903 | save_CPPFLAGS=$CPPFLAGS |
| 14904 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 14905 | |
| 14906 | save_LDFLAGS=$LDFLAGS |
| 14907 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14908 | |
| 14909 | save_LIBS=$LIBS |
| 14910 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14911 | |
| 14912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 14913 | printf %s "checking whether a program can dlopen itself... " >&6; } |
| 14914 | if test ${lt_cv_dlopen_self+y} |
| 14915 | then : |
| 14916 | printf %s "(cached) " >&6 |
| 14917 | else case e in #( |
| 14918 | e) if test yes = "$cross_compiling"; then : |
| 14919 | lt_cv_dlopen_self=cross |
| 14920 | else |
| 14921 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14922 | lt_status=$lt_dlunknown |
| 14923 | cat > conftest.$ac_ext <<_LT_EOF |
| 14924 | #line $LINENO "configure" |
| 14925 | #include "confdefs.h" |
| 14926 | |
| 14927 | #if HAVE_DLFCN_H |
| 14928 | #include <dlfcn.h> |
| 14929 | #endif |
| 14930 | |
| 14931 | #include <stdio.h> |
| 14932 | |
| 14933 | #ifdef RTLD_GLOBAL |
| 14934 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14935 | #else |
| 14936 | # ifdef DL_GLOBAL |
| 14937 | # define LT_DLGLOBAL DL_GLOBAL |
| 14938 | # else |
| 14939 | # define LT_DLGLOBAL 0 |
| 14940 | # endif |
| 14941 | #endif |
| 14942 | |
| 14943 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14944 | find out it does not work in some platform. */ |
| 14945 | #ifndef LT_DLLAZY_OR_NOW |
| 14946 | # ifdef RTLD_LAZY |
| 14947 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14948 | # else |
| 14949 | # ifdef DL_LAZY |
| 14950 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14951 | # else |
| 14952 | # ifdef RTLD_NOW |
| 14953 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14954 | # else |
| 14955 | # ifdef DL_NOW |
| 14956 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14957 | # else |
| 14958 | # define LT_DLLAZY_OR_NOW 0 |
| 14959 | # endif |
| 14960 | # endif |
| 14961 | # endif |
| 14962 | # endif |
| 14963 | #endif |
| 14964 | |
| 14965 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 14966 | correspondingly for the symbols needed. */ |
| 14967 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 14968 | int fnord (void) __attribute__((visibility("default"))); |
| 14969 | #endif |
| 14970 | |
| 14971 | int fnord (void) { return 42; } |
| 14972 | int main (void) |
| 14973 | { |
| 14974 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14975 | int status = $lt_dlunknown; |
| 14976 | |
| 14977 | if (self) |
| 14978 | { |
| 14979 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14980 | else |
| 14981 | { |
| 14982 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14983 | else puts (dlerror ()); |
| 14984 | } |
| 14985 | /* dlclose (self); */ |
| 14986 | } |
| 14987 | else |
| 14988 | puts (dlerror ()); |
| 14989 | |
| 14990 | return status; |
| 14991 | } |
| 14992 | _LT_EOF |
| 14993 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 14994 | (eval $ac_link) 2>&5 |
| 14995 | ac_status=$? |
| 14996 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14997 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 14998 | (./conftest; exit; ) >&5 2>/dev/null |
| 14999 | lt_status=$? |
| 15000 | case x$lt_status in |
| 15001 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 15002 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 15003 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 15004 | esac |
| 15005 | else : |
| 15006 | # compilation failed |
| 15007 | lt_cv_dlopen_self=no |
| 15008 | fi |
| 15009 | fi |
| 15010 | rm -fr conftest* |
| 15011 | |
| 15012 | ;; |
| 15013 | esac |
| 15014 | fi |
| 15015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 15016 | printf "%s\n" "$lt_cv_dlopen_self" >&6; } |
| 15017 | |
| 15018 | if test yes = "$lt_cv_dlopen_self"; then |
| 15019 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 15020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 15021 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; } |
| 15022 | if test ${lt_cv_dlopen_self_static+y} |
| 15023 | then : |
| 15024 | printf %s "(cached) " >&6 |
| 15025 | else case e in #( |
| 15026 | e) if test yes = "$cross_compiling"; then : |
| 15027 | lt_cv_dlopen_self_static=cross |
| 15028 | else |
| 15029 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 15030 | lt_status=$lt_dlunknown |
| 15031 | cat > conftest.$ac_ext <<_LT_EOF |
| 15032 | #line $LINENO "configure" |
| 15033 | #include "confdefs.h" |
| 15034 | |
| 15035 | #if HAVE_DLFCN_H |
| 15036 | #include <dlfcn.h> |
| 15037 | #endif |
| 15038 | |
| 15039 | #include <stdio.h> |
| 15040 | |
| 15041 | #ifdef RTLD_GLOBAL |
| 15042 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 15043 | #else |
| 15044 | # ifdef DL_GLOBAL |
| 15045 | # define LT_DLGLOBAL DL_GLOBAL |
| 15046 | # else |
| 15047 | # define LT_DLGLOBAL 0 |
| 15048 | # endif |
| 15049 | #endif |
| 15050 | |
| 15051 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 15052 | find out it does not work in some platform. */ |
| 15053 | #ifndef LT_DLLAZY_OR_NOW |
| 15054 | # ifdef RTLD_LAZY |
| 15055 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 15056 | # else |
| 15057 | # ifdef DL_LAZY |
| 15058 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 15059 | # else |
| 15060 | # ifdef RTLD_NOW |
| 15061 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 15062 | # else |
| 15063 | # ifdef DL_NOW |
| 15064 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 15065 | # else |
| 15066 | # define LT_DLLAZY_OR_NOW 0 |
| 15067 | # endif |
| 15068 | # endif |
| 15069 | # endif |
| 15070 | # endif |
| 15071 | #endif |
| 15072 | |
| 15073 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 15074 | correspondingly for the symbols needed. */ |
| 15075 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 15076 | int fnord (void) __attribute__((visibility("default"))); |
| 15077 | #endif |
| 15078 | |
| 15079 | int fnord (void) { return 42; } |
| 15080 | int main (void) |
| 15081 | { |
| 15082 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 15083 | int status = $lt_dlunknown; |
| 15084 | |
| 15085 | if (self) |
| 15086 | { |
| 15087 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 15088 | else |
| 15089 | { |
| 15090 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 15091 | else puts (dlerror ()); |
| 15092 | } |
| 15093 | /* dlclose (self); */ |
| 15094 | } |
| 15095 | else |
| 15096 | puts (dlerror ()); |
| 15097 | |
| 15098 | return status; |
| 15099 | } |
| 15100 | _LT_EOF |
| 15101 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 15102 | (eval $ac_link) 2>&5 |
| 15103 | ac_status=$? |
| 15104 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15105 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 15106 | (./conftest; exit; ) >&5 2>/dev/null |
| 15107 | lt_status=$? |
| 15108 | case x$lt_status in |
| 15109 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 15110 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 15111 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 15112 | esac |
| 15113 | else : |
| 15114 | # compilation failed |
| 15115 | lt_cv_dlopen_self_static=no |
| 15116 | fi |
| 15117 | fi |
| 15118 | rm -fr conftest* |
| 15119 | |
| 15120 | ;; |
| 15121 | esac |
| 15122 | fi |
| 15123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 15124 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } |
| 15125 | fi |
| 15126 | |
| 15127 | CPPFLAGS=$save_CPPFLAGS |
| 15128 | LDFLAGS=$save_LDFLAGS |
| 15129 | LIBS=$save_LIBS |
| 15130 | ;; |
| 15131 | esac |
| 15132 | |
| 15133 | case $lt_cv_dlopen_self in |
| 15134 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 15135 | *) enable_dlopen_self=unknown ;; |
| 15136 | esac |
| 15137 | |
| 15138 | case $lt_cv_dlopen_self_static in |
| 15139 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 15140 | *) enable_dlopen_self_static=unknown ;; |
| 15141 | esac |
| 15142 | fi |
| 15143 | |
| 15144 | |
| 15145 | |
| 15146 | |
| 15147 | |
| 15148 | |
| 15149 | |
| 15150 | |
| 15151 | |
| 15152 | |
| 15153 | |
| 15154 | |
| 15155 | |
| 15156 | |
| 15157 | |
| 15158 | |
| 15159 | |
| 15160 | striplib= |
| 15161 | old_striplib= |
| 15162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 15163 | printf %s "checking whether stripping libraries is possible... " >&6; } |
| 15164 | if test -z "$STRIP"; then |
| 15165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15166 | printf "%s\n" "no" >&6; } |
| 15167 | else |
| 15168 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 15169 | old_striplib="$STRIP --strip-debug" |
| 15170 | striplib="$STRIP --strip-unneeded" |
| 15171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15172 | printf "%s\n" "yes" >&6; } |
| 15173 | else |
| 15174 | case $host_os in |
| 15175 | darwin*) |
| 15176 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15177 | striplib="$STRIP -x" |
| 15178 | old_striplib="$STRIP -S" |
| 15179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15180 | printf "%s\n" "yes" >&6; } |
| 15181 | ;; |
| 15182 | freebsd*) |
| 15183 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then |
| 15184 | old_striplib="$STRIP --strip-debug" |
| 15185 | striplib="$STRIP --strip-unneeded" |
| 15186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15187 | printf "%s\n" "yes" >&6; } |
| 15188 | else |
| 15189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15190 | printf "%s\n" "no" >&6; } |
| 15191 | fi |
| 15192 | ;; |
| 15193 | *) |
| 15194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15195 | printf "%s\n" "no" >&6; } |
| 15196 | ;; |
| 15197 | esac |
| 15198 | fi |
| 15199 | fi |
| 15200 | |
| 15201 | |
| 15202 | |
| 15203 | |
| 15204 | |
| 15205 | |
| 15206 | |
| 15207 | |
| 15208 | |
| 15209 | |
| 15210 | |
| 15211 | |
| 15212 | # Report what library types will actually be built |
| 15213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 15214 | printf %s "checking if libtool supports shared libraries... " >&6; } |
| 15215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 15216 | printf "%s\n" "$can_build_shared" >&6; } |
| 15217 | |
| 15218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 15219 | printf %s "checking whether to build shared libraries... " >&6; } |
| 15220 | test no = "$can_build_shared" && enable_shared=no |
| 15221 | |
| 15222 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 15223 | # are all built from PIC. |
| 15224 | case $host_os in |
| 15225 | aix3*) |
| 15226 | test yes = "$enable_shared" && enable_static=no |
| 15227 | if test -n "$RANLIB"; then |
| 15228 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 15229 | postinstall_cmds='$RANLIB $lib' |
| 15230 | fi |
| 15231 | ;; |
| 15232 | |
| 15233 | aix[4-9]*) |
| 15234 | if test ia64 != "$host_cpu"; then |
| 15235 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 15236 | yes,aix,yes) ;; # shared object as lib.so file only |
| 15237 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 15238 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 15239 | esac |
| 15240 | fi |
| 15241 | ;; |
| 15242 | esac |
| 15243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 15244 | printf "%s\n" "$enable_shared" >&6; } |
| 15245 | |
| 15246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 15247 | printf %s "checking whether to build static libraries... " >&6; } |
| 15248 | # Make sure either enable_shared or enable_static is yes. |
| 15249 | test yes = "$enable_shared" || enable_static=yes |
| 15250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 15251 | printf "%s\n" "$enable_static" >&6; } |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | fi |
| 15257 | ac_ext=c |
| 15258 | ac_cpp='$CPP $CPPFLAGS' |
| 15259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15262 | |
| 15263 | CC=$lt_save_CC |
| 15264 | |
| 15265 | |
| 15266 | |
| 15267 | |
| 15268 | |
| 15269 | |
| 15270 | |
| 15271 | |
| 15272 | |
| 15273 | |
| 15274 | |
| 15275 | |
| 15276 | |
| 15277 | |
| 15278 | |
| 15279 | ac_config_commands="$ac_config_commands libtool" |
| 15280 | |
| 15281 | |
| 15282 | |
| 15283 | |
| 15284 | # Only expand once: |
| 15285 | |
| 15286 | |
| 15287 | # (end lt_init) |
| 15288 | # Check whether --enable-largefile was given. |
| 15289 | if test ${enable_largefile+y} |
| 15290 | then : |
| 15291 | enableval=$enable_largefile; |
| 15292 | fi |
| 15293 | if test "$enable_largefile,$enable_year2038" != no,no |
| 15294 | then : |
| 15295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 |
| 15296 | printf %s "checking for $CC option to enable large file support... " >&6; } |
| 15297 | if test ${ac_cv_sys_largefile_opts+y} |
| 15298 | then : |
| 15299 | printf %s "(cached) " >&6 |
| 15300 | else case e in #( |
| 15301 | e) ac_save_CC="$CC" |
| 15302 | ac_opt_found=no |
| 15303 | for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do |
| 15304 | if test x"$ac_opt" != x"none needed" |
| 15305 | then : |
| 15306 | CC="$ac_save_CC $ac_opt" |
| 15307 | fi |
| 15308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15309 | /* end confdefs.h. */ |
| 15310 | #include <sys/types.h> |
| 15311 | #ifndef FTYPE |
| 15312 | # define FTYPE off_t |
| 15313 | #endif |
| 15314 | /* Check that FTYPE can represent 2**63 - 1 correctly. |
| 15315 | We can't simply define LARGE_FTYPE to be 9223372036854775807, |
| 15316 | since some C++ compilers masquerading as C compilers |
| 15317 | incorrectly reject 9223372036854775807. */ |
| 15318 | #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) |
| 15319 | int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 |
| 15320 | && LARGE_FTYPE % 2147483647 == 1) |
| 15321 | ? 1 : -1]; |
| 15322 | int |
| 15323 | main (void) |
| 15324 | { |
| 15325 | |
| 15326 | ; |
| 15327 | return 0; |
| 15328 | } |
| 15329 | _ACEOF |
| 15330 | if ac_fn_c_try_compile "$LINENO" |
| 15331 | then : |
| 15332 | if test x"$ac_opt" = x"none needed" |
| 15333 | then : |
| 15334 | # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. |
| 15335 | CC="$CC -DFTYPE=ino_t" |
| 15336 | if ac_fn_c_try_compile "$LINENO" |
| 15337 | then : |
| 15338 | |
| 15339 | else case e in #( |
| 15340 | e) CC="$CC -D_FILE_OFFSET_BITS=64" |
| 15341 | if ac_fn_c_try_compile "$LINENO" |
| 15342 | then : |
| 15343 | ac_opt='-D_FILE_OFFSET_BITS=64' |
| 15344 | fi |
| 15345 | rm -f core conftest.err conftest.$ac_objext conftest.beam ;; |
| 15346 | esac |
| 15347 | fi |
| 15348 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 15349 | fi |
| 15350 | ac_cv_sys_largefile_opts=$ac_opt |
| 15351 | ac_opt_found=yes |
| 15352 | fi |
| 15353 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15354 | test $ac_opt_found = no || break |
| 15355 | done |
| 15356 | CC="$ac_save_CC" |
| 15357 | |
| 15358 | test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; |
| 15359 | esac |
| 15360 | fi |
| 15361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 |
| 15362 | printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } |
| 15363 | |
| 15364 | ac_have_largefile=yes |
| 15365 | case $ac_cv_sys_largefile_opts in #( |
| 15366 | "none needed") : |
| 15367 | ;; #( |
| 15368 | "supported through gnulib") : |
| 15369 | ;; #( |
| 15370 | "support not detected") : |
| 15371 | ac_have_largefile=no ;; #( |
| 15372 | "-D_FILE_OFFSET_BITS=64") : |
| 15373 | |
| 15374 | printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 15375 | ;; #( |
| 15376 | "-D_LARGE_FILES=1") : |
| 15377 | |
| 15378 | printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
| 15379 | ;; #( |
| 15380 | "-n32") : |
| 15381 | CC="$CC -n32" ;; #( |
| 15382 | *) : |
| 15383 | as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; |
| 15384 | esac |
| 15385 | |
| 15386 | if test "$enable_year2038" != no |
| 15387 | then : |
| 15388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 |
| 15389 | printf %s "checking for $CC option for timestamps after 2038... " >&6; } |
| 15390 | if test ${ac_cv_sys_year2038_opts+y} |
| 15391 | then : |
| 15392 | printf %s "(cached) " >&6 |
| 15393 | else case e in #( |
| 15394 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 15395 | ac_opt_found=no |
| 15396 | 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 |
| 15397 | if test x"$ac_opt" != x"none needed" |
| 15398 | then : |
| 15399 | CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 15400 | fi |
| 15401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15402 | /* end confdefs.h. */ |
| 15403 | |
| 15404 | #include <time.h> |
| 15405 | /* Check that time_t can represent 2**32 - 1 correctly. */ |
| 15406 | #define LARGE_TIME_T \\ |
| 15407 | ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 15408 | int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 15409 | && LARGE_TIME_T % 65537 == 0) |
| 15410 | ? 1 : -1]; |
| 15411 | |
| 15412 | int |
| 15413 | main (void) |
| 15414 | { |
| 15415 | |
| 15416 | ; |
| 15417 | return 0; |
| 15418 | } |
| 15419 | _ACEOF |
| 15420 | if ac_fn_c_try_compile "$LINENO" |
| 15421 | then : |
| 15422 | ac_cv_sys_year2038_opts="$ac_opt" |
| 15423 | ac_opt_found=yes |
| 15424 | fi |
| 15425 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15426 | test $ac_opt_found = no || break |
| 15427 | done |
| 15428 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 15429 | test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; |
| 15430 | esac |
| 15431 | fi |
| 15432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 |
| 15433 | printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } |
| 15434 | |
| 15435 | ac_have_year2038=yes |
| 15436 | case $ac_cv_sys_year2038_opts in #( |
| 15437 | "none needed") : |
| 15438 | ;; #( |
| 15439 | "support not detected") : |
| 15440 | ac_have_year2038=no ;; #( |
| 15441 | "-D_TIME_BITS=64") : |
| 15442 | |
| 15443 | printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h |
| 15444 | ;; #( |
| 15445 | "-D__MINGW_USE_VC2005_COMPAT") : |
| 15446 | |
| 15447 | printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h |
| 15448 | ;; #( |
| 15449 | "-U_USE_32_BIT_TIME_T"*) : |
| 15450 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 15451 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 15452 | as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It |
| 15453 | will stop working after mid-January 2038. Remove |
| 15454 | _USE_32BIT_TIME_T from the compiler flags. |
| 15455 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 15456 | *) : |
| 15457 | as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; |
| 15458 | esac |
| 15459 | |
| 15460 | fi |
| 15461 | |
| 15462 | fi |
| 15463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 |
| 15464 | printf %s "checking for declarations of fseeko and ftello... " >&6; } |
| 15465 | if test ${ac_cv_func_fseeko_ftello+y} |
| 15466 | then : |
| 15467 | printf %s "(cached) " >&6 |
| 15468 | else case e in #( |
| 15469 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15470 | /* end confdefs.h. */ |
| 15471 | |
| 15472 | #if defined __hpux && !defined _LARGEFILE_SOURCE |
| 15473 | # include <limits.h> |
| 15474 | # if LONG_MAX >> 31 == 0 |
| 15475 | # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 15476 | # endif |
| 15477 | #endif |
| 15478 | #include <sys/types.h> /* for off_t */ |
| 15479 | #include <stdio.h> |
| 15480 | |
| 15481 | int |
| 15482 | main (void) |
| 15483 | { |
| 15484 | |
| 15485 | int (*fp1) (FILE *, off_t, int) = fseeko; |
| 15486 | off_t (*fp2) (FILE *) = ftello; |
| 15487 | return fseeko (stdin, 0, 0) |
| 15488 | && fp1 (stdin, 0, 0) |
| 15489 | && ftello (stdin) >= 0 |
| 15490 | && fp2 (stdin) >= 0; |
| 15491 | |
| 15492 | ; |
| 15493 | return 0; |
| 15494 | } |
| 15495 | _ACEOF |
| 15496 | if ac_fn_c_try_compile "$LINENO" |
| 15497 | then : |
| 15498 | ac_cv_func_fseeko_ftello=yes |
| 15499 | else case e in #( |
| 15500 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 15501 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 15502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15503 | /* end confdefs.h. */ |
| 15504 | |
| 15505 | #if defined __hpux && !defined _LARGEFILE_SOURCE |
| 15506 | # include <limits.h> |
| 15507 | # if LONG_MAX >> 31 == 0 |
| 15508 | # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 15509 | # endif |
| 15510 | #endif |
| 15511 | #include <sys/types.h> /* for off_t */ |
| 15512 | #include <stdio.h> |
| 15513 | |
| 15514 | int |
| 15515 | main (void) |
| 15516 | { |
| 15517 | |
| 15518 | int (*fp1) (FILE *, off_t, int) = fseeko; |
| 15519 | off_t (*fp2) (FILE *) = ftello; |
| 15520 | return fseeko (stdin, 0, 0) |
| 15521 | && fp1 (stdin, 0, 0) |
| 15522 | && ftello (stdin) >= 0 |
| 15523 | && fp2 (stdin) >= 0; |
| 15524 | |
| 15525 | ; |
| 15526 | return 0; |
| 15527 | } |
| 15528 | _ACEOF |
| 15529 | if ac_fn_c_try_compile "$LINENO" |
| 15530 | then : |
| 15531 | ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" |
| 15532 | else case e in #( |
| 15533 | e) ac_cv_func_fseeko_ftello=no ;; |
| 15534 | esac |
| 15535 | fi |
| 15536 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15537 | esac |
| 15538 | fi |
| 15539 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15540 | esac |
| 15541 | fi |
| 15542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 |
| 15543 | printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } |
| 15544 | if test "$ac_cv_func_fseeko_ftello" != no |
| 15545 | then : |
| 15546 | |
| 15547 | printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 15548 | |
| 15549 | fi |
| 15550 | if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" |
| 15551 | then : |
| 15552 | |
| 15553 | printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 15554 | |
| 15555 | fi |
| 15556 | |
| 15557 | ac_header_dirent=no |
| 15558 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 15559 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` |
| 15560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 15561 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 15562 | if eval test \${$as_ac_Header+y} |
| 15563 | then : |
| 15564 | printf %s "(cached) " >&6 |
| 15565 | else case e in #( |
| 15566 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15567 | /* end confdefs.h. */ |
| 15568 | #include <sys/types.h> |
| 15569 | #include <$ac_hdr> |
| 15570 | |
| 15571 | int |
| 15572 | main (void) |
| 15573 | { |
| 15574 | if ((DIR *) 0) |
| 15575 | return 0; |
| 15576 | ; |
| 15577 | return 0; |
| 15578 | } |
| 15579 | _ACEOF |
| 15580 | if ac_fn_c_try_compile "$LINENO" |
| 15581 | then : |
| 15582 | eval "$as_ac_Header=yes" |
| 15583 | else case e in #( |
| 15584 | e) eval "$as_ac_Header=no" ;; |
| 15585 | esac |
| 15586 | fi |
| 15587 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15588 | esac |
| 15589 | fi |
| 15590 | eval ac_res=\$$as_ac_Header |
| 15591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15592 | printf "%s\n" "$ac_res" >&6; } |
| 15593 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 15594 | then : |
| 15595 | cat >>confdefs.h <<_ACEOF |
| 15596 | #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 |
| 15597 | _ACEOF |
| 15598 | |
| 15599 | ac_header_dirent=$ac_hdr; break |
| 15600 | fi |
| 15601 | |
| 15602 | done |
| 15603 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 15604 | if test $ac_header_dirent = dirent.h; then |
| 15605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 15606 | printf %s "checking for library containing opendir... " >&6; } |
| 15607 | if test ${ac_cv_search_opendir+y} |
| 15608 | then : |
| 15609 | printf %s "(cached) " >&6 |
| 15610 | else case e in #( |
| 15611 | e) ac_func_search_save_LIBS=$LIBS |
| 15612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15613 | /* end confdefs.h. */ |
| 15614 | |
| 15615 | /* Override any GCC internal prototype to avoid an error. |
| 15616 | Use char because int might match the return type of a GCC |
| 15617 | builtin and then its argument prototype would still apply. |
| 15618 | The 'extern "C"' is for builds by C++ compilers; |
| 15619 | although this is not generally supported in C code supporting it here |
| 15620 | has little cost and some practical benefit (sr 110532). */ |
| 15621 | #ifdef __cplusplus |
| 15622 | extern "C" |
| 15623 | #endif |
| 15624 | char opendir (void); |
| 15625 | int |
| 15626 | main (void) |
| 15627 | { |
| 15628 | return opendir (); |
| 15629 | ; |
| 15630 | return 0; |
| 15631 | } |
| 15632 | _ACEOF |
| 15633 | for ac_lib in '' dir |
| 15634 | do |
| 15635 | if test -z "$ac_lib"; then |
| 15636 | ac_res="none required" |
| 15637 | else |
| 15638 | ac_res=-l$ac_lib |
| 15639 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15640 | fi |
| 15641 | if ac_fn_c_try_link "$LINENO" |
| 15642 | then : |
| 15643 | ac_cv_search_opendir=$ac_res |
| 15644 | fi |
| 15645 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15646 | conftest$ac_exeext |
| 15647 | if test ${ac_cv_search_opendir+y} |
| 15648 | then : |
| 15649 | break |
| 15650 | fi |
| 15651 | done |
| 15652 | if test ${ac_cv_search_opendir+y} |
| 15653 | then : |
| 15654 | |
| 15655 | else case e in #( |
| 15656 | e) ac_cv_search_opendir=no ;; |
| 15657 | esac |
| 15658 | fi |
| 15659 | rm conftest.$ac_ext |
| 15660 | LIBS=$ac_func_search_save_LIBS ;; |
| 15661 | esac |
| 15662 | fi |
| 15663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 15664 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 15665 | ac_res=$ac_cv_search_opendir |
| 15666 | if test "$ac_res" != no |
| 15667 | then : |
| 15668 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15669 | |
| 15670 | fi |
| 15671 | |
| 15672 | else |
| 15673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 15674 | printf %s "checking for library containing opendir... " >&6; } |
| 15675 | if test ${ac_cv_search_opendir+y} |
| 15676 | then : |
| 15677 | printf %s "(cached) " >&6 |
| 15678 | else case e in #( |
| 15679 | e) ac_func_search_save_LIBS=$LIBS |
| 15680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15681 | /* end confdefs.h. */ |
| 15682 | |
| 15683 | /* Override any GCC internal prototype to avoid an error. |
| 15684 | Use char because int might match the return type of a GCC |
| 15685 | builtin and then its argument prototype would still apply. |
| 15686 | The 'extern "C"' is for builds by C++ compilers; |
| 15687 | although this is not generally supported in C code supporting it here |
| 15688 | has little cost and some practical benefit (sr 110532). */ |
| 15689 | #ifdef __cplusplus |
| 15690 | extern "C" |
| 15691 | #endif |
| 15692 | char opendir (void); |
| 15693 | int |
| 15694 | main (void) |
| 15695 | { |
| 15696 | return opendir (); |
| 15697 | ; |
| 15698 | return 0; |
| 15699 | } |
| 15700 | _ACEOF |
| 15701 | for ac_lib in '' x |
| 15702 | do |
| 15703 | if test -z "$ac_lib"; then |
| 15704 | ac_res="none required" |
| 15705 | else |
| 15706 | ac_res=-l$ac_lib |
| 15707 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15708 | fi |
| 15709 | if ac_fn_c_try_link "$LINENO" |
| 15710 | then : |
| 15711 | ac_cv_search_opendir=$ac_res |
| 15712 | fi |
| 15713 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15714 | conftest$ac_exeext |
| 15715 | if test ${ac_cv_search_opendir+y} |
| 15716 | then : |
| 15717 | break |
| 15718 | fi |
| 15719 | done |
| 15720 | if test ${ac_cv_search_opendir+y} |
| 15721 | then : |
| 15722 | |
| 15723 | else case e in #( |
| 15724 | e) ac_cv_search_opendir=no ;; |
| 15725 | esac |
| 15726 | fi |
| 15727 | rm conftest.$ac_ext |
| 15728 | LIBS=$ac_func_search_save_LIBS ;; |
| 15729 | esac |
| 15730 | fi |
| 15731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 15732 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 15733 | ac_res=$ac_cv_search_opendir |
| 15734 | if test "$ac_res" != no |
| 15735 | then : |
| 15736 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15737 | |
| 15738 | fi |
| 15739 | |
| 15740 | fi |
| 15741 | |
| 15742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| 15743 | printf %s "checking whether closedir returns void... " >&6; } |
| 15744 | if test ${ac_cv_func_closedir_void+y} |
| 15745 | then : |
| 15746 | printf %s "(cached) " >&6 |
| 15747 | else case e in #( |
| 15748 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15749 | /* end confdefs.h. */ |
| 15750 | |
| 15751 | #include <$ac_header_dirent> |
| 15752 | |
| 15753 | int |
| 15754 | main (void) |
| 15755 | { |
| 15756 | |
| 15757 | return closedir(0); |
| 15758 | |
| 15759 | ; |
| 15760 | return 0; |
| 15761 | } |
| 15762 | _ACEOF |
| 15763 | if ac_fn_c_try_compile "$LINENO" |
| 15764 | then : |
| 15765 | ac_cv_func_closedir_void=no |
| 15766 | else case e in #( |
| 15767 | e) ac_cv_func_closedir_void=yes ;; |
| 15768 | esac |
| 15769 | fi |
| 15770 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15771 | esac |
| 15772 | fi |
| 15773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 |
| 15774 | printf "%s\n" "$ac_cv_func_closedir_void" >&6; } |
| 15775 | if test $ac_cv_func_closedir_void = yes; then |
| 15776 | |
| 15777 | printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h |
| 15778 | |
| 15779 | fi |
| 15780 | |
| 15781 | ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 15782 | if test "x$ac_cv_header_assert_h" = xyes |
| 15783 | then : |
| 15784 | printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h |
| 15785 | |
| 15786 | fi |
| 15787 | ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
| 15788 | if test "x$ac_cv_header_float_h" = xyes |
| 15789 | then : |
| 15790 | printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h |
| 15791 | |
| 15792 | fi |
| 15793 | ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 15794 | if test "x$ac_cv_header_limits_h" = xyes |
| 15795 | then : |
| 15796 | printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h |
| 15797 | |
| 15798 | fi |
| 15799 | ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
| 15800 | if test "x$ac_cv_header_pwd_h" = xyes |
| 15801 | then : |
| 15802 | printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
| 15803 | |
| 15804 | fi |
| 15805 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 15806 | if test "x$ac_cv_header_stdlib_h" = xyes |
| 15807 | then : |
| 15808 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 15809 | |
| 15810 | fi |
| 15811 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 15812 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 15813 | then : |
| 15814 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 15815 | |
| 15816 | fi |
| 15817 | |
| 15818 | ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 15819 | if test "x$ac_cv_func_putenv" = xyes |
| 15820 | then : |
| 15821 | printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 15822 | |
| 15823 | fi |
| 15824 | |
| 15825 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 15826 | if test "x$ac_cv_func_getcwd" = xyes |
| 15827 | then : |
| 15828 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 15829 | |
| 15830 | fi |
| 15831 | ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" |
| 15832 | if test "x$ac_cv_func_memcmp" = xyes |
| 15833 | then : |
| 15834 | printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h |
| 15835 | |
| 15836 | fi |
| 15837 | ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" |
| 15838 | if test "x$ac_cv_func_memcpy" = xyes |
| 15839 | then : |
| 15840 | printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h |
| 15841 | |
| 15842 | fi |
| 15843 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
| 15844 | if test "x$ac_cv_func_mkstemp" = xyes |
| 15845 | then : |
| 15846 | printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
| 15847 | |
| 15848 | fi |
| 15849 | ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp" |
| 15850 | if test "x$ac_cv_func_mktemp" = xyes |
| 15851 | then : |
| 15852 | printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h |
| 15853 | |
| 15854 | fi |
| 15855 | ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
| 15856 | if test "x$ac_cv_func_strchr" = xyes |
| 15857 | then : |
| 15858 | printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h |
| 15859 | |
| 15860 | fi |
| 15861 | ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" |
| 15862 | if test "x$ac_cv_func_strrchr" = xyes |
| 15863 | then : |
| 15864 | printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h |
| 15865 | |
| 15866 | fi |
| 15867 | |
| 15868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 15869 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 15870 | if test ${ac_cv_c_const+y} |
| 15871 | then : |
| 15872 | printf %s "(cached) " >&6 |
| 15873 | else case e in #( |
| 15874 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15875 | /* end confdefs.h. */ |
| 15876 | |
| 15877 | int |
| 15878 | main (void) |
| 15879 | { |
| 15880 | |
| 15881 | #ifndef __cplusplus |
| 15882 | /* Ultrix mips cc rejects this sort of thing. */ |
| 15883 | typedef int charset[2]; |
| 15884 | const charset cs = { 0, 0 }; |
| 15885 | /* SunOS 4.1.1 cc rejects this. */ |
| 15886 | char const *const *pcpcc; |
| 15887 | char **ppc; |
| 15888 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 15889 | struct point {int x, y;}; |
| 15890 | static struct point const zero = {0,0}; |
| 15891 | /* IBM XL C 1.02.0.0 rejects this. |
| 15892 | It does not let you subtract one const X* pointer from another in |
| 15893 | an arm of an if-expression whose if-part is not a constant |
| 15894 | expression */ |
| 15895 | const char *g = "string"; |
| 15896 | pcpcc = &g + (g ? g-g : 0); |
| 15897 | /* HPUX 7.0 cc rejects these. */ |
| 15898 | ++pcpcc; |
| 15899 | ppc = (char**) pcpcc; |
| 15900 | pcpcc = (char const *const *) ppc; |
| 15901 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 15902 | char tx; |
| 15903 | char *t = &tx; |
| 15904 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 15905 | |
| 15906 | *t++ = 0; |
| 15907 | if (s) return 0; |
| 15908 | } |
| 15909 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 15910 | int x[] = {25, 17}; |
| 15911 | const int *foo = &x[0]; |
| 15912 | ++foo; |
| 15913 | } |
| 15914 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 15915 | typedef const int *iptr; |
| 15916 | iptr p = 0; |
| 15917 | ++p; |
| 15918 | } |
| 15919 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 15920 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 15921 | struct s { int j; const int *ap[3]; } bx; |
| 15922 | struct s *b = &bx; b->j = 5; |
| 15923 | } |
| 15924 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 15925 | const int foo = 10; |
| 15926 | if (!foo) return 0; |
| 15927 | } |
| 15928 | return !cs[0] && !zero.x; |
| 15929 | #endif |
| 15930 | |
| 15931 | ; |
| 15932 | return 0; |
| 15933 | } |
| 15934 | _ACEOF |
| 15935 | if ac_fn_c_try_compile "$LINENO" |
| 15936 | then : |
| 15937 | ac_cv_c_const=yes |
| 15938 | else case e in #( |
| 15939 | e) ac_cv_c_const=no ;; |
| 15940 | esac |
| 15941 | fi |
| 15942 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15943 | esac |
| 15944 | fi |
| 15945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 15946 | printf "%s\n" "$ac_cv_c_const" >&6; } |
| 15947 | if test $ac_cv_c_const = no; then |
| 15948 | |
| 15949 | printf "%s\n" "#define const /**/" >>confdefs.h |
| 15950 | |
| 15951 | fi |
| 15952 | |
| 15953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 15954 | printf %s "checking for inline... " >&6; } |
| 15955 | if test ${ac_cv_c_inline+y} |
| 15956 | then : |
| 15957 | printf %s "(cached) " >&6 |
| 15958 | else case e in #( |
| 15959 | e) ac_cv_c_inline=no |
| 15960 | for ac_kw in inline __inline__ __inline; do |
| 15961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15962 | /* end confdefs.h. */ |
| 15963 | #ifndef __cplusplus |
| 15964 | typedef int foo_t; |
| 15965 | static $ac_kw foo_t static_foo (void) {return 0; } |
| 15966 | $ac_kw foo_t foo (void) {return 0; } |
| 15967 | #endif |
| 15968 | |
| 15969 | _ACEOF |
| 15970 | if ac_fn_c_try_compile "$LINENO" |
| 15971 | then : |
| 15972 | ac_cv_c_inline=$ac_kw |
| 15973 | fi |
| 15974 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15975 | test "$ac_cv_c_inline" != no && break |
| 15976 | done |
| 15977 | ;; |
| 15978 | esac |
| 15979 | fi |
| 15980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 15981 | printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 15982 | |
| 15983 | case $ac_cv_c_inline in |
| 15984 | inline | yes) ;; |
| 15985 | *) |
| 15986 | case $ac_cv_c_inline in |
| 15987 | no) ac_val=;; |
| 15988 | *) ac_val=$ac_cv_c_inline;; |
| 15989 | esac |
| 15990 | cat >>confdefs.h <<_ACEOF |
| 15991 | #ifndef __cplusplus |
| 15992 | #define inline $ac_val |
| 15993 | #endif |
| 15994 | _ACEOF |
| 15995 | ;; |
| 15996 | esac |
| 15997 | |
| 15998 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 15999 | if test "x$ac_cv_type_size_t" = xyes |
| 16000 | then : |
| 16001 | |
| 16002 | else case e in #( |
| 16003 | e) |
| 16004 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 16005 | ;; |
| 16006 | esac |
| 16007 | fi |
| 16008 | |
| 16009 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 16010 | case $ac_cv_c_int64_t in #( |
| 16011 | no|yes) ;; #( |
| 16012 | *) |
| 16013 | |
| 16014 | printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h |
| 16015 | ;; |
| 16016 | esac |
| 16017 | |
| 16018 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 16019 | case $ac_cv_c_uint64_t in #( |
| 16020 | no|yes) ;; #( |
| 16021 | *) |
| 16022 | |
| 16023 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h |
| 16024 | |
| 16025 | |
| 16026 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h |
| 16027 | ;; |
| 16028 | esac |
| 16029 | |
| 16030 | case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #( |
| 16031 | *':no:'*) : |
| 16032 | as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #( |
| 16033 | *) : |
| 16034 | ;; |
| 16035 | esac |
| 16036 | ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h> |
| 16037 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 16038 | if test "x$ac_cv_have_decl_isascii" = xyes |
| 16039 | then : |
| 16040 | ac_have_decl=1 |
| 16041 | else case e in #( |
| 16042 | e) ac_have_decl=0 ;; |
| 16043 | esac |
| 16044 | fi |
| 16045 | printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h |
| 16046 | |
| 16047 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
| 16048 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes |
| 16049 | then : |
| 16050 | |
| 16051 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h |
| 16052 | |
| 16053 | |
| 16054 | fi |
| 16055 | |
| 16056 | |
| 16057 | |
| 16058 | ## texk/bibtex-x/ac/bibtex-x.ac: configure.ac fragment for the TeX Live subdirectory texk/bibtex-x/ |
| 16059 | ## configure options for bibtex-x |
| 16060 | # Check whether --enable-bibtex8 was given. |
| 16061 | if test ${enable_bibtex8+y} |
| 16062 | then : |
| 16063 | enableval=$enable_bibtex8; |
| 16064 | fi |
| 16065 | |
| 16066 | case $enable_bibtex8 in #( |
| 16067 | yes | no) : |
| 16068 | ;; #( |
| 16069 | *) : |
| 16070 | enable_bibtex8=yes ;; |
| 16071 | esac |
| 16072 | # Check whether --enable-bibtexu was given. |
| 16073 | if test ${enable_bibtexu+y} |
| 16074 | then : |
| 16075 | enableval=$enable_bibtexu; |
| 16076 | fi |
| 16077 | |
| 16078 | case $enable_bibtexu in #( |
| 16079 | yes | no) : |
| 16080 | ;; #( |
| 16081 | *) : |
| 16082 | enable_bibtexu=yes ;; |
| 16083 | esac |
| 16084 | |
| 16085 | test "x$enable_bibtex_x:$enable_bibtexu" = xyes:yes && need_icu=yes |
| 16086 | |
| 16087 | |
| 16088 | ac_config_headers="$ac_config_headers config.h" |
| 16089 | |
| 16090 | |
| 16091 | |
| 16092 | |
| 16093 | printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h |
| 16094 | |
| 16095 | |
| 16096 | |
| 16097 | |
| 16098 | |
| 16099 | |
| 16100 | |
| 16101 | |
| 16102 | ac_ext=cpp |
| 16103 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16104 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16105 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16106 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16107 | if test -z "$CXX"; then |
| 16108 | if test -n "$CCC"; then |
| 16109 | CXX=$CCC |
| 16110 | else |
| 16111 | if test -n "$ac_tool_prefix"; then |
| 16112 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 16113 | do |
| 16114 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 16115 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 16116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16117 | printf %s "checking for $ac_word... " >&6; } |
| 16118 | if test ${ac_cv_prog_CXX+y} |
| 16119 | then : |
| 16120 | printf %s "(cached) " >&6 |
| 16121 | else case e in #( |
| 16122 | e) if test -n "$CXX"; then |
| 16123 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 16124 | else |
| 16125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16126 | for as_dir in $PATH |
| 16127 | do |
| 16128 | IFS=$as_save_IFS |
| 16129 | case $as_dir in #((( |
| 16130 | '') as_dir=./ ;; |
| 16131 | */) ;; |
| 16132 | *) as_dir=$as_dir/ ;; |
| 16133 | esac |
| 16134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16135 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 16136 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 16137 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 16138 | break 2 |
| 16139 | fi |
| 16140 | done |
| 16141 | done |
| 16142 | IFS=$as_save_IFS |
| 16143 | |
| 16144 | fi ;; |
| 16145 | esac |
| 16146 | fi |
| 16147 | CXX=$ac_cv_prog_CXX |
| 16148 | if test -n "$CXX"; then |
| 16149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 16150 | printf "%s\n" "$CXX" >&6; } |
| 16151 | else |
| 16152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16153 | printf "%s\n" "no" >&6; } |
| 16154 | fi |
| 16155 | |
| 16156 | |
| 16157 | test -n "$CXX" && break |
| 16158 | done |
| 16159 | fi |
| 16160 | if test -z "$CXX"; then |
| 16161 | ac_ct_CXX=$CXX |
| 16162 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 16163 | do |
| 16164 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16165 | set dummy $ac_prog; ac_word=$2 |
| 16166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16167 | printf %s "checking for $ac_word... " >&6; } |
| 16168 | if test ${ac_cv_prog_ac_ct_CXX+y} |
| 16169 | then : |
| 16170 | printf %s "(cached) " >&6 |
| 16171 | else case e in #( |
| 16172 | e) if test -n "$ac_ct_CXX"; then |
| 16173 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 16174 | else |
| 16175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16176 | for as_dir in $PATH |
| 16177 | do |
| 16178 | IFS=$as_save_IFS |
| 16179 | case $as_dir in #((( |
| 16180 | '') as_dir=./ ;; |
| 16181 | */) ;; |
| 16182 | *) as_dir=$as_dir/ ;; |
| 16183 | esac |
| 16184 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16185 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 16186 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 16187 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 16188 | break 2 |
| 16189 | fi |
| 16190 | done |
| 16191 | done |
| 16192 | IFS=$as_save_IFS |
| 16193 | |
| 16194 | fi ;; |
| 16195 | esac |
| 16196 | fi |
| 16197 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 16198 | if test -n "$ac_ct_CXX"; then |
| 16199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 16200 | printf "%s\n" "$ac_ct_CXX" >&6; } |
| 16201 | else |
| 16202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16203 | printf "%s\n" "no" >&6; } |
| 16204 | fi |
| 16205 | |
| 16206 | |
| 16207 | test -n "$ac_ct_CXX" && break |
| 16208 | done |
| 16209 | |
| 16210 | if test "x$ac_ct_CXX" = x; then |
| 16211 | CXX="g++" |
| 16212 | else |
| 16213 | case $cross_compiling:$ac_tool_warned in |
| 16214 | yes:) |
| 16215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16216 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16217 | ac_tool_warned=yes ;; |
| 16218 | esac |
| 16219 | CXX=$ac_ct_CXX |
| 16220 | fi |
| 16221 | fi |
| 16222 | |
| 16223 | fi |
| 16224 | fi |
| 16225 | # Provide some information about the compiler. |
| 16226 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 16227 | set X $ac_compile |
| 16228 | ac_compiler=$2 |
| 16229 | for ac_option in --version -v -V -qversion; do |
| 16230 | { { ac_try="$ac_compiler $ac_option >&5" |
| 16231 | case "(($ac_try" in |
| 16232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16233 | *) ac_try_echo=$ac_try;; |
| 16234 | esac |
| 16235 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 16236 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 16237 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 16238 | ac_status=$? |
| 16239 | if test -s conftest.err; then |
| 16240 | sed '10a\ |
| 16241 | ... rest of stderr output deleted ... |
| 16242 | 10q' conftest.err >conftest.er1 |
| 16243 | cat conftest.er1 >&5 |
| 16244 | fi |
| 16245 | rm -f conftest.er1 conftest.err |
| 16246 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16247 | test $ac_status = 0; } |
| 16248 | done |
| 16249 | |
| 16250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 16251 | printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 16252 | if test ${ac_cv_cxx_compiler_gnu+y} |
| 16253 | then : |
| 16254 | printf %s "(cached) " >&6 |
| 16255 | else case e in #( |
| 16256 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16257 | /* end confdefs.h. */ |
| 16258 | |
| 16259 | int |
| 16260 | main (void) |
| 16261 | { |
| 16262 | #ifndef __GNUC__ |
| 16263 | choke me |
| 16264 | #endif |
| 16265 | |
| 16266 | ; |
| 16267 | return 0; |
| 16268 | } |
| 16269 | _ACEOF |
| 16270 | if ac_fn_cxx_try_compile "$LINENO" |
| 16271 | then : |
| 16272 | ac_compiler_gnu=yes |
| 16273 | else case e in #( |
| 16274 | e) ac_compiler_gnu=no ;; |
| 16275 | esac |
| 16276 | fi |
| 16277 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16278 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 16279 | ;; |
| 16280 | esac |
| 16281 | fi |
| 16282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 16283 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
| 16284 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16285 | |
| 16286 | if test $ac_compiler_gnu = yes; then |
| 16287 | GXX=yes |
| 16288 | else |
| 16289 | GXX= |
| 16290 | fi |
| 16291 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 16292 | ac_save_CXXFLAGS=$CXXFLAGS |
| 16293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 16294 | printf %s "checking whether $CXX accepts -g... " >&6; } |
| 16295 | if test ${ac_cv_prog_cxx_g+y} |
| 16296 | then : |
| 16297 | printf %s "(cached) " >&6 |
| 16298 | else case e in #( |
| 16299 | e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 16300 | ac_cxx_werror_flag=yes |
| 16301 | ac_cv_prog_cxx_g=no |
| 16302 | CXXFLAGS="-g" |
| 16303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16304 | /* end confdefs.h. */ |
| 16305 | |
| 16306 | int |
| 16307 | main (void) |
| 16308 | { |
| 16309 | |
| 16310 | ; |
| 16311 | return 0; |
| 16312 | } |
| 16313 | _ACEOF |
| 16314 | if ac_fn_cxx_try_compile "$LINENO" |
| 16315 | then : |
| 16316 | ac_cv_prog_cxx_g=yes |
| 16317 | else case e in #( |
| 16318 | e) CXXFLAGS="" |
| 16319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16320 | /* end confdefs.h. */ |
| 16321 | |
| 16322 | int |
| 16323 | main (void) |
| 16324 | { |
| 16325 | |
| 16326 | ; |
| 16327 | return 0; |
| 16328 | } |
| 16329 | _ACEOF |
| 16330 | if ac_fn_cxx_try_compile "$LINENO" |
| 16331 | then : |
| 16332 | |
| 16333 | else case e in #( |
| 16334 | e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 16335 | CXXFLAGS="-g" |
| 16336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16337 | /* end confdefs.h. */ |
| 16338 | |
| 16339 | int |
| 16340 | main (void) |
| 16341 | { |
| 16342 | |
| 16343 | ; |
| 16344 | return 0; |
| 16345 | } |
| 16346 | _ACEOF |
| 16347 | if ac_fn_cxx_try_compile "$LINENO" |
| 16348 | then : |
| 16349 | ac_cv_prog_cxx_g=yes |
| 16350 | fi |
| 16351 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16352 | esac |
| 16353 | fi |
| 16354 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16355 | esac |
| 16356 | fi |
| 16357 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16358 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; |
| 16359 | esac |
| 16360 | fi |
| 16361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 16362 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
| 16363 | if test $ac_test_CXXFLAGS; then |
| 16364 | CXXFLAGS=$ac_save_CXXFLAGS |
| 16365 | elif test $ac_cv_prog_cxx_g = yes; then |
| 16366 | if test "$GXX" = yes; then |
| 16367 | CXXFLAGS="-g -O2" |
| 16368 | else |
| 16369 | CXXFLAGS="-g" |
| 16370 | fi |
| 16371 | else |
| 16372 | if test "$GXX" = yes; then |
| 16373 | CXXFLAGS="-O2" |
| 16374 | else |
| 16375 | CXXFLAGS= |
| 16376 | fi |
| 16377 | fi |
| 16378 | ac_prog_cxx_stdcxx=no |
| 16379 | if test x$ac_prog_cxx_stdcxx = xno |
| 16380 | then : |
| 16381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 16382 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 16383 | if test ${ac_cv_prog_cxx_cxx11+y} |
| 16384 | then : |
| 16385 | printf %s "(cached) " >&6 |
| 16386 | else case e in #( |
| 16387 | e) ac_cv_prog_cxx_cxx11=no |
| 16388 | ac_save_CXX=$CXX |
| 16389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16390 | /* end confdefs.h. */ |
| 16391 | $ac_cxx_conftest_cxx11_program |
| 16392 | _ACEOF |
| 16393 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 16394 | do |
| 16395 | CXX="$ac_save_CXX $ac_arg" |
| 16396 | if ac_fn_cxx_try_compile "$LINENO" |
| 16397 | then : |
| 16398 | ac_cv_prog_cxx_cxx11=$ac_arg |
| 16399 | fi |
| 16400 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 16401 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 16402 | done |
| 16403 | rm -f conftest.$ac_ext |
| 16404 | CXX=$ac_save_CXX ;; |
| 16405 | esac |
| 16406 | fi |
| 16407 | |
| 16408 | if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 16409 | then : |
| 16410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 16411 | printf "%s\n" "unsupported" >&6; } |
| 16412 | else case e in #( |
| 16413 | e) if test "x$ac_cv_prog_cxx_cxx11" = x |
| 16414 | then : |
| 16415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 16416 | printf "%s\n" "none needed" >&6; } |
| 16417 | else case e in #( |
| 16418 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 16419 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
| 16420 | CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; |
| 16421 | esac |
| 16422 | fi |
| 16423 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 16424 | ac_prog_cxx_stdcxx=cxx11 ;; |
| 16425 | esac |
| 16426 | fi |
| 16427 | fi |
| 16428 | if test x$ac_prog_cxx_stdcxx = xno |
| 16429 | then : |
| 16430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 16431 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 16432 | if test ${ac_cv_prog_cxx_cxx98+y} |
| 16433 | then : |
| 16434 | printf %s "(cached) " >&6 |
| 16435 | else case e in #( |
| 16436 | e) ac_cv_prog_cxx_cxx98=no |
| 16437 | ac_save_CXX=$CXX |
| 16438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16439 | /* end confdefs.h. */ |
| 16440 | $ac_cxx_conftest_cxx98_program |
| 16441 | _ACEOF |
| 16442 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 16443 | do |
| 16444 | CXX="$ac_save_CXX $ac_arg" |
| 16445 | if ac_fn_cxx_try_compile "$LINENO" |
| 16446 | then : |
| 16447 | ac_cv_prog_cxx_cxx98=$ac_arg |
| 16448 | fi |
| 16449 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 16450 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 16451 | done |
| 16452 | rm -f conftest.$ac_ext |
| 16453 | CXX=$ac_save_CXX ;; |
| 16454 | esac |
| 16455 | fi |
| 16456 | |
| 16457 | if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 16458 | then : |
| 16459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 16460 | printf "%s\n" "unsupported" >&6; } |
| 16461 | else case e in #( |
| 16462 | e) if test "x$ac_cv_prog_cxx_cxx98" = x |
| 16463 | then : |
| 16464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 16465 | printf "%s\n" "none needed" >&6; } |
| 16466 | else case e in #( |
| 16467 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 16468 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
| 16469 | CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; |
| 16470 | esac |
| 16471 | fi |
| 16472 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 16473 | ac_prog_cxx_stdcxx=cxx98 ;; |
| 16474 | esac |
| 16475 | fi |
| 16476 | fi |
| 16477 | |
| 16478 | ac_ext=c |
| 16479 | ac_cpp='$CPP $CPPFLAGS' |
| 16480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16483 | |
| 16484 | depcc="$CXX" am_compiler_list= |
| 16485 | |
| 16486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 16487 | printf %s "checking dependency style of $depcc... " >&6; } |
| 16488 | if test ${am_cv_CXX_dependencies_compiler_type+y} |
| 16489 | then : |
| 16490 | printf %s "(cached) " >&6 |
| 16491 | else case e in #( |
| 16492 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 16493 | # We make a subdir and do the tests there. Otherwise we can end up |
| 16494 | # making bogus files that we don't know about and never remove. For |
| 16495 | # instance it was reported that on HP-UX the gcc test will end up |
| 16496 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 16497 | # in D". |
| 16498 | rm -rf conftest.dir |
| 16499 | mkdir conftest.dir |
| 16500 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 16501 | # using a relative directory. |
| 16502 | cp "$am_depcomp" conftest.dir |
| 16503 | cd conftest.dir |
| 16504 | # We will build objects and dependencies in a subdirectory because |
| 16505 | # it helps to detect inapplicable dependency modes. For instance |
| 16506 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 16507 | # side effect of compilation, but ICC will put the dependencies in |
| 16508 | # the current directory while Tru64 will put them in the object |
| 16509 | # directory. |
| 16510 | mkdir sub |
| 16511 | |
| 16512 | am_cv_CXX_dependencies_compiler_type=none |
| 16513 | if test "$am_compiler_list" = ""; then |
| 16514 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 16515 | fi |
| 16516 | am__universal=false |
| 16517 | case " $depcc " in #( |
| 16518 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 16519 | esac |
| 16520 | |
| 16521 | for depmode in $am_compiler_list; do |
| 16522 | # Setup a source with many dependencies, because some compilers |
| 16523 | # like to wrap large dependency lists on column 80 (with \), and |
| 16524 | # we should not choose a depcomp mode which is confused by this. |
| 16525 | # |
| 16526 | # We need to recreate these files for each test, as the compiler may |
| 16527 | # overwrite some of them when testing with obscure command lines. |
| 16528 | # This happens at least with the AIX C compiler. |
| 16529 | : > sub/conftest.c |
| 16530 | for i in 1 2 3 4 5 6; do |
| 16531 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 16532 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 16533 | # Solaris 10 /bin/sh. |
| 16534 | echo '/* dummy */' > sub/conftst$i.h |
| 16535 | done |
| 16536 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 16537 | |
| 16538 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 16539 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 16540 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 16541 | # versions had trouble with output in subdirs. |
| 16542 | am__obj=sub/conftest.${OBJEXT-o} |
| 16543 | am__minus_obj="-o $am__obj" |
| 16544 | case $depmode in |
| 16545 | gcc) |
| 16546 | # This depmode causes a compiler race in universal mode. |
| 16547 | test "$am__universal" = false || continue |
| 16548 | ;; |
| 16549 | nosideeffect) |
| 16550 | # After this tag, mechanisms are not by side-effect, so they'll |
| 16551 | # only be used when explicitly requested. |
| 16552 | if test "x$enable_dependency_tracking" = xyes; then |
| 16553 | continue |
| 16554 | else |
| 16555 | break |
| 16556 | fi |
| 16557 | ;; |
| 16558 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 16559 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 16560 | # not run yet. These depmodes are late enough in the game, and |
| 16561 | # so weak that their functioning should not be impacted. |
| 16562 | am__obj=conftest.${OBJEXT-o} |
| 16563 | am__minus_obj= |
| 16564 | ;; |
| 16565 | none) break ;; |
| 16566 | esac |
| 16567 | if depmode=$depmode \ |
| 16568 | source=sub/conftest.c object=$am__obj \ |
| 16569 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 16570 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 16571 | >/dev/null 2>conftest.err && |
| 16572 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 16573 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 16574 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 16575 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 16576 | # icc doesn't choke on unknown options, it will just issue warnings |
| 16577 | # or remarks (even with -Werror). So we grep stderr for any message |
| 16578 | # that says an option was ignored or not supported. |
| 16579 | # When given -MP, icc 7.0 and 7.1 complain thus: |
| 16580 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 16581 | # The diagnosis changed in icc 8.0: |
| 16582 | # icc: Command line remark: option '-MP' not supported |
| 16583 | if (grep 'ignoring option' conftest.err || |
| 16584 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 16585 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 16586 | break |
| 16587 | fi |
| 16588 | fi |
| 16589 | done |
| 16590 | |
| 16591 | cd .. |
| 16592 | rm -rf conftest.dir |
| 16593 | else |
| 16594 | am_cv_CXX_dependencies_compiler_type=none |
| 16595 | fi |
| 16596 | ;; |
| 16597 | esac |
| 16598 | fi |
| 16599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 16600 | printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 16601 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 16602 | |
| 16603 | if |
| 16604 | test "x$enable_dependency_tracking" != xno \ |
| 16605 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 16606 | am__fastdepCXX_TRUE= |
| 16607 | am__fastdepCXX_FALSE='#' |
| 16608 | else |
| 16609 | am__fastdepCXX_TRUE='#' |
| 16610 | am__fastdepCXX_FALSE= |
| 16611 | fi |
| 16612 | |
| 16613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5 |
| 16614 | printf %s "checking what warning flags to pass to the C++ compiler... " >&6; } |
| 16615 | if test ${kpse_cv_warning_cxxflags+y} |
| 16616 | then : |
| 16617 | printf %s "(cached) " >&6 |
| 16618 | else case e in #( |
| 16619 | e) if test "x$GXX" = xyes; then |
| 16620 | kpse_cv_warning_cxxflags= |
| 16621 | kpse_warn_strings="-Wno-write-strings" |
| 16622 | if test "x$enable_compiler_warnings" != xno; then |
| 16623 | kpse_cv_warning_cxxflags="-Wreturn-type" |
| 16624 | case `$CXX -dumpversion` in #( |
| 16625 | 3.* | 4.[012345].*) : |
| 16626 | kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #( |
| 16627 | *) : |
| 16628 | ;; |
| 16629 | esac |
| 16630 | case `$CXX -dumpversion` in #( |
| 16631 | 3.[234].* | 4.* | 5.*) : |
| 16632 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #( |
| 16633 | *) : |
| 16634 | ;; |
| 16635 | esac |
| 16636 | if test "x$enable_compiler_warnings" != xmin; then |
| 16637 | kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags" |
| 16638 | if test "x$enable_compiler_warnings" != xyes; then |
| 16639 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" |
| 16640 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align" |
| 16641 | kpse_warn_strings="-Wwrite-strings" |
| 16642 | if test "x$enable_compiler_warnings" != xmax; then |
| 16643 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow" |
| 16644 | fi |
| 16645 | fi |
| 16646 | fi |
| 16647 | fi |
| 16648 | kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings" |
| 16649 | elif test "x$enable_compiler_warnings" = xno; then |
| 16650 | kpse_cv_warning_cxxflags= |
| 16651 | else |
| 16652 | kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers |
| 16653 | fi ;; |
| 16654 | esac |
| 16655 | fi |
| 16656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5 |
| 16657 | printf "%s\n" "$kpse_cv_warning_cxxflags" >&6; } |
| 16658 | WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags |
| 16659 | |
| 16660 | |
| 16661 | |
| 16662 | |
| 16663 | |
| 16664 | func_stripname_cnf () |
| 16665 | { |
| 16666 | case $2 in |
| 16667 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
| 16668 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
| 16669 | esac |
| 16670 | } # func_stripname_cnf |
| 16671 | |
| 16672 | if test -n "$CXX" && ( test no != "$CXX" && |
| 16673 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
| 16674 | (test g++ != "$CXX"))); then |
| 16675 | ac_ext=cpp |
| 16676 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 16681 | printf %s "checking how to run the C++ preprocessor... " >&6; } |
| 16682 | if test -z "$CXXCPP"; then |
| 16683 | if test ${ac_cv_prog_CXXCPP+y} |
| 16684 | then : |
| 16685 | printf %s "(cached) " >&6 |
| 16686 | else case e in #( |
| 16687 | e) # Double quotes because $CXX needs to be expanded |
| 16688 | for CXXCPP in "$CXX -E" cpp /lib/cpp |
| 16689 | do |
| 16690 | ac_preproc_ok=false |
| 16691 | for ac_cxx_preproc_warn_flag in '' yes |
| 16692 | do |
| 16693 | # Use a header file that comes with gcc, so configuring glibc |
| 16694 | # with a fresh cross-compiler works. |
| 16695 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 16696 | # not just through cpp. "Syntax error" is here to catch this case. |
| 16697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16698 | /* end confdefs.h. */ |
| 16699 | #include <limits.h> |
| 16700 | Syntax error |
| 16701 | _ACEOF |
| 16702 | if ac_fn_cxx_try_cpp "$LINENO" |
| 16703 | then : |
| 16704 | |
| 16705 | else case e in #( |
| 16706 | e) # Broken: fails on valid input. |
| 16707 | continue ;; |
| 16708 | esac |
| 16709 | fi |
| 16710 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16711 | |
| 16712 | # OK, works on sane cases. Now check whether nonexistent headers |
| 16713 | # can be detected and how. |
| 16714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16715 | /* end confdefs.h. */ |
| 16716 | #include <ac_nonexistent.h> |
| 16717 | _ACEOF |
| 16718 | if ac_fn_cxx_try_cpp "$LINENO" |
| 16719 | then : |
| 16720 | # Broken: success on invalid input. |
| 16721 | continue |
| 16722 | else case e in #( |
| 16723 | e) # Passes both tests. |
| 16724 | ac_preproc_ok=: |
| 16725 | break ;; |
| 16726 | esac |
| 16727 | fi |
| 16728 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16729 | |
| 16730 | done |
| 16731 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 16732 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 16733 | if $ac_preproc_ok |
| 16734 | then : |
| 16735 | break |
| 16736 | fi |
| 16737 | |
| 16738 | done |
| 16739 | ac_cv_prog_CXXCPP=$CXXCPP |
| 16740 | ;; |
| 16741 | esac |
| 16742 | fi |
| 16743 | CXXCPP=$ac_cv_prog_CXXCPP |
| 16744 | else |
| 16745 | ac_cv_prog_CXXCPP=$CXXCPP |
| 16746 | fi |
| 16747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 16748 | printf "%s\n" "$CXXCPP" >&6; } |
| 16749 | ac_preproc_ok=false |
| 16750 | for ac_cxx_preproc_warn_flag in '' yes |
| 16751 | do |
| 16752 | # Use a header file that comes with gcc, so configuring glibc |
| 16753 | # with a fresh cross-compiler works. |
| 16754 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 16755 | # not just through cpp. "Syntax error" is here to catch this case. |
| 16756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16757 | /* end confdefs.h. */ |
| 16758 | #include <limits.h> |
| 16759 | Syntax error |
| 16760 | _ACEOF |
| 16761 | if ac_fn_cxx_try_cpp "$LINENO" |
| 16762 | then : |
| 16763 | |
| 16764 | else case e in #( |
| 16765 | e) # Broken: fails on valid input. |
| 16766 | continue ;; |
| 16767 | esac |
| 16768 | fi |
| 16769 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16770 | |
| 16771 | # OK, works on sane cases. Now check whether nonexistent headers |
| 16772 | # can be detected and how. |
| 16773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16774 | /* end confdefs.h. */ |
| 16775 | #include <ac_nonexistent.h> |
| 16776 | _ACEOF |
| 16777 | if ac_fn_cxx_try_cpp "$LINENO" |
| 16778 | then : |
| 16779 | # Broken: success on invalid input. |
| 16780 | continue |
| 16781 | else case e in #( |
| 16782 | e) # Passes both tests. |
| 16783 | ac_preproc_ok=: |
| 16784 | break ;; |
| 16785 | esac |
| 16786 | fi |
| 16787 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16788 | |
| 16789 | done |
| 16790 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 16791 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 16792 | if $ac_preproc_ok |
| 16793 | then : |
| 16794 | |
| 16795 | else case e in #( |
| 16796 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16797 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 16798 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 16799 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 16800 | esac |
| 16801 | fi |
| 16802 | |
| 16803 | ac_ext=c |
| 16804 | ac_cpp='$CPP $CPPFLAGS' |
| 16805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16808 | |
| 16809 | else |
| 16810 | _lt_caught_CXX_error=yes |
| 16811 | fi |
| 16812 | |
| 16813 | ac_ext=cpp |
| 16814 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16818 | |
| 16819 | archive_cmds_need_lc_CXX=no |
| 16820 | allow_undefined_flag_CXX= |
| 16821 | always_export_symbols_CXX=no |
| 16822 | archive_expsym_cmds_CXX= |
| 16823 | compiler_needs_object_CXX=no |
| 16824 | export_dynamic_flag_spec_CXX= |
| 16825 | hardcode_direct_CXX=no |
| 16826 | hardcode_direct_absolute_CXX=no |
| 16827 | hardcode_libdir_flag_spec_CXX= |
| 16828 | hardcode_libdir_separator_CXX= |
| 16829 | hardcode_minus_L_CXX=no |
| 16830 | hardcode_shlibpath_var_CXX=unsupported |
| 16831 | hardcode_automatic_CXX=no |
| 16832 | inherit_rpath_CXX=no |
| 16833 | module_cmds_CXX= |
| 16834 | module_expsym_cmds_CXX= |
| 16835 | link_all_deplibs_CXX=unknown |
| 16836 | old_archive_cmds_CXX=$old_archive_cmds |
| 16837 | reload_flag_CXX=$reload_flag |
| 16838 | reload_cmds_CXX=$reload_cmds |
| 16839 | no_undefined_flag_CXX= |
| 16840 | whole_archive_flag_spec_CXX= |
| 16841 | enable_shared_with_static_runtimes_CXX=no |
| 16842 | |
| 16843 | # Source file extension for C++ test sources. |
| 16844 | ac_ext=cpp |
| 16845 | |
| 16846 | # Object file extension for compiled C++ test sources. |
| 16847 | objext=o |
| 16848 | objext_CXX=$objext |
| 16849 | |
| 16850 | # No sense in running all these tests if we already determined that |
| 16851 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 16852 | # are currently assumed to apply to all compilers on this platform, |
| 16853 | # and will be corrupted by setting them based on a non-working compiler. |
| 16854 | if test yes != "$_lt_caught_CXX_error"; then |
| 16855 | # Code to be used in simple compile tests |
| 16856 | lt_simple_compile_test_code="int some_variable = 0;" |
| 16857 | |
| 16858 | # Code to be used in simple link tests |
| 16859 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 16860 | |
| 16861 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16862 | |
| 16863 | |
| 16864 | |
| 16865 | |
| 16866 | |
| 16867 | |
| 16868 | # If no C compiler was specified, use CC. |
| 16869 | LTCC=${LTCC-"$CC"} |
| 16870 | |
| 16871 | # If no C compiler flags were specified, use CFLAGS. |
| 16872 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16873 | |
| 16874 | # Allow CC to be a program name with arguments. |
| 16875 | compiler=$CC |
| 16876 | |
| 16877 | |
| 16878 | # save warnings/boilerplate of simple test code |
| 16879 | ac_outfile=conftest.$ac_objext |
| 16880 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16881 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16882 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16883 | $RM conftest* |
| 16884 | |
| 16885 | ac_outfile=conftest.$ac_objext |
| 16886 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16887 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16888 | _lt_linker_boilerplate=`cat conftest.err` |
| 16889 | $RM -r conftest* |
| 16890 | |
| 16891 | |
| 16892 | # Allow CC to be a program name with arguments. |
| 16893 | lt_save_CC=$CC |
| 16894 | lt_save_CFLAGS=$CFLAGS |
| 16895 | lt_save_LD=$LD |
| 16896 | lt_save_GCC=$GCC |
| 16897 | GCC=$GXX |
| 16898 | lt_save_with_gnu_ld=$with_gnu_ld |
| 16899 | lt_save_path_LD=$lt_cv_path_LD |
| 16900 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 16901 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 16902 | else |
| 16903 | $as_unset lt_cv_prog_gnu_ld |
| 16904 | fi |
| 16905 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 16906 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 16907 | else |
| 16908 | $as_unset lt_cv_path_LD |
| 16909 | fi |
| 16910 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 16911 | CC=${CXX-"c++"} |
| 16912 | CFLAGS=$CXXFLAGS |
| 16913 | compiler=$CC |
| 16914 | compiler_CXX=$CC |
| 16915 | func_cc_basename $compiler |
| 16916 | cc_basename=$func_cc_basename_result |
| 16917 | |
| 16918 | |
| 16919 | if test -n "$compiler"; then |
| 16920 | # We don't want -fno-exception when compiling C++ code, so set the |
| 16921 | # no_builtin_flag separately |
| 16922 | if test yes = "$GXX"; then |
| 16923 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 16924 | else |
| 16925 | lt_prog_compiler_no_builtin_flag_CXX= |
| 16926 | fi |
| 16927 | |
| 16928 | if test yes = "$GXX"; then |
| 16929 | # Set up default GNU C++ configuration |
| 16930 | |
| 16931 | |
| 16932 | |
| 16933 | # Check whether --with-gnu-ld was given. |
| 16934 | if test ${with_gnu_ld+y} |
| 16935 | then : |
| 16936 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 16937 | else case e in #( |
| 16938 | e) with_gnu_ld=no ;; |
| 16939 | esac |
| 16940 | fi |
| 16941 | |
| 16942 | ac_prog=ld |
| 16943 | if test yes = "$GCC"; then |
| 16944 | # Check if gcc -print-prog-name=ld gives a path. |
| 16945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 16946 | printf %s "checking for ld used by $CC... " >&6; } |
| 16947 | case $host in |
| 16948 | *-*-mingw* | *-*-windows*) |
| 16949 | # gcc leaves a trailing carriage return, which upsets mingw |
| 16950 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 16951 | *) |
| 16952 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 16953 | esac |
| 16954 | case $ac_prog in |
| 16955 | # Accept absolute paths. |
| 16956 | [\\/]* | ?:[\\/]*) |
| 16957 | re_direlt='/[^/][^/]*/\.\./' |
| 16958 | # Canonicalize the pathname of ld |
| 16959 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 16960 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 16961 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 16962 | done |
| 16963 | test -z "$LD" && LD=$ac_prog |
| 16964 | ;; |
| 16965 | "") |
| 16966 | # If it fails, then pretend we aren't using GCC. |
| 16967 | ac_prog=ld |
| 16968 | ;; |
| 16969 | *) |
| 16970 | # If it is relative, then search for the first ld in PATH. |
| 16971 | with_gnu_ld=unknown |
| 16972 | ;; |
| 16973 | esac |
| 16974 | elif test yes = "$with_gnu_ld"; then |
| 16975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 16976 | printf %s "checking for GNU ld... " >&6; } |
| 16977 | else |
| 16978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 16979 | printf %s "checking for non-GNU ld... " >&6; } |
| 16980 | fi |
| 16981 | if test ${lt_cv_path_LD+y} |
| 16982 | then : |
| 16983 | printf %s "(cached) " >&6 |
| 16984 | else case e in #( |
| 16985 | e) if test -z "$LD"; then |
| 16986 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 16987 | for ac_dir in $PATH; do |
| 16988 | IFS=$lt_save_ifs |
| 16989 | test -z "$ac_dir" && ac_dir=. |
| 16990 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 16991 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 16992 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 16993 | # but apparently some variants of GNU ld only accept -v. |
| 16994 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 16995 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 16996 | *GNU* | *'with BFD'*) |
| 16997 | test no != "$with_gnu_ld" && break |
| 16998 | ;; |
| 16999 | *) |
| 17000 | test yes != "$with_gnu_ld" && break |
| 17001 | ;; |
| 17002 | esac |
| 17003 | fi |
| 17004 | done |
| 17005 | IFS=$lt_save_ifs |
| 17006 | else |
| 17007 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 17008 | fi ;; |
| 17009 | esac |
| 17010 | fi |
| 17011 | |
| 17012 | LD=$lt_cv_path_LD |
| 17013 | if test -n "$LD"; then |
| 17014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 17015 | printf "%s\n" "$LD" >&6; } |
| 17016 | else |
| 17017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17018 | printf "%s\n" "no" >&6; } |
| 17019 | fi |
| 17020 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 17021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 17022 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 17023 | if test ${lt_cv_prog_gnu_ld+y} |
| 17024 | then : |
| 17025 | printf %s "(cached) " >&6 |
| 17026 | else case e in #( |
| 17027 | e) # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 17028 | case `$LD -v 2>&1 </dev/null` in |
| 17029 | *GNU* | *'with BFD'*) |
| 17030 | lt_cv_prog_gnu_ld=yes |
| 17031 | ;; |
| 17032 | *) |
| 17033 | lt_cv_prog_gnu_ld=no |
| 17034 | ;; |
| 17035 | esac ;; |
| 17036 | esac |
| 17037 | fi |
| 17038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 17039 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 17040 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17041 | |
| 17042 | |
| 17043 | |
| 17044 | |
| 17045 | |
| 17046 | |
| 17047 | |
| 17048 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17049 | # archiving commands below assume that GNU ld is being used. |
| 17050 | if test yes = "$with_gnu_ld"; then |
| 17051 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17052 | 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' |
| 17053 | |
| 17054 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 17055 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 17056 | |
| 17057 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17058 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17059 | # investigate it a little bit more. (MM) |
| 17060 | wlarc='$wl' |
| 17061 | |
| 17062 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17063 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 17064 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 17065 | else |
| 17066 | whole_archive_flag_spec_CXX= |
| 17067 | fi |
| 17068 | else |
| 17069 | with_gnu_ld=no |
| 17070 | wlarc= |
| 17071 | |
| 17072 | # A generic and very simple default shared library creation |
| 17073 | # command for GNU C++ for the case where it uses the native |
| 17074 | # linker, instead of GNU ld. If possible, this setting should |
| 17075 | # overridden to take advantage of the native linker features on |
| 17076 | # the platform it is being used on. |
| 17077 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17078 | fi |
| 17079 | |
| 17080 | # Commands to make compiler produce verbose output that lists |
| 17081 | # what "hidden" libraries, object files and flags are used when |
| 17082 | # linking a shared library. |
| 17083 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 17084 | |
| 17085 | else |
| 17086 | GXX=no |
| 17087 | with_gnu_ld=no |
| 17088 | wlarc= |
| 17089 | fi |
| 17090 | |
| 17091 | # PORTME: fill in a description of your system's C++ link characteristics |
| 17092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17093 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 17094 | ld_shlibs_CXX=yes |
| 17095 | case $host_os in |
| 17096 | aix3*) |
| 17097 | # FIXME: insert proper C++ library support |
| 17098 | ld_shlibs_CXX=no |
| 17099 | ;; |
| 17100 | aix[4-9]*) |
| 17101 | if test ia64 = "$host_cpu"; then |
| 17102 | # On IA64, the linker does run time linking by default, so we don't |
| 17103 | # have to do anything special. |
| 17104 | aix_use_runtimelinking=no |
| 17105 | exp_sym_flag='-Bexport' |
| 17106 | no_entry_flag= |
| 17107 | else |
| 17108 | aix_use_runtimelinking=no |
| 17109 | |
| 17110 | # Test if we are trying to use run time linking or normal |
| 17111 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17112 | # have runtime linking enabled, and use it for executables. |
| 17113 | # For shared libraries, we enable/disable runtime linking |
| 17114 | # depending on the kind of the shared library created - |
| 17115 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 17116 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 17117 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 17118 | # lib.a static archive |
| 17119 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 17120 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 17121 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 17122 | # lib.a(lib.so.V) shared, rtl:no |
| 17123 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 17124 | # lib.a static archive |
| 17125 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 17126 | for ld_flag in $LDFLAGS; do |
| 17127 | case $ld_flag in |
| 17128 | *-brtl*) |
| 17129 | aix_use_runtimelinking=yes |
| 17130 | break |
| 17131 | ;; |
| 17132 | esac |
| 17133 | done |
| 17134 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 17135 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 17136 | # so we don't have lib.a shared libs to link our executables. |
| 17137 | # We have to force runtime linking in this case. |
| 17138 | aix_use_runtimelinking=yes |
| 17139 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 17140 | fi |
| 17141 | ;; |
| 17142 | esac |
| 17143 | |
| 17144 | exp_sym_flag='-bexport' |
| 17145 | no_entry_flag='-bnoentry' |
| 17146 | fi |
| 17147 | |
| 17148 | # When large executables or shared objects are built, AIX ld can |
| 17149 | # have problems creating the table of contents. If linking a library |
| 17150 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17151 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17152 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17153 | |
| 17154 | archive_cmds_CXX='' |
| 17155 | hardcode_direct_CXX=yes |
| 17156 | hardcode_direct_absolute_CXX=yes |
| 17157 | hardcode_libdir_separator_CXX=':' |
| 17158 | link_all_deplibs_CXX=yes |
| 17159 | file_list_spec_CXX='$wl-f,' |
| 17160 | case $with_aix_soname,$aix_use_runtimelinking in |
| 17161 | aix,*) ;; # no import file |
| 17162 | svr4,* | *,yes) # use import file |
| 17163 | # The Import File defines what to hardcode. |
| 17164 | hardcode_direct_CXX=no |
| 17165 | hardcode_direct_absolute_CXX=no |
| 17166 | ;; |
| 17167 | esac |
| 17168 | |
| 17169 | if test yes = "$GXX"; then |
| 17170 | case $host_os in aix4.[012]|aix4.[012].*) |
| 17171 | # We only want to do this on AIX 4.2 and lower, the check |
| 17172 | # below for broken collect2 doesn't work under 4.3+ |
| 17173 | collect2name=`$CC -print-prog-name=collect2` |
| 17174 | if test -f "$collect2name" && |
| 17175 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 17176 | then |
| 17177 | # We have reworked collect2 |
| 17178 | : |
| 17179 | else |
| 17180 | # We have old collect2 |
| 17181 | hardcode_direct_CXX=unsupported |
| 17182 | # It fails to find uninstalled libraries when the uninstalled |
| 17183 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17184 | # to unsupported forces relinking |
| 17185 | hardcode_minus_L_CXX=yes |
| 17186 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17187 | hardcode_libdir_separator_CXX= |
| 17188 | fi |
| 17189 | esac |
| 17190 | shared_flag='-shared' |
| 17191 | if test yes = "$aix_use_runtimelinking"; then |
| 17192 | shared_flag=$shared_flag' $wl-G' |
| 17193 | fi |
| 17194 | # Need to ensure runtime linking is disabled for the traditional |
| 17195 | # shared library, or the linker may eventually find shared libraries |
| 17196 | # /with/ Import File - we do not want to mix them. |
| 17197 | shared_flag_aix='-shared' |
| 17198 | shared_flag_svr4='-shared $wl-G' |
| 17199 | else |
| 17200 | # not using gcc |
| 17201 | if test ia64 = "$host_cpu"; then |
| 17202 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17203 | # chokes on -Wl,-G. The following line is correct: |
| 17204 | shared_flag='-G' |
| 17205 | else |
| 17206 | if test yes = "$aix_use_runtimelinking"; then |
| 17207 | shared_flag='$wl-G' |
| 17208 | else |
| 17209 | shared_flag='$wl-bM:SRE' |
| 17210 | fi |
| 17211 | shared_flag_aix='$wl-bM:SRE' |
| 17212 | shared_flag_svr4='$wl-G' |
| 17213 | fi |
| 17214 | fi |
| 17215 | |
| 17216 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
| 17217 | # It seems that -bexpall does not export symbols beginning with |
| 17218 | # underscore (_), so it is better to generate a list of symbols to |
| 17219 | # export. |
| 17220 | always_export_symbols_CXX=yes |
| 17221 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 17222 | # Warning - without using the other runtime loading flags (-brtl), |
| 17223 | # -berok will link without error, but may produce a broken library. |
| 17224 | # The "-G" linker flag allows undefined symbols. |
| 17225 | no_undefined_flag_CXX='-bernotok' |
| 17226 | # Determine the default libpath from the value encoded in an empty |
| 17227 | # executable. |
| 17228 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 17229 | aix_libpath=$lt_cv_aix_libpath |
| 17230 | else |
| 17231 | if test ${lt_cv_aix_libpath__CXX+y} |
| 17232 | then : |
| 17233 | printf %s "(cached) " >&6 |
| 17234 | else case e in #( |
| 17235 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17236 | /* end confdefs.h. */ |
| 17237 | |
| 17238 | int |
| 17239 | main (void) |
| 17240 | { |
| 17241 | |
| 17242 | ; |
| 17243 | return 0; |
| 17244 | } |
| 17245 | _ACEOF |
| 17246 | if ac_fn_cxx_try_link "$LINENO" |
| 17247 | then : |
| 17248 | |
| 17249 | lt_aix_libpath_sed=' |
| 17250 | /Import File Strings/,/^$/ { |
| 17251 | /^0/ { |
| 17252 | s/^0 *\([^ ]*\) *$/\1/ |
| 17253 | p |
| 17254 | } |
| 17255 | }' |
| 17256 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17257 | # Check for a 64-bit object if we didn't find anything. |
| 17258 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17259 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17260 | fi |
| 17261 | fi |
| 17262 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17263 | conftest$ac_exeext conftest.$ac_ext |
| 17264 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17265 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 17266 | fi |
| 17267 | ;; |
| 17268 | esac |
| 17269 | fi |
| 17270 | |
| 17271 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17272 | fi |
| 17273 | |
| 17274 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 17275 | |
| 17276 | 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 |
| 17277 | else |
| 17278 | if test ia64 = "$host_cpu"; then |
| 17279 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' |
| 17280 | allow_undefined_flag_CXX="-z nodefs" |
| 17281 | 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" |
| 17282 | else |
| 17283 | # Determine the default libpath from the value encoded in an |
| 17284 | # empty executable. |
| 17285 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 17286 | aix_libpath=$lt_cv_aix_libpath |
| 17287 | else |
| 17288 | if test ${lt_cv_aix_libpath__CXX+y} |
| 17289 | then : |
| 17290 | printf %s "(cached) " >&6 |
| 17291 | else case e in #( |
| 17292 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17293 | /* end confdefs.h. */ |
| 17294 | |
| 17295 | int |
| 17296 | main (void) |
| 17297 | { |
| 17298 | |
| 17299 | ; |
| 17300 | return 0; |
| 17301 | } |
| 17302 | _ACEOF |
| 17303 | if ac_fn_cxx_try_link "$LINENO" |
| 17304 | then : |
| 17305 | |
| 17306 | lt_aix_libpath_sed=' |
| 17307 | /Import File Strings/,/^$/ { |
| 17308 | /^0/ { |
| 17309 | s/^0 *\([^ ]*\) *$/\1/ |
| 17310 | p |
| 17311 | } |
| 17312 | }' |
| 17313 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17314 | # Check for a 64-bit object if we didn't find anything. |
| 17315 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17316 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17317 | fi |
| 17318 | fi |
| 17319 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17320 | conftest$ac_exeext conftest.$ac_ext |
| 17321 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17322 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 17323 | fi |
| 17324 | ;; |
| 17325 | esac |
| 17326 | fi |
| 17327 | |
| 17328 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17329 | fi |
| 17330 | |
| 17331 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 17332 | # Warning - without using the other run time loading flags, |
| 17333 | # -berok will link without error, but may produce a broken library. |
| 17334 | no_undefined_flag_CXX=' $wl-bernotok' |
| 17335 | allow_undefined_flag_CXX=' $wl-berok' |
| 17336 | if test yes = "$with_gnu_ld"; then |
| 17337 | # We only use this code for GNU lds that support --whole-archive. |
| 17338 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 17339 | else |
| 17340 | # Exported symbols can be pulled into shared objects from archives |
| 17341 | whole_archive_flag_spec_CXX='$convenience' |
| 17342 | fi |
| 17343 | archive_cmds_need_lc_CXX=yes |
| 17344 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 17345 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 17346 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 17347 | if test svr4 != "$with_aix_soname"; then |
| 17348 | # This is similar to how AIX traditionally builds its shared |
| 17349 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
| 17350 | 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' |
| 17351 | fi |
| 17352 | if test aix != "$with_aix_soname"; then |
| 17353 | 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' |
| 17354 | else |
| 17355 | # used by -dlpreopen to get the symbols |
| 17356 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 17357 | fi |
| 17358 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' |
| 17359 | fi |
| 17360 | fi |
| 17361 | ;; |
| 17362 | |
| 17363 | beos*) |
| 17364 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 17365 | allow_undefined_flag_CXX=unsupported |
| 17366 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 17367 | # support --undefined. This deserves some investigation. FIXME |
| 17368 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17369 | else |
| 17370 | ld_shlibs_CXX=no |
| 17371 | fi |
| 17372 | ;; |
| 17373 | |
| 17374 | chorus*) |
| 17375 | case $cc_basename in |
| 17376 | *) |
| 17377 | # FIXME: insert proper C++ library support |
| 17378 | ld_shlibs_CXX=no |
| 17379 | ;; |
| 17380 | esac |
| 17381 | ;; |
| 17382 | |
| 17383 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 17384 | case $GXX,$cc_basename in |
| 17385 | ,cl* | no,cl* | ,icl* | no,icl*) |
| 17386 | # Native MSVC or ICC |
| 17387 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17388 | # no search path for DLLs. |
| 17389 | hardcode_libdir_flag_spec_CXX=' ' |
| 17390 | allow_undefined_flag_CXX=unsupported |
| 17391 | always_export_symbols_CXX=yes |
| 17392 | file_list_spec_CXX='@' |
| 17393 | # Tell ltmain to make .lib files, not .a files. |
| 17394 | libext=lib |
| 17395 | # Tell ltmain to make .dll files, not .so files. |
| 17396 | shrext_cmds=.dll |
| 17397 | # FIXME: Setting linknames here is a bad hack. |
| 17398 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 17399 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 17400 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 17401 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 17402 | else |
| 17403 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 17404 | fi~ |
| 17405 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 17406 | linknames=' |
| 17407 | # The linker will not automatically build a static lib if we build a DLL. |
| 17408 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 17409 | enable_shared_with_static_runtimes_CXX=yes |
| 17410 | # Don't use ranlib |
| 17411 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 17412 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 17413 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 17414 | case $lt_outputfile in |
| 17415 | *.exe|*.EXE) ;; |
| 17416 | *) |
| 17417 | lt_outputfile=$lt_outputfile.exe |
| 17418 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 17419 | ;; |
| 17420 | esac~ |
| 17421 | func_to_tool_file "$lt_outputfile"~ |
| 17422 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 17423 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 17424 | $RM "$lt_outputfile.manifest"; |
| 17425 | fi' |
| 17426 | ;; |
| 17427 | *) |
| 17428 | # g++ |
| 17429 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 17430 | # as there is no search path for DLLs. |
| 17431 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17432 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
| 17433 | allow_undefined_flag_CXX=unsupported |
| 17434 | always_export_symbols_CXX=no |
| 17435 | enable_shared_with_static_runtimes_CXX=yes |
| 17436 | file_list_spec_CXX='@' |
| 17437 | |
| 17438 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 17439 | 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' |
| 17440 | # If the export-symbols file already is a .def file, use it as |
| 17441 | # is; otherwise, prepend EXPORTS... |
| 17442 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 17443 | cp $export_symbols $output_objdir/$soname.def; |
| 17444 | else |
| 17445 | echo EXPORTS > $output_objdir/$soname.def; |
| 17446 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17447 | fi~ |
| 17448 | $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' |
| 17449 | else |
| 17450 | ld_shlibs_CXX=no |
| 17451 | fi |
| 17452 | ;; |
| 17453 | esac |
| 17454 | ;; |
| 17455 | darwin* | rhapsody*) |
| 17456 | |
| 17457 | |
| 17458 | archive_cmds_need_lc_CXX=no |
| 17459 | hardcode_direct_CXX=no |
| 17460 | hardcode_automatic_CXX=yes |
| 17461 | hardcode_shlibpath_var_CXX=unsupported |
| 17462 | if test yes = "$lt_cv_ld_force_load"; then |
| 17463 | 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\"`' |
| 17464 | |
| 17465 | else |
| 17466 | whole_archive_flag_spec_CXX='' |
| 17467 | fi |
| 17468 | link_all_deplibs_CXX=yes |
| 17469 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
| 17470 | case $cc_basename in |
| 17471 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 17472 | *) _lt_dar_can_shared=$GCC ;; |
| 17473 | esac |
| 17474 | if test yes = "$_lt_dar_can_shared"; then |
| 17475 | output_verbose_link_cmd=func_echo_all |
| 17476 | 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" |
| 17477 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 17478 | 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" |
| 17479 | 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" |
| 17480 | if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then |
| 17481 | 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" |
| 17482 | 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" |
| 17483 | fi |
| 17484 | |
| 17485 | else |
| 17486 | ld_shlibs_CXX=no |
| 17487 | fi |
| 17488 | |
| 17489 | ;; |
| 17490 | |
| 17491 | os2*) |
| 17492 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17493 | hardcode_minus_L_CXX=yes |
| 17494 | allow_undefined_flag_CXX=unsupported |
| 17495 | shrext_cmds=.dll |
| 17496 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 17497 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 17498 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 17499 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 17500 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 17501 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 17502 | emximp -o $lib $output_objdir/$libname.def' |
| 17503 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 17504 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 17505 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 17506 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 17507 | prefix_cmds="$SED"~ |
| 17508 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 17509 | prefix_cmds="$prefix_cmds -e 1d"; |
| 17510 | fi~ |
| 17511 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 17512 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 17513 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 17514 | emximp -o $lib $output_objdir/$libname.def' |
| 17515 | old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 17516 | enable_shared_with_static_runtimes_CXX=yes |
| 17517 | file_list_spec_CXX='@' |
| 17518 | ;; |
| 17519 | |
| 17520 | dgux*) |
| 17521 | case $cc_basename in |
| 17522 | ec++*) |
| 17523 | # FIXME: insert proper C++ library support |
| 17524 | ld_shlibs_CXX=no |
| 17525 | ;; |
| 17526 | ghcx*) |
| 17527 | # Green Hills C++ Compiler |
| 17528 | # FIXME: insert proper C++ library support |
| 17529 | ld_shlibs_CXX=no |
| 17530 | ;; |
| 17531 | *) |
| 17532 | # FIXME: insert proper C++ library support |
| 17533 | ld_shlibs_CXX=no |
| 17534 | ;; |
| 17535 | esac |
| 17536 | ;; |
| 17537 | |
| 17538 | freebsd2.*) |
| 17539 | # C++ shared libraries reported to be fairly broken before |
| 17540 | # switch to ELF |
| 17541 | ld_shlibs_CXX=no |
| 17542 | ;; |
| 17543 | |
| 17544 | freebsd-elf*) |
| 17545 | archive_cmds_need_lc_CXX=no |
| 17546 | ;; |
| 17547 | |
| 17548 | freebsd* | dragonfly* | midnightbsd*) |
| 17549 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 17550 | # conventions |
| 17551 | ld_shlibs_CXX=yes |
| 17552 | ;; |
| 17553 | |
| 17554 | haiku*) |
| 17555 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17556 | link_all_deplibs_CXX=no |
| 17557 | ;; |
| 17558 | |
| 17559 | hpux9*) |
| 17560 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 17561 | hardcode_libdir_separator_CXX=: |
| 17562 | export_dynamic_flag_spec_CXX='$wl-E' |
| 17563 | hardcode_direct_CXX=yes |
| 17564 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17565 | # but as the default |
| 17566 | # location of the library. |
| 17567 | |
| 17568 | case $cc_basename in |
| 17569 | CC*) |
| 17570 | # FIXME: insert proper C++ library support |
| 17571 | ld_shlibs_CXX=no |
| 17572 | ;; |
| 17573 | aCC*) |
| 17574 | 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' |
| 17575 | # Commands to make compiler produce verbose output that lists |
| 17576 | # what "hidden" libraries, object files and flags are used when |
| 17577 | # linking a shared library. |
| 17578 | # |
| 17579 | # There doesn't appear to be a way to prevent this compiler from |
| 17580 | # explicitly linking system object files so we need to strip them |
| 17581 | # from the output so that they don't get included in the library |
| 17582 | # dependencies. |
| 17583 | 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"' |
| 17584 | ;; |
| 17585 | *) |
| 17586 | if test yes = "$GXX"; then |
| 17587 | 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' |
| 17588 | else |
| 17589 | # FIXME: insert proper C++ library support |
| 17590 | ld_shlibs_CXX=no |
| 17591 | fi |
| 17592 | ;; |
| 17593 | esac |
| 17594 | ;; |
| 17595 | |
| 17596 | hpux10*|hpux11*) |
| 17597 | if test no = "$with_gnu_ld"; then |
| 17598 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 17599 | hardcode_libdir_separator_CXX=: |
| 17600 | |
| 17601 | case $host_cpu in |
| 17602 | hppa*64*|ia64*) |
| 17603 | ;; |
| 17604 | *) |
| 17605 | export_dynamic_flag_spec_CXX='$wl-E' |
| 17606 | ;; |
| 17607 | esac |
| 17608 | fi |
| 17609 | case $host_cpu in |
| 17610 | hppa*64*|ia64*) |
| 17611 | hardcode_direct_CXX=no |
| 17612 | hardcode_shlibpath_var_CXX=no |
| 17613 | ;; |
| 17614 | *) |
| 17615 | hardcode_direct_CXX=yes |
| 17616 | hardcode_direct_absolute_CXX=yes |
| 17617 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17618 | # but as the default |
| 17619 | # location of the library. |
| 17620 | ;; |
| 17621 | esac |
| 17622 | |
| 17623 | case $cc_basename in |
| 17624 | CC*) |
| 17625 | # FIXME: insert proper C++ library support |
| 17626 | ld_shlibs_CXX=no |
| 17627 | ;; |
| 17628 | aCC*) |
| 17629 | case $host_cpu in |
| 17630 | hppa*64*) |
| 17631 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17632 | ;; |
| 17633 | ia64*) |
| 17634 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17635 | ;; |
| 17636 | *) |
| 17637 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17638 | ;; |
| 17639 | esac |
| 17640 | # Commands to make compiler produce verbose output that lists |
| 17641 | # what "hidden" libraries, object files and flags are used when |
| 17642 | # linking a shared library. |
| 17643 | # |
| 17644 | # There doesn't appear to be a way to prevent this compiler from |
| 17645 | # explicitly linking system object files so we need to strip them |
| 17646 | # from the output so that they don't get included in the library |
| 17647 | # dependencies. |
| 17648 | 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"' |
| 17649 | ;; |
| 17650 | *) |
| 17651 | if test yes = "$GXX"; then |
| 17652 | if test no = "$with_gnu_ld"; then |
| 17653 | case $host_cpu in |
| 17654 | hppa*64*) |
| 17655 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17656 | ;; |
| 17657 | ia64*) |
| 17658 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17659 | ;; |
| 17660 | *) |
| 17661 | 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' |
| 17662 | ;; |
| 17663 | esac |
| 17664 | fi |
| 17665 | else |
| 17666 | # FIXME: insert proper C++ library support |
| 17667 | ld_shlibs_CXX=no |
| 17668 | fi |
| 17669 | ;; |
| 17670 | esac |
| 17671 | ;; |
| 17672 | |
| 17673 | interix[3-9]*) |
| 17674 | hardcode_direct_CXX=no |
| 17675 | hardcode_shlibpath_var_CXX=no |
| 17676 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 17677 | export_dynamic_flag_spec_CXX='$wl-E' |
| 17678 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17679 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17680 | # default) and relocated if they conflict, which is a slow very memory |
| 17681 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17682 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17683 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17684 | 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' |
| 17685 | 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' |
| 17686 | ;; |
| 17687 | irix5* | irix6*) |
| 17688 | case $cc_basename in |
| 17689 | CC*) |
| 17690 | # SGI C++ |
| 17691 | 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' |
| 17692 | |
| 17693 | # Archives containing C++ object files must be created using |
| 17694 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 17695 | # necessary to make sure instantiated templates are included |
| 17696 | # in the archive. |
| 17697 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 17698 | ;; |
| 17699 | *) |
| 17700 | if test yes = "$GXX"; then |
| 17701 | if test no = "$with_gnu_ld"; then |
| 17702 | 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' |
| 17703 | else |
| 17704 | 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' |
| 17705 | fi |
| 17706 | fi |
| 17707 | link_all_deplibs_CXX=yes |
| 17708 | ;; |
| 17709 | esac |
| 17710 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 17711 | hardcode_libdir_separator_CXX=: |
| 17712 | inherit_rpath_CXX=yes |
| 17713 | ;; |
| 17714 | |
| 17715 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 17716 | case $cc_basename in |
| 17717 | KCC*) |
| 17718 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17719 | |
| 17720 | # KCC will only create a shared library if the output file |
| 17721 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17722 | # to its proper name (with version) after linking. |
| 17723 | 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' |
| 17724 | 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' |
| 17725 | # Commands to make compiler produce verbose output that lists |
| 17726 | # what "hidden" libraries, object files and flags are used when |
| 17727 | # linking a shared library. |
| 17728 | # |
| 17729 | # There doesn't appear to be a way to prevent this compiler from |
| 17730 | # explicitly linking system object files so we need to strip them |
| 17731 | # from the output so that they don't get included in the library |
| 17732 | # dependencies. |
| 17733 | 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"' |
| 17734 | |
| 17735 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 17736 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 17737 | |
| 17738 | # Archives containing C++ object files must be created using |
| 17739 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 17740 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 17741 | ;; |
| 17742 | icpc* | ecpc* ) |
| 17743 | # Intel C++ |
| 17744 | with_gnu_ld=yes |
| 17745 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 17746 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 17747 | # earlier do not add the objects themselves. |
| 17748 | case `$CC -V 2>&1` in |
| 17749 | *"Version 7."*) |
| 17750 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17751 | 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' |
| 17752 | ;; |
| 17753 | *) # Version 8.0 or newer |
| 17754 | tmp_idyn= |
| 17755 | case $host_cpu in |
| 17756 | ia64*) tmp_idyn=' -i_dynamic';; |
| 17757 | esac |
| 17758 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17759 | 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' |
| 17760 | ;; |
| 17761 | esac |
| 17762 | archive_cmds_need_lc_CXX=no |
| 17763 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 17764 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 17765 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 17766 | ;; |
| 17767 | pgCC* | pgcpp*) |
| 17768 | # Portland Group C++ compiler |
| 17769 | case `$CC -V` in |
| 17770 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 17771 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 17772 | rm -rf $tpldir~ |
| 17773 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 17774 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 17775 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 17776 | rm -rf $tpldir~ |
| 17777 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 17778 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 17779 | $RANLIB $oldlib' |
| 17780 | archive_cmds_CXX='tpldir=Template.dir~ |
| 17781 | rm -rf $tpldir~ |
| 17782 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 17783 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17784 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 17785 | rm -rf $tpldir~ |
| 17786 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 17787 | $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' |
| 17788 | ;; |
| 17789 | *) # Version 6 and above use weak symbols |
| 17790 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17791 | 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' |
| 17792 | ;; |
| 17793 | esac |
| 17794 | |
| 17795 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
| 17796 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 17797 | 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' |
| 17798 | ;; |
| 17799 | cxx*) |
| 17800 | # Compaq C++ |
| 17801 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17802 | 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' |
| 17803 | |
| 17804 | runpath_var=LD_RUN_PATH |
| 17805 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17806 | hardcode_libdir_separator_CXX=: |
| 17807 | |
| 17808 | # Commands to make compiler produce verbose output that lists |
| 17809 | # what "hidden" libraries, object files and flags are used when |
| 17810 | # linking a shared library. |
| 17811 | # |
| 17812 | # There doesn't appear to be a way to prevent this compiler from |
| 17813 | # explicitly linking system object files so we need to strip them |
| 17814 | # from the output so that they don't get included in the library |
| 17815 | # dependencies. |
| 17816 | 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' |
| 17817 | ;; |
| 17818 | xl* | mpixl* | bgxl*) |
| 17819 | # IBM XL 8.0 on PPC, with GNU ld |
| 17820 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 17821 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 17822 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 17823 | if test yes = "$supports_anon_versioning"; then |
| 17824 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 17825 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17826 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17827 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 17828 | fi |
| 17829 | ;; |
| 17830 | *) |
| 17831 | case `$CC -V 2>&1 | $SED 5q` in |
| 17832 | *Sun\ C*) |
| 17833 | # Sun C++ 5.9 |
| 17834 | no_undefined_flag_CXX=' -zdefs' |
| 17835 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17836 | 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' |
| 17837 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17838 | 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' |
| 17839 | compiler_needs_object_CXX=yes |
| 17840 | |
| 17841 | # Not sure whether something based on |
| 17842 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 17843 | # would be better. |
| 17844 | output_verbose_link_cmd='func_echo_all' |
| 17845 | |
| 17846 | # Archives containing C++ object files must be created using |
| 17847 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 17848 | # necessary to make sure instantiated templates are included |
| 17849 | # in the archive. |
| 17850 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 17851 | ;; |
| 17852 | esac |
| 17853 | ;; |
| 17854 | esac |
| 17855 | ;; |
| 17856 | |
| 17857 | lynxos*) |
| 17858 | # FIXME: insert proper C++ library support |
| 17859 | ld_shlibs_CXX=no |
| 17860 | ;; |
| 17861 | |
| 17862 | m88k*) |
| 17863 | # FIXME: insert proper C++ library support |
| 17864 | ld_shlibs_CXX=no |
| 17865 | ;; |
| 17866 | |
| 17867 | mvs*) |
| 17868 | case $cc_basename in |
| 17869 | cxx*) |
| 17870 | # FIXME: insert proper C++ library support |
| 17871 | ld_shlibs_CXX=no |
| 17872 | ;; |
| 17873 | *) |
| 17874 | # FIXME: insert proper C++ library support |
| 17875 | ld_shlibs_CXX=no |
| 17876 | ;; |
| 17877 | esac |
| 17878 | ;; |
| 17879 | |
| 17880 | *-mlibc) |
| 17881 | ld_shlibs_CXX=yes |
| 17882 | ;; |
| 17883 | |
| 17884 | netbsd*) |
| 17885 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17886 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 17887 | wlarc= |
| 17888 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17889 | hardcode_direct_CXX=yes |
| 17890 | hardcode_shlibpath_var_CXX=no |
| 17891 | fi |
| 17892 | # Workaround some broken pre-1.5 toolchains |
| 17893 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 17894 | ;; |
| 17895 | |
| 17896 | *nto* | *qnx*) |
| 17897 | ld_shlibs_CXX=yes |
| 17898 | ;; |
| 17899 | |
| 17900 | openbsd*) |
| 17901 | if test -f /usr/libexec/ld.so; then |
| 17902 | hardcode_direct_CXX=yes |
| 17903 | hardcode_shlibpath_var_CXX=no |
| 17904 | hardcode_direct_absolute_CXX=yes |
| 17905 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17906 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 17907 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
| 17908 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' |
| 17909 | export_dynamic_flag_spec_CXX='$wl-E' |
| 17910 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 17911 | fi |
| 17912 | output_verbose_link_cmd=func_echo_all |
| 17913 | else |
| 17914 | ld_shlibs_CXX=no |
| 17915 | fi |
| 17916 | ;; |
| 17917 | |
| 17918 | osf3* | osf4* | osf5*) |
| 17919 | case $cc_basename in |
| 17920 | KCC*) |
| 17921 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17922 | |
| 17923 | # KCC will only create a shared library if the output file |
| 17924 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17925 | # to its proper name (with version) after linking. |
| 17926 | 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' |
| 17927 | |
| 17928 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 17929 | hardcode_libdir_separator_CXX=: |
| 17930 | |
| 17931 | # Archives containing C++ object files must be created using |
| 17932 | # the KAI C++ compiler. |
| 17933 | case $host in |
| 17934 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 17935 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 17936 | esac |
| 17937 | ;; |
| 17938 | RCC*) |
| 17939 | # Rational C++ 2.4.1 |
| 17940 | # FIXME: insert proper C++ library support |
| 17941 | ld_shlibs_CXX=no |
| 17942 | ;; |
| 17943 | cxx*) |
| 17944 | case $host in |
| 17945 | osf3*) |
| 17946 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 17947 | 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' |
| 17948 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 17949 | ;; |
| 17950 | *) |
| 17951 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 17952 | 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' |
| 17953 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 17954 | echo "-hidden">> $lib.exp~ |
| 17955 | $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~ |
| 17956 | $RM $lib.exp' |
| 17957 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17958 | ;; |
| 17959 | esac |
| 17960 | |
| 17961 | hardcode_libdir_separator_CXX=: |
| 17962 | |
| 17963 | # Commands to make compiler produce verbose output that lists |
| 17964 | # what "hidden" libraries, object files and flags are used when |
| 17965 | # linking a shared library. |
| 17966 | # |
| 17967 | # There doesn't appear to be a way to prevent this compiler from |
| 17968 | # explicitly linking system object files so we need to strip them |
| 17969 | # from the output so that they don't get included in the library |
| 17970 | # dependencies. |
| 17971 | 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"' |
| 17972 | ;; |
| 17973 | *) |
| 17974 | if test yes,no = "$GXX,$with_gnu_ld"; then |
| 17975 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 17976 | case $host in |
| 17977 | osf3*) |
| 17978 | 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' |
| 17979 | ;; |
| 17980 | *) |
| 17981 | 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' |
| 17982 | ;; |
| 17983 | esac |
| 17984 | |
| 17985 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 17986 | hardcode_libdir_separator_CXX=: |
| 17987 | |
| 17988 | # Commands to make compiler produce verbose output that lists |
| 17989 | # what "hidden" libraries, object files and flags are used when |
| 17990 | # linking a shared library. |
| 17991 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 17992 | |
| 17993 | else |
| 17994 | # FIXME: insert proper C++ library support |
| 17995 | ld_shlibs_CXX=no |
| 17996 | fi |
| 17997 | ;; |
| 17998 | esac |
| 17999 | ;; |
| 18000 | |
| 18001 | psos*) |
| 18002 | # FIXME: insert proper C++ library support |
| 18003 | ld_shlibs_CXX=no |
| 18004 | ;; |
| 18005 | |
| 18006 | serenity*) |
| 18007 | ;; |
| 18008 | |
| 18009 | sunos4*) |
| 18010 | case $cc_basename in |
| 18011 | CC*) |
| 18012 | # Sun C++ 4.x |
| 18013 | # FIXME: insert proper C++ library support |
| 18014 | ld_shlibs_CXX=no |
| 18015 | ;; |
| 18016 | lcc*) |
| 18017 | # Lucid |
| 18018 | # FIXME: insert proper C++ library support |
| 18019 | ld_shlibs_CXX=no |
| 18020 | ;; |
| 18021 | *) |
| 18022 | # FIXME: insert proper C++ library support |
| 18023 | ld_shlibs_CXX=no |
| 18024 | ;; |
| 18025 | esac |
| 18026 | ;; |
| 18027 | |
| 18028 | solaris*) |
| 18029 | case $cc_basename in |
| 18030 | CC* | sunCC*) |
| 18031 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18032 | archive_cmds_need_lc_CXX=yes |
| 18033 | no_undefined_flag_CXX=' -zdefs' |
| 18034 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18035 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18036 | $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' |
| 18037 | |
| 18038 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18039 | hardcode_shlibpath_var_CXX=no |
| 18040 | case $host_os in |
| 18041 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18042 | *) |
| 18043 | # The compiler driver will combine and reorder linker options, |
| 18044 | # but understands '-z linker_flag'. |
| 18045 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 18046 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 18047 | ;; |
| 18048 | esac |
| 18049 | link_all_deplibs_CXX=yes |
| 18050 | |
| 18051 | output_verbose_link_cmd='func_echo_all' |
| 18052 | |
| 18053 | # Archives containing C++ object files must be created using |
| 18054 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18055 | # necessary to make sure instantiated templates are included |
| 18056 | # in the archive. |
| 18057 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18058 | ;; |
| 18059 | gcx*) |
| 18060 | # Green Hills C++ Compiler |
| 18061 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 18062 | |
| 18063 | # The C++ compiler must be used to create the archive. |
| 18064 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18065 | ;; |
| 18066 | *) |
| 18067 | # GNU C++ compiler with Solaris linker |
| 18068 | if test yes,no = "$GXX,$with_gnu_ld"; then |
| 18069 | no_undefined_flag_CXX=' $wl-z ${wl}defs' |
| 18070 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 18071 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 18072 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18073 | $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' |
| 18074 | |
| 18075 | # Commands to make compiler produce verbose output that lists |
| 18076 | # what "hidden" libraries, object files and flags are used when |
| 18077 | # linking a shared library. |
| 18078 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 18079 | else |
| 18080 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
| 18081 | # platform. |
| 18082 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 18083 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18084 | $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' |
| 18085 | |
| 18086 | # Commands to make compiler produce verbose output that lists |
| 18087 | # what "hidden" libraries, object files and flags are used when |
| 18088 | # linking a shared library. |
| 18089 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"' |
| 18090 | fi |
| 18091 | |
| 18092 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
| 18093 | case $host_os in |
| 18094 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18095 | *) |
| 18096 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 18097 | ;; |
| 18098 | esac |
| 18099 | fi |
| 18100 | ;; |
| 18101 | esac |
| 18102 | ;; |
| 18103 | |
| 18104 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18105 | no_undefined_flag_CXX='$wl-z,text' |
| 18106 | archive_cmds_need_lc_CXX=no |
| 18107 | hardcode_shlibpath_var_CXX=no |
| 18108 | runpath_var='LD_RUN_PATH' |
| 18109 | |
| 18110 | case $cc_basename in |
| 18111 | CC*) |
| 18112 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18113 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18114 | ;; |
| 18115 | *) |
| 18116 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18117 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18118 | ;; |
| 18119 | esac |
| 18120 | ;; |
| 18121 | |
| 18122 | sysv5* | sco3.2v5* | sco5v6*) |
| 18123 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 18124 | # link with -lc, and that would cause any symbols used from libc to |
| 18125 | # always be unresolved, which means just about no library would |
| 18126 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18127 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18128 | # as -z defs. |
| 18129 | no_undefined_flag_CXX='$wl-z,text' |
| 18130 | allow_undefined_flag_CXX='$wl-z,nodefs' |
| 18131 | archive_cmds_need_lc_CXX=no |
| 18132 | hardcode_shlibpath_var_CXX=no |
| 18133 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
| 18134 | hardcode_libdir_separator_CXX=':' |
| 18135 | link_all_deplibs_CXX=yes |
| 18136 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
| 18137 | runpath_var='LD_RUN_PATH' |
| 18138 | |
| 18139 | case $cc_basename in |
| 18140 | CC*) |
| 18141 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18142 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18143 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 18144 | '"$old_archive_cmds_CXX" |
| 18145 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 18146 | '"$reload_cmds_CXX" |
| 18147 | ;; |
| 18148 | *) |
| 18149 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18150 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18151 | ;; |
| 18152 | esac |
| 18153 | ;; |
| 18154 | |
| 18155 | tandem*) |
| 18156 | case $cc_basename in |
| 18157 | NCC*) |
| 18158 | # NonStop-UX NCC 3.20 |
| 18159 | # FIXME: insert proper C++ library support |
| 18160 | ld_shlibs_CXX=no |
| 18161 | ;; |
| 18162 | *) |
| 18163 | # FIXME: insert proper C++ library support |
| 18164 | ld_shlibs_CXX=no |
| 18165 | ;; |
| 18166 | esac |
| 18167 | ;; |
| 18168 | |
| 18169 | vxworks*) |
| 18170 | # FIXME: insert proper C++ library support |
| 18171 | ld_shlibs_CXX=no |
| 18172 | ;; |
| 18173 | |
| 18174 | *) |
| 18175 | # FIXME: insert proper C++ library support |
| 18176 | ld_shlibs_CXX=no |
| 18177 | ;; |
| 18178 | esac |
| 18179 | |
| 18180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 18181 | printf "%s\n" "$ld_shlibs_CXX" >&6; } |
| 18182 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 18183 | |
| 18184 | GCC_CXX=$GXX |
| 18185 | LD_CXX=$LD |
| 18186 | |
| 18187 | ## CAVEAT EMPTOR: |
| 18188 | ## There is no encapsulation within the following macros, do not change |
| 18189 | ## the running order or otherwise move them around unless you know exactly |
| 18190 | ## what you are doing... |
| 18191 | # Dependencies to place before and after the object being linked: |
| 18192 | predep_objects_CXX= |
| 18193 | postdep_objects_CXX= |
| 18194 | predeps_CXX= |
| 18195 | postdeps_CXX= |
| 18196 | compiler_lib_search_path_CXX= |
| 18197 | |
| 18198 | cat > conftest.$ac_ext <<_LT_EOF |
| 18199 | class Foo |
| 18200 | { |
| 18201 | public: |
| 18202 | Foo (void) { a = 0; } |
| 18203 | private: |
| 18204 | int a; |
| 18205 | }; |
| 18206 | _LT_EOF |
| 18207 | |
| 18208 | |
| 18209 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 18210 | case "$CC $CFLAGS " in #( |
| 18211 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 18212 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 18213 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 18214 | esac |
| 18215 | |
| 18216 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 18217 | (eval $ac_compile) 2>&5 |
| 18218 | ac_status=$? |
| 18219 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18220 | test $ac_status = 0; }; then |
| 18221 | # Parse the compiler output and extract the necessary |
| 18222 | # objects, libraries and library flags. |
| 18223 | |
| 18224 | # Sentinel used to keep track of whether or not we are before |
| 18225 | # the conftest object file. |
| 18226 | pre_test_object_deps_done=no |
| 18227 | |
| 18228 | for p in `eval "$output_verbose_link_cmd"`; do |
| 18229 | case $prev$p in |
| 18230 | |
| 18231 | -L* | -R* | -l*) |
| 18232 | # Some compilers place space between "-{L,R,l}" and the path. |
| 18233 | # Remove the space. |
| 18234 | if test x-L = x"$p" || |
| 18235 | test x-R = x"$p" || |
| 18236 | test x-l = x"$p"; then |
| 18237 | prev=$p |
| 18238 | continue |
| 18239 | fi |
| 18240 | |
| 18241 | # Expand the sysroot to ease extracting the directories later. |
| 18242 | if test -z "$prev"; then |
| 18243 | case $p in |
| 18244 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 18245 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 18246 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 18247 | esac |
| 18248 | fi |
| 18249 | case $p in |
| 18250 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 18251 | esac |
| 18252 | if test no = "$pre_test_object_deps_done"; then |
| 18253 | case $prev in |
| 18254 | -L | -R) |
| 18255 | # Internal compiler library paths should come after those |
| 18256 | # provided the user. The postdeps already come after the |
| 18257 | # user supplied libs so there is no need to process them. |
| 18258 | if test -z "$compiler_lib_search_path_CXX"; then |
| 18259 | compiler_lib_search_path_CXX=$prev$p |
| 18260 | else |
| 18261 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
| 18262 | fi |
| 18263 | ;; |
| 18264 | # The "-l" case would never come before the object being |
| 18265 | # linked, so don't bother handling this case. |
| 18266 | esac |
| 18267 | else |
| 18268 | if test -z "$postdeps_CXX"; then |
| 18269 | postdeps_CXX=$prev$p |
| 18270 | else |
| 18271 | postdeps_CXX="${postdeps_CXX} $prev$p" |
| 18272 | fi |
| 18273 | fi |
| 18274 | prev= |
| 18275 | ;; |
| 18276 | |
| 18277 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 18278 | *.$objext) |
| 18279 | # This assumes that the test object file only shows up |
| 18280 | # once in the compiler output. |
| 18281 | if test "$p" = "conftest.$objext"; then |
| 18282 | pre_test_object_deps_done=yes |
| 18283 | continue |
| 18284 | fi |
| 18285 | |
| 18286 | if test no = "$pre_test_object_deps_done"; then |
| 18287 | if test -z "$predep_objects_CXX"; then |
| 18288 | predep_objects_CXX=$p |
| 18289 | else |
| 18290 | predep_objects_CXX="$predep_objects_CXX $p" |
| 18291 | fi |
| 18292 | else |
| 18293 | if test -z "$postdep_objects_CXX"; then |
| 18294 | postdep_objects_CXX=$p |
| 18295 | else |
| 18296 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 18297 | fi |
| 18298 | fi |
| 18299 | ;; |
| 18300 | |
| 18301 | *) ;; # Ignore the rest. |
| 18302 | |
| 18303 | esac |
| 18304 | done |
| 18305 | |
| 18306 | # Clean up. |
| 18307 | rm -f a.out a.exe |
| 18308 | else |
| 18309 | echo "libtool.m4: error: problem compiling CXX test program" |
| 18310 | fi |
| 18311 | |
| 18312 | $RM -f confest.$objext |
| 18313 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 18314 | |
| 18315 | # PORTME: override above test on systems where it is broken |
| 18316 | case $host_os in |
| 18317 | interix[3-9]*) |
| 18318 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 18319 | # hack all around it, let's just trust "g++" to DTRT. |
| 18320 | predep_objects_CXX= |
| 18321 | postdep_objects_CXX= |
| 18322 | postdeps_CXX= |
| 18323 | ;; |
| 18324 | esac |
| 18325 | |
| 18326 | |
| 18327 | case " $postdeps_CXX " in |
| 18328 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 18329 | esac |
| 18330 | compiler_lib_search_dirs_CXX= |
| 18331 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 18332 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
| 18333 | fi |
| 18334 | |
| 18335 | |
| 18336 | |
| 18337 | |
| 18338 | |
| 18339 | |
| 18340 | |
| 18341 | |
| 18342 | |
| 18343 | |
| 18344 | |
| 18345 | |
| 18346 | |
| 18347 | |
| 18348 | |
| 18349 | |
| 18350 | |
| 18351 | |
| 18352 | |
| 18353 | |
| 18354 | |
| 18355 | |
| 18356 | |
| 18357 | |
| 18358 | |
| 18359 | |
| 18360 | |
| 18361 | |
| 18362 | |
| 18363 | |
| 18364 | |
| 18365 | lt_prog_compiler_wl_CXX= |
| 18366 | lt_prog_compiler_pic_CXX= |
| 18367 | lt_prog_compiler_static_CXX= |
| 18368 | |
| 18369 | |
| 18370 | # C++ specific cases for pic, static, wl, etc. |
| 18371 | if test yes = "$GXX"; then |
| 18372 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18373 | lt_prog_compiler_static_CXX='-static' |
| 18374 | |
| 18375 | case $host_os in |
| 18376 | aix*) |
| 18377 | # All AIX code is PIC. |
| 18378 | if test ia64 = "$host_cpu"; then |
| 18379 | # AIX 5 now supports IA64 processor |
| 18380 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18381 | fi |
| 18382 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18383 | ;; |
| 18384 | |
| 18385 | amigaos*) |
| 18386 | case $host_cpu in |
| 18387 | powerpc) |
| 18388 | # see comment about AmigaOS4 .so support |
| 18389 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18390 | ;; |
| 18391 | m68k) |
| 18392 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18393 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 18394 | # like '-m68040'. |
| 18395 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 18396 | ;; |
| 18397 | esac |
| 18398 | ;; |
| 18399 | |
| 18400 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18401 | # PIC is the default for these OSes. |
| 18402 | ;; |
| 18403 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 18404 | # This hack is so that the source file can tell whether it is being |
| 18405 | # built for inclusion in a dll (and should export symbols for example). |
| 18406 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 18407 | # (--disable-auto-import) libraries |
| 18408 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18409 | case $host_os in |
| 18410 | os2*) |
| 18411 | lt_prog_compiler_static_CXX='$wl-static' |
| 18412 | ;; |
| 18413 | esac |
| 18414 | ;; |
| 18415 | darwin* | rhapsody*) |
| 18416 | # PIC is the default on this platform |
| 18417 | # Common symbols not allowed in MH_DYLIB files |
| 18418 | lt_prog_compiler_pic_CXX='-fno-common' |
| 18419 | ;; |
| 18420 | *djgpp*) |
| 18421 | # DJGPP does not support shared libraries at all |
| 18422 | lt_prog_compiler_pic_CXX= |
| 18423 | ;; |
| 18424 | haiku*) |
| 18425 | # PIC is the default for Haiku. |
| 18426 | # The "-static" flag exists, but is broken. |
| 18427 | lt_prog_compiler_static_CXX= |
| 18428 | ;; |
| 18429 | interix[3-9]*) |
| 18430 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 18431 | # Instead, we relocate shared libraries at runtime. |
| 18432 | ;; |
| 18433 | sysv4*MP*) |
| 18434 | if test -d /usr/nec; then |
| 18435 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 18436 | fi |
| 18437 | ;; |
| 18438 | hpux*) |
| 18439 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 18440 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 18441 | # sets the default TLS model and affects inlining. |
| 18442 | case $host_cpu in |
| 18443 | hppa*64*) |
| 18444 | ;; |
| 18445 | *) |
| 18446 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18447 | ;; |
| 18448 | esac |
| 18449 | ;; |
| 18450 | *qnx* | *nto*) |
| 18451 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 18452 | # it will coredump. |
| 18453 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 18454 | ;; |
| 18455 | *) |
| 18456 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18457 | ;; |
| 18458 | esac |
| 18459 | else |
| 18460 | case $host_os in |
| 18461 | aix[4-9]*) |
| 18462 | # All AIX code is PIC. |
| 18463 | if test ia64 = "$host_cpu"; then |
| 18464 | # AIX 5 now supports IA64 processor |
| 18465 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18466 | else |
| 18467 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 18468 | fi |
| 18469 | ;; |
| 18470 | chorus*) |
| 18471 | case $cc_basename in |
| 18472 | cxch68*) |
| 18473 | # Green Hills C++ Compiler |
| 18474 | # _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" |
| 18475 | ;; |
| 18476 | esac |
| 18477 | ;; |
| 18478 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 18479 | # This hack is so that the source file can tell whether it is being |
| 18480 | # built for inclusion in a dll (and should export symbols for example). |
| 18481 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18482 | ;; |
| 18483 | dgux*) |
| 18484 | case $cc_basename in |
| 18485 | ec++*) |
| 18486 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18487 | ;; |
| 18488 | ghcx*) |
| 18489 | # Green Hills C++ Compiler |
| 18490 | lt_prog_compiler_pic_CXX='-pic' |
| 18491 | ;; |
| 18492 | *) |
| 18493 | ;; |
| 18494 | esac |
| 18495 | ;; |
| 18496 | freebsd* | dragonfly* | midnightbsd*) |
| 18497 | # FreeBSD uses GNU C++ |
| 18498 | ;; |
| 18499 | hpux9* | hpux10* | hpux11*) |
| 18500 | case $cc_basename in |
| 18501 | CC*) |
| 18502 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18503 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 18504 | if test ia64 != "$host_cpu"; then |
| 18505 | lt_prog_compiler_pic_CXX='+Z' |
| 18506 | fi |
| 18507 | ;; |
| 18508 | aCC*) |
| 18509 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18510 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 18511 | case $host_cpu in |
| 18512 | hppa*64*|ia64*) |
| 18513 | # +Z the default |
| 18514 | ;; |
| 18515 | *) |
| 18516 | lt_prog_compiler_pic_CXX='+Z' |
| 18517 | ;; |
| 18518 | esac |
| 18519 | ;; |
| 18520 | *) |
| 18521 | ;; |
| 18522 | esac |
| 18523 | ;; |
| 18524 | interix*) |
| 18525 | # This is c89, which is MS Visual C++ (no shared libs) |
| 18526 | # Anyone wants to do a port? |
| 18527 | ;; |
| 18528 | irix5* | irix6* | nonstopux*) |
| 18529 | case $cc_basename in |
| 18530 | CC*) |
| 18531 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18532 | lt_prog_compiler_static_CXX='-non_shared' |
| 18533 | # CC pic flag -KPIC is the default. |
| 18534 | ;; |
| 18535 | *) |
| 18536 | ;; |
| 18537 | esac |
| 18538 | ;; |
| 18539 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 18540 | case $cc_basename in |
| 18541 | KCC*) |
| 18542 | # KAI C++ Compiler |
| 18543 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18544 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18545 | ;; |
| 18546 | ecpc* ) |
| 18547 | # old Intel C++ for x86_64, which still supported -KPIC. |
| 18548 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18549 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18550 | lt_prog_compiler_static_CXX='-static' |
| 18551 | ;; |
| 18552 | icpc* ) |
| 18553 | # Intel C++, used to be incompatible with GCC. |
| 18554 | # ICC 10 doesn't accept -KPIC any more. |
| 18555 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18556 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18557 | lt_prog_compiler_static_CXX='-static' |
| 18558 | ;; |
| 18559 | pgCC* | pgcpp*) |
| 18560 | # Portland Group C++ compiler |
| 18561 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18562 | lt_prog_compiler_pic_CXX='-fpic' |
| 18563 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18564 | ;; |
| 18565 | cxx*) |
| 18566 | # Compaq C++ |
| 18567 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18568 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18569 | lt_prog_compiler_pic_CXX= |
| 18570 | lt_prog_compiler_static_CXX='-non_shared' |
| 18571 | ;; |
| 18572 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 18573 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 18574 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18575 | lt_prog_compiler_pic_CXX='-qpic' |
| 18576 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 18577 | ;; |
| 18578 | *) |
| 18579 | case `$CC -V 2>&1 | $SED 5q` in |
| 18580 | *Sun\ C*) |
| 18581 | # Sun C++ 5.9 |
| 18582 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18583 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18584 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18585 | ;; |
| 18586 | esac |
| 18587 | ;; |
| 18588 | esac |
| 18589 | ;; |
| 18590 | lynxos*) |
| 18591 | ;; |
| 18592 | m88k*) |
| 18593 | ;; |
| 18594 | mvs*) |
| 18595 | case $cc_basename in |
| 18596 | cxx*) |
| 18597 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 18598 | ;; |
| 18599 | *) |
| 18600 | ;; |
| 18601 | esac |
| 18602 | ;; |
| 18603 | netbsd* | netbsdelf*-gnu) |
| 18604 | ;; |
| 18605 | *-mlibc) |
| 18606 | ;; |
| 18607 | *qnx* | *nto*) |
| 18608 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 18609 | # it will coredump. |
| 18610 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 18611 | ;; |
| 18612 | osf3* | osf4* | osf5*) |
| 18613 | case $cc_basename in |
| 18614 | KCC*) |
| 18615 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18616 | ;; |
| 18617 | RCC*) |
| 18618 | # Rational C++ 2.4.1 |
| 18619 | lt_prog_compiler_pic_CXX='-pic' |
| 18620 | ;; |
| 18621 | cxx*) |
| 18622 | # Digital/Compaq C++ |
| 18623 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18624 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18625 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18626 | lt_prog_compiler_pic_CXX= |
| 18627 | lt_prog_compiler_static_CXX='-non_shared' |
| 18628 | ;; |
| 18629 | *) |
| 18630 | ;; |
| 18631 | esac |
| 18632 | ;; |
| 18633 | psos*) |
| 18634 | ;; |
| 18635 | serenity*) |
| 18636 | ;; |
| 18637 | solaris*) |
| 18638 | case $cc_basename in |
| 18639 | CC* | sunCC*) |
| 18640 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18641 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18642 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18643 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18644 | ;; |
| 18645 | gcx*) |
| 18646 | # Green Hills C++ Compiler |
| 18647 | lt_prog_compiler_pic_CXX='-PIC' |
| 18648 | ;; |
| 18649 | *) |
| 18650 | ;; |
| 18651 | esac |
| 18652 | ;; |
| 18653 | sunos4*) |
| 18654 | case $cc_basename in |
| 18655 | CC*) |
| 18656 | # Sun C++ 4.x |
| 18657 | lt_prog_compiler_pic_CXX='-pic' |
| 18658 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18659 | ;; |
| 18660 | lcc*) |
| 18661 | # Lucid |
| 18662 | lt_prog_compiler_pic_CXX='-pic' |
| 18663 | ;; |
| 18664 | *) |
| 18665 | ;; |
| 18666 | esac |
| 18667 | ;; |
| 18668 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 18669 | case $cc_basename in |
| 18670 | CC*) |
| 18671 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18672 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18673 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18674 | ;; |
| 18675 | esac |
| 18676 | ;; |
| 18677 | tandem*) |
| 18678 | case $cc_basename in |
| 18679 | NCC*) |
| 18680 | # NonStop-UX NCC 3.20 |
| 18681 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18682 | ;; |
| 18683 | *) |
| 18684 | ;; |
| 18685 | esac |
| 18686 | ;; |
| 18687 | vxworks*) |
| 18688 | ;; |
| 18689 | *) |
| 18690 | lt_prog_compiler_can_build_shared_CXX=no |
| 18691 | ;; |
| 18692 | esac |
| 18693 | fi |
| 18694 | |
| 18695 | case $host_os in |
| 18696 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 18697 | *djgpp*) |
| 18698 | lt_prog_compiler_pic_CXX= |
| 18699 | ;; |
| 18700 | *) |
| 18701 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 18702 | ;; |
| 18703 | esac |
| 18704 | |
| 18705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 18706 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 18707 | if test ${lt_cv_prog_compiler_pic_CXX+y} |
| 18708 | then : |
| 18709 | printf %s "(cached) " >&6 |
| 18710 | else case e in #( |
| 18711 | e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; |
| 18712 | esac |
| 18713 | fi |
| 18714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 18715 | printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 18716 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 18717 | |
| 18718 | # |
| 18719 | # Check to make sure the PIC flag actually works. |
| 18720 | # |
| 18721 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 18722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 18723 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 18724 | if test ${lt_cv_prog_compiler_pic_works_CXX+y} |
| 18725 | then : |
| 18726 | printf %s "(cached) " >&6 |
| 18727 | else case e in #( |
| 18728 | e) lt_cv_prog_compiler_pic_works_CXX=no |
| 18729 | ac_outfile=conftest.$ac_objext |
| 18730 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18731 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 18732 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18733 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18734 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18735 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18736 | # The option is referenced via a variable to avoid confusing sed. |
| 18737 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18738 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18739 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18740 | -e 's:$: $lt_compiler_flag:'` |
| 18741 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 18742 | (eval "$lt_compile" 2>conftest.err) |
| 18743 | ac_status=$? |
| 18744 | cat conftest.err >&5 |
| 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18746 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 18747 | # The compiler can only warn and ignore the option if not recognized |
| 18748 | # So say no if there are warnings other than the usual output. |
| 18749 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 18750 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18751 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 18752 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 18753 | fi |
| 18754 | fi |
| 18755 | $RM conftest* |
| 18756 | ;; |
| 18757 | esac |
| 18758 | fi |
| 18759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 18760 | printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 18761 | |
| 18762 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
| 18763 | case $lt_prog_compiler_pic_CXX in |
| 18764 | "" | " "*) ;; |
| 18765 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 18766 | esac |
| 18767 | else |
| 18768 | lt_prog_compiler_pic_CXX= |
| 18769 | lt_prog_compiler_can_build_shared_CXX=no |
| 18770 | fi |
| 18771 | |
| 18772 | fi |
| 18773 | |
| 18774 | |
| 18775 | |
| 18776 | |
| 18777 | |
| 18778 | # |
| 18779 | # Check to make sure the static flag actually works. |
| 18780 | # |
| 18781 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 18782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 18783 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 18784 | if test ${lt_cv_prog_compiler_static_works_CXX+y} |
| 18785 | then : |
| 18786 | printf %s "(cached) " >&6 |
| 18787 | else case e in #( |
| 18788 | e) lt_cv_prog_compiler_static_works_CXX=no |
| 18789 | save_LDFLAGS=$LDFLAGS |
| 18790 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 18791 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 18792 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 18793 | # The linker can only warn and ignore the option if not recognized |
| 18794 | # So say no if there are warnings |
| 18795 | if test -s conftest.err; then |
| 18796 | # Append any errors to the config.log. |
| 18797 | cat conftest.err 1>&5 |
| 18798 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 18799 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18800 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 18801 | lt_cv_prog_compiler_static_works_CXX=yes |
| 18802 | fi |
| 18803 | else |
| 18804 | lt_cv_prog_compiler_static_works_CXX=yes |
| 18805 | fi |
| 18806 | fi |
| 18807 | $RM -r conftest* |
| 18808 | LDFLAGS=$save_LDFLAGS |
| 18809 | ;; |
| 18810 | esac |
| 18811 | fi |
| 18812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 18813 | printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 18814 | |
| 18815 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
| 18816 | : |
| 18817 | else |
| 18818 | lt_prog_compiler_static_CXX= |
| 18819 | fi |
| 18820 | |
| 18821 | |
| 18822 | |
| 18823 | |
| 18824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18825 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 18826 | if test ${lt_cv_prog_compiler_c_o_CXX+y} |
| 18827 | then : |
| 18828 | printf %s "(cached) " >&6 |
| 18829 | else case e in #( |
| 18830 | e) lt_cv_prog_compiler_c_o_CXX=no |
| 18831 | $RM -r conftest 2>/dev/null |
| 18832 | mkdir conftest |
| 18833 | cd conftest |
| 18834 | mkdir out |
| 18835 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18836 | |
| 18837 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18838 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18839 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18840 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18841 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18842 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18843 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18844 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18845 | -e 's:$: $lt_compiler_flag:'` |
| 18846 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 18847 | (eval "$lt_compile" 2>out/conftest.err) |
| 18848 | ac_status=$? |
| 18849 | cat out/conftest.err >&5 |
| 18850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18851 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18852 | then |
| 18853 | # The compiler can only warn and ignore the option if not recognized |
| 18854 | # So say no if there are warnings |
| 18855 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 18856 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18857 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 18858 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18859 | fi |
| 18860 | fi |
| 18861 | chmod u+w . 2>&5 |
| 18862 | $RM conftest* |
| 18863 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18864 | # template instantiation |
| 18865 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 18866 | $RM out/* && rmdir out |
| 18867 | cd .. |
| 18868 | $RM -r conftest |
| 18869 | $RM conftest* |
| 18870 | ;; |
| 18871 | esac |
| 18872 | fi |
| 18873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18874 | printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 18875 | |
| 18876 | |
| 18877 | |
| 18878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18879 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 18880 | if test ${lt_cv_prog_compiler_c_o_CXX+y} |
| 18881 | then : |
| 18882 | printf %s "(cached) " >&6 |
| 18883 | else case e in #( |
| 18884 | e) lt_cv_prog_compiler_c_o_CXX=no |
| 18885 | $RM -r conftest 2>/dev/null |
| 18886 | mkdir conftest |
| 18887 | cd conftest |
| 18888 | mkdir out |
| 18889 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18890 | |
| 18891 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18892 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18893 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18894 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18895 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18896 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18897 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18898 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18899 | -e 's:$: $lt_compiler_flag:'` |
| 18900 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 18901 | (eval "$lt_compile" 2>out/conftest.err) |
| 18902 | ac_status=$? |
| 18903 | cat out/conftest.err >&5 |
| 18904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18905 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18906 | then |
| 18907 | # The compiler can only warn and ignore the option if not recognized |
| 18908 | # So say no if there are warnings |
| 18909 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 18910 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18911 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 18912 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18913 | fi |
| 18914 | fi |
| 18915 | chmod u+w . 2>&5 |
| 18916 | $RM conftest* |
| 18917 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18918 | # template instantiation |
| 18919 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 18920 | $RM out/* && rmdir out |
| 18921 | cd .. |
| 18922 | $RM -r conftest |
| 18923 | $RM conftest* |
| 18924 | ;; |
| 18925 | esac |
| 18926 | fi |
| 18927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18928 | printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 18929 | |
| 18930 | |
| 18931 | |
| 18932 | |
| 18933 | hard_links=nottested |
| 18934 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then |
| 18935 | # do not overwrite the value of need_locks provided by the user |
| 18936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 18937 | printf %s "checking if we can lock with hard links... " >&6; } |
| 18938 | hard_links=yes |
| 18939 | $RM conftest* |
| 18940 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18941 | touch conftest.a |
| 18942 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 18943 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 18945 | printf "%s\n" "$hard_links" >&6; } |
| 18946 | if test no = "$hard_links"; then |
| 18947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 18948 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 18949 | need_locks=warn |
| 18950 | fi |
| 18951 | else |
| 18952 | need_locks=no |
| 18953 | fi |
| 18954 | |
| 18955 | |
| 18956 | |
| 18957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18958 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 18959 | |
| 18960 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 18961 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 18962 | case $host_os in |
| 18963 | aix[4-9]*) |
| 18964 | # If we're using GNU nm, then we don't want the "-C" option. |
| 18965 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 18966 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 18967 | # weak defined symbols like other global defined symbols, whereas |
| 18968 | # GNU nm marks them as "W". |
| 18969 | # While the 'weak' keyword is ignored in the Export File, we need |
| 18970 | # it in the Import File for the 'aix-soname' feature, so we have |
| 18971 | # to replace the "-B" option with "-P" for AIX nm. |
| 18972 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 18973 | 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' |
| 18974 | else |
| 18975 | 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' |
| 18976 | fi |
| 18977 | ;; |
| 18978 | pw32*) |
| 18979 | export_symbols_cmds_CXX=$ltdll_cmds |
| 18980 | ;; |
| 18981 | cygwin* | mingw* | windows* | cegcc*) |
| 18982 | case $cc_basename in |
| 18983 | cl* | icl*) |
| 18984 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 18985 | ;; |
| 18986 | *) |
| 18987 | 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' |
| 18988 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 18989 | ;; |
| 18990 | esac |
| 18991 | ;; |
| 18992 | *) |
| 18993 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 18994 | ;; |
| 18995 | esac |
| 18996 | |
| 18997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 18998 | printf "%s\n" "$ld_shlibs_CXX" >&6; } |
| 18999 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 19000 | |
| 19001 | with_gnu_ld_CXX=$with_gnu_ld |
| 19002 | |
| 19003 | |
| 19004 | |
| 19005 | |
| 19006 | |
| 19007 | |
| 19008 | # |
| 19009 | # Do we need to explicitly link libc? |
| 19010 | # |
| 19011 | case "x$archive_cmds_need_lc_CXX" in |
| 19012 | x|xyes) |
| 19013 | # Assume -lc should be added |
| 19014 | archive_cmds_need_lc_CXX=yes |
| 19015 | |
| 19016 | if test yes,yes = "$GCC,$enable_shared"; then |
| 19017 | case $archive_cmds_CXX in |
| 19018 | *'~'*) |
| 19019 | # FIXME: we may have to deal with multi-command sequences. |
| 19020 | ;; |
| 19021 | '$CC '*) |
| 19022 | # Test whether the compiler implicitly links with -lc since on some |
| 19023 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19024 | # to ld, don't add -lc before -lgcc. |
| 19025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 19026 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 19027 | if test ${lt_cv_archive_cmds_need_lc_CXX+y} |
| 19028 | then : |
| 19029 | printf %s "(cached) " >&6 |
| 19030 | else case e in #( |
| 19031 | e) $RM conftest* |
| 19032 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19033 | |
| 19034 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 19035 | (eval $ac_compile) 2>&5 |
| 19036 | ac_status=$? |
| 19037 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19038 | test $ac_status = 0; } 2>conftest.err; then |
| 19039 | soname=conftest |
| 19040 | lib=conftest |
| 19041 | libobjs=conftest.$ac_objext |
| 19042 | deplibs= |
| 19043 | wl=$lt_prog_compiler_wl_CXX |
| 19044 | pic_flag=$lt_prog_compiler_pic_CXX |
| 19045 | compiler_flags=-v |
| 19046 | linker_flags=-v |
| 19047 | verstring= |
| 19048 | output_objdir=. |
| 19049 | libname=conftest |
| 19050 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19051 | allow_undefined_flag_CXX= |
| 19052 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 19053 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19054 | ac_status=$? |
| 19055 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19056 | test $ac_status = 0; } |
| 19057 | then |
| 19058 | lt_cv_archive_cmds_need_lc_CXX=no |
| 19059 | else |
| 19060 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 19061 | fi |
| 19062 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19063 | else |
| 19064 | cat conftest.err 1>&5 |
| 19065 | fi |
| 19066 | $RM conftest* |
| 19067 | ;; |
| 19068 | esac |
| 19069 | fi |
| 19070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 19071 | printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 19072 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 19073 | ;; |
| 19074 | esac |
| 19075 | fi |
| 19076 | ;; |
| 19077 | esac |
| 19078 | |
| 19079 | |
| 19080 | |
| 19081 | |
| 19082 | |
| 19083 | |
| 19084 | |
| 19085 | |
| 19086 | |
| 19087 | |
| 19088 | |
| 19089 | |
| 19090 | |
| 19091 | |
| 19092 | |
| 19093 | |
| 19094 | |
| 19095 | |
| 19096 | |
| 19097 | |
| 19098 | |
| 19099 | |
| 19100 | |
| 19101 | |
| 19102 | |
| 19103 | |
| 19104 | |
| 19105 | |
| 19106 | |
| 19107 | |
| 19108 | |
| 19109 | |
| 19110 | |
| 19111 | |
| 19112 | |
| 19113 | |
| 19114 | |
| 19115 | |
| 19116 | |
| 19117 | |
| 19118 | |
| 19119 | |
| 19120 | |
| 19121 | |
| 19122 | |
| 19123 | |
| 19124 | |
| 19125 | |
| 19126 | |
| 19127 | |
| 19128 | |
| 19129 | |
| 19130 | |
| 19131 | |
| 19132 | |
| 19133 | |
| 19134 | |
| 19135 | |
| 19136 | |
| 19137 | |
| 19138 | |
| 19139 | |
| 19140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 19141 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 19142 | |
| 19143 | library_names_spec= |
| 19144 | libname_spec='lib$name' |
| 19145 | soname_spec= |
| 19146 | shrext_cmds=.so |
| 19147 | postinstall_cmds= |
| 19148 | postuninstall_cmds= |
| 19149 | finish_cmds= |
| 19150 | finish_eval= |
| 19151 | shlibpath_var= |
| 19152 | shlibpath_overrides_runpath=unknown |
| 19153 | version_type=none |
| 19154 | dynamic_linker="$host_os ld.so" |
| 19155 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19156 | need_lib_prefix=unknown |
| 19157 | hardcode_into_libs=no |
| 19158 | |
| 19159 | # when you set need_version to no, make sure it does not cause -set_version |
| 19160 | # flags to be left without arguments |
| 19161 | need_version=unknown |
| 19162 | |
| 19163 | |
| 19164 | |
| 19165 | case $host_os in |
| 19166 | aix3*) |
| 19167 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19168 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 19169 | shlibpath_var=LIBPATH |
| 19170 | |
| 19171 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19172 | soname_spec='$libname$release$shared_ext$major' |
| 19173 | ;; |
| 19174 | |
| 19175 | aix[4-9]*) |
| 19176 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19177 | need_lib_prefix=no |
| 19178 | need_version=no |
| 19179 | hardcode_into_libs=yes |
| 19180 | if test ia64 = "$host_cpu"; then |
| 19181 | # AIX 5 supports IA64 |
| 19182 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 19183 | shlibpath_var=LD_LIBRARY_PATH |
| 19184 | else |
| 19185 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19186 | # for dependence libraries. The import file would start with |
| 19187 | # the line '#! .'. This would cause the generated library to |
| 19188 | # depend on '.', always an invalid library. This was fixed in |
| 19189 | # development snapshots of GCC prior to 3.0. |
| 19190 | case $host_os in |
| 19191 | aix4 | aix4.[01] | aix4.[01].*) |
| 19192 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19193 | echo ' yes ' |
| 19194 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 19195 | : |
| 19196 | else |
| 19197 | can_build_shared=no |
| 19198 | fi |
| 19199 | ;; |
| 19200 | esac |
| 19201 | # Using Import Files as archive members, it is possible to support |
| 19202 | # filename-based versioning of shared library archives on AIX. While |
| 19203 | # this would work for both with and without runtime linking, it will |
| 19204 | # prevent static linking of such archives. So we do filename-based |
| 19205 | # shared library versioning with .so extension only, which is used |
| 19206 | # when both runtime linking and shared linking is enabled. |
| 19207 | # Unfortunately, runtime linking may impact performance, so we do |
| 19208 | # not want this to be the default eventually. Also, we use the |
| 19209 | # versioned .so libs for executables only if there is the -brtl |
| 19210 | # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. |
| 19211 | # To allow for filename-based versioning support, we need to create |
| 19212 | # libNAME.so.V as an archive file, containing: |
| 19213 | # *) an Import File, referring to the versioned filename of the |
| 19214 | # archive as well as the shared archive member, telling the |
| 19215 | # bitwidth (32 or 64) of that shared object, and providing the |
| 19216 | # list of exported symbols of that shared object, eventually |
| 19217 | # decorated with the 'weak' keyword |
| 19218 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 19219 | # it being seen by the linker. |
| 19220 | # At run time we better use the real file rather than another symlink, |
| 19221 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 19222 | |
| 19223 | case $with_aix_soname,$aix_use_runtimelinking in |
| 19224 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 19225 | # soname into executable. Probably we can add versioning support to |
| 19226 | # collect2, so additional links can be useful in future. |
| 19227 | aix,yes) # traditional libtool |
| 19228 | dynamic_linker='AIX unversionable lib.so' |
| 19229 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19230 | # instead of lib<name>.a to let people know that these are not |
| 19231 | # typical AIX shared libraries. |
| 19232 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19233 | ;; |
| 19234 | aix,no) # traditional AIX only |
| 19235 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 19236 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19237 | # and later when we are not doing run time linking. |
| 19238 | library_names_spec='$libname$release.a $libname.a' |
| 19239 | soname_spec='$libname$release$shared_ext$major' |
| 19240 | ;; |
| 19241 | svr4,*) # full svr4 only |
| 19242 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 19243 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 19244 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 19245 | shlibpath_overrides_runpath=yes |
| 19246 | ;; |
| 19247 | *,yes) # both, prefer svr4 |
| 19248 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 19249 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 19250 | # unpreferred sharedlib libNAME.a needs extra handling |
| 19251 | 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"' |
| 19252 | 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"' |
| 19253 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 19254 | shlibpath_overrides_runpath=yes |
| 19255 | ;; |
| 19256 | *,no) # both, prefer aix |
| 19257 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 19258 | library_names_spec='$libname$release.a $libname.a' |
| 19259 | soname_spec='$libname$release$shared_ext$major' |
| 19260 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 19261 | 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)' |
| 19262 | 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"' |
| 19263 | ;; |
| 19264 | esac |
| 19265 | shlibpath_var=LIBPATH |
| 19266 | fi |
| 19267 | ;; |
| 19268 | |
| 19269 | amigaos*) |
| 19270 | case $host_cpu in |
| 19271 | powerpc) |
| 19272 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 19273 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 19274 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19275 | ;; |
| 19276 | m68k) |
| 19277 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19278 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 19279 | 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' |
| 19280 | ;; |
| 19281 | esac |
| 19282 | ;; |
| 19283 | |
| 19284 | beos*) |
| 19285 | library_names_spec='$libname$shared_ext' |
| 19286 | dynamic_linker="$host_os ld.so" |
| 19287 | shlibpath_var=LIBRARY_PATH |
| 19288 | ;; |
| 19289 | |
| 19290 | bsdi[45]*) |
| 19291 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19292 | need_version=no |
| 19293 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19294 | soname_spec='$libname$release$shared_ext$major' |
| 19295 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19296 | shlibpath_var=LD_LIBRARY_PATH |
| 19297 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19298 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19299 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19300 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19301 | # libtool to hard-code these into programs |
| 19302 | ;; |
| 19303 | |
| 19304 | cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 19305 | version_type=windows |
| 19306 | shrext_cmds=.dll |
| 19307 | need_version=no |
| 19308 | need_lib_prefix=no |
| 19309 | |
| 19310 | case $GCC,$cc_basename in |
| 19311 | yes,*) |
| 19312 | # gcc |
| 19313 | library_names_spec='$libname.dll.a' |
| 19314 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19315 | # If user builds GCC with multilib enabled, |
| 19316 | # it should just install on $(libdir) |
| 19317 | # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. |
| 19318 | if test xyes = x"$multilib"; then |
| 19319 | postinstall_cmds='base_file=`basename \$file`~ |
| 19320 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 19321 | dldir=$destdir/`dirname \$dlpath`~ |
| 19322 | $install_prog $dir/$dlname $destdir/$dlname~ |
| 19323 | chmod a+x $destdir/$dlname~ |
| 19324 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 19325 | eval '\''$striplib $destdir/$dlname'\'' || exit \$?; |
| 19326 | fi' |
| 19327 | else |
| 19328 | postinstall_cmds='base_file=`basename \$file`~ |
| 19329 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 19330 | dldir=$destdir/`dirname \$dlpath`~ |
| 19331 | test -d \$dldir || mkdir -p \$dldir~ |
| 19332 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19333 | chmod a+x \$dldir/$dlname~ |
| 19334 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 19335 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 19336 | fi' |
| 19337 | fi |
| 19338 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19339 | dlpath=$dir/\$dldll~ |
| 19340 | $RM \$dlpath' |
| 19341 | shlibpath_overrides_runpath=yes |
| 19342 | |
| 19343 | case $host_os in |
| 19344 | cygwin*) |
| 19345 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19346 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 19347 | |
| 19348 | ;; |
| 19349 | mingw* | windows* | cegcc*) |
| 19350 | # MinGW DLLs use traditional 'lib' prefix |
| 19351 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 19352 | ;; |
| 19353 | pw32*) |
| 19354 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 19355 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 19356 | ;; |
| 19357 | esac |
| 19358 | dynamic_linker='Win32 ld.exe' |
| 19359 | ;; |
| 19360 | |
| 19361 | *,cl* | *,icl*) |
| 19362 | # Native MSVC or ICC |
| 19363 | libname_spec='$name' |
| 19364 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 19365 | library_names_spec='$libname.dll.lib' |
| 19366 | |
| 19367 | case $build_os in |
| 19368 | mingw* | windows*) |
| 19369 | sys_lib_search_path_spec= |
| 19370 | lt_save_ifs=$IFS |
| 19371 | IFS=';' |
| 19372 | for lt_path in $LIB |
| 19373 | do |
| 19374 | IFS=$lt_save_ifs |
| 19375 | # Let DOS variable expansion print the short 8.3 style file name. |
| 19376 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 19377 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 19378 | done |
| 19379 | IFS=$lt_save_ifs |
| 19380 | # Convert to MSYS style. |
| 19381 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 19382 | ;; |
| 19383 | cygwin*) |
| 19384 | # Convert to unix form, then to dos form, then back to unix form |
| 19385 | # but this time dos style (no spaces!) so that the unix form looks |
| 19386 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 19387 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 19388 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 19389 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19390 | ;; |
| 19391 | *) |
| 19392 | sys_lib_search_path_spec=$LIB |
| 19393 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 19394 | # It is most probably a Windows format PATH. |
| 19395 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19396 | else |
| 19397 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19398 | fi |
| 19399 | # FIXME: find the short name or the path components, as spaces are |
| 19400 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 19401 | ;; |
| 19402 | esac |
| 19403 | |
| 19404 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19405 | postinstall_cmds='base_file=`basename \$file`~ |
| 19406 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 19407 | dldir=$destdir/`dirname \$dlpath`~ |
| 19408 | test -d \$dldir || mkdir -p \$dldir~ |
| 19409 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 19410 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19411 | dlpath=$dir/\$dldll~ |
| 19412 | $RM \$dlpath' |
| 19413 | shlibpath_overrides_runpath=yes |
| 19414 | dynamic_linker='Win32 link.exe' |
| 19415 | ;; |
| 19416 | |
| 19417 | *) |
| 19418 | # Assume MSVC and ICC wrapper |
| 19419 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 19420 | dynamic_linker='Win32 ld.exe' |
| 19421 | ;; |
| 19422 | esac |
| 19423 | # FIXME: first we should search . and the directory the executable is in |
| 19424 | shlibpath_var=PATH |
| 19425 | ;; |
| 19426 | |
| 19427 | darwin* | rhapsody*) |
| 19428 | dynamic_linker="$host_os dyld" |
| 19429 | version_type=darwin |
| 19430 | need_lib_prefix=no |
| 19431 | need_version=no |
| 19432 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 19433 | soname_spec='$libname$release$major$shared_ext' |
| 19434 | shlibpath_overrides_runpath=yes |
| 19435 | shlibpath_var=DYLD_LIBRARY_PATH |
| 19436 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 19437 | |
| 19438 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19439 | ;; |
| 19440 | |
| 19441 | dgux*) |
| 19442 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19443 | need_lib_prefix=no |
| 19444 | need_version=no |
| 19445 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19446 | soname_spec='$libname$release$shared_ext$major' |
| 19447 | shlibpath_var=LD_LIBRARY_PATH |
| 19448 | ;; |
| 19449 | |
| 19450 | freebsd* | dragonfly* | midnightbsd*) |
| 19451 | # DragonFly does not have aout. When/if they implement a new |
| 19452 | # versioning mechanism, adjust this. |
| 19453 | if test -x /usr/bin/objformat; then |
| 19454 | objformat=`/usr/bin/objformat` |
| 19455 | else |
| 19456 | case $host_os in |
| 19457 | freebsd[23].*) objformat=aout ;; |
| 19458 | *) objformat=elf ;; |
| 19459 | esac |
| 19460 | fi |
| 19461 | version_type=freebsd-$objformat |
| 19462 | case $version_type in |
| 19463 | freebsd-elf*) |
| 19464 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19465 | soname_spec='$libname$release$shared_ext$major' |
| 19466 | need_version=no |
| 19467 | need_lib_prefix=no |
| 19468 | ;; |
| 19469 | freebsd-*) |
| 19470 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 19471 | need_version=yes |
| 19472 | ;; |
| 19473 | esac |
| 19474 | case $host_cpu in |
| 19475 | powerpc64) |
| 19476 | # On FreeBSD bi-arch platforms, a different variable is used for 32-bit |
| 19477 | # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. |
| 19478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19479 | /* end confdefs.h. */ |
| 19480 | int test_pointer_size[sizeof (void *) - 5]; |
| 19481 | |
| 19482 | _ACEOF |
| 19483 | if ac_fn_cxx_try_compile "$LINENO" |
| 19484 | then : |
| 19485 | shlibpath_var=LD_LIBRARY_PATH |
| 19486 | else case e in #( |
| 19487 | e) shlibpath_var=LD_32_LIBRARY_PATH ;; |
| 19488 | esac |
| 19489 | fi |
| 19490 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19491 | ;; |
| 19492 | *) |
| 19493 | shlibpath_var=LD_LIBRARY_PATH |
| 19494 | ;; |
| 19495 | esac |
| 19496 | case $host_os in |
| 19497 | freebsd2.*) |
| 19498 | shlibpath_overrides_runpath=yes |
| 19499 | ;; |
| 19500 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 19501 | shlibpath_overrides_runpath=yes |
| 19502 | hardcode_into_libs=yes |
| 19503 | ;; |
| 19504 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19505 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 19506 | shlibpath_overrides_runpath=no |
| 19507 | hardcode_into_libs=yes |
| 19508 | ;; |
| 19509 | *) # from 4.6 on, and DragonFly |
| 19510 | shlibpath_overrides_runpath=yes |
| 19511 | hardcode_into_libs=yes |
| 19512 | ;; |
| 19513 | esac |
| 19514 | ;; |
| 19515 | |
| 19516 | haiku*) |
| 19517 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19518 | need_lib_prefix=no |
| 19519 | need_version=no |
| 19520 | dynamic_linker="$host_os runtime_loader" |
| 19521 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19522 | soname_spec='$libname$release$shared_ext$major' |
| 19523 | shlibpath_var=LIBRARY_PATH |
| 19524 | shlibpath_overrides_runpath=no |
| 19525 | sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' |
| 19526 | sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' |
| 19527 | hardcode_into_libs=no |
| 19528 | ;; |
| 19529 | |
| 19530 | hpux9* | hpux10* | hpux11*) |
| 19531 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19532 | # link against other versions. |
| 19533 | version_type=sunos |
| 19534 | need_lib_prefix=no |
| 19535 | need_version=no |
| 19536 | case $host_cpu in |
| 19537 | ia64*) |
| 19538 | shrext_cmds='.so' |
| 19539 | hardcode_into_libs=yes |
| 19540 | dynamic_linker="$host_os dld.so" |
| 19541 | shlibpath_var=LD_LIBRARY_PATH |
| 19542 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19543 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19544 | soname_spec='$libname$release$shared_ext$major' |
| 19545 | if test 32 = "$HPUX_IA64_MODE"; then |
| 19546 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19547 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 19548 | else |
| 19549 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19550 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 19551 | fi |
| 19552 | ;; |
| 19553 | hppa*64*) |
| 19554 | shrext_cmds='.sl' |
| 19555 | hardcode_into_libs=yes |
| 19556 | dynamic_linker="$host_os dld.sl" |
| 19557 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19558 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19559 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19560 | soname_spec='$libname$release$shared_ext$major' |
| 19561 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19562 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19563 | ;; |
| 19564 | *) |
| 19565 | shrext_cmds='.sl' |
| 19566 | dynamic_linker="$host_os dld.sl" |
| 19567 | shlibpath_var=SHLIB_PATH |
| 19568 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19569 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19570 | soname_spec='$libname$release$shared_ext$major' |
| 19571 | ;; |
| 19572 | esac |
| 19573 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 19574 | postinstall_cmds='chmod 555 $lib' |
| 19575 | # or fails outright, so override atomically: |
| 19576 | install_override_mode=555 |
| 19577 | ;; |
| 19578 | |
| 19579 | interix[3-9]*) |
| 19580 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19581 | need_lib_prefix=no |
| 19582 | need_version=no |
| 19583 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19584 | soname_spec='$libname$release$shared_ext$major' |
| 19585 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 19586 | shlibpath_var=LD_LIBRARY_PATH |
| 19587 | shlibpath_overrides_runpath=no |
| 19588 | hardcode_into_libs=yes |
| 19589 | ;; |
| 19590 | |
| 19591 | irix5* | irix6* | nonstopux*) |
| 19592 | case $host_os in |
| 19593 | nonstopux*) version_type=nonstopux ;; |
| 19594 | *) |
| 19595 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 19596 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19597 | else |
| 19598 | version_type=irix |
| 19599 | fi ;; |
| 19600 | esac |
| 19601 | need_lib_prefix=no |
| 19602 | need_version=no |
| 19603 | soname_spec='$libname$release$shared_ext$major' |
| 19604 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 19605 | case $host_os in |
| 19606 | irix5* | nonstopux*) |
| 19607 | libsuff= shlibsuff= |
| 19608 | ;; |
| 19609 | *) |
| 19610 | case $LD in # libtool.m4 will add one of these switches to LD |
| 19611 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 19612 | libsuff= shlibsuff= libmagic=32-bit;; |
| 19613 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 19614 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 19615 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 19616 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 19617 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 19618 | esac |
| 19619 | ;; |
| 19620 | esac |
| 19621 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 19622 | shlibpath_overrides_runpath=no |
| 19623 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 19624 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 19625 | hardcode_into_libs=yes |
| 19626 | ;; |
| 19627 | |
| 19628 | # No shared lib support for Linux oldld, aout, or coff. |
| 19629 | linux*oldld* | linux*aout* | linux*coff*) |
| 19630 | dynamic_linker=no |
| 19631 | ;; |
| 19632 | |
| 19633 | linux*android*) |
| 19634 | version_type=none # Android doesn't support versioned libraries. |
| 19635 | need_lib_prefix=no |
| 19636 | need_version=no |
| 19637 | library_names_spec='$libname$release$shared_ext $libname$shared_ext' |
| 19638 | soname_spec='$libname$release$shared_ext' |
| 19639 | finish_cmds= |
| 19640 | shlibpath_var=LD_LIBRARY_PATH |
| 19641 | shlibpath_overrides_runpath=yes |
| 19642 | |
| 19643 | # This implies no fast_install, which is unacceptable. |
| 19644 | # Some rework will be needed to allow for fast_install |
| 19645 | # before this can be enabled. |
| 19646 | hardcode_into_libs=yes |
| 19647 | |
| 19648 | dynamic_linker='Android linker' |
| 19649 | # -rpath works at least for libraries that are not overridden by |
| 19650 | # libraries installed in system locations. |
| 19651 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 19652 | ;; |
| 19653 | |
| 19654 | # This must be glibc/ELF. |
| 19655 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 19656 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19657 | need_lib_prefix=no |
| 19658 | need_version=no |
| 19659 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19660 | soname_spec='$libname$release$shared_ext$major' |
| 19661 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 19662 | shlibpath_var=LD_LIBRARY_PATH |
| 19663 | shlibpath_overrides_runpath=no |
| 19664 | |
| 19665 | # Some binutils ld are patched to set DT_RUNPATH |
| 19666 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 19667 | then : |
| 19668 | printf %s "(cached) " >&6 |
| 19669 | else case e in #( |
| 19670 | e) lt_cv_shlibpath_overrides_runpath=no |
| 19671 | save_LDFLAGS=$LDFLAGS |
| 19672 | save_libdir=$libdir |
| 19673 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 19674 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 19675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19676 | /* end confdefs.h. */ |
| 19677 | |
| 19678 | int |
| 19679 | main (void) |
| 19680 | { |
| 19681 | |
| 19682 | ; |
| 19683 | return 0; |
| 19684 | } |
| 19685 | _ACEOF |
| 19686 | if ac_fn_cxx_try_link "$LINENO" |
| 19687 | then : |
| 19688 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 19689 | then : |
| 19690 | lt_cv_shlibpath_overrides_runpath=yes |
| 19691 | fi |
| 19692 | fi |
| 19693 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19694 | conftest$ac_exeext conftest.$ac_ext |
| 19695 | LDFLAGS=$save_LDFLAGS |
| 19696 | libdir=$save_libdir |
| 19697 | ;; |
| 19698 | esac |
| 19699 | fi |
| 19700 | |
| 19701 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 19702 | |
| 19703 | # This implies no fast_install, which is unacceptable. |
| 19704 | # Some rework will be needed to allow for fast_install |
| 19705 | # before this can be enabled. |
| 19706 | hardcode_into_libs=yes |
| 19707 | |
| 19708 | # Ideally, we could use ldconfig to report *all* directories which are |
| 19709 | # searched for libraries, however this is still not possible. Aside from not |
| 19710 | # being certain /sbin/ldconfig is available, command |
| 19711 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 19712 | # even though it is searched at run-time. Try to do the best guess by |
| 19713 | # appending ld.so.conf contents (and includes) to the search path. |
| 19714 | if test -f /etc/ld.so.conf; then |
| 19715 | 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' ' '` |
| 19716 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 19717 | fi |
| 19718 | |
| 19719 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 19720 | # powerpc, because MkLinux only supported shared libraries with the |
| 19721 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 19722 | # most powerpc-linux boxes support dynamic linking these days and |
| 19723 | # people can always --disable-shared, the test was removed, and we |
| 19724 | # assume the GNU/Linux dynamic linker is in use. |
| 19725 | dynamic_linker='GNU/Linux ld.so' |
| 19726 | ;; |
| 19727 | |
| 19728 | netbsdelf*-gnu) |
| 19729 | version_type=linux |
| 19730 | need_lib_prefix=no |
| 19731 | need_version=no |
| 19732 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19733 | soname_spec='$libname$release$shared_ext$major' |
| 19734 | shlibpath_var=LD_LIBRARY_PATH |
| 19735 | shlibpath_overrides_runpath=no |
| 19736 | hardcode_into_libs=yes |
| 19737 | dynamic_linker='NetBSD ld.elf_so' |
| 19738 | ;; |
| 19739 | |
| 19740 | netbsd*) |
| 19741 | version_type=sunos |
| 19742 | need_lib_prefix=no |
| 19743 | need_version=no |
| 19744 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 19745 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 19746 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19747 | dynamic_linker='NetBSD (a.out) ld.so' |
| 19748 | else |
| 19749 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19750 | soname_spec='$libname$release$shared_ext$major' |
| 19751 | dynamic_linker='NetBSD ld.elf_so' |
| 19752 | fi |
| 19753 | shlibpath_var=LD_LIBRARY_PATH |
| 19754 | shlibpath_overrides_runpath=yes |
| 19755 | hardcode_into_libs=yes |
| 19756 | ;; |
| 19757 | |
| 19758 | *-mlibc) |
| 19759 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19760 | need_lib_prefix=no |
| 19761 | need_version=no |
| 19762 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19763 | soname_spec='$libname$release$shared_ext$major' |
| 19764 | dynamic_linker='mlibc ld.so' |
| 19765 | shlibpath_var=LD_LIBRARY_PATH |
| 19766 | shlibpath_overrides_runpath=no |
| 19767 | hardcode_into_libs=yes |
| 19768 | ;; |
| 19769 | |
| 19770 | newsos6) |
| 19771 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19772 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19773 | shlibpath_var=LD_LIBRARY_PATH |
| 19774 | shlibpath_overrides_runpath=yes |
| 19775 | ;; |
| 19776 | |
| 19777 | *nto* | *qnx*) |
| 19778 | version_type=qnx |
| 19779 | need_lib_prefix=no |
| 19780 | need_version=no |
| 19781 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19782 | soname_spec='$libname$release$shared_ext$major' |
| 19783 | shlibpath_var=LD_LIBRARY_PATH |
| 19784 | shlibpath_overrides_runpath=no |
| 19785 | hardcode_into_libs=yes |
| 19786 | dynamic_linker='ldqnx.so' |
| 19787 | ;; |
| 19788 | |
| 19789 | openbsd*) |
| 19790 | version_type=sunos |
| 19791 | sys_lib_dlsearch_path_spec=/usr/lib |
| 19792 | need_lib_prefix=no |
| 19793 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 19794 | need_version=no |
| 19795 | else |
| 19796 | need_version=yes |
| 19797 | fi |
| 19798 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 19799 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19800 | shlibpath_var=LD_LIBRARY_PATH |
| 19801 | shlibpath_overrides_runpath=yes |
| 19802 | ;; |
| 19803 | |
| 19804 | os2*) |
| 19805 | libname_spec='$name' |
| 19806 | version_type=windows |
| 19807 | shrext_cmds=.dll |
| 19808 | need_version=no |
| 19809 | need_lib_prefix=no |
| 19810 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 19811 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 19812 | v=$($ECHO $release$versuffix | tr -d .-); |
| 19813 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 19814 | $ECHO $n$v`$shared_ext' |
| 19815 | library_names_spec='${libname}_dll.$libext' |
| 19816 | dynamic_linker='OS/2 ld.exe' |
| 19817 | shlibpath_var=BEGINLIBPATH |
| 19818 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19819 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19820 | postinstall_cmds='base_file=`basename \$file`~ |
| 19821 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 19822 | dldir=$destdir/`dirname \$dlpath`~ |
| 19823 | test -d \$dldir || mkdir -p \$dldir~ |
| 19824 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19825 | chmod a+x \$dldir/$dlname~ |
| 19826 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 19827 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 19828 | fi' |
| 19829 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 19830 | dlpath=$dir/\$dldll~ |
| 19831 | $RM \$dlpath' |
| 19832 | ;; |
| 19833 | |
| 19834 | osf3* | osf4* | osf5*) |
| 19835 | version_type=osf |
| 19836 | need_lib_prefix=no |
| 19837 | need_version=no |
| 19838 | soname_spec='$libname$release$shared_ext$major' |
| 19839 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19840 | shlibpath_var=LD_LIBRARY_PATH |
| 19841 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 19842 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19843 | ;; |
| 19844 | |
| 19845 | rdos*) |
| 19846 | dynamic_linker=no |
| 19847 | ;; |
| 19848 | |
| 19849 | serenity*) |
| 19850 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19851 | need_lib_prefix=no |
| 19852 | need_version=no |
| 19853 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19854 | soname_spec='$libname$release$shared_ext$major' |
| 19855 | shlibpath_var=LD_LIBRARY_PATH |
| 19856 | shlibpath_overrides_runpath=no |
| 19857 | dynamic_linker='SerenityOS LibELF' |
| 19858 | ;; |
| 19859 | |
| 19860 | solaris*) |
| 19861 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19862 | need_lib_prefix=no |
| 19863 | need_version=no |
| 19864 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19865 | soname_spec='$libname$release$shared_ext$major' |
| 19866 | shlibpath_var=LD_LIBRARY_PATH |
| 19867 | shlibpath_overrides_runpath=yes |
| 19868 | hardcode_into_libs=yes |
| 19869 | # ldd complains unless libraries are executable |
| 19870 | postinstall_cmds='chmod +x $lib' |
| 19871 | ;; |
| 19872 | |
| 19873 | sunos4*) |
| 19874 | version_type=sunos |
| 19875 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 19876 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 19877 | shlibpath_var=LD_LIBRARY_PATH |
| 19878 | shlibpath_overrides_runpath=yes |
| 19879 | if test yes = "$with_gnu_ld"; then |
| 19880 | need_lib_prefix=no |
| 19881 | fi |
| 19882 | need_version=yes |
| 19883 | ;; |
| 19884 | |
| 19885 | sysv4 | sysv4.3*) |
| 19886 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19887 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19888 | soname_spec='$libname$release$shared_ext$major' |
| 19889 | shlibpath_var=LD_LIBRARY_PATH |
| 19890 | case $host_vendor in |
| 19891 | sni) |
| 19892 | shlibpath_overrides_runpath=no |
| 19893 | need_lib_prefix=no |
| 19894 | runpath_var=LD_RUN_PATH |
| 19895 | ;; |
| 19896 | siemens) |
| 19897 | need_lib_prefix=no |
| 19898 | ;; |
| 19899 | motorola) |
| 19900 | need_lib_prefix=no |
| 19901 | need_version=no |
| 19902 | shlibpath_overrides_runpath=no |
| 19903 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 19904 | ;; |
| 19905 | esac |
| 19906 | ;; |
| 19907 | |
| 19908 | sysv4*MP*) |
| 19909 | if test -d /usr/nec; then |
| 19910 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19911 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 19912 | soname_spec='$libname$shared_ext.$major' |
| 19913 | shlibpath_var=LD_LIBRARY_PATH |
| 19914 | fi |
| 19915 | ;; |
| 19916 | |
| 19917 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19918 | version_type=sco |
| 19919 | need_lib_prefix=no |
| 19920 | need_version=no |
| 19921 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 19922 | soname_spec='$libname$release$shared_ext$major' |
| 19923 | shlibpath_var=LD_LIBRARY_PATH |
| 19924 | shlibpath_overrides_runpath=yes |
| 19925 | hardcode_into_libs=yes |
| 19926 | if test yes = "$with_gnu_ld"; then |
| 19927 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 19928 | else |
| 19929 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 19930 | case $host_os in |
| 19931 | sco3.2v5*) |
| 19932 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 19933 | ;; |
| 19934 | esac |
| 19935 | fi |
| 19936 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 19937 | ;; |
| 19938 | |
| 19939 | tpf*) |
| 19940 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 19941 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19942 | need_lib_prefix=no |
| 19943 | need_version=no |
| 19944 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19945 | shlibpath_var=LD_LIBRARY_PATH |
| 19946 | shlibpath_overrides_runpath=no |
| 19947 | hardcode_into_libs=yes |
| 19948 | ;; |
| 19949 | |
| 19950 | uts4*) |
| 19951 | version_type=linux # correct to gnu/linux during the next big refactor |
| 19952 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 19953 | soname_spec='$libname$release$shared_ext$major' |
| 19954 | shlibpath_var=LD_LIBRARY_PATH |
| 19955 | ;; |
| 19956 | |
| 19957 | emscripten*) |
| 19958 | version_type=none |
| 19959 | need_lib_prefix=no |
| 19960 | need_version=no |
| 19961 | library_names_spec='$libname$release$shared_ext' |
| 19962 | soname_spec='$libname$release$shared_ext' |
| 19963 | finish_cmds= |
| 19964 | dynamic_linker="Emscripten linker" |
| 19965 | lt_prog_compiler_wl_CXX= |
| 19966 | lt_prog_compiler_pic_CXX= |
| 19967 | lt_prog_compiler_static_CXX= |
| 19968 | |
| 19969 | |
| 19970 | # C++ specific cases for pic, static, wl, etc. |
| 19971 | if test yes = "$GXX"; then |
| 19972 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19973 | lt_prog_compiler_static_CXX='-static' |
| 19974 | |
| 19975 | case $host_os in |
| 19976 | aix*) |
| 19977 | # All AIX code is PIC. |
| 19978 | if test ia64 = "$host_cpu"; then |
| 19979 | # AIX 5 now supports IA64 processor |
| 19980 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19981 | fi |
| 19982 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19983 | ;; |
| 19984 | |
| 19985 | amigaos*) |
| 19986 | case $host_cpu in |
| 19987 | powerpc) |
| 19988 | # see comment about AmigaOS4 .so support |
| 19989 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19990 | ;; |
| 19991 | m68k) |
| 19992 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19993 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 19994 | # like '-m68040'. |
| 19995 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19996 | ;; |
| 19997 | esac |
| 19998 | ;; |
| 19999 | |
| 20000 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20001 | # PIC is the default for these OSes. |
| 20002 | ;; |
| 20003 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 20004 | # This hack is so that the source file can tell whether it is being |
| 20005 | # built for inclusion in a dll (and should export symbols for example). |
| 20006 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 20007 | # (--disable-auto-import) libraries |
| 20008 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 20009 | case $host_os in |
| 20010 | os2*) |
| 20011 | lt_prog_compiler_static_CXX='$wl-static' |
| 20012 | ;; |
| 20013 | esac |
| 20014 | ;; |
| 20015 | darwin* | rhapsody*) |
| 20016 | # PIC is the default on this platform |
| 20017 | # Common symbols not allowed in MH_DYLIB files |
| 20018 | lt_prog_compiler_pic_CXX='-fno-common' |
| 20019 | ;; |
| 20020 | *djgpp*) |
| 20021 | # DJGPP does not support shared libraries at all |
| 20022 | lt_prog_compiler_pic_CXX= |
| 20023 | ;; |
| 20024 | haiku*) |
| 20025 | # PIC is the default for Haiku. |
| 20026 | # The "-static" flag exists, but is broken. |
| 20027 | lt_prog_compiler_static_CXX= |
| 20028 | ;; |
| 20029 | interix[3-9]*) |
| 20030 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20031 | # Instead, we relocate shared libraries at runtime. |
| 20032 | ;; |
| 20033 | sysv4*MP*) |
| 20034 | if test -d /usr/nec; then |
| 20035 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 20036 | fi |
| 20037 | ;; |
| 20038 | hpux*) |
| 20039 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 20040 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 20041 | # sets the default TLS model and affects inlining. |
| 20042 | case $host_cpu in |
| 20043 | hppa*64*) |
| 20044 | ;; |
| 20045 | *) |
| 20046 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20047 | ;; |
| 20048 | esac |
| 20049 | ;; |
| 20050 | *qnx* | *nto*) |
| 20051 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20052 | # it will coredump. |
| 20053 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 20054 | ;; |
| 20055 | *) |
| 20056 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20057 | ;; |
| 20058 | esac |
| 20059 | else |
| 20060 | case $host_os in |
| 20061 | aix[4-9]*) |
| 20062 | # All AIX code is PIC. |
| 20063 | if test ia64 = "$host_cpu"; then |
| 20064 | # AIX 5 now supports IA64 processor |
| 20065 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20066 | else |
| 20067 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 20068 | fi |
| 20069 | ;; |
| 20070 | chorus*) |
| 20071 | case $cc_basename in |
| 20072 | cxch68*) |
| 20073 | # Green Hills C++ Compiler |
| 20074 | # _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" |
| 20075 | ;; |
| 20076 | esac |
| 20077 | ;; |
| 20078 | mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) |
| 20079 | # This hack is so that the source file can tell whether it is being |
| 20080 | # built for inclusion in a dll (and should export symbols for example). |
| 20081 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 20082 | ;; |
| 20083 | dgux*) |
| 20084 | case $cc_basename in |
| 20085 | ec++*) |
| 20086 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20087 | ;; |
| 20088 | ghcx*) |
| 20089 | # Green Hills C++ Compiler |
| 20090 | lt_prog_compiler_pic_CXX='-pic' |
| 20091 | ;; |
| 20092 | *) |
| 20093 | ;; |
| 20094 | esac |
| 20095 | ;; |
| 20096 | freebsd* | dragonfly* | midnightbsd*) |
| 20097 | # FreeBSD uses GNU C++ |
| 20098 | ;; |
| 20099 | hpux9* | hpux10* | hpux11*) |
| 20100 | case $cc_basename in |
| 20101 | CC*) |
| 20102 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20103 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 20104 | if test ia64 != "$host_cpu"; then |
| 20105 | lt_prog_compiler_pic_CXX='+Z' |
| 20106 | fi |
| 20107 | ;; |
| 20108 | aCC*) |
| 20109 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20110 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 20111 | case $host_cpu in |
| 20112 | hppa*64*|ia64*) |
| 20113 | # +Z the default |
| 20114 | ;; |
| 20115 | *) |
| 20116 | lt_prog_compiler_pic_CXX='+Z' |
| 20117 | ;; |
| 20118 | esac |
| 20119 | ;; |
| 20120 | *) |
| 20121 | ;; |
| 20122 | esac |
| 20123 | ;; |
| 20124 | interix*) |
| 20125 | # This is c89, which is MS Visual C++ (no shared libs) |
| 20126 | # Anyone wants to do a port? |
| 20127 | ;; |
| 20128 | irix5* | irix6* | nonstopux*) |
| 20129 | case $cc_basename in |
| 20130 | CC*) |
| 20131 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20132 | lt_prog_compiler_static_CXX='-non_shared' |
| 20133 | # CC pic flag -KPIC is the default. |
| 20134 | ;; |
| 20135 | *) |
| 20136 | ;; |
| 20137 | esac |
| 20138 | ;; |
| 20139 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 20140 | case $cc_basename in |
| 20141 | KCC*) |
| 20142 | # KAI C++ Compiler |
| 20143 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20144 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20145 | ;; |
| 20146 | ecpc* ) |
| 20147 | # old Intel C++ for x86_64, which still supported -KPIC. |
| 20148 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20149 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20150 | lt_prog_compiler_static_CXX='-static' |
| 20151 | ;; |
| 20152 | icpc* ) |
| 20153 | # Intel C++, used to be incompatible with GCC. |
| 20154 | # ICC 10 doesn't accept -KPIC any more. |
| 20155 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20156 | lt_prog_compiler_pic_CXX='-fPIC' |
| 20157 | lt_prog_compiler_static_CXX='-static' |
| 20158 | ;; |
| 20159 | pgCC* | pgcpp*) |
| 20160 | # Portland Group C++ compiler |
| 20161 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20162 | lt_prog_compiler_pic_CXX='-fpic' |
| 20163 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20164 | ;; |
| 20165 | cxx*) |
| 20166 | # Compaq C++ |
| 20167 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20168 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20169 | lt_prog_compiler_pic_CXX= |
| 20170 | lt_prog_compiler_static_CXX='-non_shared' |
| 20171 | ;; |
| 20172 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 20173 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 20174 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20175 | lt_prog_compiler_pic_CXX='-qpic' |
| 20176 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 20177 | ;; |
| 20178 | *) |
| 20179 | case `$CC -V 2>&1 | $SED 5q` in |
| 20180 | *Sun\ C*) |
| 20181 | # Sun C++ 5.9 |
| 20182 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20183 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20184 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20185 | ;; |
| 20186 | esac |
| 20187 | ;; |
| 20188 | esac |
| 20189 | ;; |
| 20190 | lynxos*) |
| 20191 | ;; |
| 20192 | m88k*) |
| 20193 | ;; |
| 20194 | mvs*) |
| 20195 | case $cc_basename in |
| 20196 | cxx*) |
| 20197 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 20198 | ;; |
| 20199 | *) |
| 20200 | ;; |
| 20201 | esac |
| 20202 | ;; |
| 20203 | netbsd* | netbsdelf*-gnu) |
| 20204 | ;; |
| 20205 | *-mlibc) |
| 20206 | ;; |
| 20207 | *qnx* | *nto*) |
| 20208 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20209 | # it will coredump. |
| 20210 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 20211 | ;; |
| 20212 | osf3* | osf4* | osf5*) |
| 20213 | case $cc_basename in |
| 20214 | KCC*) |
| 20215 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20216 | ;; |
| 20217 | RCC*) |
| 20218 | # Rational C++ 2.4.1 |
| 20219 | lt_prog_compiler_pic_CXX='-pic' |
| 20220 | ;; |
| 20221 | cxx*) |
| 20222 | # Digital/Compaq C++ |
| 20223 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20224 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20225 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20226 | lt_prog_compiler_pic_CXX= |
| 20227 | lt_prog_compiler_static_CXX='-non_shared' |
| 20228 | ;; |
| 20229 | *) |
| 20230 | ;; |
| 20231 | esac |
| 20232 | ;; |
| 20233 | psos*) |
| 20234 | ;; |
| 20235 | serenity*) |
| 20236 | ;; |
| 20237 | solaris*) |
| 20238 | case $cc_basename in |
| 20239 | CC* | sunCC*) |
| 20240 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 20241 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20242 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20243 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20244 | ;; |
| 20245 | gcx*) |
| 20246 | # Green Hills C++ Compiler |
| 20247 | lt_prog_compiler_pic_CXX='-PIC' |
| 20248 | ;; |
| 20249 | *) |
| 20250 | ;; |
| 20251 | esac |
| 20252 | ;; |
| 20253 | sunos4*) |
| 20254 | case $cc_basename in |
| 20255 | CC*) |
| 20256 | # Sun C++ 4.x |
| 20257 | lt_prog_compiler_pic_CXX='-pic' |
| 20258 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20259 | ;; |
| 20260 | lcc*) |
| 20261 | # Lucid |
| 20262 | lt_prog_compiler_pic_CXX='-pic' |
| 20263 | ;; |
| 20264 | *) |
| 20265 | ;; |
| 20266 | esac |
| 20267 | ;; |
| 20268 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20269 | case $cc_basename in |
| 20270 | CC*) |
| 20271 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20272 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20273 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20274 | ;; |
| 20275 | esac |
| 20276 | ;; |
| 20277 | tandem*) |
| 20278 | case $cc_basename in |
| 20279 | NCC*) |
| 20280 | # NonStop-UX NCC 3.20 |
| 20281 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20282 | ;; |
| 20283 | *) |
| 20284 | ;; |
| 20285 | esac |
| 20286 | ;; |
| 20287 | vxworks*) |
| 20288 | ;; |
| 20289 | *) |
| 20290 | lt_prog_compiler_can_build_shared_CXX=no |
| 20291 | ;; |
| 20292 | esac |
| 20293 | fi |
| 20294 | |
| 20295 | case $host_os in |
| 20296 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 20297 | *djgpp*) |
| 20298 | lt_prog_compiler_pic_CXX= |
| 20299 | ;; |
| 20300 | *) |
| 20301 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20302 | ;; |
| 20303 | esac |
| 20304 | |
| 20305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 20306 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 20307 | if test ${lt_cv_prog_compiler_pic_CXX+y} |
| 20308 | then : |
| 20309 | printf %s "(cached) " >&6 |
| 20310 | else case e in #( |
| 20311 | e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; |
| 20312 | esac |
| 20313 | fi |
| 20314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 20315 | printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 20316 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 20317 | |
| 20318 | # |
| 20319 | # Check to make sure the PIC flag actually works. |
| 20320 | # |
| 20321 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 20322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 20323 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 20324 | if test ${lt_cv_prog_compiler_pic_works_CXX+y} |
| 20325 | then : |
| 20326 | printf %s "(cached) " >&6 |
| 20327 | else case e in #( |
| 20328 | e) lt_cv_prog_compiler_pic_works_CXX=no |
| 20329 | ac_outfile=conftest.$ac_objext |
| 20330 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20331 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 20332 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20333 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20334 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20335 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20336 | # The option is referenced via a variable to avoid confusing sed. |
| 20337 | lt_compile=`echo "$ac_compile" | $SED \ |
| 20338 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 20339 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20340 | -e 's:$: $lt_compiler_flag:'` |
| 20341 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 20342 | (eval "$lt_compile" 2>conftest.err) |
| 20343 | ac_status=$? |
| 20344 | cat conftest.err >&5 |
| 20345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20346 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20347 | # The compiler can only warn and ignore the option if not recognized |
| 20348 | # So say no if there are warnings other than the usual output. |
| 20349 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 20350 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20351 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 20352 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 20353 | fi |
| 20354 | fi |
| 20355 | $RM conftest* |
| 20356 | ;; |
| 20357 | esac |
| 20358 | fi |
| 20359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 20360 | printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 20361 | |
| 20362 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
| 20363 | case $lt_prog_compiler_pic_CXX in |
| 20364 | "" | " "*) ;; |
| 20365 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20366 | esac |
| 20367 | else |
| 20368 | lt_prog_compiler_pic_CXX= |
| 20369 | lt_prog_compiler_can_build_shared_CXX=no |
| 20370 | fi |
| 20371 | |
| 20372 | fi |
| 20373 | |
| 20374 | |
| 20375 | |
| 20376 | |
| 20377 | |
| 20378 | # |
| 20379 | # Check to make sure the static flag actually works. |
| 20380 | # |
| 20381 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20383 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 20384 | if test ${lt_cv_prog_compiler_static_works_CXX+y} |
| 20385 | then : |
| 20386 | printf %s "(cached) " >&6 |
| 20387 | else case e in #( |
| 20388 | e) lt_cv_prog_compiler_static_works_CXX=no |
| 20389 | save_LDFLAGS=$LDFLAGS |
| 20390 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20391 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20392 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20393 | # The linker can only warn and ignore the option if not recognized |
| 20394 | # So say no if there are warnings |
| 20395 | if test -s conftest.err; then |
| 20396 | # Append any errors to the config.log. |
| 20397 | cat conftest.err 1>&5 |
| 20398 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 20399 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20400 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20401 | lt_cv_prog_compiler_static_works_CXX=yes |
| 20402 | fi |
| 20403 | else |
| 20404 | lt_cv_prog_compiler_static_works_CXX=yes |
| 20405 | fi |
| 20406 | fi |
| 20407 | $RM -r conftest* |
| 20408 | LDFLAGS=$save_LDFLAGS |
| 20409 | ;; |
| 20410 | esac |
| 20411 | fi |
| 20412 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 20413 | printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 20414 | |
| 20415 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
| 20416 | : |
| 20417 | else |
| 20418 | lt_prog_compiler_static_CXX= |
| 20419 | fi |
| 20420 | |
| 20421 | |
| 20422 | |
| 20423 | ='-fPIC' |
| 20424 | archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' |
| 20425 | 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' |
| 20426 | archive_cmds_need_lc_CXX=no |
| 20427 | no_undefined_flag_CXX= |
| 20428 | ;; |
| 20429 | |
| 20430 | *) |
| 20431 | dynamic_linker=no |
| 20432 | ;; |
| 20433 | esac |
| 20434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 20435 | printf "%s\n" "$dynamic_linker" >&6; } |
| 20436 | test no = "$dynamic_linker" && can_build_shared=no |
| 20437 | |
| 20438 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20439 | if test yes = "$GCC"; then |
| 20440 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20441 | fi |
| 20442 | |
| 20443 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 20444 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 20445 | fi |
| 20446 | |
| 20447 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 20448 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 20449 | fi |
| 20450 | |
| 20451 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 20452 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 20453 | |
| 20454 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 20455 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 20456 | |
| 20457 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 20458 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 20459 | |
| 20460 | |
| 20461 | |
| 20462 | |
| 20463 | |
| 20464 | |
| 20465 | |
| 20466 | |
| 20467 | |
| 20468 | |
| 20469 | |
| 20470 | |
| 20471 | |
| 20472 | |
| 20473 | |
| 20474 | |
| 20475 | |
| 20476 | |
| 20477 | |
| 20478 | |
| 20479 | |
| 20480 | |
| 20481 | |
| 20482 | |
| 20483 | |
| 20484 | |
| 20485 | |
| 20486 | |
| 20487 | |
| 20488 | |
| 20489 | |
| 20490 | |
| 20491 | |
| 20492 | |
| 20493 | |
| 20494 | |
| 20495 | |
| 20496 | |
| 20497 | |
| 20498 | |
| 20499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 20500 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 20501 | hardcode_action_CXX= |
| 20502 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 20503 | test -n "$runpath_var_CXX" || |
| 20504 | test yes = "$hardcode_automatic_CXX"; then |
| 20505 | |
| 20506 | # We can hardcode non-existent directories. |
| 20507 | if test no != "$hardcode_direct_CXX" && |
| 20508 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20509 | # have to relink, otherwise we might link with an installed library |
| 20510 | # when we should be linking with a yet-to-be-installed one |
| 20511 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
| 20512 | test no != "$hardcode_minus_L_CXX"; then |
| 20513 | # Linking always hardcodes the temporary library directory. |
| 20514 | hardcode_action_CXX=relink |
| 20515 | else |
| 20516 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20517 | hardcode_action_CXX=immediate |
| 20518 | fi |
| 20519 | else |
| 20520 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20521 | # directories. |
| 20522 | hardcode_action_CXX=unsupported |
| 20523 | fi |
| 20524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 20525 | printf "%s\n" "$hardcode_action_CXX" >&6; } |
| 20526 | |
| 20527 | if test relink = "$hardcode_action_CXX" || |
| 20528 | test yes = "$inherit_rpath_CXX"; then |
| 20529 | # Fast installation is not supported |
| 20530 | enable_fast_install=no |
| 20531 | elif test yes = "$shlibpath_overrides_runpath" || |
| 20532 | test no = "$enable_shared"; then |
| 20533 | # Fast installation is not necessary |
| 20534 | enable_fast_install=needless |
| 20535 | fi |
| 20536 | |
| 20537 | |
| 20538 | |
| 20539 | |
| 20540 | |
| 20541 | |
| 20542 | |
| 20543 | fi # test -n "$compiler" |
| 20544 | |
| 20545 | CC=$lt_save_CC |
| 20546 | CFLAGS=$lt_save_CFLAGS |
| 20547 | LDCXX=$LD |
| 20548 | LD=$lt_save_LD |
| 20549 | GCC=$lt_save_GCC |
| 20550 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20551 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20552 | lt_cv_path_LD=$lt_save_path_LD |
| 20553 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20554 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20555 | fi # test yes != "$_lt_caught_CXX_error" |
| 20556 | |
| 20557 | ac_ext=c |
| 20558 | ac_cpp='$CPP $CPPFLAGS' |
| 20559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20562 | |
| 20563 | |
| 20564 | # Check whether --enable-cxx-runtime-hack was given. |
| 20565 | if test ${enable_cxx_runtime_hack+y} |
| 20566 | then : |
| 20567 | enableval=$enable_cxx_runtime_hack; |
| 20568 | fi |
| 20569 | |
| 20570 | if test "x$GXX:$enable_cxx_runtime_hack" = xyes:yes; then |
| 20571 | |
| 20572 | ac_ext=cpp |
| 20573 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20577 | |
| 20578 | ac_fn_cxx_check_header_compile "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" |
| 20579 | if test "x$ac_cv_header_iostream" = xyes |
| 20580 | then : |
| 20581 | printf "%s\n" "#define HAVE_IOSTREAM 1" >>confdefs.h |
| 20582 | |
| 20583 | fi |
| 20584 | |
| 20585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statically linking C++ runtime library" >&5 |
| 20586 | printf %s "checking for statically linking C++ runtime library... " >&6; } |
| 20587 | if test ${kpse_cv_cxx_hack+y} |
| 20588 | then : |
| 20589 | printf %s "(cached) " >&6 |
| 20590 | else case e in #( |
| 20591 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20592 | /* end confdefs.h. */ |
| 20593 | #ifdef HAVE_IOSTREAM |
| 20594 | #include <iostream> |
| 20595 | using namespace std; |
| 20596 | #else |
| 20597 | #include <iostream.h> |
| 20598 | #endif |
| 20599 | int |
| 20600 | main (void) |
| 20601 | { |
| 20602 | cout <<"worksok\n"; |
| 20603 | ; |
| 20604 | return 0; |
| 20605 | } |
| 20606 | _ACEOF |
| 20607 | case $host in #( |
| 20608 | *cygwin*) : |
| 20609 | flags_try0='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' ;; #( |
| 20610 | *) : |
| 20611 | flags_try0='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm' |
| 20612 | flags_try1='-lgcc_eh -lgcc -lc -lgcc_eh -lgcc' |
| 20613 | flags_try2='-lgcc -lc -lgcc' ;; |
| 20614 | esac |
| 20615 | kpse_save_LIBS=$LIBS |
| 20616 | cpp_link_hack=false |
| 20617 | for flags in "$flags_try1" "$flags_try2"; do |
| 20618 | LIBS="$kpse_save_LIBS $flags_try0 $flags" |
| 20619 | if ac_fn_cxx_try_link "$LINENO" |
| 20620 | then : |
| 20621 | if test "x$cross_compiling" = xyes |
| 20622 | then : |
| 20623 | cpp_link_hack=true; break |
| 20624 | else case e in #( |
| 20625 | e) case `(./conftest$ac_exeext; exit) 2>/dev/null` in #( |
| 20626 | worksok) : |
| 20627 | cpp_link_hack=true; break ;; #( |
| 20628 | *) : |
| 20629 | ;; |
| 20630 | esac ;; |
| 20631 | esac |
| 20632 | fi |
| 20633 | fi |
| 20634 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20635 | conftest$ac_exeext |
| 20636 | done |
| 20637 | LIBS=$kpse_save_LIBS |
| 20638 | if $cpp_link_hack; then |
| 20639 | kpse_cv_cxx_hack=ok |
| 20640 | kpse_cv_cxx_flags="$flags_try0 $flags" |
| 20641 | else |
| 20642 | kpse_cv_cxx_hack="not supported" |
| 20643 | fi ;; |
| 20644 | esac |
| 20645 | fi |
| 20646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_cxx_hack" >&5 |
| 20647 | printf "%s\n" "$kpse_cv_cxx_hack" >&6; } |
| 20648 | if test "x$kpse_cv_cxx_hack" = xok; then |
| 20649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using $kpse_cv_cxx_flags" >&5 |
| 20650 | printf "%s\n" "$as_me: using $kpse_cv_cxx_flags" >&6;} |
| 20651 | fi |
| 20652 | ac_ext=c |
| 20653 | ac_cpp='$CPP $CPPFLAGS' |
| 20654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20657 | |
| 20658 | |
| 20659 | fi |
| 20660 | if test "x$kpse_cv_cxx_hack" = xok; then |
| 20661 | CXXLD='$(top_builddir)/CXXLD.sh' |
| 20662 | cxxld_sh="#! ${CONFIG_SHELL-/bin/sh} |
| 20663 | # CXXLD.sh. Generated by configure. |
| 20664 | set -- $CXX \"\$@\" $kpse_cv_cxx_flags |
| 20665 | echo \"\$0:\" \"\$@\" |
| 20666 | exec \"\$@\"" |
| 20667 | ac_config_commands="$ac_config_commands CXXLD.sh" |
| 20668 | |
| 20669 | else |
| 20670 | CXXLD='$(CXX)' |
| 20671 | fi |
| 20672 | |
| 20673 | |
| 20674 | |
| 20675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 |
| 20676 | printf %s "checking for library containing pow... " >&6; } |
| 20677 | if test ${ac_cv_search_pow+y} |
| 20678 | then : |
| 20679 | printf %s "(cached) " >&6 |
| 20680 | else case e in #( |
| 20681 | e) ac_func_search_save_LIBS=$LIBS |
| 20682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20683 | /* end confdefs.h. */ |
| 20684 | |
| 20685 | /* Override any GCC internal prototype to avoid an error. |
| 20686 | Use char because int might match the return type of a GCC |
| 20687 | builtin and then its argument prototype would still apply. |
| 20688 | The 'extern "C"' is for builds by C++ compilers; |
| 20689 | although this is not generally supported in C code supporting it here |
| 20690 | has little cost and some practical benefit (sr 110532). */ |
| 20691 | #ifdef __cplusplus |
| 20692 | extern "C" |
| 20693 | #endif |
| 20694 | char pow (void); |
| 20695 | int |
| 20696 | main (void) |
| 20697 | { |
| 20698 | return pow (); |
| 20699 | ; |
| 20700 | return 0; |
| 20701 | } |
| 20702 | _ACEOF |
| 20703 | for ac_lib in '' m |
| 20704 | do |
| 20705 | if test -z "$ac_lib"; then |
| 20706 | ac_res="none required" |
| 20707 | else |
| 20708 | ac_res=-l$ac_lib |
| 20709 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 20710 | fi |
| 20711 | if ac_fn_c_try_link "$LINENO" |
| 20712 | then : |
| 20713 | ac_cv_search_pow=$ac_res |
| 20714 | fi |
| 20715 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20716 | conftest$ac_exeext |
| 20717 | if test ${ac_cv_search_pow+y} |
| 20718 | then : |
| 20719 | break |
| 20720 | fi |
| 20721 | done |
| 20722 | if test ${ac_cv_search_pow+y} |
| 20723 | then : |
| 20724 | |
| 20725 | else case e in #( |
| 20726 | e) ac_cv_search_pow=no ;; |
| 20727 | esac |
| 20728 | fi |
| 20729 | rm conftest.$ac_ext |
| 20730 | LIBS=$ac_func_search_save_LIBS ;; |
| 20731 | esac |
| 20732 | fi |
| 20733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 |
| 20734 | printf "%s\n" "$ac_cv_search_pow" >&6; } |
| 20735 | ac_res=$ac_cv_search_pow |
| 20736 | if test "$ac_res" != no |
| 20737 | then : |
| 20738 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 20739 | |
| 20740 | fi |
| 20741 | |
| 20742 | |
| 20743 | kpse_save_CPPFLAGS=$CPPFLAGS |
| 20744 | kpse_save_LIBS=$LIBS |
| 20745 | |
| 20746 | ##tldbg _KPSE_INIT: Initialize TL infrastructure. |
| 20747 | kpse_BLD=`(cd "./../../." && pwd)` |
| 20748 | kpse_SRC=`(cd "$srcdir/../../." && pwd)` |
| 20749 | |
| 20750 | echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5 |
| 20751 | : ${CONFIG_LT=./config.lt} |
| 20752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 |
| 20753 | printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;} |
| 20754 | as_write_fail=0 |
| 20755 | cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 |
| 20756 | #! $SHELL |
| 20757 | # Generated by $as_me. |
| 20758 | # Run this file to recreate a libtool stub with the current configuration. |
| 20759 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20760 | export SHELL |
| 20761 | _ASEOF |
| 20762 | cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 |
| 20763 | ## -------------------- ## |
| 20764 | ## M4sh Initialization. ## |
| 20765 | ## -------------------- ## |
| 20766 | |
| 20767 | # Be more Bourne compatible |
| 20768 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20769 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20770 | then : |
| 20771 | emulate sh |
| 20772 | NULLCMD=: |
| 20773 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 20774 | # is contrary to our usage. Disable this feature. |
| 20775 | alias -g '${1+"$@"}'='"$@"' |
| 20776 | setopt NO_GLOB_SUBST |
| 20777 | else case e in #( |
| 20778 | e) case `(set -o) 2>/dev/null` in #( |
| 20779 | *posix*) : |
| 20780 | set -o posix ;; #( |
| 20781 | *) : |
| 20782 | ;; |
| 20783 | esac ;; |
| 20784 | esac |
| 20785 | fi |
| 20786 | |
| 20787 | |
| 20788 | |
| 20789 | # Reset variables that may have inherited troublesome values from |
| 20790 | # the environment. |
| 20791 | |
| 20792 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 20793 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 20794 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 20795 | # Quoting is to prevent editors from complaining about space-tab. |
| 20796 | as_nl=' |
| 20797 | ' |
| 20798 | export as_nl |
| 20799 | IFS=" "" $as_nl" |
| 20800 | |
| 20801 | PS1='$ ' |
| 20802 | PS2='> ' |
| 20803 | PS4='+ ' |
| 20804 | |
| 20805 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 20806 | LC_ALL=C |
| 20807 | export LC_ALL |
| 20808 | LANGUAGE=C |
| 20809 | export LANGUAGE |
| 20810 | |
| 20811 | # We cannot yet rely on "unset" to work, but we need these variables |
| 20812 | # to be unset--not just set to an empty or harmless value--now, to |
| 20813 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 20814 | # also avoids known problems related to "unset" and subshell syntax |
| 20815 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 20816 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 20817 | do eval test \${$as_var+y} \ |
| 20818 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 20819 | done |
| 20820 | |
| 20821 | # Ensure that fds 0, 1, and 2 are open. |
| 20822 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 20823 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 20824 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 20825 | |
| 20826 | # The user is always right. |
| 20827 | if ${PATH_SEPARATOR+false} :; then |
| 20828 | PATH_SEPARATOR=: |
| 20829 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 20830 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 20831 | PATH_SEPARATOR=';' |
| 20832 | } |
| 20833 | fi |
| 20834 | |
| 20835 | |
| 20836 | # Find who we are. Look in the path if we contain no directory separator. |
| 20837 | as_myself= |
| 20838 | case $0 in #(( |
| 20839 | *[\\/]* ) as_myself=$0 ;; |
| 20840 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20841 | for as_dir in $PATH |
| 20842 | do |
| 20843 | IFS=$as_save_IFS |
| 20844 | case $as_dir in #((( |
| 20845 | '') as_dir=./ ;; |
| 20846 | */) ;; |
| 20847 | *) as_dir=$as_dir/ ;; |
| 20848 | esac |
| 20849 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 20850 | done |
| 20851 | IFS=$as_save_IFS |
| 20852 | |
| 20853 | ;; |
| 20854 | esac |
| 20855 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 20856 | # in which case we are not to be found in the path. |
| 20857 | if test "x$as_myself" = x; then |
| 20858 | as_myself=$0 |
| 20859 | fi |
| 20860 | if test ! -f "$as_myself"; then |
| 20861 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20862 | exit 1 |
| 20863 | fi |
| 20864 | |
| 20865 | |
| 20866 | |
| 20867 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 20868 | # ---------------------------------------- |
| 20869 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 20870 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 20871 | # script with STATUS, using 1 if that was 0. |
| 20872 | as_fn_error () |
| 20873 | { |
| 20874 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 20875 | if test "$4"; then |
| 20876 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 20877 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 20878 | fi |
| 20879 | printf "%s\n" "$as_me: error: $2" >&2 |
| 20880 | as_fn_exit $as_status |
| 20881 | } # as_fn_error |
| 20882 | |
| 20883 | |
| 20884 | # as_fn_set_status STATUS |
| 20885 | # ----------------------- |
| 20886 | # Set $? to STATUS, without forking. |
| 20887 | as_fn_set_status () |
| 20888 | { |
| 20889 | return $1 |
| 20890 | } # as_fn_set_status |
| 20891 | |
| 20892 | # as_fn_exit STATUS |
| 20893 | # ----------------- |
| 20894 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 20895 | as_fn_exit () |
| 20896 | { |
| 20897 | set +e |
| 20898 | as_fn_set_status $1 |
| 20899 | exit $1 |
| 20900 | } # as_fn_exit |
| 20901 | |
| 20902 | # as_fn_unset VAR |
| 20903 | # --------------- |
| 20904 | # Portably unset VAR. |
| 20905 | as_fn_unset () |
| 20906 | { |
| 20907 | { eval $1=; unset $1;} |
| 20908 | } |
| 20909 | as_unset=as_fn_unset |
| 20910 | |
| 20911 | # as_fn_append VAR VALUE |
| 20912 | # ---------------------- |
| 20913 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 20914 | # advantage of any shell optimizations that allow amortized linear growth over |
| 20915 | # repeated appends, instead of the typical quadratic growth present in naive |
| 20916 | # implementations. |
| 20917 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 20918 | then : |
| 20919 | eval 'as_fn_append () |
| 20920 | { |
| 20921 | eval $1+=\$2 |
| 20922 | }' |
| 20923 | else case e in #( |
| 20924 | e) as_fn_append () |
| 20925 | { |
| 20926 | eval $1=\$$1\$2 |
| 20927 | } ;; |
| 20928 | esac |
| 20929 | fi # as_fn_append |
| 20930 | |
| 20931 | # as_fn_arith ARG... |
| 20932 | # ------------------ |
| 20933 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 20934 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 20935 | # must be portable across $(()) and expr. |
| 20936 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 20937 | then : |
| 20938 | eval 'as_fn_arith () |
| 20939 | { |
| 20940 | as_val=$(( $* )) |
| 20941 | }' |
| 20942 | else case e in #( |
| 20943 | e) as_fn_arith () |
| 20944 | { |
| 20945 | as_val=`expr "$@" || test $? -eq 1` |
| 20946 | } ;; |
| 20947 | esac |
| 20948 | fi # as_fn_arith |
| 20949 | |
| 20950 | |
| 20951 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20952 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20953 | as_expr=expr |
| 20954 | else |
| 20955 | as_expr=false |
| 20956 | fi |
| 20957 | |
| 20958 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20959 | as_basename=basename |
| 20960 | else |
| 20961 | as_basename=false |
| 20962 | fi |
| 20963 | |
| 20964 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20965 | as_dirname=dirname |
| 20966 | else |
| 20967 | as_dirname=false |
| 20968 | fi |
| 20969 | |
| 20970 | as_me=`$as_basename -- "$0" || |
| 20971 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20972 | X"$0" : 'X\(//\)$' \| \ |
| 20973 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 20974 | printf "%s\n" X/"$0" | |
| 20975 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20976 | s//\1/ |
| 20977 | q |
| 20978 | } |
| 20979 | /^X\/\(\/\/\)$/{ |
| 20980 | s//\1/ |
| 20981 | q |
| 20982 | } |
| 20983 | /^X\/\(\/\).*/{ |
| 20984 | s//\1/ |
| 20985 | q |
| 20986 | } |
| 20987 | s/.*/./; q'` |
| 20988 | |
| 20989 | # Avoid depending upon Character Ranges. |
| 20990 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20991 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20992 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20993 | as_cr_digits='0123456789' |
| 20994 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20995 | |
| 20996 | |
| 20997 | # Determine whether it's possible to make 'echo' print without a newline. |
| 20998 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 20999 | # for compatibility with existing Makefiles. |
| 21000 | ECHO_C= ECHO_N= ECHO_T= |
| 21001 | case `echo -n x` in #((((( |
| 21002 | -n*) |
| 21003 | case `echo 'xy\c'` in |
| 21004 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 21005 | xy) ECHO_C='\c';; |
| 21006 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 21007 | ECHO_T=' ';; |
| 21008 | esac;; |
| 21009 | *) |
| 21010 | ECHO_N='-n';; |
| 21011 | esac |
| 21012 | |
| 21013 | # For backward compatibility with old third-party macros, we provide |
| 21014 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 21015 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 21016 | as_echo='printf %s\n' |
| 21017 | as_echo_n='printf %s' |
| 21018 | |
| 21019 | rm -f conf$$ conf$$.exe conf$$.file |
| 21020 | if test -d conf$$.dir; then |
| 21021 | rm -f conf$$.dir/conf$$.file |
| 21022 | else |
| 21023 | rm -f conf$$.dir |
| 21024 | mkdir conf$$.dir 2>/dev/null |
| 21025 | fi |
| 21026 | if (echo >conf$$.file) 2>/dev/null; then |
| 21027 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21028 | as_ln_s='ln -s' |
| 21029 | # ... but there are two gotchas: |
| 21030 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 21031 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 21032 | # In both cases, we have to default to 'cp -pR'. |
| 21033 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 21034 | as_ln_s='cp -pR' |
| 21035 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21036 | as_ln_s=ln |
| 21037 | else |
| 21038 | as_ln_s='cp -pR' |
| 21039 | fi |
| 21040 | else |
| 21041 | as_ln_s='cp -pR' |
| 21042 | fi |
| 21043 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21044 | rmdir conf$$.dir 2>/dev/null |
| 21045 | |
| 21046 | |
| 21047 | # as_fn_mkdir_p |
| 21048 | # ------------- |
| 21049 | # Create "$as_dir" as a directory, including parents if necessary. |
| 21050 | as_fn_mkdir_p () |
| 21051 | { |
| 21052 | |
| 21053 | case $as_dir in #( |
| 21054 | -*) as_dir=./$as_dir;; |
| 21055 | esac |
| 21056 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 21057 | as_dirs= |
| 21058 | while :; do |
| 21059 | case $as_dir in #( |
| 21060 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 21061 | *) as_qdir=$as_dir;; |
| 21062 | esac |
| 21063 | as_dirs="'$as_qdir' $as_dirs" |
| 21064 | as_dir=`$as_dirname -- "$as_dir" || |
| 21065 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21066 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21067 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21068 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21069 | printf "%s\n" X"$as_dir" | |
| 21070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21071 | s//\1/ |
| 21072 | q |
| 21073 | } |
| 21074 | /^X\(\/\/\)[^/].*/{ |
| 21075 | s//\1/ |
| 21076 | q |
| 21077 | } |
| 21078 | /^X\(\/\/\)$/{ |
| 21079 | s//\1/ |
| 21080 | q |
| 21081 | } |
| 21082 | /^X\(\/\).*/{ |
| 21083 | s//\1/ |
| 21084 | q |
| 21085 | } |
| 21086 | s/.*/./; q'` |
| 21087 | test -d "$as_dir" && break |
| 21088 | done |
| 21089 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21090 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 21091 | |
| 21092 | |
| 21093 | } # as_fn_mkdir_p |
| 21094 | if mkdir -p . 2>/dev/null; then |
| 21095 | as_mkdir_p='mkdir -p "$as_dir"' |
| 21096 | else |
| 21097 | test -d ./-p && rmdir ./-p |
| 21098 | as_mkdir_p=false |
| 21099 | fi |
| 21100 | |
| 21101 | |
| 21102 | # as_fn_executable_p FILE |
| 21103 | # ----------------------- |
| 21104 | # Test if FILE is an executable regular file. |
| 21105 | as_fn_executable_p () |
| 21106 | { |
| 21107 | test -f "$1" && test -x "$1" |
| 21108 | } # as_fn_executable_p |
| 21109 | as_test_x='test -x' |
| 21110 | as_executable_p=as_fn_executable_p |
| 21111 | |
| 21112 | # Sed expression to map a string onto a valid CPP name. |
| 21113 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 21114 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 21115 | |
| 21116 | # Sed expression to map a string onto a valid variable name. |
| 21117 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 21118 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 21119 | |
| 21120 | |
| 21121 | exec 6>&1 |
| 21122 | ## --------------------------------- ## |
| 21123 | ## Main body of "$CONFIG_LT" script. ## |
| 21124 | ## --------------------------------- ## |
| 21125 | _ASEOF |
| 21126 | test $as_write_fail = 0 && chmod +x "$CONFIG_LT" |
| 21127 | |
| 21128 | cat >>"$CONFIG_LT" <<\_LTEOF |
| 21129 | lt_cl_silent=false |
| 21130 | exec 5>>config.log |
| 21131 | { |
| 21132 | echo |
| 21133 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21134 | ## Running $as_me. ## |
| 21135 | _ASBOX |
| 21136 | } >&5 |
| 21137 | |
| 21138 | lt_cl_help="\ |
| 21139 | '$as_me' creates a local libtool stub from the current configuration, |
| 21140 | for use in further configure time tests before the real libtool is |
| 21141 | generated. |
| 21142 | |
| 21143 | Usage: $0 [OPTIONS] |
| 21144 | |
| 21145 | -h, --help print this help, then exit |
| 21146 | -V, --version print version number, then exit |
| 21147 | -q, --quiet do not print progress messages |
| 21148 | -d, --debug don't remove temporary files |
| 21149 | |
| 21150 | Report bugs to <[email protected]>." |
| 21151 | |
| 21152 | lt_cl_version="\ |
| 21153 | extended BibTeX (TeX Live) config.lt 4.03 |
| 21154 | configured by $0, generated by GNU Autoconf 2.72. |
| 21155 | |
| 21156 | Copyright (C) 2024 Free Software Foundation, Inc. |
| 21157 | This config.lt script is free software; the Free Software Foundation |
| 21158 | gives unlimited permission to copy, distribute and modify it." |
| 21159 | |
| 21160 | while test 0 != $# |
| 21161 | do |
| 21162 | case $1 in |
| 21163 | --version | --v* | -V ) |
| 21164 | echo "$lt_cl_version"; exit 0 ;; |
| 21165 | --help | --h* | -h ) |
| 21166 | echo "$lt_cl_help"; exit 0 ;; |
| 21167 | --debug | --d* | -d ) |
| 21168 | debug=: ;; |
| 21169 | --quiet | --q* | --silent | --s* | -q ) |
| 21170 | lt_cl_silent=: ;; |
| 21171 | |
| 21172 | -*) as_fn_error $? "unrecognized option: $1 |
| 21173 | Try '$0 --help' for more information." "$LINENO" 5 ;; |
| 21174 | |
| 21175 | *) as_fn_error $? "unrecognized argument: $1 |
| 21176 | Try '$0 --help' for more information." "$LINENO" 5 ;; |
| 21177 | esac |
| 21178 | shift |
| 21179 | done |
| 21180 | |
| 21181 | if $lt_cl_silent; then |
| 21182 | exec 6>/dev/null |
| 21183 | fi |
| 21184 | _LTEOF |
| 21185 | |
| 21186 | cat >>"$CONFIG_LT" <<_LTEOF |
| 21187 | |
| 21188 | |
| 21189 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 21190 | # if CDPATH is set. |
| 21191 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 21192 | |
| 21193 | sed_quote_subst='$sed_quote_subst' |
| 21194 | double_quote_subst='$double_quote_subst' |
| 21195 | delay_variable_subst='$delay_variable_subst' |
| 21196 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 21197 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 21198 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 21199 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 21200 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 21201 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 21202 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 21203 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 21204 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 21205 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 21206 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 21207 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 21208 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 21209 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 21210 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 21211 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 21212 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 21213 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 21214 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 21215 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 21216 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 21217 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 21218 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 21219 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 21220 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 21221 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 21222 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 21223 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 21224 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 21225 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 21226 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 21227 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 21228 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 21229 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 21230 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 21231 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 21232 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 21233 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 21234 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 21235 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 21236 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 21237 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 21238 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 21239 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 21240 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 21241 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 21242 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 21243 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 21244 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 21245 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21246 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21247 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 21248 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 21249 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 21250 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 21251 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 21252 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 21253 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 21254 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 21255 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 21256 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 21257 | 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"`' |
| 21258 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 21259 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 21260 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 21261 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 21262 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 21263 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 21264 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 21265 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 21266 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 21267 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 21268 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 21269 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 21270 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 21271 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 21272 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 21273 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 21274 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 21275 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 21276 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 21277 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 21278 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 21279 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 21280 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 21281 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 21282 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 21283 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 21284 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 21285 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 21286 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 21287 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 21288 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 21289 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 21290 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 21291 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 21292 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 21293 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 21294 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 21295 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 21296 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 21297 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 21298 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 21299 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 21300 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 21301 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 21302 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 21303 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 21304 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 21305 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 21306 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 21307 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 21308 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 21309 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 21310 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 21311 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 21312 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 21313 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 21314 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 21315 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 21316 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 21317 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 21318 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 21319 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 21320 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21321 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21322 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 21323 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 21324 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 21325 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 21326 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 21327 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 21328 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 21329 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 21330 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 21331 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 21332 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 21333 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 21334 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 21335 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 21336 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 21337 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 21338 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 21339 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 21340 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 21341 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 21342 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21343 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21344 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 21345 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 21346 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 21347 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 21348 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 21349 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 21350 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 21351 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 21352 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 21353 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 21354 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 21355 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 21356 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21357 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21358 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21359 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21360 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21361 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21362 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 21363 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 21364 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 21365 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 21366 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 21367 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 21368 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 21369 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 21370 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 21371 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 21372 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 21373 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 21374 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 21375 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21376 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 21377 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 21378 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21379 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 21380 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 21381 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 21382 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 21383 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 21384 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 21385 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 21386 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 21387 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 21388 | |
| 21389 | LTCC='$LTCC' |
| 21390 | LTCFLAGS='$LTCFLAGS' |
| 21391 | compiler='$compiler_DEFAULT' |
| 21392 | |
| 21393 | # A function that is used when there is no print builtin or printf. |
| 21394 | func_fallback_echo () |
| 21395 | { |
| 21396 | eval 'cat <<_LTECHO_EOF |
| 21397 | \$1 |
| 21398 | _LTECHO_EOF' |
| 21399 | } |
| 21400 | |
| 21401 | # Quote evaled strings. |
| 21402 | for var in AS \ |
| 21403 | DLLTOOL \ |
| 21404 | OBJDUMP \ |
| 21405 | SHELL \ |
| 21406 | ECHO \ |
| 21407 | PATH_SEPARATOR \ |
| 21408 | SED \ |
| 21409 | GREP \ |
| 21410 | EGREP \ |
| 21411 | FGREP \ |
| 21412 | LD \ |
| 21413 | NM \ |
| 21414 | LN_S \ |
| 21415 | lt_SP2NL \ |
| 21416 | lt_NL2SP \ |
| 21417 | reload_flag \ |
| 21418 | FILECMD \ |
| 21419 | deplibs_check_method \ |
| 21420 | file_magic_cmd \ |
| 21421 | file_magic_glob \ |
| 21422 | want_nocaseglob \ |
| 21423 | sharedlib_from_linklib_cmd \ |
| 21424 | AR \ |
| 21425 | archiver_list_spec \ |
| 21426 | STRIP \ |
| 21427 | RANLIB \ |
| 21428 | CC \ |
| 21429 | CFLAGS \ |
| 21430 | compiler \ |
| 21431 | lt_cv_sys_global_symbol_pipe \ |
| 21432 | lt_cv_sys_global_symbol_to_cdecl \ |
| 21433 | lt_cv_sys_global_symbol_to_import \ |
| 21434 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 21435 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 21436 | lt_cv_nm_interface \ |
| 21437 | nm_file_list_spec \ |
| 21438 | lt_cv_truncate_bin \ |
| 21439 | lt_prog_compiler_no_builtin_flag \ |
| 21440 | lt_prog_compiler_pic \ |
| 21441 | lt_prog_compiler_wl \ |
| 21442 | lt_prog_compiler_static \ |
| 21443 | lt_cv_prog_compiler_c_o \ |
| 21444 | need_locks \ |
| 21445 | MANIFEST_TOOL \ |
| 21446 | DSYMUTIL \ |
| 21447 | NMEDIT \ |
| 21448 | LIPO \ |
| 21449 | OTOOL \ |
| 21450 | OTOOL64 \ |
| 21451 | shrext_cmds \ |
| 21452 | export_dynamic_flag_spec \ |
| 21453 | whole_archive_flag_spec \ |
| 21454 | compiler_needs_object \ |
| 21455 | with_gnu_ld \ |
| 21456 | allow_undefined_flag \ |
| 21457 | no_undefined_flag \ |
| 21458 | hardcode_libdir_flag_spec \ |
| 21459 | hardcode_libdir_separator \ |
| 21460 | exclude_expsyms \ |
| 21461 | include_expsyms \ |
| 21462 | file_list_spec \ |
| 21463 | variables_saved_for_relink \ |
| 21464 | libname_spec \ |
| 21465 | library_names_spec \ |
| 21466 | soname_spec \ |
| 21467 | install_override_mode \ |
| 21468 | finish_eval \ |
| 21469 | old_striplib \ |
| 21470 | striplib \ |
| 21471 | compiler_lib_search_dirs \ |
| 21472 | predep_objects \ |
| 21473 | postdep_objects \ |
| 21474 | predeps \ |
| 21475 | postdeps \ |
| 21476 | compiler_lib_search_path \ |
| 21477 | LD_CXX \ |
| 21478 | reload_flag_CXX \ |
| 21479 | compiler_CXX \ |
| 21480 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 21481 | lt_prog_compiler_pic_CXX \ |
| 21482 | lt_prog_compiler_wl_CXX \ |
| 21483 | lt_prog_compiler_static_CXX \ |
| 21484 | lt_cv_prog_compiler_c_o_CXX \ |
| 21485 | export_dynamic_flag_spec_CXX \ |
| 21486 | whole_archive_flag_spec_CXX \ |
| 21487 | compiler_needs_object_CXX \ |
| 21488 | with_gnu_ld_CXX \ |
| 21489 | allow_undefined_flag_CXX \ |
| 21490 | no_undefined_flag_CXX \ |
| 21491 | hardcode_libdir_flag_spec_CXX \ |
| 21492 | hardcode_libdir_separator_CXX \ |
| 21493 | exclude_expsyms_CXX \ |
| 21494 | include_expsyms_CXX \ |
| 21495 | file_list_spec_CXX \ |
| 21496 | compiler_lib_search_dirs_CXX \ |
| 21497 | predep_objects_CXX \ |
| 21498 | postdep_objects_CXX \ |
| 21499 | predeps_CXX \ |
| 21500 | postdeps_CXX \ |
| 21501 | compiler_lib_search_path_CXX; do |
| 21502 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 21503 | *[\\\\\\\`\\"\\\$]*) |
| 21504 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 21505 | ;; |
| 21506 | *) |
| 21507 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 21508 | ;; |
| 21509 | esac |
| 21510 | done |
| 21511 | |
| 21512 | # Double-quote double-evaled strings. |
| 21513 | for var in reload_cmds \ |
| 21514 | old_postinstall_cmds \ |
| 21515 | old_postuninstall_cmds \ |
| 21516 | old_archive_cmds \ |
| 21517 | extract_expsyms_cmds \ |
| 21518 | old_archive_from_new_cmds \ |
| 21519 | old_archive_from_expsyms_cmds \ |
| 21520 | archive_cmds \ |
| 21521 | archive_expsym_cmds \ |
| 21522 | module_cmds \ |
| 21523 | module_expsym_cmds \ |
| 21524 | export_symbols_cmds \ |
| 21525 | prelink_cmds \ |
| 21526 | postlink_cmds \ |
| 21527 | postinstall_cmds \ |
| 21528 | postuninstall_cmds \ |
| 21529 | finish_cmds \ |
| 21530 | sys_lib_search_path_spec \ |
| 21531 | configure_time_dlsearch_path \ |
| 21532 | configure_time_lt_sys_library_path \ |
| 21533 | reload_cmds_CXX \ |
| 21534 | old_archive_cmds_CXX \ |
| 21535 | old_archive_from_new_cmds_CXX \ |
| 21536 | old_archive_from_expsyms_cmds_CXX \ |
| 21537 | archive_cmds_CXX \ |
| 21538 | archive_expsym_cmds_CXX \ |
| 21539 | module_cmds_CXX \ |
| 21540 | module_expsym_cmds_CXX \ |
| 21541 | export_symbols_cmds_CXX \ |
| 21542 | prelink_cmds_CXX \ |
| 21543 | postlink_cmds_CXX; do |
| 21544 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 21545 | *[\\\\\\\`\\"\\\$]*) |
| 21546 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 21547 | ;; |
| 21548 | *) |
| 21549 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 21550 | ;; |
| 21551 | esac |
| 21552 | done |
| 21553 | |
| 21554 | ac_aux_dir='$ac_aux_dir' |
| 21555 | |
| 21556 | # See if we are running on zsh, and set the options that allow our |
| 21557 | # commands through without removal of \ escapes INIT. |
| 21558 | if test -n "\${ZSH_VERSION+set}"; then |
| 21559 | setopt NO_GLOB_SUBST |
| 21560 | fi |
| 21561 | |
| 21562 | |
| 21563 | PACKAGE='$PACKAGE' |
| 21564 | VERSION='$VERSION' |
| 21565 | RM='$RM' |
| 21566 | ofile='$ofile' |
| 21567 | |
| 21568 | |
| 21569 | |
| 21570 | |
| 21571 | |
| 21572 | _LTEOF |
| 21573 | |
| 21574 | cat >>"$CONFIG_LT" <<\_LTEOF |
| 21575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 |
| 21576 | printf "%s\n" "$as_me: creating $ofile" >&6;} |
| 21577 | |
| 21578 | |
| 21579 | # See if we are running on zsh, and set the options that allow our |
| 21580 | # commands through without removal of \ escapes. |
| 21581 | if test -n "${ZSH_VERSION+set}"; then |
| 21582 | setopt NO_GLOB_SUBST |
| 21583 | fi |
| 21584 | |
| 21585 | cfgfile=${ofile}T |
| 21586 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 21587 | $RM "$cfgfile" |
| 21588 | |
| 21589 | cat <<_LT_EOF >> "$cfgfile" |
| 21590 | #! $SHELL |
| 21591 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 21592 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 21593 | |
| 21594 | # Provide generalized library-building support services. |
| 21595 | # Written by Gordon Matzigkeit, 1996 |
| 21596 | |
| 21597 | # Copyright (C) 2024 Free Software Foundation, Inc. |
| 21598 | # This is free software; see the source for copying conditions. There is NO |
| 21599 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 21600 | |
| 21601 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 21602 | # it under the terms of the GNU General Public License as published by |
| 21603 | # the Free Software Foundation; either version 2 of the License, or |
| 21604 | # (at your option) any later version. |
| 21605 | # |
| 21606 | # As a special exception to the GNU General Public License, if you |
| 21607 | # distribute this file as part of a program or library that is built |
| 21608 | # using GNU Libtool, you may include this file under the same |
| 21609 | # distribution terms that you use for the rest of that program. |
| 21610 | # |
| 21611 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 21612 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21613 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21614 | # GNU General Public License for more details. |
| 21615 | # |
| 21616 | # You should have received a copy of the GNU General Public License |
| 21617 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 21618 | |
| 21619 | |
| 21620 | # The names of the tagged configurations supported by this script. |
| 21621 | available_tags='CXX ' |
| 21622 | |
| 21623 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 21624 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 21625 | |
| 21626 | # ### BEGIN LIBTOOL CONFIG |
| 21627 | |
| 21628 | # Which release of libtool.m4 was used? |
| 21629 | macro_version=$macro_version |
| 21630 | macro_revision=$macro_revision |
| 21631 | |
| 21632 | # Assembler program. |
| 21633 | AS=$lt_AS |
| 21634 | |
| 21635 | # DLL creation program. |
| 21636 | DLLTOOL=$lt_DLLTOOL |
| 21637 | |
| 21638 | # Object dumper program. |
| 21639 | OBJDUMP=$lt_OBJDUMP |
| 21640 | |
| 21641 | # Whether or not to build shared libraries. |
| 21642 | build_libtool_libs=$enable_shared |
| 21643 | |
| 21644 | # Whether or not to build static libraries. |
| 21645 | build_old_libs=$enable_static |
| 21646 | |
| 21647 | # What type of objects to build. |
| 21648 | pic_mode=$pic_mode |
| 21649 | |
| 21650 | # Whether or not to optimize for fast installation. |
| 21651 | fast_install=$enable_fast_install |
| 21652 | |
| 21653 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 21654 | shared_archive_member_spec=$shared_archive_member_spec |
| 21655 | |
| 21656 | # Shell to use when invoking shell scripts. |
| 21657 | SHELL=$lt_SHELL |
| 21658 | |
| 21659 | # An echo program that protects backslashes. |
| 21660 | ECHO=$lt_ECHO |
| 21661 | |
| 21662 | # The PATH separator for the build system. |
| 21663 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 21664 | |
| 21665 | # The host system. |
| 21666 | host_alias=$host_alias |
| 21667 | host=$host |
| 21668 | host_os=$host_os |
| 21669 | |
| 21670 | # The build system. |
| 21671 | build_alias=$build_alias |
| 21672 | build=$build |
| 21673 | build_os=$build_os |
| 21674 | |
| 21675 | # A sed program that does not truncate output. |
| 21676 | SED=$lt_SED |
| 21677 | |
| 21678 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 21679 | Xsed="\$SED -e 1s/^X//" |
| 21680 | |
| 21681 | # A grep program that handles long lines. |
| 21682 | GREP=$lt_GREP |
| 21683 | |
| 21684 | # An ERE matcher. |
| 21685 | EGREP=$lt_EGREP |
| 21686 | |
| 21687 | # A literal string matcher. |
| 21688 | FGREP=$lt_FGREP |
| 21689 | |
| 21690 | # A BSD- or MS-compatible name lister. |
| 21691 | NM=$lt_NM |
| 21692 | |
| 21693 | # Whether we need soft or hard links. |
| 21694 | LN_S=$lt_LN_S |
| 21695 | |
| 21696 | # What is the maximum length of a command? |
| 21697 | max_cmd_len=$max_cmd_len |
| 21698 | |
| 21699 | # Object file suffix (normally "o"). |
| 21700 | objext=$ac_objext |
| 21701 | |
| 21702 | # Executable file suffix (normally ""). |
| 21703 | exeext=$exeext |
| 21704 | |
| 21705 | # whether the shell understands "unset". |
| 21706 | lt_unset=$lt_unset |
| 21707 | |
| 21708 | # turn spaces into newlines. |
| 21709 | SP2NL=$lt_lt_SP2NL |
| 21710 | |
| 21711 | # turn newlines into spaces. |
| 21712 | NL2SP=$lt_lt_NL2SP |
| 21713 | |
| 21714 | # convert \$build file names to \$host format. |
| 21715 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 21716 | |
| 21717 | # convert \$build files to toolchain format. |
| 21718 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 21719 | |
| 21720 | # A file(cmd) program that detects file types. |
| 21721 | FILECMD=$lt_FILECMD |
| 21722 | |
| 21723 | # Method to check whether dependent libraries are shared objects. |
| 21724 | deplibs_check_method=$lt_deplibs_check_method |
| 21725 | |
| 21726 | # Command to use when deplibs_check_method = "file_magic". |
| 21727 | file_magic_cmd=$lt_file_magic_cmd |
| 21728 | |
| 21729 | # How to find potential files when deplibs_check_method = "file_magic". |
| 21730 | file_magic_glob=$lt_file_magic_glob |
| 21731 | |
| 21732 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 21733 | want_nocaseglob=$lt_want_nocaseglob |
| 21734 | |
| 21735 | # Command to associate shared and link libraries. |
| 21736 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 21737 | |
| 21738 | # The archiver. |
| 21739 | AR=$lt_AR |
| 21740 | |
| 21741 | # Flags to create an archive (by configure). |
| 21742 | lt_ar_flags=$lt_ar_flags |
| 21743 | |
| 21744 | # Flags to create an archive. |
| 21745 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 21746 | |
| 21747 | # How to feed a file listing to the archiver. |
| 21748 | archiver_list_spec=$lt_archiver_list_spec |
| 21749 | |
| 21750 | # A symbol stripping program. |
| 21751 | STRIP=$lt_STRIP |
| 21752 | |
| 21753 | # Commands used to install an old-style archive. |
| 21754 | RANLIB=$lt_RANLIB |
| 21755 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21756 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21757 | |
| 21758 | # Whether to use a lock for old archive extraction. |
| 21759 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 21760 | |
| 21761 | # A C compiler. |
| 21762 | LTCC=$lt_CC |
| 21763 | |
| 21764 | # LTCC compiler flags. |
| 21765 | LTCFLAGS=$lt_CFLAGS |
| 21766 | |
| 21767 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21768 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21769 | |
| 21770 | # Transform the output of nm in a proper C declaration. |
| 21771 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21772 | |
| 21773 | # Transform the output of nm into a list of symbols to manually relocate. |
| 21774 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 21775 | |
| 21776 | # Transform the output of nm in a C name address pair. |
| 21777 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21778 | |
| 21779 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 21780 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 21781 | |
| 21782 | # The name lister interface. |
| 21783 | nm_interface=$lt_lt_cv_nm_interface |
| 21784 | |
| 21785 | # Specify filename containing input files for \$NM. |
| 21786 | nm_file_list_spec=$lt_nm_file_list_spec |
| 21787 | |
| 21788 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 21789 | lt_sysroot=$lt_sysroot |
| 21790 | |
| 21791 | # Command to truncate a binary pipe. |
| 21792 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 21793 | |
| 21794 | # The name of the directory that contains temporary libtool files. |
| 21795 | objdir=$objdir |
| 21796 | |
| 21797 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 21798 | MAGIC_CMD=$MAGIC_CMD |
| 21799 | |
| 21800 | # Must we lock files when doing compilation? |
| 21801 | need_locks=$lt_need_locks |
| 21802 | |
| 21803 | # Manifest tool. |
| 21804 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 21805 | |
| 21806 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 21807 | DSYMUTIL=$lt_DSYMUTIL |
| 21808 | |
| 21809 | # Tool to change global to local symbols on Mac OS X. |
| 21810 | NMEDIT=$lt_NMEDIT |
| 21811 | |
| 21812 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 21813 | LIPO=$lt_LIPO |
| 21814 | |
| 21815 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 21816 | OTOOL=$lt_OTOOL |
| 21817 | |
| 21818 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 21819 | OTOOL64=$lt_OTOOL64 |
| 21820 | |
| 21821 | # Old archive suffix (normally "a"). |
| 21822 | libext=$libext |
| 21823 | |
| 21824 | # Shared library suffix (normally ".so"). |
| 21825 | shrext_cmds=$lt_shrext_cmds |
| 21826 | |
| 21827 | # The commands to extract the exported symbol list from a shared archive. |
| 21828 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21829 | |
| 21830 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21831 | # restored at link time. |
| 21832 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 21833 | |
| 21834 | # Do we need the "lib" prefix for modules? |
| 21835 | need_lib_prefix=$need_lib_prefix |
| 21836 | |
| 21837 | # Do we need a version for libraries? |
| 21838 | need_version=$need_version |
| 21839 | |
| 21840 | # Library versioning type. |
| 21841 | version_type=$version_type |
| 21842 | |
| 21843 | # Shared library runtime path variable. |
| 21844 | runpath_var=$runpath_var |
| 21845 | |
| 21846 | # Shared library path variable. |
| 21847 | shlibpath_var=$shlibpath_var |
| 21848 | |
| 21849 | # Is shlibpath searched before the hard-coded library search path? |
| 21850 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21851 | |
| 21852 | # Format of library name prefix. |
| 21853 | libname_spec=$lt_libname_spec |
| 21854 | |
| 21855 | # List of archive names. First name is the real one, the rest are links. |
| 21856 | # The last name is the one that the linker finds with -lNAME |
| 21857 | library_names_spec=$lt_library_names_spec |
| 21858 | |
| 21859 | # The coded name of the library, if different from the real name. |
| 21860 | soname_spec=$lt_soname_spec |
| 21861 | |
| 21862 | # Permission mode override for installation of shared libraries. |
| 21863 | install_override_mode=$lt_install_override_mode |
| 21864 | |
| 21865 | # Command to use after installation of a shared archive. |
| 21866 | postinstall_cmds=$lt_postinstall_cmds |
| 21867 | |
| 21868 | # Command to use after uninstallation of a shared archive. |
| 21869 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21870 | |
| 21871 | # Commands used to finish a libtool library installation in a directory. |
| 21872 | finish_cmds=$lt_finish_cmds |
| 21873 | |
| 21874 | # As "finish_cmds", except a single script fragment to be evaled but |
| 21875 | # not shown. |
| 21876 | finish_eval=$lt_finish_eval |
| 21877 | |
| 21878 | # Whether we should hardcode library paths into libraries. |
| 21879 | hardcode_into_libs=$hardcode_into_libs |
| 21880 | |
| 21881 | # Compile-time system search path for libraries. |
| 21882 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21883 | |
| 21884 | # Detected run-time system search path for libraries. |
| 21885 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 21886 | |
| 21887 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 21888 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 21889 | |
| 21890 | # Whether dlopen is supported. |
| 21891 | dlopen_support=$enable_dlopen |
| 21892 | |
| 21893 | # Whether dlopen of programs is supported. |
| 21894 | dlopen_self=$enable_dlopen_self |
| 21895 | |
| 21896 | # Whether dlopen of statically linked programs is supported. |
| 21897 | dlopen_self_static=$enable_dlopen_self_static |
| 21898 | |
| 21899 | # Commands to strip libraries. |
| 21900 | old_striplib=$lt_old_striplib |
| 21901 | striplib=$lt_striplib |
| 21902 | |
| 21903 | |
| 21904 | # The linker used to build libraries. |
| 21905 | LD=$lt_LD |
| 21906 | |
| 21907 | # How to create reloadable object files. |
| 21908 | reload_flag=$lt_reload_flag |
| 21909 | reload_cmds=$lt_reload_cmds |
| 21910 | |
| 21911 | # Commands used to build an old-style archive. |
| 21912 | old_archive_cmds=$lt_old_archive_cmds |
| 21913 | |
| 21914 | # A language specific compiler. |
| 21915 | CC=$lt_compiler |
| 21916 | |
| 21917 | # Is the compiler the GNU compiler? |
| 21918 | with_gcc=$GCC |
| 21919 | |
| 21920 | # Compiler flag to turn off builtin functions. |
| 21921 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 21922 | |
| 21923 | # Additional compiler flags for building library objects. |
| 21924 | pic_flag=$lt_lt_prog_compiler_pic |
| 21925 | |
| 21926 | # How to pass a linker flag through the compiler. |
| 21927 | wl=$lt_lt_prog_compiler_wl |
| 21928 | |
| 21929 | # Compiler flag to prevent dynamic linking. |
| 21930 | link_static_flag=$lt_lt_prog_compiler_static |
| 21931 | |
| 21932 | # Does compiler simultaneously support -c and -o options? |
| 21933 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 21934 | |
| 21935 | # Whether or not to add -lc for building shared libraries. |
| 21936 | build_libtool_need_lc=$archive_cmds_need_lc |
| 21937 | |
| 21938 | # Whether or not to disallow shared libs when runtime libs are static. |
| 21939 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 21940 | |
| 21941 | # Compiler flag to allow reflexive dlopens. |
| 21942 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 21943 | |
| 21944 | # Compiler flag to generate shared objects directly from archives. |
| 21945 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 21946 | |
| 21947 | # Whether the compiler copes with passing no objects directly. |
| 21948 | compiler_needs_object=$lt_compiler_needs_object |
| 21949 | |
| 21950 | # Create an old-style archive from a shared archive. |
| 21951 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 21952 | |
| 21953 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21954 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 21955 | |
| 21956 | # Commands used to build a shared archive. |
| 21957 | archive_cmds=$lt_archive_cmds |
| 21958 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 21959 | |
| 21960 | # Commands used to build a loadable module if different from building |
| 21961 | # a shared archive. |
| 21962 | module_cmds=$lt_module_cmds |
| 21963 | module_expsym_cmds=$lt_module_expsym_cmds |
| 21964 | |
| 21965 | # Whether we are building with GNU ld or not. |
| 21966 | with_gnu_ld=$lt_with_gnu_ld |
| 21967 | |
| 21968 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21969 | allow_undefined_flag=$lt_allow_undefined_flag |
| 21970 | |
| 21971 | # Flag that enforces no undefined symbols. |
| 21972 | no_undefined_flag=$lt_no_undefined_flag |
| 21973 | |
| 21974 | # Flag to hardcode \$libdir into a binary during linking. |
| 21975 | # This must work even if \$libdir does not exist |
| 21976 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 21977 | |
| 21978 | # Whether we need a single "-rpath" flag with a separated argument. |
| 21979 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 21980 | |
| 21981 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 21982 | # DIR into the resulting binary. |
| 21983 | hardcode_direct=$hardcode_direct |
| 21984 | |
| 21985 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 21986 | # DIR into the resulting binary and the resulting library dependency is |
| 21987 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 21988 | # library is relocated. |
| 21989 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 21990 | |
| 21991 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 21992 | # into the resulting binary. |
| 21993 | hardcode_minus_L=$hardcode_minus_L |
| 21994 | |
| 21995 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 21996 | # into the resulting binary. |
| 21997 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 21998 | |
| 21999 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 22000 | # into the library and all subsequent libraries and executables linked |
| 22001 | # against it. |
| 22002 | hardcode_automatic=$hardcode_automatic |
| 22003 | |
| 22004 | # Set to yes if linker adds runtime paths of dependent libraries |
| 22005 | # to runtime path list. |
| 22006 | inherit_rpath=$inherit_rpath |
| 22007 | |
| 22008 | # Whether libtool must link a program against all its dependency libraries. |
| 22009 | link_all_deplibs=$link_all_deplibs |
| 22010 | |
| 22011 | # Set to "yes" if exported symbols are required. |
| 22012 | always_export_symbols=$always_export_symbols |
| 22013 | |
| 22014 | # The commands to list exported symbols. |
| 22015 | export_symbols_cmds=$lt_export_symbols_cmds |
| 22016 | |
| 22017 | # Symbols that should not be listed in the preloaded symbols. |
| 22018 | exclude_expsyms=$lt_exclude_expsyms |
| 22019 | |
| 22020 | # Symbols that must always be exported. |
| 22021 | include_expsyms=$lt_include_expsyms |
| 22022 | |
| 22023 | # Commands necessary for linking programs (against libraries) with templates. |
| 22024 | prelink_cmds=$lt_prelink_cmds |
| 22025 | |
| 22026 | # Commands necessary for finishing linking programs. |
| 22027 | postlink_cmds=$lt_postlink_cmds |
| 22028 | |
| 22029 | # Specify filename containing input files. |
| 22030 | file_list_spec=$lt_file_list_spec |
| 22031 | |
| 22032 | # How to hardcode a shared library path into an executable. |
| 22033 | hardcode_action=$hardcode_action |
| 22034 | |
| 22035 | # The directories searched by this compiler when creating a shared library. |
| 22036 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 22037 | |
| 22038 | # Dependencies to place before and after the objects being linked to |
| 22039 | # create a shared library. |
| 22040 | predep_objects=$lt_predep_objects |
| 22041 | postdep_objects=$lt_postdep_objects |
| 22042 | predeps=$lt_predeps |
| 22043 | postdeps=$lt_postdeps |
| 22044 | |
| 22045 | # The library search path used internally by the compiler when linking |
| 22046 | # a shared library. |
| 22047 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 22048 | |
| 22049 | # ### END LIBTOOL CONFIG |
| 22050 | |
| 22051 | _LT_EOF |
| 22052 | |
| 22053 | cat <<'_LT_EOF' >> "$cfgfile" |
| 22054 | |
| 22055 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 22056 | |
| 22057 | # func_munge_path_list VARIABLE PATH |
| 22058 | # ----------------------------------- |
| 22059 | # VARIABLE is name of variable containing _space_ separated list of |
| 22060 | # directories to be munged by the contents of PATH, which is string |
| 22061 | # having a format: |
| 22062 | # "DIR[:DIR]:" |
| 22063 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 22064 | # ":DIR[:DIR]" |
| 22065 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 22066 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 22067 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 22068 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 22069 | # "DIR[:DIR]" |
| 22070 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 22071 | func_munge_path_list () |
| 22072 | { |
| 22073 | case x$2 in |
| 22074 | x) |
| 22075 | ;; |
| 22076 | *:) |
| 22077 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 22078 | ;; |
| 22079 | x:*) |
| 22080 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 22081 | ;; |
| 22082 | *::*) |
| 22083 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 22084 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 22085 | ;; |
| 22086 | *) |
| 22087 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 22088 | ;; |
| 22089 | esac |
| 22090 | } |
| 22091 | |
| 22092 | |
| 22093 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 22094 | func_cc_basename () |
| 22095 | { |
| 22096 | for cc_temp in $*""; do |
| 22097 | case $cc_temp in |
| 22098 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 22099 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 22100 | \-*) ;; |
| 22101 | *) break;; |
| 22102 | esac |
| 22103 | done |
| 22104 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 22105 | } |
| 22106 | |
| 22107 | |
| 22108 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 22109 | |
| 22110 | _LT_EOF |
| 22111 | |
| 22112 | case $host_os in |
| 22113 | aix3*) |
| 22114 | cat <<\_LT_EOF >> "$cfgfile" |
| 22115 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 22116 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 22117 | # vanish in a puff of smoke. |
| 22118 | if test set != "${COLLECT_NAMES+set}"; then |
| 22119 | COLLECT_NAMES= |
| 22120 | export COLLECT_NAMES |
| 22121 | fi |
| 22122 | _LT_EOF |
| 22123 | ;; |
| 22124 | esac |
| 22125 | |
| 22126 | |
| 22127 | |
| 22128 | ltmain=$ac_aux_dir/ltmain.sh |
| 22129 | |
| 22130 | |
| 22131 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 22132 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 22133 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 22134 | # is reportedly fixed, but why not run on old versions too? |
| 22135 | $SED '$q' "$ltmain" >> "$cfgfile" \ |
| 22136 | || (rm -f "$cfgfile"; exit 1) |
| 22137 | |
| 22138 | mv -f "$cfgfile" "$ofile" || |
| 22139 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 22140 | chmod +x "$ofile" |
| 22141 | |
| 22142 | |
| 22143 | cat <<_LT_EOF >> "$ofile" |
| 22144 | |
| 22145 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 22146 | |
| 22147 | # The linker used to build libraries. |
| 22148 | LD=$lt_LD_CXX |
| 22149 | |
| 22150 | # How to create reloadable object files. |
| 22151 | reload_flag=$lt_reload_flag_CXX |
| 22152 | reload_cmds=$lt_reload_cmds_CXX |
| 22153 | |
| 22154 | # Commands used to build an old-style archive. |
| 22155 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 22156 | |
| 22157 | # A language specific compiler. |
| 22158 | CC=$lt_compiler_CXX |
| 22159 | |
| 22160 | # Is the compiler the GNU compiler? |
| 22161 | with_gcc=$GCC_CXX |
| 22162 | |
| 22163 | # Compiler flag to turn off builtin functions. |
| 22164 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 22165 | |
| 22166 | # Additional compiler flags for building library objects. |
| 22167 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 22168 | |
| 22169 | # How to pass a linker flag through the compiler. |
| 22170 | wl=$lt_lt_prog_compiler_wl_CXX |
| 22171 | |
| 22172 | # Compiler flag to prevent dynamic linking. |
| 22173 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 22174 | |
| 22175 | # Does compiler simultaneously support -c and -o options? |
| 22176 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 22177 | |
| 22178 | # Whether or not to add -lc for building shared libraries. |
| 22179 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 22180 | |
| 22181 | # Whether or not to disallow shared libs when runtime libs are static. |
| 22182 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 22183 | |
| 22184 | # Compiler flag to allow reflexive dlopens. |
| 22185 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 22186 | |
| 22187 | # Compiler flag to generate shared objects directly from archives. |
| 22188 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 22189 | |
| 22190 | # Whether the compiler copes with passing no objects directly. |
| 22191 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 22192 | |
| 22193 | # Create an old-style archive from a shared archive. |
| 22194 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 22195 | |
| 22196 | # Create a temporary old-style archive to link instead of a shared archive. |
| 22197 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 22198 | |
| 22199 | # Commands used to build a shared archive. |
| 22200 | archive_cmds=$lt_archive_cmds_CXX |
| 22201 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 22202 | |
| 22203 | # Commands used to build a loadable module if different from building |
| 22204 | # a shared archive. |
| 22205 | module_cmds=$lt_module_cmds_CXX |
| 22206 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 22207 | |
| 22208 | # Whether we are building with GNU ld or not. |
| 22209 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 22210 | |
| 22211 | # Flag that allows shared libraries with undefined symbols to be built. |
| 22212 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 22213 | |
| 22214 | # Flag that enforces no undefined symbols. |
| 22215 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 22216 | |
| 22217 | # Flag to hardcode \$libdir into a binary during linking. |
| 22218 | # This must work even if \$libdir does not exist |
| 22219 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 22220 | |
| 22221 | # Whether we need a single "-rpath" flag with a separated argument. |
| 22222 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 22223 | |
| 22224 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 22225 | # DIR into the resulting binary. |
| 22226 | hardcode_direct=$hardcode_direct_CXX |
| 22227 | |
| 22228 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 22229 | # DIR into the resulting binary and the resulting library dependency is |
| 22230 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 22231 | # library is relocated. |
| 22232 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 22233 | |
| 22234 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 22235 | # into the resulting binary. |
| 22236 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 22237 | |
| 22238 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 22239 | # into the resulting binary. |
| 22240 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 22241 | |
| 22242 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 22243 | # into the library and all subsequent libraries and executables linked |
| 22244 | # against it. |
| 22245 | hardcode_automatic=$hardcode_automatic_CXX |
| 22246 | |
| 22247 | # Set to yes if linker adds runtime paths of dependent libraries |
| 22248 | # to runtime path list. |
| 22249 | inherit_rpath=$inherit_rpath_CXX |
| 22250 | |
| 22251 | # Whether libtool must link a program against all its dependency libraries. |
| 22252 | link_all_deplibs=$link_all_deplibs_CXX |
| 22253 | |
| 22254 | # Set to "yes" if exported symbols are required. |
| 22255 | always_export_symbols=$always_export_symbols_CXX |
| 22256 | |
| 22257 | # The commands to list exported symbols. |
| 22258 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 22259 | |
| 22260 | # Symbols that should not be listed in the preloaded symbols. |
| 22261 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 22262 | |
| 22263 | # Symbols that must always be exported. |
| 22264 | include_expsyms=$lt_include_expsyms_CXX |
| 22265 | |
| 22266 | # Commands necessary for linking programs (against libraries) with templates. |
| 22267 | prelink_cmds=$lt_prelink_cmds_CXX |
| 22268 | |
| 22269 | # Commands necessary for finishing linking programs. |
| 22270 | postlink_cmds=$lt_postlink_cmds_CXX |
| 22271 | |
| 22272 | # Specify filename containing input files. |
| 22273 | file_list_spec=$lt_file_list_spec_CXX |
| 22274 | |
| 22275 | # How to hardcode a shared library path into an executable. |
| 22276 | hardcode_action=$hardcode_action_CXX |
| 22277 | |
| 22278 | # The directories searched by this compiler when creating a shared library. |
| 22279 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 22280 | |
| 22281 | # Dependencies to place before and after the objects being linked to |
| 22282 | # create a shared library. |
| 22283 | predep_objects=$lt_predep_objects_CXX |
| 22284 | postdep_objects=$lt_postdep_objects_CXX |
| 22285 | predeps=$lt_predeps_CXX |
| 22286 | postdeps=$lt_postdeps_CXX |
| 22287 | |
| 22288 | # The library search path used internally by the compiler when linking |
| 22289 | # a shared library. |
| 22290 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 22291 | |
| 22292 | # ### END LIBTOOL TAG CONFIG: CXX |
| 22293 | _LT_EOF |
| 22294 | |
| 22295 | |
| 22296 | as_fn_exit 0 |
| 22297 | _LTEOF |
| 22298 | chmod +x "$CONFIG_LT" |
| 22299 | |
| 22300 | # configure is writing to config.log, but config.lt does its own redirection, |
| 22301 | # appending to config.log, which fails on DOS, as config.log is still kept |
| 22302 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
| 22303 | # config.log, so it can be properly (re)opened and appended to by config.lt. |
| 22304 | lt_cl_success=: |
| 22305 | test yes = "$silent" && |
| 22306 | lt_config_lt_args="$lt_config_lt_args --quiet" |
| 22307 | exec 5>/dev/null |
| 22308 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
| 22309 | exec 5>>config.log |
| 22310 | $lt_cl_success || as_fn_exit 1 |
| 22311 | |
| 22312 | # |
| 22313 | # |
| 22314 | ac_ext=c |
| 22315 | ac_cpp='$CPP $CPPFLAGS' |
| 22316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22319 | ac_link="./libtool --mode=link --tag=CC $ac_link" |
| 22320 | |
| 22321 | if test -n "$ac_tool_prefix"; then |
| 22322 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 22323 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 22324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22325 | printf %s "checking for $ac_word... " >&6; } |
| 22326 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 22327 | then : |
| 22328 | printf %s "(cached) " >&6 |
| 22329 | else case e in #( |
| 22330 | e) if test -n "$PKG_CONFIG"; then |
| 22331 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 22332 | else |
| 22333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22334 | for as_dir in $PATH |
| 22335 | do |
| 22336 | IFS=$as_save_IFS |
| 22337 | case $as_dir in #((( |
| 22338 | '') as_dir=./ ;; |
| 22339 | */) ;; |
| 22340 | *) as_dir=$as_dir/ ;; |
| 22341 | esac |
| 22342 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22343 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 22344 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 22345 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 22346 | break 2 |
| 22347 | fi |
| 22348 | done |
| 22349 | done |
| 22350 | IFS=$as_save_IFS |
| 22351 | |
| 22352 | fi ;; |
| 22353 | esac |
| 22354 | fi |
| 22355 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 22356 | if test -n "$PKG_CONFIG"; then |
| 22357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 22358 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 22359 | else |
| 22360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22361 | printf "%s\n" "no" >&6; } |
| 22362 | fi |
| 22363 | |
| 22364 | |
| 22365 | fi |
| 22366 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 22367 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 22368 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 22369 | set dummy pkg-config; ac_word=$2 |
| 22370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22371 | printf %s "checking for $ac_word... " >&6; } |
| 22372 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 22373 | then : |
| 22374 | printf %s "(cached) " >&6 |
| 22375 | else case e in #( |
| 22376 | e) if test -n "$ac_ct_PKG_CONFIG"; then |
| 22377 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 22378 | else |
| 22379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22380 | for as_dir in $PATH |
| 22381 | do |
| 22382 | IFS=$as_save_IFS |
| 22383 | case $as_dir in #((( |
| 22384 | '') as_dir=./ ;; |
| 22385 | */) ;; |
| 22386 | *) as_dir=$as_dir/ ;; |
| 22387 | esac |
| 22388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22389 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 22390 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 22391 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 22392 | break 2 |
| 22393 | fi |
| 22394 | done |
| 22395 | done |
| 22396 | IFS=$as_save_IFS |
| 22397 | |
| 22398 | fi ;; |
| 22399 | esac |
| 22400 | fi |
| 22401 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 22402 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 22403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 22404 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
| 22405 | else |
| 22406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22407 | printf "%s\n" "no" >&6; } |
| 22408 | fi |
| 22409 | |
| 22410 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 22411 | PKG_CONFIG="false" |
| 22412 | else |
| 22413 | case $cross_compiling:$ac_tool_warned in |
| 22414 | yes:) |
| 22415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22416 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22417 | ac_tool_warned=yes ;; |
| 22418 | esac |
| 22419 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 22420 | fi |
| 22421 | else |
| 22422 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 22423 | fi |
| 22424 | |
| 22425 | ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags. |
| 22426 | 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 |
| 22427 | ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt. |
| 22428 | |
| 22429 | # Check whether --with-system-kpathsea was given. |
| 22430 | if test ${with_system_kpathsea+y} |
| 22431 | then : |
| 22432 | withval=$with_system_kpathsea; |
| 22433 | fi |
| 22434 | if test "x$with_system_kpathsea" = xyes; then |
| 22435 | if $PKG_CONFIG kpathsea; then |
| 22436 | KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags` |
| 22437 | KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs` |
| 22438 | elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then |
| 22439 | as_fn_error $? "did not find kpathsea" "$LINENO" 5 |
| 22440 | fi |
| 22441 | else |
| 22442 | KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk" |
| 22443 | KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la" |
| 22444 | KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la' |
| 22445 | KPATHSEA_RULE='# Rebuild libkpathsea |
| 22446 | $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h |
| 22447 | cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 22448 | ${top_builddir}/../kpathsea/paths.h: |
| 22449 | cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 22450 | fi |
| 22451 | |
| 22452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5 |
| 22453 | printf %s "checking if libkpathsea supports debugging... " >&6; } |
| 22454 | if test ${kpse_cv_kpse_debug+y} |
| 22455 | then : |
| 22456 | printf %s "(cached) " >&6 |
| 22457 | else case e in #( |
| 22458 | e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" |
| 22459 | eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" |
| 22460 | |
| 22461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22462 | /* end confdefs.h. */ |
| 22463 | #include <kpathsea/kpathsea.h> |
| 22464 | int |
| 22465 | main (void) |
| 22466 | { |
| 22467 | FILE *f = fopen("f", "r") |
| 22468 | ; |
| 22469 | return 0; |
| 22470 | } |
| 22471 | _ACEOF |
| 22472 | if ac_fn_c_try_link "$LINENO" |
| 22473 | then : |
| 22474 | kpse_cv_kpse_debug=yes |
| 22475 | else case e in #( |
| 22476 | e) kpse_cv_kpse_debug=no ;; |
| 22477 | esac |
| 22478 | fi |
| 22479 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22480 | conftest$ac_exeext conftest.$ac_ext |
| 22481 | CPPFLAGS=$kpse_save_CPPFLAGS |
| 22482 | LIBS=$kpse_save_LIBS |
| 22483 | ;; |
| 22484 | esac |
| 22485 | fi |
| 22486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5 |
| 22487 | printf "%s\n" "$kpse_cv_kpse_debug" >&6; } |
| 22488 | if test "x$kpse_cv_kpse_debug" != xyes |
| 22489 | then : |
| 22490 | KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG" |
| 22491 | fi |
| 22492 | |
| 22493 | |
| 22494 | if test "x$enable_bibtexu" != xno; then |
| 22495 | kpse_search_save_LIBS=$LIBS |
| 22496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
| 22497 | printf %s "checking for library containing pthread_create... " >&6; } |
| 22498 | if test ${ac_cv_search_pthread_create+y} |
| 22499 | then : |
| 22500 | printf %s "(cached) " >&6 |
| 22501 | else case e in #( |
| 22502 | e) ac_func_search_save_LIBS=$LIBS |
| 22503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22504 | /* end confdefs.h. */ |
| 22505 | |
| 22506 | /* Override any GCC internal prototype to avoid an error. |
| 22507 | Use char because int might match the return type of a GCC |
| 22508 | builtin and then its argument prototype would still apply. |
| 22509 | The 'extern "C"' is for builds by C++ compilers; |
| 22510 | although this is not generally supported in C code supporting it here |
| 22511 | has little cost and some practical benefit (sr 110532). */ |
| 22512 | #ifdef __cplusplus |
| 22513 | extern "C" |
| 22514 | #endif |
| 22515 | char pthread_create (void); |
| 22516 | int |
| 22517 | main (void) |
| 22518 | { |
| 22519 | return pthread_create (); |
| 22520 | ; |
| 22521 | return 0; |
| 22522 | } |
| 22523 | _ACEOF |
| 22524 | for ac_lib in '' pthread |
| 22525 | do |
| 22526 | if test -z "$ac_lib"; then |
| 22527 | ac_res="none required" |
| 22528 | else |
| 22529 | ac_res=-l$ac_lib |
| 22530 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 22531 | fi |
| 22532 | if ac_fn_c_try_link "$LINENO" |
| 22533 | then : |
| 22534 | ac_cv_search_pthread_create=$ac_res |
| 22535 | fi |
| 22536 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22537 | conftest$ac_exeext |
| 22538 | if test ${ac_cv_search_pthread_create+y} |
| 22539 | then : |
| 22540 | break |
| 22541 | fi |
| 22542 | done |
| 22543 | if test ${ac_cv_search_pthread_create+y} |
| 22544 | then : |
| 22545 | |
| 22546 | else case e in #( |
| 22547 | e) ac_cv_search_pthread_create=no ;; |
| 22548 | esac |
| 22549 | fi |
| 22550 | rm conftest.$ac_ext |
| 22551 | LIBS=$ac_func_search_save_LIBS ;; |
| 22552 | esac |
| 22553 | fi |
| 22554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
| 22555 | printf "%s\n" "$ac_cv_search_pthread_create" >&6; } |
| 22556 | ac_res=$ac_cv_search_pthread_create |
| 22557 | if test "$ac_res" != no |
| 22558 | then : |
| 22559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 22560 | |
| 22561 | fi |
| 22562 | |
| 22563 | LIBS=$kpse_search_save_LIBS |
| 22564 | case $ac_cv_search_pthread_create in #( |
| 22565 | "none required") : |
| 22566 | ;; #( |
| 22567 | no) : |
| 22568 | as_fn_error $? "Sorry, did not find pthread_create()" "$LINENO" 5 ;; #( |
| 22569 | *) : |
| 22570 | PTHREAD_LIB=$ac_cv_search_pthread_create ;; |
| 22571 | esac |
| 22572 | |
| 22573 | echo 'tldbg:KPSE_ICU_FLAGS called: more-icu-libs=icuio icui18n, icu-config-args=--ldflags-icuio.' >&5 |
| 22574 | ##tldbg _KPSE_LIB_FLAGS: Setup icu (-licuxxx) flags. |
| 22575 | 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/libicuio.a BLD/libs/icu/icu-build/lib/libicui18n.a 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 |
| 22576 | ##tldbg _KPSE_LIB_FLAGS_TL: icu (icuxxx) . |
| 22577 | |
| 22578 | # Check whether --with-system-icu was given. |
| 22579 | if test ${with_system_icu+y} |
| 22580 | then : |
| 22581 | withval=$with_system_icu; |
| 22582 | fi |
| 22583 | if test "x$with_system_icu" = xyes; then |
| 22584 | echo 'tldbg:KPSE_ICU_SYSTEM_FLAGS called.' >&5 |
| 22585 | if test -n "$ac_tool_prefix"; then |
| 22586 | # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args. |
| 22587 | set dummy ${ac_tool_prefix}icu-config; ac_word=$2 |
| 22588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22589 | printf %s "checking for $ac_word... " >&6; } |
| 22590 | if test ${ac_cv_prog_ICU_CONFIG+y} |
| 22591 | then : |
| 22592 | printf %s "(cached) " >&6 |
| 22593 | else case e in #( |
| 22594 | e) if test -n "$ICU_CONFIG"; then |
| 22595 | ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test. |
| 22596 | else |
| 22597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22598 | for as_dir in $PATH |
| 22599 | do |
| 22600 | IFS=$as_save_IFS |
| 22601 | case $as_dir in #((( |
| 22602 | '') as_dir=./ ;; |
| 22603 | */) ;; |
| 22604 | *) as_dir=$as_dir/ ;; |
| 22605 | esac |
| 22606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22607 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 22608 | ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config" |
| 22609 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 22610 | break 2 |
| 22611 | fi |
| 22612 | done |
| 22613 | done |
| 22614 | IFS=$as_save_IFS |
| 22615 | |
| 22616 | fi ;; |
| 22617 | esac |
| 22618 | fi |
| 22619 | ICU_CONFIG=$ac_cv_prog_ICU_CONFIG |
| 22620 | if test -n "$ICU_CONFIG"; then |
| 22621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5 |
| 22622 | printf "%s\n" "$ICU_CONFIG" >&6; } |
| 22623 | else |
| 22624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22625 | printf "%s\n" "no" >&6; } |
| 22626 | fi |
| 22627 | |
| 22628 | |
| 22629 | fi |
| 22630 | if test -z "$ac_cv_prog_ICU_CONFIG"; then |
| 22631 | ac_ct_ICU_CONFIG=$ICU_CONFIG |
| 22632 | # Extract the first word of "icu-config", so it can be a program name with args. |
| 22633 | set dummy icu-config; ac_word=$2 |
| 22634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22635 | printf %s "checking for $ac_word... " >&6; } |
| 22636 | if test ${ac_cv_prog_ac_ct_ICU_CONFIG+y} |
| 22637 | then : |
| 22638 | printf %s "(cached) " >&6 |
| 22639 | else case e in #( |
| 22640 | e) if test -n "$ac_ct_ICU_CONFIG"; then |
| 22641 | ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test. |
| 22642 | else |
| 22643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22644 | for as_dir in $PATH |
| 22645 | do |
| 22646 | IFS=$as_save_IFS |
| 22647 | case $as_dir in #((( |
| 22648 | '') as_dir=./ ;; |
| 22649 | */) ;; |
| 22650 | *) as_dir=$as_dir/ ;; |
| 22651 | esac |
| 22652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22653 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 22654 | ac_cv_prog_ac_ct_ICU_CONFIG="icu-config" |
| 22655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 22656 | break 2 |
| 22657 | fi |
| 22658 | done |
| 22659 | done |
| 22660 | IFS=$as_save_IFS |
| 22661 | |
| 22662 | fi ;; |
| 22663 | esac |
| 22664 | fi |
| 22665 | ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG |
| 22666 | if test -n "$ac_ct_ICU_CONFIG"; then |
| 22667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5 |
| 22668 | printf "%s\n" "$ac_ct_ICU_CONFIG" >&6; } |
| 22669 | else |
| 22670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22671 | printf "%s\n" "no" >&6; } |
| 22672 | fi |
| 22673 | |
| 22674 | if test "x$ac_ct_ICU_CONFIG" = x; then |
| 22675 | ICU_CONFIG="false" |
| 22676 | else |
| 22677 | case $cross_compiling:$ac_tool_warned in |
| 22678 | yes:) |
| 22679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22680 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22681 | ac_tool_warned=yes ;; |
| 22682 | esac |
| 22683 | ICU_CONFIG=$ac_ct_ICU_CONFIG |
| 22684 | fi |
| 22685 | else |
| 22686 | ICU_CONFIG="$ac_cv_prog_ICU_CONFIG" |
| 22687 | fi |
| 22688 | if test -n "$ac_tool_prefix"; then |
| 22689 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 22690 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 22691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22692 | printf %s "checking for $ac_word... " >&6; } |
| 22693 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 22694 | then : |
| 22695 | printf %s "(cached) " >&6 |
| 22696 | else case e in #( |
| 22697 | e) if test -n "$PKG_CONFIG"; then |
| 22698 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 22699 | else |
| 22700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22701 | for as_dir in $PATH |
| 22702 | do |
| 22703 | IFS=$as_save_IFS |
| 22704 | case $as_dir in #((( |
| 22705 | '') as_dir=./ ;; |
| 22706 | */) ;; |
| 22707 | *) as_dir=$as_dir/ ;; |
| 22708 | esac |
| 22709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22710 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 22711 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 22712 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 22713 | break 2 |
| 22714 | fi |
| 22715 | done |
| 22716 | done |
| 22717 | IFS=$as_save_IFS |
| 22718 | |
| 22719 | fi ;; |
| 22720 | esac |
| 22721 | fi |
| 22722 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 22723 | if test -n "$PKG_CONFIG"; then |
| 22724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 22725 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 22726 | else |
| 22727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22728 | printf "%s\n" "no" >&6; } |
| 22729 | fi |
| 22730 | |
| 22731 | |
| 22732 | fi |
| 22733 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 22734 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 22735 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 22736 | set dummy pkg-config; ac_word=$2 |
| 22737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22738 | printf %s "checking for $ac_word... " >&6; } |
| 22739 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 22740 | then : |
| 22741 | printf %s "(cached) " >&6 |
| 22742 | else case e in #( |
| 22743 | e) if test -n "$ac_ct_PKG_CONFIG"; then |
| 22744 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 22745 | else |
| 22746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22747 | for as_dir in $PATH |
| 22748 | do |
| 22749 | IFS=$as_save_IFS |
| 22750 | case $as_dir in #((( |
| 22751 | '') as_dir=./ ;; |
| 22752 | */) ;; |
| 22753 | *) as_dir=$as_dir/ ;; |
| 22754 | esac |
| 22755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22756 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 22757 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 22758 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 22759 | break 2 |
| 22760 | fi |
| 22761 | done |
| 22762 | done |
| 22763 | IFS=$as_save_IFS |
| 22764 | |
| 22765 | fi ;; |
| 22766 | esac |
| 22767 | fi |
| 22768 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 22769 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 22770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 22771 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
| 22772 | else |
| 22773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22774 | printf "%s\n" "no" >&6; } |
| 22775 | fi |
| 22776 | |
| 22777 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 22778 | PKG_CONFIG="false" |
| 22779 | else |
| 22780 | case $cross_compiling:$ac_tool_warned in |
| 22781 | yes:) |
| 22782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22783 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22784 | ac_tool_warned=yes ;; |
| 22785 | esac |
| 22786 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 22787 | fi |
| 22788 | else |
| 22789 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 22790 | fi |
| 22791 | if $ICU_CONFIG --version >/dev/null 2>&1; then |
| 22792 | ICU_INCLUDES=`$ICU_CONFIG --cppflags` |
| 22793 | ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-icuio --ldflags-libsonly --ldflags-system` |
| 22794 | elif $PKG_CONFIG --libs icu-uc icu-io >/dev/null 2>&1; then |
| 22795 | ICU_INCLUDES=`$PKG_CONFIG --cflags icu-uc icu-io` |
| 22796 | ICU_LIBS=`$PKG_CONFIG --libs icu-uc icu-io` |
| 22797 | elif test "x$need_icu:$with_system_icu" = xyes:yes; then |
| 22798 | as_fn_error $? "did not find either pkg-config or icu-config; one is required for system icu library support" "$LINENO" 5 |
| 22799 | fi |
| 22800 | else |
| 22801 | ICU_INCLUDES="-DU_STATIC_IMPLEMENTATION -I$kpse_BLD/libs/icu/include" |
| 22802 | ICU_LIBS="$kpse_BLD/libs/icu/icu-build/lib/libicuio.a $kpse_BLD/libs/icu/icu-build/lib/libicui18n.a $kpse_BLD/libs/icu/icu-build/lib/libicuuc.a $kpse_BLD/libs/icu/icu-build/lib/libicudata.a" |
| 22803 | ICU_DEPEND='${top_builddir}/../../libs/icu/icu-build/lib/libicuio.a ${top_builddir}/../../libs/icu/icu-build/lib/libicui18n.a ${top_builddir}/../../libs/icu/icu-build/lib/libicuuc.a ${top_builddir}/../../libs/icu/icu-build/lib/libicudata.a' |
| 22804 | ICU_RULE='# Rebuild libicuxxx |
| 22805 | $(ICU_DEPEND): ${top_builddir}/../../libs/icu/include/unicode/uversion.h |
| 22806 | cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild |
| 22807 | ${top_builddir}/../../libs/icu/include/unicode/uversion.h: |
| 22808 | cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild' |
| 22809 | fi |
| 22810 | # checking for openbsd to add -lpthread for icu. |
| 22811 | case $build_os in |
| 22812 | openbsd*) |
| 22813 | eval ICUXXX_LIBS=\"$ICUXXX_LIBS -lpthread\" |
| 22814 | ;; |
| 22815 | esac |
| 22816 | |
| 22817 | fi |
| 22818 | |
| 22819 | if test "x$enable_bibtex8" != xno; then |
| 22820 | BIBTEX8_TRUE= |
| 22821 | BIBTEX8_FALSE='#' |
| 22822 | else |
| 22823 | BIBTEX8_TRUE='#' |
| 22824 | BIBTEX8_FALSE= |
| 22825 | fi |
| 22826 | |
| 22827 | if test "x$enable_bibtexu" != xno; then |
| 22828 | BIBTEXU_TRUE= |
| 22829 | BIBTEXU_FALSE='#' |
| 22830 | else |
| 22831 | BIBTEXU_TRUE='#' |
| 22832 | BIBTEXU_FALSE= |
| 22833 | fi |
| 22834 | |
| 22835 | |
| 22836 | ac_config_files="$ac_config_files Makefile" |
| 22837 | |
| 22838 | |
| 22839 | cat >confcache <<\_ACEOF |
| 22840 | # This file is a shell script that caches the results of configure |
| 22841 | # tests run on this system so they can be shared between configure |
| 22842 | # scripts and configure runs, see configure's option --config-cache. |
| 22843 | # It is not useful on other systems. If it contains results you don't |
| 22844 | # want to keep, you may remove or edit it. |
| 22845 | # |
| 22846 | # config.status only pays attention to the cache file if you give it |
| 22847 | # the --recheck option to rerun configure. |
| 22848 | # |
| 22849 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 22850 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 22851 | # following values. |
| 22852 | |
| 22853 | _ACEOF |
| 22854 | |
| 22855 | # The following way of writing the cache mishandles newlines in values, |
| 22856 | # but we know of no workaround that is simple, portable, and efficient. |
| 22857 | # So, we kill variables containing newlines. |
| 22858 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22859 | # and sets the high bit in the cache file unless we assign to the vars. |
| 22860 | ( |
| 22861 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 22862 | eval ac_val=\$$ac_var |
| 22863 | case $ac_val in #( |
| 22864 | *${as_nl}*) |
| 22865 | case $ac_var in #( |
| 22866 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 22867 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 22868 | esac |
| 22869 | case $ac_var in #( |
| 22870 | _ | IFS | as_nl) ;; #( |
| 22871 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 22872 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 22873 | esac ;; |
| 22874 | esac |
| 22875 | done |
| 22876 | |
| 22877 | (set) 2>&1 | |
| 22878 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 22879 | *${as_nl}ac_space=\ *) |
| 22880 | # 'set' does not quote correctly, so add quotes: double-quote |
| 22881 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 22882 | sed -n \ |
| 22883 | "s/'/'\\\\''/g; |
| 22884 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 22885 | ;; #( |
| 22886 | *) |
| 22887 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 22888 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 22889 | ;; |
| 22890 | esac | |
| 22891 | sort |
| 22892 | ) | |
| 22893 | sed ' |
| 22894 | /^ac_cv_env_/b end |
| 22895 | t clear |
| 22896 | :clear |
| 22897 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 22898 | t end |
| 22899 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22900 | :end' >>confcache |
| 22901 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 22902 | if test -w "$cache_file"; then |
| 22903 | if test "x$cache_file" != "x/dev/null"; then |
| 22904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 22905 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 22906 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 22907 | cat confcache >"$cache_file" |
| 22908 | else |
| 22909 | case $cache_file in #( |
| 22910 | */* | ?:*) |
| 22911 | mv -f confcache "$cache_file"$$ && |
| 22912 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 22913 | *) |
| 22914 | mv -f confcache "$cache_file" ;; |
| 22915 | esac |
| 22916 | fi |
| 22917 | fi |
| 22918 | else |
| 22919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 22920 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 22921 | fi |
| 22922 | fi |
| 22923 | rm -f confcache |
| 22924 | |
| 22925 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22926 | # Let make expand exec_prefix. |
| 22927 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22928 | |
| 22929 | DEFS=-DHAVE_CONFIG_H |
| 22930 | |
| 22931 | ac_libobjs= |
| 22932 | ac_ltlibobjs= |
| 22933 | U= |
| 22934 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22935 | # 1. Remove the extension, and $U if already installed. |
| 22936 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 22937 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 22938 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 22939 | # will be set to the directory where LIBOBJS objects are built. |
| 22940 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 22941 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 22942 | done |
| 22943 | LIBOBJS=$ac_libobjs |
| 22944 | |
| 22945 | LTLIBOBJS=$ac_ltlibobjs |
| 22946 | |
| 22947 | |
| 22948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 22949 | printf %s "checking that generated files are newer than configure... " >&6; } |
| 22950 | if test -n "$am_sleep_pid"; then |
| 22951 | # Hide warnings about reused PIDs. |
| 22952 | wait $am_sleep_pid 2>/dev/null |
| 22953 | fi |
| 22954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 22955 | printf "%s\n" "done" >&6; } |
| 22956 | case $enable_silent_rules in # ((( |
| 22957 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 22958 | no) AM_DEFAULT_VERBOSITY=1;; |
| 22959 | esac |
| 22960 | if test $am_cv_make_support_nested_variables = yes; then |
| 22961 | AM_V='$(V)' |
| 22962 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 22963 | else |
| 22964 | AM_V=$AM_DEFAULT_VERBOSITY |
| 22965 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 22966 | fi |
| 22967 | |
| 22968 | if test -n "$EXEEXT"; then |
| 22969 | am__EXEEXT_TRUE= |
| 22970 | am__EXEEXT_FALSE='#' |
| 22971 | else |
| 22972 | am__EXEEXT_TRUE='#' |
| 22973 | am__EXEEXT_FALSE= |
| 22974 | fi |
| 22975 | |
| 22976 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 22977 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 22978 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 22979 | fi |
| 22980 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 22981 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 22982 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 22983 | fi |
| 22984 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 22985 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 22986 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 22987 | fi |
| 22988 | # Check whether --enable-year2038 was given. |
| 22989 | if test ${enable_year2038+y} |
| 22990 | then : |
| 22991 | enableval=$enable_year2038; |
| 22992 | fi |
| 22993 | |
| 22994 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 22995 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 22996 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 22997 | fi |
| 22998 | if test -z "${BIBTEX8_TRUE}" && test -z "${BIBTEX8_FALSE}"; then |
| 22999 | as_fn_error $? "conditional \"BIBTEX8\" was never defined. |
| 23000 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23001 | fi |
| 23002 | if test -z "${BIBTEXU_TRUE}" && test -z "${BIBTEXU_FALSE}"; then |
| 23003 | as_fn_error $? "conditional \"BIBTEXU\" was never defined. |
| 23004 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23005 | fi |
| 23006 | |
| 23007 | : "${CONFIG_STATUS=./config.status}" |
| 23008 | ac_write_fail=0 |
| 23009 | ac_clean_files_save=$ac_clean_files |
| 23010 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 23012 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23013 | as_write_fail=0 |
| 23014 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 23015 | #! $SHELL |
| 23016 | # Generated by $as_me. |
| 23017 | # Run this file to recreate the current configuration. |
| 23018 | # Compiler output produced by configure, useful for debugging |
| 23019 | # configure, is in config.log if it exists. |
| 23020 | |
| 23021 | debug=false |
| 23022 | ac_cs_recheck=false |
| 23023 | ac_cs_silent=false |
| 23024 | |
| 23025 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23026 | export SHELL |
| 23027 | _ASEOF |
| 23028 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 23029 | ## -------------------- ## |
| 23030 | ## M4sh Initialization. ## |
| 23031 | ## -------------------- ## |
| 23032 | |
| 23033 | # Be more Bourne compatible |
| 23034 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23035 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 23036 | then : |
| 23037 | emulate sh |
| 23038 | NULLCMD=: |
| 23039 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23040 | # is contrary to our usage. Disable this feature. |
| 23041 | alias -g '${1+"$@"}'='"$@"' |
| 23042 | setopt NO_GLOB_SUBST |
| 23043 | else case e in #( |
| 23044 | e) case `(set -o) 2>/dev/null` in #( |
| 23045 | *posix*) : |
| 23046 | set -o posix ;; #( |
| 23047 | *) : |
| 23048 | ;; |
| 23049 | esac ;; |
| 23050 | esac |
| 23051 | fi |
| 23052 | |
| 23053 | |
| 23054 | |
| 23055 | # Reset variables that may have inherited troublesome values from |
| 23056 | # the environment. |
| 23057 | |
| 23058 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 23059 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 23060 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 23061 | # Quoting is to prevent editors from complaining about space-tab. |
| 23062 | as_nl=' |
| 23063 | ' |
| 23064 | export as_nl |
| 23065 | IFS=" "" $as_nl" |
| 23066 | |
| 23067 | PS1='$ ' |
| 23068 | PS2='> ' |
| 23069 | PS4='+ ' |
| 23070 | |
| 23071 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 23072 | LC_ALL=C |
| 23073 | export LC_ALL |
| 23074 | LANGUAGE=C |
| 23075 | export LANGUAGE |
| 23076 | |
| 23077 | # We cannot yet rely on "unset" to work, but we need these variables |
| 23078 | # to be unset--not just set to an empty or harmless value--now, to |
| 23079 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 23080 | # also avoids known problems related to "unset" and subshell syntax |
| 23081 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 23082 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 23083 | do eval test \${$as_var+y} \ |
| 23084 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 23085 | done |
| 23086 | |
| 23087 | # Ensure that fds 0, 1, and 2 are open. |
| 23088 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 23089 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 23090 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 23091 | |
| 23092 | # The user is always right. |
| 23093 | if ${PATH_SEPARATOR+false} :; then |
| 23094 | PATH_SEPARATOR=: |
| 23095 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 23096 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 23097 | PATH_SEPARATOR=';' |
| 23098 | } |
| 23099 | fi |
| 23100 | |
| 23101 | |
| 23102 | # Find who we are. Look in the path if we contain no directory separator. |
| 23103 | as_myself= |
| 23104 | case $0 in #(( |
| 23105 | *[\\/]* ) as_myself=$0 ;; |
| 23106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23107 | for as_dir in $PATH |
| 23108 | do |
| 23109 | IFS=$as_save_IFS |
| 23110 | case $as_dir in #((( |
| 23111 | '') as_dir=./ ;; |
| 23112 | */) ;; |
| 23113 | *) as_dir=$as_dir/ ;; |
| 23114 | esac |
| 23115 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 23116 | done |
| 23117 | IFS=$as_save_IFS |
| 23118 | |
| 23119 | ;; |
| 23120 | esac |
| 23121 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 23122 | # in which case we are not to be found in the path. |
| 23123 | if test "x$as_myself" = x; then |
| 23124 | as_myself=$0 |
| 23125 | fi |
| 23126 | if test ! -f "$as_myself"; then |
| 23127 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23128 | exit 1 |
| 23129 | fi |
| 23130 | |
| 23131 | |
| 23132 | |
| 23133 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 23134 | # ---------------------------------------- |
| 23135 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 23136 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 23137 | # script with STATUS, using 1 if that was 0. |
| 23138 | as_fn_error () |
| 23139 | { |
| 23140 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 23141 | if test "$4"; then |
| 23142 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 23143 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 23144 | fi |
| 23145 | printf "%s\n" "$as_me: error: $2" >&2 |
| 23146 | as_fn_exit $as_status |
| 23147 | } # as_fn_error |
| 23148 | |
| 23149 | |
| 23150 | # as_fn_set_status STATUS |
| 23151 | # ----------------------- |
| 23152 | # Set $? to STATUS, without forking. |
| 23153 | as_fn_set_status () |
| 23154 | { |
| 23155 | return $1 |
| 23156 | } # as_fn_set_status |
| 23157 | |
| 23158 | # as_fn_exit STATUS |
| 23159 | # ----------------- |
| 23160 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 23161 | as_fn_exit () |
| 23162 | { |
| 23163 | set +e |
| 23164 | as_fn_set_status $1 |
| 23165 | exit $1 |
| 23166 | } # as_fn_exit |
| 23167 | |
| 23168 | # as_fn_unset VAR |
| 23169 | # --------------- |
| 23170 | # Portably unset VAR. |
| 23171 | as_fn_unset () |
| 23172 | { |
| 23173 | { eval $1=; unset $1;} |
| 23174 | } |
| 23175 | as_unset=as_fn_unset |
| 23176 | |
| 23177 | # as_fn_append VAR VALUE |
| 23178 | # ---------------------- |
| 23179 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 23180 | # advantage of any shell optimizations that allow amortized linear growth over |
| 23181 | # repeated appends, instead of the typical quadratic growth present in naive |
| 23182 | # implementations. |
| 23183 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 23184 | then : |
| 23185 | eval 'as_fn_append () |
| 23186 | { |
| 23187 | eval $1+=\$2 |
| 23188 | }' |
| 23189 | else case e in #( |
| 23190 | e) as_fn_append () |
| 23191 | { |
| 23192 | eval $1=\$$1\$2 |
| 23193 | } ;; |
| 23194 | esac |
| 23195 | fi # as_fn_append |
| 23196 | |
| 23197 | # as_fn_arith ARG... |
| 23198 | # ------------------ |
| 23199 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 23200 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 23201 | # must be portable across $(()) and expr. |
| 23202 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 23203 | then : |
| 23204 | eval 'as_fn_arith () |
| 23205 | { |
| 23206 | as_val=$(( $* )) |
| 23207 | }' |
| 23208 | else case e in #( |
| 23209 | e) as_fn_arith () |
| 23210 | { |
| 23211 | as_val=`expr "$@" || test $? -eq 1` |
| 23212 | } ;; |
| 23213 | esac |
| 23214 | fi # as_fn_arith |
| 23215 | |
| 23216 | |
| 23217 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23218 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23219 | as_expr=expr |
| 23220 | else |
| 23221 | as_expr=false |
| 23222 | fi |
| 23223 | |
| 23224 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23225 | as_basename=basename |
| 23226 | else |
| 23227 | as_basename=false |
| 23228 | fi |
| 23229 | |
| 23230 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23231 | as_dirname=dirname |
| 23232 | else |
| 23233 | as_dirname=false |
| 23234 | fi |
| 23235 | |
| 23236 | as_me=`$as_basename -- "$0" || |
| 23237 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23238 | X"$0" : 'X\(//\)$' \| \ |
| 23239 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23240 | printf "%s\n" X/"$0" | |
| 23241 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23242 | s//\1/ |
| 23243 | q |
| 23244 | } |
| 23245 | /^X\/\(\/\/\)$/{ |
| 23246 | s//\1/ |
| 23247 | q |
| 23248 | } |
| 23249 | /^X\/\(\/\).*/{ |
| 23250 | s//\1/ |
| 23251 | q |
| 23252 | } |
| 23253 | s/.*/./; q'` |
| 23254 | |
| 23255 | # Avoid depending upon Character Ranges. |
| 23256 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23257 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23258 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23259 | as_cr_digits='0123456789' |
| 23260 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23261 | |
| 23262 | |
| 23263 | # Determine whether it's possible to make 'echo' print without a newline. |
| 23264 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 23265 | # for compatibility with existing Makefiles. |
| 23266 | ECHO_C= ECHO_N= ECHO_T= |
| 23267 | case `echo -n x` in #((((( |
| 23268 | -n*) |
| 23269 | case `echo 'xy\c'` in |
| 23270 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23271 | xy) ECHO_C='\c';; |
| 23272 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 23273 | ECHO_T=' ';; |
| 23274 | esac;; |
| 23275 | *) |
| 23276 | ECHO_N='-n';; |
| 23277 | esac |
| 23278 | |
| 23279 | # For backward compatibility with old third-party macros, we provide |
| 23280 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 23281 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 23282 | as_echo='printf %s\n' |
| 23283 | as_echo_n='printf %s' |
| 23284 | |
| 23285 | rm -f conf$$ conf$$.exe conf$$.file |
| 23286 | if test -d conf$$.dir; then |
| 23287 | rm -f conf$$.dir/conf$$.file |
| 23288 | else |
| 23289 | rm -f conf$$.dir |
| 23290 | mkdir conf$$.dir 2>/dev/null |
| 23291 | fi |
| 23292 | if (echo >conf$$.file) 2>/dev/null; then |
| 23293 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23294 | as_ln_s='ln -s' |
| 23295 | # ... but there are two gotchas: |
| 23296 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 23297 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 23298 | # In both cases, we have to default to 'cp -pR'. |
| 23299 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 23300 | as_ln_s='cp -pR' |
| 23301 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23302 | as_ln_s=ln |
| 23303 | else |
| 23304 | as_ln_s='cp -pR' |
| 23305 | fi |
| 23306 | else |
| 23307 | as_ln_s='cp -pR' |
| 23308 | fi |
| 23309 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23310 | rmdir conf$$.dir 2>/dev/null |
| 23311 | |
| 23312 | |
| 23313 | # as_fn_mkdir_p |
| 23314 | # ------------- |
| 23315 | # Create "$as_dir" as a directory, including parents if necessary. |
| 23316 | as_fn_mkdir_p () |
| 23317 | { |
| 23318 | |
| 23319 | case $as_dir in #( |
| 23320 | -*) as_dir=./$as_dir;; |
| 23321 | esac |
| 23322 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 23323 | as_dirs= |
| 23324 | while :; do |
| 23325 | case $as_dir in #( |
| 23326 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 23327 | *) as_qdir=$as_dir;; |
| 23328 | esac |
| 23329 | as_dirs="'$as_qdir' $as_dirs" |
| 23330 | as_dir=`$as_dirname -- "$as_dir" || |
| 23331 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23332 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23333 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23334 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 23335 | printf "%s\n" X"$as_dir" | |
| 23336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23337 | s//\1/ |
| 23338 | q |
| 23339 | } |
| 23340 | /^X\(\/\/\)[^/].*/{ |
| 23341 | s//\1/ |
| 23342 | q |
| 23343 | } |
| 23344 | /^X\(\/\/\)$/{ |
| 23345 | s//\1/ |
| 23346 | q |
| 23347 | } |
| 23348 | /^X\(\/\).*/{ |
| 23349 | s//\1/ |
| 23350 | q |
| 23351 | } |
| 23352 | s/.*/./; q'` |
| 23353 | test -d "$as_dir" && break |
| 23354 | done |
| 23355 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 23356 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 23357 | |
| 23358 | |
| 23359 | } # as_fn_mkdir_p |
| 23360 | if mkdir -p . 2>/dev/null; then |
| 23361 | as_mkdir_p='mkdir -p "$as_dir"' |
| 23362 | else |
| 23363 | test -d ./-p && rmdir ./-p |
| 23364 | as_mkdir_p=false |
| 23365 | fi |
| 23366 | |
| 23367 | |
| 23368 | # as_fn_executable_p FILE |
| 23369 | # ----------------------- |
| 23370 | # Test if FILE is an executable regular file. |
| 23371 | as_fn_executable_p () |
| 23372 | { |
| 23373 | test -f "$1" && test -x "$1" |
| 23374 | } # as_fn_executable_p |
| 23375 | as_test_x='test -x' |
| 23376 | as_executable_p=as_fn_executable_p |
| 23377 | |
| 23378 | # Sed expression to map a string onto a valid CPP name. |
| 23379 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 23380 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 23381 | |
| 23382 | # Sed expression to map a string onto a valid variable name. |
| 23383 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 23384 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 23385 | |
| 23386 | |
| 23387 | exec 6>&1 |
| 23388 | ## ----------------------------------- ## |
| 23389 | ## Main body of $CONFIG_STATUS script. ## |
| 23390 | ## ----------------------------------- ## |
| 23391 | _ASEOF |
| 23392 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 23393 | |
| 23394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23395 | # Save the log message, to keep $0 and so on meaningful, and to |
| 23396 | # report actual input values of CONFIG_FILES etc. instead of their |
| 23397 | # values after options handling. |
| 23398 | ac_log=" |
| 23399 | This file was extended by extended BibTeX (TeX Live) $as_me 4.03, which was |
| 23400 | generated by GNU Autoconf 2.72. Invocation command line was |
| 23401 | |
| 23402 | CONFIG_FILES = $CONFIG_FILES |
| 23403 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23404 | CONFIG_LINKS = $CONFIG_LINKS |
| 23405 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23406 | $ $0 $@ |
| 23407 | |
| 23408 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23409 | " |
| 23410 | |
| 23411 | _ACEOF |
| 23412 | |
| 23413 | case $ac_config_files in *" |
| 23414 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 23415 | esac |
| 23416 | |
| 23417 | case $ac_config_headers in *" |
| 23418 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 23419 | esac |
| 23420 | |
| 23421 | |
| 23422 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23423 | # Files that config.status was made for. |
| 23424 | config_files="$ac_config_files" |
| 23425 | config_headers="$ac_config_headers" |
| 23426 | config_commands="$ac_config_commands" |
| 23427 | |
| 23428 | _ACEOF |
| 23429 | |
| 23430 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23431 | ac_cs_usage="\ |
| 23432 | '$as_me' instantiates files and other configuration actions |
| 23433 | from templates according to the current configuration. Unless the files |
| 23434 | and actions are specified as TAGs, all are instantiated by default. |
| 23435 | |
| 23436 | Usage: $0 [OPTION]... [TAG]... |
| 23437 | |
| 23438 | -h, --help print this help, then exit |
| 23439 | -V, --version print version number and configuration settings, then exit |
| 23440 | --config print configuration, then exit |
| 23441 | -q, --quiet, --silent |
| 23442 | do not print progress messages |
| 23443 | -d, --debug don't remove temporary files |
| 23444 | --recheck update $as_me by reconfiguring in the same conditions |
| 23445 | --file=FILE[:TEMPLATE] |
| 23446 | instantiate the configuration file FILE |
| 23447 | --header=FILE[:TEMPLATE] |
| 23448 | instantiate the configuration header FILE |
| 23449 | |
| 23450 | Configuration files: |
| 23451 | $config_files |
| 23452 | |
| 23453 | Configuration headers: |
| 23454 | $config_headers |
| 23455 | |
| 23456 | Configuration commands: |
| 23457 | $config_commands |
| 23458 | |
| 23459 | Report bugs to <[email protected]>." |
| 23460 | |
| 23461 | _ACEOF |
| 23462 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 23463 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 23464 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23465 | ac_cs_config='$ac_cs_config_escaped' |
| 23466 | ac_cs_version="\\ |
| 23467 | extended BibTeX (TeX Live) config.status 4.03 |
| 23468 | configured by $0, generated by GNU Autoconf 2.72, |
| 23469 | with options \\"\$ac_cs_config\\" |
| 23470 | |
| 23471 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 23472 | This config.status script is free software; the Free Software Foundation |
| 23473 | gives unlimited permission to copy, distribute and modify it." |
| 23474 | |
| 23475 | ac_pwd='$ac_pwd' |
| 23476 | srcdir='$srcdir' |
| 23477 | INSTALL='$INSTALL' |
| 23478 | MKDIR_P='$MKDIR_P' |
| 23479 | AWK='$AWK' |
| 23480 | test -n "\$AWK" || AWK=awk |
| 23481 | _ACEOF |
| 23482 | |
| 23483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23484 | # The default lists apply if the user does not specify any file. |
| 23485 | ac_need_defaults=: |
| 23486 | while test $# != 0 |
| 23487 | do |
| 23488 | case $1 in |
| 23489 | --*=?*) |
| 23490 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23491 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 23492 | ac_shift=: |
| 23493 | ;; |
| 23494 | --*=) |
| 23495 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23496 | ac_optarg= |
| 23497 | ac_shift=: |
| 23498 | ;; |
| 23499 | *) |
| 23500 | ac_option=$1 |
| 23501 | ac_optarg=$2 |
| 23502 | ac_shift=shift |
| 23503 | ;; |
| 23504 | esac |
| 23505 | |
| 23506 | case $ac_option in |
| 23507 | # Handling of the options. |
| 23508 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23509 | ac_cs_recheck=: ;; |
| 23510 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 23511 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 23512 | --config | --confi | --conf | --con | --co | --c ) |
| 23513 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 23514 | --debug | --debu | --deb | --de | --d | -d ) |
| 23515 | debug=: ;; |
| 23516 | --file | --fil | --fi | --f ) |
| 23517 | $ac_shift |
| 23518 | case $ac_optarg in |
| 23519 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 23520 | '') as_fn_error $? "missing file argument" ;; |
| 23521 | esac |
| 23522 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 23523 | ac_need_defaults=false;; |
| 23524 | --header | --heade | --head | --hea ) |
| 23525 | $ac_shift |
| 23526 | case $ac_optarg in |
| 23527 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 23528 | esac |
| 23529 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 23530 | ac_need_defaults=false;; |
| 23531 | --he | --h) |
| 23532 | # Conflict between --help and --header |
| 23533 | as_fn_error $? "ambiguous option: '$1' |
| 23534 | Try '$0 --help' for more information.";; |
| 23535 | --help | --hel | -h ) |
| 23536 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 23537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23538 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23539 | ac_cs_silent=: ;; |
| 23540 | |
| 23541 | # This is an error. |
| 23542 | -*) as_fn_error $? "unrecognized option: '$1' |
| 23543 | Try '$0 --help' for more information." ;; |
| 23544 | |
| 23545 | *) as_fn_append ac_config_targets " $1" |
| 23546 | ac_need_defaults=false ;; |
| 23547 | |
| 23548 | esac |
| 23549 | shift |
| 23550 | done |
| 23551 | |
| 23552 | ac_configure_extra_args= |
| 23553 | |
| 23554 | if $ac_cs_silent; then |
| 23555 | exec 6>/dev/null |
| 23556 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23557 | fi |
| 23558 | |
| 23559 | _ACEOF |
| 23560 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23561 | if \$ac_cs_recheck; then |
| 23562 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23563 | shift |
| 23564 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 23565 | CONFIG_SHELL='$SHELL' |
| 23566 | export CONFIG_SHELL |
| 23567 | exec "\$@" |
| 23568 | fi |
| 23569 | |
| 23570 | _ACEOF |
| 23571 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23572 | exec 5>>config.log |
| 23573 | { |
| 23574 | echo |
| 23575 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23576 | ## Running $as_me. ## |
| 23577 | _ASBOX |
| 23578 | printf "%s\n" "$ac_log" |
| 23579 | } >&5 |
| 23580 | |
| 23581 | _ACEOF |
| 23582 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23583 | # |
| 23584 | # INIT-COMMANDS |
| 23585 | # |
| 23586 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 23587 | |
| 23588 | |
| 23589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 23590 | # if CDPATH is set. |
| 23591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 23592 | |
| 23593 | sed_quote_subst='$sed_quote_subst' |
| 23594 | double_quote_subst='$double_quote_subst' |
| 23595 | delay_variable_subst='$delay_variable_subst' |
| 23596 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 23597 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 23598 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 23599 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 23600 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 23601 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 23602 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 23603 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 23604 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 23605 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 23606 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 23607 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 23608 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 23609 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 23610 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 23611 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 23612 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 23613 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 23614 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 23615 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 23616 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 23617 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 23618 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 23619 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 23620 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 23621 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 23622 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 23623 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 23624 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 23625 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 23626 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 23627 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 23628 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 23629 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 23630 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 23631 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 23632 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 23633 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 23634 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 23635 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 23636 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 23637 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 23638 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 23639 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 23640 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 23641 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 23642 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 23643 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 23644 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 23645 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 23646 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 23647 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 23648 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 23649 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 23650 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 23651 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 23652 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 23653 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 23654 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 23655 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 23656 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 23657 | 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"`' |
| 23658 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 23659 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 23660 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 23661 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 23662 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 23663 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 23664 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 23665 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 23666 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 23667 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 23668 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 23669 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 23670 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 23671 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 23672 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 23673 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 23674 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 23675 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 23676 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 23677 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 23678 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 23679 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 23680 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 23681 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 23682 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 23683 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 23684 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 23685 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 23686 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 23687 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 23688 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 23689 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 23690 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 23691 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 23692 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 23693 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 23694 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 23695 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 23696 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 23697 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 23698 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 23699 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 23700 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 23701 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 23702 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 23703 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 23704 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 23705 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 23706 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 23707 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 23708 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 23709 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 23710 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 23711 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 23712 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 23713 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 23714 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 23715 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 23716 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 23717 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 23718 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 23719 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 23720 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 23721 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 23722 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 23723 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 23724 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 23725 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 23726 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 23727 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 23728 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 23729 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 23730 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 23731 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 23732 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 23733 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 23734 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 23735 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 23736 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 23737 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 23738 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 23739 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 23740 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 23741 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 23742 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23743 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23744 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 23745 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 23746 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 23747 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 23748 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 23749 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 23750 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 23751 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 23752 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 23753 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 23754 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 23755 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 23756 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23757 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23758 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23759 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23760 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23761 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23762 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 23763 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 23764 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 23765 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 23766 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 23767 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 23768 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 23769 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 23770 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 23771 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 23772 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 23773 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 23774 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 23775 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23776 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 23777 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 23778 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23779 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 23780 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 23781 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 23782 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 23783 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 23784 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 23785 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 23786 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 23787 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 23788 | |
| 23789 | LTCC='$LTCC' |
| 23790 | LTCFLAGS='$LTCFLAGS' |
| 23791 | compiler='$compiler_DEFAULT' |
| 23792 | |
| 23793 | # A function that is used when there is no print builtin or printf. |
| 23794 | func_fallback_echo () |
| 23795 | { |
| 23796 | eval 'cat <<_LTECHO_EOF |
| 23797 | \$1 |
| 23798 | _LTECHO_EOF' |
| 23799 | } |
| 23800 | |
| 23801 | # Quote evaled strings. |
| 23802 | for var in AS \ |
| 23803 | DLLTOOL \ |
| 23804 | OBJDUMP \ |
| 23805 | SHELL \ |
| 23806 | ECHO \ |
| 23807 | PATH_SEPARATOR \ |
| 23808 | SED \ |
| 23809 | GREP \ |
| 23810 | EGREP \ |
| 23811 | FGREP \ |
| 23812 | LD \ |
| 23813 | NM \ |
| 23814 | LN_S \ |
| 23815 | lt_SP2NL \ |
| 23816 | lt_NL2SP \ |
| 23817 | reload_flag \ |
| 23818 | FILECMD \ |
| 23819 | deplibs_check_method \ |
| 23820 | file_magic_cmd \ |
| 23821 | file_magic_glob \ |
| 23822 | want_nocaseglob \ |
| 23823 | sharedlib_from_linklib_cmd \ |
| 23824 | AR \ |
| 23825 | archiver_list_spec \ |
| 23826 | STRIP \ |
| 23827 | RANLIB \ |
| 23828 | CC \ |
| 23829 | CFLAGS \ |
| 23830 | compiler \ |
| 23831 | lt_cv_sys_global_symbol_pipe \ |
| 23832 | lt_cv_sys_global_symbol_to_cdecl \ |
| 23833 | lt_cv_sys_global_symbol_to_import \ |
| 23834 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23835 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 23836 | lt_cv_nm_interface \ |
| 23837 | nm_file_list_spec \ |
| 23838 | lt_cv_truncate_bin \ |
| 23839 | lt_prog_compiler_no_builtin_flag \ |
| 23840 | lt_prog_compiler_pic \ |
| 23841 | lt_prog_compiler_wl \ |
| 23842 | lt_prog_compiler_static \ |
| 23843 | lt_cv_prog_compiler_c_o \ |
| 23844 | need_locks \ |
| 23845 | MANIFEST_TOOL \ |
| 23846 | DSYMUTIL \ |
| 23847 | NMEDIT \ |
| 23848 | LIPO \ |
| 23849 | OTOOL \ |
| 23850 | OTOOL64 \ |
| 23851 | shrext_cmds \ |
| 23852 | export_dynamic_flag_spec \ |
| 23853 | whole_archive_flag_spec \ |
| 23854 | compiler_needs_object \ |
| 23855 | with_gnu_ld \ |
| 23856 | allow_undefined_flag \ |
| 23857 | no_undefined_flag \ |
| 23858 | hardcode_libdir_flag_spec \ |
| 23859 | hardcode_libdir_separator \ |
| 23860 | exclude_expsyms \ |
| 23861 | include_expsyms \ |
| 23862 | file_list_spec \ |
| 23863 | variables_saved_for_relink \ |
| 23864 | libname_spec \ |
| 23865 | library_names_spec \ |
| 23866 | soname_spec \ |
| 23867 | install_override_mode \ |
| 23868 | finish_eval \ |
| 23869 | old_striplib \ |
| 23870 | striplib \ |
| 23871 | compiler_lib_search_dirs \ |
| 23872 | predep_objects \ |
| 23873 | postdep_objects \ |
| 23874 | predeps \ |
| 23875 | postdeps \ |
| 23876 | compiler_lib_search_path \ |
| 23877 | LD_CXX \ |
| 23878 | reload_flag_CXX \ |
| 23879 | compiler_CXX \ |
| 23880 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 23881 | lt_prog_compiler_pic_CXX \ |
| 23882 | lt_prog_compiler_wl_CXX \ |
| 23883 | lt_prog_compiler_static_CXX \ |
| 23884 | lt_cv_prog_compiler_c_o_CXX \ |
| 23885 | export_dynamic_flag_spec_CXX \ |
| 23886 | whole_archive_flag_spec_CXX \ |
| 23887 | compiler_needs_object_CXX \ |
| 23888 | with_gnu_ld_CXX \ |
| 23889 | allow_undefined_flag_CXX \ |
| 23890 | no_undefined_flag_CXX \ |
| 23891 | hardcode_libdir_flag_spec_CXX \ |
| 23892 | hardcode_libdir_separator_CXX \ |
| 23893 | exclude_expsyms_CXX \ |
| 23894 | include_expsyms_CXX \ |
| 23895 | file_list_spec_CXX \ |
| 23896 | compiler_lib_search_dirs_CXX \ |
| 23897 | predep_objects_CXX \ |
| 23898 | postdep_objects_CXX \ |
| 23899 | predeps_CXX \ |
| 23900 | postdeps_CXX \ |
| 23901 | compiler_lib_search_path_CXX; do |
| 23902 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 23903 | *[\\\\\\\`\\"\\\$]*) |
| 23904 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 23905 | ;; |
| 23906 | *) |
| 23907 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 23908 | ;; |
| 23909 | esac |
| 23910 | done |
| 23911 | |
| 23912 | # Double-quote double-evaled strings. |
| 23913 | for var in reload_cmds \ |
| 23914 | old_postinstall_cmds \ |
| 23915 | old_postuninstall_cmds \ |
| 23916 | old_archive_cmds \ |
| 23917 | extract_expsyms_cmds \ |
| 23918 | old_archive_from_new_cmds \ |
| 23919 | old_archive_from_expsyms_cmds \ |
| 23920 | archive_cmds \ |
| 23921 | archive_expsym_cmds \ |
| 23922 | module_cmds \ |
| 23923 | module_expsym_cmds \ |
| 23924 | export_symbols_cmds \ |
| 23925 | prelink_cmds \ |
| 23926 | postlink_cmds \ |
| 23927 | postinstall_cmds \ |
| 23928 | postuninstall_cmds \ |
| 23929 | finish_cmds \ |
| 23930 | sys_lib_search_path_spec \ |
| 23931 | configure_time_dlsearch_path \ |
| 23932 | configure_time_lt_sys_library_path \ |
| 23933 | reload_cmds_CXX \ |
| 23934 | old_archive_cmds_CXX \ |
| 23935 | old_archive_from_new_cmds_CXX \ |
| 23936 | old_archive_from_expsyms_cmds_CXX \ |
| 23937 | archive_cmds_CXX \ |
| 23938 | archive_expsym_cmds_CXX \ |
| 23939 | module_cmds_CXX \ |
| 23940 | module_expsym_cmds_CXX \ |
| 23941 | export_symbols_cmds_CXX \ |
| 23942 | prelink_cmds_CXX \ |
| 23943 | postlink_cmds_CXX; do |
| 23944 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 23945 | *[\\\\\\\`\\"\\\$]*) |
| 23946 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 23947 | ;; |
| 23948 | *) |
| 23949 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 23950 | ;; |
| 23951 | esac |
| 23952 | done |
| 23953 | |
| 23954 | ac_aux_dir='$ac_aux_dir' |
| 23955 | |
| 23956 | # See if we are running on zsh, and set the options that allow our |
| 23957 | # commands through without removal of \ escapes INIT. |
| 23958 | if test -n "\${ZSH_VERSION+set}"; then |
| 23959 | setopt NO_GLOB_SUBST |
| 23960 | fi |
| 23961 | |
| 23962 | |
| 23963 | PACKAGE='$PACKAGE' |
| 23964 | VERSION='$VERSION' |
| 23965 | RM='$RM' |
| 23966 | ofile='$ofile' |
| 23967 | |
| 23968 | |
| 23969 | |
| 23970 | ac_aux_dir='$ac_aux_dir' |
| 23971 | |
| 23972 | |
| 23973 | cxxld_sh='$cxxld_sh' |
| 23974 | |
| 23975 | _ACEOF |
| 23976 | |
| 23977 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23978 | |
| 23979 | # Handling of arguments. |
| 23980 | for ac_config_target in $ac_config_targets |
| 23981 | do |
| 23982 | case $ac_config_target in |
| 23983 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 23984 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 23985 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 23986 | "CXXLD.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS CXXLD.sh" ;; |
| 23987 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 23988 | |
| 23989 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 23990 | esac |
| 23991 | done |
| 23992 | |
| 23993 | |
| 23994 | # If the user did not use the arguments to specify the items to instantiate, |
| 23995 | # then the envvar interface is used. Set only those that are not. |
| 23996 | # We use the long form for the default assignment because of an extremely |
| 23997 | # bizarre bug on SunOS 4.1.3. |
| 23998 | if $ac_need_defaults; then |
| 23999 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 24000 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 24001 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 24002 | fi |
| 24003 | |
| 24004 | # Have a temporary directory for convenience. Make it in the build tree |
| 24005 | # simply because there is no reason against having it here, and in addition, |
| 24006 | # creating and moving files from /tmp can sometimes cause problems. |
| 24007 | # Hook for its removal unless debugging. |
| 24008 | # Note that there is a small window in which the directory will not be cleaned: |
| 24009 | # after its creation but before its name has been assigned to '$tmp'. |
| 24010 | $debug || |
| 24011 | { |
| 24012 | tmp= ac_tmp= |
| 24013 | trap 'exit_status=$? |
| 24014 | : "${ac_tmp:=$tmp}" |
| 24015 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 24016 | ' 0 |
| 24017 | trap 'as_fn_exit 1' 1 2 13 15 |
| 24018 | } |
| 24019 | # Create a (secure) tmp directory for tmp files. |
| 24020 | |
| 24021 | { |
| 24022 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 24023 | test -d "$tmp" |
| 24024 | } || |
| 24025 | { |
| 24026 | tmp=./conf$$-$RANDOM |
| 24027 | (umask 077 && mkdir "$tmp") |
| 24028 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 24029 | ac_tmp=$tmp |
| 24030 | |
| 24031 | # Set up the scripts for CONFIG_FILES section. |
| 24032 | # No need to generate them if there are no CONFIG_FILES. |
| 24033 | # This happens for instance with './config.status config.h'. |
| 24034 | if test -n "$CONFIG_FILES"; then |
| 24035 | |
| 24036 | |
| 24037 | ac_cr=`echo X | tr X '\015'` |
| 24038 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 24039 | # But we know of no other shell where ac_cr would be empty at this |
| 24040 | # point, so we can use a bashism as a fallback. |
| 24041 | if test "x$ac_cr" = x; then |
| 24042 | eval ac_cr=\$\'\\r\' |
| 24043 | fi |
| 24044 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 24045 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 24046 | ac_cs_awk_cr='\\r' |
| 24047 | else |
| 24048 | ac_cs_awk_cr=$ac_cr |
| 24049 | fi |
| 24050 | |
| 24051 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 24052 | _ACEOF |
| 24053 | |
| 24054 | |
| 24055 | { |
| 24056 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 24057 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 24058 | echo "_ACEOF" |
| 24059 | } >conf$$subs.sh || |
| 24060 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24061 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 24062 | ac_delim='%!_!# ' |
| 24063 | for ac_last_try in false false false false false :; do |
| 24064 | . ./conf$$subs.sh || |
| 24065 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24066 | |
| 24067 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 24068 | if test $ac_delim_n = $ac_delim_num; then |
| 24069 | break |
| 24070 | elif $ac_last_try; then |
| 24071 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24072 | else |
| 24073 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24074 | fi |
| 24075 | done |
| 24076 | rm -f conf$$subs.sh |
| 24077 | |
| 24078 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24079 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 24080 | _ACEOF |
| 24081 | sed -n ' |
| 24082 | h |
| 24083 | s/^/S["/; s/!.*/"]=/ |
| 24084 | p |
| 24085 | g |
| 24086 | s/^[^!]*!// |
| 24087 | :repl |
| 24088 | t repl |
| 24089 | s/'"$ac_delim"'$// |
| 24090 | t delim |
| 24091 | :nl |
| 24092 | h |
| 24093 | s/\(.\{148\}\)..*/\1/ |
| 24094 | t more1 |
| 24095 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 24096 | p |
| 24097 | n |
| 24098 | b repl |
| 24099 | :more1 |
| 24100 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 24101 | p |
| 24102 | g |
| 24103 | s/.\{148\}// |
| 24104 | t nl |
| 24105 | :delim |
| 24106 | h |
| 24107 | s/\(.\{148\}\)..*/\1/ |
| 24108 | t more2 |
| 24109 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 24110 | p |
| 24111 | b |
| 24112 | :more2 |
| 24113 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 24114 | p |
| 24115 | g |
| 24116 | s/.\{148\}// |
| 24117 | t delim |
| 24118 | ' <conf$$subs.awk | sed ' |
| 24119 | /^[^""]/{ |
| 24120 | N |
| 24121 | s/\n// |
| 24122 | } |
| 24123 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 24124 | rm -f conf$$subs.awk |
| 24125 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24126 | _ACAWK |
| 24127 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 24128 | for (key in S) S_is_set[key] = 1 |
| 24129 | FS = "" |
| 24130 | |
| 24131 | } |
| 24132 | { |
| 24133 | line = $ 0 |
| 24134 | nfields = split(line, field, "@") |
| 24135 | substed = 0 |
| 24136 | len = length(field[1]) |
| 24137 | for (i = 2; i < nfields; i++) { |
| 24138 | key = field[i] |
| 24139 | keylen = length(key) |
| 24140 | if (S_is_set[key]) { |
| 24141 | value = S[key] |
| 24142 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 24143 | len += length(value) + length(field[++i]) |
| 24144 | substed = 1 |
| 24145 | } else |
| 24146 | len += 1 + keylen |
| 24147 | } |
| 24148 | |
| 24149 | print line |
| 24150 | } |
| 24151 | |
| 24152 | _ACAWK |
| 24153 | _ACEOF |
| 24154 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24155 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 24156 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 24157 | else |
| 24158 | cat |
| 24159 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 24160 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 24161 | _ACEOF |
| 24162 | |
| 24163 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 24164 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 24165 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 24166 | # (actually we leave an empty line to preserve line numbers). |
| 24167 | if test "x$srcdir" = x.; then |
| 24168 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 24169 | h |
| 24170 | s/// |
| 24171 | s/^/:/ |
| 24172 | s/[ ]*$/:/ |
| 24173 | s/:\$(srcdir):/:/g |
| 24174 | s/:\${srcdir}:/:/g |
| 24175 | s/:@srcdir@:/:/g |
| 24176 | s/^:*// |
| 24177 | s/:*$// |
| 24178 | x |
| 24179 | s/\(=[ ]*\).*/\1/ |
| 24180 | G |
| 24181 | s/\n// |
| 24182 | s/^[^=]*=[ ]*$// |
| 24183 | }' |
| 24184 | fi |
| 24185 | |
| 24186 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24187 | fi # test -n "$CONFIG_FILES" |
| 24188 | |
| 24189 | # Set up the scripts for CONFIG_HEADERS section. |
| 24190 | # No need to generate them if there are no CONFIG_HEADERS. |
| 24191 | # This happens for instance with './config.status Makefile'. |
| 24192 | if test -n "$CONFIG_HEADERS"; then |
| 24193 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 24194 | BEGIN { |
| 24195 | _ACEOF |
| 24196 | |
| 24197 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 24198 | # here-document in config.status, that substitutes the proper values into |
| 24199 | # config.h.in to produce config.h. |
| 24200 | |
| 24201 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 24202 | # handling of long lines. |
| 24203 | ac_delim='%!_!# ' |
| 24204 | for ac_last_try in false false :; do |
| 24205 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 24206 | if test -z "$ac_tt"; then |
| 24207 | break |
| 24208 | elif $ac_last_try; then |
| 24209 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 24210 | else |
| 24211 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24212 | fi |
| 24213 | done |
| 24214 | |
| 24215 | # For the awk script, D is an array of macro values keyed by name, |
| 24216 | # likewise P contains macro parameters if any. Preserve backslash |
| 24217 | # newline sequences. |
| 24218 | |
| 24219 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24220 | sed -n ' |
| 24221 | s/.\{148\}/&'"$ac_delim"'/g |
| 24222 | t rset |
| 24223 | :rset |
| 24224 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 24225 | t def |
| 24226 | d |
| 24227 | :def |
| 24228 | s/\\$// |
| 24229 | t bsnl |
| 24230 | s/["\\]/\\&/g |
| 24231 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 24232 | D["\1"]=" \3"/p |
| 24233 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 24234 | d |
| 24235 | :bsnl |
| 24236 | s/["\\]/\\&/g |
| 24237 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 24238 | D["\1"]=" \3\\\\\\n"\\/p |
| 24239 | t cont |
| 24240 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 24241 | t cont |
| 24242 | d |
| 24243 | :cont |
| 24244 | n |
| 24245 | s/.\{148\}/&'"$ac_delim"'/g |
| 24246 | t clear |
| 24247 | :clear |
| 24248 | s/\\$// |
| 24249 | t bsnlc |
| 24250 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 24251 | d |
| 24252 | :bsnlc |
| 24253 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 24254 | b cont |
| 24255 | ' <confdefs.h | sed ' |
| 24256 | s/'"$ac_delim"'/"\\\ |
| 24257 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 24258 | |
| 24259 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24260 | for (key in D) D_is_set[key] = 1 |
| 24261 | FS = "" |
| 24262 | } |
| 24263 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 24264 | line = \$ 0 |
| 24265 | split(line, arg, " ") |
| 24266 | if (arg[1] == "#") { |
| 24267 | defundef = arg[2] |
| 24268 | mac1 = arg[3] |
| 24269 | } else { |
| 24270 | defundef = substr(arg[1], 2) |
| 24271 | mac1 = arg[2] |
| 24272 | } |
| 24273 | split(mac1, mac2, "(") #) |
| 24274 | macro = mac2[1] |
| 24275 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 24276 | if (D_is_set[macro]) { |
| 24277 | # Preserve the white space surrounding the "#". |
| 24278 | print prefix "define", macro P[macro] D[macro] |
| 24279 | next |
| 24280 | } else { |
| 24281 | # Replace #undef with comments. This is necessary, for example, |
| 24282 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 24283 | # on some systems where configure will not decide to define it. |
| 24284 | if (defundef == "undef") { |
| 24285 | print "/*", prefix defundef, macro, "*/" |
| 24286 | next |
| 24287 | } |
| 24288 | } |
| 24289 | } |
| 24290 | { print } |
| 24291 | _ACAWK |
| 24292 | _ACEOF |
| 24293 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24294 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 24295 | fi # test -n "$CONFIG_HEADERS" |
| 24296 | |
| 24297 | |
| 24298 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 24299 | shift |
| 24300 | for ac_tag |
| 24301 | do |
| 24302 | case $ac_tag in |
| 24303 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 24304 | esac |
| 24305 | case $ac_mode$ac_tag in |
| 24306 | :[FHL]*:*);; |
| 24307 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 24308 | :[FH]-) ac_tag=-:-;; |
| 24309 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 24310 | esac |
| 24311 | ac_save_IFS=$IFS |
| 24312 | IFS=: |
| 24313 | set x $ac_tag |
| 24314 | IFS=$ac_save_IFS |
| 24315 | shift |
| 24316 | ac_file=$1 |
| 24317 | shift |
| 24318 | |
| 24319 | case $ac_mode in |
| 24320 | :L) ac_source=$1;; |
| 24321 | :[FH]) |
| 24322 | ac_file_inputs= |
| 24323 | for ac_f |
| 24324 | do |
| 24325 | case $ac_f in |
| 24326 | -) ac_f="$ac_tmp/stdin";; |
| 24327 | *) # Look for the file first in the build tree, then in the source tree |
| 24328 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 24329 | # because $ac_f cannot contain ':'. |
| 24330 | test -f "$ac_f" || |
| 24331 | case $ac_f in |
| 24332 | [\\/$]*) false;; |
| 24333 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 24334 | esac || |
| 24335 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 24336 | esac |
| 24337 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 24338 | as_fn_append ac_file_inputs " '$ac_f'" |
| 24339 | done |
| 24340 | |
| 24341 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 24342 | # use $as_me), people would be surprised to read: |
| 24343 | # /* config.h. Generated by config.status. */ |
| 24344 | configure_input='Generated from '` |
| 24345 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 24346 | `' by configure.' |
| 24347 | if test x"$ac_file" != x-; then |
| 24348 | configure_input="$ac_file. $configure_input" |
| 24349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 24350 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 24351 | fi |
| 24352 | # Neutralize special characters interpreted by sed in replacement strings. |
| 24353 | case $configure_input in #( |
| 24354 | *\&* | *\|* | *\\* ) |
| 24355 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 24356 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 24357 | *) ac_sed_conf_input=$configure_input;; |
| 24358 | esac |
| 24359 | |
| 24360 | case $ac_tag in |
| 24361 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 24362 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 24363 | esac |
| 24364 | ;; |
| 24365 | esac |
| 24366 | |
| 24367 | ac_dir=`$as_dirname -- "$ac_file" || |
| 24368 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24369 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24370 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24371 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 24372 | printf "%s\n" X"$ac_file" | |
| 24373 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24374 | s//\1/ |
| 24375 | q |
| 24376 | } |
| 24377 | /^X\(\/\/\)[^/].*/{ |
| 24378 | s//\1/ |
| 24379 | q |
| 24380 | } |
| 24381 | /^X\(\/\/\)$/{ |
| 24382 | s//\1/ |
| 24383 | q |
| 24384 | } |
| 24385 | /^X\(\/\).*/{ |
| 24386 | s//\1/ |
| 24387 | q |
| 24388 | } |
| 24389 | s/.*/./; q'` |
| 24390 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 24391 | ac_builddir=. |
| 24392 | |
| 24393 | case "$ac_dir" in |
| 24394 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24395 | *) |
| 24396 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 24397 | # A ".." for each directory in $ac_dir_suffix. |
| 24398 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 24399 | case $ac_top_builddir_sub in |
| 24400 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24401 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24402 | esac ;; |
| 24403 | esac |
| 24404 | ac_abs_top_builddir=$ac_pwd |
| 24405 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24406 | # for backward compatibility: |
| 24407 | ac_top_builddir=$ac_top_build_prefix |
| 24408 | |
| 24409 | case $srcdir in |
| 24410 | .) # We are building in place. |
| 24411 | ac_srcdir=. |
| 24412 | ac_top_srcdir=$ac_top_builddir_sub |
| 24413 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24414 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 24415 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 24416 | ac_top_srcdir=$srcdir |
| 24417 | ac_abs_top_srcdir=$srcdir ;; |
| 24418 | *) # Relative name. |
| 24419 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24420 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24421 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 24422 | esac |
| 24423 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 24424 | |
| 24425 | |
| 24426 | case $ac_mode in |
| 24427 | :F) |
| 24428 | # |
| 24429 | # CONFIG_FILE |
| 24430 | # |
| 24431 | |
| 24432 | case $INSTALL in |
| 24433 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 24434 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 24435 | esac |
| 24436 | ac_MKDIR_P=$MKDIR_P |
| 24437 | case $MKDIR_P in |
| 24438 | [\\/$]* | ?:[\\/]* ) ;; |
| 24439 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 24440 | esac |
| 24441 | _ACEOF |
| 24442 | |
| 24443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24444 | # If the template does not know about datarootdir, expand it. |
| 24445 | # FIXME: This hack should be removed a few years after 2.60. |
| 24446 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 24447 | ac_sed_dataroot=' |
| 24448 | /datarootdir/ { |
| 24449 | p |
| 24450 | q |
| 24451 | } |
| 24452 | /@datadir@/p |
| 24453 | /@docdir@/p |
| 24454 | /@infodir@/p |
| 24455 | /@localedir@/p |
| 24456 | /@mandir@/p' |
| 24457 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 24458 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 24459 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 24460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 24461 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 24462 | _ACEOF |
| 24463 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24464 | ac_datarootdir_hack=' |
| 24465 | s&@datadir@&$datadir&g |
| 24466 | s&@docdir@&$docdir&g |
| 24467 | s&@infodir@&$infodir&g |
| 24468 | s&@localedir@&$localedir&g |
| 24469 | s&@mandir@&$mandir&g |
| 24470 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24471 | esac |
| 24472 | _ACEOF |
| 24473 | |
| 24474 | # Neutralize VPATH when '$srcdir' = '.'. |
| 24475 | # Shell code in configure.ac might set extrasub. |
| 24476 | # FIXME: do we really want to maintain this feature? |
| 24477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24478 | ac_sed_extra="$ac_vpsub |
| 24479 | $extrasub |
| 24480 | _ACEOF |
| 24481 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24482 | :t |
| 24483 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24484 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 24485 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24486 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 24487 | s&@srcdir@&$ac_srcdir&;t t |
| 24488 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24489 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24490 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24491 | s&@builddir@&$ac_builddir&;t t |
| 24492 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24493 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24494 | s&@INSTALL@&$ac_INSTALL&;t t |
| 24495 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 24496 | $ac_datarootdir_hack |
| 24497 | " |
| 24498 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 24499 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 24500 | |
| 24501 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24502 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 24503 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 24504 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 24505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 24506 | which seems to be undefined. Please make sure it is defined" >&5 |
| 24507 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 24508 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 24509 | |
| 24510 | rm -f "$ac_tmp/stdin" |
| 24511 | case $ac_file in |
| 24512 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 24513 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 24514 | esac \ |
| 24515 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 24516 | ;; |
| 24517 | :H) |
| 24518 | # |
| 24519 | # CONFIG_HEADER |
| 24520 | # |
| 24521 | if test x"$ac_file" != x-; then |
| 24522 | { |
| 24523 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 24524 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 24525 | } >"$ac_tmp/config.h" \ |
| 24526 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 24527 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 24528 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 24529 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 24530 | else |
| 24531 | rm -f "$ac_file" |
| 24532 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 24533 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 24534 | fi |
| 24535 | else |
| 24536 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 24537 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 24538 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 24539 | fi |
| 24540 | # Compute "$ac_file"'s index in $config_headers. |
| 24541 | _am_arg="$ac_file" |
| 24542 | _am_stamp_count=1 |
| 24543 | for _am_header in $config_headers :; do |
| 24544 | case $_am_header in |
| 24545 | $_am_arg | $_am_arg:* ) |
| 24546 | break ;; |
| 24547 | * ) |
| 24548 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 24549 | esac |
| 24550 | done |
| 24551 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 24552 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24553 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 24554 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 24555 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 24556 | printf "%s\n" X"$_am_arg" | |
| 24557 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24558 | s//\1/ |
| 24559 | q |
| 24560 | } |
| 24561 | /^X\(\/\/\)[^/].*/{ |
| 24562 | s//\1/ |
| 24563 | q |
| 24564 | } |
| 24565 | /^X\(\/\/\)$/{ |
| 24566 | s//\1/ |
| 24567 | q |
| 24568 | } |
| 24569 | /^X\(\/\).*/{ |
| 24570 | s//\1/ |
| 24571 | q |
| 24572 | } |
| 24573 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 24574 | ;; |
| 24575 | |
| 24576 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 24577 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 24578 | ;; |
| 24579 | esac |
| 24580 | |
| 24581 | |
| 24582 | case $ac_file$ac_mode in |
| 24583 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 24584 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 24585 | # are listed without --file. Let's play safe and only enable the eval |
| 24586 | # if we detect the quoting. |
| 24587 | # TODO: see whether this extra hack can be removed once we start |
| 24588 | # requiring Autoconf 2.70 or later. |
| 24589 | case $CONFIG_FILES in #( |
| 24590 | *\'*) : |
| 24591 | eval set x "$CONFIG_FILES" ;; #( |
| 24592 | *) : |
| 24593 | set x $CONFIG_FILES ;; #( |
| 24594 | *) : |
| 24595 | ;; |
| 24596 | esac |
| 24597 | shift |
| 24598 | # Used to flag and report bootstrapping failures. |
| 24599 | am_rc=0 |
| 24600 | for am_mf |
| 24601 | do |
| 24602 | # Strip MF so we end up with the name of the file. |
| 24603 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 24604 | # Check whether this is an Automake generated Makefile which includes |
| 24605 | # dependency-tracking related rules and includes. |
| 24606 | # Grep'ing the whole file directly is not great: AIX grep has a line |
| 24607 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 24608 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 24609 | || continue |
| 24610 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 24611 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24612 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 24613 | X"$am_mf" : 'X\(//\)$' \| \ |
| 24614 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 24615 | printf "%s\n" X"$am_mf" | |
| 24616 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24617 | s//\1/ |
| 24618 | q |
| 24619 | } |
| 24620 | /^X\(\/\/\)[^/].*/{ |
| 24621 | s//\1/ |
| 24622 | q |
| 24623 | } |
| 24624 | /^X\(\/\/\)$/{ |
| 24625 | s//\1/ |
| 24626 | q |
| 24627 | } |
| 24628 | /^X\(\/\).*/{ |
| 24629 | s//\1/ |
| 24630 | q |
| 24631 | } |
| 24632 | s/.*/./; q'` |
| 24633 | am_filepart=`$as_basename -- "$am_mf" || |
| 24634 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24635 | X"$am_mf" : 'X\(//\)$' \| \ |
| 24636 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 24637 | printf "%s\n" X/"$am_mf" | |
| 24638 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 24639 | s//\1/ |
| 24640 | q |
| 24641 | } |
| 24642 | /^X\/\(\/\/\)$/{ |
| 24643 | s//\1/ |
| 24644 | q |
| 24645 | } |
| 24646 | /^X\/\(\/\).*/{ |
| 24647 | s//\1/ |
| 24648 | q |
| 24649 | } |
| 24650 | s/.*/./; q'` |
| 24651 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 24652 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 24653 | | $MAKE -f - am--depfiles" >&5 |
| 24654 | (cd "$am_dirpart" \ |
| 24655 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 24656 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 24657 | ac_status=$? |
| 24658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24659 | (exit $ac_status); } || am_rc=$? |
| 24660 | done |
| 24661 | if test $am_rc -ne 0; then |
| 24662 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 24663 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 24664 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 24665 | for automatic dependency tracking. If GNU make was not used, consider |
| 24666 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 24667 | necessary). You can also try re-running configure with the |
| 24668 | '--disable-dependency-tracking' option to at least be able to build |
| 24669 | the package (albeit without support for automatic dependency tracking). |
| 24670 | See 'config.log' for more details" "$LINENO" 5; } |
| 24671 | fi |
| 24672 | { am_dirpart=; unset am_dirpart;} |
| 24673 | { am_filepart=; unset am_filepart;} |
| 24674 | { am_mf=; unset am_mf;} |
| 24675 | { am_rc=; unset am_rc;} |
| 24676 | rm -f conftest-deps.mk |
| 24677 | } |
| 24678 | ;; |
| 24679 | "libtool":C) |
| 24680 | |
| 24681 | # See if we are running on zsh, and set the options that allow our |
| 24682 | # commands through without removal of \ escapes. |
| 24683 | if test -n "${ZSH_VERSION+set}"; then |
| 24684 | setopt NO_GLOB_SUBST |
| 24685 | fi |
| 24686 | |
| 24687 | cfgfile=${ofile}T |
| 24688 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 24689 | $RM "$cfgfile" |
| 24690 | |
| 24691 | cat <<_LT_EOF >> "$cfgfile" |
| 24692 | #! $SHELL |
| 24693 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 24694 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 24695 | |
| 24696 | # Provide generalized library-building support services. |
| 24697 | # Written by Gordon Matzigkeit, 1996 |
| 24698 | |
| 24699 | # Copyright (C) 2024 Free Software Foundation, Inc. |
| 24700 | # This is free software; see the source for copying conditions. There is NO |
| 24701 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 24702 | |
| 24703 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 24704 | # it under the terms of the GNU General Public License as published by |
| 24705 | # the Free Software Foundation; either version 2 of the License, or |
| 24706 | # (at your option) any later version. |
| 24707 | # |
| 24708 | # As a special exception to the GNU General Public License, if you |
| 24709 | # distribute this file as part of a program or library that is built |
| 24710 | # using GNU Libtool, you may include this file under the same |
| 24711 | # distribution terms that you use for the rest of that program. |
| 24712 | # |
| 24713 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 24714 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24715 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24716 | # GNU General Public License for more details. |
| 24717 | # |
| 24718 | # You should have received a copy of the GNU General Public License |
| 24719 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24720 | |
| 24721 | |
| 24722 | # The names of the tagged configurations supported by this script. |
| 24723 | available_tags='CXX ' |
| 24724 | |
| 24725 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 24726 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 24727 | |
| 24728 | # ### BEGIN LIBTOOL CONFIG |
| 24729 | |
| 24730 | # Which release of libtool.m4 was used? |
| 24731 | macro_version=$macro_version |
| 24732 | macro_revision=$macro_revision |
| 24733 | |
| 24734 | # Assembler program. |
| 24735 | AS=$lt_AS |
| 24736 | |
| 24737 | # DLL creation program. |
| 24738 | DLLTOOL=$lt_DLLTOOL |
| 24739 | |
| 24740 | # Object dumper program. |
| 24741 | OBJDUMP=$lt_OBJDUMP |
| 24742 | |
| 24743 | # Whether or not to build shared libraries. |
| 24744 | build_libtool_libs=$enable_shared |
| 24745 | |
| 24746 | # Whether or not to build static libraries. |
| 24747 | build_old_libs=$enable_static |
| 24748 | |
| 24749 | # What type of objects to build. |
| 24750 | pic_mode=$pic_mode |
| 24751 | |
| 24752 | # Whether or not to optimize for fast installation. |
| 24753 | fast_install=$enable_fast_install |
| 24754 | |
| 24755 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 24756 | shared_archive_member_spec=$shared_archive_member_spec |
| 24757 | |
| 24758 | # Shell to use when invoking shell scripts. |
| 24759 | SHELL=$lt_SHELL |
| 24760 | |
| 24761 | # An echo program that protects backslashes. |
| 24762 | ECHO=$lt_ECHO |
| 24763 | |
| 24764 | # The PATH separator for the build system. |
| 24765 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 24766 | |
| 24767 | # The host system. |
| 24768 | host_alias=$host_alias |
| 24769 | host=$host |
| 24770 | host_os=$host_os |
| 24771 | |
| 24772 | # The build system. |
| 24773 | build_alias=$build_alias |
| 24774 | build=$build |
| 24775 | build_os=$build_os |
| 24776 | |
| 24777 | # A sed program that does not truncate output. |
| 24778 | SED=$lt_SED |
| 24779 | |
| 24780 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 24781 | Xsed="\$SED -e 1s/^X//" |
| 24782 | |
| 24783 | # A grep program that handles long lines. |
| 24784 | GREP=$lt_GREP |
| 24785 | |
| 24786 | # An ERE matcher. |
| 24787 | EGREP=$lt_EGREP |
| 24788 | |
| 24789 | # A literal string matcher. |
| 24790 | FGREP=$lt_FGREP |
| 24791 | |
| 24792 | # A BSD- or MS-compatible name lister. |
| 24793 | NM=$lt_NM |
| 24794 | |
| 24795 | # Whether we need soft or hard links. |
| 24796 | LN_S=$lt_LN_S |
| 24797 | |
| 24798 | # What is the maximum length of a command? |
| 24799 | max_cmd_len=$max_cmd_len |
| 24800 | |
| 24801 | # Object file suffix (normally "o"). |
| 24802 | objext=$ac_objext |
| 24803 | |
| 24804 | # Executable file suffix (normally ""). |
| 24805 | exeext=$exeext |
| 24806 | |
| 24807 | # whether the shell understands "unset". |
| 24808 | lt_unset=$lt_unset |
| 24809 | |
| 24810 | # turn spaces into newlines. |
| 24811 | SP2NL=$lt_lt_SP2NL |
| 24812 | |
| 24813 | # turn newlines into spaces. |
| 24814 | NL2SP=$lt_lt_NL2SP |
| 24815 | |
| 24816 | # convert \$build file names to \$host format. |
| 24817 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 24818 | |
| 24819 | # convert \$build files to toolchain format. |
| 24820 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 24821 | |
| 24822 | # A file(cmd) program that detects file types. |
| 24823 | FILECMD=$lt_FILECMD |
| 24824 | |
| 24825 | # Method to check whether dependent libraries are shared objects. |
| 24826 | deplibs_check_method=$lt_deplibs_check_method |
| 24827 | |
| 24828 | # Command to use when deplibs_check_method = "file_magic". |
| 24829 | file_magic_cmd=$lt_file_magic_cmd |
| 24830 | |
| 24831 | # How to find potential files when deplibs_check_method = "file_magic". |
| 24832 | file_magic_glob=$lt_file_magic_glob |
| 24833 | |
| 24834 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 24835 | want_nocaseglob=$lt_want_nocaseglob |
| 24836 | |
| 24837 | # Command to associate shared and link libraries. |
| 24838 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 24839 | |
| 24840 | # The archiver. |
| 24841 | AR=$lt_AR |
| 24842 | |
| 24843 | # Flags to create an archive (by configure). |
| 24844 | lt_ar_flags=$lt_ar_flags |
| 24845 | |
| 24846 | # Flags to create an archive. |
| 24847 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 24848 | |
| 24849 | # How to feed a file listing to the archiver. |
| 24850 | archiver_list_spec=$lt_archiver_list_spec |
| 24851 | |
| 24852 | # A symbol stripping program. |
| 24853 | STRIP=$lt_STRIP |
| 24854 | |
| 24855 | # Commands used to install an old-style archive. |
| 24856 | RANLIB=$lt_RANLIB |
| 24857 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24858 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24859 | |
| 24860 | # Whether to use a lock for old archive extraction. |
| 24861 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 24862 | |
| 24863 | # A C compiler. |
| 24864 | LTCC=$lt_CC |
| 24865 | |
| 24866 | # LTCC compiler flags. |
| 24867 | LTCFLAGS=$lt_CFLAGS |
| 24868 | |
| 24869 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24870 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24871 | |
| 24872 | # Transform the output of nm in a proper C declaration. |
| 24873 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24874 | |
| 24875 | # Transform the output of nm into a list of symbols to manually relocate. |
| 24876 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 24877 | |
| 24878 | # Transform the output of nm in a C name address pair. |
| 24879 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24880 | |
| 24881 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 24882 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 24883 | |
| 24884 | # The name lister interface. |
| 24885 | nm_interface=$lt_lt_cv_nm_interface |
| 24886 | |
| 24887 | # Specify filename containing input files for \$NM. |
| 24888 | nm_file_list_spec=$lt_nm_file_list_spec |
| 24889 | |
| 24890 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 24891 | lt_sysroot=$lt_sysroot |
| 24892 | |
| 24893 | # Command to truncate a binary pipe. |
| 24894 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 24895 | |
| 24896 | # The name of the directory that contains temporary libtool files. |
| 24897 | objdir=$objdir |
| 24898 | |
| 24899 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 24900 | MAGIC_CMD=$MAGIC_CMD |
| 24901 | |
| 24902 | # Must we lock files when doing compilation? |
| 24903 | need_locks=$lt_need_locks |
| 24904 | |
| 24905 | # Manifest tool. |
| 24906 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 24907 | |
| 24908 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 24909 | DSYMUTIL=$lt_DSYMUTIL |
| 24910 | |
| 24911 | # Tool to change global to local symbols on Mac OS X. |
| 24912 | NMEDIT=$lt_NMEDIT |
| 24913 | |
| 24914 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 24915 | LIPO=$lt_LIPO |
| 24916 | |
| 24917 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 24918 | OTOOL=$lt_OTOOL |
| 24919 | |
| 24920 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 24921 | OTOOL64=$lt_OTOOL64 |
| 24922 | |
| 24923 | # Old archive suffix (normally "a"). |
| 24924 | libext=$libext |
| 24925 | |
| 24926 | # Shared library suffix (normally ".so"). |
| 24927 | shrext_cmds=$lt_shrext_cmds |
| 24928 | |
| 24929 | # The commands to extract the exported symbol list from a shared archive. |
| 24930 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24931 | |
| 24932 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24933 | # restored at link time. |
| 24934 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 24935 | |
| 24936 | # Do we need the "lib" prefix for modules? |
| 24937 | need_lib_prefix=$need_lib_prefix |
| 24938 | |
| 24939 | # Do we need a version for libraries? |
| 24940 | need_version=$need_version |
| 24941 | |
| 24942 | # Library versioning type. |
| 24943 | version_type=$version_type |
| 24944 | |
| 24945 | # Shared library runtime path variable. |
| 24946 | runpath_var=$runpath_var |
| 24947 | |
| 24948 | # Shared library path variable. |
| 24949 | shlibpath_var=$shlibpath_var |
| 24950 | |
| 24951 | # Is shlibpath searched before the hard-coded library search path? |
| 24952 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24953 | |
| 24954 | # Format of library name prefix. |
| 24955 | libname_spec=$lt_libname_spec |
| 24956 | |
| 24957 | # List of archive names. First name is the real one, the rest are links. |
| 24958 | # The last name is the one that the linker finds with -lNAME |
| 24959 | library_names_spec=$lt_library_names_spec |
| 24960 | |
| 24961 | # The coded name of the library, if different from the real name. |
| 24962 | soname_spec=$lt_soname_spec |
| 24963 | |
| 24964 | # Permission mode override for installation of shared libraries. |
| 24965 | install_override_mode=$lt_install_override_mode |
| 24966 | |
| 24967 | # Command to use after installation of a shared archive. |
| 24968 | postinstall_cmds=$lt_postinstall_cmds |
| 24969 | |
| 24970 | # Command to use after uninstallation of a shared archive. |
| 24971 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24972 | |
| 24973 | # Commands used to finish a libtool library installation in a directory. |
| 24974 | finish_cmds=$lt_finish_cmds |
| 24975 | |
| 24976 | # As "finish_cmds", except a single script fragment to be evaled but |
| 24977 | # not shown. |
| 24978 | finish_eval=$lt_finish_eval |
| 24979 | |
| 24980 | # Whether we should hardcode library paths into libraries. |
| 24981 | hardcode_into_libs=$hardcode_into_libs |
| 24982 | |
| 24983 | # Compile-time system search path for libraries. |
| 24984 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24985 | |
| 24986 | # Detected run-time system search path for libraries. |
| 24987 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 24988 | |
| 24989 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 24990 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 24991 | |
| 24992 | # Whether dlopen is supported. |
| 24993 | dlopen_support=$enable_dlopen |
| 24994 | |
| 24995 | # Whether dlopen of programs is supported. |
| 24996 | dlopen_self=$enable_dlopen_self |
| 24997 | |
| 24998 | # Whether dlopen of statically linked programs is supported. |
| 24999 | dlopen_self_static=$enable_dlopen_self_static |
| 25000 | |
| 25001 | # Commands to strip libraries. |
| 25002 | old_striplib=$lt_old_striplib |
| 25003 | striplib=$lt_striplib |
| 25004 | |
| 25005 | |
| 25006 | # The linker used to build libraries. |
| 25007 | LD=$lt_LD |
| 25008 | |
| 25009 | # How to create reloadable object files. |
| 25010 | reload_flag=$lt_reload_flag |
| 25011 | reload_cmds=$lt_reload_cmds |
| 25012 | |
| 25013 | # Commands used to build an old-style archive. |
| 25014 | old_archive_cmds=$lt_old_archive_cmds |
| 25015 | |
| 25016 | # A language specific compiler. |
| 25017 | CC=$lt_compiler |
| 25018 | |
| 25019 | # Is the compiler the GNU compiler? |
| 25020 | with_gcc=$GCC |
| 25021 | |
| 25022 | # Compiler flag to turn off builtin functions. |
| 25023 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 25024 | |
| 25025 | # Additional compiler flags for building library objects. |
| 25026 | pic_flag=$lt_lt_prog_compiler_pic |
| 25027 | |
| 25028 | # How to pass a linker flag through the compiler. |
| 25029 | wl=$lt_lt_prog_compiler_wl |
| 25030 | |
| 25031 | # Compiler flag to prevent dynamic linking. |
| 25032 | link_static_flag=$lt_lt_prog_compiler_static |
| 25033 | |
| 25034 | # Does compiler simultaneously support -c and -o options? |
| 25035 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 25036 | |
| 25037 | # Whether or not to add -lc for building shared libraries. |
| 25038 | build_libtool_need_lc=$archive_cmds_need_lc |
| 25039 | |
| 25040 | # Whether or not to disallow shared libs when runtime libs are static. |
| 25041 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 25042 | |
| 25043 | # Compiler flag to allow reflexive dlopens. |
| 25044 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 25045 | |
| 25046 | # Compiler flag to generate shared objects directly from archives. |
| 25047 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 25048 | |
| 25049 | # Whether the compiler copes with passing no objects directly. |
| 25050 | compiler_needs_object=$lt_compiler_needs_object |
| 25051 | |
| 25052 | # Create an old-style archive from a shared archive. |
| 25053 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 25054 | |
| 25055 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25056 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 25057 | |
| 25058 | # Commands used to build a shared archive. |
| 25059 | archive_cmds=$lt_archive_cmds |
| 25060 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 25061 | |
| 25062 | # Commands used to build a loadable module if different from building |
| 25063 | # a shared archive. |
| 25064 | module_cmds=$lt_module_cmds |
| 25065 | module_expsym_cmds=$lt_module_expsym_cmds |
| 25066 | |
| 25067 | # Whether we are building with GNU ld or not. |
| 25068 | with_gnu_ld=$lt_with_gnu_ld |
| 25069 | |
| 25070 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25071 | allow_undefined_flag=$lt_allow_undefined_flag |
| 25072 | |
| 25073 | # Flag that enforces no undefined symbols. |
| 25074 | no_undefined_flag=$lt_no_undefined_flag |
| 25075 | |
| 25076 | # Flag to hardcode \$libdir into a binary during linking. |
| 25077 | # This must work even if \$libdir does not exist |
| 25078 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 25079 | |
| 25080 | # Whether we need a single "-rpath" flag with a separated argument. |
| 25081 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 25082 | |
| 25083 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 25084 | # DIR into the resulting binary. |
| 25085 | hardcode_direct=$hardcode_direct |
| 25086 | |
| 25087 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 25088 | # DIR into the resulting binary and the resulting library dependency is |
| 25089 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 25090 | # library is relocated. |
| 25091 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 25092 | |
| 25093 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 25094 | # into the resulting binary. |
| 25095 | hardcode_minus_L=$hardcode_minus_L |
| 25096 | |
| 25097 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 25098 | # into the resulting binary. |
| 25099 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 25100 | |
| 25101 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 25102 | # into the library and all subsequent libraries and executables linked |
| 25103 | # against it. |
| 25104 | hardcode_automatic=$hardcode_automatic |
| 25105 | |
| 25106 | # Set to yes if linker adds runtime paths of dependent libraries |
| 25107 | # to runtime path list. |
| 25108 | inherit_rpath=$inherit_rpath |
| 25109 | |
| 25110 | # Whether libtool must link a program against all its dependency libraries. |
| 25111 | link_all_deplibs=$link_all_deplibs |
| 25112 | |
| 25113 | # Set to "yes" if exported symbols are required. |
| 25114 | always_export_symbols=$always_export_symbols |
| 25115 | |
| 25116 | # The commands to list exported symbols. |
| 25117 | export_symbols_cmds=$lt_export_symbols_cmds |
| 25118 | |
| 25119 | # Symbols that should not be listed in the preloaded symbols. |
| 25120 | exclude_expsyms=$lt_exclude_expsyms |
| 25121 | |
| 25122 | # Symbols that must always be exported. |
| 25123 | include_expsyms=$lt_include_expsyms |
| 25124 | |
| 25125 | # Commands necessary for linking programs (against libraries) with templates. |
| 25126 | prelink_cmds=$lt_prelink_cmds |
| 25127 | |
| 25128 | # Commands necessary for finishing linking programs. |
| 25129 | postlink_cmds=$lt_postlink_cmds |
| 25130 | |
| 25131 | # Specify filename containing input files. |
| 25132 | file_list_spec=$lt_file_list_spec |
| 25133 | |
| 25134 | # How to hardcode a shared library path into an executable. |
| 25135 | hardcode_action=$hardcode_action |
| 25136 | |
| 25137 | # The directories searched by this compiler when creating a shared library. |
| 25138 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 25139 | |
| 25140 | # Dependencies to place before and after the objects being linked to |
| 25141 | # create a shared library. |
| 25142 | predep_objects=$lt_predep_objects |
| 25143 | postdep_objects=$lt_postdep_objects |
| 25144 | predeps=$lt_predeps |
| 25145 | postdeps=$lt_postdeps |
| 25146 | |
| 25147 | # The library search path used internally by the compiler when linking |
| 25148 | # a shared library. |
| 25149 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 25150 | |
| 25151 | # ### END LIBTOOL CONFIG |
| 25152 | |
| 25153 | _LT_EOF |
| 25154 | |
| 25155 | cat <<'_LT_EOF' >> "$cfgfile" |
| 25156 | |
| 25157 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 25158 | |
| 25159 | # func_munge_path_list VARIABLE PATH |
| 25160 | # ----------------------------------- |
| 25161 | # VARIABLE is name of variable containing _space_ separated list of |
| 25162 | # directories to be munged by the contents of PATH, which is string |
| 25163 | # having a format: |
| 25164 | # "DIR[:DIR]:" |
| 25165 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 25166 | # ":DIR[:DIR]" |
| 25167 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 25168 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 25169 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 25170 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 25171 | # "DIR[:DIR]" |
| 25172 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 25173 | func_munge_path_list () |
| 25174 | { |
| 25175 | case x$2 in |
| 25176 | x) |
| 25177 | ;; |
| 25178 | *:) |
| 25179 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 25180 | ;; |
| 25181 | x:*) |
| 25182 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 25183 | ;; |
| 25184 | *::*) |
| 25185 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 25186 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 25187 | ;; |
| 25188 | *) |
| 25189 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 25190 | ;; |
| 25191 | esac |
| 25192 | } |
| 25193 | |
| 25194 | |
| 25195 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 25196 | func_cc_basename () |
| 25197 | { |
| 25198 | for cc_temp in $*""; do |
| 25199 | case $cc_temp in |
| 25200 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 25201 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 25202 | \-*) ;; |
| 25203 | *) break;; |
| 25204 | esac |
| 25205 | done |
| 25206 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 25207 | } |
| 25208 | |
| 25209 | |
| 25210 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 25211 | |
| 25212 | _LT_EOF |
| 25213 | |
| 25214 | case $host_os in |
| 25215 | aix3*) |
| 25216 | cat <<\_LT_EOF >> "$cfgfile" |
| 25217 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 25218 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 25219 | # vanish in a puff of smoke. |
| 25220 | if test set != "${COLLECT_NAMES+set}"; then |
| 25221 | COLLECT_NAMES= |
| 25222 | export COLLECT_NAMES |
| 25223 | fi |
| 25224 | _LT_EOF |
| 25225 | ;; |
| 25226 | esac |
| 25227 | |
| 25228 | |
| 25229 | |
| 25230 | ltmain=$ac_aux_dir/ltmain.sh |
| 25231 | |
| 25232 | |
| 25233 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 25234 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 25235 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 25236 | # is reportedly fixed, but why not run on old versions too? |
| 25237 | $SED '$q' "$ltmain" >> "$cfgfile" \ |
| 25238 | || (rm -f "$cfgfile"; exit 1) |
| 25239 | |
| 25240 | mv -f "$cfgfile" "$ofile" || |
| 25241 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 25242 | chmod +x "$ofile" |
| 25243 | |
| 25244 | |
| 25245 | cat <<_LT_EOF >> "$ofile" |
| 25246 | |
| 25247 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 25248 | |
| 25249 | # The linker used to build libraries. |
| 25250 | LD=$lt_LD_CXX |
| 25251 | |
| 25252 | # How to create reloadable object files. |
| 25253 | reload_flag=$lt_reload_flag_CXX |
| 25254 | reload_cmds=$lt_reload_cmds_CXX |
| 25255 | |
| 25256 | # Commands used to build an old-style archive. |
| 25257 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 25258 | |
| 25259 | # A language specific compiler. |
| 25260 | CC=$lt_compiler_CXX |
| 25261 | |
| 25262 | # Is the compiler the GNU compiler? |
| 25263 | with_gcc=$GCC_CXX |
| 25264 | |
| 25265 | # Compiler flag to turn off builtin functions. |
| 25266 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 25267 | |
| 25268 | # Additional compiler flags for building library objects. |
| 25269 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 25270 | |
| 25271 | # How to pass a linker flag through the compiler. |
| 25272 | wl=$lt_lt_prog_compiler_wl_CXX |
| 25273 | |
| 25274 | # Compiler flag to prevent dynamic linking. |
| 25275 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 25276 | |
| 25277 | # Does compiler simultaneously support -c and -o options? |
| 25278 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 25279 | |
| 25280 | # Whether or not to add -lc for building shared libraries. |
| 25281 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 25282 | |
| 25283 | # Whether or not to disallow shared libs when runtime libs are static. |
| 25284 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 25285 | |
| 25286 | # Compiler flag to allow reflexive dlopens. |
| 25287 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 25288 | |
| 25289 | # Compiler flag to generate shared objects directly from archives. |
| 25290 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 25291 | |
| 25292 | # Whether the compiler copes with passing no objects directly. |
| 25293 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 25294 | |
| 25295 | # Create an old-style archive from a shared archive. |
| 25296 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 25297 | |
| 25298 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25299 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 25300 | |
| 25301 | # Commands used to build a shared archive. |
| 25302 | archive_cmds=$lt_archive_cmds_CXX |
| 25303 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 25304 | |
| 25305 | # Commands used to build a loadable module if different from building |
| 25306 | # a shared archive. |
| 25307 | module_cmds=$lt_module_cmds_CXX |
| 25308 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 25309 | |
| 25310 | # Whether we are building with GNU ld or not. |
| 25311 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 25312 | |
| 25313 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25314 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 25315 | |
| 25316 | # Flag that enforces no undefined symbols. |
| 25317 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 25318 | |
| 25319 | # Flag to hardcode \$libdir into a binary during linking. |
| 25320 | # This must work even if \$libdir does not exist |
| 25321 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 25322 | |
| 25323 | # Whether we need a single "-rpath" flag with a separated argument. |
| 25324 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 25325 | |
| 25326 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 25327 | # DIR into the resulting binary. |
| 25328 | hardcode_direct=$hardcode_direct_CXX |
| 25329 | |
| 25330 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 25331 | # DIR into the resulting binary and the resulting library dependency is |
| 25332 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 25333 | # library is relocated. |
| 25334 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 25335 | |
| 25336 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 25337 | # into the resulting binary. |
| 25338 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 25339 | |
| 25340 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 25341 | # into the resulting binary. |
| 25342 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 25343 | |
| 25344 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 25345 | # into the library and all subsequent libraries and executables linked |
| 25346 | # against it. |
| 25347 | hardcode_automatic=$hardcode_automatic_CXX |
| 25348 | |
| 25349 | # Set to yes if linker adds runtime paths of dependent libraries |
| 25350 | # to runtime path list. |
| 25351 | inherit_rpath=$inherit_rpath_CXX |
| 25352 | |
| 25353 | # Whether libtool must link a program against all its dependency libraries. |
| 25354 | link_all_deplibs=$link_all_deplibs_CXX |
| 25355 | |
| 25356 | # Set to "yes" if exported symbols are required. |
| 25357 | always_export_symbols=$always_export_symbols_CXX |
| 25358 | |
| 25359 | # The commands to list exported symbols. |
| 25360 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 25361 | |
| 25362 | # Symbols that should not be listed in the preloaded symbols. |
| 25363 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 25364 | |
| 25365 | # Symbols that must always be exported. |
| 25366 | include_expsyms=$lt_include_expsyms_CXX |
| 25367 | |
| 25368 | # Commands necessary for linking programs (against libraries) with templates. |
| 25369 | prelink_cmds=$lt_prelink_cmds_CXX |
| 25370 | |
| 25371 | # Commands necessary for finishing linking programs. |
| 25372 | postlink_cmds=$lt_postlink_cmds_CXX |
| 25373 | |
| 25374 | # Specify filename containing input files. |
| 25375 | file_list_spec=$lt_file_list_spec_CXX |
| 25376 | |
| 25377 | # How to hardcode a shared library path into an executable. |
| 25378 | hardcode_action=$hardcode_action_CXX |
| 25379 | |
| 25380 | # The directories searched by this compiler when creating a shared library. |
| 25381 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 25382 | |
| 25383 | # Dependencies to place before and after the objects being linked to |
| 25384 | # create a shared library. |
| 25385 | predep_objects=$lt_predep_objects_CXX |
| 25386 | postdep_objects=$lt_postdep_objects_CXX |
| 25387 | predeps=$lt_predeps_CXX |
| 25388 | postdeps=$lt_postdeps_CXX |
| 25389 | |
| 25390 | # The library search path used internally by the compiler when linking |
| 25391 | # a shared library. |
| 25392 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 25393 | |
| 25394 | # ### END LIBTOOL TAG CONFIG: CXX |
| 25395 | _LT_EOF |
| 25396 | |
| 25397 | ;; |
| 25398 | "CXXLD.sh":C) echo "$cxxld_sh" >CXXLD.sh; chmod +x CXXLD.sh ;; |
| 25399 | |
| 25400 | esac |
| 25401 | done # for ac_tag |
| 25402 | |
| 25403 | |
| 25404 | as_fn_exit 0 |
| 25405 | _ACEOF |
| 25406 | ac_clean_files=$ac_clean_files_save |
| 25407 | |
| 25408 | test $ac_write_fail = 0 || |
| 25409 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 25410 | |
| 25411 | |
| 25412 | # configure is writing to config.log, and then calls config.status. |
| 25413 | # config.status does its own redirection, appending to config.log. |
| 25414 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25415 | # by configure, so config.status won't be able to write to it; its |
| 25416 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25417 | # effectively closing config.log, so it can be properly (re)opened and |
| 25418 | # appended to by config.status. When coming back to configure, we |
| 25419 | # need to make the FD available again. |
| 25420 | if test "$no_create" != yes; then |
| 25421 | ac_cs_success=: |
| 25422 | ac_config_status_args= |
| 25423 | test "$silent" = yes && |
| 25424 | ac_config_status_args="$ac_config_status_args --quiet" |
| 25425 | exec 5>/dev/null |
| 25426 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 25427 | exec 5>>config.log |
| 25428 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25429 | # would make configure fail if this is the last instruction. |
| 25430 | $ac_cs_success || as_fn_exit 1 |
| 25431 | fi |
| 25432 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 25433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 25434 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 25435 | fi |
| 25436 | |
| 25437 |