| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.71 for Libvisual Library 0.4.2. |
| 4 | # |
| 5 | # Report bugs to <https://github.com/Libvisual/libvisual/issues>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 | as_nop=: |
| 21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 22 | then : |
| 23 | emulate sh |
| 24 | NULLCMD=: |
| 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
| 28 | setopt NO_GLOB_SUBST |
| 29 | else $as_nop |
| 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
| 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="as_nop=: |
| 144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 145 | then : |
| 146 | emulate sh |
| 147 | NULLCMD=: |
| 148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 149 | # is contrary to our usage. Disable this feature. |
| 150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 151 | setopt NO_GLOB_SUBST |
| 152 | else \$as_nop |
| 153 | case \`(set -o) 2>/dev/null\` in #( |
| 154 | *posix*) : |
| 155 | set -o posix ;; #( |
| 156 | *) : |
| 157 | ;; |
| 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 \$as_nop |
| 176 | exitcode=1; echo positional parameters were not saved. |
| 177 | fi |
| 178 | test x\$exitcode = x0 || exit 1 |
| 179 | blah=\$(echo \$(echo blah)) |
| 180 | test x\"\$blah\" = xblah || exit 1 |
| 181 | test -x / || exit 1" |
| 182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 186 | |
| 187 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 188 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 189 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 190 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 191 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 192 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 193 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 194 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 195 | if (eval "$as_required") 2>/dev/null |
| 196 | then : |
| 197 | as_have_required=yes |
| 198 | else $as_nop |
| 199 | as_have_required=no |
| 200 | fi |
| 201 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 202 | then : |
| 203 | |
| 204 | else $as_nop |
| 205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 206 | as_found=false |
| 207 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 208 | do |
| 209 | IFS=$as_save_IFS |
| 210 | case $as_dir in #((( |
| 211 | '') as_dir=./ ;; |
| 212 | */) ;; |
| 213 | *) as_dir=$as_dir/ ;; |
| 214 | esac |
| 215 | as_found=: |
| 216 | case $as_dir in #( |
| 217 | /*) |
| 218 | for as_base in sh bash ksh sh5; do |
| 219 | # Try only shells that exist, to save several forks. |
| 220 | as_shell=$as_dir$as_base |
| 221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 222 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 223 | then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 226 | then : |
| 227 | break 2 |
| 228 | fi |
| 229 | fi |
| 230 | done;; |
| 231 | esac |
| 232 | as_found=false |
| 233 | done |
| 234 | IFS=$as_save_IFS |
| 235 | if $as_found |
| 236 | then : |
| 237 | |
| 238 | else $as_nop |
| 239 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 240 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 241 | then : |
| 242 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 243 | fi |
| 244 | fi |
| 245 | |
| 246 | |
| 247 | if test "x$CONFIG_SHELL" != x |
| 248 | then : |
| 249 | export CONFIG_SHELL |
| 250 | # We cannot yet assume a decent shell, so we have to provide a |
| 251 | # neutralization value for shells without unset; and this also |
| 252 | # works around shells that cannot unset nonexistent variables. |
| 253 | # Preserve -v and -x to the replacement shell. |
| 254 | BASH_ENV=/dev/null |
| 255 | ENV=/dev/null |
| 256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 | case $- in # (((( |
| 258 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 259 | *v* ) as_opts=-v ;; |
| 260 | *x* ) as_opts=-x ;; |
| 261 | * ) as_opts= ;; |
| 262 | esac |
| 263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 265 | # out after a failed `exec'. |
| 266 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 | exit 255 |
| 268 | fi |
| 269 | |
| 270 | if test x$as_have_required = xno |
| 271 | then : |
| 272 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 273 | printf "%s\n" "$0: the shells that I found on your system." |
| 274 | if test ${ZSH_VERSION+y} ; then |
| 275 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 276 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 277 | else |
| 278 | printf "%s\n" "$0: Please tell [email protected] and |
| 279 | $0: https://github.com/Libvisual/libvisual/issues about |
| 280 | $0: your system, including any error possibly output before |
| 281 | $0: this message. Then install a modern shell, or manually |
| 282 | $0: run the script under such a shell if you do have one." |
| 283 | fi |
| 284 | exit 1 |
| 285 | fi |
| 286 | fi |
| 287 | fi |
| 288 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 289 | export SHELL |
| 290 | # Unset more variables known to interfere with behavior of common tools. |
| 291 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 292 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 293 | |
| 294 | ## --------------------- ## |
| 295 | ## M4sh Shell Functions. ## |
| 296 | ## --------------------- ## |
| 297 | # as_fn_unset VAR |
| 298 | # --------------- |
| 299 | # Portably unset VAR. |
| 300 | as_fn_unset () |
| 301 | { |
| 302 | { eval $1=; unset $1;} |
| 303 | } |
| 304 | as_unset=as_fn_unset |
| 305 | |
| 306 | |
| 307 | # as_fn_set_status STATUS |
| 308 | # ----------------------- |
| 309 | # Set $? to STATUS, without forking. |
| 310 | as_fn_set_status () |
| 311 | { |
| 312 | return $1 |
| 313 | } # as_fn_set_status |
| 314 | |
| 315 | # as_fn_exit STATUS |
| 316 | # ----------------- |
| 317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 318 | as_fn_exit () |
| 319 | { |
| 320 | set +e |
| 321 | as_fn_set_status $1 |
| 322 | exit $1 |
| 323 | } # as_fn_exit |
| 324 | # as_fn_nop |
| 325 | # --------- |
| 326 | # Do nothing but, unlike ":", preserve the value of $?. |
| 327 | as_fn_nop () |
| 328 | { |
| 329 | return $? |
| 330 | } |
| 331 | as_nop=as_fn_nop |
| 332 | |
| 333 | # as_fn_mkdir_p |
| 334 | # ------------- |
| 335 | # Create "$as_dir" as a directory, including parents if necessary. |
| 336 | as_fn_mkdir_p () |
| 337 | { |
| 338 | |
| 339 | case $as_dir in #( |
| 340 | -*) as_dir=./$as_dir;; |
| 341 | esac |
| 342 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 343 | as_dirs= |
| 344 | while :; do |
| 345 | case $as_dir in #( |
| 346 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 347 | *) as_qdir=$as_dir;; |
| 348 | esac |
| 349 | as_dirs="'$as_qdir' $as_dirs" |
| 350 | as_dir=`$as_dirname -- "$as_dir" || |
| 351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 352 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 353 | X"$as_dir" : 'X\(//\)$' \| \ |
| 354 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 355 | printf "%s\n" X"$as_dir" | |
| 356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 357 | s//\1/ |
| 358 | q |
| 359 | } |
| 360 | /^X\(\/\/\)[^/].*/{ |
| 361 | s//\1/ |
| 362 | q |
| 363 | } |
| 364 | /^X\(\/\/\)$/{ |
| 365 | s//\1/ |
| 366 | q |
| 367 | } |
| 368 | /^X\(\/\).*/{ |
| 369 | s//\1/ |
| 370 | q |
| 371 | } |
| 372 | s/.*/./; q'` |
| 373 | test -d "$as_dir" && break |
| 374 | done |
| 375 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 376 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 377 | |
| 378 | |
| 379 | } # as_fn_mkdir_p |
| 380 | |
| 381 | # as_fn_executable_p FILE |
| 382 | # ----------------------- |
| 383 | # Test if FILE is an executable regular file. |
| 384 | as_fn_executable_p () |
| 385 | { |
| 386 | test -f "$1" && test -x "$1" |
| 387 | } # as_fn_executable_p |
| 388 | # as_fn_append VAR VALUE |
| 389 | # ---------------------- |
| 390 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 391 | # advantage of any shell optimizations that allow amortized linear growth over |
| 392 | # repeated appends, instead of the typical quadratic growth present in naive |
| 393 | # implementations. |
| 394 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 395 | then : |
| 396 | eval 'as_fn_append () |
| 397 | { |
| 398 | eval $1+=\$2 |
| 399 | }' |
| 400 | else $as_nop |
| 401 | as_fn_append () |
| 402 | { |
| 403 | eval $1=\$$1\$2 |
| 404 | } |
| 405 | fi # as_fn_append |
| 406 | |
| 407 | # as_fn_arith ARG... |
| 408 | # ------------------ |
| 409 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 410 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 411 | # must be portable across $(()) and expr. |
| 412 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 413 | then : |
| 414 | eval 'as_fn_arith () |
| 415 | { |
| 416 | as_val=$(( $* )) |
| 417 | }' |
| 418 | else $as_nop |
| 419 | as_fn_arith () |
| 420 | { |
| 421 | as_val=`expr "$@" || test $? -eq 1` |
| 422 | } |
| 423 | fi # as_fn_arith |
| 424 | |
| 425 | # as_fn_nop |
| 426 | # --------- |
| 427 | # Do nothing but, unlike ":", preserve the value of $?. |
| 428 | as_fn_nop () |
| 429 | { |
| 430 | return $? |
| 431 | } |
| 432 | as_nop=as_fn_nop |
| 433 | |
| 434 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 435 | # ---------------------------------------- |
| 436 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 437 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 438 | # script with STATUS, using 1 if that was 0. |
| 439 | as_fn_error () |
| 440 | { |
| 441 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 442 | if test "$4"; then |
| 443 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 444 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 445 | fi |
| 446 | printf "%s\n" "$as_me: error: $2" >&2 |
| 447 | as_fn_exit $as_status |
| 448 | } # as_fn_error |
| 449 | |
| 450 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 451 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 452 | as_expr=expr |
| 453 | else |
| 454 | as_expr=false |
| 455 | fi |
| 456 | |
| 457 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 458 | as_basename=basename |
| 459 | else |
| 460 | as_basename=false |
| 461 | fi |
| 462 | |
| 463 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 464 | as_dirname=dirname |
| 465 | else |
| 466 | as_dirname=false |
| 467 | fi |
| 468 | |
| 469 | as_me=`$as_basename -- "$0" || |
| 470 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 471 | X"$0" : 'X\(//\)$' \| \ |
| 472 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 473 | printf "%s\n" X/"$0" | |
| 474 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 475 | s//\1/ |
| 476 | q |
| 477 | } |
| 478 | /^X\/\(\/\/\)$/{ |
| 479 | s//\1/ |
| 480 | q |
| 481 | } |
| 482 | /^X\/\(\/\).*/{ |
| 483 | s//\1/ |
| 484 | q |
| 485 | } |
| 486 | s/.*/./; q'` |
| 487 | |
| 488 | # Avoid depending upon Character Ranges. |
| 489 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 490 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 491 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 492 | as_cr_digits='0123456789' |
| 493 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 494 | |
| 495 | |
| 496 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 497 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 498 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 499 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 500 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 501 | sed -n ' |
| 502 | p |
| 503 | /[$]LINENO/= |
| 504 | ' <$as_myself | |
| 505 | sed ' |
| 506 | s/[$]LINENO.*/&-/ |
| 507 | t lineno |
| 508 | b |
| 509 | :lineno |
| 510 | N |
| 511 | :loop |
| 512 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 513 | t loop |
| 514 | s/-\n.*// |
| 515 | ' >$as_me.lineno && |
| 516 | chmod +x "$as_me.lineno" || |
| 517 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 518 | |
| 519 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 520 | # already done that, so ensure we don't try to do so again and fall |
| 521 | # in an infinite loop. This has already happened in practice. |
| 522 | _as_can_reexec=no; export _as_can_reexec |
| 523 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 524 | # (the dirname of $[0] is not the place where we might find the |
| 525 | # original and so on. Autoconf is especially sensitive to this). |
| 526 | . "./$as_me.lineno" |
| 527 | # Exit status is that of the last command. |
| 528 | exit |
| 529 | } |
| 530 | |
| 531 | |
| 532 | # Determine whether it's possible to make 'echo' print without a newline. |
| 533 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 534 | # for compatibility with existing Makefiles. |
| 535 | ECHO_C= ECHO_N= ECHO_T= |
| 536 | case `echo -n x` in #((((( |
| 537 | -n*) |
| 538 | case `echo 'xy\c'` in |
| 539 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 540 | xy) ECHO_C='\c';; |
| 541 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 542 | ECHO_T=' ';; |
| 543 | esac;; |
| 544 | *) |
| 545 | ECHO_N='-n';; |
| 546 | esac |
| 547 | |
| 548 | # For backward compatibility with old third-party macros, we provide |
| 549 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 550 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 551 | as_echo='printf %s\n' |
| 552 | as_echo_n='printf %s' |
| 553 | |
| 554 | |
| 555 | rm -f conf$$ conf$$.exe conf$$.file |
| 556 | if test -d conf$$.dir; then |
| 557 | rm -f conf$$.dir/conf$$.file |
| 558 | else |
| 559 | rm -f conf$$.dir |
| 560 | mkdir conf$$.dir 2>/dev/null |
| 561 | fi |
| 562 | if (echo >conf$$.file) 2>/dev/null; then |
| 563 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 564 | as_ln_s='ln -s' |
| 565 | # ... but there are two gotchas: |
| 566 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 567 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 568 | # In both cases, we have to default to `cp -pR'. |
| 569 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 570 | as_ln_s='cp -pR' |
| 571 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 572 | as_ln_s=ln |
| 573 | else |
| 574 | as_ln_s='cp -pR' |
| 575 | fi |
| 576 | else |
| 577 | as_ln_s='cp -pR' |
| 578 | fi |
| 579 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 580 | rmdir conf$$.dir 2>/dev/null |
| 581 | |
| 582 | if mkdir -p . 2>/dev/null; then |
| 583 | as_mkdir_p='mkdir -p "$as_dir"' |
| 584 | else |
| 585 | test -d ./-p && rmdir ./-p |
| 586 | as_mkdir_p=false |
| 587 | fi |
| 588 | |
| 589 | as_test_x='test -x' |
| 590 | as_executable_p=as_fn_executable_p |
| 591 | |
| 592 | # Sed expression to map a string onto a valid CPP name. |
| 593 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 594 | |
| 595 | # Sed expression to map a string onto a valid variable name. |
| 596 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 597 | |
| 598 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 599 | |
| 600 | |
| 601 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 602 | exec 6>&1 |
| 603 | |
| 604 | # Name of the host. |
| 605 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 606 | # so uname gets run too. |
| 607 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 608 | |
| 609 | # |
| 610 | # Initializations. |
| 611 | # |
| 612 | ac_default_prefix=/usr/local |
| 613 | ac_clean_files= |
| 614 | ac_config_libobj_dir=. |
| 615 | LIBOBJS= |
| 616 | cross_compiling=no |
| 617 | subdirs= |
| 618 | MFLAGS= |
| 619 | MAKEFLAGS= |
| 620 | |
| 621 | # Identity of this package. |
| 622 | PACKAGE_NAME='Libvisual Library' |
| 623 | PACKAGE_TARNAME='libvisual' |
| 624 | PACKAGE_VERSION='0.4.2' |
| 625 | PACKAGE_STRING='Libvisual Library 0.4.2' |
| 626 | PACKAGE_BUGREPORT='https://github.com/Libvisual/libvisual/issues' |
| 627 | PACKAGE_URL='https://github.com/Libvisual/libvisual' |
| 628 | |
| 629 | # Factoring default headers for most tests. |
| 630 | ac_includes_default="\ |
| 631 | #include <stddef.h> |
| 632 | #ifdef HAVE_STDIO_H |
| 633 | # include <stdio.h> |
| 634 | #endif |
| 635 | #ifdef HAVE_STDLIB_H |
| 636 | # include <stdlib.h> |
| 637 | #endif |
| 638 | #ifdef HAVE_STRING_H |
| 639 | # include <string.h> |
| 640 | #endif |
| 641 | #ifdef HAVE_INTTYPES_H |
| 642 | # include <inttypes.h> |
| 643 | #endif |
| 644 | #ifdef HAVE_STDINT_H |
| 645 | # include <stdint.h> |
| 646 | #endif |
| 647 | #ifdef HAVE_STRINGS_H |
| 648 | # include <strings.h> |
| 649 | #endif |
| 650 | #ifdef HAVE_SYS_TYPES_H |
| 651 | # include <sys/types.h> |
| 652 | #endif |
| 653 | #ifdef HAVE_SYS_STAT_H |
| 654 | # include <sys/stat.h> |
| 655 | #endif |
| 656 | #ifdef HAVE_UNISTD_H |
| 657 | # include <unistd.h> |
| 658 | #endif" |
| 659 | |
| 660 | ac_header_c_list= |
| 661 | gt_needs= |
| 662 | ac_subst_vars='am__EXEEXT_FALSE |
| 663 | am__EXEEXT_TRUE |
| 664 | LTLIBOBJS |
| 665 | LIBOBJS |
| 666 | LIBVISUAL_PLUGINS_BASE_DIR |
| 667 | LIBVISUAL_INCLUDE_DIR |
| 668 | LIBS_DYNAMIC_LOADER |
| 669 | OPT_CFLAGS |
| 670 | DEBUG_CFLAGS |
| 671 | TOOLS_LV_TOOL |
| 672 | EXAMPLES |
| 673 | SDL_LIBS |
| 674 | SDL_CFLAGS |
| 675 | VISUAL_LIBS |
| 676 | VISUAL_CFLAGS |
| 677 | VISUAL_PKG_CONFIG_DEP |
| 678 | LV_THREAD_CFLAGS |
| 679 | LV_THREAD_LIBS |
| 680 | GTHREAD2_LIBS |
| 681 | GTHREAD2_CFLAGS |
| 682 | POSUB |
| 683 | LTLIBINTL |
| 684 | LIBINTL |
| 685 | INTLLIBS |
| 686 | LTLIBICONV |
| 687 | LIBICONV |
| 688 | INTL_MACOSX_LIBS |
| 689 | XGETTEXT_EXTRA_OPTIONS |
| 690 | MSGMERGE |
| 691 | XGETTEXT_015 |
| 692 | XGETTEXT |
| 693 | GMSGFMT_015 |
| 694 | MSGFMT_015 |
| 695 | GMSGFMT |
| 696 | MSGFMT |
| 697 | GETTEXT_MACRO_VERSION |
| 698 | USE_NLS |
| 699 | GETTEXT_PACKAGE |
| 700 | HAVE_CXX11 |
| 701 | PKG_CONFIG_LIBDIR |
| 702 | PKG_CONFIG_PATH |
| 703 | PKG_CONFIG |
| 704 | CXXCPP |
| 705 | LT_SYS_LIBRARY_PATH |
| 706 | OTOOL64 |
| 707 | OTOOL |
| 708 | LIPO |
| 709 | NMEDIT |
| 710 | DSYMUTIL |
| 711 | MANIFEST_TOOL |
| 712 | RANLIB |
| 713 | ac_ct_AR |
| 714 | AR |
| 715 | NM |
| 716 | ac_ct_DUMPBIN |
| 717 | DUMPBIN |
| 718 | LD |
| 719 | FGREP |
| 720 | EGREP |
| 721 | GREP |
| 722 | SED |
| 723 | LIBTOOL |
| 724 | OBJDUMP |
| 725 | DLLTOOL |
| 726 | AS |
| 727 | LN_S |
| 728 | CPP |
| 729 | am__fastdepCC_FALSE |
| 730 | am__fastdepCC_TRUE |
| 731 | CCDEPMODE |
| 732 | ac_ct_CC |
| 733 | CFLAGS |
| 734 | CC |
| 735 | am__fastdepCXX_FALSE |
| 736 | am__fastdepCXX_TRUE |
| 737 | CXXDEPMODE |
| 738 | am__nodep |
| 739 | AMDEPBACKSLASH |
| 740 | AMDEP_FALSE |
| 741 | AMDEP_TRUE |
| 742 | am__include |
| 743 | DEPDIR |
| 744 | OBJEXT |
| 745 | EXEEXT |
| 746 | ac_ct_CXX |
| 747 | CPPFLAGS |
| 748 | LDFLAGS |
| 749 | CXXFLAGS |
| 750 | CXX |
| 751 | host_os |
| 752 | host_vendor |
| 753 | host_cpu |
| 754 | host |
| 755 | build_os |
| 756 | build_vendor |
| 757 | build_cpu |
| 758 | build |
| 759 | LIBVISUAL_VERSION_SUFFIX |
| 760 | AM_BACKSLASH |
| 761 | AM_DEFAULT_VERBOSITY |
| 762 | AM_DEFAULT_V |
| 763 | AM_V |
| 764 | CSCOPE |
| 765 | ETAGS |
| 766 | CTAGS |
| 767 | am__untar |
| 768 | am__tar |
| 769 | AMTAR |
| 770 | am__leading_dot |
| 771 | SET_MAKE |
| 772 | AWK |
| 773 | mkdir_p |
| 774 | MKDIR_P |
| 775 | INSTALL_STRIP_PROGRAM |
| 776 | STRIP |
| 777 | install_sh |
| 778 | MAKEINFO |
| 779 | AUTOHEADER |
| 780 | AUTOMAKE |
| 781 | AUTOCONF |
| 782 | ACLOCAL |
| 783 | VERSION |
| 784 | PACKAGE |
| 785 | CYGPATH_W |
| 786 | am__isrc |
| 787 | INSTALL_DATA |
| 788 | INSTALL_SCRIPT |
| 789 | INSTALL_PROGRAM |
| 790 | target_alias |
| 791 | host_alias |
| 792 | build_alias |
| 793 | LIBS |
| 794 | ECHO_T |
| 795 | ECHO_N |
| 796 | ECHO_C |
| 797 | DEFS |
| 798 | mandir |
| 799 | localedir |
| 800 | libdir |
| 801 | psdir |
| 802 | pdfdir |
| 803 | dvidir |
| 804 | htmldir |
| 805 | infodir |
| 806 | docdir |
| 807 | oldincludedir |
| 808 | includedir |
| 809 | runstatedir |
| 810 | localstatedir |
| 811 | sharedstatedir |
| 812 | sysconfdir |
| 813 | datadir |
| 814 | datarootdir |
| 815 | libexecdir |
| 816 | sbindir |
| 817 | bindir |
| 818 | program_transform_name |
| 819 | prefix |
| 820 | exec_prefix |
| 821 | PACKAGE_URL |
| 822 | PACKAGE_BUGREPORT |
| 823 | PACKAGE_STRING |
| 824 | PACKAGE_VERSION |
| 825 | PACKAGE_TARNAME |
| 826 | PACKAGE_NAME |
| 827 | PATH_SEPARATOR |
| 828 | SHELL |
| 829 | am__quote' |
| 830 | ac_subst_files='' |
| 831 | ac_user_opts=' |
| 832 | enable_option_checking |
| 833 | enable_silent_rules |
| 834 | enable_dependency_tracking |
| 835 | enable_static |
| 836 | enable_shared |
| 837 | with_pic |
| 838 | enable_fast_install |
| 839 | with_aix_soname |
| 840 | with_gnu_ld |
| 841 | with_sysroot |
| 842 | enable_libtool_lock |
| 843 | enable_nls |
| 844 | enable_rpath |
| 845 | with_libiconv_prefix |
| 846 | with_libintl_prefix |
| 847 | enable_threads |
| 848 | enable_lv_tool |
| 849 | enable_examples |
| 850 | enable_profiling |
| 851 | enable_debug |
| 852 | enable_extra_optimization |
| 853 | enable_fast_fp_rng |
| 854 | ' |
| 855 | ac_precious_vars='build_alias |
| 856 | host_alias |
| 857 | target_alias |
| 858 | CXX |
| 859 | CXXFLAGS |
| 860 | LDFLAGS |
| 861 | LIBS |
| 862 | CPPFLAGS |
| 863 | CCC |
| 864 | CC |
| 865 | CFLAGS |
| 866 | CPP |
| 867 | LT_SYS_LIBRARY_PATH |
| 868 | CXXCPP |
| 869 | PKG_CONFIG |
| 870 | PKG_CONFIG_PATH |
| 871 | PKG_CONFIG_LIBDIR |
| 872 | GTHREAD2_CFLAGS |
| 873 | GTHREAD2_LIBS |
| 874 | SDL_CFLAGS |
| 875 | SDL_LIBS' |
| 876 | |
| 877 | |
| 878 | # Initialize some variables set by options. |
| 879 | ac_init_help= |
| 880 | ac_init_version=false |
| 881 | ac_unrecognized_opts= |
| 882 | ac_unrecognized_sep= |
| 883 | # The variables have the same names as the options, with |
| 884 | # dashes changed to underlines. |
| 885 | cache_file=/dev/null |
| 886 | exec_prefix=NONE |
| 887 | no_create= |
| 888 | no_recursion= |
| 889 | prefix=NONE |
| 890 | program_prefix=NONE |
| 891 | program_suffix=NONE |
| 892 | program_transform_name=s,x,x, |
| 893 | silent= |
| 894 | site= |
| 895 | srcdir= |
| 896 | verbose= |
| 897 | x_includes=NONE |
| 898 | x_libraries=NONE |
| 899 | |
| 900 | # Installation directory options. |
| 901 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 902 | # and all the variables that are supposed to be based on exec_prefix |
| 903 | # by default will actually change. |
| 904 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 905 | # (The list follows the same order as the GNU Coding Standards.) |
| 906 | bindir='${exec_prefix}/bin' |
| 907 | sbindir='${exec_prefix}/sbin' |
| 908 | libexecdir='${exec_prefix}/libexec' |
| 909 | datarootdir='${prefix}/share' |
| 910 | datadir='${datarootdir}' |
| 911 | sysconfdir='${prefix}/etc' |
| 912 | sharedstatedir='${prefix}/com' |
| 913 | localstatedir='${prefix}/var' |
| 914 | runstatedir='${localstatedir}/run' |
| 915 | includedir='${prefix}/include' |
| 916 | oldincludedir='/usr/include' |
| 917 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 918 | infodir='${datarootdir}/info' |
| 919 | htmldir='${docdir}' |
| 920 | dvidir='${docdir}' |
| 921 | pdfdir='${docdir}' |
| 922 | psdir='${docdir}' |
| 923 | libdir='${exec_prefix}/lib' |
| 924 | localedir='${datarootdir}/locale' |
| 925 | mandir='${datarootdir}/man' |
| 926 | |
| 927 | ac_prev= |
| 928 | ac_dashdash= |
| 929 | for ac_option |
| 930 | do |
| 931 | # If the previous option needs an argument, assign it. |
| 932 | if test -n "$ac_prev"; then |
| 933 | eval $ac_prev=\$ac_option |
| 934 | ac_prev= |
| 935 | continue |
| 936 | fi |
| 937 | |
| 938 | case $ac_option in |
| 939 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 940 | *=) ac_optarg= ;; |
| 941 | *) ac_optarg=yes ;; |
| 942 | esac |
| 943 | |
| 944 | case $ac_dashdash$ac_option in |
| 945 | --) |
| 946 | ac_dashdash=yes ;; |
| 947 | |
| 948 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 949 | ac_prev=bindir ;; |
| 950 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 951 | bindir=$ac_optarg ;; |
| 952 | |
| 953 | -build | --build | --buil | --bui | --bu) |
| 954 | ac_prev=build_alias ;; |
| 955 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 956 | build_alias=$ac_optarg ;; |
| 957 | |
| 958 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 959 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 960 | ac_prev=cache_file ;; |
| 961 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 962 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 963 | cache_file=$ac_optarg ;; |
| 964 | |
| 965 | --config-cache | -C) |
| 966 | cache_file=config.cache ;; |
| 967 | |
| 968 | -datadir | --datadir | --datadi | --datad) |
| 969 | ac_prev=datadir ;; |
| 970 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 971 | datadir=$ac_optarg ;; |
| 972 | |
| 973 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 974 | | --dataroo | --dataro | --datar) |
| 975 | ac_prev=datarootdir ;; |
| 976 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 977 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 978 | datarootdir=$ac_optarg ;; |
| 979 | |
| 980 | -disable-* | --disable-*) |
| 981 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 982 | # Reject names that are not valid shell variable names. |
| 983 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 984 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 985 | ac_useropt_orig=$ac_useropt |
| 986 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 987 | case $ac_user_opts in |
| 988 | *" |
| 989 | "enable_$ac_useropt" |
| 990 | "*) ;; |
| 991 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 992 | ac_unrecognized_sep=', ';; |
| 993 | esac |
| 994 | eval enable_$ac_useropt=no ;; |
| 995 | |
| 996 | -docdir | --docdir | --docdi | --doc | --do) |
| 997 | ac_prev=docdir ;; |
| 998 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 999 | docdir=$ac_optarg ;; |
| 1000 | |
| 1001 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1002 | ac_prev=dvidir ;; |
| 1003 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1004 | dvidir=$ac_optarg ;; |
| 1005 | |
| 1006 | -enable-* | --enable-*) |
| 1007 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1008 | # Reject names that are not valid shell variable names. |
| 1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1010 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1011 | ac_useropt_orig=$ac_useropt |
| 1012 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1013 | case $ac_user_opts in |
| 1014 | *" |
| 1015 | "enable_$ac_useropt" |
| 1016 | "*) ;; |
| 1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1018 | ac_unrecognized_sep=', ';; |
| 1019 | esac |
| 1020 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1021 | |
| 1022 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1023 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1024 | | --exec | --exe | --ex) |
| 1025 | ac_prev=exec_prefix ;; |
| 1026 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1027 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1028 | | --exec=* | --exe=* | --ex=*) |
| 1029 | exec_prefix=$ac_optarg ;; |
| 1030 | |
| 1031 | -gas | --gas | --ga | --g) |
| 1032 | # Obsolete; use --with-gas. |
| 1033 | with_gas=yes ;; |
| 1034 | |
| 1035 | -help | --help | --hel | --he | -h) |
| 1036 | ac_init_help=long ;; |
| 1037 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1038 | ac_init_help=recursive ;; |
| 1039 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1040 | ac_init_help=short ;; |
| 1041 | |
| 1042 | -host | --host | --hos | --ho) |
| 1043 | ac_prev=host_alias ;; |
| 1044 | -host=* | --host=* | --hos=* | --ho=*) |
| 1045 | host_alias=$ac_optarg ;; |
| 1046 | |
| 1047 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1048 | ac_prev=htmldir ;; |
| 1049 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1050 | | --ht=*) |
| 1051 | htmldir=$ac_optarg ;; |
| 1052 | |
| 1053 | -includedir | --includedir | --includedi | --included | --include \ |
| 1054 | | --includ | --inclu | --incl | --inc) |
| 1055 | ac_prev=includedir ;; |
| 1056 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1057 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1058 | includedir=$ac_optarg ;; |
| 1059 | |
| 1060 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1061 | ac_prev=infodir ;; |
| 1062 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1063 | infodir=$ac_optarg ;; |
| 1064 | |
| 1065 | -libdir | --libdir | --libdi | --libd) |
| 1066 | ac_prev=libdir ;; |
| 1067 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1068 | libdir=$ac_optarg ;; |
| 1069 | |
| 1070 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1071 | | --libexe | --libex | --libe) |
| 1072 | ac_prev=libexecdir ;; |
| 1073 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1074 | | --libexe=* | --libex=* | --libe=*) |
| 1075 | libexecdir=$ac_optarg ;; |
| 1076 | |
| 1077 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1078 | ac_prev=localedir ;; |
| 1079 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1080 | localedir=$ac_optarg ;; |
| 1081 | |
| 1082 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1083 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1084 | ac_prev=localstatedir ;; |
| 1085 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1086 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1087 | localstatedir=$ac_optarg ;; |
| 1088 | |
| 1089 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1090 | ac_prev=mandir ;; |
| 1091 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1092 | mandir=$ac_optarg ;; |
| 1093 | |
| 1094 | -nfp | --nfp | --nf) |
| 1095 | # Obsolete; use --without-fp. |
| 1096 | with_fp=no ;; |
| 1097 | |
| 1098 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1099 | | --no-cr | --no-c | -n) |
| 1100 | no_create=yes ;; |
| 1101 | |
| 1102 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1103 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1104 | no_recursion=yes ;; |
| 1105 | |
| 1106 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1107 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1108 | | --oldin | --oldi | --old | --ol | --o) |
| 1109 | ac_prev=oldincludedir ;; |
| 1110 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1111 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1112 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1113 | oldincludedir=$ac_optarg ;; |
| 1114 | |
| 1115 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1116 | ac_prev=prefix ;; |
| 1117 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1118 | prefix=$ac_optarg ;; |
| 1119 | |
| 1120 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1121 | | --program-pre | --program-pr | --program-p) |
| 1122 | ac_prev=program_prefix ;; |
| 1123 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1124 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1125 | program_prefix=$ac_optarg ;; |
| 1126 | |
| 1127 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1128 | | --program-suf | --program-su | --program-s) |
| 1129 | ac_prev=program_suffix ;; |
| 1130 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1131 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1132 | program_suffix=$ac_optarg ;; |
| 1133 | |
| 1134 | -program-transform-name | --program-transform-name \ |
| 1135 | | --program-transform-nam | --program-transform-na \ |
| 1136 | | --program-transform-n | --program-transform- \ |
| 1137 | | --program-transform | --program-transfor \ |
| 1138 | | --program-transfo | --program-transf \ |
| 1139 | | --program-trans | --program-tran \ |
| 1140 | | --progr-tra | --program-tr | --program-t) |
| 1141 | ac_prev=program_transform_name ;; |
| 1142 | -program-transform-name=* | --program-transform-name=* \ |
| 1143 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1144 | | --program-transform-n=* | --program-transform-=* \ |
| 1145 | | --program-transform=* | --program-transfor=* \ |
| 1146 | | --program-transfo=* | --program-transf=* \ |
| 1147 | | --program-trans=* | --program-tran=* \ |
| 1148 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1149 | program_transform_name=$ac_optarg ;; |
| 1150 | |
| 1151 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1152 | ac_prev=pdfdir ;; |
| 1153 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1154 | pdfdir=$ac_optarg ;; |
| 1155 | |
| 1156 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1157 | ac_prev=psdir ;; |
| 1158 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1159 | psdir=$ac_optarg ;; |
| 1160 | |
| 1161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1162 | | -silent | --silent | --silen | --sile | --sil) |
| 1163 | silent=yes ;; |
| 1164 | |
| 1165 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1166 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1167 | | --run | --ru | --r) |
| 1168 | ac_prev=runstatedir ;; |
| 1169 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1170 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1171 | | --run=* | --ru=* | --r=*) |
| 1172 | runstatedir=$ac_optarg ;; |
| 1173 | |
| 1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1175 | ac_prev=sbindir ;; |
| 1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1177 | | --sbi=* | --sb=*) |
| 1178 | sbindir=$ac_optarg ;; |
| 1179 | |
| 1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1182 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1183 | | --sha | --sh) |
| 1184 | ac_prev=sharedstatedir ;; |
| 1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1188 | | --sha=* | --sh=*) |
| 1189 | sharedstatedir=$ac_optarg ;; |
| 1190 | |
| 1191 | -site | --site | --sit) |
| 1192 | ac_prev=site ;; |
| 1193 | -site=* | --site=* | --sit=*) |
| 1194 | site=$ac_optarg ;; |
| 1195 | |
| 1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1197 | ac_prev=srcdir ;; |
| 1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1199 | srcdir=$ac_optarg ;; |
| 1200 | |
| 1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1202 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1203 | ac_prev=sysconfdir ;; |
| 1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1206 | sysconfdir=$ac_optarg ;; |
| 1207 | |
| 1208 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1209 | ac_prev=target_alias ;; |
| 1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1211 | target_alias=$ac_optarg ;; |
| 1212 | |
| 1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1214 | verbose=yes ;; |
| 1215 | |
| 1216 | -version | --version | --versio | --versi | --vers | -V) |
| 1217 | ac_init_version=: ;; |
| 1218 | |
| 1219 | -with-* | --with-*) |
| 1220 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1221 | # Reject names that are not valid shell variable names. |
| 1222 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1223 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1224 | ac_useropt_orig=$ac_useropt |
| 1225 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1226 | case $ac_user_opts in |
| 1227 | *" |
| 1228 | "with_$ac_useropt" |
| 1229 | "*) ;; |
| 1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1231 | ac_unrecognized_sep=', ';; |
| 1232 | esac |
| 1233 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1234 | |
| 1235 | -without-* | --without-*) |
| 1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1237 | # Reject names that are not valid shell variable names. |
| 1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1239 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1240 | ac_useropt_orig=$ac_useropt |
| 1241 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1242 | case $ac_user_opts in |
| 1243 | *" |
| 1244 | "with_$ac_useropt" |
| 1245 | "*) ;; |
| 1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1247 | ac_unrecognized_sep=', ';; |
| 1248 | esac |
| 1249 | eval with_$ac_useropt=no ;; |
| 1250 | |
| 1251 | --x) |
| 1252 | # Obsolete; use --with-x. |
| 1253 | with_x=yes ;; |
| 1254 | |
| 1255 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1256 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1257 | ac_prev=x_includes ;; |
| 1258 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1259 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1260 | x_includes=$ac_optarg ;; |
| 1261 | |
| 1262 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1263 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1264 | ac_prev=x_libraries ;; |
| 1265 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1266 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1267 | x_libraries=$ac_optarg ;; |
| 1268 | |
| 1269 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1270 | Try \`$0 --help' for more information" |
| 1271 | ;; |
| 1272 | |
| 1273 | *=*) |
| 1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1275 | # Reject names that are not valid shell variable names. |
| 1276 | case $ac_envvar in #( |
| 1277 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1278 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1279 | esac |
| 1280 | eval $ac_envvar=\$ac_optarg |
| 1281 | export $ac_envvar ;; |
| 1282 | |
| 1283 | *) |
| 1284 | # FIXME: should be removed in autoconf 3.0. |
| 1285 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1286 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1287 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1288 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1289 | ;; |
| 1290 | |
| 1291 | esac |
| 1292 | done |
| 1293 | |
| 1294 | if test -n "$ac_prev"; then |
| 1295 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1296 | as_fn_error $? "missing argument to $ac_option" |
| 1297 | fi |
| 1298 | |
| 1299 | if test -n "$ac_unrecognized_opts"; then |
| 1300 | case $enable_option_checking in |
| 1301 | no) ;; |
| 1302 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1303 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1304 | esac |
| 1305 | fi |
| 1306 | |
| 1307 | # Check all directory arguments for consistency. |
| 1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1311 | libdir localedir mandir runstatedir |
| 1312 | do |
| 1313 | eval ac_val=\$$ac_var |
| 1314 | # Remove trailing slashes. |
| 1315 | case $ac_val in |
| 1316 | */ ) |
| 1317 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1318 | eval $ac_var=\$ac_val;; |
| 1319 | esac |
| 1320 | # Be sure to have absolute directory names. |
| 1321 | case $ac_val in |
| 1322 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1323 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1324 | esac |
| 1325 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1326 | done |
| 1327 | |
| 1328 | # There might be people who depend on the old broken behavior: `$host' |
| 1329 | # used to hold the argument of --host etc. |
| 1330 | # FIXME: To remove some day. |
| 1331 | build=$build_alias |
| 1332 | host=$host_alias |
| 1333 | target=$target_alias |
| 1334 | |
| 1335 | # FIXME: To remove some day. |
| 1336 | if test "x$host_alias" != x; then |
| 1337 | if test "x$build_alias" = x; then |
| 1338 | cross_compiling=maybe |
| 1339 | elif test "x$build_alias" != "x$host_alias"; then |
| 1340 | cross_compiling=yes |
| 1341 | fi |
| 1342 | fi |
| 1343 | |
| 1344 | ac_tool_prefix= |
| 1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1346 | |
| 1347 | test "$silent" = yes && exec 6>/dev/null |
| 1348 | |
| 1349 | |
| 1350 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1351 | ac_ls_di=`ls -di .` && |
| 1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1353 | as_fn_error $? "working directory cannot be determined" |
| 1354 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1355 | as_fn_error $? "pwd does not report name of working directory" |
| 1356 | |
| 1357 | |
| 1358 | # Find the source files, if location was not specified. |
| 1359 | if test -z "$srcdir"; then |
| 1360 | ac_srcdir_defaulted=yes |
| 1361 | # Try the directory containing this script, then the parent directory. |
| 1362 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1363 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1364 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1365 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1366 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1367 | printf "%s\n" X"$as_myself" | |
| 1368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1369 | s//\1/ |
| 1370 | q |
| 1371 | } |
| 1372 | /^X\(\/\/\)[^/].*/{ |
| 1373 | s//\1/ |
| 1374 | q |
| 1375 | } |
| 1376 | /^X\(\/\/\)$/{ |
| 1377 | s//\1/ |
| 1378 | q |
| 1379 | } |
| 1380 | /^X\(\/\).*/{ |
| 1381 | s//\1/ |
| 1382 | q |
| 1383 | } |
| 1384 | s/.*/./; q'` |
| 1385 | srcdir=$ac_confdir |
| 1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1387 | srcdir=.. |
| 1388 | fi |
| 1389 | else |
| 1390 | ac_srcdir_defaulted=no |
| 1391 | fi |
| 1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1393 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1394 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1395 | fi |
| 1396 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1397 | ac_abs_confdir=`( |
| 1398 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1399 | pwd)` |
| 1400 | # When building in place, set srcdir=. |
| 1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1402 | srcdir=. |
| 1403 | fi |
| 1404 | # Remove unnecessary trailing slashes from srcdir. |
| 1405 | # Double slashes in file names in object file debugging info |
| 1406 | # mess up M-x gdb in Emacs. |
| 1407 | case $srcdir in |
| 1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1409 | esac |
| 1410 | for ac_var in $ac_precious_vars; do |
| 1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1412 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1415 | done |
| 1416 | |
| 1417 | # |
| 1418 | # Report the --help message. |
| 1419 | # |
| 1420 | if test "$ac_init_help" = "long"; then |
| 1421 | # Omit some internal or obsolete options to make the list less imposing. |
| 1422 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1423 | cat <<_ACEOF |
| 1424 | \`configure' configures Libvisual Library 0.4.2 to adapt to many kinds of systems. |
| 1425 | |
| 1426 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1427 | |
| 1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1429 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1430 | |
| 1431 | Defaults for the options are specified in brackets. |
| 1432 | |
| 1433 | Configuration: |
| 1434 | -h, --help display this help and exit |
| 1435 | --help=short display options specific to this package |
| 1436 | --help=recursive display the short help of all the included packages |
| 1437 | -V, --version display version information and exit |
| 1438 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1439 | --cache-file=FILE cache test results in FILE [disabled] |
| 1440 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1441 | -n, --no-create do not create output files |
| 1442 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1443 | |
| 1444 | Installation directories: |
| 1445 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1446 | [$ac_default_prefix] |
| 1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1448 | [PREFIX] |
| 1449 | |
| 1450 | By default, \`make install' will install all the files in |
| 1451 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1452 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1453 | for instance \`--prefix=\$HOME'. |
| 1454 | |
| 1455 | For better control, use the options below. |
| 1456 | |
| 1457 | Fine tuning of the installation directories: |
| 1458 | --bindir=DIR user executables [EPREFIX/bin] |
| 1459 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1460 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1464 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1465 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1466 | --includedir=DIR C header files [PREFIX/include] |
| 1467 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1468 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1469 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1470 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1471 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1472 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1473 | --docdir=DIR documentation root [DATAROOTDIR/doc/libvisual] |
| 1474 | --htmldir=DIR html documentation [DOCDIR] |
| 1475 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1476 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1477 | --psdir=DIR ps documentation [DOCDIR] |
| 1478 | _ACEOF |
| 1479 | |
| 1480 | cat <<\_ACEOF |
| 1481 | |
| 1482 | Program names: |
| 1483 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1484 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1485 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1486 | |
| 1487 | System types: |
| 1488 | --build=BUILD configure for building on BUILD [guessed] |
| 1489 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1490 | _ACEOF |
| 1491 | fi |
| 1492 | |
| 1493 | if test -n "$ac_init_help"; then |
| 1494 | case $ac_init_help in |
| 1495 | short | recursive ) echo "Configuration of Libvisual Library 0.4.2:";; |
| 1496 | esac |
| 1497 | cat <<\_ACEOF |
| 1498 | |
| 1499 | Optional Features: |
| 1500 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1501 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1502 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1503 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1504 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1505 | --enable-dependency-tracking |
| 1506 | do not reject slow dependency extractors |
| 1507 | --disable-dependency-tracking |
| 1508 | speeds up one-time build |
| 1509 | --enable-static[=PKGS] build static libraries [default=no] |
| 1510 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1511 | --enable-fast-install[=PKGS] |
| 1512 | optimize for fast installation [default=yes] |
| 1513 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1514 | --disable-nls do not use Native Language Support |
| 1515 | --disable-rpath do not hardcode runtime library paths |
| 1516 | --enable-threads Turn on basic thread support [default=enabled] |
| 1517 | --disable-lv-tool Do not build lv-tool [default=enabled] |
| 1518 | --disable-examples Do not build example programs [default=enabled] |
| 1519 | --enable-profiling Enable emision of profile data to be used by gprof |
| 1520 | [default=disabled] |
| 1521 | --enable-debug Enable debug [default=disabled] |
| 1522 | --enable-extra-optimization |
| 1523 | Enable extra optimizations [default=disabled] |
| 1524 | --enable-fast-fp-rng Enable faster random floating point generator |
| 1525 | (enabled by default if --enable-extra-optimization |
| 1526 | is passed) |
| 1527 | |
| 1528 | Optional Packages: |
| 1529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1531 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1532 | both] |
| 1533 | --with-aix-soname=aix|svr4|both |
| 1534 | shared library versioning (aka "SONAME") variant to |
| 1535 | provide on AIX, [default=aix]. |
| 1536 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1537 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1538 | compiler's sysroot if not specified). |
| 1539 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1540 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1541 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1542 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1543 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1544 | |
| 1545 | Some influential environment variables: |
| 1546 | CXX C++ compiler command |
| 1547 | CXXFLAGS C++ compiler flags |
| 1548 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1549 | nonstandard directory <lib dir> |
| 1550 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1551 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1552 | you have headers in a nonstandard directory <include dir> |
| 1553 | CC C compiler command |
| 1554 | CFLAGS C compiler flags |
| 1555 | CPP C preprocessor |
| 1556 | LT_SYS_LIBRARY_PATH |
| 1557 | User-defined run-time library search path. |
| 1558 | CXXCPP C++ preprocessor |
| 1559 | PKG_CONFIG path to pkg-config utility |
| 1560 | PKG_CONFIG_PATH |
| 1561 | directories to add to pkg-config's search path |
| 1562 | PKG_CONFIG_LIBDIR |
| 1563 | path overriding pkg-config's built-in search path |
| 1564 | GTHREAD2_CFLAGS |
| 1565 | C compiler flags for GTHREAD2, overriding pkg-config |
| 1566 | GTHREAD2_LIBS |
| 1567 | linker flags for GTHREAD2, overriding pkg-config |
| 1568 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config |
| 1569 | SDL_LIBS linker flags for SDL, overriding pkg-config |
| 1570 | |
| 1571 | Use these variables to override the choices made by `configure' or to help |
| 1572 | it to find libraries and programs with nonstandard names/locations. |
| 1573 | |
| 1574 | Report bugs to <https://github.com/Libvisual/libvisual/issues>. |
| 1575 | Libvisual Library home page: <https://github.com/Libvisual/libvisual>. |
| 1576 | _ACEOF |
| 1577 | ac_status=$? |
| 1578 | fi |
| 1579 | |
| 1580 | if test "$ac_init_help" = "recursive"; then |
| 1581 | # If there are subdirs, report their specific --help. |
| 1582 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1583 | test -d "$ac_dir" || |
| 1584 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1585 | continue |
| 1586 | ac_builddir=. |
| 1587 | |
| 1588 | case "$ac_dir" in |
| 1589 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1590 | *) |
| 1591 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1592 | # A ".." for each directory in $ac_dir_suffix. |
| 1593 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1594 | case $ac_top_builddir_sub in |
| 1595 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1596 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1597 | esac ;; |
| 1598 | esac |
| 1599 | ac_abs_top_builddir=$ac_pwd |
| 1600 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1601 | # for backward compatibility: |
| 1602 | ac_top_builddir=$ac_top_build_prefix |
| 1603 | |
| 1604 | case $srcdir in |
| 1605 | .) # We are building in place. |
| 1606 | ac_srcdir=. |
| 1607 | ac_top_srcdir=$ac_top_builddir_sub |
| 1608 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1609 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1610 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1611 | ac_top_srcdir=$srcdir |
| 1612 | ac_abs_top_srcdir=$srcdir ;; |
| 1613 | *) # Relative name. |
| 1614 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1615 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1616 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1617 | esac |
| 1618 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1619 | |
| 1620 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1621 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1622 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1623 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1624 | echo && |
| 1625 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1626 | elif test -f "$ac_srcdir/configure"; then |
| 1627 | echo && |
| 1628 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1629 | else |
| 1630 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1631 | fi || ac_status=$? |
| 1632 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1633 | done |
| 1634 | fi |
| 1635 | |
| 1636 | test -n "$ac_init_help" && exit $ac_status |
| 1637 | if $ac_init_version; then |
| 1638 | cat <<\_ACEOF |
| 1639 | Libvisual Library configure 0.4.2 |
| 1640 | generated by GNU Autoconf 2.71 |
| 1641 | |
| 1642 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 1643 | This configure script is free software; the Free Software Foundation |
| 1644 | gives unlimited permission to copy, distribute and modify it. |
| 1645 | _ACEOF |
| 1646 | exit |
| 1647 | fi |
| 1648 | |
| 1649 | ## ------------------------ ## |
| 1650 | ## Autoconf initialization. ## |
| 1651 | ## ------------------------ ## |
| 1652 | |
| 1653 | # ac_fn_cxx_try_compile LINENO |
| 1654 | # ---------------------------- |
| 1655 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1656 | ac_fn_cxx_try_compile () |
| 1657 | { |
| 1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1659 | rm -f conftest.$ac_objext conftest.beam |
| 1660 | if { { ac_try="$ac_compile" |
| 1661 | case "(($ac_try" in |
| 1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1663 | *) ac_try_echo=$ac_try;; |
| 1664 | esac |
| 1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1666 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1667 | (eval "$ac_compile") 2>conftest.err |
| 1668 | ac_status=$? |
| 1669 | if test -s conftest.err; then |
| 1670 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1671 | cat conftest.er1 >&5 |
| 1672 | mv -f conftest.er1 conftest.err |
| 1673 | fi |
| 1674 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1675 | test $ac_status = 0; } && { |
| 1676 | test -z "$ac_cxx_werror_flag" || |
| 1677 | test ! -s conftest.err |
| 1678 | } && test -s conftest.$ac_objext |
| 1679 | then : |
| 1680 | ac_retval=0 |
| 1681 | else $as_nop |
| 1682 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1684 | |
| 1685 | ac_retval=1 |
| 1686 | fi |
| 1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1688 | as_fn_set_status $ac_retval |
| 1689 | |
| 1690 | } # ac_fn_cxx_try_compile |
| 1691 | |
| 1692 | # ac_fn_c_try_compile LINENO |
| 1693 | # -------------------------- |
| 1694 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1695 | ac_fn_c_try_compile () |
| 1696 | { |
| 1697 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1698 | rm -f conftest.$ac_objext conftest.beam |
| 1699 | if { { ac_try="$ac_compile" |
| 1700 | case "(($ac_try" in |
| 1701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1702 | *) ac_try_echo=$ac_try;; |
| 1703 | esac |
| 1704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1705 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1706 | (eval "$ac_compile") 2>conftest.err |
| 1707 | ac_status=$? |
| 1708 | if test -s conftest.err; then |
| 1709 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1710 | cat conftest.er1 >&5 |
| 1711 | mv -f conftest.er1 conftest.err |
| 1712 | fi |
| 1713 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1714 | test $ac_status = 0; } && { |
| 1715 | test -z "$ac_c_werror_flag" || |
| 1716 | test ! -s conftest.err |
| 1717 | } && test -s conftest.$ac_objext |
| 1718 | then : |
| 1719 | ac_retval=0 |
| 1720 | else $as_nop |
| 1721 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1723 | |
| 1724 | ac_retval=1 |
| 1725 | fi |
| 1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1727 | as_fn_set_status $ac_retval |
| 1728 | |
| 1729 | } # ac_fn_c_try_compile |
| 1730 | |
| 1731 | # ac_fn_c_try_cpp LINENO |
| 1732 | # ---------------------- |
| 1733 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1734 | ac_fn_c_try_cpp () |
| 1735 | { |
| 1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1737 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1738 | case "(($ac_try" in |
| 1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1740 | *) ac_try_echo=$ac_try;; |
| 1741 | esac |
| 1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1743 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1745 | ac_status=$? |
| 1746 | if test -s conftest.err; then |
| 1747 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1748 | cat conftest.er1 >&5 |
| 1749 | mv -f conftest.er1 conftest.err |
| 1750 | fi |
| 1751 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1752 | test $ac_status = 0; } > conftest.i && { |
| 1753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1754 | test ! -s conftest.err |
| 1755 | } |
| 1756 | then : |
| 1757 | ac_retval=0 |
| 1758 | else $as_nop |
| 1759 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1761 | |
| 1762 | ac_retval=1 |
| 1763 | fi |
| 1764 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1765 | as_fn_set_status $ac_retval |
| 1766 | |
| 1767 | } # ac_fn_c_try_cpp |
| 1768 | |
| 1769 | # ac_fn_c_try_link LINENO |
| 1770 | # ----------------------- |
| 1771 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1772 | ac_fn_c_try_link () |
| 1773 | { |
| 1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1775 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1776 | if { { ac_try="$ac_link" |
| 1777 | case "(($ac_try" in |
| 1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1779 | *) ac_try_echo=$ac_try;; |
| 1780 | esac |
| 1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1782 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1783 | (eval "$ac_link") 2>conftest.err |
| 1784 | ac_status=$? |
| 1785 | if test -s conftest.err; then |
| 1786 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1787 | cat conftest.er1 >&5 |
| 1788 | mv -f conftest.er1 conftest.err |
| 1789 | fi |
| 1790 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1791 | test $ac_status = 0; } && { |
| 1792 | test -z "$ac_c_werror_flag" || |
| 1793 | test ! -s conftest.err |
| 1794 | } && test -s conftest$ac_exeext && { |
| 1795 | test "$cross_compiling" = yes || |
| 1796 | test -x conftest$ac_exeext |
| 1797 | } |
| 1798 | then : |
| 1799 | ac_retval=0 |
| 1800 | else $as_nop |
| 1801 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1803 | |
| 1804 | ac_retval=1 |
| 1805 | fi |
| 1806 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1807 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1808 | # interfere with the next link command; also delete a directory that is |
| 1809 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1812 | as_fn_set_status $ac_retval |
| 1813 | |
| 1814 | } # ac_fn_c_try_link |
| 1815 | |
| 1816 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1817 | # ------------------------------------------------------- |
| 1818 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1819 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1820 | ac_fn_c_check_header_compile () |
| 1821 | { |
| 1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1824 | printf %s "checking for $2... " >&6; } |
| 1825 | if eval test \${$3+y} |
| 1826 | then : |
| 1827 | printf %s "(cached) " >&6 |
| 1828 | else $as_nop |
| 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1830 | /* end confdefs.h. */ |
| 1831 | $4 |
| 1832 | #include <$2> |
| 1833 | _ACEOF |
| 1834 | if ac_fn_c_try_compile "$LINENO" |
| 1835 | then : |
| 1836 | eval "$3=yes" |
| 1837 | else $as_nop |
| 1838 | eval "$3=no" |
| 1839 | fi |
| 1840 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1841 | fi |
| 1842 | eval ac_res=\$$3 |
| 1843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1844 | printf "%s\n" "$ac_res" >&6; } |
| 1845 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1846 | |
| 1847 | } # ac_fn_c_check_header_compile |
| 1848 | |
| 1849 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1850 | # ---------------------------------- |
| 1851 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1852 | ac_fn_c_check_func () |
| 1853 | { |
| 1854 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1856 | printf %s "checking for $2... " >&6; } |
| 1857 | if eval test \${$3+y} |
| 1858 | then : |
| 1859 | printf %s "(cached) " >&6 |
| 1860 | else $as_nop |
| 1861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1862 | /* end confdefs.h. */ |
| 1863 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1864 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1865 | #define $2 innocuous_$2 |
| 1866 | |
| 1867 | /* System header to define __stub macros and hopefully few prototypes, |
| 1868 | which can conflict with char $2 (); below. */ |
| 1869 | |
| 1870 | #include <limits.h> |
| 1871 | #undef $2 |
| 1872 | |
| 1873 | /* Override any GCC internal prototype to avoid an error. |
| 1874 | Use char because int might match the return type of a GCC |
| 1875 | builtin and then its argument prototype would still apply. */ |
| 1876 | #ifdef __cplusplus |
| 1877 | extern "C" |
| 1878 | #endif |
| 1879 | char $2 (); |
| 1880 | /* The GNU C library defines this for functions which it implements |
| 1881 | to always fail with ENOSYS. Some functions are actually named |
| 1882 | something starting with __ and the normal name is an alias. */ |
| 1883 | #if defined __stub_$2 || defined __stub___$2 |
| 1884 | choke me |
| 1885 | #endif |
| 1886 | |
| 1887 | int |
| 1888 | main (void) |
| 1889 | { |
| 1890 | return $2 (); |
| 1891 | ; |
| 1892 | return 0; |
| 1893 | } |
| 1894 | _ACEOF |
| 1895 | if ac_fn_c_try_link "$LINENO" |
| 1896 | then : |
| 1897 | eval "$3=yes" |
| 1898 | else $as_nop |
| 1899 | eval "$3=no" |
| 1900 | fi |
| 1901 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1902 | conftest$ac_exeext conftest.$ac_ext |
| 1903 | fi |
| 1904 | eval ac_res=\$$3 |
| 1905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1906 | printf "%s\n" "$ac_res" >&6; } |
| 1907 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1908 | |
| 1909 | } # ac_fn_c_check_func |
| 1910 | |
| 1911 | # ac_fn_cxx_try_cpp LINENO |
| 1912 | # ------------------------ |
| 1913 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1914 | ac_fn_cxx_try_cpp () |
| 1915 | { |
| 1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1917 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1918 | case "(($ac_try" in |
| 1919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1920 | *) ac_try_echo=$ac_try;; |
| 1921 | esac |
| 1922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1923 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1924 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1925 | ac_status=$? |
| 1926 | if test -s conftest.err; then |
| 1927 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1928 | cat conftest.er1 >&5 |
| 1929 | mv -f conftest.er1 conftest.err |
| 1930 | fi |
| 1931 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1932 | test $ac_status = 0; } > conftest.i && { |
| 1933 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1934 | test ! -s conftest.err |
| 1935 | } |
| 1936 | then : |
| 1937 | ac_retval=0 |
| 1938 | else $as_nop |
| 1939 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1941 | |
| 1942 | ac_retval=1 |
| 1943 | fi |
| 1944 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1945 | as_fn_set_status $ac_retval |
| 1946 | |
| 1947 | } # ac_fn_cxx_try_cpp |
| 1948 | |
| 1949 | # ac_fn_cxx_try_link LINENO |
| 1950 | # ------------------------- |
| 1951 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1952 | ac_fn_cxx_try_link () |
| 1953 | { |
| 1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1955 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1956 | if { { ac_try="$ac_link" |
| 1957 | case "(($ac_try" in |
| 1958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1959 | *) ac_try_echo=$ac_try;; |
| 1960 | esac |
| 1961 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1962 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1963 | (eval "$ac_link") 2>conftest.err |
| 1964 | ac_status=$? |
| 1965 | if test -s conftest.err; then |
| 1966 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1967 | cat conftest.er1 >&5 |
| 1968 | mv -f conftest.er1 conftest.err |
| 1969 | fi |
| 1970 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1971 | test $ac_status = 0; } && { |
| 1972 | test -z "$ac_cxx_werror_flag" || |
| 1973 | test ! -s conftest.err |
| 1974 | } && test -s conftest$ac_exeext && { |
| 1975 | test "$cross_compiling" = yes || |
| 1976 | test -x conftest$ac_exeext |
| 1977 | } |
| 1978 | then : |
| 1979 | ac_retval=0 |
| 1980 | else $as_nop |
| 1981 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1983 | |
| 1984 | ac_retval=1 |
| 1985 | fi |
| 1986 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1987 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1988 | # interfere with the next link command; also delete a directory that is |
| 1989 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1990 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1992 | as_fn_set_status $ac_retval |
| 1993 | |
| 1994 | } # ac_fn_cxx_try_link |
| 1995 | |
| 1996 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1997 | # ------------------------------------------- |
| 1998 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1999 | # variable VAR accordingly. |
| 2000 | ac_fn_c_check_type () |
| 2001 | { |
| 2002 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2004 | printf %s "checking for $2... " >&6; } |
| 2005 | if eval test \${$3+y} |
| 2006 | then : |
| 2007 | printf %s "(cached) " >&6 |
| 2008 | else $as_nop |
| 2009 | eval "$3=no" |
| 2010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2011 | /* end confdefs.h. */ |
| 2012 | $4 |
| 2013 | int |
| 2014 | main (void) |
| 2015 | { |
| 2016 | if (sizeof ($2)) |
| 2017 | return 0; |
| 2018 | ; |
| 2019 | return 0; |
| 2020 | } |
| 2021 | _ACEOF |
| 2022 | if ac_fn_c_try_compile "$LINENO" |
| 2023 | then : |
| 2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2025 | /* end confdefs.h. */ |
| 2026 | $4 |
| 2027 | int |
| 2028 | main (void) |
| 2029 | { |
| 2030 | if (sizeof (($2))) |
| 2031 | return 0; |
| 2032 | ; |
| 2033 | return 0; |
| 2034 | } |
| 2035 | _ACEOF |
| 2036 | if ac_fn_c_try_compile "$LINENO" |
| 2037 | then : |
| 2038 | |
| 2039 | else $as_nop |
| 2040 | eval "$3=yes" |
| 2041 | fi |
| 2042 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2043 | fi |
| 2044 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2045 | fi |
| 2046 | eval ac_res=\$$3 |
| 2047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2048 | printf "%s\n" "$ac_res" >&6; } |
| 2049 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2050 | |
| 2051 | } # ac_fn_c_check_type |
| 2052 | |
| 2053 | # ac_fn_c_try_run LINENO |
| 2054 | # ---------------------- |
| 2055 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 2056 | # executables *can* be run. |
| 2057 | ac_fn_c_try_run () |
| 2058 | { |
| 2059 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2060 | if { { ac_try="$ac_link" |
| 2061 | case "(($ac_try" in |
| 2062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2063 | *) ac_try_echo=$ac_try;; |
| 2064 | esac |
| 2065 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2066 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2067 | (eval "$ac_link") 2>&5 |
| 2068 | ac_status=$? |
| 2069 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2070 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2071 | { { case "(($ac_try" in |
| 2072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2073 | *) ac_try_echo=$ac_try;; |
| 2074 | esac |
| 2075 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2076 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 2077 | (eval "$ac_try") 2>&5 |
| 2078 | ac_status=$? |
| 2079 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2080 | test $ac_status = 0; }; } |
| 2081 | then : |
| 2082 | ac_retval=0 |
| 2083 | else $as_nop |
| 2084 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 2085 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 2086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2087 | |
| 2088 | ac_retval=$ac_status |
| 2089 | fi |
| 2090 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2091 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2092 | as_fn_set_status $ac_retval |
| 2093 | |
| 2094 | } # ac_fn_c_try_run |
| 2095 | |
| 2096 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2097 | # -------------------------------------------- |
| 2098 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2099 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2100 | # computed |
| 2101 | ac_fn_c_compute_int () |
| 2102 | { |
| 2103 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2104 | if test "$cross_compiling" = yes; then |
| 2105 | # Depending upon the size, compute the lo and hi bounds. |
| 2106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2107 | /* end confdefs.h. */ |
| 2108 | $4 |
| 2109 | int |
| 2110 | main (void) |
| 2111 | { |
| 2112 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2113 | test_array [0] = 0; |
| 2114 | return test_array [0]; |
| 2115 | |
| 2116 | ; |
| 2117 | return 0; |
| 2118 | } |
| 2119 | _ACEOF |
| 2120 | if ac_fn_c_try_compile "$LINENO" |
| 2121 | then : |
| 2122 | ac_lo=0 ac_mid=0 |
| 2123 | while :; do |
| 2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2125 | /* end confdefs.h. */ |
| 2126 | $4 |
| 2127 | int |
| 2128 | main (void) |
| 2129 | { |
| 2130 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2131 | test_array [0] = 0; |
| 2132 | return test_array [0]; |
| 2133 | |
| 2134 | ; |
| 2135 | return 0; |
| 2136 | } |
| 2137 | _ACEOF |
| 2138 | if ac_fn_c_try_compile "$LINENO" |
| 2139 | then : |
| 2140 | ac_hi=$ac_mid; break |
| 2141 | else $as_nop |
| 2142 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2143 | if test $ac_lo -le $ac_mid; then |
| 2144 | ac_lo= ac_hi= |
| 2145 | break |
| 2146 | fi |
| 2147 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2148 | fi |
| 2149 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2150 | done |
| 2151 | else $as_nop |
| 2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2153 | /* end confdefs.h. */ |
| 2154 | $4 |
| 2155 | int |
| 2156 | main (void) |
| 2157 | { |
| 2158 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2159 | test_array [0] = 0; |
| 2160 | return test_array [0]; |
| 2161 | |
| 2162 | ; |
| 2163 | return 0; |
| 2164 | } |
| 2165 | _ACEOF |
| 2166 | if ac_fn_c_try_compile "$LINENO" |
| 2167 | then : |
| 2168 | ac_hi=-1 ac_mid=-1 |
| 2169 | while :; do |
| 2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2171 | /* end confdefs.h. */ |
| 2172 | $4 |
| 2173 | int |
| 2174 | main (void) |
| 2175 | { |
| 2176 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2177 | test_array [0] = 0; |
| 2178 | return test_array [0]; |
| 2179 | |
| 2180 | ; |
| 2181 | return 0; |
| 2182 | } |
| 2183 | _ACEOF |
| 2184 | if ac_fn_c_try_compile "$LINENO" |
| 2185 | then : |
| 2186 | ac_lo=$ac_mid; break |
| 2187 | else $as_nop |
| 2188 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2189 | if test $ac_mid -le $ac_hi; then |
| 2190 | ac_lo= ac_hi= |
| 2191 | break |
| 2192 | fi |
| 2193 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2194 | fi |
| 2195 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2196 | done |
| 2197 | else $as_nop |
| 2198 | ac_lo= ac_hi= |
| 2199 | fi |
| 2200 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2201 | fi |
| 2202 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2203 | # Binary search between lo and hi bounds. |
| 2204 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2205 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2207 | /* end confdefs.h. */ |
| 2208 | $4 |
| 2209 | int |
| 2210 | main (void) |
| 2211 | { |
| 2212 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2213 | test_array [0] = 0; |
| 2214 | return test_array [0]; |
| 2215 | |
| 2216 | ; |
| 2217 | return 0; |
| 2218 | } |
| 2219 | _ACEOF |
| 2220 | if ac_fn_c_try_compile "$LINENO" |
| 2221 | then : |
| 2222 | ac_hi=$ac_mid |
| 2223 | else $as_nop |
| 2224 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2225 | fi |
| 2226 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2227 | done |
| 2228 | case $ac_lo in #(( |
| 2229 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2230 | '') ac_retval=1 ;; |
| 2231 | esac |
| 2232 | else |
| 2233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2234 | /* end confdefs.h. */ |
| 2235 | $4 |
| 2236 | static long int longval (void) { return $2; } |
| 2237 | static unsigned long int ulongval (void) { return $2; } |
| 2238 | #include <stdio.h> |
| 2239 | #include <stdlib.h> |
| 2240 | int |
| 2241 | main (void) |
| 2242 | { |
| 2243 | |
| 2244 | FILE *f = fopen ("conftest.val", "w"); |
| 2245 | if (! f) |
| 2246 | return 1; |
| 2247 | if (($2) < 0) |
| 2248 | { |
| 2249 | long int i = longval (); |
| 2250 | if (i != ($2)) |
| 2251 | return 1; |
| 2252 | fprintf (f, "%ld", i); |
| 2253 | } |
| 2254 | else |
| 2255 | { |
| 2256 | unsigned long int i = ulongval (); |
| 2257 | if (i != ($2)) |
| 2258 | return 1; |
| 2259 | fprintf (f, "%lu", i); |
| 2260 | } |
| 2261 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2262 | on some platforms. */ |
| 2263 | return ferror (f) || fclose (f) != 0; |
| 2264 | |
| 2265 | ; |
| 2266 | return 0; |
| 2267 | } |
| 2268 | _ACEOF |
| 2269 | if ac_fn_c_try_run "$LINENO" |
| 2270 | then : |
| 2271 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2272 | else $as_nop |
| 2273 | ac_retval=1 |
| 2274 | fi |
| 2275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2276 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2277 | rm -f conftest.val |
| 2278 | |
| 2279 | fi |
| 2280 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2281 | as_fn_set_status $ac_retval |
| 2282 | |
| 2283 | } # ac_fn_c_compute_int |
| 2284 | ac_configure_args_raw= |
| 2285 | for ac_arg |
| 2286 | do |
| 2287 | case $ac_arg in |
| 2288 | *\'*) |
| 2289 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2290 | esac |
| 2291 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2292 | done |
| 2293 | |
| 2294 | case $ac_configure_args_raw in |
| 2295 | *$as_nl*) |
| 2296 | ac_safe_unquote= ;; |
| 2297 | *) |
| 2298 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2299 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2300 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2301 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2302 | esac |
| 2303 | |
| 2304 | cat >config.log <<_ACEOF |
| 2305 | This file contains any messages produced by compilers while |
| 2306 | running configure, to aid debugging if configure makes a mistake. |
| 2307 | |
| 2308 | It was created by Libvisual Library $as_me 0.4.2, which was |
| 2309 | generated by GNU Autoconf 2.71. Invocation command line was |
| 2310 | |
| 2311 | $ $0$ac_configure_args_raw |
| 2312 | |
| 2313 | _ACEOF |
| 2314 | exec 5>>config.log |
| 2315 | { |
| 2316 | cat <<_ASUNAME |
| 2317 | ## --------- ## |
| 2318 | ## Platform. ## |
| 2319 | ## --------- ## |
| 2320 | |
| 2321 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2322 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2323 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2324 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2325 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2326 | |
| 2327 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2328 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2329 | |
| 2330 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2331 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2332 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2333 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2334 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2335 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2336 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2337 | |
| 2338 | _ASUNAME |
| 2339 | |
| 2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2341 | for as_dir in $PATH |
| 2342 | do |
| 2343 | IFS=$as_save_IFS |
| 2344 | case $as_dir in #((( |
| 2345 | '') as_dir=./ ;; |
| 2346 | */) ;; |
| 2347 | *) as_dir=$as_dir/ ;; |
| 2348 | esac |
| 2349 | printf "%s\n" "PATH: $as_dir" |
| 2350 | done |
| 2351 | IFS=$as_save_IFS |
| 2352 | |
| 2353 | } >&5 |
| 2354 | |
| 2355 | cat >&5 <<_ACEOF |
| 2356 | |
| 2357 | |
| 2358 | ## ----------- ## |
| 2359 | ## Core tests. ## |
| 2360 | ## ----------- ## |
| 2361 | |
| 2362 | _ACEOF |
| 2363 | |
| 2364 | |
| 2365 | # Keep a trace of the command line. |
| 2366 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2367 | # Strip out --silent because we don't want to record it for future runs. |
| 2368 | # Also quote any args containing shell meta-characters. |
| 2369 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2370 | ac_configure_args= |
| 2371 | ac_configure_args0= |
| 2372 | ac_configure_args1= |
| 2373 | ac_must_keep_next=false |
| 2374 | for ac_pass in 1 2 |
| 2375 | do |
| 2376 | for ac_arg |
| 2377 | do |
| 2378 | case $ac_arg in |
| 2379 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2380 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2381 | | -silent | --silent | --silen | --sile | --sil) |
| 2382 | continue ;; |
| 2383 | *\'*) |
| 2384 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2385 | esac |
| 2386 | case $ac_pass in |
| 2387 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2388 | 2) |
| 2389 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2390 | if test $ac_must_keep_next = true; then |
| 2391 | ac_must_keep_next=false # Got value, back to normal. |
| 2392 | else |
| 2393 | case $ac_arg in |
| 2394 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2395 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2396 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2397 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2398 | case "$ac_configure_args0 " in |
| 2399 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2400 | esac |
| 2401 | ;; |
| 2402 | -* ) ac_must_keep_next=true ;; |
| 2403 | esac |
| 2404 | fi |
| 2405 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2406 | ;; |
| 2407 | esac |
| 2408 | done |
| 2409 | done |
| 2410 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2411 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2412 | |
| 2413 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2414 | # config.log. We remove comments because anyway the quotes in there |
| 2415 | # would cause problems or look ugly. |
| 2416 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2417 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2418 | trap 'exit_status=$? |
| 2419 | # Sanitize IFS. |
| 2420 | IFS=" "" $as_nl" |
| 2421 | # Save into config.log some information that might help in debugging. |
| 2422 | { |
| 2423 | echo |
| 2424 | |
| 2425 | printf "%s\n" "## ---------------- ## |
| 2426 | ## Cache variables. ## |
| 2427 | ## ---------------- ##" |
| 2428 | echo |
| 2429 | # The following way of writing the cache mishandles newlines in values, |
| 2430 | ( |
| 2431 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2432 | eval ac_val=\$$ac_var |
| 2433 | case $ac_val in #( |
| 2434 | *${as_nl}*) |
| 2435 | case $ac_var in #( |
| 2436 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2437 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2438 | esac |
| 2439 | case $ac_var in #( |
| 2440 | _ | IFS | as_nl) ;; #( |
| 2441 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2442 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2443 | esac ;; |
| 2444 | esac |
| 2445 | done |
| 2446 | (set) 2>&1 | |
| 2447 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2448 | *${as_nl}ac_space=\ *) |
| 2449 | sed -n \ |
| 2450 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2451 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2452 | ;; #( |
| 2453 | *) |
| 2454 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2455 | ;; |
| 2456 | esac | |
| 2457 | sort |
| 2458 | ) |
| 2459 | echo |
| 2460 | |
| 2461 | printf "%s\n" "## ----------------- ## |
| 2462 | ## Output variables. ## |
| 2463 | ## ----------------- ##" |
| 2464 | echo |
| 2465 | for ac_var in $ac_subst_vars |
| 2466 | do |
| 2467 | eval ac_val=\$$ac_var |
| 2468 | case $ac_val in |
| 2469 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2470 | esac |
| 2471 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2472 | done | sort |
| 2473 | echo |
| 2474 | |
| 2475 | if test -n "$ac_subst_files"; then |
| 2476 | printf "%s\n" "## ------------------- ## |
| 2477 | ## File substitutions. ## |
| 2478 | ## ------------------- ##" |
| 2479 | echo |
| 2480 | for ac_var in $ac_subst_files |
| 2481 | do |
| 2482 | eval ac_val=\$$ac_var |
| 2483 | case $ac_val in |
| 2484 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2485 | esac |
| 2486 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2487 | done | sort |
| 2488 | echo |
| 2489 | fi |
| 2490 | |
| 2491 | if test -s confdefs.h; then |
| 2492 | printf "%s\n" "## ----------- ## |
| 2493 | ## confdefs.h. ## |
| 2494 | ## ----------- ##" |
| 2495 | echo |
| 2496 | cat confdefs.h |
| 2497 | echo |
| 2498 | fi |
| 2499 | test "$ac_signal" != 0 && |
| 2500 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2501 | printf "%s\n" "$as_me: exit $exit_status" |
| 2502 | } >&5 |
| 2503 | rm -f core *.core core.conftest.* && |
| 2504 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2505 | exit $exit_status |
| 2506 | ' 0 |
| 2507 | for ac_signal in 1 2 13 15; do |
| 2508 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2509 | done |
| 2510 | ac_signal=0 |
| 2511 | |
| 2512 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2513 | rm -f -r conftest* confdefs.h |
| 2514 | |
| 2515 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2516 | |
| 2517 | # Predefined preprocessor variables. |
| 2518 | |
| 2519 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2520 | |
| 2521 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2522 | |
| 2523 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2524 | |
| 2525 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2526 | |
| 2527 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2528 | |
| 2529 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2530 | |
| 2531 | |
| 2532 | # Let the site file select an alternate cache file if it wants to. |
| 2533 | # Prefer an explicitly selected file to automatically selected ones. |
| 2534 | if test -n "$CONFIG_SITE"; then |
| 2535 | ac_site_files="$CONFIG_SITE" |
| 2536 | elif test "x$prefix" != xNONE; then |
| 2537 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2538 | else |
| 2539 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2540 | fi |
| 2541 | |
| 2542 | for ac_site_file in $ac_site_files |
| 2543 | do |
| 2544 | case $ac_site_file in #( |
| 2545 | */*) : |
| 2546 | ;; #( |
| 2547 | *) : |
| 2548 | ac_site_file=./$ac_site_file ;; |
| 2549 | esac |
| 2550 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2552 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2553 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2554 | . "$ac_site_file" \ |
| 2555 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2556 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2557 | as_fn_error $? "failed to load site script $ac_site_file |
| 2558 | See \`config.log' for more details" "$LINENO" 5; } |
| 2559 | fi |
| 2560 | done |
| 2561 | |
| 2562 | if test -r "$cache_file"; then |
| 2563 | # Some versions of bash will fail to source /dev/null (special files |
| 2564 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2565 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2567 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2568 | case $cache_file in |
| 2569 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2570 | *) . "./$cache_file";; |
| 2571 | esac |
| 2572 | fi |
| 2573 | else |
| 2574 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2575 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2576 | >$cache_file |
| 2577 | fi |
| 2578 | |
| 2579 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
| 2580 | ac_cxx_conftest_cxx98_globals=' |
| 2581 | // Does the compiler advertise C++98 conformance? |
| 2582 | #if !defined __cplusplus || __cplusplus < 199711L |
| 2583 | # error "Compiler does not advertise C++98 conformance" |
| 2584 | #endif |
| 2585 | |
| 2586 | // These inclusions are to reject old compilers that |
| 2587 | // lack the unsuffixed header files. |
| 2588 | #include <cstdlib> |
| 2589 | #include <exception> |
| 2590 | |
| 2591 | // <cassert> and <cstring> are *not* freestanding headers in C++98. |
| 2592 | extern void assert (int); |
| 2593 | namespace std { |
| 2594 | extern int strcmp (const char *, const char *); |
| 2595 | } |
| 2596 | |
| 2597 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
| 2598 | using std::exception; |
| 2599 | using std::strcmp; |
| 2600 | |
| 2601 | namespace { |
| 2602 | |
| 2603 | void test_exception_syntax() |
| 2604 | { |
| 2605 | try { |
| 2606 | throw "test"; |
| 2607 | } catch (const char *s) { |
| 2608 | // Extra parentheses suppress a warning when building autoconf itself, |
| 2609 | // due to lint rules shared with more typical C programs. |
| 2610 | assert (!(strcmp) (s, "test")); |
| 2611 | } |
| 2612 | } |
| 2613 | |
| 2614 | template <typename T> struct test_template |
| 2615 | { |
| 2616 | T const val; |
| 2617 | explicit test_template(T t) : val(t) {} |
| 2618 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
| 2619 | }; |
| 2620 | |
| 2621 | } // anonymous namespace |
| 2622 | ' |
| 2623 | |
| 2624 | # Test code for whether the C++ compiler supports C++98 (body of main) |
| 2625 | ac_cxx_conftest_cxx98_main=' |
| 2626 | assert (argc); |
| 2627 | assert (! argv[0]); |
| 2628 | { |
| 2629 | test_exception_syntax (); |
| 2630 | test_template<double> tt (2.0); |
| 2631 | assert (tt.add (4) == 6.0); |
| 2632 | assert (true && !false); |
| 2633 | } |
| 2634 | ' |
| 2635 | |
| 2636 | # Test code for whether the C++ compiler supports C++11 (global declarations) |
| 2637 | ac_cxx_conftest_cxx11_globals=' |
| 2638 | // Does the compiler advertise C++ 2011 conformance? |
| 2639 | #if !defined __cplusplus || __cplusplus < 201103L |
| 2640 | # error "Compiler does not advertise C++11 conformance" |
| 2641 | #endif |
| 2642 | |
| 2643 | namespace cxx11test |
| 2644 | { |
| 2645 | constexpr int get_val() { return 20; } |
| 2646 | |
| 2647 | struct testinit |
| 2648 | { |
| 2649 | int i; |
| 2650 | double d; |
| 2651 | }; |
| 2652 | |
| 2653 | class delegate |
| 2654 | { |
| 2655 | public: |
| 2656 | delegate(int n) : n(n) {} |
| 2657 | delegate(): delegate(2354) {} |
| 2658 | |
| 2659 | virtual int getval() { return this->n; }; |
| 2660 | protected: |
| 2661 | int n; |
| 2662 | }; |
| 2663 | |
| 2664 | class overridden : public delegate |
| 2665 | { |
| 2666 | public: |
| 2667 | overridden(int n): delegate(n) {} |
| 2668 | virtual int getval() override final { return this->n * 2; } |
| 2669 | }; |
| 2670 | |
| 2671 | class nocopy |
| 2672 | { |
| 2673 | public: |
| 2674 | nocopy(int i): i(i) {} |
| 2675 | nocopy() = default; |
| 2676 | nocopy(const nocopy&) = delete; |
| 2677 | nocopy & operator=(const nocopy&) = delete; |
| 2678 | private: |
| 2679 | int i; |
| 2680 | }; |
| 2681 | |
| 2682 | // for testing lambda expressions |
| 2683 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
| 2684 | { |
| 2685 | return f(v); |
| 2686 | } |
| 2687 | |
| 2688 | // for testing variadic templates and trailing return types |
| 2689 | template <typename V> auto sum(V first) -> V |
| 2690 | { |
| 2691 | return first; |
| 2692 | } |
| 2693 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
| 2694 | { |
| 2695 | return first + sum(rest...); |
| 2696 | } |
| 2697 | } |
| 2698 | ' |
| 2699 | |
| 2700 | # Test code for whether the C++ compiler supports C++11 (body of main) |
| 2701 | ac_cxx_conftest_cxx11_main=' |
| 2702 | { |
| 2703 | // Test auto and decltype |
| 2704 | auto a1 = 6538; |
| 2705 | auto a2 = 48573953.4; |
| 2706 | auto a3 = "String literal"; |
| 2707 | |
| 2708 | int total = 0; |
| 2709 | for (auto i = a3; *i; ++i) { total += *i; } |
| 2710 | |
| 2711 | decltype(a2) a4 = 34895.034; |
| 2712 | } |
| 2713 | { |
| 2714 | // Test constexpr |
| 2715 | short sa[cxx11test::get_val()] = { 0 }; |
| 2716 | } |
| 2717 | { |
| 2718 | // Test initializer lists |
| 2719 | cxx11test::testinit il = { 4323, 435234.23544 }; |
| 2720 | } |
| 2721 | { |
| 2722 | // Test range-based for |
| 2723 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
| 2724 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
| 2725 | for (auto &x : array) { x += 23; } |
| 2726 | } |
| 2727 | { |
| 2728 | // Test lambda expressions |
| 2729 | using cxx11test::eval; |
| 2730 | assert (eval ([](int x) { return x*2; }, 21) == 42); |
| 2731 | double d = 2.0; |
| 2732 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
| 2733 | assert (d == 5.0); |
| 2734 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
| 2735 | assert (d == 5.0); |
| 2736 | } |
| 2737 | { |
| 2738 | // Test use of variadic templates |
| 2739 | using cxx11test::sum; |
| 2740 | auto a = sum(1); |
| 2741 | auto b = sum(1, 2); |
| 2742 | auto c = sum(1.0, 2.0, 3.0); |
| 2743 | } |
| 2744 | { |
| 2745 | // Test constructor delegation |
| 2746 | cxx11test::delegate d1; |
| 2747 | cxx11test::delegate d2(); |
| 2748 | cxx11test::delegate d3(45); |
| 2749 | } |
| 2750 | { |
| 2751 | // Test override and final |
| 2752 | cxx11test::overridden o1(55464); |
| 2753 | } |
| 2754 | { |
| 2755 | // Test nullptr |
| 2756 | char *c = nullptr; |
| 2757 | } |
| 2758 | { |
| 2759 | // Test template brackets |
| 2760 | test_template<::test_template<int>> v(test_template<int>(12)); |
| 2761 | } |
| 2762 | { |
| 2763 | // Unicode literals |
| 2764 | char const *utf8 = u8"UTF-8 string \u2500"; |
| 2765 | char16_t const *utf16 = u"UTF-8 string \u2500"; |
| 2766 | char32_t const *utf32 = U"UTF-32 string \u2500"; |
| 2767 | } |
| 2768 | ' |
| 2769 | |
| 2770 | # Test code for whether the C compiler supports C++11 (complete). |
| 2771 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
| 2772 | ${ac_cxx_conftest_cxx11_globals} |
| 2773 | |
| 2774 | int |
| 2775 | main (int argc, char **argv) |
| 2776 | { |
| 2777 | int ok = 0; |
| 2778 | ${ac_cxx_conftest_cxx98_main} |
| 2779 | ${ac_cxx_conftest_cxx11_main} |
| 2780 | return ok; |
| 2781 | } |
| 2782 | " |
| 2783 | |
| 2784 | # Test code for whether the C compiler supports C++98 (complete). |
| 2785 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
| 2786 | int |
| 2787 | main (int argc, char **argv) |
| 2788 | { |
| 2789 | int ok = 0; |
| 2790 | ${ac_cxx_conftest_cxx98_main} |
| 2791 | return ok; |
| 2792 | } |
| 2793 | " |
| 2794 | |
| 2795 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2796 | ac_c_conftest_c89_globals=' |
| 2797 | /* Does the compiler advertise C89 conformance? |
| 2798 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2799 | while being otherwise adequately conformant. */ |
| 2800 | #if !defined __STDC__ |
| 2801 | # error "Compiler does not advertise C89 conformance" |
| 2802 | #endif |
| 2803 | |
| 2804 | #include <stddef.h> |
| 2805 | #include <stdarg.h> |
| 2806 | struct stat; |
| 2807 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2808 | struct buf { int x; }; |
| 2809 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2810 | static char *e (p, i) |
| 2811 | char **p; |
| 2812 | int i; |
| 2813 | { |
| 2814 | return p[i]; |
| 2815 | } |
| 2816 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2817 | { |
| 2818 | char *s; |
| 2819 | va_list v; |
| 2820 | va_start (v,p); |
| 2821 | s = g (p, va_arg (v,int)); |
| 2822 | va_end (v); |
| 2823 | return s; |
| 2824 | } |
| 2825 | |
| 2826 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2827 | function prototypes and stuff, but not \xHH hex character constants. |
| 2828 | These do not provoke an error unfortunately, instead are silently treated |
| 2829 | as an "x". The following induces an error, until -std is added to get |
| 2830 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2831 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2832 | that is true only with -std. */ |
| 2833 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2834 | |
| 2835 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2836 | inside strings and character constants. */ |
| 2837 | #define FOO(x) '\''x'\'' |
| 2838 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2839 | |
| 2840 | int test (int i, double x); |
| 2841 | struct s1 {int (*f) (int a);}; |
| 2842 | struct s2 {int (*f) (double a);}; |
| 2843 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2844 | int, int);' |
| 2845 | |
| 2846 | # Test code for whether the C compiler supports C89 (body of main). |
| 2847 | ac_c_conftest_c89_main=' |
| 2848 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2849 | ' |
| 2850 | |
| 2851 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2852 | ac_c_conftest_c99_globals=' |
| 2853 | // Does the compiler advertise C99 conformance? |
| 2854 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2855 | # error "Compiler does not advertise C99 conformance" |
| 2856 | #endif |
| 2857 | |
| 2858 | #include <stdbool.h> |
| 2859 | extern int puts (const char *); |
| 2860 | extern int printf (const char *, ...); |
| 2861 | extern int dprintf (int, const char *, ...); |
| 2862 | extern void *malloc (size_t); |
| 2863 | |
| 2864 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2865 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2866 | // FILE and stderr. |
| 2867 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2868 | #define showlist(...) puts (#__VA_ARGS__) |
| 2869 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2870 | static void |
| 2871 | test_varargs_macros (void) |
| 2872 | { |
| 2873 | int x = 1234; |
| 2874 | int y = 5678; |
| 2875 | debug ("Flag"); |
| 2876 | debug ("X = %d\n", x); |
| 2877 | showlist (The first, second, and third items.); |
| 2878 | report (x>y, "x is %d but y is %d", x, y); |
| 2879 | } |
| 2880 | |
| 2881 | // Check long long types. |
| 2882 | #define BIG64 18446744073709551615ull |
| 2883 | #define BIG32 4294967295ul |
| 2884 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2885 | #if !BIG_OK |
| 2886 | #error "your preprocessor is broken" |
| 2887 | #endif |
| 2888 | #if BIG_OK |
| 2889 | #else |
| 2890 | #error "your preprocessor is broken" |
| 2891 | #endif |
| 2892 | static long long int bignum = -9223372036854775807LL; |
| 2893 | static unsigned long long int ubignum = BIG64; |
| 2894 | |
| 2895 | struct incomplete_array |
| 2896 | { |
| 2897 | int datasize; |
| 2898 | double data[]; |
| 2899 | }; |
| 2900 | |
| 2901 | struct named_init { |
| 2902 | int number; |
| 2903 | const wchar_t *name; |
| 2904 | double average; |
| 2905 | }; |
| 2906 | |
| 2907 | typedef const char *ccp; |
| 2908 | |
| 2909 | static inline int |
| 2910 | test_restrict (ccp restrict text) |
| 2911 | { |
| 2912 | // See if C++-style comments work. |
| 2913 | // Iterate through items via the restricted pointer. |
| 2914 | // Also check for declarations in for loops. |
| 2915 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2916 | continue; |
| 2917 | return 0; |
| 2918 | } |
| 2919 | |
| 2920 | // Check varargs and va_copy. |
| 2921 | static bool |
| 2922 | test_varargs (const char *format, ...) |
| 2923 | { |
| 2924 | va_list args; |
| 2925 | va_start (args, format); |
| 2926 | va_list args_copy; |
| 2927 | va_copy (args_copy, args); |
| 2928 | |
| 2929 | const char *str = ""; |
| 2930 | int number = 0; |
| 2931 | float fnumber = 0; |
| 2932 | |
| 2933 | while (*format) |
| 2934 | { |
| 2935 | switch (*format++) |
| 2936 | { |
| 2937 | case '\''s'\'': // string |
| 2938 | str = va_arg (args_copy, const char *); |
| 2939 | break; |
| 2940 | case '\''d'\'': // int |
| 2941 | number = va_arg (args_copy, int); |
| 2942 | break; |
| 2943 | case '\''f'\'': // float |
| 2944 | fnumber = va_arg (args_copy, double); |
| 2945 | break; |
| 2946 | default: |
| 2947 | break; |
| 2948 | } |
| 2949 | } |
| 2950 | va_end (args_copy); |
| 2951 | va_end (args); |
| 2952 | |
| 2953 | return *str && number && fnumber; |
| 2954 | } |
| 2955 | ' |
| 2956 | |
| 2957 | # Test code for whether the C compiler supports C99 (body of main). |
| 2958 | ac_c_conftest_c99_main=' |
| 2959 | // Check bool. |
| 2960 | _Bool success = false; |
| 2961 | success |= (argc != 0); |
| 2962 | |
| 2963 | // Check restrict. |
| 2964 | if (test_restrict ("String literal") == 0) |
| 2965 | success = true; |
| 2966 | char *restrict newvar = "Another string"; |
| 2967 | |
| 2968 | // Check varargs. |
| 2969 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2970 | test_varargs_macros (); |
| 2971 | |
| 2972 | // Check flexible array members. |
| 2973 | struct incomplete_array *ia = |
| 2974 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2975 | ia->datasize = 10; |
| 2976 | for (int i = 0; i < ia->datasize; ++i) |
| 2977 | ia->data[i] = i * 1.234; |
| 2978 | |
| 2979 | // Check named initializers. |
| 2980 | struct named_init ni = { |
| 2981 | .number = 34, |
| 2982 | .name = L"Test wide string", |
| 2983 | .average = 543.34343, |
| 2984 | }; |
| 2985 | |
| 2986 | ni.number = 58; |
| 2987 | |
| 2988 | int dynamic_array[ni.number]; |
| 2989 | dynamic_array[0] = argv[0][0]; |
| 2990 | dynamic_array[ni.number - 1] = 543; |
| 2991 | |
| 2992 | // work around unused variable warnings |
| 2993 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2994 | || dynamic_array[ni.number - 1] != 543); |
| 2995 | ' |
| 2996 | |
| 2997 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2998 | ac_c_conftest_c11_globals=' |
| 2999 | // Does the compiler advertise C11 conformance? |
| 3000 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 3001 | # error "Compiler does not advertise C11 conformance" |
| 3002 | #endif |
| 3003 | |
| 3004 | // Check _Alignas. |
| 3005 | char _Alignas (double) aligned_as_double; |
| 3006 | char _Alignas (0) no_special_alignment; |
| 3007 | extern char aligned_as_int; |
| 3008 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 3009 | |
| 3010 | // Check _Alignof. |
| 3011 | enum |
| 3012 | { |
| 3013 | int_alignment = _Alignof (int), |
| 3014 | int_array_alignment = _Alignof (int[100]), |
| 3015 | char_alignment = _Alignof (char) |
| 3016 | }; |
| 3017 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 3018 | |
| 3019 | // Check _Noreturn. |
| 3020 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 3021 | |
| 3022 | // Check _Static_assert. |
| 3023 | struct test_static_assert |
| 3024 | { |
| 3025 | int x; |
| 3026 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 3027 | "_Static_assert does not work in struct"); |
| 3028 | long int y; |
| 3029 | }; |
| 3030 | |
| 3031 | // Check UTF-8 literals. |
| 3032 | #define u8 syntax error! |
| 3033 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 3034 | |
| 3035 | // Check duplicate typedefs. |
| 3036 | typedef long *long_ptr; |
| 3037 | typedef long int *long_ptr; |
| 3038 | typedef long_ptr long_ptr; |
| 3039 | |
| 3040 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 3041 | struct anonymous |
| 3042 | { |
| 3043 | union { |
| 3044 | struct { int i; int j; }; |
| 3045 | struct { int k; long int l; } w; |
| 3046 | }; |
| 3047 | int m; |
| 3048 | } v1; |
| 3049 | ' |
| 3050 | |
| 3051 | # Test code for whether the C compiler supports C11 (body of main). |
| 3052 | ac_c_conftest_c11_main=' |
| 3053 | _Static_assert ((offsetof (struct anonymous, i) |
| 3054 | == offsetof (struct anonymous, w.k)), |
| 3055 | "Anonymous union alignment botch"); |
| 3056 | v1.i = 2; |
| 3057 | v1.w.k = 5; |
| 3058 | ok |= v1.i != 5; |
| 3059 | ' |
| 3060 | |
| 3061 | # Test code for whether the C compiler supports C11 (complete). |
| 3062 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 3063 | ${ac_c_conftest_c99_globals} |
| 3064 | ${ac_c_conftest_c11_globals} |
| 3065 | |
| 3066 | int |
| 3067 | main (int argc, char **argv) |
| 3068 | { |
| 3069 | int ok = 0; |
| 3070 | ${ac_c_conftest_c89_main} |
| 3071 | ${ac_c_conftest_c99_main} |
| 3072 | ${ac_c_conftest_c11_main} |
| 3073 | return ok; |
| 3074 | } |
| 3075 | " |
| 3076 | |
| 3077 | # Test code for whether the C compiler supports C99 (complete). |
| 3078 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 3079 | ${ac_c_conftest_c99_globals} |
| 3080 | |
| 3081 | int |
| 3082 | main (int argc, char **argv) |
| 3083 | { |
| 3084 | int ok = 0; |
| 3085 | ${ac_c_conftest_c89_main} |
| 3086 | ${ac_c_conftest_c99_main} |
| 3087 | return ok; |
| 3088 | } |
| 3089 | " |
| 3090 | |
| 3091 | # Test code for whether the C compiler supports C89 (complete). |
| 3092 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 3093 | |
| 3094 | int |
| 3095 | main (int argc, char **argv) |
| 3096 | { |
| 3097 | int ok = 0; |
| 3098 | ${ac_c_conftest_c89_main} |
| 3099 | return ok; |
| 3100 | } |
| 3101 | " |
| 3102 | |
| 3103 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 3104 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 3105 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 3106 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 3107 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 3108 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 3109 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 3110 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 3111 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 3112 | as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" |
| 3113 | as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" |
| 3114 | gt_needs="$gt_needs " |
| 3115 | |
| 3116 | # Auxiliary files required by this configure script. |
| 3117 | ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh" |
| 3118 | |
| 3119 | # Locations in which to look for auxiliary files. |
| 3120 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 3121 | |
| 3122 | # Search for a directory containing all of the required auxiliary files, |
| 3123 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3124 | # If we don't find one directory that contains all the files we need, |
| 3125 | # we report the set of missing files from the *first* directory in |
| 3126 | # $ac_aux_dir_candidates and give up. |
| 3127 | ac_missing_aux_files="" |
| 3128 | ac_first_candidate=: |
| 3129 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3131 | as_found=false |
| 3132 | for as_dir in $ac_aux_dir_candidates |
| 3133 | do |
| 3134 | IFS=$as_save_IFS |
| 3135 | case $as_dir in #((( |
| 3136 | '') as_dir=./ ;; |
| 3137 | */) ;; |
| 3138 | *) as_dir=$as_dir/ ;; |
| 3139 | esac |
| 3140 | as_found=: |
| 3141 | |
| 3142 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3143 | ac_aux_dir_found=yes |
| 3144 | ac_install_sh= |
| 3145 | for ac_aux in $ac_aux_files |
| 3146 | do |
| 3147 | # As a special case, if "install-sh" is required, that requirement |
| 3148 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3149 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 3150 | if test x"$ac_aux" = x"install-sh" |
| 3151 | then |
| 3152 | if test -f "${as_dir}install-sh"; then |
| 3153 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3154 | ac_install_sh="${as_dir}install-sh -c" |
| 3155 | elif test -f "${as_dir}install.sh"; then |
| 3156 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3157 | ac_install_sh="${as_dir}install.sh -c" |
| 3158 | elif test -f "${as_dir}shtool"; then |
| 3159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3160 | ac_install_sh="${as_dir}shtool install -c" |
| 3161 | else |
| 3162 | ac_aux_dir_found=no |
| 3163 | if $ac_first_candidate; then |
| 3164 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3165 | else |
| 3166 | break |
| 3167 | fi |
| 3168 | fi |
| 3169 | else |
| 3170 | if test -f "${as_dir}${ac_aux}"; then |
| 3171 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3172 | else |
| 3173 | ac_aux_dir_found=no |
| 3174 | if $ac_first_candidate; then |
| 3175 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3176 | else |
| 3177 | break |
| 3178 | fi |
| 3179 | fi |
| 3180 | fi |
| 3181 | done |
| 3182 | if test "$ac_aux_dir_found" = yes; then |
| 3183 | ac_aux_dir="$as_dir" |
| 3184 | break |
| 3185 | fi |
| 3186 | ac_first_candidate=false |
| 3187 | |
| 3188 | as_found=false |
| 3189 | done |
| 3190 | IFS=$as_save_IFS |
| 3191 | if $as_found |
| 3192 | then : |
| 3193 | |
| 3194 | else $as_nop |
| 3195 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 3196 | fi |
| 3197 | |
| 3198 | |
| 3199 | # These three variables are undocumented and unsupported, |
| 3200 | # and are intended to be withdrawn in a future Autoconf release. |
| 3201 | # They can cause serious problems if a builder's source tree is in a directory |
| 3202 | # whose full name contains unusual characters. |
| 3203 | if test -f "${ac_aux_dir}config.guess"; then |
| 3204 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3205 | fi |
| 3206 | if test -f "${ac_aux_dir}config.sub"; then |
| 3207 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3208 | fi |
| 3209 | if test -f "$ac_aux_dir/configure"; then |
| 3210 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3211 | fi |
| 3212 | |
| 3213 | # Check that the precious variables saved in the cache have kept the same |
| 3214 | # value. |
| 3215 | ac_cache_corrupted=false |
| 3216 | for ac_var in $ac_precious_vars; do |
| 3217 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3218 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3219 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3220 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3221 | case $ac_old_set,$ac_new_set in |
| 3222 | set,) |
| 3223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3224 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3225 | ac_cache_corrupted=: ;; |
| 3226 | ,set) |
| 3227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3228 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3229 | ac_cache_corrupted=: ;; |
| 3230 | ,);; |
| 3231 | *) |
| 3232 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3233 | # differences in whitespace do not lead to failure. |
| 3234 | ac_old_val_w=`echo x $ac_old_val` |
| 3235 | ac_new_val_w=`echo x $ac_new_val` |
| 3236 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3238 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3239 | ac_cache_corrupted=: |
| 3240 | else |
| 3241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3242 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3243 | eval $ac_var=\$ac_old_val |
| 3244 | fi |
| 3245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3246 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3248 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3249 | fi;; |
| 3250 | esac |
| 3251 | # Pass precious variables to config.status. |
| 3252 | if test "$ac_new_set" = set; then |
| 3253 | case $ac_new_val in |
| 3254 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3255 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3256 | esac |
| 3257 | case " $ac_configure_args " in |
| 3258 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3259 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3260 | esac |
| 3261 | fi |
| 3262 | done |
| 3263 | if $ac_cache_corrupted; then |
| 3264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3265 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3267 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3268 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 3269 | and start over" "$LINENO" 5 |
| 3270 | fi |
| 3271 | ## -------------------- ## |
| 3272 | ## Main body of script. ## |
| 3273 | ## -------------------- ## |
| 3274 | |
| 3275 | ac_ext=c |
| 3276 | ac_cpp='$CPP $CPPFLAGS' |
| 3277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3280 | |
| 3281 | |
| 3282 | am__api_version='1.16' |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | # Find a good install program. We prefer a C program (faster), |
| 3287 | # so one script is as good as another. But avoid the broken or |
| 3288 | # incompatible versions: |
| 3289 | # SysV /etc/install, /usr/sbin/install |
| 3290 | # SunOS /usr/etc/install |
| 3291 | # IRIX /sbin/install |
| 3292 | # AIX /bin/install |
| 3293 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3294 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3295 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3296 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3297 | # OS/2's system install, which has a completely different semantic |
| 3298 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3299 | # Reject install programs that cannot install multiple files. |
| 3300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3301 | printf %s "checking for a BSD-compatible install... " >&6; } |
| 3302 | if test -z "$INSTALL"; then |
| 3303 | if test ${ac_cv_path_install+y} |
| 3304 | then : |
| 3305 | printf %s "(cached) " >&6 |
| 3306 | else $as_nop |
| 3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3308 | for as_dir in $PATH |
| 3309 | do |
| 3310 | IFS=$as_save_IFS |
| 3311 | case $as_dir in #((( |
| 3312 | '') as_dir=./ ;; |
| 3313 | */) ;; |
| 3314 | *) as_dir=$as_dir/ ;; |
| 3315 | esac |
| 3316 | # Account for fact that we put trailing slashes in our PATH walk. |
| 3317 | case $as_dir in #(( |
| 3318 | ./ | /[cC]/* | \ |
| 3319 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3320 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3321 | /usr/ucb/* ) ;; |
| 3322 | *) |
| 3323 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3324 | # Don't use installbsd from OSF since it installs stuff as root |
| 3325 | # by default. |
| 3326 | for ac_prog in ginstall scoinst install; do |
| 3327 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3328 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 3329 | if test $ac_prog = install && |
| 3330 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3331 | # AIX install. It has an incompatible calling convention. |
| 3332 | : |
| 3333 | elif test $ac_prog = install && |
| 3334 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3335 | # program-specific install script used by HP pwplus--don't use. |
| 3336 | : |
| 3337 | else |
| 3338 | rm -rf conftest.one conftest.two conftest.dir |
| 3339 | echo one > conftest.one |
| 3340 | echo two > conftest.two |
| 3341 | mkdir conftest.dir |
| 3342 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 3343 | test -s conftest.one && test -s conftest.two && |
| 3344 | test -s conftest.dir/conftest.one && |
| 3345 | test -s conftest.dir/conftest.two |
| 3346 | then |
| 3347 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 3348 | break 3 |
| 3349 | fi |
| 3350 | fi |
| 3351 | fi |
| 3352 | done |
| 3353 | done |
| 3354 | ;; |
| 3355 | esac |
| 3356 | |
| 3357 | done |
| 3358 | IFS=$as_save_IFS |
| 3359 | |
| 3360 | rm -rf conftest.one conftest.two conftest.dir |
| 3361 | |
| 3362 | fi |
| 3363 | if test ${ac_cv_path_install+y}; then |
| 3364 | INSTALL=$ac_cv_path_install |
| 3365 | else |
| 3366 | # As a last resort, use the slow shell script. Don't cache a |
| 3367 | # value for INSTALL within a source directory, because that will |
| 3368 | # break other packages using the cache if that directory is |
| 3369 | # removed, or if the value is a relative name. |
| 3370 | INSTALL=$ac_install_sh |
| 3371 | fi |
| 3372 | fi |
| 3373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3374 | printf "%s\n" "$INSTALL" >&6; } |
| 3375 | |
| 3376 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3377 | # It thinks the first close brace ends the variable substitution. |
| 3378 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3379 | |
| 3380 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3381 | |
| 3382 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3383 | |
| 3384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3385 | printf %s "checking whether build environment is sane... " >&6; } |
| 3386 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3387 | # name. Accept space and tab only in the latter. |
| 3388 | am_lf=' |
| 3389 | ' |
| 3390 | case `pwd` in |
| 3391 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 3392 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3393 | esac |
| 3394 | case $srcdir in |
| 3395 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3396 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3397 | esac |
| 3398 | |
| 3399 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 3400 | # arguments. Must try -L first in case configure is actually a |
| 3401 | # symlink; some systems play weird games with the mod time of symlinks |
| 3402 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3403 | # directory). |
| 3404 | if ( |
| 3405 | am_has_slept=no |
| 3406 | for am_try in 1 2; do |
| 3407 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3408 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3409 | if test "$*" = "X"; then |
| 3410 | # -L didn't work. |
| 3411 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3412 | fi |
| 3413 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3414 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3415 | |
| 3416 | # If neither matched, then we have a broken ls. This can happen |
| 3417 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3418 | # broken ls alias from the environment. This has actually |
| 3419 | # happened. Such a system could not be considered "sane". |
| 3420 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 3421 | alias in your environment" "$LINENO" 5 |
| 3422 | fi |
| 3423 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 3424 | break |
| 3425 | fi |
| 3426 | # Just in case. |
| 3427 | sleep 1 |
| 3428 | am_has_slept=yes |
| 3429 | done |
| 3430 | test "$2" = conftest.file |
| 3431 | ) |
| 3432 | then |
| 3433 | # Ok. |
| 3434 | : |
| 3435 | else |
| 3436 | as_fn_error $? "newly created file is older than distributed files! |
| 3437 | Check your system clock" "$LINENO" 5 |
| 3438 | fi |
| 3439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3440 | printf "%s\n" "yes" >&6; } |
| 3441 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3442 | # generated files are strictly newer. |
| 3443 | am_sleep_pid= |
| 3444 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 3445 | ( sleep 1 ) & |
| 3446 | am_sleep_pid=$! |
| 3447 | fi |
| 3448 | |
| 3449 | rm -f conftest.file |
| 3450 | |
| 3451 | test "$program_prefix" != NONE && |
| 3452 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3453 | # Use a double $ so make ignores it. |
| 3454 | test "$program_suffix" != NONE && |
| 3455 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3456 | # Double any \ or $. |
| 3457 | # By default was `s,x,x', remove it if useless. |
| 3458 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3459 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 3460 | |
| 3461 | |
| 3462 | # Expand $ac_aux_dir to an absolute path. |
| 3463 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3464 | |
| 3465 | |
| 3466 | if test x"${MISSING+set}" != xset; then |
| 3467 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 3468 | fi |
| 3469 | # Use eval to expand $SHELL |
| 3470 | if eval "$MISSING --is-lightweight"; then |
| 3471 | am_missing_run="$MISSING " |
| 3472 | else |
| 3473 | am_missing_run= |
| 3474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3475 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3476 | fi |
| 3477 | |
| 3478 | if test x"${install_sh+set}" != xset; then |
| 3479 | case $am_aux_dir in |
| 3480 | *\ * | *\ *) |
| 3481 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3482 | *) |
| 3483 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3484 | esac |
| 3485 | fi |
| 3486 | |
| 3487 | # Installed binaries are usually stripped using 'strip' when the user |
| 3488 | # run "make install-strip". However 'strip' might not be the right |
| 3489 | # tool to use in cross-compilation environments, therefore Automake |
| 3490 | # will honor the 'STRIP' environment variable to overrule this program. |
| 3491 | if test "$cross_compiling" != no; then |
| 3492 | if test -n "$ac_tool_prefix"; then |
| 3493 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3494 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3496 | printf %s "checking for $ac_word... " >&6; } |
| 3497 | if test ${ac_cv_prog_STRIP+y} |
| 3498 | then : |
| 3499 | printf %s "(cached) " >&6 |
| 3500 | else $as_nop |
| 3501 | if test -n "$STRIP"; then |
| 3502 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3503 | else |
| 3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3505 | for as_dir in $PATH |
| 3506 | do |
| 3507 | IFS=$as_save_IFS |
| 3508 | case $as_dir in #((( |
| 3509 | '') as_dir=./ ;; |
| 3510 | */) ;; |
| 3511 | *) as_dir=$as_dir/ ;; |
| 3512 | esac |
| 3513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3514 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3515 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3516 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3517 | break 2 |
| 3518 | fi |
| 3519 | done |
| 3520 | done |
| 3521 | IFS=$as_save_IFS |
| 3522 | |
| 3523 | fi |
| 3524 | fi |
| 3525 | STRIP=$ac_cv_prog_STRIP |
| 3526 | if test -n "$STRIP"; then |
| 3527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3528 | printf "%s\n" "$STRIP" >&6; } |
| 3529 | else |
| 3530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3531 | printf "%s\n" "no" >&6; } |
| 3532 | fi |
| 3533 | |
| 3534 | |
| 3535 | fi |
| 3536 | if test -z "$ac_cv_prog_STRIP"; then |
| 3537 | ac_ct_STRIP=$STRIP |
| 3538 | # Extract the first word of "strip", so it can be a program name with args. |
| 3539 | set dummy strip; ac_word=$2 |
| 3540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3541 | printf %s "checking for $ac_word... " >&6; } |
| 3542 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 3543 | then : |
| 3544 | printf %s "(cached) " >&6 |
| 3545 | else $as_nop |
| 3546 | if test -n "$ac_ct_STRIP"; then |
| 3547 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3548 | else |
| 3549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3550 | for as_dir in $PATH |
| 3551 | do |
| 3552 | IFS=$as_save_IFS |
| 3553 | case $as_dir in #((( |
| 3554 | '') as_dir=./ ;; |
| 3555 | */) ;; |
| 3556 | *) as_dir=$as_dir/ ;; |
| 3557 | esac |
| 3558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3559 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3560 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3561 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3562 | break 2 |
| 3563 | fi |
| 3564 | done |
| 3565 | done |
| 3566 | IFS=$as_save_IFS |
| 3567 | |
| 3568 | fi |
| 3569 | fi |
| 3570 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3571 | if test -n "$ac_ct_STRIP"; then |
| 3572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3573 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 3574 | else |
| 3575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3576 | printf "%s\n" "no" >&6; } |
| 3577 | fi |
| 3578 | |
| 3579 | if test "x$ac_ct_STRIP" = x; then |
| 3580 | STRIP=":" |
| 3581 | else |
| 3582 | case $cross_compiling:$ac_tool_warned in |
| 3583 | yes:) |
| 3584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3585 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3586 | ac_tool_warned=yes ;; |
| 3587 | esac |
| 3588 | STRIP=$ac_ct_STRIP |
| 3589 | fi |
| 3590 | else |
| 3591 | STRIP="$ac_cv_prog_STRIP" |
| 3592 | fi |
| 3593 | |
| 3594 | fi |
| 3595 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3596 | |
| 3597 | |
| 3598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 3599 | printf %s "checking for a race-free mkdir -p... " >&6; } |
| 3600 | if test -z "$MKDIR_P"; then |
| 3601 | if test ${ac_cv_path_mkdir+y} |
| 3602 | then : |
| 3603 | printf %s "(cached) " >&6 |
| 3604 | else $as_nop |
| 3605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3606 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3607 | do |
| 3608 | IFS=$as_save_IFS |
| 3609 | case $as_dir in #((( |
| 3610 | '') as_dir=./ ;; |
| 3611 | */) ;; |
| 3612 | *) as_dir=$as_dir/ ;; |
| 3613 | esac |
| 3614 | for ac_prog in mkdir gmkdir; do |
| 3615 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3616 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 3617 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3618 | 'mkdir ('*'coreutils) '* | \ |
| 3619 | 'BusyBox '* | \ |
| 3620 | 'mkdir (fileutils) '4.1*) |
| 3621 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 3622 | break 3;; |
| 3623 | esac |
| 3624 | done |
| 3625 | done |
| 3626 | done |
| 3627 | IFS=$as_save_IFS |
| 3628 | |
| 3629 | fi |
| 3630 | |
| 3631 | test -d ./--version && rmdir ./--version |
| 3632 | if test ${ac_cv_path_mkdir+y}; then |
| 3633 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3634 | else |
| 3635 | # As a last resort, use the slow shell script. Don't cache a |
| 3636 | # value for MKDIR_P within a source directory, because that will |
| 3637 | # break other packages using the cache if that directory is |
| 3638 | # removed, or if the value is a relative name. |
| 3639 | MKDIR_P="$ac_install_sh -d" |
| 3640 | fi |
| 3641 | fi |
| 3642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3643 | printf "%s\n" "$MKDIR_P" >&6; } |
| 3644 | |
| 3645 | for ac_prog in gawk mawk nawk awk |
| 3646 | do |
| 3647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3648 | set dummy $ac_prog; ac_word=$2 |
| 3649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3650 | printf %s "checking for $ac_word... " >&6; } |
| 3651 | if test ${ac_cv_prog_AWK+y} |
| 3652 | then : |
| 3653 | printf %s "(cached) " >&6 |
| 3654 | else $as_nop |
| 3655 | if test -n "$AWK"; then |
| 3656 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3657 | else |
| 3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3659 | for as_dir in $PATH |
| 3660 | do |
| 3661 | IFS=$as_save_IFS |
| 3662 | case $as_dir in #((( |
| 3663 | '') as_dir=./ ;; |
| 3664 | */) ;; |
| 3665 | *) as_dir=$as_dir/ ;; |
| 3666 | esac |
| 3667 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3668 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3669 | ac_cv_prog_AWK="$ac_prog" |
| 3670 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3671 | break 2 |
| 3672 | fi |
| 3673 | done |
| 3674 | done |
| 3675 | IFS=$as_save_IFS |
| 3676 | |
| 3677 | fi |
| 3678 | fi |
| 3679 | AWK=$ac_cv_prog_AWK |
| 3680 | if test -n "$AWK"; then |
| 3681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3682 | printf "%s\n" "$AWK" >&6; } |
| 3683 | else |
| 3684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3685 | printf "%s\n" "no" >&6; } |
| 3686 | fi |
| 3687 | |
| 3688 | |
| 3689 | test -n "$AWK" && break |
| 3690 | done |
| 3691 | |
| 3692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3693 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3694 | set x ${MAKE-make} |
| 3695 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3696 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 3697 | then : |
| 3698 | printf %s "(cached) " >&6 |
| 3699 | else $as_nop |
| 3700 | cat >conftest.make <<\_ACEOF |
| 3701 | SHELL = /bin/sh |
| 3702 | all: |
| 3703 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3704 | _ACEOF |
| 3705 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3706 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3707 | *@@@%%%=?*=@@@%%%*) |
| 3708 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3709 | *) |
| 3710 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3711 | esac |
| 3712 | rm -f conftest.make |
| 3713 | fi |
| 3714 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3716 | printf "%s\n" "yes" >&6; } |
| 3717 | SET_MAKE= |
| 3718 | else |
| 3719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3720 | printf "%s\n" "no" >&6; } |
| 3721 | SET_MAKE="MAKE=${MAKE-make}" |
| 3722 | fi |
| 3723 | |
| 3724 | rm -rf .tst 2>/dev/null |
| 3725 | mkdir .tst 2>/dev/null |
| 3726 | if test -d .tst; then |
| 3727 | am__leading_dot=. |
| 3728 | else |
| 3729 | am__leading_dot=_ |
| 3730 | fi |
| 3731 | rmdir .tst 2>/dev/null |
| 3732 | |
| 3733 | # Check whether --enable-silent-rules was given. |
| 3734 | if test ${enable_silent_rules+y} |
| 3735 | then : |
| 3736 | enableval=$enable_silent_rules; |
| 3737 | fi |
| 3738 | |
| 3739 | case $enable_silent_rules in # ((( |
| 3740 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3741 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3742 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3743 | esac |
| 3744 | am_make=${MAKE-make} |
| 3745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3746 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 3747 | if test ${am_cv_make_support_nested_variables+y} |
| 3748 | then : |
| 3749 | printf %s "(cached) " >&6 |
| 3750 | else $as_nop |
| 3751 | if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 3752 | BAR0=false |
| 3753 | BAR1=true |
| 3754 | V=1 |
| 3755 | am__doit: |
| 3756 | @$(TRUE) |
| 3757 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3758 | am_cv_make_support_nested_variables=yes |
| 3759 | else |
| 3760 | am_cv_make_support_nested_variables=no |
| 3761 | fi |
| 3762 | fi |
| 3763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3764 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 3765 | if test $am_cv_make_support_nested_variables = yes; then |
| 3766 | AM_V='$(V)' |
| 3767 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3768 | else |
| 3769 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3770 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3771 | fi |
| 3772 | AM_BACKSLASH='\' |
| 3773 | |
| 3774 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3775 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3776 | # is not polluted with repeated "-I." |
| 3777 | am__isrc=' -I$(srcdir)' |
| 3778 | # test to see if srcdir already configured |
| 3779 | if test -f $srcdir/config.status; then |
| 3780 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3781 | fi |
| 3782 | fi |
| 3783 | |
| 3784 | # test whether we have cygpath |
| 3785 | if test -z "$CYGPATH_W"; then |
| 3786 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3787 | CYGPATH_W='cygpath -w' |
| 3788 | else |
| 3789 | CYGPATH_W=echo |
| 3790 | fi |
| 3791 | fi |
| 3792 | |
| 3793 | |
| 3794 | # Define the identity of the package. |
| 3795 | PACKAGE='libvisual' |
| 3796 | VERSION='0.4.2' |
| 3797 | |
| 3798 | |
| 3799 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 3800 | |
| 3801 | |
| 3802 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 3803 | |
| 3804 | # Some tools Automake needs. |
| 3805 | |
| 3806 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3807 | |
| 3808 | |
| 3809 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3810 | |
| 3811 | |
| 3812 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3813 | |
| 3814 | |
| 3815 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3816 | |
| 3817 | |
| 3818 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3819 | |
| 3820 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 3821 | # dies out for good. For more background, see: |
| 3822 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3823 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3824 | mkdir_p='$(MKDIR_P)' |
| 3825 | |
| 3826 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 3827 | # system "awk" is bad on some platforms. |
| 3828 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3829 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3830 | AMTAR='$${TAR-tar}' |
| 3831 | |
| 3832 | |
| 3833 | # We'll loop over all known methods to create a tar archive until one works. |
| 3834 | _am_tools='gnutar pax cpio none' |
| 3835 | |
| 3836 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | # Variables for tags utilities; see am/tags.am |
| 3843 | if test -z "$CTAGS"; then |
| 3844 | CTAGS=ctags |
| 3845 | fi |
| 3846 | |
| 3847 | if test -z "$ETAGS"; then |
| 3848 | ETAGS=etags |
| 3849 | fi |
| 3850 | |
| 3851 | if test -z "$CSCOPE"; then |
| 3852 | CSCOPE=cscope |
| 3853 | fi |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3858 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3859 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3860 | # actually supported "in the wild" to an acceptable degree. |
| 3861 | # See automake bug#10828. |
| 3862 | # To make any issue more visible, cause the running configure to be aborted |
| 3863 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3864 | # user can still override this though. |
| 3865 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3866 | cat >&2 <<'END' |
| 3867 | Oops! |
| 3868 | |
| 3869 | Your 'rm' program seems unable to run without file operands specified |
| 3870 | on the command line, even when the '-f' option is present. This is contrary |
| 3871 | to the behaviour of most rm programs out there, and not conforming with |
| 3872 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3873 | |
| 3874 | Please tell [email protected] about your system, including the value |
| 3875 | of your $PATH and any error possibly output before this message. This |
| 3876 | can help us improve future automake versions. |
| 3877 | |
| 3878 | END |
| 3879 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3880 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3881 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3882 | echo >&2 |
| 3883 | else |
| 3884 | cat >&2 <<'END' |
| 3885 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3886 | |
| 3887 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3888 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 3889 | |
| 3890 | If you want to complete the configuration process using your problematic |
| 3891 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3892 | to "yes", and re-run configure. |
| 3893 | |
| 3894 | END |
| 3895 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3896 | fi |
| 3897 | fi |
| 3898 | |
| 3899 | |
| 3900 | LIBVISUAL_VERSION_MAJOR=0 |
| 3901 | LIBVISUAL_VERSION_MINOR=4 |
| 3902 | LIBVISUAL_VERSION_MICRO=2 |
| 3903 | LIBVISUAL_VERSION=0.4.2 |
| 3904 | |
| 3905 | LIBVISUAL_VERSION_SUFFIX="$LIBVISUAL_VERSION_MAJOR.$LIBVISUAL_VERSION_MINOR" |
| 3906 | |
| 3907 | |
| 3908 | ac_config_headers="$ac_config_headers config.h" |
| 3909 | |
| 3910 | |
| 3911 | |
| 3912 | |
| 3913 | # Make sure we can run config.sub. |
| 3914 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3915 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3916 | |
| 3917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3918 | printf %s "checking build system type... " >&6; } |
| 3919 | if test ${ac_cv_build+y} |
| 3920 | then : |
| 3921 | printf %s "(cached) " >&6 |
| 3922 | else $as_nop |
| 3923 | ac_build_alias=$build_alias |
| 3924 | test "x$ac_build_alias" = x && |
| 3925 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 3926 | test "x$ac_build_alias" = x && |
| 3927 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3928 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3929 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3930 | |
| 3931 | fi |
| 3932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3933 | printf "%s\n" "$ac_cv_build" >&6; } |
| 3934 | case $ac_cv_build in |
| 3935 | *-*-*) ;; |
| 3936 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3937 | esac |
| 3938 | build=$ac_cv_build |
| 3939 | ac_save_IFS=$IFS; IFS='-' |
| 3940 | set x $ac_cv_build |
| 3941 | shift |
| 3942 | build_cpu=$1 |
| 3943 | build_vendor=$2 |
| 3944 | shift; shift |
| 3945 | # Remember, the first character of IFS is used to create $*, |
| 3946 | # except with old shells: |
| 3947 | build_os=$* |
| 3948 | IFS=$ac_save_IFS |
| 3949 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3950 | |
| 3951 | |
| 3952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3953 | printf %s "checking host system type... " >&6; } |
| 3954 | if test ${ac_cv_host+y} |
| 3955 | then : |
| 3956 | printf %s "(cached) " >&6 |
| 3957 | else $as_nop |
| 3958 | if test "x$host_alias" = x; then |
| 3959 | ac_cv_host=$ac_cv_build |
| 3960 | else |
| 3961 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3962 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 3963 | fi |
| 3964 | |
| 3965 | fi |
| 3966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3967 | printf "%s\n" "$ac_cv_host" >&6; } |
| 3968 | case $ac_cv_host in |
| 3969 | *-*-*) ;; |
| 3970 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3971 | esac |
| 3972 | host=$ac_cv_host |
| 3973 | ac_save_IFS=$IFS; IFS='-' |
| 3974 | set x $ac_cv_host |
| 3975 | shift |
| 3976 | host_cpu=$1 |
| 3977 | host_vendor=$2 |
| 3978 | shift; shift |
| 3979 | # Remember, the first character of IFS is used to create $*, |
| 3980 | # except with old shells: |
| 3981 | host_os=$* |
| 3982 | IFS=$ac_save_IFS |
| 3983 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | lv_mips=no |
| 3988 | lv_alpha=no |
| 3989 | lv_sparc=no |
| 3990 | lv_ix86=no |
| 3991 | lv_x86_64=no |
| 3992 | lv_powerpc=no |
| 3993 | |
| 3994 | case "$host_cpu" in |
| 3995 | mips) lv_mips=yes;; |
| 3996 | alpha) lv_alpha=yes;; |
| 3997 | sparc) lv_sparc=yes;; |
| 3998 | i*86) lv_ix86=yes;; |
| 3999 | x86_64*) lv_x86_64=yes;; |
| 4000 | powerpc|ppc) lv_powerpc=yes;; |
| 4001 | *) lv_arch_unknown=yes;; |
| 4002 | esac |
| 4003 | |
| 4004 | lv_hpux=no |
| 4005 | lv_aix=no |
| 4006 | lv_beos=no |
| 4007 | lv_osf=no |
| 4008 | lv_irix=no |
| 4009 | lv_sunos=no |
| 4010 | lv_solaris=no |
| 4011 | lv_linux=no |
| 4012 | lv_sco=no |
| 4013 | lv_freebsd=no |
| 4014 | lv_netbsd=no |
| 4015 | lv_openbsd=no |
| 4016 | lv_darwin=no |
| 4017 | lv_cygwin=no |
| 4018 | lv_mingw=no |
| 4019 | lv_os_unknown=no |
| 4020 | |
| 4021 | case "$host_os" in |
| 4022 | hpux9* | hpux10* | hpux11*) lv_hpux=yes;; |
| 4023 | aix*) lv_aix=yes;; |
| 4024 | beos*) lv_beos=yes;; |
| 4025 | *osf*) lv_osf=yes;; |
| 4026 | irix*) lv_irix=yes;; |
| 4027 | sunos*) lv_sunos=yes;; |
| 4028 | solaris*) lv_solaris=yes;; |
| 4029 | linux*) lv_linux=yes;; |
| 4030 | *sco*) lv_sco=yes;; |
| 4031 | freebsd*) lv_freebsd=yes;; |
| 4032 | netbsd*) lv_netbsd=yes;; |
| 4033 | openbsd*) lv_openbsd=yes;; |
| 4034 | *darwin*) lv_darwin=yes;; |
| 4035 | cygwin*) lv_cygwin=yes;; |
| 4036 | mingw*) lv_mingw=yes;; |
| 4037 | *) lv_os_unknown=yes;; |
| 4038 | esac |
| 4039 | |
| 4040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5 |
| 4041 | printf %s "checking for Win32... " >&6; } |
| 4042 | if test x$lv_cygwin = xyes || test x$lv_mingw = xyes ; then |
| 4043 | lv_win32=yes |
| 4044 | else |
| 4045 | lv_win32=no |
| 4046 | fi |
| 4047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lv_win32" >&5 |
| 4048 | printf "%s\n" "$lv_win32" >&6; } |
| 4049 | |
| 4050 | # Checks for programs. |
| 4051 | |
| 4052 | |
| 4053 | |
| 4054 | |
| 4055 | |
| 4056 | |
| 4057 | ac_ext=cpp |
| 4058 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4059 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4060 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4061 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4062 | if test -z "$CXX"; then |
| 4063 | if test -n "$CCC"; then |
| 4064 | CXX=$CCC |
| 4065 | else |
| 4066 | if test -n "$ac_tool_prefix"; then |
| 4067 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 4068 | do |
| 4069 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4070 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4072 | printf %s "checking for $ac_word... " >&6; } |
| 4073 | if test ${ac_cv_prog_CXX+y} |
| 4074 | then : |
| 4075 | printf %s "(cached) " >&6 |
| 4076 | else $as_nop |
| 4077 | if test -n "$CXX"; then |
| 4078 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4079 | else |
| 4080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4081 | for as_dir in $PATH |
| 4082 | do |
| 4083 | IFS=$as_save_IFS |
| 4084 | case $as_dir in #((( |
| 4085 | '') as_dir=./ ;; |
| 4086 | */) ;; |
| 4087 | *) as_dir=$as_dir/ ;; |
| 4088 | esac |
| 4089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4090 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4091 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4092 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4093 | break 2 |
| 4094 | fi |
| 4095 | done |
| 4096 | done |
| 4097 | IFS=$as_save_IFS |
| 4098 | |
| 4099 | fi |
| 4100 | fi |
| 4101 | CXX=$ac_cv_prog_CXX |
| 4102 | if test -n "$CXX"; then |
| 4103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4104 | printf "%s\n" "$CXX" >&6; } |
| 4105 | else |
| 4106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4107 | printf "%s\n" "no" >&6; } |
| 4108 | fi |
| 4109 | |
| 4110 | |
| 4111 | test -n "$CXX" && break |
| 4112 | done |
| 4113 | fi |
| 4114 | if test -z "$CXX"; then |
| 4115 | ac_ct_CXX=$CXX |
| 4116 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 4117 | do |
| 4118 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4119 | set dummy $ac_prog; ac_word=$2 |
| 4120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4121 | printf %s "checking for $ac_word... " >&6; } |
| 4122 | if test ${ac_cv_prog_ac_ct_CXX+y} |
| 4123 | then : |
| 4124 | printf %s "(cached) " >&6 |
| 4125 | else $as_nop |
| 4126 | if test -n "$ac_ct_CXX"; then |
| 4127 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4128 | else |
| 4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4130 | for as_dir in $PATH |
| 4131 | do |
| 4132 | IFS=$as_save_IFS |
| 4133 | case $as_dir in #((( |
| 4134 | '') as_dir=./ ;; |
| 4135 | */) ;; |
| 4136 | *) as_dir=$as_dir/ ;; |
| 4137 | esac |
| 4138 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4139 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4140 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4141 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4142 | break 2 |
| 4143 | fi |
| 4144 | done |
| 4145 | done |
| 4146 | IFS=$as_save_IFS |
| 4147 | |
| 4148 | fi |
| 4149 | fi |
| 4150 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4151 | if test -n "$ac_ct_CXX"; then |
| 4152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4153 | printf "%s\n" "$ac_ct_CXX" >&6; } |
| 4154 | else |
| 4155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4156 | printf "%s\n" "no" >&6; } |
| 4157 | fi |
| 4158 | |
| 4159 | |
| 4160 | test -n "$ac_ct_CXX" && break |
| 4161 | done |
| 4162 | |
| 4163 | if test "x$ac_ct_CXX" = x; then |
| 4164 | CXX="g++" |
| 4165 | else |
| 4166 | case $cross_compiling:$ac_tool_warned in |
| 4167 | yes:) |
| 4168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4169 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4170 | ac_tool_warned=yes ;; |
| 4171 | esac |
| 4172 | CXX=$ac_ct_CXX |
| 4173 | fi |
| 4174 | fi |
| 4175 | |
| 4176 | fi |
| 4177 | fi |
| 4178 | # Provide some information about the compiler. |
| 4179 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4180 | set X $ac_compile |
| 4181 | ac_compiler=$2 |
| 4182 | for ac_option in --version -v -V -qversion; do |
| 4183 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4184 | case "(($ac_try" in |
| 4185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4186 | *) ac_try_echo=$ac_try;; |
| 4187 | esac |
| 4188 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4189 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4190 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4191 | ac_status=$? |
| 4192 | if test -s conftest.err; then |
| 4193 | sed '10a\ |
| 4194 | ... rest of stderr output deleted ... |
| 4195 | 10q' conftest.err >conftest.er1 |
| 4196 | cat conftest.er1 >&5 |
| 4197 | fi |
| 4198 | rm -f conftest.er1 conftest.err |
| 4199 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4200 | test $ac_status = 0; } |
| 4201 | done |
| 4202 | |
| 4203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4204 | /* end confdefs.h. */ |
| 4205 | |
| 4206 | int |
| 4207 | main (void) |
| 4208 | { |
| 4209 | |
| 4210 | ; |
| 4211 | return 0; |
| 4212 | } |
| 4213 | _ACEOF |
| 4214 | ac_clean_files_save=$ac_clean_files |
| 4215 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4216 | # Try to create an executable without -o first, disregard a.out. |
| 4217 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4218 | # of exeext. |
| 4219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
| 4220 | printf %s "checking whether the C++ compiler works... " >&6; } |
| 4221 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4222 | |
| 4223 | # The possible output files: |
| 4224 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4225 | |
| 4226 | ac_rmfiles= |
| 4227 | for ac_file in $ac_files |
| 4228 | do |
| 4229 | case $ac_file in |
| 4230 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4231 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4232 | esac |
| 4233 | done |
| 4234 | rm -f $ac_rmfiles |
| 4235 | |
| 4236 | if { { ac_try="$ac_link_default" |
| 4237 | case "(($ac_try" in |
| 4238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4239 | *) ac_try_echo=$ac_try;; |
| 4240 | esac |
| 4241 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4242 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4243 | (eval "$ac_link_default") 2>&5 |
| 4244 | ac_status=$? |
| 4245 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4246 | test $ac_status = 0; } |
| 4247 | then : |
| 4248 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4249 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4250 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4251 | # so that the user can short-circuit this test for compilers unknown to |
| 4252 | # Autoconf. |
| 4253 | for ac_file in $ac_files '' |
| 4254 | do |
| 4255 | test -f "$ac_file" || continue |
| 4256 | case $ac_file in |
| 4257 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4258 | ;; |
| 4259 | [ab].out ) |
| 4260 | # We found the default executable, but exeext='' is most |
| 4261 | # certainly right. |
| 4262 | break;; |
| 4263 | *.* ) |
| 4264 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4265 | then :; else |
| 4266 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4267 | fi |
| 4268 | # We set ac_cv_exeext here because the later test for it is not |
| 4269 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4270 | # argument, so we may need to know it at that point already. |
| 4271 | # Even if this section looks crufty: it has the advantage of |
| 4272 | # actually working. |
| 4273 | break;; |
| 4274 | * ) |
| 4275 | break;; |
| 4276 | esac |
| 4277 | done |
| 4278 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4279 | |
| 4280 | else $as_nop |
| 4281 | ac_file='' |
| 4282 | fi |
| 4283 | if test -z "$ac_file" |
| 4284 | then : |
| 4285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4286 | printf "%s\n" "no" >&6; } |
| 4287 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 4288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4289 | |
| 4290 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4291 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4292 | as_fn_error 77 "C++ compiler cannot create executables |
| 4293 | See \`config.log' for more details" "$LINENO" 5; } |
| 4294 | else $as_nop |
| 4295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4296 | printf "%s\n" "yes" >&6; } |
| 4297 | fi |
| 4298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
| 4299 | printf %s "checking for C++ compiler default output file name... " >&6; } |
| 4300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4301 | printf "%s\n" "$ac_file" >&6; } |
| 4302 | ac_exeext=$ac_cv_exeext |
| 4303 | |
| 4304 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4305 | ac_clean_files=$ac_clean_files_save |
| 4306 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4307 | printf %s "checking for suffix of executables... " >&6; } |
| 4308 | if { { ac_try="$ac_link" |
| 4309 | case "(($ac_try" in |
| 4310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4311 | *) ac_try_echo=$ac_try;; |
| 4312 | esac |
| 4313 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4314 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4315 | (eval "$ac_link") 2>&5 |
| 4316 | ac_status=$? |
| 4317 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4318 | test $ac_status = 0; } |
| 4319 | then : |
| 4320 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4321 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4322 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4323 | # `rm'. |
| 4324 | for ac_file in conftest.exe conftest conftest.*; do |
| 4325 | test -f "$ac_file" || continue |
| 4326 | case $ac_file in |
| 4327 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4328 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4329 | break;; |
| 4330 | * ) break;; |
| 4331 | esac |
| 4332 | done |
| 4333 | else $as_nop |
| 4334 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4335 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4336 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4337 | See \`config.log' for more details" "$LINENO" 5; } |
| 4338 | fi |
| 4339 | rm -f conftest conftest$ac_cv_exeext |
| 4340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4341 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4342 | |
| 4343 | rm -f conftest.$ac_ext |
| 4344 | EXEEXT=$ac_cv_exeext |
| 4345 | ac_exeext=$EXEEXT |
| 4346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4347 | /* end confdefs.h. */ |
| 4348 | #include <stdio.h> |
| 4349 | int |
| 4350 | main (void) |
| 4351 | { |
| 4352 | FILE *f = fopen ("conftest.out", "w"); |
| 4353 | return ferror (f) || fclose (f) != 0; |
| 4354 | |
| 4355 | ; |
| 4356 | return 0; |
| 4357 | } |
| 4358 | _ACEOF |
| 4359 | ac_clean_files="$ac_clean_files conftest.out" |
| 4360 | # Check that the compiler produces executables we can run. If not, either |
| 4361 | # the compiler is broken, or we cross compile. |
| 4362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4363 | printf %s "checking whether we are cross compiling... " >&6; } |
| 4364 | if test "$cross_compiling" != yes; then |
| 4365 | { { ac_try="$ac_link" |
| 4366 | case "(($ac_try" in |
| 4367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4368 | *) ac_try_echo=$ac_try;; |
| 4369 | esac |
| 4370 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4371 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4372 | (eval "$ac_link") 2>&5 |
| 4373 | ac_status=$? |
| 4374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4375 | test $ac_status = 0; } |
| 4376 | if { ac_try='./conftest$ac_cv_exeext' |
| 4377 | { { case "(($ac_try" in |
| 4378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4379 | *) ac_try_echo=$ac_try;; |
| 4380 | esac |
| 4381 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4382 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4383 | (eval "$ac_try") 2>&5 |
| 4384 | ac_status=$? |
| 4385 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4386 | test $ac_status = 0; }; }; then |
| 4387 | cross_compiling=no |
| 4388 | else |
| 4389 | if test "$cross_compiling" = maybe; then |
| 4390 | cross_compiling=yes |
| 4391 | else |
| 4392 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4393 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4394 | as_fn_error 77 "cannot run C++ compiled programs. |
| 4395 | If you meant to cross compile, use \`--host'. |
| 4396 | See \`config.log' for more details" "$LINENO" 5; } |
| 4397 | fi |
| 4398 | fi |
| 4399 | fi |
| 4400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4401 | printf "%s\n" "$cross_compiling" >&6; } |
| 4402 | |
| 4403 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4404 | ac_clean_files=$ac_clean_files_save |
| 4405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4406 | printf %s "checking for suffix of object files... " >&6; } |
| 4407 | if test ${ac_cv_objext+y} |
| 4408 | then : |
| 4409 | printf %s "(cached) " >&6 |
| 4410 | else $as_nop |
| 4411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4412 | /* end confdefs.h. */ |
| 4413 | |
| 4414 | int |
| 4415 | main (void) |
| 4416 | { |
| 4417 | |
| 4418 | ; |
| 4419 | return 0; |
| 4420 | } |
| 4421 | _ACEOF |
| 4422 | rm -f conftest.o conftest.obj |
| 4423 | if { { ac_try="$ac_compile" |
| 4424 | case "(($ac_try" in |
| 4425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4426 | *) ac_try_echo=$ac_try;; |
| 4427 | esac |
| 4428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4429 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4430 | (eval "$ac_compile") 2>&5 |
| 4431 | ac_status=$? |
| 4432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4433 | test $ac_status = 0; } |
| 4434 | then : |
| 4435 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4436 | test -f "$ac_file" || continue; |
| 4437 | case $ac_file in |
| 4438 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4439 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4440 | break;; |
| 4441 | esac |
| 4442 | done |
| 4443 | else $as_nop |
| 4444 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 4445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4446 | |
| 4447 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4448 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4449 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4450 | See \`config.log' for more details" "$LINENO" 5; } |
| 4451 | fi |
| 4452 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4453 | fi |
| 4454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4455 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 4456 | OBJEXT=$ac_cv_objext |
| 4457 | ac_objext=$OBJEXT |
| 4458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 4459 | printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 4460 | if test ${ac_cv_cxx_compiler_gnu+y} |
| 4461 | then : |
| 4462 | printf %s "(cached) " >&6 |
| 4463 | else $as_nop |
| 4464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4465 | /* end confdefs.h. */ |
| 4466 | |
| 4467 | int |
| 4468 | main (void) |
| 4469 | { |
| 4470 | #ifndef __GNUC__ |
| 4471 | choke me |
| 4472 | #endif |
| 4473 | |
| 4474 | ; |
| 4475 | return 0; |
| 4476 | } |
| 4477 | _ACEOF |
| 4478 | if ac_fn_cxx_try_compile "$LINENO" |
| 4479 | then : |
| 4480 | ac_compiler_gnu=yes |
| 4481 | else $as_nop |
| 4482 | ac_compiler_gnu=no |
| 4483 | fi |
| 4484 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4485 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4486 | |
| 4487 | fi |
| 4488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4489 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4490 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4491 | |
| 4492 | if test $ac_compiler_gnu = yes; then |
| 4493 | GXX=yes |
| 4494 | else |
| 4495 | GXX= |
| 4496 | fi |
| 4497 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 4498 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4500 | printf %s "checking whether $CXX accepts -g... " >&6; } |
| 4501 | if test ${ac_cv_prog_cxx_g+y} |
| 4502 | then : |
| 4503 | printf %s "(cached) " >&6 |
| 4504 | else $as_nop |
| 4505 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4506 | ac_cxx_werror_flag=yes |
| 4507 | ac_cv_prog_cxx_g=no |
| 4508 | CXXFLAGS="-g" |
| 4509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4510 | /* end confdefs.h. */ |
| 4511 | |
| 4512 | int |
| 4513 | main (void) |
| 4514 | { |
| 4515 | |
| 4516 | ; |
| 4517 | return 0; |
| 4518 | } |
| 4519 | _ACEOF |
| 4520 | if ac_fn_cxx_try_compile "$LINENO" |
| 4521 | then : |
| 4522 | ac_cv_prog_cxx_g=yes |
| 4523 | else $as_nop |
| 4524 | CXXFLAGS="" |
| 4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4526 | /* end confdefs.h. */ |
| 4527 | |
| 4528 | int |
| 4529 | main (void) |
| 4530 | { |
| 4531 | |
| 4532 | ; |
| 4533 | return 0; |
| 4534 | } |
| 4535 | _ACEOF |
| 4536 | if ac_fn_cxx_try_compile "$LINENO" |
| 4537 | then : |
| 4538 | |
| 4539 | else $as_nop |
| 4540 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4541 | CXXFLAGS="-g" |
| 4542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4543 | /* end confdefs.h. */ |
| 4544 | |
| 4545 | int |
| 4546 | main (void) |
| 4547 | { |
| 4548 | |
| 4549 | ; |
| 4550 | return 0; |
| 4551 | } |
| 4552 | _ACEOF |
| 4553 | if ac_fn_cxx_try_compile "$LINENO" |
| 4554 | then : |
| 4555 | ac_cv_prog_cxx_g=yes |
| 4556 | fi |
| 4557 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4558 | fi |
| 4559 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4560 | fi |
| 4561 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4562 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4563 | fi |
| 4564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4565 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
| 4566 | if test $ac_test_CXXFLAGS; then |
| 4567 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4568 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4569 | if test "$GXX" = yes; then |
| 4570 | CXXFLAGS="-g -O2" |
| 4571 | else |
| 4572 | CXXFLAGS="-g" |
| 4573 | fi |
| 4574 | else |
| 4575 | if test "$GXX" = yes; then |
| 4576 | CXXFLAGS="-O2" |
| 4577 | else |
| 4578 | CXXFLAGS= |
| 4579 | fi |
| 4580 | fi |
| 4581 | ac_prog_cxx_stdcxx=no |
| 4582 | if test x$ac_prog_cxx_stdcxx = xno |
| 4583 | then : |
| 4584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 4585 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 4586 | if test ${ac_cv_prog_cxx_11+y} |
| 4587 | then : |
| 4588 | printf %s "(cached) " >&6 |
| 4589 | else $as_nop |
| 4590 | ac_cv_prog_cxx_11=no |
| 4591 | ac_save_CXX=$CXX |
| 4592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4593 | /* end confdefs.h. */ |
| 4594 | $ac_cxx_conftest_cxx11_program |
| 4595 | _ACEOF |
| 4596 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 4597 | do |
| 4598 | CXX="$ac_save_CXX $ac_arg" |
| 4599 | if ac_fn_cxx_try_compile "$LINENO" |
| 4600 | then : |
| 4601 | ac_cv_prog_cxx_cxx11=$ac_arg |
| 4602 | fi |
| 4603 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4604 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 4605 | done |
| 4606 | rm -f conftest.$ac_ext |
| 4607 | CXX=$ac_save_CXX |
| 4608 | fi |
| 4609 | |
| 4610 | if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 4611 | then : |
| 4612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4613 | printf "%s\n" "unsupported" >&6; } |
| 4614 | else $as_nop |
| 4615 | if test "x$ac_cv_prog_cxx_cxx11" = x |
| 4616 | then : |
| 4617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4618 | printf "%s\n" "none needed" >&6; } |
| 4619 | else $as_nop |
| 4620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 4621 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
| 4622 | CXX="$CXX $ac_cv_prog_cxx_cxx11" |
| 4623 | fi |
| 4624 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 4625 | ac_prog_cxx_stdcxx=cxx11 |
| 4626 | fi |
| 4627 | fi |
| 4628 | if test x$ac_prog_cxx_stdcxx = xno |
| 4629 | then : |
| 4630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 4631 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 4632 | if test ${ac_cv_prog_cxx_98+y} |
| 4633 | then : |
| 4634 | printf %s "(cached) " >&6 |
| 4635 | else $as_nop |
| 4636 | ac_cv_prog_cxx_98=no |
| 4637 | ac_save_CXX=$CXX |
| 4638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4639 | /* end confdefs.h. */ |
| 4640 | $ac_cxx_conftest_cxx98_program |
| 4641 | _ACEOF |
| 4642 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 4643 | do |
| 4644 | CXX="$ac_save_CXX $ac_arg" |
| 4645 | if ac_fn_cxx_try_compile "$LINENO" |
| 4646 | then : |
| 4647 | ac_cv_prog_cxx_cxx98=$ac_arg |
| 4648 | fi |
| 4649 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4650 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 4651 | done |
| 4652 | rm -f conftest.$ac_ext |
| 4653 | CXX=$ac_save_CXX |
| 4654 | fi |
| 4655 | |
| 4656 | if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 4657 | then : |
| 4658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4659 | printf "%s\n" "unsupported" >&6; } |
| 4660 | else $as_nop |
| 4661 | if test "x$ac_cv_prog_cxx_cxx98" = x |
| 4662 | then : |
| 4663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4664 | printf "%s\n" "none needed" >&6; } |
| 4665 | else $as_nop |
| 4666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 4667 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
| 4668 | CXX="$CXX $ac_cv_prog_cxx_cxx98" |
| 4669 | fi |
| 4670 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 4671 | ac_prog_cxx_stdcxx=cxx98 |
| 4672 | fi |
| 4673 | fi |
| 4674 | |
| 4675 | ac_ext=c |
| 4676 | ac_cpp='$CPP $CPPFLAGS' |
| 4677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4680 | DEPDIR="${am__leading_dot}deps" |
| 4681 | |
| 4682 | ac_config_commands="$ac_config_commands depfiles" |
| 4683 | |
| 4684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 4685 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 4686 | cat > confinc.mk << 'END' |
| 4687 | am__doit: |
| 4688 | @echo this is the am__doit target >confinc.out |
| 4689 | .PHONY: am__doit |
| 4690 | END |
| 4691 | am__include="#" |
| 4692 | am__quote= |
| 4693 | # BSD make does it like this. |
| 4694 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 4695 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 4696 | echo 'include confinc.mk # ignored' > confmf.GNU |
| 4697 | _am_result=no |
| 4698 | for s in GNU BSD; do |
| 4699 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 4700 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 4701 | ac_status=$? |
| 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4703 | (exit $ac_status); } |
| 4704 | case $?:`cat confinc.out 2>/dev/null` in #( |
| 4705 | '0:this is the am__doit target') : |
| 4706 | case $s in #( |
| 4707 | BSD) : |
| 4708 | am__include='.include' am__quote='"' ;; #( |
| 4709 | *) : |
| 4710 | am__include='include' am__quote='' ;; |
| 4711 | esac ;; #( |
| 4712 | *) : |
| 4713 | ;; |
| 4714 | esac |
| 4715 | if test "$am__include" != "#"; then |
| 4716 | _am_result="yes ($s style)" |
| 4717 | break |
| 4718 | fi |
| 4719 | done |
| 4720 | rm -f confinc.* confmf.* |
| 4721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 4722 | printf "%s\n" "${_am_result}" >&6; } |
| 4723 | |
| 4724 | # Check whether --enable-dependency-tracking was given. |
| 4725 | if test ${enable_dependency_tracking+y} |
| 4726 | then : |
| 4727 | enableval=$enable_dependency_tracking; |
| 4728 | fi |
| 4729 | |
| 4730 | if test "x$enable_dependency_tracking" != xno; then |
| 4731 | am_depcomp="$ac_aux_dir/depcomp" |
| 4732 | AMDEPBACKSLASH='\' |
| 4733 | am__nodep='_no' |
| 4734 | fi |
| 4735 | if test "x$enable_dependency_tracking" != xno; then |
| 4736 | AMDEP_TRUE= |
| 4737 | AMDEP_FALSE='#' |
| 4738 | else |
| 4739 | AMDEP_TRUE='#' |
| 4740 | AMDEP_FALSE= |
| 4741 | fi |
| 4742 | |
| 4743 | |
| 4744 | |
| 4745 | depcc="$CXX" am_compiler_list= |
| 4746 | |
| 4747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4748 | printf %s "checking dependency style of $depcc... " >&6; } |
| 4749 | if test ${am_cv_CXX_dependencies_compiler_type+y} |
| 4750 | then : |
| 4751 | printf %s "(cached) " >&6 |
| 4752 | else $as_nop |
| 4753 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4754 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4755 | # making bogus files that we don't know about and never remove. For |
| 4756 | # instance it was reported that on HP-UX the gcc test will end up |
| 4757 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4758 | # in D". |
| 4759 | rm -rf conftest.dir |
| 4760 | mkdir conftest.dir |
| 4761 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4762 | # using a relative directory. |
| 4763 | cp "$am_depcomp" conftest.dir |
| 4764 | cd conftest.dir |
| 4765 | # We will build objects and dependencies in a subdirectory because |
| 4766 | # it helps to detect inapplicable dependency modes. For instance |
| 4767 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4768 | # side effect of compilation, but ICC will put the dependencies in |
| 4769 | # the current directory while Tru64 will put them in the object |
| 4770 | # directory. |
| 4771 | mkdir sub |
| 4772 | |
| 4773 | am_cv_CXX_dependencies_compiler_type=none |
| 4774 | if test "$am_compiler_list" = ""; then |
| 4775 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4776 | fi |
| 4777 | am__universal=false |
| 4778 | case " $depcc " in #( |
| 4779 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4780 | esac |
| 4781 | |
| 4782 | for depmode in $am_compiler_list; do |
| 4783 | # Setup a source with many dependencies, because some compilers |
| 4784 | # like to wrap large dependency lists on column 80 (with \), and |
| 4785 | # we should not choose a depcomp mode which is confused by this. |
| 4786 | # |
| 4787 | # We need to recreate these files for each test, as the compiler may |
| 4788 | # overwrite some of them when testing with obscure command lines. |
| 4789 | # This happens at least with the AIX C compiler. |
| 4790 | : > sub/conftest.c |
| 4791 | for i in 1 2 3 4 5 6; do |
| 4792 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4793 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4794 | # Solaris 10 /bin/sh. |
| 4795 | echo '/* dummy */' > sub/conftst$i.h |
| 4796 | done |
| 4797 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4798 | |
| 4799 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4800 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4801 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4802 | # versions had trouble with output in subdirs. |
| 4803 | am__obj=sub/conftest.${OBJEXT-o} |
| 4804 | am__minus_obj="-o $am__obj" |
| 4805 | case $depmode in |
| 4806 | gcc) |
| 4807 | # This depmode causes a compiler race in universal mode. |
| 4808 | test "$am__universal" = false || continue |
| 4809 | ;; |
| 4810 | nosideeffect) |
| 4811 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4812 | # only be used when explicitly requested. |
| 4813 | if test "x$enable_dependency_tracking" = xyes; then |
| 4814 | continue |
| 4815 | else |
| 4816 | break |
| 4817 | fi |
| 4818 | ;; |
| 4819 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4820 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4821 | # not run yet. These depmodes are late enough in the game, and |
| 4822 | # so weak that their functioning should not be impacted. |
| 4823 | am__obj=conftest.${OBJEXT-o} |
| 4824 | am__minus_obj= |
| 4825 | ;; |
| 4826 | none) break ;; |
| 4827 | esac |
| 4828 | if depmode=$depmode \ |
| 4829 | source=sub/conftest.c object=$am__obj \ |
| 4830 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4831 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4832 | >/dev/null 2>conftest.err && |
| 4833 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4834 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4835 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4836 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4837 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4838 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4839 | # that says an option was ignored or not supported. |
| 4840 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4841 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4842 | # The diagnosis changed in icc 8.0: |
| 4843 | # icc: Command line remark: option '-MP' not supported |
| 4844 | if (grep 'ignoring option' conftest.err || |
| 4845 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4846 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4847 | break |
| 4848 | fi |
| 4849 | fi |
| 4850 | done |
| 4851 | |
| 4852 | cd .. |
| 4853 | rm -rf conftest.dir |
| 4854 | else |
| 4855 | am_cv_CXX_dependencies_compiler_type=none |
| 4856 | fi |
| 4857 | |
| 4858 | fi |
| 4859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4860 | printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 4861 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4862 | |
| 4863 | if |
| 4864 | test "x$enable_dependency_tracking" != xno \ |
| 4865 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4866 | am__fastdepCXX_TRUE= |
| 4867 | am__fastdepCXX_FALSE='#' |
| 4868 | else |
| 4869 | am__fastdepCXX_TRUE='#' |
| 4870 | am__fastdepCXX_FALSE= |
| 4871 | fi |
| 4872 | |
| 4873 | |
| 4874 | |
| 4875 | |
| 4876 | |
| 4877 | |
| 4878 | |
| 4879 | |
| 4880 | |
| 4881 | |
| 4882 | |
| 4883 | ac_ext=c |
| 4884 | ac_cpp='$CPP $CPPFLAGS' |
| 4885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4888 | if test -n "$ac_tool_prefix"; then |
| 4889 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4890 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4892 | printf %s "checking for $ac_word... " >&6; } |
| 4893 | if test ${ac_cv_prog_CC+y} |
| 4894 | then : |
| 4895 | printf %s "(cached) " >&6 |
| 4896 | else $as_nop |
| 4897 | if test -n "$CC"; then |
| 4898 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4899 | else |
| 4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4901 | for as_dir in $PATH |
| 4902 | do |
| 4903 | IFS=$as_save_IFS |
| 4904 | case $as_dir in #((( |
| 4905 | '') as_dir=./ ;; |
| 4906 | */) ;; |
| 4907 | *) as_dir=$as_dir/ ;; |
| 4908 | esac |
| 4909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4910 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4911 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4912 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4913 | break 2 |
| 4914 | fi |
| 4915 | done |
| 4916 | done |
| 4917 | IFS=$as_save_IFS |
| 4918 | |
| 4919 | fi |
| 4920 | fi |
| 4921 | CC=$ac_cv_prog_CC |
| 4922 | if test -n "$CC"; then |
| 4923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4924 | printf "%s\n" "$CC" >&6; } |
| 4925 | else |
| 4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4927 | printf "%s\n" "no" >&6; } |
| 4928 | fi |
| 4929 | |
| 4930 | |
| 4931 | fi |
| 4932 | if test -z "$ac_cv_prog_CC"; then |
| 4933 | ac_ct_CC=$CC |
| 4934 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4935 | set dummy gcc; ac_word=$2 |
| 4936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4937 | printf %s "checking for $ac_word... " >&6; } |
| 4938 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4939 | then : |
| 4940 | printf %s "(cached) " >&6 |
| 4941 | else $as_nop |
| 4942 | if test -n "$ac_ct_CC"; then |
| 4943 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4944 | else |
| 4945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4946 | for as_dir in $PATH |
| 4947 | do |
| 4948 | IFS=$as_save_IFS |
| 4949 | case $as_dir in #((( |
| 4950 | '') as_dir=./ ;; |
| 4951 | */) ;; |
| 4952 | *) as_dir=$as_dir/ ;; |
| 4953 | esac |
| 4954 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4955 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4956 | ac_cv_prog_ac_ct_CC="gcc" |
| 4957 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4958 | break 2 |
| 4959 | fi |
| 4960 | done |
| 4961 | done |
| 4962 | IFS=$as_save_IFS |
| 4963 | |
| 4964 | fi |
| 4965 | fi |
| 4966 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4967 | if test -n "$ac_ct_CC"; then |
| 4968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4969 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4970 | else |
| 4971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4972 | printf "%s\n" "no" >&6; } |
| 4973 | fi |
| 4974 | |
| 4975 | if test "x$ac_ct_CC" = x; then |
| 4976 | CC="" |
| 4977 | else |
| 4978 | case $cross_compiling:$ac_tool_warned in |
| 4979 | yes:) |
| 4980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4981 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4982 | ac_tool_warned=yes ;; |
| 4983 | esac |
| 4984 | CC=$ac_ct_CC |
| 4985 | fi |
| 4986 | else |
| 4987 | CC="$ac_cv_prog_CC" |
| 4988 | fi |
| 4989 | |
| 4990 | if test -z "$CC"; then |
| 4991 | if test -n "$ac_tool_prefix"; then |
| 4992 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4993 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4995 | printf %s "checking for $ac_word... " >&6; } |
| 4996 | if test ${ac_cv_prog_CC+y} |
| 4997 | then : |
| 4998 | printf %s "(cached) " >&6 |
| 4999 | else $as_nop |
| 5000 | if test -n "$CC"; then |
| 5001 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5002 | else |
| 5003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5004 | for as_dir in $PATH |
| 5005 | do |
| 5006 | IFS=$as_save_IFS |
| 5007 | case $as_dir in #((( |
| 5008 | '') as_dir=./ ;; |
| 5009 | */) ;; |
| 5010 | *) as_dir=$as_dir/ ;; |
| 5011 | esac |
| 5012 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5013 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5014 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5015 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5016 | break 2 |
| 5017 | fi |
| 5018 | done |
| 5019 | done |
| 5020 | IFS=$as_save_IFS |
| 5021 | |
| 5022 | fi |
| 5023 | fi |
| 5024 | CC=$ac_cv_prog_CC |
| 5025 | if test -n "$CC"; then |
| 5026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5027 | printf "%s\n" "$CC" >&6; } |
| 5028 | else |
| 5029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5030 | printf "%s\n" "no" >&6; } |
| 5031 | fi |
| 5032 | |
| 5033 | |
| 5034 | fi |
| 5035 | fi |
| 5036 | if test -z "$CC"; then |
| 5037 | # Extract the first word of "cc", so it can be a program name with args. |
| 5038 | set dummy cc; ac_word=$2 |
| 5039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5040 | printf %s "checking for $ac_word... " >&6; } |
| 5041 | if test ${ac_cv_prog_CC+y} |
| 5042 | then : |
| 5043 | printf %s "(cached) " >&6 |
| 5044 | else $as_nop |
| 5045 | if test -n "$CC"; then |
| 5046 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5047 | else |
| 5048 | ac_prog_rejected=no |
| 5049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5050 | for as_dir in $PATH |
| 5051 | do |
| 5052 | IFS=$as_save_IFS |
| 5053 | case $as_dir in #((( |
| 5054 | '') as_dir=./ ;; |
| 5055 | */) ;; |
| 5056 | *) as_dir=$as_dir/ ;; |
| 5057 | esac |
| 5058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5059 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5060 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5061 | ac_prog_rejected=yes |
| 5062 | continue |
| 5063 | fi |
| 5064 | ac_cv_prog_CC="cc" |
| 5065 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5066 | break 2 |
| 5067 | fi |
| 5068 | done |
| 5069 | done |
| 5070 | IFS=$as_save_IFS |
| 5071 | |
| 5072 | if test $ac_prog_rejected = yes; then |
| 5073 | # We found a bogon in the path, so make sure we never use it. |
| 5074 | set dummy $ac_cv_prog_CC |
| 5075 | shift |
| 5076 | if test $# != 0; then |
| 5077 | # We chose a different compiler from the bogus one. |
| 5078 | # However, it has the same basename, so the bogon will be chosen |
| 5079 | # first if we set CC to just the basename; use the full file name. |
| 5080 | shift |
| 5081 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 5082 | fi |
| 5083 | fi |
| 5084 | fi |
| 5085 | fi |
| 5086 | CC=$ac_cv_prog_CC |
| 5087 | if test -n "$CC"; then |
| 5088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5089 | printf "%s\n" "$CC" >&6; } |
| 5090 | else |
| 5091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5092 | printf "%s\n" "no" >&6; } |
| 5093 | fi |
| 5094 | |
| 5095 | |
| 5096 | fi |
| 5097 | if test -z "$CC"; then |
| 5098 | if test -n "$ac_tool_prefix"; then |
| 5099 | for ac_prog in cl.exe |
| 5100 | do |
| 5101 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5102 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5104 | printf %s "checking for $ac_word... " >&6; } |
| 5105 | if test ${ac_cv_prog_CC+y} |
| 5106 | then : |
| 5107 | printf %s "(cached) " >&6 |
| 5108 | else $as_nop |
| 5109 | if test -n "$CC"; then |
| 5110 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5111 | else |
| 5112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5113 | for as_dir in $PATH |
| 5114 | do |
| 5115 | IFS=$as_save_IFS |
| 5116 | case $as_dir in #((( |
| 5117 | '') as_dir=./ ;; |
| 5118 | */) ;; |
| 5119 | *) as_dir=$as_dir/ ;; |
| 5120 | esac |
| 5121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5122 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5123 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5124 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5125 | break 2 |
| 5126 | fi |
| 5127 | done |
| 5128 | done |
| 5129 | IFS=$as_save_IFS |
| 5130 | |
| 5131 | fi |
| 5132 | fi |
| 5133 | CC=$ac_cv_prog_CC |
| 5134 | if test -n "$CC"; then |
| 5135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5136 | printf "%s\n" "$CC" >&6; } |
| 5137 | else |
| 5138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5139 | printf "%s\n" "no" >&6; } |
| 5140 | fi |
| 5141 | |
| 5142 | |
| 5143 | test -n "$CC" && break |
| 5144 | done |
| 5145 | fi |
| 5146 | if test -z "$CC"; then |
| 5147 | ac_ct_CC=$CC |
| 5148 | for ac_prog in cl.exe |
| 5149 | do |
| 5150 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5151 | set dummy $ac_prog; ac_word=$2 |
| 5152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5153 | printf %s "checking for $ac_word... " >&6; } |
| 5154 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 5155 | then : |
| 5156 | printf %s "(cached) " >&6 |
| 5157 | else $as_nop |
| 5158 | if test -n "$ac_ct_CC"; then |
| 5159 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5160 | else |
| 5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5162 | for as_dir in $PATH |
| 5163 | do |
| 5164 | IFS=$as_save_IFS |
| 5165 | case $as_dir in #((( |
| 5166 | '') as_dir=./ ;; |
| 5167 | */) ;; |
| 5168 | *) as_dir=$as_dir/ ;; |
| 5169 | esac |
| 5170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5171 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5172 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5173 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5174 | break 2 |
| 5175 | fi |
| 5176 | done |
| 5177 | done |
| 5178 | IFS=$as_save_IFS |
| 5179 | |
| 5180 | fi |
| 5181 | fi |
| 5182 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5183 | if test -n "$ac_ct_CC"; then |
| 5184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5185 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 5186 | else |
| 5187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5188 | printf "%s\n" "no" >&6; } |
| 5189 | fi |
| 5190 | |
| 5191 | |
| 5192 | test -n "$ac_ct_CC" && break |
| 5193 | done |
| 5194 | |
| 5195 | if test "x$ac_ct_CC" = x; then |
| 5196 | CC="" |
| 5197 | else |
| 5198 | case $cross_compiling:$ac_tool_warned in |
| 5199 | yes:) |
| 5200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5201 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5202 | ac_tool_warned=yes ;; |
| 5203 | esac |
| 5204 | CC=$ac_ct_CC |
| 5205 | fi |
| 5206 | fi |
| 5207 | |
| 5208 | fi |
| 5209 | if test -z "$CC"; then |
| 5210 | if test -n "$ac_tool_prefix"; then |
| 5211 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 5212 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 5213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5214 | printf %s "checking for $ac_word... " >&6; } |
| 5215 | if test ${ac_cv_prog_CC+y} |
| 5216 | then : |
| 5217 | printf %s "(cached) " >&6 |
| 5218 | else $as_nop |
| 5219 | if test -n "$CC"; then |
| 5220 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5221 | else |
| 5222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5223 | for as_dir in $PATH |
| 5224 | do |
| 5225 | IFS=$as_save_IFS |
| 5226 | case $as_dir in #((( |
| 5227 | '') as_dir=./ ;; |
| 5228 | */) ;; |
| 5229 | *) as_dir=$as_dir/ ;; |
| 5230 | esac |
| 5231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5232 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5233 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 5234 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5235 | break 2 |
| 5236 | fi |
| 5237 | done |
| 5238 | done |
| 5239 | IFS=$as_save_IFS |
| 5240 | |
| 5241 | fi |
| 5242 | fi |
| 5243 | CC=$ac_cv_prog_CC |
| 5244 | if test -n "$CC"; then |
| 5245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5246 | printf "%s\n" "$CC" >&6; } |
| 5247 | else |
| 5248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5249 | printf "%s\n" "no" >&6; } |
| 5250 | fi |
| 5251 | |
| 5252 | |
| 5253 | fi |
| 5254 | if test -z "$ac_cv_prog_CC"; then |
| 5255 | ac_ct_CC=$CC |
| 5256 | # Extract the first word of "clang", so it can be a program name with args. |
| 5257 | set dummy clang; ac_word=$2 |
| 5258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5259 | printf %s "checking for $ac_word... " >&6; } |
| 5260 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 5261 | then : |
| 5262 | printf %s "(cached) " >&6 |
| 5263 | else $as_nop |
| 5264 | if test -n "$ac_ct_CC"; then |
| 5265 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5266 | else |
| 5267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5268 | for as_dir in $PATH |
| 5269 | do |
| 5270 | IFS=$as_save_IFS |
| 5271 | case $as_dir in #((( |
| 5272 | '') as_dir=./ ;; |
| 5273 | */) ;; |
| 5274 | *) as_dir=$as_dir/ ;; |
| 5275 | esac |
| 5276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5277 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5278 | ac_cv_prog_ac_ct_CC="clang" |
| 5279 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5280 | break 2 |
| 5281 | fi |
| 5282 | done |
| 5283 | done |
| 5284 | IFS=$as_save_IFS |
| 5285 | |
| 5286 | fi |
| 5287 | fi |
| 5288 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5289 | if test -n "$ac_ct_CC"; then |
| 5290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5291 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 5292 | else |
| 5293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5294 | printf "%s\n" "no" >&6; } |
| 5295 | fi |
| 5296 | |
| 5297 | if test "x$ac_ct_CC" = x; then |
| 5298 | CC="" |
| 5299 | else |
| 5300 | case $cross_compiling:$ac_tool_warned in |
| 5301 | yes:) |
| 5302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5303 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5304 | ac_tool_warned=yes ;; |
| 5305 | esac |
| 5306 | CC=$ac_ct_CC |
| 5307 | fi |
| 5308 | else |
| 5309 | CC="$ac_cv_prog_CC" |
| 5310 | fi |
| 5311 | |
| 5312 | fi |
| 5313 | |
| 5314 | |
| 5315 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5316 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5317 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5318 | See \`config.log' for more details" "$LINENO" 5; } |
| 5319 | |
| 5320 | # Provide some information about the compiler. |
| 5321 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5322 | set X $ac_compile |
| 5323 | ac_compiler=$2 |
| 5324 | for ac_option in --version -v -V -qversion -version; do |
| 5325 | { { ac_try="$ac_compiler $ac_option >&5" |
| 5326 | case "(($ac_try" in |
| 5327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5328 | *) ac_try_echo=$ac_try;; |
| 5329 | esac |
| 5330 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5331 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 5332 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5333 | ac_status=$? |
| 5334 | if test -s conftest.err; then |
| 5335 | sed '10a\ |
| 5336 | ... rest of stderr output deleted ... |
| 5337 | 10q' conftest.err >conftest.er1 |
| 5338 | cat conftest.er1 >&5 |
| 5339 | fi |
| 5340 | rm -f conftest.er1 conftest.err |
| 5341 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5342 | test $ac_status = 0; } |
| 5343 | done |
| 5344 | |
| 5345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 5346 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 5347 | if test ${ac_cv_c_compiler_gnu+y} |
| 5348 | then : |
| 5349 | printf %s "(cached) " >&6 |
| 5350 | else $as_nop |
| 5351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5352 | /* end confdefs.h. */ |
| 5353 | |
| 5354 | int |
| 5355 | main (void) |
| 5356 | { |
| 5357 | #ifndef __GNUC__ |
| 5358 | choke me |
| 5359 | #endif |
| 5360 | |
| 5361 | ; |
| 5362 | return 0; |
| 5363 | } |
| 5364 | _ACEOF |
| 5365 | if ac_fn_c_try_compile "$LINENO" |
| 5366 | then : |
| 5367 | ac_compiler_gnu=yes |
| 5368 | else $as_nop |
| 5369 | ac_compiler_gnu=no |
| 5370 | fi |
| 5371 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5372 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5373 | |
| 5374 | fi |
| 5375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5376 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 5377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5378 | |
| 5379 | if test $ac_compiler_gnu = yes; then |
| 5380 | GCC=yes |
| 5381 | else |
| 5382 | GCC= |
| 5383 | fi |
| 5384 | ac_test_CFLAGS=${CFLAGS+y} |
| 5385 | ac_save_CFLAGS=$CFLAGS |
| 5386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5387 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 5388 | if test ${ac_cv_prog_cc_g+y} |
| 5389 | then : |
| 5390 | printf %s "(cached) " >&6 |
| 5391 | else $as_nop |
| 5392 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5393 | ac_c_werror_flag=yes |
| 5394 | ac_cv_prog_cc_g=no |
| 5395 | CFLAGS="-g" |
| 5396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5397 | /* end confdefs.h. */ |
| 5398 | |
| 5399 | int |
| 5400 | main (void) |
| 5401 | { |
| 5402 | |
| 5403 | ; |
| 5404 | return 0; |
| 5405 | } |
| 5406 | _ACEOF |
| 5407 | if ac_fn_c_try_compile "$LINENO" |
| 5408 | then : |
| 5409 | ac_cv_prog_cc_g=yes |
| 5410 | else $as_nop |
| 5411 | CFLAGS="" |
| 5412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5413 | /* end confdefs.h. */ |
| 5414 | |
| 5415 | int |
| 5416 | main (void) |
| 5417 | { |
| 5418 | |
| 5419 | ; |
| 5420 | return 0; |
| 5421 | } |
| 5422 | _ACEOF |
| 5423 | if ac_fn_c_try_compile "$LINENO" |
| 5424 | then : |
| 5425 | |
| 5426 | else $as_nop |
| 5427 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5428 | CFLAGS="-g" |
| 5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5430 | /* end confdefs.h. */ |
| 5431 | |
| 5432 | int |
| 5433 | main (void) |
| 5434 | { |
| 5435 | |
| 5436 | ; |
| 5437 | return 0; |
| 5438 | } |
| 5439 | _ACEOF |
| 5440 | if ac_fn_c_try_compile "$LINENO" |
| 5441 | then : |
| 5442 | ac_cv_prog_cc_g=yes |
| 5443 | fi |
| 5444 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5445 | fi |
| 5446 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5447 | fi |
| 5448 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5449 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5450 | fi |
| 5451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5452 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 5453 | if test $ac_test_CFLAGS; then |
| 5454 | CFLAGS=$ac_save_CFLAGS |
| 5455 | elif test $ac_cv_prog_cc_g = yes; then |
| 5456 | if test "$GCC" = yes; then |
| 5457 | CFLAGS="-g -O2" |
| 5458 | else |
| 5459 | CFLAGS="-g" |
| 5460 | fi |
| 5461 | else |
| 5462 | if test "$GCC" = yes; then |
| 5463 | CFLAGS="-O2" |
| 5464 | else |
| 5465 | CFLAGS= |
| 5466 | fi |
| 5467 | fi |
| 5468 | ac_prog_cc_stdc=no |
| 5469 | if test x$ac_prog_cc_stdc = xno |
| 5470 | then : |
| 5471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 5472 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 5473 | if test ${ac_cv_prog_cc_c11+y} |
| 5474 | then : |
| 5475 | printf %s "(cached) " >&6 |
| 5476 | else $as_nop |
| 5477 | ac_cv_prog_cc_c11=no |
| 5478 | ac_save_CC=$CC |
| 5479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5480 | /* end confdefs.h. */ |
| 5481 | $ac_c_conftest_c11_program |
| 5482 | _ACEOF |
| 5483 | for ac_arg in '' -std=gnu11 |
| 5484 | do |
| 5485 | CC="$ac_save_CC $ac_arg" |
| 5486 | if ac_fn_c_try_compile "$LINENO" |
| 5487 | then : |
| 5488 | ac_cv_prog_cc_c11=$ac_arg |
| 5489 | fi |
| 5490 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5491 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 5492 | done |
| 5493 | rm -f conftest.$ac_ext |
| 5494 | CC=$ac_save_CC |
| 5495 | fi |
| 5496 | |
| 5497 | if test "x$ac_cv_prog_cc_c11" = xno |
| 5498 | then : |
| 5499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5500 | printf "%s\n" "unsupported" >&6; } |
| 5501 | else $as_nop |
| 5502 | if test "x$ac_cv_prog_cc_c11" = x |
| 5503 | then : |
| 5504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5505 | printf "%s\n" "none needed" >&6; } |
| 5506 | else $as_nop |
| 5507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 5508 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 5509 | CC="$CC $ac_cv_prog_cc_c11" |
| 5510 | fi |
| 5511 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 5512 | ac_prog_cc_stdc=c11 |
| 5513 | fi |
| 5514 | fi |
| 5515 | if test x$ac_prog_cc_stdc = xno |
| 5516 | then : |
| 5517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 5518 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 5519 | if test ${ac_cv_prog_cc_c99+y} |
| 5520 | then : |
| 5521 | printf %s "(cached) " >&6 |
| 5522 | else $as_nop |
| 5523 | ac_cv_prog_cc_c99=no |
| 5524 | ac_save_CC=$CC |
| 5525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5526 | /* end confdefs.h. */ |
| 5527 | $ac_c_conftest_c99_program |
| 5528 | _ACEOF |
| 5529 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 5530 | do |
| 5531 | CC="$ac_save_CC $ac_arg" |
| 5532 | if ac_fn_c_try_compile "$LINENO" |
| 5533 | then : |
| 5534 | ac_cv_prog_cc_c99=$ac_arg |
| 5535 | fi |
| 5536 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5537 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5538 | done |
| 5539 | rm -f conftest.$ac_ext |
| 5540 | CC=$ac_save_CC |
| 5541 | fi |
| 5542 | |
| 5543 | if test "x$ac_cv_prog_cc_c99" = xno |
| 5544 | then : |
| 5545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5546 | printf "%s\n" "unsupported" >&6; } |
| 5547 | else $as_nop |
| 5548 | if test "x$ac_cv_prog_cc_c99" = x |
| 5549 | then : |
| 5550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5551 | printf "%s\n" "none needed" >&6; } |
| 5552 | else $as_nop |
| 5553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 5554 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 5555 | CC="$CC $ac_cv_prog_cc_c99" |
| 5556 | fi |
| 5557 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5558 | ac_prog_cc_stdc=c99 |
| 5559 | fi |
| 5560 | fi |
| 5561 | if test x$ac_prog_cc_stdc = xno |
| 5562 | then : |
| 5563 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 5564 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 5565 | if test ${ac_cv_prog_cc_c89+y} |
| 5566 | then : |
| 5567 | printf %s "(cached) " >&6 |
| 5568 | else $as_nop |
| 5569 | ac_cv_prog_cc_c89=no |
| 5570 | ac_save_CC=$CC |
| 5571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5572 | /* end confdefs.h. */ |
| 5573 | $ac_c_conftest_c89_program |
| 5574 | _ACEOF |
| 5575 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5576 | do |
| 5577 | CC="$ac_save_CC $ac_arg" |
| 5578 | if ac_fn_c_try_compile "$LINENO" |
| 5579 | then : |
| 5580 | ac_cv_prog_cc_c89=$ac_arg |
| 5581 | fi |
| 5582 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5583 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5584 | done |
| 5585 | rm -f conftest.$ac_ext |
| 5586 | CC=$ac_save_CC |
| 5587 | fi |
| 5588 | |
| 5589 | if test "x$ac_cv_prog_cc_c89" = xno |
| 5590 | then : |
| 5591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5592 | printf "%s\n" "unsupported" >&6; } |
| 5593 | else $as_nop |
| 5594 | if test "x$ac_cv_prog_cc_c89" = x |
| 5595 | then : |
| 5596 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5597 | printf "%s\n" "none needed" >&6; } |
| 5598 | else $as_nop |
| 5599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5600 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5601 | CC="$CC $ac_cv_prog_cc_c89" |
| 5602 | fi |
| 5603 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5604 | ac_prog_cc_stdc=c89 |
| 5605 | fi |
| 5606 | fi |
| 5607 | |
| 5608 | ac_ext=c |
| 5609 | ac_cpp='$CPP $CPPFLAGS' |
| 5610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5613 | |
| 5614 | |
| 5615 | ac_ext=c |
| 5616 | ac_cpp='$CPP $CPPFLAGS' |
| 5617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5621 | printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 5622 | if test ${am_cv_prog_cc_c_o+y} |
| 5623 | then : |
| 5624 | printf %s "(cached) " >&6 |
| 5625 | else $as_nop |
| 5626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5627 | /* end confdefs.h. */ |
| 5628 | |
| 5629 | int |
| 5630 | main (void) |
| 5631 | { |
| 5632 | |
| 5633 | ; |
| 5634 | return 0; |
| 5635 | } |
| 5636 | _ACEOF |
| 5637 | # Make sure it works both with $CC and with simple cc. |
| 5638 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 5639 | # compilers refuse to overwrite an existing .o file with -o, |
| 5640 | # though they will create one. |
| 5641 | am_cv_prog_cc_c_o=yes |
| 5642 | for am_i in 1 2; do |
| 5643 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5644 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5645 | ac_status=$? |
| 5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5647 | (exit $ac_status); } \ |
| 5648 | && test -f conftest2.$ac_objext; then |
| 5649 | : OK |
| 5650 | else |
| 5651 | am_cv_prog_cc_c_o=no |
| 5652 | break |
| 5653 | fi |
| 5654 | done |
| 5655 | rm -f core conftest* |
| 5656 | unset am_i |
| 5657 | fi |
| 5658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5659 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 5660 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 5661 | # Losing compiler, so override with the script. |
| 5662 | # FIXME: It is wrong to rewrite CC. |
| 5663 | # But if we don't then we get into trouble of one sort or another. |
| 5664 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5665 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5666 | CC="$am_aux_dir/compile $CC" |
| 5667 | fi |
| 5668 | ac_ext=c |
| 5669 | ac_cpp='$CPP $CPPFLAGS' |
| 5670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5673 | |
| 5674 | |
| 5675 | depcc="$CC" am_compiler_list= |
| 5676 | |
| 5677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5678 | printf %s "checking dependency style of $depcc... " >&6; } |
| 5679 | if test ${am_cv_CC_dependencies_compiler_type+y} |
| 5680 | then : |
| 5681 | printf %s "(cached) " >&6 |
| 5682 | else $as_nop |
| 5683 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5684 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5685 | # making bogus files that we don't know about and never remove. For |
| 5686 | # instance it was reported that on HP-UX the gcc test will end up |
| 5687 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5688 | # in D". |
| 5689 | rm -rf conftest.dir |
| 5690 | mkdir conftest.dir |
| 5691 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5692 | # using a relative directory. |
| 5693 | cp "$am_depcomp" conftest.dir |
| 5694 | cd conftest.dir |
| 5695 | # We will build objects and dependencies in a subdirectory because |
| 5696 | # it helps to detect inapplicable dependency modes. For instance |
| 5697 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5698 | # side effect of compilation, but ICC will put the dependencies in |
| 5699 | # the current directory while Tru64 will put them in the object |
| 5700 | # directory. |
| 5701 | mkdir sub |
| 5702 | |
| 5703 | am_cv_CC_dependencies_compiler_type=none |
| 5704 | if test "$am_compiler_list" = ""; then |
| 5705 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5706 | fi |
| 5707 | am__universal=false |
| 5708 | case " $depcc " in #( |
| 5709 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5710 | esac |
| 5711 | |
| 5712 | for depmode in $am_compiler_list; do |
| 5713 | # Setup a source with many dependencies, because some compilers |
| 5714 | # like to wrap large dependency lists on column 80 (with \), and |
| 5715 | # we should not choose a depcomp mode which is confused by this. |
| 5716 | # |
| 5717 | # We need to recreate these files for each test, as the compiler may |
| 5718 | # overwrite some of them when testing with obscure command lines. |
| 5719 | # This happens at least with the AIX C compiler. |
| 5720 | : > sub/conftest.c |
| 5721 | for i in 1 2 3 4 5 6; do |
| 5722 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5723 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5724 | # Solaris 10 /bin/sh. |
| 5725 | echo '/* dummy */' > sub/conftst$i.h |
| 5726 | done |
| 5727 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5728 | |
| 5729 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5730 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5731 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5732 | # versions had trouble with output in subdirs. |
| 5733 | am__obj=sub/conftest.${OBJEXT-o} |
| 5734 | am__minus_obj="-o $am__obj" |
| 5735 | case $depmode in |
| 5736 | gcc) |
| 5737 | # This depmode causes a compiler race in universal mode. |
| 5738 | test "$am__universal" = false || continue |
| 5739 | ;; |
| 5740 | nosideeffect) |
| 5741 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5742 | # only be used when explicitly requested. |
| 5743 | if test "x$enable_dependency_tracking" = xyes; then |
| 5744 | continue |
| 5745 | else |
| 5746 | break |
| 5747 | fi |
| 5748 | ;; |
| 5749 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5750 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 5751 | # not run yet. These depmodes are late enough in the game, and |
| 5752 | # so weak that their functioning should not be impacted. |
| 5753 | am__obj=conftest.${OBJEXT-o} |
| 5754 | am__minus_obj= |
| 5755 | ;; |
| 5756 | none) break ;; |
| 5757 | esac |
| 5758 | if depmode=$depmode \ |
| 5759 | source=sub/conftest.c object=$am__obj \ |
| 5760 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5761 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5762 | >/dev/null 2>conftest.err && |
| 5763 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5764 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5765 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5766 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5767 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5768 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5769 | # that says an option was ignored or not supported. |
| 5770 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5771 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5772 | # The diagnosis changed in icc 8.0: |
| 5773 | # icc: Command line remark: option '-MP' not supported |
| 5774 | if (grep 'ignoring option' conftest.err || |
| 5775 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5776 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5777 | break |
| 5778 | fi |
| 5779 | fi |
| 5780 | done |
| 5781 | |
| 5782 | cd .. |
| 5783 | rm -rf conftest.dir |
| 5784 | else |
| 5785 | am_cv_CC_dependencies_compiler_type=none |
| 5786 | fi |
| 5787 | |
| 5788 | fi |
| 5789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5790 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5791 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5792 | |
| 5793 | if |
| 5794 | test "x$enable_dependency_tracking" != xno \ |
| 5795 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5796 | am__fastdepCC_TRUE= |
| 5797 | am__fastdepCC_FALSE='#' |
| 5798 | else |
| 5799 | am__fastdepCC_TRUE='#' |
| 5800 | am__fastdepCC_FALSE= |
| 5801 | fi |
| 5802 | |
| 5803 | |
| 5804 | ac_ext=c |
| 5805 | ac_cpp='$CPP $CPPFLAGS' |
| 5806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5809 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5810 | printf %s "checking how to run the C preprocessor... " >&6; } |
| 5811 | # On Suns, sometimes $CPP names a directory. |
| 5812 | if test -n "$CPP" && test -d "$CPP"; then |
| 5813 | CPP= |
| 5814 | fi |
| 5815 | if test -z "$CPP"; then |
| 5816 | if test ${ac_cv_prog_CPP+y} |
| 5817 | then : |
| 5818 | printf %s "(cached) " >&6 |
| 5819 | else $as_nop |
| 5820 | # Double quotes because $CC needs to be expanded |
| 5821 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 5822 | do |
| 5823 | ac_preproc_ok=false |
| 5824 | for ac_c_preproc_warn_flag in '' yes |
| 5825 | do |
| 5826 | # Use a header file that comes with gcc, so configuring glibc |
| 5827 | # with a fresh cross-compiler works. |
| 5828 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5829 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5831 | /* end confdefs.h. */ |
| 5832 | #include <limits.h> |
| 5833 | Syntax error |
| 5834 | _ACEOF |
| 5835 | if ac_fn_c_try_cpp "$LINENO" |
| 5836 | then : |
| 5837 | |
| 5838 | else $as_nop |
| 5839 | # Broken: fails on valid input. |
| 5840 | continue |
| 5841 | fi |
| 5842 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5843 | |
| 5844 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5845 | # can be detected and how. |
| 5846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5847 | /* end confdefs.h. */ |
| 5848 | #include <ac_nonexistent.h> |
| 5849 | _ACEOF |
| 5850 | if ac_fn_c_try_cpp "$LINENO" |
| 5851 | then : |
| 5852 | # Broken: success on invalid input. |
| 5853 | continue |
| 5854 | else $as_nop |
| 5855 | # Passes both tests. |
| 5856 | ac_preproc_ok=: |
| 5857 | break |
| 5858 | fi |
| 5859 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5860 | |
| 5861 | done |
| 5862 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5863 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5864 | if $ac_preproc_ok |
| 5865 | then : |
| 5866 | break |
| 5867 | fi |
| 5868 | |
| 5869 | done |
| 5870 | ac_cv_prog_CPP=$CPP |
| 5871 | |
| 5872 | fi |
| 5873 | CPP=$ac_cv_prog_CPP |
| 5874 | else |
| 5875 | ac_cv_prog_CPP=$CPP |
| 5876 | fi |
| 5877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5878 | printf "%s\n" "$CPP" >&6; } |
| 5879 | ac_preproc_ok=false |
| 5880 | for ac_c_preproc_warn_flag in '' yes |
| 5881 | do |
| 5882 | # Use a header file that comes with gcc, so configuring glibc |
| 5883 | # with a fresh cross-compiler works. |
| 5884 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5885 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5887 | /* end confdefs.h. */ |
| 5888 | #include <limits.h> |
| 5889 | Syntax error |
| 5890 | _ACEOF |
| 5891 | if ac_fn_c_try_cpp "$LINENO" |
| 5892 | then : |
| 5893 | |
| 5894 | else $as_nop |
| 5895 | # Broken: fails on valid input. |
| 5896 | continue |
| 5897 | fi |
| 5898 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5899 | |
| 5900 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5901 | # can be detected and how. |
| 5902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5903 | /* end confdefs.h. */ |
| 5904 | #include <ac_nonexistent.h> |
| 5905 | _ACEOF |
| 5906 | if ac_fn_c_try_cpp "$LINENO" |
| 5907 | then : |
| 5908 | # Broken: success on invalid input. |
| 5909 | continue |
| 5910 | else $as_nop |
| 5911 | # Passes both tests. |
| 5912 | ac_preproc_ok=: |
| 5913 | break |
| 5914 | fi |
| 5915 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5916 | |
| 5917 | done |
| 5918 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5919 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5920 | if $ac_preproc_ok |
| 5921 | then : |
| 5922 | |
| 5923 | else $as_nop |
| 5924 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5925 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5926 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5927 | See \`config.log' for more details" "$LINENO" 5; } |
| 5928 | fi |
| 5929 | |
| 5930 | ac_ext=c |
| 5931 | ac_cpp='$CPP $CPPFLAGS' |
| 5932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5935 | |
| 5936 | |
| 5937 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5938 | printf %s "checking whether ln -s works... " >&6; } |
| 5939 | LN_S=$as_ln_s |
| 5940 | if test "$LN_S" = "ln -s"; then |
| 5941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5942 | printf "%s\n" "yes" >&6; } |
| 5943 | else |
| 5944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5945 | printf "%s\n" "no, using $LN_S" >&6; } |
| 5946 | fi |
| 5947 | |
| 5948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 5949 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5950 | set x ${MAKE-make} |
| 5951 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 5952 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 5953 | then : |
| 5954 | printf %s "(cached) " >&6 |
| 5955 | else $as_nop |
| 5956 | cat >conftest.make <<\_ACEOF |
| 5957 | SHELL = /bin/sh |
| 5958 | all: |
| 5959 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 5960 | _ACEOF |
| 5961 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 5962 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5963 | *@@@%%%=?*=@@@%%%*) |
| 5964 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5965 | *) |
| 5966 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5967 | esac |
| 5968 | rm -f conftest.make |
| 5969 | fi |
| 5970 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 5971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5972 | printf "%s\n" "yes" >&6; } |
| 5973 | SET_MAKE= |
| 5974 | else |
| 5975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5976 | printf "%s\n" "no" >&6; } |
| 5977 | SET_MAKE="MAKE=${MAKE-make}" |
| 5978 | fi |
| 5979 | |
| 5980 | |
| 5981 | # Check whether --enable-static was given. |
| 5982 | if test ${enable_static+y} |
| 5983 | then : |
| 5984 | enableval=$enable_static; p=${PACKAGE-default} |
| 5985 | case $enableval in |
| 5986 | yes) enable_static=yes ;; |
| 5987 | no) enable_static=no ;; |
| 5988 | *) |
| 5989 | enable_static=no |
| 5990 | # Look at the argument we got. We use all the common list separators. |
| 5991 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 5992 | for pkg in $enableval; do |
| 5993 | IFS=$lt_save_ifs |
| 5994 | if test "X$pkg" = "X$p"; then |
| 5995 | enable_static=yes |
| 5996 | fi |
| 5997 | done |
| 5998 | IFS=$lt_save_ifs |
| 5999 | ;; |
| 6000 | esac |
| 6001 | else $as_nop |
| 6002 | enable_static=no |
| 6003 | fi |
| 6004 | |
| 6005 | |
| 6006 | |
| 6007 | |
| 6008 | |
| 6009 | |
| 6010 | |
| 6011 | |
| 6012 | |
| 6013 | case `pwd` in |
| 6014 | *\ * | *\ *) |
| 6015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 6016 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 6017 | esac |
| 6018 | |
| 6019 | |
| 6020 | |
| 6021 | macro_version='2.4.6' |
| 6022 | macro_revision='2.4.6' |
| 6023 | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 | |
| 6028 | |
| 6029 | |
| 6030 | |
| 6031 | |
| 6032 | |
| 6033 | |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | ltmain=$ac_aux_dir/ltmain.sh |
| 6038 | |
| 6039 | # Backslashify metacharacters that are still active within |
| 6040 | # double-quoted strings. |
| 6041 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 6042 | |
| 6043 | # Same as above, but do not quote variable references. |
| 6044 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 6045 | |
| 6046 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6047 | # double_quote_subst'ed string. |
| 6048 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6049 | |
| 6050 | # Sed substitution to delay expansion of an escaped single quote. |
| 6051 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6052 | |
| 6053 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6054 | no_glob_subst='s/\*/\\\*/g' |
| 6055 | |
| 6056 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6057 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6058 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6059 | |
| 6060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 6061 | printf %s "checking how to print strings... " >&6; } |
| 6062 | # Test print first, because it will be a builtin if present. |
| 6063 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 6064 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6065 | ECHO='print -r --' |
| 6066 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6067 | ECHO='printf %s\n' |
| 6068 | else |
| 6069 | # Use this function as a fallback that always works. |
| 6070 | func_fallback_echo () |
| 6071 | { |
| 6072 | eval 'cat <<_LTECHO_EOF |
| 6073 | $1 |
| 6074 | _LTECHO_EOF' |
| 6075 | } |
| 6076 | ECHO='func_fallback_echo' |
| 6077 | fi |
| 6078 | |
| 6079 | # func_echo_all arg... |
| 6080 | # Invoke $ECHO with all args, space-separated. |
| 6081 | func_echo_all () |
| 6082 | { |
| 6083 | $ECHO "" |
| 6084 | } |
| 6085 | |
| 6086 | case $ECHO in |
| 6087 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 6088 | printf "%s\n" "printf" >&6; } ;; |
| 6089 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 6090 | printf "%s\n" "print -r" >&6; } ;; |
| 6091 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 6092 | printf "%s\n" "cat" >&6; } ;; |
| 6093 | esac |
| 6094 | |
| 6095 | |
| 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
| 6104 | |
| 6105 | |
| 6106 | |
| 6107 | |
| 6108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6109 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 6110 | if test ${ac_cv_path_SED+y} |
| 6111 | then : |
| 6112 | printf %s "(cached) " >&6 |
| 6113 | else $as_nop |
| 6114 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6115 | for ac_i in 1 2 3 4 5 6 7; do |
| 6116 | ac_script="$ac_script$as_nl$ac_script" |
| 6117 | done |
| 6118 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6119 | { ac_script=; unset ac_script;} |
| 6120 | if test -z "$SED"; then |
| 6121 | ac_path_SED_found=false |
| 6122 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6124 | for as_dir in $PATH |
| 6125 | do |
| 6126 | IFS=$as_save_IFS |
| 6127 | case $as_dir in #((( |
| 6128 | '') as_dir=./ ;; |
| 6129 | */) ;; |
| 6130 | *) as_dir=$as_dir/ ;; |
| 6131 | esac |
| 6132 | for ac_prog in sed gsed |
| 6133 | do |
| 6134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6135 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 6136 | as_fn_executable_p "$ac_path_SED" || continue |
| 6137 | # Check for GNU ac_path_SED and select it if it is found. |
| 6138 | # Check for GNU $ac_path_SED |
| 6139 | case `"$ac_path_SED" --version 2>&1` in |
| 6140 | *GNU*) |
| 6141 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6142 | *) |
| 6143 | ac_count=0 |
| 6144 | printf %s 0123456789 >"conftest.in" |
| 6145 | while : |
| 6146 | do |
| 6147 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6148 | mv "conftest.tmp" "conftest.in" |
| 6149 | cp "conftest.in" "conftest.nl" |
| 6150 | printf "%s\n" '' >> "conftest.nl" |
| 6151 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6152 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6153 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6154 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6155 | # Best one so far, save it but keep looking for a better one |
| 6156 | ac_cv_path_SED="$ac_path_SED" |
| 6157 | ac_path_SED_max=$ac_count |
| 6158 | fi |
| 6159 | # 10*(2^10) chars as input seems more than enough |
| 6160 | test $ac_count -gt 10 && break |
| 6161 | done |
| 6162 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6163 | esac |
| 6164 | |
| 6165 | $ac_path_SED_found && break 3 |
| 6166 | done |
| 6167 | done |
| 6168 | done |
| 6169 | IFS=$as_save_IFS |
| 6170 | if test -z "$ac_cv_path_SED"; then |
| 6171 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6172 | fi |
| 6173 | else |
| 6174 | ac_cv_path_SED=$SED |
| 6175 | fi |
| 6176 | |
| 6177 | fi |
| 6178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6179 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 6180 | SED="$ac_cv_path_SED" |
| 6181 | rm -f conftest.sed |
| 6182 | |
| 6183 | test -z "$SED" && SED=sed |
| 6184 | Xsed="$SED -e 1s/^X//" |
| 6185 | |
| 6186 | |
| 6187 | |
| 6188 | |
| 6189 | |
| 6190 | |
| 6191 | |
| 6192 | |
| 6193 | |
| 6194 | |
| 6195 | |
| 6196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6197 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 6198 | if test ${ac_cv_path_GREP+y} |
| 6199 | then : |
| 6200 | printf %s "(cached) " >&6 |
| 6201 | else $as_nop |
| 6202 | if test -z "$GREP"; then |
| 6203 | ac_path_GREP_found=false |
| 6204 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6206 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6207 | do |
| 6208 | IFS=$as_save_IFS |
| 6209 | case $as_dir in #((( |
| 6210 | '') as_dir=./ ;; |
| 6211 | */) ;; |
| 6212 | *) as_dir=$as_dir/ ;; |
| 6213 | esac |
| 6214 | for ac_prog in grep ggrep |
| 6215 | do |
| 6216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6217 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 6218 | as_fn_executable_p "$ac_path_GREP" || continue |
| 6219 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6220 | # Check for GNU $ac_path_GREP |
| 6221 | case `"$ac_path_GREP" --version 2>&1` in |
| 6222 | *GNU*) |
| 6223 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6224 | *) |
| 6225 | ac_count=0 |
| 6226 | printf %s 0123456789 >"conftest.in" |
| 6227 | while : |
| 6228 | do |
| 6229 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6230 | mv "conftest.tmp" "conftest.in" |
| 6231 | cp "conftest.in" "conftest.nl" |
| 6232 | printf "%s\n" 'GREP' >> "conftest.nl" |
| 6233 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6234 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6235 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6236 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6237 | # Best one so far, save it but keep looking for a better one |
| 6238 | ac_cv_path_GREP="$ac_path_GREP" |
| 6239 | ac_path_GREP_max=$ac_count |
| 6240 | fi |
| 6241 | # 10*(2^10) chars as input seems more than enough |
| 6242 | test $ac_count -gt 10 && break |
| 6243 | done |
| 6244 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6245 | esac |
| 6246 | |
| 6247 | $ac_path_GREP_found && break 3 |
| 6248 | done |
| 6249 | done |
| 6250 | done |
| 6251 | IFS=$as_save_IFS |
| 6252 | if test -z "$ac_cv_path_GREP"; then |
| 6253 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6254 | fi |
| 6255 | else |
| 6256 | ac_cv_path_GREP=$GREP |
| 6257 | fi |
| 6258 | |
| 6259 | fi |
| 6260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6261 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 6262 | GREP="$ac_cv_path_GREP" |
| 6263 | |
| 6264 | |
| 6265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6266 | printf %s "checking for egrep... " >&6; } |
| 6267 | if test ${ac_cv_path_EGREP+y} |
| 6268 | then : |
| 6269 | printf %s "(cached) " >&6 |
| 6270 | else $as_nop |
| 6271 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6272 | then ac_cv_path_EGREP="$GREP -E" |
| 6273 | else |
| 6274 | if test -z "$EGREP"; then |
| 6275 | ac_path_EGREP_found=false |
| 6276 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6278 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6279 | do |
| 6280 | IFS=$as_save_IFS |
| 6281 | case $as_dir in #((( |
| 6282 | '') as_dir=./ ;; |
| 6283 | */) ;; |
| 6284 | *) as_dir=$as_dir/ ;; |
| 6285 | esac |
| 6286 | for ac_prog in egrep |
| 6287 | do |
| 6288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6289 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 6290 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 6291 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6292 | # Check for GNU $ac_path_EGREP |
| 6293 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6294 | *GNU*) |
| 6295 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6296 | *) |
| 6297 | ac_count=0 |
| 6298 | printf %s 0123456789 >"conftest.in" |
| 6299 | while : |
| 6300 | do |
| 6301 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6302 | mv "conftest.tmp" "conftest.in" |
| 6303 | cp "conftest.in" "conftest.nl" |
| 6304 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 6305 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6306 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6307 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6308 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6309 | # Best one so far, save it but keep looking for a better one |
| 6310 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6311 | ac_path_EGREP_max=$ac_count |
| 6312 | fi |
| 6313 | # 10*(2^10) chars as input seems more than enough |
| 6314 | test $ac_count -gt 10 && break |
| 6315 | done |
| 6316 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6317 | esac |
| 6318 | |
| 6319 | $ac_path_EGREP_found && break 3 |
| 6320 | done |
| 6321 | done |
| 6322 | done |
| 6323 | IFS=$as_save_IFS |
| 6324 | if test -z "$ac_cv_path_EGREP"; then |
| 6325 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6326 | fi |
| 6327 | else |
| 6328 | ac_cv_path_EGREP=$EGREP |
| 6329 | fi |
| 6330 | |
| 6331 | fi |
| 6332 | fi |
| 6333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6334 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 6335 | EGREP="$ac_cv_path_EGREP" |
| 6336 | |
| 6337 | |
| 6338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 6339 | printf %s "checking for fgrep... " >&6; } |
| 6340 | if test ${ac_cv_path_FGREP+y} |
| 6341 | then : |
| 6342 | printf %s "(cached) " >&6 |
| 6343 | else $as_nop |
| 6344 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 6345 | then ac_cv_path_FGREP="$GREP -F" |
| 6346 | else |
| 6347 | if test -z "$FGREP"; then |
| 6348 | ac_path_FGREP_found=false |
| 6349 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6351 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6352 | do |
| 6353 | IFS=$as_save_IFS |
| 6354 | case $as_dir in #((( |
| 6355 | '') as_dir=./ ;; |
| 6356 | */) ;; |
| 6357 | *) as_dir=$as_dir/ ;; |
| 6358 | esac |
| 6359 | for ac_prog in fgrep |
| 6360 | do |
| 6361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6362 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 6363 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 6364 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 6365 | # Check for GNU $ac_path_FGREP |
| 6366 | case `"$ac_path_FGREP" --version 2>&1` in |
| 6367 | *GNU*) |
| 6368 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 6369 | *) |
| 6370 | ac_count=0 |
| 6371 | printf %s 0123456789 >"conftest.in" |
| 6372 | while : |
| 6373 | do |
| 6374 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6375 | mv "conftest.tmp" "conftest.in" |
| 6376 | cp "conftest.in" "conftest.nl" |
| 6377 | printf "%s\n" 'FGREP' >> "conftest.nl" |
| 6378 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6379 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6380 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6381 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 6382 | # Best one so far, save it but keep looking for a better one |
| 6383 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 6384 | ac_path_FGREP_max=$ac_count |
| 6385 | fi |
| 6386 | # 10*(2^10) chars as input seems more than enough |
| 6387 | test $ac_count -gt 10 && break |
| 6388 | done |
| 6389 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6390 | esac |
| 6391 | |
| 6392 | $ac_path_FGREP_found && break 3 |
| 6393 | done |
| 6394 | done |
| 6395 | done |
| 6396 | IFS=$as_save_IFS |
| 6397 | if test -z "$ac_cv_path_FGREP"; then |
| 6398 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6399 | fi |
| 6400 | else |
| 6401 | ac_cv_path_FGREP=$FGREP |
| 6402 | fi |
| 6403 | |
| 6404 | fi |
| 6405 | fi |
| 6406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 6407 | printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 6408 | FGREP="$ac_cv_path_FGREP" |
| 6409 | |
| 6410 | |
| 6411 | test -z "$GREP" && GREP=grep |
| 6412 | |
| 6413 | |
| 6414 | |
| 6415 | |
| 6416 | |
| 6417 | |
| 6418 | |
| 6419 | |
| 6420 | |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
| 6425 | |
| 6426 | |
| 6427 | |
| 6428 | |
| 6429 | |
| 6430 | |
| 6431 | # Check whether --with-gnu-ld was given. |
| 6432 | if test ${with_gnu_ld+y} |
| 6433 | then : |
| 6434 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 6435 | else $as_nop |
| 6436 | with_gnu_ld=no |
| 6437 | fi |
| 6438 | |
| 6439 | ac_prog=ld |
| 6440 | if test yes = "$GCC"; then |
| 6441 | # Check if gcc -print-prog-name=ld gives a path. |
| 6442 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 6443 | printf %s "checking for ld used by $CC... " >&6; } |
| 6444 | case $host in |
| 6445 | *-*-mingw*) |
| 6446 | # gcc leaves a trailing carriage return, which upsets mingw |
| 6447 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6448 | *) |
| 6449 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6450 | esac |
| 6451 | case $ac_prog in |
| 6452 | # Accept absolute paths. |
| 6453 | [\\/]* | ?:[\\/]*) |
| 6454 | re_direlt='/[^/][^/]*/\.\./' |
| 6455 | # Canonicalize the pathname of ld |
| 6456 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 6457 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 6458 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 6459 | done |
| 6460 | test -z "$LD" && LD=$ac_prog |
| 6461 | ;; |
| 6462 | "") |
| 6463 | # If it fails, then pretend we aren't using GCC. |
| 6464 | ac_prog=ld |
| 6465 | ;; |
| 6466 | *) |
| 6467 | # If it is relative, then search for the first ld in PATH. |
| 6468 | with_gnu_ld=unknown |
| 6469 | ;; |
| 6470 | esac |
| 6471 | elif test yes = "$with_gnu_ld"; then |
| 6472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6473 | printf %s "checking for GNU ld... " >&6; } |
| 6474 | else |
| 6475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6476 | printf %s "checking for non-GNU ld... " >&6; } |
| 6477 | fi |
| 6478 | if test ${lt_cv_path_LD+y} |
| 6479 | then : |
| 6480 | printf %s "(cached) " >&6 |
| 6481 | else $as_nop |
| 6482 | if test -z "$LD"; then |
| 6483 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6484 | for ac_dir in $PATH; do |
| 6485 | IFS=$lt_save_ifs |
| 6486 | test -z "$ac_dir" && ac_dir=. |
| 6487 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6488 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 6489 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6490 | # but apparently some variants of GNU ld only accept -v. |
| 6491 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6492 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6493 | *GNU* | *'with BFD'*) |
| 6494 | test no != "$with_gnu_ld" && break |
| 6495 | ;; |
| 6496 | *) |
| 6497 | test yes != "$with_gnu_ld" && break |
| 6498 | ;; |
| 6499 | esac |
| 6500 | fi |
| 6501 | done |
| 6502 | IFS=$lt_save_ifs |
| 6503 | else |
| 6504 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 6505 | fi |
| 6506 | fi |
| 6507 | |
| 6508 | LD=$lt_cv_path_LD |
| 6509 | if test -n "$LD"; then |
| 6510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6511 | printf "%s\n" "$LD" >&6; } |
| 6512 | else |
| 6513 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6514 | printf "%s\n" "no" >&6; } |
| 6515 | fi |
| 6516 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6518 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6519 | if test ${lt_cv_prog_gnu_ld+y} |
| 6520 | then : |
| 6521 | printf %s "(cached) " >&6 |
| 6522 | else $as_nop |
| 6523 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6524 | case `$LD -v 2>&1 </dev/null` in |
| 6525 | *GNU* | *'with BFD'*) |
| 6526 | lt_cv_prog_gnu_ld=yes |
| 6527 | ;; |
| 6528 | *) |
| 6529 | lt_cv_prog_gnu_ld=no |
| 6530 | ;; |
| 6531 | esac |
| 6532 | fi |
| 6533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6534 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 6535 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6536 | |
| 6537 | |
| 6538 | |
| 6539 | |
| 6540 | |
| 6541 | |
| 6542 | |
| 6543 | |
| 6544 | |
| 6545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6546 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6547 | if test ${lt_cv_path_NM+y} |
| 6548 | then : |
| 6549 | printf %s "(cached) " >&6 |
| 6550 | else $as_nop |
| 6551 | if test -n "$NM"; then |
| 6552 | # Let the user override the test. |
| 6553 | lt_cv_path_NM=$NM |
| 6554 | else |
| 6555 | lt_nm_to_check=${ac_tool_prefix}nm |
| 6556 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6557 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6558 | fi |
| 6559 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6560 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6561 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6562 | IFS=$lt_save_ifs |
| 6563 | test -z "$ac_dir" && ac_dir=. |
| 6564 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 6565 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 6566 | # Check to see if the nm accepts a BSD-compat flag. |
| 6567 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 6568 | # nm: unknown option "B" ignored |
| 6569 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6570 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 6571 | case $build_os in |
| 6572 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 6573 | *) lt_bad_file=/dev/null ;; |
| 6574 | esac |
| 6575 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 6576 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 6577 | lt_cv_path_NM="$tmp_nm -B" |
| 6578 | break 2 |
| 6579 | ;; |
| 6580 | *) |
| 6581 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6582 | */dev/null*) |
| 6583 | lt_cv_path_NM="$tmp_nm -p" |
| 6584 | break 2 |
| 6585 | ;; |
| 6586 | *) |
| 6587 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6588 | continue # so that we can try to find one that supports BSD flags |
| 6589 | ;; |
| 6590 | esac |
| 6591 | ;; |
| 6592 | esac |
| 6593 | fi |
| 6594 | done |
| 6595 | IFS=$lt_save_ifs |
| 6596 | done |
| 6597 | : ${lt_cv_path_NM=no} |
| 6598 | fi |
| 6599 | fi |
| 6600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6601 | printf "%s\n" "$lt_cv_path_NM" >&6; } |
| 6602 | if test no != "$lt_cv_path_NM"; then |
| 6603 | NM=$lt_cv_path_NM |
| 6604 | else |
| 6605 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6606 | if test -n "$DUMPBIN"; then : |
| 6607 | # Let the user override the test. |
| 6608 | else |
| 6609 | if test -n "$ac_tool_prefix"; then |
| 6610 | for ac_prog in dumpbin "link -dump" |
| 6611 | do |
| 6612 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6613 | set dummy $ac_tool_prefix$ac_prog; 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_DUMPBIN+y} |
| 6617 | then : |
| 6618 | printf %s "(cached) " >&6 |
| 6619 | else $as_nop |
| 6620 | if test -n "$DUMPBIN"; then |
| 6621 | ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 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 | fi |
| 6643 | fi |
| 6644 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6645 | if test -n "$DUMPBIN"; then |
| 6646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6647 | printf "%s\n" "$DUMPBIN" >&6; } |
| 6648 | else |
| 6649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6650 | printf "%s\n" "no" >&6; } |
| 6651 | fi |
| 6652 | |
| 6653 | |
| 6654 | test -n "$DUMPBIN" && break |
| 6655 | done |
| 6656 | fi |
| 6657 | if test -z "$DUMPBIN"; then |
| 6658 | ac_ct_DUMPBIN=$DUMPBIN |
| 6659 | for ac_prog in dumpbin "link -dump" |
| 6660 | do |
| 6661 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6662 | set dummy $ac_prog; ac_word=$2 |
| 6663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6664 | printf %s "checking for $ac_word... " >&6; } |
| 6665 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y} |
| 6666 | then : |
| 6667 | printf %s "(cached) " >&6 |
| 6668 | else $as_nop |
| 6669 | if test -n "$ac_ct_DUMPBIN"; then |
| 6670 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6671 | else |
| 6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6673 | for as_dir in $PATH |
| 6674 | do |
| 6675 | IFS=$as_save_IFS |
| 6676 | case $as_dir in #((( |
| 6677 | '') as_dir=./ ;; |
| 6678 | */) ;; |
| 6679 | *) as_dir=$as_dir/ ;; |
| 6680 | esac |
| 6681 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6682 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6683 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6684 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6685 | break 2 |
| 6686 | fi |
| 6687 | done |
| 6688 | done |
| 6689 | IFS=$as_save_IFS |
| 6690 | |
| 6691 | fi |
| 6692 | fi |
| 6693 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6694 | if test -n "$ac_ct_DUMPBIN"; then |
| 6695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6696 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; } |
| 6697 | else |
| 6698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6699 | printf "%s\n" "no" >&6; } |
| 6700 | fi |
| 6701 | |
| 6702 | |
| 6703 | test -n "$ac_ct_DUMPBIN" && break |
| 6704 | done |
| 6705 | |
| 6706 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6707 | DUMPBIN=":" |
| 6708 | else |
| 6709 | case $cross_compiling:$ac_tool_warned in |
| 6710 | yes:) |
| 6711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6712 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6713 | ac_tool_warned=yes ;; |
| 6714 | esac |
| 6715 | DUMPBIN=$ac_ct_DUMPBIN |
| 6716 | fi |
| 6717 | fi |
| 6718 | |
| 6719 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 6720 | *COFF*) |
| 6721 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 6722 | ;; |
| 6723 | *) |
| 6724 | DUMPBIN=: |
| 6725 | ;; |
| 6726 | esac |
| 6727 | fi |
| 6728 | |
| 6729 | if test : != "$DUMPBIN"; then |
| 6730 | NM=$DUMPBIN |
| 6731 | fi |
| 6732 | fi |
| 6733 | test -z "$NM" && NM=nm |
| 6734 | |
| 6735 | |
| 6736 | |
| 6737 | |
| 6738 | |
| 6739 | |
| 6740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6741 | printf %s "checking the name lister ($NM) interface... " >&6; } |
| 6742 | if test ${lt_cv_nm_interface+y} |
| 6743 | then : |
| 6744 | printf %s "(cached) " >&6 |
| 6745 | else $as_nop |
| 6746 | lt_cv_nm_interface="BSD nm" |
| 6747 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6748 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6749 | (eval "$ac_compile" 2>conftest.err) |
| 6750 | cat conftest.err >&5 |
| 6751 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6752 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6753 | cat conftest.err >&5 |
| 6754 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6755 | cat conftest.out >&5 |
| 6756 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6757 | lt_cv_nm_interface="MS dumpbin" |
| 6758 | fi |
| 6759 | rm -f conftest* |
| 6760 | fi |
| 6761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6762 | printf "%s\n" "$lt_cv_nm_interface" >&6; } |
| 6763 | |
| 6764 | # find the maximum length of command line arguments |
| 6765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6766 | printf %s "checking the maximum length of command line arguments... " >&6; } |
| 6767 | if test ${lt_cv_sys_max_cmd_len+y} |
| 6768 | then : |
| 6769 | printf %s "(cached) " >&6 |
| 6770 | else $as_nop |
| 6771 | i=0 |
| 6772 | teststring=ABCD |
| 6773 | |
| 6774 | case $build_os in |
| 6775 | msdosdjgpp*) |
| 6776 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6777 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6778 | # during glob expansion). Even if it were fixed, the result of this |
| 6779 | # check would be larger than it should be. |
| 6780 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6781 | ;; |
| 6782 | |
| 6783 | gnu*) |
| 6784 | # Under GNU Hurd, this test is not required because there is |
| 6785 | # no limit to the length of command line arguments. |
| 6786 | # Libtool will interpret -1 as no limit whatsoever |
| 6787 | lt_cv_sys_max_cmd_len=-1; |
| 6788 | ;; |
| 6789 | |
| 6790 | cygwin* | mingw* | cegcc*) |
| 6791 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6792 | # about 5 minutes as the teststring grows exponentially. |
| 6793 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6794 | # you end up with a "frozen" computer, even though with patience |
| 6795 | # the test eventually succeeds (with a max line length of 256k). |
| 6796 | # Instead, let's just punt: use the minimum linelength reported by |
| 6797 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6798 | lt_cv_sys_max_cmd_len=8192; |
| 6799 | ;; |
| 6800 | |
| 6801 | mint*) |
| 6802 | # On MiNT this can take a long time and run out of memory. |
| 6803 | lt_cv_sys_max_cmd_len=8192; |
| 6804 | ;; |
| 6805 | |
| 6806 | amigaos*) |
| 6807 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6808 | # So we just punt and use a minimum line length of 8192. |
| 6809 | lt_cv_sys_max_cmd_len=8192; |
| 6810 | ;; |
| 6811 | |
| 6812 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 6813 | # This has been around since 386BSD, at least. Likely further. |
| 6814 | if test -x /sbin/sysctl; then |
| 6815 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6816 | elif test -x /usr/sbin/sysctl; then |
| 6817 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6818 | else |
| 6819 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6820 | fi |
| 6821 | # And add a safety zone |
| 6822 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6823 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6824 | ;; |
| 6825 | |
| 6826 | interix*) |
| 6827 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6828 | lt_cv_sys_max_cmd_len=196608 |
| 6829 | ;; |
| 6830 | |
| 6831 | os2*) |
| 6832 | # The test takes a long time on OS/2. |
| 6833 | lt_cv_sys_max_cmd_len=8192 |
| 6834 | ;; |
| 6835 | |
| 6836 | osf*) |
| 6837 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6838 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6839 | # nice to cause kernel panics so lets avoid the loop below. |
| 6840 | # First set a reasonable default. |
| 6841 | lt_cv_sys_max_cmd_len=16384 |
| 6842 | # |
| 6843 | if test -x /sbin/sysconfig; then |
| 6844 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6845 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6846 | esac |
| 6847 | fi |
| 6848 | ;; |
| 6849 | sco3.2v5*) |
| 6850 | lt_cv_sys_max_cmd_len=102400 |
| 6851 | ;; |
| 6852 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6853 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6854 | if test -n "$kargmax"; then |
| 6855 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6856 | else |
| 6857 | lt_cv_sys_max_cmd_len=32768 |
| 6858 | fi |
| 6859 | ;; |
| 6860 | *) |
| 6861 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6862 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 6863 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 6864 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6865 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6866 | else |
| 6867 | # Make teststring a little bigger before we do anything with it. |
| 6868 | # a 1K string should be a reasonable start. |
| 6869 | for i in 1 2 3 4 5 6 7 8; do |
| 6870 | teststring=$teststring$teststring |
| 6871 | done |
| 6872 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6873 | # If test is not a shell built-in, we'll probably end up computing a |
| 6874 | # maximum length that is only half of the actual maximum length, but |
| 6875 | # we can't tell. |
| 6876 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 6877 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6878 | test 17 != "$i" # 1/2 MB should be enough |
| 6879 | do |
| 6880 | i=`expr $i + 1` |
| 6881 | teststring=$teststring$teststring |
| 6882 | done |
| 6883 | # Only check the string length outside the loop. |
| 6884 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6885 | teststring= |
| 6886 | # Add a significant safety factor because C++ compilers can tack on |
| 6887 | # massive amounts of additional arguments before passing them to the |
| 6888 | # linker. It appears as though 1/2 is a usable value. |
| 6889 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6890 | fi |
| 6891 | ;; |
| 6892 | esac |
| 6893 | |
| 6894 | fi |
| 6895 | |
| 6896 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6897 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6898 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } |
| 6899 | else |
| 6900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6901 | printf "%s\n" "none" >&6; } |
| 6902 | fi |
| 6903 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | |
| 6908 | |
| 6909 | |
| 6910 | : ${CP="cp -f"} |
| 6911 | : ${MV="mv -f"} |
| 6912 | : ${RM="rm -f"} |
| 6913 | |
| 6914 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6915 | lt_unset=unset |
| 6916 | else |
| 6917 | lt_unset=false |
| 6918 | fi |
| 6919 | |
| 6920 | |
| 6921 | |
| 6922 | |
| 6923 | |
| 6924 | # test EBCDIC or ASCII |
| 6925 | case `echo X|tr X '\101'` in |
| 6926 | A) # ASCII based system |
| 6927 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6928 | lt_SP2NL='tr \040 \012' |
| 6929 | lt_NL2SP='tr \015\012 \040\040' |
| 6930 | ;; |
| 6931 | *) # EBCDIC based system |
| 6932 | lt_SP2NL='tr \100 \n' |
| 6933 | lt_NL2SP='tr \r\n \100\100' |
| 6934 | ;; |
| 6935 | esac |
| 6936 | |
| 6937 | |
| 6938 | |
| 6939 | |
| 6940 | |
| 6941 | |
| 6942 | |
| 6943 | |
| 6944 | |
| 6945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 6946 | printf %s "checking how to convert $build file names to $host format... " >&6; } |
| 6947 | if test ${lt_cv_to_host_file_cmd+y} |
| 6948 | then : |
| 6949 | printf %s "(cached) " >&6 |
| 6950 | else $as_nop |
| 6951 | case $host in |
| 6952 | *-*-mingw* ) |
| 6953 | case $build in |
| 6954 | *-*-mingw* ) # actually msys |
| 6955 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 6956 | ;; |
| 6957 | *-*-cygwin* ) |
| 6958 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 6959 | ;; |
| 6960 | * ) # otherwise, assume *nix |
| 6961 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 6962 | ;; |
| 6963 | esac |
| 6964 | ;; |
| 6965 | *-*-cygwin* ) |
| 6966 | case $build in |
| 6967 | *-*-mingw* ) # actually msys |
| 6968 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 6969 | ;; |
| 6970 | *-*-cygwin* ) |
| 6971 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6972 | ;; |
| 6973 | * ) # otherwise, assume *nix |
| 6974 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 6975 | ;; |
| 6976 | esac |
| 6977 | ;; |
| 6978 | * ) # unhandled hosts (and "normal" native builds) |
| 6979 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6980 | ;; |
| 6981 | esac |
| 6982 | |
| 6983 | fi |
| 6984 | |
| 6985 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 6986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 6987 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } |
| 6988 | |
| 6989 | |
| 6990 | |
| 6991 | |
| 6992 | |
| 6993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 6994 | printf %s "checking how to convert $build file names to toolchain format... " >&6; } |
| 6995 | if test ${lt_cv_to_tool_file_cmd+y} |
| 6996 | then : |
| 6997 | printf %s "(cached) " >&6 |
| 6998 | else $as_nop |
| 6999 | #assume ordinary cross tools, or native build. |
| 7000 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 7001 | case $host in |
| 7002 | *-*-mingw* ) |
| 7003 | case $build in |
| 7004 | *-*-mingw* ) # actually msys |
| 7005 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 7006 | ;; |
| 7007 | esac |
| 7008 | ;; |
| 7009 | esac |
| 7010 | |
| 7011 | fi |
| 7012 | |
| 7013 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 7014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 7015 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } |
| 7016 | |
| 7017 | |
| 7018 | |
| 7019 | |
| 7020 | |
| 7021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 7022 | printf %s "checking for $LD option to reload object files... " >&6; } |
| 7023 | if test ${lt_cv_ld_reload_flag+y} |
| 7024 | then : |
| 7025 | printf %s "(cached) " >&6 |
| 7026 | else $as_nop |
| 7027 | lt_cv_ld_reload_flag='-r' |
| 7028 | fi |
| 7029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 7030 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } |
| 7031 | reload_flag=$lt_cv_ld_reload_flag |
| 7032 | case $reload_flag in |
| 7033 | "" | " "*) ;; |
| 7034 | *) reload_flag=" $reload_flag" ;; |
| 7035 | esac |
| 7036 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7037 | case $host_os in |
| 7038 | cygwin* | mingw* | pw32* | cegcc*) |
| 7039 | if test yes != "$GCC"; then |
| 7040 | reload_cmds=false |
| 7041 | fi |
| 7042 | ;; |
| 7043 | darwin*) |
| 7044 | if test yes = "$GCC"; then |
| 7045 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 7046 | else |
| 7047 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7048 | fi |
| 7049 | ;; |
| 7050 | esac |
| 7051 | |
| 7052 | |
| 7053 | |
| 7054 | |
| 7055 | |
| 7056 | |
| 7057 | |
| 7058 | |
| 7059 | |
| 7060 | if test -n "$ac_tool_prefix"; then |
| 7061 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 7062 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 7063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7064 | printf %s "checking for $ac_word... " >&6; } |
| 7065 | if test ${ac_cv_prog_OBJDUMP+y} |
| 7066 | then : |
| 7067 | printf %s "(cached) " >&6 |
| 7068 | else $as_nop |
| 7069 | if test -n "$OBJDUMP"; then |
| 7070 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7071 | else |
| 7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7073 | for as_dir in $PATH |
| 7074 | do |
| 7075 | IFS=$as_save_IFS |
| 7076 | case $as_dir in #((( |
| 7077 | '') as_dir=./ ;; |
| 7078 | */) ;; |
| 7079 | *) as_dir=$as_dir/ ;; |
| 7080 | esac |
| 7081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7082 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7083 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 7084 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7085 | break 2 |
| 7086 | fi |
| 7087 | done |
| 7088 | done |
| 7089 | IFS=$as_save_IFS |
| 7090 | |
| 7091 | fi |
| 7092 | fi |
| 7093 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7094 | if test -n "$OBJDUMP"; then |
| 7095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7096 | printf "%s\n" "$OBJDUMP" >&6; } |
| 7097 | else |
| 7098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7099 | printf "%s\n" "no" >&6; } |
| 7100 | fi |
| 7101 | |
| 7102 | |
| 7103 | fi |
| 7104 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 7105 | ac_ct_OBJDUMP=$OBJDUMP |
| 7106 | # Extract the first word of "objdump", so it can be a program name with args. |
| 7107 | set dummy objdump; ac_word=$2 |
| 7108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7109 | printf %s "checking for $ac_word... " >&6; } |
| 7110 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 7111 | then : |
| 7112 | printf %s "(cached) " >&6 |
| 7113 | else $as_nop |
| 7114 | if test -n "$ac_ct_OBJDUMP"; then |
| 7115 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7116 | else |
| 7117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7118 | for as_dir in $PATH |
| 7119 | do |
| 7120 | IFS=$as_save_IFS |
| 7121 | case $as_dir in #((( |
| 7122 | '') as_dir=./ ;; |
| 7123 | */) ;; |
| 7124 | *) as_dir=$as_dir/ ;; |
| 7125 | esac |
| 7126 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7127 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7128 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 7129 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7130 | break 2 |
| 7131 | fi |
| 7132 | done |
| 7133 | done |
| 7134 | IFS=$as_save_IFS |
| 7135 | |
| 7136 | fi |
| 7137 | fi |
| 7138 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7139 | if test -n "$ac_ct_OBJDUMP"; then |
| 7140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7141 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 7142 | else |
| 7143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7144 | printf "%s\n" "no" >&6; } |
| 7145 | fi |
| 7146 | |
| 7147 | if test "x$ac_ct_OBJDUMP" = x; then |
| 7148 | OBJDUMP="false" |
| 7149 | else |
| 7150 | case $cross_compiling:$ac_tool_warned in |
| 7151 | yes:) |
| 7152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7153 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7154 | ac_tool_warned=yes ;; |
| 7155 | esac |
| 7156 | OBJDUMP=$ac_ct_OBJDUMP |
| 7157 | fi |
| 7158 | else |
| 7159 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 7160 | fi |
| 7161 | |
| 7162 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7163 | |
| 7164 | |
| 7165 | |
| 7166 | |
| 7167 | |
| 7168 | |
| 7169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 7170 | printf %s "checking how to recognize dependent libraries... " >&6; } |
| 7171 | if test ${lt_cv_deplibs_check_method+y} |
| 7172 | then : |
| 7173 | printf %s "(cached) " >&6 |
| 7174 | else $as_nop |
| 7175 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 7176 | lt_cv_file_magic_test_file= |
| 7177 | lt_cv_deplibs_check_method='unknown' |
| 7178 | # Need to set the preceding variable on all platforms that support |
| 7179 | # interlibrary dependencies. |
| 7180 | # 'none' -- dependencies not supported. |
| 7181 | # 'unknown' -- same as none, but documents that we really don't know. |
| 7182 | # 'pass_all' -- all dependencies passed with no checks. |
| 7183 | # 'test_compile' -- check by making test program. |
| 7184 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 7185 | # that responds to the $file_magic_cmd with a given extended regex. |
| 7186 | # If you have 'file' or equivalent on your system and you're not sure |
| 7187 | # whether 'pass_all' will *always* work, you probably want this one. |
| 7188 | |
| 7189 | case $host_os in |
| 7190 | aix[4-9]*) |
| 7191 | lt_cv_deplibs_check_method=pass_all |
| 7192 | ;; |
| 7193 | |
| 7194 | beos*) |
| 7195 | lt_cv_deplibs_check_method=pass_all |
| 7196 | ;; |
| 7197 | |
| 7198 | bsdi[45]*) |
| 7199 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 7200 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 7201 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 7202 | ;; |
| 7203 | |
| 7204 | cygwin*) |
| 7205 | # func_win32_libid is a shell function defined in ltmain.sh |
| 7206 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7207 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7208 | ;; |
| 7209 | |
| 7210 | mingw* | pw32*) |
| 7211 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 7212 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 7213 | # unless we find 'file', for example because we are cross-compiling. |
| 7214 | if ( file / ) >/dev/null 2>&1; then |
| 7215 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7216 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7217 | else |
| 7218 | # Keep this pattern in sync with the one in func_win32_libid. |
| 7219 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 7220 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7221 | fi |
| 7222 | ;; |
| 7223 | |
| 7224 | cegcc*) |
| 7225 | # use the weaker test based on 'objdump'. See mingw*. |
| 7226 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 7227 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7228 | ;; |
| 7229 | |
| 7230 | darwin* | rhapsody*) |
| 7231 | lt_cv_deplibs_check_method=pass_all |
| 7232 | ;; |
| 7233 | |
| 7234 | freebsd* | dragonfly*) |
| 7235 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7236 | case $host_cpu in |
| 7237 | i*86 ) |
| 7238 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 7239 | # Let's accept both of them until this is cleared up. |
| 7240 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 7241 | lt_cv_file_magic_cmd=/usr/bin/file |
| 7242 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 7243 | ;; |
| 7244 | esac |
| 7245 | else |
| 7246 | lt_cv_deplibs_check_method=pass_all |
| 7247 | fi |
| 7248 | ;; |
| 7249 | |
| 7250 | haiku*) |
| 7251 | lt_cv_deplibs_check_method=pass_all |
| 7252 | ;; |
| 7253 | |
| 7254 | hpux10.20* | hpux11*) |
| 7255 | lt_cv_file_magic_cmd=/usr/bin/file |
| 7256 | case $host_cpu in |
| 7257 | ia64*) |
| 7258 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 7259 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 7260 | ;; |
| 7261 | hppa*64*) |
| 7262 | 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]' |
| 7263 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 7264 | ;; |
| 7265 | *) |
| 7266 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 7267 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 7268 | ;; |
| 7269 | esac |
| 7270 | ;; |
| 7271 | |
| 7272 | interix[3-9]*) |
| 7273 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 7274 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 7275 | ;; |
| 7276 | |
| 7277 | irix5* | irix6* | nonstopux*) |
| 7278 | case $LD in |
| 7279 | *-32|*"-32 ") libmagic=32-bit;; |
| 7280 | *-n32|*"-n32 ") libmagic=N32;; |
| 7281 | *-64|*"-64 ") libmagic=64-bit;; |
| 7282 | *) libmagic=never-match;; |
| 7283 | esac |
| 7284 | lt_cv_deplibs_check_method=pass_all |
| 7285 | ;; |
| 7286 | |
| 7287 | # This must be glibc/ELF. |
| 7288 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 7289 | lt_cv_deplibs_check_method=pass_all |
| 7290 | ;; |
| 7291 | |
| 7292 | netbsd* | netbsdelf*-gnu) |
| 7293 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7294 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7295 | else |
| 7296 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 7297 | fi |
| 7298 | ;; |
| 7299 | |
| 7300 | newos6*) |
| 7301 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 7302 | lt_cv_file_magic_cmd=/usr/bin/file |
| 7303 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 7304 | ;; |
| 7305 | |
| 7306 | *nto* | *qnx*) |
| 7307 | lt_cv_deplibs_check_method=pass_all |
| 7308 | ;; |
| 7309 | |
| 7310 | openbsd* | bitrig*) |
| 7311 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 7312 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 7313 | else |
| 7314 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7315 | fi |
| 7316 | ;; |
| 7317 | |
| 7318 | osf3* | osf4* | osf5*) |
| 7319 | lt_cv_deplibs_check_method=pass_all |
| 7320 | ;; |
| 7321 | |
| 7322 | rdos*) |
| 7323 | lt_cv_deplibs_check_method=pass_all |
| 7324 | ;; |
| 7325 | |
| 7326 | solaris*) |
| 7327 | lt_cv_deplibs_check_method=pass_all |
| 7328 | ;; |
| 7329 | |
| 7330 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 7331 | lt_cv_deplibs_check_method=pass_all |
| 7332 | ;; |
| 7333 | |
| 7334 | sysv4 | sysv4.3*) |
| 7335 | case $host_vendor in |
| 7336 | motorola) |
| 7337 | 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]' |
| 7338 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 7339 | ;; |
| 7340 | ncr) |
| 7341 | lt_cv_deplibs_check_method=pass_all |
| 7342 | ;; |
| 7343 | sequent) |
| 7344 | lt_cv_file_magic_cmd='/bin/file' |
| 7345 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 7346 | ;; |
| 7347 | sni) |
| 7348 | lt_cv_file_magic_cmd='/bin/file' |
| 7349 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 7350 | lt_cv_file_magic_test_file=/lib/libc.so |
| 7351 | ;; |
| 7352 | siemens) |
| 7353 | lt_cv_deplibs_check_method=pass_all |
| 7354 | ;; |
| 7355 | pc) |
| 7356 | lt_cv_deplibs_check_method=pass_all |
| 7357 | ;; |
| 7358 | esac |
| 7359 | ;; |
| 7360 | |
| 7361 | tpf*) |
| 7362 | lt_cv_deplibs_check_method=pass_all |
| 7363 | ;; |
| 7364 | os2*) |
| 7365 | lt_cv_deplibs_check_method=pass_all |
| 7366 | ;; |
| 7367 | esac |
| 7368 | |
| 7369 | fi |
| 7370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 7371 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } |
| 7372 | |
| 7373 | file_magic_glob= |
| 7374 | want_nocaseglob=no |
| 7375 | if test "$build" = "$host"; then |
| 7376 | case $host_os in |
| 7377 | mingw* | pw32*) |
| 7378 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 7379 | want_nocaseglob=yes |
| 7380 | else |
| 7381 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 7382 | fi |
| 7383 | ;; |
| 7384 | esac |
| 7385 | fi |
| 7386 | |
| 7387 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 7388 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 7389 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7390 | |
| 7391 | |
| 7392 | |
| 7393 | |
| 7394 | |
| 7395 | |
| 7396 | |
| 7397 | |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | |
| 7402 | |
| 7403 | |
| 7404 | |
| 7405 | |
| 7406 | |
| 7407 | |
| 7408 | |
| 7409 | |
| 7410 | |
| 7411 | |
| 7412 | if test -n "$ac_tool_prefix"; then |
| 7413 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7414 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7416 | printf %s "checking for $ac_word... " >&6; } |
| 7417 | if test ${ac_cv_prog_DLLTOOL+y} |
| 7418 | then : |
| 7419 | printf %s "(cached) " >&6 |
| 7420 | else $as_nop |
| 7421 | if test -n "$DLLTOOL"; then |
| 7422 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7423 | else |
| 7424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7425 | for as_dir in $PATH |
| 7426 | do |
| 7427 | IFS=$as_save_IFS |
| 7428 | case $as_dir in #((( |
| 7429 | '') as_dir=./ ;; |
| 7430 | */) ;; |
| 7431 | *) as_dir=$as_dir/ ;; |
| 7432 | esac |
| 7433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7434 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7435 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7437 | break 2 |
| 7438 | fi |
| 7439 | done |
| 7440 | done |
| 7441 | IFS=$as_save_IFS |
| 7442 | |
| 7443 | fi |
| 7444 | fi |
| 7445 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7446 | if test -n "$DLLTOOL"; then |
| 7447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7448 | printf "%s\n" "$DLLTOOL" >&6; } |
| 7449 | else |
| 7450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7451 | printf "%s\n" "no" >&6; } |
| 7452 | fi |
| 7453 | |
| 7454 | |
| 7455 | fi |
| 7456 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7457 | ac_ct_DLLTOOL=$DLLTOOL |
| 7458 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 7459 | set dummy dlltool; ac_word=$2 |
| 7460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7461 | printf %s "checking for $ac_word... " >&6; } |
| 7462 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 7463 | then : |
| 7464 | printf %s "(cached) " >&6 |
| 7465 | else $as_nop |
| 7466 | if test -n "$ac_ct_DLLTOOL"; then |
| 7467 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7468 | else |
| 7469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7470 | for as_dir in $PATH |
| 7471 | do |
| 7472 | IFS=$as_save_IFS |
| 7473 | case $as_dir in #((( |
| 7474 | '') as_dir=./ ;; |
| 7475 | */) ;; |
| 7476 | *) as_dir=$as_dir/ ;; |
| 7477 | esac |
| 7478 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7479 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7480 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7481 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7482 | break 2 |
| 7483 | fi |
| 7484 | done |
| 7485 | done |
| 7486 | IFS=$as_save_IFS |
| 7487 | |
| 7488 | fi |
| 7489 | fi |
| 7490 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7491 | if test -n "$ac_ct_DLLTOOL"; then |
| 7492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7493 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 7494 | else |
| 7495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7496 | printf "%s\n" "no" >&6; } |
| 7497 | fi |
| 7498 | |
| 7499 | if test "x$ac_ct_DLLTOOL" = x; then |
| 7500 | DLLTOOL="false" |
| 7501 | else |
| 7502 | case $cross_compiling:$ac_tool_warned in |
| 7503 | yes:) |
| 7504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7505 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7506 | ac_tool_warned=yes ;; |
| 7507 | esac |
| 7508 | DLLTOOL=$ac_ct_DLLTOOL |
| 7509 | fi |
| 7510 | else |
| 7511 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7512 | fi |
| 7513 | |
| 7514 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7515 | |
| 7516 | |
| 7517 | |
| 7518 | |
| 7519 | |
| 7520 | |
| 7521 | |
| 7522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7523 | printf %s "checking how to associate runtime and link libraries... " >&6; } |
| 7524 | if test ${lt_cv_sharedlib_from_linklib_cmd+y} |
| 7525 | then : |
| 7526 | printf %s "(cached) " >&6 |
| 7527 | else $as_nop |
| 7528 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7529 | |
| 7530 | case $host_os in |
| 7531 | cygwin* | mingw* | pw32* | cegcc*) |
| 7532 | # two different shell functions defined in ltmain.sh; |
| 7533 | # decide which one to use based on capabilities of $DLLTOOL |
| 7534 | case `$DLLTOOL --help 2>&1` in |
| 7535 | *--identify-strict*) |
| 7536 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7537 | ;; |
| 7538 | *) |
| 7539 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7540 | ;; |
| 7541 | esac |
| 7542 | ;; |
| 7543 | *) |
| 7544 | # fallback: assume linklib IS sharedlib |
| 7545 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 7546 | ;; |
| 7547 | esac |
| 7548 | |
| 7549 | fi |
| 7550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7551 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7552 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7553 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7554 | |
| 7555 | |
| 7556 | |
| 7557 | |
| 7558 | |
| 7559 | |
| 7560 | |
| 7561 | |
| 7562 | if test -n "$ac_tool_prefix"; then |
| 7563 | for ac_prog in ar |
| 7564 | do |
| 7565 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7566 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7568 | printf %s "checking for $ac_word... " >&6; } |
| 7569 | if test ${ac_cv_prog_AR+y} |
| 7570 | then : |
| 7571 | printf %s "(cached) " >&6 |
| 7572 | else $as_nop |
| 7573 | if test -n "$AR"; then |
| 7574 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7575 | else |
| 7576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7577 | for as_dir in $PATH |
| 7578 | do |
| 7579 | IFS=$as_save_IFS |
| 7580 | case $as_dir in #((( |
| 7581 | '') as_dir=./ ;; |
| 7582 | */) ;; |
| 7583 | *) as_dir=$as_dir/ ;; |
| 7584 | esac |
| 7585 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7586 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7587 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7588 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7589 | break 2 |
| 7590 | fi |
| 7591 | done |
| 7592 | done |
| 7593 | IFS=$as_save_IFS |
| 7594 | |
| 7595 | fi |
| 7596 | fi |
| 7597 | AR=$ac_cv_prog_AR |
| 7598 | if test -n "$AR"; then |
| 7599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7600 | printf "%s\n" "$AR" >&6; } |
| 7601 | else |
| 7602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7603 | printf "%s\n" "no" >&6; } |
| 7604 | fi |
| 7605 | |
| 7606 | |
| 7607 | test -n "$AR" && break |
| 7608 | done |
| 7609 | fi |
| 7610 | if test -z "$AR"; then |
| 7611 | ac_ct_AR=$AR |
| 7612 | for ac_prog in ar |
| 7613 | do |
| 7614 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7615 | set dummy $ac_prog; ac_word=$2 |
| 7616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7617 | printf %s "checking for $ac_word... " >&6; } |
| 7618 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 7619 | then : |
| 7620 | printf %s "(cached) " >&6 |
| 7621 | else $as_nop |
| 7622 | if test -n "$ac_ct_AR"; then |
| 7623 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7624 | else |
| 7625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7626 | for as_dir in $PATH |
| 7627 | do |
| 7628 | IFS=$as_save_IFS |
| 7629 | case $as_dir in #((( |
| 7630 | '') as_dir=./ ;; |
| 7631 | */) ;; |
| 7632 | *) as_dir=$as_dir/ ;; |
| 7633 | esac |
| 7634 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7635 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7636 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7637 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7638 | break 2 |
| 7639 | fi |
| 7640 | done |
| 7641 | done |
| 7642 | IFS=$as_save_IFS |
| 7643 | |
| 7644 | fi |
| 7645 | fi |
| 7646 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7647 | if test -n "$ac_ct_AR"; then |
| 7648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7649 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 7650 | else |
| 7651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7652 | printf "%s\n" "no" >&6; } |
| 7653 | fi |
| 7654 | |
| 7655 | |
| 7656 | test -n "$ac_ct_AR" && break |
| 7657 | done |
| 7658 | |
| 7659 | if test "x$ac_ct_AR" = x; then |
| 7660 | AR="false" |
| 7661 | else |
| 7662 | case $cross_compiling:$ac_tool_warned in |
| 7663 | yes:) |
| 7664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7665 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7666 | ac_tool_warned=yes ;; |
| 7667 | esac |
| 7668 | AR=$ac_ct_AR |
| 7669 | fi |
| 7670 | fi |
| 7671 | |
| 7672 | : ${AR=ar} |
| 7673 | : ${AR_FLAGS=cr} |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | |
| 7678 | |
| 7679 | |
| 7680 | |
| 7681 | |
| 7682 | |
| 7683 | |
| 7684 | |
| 7685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7686 | printf %s "checking for archiver @FILE support... " >&6; } |
| 7687 | if test ${lt_cv_ar_at_file+y} |
| 7688 | then : |
| 7689 | printf %s "(cached) " >&6 |
| 7690 | else $as_nop |
| 7691 | lt_cv_ar_at_file=no |
| 7692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7693 | /* end confdefs.h. */ |
| 7694 | |
| 7695 | int |
| 7696 | main (void) |
| 7697 | { |
| 7698 | |
| 7699 | ; |
| 7700 | return 0; |
| 7701 | } |
| 7702 | _ACEOF |
| 7703 | if ac_fn_c_try_compile "$LINENO" |
| 7704 | then : |
| 7705 | echo conftest.$ac_objext > conftest.lst |
| 7706 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7707 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7708 | (eval $lt_ar_try) 2>&5 |
| 7709 | ac_status=$? |
| 7710 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7711 | test $ac_status = 0; } |
| 7712 | if test 0 -eq "$ac_status"; then |
| 7713 | # Ensure the archiver fails upon bogus file names. |
| 7714 | rm -f conftest.$ac_objext libconftest.a |
| 7715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7716 | (eval $lt_ar_try) 2>&5 |
| 7717 | ac_status=$? |
| 7718 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7719 | test $ac_status = 0; } |
| 7720 | if test 0 -ne "$ac_status"; then |
| 7721 | lt_cv_ar_at_file=@ |
| 7722 | fi |
| 7723 | fi |
| 7724 | rm -f conftest.* libconftest.a |
| 7725 | |
| 7726 | fi |
| 7727 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7728 | |
| 7729 | fi |
| 7730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7731 | printf "%s\n" "$lt_cv_ar_at_file" >&6; } |
| 7732 | |
| 7733 | if test no = "$lt_cv_ar_at_file"; then |
| 7734 | archiver_list_spec= |
| 7735 | else |
| 7736 | archiver_list_spec=$lt_cv_ar_at_file |
| 7737 | fi |
| 7738 | |
| 7739 | |
| 7740 | |
| 7741 | |
| 7742 | |
| 7743 | |
| 7744 | |
| 7745 | if test -n "$ac_tool_prefix"; then |
| 7746 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7747 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7749 | printf %s "checking for $ac_word... " >&6; } |
| 7750 | if test ${ac_cv_prog_STRIP+y} |
| 7751 | then : |
| 7752 | printf %s "(cached) " >&6 |
| 7753 | else $as_nop |
| 7754 | if test -n "$STRIP"; then |
| 7755 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7756 | else |
| 7757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7758 | for as_dir in $PATH |
| 7759 | do |
| 7760 | IFS=$as_save_IFS |
| 7761 | case $as_dir in #((( |
| 7762 | '') as_dir=./ ;; |
| 7763 | */) ;; |
| 7764 | *) as_dir=$as_dir/ ;; |
| 7765 | esac |
| 7766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7767 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7768 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7769 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7770 | break 2 |
| 7771 | fi |
| 7772 | done |
| 7773 | done |
| 7774 | IFS=$as_save_IFS |
| 7775 | |
| 7776 | fi |
| 7777 | fi |
| 7778 | STRIP=$ac_cv_prog_STRIP |
| 7779 | if test -n "$STRIP"; then |
| 7780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7781 | printf "%s\n" "$STRIP" >&6; } |
| 7782 | else |
| 7783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7784 | printf "%s\n" "no" >&6; } |
| 7785 | fi |
| 7786 | |
| 7787 | |
| 7788 | fi |
| 7789 | if test -z "$ac_cv_prog_STRIP"; then |
| 7790 | ac_ct_STRIP=$STRIP |
| 7791 | # Extract the first word of "strip", so it can be a program name with args. |
| 7792 | set dummy strip; ac_word=$2 |
| 7793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7794 | printf %s "checking for $ac_word... " >&6; } |
| 7795 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 7796 | then : |
| 7797 | printf %s "(cached) " >&6 |
| 7798 | else $as_nop |
| 7799 | if test -n "$ac_ct_STRIP"; then |
| 7800 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7801 | else |
| 7802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7803 | for as_dir in $PATH |
| 7804 | do |
| 7805 | IFS=$as_save_IFS |
| 7806 | case $as_dir in #((( |
| 7807 | '') as_dir=./ ;; |
| 7808 | */) ;; |
| 7809 | *) as_dir=$as_dir/ ;; |
| 7810 | esac |
| 7811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7812 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7813 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7814 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7815 | break 2 |
| 7816 | fi |
| 7817 | done |
| 7818 | done |
| 7819 | IFS=$as_save_IFS |
| 7820 | |
| 7821 | fi |
| 7822 | fi |
| 7823 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7824 | if test -n "$ac_ct_STRIP"; then |
| 7825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7826 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 7827 | else |
| 7828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7829 | printf "%s\n" "no" >&6; } |
| 7830 | fi |
| 7831 | |
| 7832 | if test "x$ac_ct_STRIP" = x; then |
| 7833 | STRIP=":" |
| 7834 | else |
| 7835 | case $cross_compiling:$ac_tool_warned in |
| 7836 | yes:) |
| 7837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7838 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7839 | ac_tool_warned=yes ;; |
| 7840 | esac |
| 7841 | STRIP=$ac_ct_STRIP |
| 7842 | fi |
| 7843 | else |
| 7844 | STRIP="$ac_cv_prog_STRIP" |
| 7845 | fi |
| 7846 | |
| 7847 | test -z "$STRIP" && STRIP=: |
| 7848 | |
| 7849 | |
| 7850 | |
| 7851 | |
| 7852 | |
| 7853 | |
| 7854 | if test -n "$ac_tool_prefix"; then |
| 7855 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7856 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7858 | printf %s "checking for $ac_word... " >&6; } |
| 7859 | if test ${ac_cv_prog_RANLIB+y} |
| 7860 | then : |
| 7861 | printf %s "(cached) " >&6 |
| 7862 | else $as_nop |
| 7863 | if test -n "$RANLIB"; then |
| 7864 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7865 | else |
| 7866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7867 | for as_dir in $PATH |
| 7868 | do |
| 7869 | IFS=$as_save_IFS |
| 7870 | case $as_dir in #((( |
| 7871 | '') as_dir=./ ;; |
| 7872 | */) ;; |
| 7873 | *) as_dir=$as_dir/ ;; |
| 7874 | esac |
| 7875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7876 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7877 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7878 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7879 | break 2 |
| 7880 | fi |
| 7881 | done |
| 7882 | done |
| 7883 | IFS=$as_save_IFS |
| 7884 | |
| 7885 | fi |
| 7886 | fi |
| 7887 | RANLIB=$ac_cv_prog_RANLIB |
| 7888 | if test -n "$RANLIB"; then |
| 7889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7890 | printf "%s\n" "$RANLIB" >&6; } |
| 7891 | else |
| 7892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7893 | printf "%s\n" "no" >&6; } |
| 7894 | fi |
| 7895 | |
| 7896 | |
| 7897 | fi |
| 7898 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7899 | ac_ct_RANLIB=$RANLIB |
| 7900 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7901 | set dummy ranlib; ac_word=$2 |
| 7902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7903 | printf %s "checking for $ac_word... " >&6; } |
| 7904 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7905 | then : |
| 7906 | printf %s "(cached) " >&6 |
| 7907 | else $as_nop |
| 7908 | if test -n "$ac_ct_RANLIB"; then |
| 7909 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7910 | else |
| 7911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7912 | for as_dir in $PATH |
| 7913 | do |
| 7914 | IFS=$as_save_IFS |
| 7915 | case $as_dir in #((( |
| 7916 | '') as_dir=./ ;; |
| 7917 | */) ;; |
| 7918 | *) as_dir=$as_dir/ ;; |
| 7919 | esac |
| 7920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7921 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7922 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7923 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7924 | break 2 |
| 7925 | fi |
| 7926 | done |
| 7927 | done |
| 7928 | IFS=$as_save_IFS |
| 7929 | |
| 7930 | fi |
| 7931 | fi |
| 7932 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7933 | if test -n "$ac_ct_RANLIB"; then |
| 7934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7935 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 7936 | else |
| 7937 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7938 | printf "%s\n" "no" >&6; } |
| 7939 | fi |
| 7940 | |
| 7941 | if test "x$ac_ct_RANLIB" = x; then |
| 7942 | RANLIB=":" |
| 7943 | else |
| 7944 | case $cross_compiling:$ac_tool_warned in |
| 7945 | yes:) |
| 7946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7947 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7948 | ac_tool_warned=yes ;; |
| 7949 | esac |
| 7950 | RANLIB=$ac_ct_RANLIB |
| 7951 | fi |
| 7952 | else |
| 7953 | RANLIB="$ac_cv_prog_RANLIB" |
| 7954 | fi |
| 7955 | |
| 7956 | test -z "$RANLIB" && RANLIB=: |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | # Determine commands to create old-style static archives. |
| 7964 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 7965 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7966 | old_postuninstall_cmds= |
| 7967 | |
| 7968 | if test -n "$RANLIB"; then |
| 7969 | case $host_os in |
| 7970 | bitrig* | openbsd*) |
| 7971 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 7972 | ;; |
| 7973 | *) |
| 7974 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 7975 | ;; |
| 7976 | esac |
| 7977 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 7978 | fi |
| 7979 | |
| 7980 | case $host_os in |
| 7981 | darwin*) |
| 7982 | lock_old_archive_extraction=yes ;; |
| 7983 | *) |
| 7984 | lock_old_archive_extraction=no ;; |
| 7985 | esac |
| 7986 | |
| 7987 | |
| 7988 | |
| 7989 | |
| 7990 | |
| 7991 | |
| 7992 | |
| 7993 | |
| 7994 | |
| 7995 | |
| 7996 | |
| 7997 | |
| 7998 | |
| 7999 | |
| 8000 | |
| 8001 | |
| 8002 | |
| 8003 | |
| 8004 | |
| 8005 | |
| 8006 | |
| 8007 | |
| 8008 | |
| 8009 | |
| 8010 | |
| 8011 | |
| 8012 | |
| 8013 | |
| 8014 | |
| 8015 | |
| 8016 | |
| 8017 | |
| 8018 | |
| 8019 | |
| 8020 | |
| 8021 | |
| 8022 | |
| 8023 | |
| 8024 | |
| 8025 | # If no C compiler was specified, use CC. |
| 8026 | LTCC=${LTCC-"$CC"} |
| 8027 | |
| 8028 | # If no C compiler flags were specified, use CFLAGS. |
| 8029 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8030 | |
| 8031 | # Allow CC to be a program name with arguments. |
| 8032 | compiler=$CC |
| 8033 | |
| 8034 | |
| 8035 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 8036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8037 | printf %s "checking command to parse $NM output from $compiler object... " >&6; } |
| 8038 | if test ${lt_cv_sys_global_symbol_pipe+y} |
| 8039 | then : |
| 8040 | printf %s "(cached) " >&6 |
| 8041 | else $as_nop |
| 8042 | |
| 8043 | # These are sane defaults that work on at least a few old systems. |
| 8044 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8045 | |
| 8046 | # Character class describing NM global symbol codes. |
| 8047 | symcode='[BCDEGRST]' |
| 8048 | |
| 8049 | # Regexp to match symbols that can be accessed directly from C. |
| 8050 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8051 | |
| 8052 | # Define system-specific variables. |
| 8053 | case $host_os in |
| 8054 | aix*) |
| 8055 | symcode='[BCDT]' |
| 8056 | ;; |
| 8057 | cygwin* | mingw* | pw32* | cegcc*) |
| 8058 | symcode='[ABCDGISTW]' |
| 8059 | ;; |
| 8060 | hpux*) |
| 8061 | if test ia64 = "$host_cpu"; then |
| 8062 | symcode='[ABCDEGRST]' |
| 8063 | fi |
| 8064 | ;; |
| 8065 | irix* | nonstopux*) |
| 8066 | symcode='[BCDEGRST]' |
| 8067 | ;; |
| 8068 | osf*) |
| 8069 | symcode='[BCDEGQRST]' |
| 8070 | ;; |
| 8071 | solaris*) |
| 8072 | symcode='[BDRT]' |
| 8073 | ;; |
| 8074 | sco3.2v5*) |
| 8075 | symcode='[DT]' |
| 8076 | ;; |
| 8077 | sysv4.2uw2*) |
| 8078 | symcode='[DT]' |
| 8079 | ;; |
| 8080 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 8081 | symcode='[ABDT]' |
| 8082 | ;; |
| 8083 | sysv4) |
| 8084 | symcode='[DFNSTU]' |
| 8085 | ;; |
| 8086 | esac |
| 8087 | |
| 8088 | # If we're using GNU nm, then use its standard symbol codes. |
| 8089 | case `$NM -V 2>&1` in |
| 8090 | *GNU* | *'with BFD'*) |
| 8091 | symcode='[ABCDGIRSTW]' ;; |
| 8092 | esac |
| 8093 | |
| 8094 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8095 | # Gets list of data symbols to import. |
| 8096 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 8097 | # Adjust the below global symbol transforms to fixup imported variables. |
| 8098 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 8099 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 8100 | lt_c_name_lib_hook="\ |
| 8101 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 8102 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 8103 | else |
| 8104 | # Disable hooks by default. |
| 8105 | lt_cv_sys_global_symbol_to_import= |
| 8106 | lt_cdecl_hook= |
| 8107 | lt_c_name_hook= |
| 8108 | lt_c_name_lib_hook= |
| 8109 | fi |
| 8110 | |
| 8111 | # Transform an extracted symbol line into a proper C declaration. |
| 8112 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 8113 | # so use this general approach. |
| 8114 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 8115 | $lt_cdecl_hook\ |
| 8116 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 8117 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8118 | |
| 8119 | # Transform an extracted symbol line into symbol name and symbol address |
| 8120 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 8121 | $lt_c_name_hook\ |
| 8122 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8123 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 8124 | |
| 8125 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 8126 | # symbol address. |
| 8127 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 8128 | $lt_c_name_lib_hook\ |
| 8129 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8130 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 8131 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 8132 | |
| 8133 | # Handle CRLF in mingw tool chain |
| 8134 | opt_cr= |
| 8135 | case $build_os in |
| 8136 | mingw*) |
| 8137 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 8138 | ;; |
| 8139 | esac |
| 8140 | |
| 8141 | # Try without a prefix underscore, then with it. |
| 8142 | for ac_symprfx in "" "_"; do |
| 8143 | |
| 8144 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 8145 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 8146 | |
| 8147 | # Write the raw and C identifiers. |
| 8148 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8149 | # Fake it for dumpbin and say T for any non-static function, |
| 8150 | # D for any global variable and I for any imported variable. |
| 8151 | # Also find C++ and __fastcall symbols from MSVC++, |
| 8152 | # which start with @ or ?. |
| 8153 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 8154 | " {last_section=section; section=\$ 3};"\ |
| 8155 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 8156 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 8157 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 8158 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 8159 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 8160 | " \$ 0!~/External *\|/{next};"\ |
| 8161 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 8162 | " {if(hide[section]) next};"\ |
| 8163 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 8164 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 8165 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 8166 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 8167 | " ' prfx=^$ac_symprfx" |
| 8168 | else |
| 8169 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 8170 | fi |
| 8171 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 8172 | |
| 8173 | # Check to see that the pipe works correctly. |
| 8174 | pipe_works=no |
| 8175 | |
| 8176 | rm -f conftest* |
| 8177 | cat > conftest.$ac_ext <<_LT_EOF |
| 8178 | #ifdef __cplusplus |
| 8179 | extern "C" { |
| 8180 | #endif |
| 8181 | char nm_test_var; |
| 8182 | void nm_test_func(void); |
| 8183 | void nm_test_func(void){} |
| 8184 | #ifdef __cplusplus |
| 8185 | } |
| 8186 | #endif |
| 8187 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 8188 | _LT_EOF |
| 8189 | |
| 8190 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8191 | (eval $ac_compile) 2>&5 |
| 8192 | ac_status=$? |
| 8193 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8194 | test $ac_status = 0; }; then |
| 8195 | # Now try to grab the symbols. |
| 8196 | nlist=conftest.nm |
| 8197 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 8198 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 8199 | # Try sorting and uniquifying the output. |
| 8200 | if sort "$nlist" | uniq > "$nlist"T; then |
| 8201 | mv -f "$nlist"T "$nlist" |
| 8202 | else |
| 8203 | rm -f "$nlist"T |
| 8204 | fi |
| 8205 | |
| 8206 | # Make sure that we snagged all the symbols we need. |
| 8207 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 8208 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 8209 | cat <<_LT_EOF > conftest.$ac_ext |
| 8210 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 8211 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 8212 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 8213 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 8214 | # define LT_DLSYM_CONST |
| 8215 | #elif defined __osf__ |
| 8216 | /* This system does not cope well with relocations in const data. */ |
| 8217 | # define LT_DLSYM_CONST |
| 8218 | #else |
| 8219 | # define LT_DLSYM_CONST const |
| 8220 | #endif |
| 8221 | |
| 8222 | #ifdef __cplusplus |
| 8223 | extern "C" { |
| 8224 | #endif |
| 8225 | |
| 8226 | _LT_EOF |
| 8227 | # Now generate the symbol file. |
| 8228 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 8229 | |
| 8230 | cat <<_LT_EOF >> conftest.$ac_ext |
| 8231 | |
| 8232 | /* The mapping between symbol names and symbols. */ |
| 8233 | LT_DLSYM_CONST struct { |
| 8234 | const char *name; |
| 8235 | void *address; |
| 8236 | } |
| 8237 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 8238 | { |
| 8239 | { "@PROGRAM@", (void *) 0 }, |
| 8240 | _LT_EOF |
| 8241 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 8242 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 8243 | {0, (void *) 0} |
| 8244 | }; |
| 8245 | |
| 8246 | /* This works around a problem in FreeBSD linker */ |
| 8247 | #ifdef FREEBSD_WORKAROUND |
| 8248 | static const void *lt_preloaded_setup() { |
| 8249 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 8250 | } |
| 8251 | #endif |
| 8252 | |
| 8253 | #ifdef __cplusplus |
| 8254 | } |
| 8255 | #endif |
| 8256 | _LT_EOF |
| 8257 | # Now try linking the two files. |
| 8258 | mv conftest.$ac_objext conftstm.$ac_objext |
| 8259 | lt_globsym_save_LIBS=$LIBS |
| 8260 | lt_globsym_save_CFLAGS=$CFLAGS |
| 8261 | LIBS=conftstm.$ac_objext |
| 8262 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 8263 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 8264 | (eval $ac_link) 2>&5 |
| 8265 | ac_status=$? |
| 8266 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8267 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 8268 | pipe_works=yes |
| 8269 | fi |
| 8270 | LIBS=$lt_globsym_save_LIBS |
| 8271 | CFLAGS=$lt_globsym_save_CFLAGS |
| 8272 | else |
| 8273 | echo "cannot find nm_test_func in $nlist" >&5 |
| 8274 | fi |
| 8275 | else |
| 8276 | echo "cannot find nm_test_var in $nlist" >&5 |
| 8277 | fi |
| 8278 | else |
| 8279 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8280 | fi |
| 8281 | else |
| 8282 | echo "$progname: failed program was:" >&5 |
| 8283 | cat conftest.$ac_ext >&5 |
| 8284 | fi |
| 8285 | rm -rf conftest* conftst* |
| 8286 | |
| 8287 | # Do not use the global_symbol_pipe unless it works. |
| 8288 | if test yes = "$pipe_works"; then |
| 8289 | break |
| 8290 | else |
| 8291 | lt_cv_sys_global_symbol_pipe= |
| 8292 | fi |
| 8293 | done |
| 8294 | |
| 8295 | fi |
| 8296 | |
| 8297 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8298 | lt_cv_sys_global_symbol_to_cdecl= |
| 8299 | fi |
| 8300 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 8302 | printf "%s\n" "failed" >&6; } |
| 8303 | else |
| 8304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 8305 | printf "%s\n" "ok" >&6; } |
| 8306 | fi |
| 8307 | |
| 8308 | # Response file support. |
| 8309 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8310 | nm_file_list_spec='@' |
| 8311 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 8312 | nm_file_list_spec='@' |
| 8313 | fi |
| 8314 | |
| 8315 | |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | |
| 8320 | |
| 8321 | |
| 8322 | |
| 8323 | |
| 8324 | |
| 8325 | |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8352 | printf %s "checking for sysroot... " >&6; } |
| 8353 | |
| 8354 | # Check whether --with-sysroot was given. |
| 8355 | if test ${with_sysroot+y} |
| 8356 | then : |
| 8357 | withval=$with_sysroot; |
| 8358 | else $as_nop |
| 8359 | with_sysroot=no |
| 8360 | fi |
| 8361 | |
| 8362 | |
| 8363 | lt_sysroot= |
| 8364 | case $with_sysroot in #( |
| 8365 | yes) |
| 8366 | if test yes = "$GCC"; then |
| 8367 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 8368 | fi |
| 8369 | ;; #( |
| 8370 | /*) |
| 8371 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 8372 | ;; #( |
| 8373 | no|'') |
| 8374 | ;; #( |
| 8375 | *) |
| 8376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 8377 | printf "%s\n" "$with_sysroot" >&6; } |
| 8378 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8379 | ;; |
| 8380 | esac |
| 8381 | |
| 8382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8383 | printf "%s\n" "${lt_sysroot:-no}" >&6; } |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 8390 | printf %s "checking for a working dd... " >&6; } |
| 8391 | if test ${ac_cv_path_lt_DD+y} |
| 8392 | then : |
| 8393 | printf %s "(cached) " >&6 |
| 8394 | else $as_nop |
| 8395 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8396 | cat conftest.i conftest.i >conftest2.i |
| 8397 | : ${lt_DD:=$DD} |
| 8398 | if test -z "$lt_DD"; then |
| 8399 | ac_path_lt_DD_found=false |
| 8400 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8402 | for as_dir in $PATH |
| 8403 | do |
| 8404 | IFS=$as_save_IFS |
| 8405 | case $as_dir in #((( |
| 8406 | '') as_dir=./ ;; |
| 8407 | */) ;; |
| 8408 | *) as_dir=$as_dir/ ;; |
| 8409 | esac |
| 8410 | for ac_prog in dd |
| 8411 | do |
| 8412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8413 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" |
| 8414 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 8415 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8416 | cmp -s conftest.i conftest.out \ |
| 8417 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 8418 | fi |
| 8419 | $ac_path_lt_DD_found && break 3 |
| 8420 | done |
| 8421 | done |
| 8422 | done |
| 8423 | IFS=$as_save_IFS |
| 8424 | if test -z "$ac_cv_path_lt_DD"; then |
| 8425 | : |
| 8426 | fi |
| 8427 | else |
| 8428 | ac_cv_path_lt_DD=$lt_DD |
| 8429 | fi |
| 8430 | |
| 8431 | rm -f conftest.i conftest2.i conftest.out |
| 8432 | fi |
| 8433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 8434 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; } |
| 8435 | |
| 8436 | |
| 8437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 8438 | printf %s "checking how to truncate binary pipes... " >&6; } |
| 8439 | if test ${lt_cv_truncate_bin+y} |
| 8440 | then : |
| 8441 | printf %s "(cached) " >&6 |
| 8442 | else $as_nop |
| 8443 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8444 | cat conftest.i conftest.i >conftest2.i |
| 8445 | lt_cv_truncate_bin= |
| 8446 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8447 | cmp -s conftest.i conftest.out \ |
| 8448 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 8449 | fi |
| 8450 | rm -f conftest.i conftest2.i conftest.out |
| 8451 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 8452 | fi |
| 8453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 8454 | printf "%s\n" "$lt_cv_truncate_bin" >&6; } |
| 8455 | |
| 8456 | |
| 8457 | |
| 8458 | |
| 8459 | |
| 8460 | |
| 8461 | |
| 8462 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 8463 | func_cc_basename () |
| 8464 | { |
| 8465 | for cc_temp in $*""; do |
| 8466 | case $cc_temp in |
| 8467 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8468 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8469 | \-*) ;; |
| 8470 | *) break;; |
| 8471 | esac |
| 8472 | done |
| 8473 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8474 | } |
| 8475 | |
| 8476 | # Check whether --enable-libtool-lock was given. |
| 8477 | if test ${enable_libtool_lock+y} |
| 8478 | then : |
| 8479 | enableval=$enable_libtool_lock; |
| 8480 | fi |
| 8481 | |
| 8482 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 8483 | |
| 8484 | # Some flags need to be propagated to the compiler or linker for good |
| 8485 | # libtool support. |
| 8486 | case $host in |
| 8487 | ia64-*-hpux*) |
| 8488 | # Find out what ABI is being produced by ac_compile, and set mode |
| 8489 | # options accordingly. |
| 8490 | echo 'int i;' > conftest.$ac_ext |
| 8491 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8492 | (eval $ac_compile) 2>&5 |
| 8493 | ac_status=$? |
| 8494 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8495 | test $ac_status = 0; }; then |
| 8496 | case `/usr/bin/file conftest.$ac_objext` in |
| 8497 | *ELF-32*) |
| 8498 | HPUX_IA64_MODE=32 |
| 8499 | ;; |
| 8500 | *ELF-64*) |
| 8501 | HPUX_IA64_MODE=64 |
| 8502 | ;; |
| 8503 | esac |
| 8504 | fi |
| 8505 | rm -rf conftest* |
| 8506 | ;; |
| 8507 | *-*-irix6*) |
| 8508 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8509 | # options accordingly. |
| 8510 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8511 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8512 | (eval $ac_compile) 2>&5 |
| 8513 | ac_status=$? |
| 8514 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8515 | test $ac_status = 0; }; then |
| 8516 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 8517 | case `/usr/bin/file conftest.$ac_objext` in |
| 8518 | *32-bit*) |
| 8519 | LD="${LD-ld} -melf32bsmip" |
| 8520 | ;; |
| 8521 | *N32*) |
| 8522 | LD="${LD-ld} -melf32bmipn32" |
| 8523 | ;; |
| 8524 | *64-bit*) |
| 8525 | LD="${LD-ld} -melf64bmip" |
| 8526 | ;; |
| 8527 | esac |
| 8528 | else |
| 8529 | case `/usr/bin/file conftest.$ac_objext` in |
| 8530 | *32-bit*) |
| 8531 | LD="${LD-ld} -32" |
| 8532 | ;; |
| 8533 | *N32*) |
| 8534 | LD="${LD-ld} -n32" |
| 8535 | ;; |
| 8536 | *64-bit*) |
| 8537 | LD="${LD-ld} -64" |
| 8538 | ;; |
| 8539 | esac |
| 8540 | fi |
| 8541 | fi |
| 8542 | rm -rf conftest* |
| 8543 | ;; |
| 8544 | |
| 8545 | mips64*-*linux*) |
| 8546 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8547 | # options accordingly. |
| 8548 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8549 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8550 | (eval $ac_compile) 2>&5 |
| 8551 | ac_status=$? |
| 8552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8553 | test $ac_status = 0; }; then |
| 8554 | emul=elf |
| 8555 | case `/usr/bin/file conftest.$ac_objext` in |
| 8556 | *32-bit*) |
| 8557 | emul="${emul}32" |
| 8558 | ;; |
| 8559 | *64-bit*) |
| 8560 | emul="${emul}64" |
| 8561 | ;; |
| 8562 | esac |
| 8563 | case `/usr/bin/file conftest.$ac_objext` in |
| 8564 | *MSB*) |
| 8565 | emul="${emul}btsmip" |
| 8566 | ;; |
| 8567 | *LSB*) |
| 8568 | emul="${emul}ltsmip" |
| 8569 | ;; |
| 8570 | esac |
| 8571 | case `/usr/bin/file conftest.$ac_objext` in |
| 8572 | *N32*) |
| 8573 | emul="${emul}n32" |
| 8574 | ;; |
| 8575 | esac |
| 8576 | LD="${LD-ld} -m $emul" |
| 8577 | fi |
| 8578 | rm -rf conftest* |
| 8579 | ;; |
| 8580 | |
| 8581 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 8582 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 8583 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8584 | # options accordingly. Note that the listed cases only cover the |
| 8585 | # situations where additional linker options are needed (such as when |
| 8586 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 8587 | # vice versa); the common cases where no linker options are needed do |
| 8588 | # not appear in the list. |
| 8589 | echo 'int i;' > conftest.$ac_ext |
| 8590 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8591 | (eval $ac_compile) 2>&5 |
| 8592 | ac_status=$? |
| 8593 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8594 | test $ac_status = 0; }; then |
| 8595 | case `/usr/bin/file conftest.o` in |
| 8596 | *32-bit*) |
| 8597 | case $host in |
| 8598 | x86_64-*kfreebsd*-gnu) |
| 8599 | LD="${LD-ld} -m elf_i386_fbsd" |
| 8600 | ;; |
| 8601 | x86_64-*linux*) |
| 8602 | case `/usr/bin/file conftest.o` in |
| 8603 | *x86-64*) |
| 8604 | LD="${LD-ld} -m elf32_x86_64" |
| 8605 | ;; |
| 8606 | *) |
| 8607 | LD="${LD-ld} -m elf_i386" |
| 8608 | ;; |
| 8609 | esac |
| 8610 | ;; |
| 8611 | powerpc64le-*linux*) |
| 8612 | LD="${LD-ld} -m elf32lppclinux" |
| 8613 | ;; |
| 8614 | powerpc64-*linux*) |
| 8615 | LD="${LD-ld} -m elf32ppclinux" |
| 8616 | ;; |
| 8617 | s390x-*linux*) |
| 8618 | LD="${LD-ld} -m elf_s390" |
| 8619 | ;; |
| 8620 | sparc64-*linux*) |
| 8621 | LD="${LD-ld} -m elf32_sparc" |
| 8622 | ;; |
| 8623 | esac |
| 8624 | ;; |
| 8625 | *64-bit*) |
| 8626 | case $host in |
| 8627 | x86_64-*kfreebsd*-gnu) |
| 8628 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8629 | ;; |
| 8630 | x86_64-*linux*) |
| 8631 | LD="${LD-ld} -m elf_x86_64" |
| 8632 | ;; |
| 8633 | powerpcle-*linux*) |
| 8634 | LD="${LD-ld} -m elf64lppc" |
| 8635 | ;; |
| 8636 | powerpc-*linux*) |
| 8637 | LD="${LD-ld} -m elf64ppc" |
| 8638 | ;; |
| 8639 | s390*-*linux*|s390*-*tpf*) |
| 8640 | LD="${LD-ld} -m elf64_s390" |
| 8641 | ;; |
| 8642 | sparc*-*linux*) |
| 8643 | LD="${LD-ld} -m elf64_sparc" |
| 8644 | ;; |
| 8645 | esac |
| 8646 | ;; |
| 8647 | esac |
| 8648 | fi |
| 8649 | rm -rf conftest* |
| 8650 | ;; |
| 8651 | |
| 8652 | *-*-sco3.2v5*) |
| 8653 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8654 | SAVE_CFLAGS=$CFLAGS |
| 8655 | CFLAGS="$CFLAGS -belf" |
| 8656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8657 | printf %s "checking whether the C compiler needs -belf... " >&6; } |
| 8658 | if test ${lt_cv_cc_needs_belf+y} |
| 8659 | then : |
| 8660 | printf %s "(cached) " >&6 |
| 8661 | else $as_nop |
| 8662 | ac_ext=c |
| 8663 | ac_cpp='$CPP $CPPFLAGS' |
| 8664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8667 | |
| 8668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8669 | /* end confdefs.h. */ |
| 8670 | |
| 8671 | int |
| 8672 | main (void) |
| 8673 | { |
| 8674 | |
| 8675 | ; |
| 8676 | return 0; |
| 8677 | } |
| 8678 | _ACEOF |
| 8679 | if ac_fn_c_try_link "$LINENO" |
| 8680 | then : |
| 8681 | lt_cv_cc_needs_belf=yes |
| 8682 | else $as_nop |
| 8683 | lt_cv_cc_needs_belf=no |
| 8684 | fi |
| 8685 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8686 | conftest$ac_exeext conftest.$ac_ext |
| 8687 | ac_ext=c |
| 8688 | ac_cpp='$CPP $CPPFLAGS' |
| 8689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8692 | |
| 8693 | fi |
| 8694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8695 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } |
| 8696 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 8697 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8698 | CFLAGS=$SAVE_CFLAGS |
| 8699 | fi |
| 8700 | ;; |
| 8701 | *-*solaris*) |
| 8702 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8703 | # options accordingly. |
| 8704 | echo 'int i;' > conftest.$ac_ext |
| 8705 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8706 | (eval $ac_compile) 2>&5 |
| 8707 | ac_status=$? |
| 8708 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8709 | test $ac_status = 0; }; then |
| 8710 | case `/usr/bin/file conftest.o` in |
| 8711 | *64-bit*) |
| 8712 | case $lt_cv_prog_gnu_ld in |
| 8713 | yes*) |
| 8714 | case $host in |
| 8715 | i?86-*-solaris*|x86_64-*-solaris*) |
| 8716 | LD="${LD-ld} -m elf_x86_64" |
| 8717 | ;; |
| 8718 | sparc*-*-solaris*) |
| 8719 | LD="${LD-ld} -m elf64_sparc" |
| 8720 | ;; |
| 8721 | esac |
| 8722 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8723 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8724 | LD=${LD-ld}_sol2 |
| 8725 | fi |
| 8726 | ;; |
| 8727 | *) |
| 8728 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8729 | LD="${LD-ld} -64" |
| 8730 | fi |
| 8731 | ;; |
| 8732 | esac |
| 8733 | ;; |
| 8734 | esac |
| 8735 | fi |
| 8736 | rm -rf conftest* |
| 8737 | ;; |
| 8738 | esac |
| 8739 | |
| 8740 | need_locks=$enable_libtool_lock |
| 8741 | |
| 8742 | if test -n "$ac_tool_prefix"; then |
| 8743 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8744 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8746 | printf %s "checking for $ac_word... " >&6; } |
| 8747 | if test ${ac_cv_prog_MANIFEST_TOOL+y} |
| 8748 | then : |
| 8749 | printf %s "(cached) " >&6 |
| 8750 | else $as_nop |
| 8751 | if test -n "$MANIFEST_TOOL"; then |
| 8752 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8753 | else |
| 8754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8755 | for as_dir in $PATH |
| 8756 | do |
| 8757 | IFS=$as_save_IFS |
| 8758 | case $as_dir in #((( |
| 8759 | '') as_dir=./ ;; |
| 8760 | */) ;; |
| 8761 | *) as_dir=$as_dir/ ;; |
| 8762 | esac |
| 8763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8764 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8765 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8766 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8767 | break 2 |
| 8768 | fi |
| 8769 | done |
| 8770 | done |
| 8771 | IFS=$as_save_IFS |
| 8772 | |
| 8773 | fi |
| 8774 | fi |
| 8775 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8776 | if test -n "$MANIFEST_TOOL"; then |
| 8777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8778 | printf "%s\n" "$MANIFEST_TOOL" >&6; } |
| 8779 | else |
| 8780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8781 | printf "%s\n" "no" >&6; } |
| 8782 | fi |
| 8783 | |
| 8784 | |
| 8785 | fi |
| 8786 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8787 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8788 | # Extract the first word of "mt", so it can be a program name with args. |
| 8789 | set dummy mt; ac_word=$2 |
| 8790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8791 | printf %s "checking for $ac_word... " >&6; } |
| 8792 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} |
| 8793 | then : |
| 8794 | printf %s "(cached) " >&6 |
| 8795 | else $as_nop |
| 8796 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8797 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8798 | else |
| 8799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8800 | for as_dir in $PATH |
| 8801 | do |
| 8802 | IFS=$as_save_IFS |
| 8803 | case $as_dir in #((( |
| 8804 | '') as_dir=./ ;; |
| 8805 | */) ;; |
| 8806 | *) as_dir=$as_dir/ ;; |
| 8807 | esac |
| 8808 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8809 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8810 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8811 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8812 | break 2 |
| 8813 | fi |
| 8814 | done |
| 8815 | done |
| 8816 | IFS=$as_save_IFS |
| 8817 | |
| 8818 | fi |
| 8819 | fi |
| 8820 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8821 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8823 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8824 | else |
| 8825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8826 | printf "%s\n" "no" >&6; } |
| 8827 | fi |
| 8828 | |
| 8829 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8830 | MANIFEST_TOOL=":" |
| 8831 | else |
| 8832 | case $cross_compiling:$ac_tool_warned in |
| 8833 | yes:) |
| 8834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8835 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8836 | ac_tool_warned=yes ;; |
| 8837 | esac |
| 8838 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8839 | fi |
| 8840 | else |
| 8841 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8842 | fi |
| 8843 | |
| 8844 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8846 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8847 | if test ${lt_cv_path_mainfest_tool+y} |
| 8848 | then : |
| 8849 | printf %s "(cached) " >&6 |
| 8850 | else $as_nop |
| 8851 | lt_cv_path_mainfest_tool=no |
| 8852 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8853 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8854 | cat conftest.err >&5 |
| 8855 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8856 | lt_cv_path_mainfest_tool=yes |
| 8857 | fi |
| 8858 | rm -f conftest* |
| 8859 | fi |
| 8860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 8861 | printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } |
| 8862 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 8863 | MANIFEST_TOOL=: |
| 8864 | fi |
| 8865 | |
| 8866 | |
| 8867 | |
| 8868 | |
| 8869 | |
| 8870 | |
| 8871 | case $host_os in |
| 8872 | rhapsody* | darwin*) |
| 8873 | if test -n "$ac_tool_prefix"; then |
| 8874 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8875 | set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+y} |
| 8879 | then : |
| 8880 | printf %s "(cached) " >&6 |
| 8881 | else $as_nop |
| 8882 | if test -n "$DSYMUTIL"; then |
| 8883 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 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 | fi |
| 8906 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8907 | if test -n "$DSYMUTIL"; then |
| 8908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8909 | printf "%s\n" "$DSYMUTIL" >&6; } |
| 8910 | else |
| 8911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8912 | printf "%s\n" "no" >&6; } |
| 8913 | fi |
| 8914 | |
| 8915 | |
| 8916 | fi |
| 8917 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 8918 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 8919 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 8920 | set dummy dsymutil; ac_word=$2 |
| 8921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8922 | printf %s "checking for $ac_word... " >&6; } |
| 8923 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} |
| 8924 | then : |
| 8925 | printf %s "(cached) " >&6 |
| 8926 | else $as_nop |
| 8927 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8928 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 8929 | else |
| 8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8931 | for as_dir in $PATH |
| 8932 | do |
| 8933 | IFS=$as_save_IFS |
| 8934 | case $as_dir in #((( |
| 8935 | '') as_dir=./ ;; |
| 8936 | */) ;; |
| 8937 | *) as_dir=$as_dir/ ;; |
| 8938 | esac |
| 8939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8940 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8941 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 8942 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8943 | break 2 |
| 8944 | fi |
| 8945 | done |
| 8946 | done |
| 8947 | IFS=$as_save_IFS |
| 8948 | |
| 8949 | fi |
| 8950 | fi |
| 8951 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 8952 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 8954 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } |
| 8955 | else |
| 8956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8957 | printf "%s\n" "no" >&6; } |
| 8958 | fi |
| 8959 | |
| 8960 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 8961 | DSYMUTIL=":" |
| 8962 | else |
| 8963 | case $cross_compiling:$ac_tool_warned in |
| 8964 | yes:) |
| 8965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8966 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8967 | ac_tool_warned=yes ;; |
| 8968 | esac |
| 8969 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 8970 | fi |
| 8971 | else |
| 8972 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 8973 | fi |
| 8974 | |
| 8975 | if test -n "$ac_tool_prefix"; then |
| 8976 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 8977 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 8978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8979 | printf %s "checking for $ac_word... " >&6; } |
| 8980 | if test ${ac_cv_prog_NMEDIT+y} |
| 8981 | then : |
| 8982 | printf %s "(cached) " >&6 |
| 8983 | else $as_nop |
| 8984 | if test -n "$NMEDIT"; then |
| 8985 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 8986 | else |
| 8987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8988 | for as_dir in $PATH |
| 8989 | do |
| 8990 | IFS=$as_save_IFS |
| 8991 | case $as_dir in #((( |
| 8992 | '') as_dir=./ ;; |
| 8993 | */) ;; |
| 8994 | *) as_dir=$as_dir/ ;; |
| 8995 | esac |
| 8996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8997 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8998 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 8999 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9000 | break 2 |
| 9001 | fi |
| 9002 | done |
| 9003 | done |
| 9004 | IFS=$as_save_IFS |
| 9005 | |
| 9006 | fi |
| 9007 | fi |
| 9008 | NMEDIT=$ac_cv_prog_NMEDIT |
| 9009 | if test -n "$NMEDIT"; then |
| 9010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 9011 | printf "%s\n" "$NMEDIT" >&6; } |
| 9012 | else |
| 9013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9014 | printf "%s\n" "no" >&6; } |
| 9015 | fi |
| 9016 | |
| 9017 | |
| 9018 | fi |
| 9019 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 9020 | ac_ct_NMEDIT=$NMEDIT |
| 9021 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 9022 | set dummy nmedit; ac_word=$2 |
| 9023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9024 | printf %s "checking for $ac_word... " >&6; } |
| 9025 | if test ${ac_cv_prog_ac_ct_NMEDIT+y} |
| 9026 | then : |
| 9027 | printf %s "(cached) " >&6 |
| 9028 | else $as_nop |
| 9029 | if test -n "$ac_ct_NMEDIT"; then |
| 9030 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9031 | else |
| 9032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9033 | for as_dir in $PATH |
| 9034 | do |
| 9035 | IFS=$as_save_IFS |
| 9036 | case $as_dir in #((( |
| 9037 | '') as_dir=./ ;; |
| 9038 | */) ;; |
| 9039 | *) as_dir=$as_dir/ ;; |
| 9040 | esac |
| 9041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9042 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9043 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 9044 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9045 | break 2 |
| 9046 | fi |
| 9047 | done |
| 9048 | done |
| 9049 | IFS=$as_save_IFS |
| 9050 | |
| 9051 | fi |
| 9052 | fi |
| 9053 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9054 | if test -n "$ac_ct_NMEDIT"; then |
| 9055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 9056 | printf "%s\n" "$ac_ct_NMEDIT" >&6; } |
| 9057 | else |
| 9058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9059 | printf "%s\n" "no" >&6; } |
| 9060 | fi |
| 9061 | |
| 9062 | if test "x$ac_ct_NMEDIT" = x; then |
| 9063 | NMEDIT=":" |
| 9064 | else |
| 9065 | case $cross_compiling:$ac_tool_warned in |
| 9066 | yes:) |
| 9067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9068 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9069 | ac_tool_warned=yes ;; |
| 9070 | esac |
| 9071 | NMEDIT=$ac_ct_NMEDIT |
| 9072 | fi |
| 9073 | else |
| 9074 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 9075 | fi |
| 9076 | |
| 9077 | if test -n "$ac_tool_prefix"; then |
| 9078 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9079 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 9080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9081 | printf %s "checking for $ac_word... " >&6; } |
| 9082 | if test ${ac_cv_prog_LIPO+y} |
| 9083 | then : |
| 9084 | printf %s "(cached) " >&6 |
| 9085 | else $as_nop |
| 9086 | if test -n "$LIPO"; then |
| 9087 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9088 | else |
| 9089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9090 | for as_dir in $PATH |
| 9091 | do |
| 9092 | IFS=$as_save_IFS |
| 9093 | case $as_dir in #((( |
| 9094 | '') as_dir=./ ;; |
| 9095 | */) ;; |
| 9096 | *) as_dir=$as_dir/ ;; |
| 9097 | esac |
| 9098 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9099 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9100 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 9101 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9102 | break 2 |
| 9103 | fi |
| 9104 | done |
| 9105 | done |
| 9106 | IFS=$as_save_IFS |
| 9107 | |
| 9108 | fi |
| 9109 | fi |
| 9110 | LIPO=$ac_cv_prog_LIPO |
| 9111 | if test -n "$LIPO"; then |
| 9112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 9113 | printf "%s\n" "$LIPO" >&6; } |
| 9114 | else |
| 9115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9116 | printf "%s\n" "no" >&6; } |
| 9117 | fi |
| 9118 | |
| 9119 | |
| 9120 | fi |
| 9121 | if test -z "$ac_cv_prog_LIPO"; then |
| 9122 | ac_ct_LIPO=$LIPO |
| 9123 | # Extract the first word of "lipo", so it can be a program name with args. |
| 9124 | set dummy lipo; ac_word=$2 |
| 9125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9126 | printf %s "checking for $ac_word... " >&6; } |
| 9127 | if test ${ac_cv_prog_ac_ct_LIPO+y} |
| 9128 | then : |
| 9129 | printf %s "(cached) " >&6 |
| 9130 | else $as_nop |
| 9131 | if test -n "$ac_ct_LIPO"; then |
| 9132 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9133 | else |
| 9134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9135 | for as_dir in $PATH |
| 9136 | do |
| 9137 | IFS=$as_save_IFS |
| 9138 | case $as_dir in #((( |
| 9139 | '') as_dir=./ ;; |
| 9140 | */) ;; |
| 9141 | *) as_dir=$as_dir/ ;; |
| 9142 | esac |
| 9143 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9144 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9145 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 9146 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9147 | break 2 |
| 9148 | fi |
| 9149 | done |
| 9150 | done |
| 9151 | IFS=$as_save_IFS |
| 9152 | |
| 9153 | fi |
| 9154 | fi |
| 9155 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9156 | if test -n "$ac_ct_LIPO"; then |
| 9157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 9158 | printf "%s\n" "$ac_ct_LIPO" >&6; } |
| 9159 | else |
| 9160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9161 | printf "%s\n" "no" >&6; } |
| 9162 | fi |
| 9163 | |
| 9164 | if test "x$ac_ct_LIPO" = x; then |
| 9165 | LIPO=":" |
| 9166 | else |
| 9167 | case $cross_compiling:$ac_tool_warned in |
| 9168 | yes:) |
| 9169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9170 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9171 | ac_tool_warned=yes ;; |
| 9172 | esac |
| 9173 | LIPO=$ac_ct_LIPO |
| 9174 | fi |
| 9175 | else |
| 9176 | LIPO="$ac_cv_prog_LIPO" |
| 9177 | fi |
| 9178 | |
| 9179 | if test -n "$ac_tool_prefix"; then |
| 9180 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9181 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 9182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9183 | printf %s "checking for $ac_word... " >&6; } |
| 9184 | if test ${ac_cv_prog_OTOOL+y} |
| 9185 | then : |
| 9186 | printf %s "(cached) " >&6 |
| 9187 | else $as_nop |
| 9188 | if test -n "$OTOOL"; then |
| 9189 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9190 | else |
| 9191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9192 | for as_dir in $PATH |
| 9193 | do |
| 9194 | IFS=$as_save_IFS |
| 9195 | case $as_dir in #((( |
| 9196 | '') as_dir=./ ;; |
| 9197 | */) ;; |
| 9198 | *) as_dir=$as_dir/ ;; |
| 9199 | esac |
| 9200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9201 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9202 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 9203 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9204 | break 2 |
| 9205 | fi |
| 9206 | done |
| 9207 | done |
| 9208 | IFS=$as_save_IFS |
| 9209 | |
| 9210 | fi |
| 9211 | fi |
| 9212 | OTOOL=$ac_cv_prog_OTOOL |
| 9213 | if test -n "$OTOOL"; then |
| 9214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 9215 | printf "%s\n" "$OTOOL" >&6; } |
| 9216 | else |
| 9217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9218 | printf "%s\n" "no" >&6; } |
| 9219 | fi |
| 9220 | |
| 9221 | |
| 9222 | fi |
| 9223 | if test -z "$ac_cv_prog_OTOOL"; then |
| 9224 | ac_ct_OTOOL=$OTOOL |
| 9225 | # Extract the first word of "otool", so it can be a program name with args. |
| 9226 | set dummy otool; ac_word=$2 |
| 9227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9228 | printf %s "checking for $ac_word... " >&6; } |
| 9229 | if test ${ac_cv_prog_ac_ct_OTOOL+y} |
| 9230 | then : |
| 9231 | printf %s "(cached) " >&6 |
| 9232 | else $as_nop |
| 9233 | if test -n "$ac_ct_OTOOL"; then |
| 9234 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9235 | else |
| 9236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9237 | for as_dir in $PATH |
| 9238 | do |
| 9239 | IFS=$as_save_IFS |
| 9240 | case $as_dir in #((( |
| 9241 | '') as_dir=./ ;; |
| 9242 | */) ;; |
| 9243 | *) as_dir=$as_dir/ ;; |
| 9244 | esac |
| 9245 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9246 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9247 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 9248 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9249 | break 2 |
| 9250 | fi |
| 9251 | done |
| 9252 | done |
| 9253 | IFS=$as_save_IFS |
| 9254 | |
| 9255 | fi |
| 9256 | fi |
| 9257 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9258 | if test -n "$ac_ct_OTOOL"; then |
| 9259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 9260 | printf "%s\n" "$ac_ct_OTOOL" >&6; } |
| 9261 | else |
| 9262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9263 | printf "%s\n" "no" >&6; } |
| 9264 | fi |
| 9265 | |
| 9266 | if test "x$ac_ct_OTOOL" = x; then |
| 9267 | OTOOL=":" |
| 9268 | else |
| 9269 | case $cross_compiling:$ac_tool_warned in |
| 9270 | yes:) |
| 9271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9272 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9273 | ac_tool_warned=yes ;; |
| 9274 | esac |
| 9275 | OTOOL=$ac_ct_OTOOL |
| 9276 | fi |
| 9277 | else |
| 9278 | OTOOL="$ac_cv_prog_OTOOL" |
| 9279 | fi |
| 9280 | |
| 9281 | if test -n "$ac_tool_prefix"; then |
| 9282 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9283 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 9284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9285 | printf %s "checking for $ac_word... " >&6; } |
| 9286 | if test ${ac_cv_prog_OTOOL64+y} |
| 9287 | then : |
| 9288 | printf %s "(cached) " >&6 |
| 9289 | else $as_nop |
| 9290 | if test -n "$OTOOL64"; then |
| 9291 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9292 | else |
| 9293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9294 | for as_dir in $PATH |
| 9295 | do |
| 9296 | IFS=$as_save_IFS |
| 9297 | case $as_dir in #((( |
| 9298 | '') as_dir=./ ;; |
| 9299 | */) ;; |
| 9300 | *) as_dir=$as_dir/ ;; |
| 9301 | esac |
| 9302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9303 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9304 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 9305 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9306 | break 2 |
| 9307 | fi |
| 9308 | done |
| 9309 | done |
| 9310 | IFS=$as_save_IFS |
| 9311 | |
| 9312 | fi |
| 9313 | fi |
| 9314 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 9315 | if test -n "$OTOOL64"; then |
| 9316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 9317 | printf "%s\n" "$OTOOL64" >&6; } |
| 9318 | else |
| 9319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9320 | printf "%s\n" "no" >&6; } |
| 9321 | fi |
| 9322 | |
| 9323 | |
| 9324 | fi |
| 9325 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 9326 | ac_ct_OTOOL64=$OTOOL64 |
| 9327 | # Extract the first word of "otool64", so it can be a program name with args. |
| 9328 | set dummy otool64; ac_word=$2 |
| 9329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9330 | printf %s "checking for $ac_word... " >&6; } |
| 9331 | if test ${ac_cv_prog_ac_ct_OTOOL64+y} |
| 9332 | then : |
| 9333 | printf %s "(cached) " >&6 |
| 9334 | else $as_nop |
| 9335 | if test -n "$ac_ct_OTOOL64"; then |
| 9336 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9337 | else |
| 9338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9339 | for as_dir in $PATH |
| 9340 | do |
| 9341 | IFS=$as_save_IFS |
| 9342 | case $as_dir in #((( |
| 9343 | '') as_dir=./ ;; |
| 9344 | */) ;; |
| 9345 | *) as_dir=$as_dir/ ;; |
| 9346 | esac |
| 9347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9348 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9349 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9350 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9351 | break 2 |
| 9352 | fi |
| 9353 | done |
| 9354 | done |
| 9355 | IFS=$as_save_IFS |
| 9356 | |
| 9357 | fi |
| 9358 | fi |
| 9359 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9360 | if test -n "$ac_ct_OTOOL64"; then |
| 9361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9362 | printf "%s\n" "$ac_ct_OTOOL64" >&6; } |
| 9363 | else |
| 9364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9365 | printf "%s\n" "no" >&6; } |
| 9366 | fi |
| 9367 | |
| 9368 | if test "x$ac_ct_OTOOL64" = x; then |
| 9369 | OTOOL64=":" |
| 9370 | else |
| 9371 | case $cross_compiling:$ac_tool_warned in |
| 9372 | yes:) |
| 9373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9374 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9375 | ac_tool_warned=yes ;; |
| 9376 | esac |
| 9377 | OTOOL64=$ac_ct_OTOOL64 |
| 9378 | fi |
| 9379 | else |
| 9380 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 9381 | fi |
| 9382 | |
| 9383 | |
| 9384 | |
| 9385 | |
| 9386 | |
| 9387 | |
| 9388 | |
| 9389 | |
| 9390 | |
| 9391 | |
| 9392 | |
| 9393 | |
| 9394 | |
| 9395 | |
| 9396 | |
| 9397 | |
| 9398 | |
| 9399 | |
| 9400 | |
| 9401 | |
| 9402 | |
| 9403 | |
| 9404 | |
| 9405 | |
| 9406 | |
| 9407 | |
| 9408 | |
| 9409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9410 | printf %s "checking for -single_module linker flag... " >&6; } |
| 9411 | if test ${lt_cv_apple_cc_single_mod+y} |
| 9412 | then : |
| 9413 | printf %s "(cached) " >&6 |
| 9414 | else $as_nop |
| 9415 | lt_cv_apple_cc_single_mod=no |
| 9416 | if test -z "$LT_MULTI_MODULE"; then |
| 9417 | # By default we will add the -single_module flag. You can override |
| 9418 | # by either setting the environment variable LT_MULTI_MODULE |
| 9419 | # non-empty at configure time, or by adding -multi_module to the |
| 9420 | # link flags. |
| 9421 | rm -rf libconftest.dylib* |
| 9422 | echo "int foo(void){return 1;}" > conftest.c |
| 9423 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9424 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9425 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9426 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9427 | _lt_result=$? |
| 9428 | # If there is a non-empty error log, and "single_module" |
| 9429 | # appears in it, assume the flag caused a linker warning |
| 9430 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 9431 | cat conftest.err >&5 |
| 9432 | # Otherwise, if the output was created with a 0 exit code from |
| 9433 | # the compiler, it worked. |
| 9434 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 9435 | lt_cv_apple_cc_single_mod=yes |
| 9436 | else |
| 9437 | cat conftest.err >&5 |
| 9438 | fi |
| 9439 | rm -rf libconftest.dylib* |
| 9440 | rm -f conftest.* |
| 9441 | fi |
| 9442 | fi |
| 9443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9444 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } |
| 9445 | |
| 9446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9447 | printf %s "checking for -exported_symbols_list linker flag... " >&6; } |
| 9448 | if test ${lt_cv_ld_exported_symbols_list+y} |
| 9449 | then : |
| 9450 | printf %s "(cached) " >&6 |
| 9451 | else $as_nop |
| 9452 | lt_cv_ld_exported_symbols_list=no |
| 9453 | save_LDFLAGS=$LDFLAGS |
| 9454 | echo "_main" > conftest.sym |
| 9455 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9457 | /* end confdefs.h. */ |
| 9458 | |
| 9459 | int |
| 9460 | main (void) |
| 9461 | { |
| 9462 | |
| 9463 | ; |
| 9464 | return 0; |
| 9465 | } |
| 9466 | _ACEOF |
| 9467 | if ac_fn_c_try_link "$LINENO" |
| 9468 | then : |
| 9469 | lt_cv_ld_exported_symbols_list=yes |
| 9470 | else $as_nop |
| 9471 | lt_cv_ld_exported_symbols_list=no |
| 9472 | fi |
| 9473 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9474 | conftest$ac_exeext conftest.$ac_ext |
| 9475 | LDFLAGS=$save_LDFLAGS |
| 9476 | |
| 9477 | fi |
| 9478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9479 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9480 | |
| 9481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9482 | printf %s "checking for -force_load linker flag... " >&6; } |
| 9483 | if test ${lt_cv_ld_force_load+y} |
| 9484 | then : |
| 9485 | printf %s "(cached) " >&6 |
| 9486 | else $as_nop |
| 9487 | lt_cv_ld_force_load=no |
| 9488 | cat > conftest.c << _LT_EOF |
| 9489 | int forced_loaded() { return 2;} |
| 9490 | _LT_EOF |
| 9491 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9492 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9493 | echo "$AR cr libconftest.a conftest.o" >&5 |
| 9494 | $AR cr libconftest.a conftest.o 2>&5 |
| 9495 | echo "$RANLIB libconftest.a" >&5 |
| 9496 | $RANLIB libconftest.a 2>&5 |
| 9497 | cat > conftest.c << _LT_EOF |
| 9498 | int main() { return 0;} |
| 9499 | _LT_EOF |
| 9500 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9501 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9502 | _lt_result=$? |
| 9503 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 9504 | cat conftest.err >&5 |
| 9505 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 9506 | lt_cv_ld_force_load=yes |
| 9507 | else |
| 9508 | cat conftest.err >&5 |
| 9509 | fi |
| 9510 | rm -f conftest.err libconftest.a conftest conftest.c |
| 9511 | rm -rf conftest.dSYM |
| 9512 | |
| 9513 | fi |
| 9514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9515 | printf "%s\n" "$lt_cv_ld_force_load" >&6; } |
| 9516 | case $host_os in |
| 9517 | rhapsody* | darwin1.[012]) |
| 9518 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 9519 | darwin1.*) |
| 9520 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9521 | darwin*) # darwin 5.x on |
| 9522 | # if running on 10.5 or later, the deployment target defaults |
| 9523 | # to the OS version, if on x86, and 10.4, the deployment |
| 9524 | # target defaults to 10.4. Don't you love it? |
| 9525 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 9526 | 10.0,*86*-darwin8*|10.0,*-darwin[912]*) |
| 9527 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 9528 | 10.[012][,.]*) |
| 9529 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9530 | 10.*|11.*) |
| 9531 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 9532 | esac |
| 9533 | ;; |
| 9534 | esac |
| 9535 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 9536 | _lt_dar_single_mod='$single_module' |
| 9537 | fi |
| 9538 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 9539 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 9540 | else |
| 9541 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 9542 | fi |
| 9543 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 9544 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9545 | else |
| 9546 | _lt_dsymutil= |
| 9547 | fi |
| 9548 | ;; |
| 9549 | esac |
| 9550 | |
| 9551 | # func_munge_path_list VARIABLE PATH |
| 9552 | # ----------------------------------- |
| 9553 | # VARIABLE is name of variable containing _space_ separated list of |
| 9554 | # directories to be munged by the contents of PATH, which is string |
| 9555 | # having a format: |
| 9556 | # "DIR[:DIR]:" |
| 9557 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 9558 | # ":DIR[:DIR]" |
| 9559 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 9560 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 9561 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 9562 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 9563 | # "DIR[:DIR]" |
| 9564 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 9565 | func_munge_path_list () |
| 9566 | { |
| 9567 | case x$2 in |
| 9568 | x) |
| 9569 | ;; |
| 9570 | *:) |
| 9571 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 9572 | ;; |
| 9573 | x:*) |
| 9574 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 9575 | ;; |
| 9576 | *::*) |
| 9577 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 9578 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 9579 | ;; |
| 9580 | *) |
| 9581 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 9582 | ;; |
| 9583 | esac |
| 9584 | } |
| 9585 | |
| 9586 | ac_header= ac_cache= |
| 9587 | for ac_item in $ac_header_c_list |
| 9588 | do |
| 9589 | if test $ac_cache; then |
| 9590 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 9591 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 9592 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 9593 | fi |
| 9594 | ac_header= ac_cache= |
| 9595 | elif test $ac_header; then |
| 9596 | ac_cache=$ac_item |
| 9597 | else |
| 9598 | ac_header=$ac_item |
| 9599 | fi |
| 9600 | done |
| 9601 | |
| 9602 | |
| 9603 | |
| 9604 | |
| 9605 | |
| 9606 | |
| 9607 | |
| 9608 | |
| 9609 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 9610 | then : |
| 9611 | |
| 9612 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 9613 | |
| 9614 | fi |
| 9615 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9616 | " |
| 9617 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 9618 | then : |
| 9619 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 9620 | |
| 9621 | fi |
| 9622 | |
| 9623 | |
| 9624 | |
| 9625 | |
| 9626 | func_stripname_cnf () |
| 9627 | { |
| 9628 | case $2 in |
| 9629 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
| 9630 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
| 9631 | esac |
| 9632 | } # func_stripname_cnf |
| 9633 | |
| 9634 | |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | # Set options |
| 9639 | enable_dlopen=yes |
| 9640 | enable_win32_dll=yes |
| 9641 | |
| 9642 | case $host in |
| 9643 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| 9644 | if test -n "$ac_tool_prefix"; then |
| 9645 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 9646 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 9647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9648 | printf %s "checking for $ac_word... " >&6; } |
| 9649 | if test ${ac_cv_prog_AS+y} |
| 9650 | then : |
| 9651 | printf %s "(cached) " >&6 |
| 9652 | else $as_nop |
| 9653 | if test -n "$AS"; then |
| 9654 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 9655 | else |
| 9656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9657 | for as_dir in $PATH |
| 9658 | do |
| 9659 | IFS=$as_save_IFS |
| 9660 | case $as_dir in #((( |
| 9661 | '') as_dir=./ ;; |
| 9662 | */) ;; |
| 9663 | *) as_dir=$as_dir/ ;; |
| 9664 | esac |
| 9665 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9666 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9667 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 9668 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9669 | break 2 |
| 9670 | fi |
| 9671 | done |
| 9672 | done |
| 9673 | IFS=$as_save_IFS |
| 9674 | |
| 9675 | fi |
| 9676 | fi |
| 9677 | AS=$ac_cv_prog_AS |
| 9678 | if test -n "$AS"; then |
| 9679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 9680 | printf "%s\n" "$AS" >&6; } |
| 9681 | else |
| 9682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9683 | printf "%s\n" "no" >&6; } |
| 9684 | fi |
| 9685 | |
| 9686 | |
| 9687 | fi |
| 9688 | if test -z "$ac_cv_prog_AS"; then |
| 9689 | ac_ct_AS=$AS |
| 9690 | # Extract the first word of "as", so it can be a program name with args. |
| 9691 | set dummy as; ac_word=$2 |
| 9692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9693 | printf %s "checking for $ac_word... " >&6; } |
| 9694 | if test ${ac_cv_prog_ac_ct_AS+y} |
| 9695 | then : |
| 9696 | printf %s "(cached) " >&6 |
| 9697 | else $as_nop |
| 9698 | if test -n "$ac_ct_AS"; then |
| 9699 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 9700 | else |
| 9701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9702 | for as_dir in $PATH |
| 9703 | do |
| 9704 | IFS=$as_save_IFS |
| 9705 | case $as_dir in #((( |
| 9706 | '') as_dir=./ ;; |
| 9707 | */) ;; |
| 9708 | *) as_dir=$as_dir/ ;; |
| 9709 | esac |
| 9710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9711 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9712 | ac_cv_prog_ac_ct_AS="as" |
| 9713 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9714 | break 2 |
| 9715 | fi |
| 9716 | done |
| 9717 | done |
| 9718 | IFS=$as_save_IFS |
| 9719 | |
| 9720 | fi |
| 9721 | fi |
| 9722 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 9723 | if test -n "$ac_ct_AS"; then |
| 9724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 9725 | printf "%s\n" "$ac_ct_AS" >&6; } |
| 9726 | else |
| 9727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9728 | printf "%s\n" "no" >&6; } |
| 9729 | fi |
| 9730 | |
| 9731 | if test "x$ac_ct_AS" = x; then |
| 9732 | AS="false" |
| 9733 | else |
| 9734 | case $cross_compiling:$ac_tool_warned in |
| 9735 | yes:) |
| 9736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9737 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9738 | ac_tool_warned=yes ;; |
| 9739 | esac |
| 9740 | AS=$ac_ct_AS |
| 9741 | fi |
| 9742 | else |
| 9743 | AS="$ac_cv_prog_AS" |
| 9744 | fi |
| 9745 | |
| 9746 | if test -n "$ac_tool_prefix"; then |
| 9747 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 9748 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 9749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9750 | printf %s "checking for $ac_word... " >&6; } |
| 9751 | if test ${ac_cv_prog_DLLTOOL+y} |
| 9752 | then : |
| 9753 | printf %s "(cached) " >&6 |
| 9754 | else $as_nop |
| 9755 | if test -n "$DLLTOOL"; then |
| 9756 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 9757 | else |
| 9758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9759 | for as_dir in $PATH |
| 9760 | do |
| 9761 | IFS=$as_save_IFS |
| 9762 | case $as_dir in #((( |
| 9763 | '') as_dir=./ ;; |
| 9764 | */) ;; |
| 9765 | *) as_dir=$as_dir/ ;; |
| 9766 | esac |
| 9767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9768 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9769 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 9770 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9771 | break 2 |
| 9772 | fi |
| 9773 | done |
| 9774 | done |
| 9775 | IFS=$as_save_IFS |
| 9776 | |
| 9777 | fi |
| 9778 | fi |
| 9779 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 9780 | if test -n "$DLLTOOL"; then |
| 9781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 9782 | printf "%s\n" "$DLLTOOL" >&6; } |
| 9783 | else |
| 9784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9785 | printf "%s\n" "no" >&6; } |
| 9786 | fi |
| 9787 | |
| 9788 | |
| 9789 | fi |
| 9790 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 9791 | ac_ct_DLLTOOL=$DLLTOOL |
| 9792 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 9793 | set dummy dlltool; ac_word=$2 |
| 9794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9795 | printf %s "checking for $ac_word... " >&6; } |
| 9796 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 9797 | then : |
| 9798 | printf %s "(cached) " >&6 |
| 9799 | else $as_nop |
| 9800 | if test -n "$ac_ct_DLLTOOL"; then |
| 9801 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 9802 | else |
| 9803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9804 | for as_dir in $PATH |
| 9805 | do |
| 9806 | IFS=$as_save_IFS |
| 9807 | case $as_dir in #((( |
| 9808 | '') as_dir=./ ;; |
| 9809 | */) ;; |
| 9810 | *) as_dir=$as_dir/ ;; |
| 9811 | esac |
| 9812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9813 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9814 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 9815 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9816 | break 2 |
| 9817 | fi |
| 9818 | done |
| 9819 | done |
| 9820 | IFS=$as_save_IFS |
| 9821 | |
| 9822 | fi |
| 9823 | fi |
| 9824 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 9825 | if test -n "$ac_ct_DLLTOOL"; then |
| 9826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 9827 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 9828 | else |
| 9829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9830 | printf "%s\n" "no" >&6; } |
| 9831 | fi |
| 9832 | |
| 9833 | if test "x$ac_ct_DLLTOOL" = x; then |
| 9834 | DLLTOOL="false" |
| 9835 | else |
| 9836 | case $cross_compiling:$ac_tool_warned in |
| 9837 | yes:) |
| 9838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9839 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9840 | ac_tool_warned=yes ;; |
| 9841 | esac |
| 9842 | DLLTOOL=$ac_ct_DLLTOOL |
| 9843 | fi |
| 9844 | else |
| 9845 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 9846 | fi |
| 9847 | |
| 9848 | if test -n "$ac_tool_prefix"; then |
| 9849 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 9850 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 9851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9852 | printf %s "checking for $ac_word... " >&6; } |
| 9853 | if test ${ac_cv_prog_OBJDUMP+y} |
| 9854 | then : |
| 9855 | printf %s "(cached) " >&6 |
| 9856 | else $as_nop |
| 9857 | if test -n "$OBJDUMP"; then |
| 9858 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 9859 | else |
| 9860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9861 | for as_dir in $PATH |
| 9862 | do |
| 9863 | IFS=$as_save_IFS |
| 9864 | case $as_dir in #((( |
| 9865 | '') as_dir=./ ;; |
| 9866 | */) ;; |
| 9867 | *) as_dir=$as_dir/ ;; |
| 9868 | esac |
| 9869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9870 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9871 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 9872 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9873 | break 2 |
| 9874 | fi |
| 9875 | done |
| 9876 | done |
| 9877 | IFS=$as_save_IFS |
| 9878 | |
| 9879 | fi |
| 9880 | fi |
| 9881 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 9882 | if test -n "$OBJDUMP"; then |
| 9883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 9884 | printf "%s\n" "$OBJDUMP" >&6; } |
| 9885 | else |
| 9886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9887 | printf "%s\n" "no" >&6; } |
| 9888 | fi |
| 9889 | |
| 9890 | |
| 9891 | fi |
| 9892 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 9893 | ac_ct_OBJDUMP=$OBJDUMP |
| 9894 | # Extract the first word of "objdump", so it can be a program name with args. |
| 9895 | set dummy objdump; ac_word=$2 |
| 9896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9897 | printf %s "checking for $ac_word... " >&6; } |
| 9898 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 9899 | then : |
| 9900 | printf %s "(cached) " >&6 |
| 9901 | else $as_nop |
| 9902 | if test -n "$ac_ct_OBJDUMP"; then |
| 9903 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 9904 | else |
| 9905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9906 | for as_dir in $PATH |
| 9907 | do |
| 9908 | IFS=$as_save_IFS |
| 9909 | case $as_dir in #((( |
| 9910 | '') as_dir=./ ;; |
| 9911 | */) ;; |
| 9912 | *) as_dir=$as_dir/ ;; |
| 9913 | esac |
| 9914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9915 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9916 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 9917 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9918 | break 2 |
| 9919 | fi |
| 9920 | done |
| 9921 | done |
| 9922 | IFS=$as_save_IFS |
| 9923 | |
| 9924 | fi |
| 9925 | fi |
| 9926 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 9927 | if test -n "$ac_ct_OBJDUMP"; then |
| 9928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 9929 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 9930 | else |
| 9931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9932 | printf "%s\n" "no" >&6; } |
| 9933 | fi |
| 9934 | |
| 9935 | if test "x$ac_ct_OBJDUMP" = x; then |
| 9936 | OBJDUMP="false" |
| 9937 | else |
| 9938 | case $cross_compiling:$ac_tool_warned in |
| 9939 | yes:) |
| 9940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9941 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9942 | ac_tool_warned=yes ;; |
| 9943 | esac |
| 9944 | OBJDUMP=$ac_ct_OBJDUMP |
| 9945 | fi |
| 9946 | else |
| 9947 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 9948 | fi |
| 9949 | |
| 9950 | ;; |
| 9951 | esac |
| 9952 | |
| 9953 | test -z "$AS" && AS=as |
| 9954 | |
| 9955 | |
| 9956 | |
| 9957 | |
| 9958 | |
| 9959 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 9960 | |
| 9961 | |
| 9962 | |
| 9963 | |
| 9964 | |
| 9965 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 9966 | |
| 9967 | |
| 9968 | |
| 9969 | |
| 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | # Check whether --enable-shared was given. |
| 9976 | if test ${enable_shared+y} |
| 9977 | then : |
| 9978 | enableval=$enable_shared; p=${PACKAGE-default} |
| 9979 | case $enableval in |
| 9980 | yes) enable_shared=yes ;; |
| 9981 | no) enable_shared=no ;; |
| 9982 | *) |
| 9983 | enable_shared=no |
| 9984 | # Look at the argument we got. We use all the common list separators. |
| 9985 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9986 | for pkg in $enableval; do |
| 9987 | IFS=$lt_save_ifs |
| 9988 | if test "X$pkg" = "X$p"; then |
| 9989 | enable_shared=yes |
| 9990 | fi |
| 9991 | done |
| 9992 | IFS=$lt_save_ifs |
| 9993 | ;; |
| 9994 | esac |
| 9995 | else $as_nop |
| 9996 | enable_shared=yes |
| 9997 | fi |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | |
| 10009 | # Check whether --with-pic was given. |
| 10010 | if test ${with_pic+y} |
| 10011 | then : |
| 10012 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 10013 | case $withval in |
| 10014 | yes|no) pic_mode=$withval ;; |
| 10015 | *) |
| 10016 | pic_mode=default |
| 10017 | # Look at the argument we got. We use all the common list separators. |
| 10018 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10019 | for lt_pkg in $withval; do |
| 10020 | IFS=$lt_save_ifs |
| 10021 | if test "X$lt_pkg" = "X$lt_p"; then |
| 10022 | pic_mode=yes |
| 10023 | fi |
| 10024 | done |
| 10025 | IFS=$lt_save_ifs |
| 10026 | ;; |
| 10027 | esac |
| 10028 | else $as_nop |
| 10029 | pic_mode=default |
| 10030 | fi |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | # Check whether --enable-fast-install was given. |
| 10040 | if test ${enable_fast_install+y} |
| 10041 | then : |
| 10042 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 10043 | case $enableval in |
| 10044 | yes) enable_fast_install=yes ;; |
| 10045 | no) enable_fast_install=no ;; |
| 10046 | *) |
| 10047 | enable_fast_install=no |
| 10048 | # Look at the argument we got. We use all the common list separators. |
| 10049 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10050 | for pkg in $enableval; do |
| 10051 | IFS=$lt_save_ifs |
| 10052 | if test "X$pkg" = "X$p"; then |
| 10053 | enable_fast_install=yes |
| 10054 | fi |
| 10055 | done |
| 10056 | IFS=$lt_save_ifs |
| 10057 | ;; |
| 10058 | esac |
| 10059 | else $as_nop |
| 10060 | enable_fast_install=yes |
| 10061 | fi |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | shared_archive_member_spec= |
| 10071 | case $host,$enable_shared in |
| 10072 | power*-*-aix[5-9]*,yes) |
| 10073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 10074 | printf %s "checking which variant of shared library versioning to provide... " >&6; } |
| 10075 | |
| 10076 | # Check whether --with-aix-soname was given. |
| 10077 | if test ${with_aix_soname+y} |
| 10078 | then : |
| 10079 | withval=$with_aix_soname; case $withval in |
| 10080 | aix|svr4|both) |
| 10081 | ;; |
| 10082 | *) |
| 10083 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 10084 | ;; |
| 10085 | esac |
| 10086 | lt_cv_with_aix_soname=$with_aix_soname |
| 10087 | else $as_nop |
| 10088 | if test ${lt_cv_with_aix_soname+y} |
| 10089 | then : |
| 10090 | printf %s "(cached) " >&6 |
| 10091 | else $as_nop |
| 10092 | lt_cv_with_aix_soname=aix |
| 10093 | fi |
| 10094 | |
| 10095 | with_aix_soname=$lt_cv_with_aix_soname |
| 10096 | fi |
| 10097 | |
| 10098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 10099 | printf "%s\n" "$with_aix_soname" >&6; } |
| 10100 | if test aix != "$with_aix_soname"; then |
| 10101 | # For the AIX way of multilib, we name the shared archive member |
| 10102 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 10103 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 10104 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 10105 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 10106 | if test 64 = "${OBJECT_MODE-32}"; then |
| 10107 | shared_archive_member_spec=shr_64 |
| 10108 | else |
| 10109 | shared_archive_member_spec=shr |
| 10110 | fi |
| 10111 | fi |
| 10112 | ;; |
| 10113 | *) |
| 10114 | with_aix_soname=aix |
| 10115 | ;; |
| 10116 | esac |
| 10117 | |
| 10118 | |
| 10119 | |
| 10120 | |
| 10121 | |
| 10122 | |
| 10123 | |
| 10124 | |
| 10125 | |
| 10126 | |
| 10127 | # This can be used to rebuild libtool when needed |
| 10128 | LIBTOOL_DEPS=$ltmain |
| 10129 | |
| 10130 | # Always use our own libtool. |
| 10131 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | |
| 10162 | test -z "$LN_S" && LN_S="ln -s" |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | |
| 10177 | if test -n "${ZSH_VERSION+set}"; then |
| 10178 | setopt NO_GLOB_SUBST |
| 10179 | fi |
| 10180 | |
| 10181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 10182 | printf %s "checking for objdir... " >&6; } |
| 10183 | if test ${lt_cv_objdir+y} |
| 10184 | then : |
| 10185 | printf %s "(cached) " >&6 |
| 10186 | else $as_nop |
| 10187 | rm -f .libs 2>/dev/null |
| 10188 | mkdir .libs 2>/dev/null |
| 10189 | if test -d .libs; then |
| 10190 | lt_cv_objdir=.libs |
| 10191 | else |
| 10192 | # MS-DOS does not allow filenames that begin with a dot. |
| 10193 | lt_cv_objdir=_libs |
| 10194 | fi |
| 10195 | rmdir .libs 2>/dev/null |
| 10196 | fi |
| 10197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 10198 | printf "%s\n" "$lt_cv_objdir" >&6; } |
| 10199 | objdir=$lt_cv_objdir |
| 10200 | |
| 10201 | |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h |
| 10206 | |
| 10207 | |
| 10208 | |
| 10209 | |
| 10210 | case $host_os in |
| 10211 | aix3*) |
| 10212 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10213 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10214 | # vanish in a puff of smoke. |
| 10215 | if test set != "${COLLECT_NAMES+set}"; then |
| 10216 | COLLECT_NAMES= |
| 10217 | export COLLECT_NAMES |
| 10218 | fi |
| 10219 | ;; |
| 10220 | esac |
| 10221 | |
| 10222 | # Global variables: |
| 10223 | ofile=libtool |
| 10224 | can_build_shared=yes |
| 10225 | |
| 10226 | # All known linkers require a '.a' archive for static linking (except MSVC, |
| 10227 | # which needs '.lib'). |
| 10228 | libext=a |
| 10229 | |
| 10230 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10231 | |
| 10232 | old_CC=$CC |
| 10233 | old_CFLAGS=$CFLAGS |
| 10234 | |
| 10235 | # Set sane defaults for various variables |
| 10236 | test -z "$CC" && CC=cc |
| 10237 | test -z "$LTCC" && LTCC=$CC |
| 10238 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 10239 | test -z "$LD" && LD=ld |
| 10240 | test -z "$ac_objext" && ac_objext=o |
| 10241 | |
| 10242 | func_cc_basename $compiler |
| 10243 | cc_basename=$func_cc_basename_result |
| 10244 | |
| 10245 | |
| 10246 | # Only perform the check for file, if the check method requires it |
| 10247 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 10248 | case $deplibs_check_method in |
| 10249 | file_magic*) |
| 10250 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 10251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 10252 | printf %s "checking for ${ac_tool_prefix}file... " >&6; } |
| 10253 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 10254 | then : |
| 10255 | printf %s "(cached) " >&6 |
| 10256 | else $as_nop |
| 10257 | case $MAGIC_CMD in |
| 10258 | [\\/*] | ?:[\\/]*) |
| 10259 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10260 | ;; |
| 10261 | *) |
| 10262 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10263 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10264 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10265 | for ac_dir in $ac_dummy; do |
| 10266 | IFS=$lt_save_ifs |
| 10267 | test -z "$ac_dir" && ac_dir=. |
| 10268 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 10269 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 10270 | if test -n "$file_magic_test_file"; then |
| 10271 | case $deplibs_check_method in |
| 10272 | "file_magic "*) |
| 10273 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10274 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10275 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10276 | $EGREP "$file_magic_regex" > /dev/null; then |
| 10277 | : |
| 10278 | else |
| 10279 | cat <<_LT_EOF 1>&2 |
| 10280 | |
| 10281 | *** Warning: the command libtool uses to detect shared libraries, |
| 10282 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10283 | *** The result is that libtool may fail to recognize shared libraries |
| 10284 | *** as such. This will affect the creation of libtool libraries that |
| 10285 | *** depend on shared libraries, but programs linked with such libtool |
| 10286 | *** libraries will work regardless of this problem. Nevertheless, you |
| 10287 | *** may want to report the problem to your system manager and/or to |
| 10288 | *** [email protected] |
| 10289 | |
| 10290 | _LT_EOF |
| 10291 | fi ;; |
| 10292 | esac |
| 10293 | fi |
| 10294 | break |
| 10295 | fi |
| 10296 | done |
| 10297 | IFS=$lt_save_ifs |
| 10298 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10299 | ;; |
| 10300 | esac |
| 10301 | fi |
| 10302 | |
| 10303 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10304 | if test -n "$MAGIC_CMD"; then |
| 10305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10306 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 10307 | else |
| 10308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10309 | printf "%s\n" "no" >&6; } |
| 10310 | fi |
| 10311 | |
| 10312 | |
| 10313 | |
| 10314 | |
| 10315 | |
| 10316 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 10317 | if test -n "$ac_tool_prefix"; then |
| 10318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 10319 | printf %s "checking for file... " >&6; } |
| 10320 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 10321 | then : |
| 10322 | printf %s "(cached) " >&6 |
| 10323 | else $as_nop |
| 10324 | case $MAGIC_CMD in |
| 10325 | [\\/*] | ?:[\\/]*) |
| 10326 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10327 | ;; |
| 10328 | *) |
| 10329 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10330 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10331 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10332 | for ac_dir in $ac_dummy; do |
| 10333 | IFS=$lt_save_ifs |
| 10334 | test -z "$ac_dir" && ac_dir=. |
| 10335 | if test -f "$ac_dir/file"; then |
| 10336 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 10337 | if test -n "$file_magic_test_file"; then |
| 10338 | case $deplibs_check_method in |
| 10339 | "file_magic "*) |
| 10340 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10341 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10342 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10343 | $EGREP "$file_magic_regex" > /dev/null; then |
| 10344 | : |
| 10345 | else |
| 10346 | cat <<_LT_EOF 1>&2 |
| 10347 | |
| 10348 | *** Warning: the command libtool uses to detect shared libraries, |
| 10349 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10350 | *** The result is that libtool may fail to recognize shared libraries |
| 10351 | *** as such. This will affect the creation of libtool libraries that |
| 10352 | *** depend on shared libraries, but programs linked with such libtool |
| 10353 | *** libraries will work regardless of this problem. Nevertheless, you |
| 10354 | *** may want to report the problem to your system manager and/or to |
| 10355 | *** [email protected] |
| 10356 | |
| 10357 | _LT_EOF |
| 10358 | fi ;; |
| 10359 | esac |
| 10360 | fi |
| 10361 | break |
| 10362 | fi |
| 10363 | done |
| 10364 | IFS=$lt_save_ifs |
| 10365 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10366 | ;; |
| 10367 | esac |
| 10368 | fi |
| 10369 | |
| 10370 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10371 | if test -n "$MAGIC_CMD"; then |
| 10372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10373 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 10374 | else |
| 10375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10376 | printf "%s\n" "no" >&6; } |
| 10377 | fi |
| 10378 | |
| 10379 | |
| 10380 | else |
| 10381 | MAGIC_CMD=: |
| 10382 | fi |
| 10383 | fi |
| 10384 | |
| 10385 | fi |
| 10386 | ;; |
| 10387 | esac |
| 10388 | |
| 10389 | # Use C for the default configuration in the libtool script |
| 10390 | |
| 10391 | lt_save_CC=$CC |
| 10392 | ac_ext=c |
| 10393 | ac_cpp='$CPP $CPPFLAGS' |
| 10394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10397 | |
| 10398 | |
| 10399 | # Source file extension for C test sources. |
| 10400 | ac_ext=c |
| 10401 | |
| 10402 | # Object file extension for compiled C test sources. |
| 10403 | objext=o |
| 10404 | objext=$objext |
| 10405 | |
| 10406 | # Code to be used in simple compile tests |
| 10407 | lt_simple_compile_test_code="int some_variable = 0;" |
| 10408 | |
| 10409 | # Code to be used in simple link tests |
| 10410 | lt_simple_link_test_code='int main(){return(0);}' |
| 10411 | |
| 10412 | |
| 10413 | |
| 10414 | |
| 10415 | |
| 10416 | |
| 10417 | |
| 10418 | # If no C compiler was specified, use CC. |
| 10419 | LTCC=${LTCC-"$CC"} |
| 10420 | |
| 10421 | # If no C compiler flags were specified, use CFLAGS. |
| 10422 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10423 | |
| 10424 | # Allow CC to be a program name with arguments. |
| 10425 | compiler=$CC |
| 10426 | |
| 10427 | # Save the default compiler, since it gets overwritten when the other |
| 10428 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 10429 | compiler_DEFAULT=$CC |
| 10430 | |
| 10431 | # save warnings/boilerplate of simple test code |
| 10432 | ac_outfile=conftest.$ac_objext |
| 10433 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10434 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10435 | _lt_compiler_boilerplate=`cat conftest.err` |
| 10436 | $RM conftest* |
| 10437 | |
| 10438 | ac_outfile=conftest.$ac_objext |
| 10439 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10440 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10441 | _lt_linker_boilerplate=`cat conftest.err` |
| 10442 | $RM -r conftest* |
| 10443 | |
| 10444 | |
| 10445 | ## CAVEAT EMPTOR: |
| 10446 | ## There is no encapsulation within the following macros, do not change |
| 10447 | ## the running order or otherwise move them around unless you know exactly |
| 10448 | ## what you are doing... |
| 10449 | if test -n "$compiler"; then |
| 10450 | |
| 10451 | lt_prog_compiler_no_builtin_flag= |
| 10452 | |
| 10453 | if test yes = "$GCC"; then |
| 10454 | case $cc_basename in |
| 10455 | nvcc*) |
| 10456 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 10457 | *) |
| 10458 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 10459 | esac |
| 10460 | |
| 10461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 10462 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 10463 | if test ${lt_cv_prog_compiler_rtti_exceptions+y} |
| 10464 | then : |
| 10465 | printf %s "(cached) " >&6 |
| 10466 | else $as_nop |
| 10467 | lt_cv_prog_compiler_rtti_exceptions=no |
| 10468 | ac_outfile=conftest.$ac_objext |
| 10469 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10470 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 10471 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10472 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10473 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10474 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10475 | # The option is referenced via a variable to avoid confusing sed. |
| 10476 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10477 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10478 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10479 | -e 's:$: $lt_compiler_flag:'` |
| 10480 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10481 | (eval "$lt_compile" 2>conftest.err) |
| 10482 | ac_status=$? |
| 10483 | cat conftest.err >&5 |
| 10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10485 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10486 | # The compiler can only warn and ignore the option if not recognized |
| 10487 | # So say no if there are warnings other than the usual output. |
| 10488 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10489 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10490 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10491 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 10492 | fi |
| 10493 | fi |
| 10494 | $RM conftest* |
| 10495 | |
| 10496 | fi |
| 10497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 10498 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 10499 | |
| 10500 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 10501 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 10502 | else |
| 10503 | : |
| 10504 | fi |
| 10505 | |
| 10506 | fi |
| 10507 | |
| 10508 | |
| 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | lt_prog_compiler_wl= |
| 10514 | lt_prog_compiler_pic= |
| 10515 | lt_prog_compiler_static= |
| 10516 | |
| 10517 | |
| 10518 | if test yes = "$GCC"; then |
| 10519 | lt_prog_compiler_wl='-Wl,' |
| 10520 | lt_prog_compiler_static='-static' |
| 10521 | |
| 10522 | case $host_os in |
| 10523 | aix*) |
| 10524 | # All AIX code is PIC. |
| 10525 | if test ia64 = "$host_cpu"; then |
| 10526 | # AIX 5 now supports IA64 processor |
| 10527 | lt_prog_compiler_static='-Bstatic' |
| 10528 | fi |
| 10529 | lt_prog_compiler_pic='-fPIC' |
| 10530 | ;; |
| 10531 | |
| 10532 | amigaos*) |
| 10533 | case $host_cpu in |
| 10534 | powerpc) |
| 10535 | # see comment about AmigaOS4 .so support |
| 10536 | lt_prog_compiler_pic='-fPIC' |
| 10537 | ;; |
| 10538 | m68k) |
| 10539 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10540 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 10541 | # like '-m68040'. |
| 10542 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 10543 | ;; |
| 10544 | esac |
| 10545 | ;; |
| 10546 | |
| 10547 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10548 | # PIC is the default for these OSes. |
| 10549 | ;; |
| 10550 | |
| 10551 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10552 | # This hack is so that the source file can tell whether it is being |
| 10553 | # built for inclusion in a dll (and should export symbols for example). |
| 10554 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10555 | # (--disable-auto-import) libraries |
| 10556 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10557 | case $host_os in |
| 10558 | os2*) |
| 10559 | lt_prog_compiler_static='$wl-static' |
| 10560 | ;; |
| 10561 | esac |
| 10562 | ;; |
| 10563 | |
| 10564 | darwin* | rhapsody*) |
| 10565 | # PIC is the default on this platform |
| 10566 | # Common symbols not allowed in MH_DYLIB files |
| 10567 | lt_prog_compiler_pic='-fno-common' |
| 10568 | ;; |
| 10569 | |
| 10570 | haiku*) |
| 10571 | # PIC is the default for Haiku. |
| 10572 | # The "-static" flag exists, but is broken. |
| 10573 | lt_prog_compiler_static= |
| 10574 | ;; |
| 10575 | |
| 10576 | hpux*) |
| 10577 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 10578 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 10579 | # sets the default TLS model and affects inlining. |
| 10580 | case $host_cpu in |
| 10581 | hppa*64*) |
| 10582 | # +Z the default |
| 10583 | ;; |
| 10584 | *) |
| 10585 | lt_prog_compiler_pic='-fPIC' |
| 10586 | ;; |
| 10587 | esac |
| 10588 | ;; |
| 10589 | |
| 10590 | interix[3-9]*) |
| 10591 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10592 | # Instead, we relocate shared libraries at runtime. |
| 10593 | ;; |
| 10594 | |
| 10595 | msdosdjgpp*) |
| 10596 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10597 | # on systems that don't support them. |
| 10598 | lt_prog_compiler_can_build_shared=no |
| 10599 | enable_shared=no |
| 10600 | ;; |
| 10601 | |
| 10602 | *nto* | *qnx*) |
| 10603 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10604 | # it will coredump. |
| 10605 | lt_prog_compiler_pic='-fPIC -shared' |
| 10606 | ;; |
| 10607 | |
| 10608 | sysv4*MP*) |
| 10609 | if test -d /usr/nec; then |
| 10610 | lt_prog_compiler_pic=-Kconform_pic |
| 10611 | fi |
| 10612 | ;; |
| 10613 | |
| 10614 | *) |
| 10615 | lt_prog_compiler_pic='-fPIC' |
| 10616 | ;; |
| 10617 | esac |
| 10618 | |
| 10619 | case $cc_basename in |
| 10620 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10621 | lt_prog_compiler_wl='-Xlinker ' |
| 10622 | if test -n "$lt_prog_compiler_pic"; then |
| 10623 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 10624 | fi |
| 10625 | ;; |
| 10626 | esac |
| 10627 | else |
| 10628 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 10629 | case $host_os in |
| 10630 | aix*) |
| 10631 | lt_prog_compiler_wl='-Wl,' |
| 10632 | if test ia64 = "$host_cpu"; then |
| 10633 | # AIX 5 now supports IA64 processor |
| 10634 | lt_prog_compiler_static='-Bstatic' |
| 10635 | else |
| 10636 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 10637 | fi |
| 10638 | ;; |
| 10639 | |
| 10640 | darwin* | rhapsody*) |
| 10641 | # PIC is the default on this platform |
| 10642 | # Common symbols not allowed in MH_DYLIB files |
| 10643 | lt_prog_compiler_pic='-fno-common' |
| 10644 | case $cc_basename in |
| 10645 | nagfor*) |
| 10646 | # NAG Fortran compiler |
| 10647 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10648 | lt_prog_compiler_pic='-PIC' |
| 10649 | lt_prog_compiler_static='-Bstatic' |
| 10650 | ;; |
| 10651 | esac |
| 10652 | ;; |
| 10653 | |
| 10654 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10655 | # This hack is so that the source file can tell whether it is being |
| 10656 | # built for inclusion in a dll (and should export symbols for example). |
| 10657 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10658 | case $host_os in |
| 10659 | os2*) |
| 10660 | lt_prog_compiler_static='$wl-static' |
| 10661 | ;; |
| 10662 | esac |
| 10663 | ;; |
| 10664 | |
| 10665 | hpux9* | hpux10* | hpux11*) |
| 10666 | lt_prog_compiler_wl='-Wl,' |
| 10667 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10668 | # not for PA HP-UX. |
| 10669 | case $host_cpu in |
| 10670 | hppa*64*|ia64*) |
| 10671 | # +Z the default |
| 10672 | ;; |
| 10673 | *) |
| 10674 | lt_prog_compiler_pic='+Z' |
| 10675 | ;; |
| 10676 | esac |
| 10677 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10678 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 10679 | ;; |
| 10680 | |
| 10681 | irix5* | irix6* | nonstopux*) |
| 10682 | lt_prog_compiler_wl='-Wl,' |
| 10683 | # PIC (with -KPIC) is the default. |
| 10684 | lt_prog_compiler_static='-non_shared' |
| 10685 | ;; |
| 10686 | |
| 10687 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 10688 | case $cc_basename in |
| 10689 | # old Intel for x86_64, which still supported -KPIC. |
| 10690 | ecc*) |
| 10691 | lt_prog_compiler_wl='-Wl,' |
| 10692 | lt_prog_compiler_pic='-KPIC' |
| 10693 | lt_prog_compiler_static='-static' |
| 10694 | ;; |
| 10695 | # flang / f18. f95 an alias for gfortran or flang on Debian |
| 10696 | flang* | f18* | f95*) |
| 10697 | lt_prog_compiler_wl='-Wl,' |
| 10698 | lt_prog_compiler_pic='-fPIC' |
| 10699 | lt_prog_compiler_static='-static' |
| 10700 | ;; |
| 10701 | # icc used to be incompatible with GCC. |
| 10702 | # ICC 10 doesn't accept -KPIC any more. |
| 10703 | icc* | ifort*) |
| 10704 | lt_prog_compiler_wl='-Wl,' |
| 10705 | lt_prog_compiler_pic='-fPIC' |
| 10706 | lt_prog_compiler_static='-static' |
| 10707 | ;; |
| 10708 | # Lahey Fortran 8.1. |
| 10709 | lf95*) |
| 10710 | lt_prog_compiler_wl='-Wl,' |
| 10711 | lt_prog_compiler_pic='--shared' |
| 10712 | lt_prog_compiler_static='--static' |
| 10713 | ;; |
| 10714 | nagfor*) |
| 10715 | # NAG Fortran compiler |
| 10716 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10717 | lt_prog_compiler_pic='-PIC' |
| 10718 | lt_prog_compiler_static='-Bstatic' |
| 10719 | ;; |
| 10720 | tcc*) |
| 10721 | # Fabrice Bellard et al's Tiny C Compiler |
| 10722 | lt_prog_compiler_wl='-Wl,' |
| 10723 | lt_prog_compiler_pic='-fPIC' |
| 10724 | lt_prog_compiler_static='-static' |
| 10725 | ;; |
| 10726 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10727 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 10728 | # which looks to be a dead project) |
| 10729 | lt_prog_compiler_wl='-Wl,' |
| 10730 | lt_prog_compiler_pic='-fpic' |
| 10731 | lt_prog_compiler_static='-Bstatic' |
| 10732 | ;; |
| 10733 | ccc*) |
| 10734 | lt_prog_compiler_wl='-Wl,' |
| 10735 | # All Alpha code is PIC. |
| 10736 | lt_prog_compiler_static='-non_shared' |
| 10737 | ;; |
| 10738 | xl* | bgxl* | bgf* | mpixl*) |
| 10739 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 10740 | lt_prog_compiler_wl='-Wl,' |
| 10741 | lt_prog_compiler_pic='-qpic' |
| 10742 | lt_prog_compiler_static='-qstaticlink' |
| 10743 | ;; |
| 10744 | *) |
| 10745 | case `$CC -V 2>&1 | sed 5q` in |
| 10746 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 10747 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10748 | lt_prog_compiler_pic='-KPIC' |
| 10749 | lt_prog_compiler_static='-Bstatic' |
| 10750 | lt_prog_compiler_wl='' |
| 10751 | ;; |
| 10752 | *Sun\ F* | *Sun*Fortran*) |
| 10753 | lt_prog_compiler_pic='-KPIC' |
| 10754 | lt_prog_compiler_static='-Bstatic' |
| 10755 | lt_prog_compiler_wl='-Qoption ld ' |
| 10756 | ;; |
| 10757 | *Sun\ C*) |
| 10758 | # Sun C 5.9 |
| 10759 | lt_prog_compiler_pic='-KPIC' |
| 10760 | lt_prog_compiler_static='-Bstatic' |
| 10761 | lt_prog_compiler_wl='-Wl,' |
| 10762 | ;; |
| 10763 | *Intel*\ [CF]*Compiler*) |
| 10764 | lt_prog_compiler_wl='-Wl,' |
| 10765 | lt_prog_compiler_pic='-fPIC' |
| 10766 | lt_prog_compiler_static='-static' |
| 10767 | ;; |
| 10768 | *Portland\ Group*) |
| 10769 | lt_prog_compiler_wl='-Wl,' |
| 10770 | lt_prog_compiler_pic='-fpic' |
| 10771 | lt_prog_compiler_static='-Bstatic' |
| 10772 | ;; |
| 10773 | esac |
| 10774 | ;; |
| 10775 | esac |
| 10776 | ;; |
| 10777 | |
| 10778 | newsos6) |
| 10779 | lt_prog_compiler_pic='-KPIC' |
| 10780 | lt_prog_compiler_static='-Bstatic' |
| 10781 | ;; |
| 10782 | |
| 10783 | *nto* | *qnx*) |
| 10784 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10785 | # it will coredump. |
| 10786 | lt_prog_compiler_pic='-fPIC -shared' |
| 10787 | ;; |
| 10788 | |
| 10789 | osf3* | osf4* | osf5*) |
| 10790 | lt_prog_compiler_wl='-Wl,' |
| 10791 | # All OSF/1 code is PIC. |
| 10792 | lt_prog_compiler_static='-non_shared' |
| 10793 | ;; |
| 10794 | |
| 10795 | rdos*) |
| 10796 | lt_prog_compiler_static='-non_shared' |
| 10797 | ;; |
| 10798 | |
| 10799 | solaris*) |
| 10800 | lt_prog_compiler_pic='-KPIC' |
| 10801 | lt_prog_compiler_static='-Bstatic' |
| 10802 | case $cc_basename in |
| 10803 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 10804 | lt_prog_compiler_wl='-Qoption ld ';; |
| 10805 | *) |
| 10806 | lt_prog_compiler_wl='-Wl,';; |
| 10807 | esac |
| 10808 | ;; |
| 10809 | |
| 10810 | sunos4*) |
| 10811 | lt_prog_compiler_wl='-Qoption ld ' |
| 10812 | lt_prog_compiler_pic='-PIC' |
| 10813 | lt_prog_compiler_static='-Bstatic' |
| 10814 | ;; |
| 10815 | |
| 10816 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 10817 | lt_prog_compiler_wl='-Wl,' |
| 10818 | lt_prog_compiler_pic='-KPIC' |
| 10819 | lt_prog_compiler_static='-Bstatic' |
| 10820 | ;; |
| 10821 | |
| 10822 | sysv4*MP*) |
| 10823 | if test -d /usr/nec; then |
| 10824 | lt_prog_compiler_pic='-Kconform_pic' |
| 10825 | lt_prog_compiler_static='-Bstatic' |
| 10826 | fi |
| 10827 | ;; |
| 10828 | |
| 10829 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10830 | lt_prog_compiler_wl='-Wl,' |
| 10831 | lt_prog_compiler_pic='-KPIC' |
| 10832 | lt_prog_compiler_static='-Bstatic' |
| 10833 | ;; |
| 10834 | |
| 10835 | unicos*) |
| 10836 | lt_prog_compiler_wl='-Wl,' |
| 10837 | lt_prog_compiler_can_build_shared=no |
| 10838 | ;; |
| 10839 | |
| 10840 | uts4*) |
| 10841 | lt_prog_compiler_pic='-pic' |
| 10842 | lt_prog_compiler_static='-Bstatic' |
| 10843 | ;; |
| 10844 | |
| 10845 | *) |
| 10846 | lt_prog_compiler_can_build_shared=no |
| 10847 | ;; |
| 10848 | esac |
| 10849 | fi |
| 10850 | |
| 10851 | case $host_os in |
| 10852 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 10853 | *djgpp*) |
| 10854 | lt_prog_compiler_pic= |
| 10855 | ;; |
| 10856 | *) |
| 10857 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10858 | ;; |
| 10859 | esac |
| 10860 | |
| 10861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10862 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 10863 | if test ${lt_cv_prog_compiler_pic+y} |
| 10864 | then : |
| 10865 | printf %s "(cached) " >&6 |
| 10866 | else $as_nop |
| 10867 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10868 | fi |
| 10869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10870 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 10871 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10872 | |
| 10873 | # |
| 10874 | # Check to make sure the PIC flag actually works. |
| 10875 | # |
| 10876 | if test -n "$lt_prog_compiler_pic"; then |
| 10877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10878 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10879 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 10880 | then : |
| 10881 | printf %s "(cached) " >&6 |
| 10882 | else $as_nop |
| 10883 | lt_cv_prog_compiler_pic_works=no |
| 10884 | ac_outfile=conftest.$ac_objext |
| 10885 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10886 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 10887 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10888 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10889 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10890 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10891 | # The option is referenced via a variable to avoid confusing sed. |
| 10892 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10893 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10894 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10895 | -e 's:$: $lt_compiler_flag:'` |
| 10896 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10897 | (eval "$lt_compile" 2>conftest.err) |
| 10898 | ac_status=$? |
| 10899 | cat conftest.err >&5 |
| 10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10901 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10902 | # The compiler can only warn and ignore the option if not recognized |
| 10903 | # So say no if there are warnings other than the usual output. |
| 10904 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10905 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10906 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10907 | lt_cv_prog_compiler_pic_works=yes |
| 10908 | fi |
| 10909 | fi |
| 10910 | $RM conftest* |
| 10911 | |
| 10912 | fi |
| 10913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10914 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10915 | |
| 10916 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 10917 | case $lt_prog_compiler_pic in |
| 10918 | "" | " "*) ;; |
| 10919 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10920 | esac |
| 10921 | else |
| 10922 | lt_prog_compiler_pic= |
| 10923 | lt_prog_compiler_can_build_shared=no |
| 10924 | fi |
| 10925 | |
| 10926 | fi |
| 10927 | |
| 10928 | |
| 10929 | |
| 10930 | |
| 10931 | |
| 10932 | |
| 10933 | |
| 10934 | |
| 10935 | |
| 10936 | |
| 10937 | |
| 10938 | # |
| 10939 | # Check to make sure the static flag actually works. |
| 10940 | # |
| 10941 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10943 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10944 | if test ${lt_cv_prog_compiler_static_works+y} |
| 10945 | then : |
| 10946 | printf %s "(cached) " >&6 |
| 10947 | else $as_nop |
| 10948 | lt_cv_prog_compiler_static_works=no |
| 10949 | save_LDFLAGS=$LDFLAGS |
| 10950 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10951 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10952 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10953 | # The linker can only warn and ignore the option if not recognized |
| 10954 | # So say no if there are warnings |
| 10955 | if test -s conftest.err; then |
| 10956 | # Append any errors to the config.log. |
| 10957 | cat conftest.err 1>&5 |
| 10958 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10959 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10960 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10961 | lt_cv_prog_compiler_static_works=yes |
| 10962 | fi |
| 10963 | else |
| 10964 | lt_cv_prog_compiler_static_works=yes |
| 10965 | fi |
| 10966 | fi |
| 10967 | $RM -r conftest* |
| 10968 | LDFLAGS=$save_LDFLAGS |
| 10969 | |
| 10970 | fi |
| 10971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 10972 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 10973 | |
| 10974 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 10975 | : |
| 10976 | else |
| 10977 | lt_prog_compiler_static= |
| 10978 | fi |
| 10979 | |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
| 10985 | |
| 10986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10987 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10988 | if test ${lt_cv_prog_compiler_c_o+y} |
| 10989 | then : |
| 10990 | printf %s "(cached) " >&6 |
| 10991 | else $as_nop |
| 10992 | lt_cv_prog_compiler_c_o=no |
| 10993 | $RM -r conftest 2>/dev/null |
| 10994 | mkdir conftest |
| 10995 | cd conftest |
| 10996 | mkdir out |
| 10997 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10998 | |
| 10999 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11000 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11001 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11002 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11003 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11004 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11005 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11006 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11007 | -e 's:$: $lt_compiler_flag:'` |
| 11008 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11009 | (eval "$lt_compile" 2>out/conftest.err) |
| 11010 | ac_status=$? |
| 11011 | cat out/conftest.err >&5 |
| 11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11013 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11014 | then |
| 11015 | # The compiler can only warn and ignore the option if not recognized |
| 11016 | # So say no if there are warnings |
| 11017 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11018 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11019 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11020 | lt_cv_prog_compiler_c_o=yes |
| 11021 | fi |
| 11022 | fi |
| 11023 | chmod u+w . 2>&5 |
| 11024 | $RM conftest* |
| 11025 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11026 | # template instantiation |
| 11027 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11028 | $RM out/* && rmdir out |
| 11029 | cd .. |
| 11030 | $RM -r conftest |
| 11031 | $RM conftest* |
| 11032 | |
| 11033 | fi |
| 11034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11035 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11043 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11044 | if test ${lt_cv_prog_compiler_c_o+y} |
| 11045 | then : |
| 11046 | printf %s "(cached) " >&6 |
| 11047 | else $as_nop |
| 11048 | lt_cv_prog_compiler_c_o=no |
| 11049 | $RM -r conftest 2>/dev/null |
| 11050 | mkdir conftest |
| 11051 | cd conftest |
| 11052 | mkdir out |
| 11053 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11054 | |
| 11055 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11056 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11057 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11058 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11059 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11060 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11061 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11062 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11063 | -e 's:$: $lt_compiler_flag:'` |
| 11064 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11065 | (eval "$lt_compile" 2>out/conftest.err) |
| 11066 | ac_status=$? |
| 11067 | cat out/conftest.err >&5 |
| 11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11069 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11070 | then |
| 11071 | # The compiler can only warn and ignore the option if not recognized |
| 11072 | # So say no if there are warnings |
| 11073 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11074 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11075 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11076 | lt_cv_prog_compiler_c_o=yes |
| 11077 | fi |
| 11078 | fi |
| 11079 | chmod u+w . 2>&5 |
| 11080 | $RM conftest* |
| 11081 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11082 | # template instantiation |
| 11083 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11084 | $RM out/* && rmdir out |
| 11085 | cd .. |
| 11086 | $RM -r conftest |
| 11087 | $RM conftest* |
| 11088 | |
| 11089 | fi |
| 11090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11091 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | hard_links=nottested |
| 11097 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 11098 | # do not overwrite the value of need_locks provided by the user |
| 11099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 11100 | printf %s "checking if we can lock with hard links... " >&6; } |
| 11101 | hard_links=yes |
| 11102 | $RM conftest* |
| 11103 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11104 | touch conftest.a |
| 11105 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11106 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 11108 | printf "%s\n" "$hard_links" >&6; } |
| 11109 | if test no = "$hard_links"; then |
| 11110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 11111 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 11112 | need_locks=warn |
| 11113 | fi |
| 11114 | else |
| 11115 | need_locks=no |
| 11116 | fi |
| 11117 | |
| 11118 | |
| 11119 | |
| 11120 | |
| 11121 | |
| 11122 | |
| 11123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11124 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11125 | |
| 11126 | runpath_var= |
| 11127 | allow_undefined_flag= |
| 11128 | always_export_symbols=no |
| 11129 | archive_cmds= |
| 11130 | archive_expsym_cmds= |
| 11131 | compiler_needs_object=no |
| 11132 | enable_shared_with_static_runtimes=no |
| 11133 | export_dynamic_flag_spec= |
| 11134 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11135 | hardcode_automatic=no |
| 11136 | hardcode_direct=no |
| 11137 | hardcode_direct_absolute=no |
| 11138 | hardcode_libdir_flag_spec= |
| 11139 | hardcode_libdir_separator= |
| 11140 | hardcode_minus_L=no |
| 11141 | hardcode_shlibpath_var=unsupported |
| 11142 | inherit_rpath=no |
| 11143 | link_all_deplibs=unknown |
| 11144 | module_cmds= |
| 11145 | module_expsym_cmds= |
| 11146 | old_archive_from_new_cmds= |
| 11147 | old_archive_from_expsyms_cmds= |
| 11148 | thread_safe_flag_spec= |
| 11149 | whole_archive_flag_spec= |
| 11150 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 11151 | # included in the symbol list |
| 11152 | include_expsyms= |
| 11153 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 11154 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 11155 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 11156 | # as well as any symbol that contains 'd'. |
| 11157 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 11158 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 11159 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 11160 | # the symbol is explicitly referenced. Since portable code cannot |
| 11161 | # rely on this symbol name, it's probably fine to never include it in |
| 11162 | # preloaded symbol tables. |
| 11163 | # Exclude shared library initialization/finalization symbols. |
| 11164 | extract_expsyms_cmds= |
| 11165 | |
| 11166 | case $host_os in |
| 11167 | cygwin* | mingw* | pw32* | cegcc*) |
| 11168 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 11169 | # When not using gcc, we currently assume that we are using |
| 11170 | # Microsoft Visual C++. |
| 11171 | if test yes != "$GCC"; then |
| 11172 | with_gnu_ld=no |
| 11173 | fi |
| 11174 | ;; |
| 11175 | interix*) |
| 11176 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 11177 | with_gnu_ld=yes |
| 11178 | ;; |
| 11179 | openbsd* | bitrig*) |
| 11180 | with_gnu_ld=no |
| 11181 | ;; |
| 11182 | linux* | k*bsd*-gnu | gnu*) |
| 11183 | link_all_deplibs=no |
| 11184 | ;; |
| 11185 | esac |
| 11186 | |
| 11187 | ld_shlibs=yes |
| 11188 | |
| 11189 | # On some targets, GNU ld is compatible enough with the native linker |
| 11190 | # that we're better off using the native interface for both. |
| 11191 | lt_use_gnu_ld_interface=no |
| 11192 | if test yes = "$with_gnu_ld"; then |
| 11193 | case $host_os in |
| 11194 | aix*) |
| 11195 | # The AIX port of GNU ld has always aspired to compatibility |
| 11196 | # with the native linker. However, as the warning in the GNU ld |
| 11197 | # block says, versions before 2.19.5* couldn't really create working |
| 11198 | # shared libraries, regardless of the interface used. |
| 11199 | case `$LD -v 2>&1` in |
| 11200 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 11201 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 11202 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 11203 | *) |
| 11204 | lt_use_gnu_ld_interface=yes |
| 11205 | ;; |
| 11206 | esac |
| 11207 | ;; |
| 11208 | *) |
| 11209 | lt_use_gnu_ld_interface=yes |
| 11210 | ;; |
| 11211 | esac |
| 11212 | fi |
| 11213 | |
| 11214 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 11215 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11216 | wlarc='$wl' |
| 11217 | |
| 11218 | # Set some defaults for GNU ld with shared library support. These |
| 11219 | # are reset later if shared libraries are not supported. Putting them |
| 11220 | # here allows them to be overridden if necessary. |
| 11221 | runpath_var=LD_RUN_PATH |
| 11222 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11223 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 11224 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11225 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 11226 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 11227 | else |
| 11228 | whole_archive_flag_spec= |
| 11229 | fi |
| 11230 | supports_anon_versioning=no |
| 11231 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 11232 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 11233 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11234 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11235 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11236 | *\ 2.11.*) ;; # other 2.11 versions |
| 11237 | *) supports_anon_versioning=yes ;; |
| 11238 | esac |
| 11239 | |
| 11240 | # See if GNU ld supports shared libraries. |
| 11241 | case $host_os in |
| 11242 | aix[3-9]*) |
| 11243 | # On AIX/PPC, the GNU linker is very broken |
| 11244 | if test ia64 != "$host_cpu"; then |
| 11245 | ld_shlibs=no |
| 11246 | cat <<_LT_EOF 1>&2 |
| 11247 | |
| 11248 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 11249 | *** to be unable to reliably create shared libraries on AIX. |
| 11250 | *** Therefore, libtool is disabling shared libraries support. If you |
| 11251 | *** really care for shared libraries, you may want to install binutils |
| 11252 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 11253 | *** You will then need to restart the configuration process. |
| 11254 | |
| 11255 | _LT_EOF |
| 11256 | fi |
| 11257 | ;; |
| 11258 | |
| 11259 | amigaos*) |
| 11260 | case $host_cpu in |
| 11261 | powerpc) |
| 11262 | # see comment about AmigaOS4 .so support |
| 11263 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11264 | archive_expsym_cmds='' |
| 11265 | ;; |
| 11266 | m68k) |
| 11267 | 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)' |
| 11268 | hardcode_libdir_flag_spec='-L$libdir' |
| 11269 | hardcode_minus_L=yes |
| 11270 | ;; |
| 11271 | esac |
| 11272 | ;; |
| 11273 | |
| 11274 | beos*) |
| 11275 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11276 | allow_undefined_flag=unsupported |
| 11277 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 11278 | # support --undefined. This deserves some investigation. FIXME |
| 11279 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11280 | else |
| 11281 | ld_shlibs=no |
| 11282 | fi |
| 11283 | ;; |
| 11284 | |
| 11285 | cygwin* | mingw* | pw32* | cegcc*) |
| 11286 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 11287 | # as there is no search path for DLLs. |
| 11288 | hardcode_libdir_flag_spec='-L$libdir' |
| 11289 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 11290 | allow_undefined_flag=unsupported |
| 11291 | always_export_symbols=no |
| 11292 | enable_shared_with_static_runtimes=yes |
| 11293 | 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' |
| 11294 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 11295 | |
| 11296 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11297 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11298 | # If the export-symbols file already is a .def file, use it as |
| 11299 | # is; otherwise, prepend EXPORTS... |
| 11300 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11301 | cp $export_symbols $output_objdir/$soname.def; |
| 11302 | else |
| 11303 | echo EXPORTS > $output_objdir/$soname.def; |
| 11304 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11305 | fi~ |
| 11306 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11307 | else |
| 11308 | ld_shlibs=no |
| 11309 | fi |
| 11310 | ;; |
| 11311 | |
| 11312 | haiku*) |
| 11313 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11314 | link_all_deplibs=yes |
| 11315 | ;; |
| 11316 | |
| 11317 | os2*) |
| 11318 | hardcode_libdir_flag_spec='-L$libdir' |
| 11319 | hardcode_minus_L=yes |
| 11320 | allow_undefined_flag=unsupported |
| 11321 | shrext_cmds=.dll |
| 11322 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11323 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11324 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11325 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11326 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 11327 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11328 | emximp -o $lib $output_objdir/$libname.def' |
| 11329 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11330 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11331 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11332 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11333 | prefix_cmds="$SED"~ |
| 11334 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 11335 | prefix_cmds="$prefix_cmds -e 1d"; |
| 11336 | fi~ |
| 11337 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 11338 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 11339 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11340 | emximp -o $lib $output_objdir/$libname.def' |
| 11341 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 11342 | enable_shared_with_static_runtimes=yes |
| 11343 | ;; |
| 11344 | |
| 11345 | interix[3-9]*) |
| 11346 | hardcode_direct=no |
| 11347 | hardcode_shlibpath_var=no |
| 11348 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 11349 | export_dynamic_flag_spec='$wl-E' |
| 11350 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11351 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11352 | # default) and relocated if they conflict, which is a slow very memory |
| 11353 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11354 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11355 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11356 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11357 | 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' |
| 11358 | ;; |
| 11359 | |
| 11360 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11361 | tmp_diet=no |
| 11362 | if test linux-dietlibc = "$host_os"; then |
| 11363 | case $cc_basename in |
| 11364 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 11365 | esac |
| 11366 | fi |
| 11367 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 11368 | && test no = "$tmp_diet" |
| 11369 | then |
| 11370 | tmp_addflag=' $pic_flag' |
| 11371 | tmp_sharedflag='-shared' |
| 11372 | case $cc_basename,$host_cpu in |
| 11373 | pgcc*) # Portland Group C compiler |
| 11374 | 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' |
| 11375 | tmp_addflag=' $pic_flag' |
| 11376 | ;; |
| 11377 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11378 | # Portland Group f77 and f90 compilers |
| 11379 | 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' |
| 11380 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 11381 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 11382 | tmp_addflag=' -i_dynamic' ;; |
| 11383 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 11384 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 11385 | ifc* | ifort*) # Intel Fortran compiler |
| 11386 | tmp_addflag=' -nofor_main' ;; |
| 11387 | lf95*) # Lahey Fortran 8.1 |
| 11388 | whole_archive_flag_spec= |
| 11389 | tmp_sharedflag='--shared' ;; |
| 11390 | nagfor*) # NAGFOR 5.3 |
| 11391 | tmp_sharedflag='-Wl,-shared' ;; |
| 11392 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 11393 | tmp_sharedflag='-qmkshrobj' |
| 11394 | tmp_addflag= ;; |
| 11395 | nvcc*) # Cuda Compiler Driver 2.2 |
| 11396 | 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' |
| 11397 | compiler_needs_object=yes |
| 11398 | ;; |
| 11399 | esac |
| 11400 | case `$CC -V 2>&1 | sed 5q` in |
| 11401 | *Sun\ C*) # Sun C 5.9 |
| 11402 | 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' |
| 11403 | compiler_needs_object=yes |
| 11404 | tmp_sharedflag='-G' ;; |
| 11405 | *Sun\ F*) # Sun Fortran 8.3 |
| 11406 | tmp_sharedflag='-G' ;; |
| 11407 | esac |
| 11408 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11409 | |
| 11410 | if test yes = "$supports_anon_versioning"; then |
| 11411 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11412 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11413 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11414 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 11415 | fi |
| 11416 | |
| 11417 | case $cc_basename in |
| 11418 | tcc*) |
| 11419 | export_dynamic_flag_spec='-rdynamic' |
| 11420 | ;; |
| 11421 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 11422 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 11423 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 11424 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11425 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 11426 | if test yes = "$supports_anon_versioning"; then |
| 11427 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11428 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11429 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11430 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 11431 | fi |
| 11432 | ;; |
| 11433 | esac |
| 11434 | else |
| 11435 | ld_shlibs=no |
| 11436 | fi |
| 11437 | ;; |
| 11438 | |
| 11439 | netbsd* | netbsdelf*-gnu) |
| 11440 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11441 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 11442 | wlarc= |
| 11443 | else |
| 11444 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11445 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11446 | fi |
| 11447 | ;; |
| 11448 | |
| 11449 | solaris*) |
| 11450 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 11451 | ld_shlibs=no |
| 11452 | cat <<_LT_EOF 1>&2 |
| 11453 | |
| 11454 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 11455 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 11456 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 11457 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 11458 | *** your PATH or compiler configuration so that the native linker is |
| 11459 | *** used, and then restart. |
| 11460 | |
| 11461 | _LT_EOF |
| 11462 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11463 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11464 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11465 | else |
| 11466 | ld_shlibs=no |
| 11467 | fi |
| 11468 | ;; |
| 11469 | |
| 11470 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 11471 | case `$LD -v 2>&1` in |
| 11472 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 11473 | ld_shlibs=no |
| 11474 | cat <<_LT_EOF 1>&2 |
| 11475 | |
| 11476 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 11477 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 11478 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 11479 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 11480 | *** your PATH or compiler configuration so that the native linker is |
| 11481 | *** used, and then restart. |
| 11482 | |
| 11483 | _LT_EOF |
| 11484 | ;; |
| 11485 | *) |
| 11486 | # For security reasons, it is highly recommended that you always |
| 11487 | # use absolute paths for naming shared libraries, and exclude the |
| 11488 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 11489 | # requires that you compile everything twice, which is a pain. |
| 11490 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11491 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11492 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11493 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11494 | else |
| 11495 | ld_shlibs=no |
| 11496 | fi |
| 11497 | ;; |
| 11498 | esac |
| 11499 | ;; |
| 11500 | |
| 11501 | sunos4*) |
| 11502 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11503 | wlarc= |
| 11504 | hardcode_direct=yes |
| 11505 | hardcode_shlibpath_var=no |
| 11506 | ;; |
| 11507 | |
| 11508 | *) |
| 11509 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11510 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11511 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11512 | else |
| 11513 | ld_shlibs=no |
| 11514 | fi |
| 11515 | ;; |
| 11516 | esac |
| 11517 | |
| 11518 | if test no = "$ld_shlibs"; then |
| 11519 | runpath_var= |
| 11520 | hardcode_libdir_flag_spec= |
| 11521 | export_dynamic_flag_spec= |
| 11522 | whole_archive_flag_spec= |
| 11523 | fi |
| 11524 | else |
| 11525 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 11526 | case $host_os in |
| 11527 | aix3*) |
| 11528 | allow_undefined_flag=unsupported |
| 11529 | always_export_symbols=yes |
| 11530 | 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' |
| 11531 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 11532 | # are no directories specified by -L. |
| 11533 | hardcode_minus_L=yes |
| 11534 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 11535 | # Neither direct hardcoding nor static linking is supported with a |
| 11536 | # broken collect2. |
| 11537 | hardcode_direct=unsupported |
| 11538 | fi |
| 11539 | ;; |
| 11540 | |
| 11541 | aix[4-9]*) |
| 11542 | if test ia64 = "$host_cpu"; then |
| 11543 | # On IA64, the linker does run time linking by default, so we don't |
| 11544 | # have to do anything special. |
| 11545 | aix_use_runtimelinking=no |
| 11546 | exp_sym_flag='-Bexport' |
| 11547 | no_entry_flag= |
| 11548 | else |
| 11549 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11550 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 11551 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 11552 | # weak defined symbols like other global defined symbols, whereas |
| 11553 | # GNU nm marks them as "W". |
| 11554 | # While the 'weak' keyword is ignored in the Export File, we need |
| 11555 | # it in the Import File for the 'aix-soname' feature, so we have |
| 11556 | # to replace the "-B" option with "-P" for AIX nm. |
| 11557 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 11558 | 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' |
| 11559 | else |
| 11560 | 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 == "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' |
| 11561 | fi |
| 11562 | aix_use_runtimelinking=no |
| 11563 | |
| 11564 | # Test if we are trying to use run time linking or normal |
| 11565 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11566 | # have runtime linking enabled, and use it for executables. |
| 11567 | # For shared libraries, we enable/disable runtime linking |
| 11568 | # depending on the kind of the shared library created - |
| 11569 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 11570 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 11571 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 11572 | # lib.a static archive |
| 11573 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 11574 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 11575 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11576 | # lib.a(lib.so.V) shared, rtl:no |
| 11577 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11578 | # lib.a static archive |
| 11579 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11580 | for ld_flag in $LDFLAGS; do |
| 11581 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 11582 | aix_use_runtimelinking=yes |
| 11583 | break |
| 11584 | fi |
| 11585 | done |
| 11586 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11587 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 11588 | # so we don't have lib.a shared libs to link our executables. |
| 11589 | # We have to force runtime linking in this case. |
| 11590 | aix_use_runtimelinking=yes |
| 11591 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 11592 | fi |
| 11593 | ;; |
| 11594 | esac |
| 11595 | |
| 11596 | exp_sym_flag='-bexport' |
| 11597 | no_entry_flag='-bnoentry' |
| 11598 | fi |
| 11599 | |
| 11600 | # When large executables or shared objects are built, AIX ld can |
| 11601 | # have problems creating the table of contents. If linking a library |
| 11602 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11603 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11604 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11605 | |
| 11606 | archive_cmds='' |
| 11607 | hardcode_direct=yes |
| 11608 | hardcode_direct_absolute=yes |
| 11609 | hardcode_libdir_separator=':' |
| 11610 | link_all_deplibs=yes |
| 11611 | file_list_spec='$wl-f,' |
| 11612 | case $with_aix_soname,$aix_use_runtimelinking in |
| 11613 | aix,*) ;; # traditional, no import file |
| 11614 | svr4,* | *,yes) # use import file |
| 11615 | # The Import File defines what to hardcode. |
| 11616 | hardcode_direct=no |
| 11617 | hardcode_direct_absolute=no |
| 11618 | ;; |
| 11619 | esac |
| 11620 | |
| 11621 | if test yes = "$GCC"; then |
| 11622 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11623 | # We only want to do this on AIX 4.2 and lower, the check |
| 11624 | # below for broken collect2 doesn't work under 4.3+ |
| 11625 | collect2name=`$CC -print-prog-name=collect2` |
| 11626 | if test -f "$collect2name" && |
| 11627 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11628 | then |
| 11629 | # We have reworked collect2 |
| 11630 | : |
| 11631 | else |
| 11632 | # We have old collect2 |
| 11633 | hardcode_direct=unsupported |
| 11634 | # It fails to find uninstalled libraries when the uninstalled |
| 11635 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11636 | # to unsupported forces relinking |
| 11637 | hardcode_minus_L=yes |
| 11638 | hardcode_libdir_flag_spec='-L$libdir' |
| 11639 | hardcode_libdir_separator= |
| 11640 | fi |
| 11641 | ;; |
| 11642 | esac |
| 11643 | shared_flag='-shared' |
| 11644 | if test yes = "$aix_use_runtimelinking"; then |
| 11645 | shared_flag="$shared_flag "'$wl-G' |
| 11646 | fi |
| 11647 | # Need to ensure runtime linking is disabled for the traditional |
| 11648 | # shared library, or the linker may eventually find shared libraries |
| 11649 | # /with/ Import File - we do not want to mix them. |
| 11650 | shared_flag_aix='-shared' |
| 11651 | shared_flag_svr4='-shared $wl-G' |
| 11652 | else |
| 11653 | # not using gcc |
| 11654 | if test ia64 = "$host_cpu"; then |
| 11655 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11656 | # chokes on -Wl,-G. The following line is correct: |
| 11657 | shared_flag='-G' |
| 11658 | else |
| 11659 | if test yes = "$aix_use_runtimelinking"; then |
| 11660 | shared_flag='$wl-G' |
| 11661 | else |
| 11662 | shared_flag='$wl-bM:SRE' |
| 11663 | fi |
| 11664 | shared_flag_aix='$wl-bM:SRE' |
| 11665 | shared_flag_svr4='$wl-G' |
| 11666 | fi |
| 11667 | fi |
| 11668 | |
| 11669 | export_dynamic_flag_spec='$wl-bexpall' |
| 11670 | # It seems that -bexpall does not export symbols beginning with |
| 11671 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11672 | always_export_symbols=yes |
| 11673 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11674 | # Warning - without using the other runtime loading flags (-brtl), |
| 11675 | # -berok will link without error, but may produce a broken library. |
| 11676 | allow_undefined_flag='-berok' |
| 11677 | # Determine the default libpath from the value encoded in an |
| 11678 | # empty executable. |
| 11679 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 11680 | aix_libpath=$lt_cv_aix_libpath |
| 11681 | else |
| 11682 | if test ${lt_cv_aix_libpath_+y} |
| 11683 | then : |
| 11684 | printf %s "(cached) " >&6 |
| 11685 | else $as_nop |
| 11686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11687 | /* end confdefs.h. */ |
| 11688 | |
| 11689 | int |
| 11690 | main (void) |
| 11691 | { |
| 11692 | |
| 11693 | ; |
| 11694 | return 0; |
| 11695 | } |
| 11696 | _ACEOF |
| 11697 | if ac_fn_c_try_link "$LINENO" |
| 11698 | then : |
| 11699 | |
| 11700 | lt_aix_libpath_sed=' |
| 11701 | /Import File Strings/,/^$/ { |
| 11702 | /^0/ { |
| 11703 | s/^0 *\([^ ]*\) *$/\1/ |
| 11704 | p |
| 11705 | } |
| 11706 | }' |
| 11707 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11708 | # Check for a 64-bit object if we didn't find anything. |
| 11709 | if test -z "$lt_cv_aix_libpath_"; then |
| 11710 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11711 | fi |
| 11712 | fi |
| 11713 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11714 | conftest$ac_exeext conftest.$ac_ext |
| 11715 | if test -z "$lt_cv_aix_libpath_"; then |
| 11716 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 11717 | fi |
| 11718 | |
| 11719 | fi |
| 11720 | |
| 11721 | aix_libpath=$lt_cv_aix_libpath_ |
| 11722 | fi |
| 11723 | |
| 11724 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11725 | 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 |
| 11726 | else |
| 11727 | if test ia64 = "$host_cpu"; then |
| 11728 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 11729 | allow_undefined_flag="-z nodefs" |
| 11730 | 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" |
| 11731 | else |
| 11732 | # Determine the default libpath from the value encoded in an |
| 11733 | # empty executable. |
| 11734 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 11735 | aix_libpath=$lt_cv_aix_libpath |
| 11736 | else |
| 11737 | if test ${lt_cv_aix_libpath_+y} |
| 11738 | then : |
| 11739 | printf %s "(cached) " >&6 |
| 11740 | else $as_nop |
| 11741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11742 | /* end confdefs.h. */ |
| 11743 | |
| 11744 | int |
| 11745 | main (void) |
| 11746 | { |
| 11747 | |
| 11748 | ; |
| 11749 | return 0; |
| 11750 | } |
| 11751 | _ACEOF |
| 11752 | if ac_fn_c_try_link "$LINENO" |
| 11753 | then : |
| 11754 | |
| 11755 | lt_aix_libpath_sed=' |
| 11756 | /Import File Strings/,/^$/ { |
| 11757 | /^0/ { |
| 11758 | s/^0 *\([^ ]*\) *$/\1/ |
| 11759 | p |
| 11760 | } |
| 11761 | }' |
| 11762 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11763 | # Check for a 64-bit object if we didn't find anything. |
| 11764 | if test -z "$lt_cv_aix_libpath_"; then |
| 11765 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11766 | fi |
| 11767 | fi |
| 11768 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11769 | conftest$ac_exeext conftest.$ac_ext |
| 11770 | if test -z "$lt_cv_aix_libpath_"; then |
| 11771 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 11772 | fi |
| 11773 | |
| 11774 | fi |
| 11775 | |
| 11776 | aix_libpath=$lt_cv_aix_libpath_ |
| 11777 | fi |
| 11778 | |
| 11779 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11780 | # Warning - without using the other run time loading flags, |
| 11781 | # -berok will link without error, but may produce a broken library. |
| 11782 | no_undefined_flag=' $wl-bernotok' |
| 11783 | allow_undefined_flag=' $wl-berok' |
| 11784 | if test yes = "$with_gnu_ld"; then |
| 11785 | # We only use this code for GNU lds that support --whole-archive. |
| 11786 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 11787 | else |
| 11788 | # Exported symbols can be pulled into shared objects from archives |
| 11789 | whole_archive_flag_spec='$convenience' |
| 11790 | fi |
| 11791 | archive_cmds_need_lc=yes |
| 11792 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 11793 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 11794 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 11795 | if test svr4 != "$with_aix_soname"; then |
| 11796 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11797 | 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' |
| 11798 | fi |
| 11799 | if test aix != "$with_aix_soname"; then |
| 11800 | 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' |
| 11801 | else |
| 11802 | # used by -dlpreopen to get the symbols |
| 11803 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 11804 | fi |
| 11805 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 11806 | fi |
| 11807 | fi |
| 11808 | ;; |
| 11809 | |
| 11810 | amigaos*) |
| 11811 | case $host_cpu in |
| 11812 | powerpc) |
| 11813 | # see comment about AmigaOS4 .so support |
| 11814 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11815 | archive_expsym_cmds='' |
| 11816 | ;; |
| 11817 | m68k) |
| 11818 | 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)' |
| 11819 | hardcode_libdir_flag_spec='-L$libdir' |
| 11820 | hardcode_minus_L=yes |
| 11821 | ;; |
| 11822 | esac |
| 11823 | ;; |
| 11824 | |
| 11825 | bsdi[45]*) |
| 11826 | export_dynamic_flag_spec=-rdynamic |
| 11827 | ;; |
| 11828 | |
| 11829 | cygwin* | mingw* | pw32* | cegcc*) |
| 11830 | # When not using gcc, we currently assume that we are using |
| 11831 | # Microsoft Visual C++. |
| 11832 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11833 | # no search path for DLLs. |
| 11834 | case $cc_basename in |
| 11835 | cl*) |
| 11836 | # Native MSVC |
| 11837 | hardcode_libdir_flag_spec=' ' |
| 11838 | allow_undefined_flag=unsupported |
| 11839 | always_export_symbols=yes |
| 11840 | file_list_spec='@' |
| 11841 | # Tell ltmain to make .lib files, not .a files. |
| 11842 | libext=lib |
| 11843 | # Tell ltmain to make .dll files, not .so files. |
| 11844 | shrext_cmds=.dll |
| 11845 | # FIXME: Setting linknames here is a bad hack. |
| 11846 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 11847 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11848 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 11849 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 11850 | else |
| 11851 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 11852 | fi~ |
| 11853 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 11854 | linknames=' |
| 11855 | # The linker will not automatically build a static lib if we build a DLL. |
| 11856 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11857 | enable_shared_with_static_runtimes=yes |
| 11858 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 11859 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11860 | # Don't use ranlib |
| 11861 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11862 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11863 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11864 | case $lt_outputfile in |
| 11865 | *.exe|*.EXE) ;; |
| 11866 | *) |
| 11867 | lt_outputfile=$lt_outputfile.exe |
| 11868 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 11869 | ;; |
| 11870 | esac~ |
| 11871 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 11872 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11873 | $RM "$lt_outputfile.manifest"; |
| 11874 | fi' |
| 11875 | ;; |
| 11876 | *) |
| 11877 | # Assume MSVC wrapper |
| 11878 | hardcode_libdir_flag_spec=' ' |
| 11879 | allow_undefined_flag=unsupported |
| 11880 | # Tell ltmain to make .lib files, not .a files. |
| 11881 | libext=lib |
| 11882 | # Tell ltmain to make .dll files, not .so files. |
| 11883 | shrext_cmds=.dll |
| 11884 | # FIXME: Setting linknames here is a bad hack. |
| 11885 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11886 | # The linker will automatically build a .lib file if we build a DLL. |
| 11887 | old_archive_from_new_cmds='true' |
| 11888 | # FIXME: Should let the user specify the lib program. |
| 11889 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11890 | enable_shared_with_static_runtimes=yes |
| 11891 | ;; |
| 11892 | esac |
| 11893 | ;; |
| 11894 | |
| 11895 | darwin* | rhapsody*) |
| 11896 | |
| 11897 | |
| 11898 | archive_cmds_need_lc=no |
| 11899 | hardcode_direct=no |
| 11900 | hardcode_automatic=yes |
| 11901 | hardcode_shlibpath_var=unsupported |
| 11902 | if test yes = "$lt_cv_ld_force_load"; then |
| 11903 | 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\"`' |
| 11904 | |
| 11905 | else |
| 11906 | whole_archive_flag_spec='' |
| 11907 | fi |
| 11908 | link_all_deplibs=yes |
| 11909 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 11910 | case $cc_basename in |
| 11911 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 11912 | *) _lt_dar_can_shared=$GCC ;; |
| 11913 | esac |
| 11914 | if test yes = "$_lt_dar_can_shared"; then |
| 11915 | output_verbose_link_cmd=func_echo_all |
| 11916 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 11917 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 11918 | 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" |
| 11919 | 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" |
| 11920 | |
| 11921 | else |
| 11922 | ld_shlibs=no |
| 11923 | fi |
| 11924 | |
| 11925 | ;; |
| 11926 | |
| 11927 | dgux*) |
| 11928 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11929 | hardcode_libdir_flag_spec='-L$libdir' |
| 11930 | hardcode_shlibpath_var=no |
| 11931 | ;; |
| 11932 | |
| 11933 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11934 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 11935 | # does not break anything, and helps significantly (at the cost of a little |
| 11936 | # extra space). |
| 11937 | freebsd2.2*) |
| 11938 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11939 | hardcode_libdir_flag_spec='-R$libdir' |
| 11940 | hardcode_direct=yes |
| 11941 | hardcode_shlibpath_var=no |
| 11942 | ;; |
| 11943 | |
| 11944 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11945 | freebsd2.*) |
| 11946 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11947 | hardcode_direct=yes |
| 11948 | hardcode_minus_L=yes |
| 11949 | hardcode_shlibpath_var=no |
| 11950 | ;; |
| 11951 | |
| 11952 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11953 | freebsd* | dragonfly*) |
| 11954 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11955 | hardcode_libdir_flag_spec='-R$libdir' |
| 11956 | hardcode_direct=yes |
| 11957 | hardcode_shlibpath_var=no |
| 11958 | ;; |
| 11959 | |
| 11960 | hpux9*) |
| 11961 | if test yes = "$GCC"; then |
| 11962 | 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' |
| 11963 | else |
| 11964 | 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' |
| 11965 | fi |
| 11966 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11967 | hardcode_libdir_separator=: |
| 11968 | hardcode_direct=yes |
| 11969 | |
| 11970 | # hardcode_minus_L: Not really in the search PATH, |
| 11971 | # but as the default location of the library. |
| 11972 | hardcode_minus_L=yes |
| 11973 | export_dynamic_flag_spec='$wl-E' |
| 11974 | ;; |
| 11975 | |
| 11976 | hpux10*) |
| 11977 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11978 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11979 | else |
| 11980 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11981 | fi |
| 11982 | if test no = "$with_gnu_ld"; then |
| 11983 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11984 | hardcode_libdir_separator=: |
| 11985 | hardcode_direct=yes |
| 11986 | hardcode_direct_absolute=yes |
| 11987 | export_dynamic_flag_spec='$wl-E' |
| 11988 | # hardcode_minus_L: Not really in the search PATH, |
| 11989 | # but as the default location of the library. |
| 11990 | hardcode_minus_L=yes |
| 11991 | fi |
| 11992 | ;; |
| 11993 | |
| 11994 | hpux11*) |
| 11995 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11996 | case $host_cpu in |
| 11997 | hppa*64*) |
| 11998 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11999 | ;; |
| 12000 | ia64*) |
| 12001 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12002 | ;; |
| 12003 | *) |
| 12004 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12005 | ;; |
| 12006 | esac |
| 12007 | else |
| 12008 | case $host_cpu in |
| 12009 | hppa*64*) |
| 12010 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12011 | ;; |
| 12012 | ia64*) |
| 12013 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12014 | ;; |
| 12015 | *) |
| 12016 | |
| 12017 | # Older versions of the 11.00 compiler do not understand -b yet |
| 12018 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 12019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 12020 | printf %s "checking if $CC understands -b... " >&6; } |
| 12021 | if test ${lt_cv_prog_compiler__b+y} |
| 12022 | then : |
| 12023 | printf %s "(cached) " >&6 |
| 12024 | else $as_nop |
| 12025 | lt_cv_prog_compiler__b=no |
| 12026 | save_LDFLAGS=$LDFLAGS |
| 12027 | LDFLAGS="$LDFLAGS -b" |
| 12028 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12029 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12030 | # The linker can only warn and ignore the option if not recognized |
| 12031 | # So say no if there are warnings |
| 12032 | if test -s conftest.err; then |
| 12033 | # Append any errors to the config.log. |
| 12034 | cat conftest.err 1>&5 |
| 12035 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 12036 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12037 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12038 | lt_cv_prog_compiler__b=yes |
| 12039 | fi |
| 12040 | else |
| 12041 | lt_cv_prog_compiler__b=yes |
| 12042 | fi |
| 12043 | fi |
| 12044 | $RM -r conftest* |
| 12045 | LDFLAGS=$save_LDFLAGS |
| 12046 | |
| 12047 | fi |
| 12048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 12049 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } |
| 12050 | |
| 12051 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 12052 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12053 | else |
| 12054 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12055 | fi |
| 12056 | |
| 12057 | ;; |
| 12058 | esac |
| 12059 | fi |
| 12060 | if test no = "$with_gnu_ld"; then |
| 12061 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12062 | hardcode_libdir_separator=: |
| 12063 | |
| 12064 | case $host_cpu in |
| 12065 | hppa*64*|ia64*) |
| 12066 | hardcode_direct=no |
| 12067 | hardcode_shlibpath_var=no |
| 12068 | ;; |
| 12069 | *) |
| 12070 | hardcode_direct=yes |
| 12071 | hardcode_direct_absolute=yes |
| 12072 | export_dynamic_flag_spec='$wl-E' |
| 12073 | |
| 12074 | # hardcode_minus_L: Not really in the search PATH, |
| 12075 | # but as the default location of the library. |
| 12076 | hardcode_minus_L=yes |
| 12077 | ;; |
| 12078 | esac |
| 12079 | fi |
| 12080 | ;; |
| 12081 | |
| 12082 | irix5* | irix6* | nonstopux*) |
| 12083 | if test yes = "$GCC"; then |
| 12084 | 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' |
| 12085 | # Try to use the -exported_symbol ld option, if it does not |
| 12086 | # work, assume that -exports_file does not work either and |
| 12087 | # implicitly export all symbols. |
| 12088 | # This should be the same for all languages, so no per-tag cache variable. |
| 12089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 12090 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 12091 | if test ${lt_cv_irix_exported_symbol+y} |
| 12092 | then : |
| 12093 | printf %s "(cached) " >&6 |
| 12094 | else $as_nop |
| 12095 | save_LDFLAGS=$LDFLAGS |
| 12096 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 12097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12098 | /* end confdefs.h. */ |
| 12099 | int foo (void) { return 0; } |
| 12100 | _ACEOF |
| 12101 | if ac_fn_c_try_link "$LINENO" |
| 12102 | then : |
| 12103 | lt_cv_irix_exported_symbol=yes |
| 12104 | else $as_nop |
| 12105 | lt_cv_irix_exported_symbol=no |
| 12106 | fi |
| 12107 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12108 | conftest$ac_exeext conftest.$ac_ext |
| 12109 | LDFLAGS=$save_LDFLAGS |
| 12110 | fi |
| 12111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 12112 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } |
| 12113 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 12114 | 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' |
| 12115 | fi |
| 12116 | link_all_deplibs=no |
| 12117 | else |
| 12118 | 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' |
| 12119 | 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' |
| 12120 | fi |
| 12121 | archive_cmds_need_lc='no' |
| 12122 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12123 | hardcode_libdir_separator=: |
| 12124 | inherit_rpath=yes |
| 12125 | link_all_deplibs=yes |
| 12126 | ;; |
| 12127 | |
| 12128 | linux*) |
| 12129 | case $cc_basename in |
| 12130 | tcc*) |
| 12131 | # Fabrice Bellard et al's Tiny C Compiler |
| 12132 | ld_shlibs=yes |
| 12133 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12134 | ;; |
| 12135 | esac |
| 12136 | ;; |
| 12137 | |
| 12138 | netbsd* | netbsdelf*-gnu) |
| 12139 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12140 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12141 | else |
| 12142 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12143 | fi |
| 12144 | hardcode_libdir_flag_spec='-R$libdir' |
| 12145 | hardcode_direct=yes |
| 12146 | hardcode_shlibpath_var=no |
| 12147 | ;; |
| 12148 | |
| 12149 | newsos6) |
| 12150 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12151 | hardcode_direct=yes |
| 12152 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12153 | hardcode_libdir_separator=: |
| 12154 | hardcode_shlibpath_var=no |
| 12155 | ;; |
| 12156 | |
| 12157 | *nto* | *qnx*) |
| 12158 | ;; |
| 12159 | |
| 12160 | openbsd* | bitrig*) |
| 12161 | if test -f /usr/libexec/ld.so; then |
| 12162 | hardcode_direct=yes |
| 12163 | hardcode_shlibpath_var=no |
| 12164 | hardcode_direct_absolute=yes |
| 12165 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 12166 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12167 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 12168 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12169 | export_dynamic_flag_spec='$wl-E' |
| 12170 | else |
| 12171 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12172 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12173 | fi |
| 12174 | else |
| 12175 | ld_shlibs=no |
| 12176 | fi |
| 12177 | ;; |
| 12178 | |
| 12179 | os2*) |
| 12180 | hardcode_libdir_flag_spec='-L$libdir' |
| 12181 | hardcode_minus_L=yes |
| 12182 | allow_undefined_flag=unsupported |
| 12183 | shrext_cmds=.dll |
| 12184 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12185 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12186 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12187 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12188 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 12189 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12190 | emximp -o $lib $output_objdir/$libname.def' |
| 12191 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12192 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12193 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12194 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12195 | prefix_cmds="$SED"~ |
| 12196 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 12197 | prefix_cmds="$prefix_cmds -e 1d"; |
| 12198 | fi~ |
| 12199 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 12200 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 12201 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12202 | emximp -o $lib $output_objdir/$libname.def' |
| 12203 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 12204 | enable_shared_with_static_runtimes=yes |
| 12205 | ;; |
| 12206 | |
| 12207 | osf3*) |
| 12208 | if test yes = "$GCC"; then |
| 12209 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12210 | 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' |
| 12211 | else |
| 12212 | allow_undefined_flag=' -expect_unresolved \*' |
| 12213 | 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' |
| 12214 | fi |
| 12215 | archive_cmds_need_lc='no' |
| 12216 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12217 | hardcode_libdir_separator=: |
| 12218 | ;; |
| 12219 | |
| 12220 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12221 | if test yes = "$GCC"; then |
| 12222 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12223 | 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' |
| 12224 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12225 | else |
| 12226 | allow_undefined_flag=' -expect_unresolved \*' |
| 12227 | 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' |
| 12228 | 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~ |
| 12229 | $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' |
| 12230 | |
| 12231 | # Both c and cxx compiler support -rpath directly |
| 12232 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12233 | fi |
| 12234 | archive_cmds_need_lc='no' |
| 12235 | hardcode_libdir_separator=: |
| 12236 | ;; |
| 12237 | |
| 12238 | solaris*) |
| 12239 | no_undefined_flag=' -z defs' |
| 12240 | if test yes = "$GCC"; then |
| 12241 | wlarc='$wl' |
| 12242 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12243 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12244 | $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' |
| 12245 | else |
| 12246 | case `$CC -V 2>&1` in |
| 12247 | *"Compilers 5.0"*) |
| 12248 | wlarc='' |
| 12249 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12250 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12251 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12252 | ;; |
| 12253 | *) |
| 12254 | wlarc='$wl' |
| 12255 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12256 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12257 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12258 | ;; |
| 12259 | esac |
| 12260 | fi |
| 12261 | hardcode_libdir_flag_spec='-R$libdir' |
| 12262 | hardcode_shlibpath_var=no |
| 12263 | case $host_os in |
| 12264 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12265 | *) |
| 12266 | # The compiler driver will combine and reorder linker options, |
| 12267 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 12268 | # but is careful enough not to reorder. |
| 12269 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12270 | if test yes = "$GCC"; then |
| 12271 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 12272 | else |
| 12273 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12274 | fi |
| 12275 | ;; |
| 12276 | esac |
| 12277 | link_all_deplibs=yes |
| 12278 | ;; |
| 12279 | |
| 12280 | sunos4*) |
| 12281 | if test sequent = "$host_vendor"; then |
| 12282 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12283 | # files that make .init and .fini sections work. |
| 12284 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12285 | else |
| 12286 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12287 | fi |
| 12288 | hardcode_libdir_flag_spec='-L$libdir' |
| 12289 | hardcode_direct=yes |
| 12290 | hardcode_minus_L=yes |
| 12291 | hardcode_shlibpath_var=no |
| 12292 | ;; |
| 12293 | |
| 12294 | sysv4) |
| 12295 | case $host_vendor in |
| 12296 | sni) |
| 12297 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12298 | hardcode_direct=yes # is this really true??? |
| 12299 | ;; |
| 12300 | siemens) |
| 12301 | ## LD is ld it makes a PLAMLIB |
| 12302 | ## CC just makes a GrossModule. |
| 12303 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12304 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12305 | hardcode_direct=no |
| 12306 | ;; |
| 12307 | motorola) |
| 12308 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12309 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12310 | ;; |
| 12311 | esac |
| 12312 | runpath_var='LD_RUN_PATH' |
| 12313 | hardcode_shlibpath_var=no |
| 12314 | ;; |
| 12315 | |
| 12316 | sysv4.3*) |
| 12317 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12318 | hardcode_shlibpath_var=no |
| 12319 | export_dynamic_flag_spec='-Bexport' |
| 12320 | ;; |
| 12321 | |
| 12322 | sysv4*MP*) |
| 12323 | if test -d /usr/nec; then |
| 12324 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12325 | hardcode_shlibpath_var=no |
| 12326 | runpath_var=LD_RUN_PATH |
| 12327 | hardcode_runpath_var=yes |
| 12328 | ld_shlibs=yes |
| 12329 | fi |
| 12330 | ;; |
| 12331 | |
| 12332 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12333 | no_undefined_flag='$wl-z,text' |
| 12334 | archive_cmds_need_lc=no |
| 12335 | hardcode_shlibpath_var=no |
| 12336 | runpath_var='LD_RUN_PATH' |
| 12337 | |
| 12338 | if test yes = "$GCC"; then |
| 12339 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12340 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12341 | else |
| 12342 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12343 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12344 | fi |
| 12345 | ;; |
| 12346 | |
| 12347 | sysv5* | sco3.2v5* | sco5v6*) |
| 12348 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 12349 | # link with -lc, and that would cause any symbols used from libc to |
| 12350 | # always be unresolved, which means just about no library would |
| 12351 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12352 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12353 | # as -z defs. |
| 12354 | no_undefined_flag='$wl-z,text' |
| 12355 | allow_undefined_flag='$wl-z,nodefs' |
| 12356 | archive_cmds_need_lc=no |
| 12357 | hardcode_shlibpath_var=no |
| 12358 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 12359 | hardcode_libdir_separator=':' |
| 12360 | link_all_deplibs=yes |
| 12361 | export_dynamic_flag_spec='$wl-Bexport' |
| 12362 | runpath_var='LD_RUN_PATH' |
| 12363 | |
| 12364 | if test yes = "$GCC"; then |
| 12365 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12366 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12367 | else |
| 12368 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12369 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12370 | fi |
| 12371 | ;; |
| 12372 | |
| 12373 | uts4*) |
| 12374 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12375 | hardcode_libdir_flag_spec='-L$libdir' |
| 12376 | hardcode_shlibpath_var=no |
| 12377 | ;; |
| 12378 | |
| 12379 | *) |
| 12380 | ld_shlibs=no |
| 12381 | ;; |
| 12382 | esac |
| 12383 | |
| 12384 | if test sni = "$host_vendor"; then |
| 12385 | case $host in |
| 12386 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12387 | export_dynamic_flag_spec='$wl-Blargedynsym' |
| 12388 | ;; |
| 12389 | esac |
| 12390 | fi |
| 12391 | fi |
| 12392 | |
| 12393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 12394 | printf "%s\n" "$ld_shlibs" >&6; } |
| 12395 | test no = "$ld_shlibs" && can_build_shared=no |
| 12396 | |
| 12397 | with_gnu_ld=$with_gnu_ld |
| 12398 | |
| 12399 | |
| 12400 | |
| 12401 | |
| 12402 | |
| 12403 | |
| 12404 | |
| 12405 | |
| 12406 | |
| 12407 | |
| 12408 | |
| 12409 | |
| 12410 | |
| 12411 | |
| 12412 | |
| 12413 | # |
| 12414 | # Do we need to explicitly link libc? |
| 12415 | # |
| 12416 | case "x$archive_cmds_need_lc" in |
| 12417 | x|xyes) |
| 12418 | # Assume -lc should be added |
| 12419 | archive_cmds_need_lc=yes |
| 12420 | |
| 12421 | if test yes,yes = "$GCC,$enable_shared"; then |
| 12422 | case $archive_cmds in |
| 12423 | *'~'*) |
| 12424 | # FIXME: we may have to deal with multi-command sequences. |
| 12425 | ;; |
| 12426 | '$CC '*) |
| 12427 | # Test whether the compiler implicitly links with -lc since on some |
| 12428 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12429 | # to ld, don't add -lc before -lgcc. |
| 12430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 12431 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 12432 | if test ${lt_cv_archive_cmds_need_lc+y} |
| 12433 | then : |
| 12434 | printf %s "(cached) " >&6 |
| 12435 | else $as_nop |
| 12436 | $RM conftest* |
| 12437 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12438 | |
| 12439 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12440 | (eval $ac_compile) 2>&5 |
| 12441 | ac_status=$? |
| 12442 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12443 | test $ac_status = 0; } 2>conftest.err; then |
| 12444 | soname=conftest |
| 12445 | lib=conftest |
| 12446 | libobjs=conftest.$ac_objext |
| 12447 | deplibs= |
| 12448 | wl=$lt_prog_compiler_wl |
| 12449 | pic_flag=$lt_prog_compiler_pic |
| 12450 | compiler_flags=-v |
| 12451 | linker_flags=-v |
| 12452 | verstring= |
| 12453 | output_objdir=. |
| 12454 | libname=conftest |
| 12455 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 12456 | allow_undefined_flag= |
| 12457 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 12458 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12459 | ac_status=$? |
| 12460 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12461 | test $ac_status = 0; } |
| 12462 | then |
| 12463 | lt_cv_archive_cmds_need_lc=no |
| 12464 | else |
| 12465 | lt_cv_archive_cmds_need_lc=yes |
| 12466 | fi |
| 12467 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 12468 | else |
| 12469 | cat conftest.err 1>&5 |
| 12470 | fi |
| 12471 | $RM conftest* |
| 12472 | |
| 12473 | fi |
| 12474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 12475 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } |
| 12476 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 12477 | ;; |
| 12478 | esac |
| 12479 | fi |
| 12480 | ;; |
| 12481 | esac |
| 12482 | |
| 12483 | |
| 12484 | |
| 12485 | |
| 12486 | |
| 12487 | |
| 12488 | |
| 12489 | |
| 12490 | |
| 12491 | |
| 12492 | |
| 12493 | |
| 12494 | |
| 12495 | |
| 12496 | |
| 12497 | |
| 12498 | |
| 12499 | |
| 12500 | |
| 12501 | |
| 12502 | |
| 12503 | |
| 12504 | |
| 12505 | |
| 12506 | |
| 12507 | |
| 12508 | |
| 12509 | |
| 12510 | |
| 12511 | |
| 12512 | |
| 12513 | |
| 12514 | |
| 12515 | |
| 12516 | |
| 12517 | |
| 12518 | |
| 12519 | |
| 12520 | |
| 12521 | |
| 12522 | |
| 12523 | |
| 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | |
| 12547 | |
| 12548 | |
| 12549 | |
| 12550 | |
| 12551 | |
| 12552 | |
| 12553 | |
| 12554 | |
| 12555 | |
| 12556 | |
| 12557 | |
| 12558 | |
| 12559 | |
| 12560 | |
| 12561 | |
| 12562 | |
| 12563 | |
| 12564 | |
| 12565 | |
| 12566 | |
| 12567 | |
| 12568 | |
| 12569 | |
| 12570 | |
| 12571 | |
| 12572 | |
| 12573 | |
| 12574 | |
| 12575 | |
| 12576 | |
| 12577 | |
| 12578 | |
| 12579 | |
| 12580 | |
| 12581 | |
| 12582 | |
| 12583 | |
| 12584 | |
| 12585 | |
| 12586 | |
| 12587 | |
| 12588 | |
| 12589 | |
| 12590 | |
| 12591 | |
| 12592 | |
| 12593 | |
| 12594 | |
| 12595 | |
| 12596 | |
| 12597 | |
| 12598 | |
| 12599 | |
| 12600 | |
| 12601 | |
| 12602 | |
| 12603 | |
| 12604 | |
| 12605 | |
| 12606 | |
| 12607 | |
| 12608 | |
| 12609 | |
| 12610 | |
| 12611 | |
| 12612 | |
| 12613 | |
| 12614 | |
| 12615 | |
| 12616 | |
| 12617 | |
| 12618 | |
| 12619 | |
| 12620 | |
| 12621 | |
| 12622 | |
| 12623 | |
| 12624 | |
| 12625 | |
| 12626 | |
| 12627 | |
| 12628 | |
| 12629 | |
| 12630 | |
| 12631 | |
| 12632 | |
| 12633 | |
| 12634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 12635 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 12636 | |
| 12637 | if test yes = "$GCC"; then |
| 12638 | case $host_os in |
| 12639 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 12640 | *) lt_awk_arg='/^libraries:/' ;; |
| 12641 | esac |
| 12642 | case $host_os in |
| 12643 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 12644 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 12645 | esac |
| 12646 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 12647 | case $lt_search_path_spec in |
| 12648 | *\;*) |
| 12649 | # if the path contains ";" then we assume it to be the separator |
| 12650 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12651 | # assumed that no part of a normal pathname contains ";" but that should |
| 12652 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12653 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 12654 | ;; |
| 12655 | *) |
| 12656 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 12657 | ;; |
| 12658 | esac |
| 12659 | # Ok, now we have the path, separated by spaces, we can step through it |
| 12660 | # and add multilib dir if necessary... |
| 12661 | lt_tmp_lt_search_path_spec= |
| 12662 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 12663 | # ...but if some path component already ends with the multilib dir we assume |
| 12664 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 12665 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 12666 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 12667 | lt_multi_os_dir= |
| 12668 | ;; |
| 12669 | esac |
| 12670 | for lt_sys_path in $lt_search_path_spec; do |
| 12671 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 12672 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 12673 | elif test -n "$lt_multi_os_dir"; then |
| 12674 | test -d "$lt_sys_path" && \ |
| 12675 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 12676 | fi |
| 12677 | done |
| 12678 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 12679 | BEGIN {RS = " "; FS = "/|\n";} { |
| 12680 | lt_foo = ""; |
| 12681 | lt_count = 0; |
| 12682 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 12683 | if ($lt_i != "" && $lt_i != ".") { |
| 12684 | if ($lt_i == "..") { |
| 12685 | lt_count++; |
| 12686 | } else { |
| 12687 | if (lt_count == 0) { |
| 12688 | lt_foo = "/" $lt_i lt_foo; |
| 12689 | } else { |
| 12690 | lt_count--; |
| 12691 | } |
| 12692 | } |
| 12693 | } |
| 12694 | } |
| 12695 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 12696 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 12697 | }'` |
| 12698 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 12699 | # for these hosts. |
| 12700 | case $host_os in |
| 12701 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 12702 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 12703 | esac |
| 12704 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 12705 | else |
| 12706 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12707 | fi |
| 12708 | library_names_spec= |
| 12709 | libname_spec='lib$name' |
| 12710 | soname_spec= |
| 12711 | shrext_cmds=.so |
| 12712 | postinstall_cmds= |
| 12713 | postuninstall_cmds= |
| 12714 | finish_cmds= |
| 12715 | finish_eval= |
| 12716 | shlibpath_var= |
| 12717 | shlibpath_overrides_runpath=unknown |
| 12718 | version_type=none |
| 12719 | dynamic_linker="$host_os ld.so" |
| 12720 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12721 | need_lib_prefix=unknown |
| 12722 | hardcode_into_libs=no |
| 12723 | |
| 12724 | # when you set need_version to no, make sure it does not cause -set_version |
| 12725 | # flags to be left without arguments |
| 12726 | need_version=unknown |
| 12727 | |
| 12728 | |
| 12729 | |
| 12730 | case $host_os in |
| 12731 | aix3*) |
| 12732 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12733 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 12734 | shlibpath_var=LIBPATH |
| 12735 | |
| 12736 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12737 | soname_spec='$libname$release$shared_ext$major' |
| 12738 | ;; |
| 12739 | |
| 12740 | aix[4-9]*) |
| 12741 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12742 | need_lib_prefix=no |
| 12743 | need_version=no |
| 12744 | hardcode_into_libs=yes |
| 12745 | if test ia64 = "$host_cpu"; then |
| 12746 | # AIX 5 supports IA64 |
| 12747 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 12748 | shlibpath_var=LD_LIBRARY_PATH |
| 12749 | else |
| 12750 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12751 | # for dependence libraries. The import file would start with |
| 12752 | # the line '#! .'. This would cause the generated library to |
| 12753 | # depend on '.', always an invalid library. This was fixed in |
| 12754 | # development snapshots of GCC prior to 3.0. |
| 12755 | case $host_os in |
| 12756 | aix4 | aix4.[01] | aix4.[01].*) |
| 12757 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12758 | echo ' yes ' |
| 12759 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 12760 | : |
| 12761 | else |
| 12762 | can_build_shared=no |
| 12763 | fi |
| 12764 | ;; |
| 12765 | esac |
| 12766 | # Using Import Files as archive members, it is possible to support |
| 12767 | # filename-based versioning of shared library archives on AIX. While |
| 12768 | # this would work for both with and without runtime linking, it will |
| 12769 | # prevent static linking of such archives. So we do filename-based |
| 12770 | # shared library versioning with .so extension only, which is used |
| 12771 | # when both runtime linking and shared linking is enabled. |
| 12772 | # Unfortunately, runtime linking may impact performance, so we do |
| 12773 | # not want this to be the default eventually. Also, we use the |
| 12774 | # versioned .so libs for executables only if there is the -brtl |
| 12775 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 12776 | # To allow for filename-based versioning support, we need to create |
| 12777 | # libNAME.so.V as an archive file, containing: |
| 12778 | # *) an Import File, referring to the versioned filename of the |
| 12779 | # archive as well as the shared archive member, telling the |
| 12780 | # bitwidth (32 or 64) of that shared object, and providing the |
| 12781 | # list of exported symbols of that shared object, eventually |
| 12782 | # decorated with the 'weak' keyword |
| 12783 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 12784 | # it being seen by the linker. |
| 12785 | # At run time we better use the real file rather than another symlink, |
| 12786 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 12787 | |
| 12788 | case $with_aix_soname,$aix_use_runtimelinking in |
| 12789 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 12790 | # soname into executable. Probably we can add versioning support to |
| 12791 | # collect2, so additional links can be useful in future. |
| 12792 | aix,yes) # traditional libtool |
| 12793 | dynamic_linker='AIX unversionable lib.so' |
| 12794 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12795 | # instead of lib<name>.a to let people know that these are not |
| 12796 | # typical AIX shared libraries. |
| 12797 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12798 | ;; |
| 12799 | aix,no) # traditional AIX only |
| 12800 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 12801 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12802 | # and later when we are not doing run time linking. |
| 12803 | library_names_spec='$libname$release.a $libname.a' |
| 12804 | soname_spec='$libname$release$shared_ext$major' |
| 12805 | ;; |
| 12806 | svr4,*) # full svr4 only |
| 12807 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 12808 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12809 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 12810 | shlibpath_overrides_runpath=yes |
| 12811 | ;; |
| 12812 | *,yes) # both, prefer svr4 |
| 12813 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 12814 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12815 | # unpreferred sharedlib libNAME.a needs extra handling |
| 12816 | 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"' |
| 12817 | 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"' |
| 12818 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 12819 | shlibpath_overrides_runpath=yes |
| 12820 | ;; |
| 12821 | *,no) # both, prefer aix |
| 12822 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 12823 | library_names_spec='$libname$release.a $libname.a' |
| 12824 | soname_spec='$libname$release$shared_ext$major' |
| 12825 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 12826 | 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)' |
| 12827 | 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"' |
| 12828 | ;; |
| 12829 | esac |
| 12830 | shlibpath_var=LIBPATH |
| 12831 | fi |
| 12832 | ;; |
| 12833 | |
| 12834 | amigaos*) |
| 12835 | case $host_cpu in |
| 12836 | powerpc) |
| 12837 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 12838 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 12839 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12840 | ;; |
| 12841 | m68k) |
| 12842 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12843 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12844 | 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' |
| 12845 | ;; |
| 12846 | esac |
| 12847 | ;; |
| 12848 | |
| 12849 | beos*) |
| 12850 | library_names_spec='$libname$shared_ext' |
| 12851 | dynamic_linker="$host_os ld.so" |
| 12852 | shlibpath_var=LIBRARY_PATH |
| 12853 | ;; |
| 12854 | |
| 12855 | bsdi[45]*) |
| 12856 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12857 | need_version=no |
| 12858 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12859 | soname_spec='$libname$release$shared_ext$major' |
| 12860 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12861 | shlibpath_var=LD_LIBRARY_PATH |
| 12862 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12863 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12864 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12865 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12866 | # libtool to hard-code these into programs |
| 12867 | ;; |
| 12868 | |
| 12869 | cygwin* | mingw* | pw32* | cegcc*) |
| 12870 | version_type=windows |
| 12871 | shrext_cmds=.dll |
| 12872 | need_version=no |
| 12873 | need_lib_prefix=no |
| 12874 | |
| 12875 | case $GCC,$cc_basename in |
| 12876 | yes,*) |
| 12877 | # gcc |
| 12878 | library_names_spec='$libname.dll.a' |
| 12879 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12880 | postinstall_cmds='base_file=`basename \$file`~ |
| 12881 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12882 | dldir=$destdir/`dirname \$dlpath`~ |
| 12883 | test -d \$dldir || mkdir -p \$dldir~ |
| 12884 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12885 | chmod a+x \$dldir/$dlname~ |
| 12886 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12887 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12888 | fi' |
| 12889 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12890 | dlpath=$dir/\$dldll~ |
| 12891 | $RM \$dlpath' |
| 12892 | shlibpath_overrides_runpath=yes |
| 12893 | |
| 12894 | case $host_os in |
| 12895 | cygwin*) |
| 12896 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12897 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12898 | |
| 12899 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 12900 | ;; |
| 12901 | mingw* | cegcc*) |
| 12902 | # MinGW DLLs use traditional 'lib' prefix |
| 12903 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12904 | ;; |
| 12905 | pw32*) |
| 12906 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12907 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12908 | ;; |
| 12909 | esac |
| 12910 | dynamic_linker='Win32 ld.exe' |
| 12911 | ;; |
| 12912 | |
| 12913 | *,cl*) |
| 12914 | # Native MSVC |
| 12915 | libname_spec='$name' |
| 12916 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12917 | library_names_spec='$libname.dll.lib' |
| 12918 | |
| 12919 | case $build_os in |
| 12920 | mingw*) |
| 12921 | sys_lib_search_path_spec= |
| 12922 | lt_save_ifs=$IFS |
| 12923 | IFS=';' |
| 12924 | for lt_path in $LIB |
| 12925 | do |
| 12926 | IFS=$lt_save_ifs |
| 12927 | # Let DOS variable expansion print the short 8.3 style file name. |
| 12928 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 12929 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 12930 | done |
| 12931 | IFS=$lt_save_ifs |
| 12932 | # Convert to MSYS style. |
| 12933 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 12934 | ;; |
| 12935 | cygwin*) |
| 12936 | # Convert to unix form, then to dos form, then back to unix form |
| 12937 | # but this time dos style (no spaces!) so that the unix form looks |
| 12938 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 12939 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 12940 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 12941 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12942 | ;; |
| 12943 | *) |
| 12944 | sys_lib_search_path_spec=$LIB |
| 12945 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 12946 | # It is most probably a Windows format PATH. |
| 12947 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12948 | else |
| 12949 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12950 | fi |
| 12951 | # FIXME: find the short name or the path components, as spaces are |
| 12952 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 12953 | ;; |
| 12954 | esac |
| 12955 | |
| 12956 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12957 | postinstall_cmds='base_file=`basename \$file`~ |
| 12958 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12959 | dldir=$destdir/`dirname \$dlpath`~ |
| 12960 | test -d \$dldir || mkdir -p \$dldir~ |
| 12961 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 12962 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12963 | dlpath=$dir/\$dldll~ |
| 12964 | $RM \$dlpath' |
| 12965 | shlibpath_overrides_runpath=yes |
| 12966 | dynamic_linker='Win32 link.exe' |
| 12967 | ;; |
| 12968 | |
| 12969 | *) |
| 12970 | # Assume MSVC wrapper |
| 12971 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 12972 | dynamic_linker='Win32 ld.exe' |
| 12973 | ;; |
| 12974 | esac |
| 12975 | # FIXME: first we should search . and the directory the executable is in |
| 12976 | shlibpath_var=PATH |
| 12977 | ;; |
| 12978 | |
| 12979 | darwin* | rhapsody*) |
| 12980 | dynamic_linker="$host_os dyld" |
| 12981 | version_type=darwin |
| 12982 | need_lib_prefix=no |
| 12983 | need_version=no |
| 12984 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 12985 | soname_spec='$libname$release$major$shared_ext' |
| 12986 | shlibpath_overrides_runpath=yes |
| 12987 | shlibpath_var=DYLD_LIBRARY_PATH |
| 12988 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 12989 | |
| 12990 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 12991 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12992 | ;; |
| 12993 | |
| 12994 | dgux*) |
| 12995 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12996 | need_lib_prefix=no |
| 12997 | need_version=no |
| 12998 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12999 | soname_spec='$libname$release$shared_ext$major' |
| 13000 | shlibpath_var=LD_LIBRARY_PATH |
| 13001 | ;; |
| 13002 | |
| 13003 | freebsd* | dragonfly*) |
| 13004 | # DragonFly does not have aout. When/if they implement a new |
| 13005 | # versioning mechanism, adjust this. |
| 13006 | if test -x /usr/bin/objformat; then |
| 13007 | objformat=`/usr/bin/objformat` |
| 13008 | else |
| 13009 | case $host_os in |
| 13010 | freebsd[23].*) objformat=aout ;; |
| 13011 | *) objformat=elf ;; |
| 13012 | esac |
| 13013 | fi |
| 13014 | version_type=freebsd-$objformat |
| 13015 | case $version_type in |
| 13016 | freebsd-elf*) |
| 13017 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13018 | soname_spec='$libname$release$shared_ext$major' |
| 13019 | need_version=no |
| 13020 | need_lib_prefix=no |
| 13021 | ;; |
| 13022 | freebsd-*) |
| 13023 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13024 | need_version=yes |
| 13025 | ;; |
| 13026 | esac |
| 13027 | shlibpath_var=LD_LIBRARY_PATH |
| 13028 | case $host_os in |
| 13029 | freebsd2.*) |
| 13030 | shlibpath_overrides_runpath=yes |
| 13031 | ;; |
| 13032 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 13033 | shlibpath_overrides_runpath=yes |
| 13034 | hardcode_into_libs=yes |
| 13035 | ;; |
| 13036 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13037 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13038 | shlibpath_overrides_runpath=no |
| 13039 | hardcode_into_libs=yes |
| 13040 | ;; |
| 13041 | *) # from 4.6 on, and DragonFly |
| 13042 | shlibpath_overrides_runpath=yes |
| 13043 | hardcode_into_libs=yes |
| 13044 | ;; |
| 13045 | esac |
| 13046 | ;; |
| 13047 | |
| 13048 | haiku*) |
| 13049 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13050 | need_lib_prefix=no |
| 13051 | need_version=no |
| 13052 | dynamic_linker="$host_os runtime_loader" |
| 13053 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13054 | soname_spec='$libname$release$shared_ext$major' |
| 13055 | shlibpath_var=LIBRARY_PATH |
| 13056 | shlibpath_overrides_runpath=no |
| 13057 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 13058 | hardcode_into_libs=yes |
| 13059 | ;; |
| 13060 | |
| 13061 | hpux9* | hpux10* | hpux11*) |
| 13062 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13063 | # link against other versions. |
| 13064 | version_type=sunos |
| 13065 | need_lib_prefix=no |
| 13066 | need_version=no |
| 13067 | case $host_cpu in |
| 13068 | ia64*) |
| 13069 | shrext_cmds='.so' |
| 13070 | hardcode_into_libs=yes |
| 13071 | dynamic_linker="$host_os dld.so" |
| 13072 | shlibpath_var=LD_LIBRARY_PATH |
| 13073 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13074 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13075 | soname_spec='$libname$release$shared_ext$major' |
| 13076 | if test 32 = "$HPUX_IA64_MODE"; then |
| 13077 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13078 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 13079 | else |
| 13080 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13081 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 13082 | fi |
| 13083 | ;; |
| 13084 | hppa*64*) |
| 13085 | shrext_cmds='.sl' |
| 13086 | hardcode_into_libs=yes |
| 13087 | dynamic_linker="$host_os dld.sl" |
| 13088 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13089 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13090 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13091 | soname_spec='$libname$release$shared_ext$major' |
| 13092 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13093 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13094 | ;; |
| 13095 | *) |
| 13096 | shrext_cmds='.sl' |
| 13097 | dynamic_linker="$host_os dld.sl" |
| 13098 | shlibpath_var=SHLIB_PATH |
| 13099 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13100 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13101 | soname_spec='$libname$release$shared_ext$major' |
| 13102 | ;; |
| 13103 | esac |
| 13104 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 13105 | postinstall_cmds='chmod 555 $lib' |
| 13106 | # or fails outright, so override atomically: |
| 13107 | install_override_mode=555 |
| 13108 | ;; |
| 13109 | |
| 13110 | interix[3-9]*) |
| 13111 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13112 | need_lib_prefix=no |
| 13113 | need_version=no |
| 13114 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13115 | soname_spec='$libname$release$shared_ext$major' |
| 13116 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13117 | shlibpath_var=LD_LIBRARY_PATH |
| 13118 | shlibpath_overrides_runpath=no |
| 13119 | hardcode_into_libs=yes |
| 13120 | ;; |
| 13121 | |
| 13122 | irix5* | irix6* | nonstopux*) |
| 13123 | case $host_os in |
| 13124 | nonstopux*) version_type=nonstopux ;; |
| 13125 | *) |
| 13126 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 13127 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13128 | else |
| 13129 | version_type=irix |
| 13130 | fi ;; |
| 13131 | esac |
| 13132 | need_lib_prefix=no |
| 13133 | need_version=no |
| 13134 | soname_spec='$libname$release$shared_ext$major' |
| 13135 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 13136 | case $host_os in |
| 13137 | irix5* | nonstopux*) |
| 13138 | libsuff= shlibsuff= |
| 13139 | ;; |
| 13140 | *) |
| 13141 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13142 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13143 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13144 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13145 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13146 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13147 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13148 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13149 | esac |
| 13150 | ;; |
| 13151 | esac |
| 13152 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13153 | shlibpath_overrides_runpath=no |
| 13154 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 13155 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 13156 | hardcode_into_libs=yes |
| 13157 | ;; |
| 13158 | |
| 13159 | # No shared lib support for Linux oldld, aout, or coff. |
| 13160 | linux*oldld* | linux*aout* | linux*coff*) |
| 13161 | dynamic_linker=no |
| 13162 | ;; |
| 13163 | |
| 13164 | linux*android*) |
| 13165 | version_type=none # Android doesn't support versioned libraries. |
| 13166 | need_lib_prefix=no |
| 13167 | need_version=no |
| 13168 | library_names_spec='$libname$release$shared_ext' |
| 13169 | soname_spec='$libname$release$shared_ext' |
| 13170 | finish_cmds= |
| 13171 | shlibpath_var=LD_LIBRARY_PATH |
| 13172 | shlibpath_overrides_runpath=yes |
| 13173 | |
| 13174 | # This implies no fast_install, which is unacceptable. |
| 13175 | # Some rework will be needed to allow for fast_install |
| 13176 | # before this can be enabled. |
| 13177 | hardcode_into_libs=yes |
| 13178 | |
| 13179 | dynamic_linker='Android linker' |
| 13180 | # Don't embed -rpath directories since the linker doesn't support them. |
| 13181 | hardcode_libdir_flag_spec='-L$libdir' |
| 13182 | ;; |
| 13183 | |
| 13184 | # This must be glibc/ELF. |
| 13185 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 13186 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13187 | need_lib_prefix=no |
| 13188 | need_version=no |
| 13189 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13190 | soname_spec='$libname$release$shared_ext$major' |
| 13191 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13192 | shlibpath_var=LD_LIBRARY_PATH |
| 13193 | shlibpath_overrides_runpath=no |
| 13194 | |
| 13195 | # Some binutils ld are patched to set DT_RUNPATH |
| 13196 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 13197 | then : |
| 13198 | printf %s "(cached) " >&6 |
| 13199 | else $as_nop |
| 13200 | lt_cv_shlibpath_overrides_runpath=no |
| 13201 | save_LDFLAGS=$LDFLAGS |
| 13202 | save_libdir=$libdir |
| 13203 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 13204 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 13205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13206 | /* end confdefs.h. */ |
| 13207 | |
| 13208 | int |
| 13209 | main (void) |
| 13210 | { |
| 13211 | |
| 13212 | ; |
| 13213 | return 0; |
| 13214 | } |
| 13215 | _ACEOF |
| 13216 | if ac_fn_c_try_link "$LINENO" |
| 13217 | then : |
| 13218 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 13219 | then : |
| 13220 | lt_cv_shlibpath_overrides_runpath=yes |
| 13221 | fi |
| 13222 | fi |
| 13223 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13224 | conftest$ac_exeext conftest.$ac_ext |
| 13225 | LDFLAGS=$save_LDFLAGS |
| 13226 | libdir=$save_libdir |
| 13227 | |
| 13228 | fi |
| 13229 | |
| 13230 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 13231 | |
| 13232 | # This implies no fast_install, which is unacceptable. |
| 13233 | # Some rework will be needed to allow for fast_install |
| 13234 | # before this can be enabled. |
| 13235 | hardcode_into_libs=yes |
| 13236 | |
| 13237 | # Ideally, we could use ldconfig to report *all* directores which are |
| 13238 | # searched for libraries, however this is still not possible. Aside from not |
| 13239 | # being certain /sbin/ldconfig is available, command |
| 13240 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 13241 | # even though it is searched at run-time. Try to do the best guess by |
| 13242 | # appending ld.so.conf contents (and includes) to the search path. |
| 13243 | if test -f /etc/ld.so.conf; then |
| 13244 | 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' ' '` |
| 13245 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13246 | fi |
| 13247 | |
| 13248 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13249 | # powerpc, because MkLinux only supported shared libraries with the |
| 13250 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13251 | # most powerpc-linux boxes support dynamic linking these days and |
| 13252 | # people can always --disable-shared, the test was removed, and we |
| 13253 | # assume the GNU/Linux dynamic linker is in use. |
| 13254 | dynamic_linker='GNU/Linux ld.so' |
| 13255 | ;; |
| 13256 | |
| 13257 | netbsdelf*-gnu) |
| 13258 | version_type=linux |
| 13259 | need_lib_prefix=no |
| 13260 | need_version=no |
| 13261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13262 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13263 | shlibpath_var=LD_LIBRARY_PATH |
| 13264 | shlibpath_overrides_runpath=no |
| 13265 | hardcode_into_libs=yes |
| 13266 | dynamic_linker='NetBSD ld.elf_so' |
| 13267 | ;; |
| 13268 | |
| 13269 | netbsd*) |
| 13270 | version_type=sunos |
| 13271 | need_lib_prefix=no |
| 13272 | need_version=no |
| 13273 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13274 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13275 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13276 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13277 | else |
| 13278 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13279 | soname_spec='$libname$release$shared_ext$major' |
| 13280 | dynamic_linker='NetBSD ld.elf_so' |
| 13281 | fi |
| 13282 | shlibpath_var=LD_LIBRARY_PATH |
| 13283 | shlibpath_overrides_runpath=yes |
| 13284 | hardcode_into_libs=yes |
| 13285 | ;; |
| 13286 | |
| 13287 | newsos6) |
| 13288 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13289 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13290 | shlibpath_var=LD_LIBRARY_PATH |
| 13291 | shlibpath_overrides_runpath=yes |
| 13292 | ;; |
| 13293 | |
| 13294 | *nto* | *qnx*) |
| 13295 | version_type=qnx |
| 13296 | need_lib_prefix=no |
| 13297 | need_version=no |
| 13298 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13299 | soname_spec='$libname$release$shared_ext$major' |
| 13300 | shlibpath_var=LD_LIBRARY_PATH |
| 13301 | shlibpath_overrides_runpath=no |
| 13302 | hardcode_into_libs=yes |
| 13303 | dynamic_linker='ldqnx.so' |
| 13304 | ;; |
| 13305 | |
| 13306 | openbsd* | bitrig*) |
| 13307 | version_type=sunos |
| 13308 | sys_lib_dlsearch_path_spec=/usr/lib |
| 13309 | need_lib_prefix=no |
| 13310 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 13311 | need_version=no |
| 13312 | else |
| 13313 | need_version=yes |
| 13314 | fi |
| 13315 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13316 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13317 | shlibpath_var=LD_LIBRARY_PATH |
| 13318 | shlibpath_overrides_runpath=yes |
| 13319 | ;; |
| 13320 | |
| 13321 | os2*) |
| 13322 | libname_spec='$name' |
| 13323 | version_type=windows |
| 13324 | shrext_cmds=.dll |
| 13325 | need_version=no |
| 13326 | need_lib_prefix=no |
| 13327 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 13328 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 13329 | v=$($ECHO $release$versuffix | tr -d .-); |
| 13330 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 13331 | $ECHO $n$v`$shared_ext' |
| 13332 | library_names_spec='${libname}_dll.$libext' |
| 13333 | dynamic_linker='OS/2 ld.exe' |
| 13334 | shlibpath_var=BEGINLIBPATH |
| 13335 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13336 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13337 | postinstall_cmds='base_file=`basename \$file`~ |
| 13338 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 13339 | dldir=$destdir/`dirname \$dlpath`~ |
| 13340 | test -d \$dldir || mkdir -p \$dldir~ |
| 13341 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13342 | chmod a+x \$dldir/$dlname~ |
| 13343 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13344 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13345 | fi' |
| 13346 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 13347 | dlpath=$dir/\$dldll~ |
| 13348 | $RM \$dlpath' |
| 13349 | ;; |
| 13350 | |
| 13351 | osf3* | osf4* | osf5*) |
| 13352 | version_type=osf |
| 13353 | need_lib_prefix=no |
| 13354 | need_version=no |
| 13355 | soname_spec='$libname$release$shared_ext$major' |
| 13356 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13357 | shlibpath_var=LD_LIBRARY_PATH |
| 13358 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13359 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13360 | ;; |
| 13361 | |
| 13362 | rdos*) |
| 13363 | dynamic_linker=no |
| 13364 | ;; |
| 13365 | |
| 13366 | solaris*) |
| 13367 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13368 | need_lib_prefix=no |
| 13369 | need_version=no |
| 13370 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13371 | soname_spec='$libname$release$shared_ext$major' |
| 13372 | shlibpath_var=LD_LIBRARY_PATH |
| 13373 | shlibpath_overrides_runpath=yes |
| 13374 | hardcode_into_libs=yes |
| 13375 | # ldd complains unless libraries are executable |
| 13376 | postinstall_cmds='chmod +x $lib' |
| 13377 | ;; |
| 13378 | |
| 13379 | sunos4*) |
| 13380 | version_type=sunos |
| 13381 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13382 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13383 | shlibpath_var=LD_LIBRARY_PATH |
| 13384 | shlibpath_overrides_runpath=yes |
| 13385 | if test yes = "$with_gnu_ld"; then |
| 13386 | need_lib_prefix=no |
| 13387 | fi |
| 13388 | need_version=yes |
| 13389 | ;; |
| 13390 | |
| 13391 | sysv4 | sysv4.3*) |
| 13392 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13393 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13394 | soname_spec='$libname$release$shared_ext$major' |
| 13395 | shlibpath_var=LD_LIBRARY_PATH |
| 13396 | case $host_vendor in |
| 13397 | sni) |
| 13398 | shlibpath_overrides_runpath=no |
| 13399 | need_lib_prefix=no |
| 13400 | runpath_var=LD_RUN_PATH |
| 13401 | ;; |
| 13402 | siemens) |
| 13403 | need_lib_prefix=no |
| 13404 | ;; |
| 13405 | motorola) |
| 13406 | need_lib_prefix=no |
| 13407 | need_version=no |
| 13408 | shlibpath_overrides_runpath=no |
| 13409 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13410 | ;; |
| 13411 | esac |
| 13412 | ;; |
| 13413 | |
| 13414 | sysv4*MP*) |
| 13415 | if test -d /usr/nec; then |
| 13416 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13417 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 13418 | soname_spec='$libname$shared_ext.$major' |
| 13419 | shlibpath_var=LD_LIBRARY_PATH |
| 13420 | fi |
| 13421 | ;; |
| 13422 | |
| 13423 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13424 | version_type=sco |
| 13425 | need_lib_prefix=no |
| 13426 | need_version=no |
| 13427 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 13428 | soname_spec='$libname$release$shared_ext$major' |
| 13429 | shlibpath_var=LD_LIBRARY_PATH |
| 13430 | shlibpath_overrides_runpath=yes |
| 13431 | hardcode_into_libs=yes |
| 13432 | if test yes = "$with_gnu_ld"; then |
| 13433 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13434 | else |
| 13435 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13436 | case $host_os in |
| 13437 | sco3.2v5*) |
| 13438 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13439 | ;; |
| 13440 | esac |
| 13441 | fi |
| 13442 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13443 | ;; |
| 13444 | |
| 13445 | tpf*) |
| 13446 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13447 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13448 | need_lib_prefix=no |
| 13449 | need_version=no |
| 13450 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13451 | shlibpath_var=LD_LIBRARY_PATH |
| 13452 | shlibpath_overrides_runpath=no |
| 13453 | hardcode_into_libs=yes |
| 13454 | ;; |
| 13455 | |
| 13456 | uts4*) |
| 13457 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13458 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13459 | soname_spec='$libname$release$shared_ext$major' |
| 13460 | shlibpath_var=LD_LIBRARY_PATH |
| 13461 | ;; |
| 13462 | |
| 13463 | *) |
| 13464 | dynamic_linker=no |
| 13465 | ;; |
| 13466 | esac |
| 13467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 13468 | printf "%s\n" "$dynamic_linker" >&6; } |
| 13469 | test no = "$dynamic_linker" && can_build_shared=no |
| 13470 | |
| 13471 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13472 | if test yes = "$GCC"; then |
| 13473 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13474 | fi |
| 13475 | |
| 13476 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 13477 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 13478 | fi |
| 13479 | |
| 13480 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 13481 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 13482 | fi |
| 13483 | |
| 13484 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 13485 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 13486 | |
| 13487 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 13488 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 13489 | |
| 13490 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 13491 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 13492 | |
| 13493 | |
| 13494 | |
| 13495 | |
| 13496 | |
| 13497 | |
| 13498 | |
| 13499 | |
| 13500 | |
| 13501 | |
| 13502 | |
| 13503 | |
| 13504 | |
| 13505 | |
| 13506 | |
| 13507 | |
| 13508 | |
| 13509 | |
| 13510 | |
| 13511 | |
| 13512 | |
| 13513 | |
| 13514 | |
| 13515 | |
| 13516 | |
| 13517 | |
| 13518 | |
| 13519 | |
| 13520 | |
| 13521 | |
| 13522 | |
| 13523 | |
| 13524 | |
| 13525 | |
| 13526 | |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | |
| 13542 | |
| 13543 | |
| 13544 | |
| 13545 | |
| 13546 | |
| 13547 | |
| 13548 | |
| 13549 | |
| 13550 | |
| 13551 | |
| 13552 | |
| 13553 | |
| 13554 | |
| 13555 | |
| 13556 | |
| 13557 | |
| 13558 | |
| 13559 | |
| 13560 | |
| 13561 | |
| 13562 | |
| 13563 | |
| 13564 | |
| 13565 | |
| 13566 | |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 13590 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 13591 | hardcode_action= |
| 13592 | if test -n "$hardcode_libdir_flag_spec" || |
| 13593 | test -n "$runpath_var" || |
| 13594 | test yes = "$hardcode_automatic"; then |
| 13595 | |
| 13596 | # We can hardcode non-existent directories. |
| 13597 | if test no != "$hardcode_direct" && |
| 13598 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13599 | # have to relink, otherwise we might link with an installed library |
| 13600 | # when we should be linking with a yet-to-be-installed one |
| 13601 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 13602 | test no != "$hardcode_minus_L"; then |
| 13603 | # Linking always hardcodes the temporary library directory. |
| 13604 | hardcode_action=relink |
| 13605 | else |
| 13606 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13607 | hardcode_action=immediate |
| 13608 | fi |
| 13609 | else |
| 13610 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13611 | # directories. |
| 13612 | hardcode_action=unsupported |
| 13613 | fi |
| 13614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 13615 | printf "%s\n" "$hardcode_action" >&6; } |
| 13616 | |
| 13617 | if test relink = "$hardcode_action" || |
| 13618 | test yes = "$inherit_rpath"; then |
| 13619 | # Fast installation is not supported |
| 13620 | enable_fast_install=no |
| 13621 | elif test yes = "$shlibpath_overrides_runpath" || |
| 13622 | test no = "$enable_shared"; then |
| 13623 | # Fast installation is not necessary |
| 13624 | enable_fast_install=needless |
| 13625 | fi |
| 13626 | |
| 13627 | |
| 13628 | |
| 13629 | |
| 13630 | |
| 13631 | |
| 13632 | if test yes != "$enable_dlopen"; then |
| 13633 | enable_dlopen=unknown |
| 13634 | enable_dlopen_self=unknown |
| 13635 | enable_dlopen_self_static=unknown |
| 13636 | else |
| 13637 | lt_cv_dlopen=no |
| 13638 | lt_cv_dlopen_libs= |
| 13639 | |
| 13640 | case $host_os in |
| 13641 | beos*) |
| 13642 | lt_cv_dlopen=load_add_on |
| 13643 | lt_cv_dlopen_libs= |
| 13644 | lt_cv_dlopen_self=yes |
| 13645 | ;; |
| 13646 | |
| 13647 | mingw* | pw32* | cegcc*) |
| 13648 | lt_cv_dlopen=LoadLibrary |
| 13649 | lt_cv_dlopen_libs= |
| 13650 | ;; |
| 13651 | |
| 13652 | cygwin*) |
| 13653 | lt_cv_dlopen=dlopen |
| 13654 | lt_cv_dlopen_libs= |
| 13655 | ;; |
| 13656 | |
| 13657 | darwin*) |
| 13658 | # if libdl is installed we need to link against it |
| 13659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13660 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 13661 | if test ${ac_cv_lib_dl_dlopen+y} |
| 13662 | then : |
| 13663 | printf %s "(cached) " >&6 |
| 13664 | else $as_nop |
| 13665 | ac_check_lib_save_LIBS=$LIBS |
| 13666 | LIBS="-ldl $LIBS" |
| 13667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13668 | /* end confdefs.h. */ |
| 13669 | |
| 13670 | /* Override any GCC internal prototype to avoid an error. |
| 13671 | Use char because int might match the return type of a GCC |
| 13672 | builtin and then its argument prototype would still apply. */ |
| 13673 | char dlopen (); |
| 13674 | int |
| 13675 | main (void) |
| 13676 | { |
| 13677 | return dlopen (); |
| 13678 | ; |
| 13679 | return 0; |
| 13680 | } |
| 13681 | _ACEOF |
| 13682 | if ac_fn_c_try_link "$LINENO" |
| 13683 | then : |
| 13684 | ac_cv_lib_dl_dlopen=yes |
| 13685 | else $as_nop |
| 13686 | ac_cv_lib_dl_dlopen=no |
| 13687 | fi |
| 13688 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13689 | conftest$ac_exeext conftest.$ac_ext |
| 13690 | LIBS=$ac_check_lib_save_LIBS |
| 13691 | fi |
| 13692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13693 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 13694 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13695 | then : |
| 13696 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13697 | else $as_nop |
| 13698 | |
| 13699 | lt_cv_dlopen=dyld |
| 13700 | lt_cv_dlopen_libs= |
| 13701 | lt_cv_dlopen_self=yes |
| 13702 | |
| 13703 | fi |
| 13704 | |
| 13705 | ;; |
| 13706 | |
| 13707 | tpf*) |
| 13708 | # Don't try to run any link tests for TPF. We know it's impossible |
| 13709 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 13710 | lt_cv_dlopen=dlopen |
| 13711 | lt_cv_dlopen_libs= |
| 13712 | lt_cv_dlopen_self=no |
| 13713 | ;; |
| 13714 | |
| 13715 | *) |
| 13716 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 13717 | if test "x$ac_cv_func_shl_load" = xyes |
| 13718 | then : |
| 13719 | lt_cv_dlopen=shl_load |
| 13720 | else $as_nop |
| 13721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 13722 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 13723 | if test ${ac_cv_lib_dld_shl_load+y} |
| 13724 | then : |
| 13725 | printf %s "(cached) " >&6 |
| 13726 | else $as_nop |
| 13727 | ac_check_lib_save_LIBS=$LIBS |
| 13728 | LIBS="-ldld $LIBS" |
| 13729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13730 | /* end confdefs.h. */ |
| 13731 | |
| 13732 | /* Override any GCC internal prototype to avoid an error. |
| 13733 | Use char because int might match the return type of a GCC |
| 13734 | builtin and then its argument prototype would still apply. */ |
| 13735 | char shl_load (); |
| 13736 | int |
| 13737 | main (void) |
| 13738 | { |
| 13739 | return shl_load (); |
| 13740 | ; |
| 13741 | return 0; |
| 13742 | } |
| 13743 | _ACEOF |
| 13744 | if ac_fn_c_try_link "$LINENO" |
| 13745 | then : |
| 13746 | ac_cv_lib_dld_shl_load=yes |
| 13747 | else $as_nop |
| 13748 | ac_cv_lib_dld_shl_load=no |
| 13749 | fi |
| 13750 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13751 | conftest$ac_exeext conftest.$ac_ext |
| 13752 | LIBS=$ac_check_lib_save_LIBS |
| 13753 | fi |
| 13754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13755 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 13756 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 13757 | then : |
| 13758 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 13759 | else $as_nop |
| 13760 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 13761 | if test "x$ac_cv_func_dlopen" = xyes |
| 13762 | then : |
| 13763 | lt_cv_dlopen=dlopen |
| 13764 | else $as_nop |
| 13765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13766 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 13767 | if test ${ac_cv_lib_dl_dlopen+y} |
| 13768 | then : |
| 13769 | printf %s "(cached) " >&6 |
| 13770 | else $as_nop |
| 13771 | ac_check_lib_save_LIBS=$LIBS |
| 13772 | LIBS="-ldl $LIBS" |
| 13773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13774 | /* end confdefs.h. */ |
| 13775 | |
| 13776 | /* Override any GCC internal prototype to avoid an error. |
| 13777 | Use char because int might match the return type of a GCC |
| 13778 | builtin and then its argument prototype would still apply. */ |
| 13779 | char dlopen (); |
| 13780 | int |
| 13781 | main (void) |
| 13782 | { |
| 13783 | return dlopen (); |
| 13784 | ; |
| 13785 | return 0; |
| 13786 | } |
| 13787 | _ACEOF |
| 13788 | if ac_fn_c_try_link "$LINENO" |
| 13789 | then : |
| 13790 | ac_cv_lib_dl_dlopen=yes |
| 13791 | else $as_nop |
| 13792 | ac_cv_lib_dl_dlopen=no |
| 13793 | fi |
| 13794 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13795 | conftest$ac_exeext conftest.$ac_ext |
| 13796 | LIBS=$ac_check_lib_save_LIBS |
| 13797 | fi |
| 13798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13799 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 13800 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13801 | then : |
| 13802 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13803 | else $as_nop |
| 13804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 13805 | printf %s "checking for dlopen in -lsvld... " >&6; } |
| 13806 | if test ${ac_cv_lib_svld_dlopen+y} |
| 13807 | then : |
| 13808 | printf %s "(cached) " >&6 |
| 13809 | else $as_nop |
| 13810 | ac_check_lib_save_LIBS=$LIBS |
| 13811 | LIBS="-lsvld $LIBS" |
| 13812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13813 | /* end confdefs.h. */ |
| 13814 | |
| 13815 | /* Override any GCC internal prototype to avoid an error. |
| 13816 | Use char because int might match the return type of a GCC |
| 13817 | builtin and then its argument prototype would still apply. */ |
| 13818 | char dlopen (); |
| 13819 | int |
| 13820 | main (void) |
| 13821 | { |
| 13822 | return dlopen (); |
| 13823 | ; |
| 13824 | return 0; |
| 13825 | } |
| 13826 | _ACEOF |
| 13827 | if ac_fn_c_try_link "$LINENO" |
| 13828 | then : |
| 13829 | ac_cv_lib_svld_dlopen=yes |
| 13830 | else $as_nop |
| 13831 | ac_cv_lib_svld_dlopen=no |
| 13832 | fi |
| 13833 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13834 | conftest$ac_exeext conftest.$ac_ext |
| 13835 | LIBS=$ac_check_lib_save_LIBS |
| 13836 | fi |
| 13837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13838 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } |
| 13839 | if test "x$ac_cv_lib_svld_dlopen" = xyes |
| 13840 | then : |
| 13841 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 13842 | else $as_nop |
| 13843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 13844 | printf %s "checking for dld_link in -ldld... " >&6; } |
| 13845 | if test ${ac_cv_lib_dld_dld_link+y} |
| 13846 | then : |
| 13847 | printf %s "(cached) " >&6 |
| 13848 | else $as_nop |
| 13849 | ac_check_lib_save_LIBS=$LIBS |
| 13850 | LIBS="-ldld $LIBS" |
| 13851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13852 | /* end confdefs.h. */ |
| 13853 | |
| 13854 | /* Override any GCC internal prototype to avoid an error. |
| 13855 | Use char because int might match the return type of a GCC |
| 13856 | builtin and then its argument prototype would still apply. */ |
| 13857 | char dld_link (); |
| 13858 | int |
| 13859 | main (void) |
| 13860 | { |
| 13861 | return dld_link (); |
| 13862 | ; |
| 13863 | return 0; |
| 13864 | } |
| 13865 | _ACEOF |
| 13866 | if ac_fn_c_try_link "$LINENO" |
| 13867 | then : |
| 13868 | ac_cv_lib_dld_dld_link=yes |
| 13869 | else $as_nop |
| 13870 | ac_cv_lib_dld_dld_link=no |
| 13871 | fi |
| 13872 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13873 | conftest$ac_exeext conftest.$ac_ext |
| 13874 | LIBS=$ac_check_lib_save_LIBS |
| 13875 | fi |
| 13876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13877 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } |
| 13878 | if test "x$ac_cv_lib_dld_dld_link" = xyes |
| 13879 | then : |
| 13880 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 13881 | fi |
| 13882 | |
| 13883 | |
| 13884 | fi |
| 13885 | |
| 13886 | |
| 13887 | fi |
| 13888 | |
| 13889 | |
| 13890 | fi |
| 13891 | |
| 13892 | |
| 13893 | fi |
| 13894 | |
| 13895 | |
| 13896 | fi |
| 13897 | |
| 13898 | ;; |
| 13899 | esac |
| 13900 | |
| 13901 | if test no = "$lt_cv_dlopen"; then |
| 13902 | enable_dlopen=no |
| 13903 | else |
| 13904 | enable_dlopen=yes |
| 13905 | fi |
| 13906 | |
| 13907 | case $lt_cv_dlopen in |
| 13908 | dlopen) |
| 13909 | save_CPPFLAGS=$CPPFLAGS |
| 13910 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13911 | |
| 13912 | save_LDFLAGS=$LDFLAGS |
| 13913 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13914 | |
| 13915 | save_LIBS=$LIBS |
| 13916 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13917 | |
| 13918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 13919 | printf %s "checking whether a program can dlopen itself... " >&6; } |
| 13920 | if test ${lt_cv_dlopen_self+y} |
| 13921 | then : |
| 13922 | printf %s "(cached) " >&6 |
| 13923 | else $as_nop |
| 13924 | if test yes = "$cross_compiling"; then : |
| 13925 | lt_cv_dlopen_self=cross |
| 13926 | else |
| 13927 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13928 | lt_status=$lt_dlunknown |
| 13929 | cat > conftest.$ac_ext <<_LT_EOF |
| 13930 | #line $LINENO "configure" |
| 13931 | #include "confdefs.h" |
| 13932 | |
| 13933 | #if HAVE_DLFCN_H |
| 13934 | #include <dlfcn.h> |
| 13935 | #endif |
| 13936 | |
| 13937 | #include <stdio.h> |
| 13938 | |
| 13939 | #ifdef RTLD_GLOBAL |
| 13940 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13941 | #else |
| 13942 | # ifdef DL_GLOBAL |
| 13943 | # define LT_DLGLOBAL DL_GLOBAL |
| 13944 | # else |
| 13945 | # define LT_DLGLOBAL 0 |
| 13946 | # endif |
| 13947 | #endif |
| 13948 | |
| 13949 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13950 | find out it does not work in some platform. */ |
| 13951 | #ifndef LT_DLLAZY_OR_NOW |
| 13952 | # ifdef RTLD_LAZY |
| 13953 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13954 | # else |
| 13955 | # ifdef DL_LAZY |
| 13956 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13957 | # else |
| 13958 | # ifdef RTLD_NOW |
| 13959 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13960 | # else |
| 13961 | # ifdef DL_NOW |
| 13962 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13963 | # else |
| 13964 | # define LT_DLLAZY_OR_NOW 0 |
| 13965 | # endif |
| 13966 | # endif |
| 13967 | # endif |
| 13968 | # endif |
| 13969 | #endif |
| 13970 | |
| 13971 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 13972 | correspondingly for the symbols needed. */ |
| 13973 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13974 | int fnord () __attribute__((visibility("default"))); |
| 13975 | #endif |
| 13976 | |
| 13977 | int fnord () { return 42; } |
| 13978 | int main () |
| 13979 | { |
| 13980 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13981 | int status = $lt_dlunknown; |
| 13982 | |
| 13983 | if (self) |
| 13984 | { |
| 13985 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13986 | else |
| 13987 | { |
| 13988 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13989 | else puts (dlerror ()); |
| 13990 | } |
| 13991 | /* dlclose (self); */ |
| 13992 | } |
| 13993 | else |
| 13994 | puts (dlerror ()); |
| 13995 | |
| 13996 | return status; |
| 13997 | } |
| 13998 | _LT_EOF |
| 13999 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 14000 | (eval $ac_link) 2>&5 |
| 14001 | ac_status=$? |
| 14002 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14003 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 14004 | (./conftest; exit; ) >&5 2>/dev/null |
| 14005 | lt_status=$? |
| 14006 | case x$lt_status in |
| 14007 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14008 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14009 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 14010 | esac |
| 14011 | else : |
| 14012 | # compilation failed |
| 14013 | lt_cv_dlopen_self=no |
| 14014 | fi |
| 14015 | fi |
| 14016 | rm -fr conftest* |
| 14017 | |
| 14018 | |
| 14019 | fi |
| 14020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 14021 | printf "%s\n" "$lt_cv_dlopen_self" >&6; } |
| 14022 | |
| 14023 | if test yes = "$lt_cv_dlopen_self"; then |
| 14024 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 14025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 14026 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; } |
| 14027 | if test ${lt_cv_dlopen_self_static+y} |
| 14028 | then : |
| 14029 | printf %s "(cached) " >&6 |
| 14030 | else $as_nop |
| 14031 | if test yes = "$cross_compiling"; then : |
| 14032 | lt_cv_dlopen_self_static=cross |
| 14033 | else |
| 14034 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14035 | lt_status=$lt_dlunknown |
| 14036 | cat > conftest.$ac_ext <<_LT_EOF |
| 14037 | #line $LINENO "configure" |
| 14038 | #include "confdefs.h" |
| 14039 | |
| 14040 | #if HAVE_DLFCN_H |
| 14041 | #include <dlfcn.h> |
| 14042 | #endif |
| 14043 | |
| 14044 | #include <stdio.h> |
| 14045 | |
| 14046 | #ifdef RTLD_GLOBAL |
| 14047 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14048 | #else |
| 14049 | # ifdef DL_GLOBAL |
| 14050 | # define LT_DLGLOBAL DL_GLOBAL |
| 14051 | # else |
| 14052 | # define LT_DLGLOBAL 0 |
| 14053 | # endif |
| 14054 | #endif |
| 14055 | |
| 14056 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14057 | find out it does not work in some platform. */ |
| 14058 | #ifndef LT_DLLAZY_OR_NOW |
| 14059 | # ifdef RTLD_LAZY |
| 14060 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14061 | # else |
| 14062 | # ifdef DL_LAZY |
| 14063 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14064 | # else |
| 14065 | # ifdef RTLD_NOW |
| 14066 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14067 | # else |
| 14068 | # ifdef DL_NOW |
| 14069 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14070 | # else |
| 14071 | # define LT_DLLAZY_OR_NOW 0 |
| 14072 | # endif |
| 14073 | # endif |
| 14074 | # endif |
| 14075 | # endif |
| 14076 | #endif |
| 14077 | |
| 14078 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 14079 | correspondingly for the symbols needed. */ |
| 14080 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 14081 | int fnord () __attribute__((visibility("default"))); |
| 14082 | #endif |
| 14083 | |
| 14084 | int fnord () { return 42; } |
| 14085 | int main () |
| 14086 | { |
| 14087 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14088 | int status = $lt_dlunknown; |
| 14089 | |
| 14090 | if (self) |
| 14091 | { |
| 14092 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14093 | else |
| 14094 | { |
| 14095 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14096 | else puts (dlerror ()); |
| 14097 | } |
| 14098 | /* dlclose (self); */ |
| 14099 | } |
| 14100 | else |
| 14101 | puts (dlerror ()); |
| 14102 | |
| 14103 | return status; |
| 14104 | } |
| 14105 | _LT_EOF |
| 14106 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 14107 | (eval $ac_link) 2>&5 |
| 14108 | ac_status=$? |
| 14109 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14110 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 14111 | (./conftest; exit; ) >&5 2>/dev/null |
| 14112 | lt_status=$? |
| 14113 | case x$lt_status in |
| 14114 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14115 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14116 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14117 | esac |
| 14118 | else : |
| 14119 | # compilation failed |
| 14120 | lt_cv_dlopen_self_static=no |
| 14121 | fi |
| 14122 | fi |
| 14123 | rm -fr conftest* |
| 14124 | |
| 14125 | |
| 14126 | fi |
| 14127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 14128 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } |
| 14129 | fi |
| 14130 | |
| 14131 | CPPFLAGS=$save_CPPFLAGS |
| 14132 | LDFLAGS=$save_LDFLAGS |
| 14133 | LIBS=$save_LIBS |
| 14134 | ;; |
| 14135 | esac |
| 14136 | |
| 14137 | case $lt_cv_dlopen_self in |
| 14138 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14139 | *) enable_dlopen_self=unknown ;; |
| 14140 | esac |
| 14141 | |
| 14142 | case $lt_cv_dlopen_self_static in |
| 14143 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14144 | *) enable_dlopen_self_static=unknown ;; |
| 14145 | esac |
| 14146 | fi |
| 14147 | |
| 14148 | |
| 14149 | |
| 14150 | |
| 14151 | |
| 14152 | |
| 14153 | |
| 14154 | |
| 14155 | |
| 14156 | |
| 14157 | |
| 14158 | |
| 14159 | |
| 14160 | |
| 14161 | |
| 14162 | |
| 14163 | |
| 14164 | striplib= |
| 14165 | old_striplib= |
| 14166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 14167 | printf %s "checking whether stripping libraries is possible... " >&6; } |
| 14168 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 14169 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14170 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14172 | printf "%s\n" "yes" >&6; } |
| 14173 | else |
| 14174 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14175 | case $host_os in |
| 14176 | darwin*) |
| 14177 | if test -n "$STRIP"; then |
| 14178 | striplib="$STRIP -x" |
| 14179 | old_striplib="$STRIP -S" |
| 14180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14181 | printf "%s\n" "yes" >&6; } |
| 14182 | else |
| 14183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14184 | printf "%s\n" "no" >&6; } |
| 14185 | fi |
| 14186 | ;; |
| 14187 | *) |
| 14188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14189 | printf "%s\n" "no" >&6; } |
| 14190 | ;; |
| 14191 | esac |
| 14192 | fi |
| 14193 | |
| 14194 | |
| 14195 | |
| 14196 | |
| 14197 | |
| 14198 | |
| 14199 | |
| 14200 | |
| 14201 | |
| 14202 | |
| 14203 | |
| 14204 | |
| 14205 | # Report what library types will actually be built |
| 14206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 14207 | printf %s "checking if libtool supports shared libraries... " >&6; } |
| 14208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 14209 | printf "%s\n" "$can_build_shared" >&6; } |
| 14210 | |
| 14211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 14212 | printf %s "checking whether to build shared libraries... " >&6; } |
| 14213 | test no = "$can_build_shared" && enable_shared=no |
| 14214 | |
| 14215 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14216 | # are all built from PIC. |
| 14217 | case $host_os in |
| 14218 | aix3*) |
| 14219 | test yes = "$enable_shared" && enable_static=no |
| 14220 | if test -n "$RANLIB"; then |
| 14221 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14222 | postinstall_cmds='$RANLIB $lib' |
| 14223 | fi |
| 14224 | ;; |
| 14225 | |
| 14226 | aix[4-9]*) |
| 14227 | if test ia64 != "$host_cpu"; then |
| 14228 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 14229 | yes,aix,yes) ;; # shared object as lib.so file only |
| 14230 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 14231 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 14232 | esac |
| 14233 | fi |
| 14234 | ;; |
| 14235 | esac |
| 14236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 14237 | printf "%s\n" "$enable_shared" >&6; } |
| 14238 | |
| 14239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 14240 | printf %s "checking whether to build static libraries... " >&6; } |
| 14241 | # Make sure either enable_shared or enable_static is yes. |
| 14242 | test yes = "$enable_shared" || enable_static=yes |
| 14243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 14244 | printf "%s\n" "$enable_static" >&6; } |
| 14245 | |
| 14246 | |
| 14247 | |
| 14248 | |
| 14249 | fi |
| 14250 | ac_ext=c |
| 14251 | ac_cpp='$CPP $CPPFLAGS' |
| 14252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14255 | |
| 14256 | CC=$lt_save_CC |
| 14257 | |
| 14258 | if test -n "$CXX" && ( test no != "$CXX" && |
| 14259 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
| 14260 | (test g++ != "$CXX"))); then |
| 14261 | ac_ext=cpp |
| 14262 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 14263 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14264 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14265 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 14267 | printf %s "checking how to run the C++ preprocessor... " >&6; } |
| 14268 | if test -z "$CXXCPP"; then |
| 14269 | if test ${ac_cv_prog_CXXCPP+y} |
| 14270 | then : |
| 14271 | printf %s "(cached) " >&6 |
| 14272 | else $as_nop |
| 14273 | # Double quotes because $CXX needs to be expanded |
| 14274 | for CXXCPP in "$CXX -E" cpp /lib/cpp |
| 14275 | do |
| 14276 | ac_preproc_ok=false |
| 14277 | for ac_cxx_preproc_warn_flag in '' yes |
| 14278 | do |
| 14279 | # Use a header file that comes with gcc, so configuring glibc |
| 14280 | # with a fresh cross-compiler works. |
| 14281 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 14282 | # not just through cpp. "Syntax error" is here to catch this case. |
| 14283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14284 | /* end confdefs.h. */ |
| 14285 | #include <limits.h> |
| 14286 | Syntax error |
| 14287 | _ACEOF |
| 14288 | if ac_fn_cxx_try_cpp "$LINENO" |
| 14289 | then : |
| 14290 | |
| 14291 | else $as_nop |
| 14292 | # Broken: fails on valid input. |
| 14293 | continue |
| 14294 | fi |
| 14295 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 14296 | |
| 14297 | # OK, works on sane cases. Now check whether nonexistent headers |
| 14298 | # can be detected and how. |
| 14299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14300 | /* end confdefs.h. */ |
| 14301 | #include <ac_nonexistent.h> |
| 14302 | _ACEOF |
| 14303 | if ac_fn_cxx_try_cpp "$LINENO" |
| 14304 | then : |
| 14305 | # Broken: success on invalid input. |
| 14306 | continue |
| 14307 | else $as_nop |
| 14308 | # Passes both tests. |
| 14309 | ac_preproc_ok=: |
| 14310 | break |
| 14311 | fi |
| 14312 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 14313 | |
| 14314 | done |
| 14315 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 14316 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 14317 | if $ac_preproc_ok |
| 14318 | then : |
| 14319 | break |
| 14320 | fi |
| 14321 | |
| 14322 | done |
| 14323 | ac_cv_prog_CXXCPP=$CXXCPP |
| 14324 | |
| 14325 | fi |
| 14326 | CXXCPP=$ac_cv_prog_CXXCPP |
| 14327 | else |
| 14328 | ac_cv_prog_CXXCPP=$CXXCPP |
| 14329 | fi |
| 14330 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 14331 | printf "%s\n" "$CXXCPP" >&6; } |
| 14332 | ac_preproc_ok=false |
| 14333 | for ac_cxx_preproc_warn_flag in '' yes |
| 14334 | do |
| 14335 | # Use a header file that comes with gcc, so configuring glibc |
| 14336 | # with a fresh cross-compiler works. |
| 14337 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 14338 | # not just through cpp. "Syntax error" is here to catch this case. |
| 14339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14340 | /* end confdefs.h. */ |
| 14341 | #include <limits.h> |
| 14342 | Syntax error |
| 14343 | _ACEOF |
| 14344 | if ac_fn_cxx_try_cpp "$LINENO" |
| 14345 | then : |
| 14346 | |
| 14347 | else $as_nop |
| 14348 | # Broken: fails on valid input. |
| 14349 | continue |
| 14350 | fi |
| 14351 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 14352 | |
| 14353 | # OK, works on sane cases. Now check whether nonexistent headers |
| 14354 | # can be detected and how. |
| 14355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14356 | /* end confdefs.h. */ |
| 14357 | #include <ac_nonexistent.h> |
| 14358 | _ACEOF |
| 14359 | if ac_fn_cxx_try_cpp "$LINENO" |
| 14360 | then : |
| 14361 | # Broken: success on invalid input. |
| 14362 | continue |
| 14363 | else $as_nop |
| 14364 | # Passes both tests. |
| 14365 | ac_preproc_ok=: |
| 14366 | break |
| 14367 | fi |
| 14368 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 14369 | |
| 14370 | done |
| 14371 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 14372 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 14373 | if $ac_preproc_ok |
| 14374 | then : |
| 14375 | |
| 14376 | else $as_nop |
| 14377 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14378 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14379 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 14380 | See \`config.log' for more details" "$LINENO" 5; } |
| 14381 | fi |
| 14382 | |
| 14383 | ac_ext=c |
| 14384 | ac_cpp='$CPP $CPPFLAGS' |
| 14385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14388 | |
| 14389 | else |
| 14390 | _lt_caught_CXX_error=yes |
| 14391 | fi |
| 14392 | |
| 14393 | ac_ext=cpp |
| 14394 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 14395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14398 | |
| 14399 | archive_cmds_need_lc_CXX=no |
| 14400 | allow_undefined_flag_CXX= |
| 14401 | always_export_symbols_CXX=no |
| 14402 | archive_expsym_cmds_CXX= |
| 14403 | compiler_needs_object_CXX=no |
| 14404 | export_dynamic_flag_spec_CXX= |
| 14405 | hardcode_direct_CXX=no |
| 14406 | hardcode_direct_absolute_CXX=no |
| 14407 | hardcode_libdir_flag_spec_CXX= |
| 14408 | hardcode_libdir_separator_CXX= |
| 14409 | hardcode_minus_L_CXX=no |
| 14410 | hardcode_shlibpath_var_CXX=unsupported |
| 14411 | hardcode_automatic_CXX=no |
| 14412 | inherit_rpath_CXX=no |
| 14413 | module_cmds_CXX= |
| 14414 | module_expsym_cmds_CXX= |
| 14415 | link_all_deplibs_CXX=unknown |
| 14416 | old_archive_cmds_CXX=$old_archive_cmds |
| 14417 | reload_flag_CXX=$reload_flag |
| 14418 | reload_cmds_CXX=$reload_cmds |
| 14419 | no_undefined_flag_CXX= |
| 14420 | whole_archive_flag_spec_CXX= |
| 14421 | enable_shared_with_static_runtimes_CXX=no |
| 14422 | |
| 14423 | # Source file extension for C++ test sources. |
| 14424 | ac_ext=cpp |
| 14425 | |
| 14426 | # Object file extension for compiled C++ test sources. |
| 14427 | objext=o |
| 14428 | objext_CXX=$objext |
| 14429 | |
| 14430 | # No sense in running all these tests if we already determined that |
| 14431 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 14432 | # are currently assumed to apply to all compilers on this platform, |
| 14433 | # and will be corrupted by setting them based on a non-working compiler. |
| 14434 | if test yes != "$_lt_caught_CXX_error"; then |
| 14435 | # Code to be used in simple compile tests |
| 14436 | lt_simple_compile_test_code="int some_variable = 0;" |
| 14437 | |
| 14438 | # Code to be used in simple link tests |
| 14439 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 14440 | |
| 14441 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14442 | |
| 14443 | |
| 14444 | |
| 14445 | |
| 14446 | |
| 14447 | |
| 14448 | # If no C compiler was specified, use CC. |
| 14449 | LTCC=${LTCC-"$CC"} |
| 14450 | |
| 14451 | # If no C compiler flags were specified, use CFLAGS. |
| 14452 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14453 | |
| 14454 | # Allow CC to be a program name with arguments. |
| 14455 | compiler=$CC |
| 14456 | |
| 14457 | |
| 14458 | # save warnings/boilerplate of simple test code |
| 14459 | ac_outfile=conftest.$ac_objext |
| 14460 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14461 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14462 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14463 | $RM conftest* |
| 14464 | |
| 14465 | ac_outfile=conftest.$ac_objext |
| 14466 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14467 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14468 | _lt_linker_boilerplate=`cat conftest.err` |
| 14469 | $RM -r conftest* |
| 14470 | |
| 14471 | |
| 14472 | # Allow CC to be a program name with arguments. |
| 14473 | lt_save_CC=$CC |
| 14474 | lt_save_CFLAGS=$CFLAGS |
| 14475 | lt_save_LD=$LD |
| 14476 | lt_save_GCC=$GCC |
| 14477 | GCC=$GXX |
| 14478 | lt_save_with_gnu_ld=$with_gnu_ld |
| 14479 | lt_save_path_LD=$lt_cv_path_LD |
| 14480 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 14481 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 14482 | else |
| 14483 | $as_unset lt_cv_prog_gnu_ld |
| 14484 | fi |
| 14485 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 14486 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 14487 | else |
| 14488 | $as_unset lt_cv_path_LD |
| 14489 | fi |
| 14490 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 14491 | CC=${CXX-"c++"} |
| 14492 | CFLAGS=$CXXFLAGS |
| 14493 | compiler=$CC |
| 14494 | compiler_CXX=$CC |
| 14495 | func_cc_basename $compiler |
| 14496 | cc_basename=$func_cc_basename_result |
| 14497 | |
| 14498 | |
| 14499 | if test -n "$compiler"; then |
| 14500 | # We don't want -fno-exception when compiling C++ code, so set the |
| 14501 | # no_builtin_flag separately |
| 14502 | if test yes = "$GXX"; then |
| 14503 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 14504 | else |
| 14505 | lt_prog_compiler_no_builtin_flag_CXX= |
| 14506 | fi |
| 14507 | |
| 14508 | if test yes = "$GXX"; then |
| 14509 | # Set up default GNU C++ configuration |
| 14510 | |
| 14511 | |
| 14512 | |
| 14513 | # Check whether --with-gnu-ld was given. |
| 14514 | if test ${with_gnu_ld+y} |
| 14515 | then : |
| 14516 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 14517 | else $as_nop |
| 14518 | with_gnu_ld=no |
| 14519 | fi |
| 14520 | |
| 14521 | ac_prog=ld |
| 14522 | if test yes = "$GCC"; then |
| 14523 | # Check if gcc -print-prog-name=ld gives a path. |
| 14524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 14525 | printf %s "checking for ld used by $CC... " >&6; } |
| 14526 | case $host in |
| 14527 | *-*-mingw*) |
| 14528 | # gcc leaves a trailing carriage return, which upsets mingw |
| 14529 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14530 | *) |
| 14531 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14532 | esac |
| 14533 | case $ac_prog in |
| 14534 | # Accept absolute paths. |
| 14535 | [\\/]* | ?:[\\/]*) |
| 14536 | re_direlt='/[^/][^/]*/\.\./' |
| 14537 | # Canonicalize the pathname of ld |
| 14538 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 14539 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 14540 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 14541 | done |
| 14542 | test -z "$LD" && LD=$ac_prog |
| 14543 | ;; |
| 14544 | "") |
| 14545 | # If it fails, then pretend we aren't using GCC. |
| 14546 | ac_prog=ld |
| 14547 | ;; |
| 14548 | *) |
| 14549 | # If it is relative, then search for the first ld in PATH. |
| 14550 | with_gnu_ld=unknown |
| 14551 | ;; |
| 14552 | esac |
| 14553 | elif test yes = "$with_gnu_ld"; then |
| 14554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 14555 | printf %s "checking for GNU ld... " >&6; } |
| 14556 | else |
| 14557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 14558 | printf %s "checking for non-GNU ld... " >&6; } |
| 14559 | fi |
| 14560 | if test ${lt_cv_path_LD+y} |
| 14561 | then : |
| 14562 | printf %s "(cached) " >&6 |
| 14563 | else $as_nop |
| 14564 | if test -z "$LD"; then |
| 14565 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 14566 | for ac_dir in $PATH; do |
| 14567 | IFS=$lt_save_ifs |
| 14568 | test -z "$ac_dir" && ac_dir=. |
| 14569 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14570 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 14571 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 14572 | # but apparently some variants of GNU ld only accept -v. |
| 14573 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 14574 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 14575 | *GNU* | *'with BFD'*) |
| 14576 | test no != "$with_gnu_ld" && break |
| 14577 | ;; |
| 14578 | *) |
| 14579 | test yes != "$with_gnu_ld" && break |
| 14580 | ;; |
| 14581 | esac |
| 14582 | fi |
| 14583 | done |
| 14584 | IFS=$lt_save_ifs |
| 14585 | else |
| 14586 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 14587 | fi |
| 14588 | fi |
| 14589 | |
| 14590 | LD=$lt_cv_path_LD |
| 14591 | if test -n "$LD"; then |
| 14592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 14593 | printf "%s\n" "$LD" >&6; } |
| 14594 | else |
| 14595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14596 | printf "%s\n" "no" >&6; } |
| 14597 | fi |
| 14598 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 14599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 14600 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 14601 | if test ${lt_cv_prog_gnu_ld+y} |
| 14602 | then : |
| 14603 | printf %s "(cached) " >&6 |
| 14604 | else $as_nop |
| 14605 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 14606 | case `$LD -v 2>&1 </dev/null` in |
| 14607 | *GNU* | *'with BFD'*) |
| 14608 | lt_cv_prog_gnu_ld=yes |
| 14609 | ;; |
| 14610 | *) |
| 14611 | lt_cv_prog_gnu_ld=no |
| 14612 | ;; |
| 14613 | esac |
| 14614 | fi |
| 14615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 14616 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 14617 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 14618 | |
| 14619 | |
| 14620 | |
| 14621 | |
| 14622 | |
| 14623 | |
| 14624 | |
| 14625 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 14626 | # archiving commands below assume that GNU ld is being used. |
| 14627 | if test yes = "$with_gnu_ld"; then |
| 14628 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 14629 | 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' |
| 14630 | |
| 14631 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 14632 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 14633 | |
| 14634 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14635 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 14636 | # investigate it a little bit more. (MM) |
| 14637 | wlarc='$wl' |
| 14638 | |
| 14639 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14640 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 14641 | $GREP 'no-whole-archive' > /dev/null; then |
| 14642 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 14643 | else |
| 14644 | whole_archive_flag_spec_CXX= |
| 14645 | fi |
| 14646 | else |
| 14647 | with_gnu_ld=no |
| 14648 | wlarc= |
| 14649 | |
| 14650 | # A generic and very simple default shared library creation |
| 14651 | # command for GNU C++ for the case where it uses the native |
| 14652 | # linker, instead of GNU ld. If possible, this setting should |
| 14653 | # overridden to take advantage of the native linker features on |
| 14654 | # the platform it is being used on. |
| 14655 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 14656 | fi |
| 14657 | |
| 14658 | # Commands to make compiler produce verbose output that lists |
| 14659 | # what "hidden" libraries, object files and flags are used when |
| 14660 | # linking a shared library. |
| 14661 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 14662 | |
| 14663 | else |
| 14664 | GXX=no |
| 14665 | with_gnu_ld=no |
| 14666 | wlarc= |
| 14667 | fi |
| 14668 | |
| 14669 | # PORTME: fill in a description of your system's C++ link characteristics |
| 14670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14671 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14672 | ld_shlibs_CXX=yes |
| 14673 | case $host_os in |
| 14674 | aix3*) |
| 14675 | # FIXME: insert proper C++ library support |
| 14676 | ld_shlibs_CXX=no |
| 14677 | ;; |
| 14678 | aix[4-9]*) |
| 14679 | if test ia64 = "$host_cpu"; then |
| 14680 | # On IA64, the linker does run time linking by default, so we don't |
| 14681 | # have to do anything special. |
| 14682 | aix_use_runtimelinking=no |
| 14683 | exp_sym_flag='-Bexport' |
| 14684 | no_entry_flag= |
| 14685 | else |
| 14686 | aix_use_runtimelinking=no |
| 14687 | |
| 14688 | # Test if we are trying to use run time linking or normal |
| 14689 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14690 | # have runtime linking enabled, and use it for executables. |
| 14691 | # For shared libraries, we enable/disable runtime linking |
| 14692 | # depending on the kind of the shared library created - |
| 14693 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 14694 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 14695 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 14696 | # lib.a static archive |
| 14697 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 14698 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 14699 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 14700 | # lib.a(lib.so.V) shared, rtl:no |
| 14701 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 14702 | # lib.a static archive |
| 14703 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 14704 | for ld_flag in $LDFLAGS; do |
| 14705 | case $ld_flag in |
| 14706 | *-brtl*) |
| 14707 | aix_use_runtimelinking=yes |
| 14708 | break |
| 14709 | ;; |
| 14710 | esac |
| 14711 | done |
| 14712 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 14713 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 14714 | # so we don't have lib.a shared libs to link our executables. |
| 14715 | # We have to force runtime linking in this case. |
| 14716 | aix_use_runtimelinking=yes |
| 14717 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 14718 | fi |
| 14719 | ;; |
| 14720 | esac |
| 14721 | |
| 14722 | exp_sym_flag='-bexport' |
| 14723 | no_entry_flag='-bnoentry' |
| 14724 | fi |
| 14725 | |
| 14726 | # When large executables or shared objects are built, AIX ld can |
| 14727 | # have problems creating the table of contents. If linking a library |
| 14728 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14729 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14730 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14731 | |
| 14732 | archive_cmds_CXX='' |
| 14733 | hardcode_direct_CXX=yes |
| 14734 | hardcode_direct_absolute_CXX=yes |
| 14735 | hardcode_libdir_separator_CXX=':' |
| 14736 | link_all_deplibs_CXX=yes |
| 14737 | file_list_spec_CXX='$wl-f,' |
| 14738 | case $with_aix_soname,$aix_use_runtimelinking in |
| 14739 | aix,*) ;; # no import file |
| 14740 | svr4,* | *,yes) # use import file |
| 14741 | # The Import File defines what to hardcode. |
| 14742 | hardcode_direct_CXX=no |
| 14743 | hardcode_direct_absolute_CXX=no |
| 14744 | ;; |
| 14745 | esac |
| 14746 | |
| 14747 | if test yes = "$GXX"; then |
| 14748 | case $host_os in aix4.[012]|aix4.[012].*) |
| 14749 | # We only want to do this on AIX 4.2 and lower, the check |
| 14750 | # below for broken collect2 doesn't work under 4.3+ |
| 14751 | collect2name=`$CC -print-prog-name=collect2` |
| 14752 | if test -f "$collect2name" && |
| 14753 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 14754 | then |
| 14755 | # We have reworked collect2 |
| 14756 | : |
| 14757 | else |
| 14758 | # We have old collect2 |
| 14759 | hardcode_direct_CXX=unsupported |
| 14760 | # It fails to find uninstalled libraries when the uninstalled |
| 14761 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14762 | # to unsupported forces relinking |
| 14763 | hardcode_minus_L_CXX=yes |
| 14764 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 14765 | hardcode_libdir_separator_CXX= |
| 14766 | fi |
| 14767 | esac |
| 14768 | shared_flag='-shared' |
| 14769 | if test yes = "$aix_use_runtimelinking"; then |
| 14770 | shared_flag=$shared_flag' $wl-G' |
| 14771 | fi |
| 14772 | # Need to ensure runtime linking is disabled for the traditional |
| 14773 | # shared library, or the linker may eventually find shared libraries |
| 14774 | # /with/ Import File - we do not want to mix them. |
| 14775 | shared_flag_aix='-shared' |
| 14776 | shared_flag_svr4='-shared $wl-G' |
| 14777 | else |
| 14778 | # not using gcc |
| 14779 | if test ia64 = "$host_cpu"; then |
| 14780 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14781 | # chokes on -Wl,-G. The following line is correct: |
| 14782 | shared_flag='-G' |
| 14783 | else |
| 14784 | if test yes = "$aix_use_runtimelinking"; then |
| 14785 | shared_flag='$wl-G' |
| 14786 | else |
| 14787 | shared_flag='$wl-bM:SRE' |
| 14788 | fi |
| 14789 | shared_flag_aix='$wl-bM:SRE' |
| 14790 | shared_flag_svr4='$wl-G' |
| 14791 | fi |
| 14792 | fi |
| 14793 | |
| 14794 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
| 14795 | # It seems that -bexpall does not export symbols beginning with |
| 14796 | # underscore (_), so it is better to generate a list of symbols to |
| 14797 | # export. |
| 14798 | always_export_symbols_CXX=yes |
| 14799 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 14800 | # Warning - without using the other runtime loading flags (-brtl), |
| 14801 | # -berok will link without error, but may produce a broken library. |
| 14802 | # The "-G" linker flag allows undefined symbols. |
| 14803 | no_undefined_flag_CXX='-bernotok' |
| 14804 | # Determine the default libpath from the value encoded in an empty |
| 14805 | # executable. |
| 14806 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 14807 | aix_libpath=$lt_cv_aix_libpath |
| 14808 | else |
| 14809 | if test ${lt_cv_aix_libpath__CXX+y} |
| 14810 | then : |
| 14811 | printf %s "(cached) " >&6 |
| 14812 | else $as_nop |
| 14813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14814 | /* end confdefs.h. */ |
| 14815 | |
| 14816 | int |
| 14817 | main (void) |
| 14818 | { |
| 14819 | |
| 14820 | ; |
| 14821 | return 0; |
| 14822 | } |
| 14823 | _ACEOF |
| 14824 | if ac_fn_cxx_try_link "$LINENO" |
| 14825 | then : |
| 14826 | |
| 14827 | lt_aix_libpath_sed=' |
| 14828 | /Import File Strings/,/^$/ { |
| 14829 | /^0/ { |
| 14830 | s/^0 *\([^ ]*\) *$/\1/ |
| 14831 | p |
| 14832 | } |
| 14833 | }' |
| 14834 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14835 | # Check for a 64-bit object if we didn't find anything. |
| 14836 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14837 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14838 | fi |
| 14839 | fi |
| 14840 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14841 | conftest$ac_exeext conftest.$ac_ext |
| 14842 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14843 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 14844 | fi |
| 14845 | |
| 14846 | fi |
| 14847 | |
| 14848 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 14849 | fi |
| 14850 | |
| 14851 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 14852 | |
| 14853 | 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 |
| 14854 | else |
| 14855 | if test ia64 = "$host_cpu"; then |
| 14856 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' |
| 14857 | allow_undefined_flag_CXX="-z nodefs" |
| 14858 | 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" |
| 14859 | else |
| 14860 | # Determine the default libpath from the value encoded in an |
| 14861 | # empty executable. |
| 14862 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 14863 | aix_libpath=$lt_cv_aix_libpath |
| 14864 | else |
| 14865 | if test ${lt_cv_aix_libpath__CXX+y} |
| 14866 | then : |
| 14867 | printf %s "(cached) " >&6 |
| 14868 | else $as_nop |
| 14869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14870 | /* end confdefs.h. */ |
| 14871 | |
| 14872 | int |
| 14873 | main (void) |
| 14874 | { |
| 14875 | |
| 14876 | ; |
| 14877 | return 0; |
| 14878 | } |
| 14879 | _ACEOF |
| 14880 | if ac_fn_cxx_try_link "$LINENO" |
| 14881 | then : |
| 14882 | |
| 14883 | lt_aix_libpath_sed=' |
| 14884 | /Import File Strings/,/^$/ { |
| 14885 | /^0/ { |
| 14886 | s/^0 *\([^ ]*\) *$/\1/ |
| 14887 | p |
| 14888 | } |
| 14889 | }' |
| 14890 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14891 | # Check for a 64-bit object if we didn't find anything. |
| 14892 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14893 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14894 | fi |
| 14895 | fi |
| 14896 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14897 | conftest$ac_exeext conftest.$ac_ext |
| 14898 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14899 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
| 14900 | fi |
| 14901 | |
| 14902 | fi |
| 14903 | |
| 14904 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 14905 | fi |
| 14906 | |
| 14907 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
| 14908 | # Warning - without using the other run time loading flags, |
| 14909 | # -berok will link without error, but may produce a broken library. |
| 14910 | no_undefined_flag_CXX=' $wl-bernotok' |
| 14911 | allow_undefined_flag_CXX=' $wl-berok' |
| 14912 | if test yes = "$with_gnu_ld"; then |
| 14913 | # We only use this code for GNU lds that support --whole-archive. |
| 14914 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 14915 | else |
| 14916 | # Exported symbols can be pulled into shared objects from archives |
| 14917 | whole_archive_flag_spec_CXX='$convenience' |
| 14918 | fi |
| 14919 | archive_cmds_need_lc_CXX=yes |
| 14920 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 14921 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 14922 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 14923 | if test svr4 != "$with_aix_soname"; then |
| 14924 | # This is similar to how AIX traditionally builds its shared |
| 14925 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
| 14926 | 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' |
| 14927 | fi |
| 14928 | if test aix != "$with_aix_soname"; then |
| 14929 | 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' |
| 14930 | else |
| 14931 | # used by -dlpreopen to get the symbols |
| 14932 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 14933 | fi |
| 14934 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' |
| 14935 | fi |
| 14936 | fi |
| 14937 | ;; |
| 14938 | |
| 14939 | beos*) |
| 14940 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14941 | allow_undefined_flag_CXX=unsupported |
| 14942 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 14943 | # support --undefined. This deserves some investigation. FIXME |
| 14944 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 14945 | else |
| 14946 | ld_shlibs_CXX=no |
| 14947 | fi |
| 14948 | ;; |
| 14949 | |
| 14950 | chorus*) |
| 14951 | case $cc_basename in |
| 14952 | *) |
| 14953 | # FIXME: insert proper C++ library support |
| 14954 | ld_shlibs_CXX=no |
| 14955 | ;; |
| 14956 | esac |
| 14957 | ;; |
| 14958 | |
| 14959 | cygwin* | mingw* | pw32* | cegcc*) |
| 14960 | case $GXX,$cc_basename in |
| 14961 | ,cl* | no,cl*) |
| 14962 | # Native MSVC |
| 14963 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14964 | # no search path for DLLs. |
| 14965 | hardcode_libdir_flag_spec_CXX=' ' |
| 14966 | allow_undefined_flag_CXX=unsupported |
| 14967 | always_export_symbols_CXX=yes |
| 14968 | file_list_spec_CXX='@' |
| 14969 | # Tell ltmain to make .lib files, not .a files. |
| 14970 | libext=lib |
| 14971 | # Tell ltmain to make .dll files, not .so files. |
| 14972 | shrext_cmds=.dll |
| 14973 | # FIXME: Setting linknames here is a bad hack. |
| 14974 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 14975 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 14976 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 14977 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 14978 | else |
| 14979 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 14980 | fi~ |
| 14981 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 14982 | linknames=' |
| 14983 | # The linker will not automatically build a static lib if we build a DLL. |
| 14984 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 14985 | enable_shared_with_static_runtimes_CXX=yes |
| 14986 | # Don't use ranlib |
| 14987 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 14988 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 14989 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 14990 | case $lt_outputfile in |
| 14991 | *.exe|*.EXE) ;; |
| 14992 | *) |
| 14993 | lt_outputfile=$lt_outputfile.exe |
| 14994 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 14995 | ;; |
| 14996 | esac~ |
| 14997 | func_to_tool_file "$lt_outputfile"~ |
| 14998 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 14999 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 15000 | $RM "$lt_outputfile.manifest"; |
| 15001 | fi' |
| 15002 | ;; |
| 15003 | *) |
| 15004 | # g++ |
| 15005 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 15006 | # as there is no search path for DLLs. |
| 15007 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15008 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
| 15009 | allow_undefined_flag_CXX=unsupported |
| 15010 | always_export_symbols_CXX=no |
| 15011 | enable_shared_with_static_runtimes_CXX=yes |
| 15012 | |
| 15013 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 15014 | 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' |
| 15015 | # If the export-symbols file already is a .def file, use it as |
| 15016 | # is; otherwise, prepend EXPORTS... |
| 15017 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 15018 | cp $export_symbols $output_objdir/$soname.def; |
| 15019 | else |
| 15020 | echo EXPORTS > $output_objdir/$soname.def; |
| 15021 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15022 | fi~ |
| 15023 | $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' |
| 15024 | else |
| 15025 | ld_shlibs_CXX=no |
| 15026 | fi |
| 15027 | ;; |
| 15028 | esac |
| 15029 | ;; |
| 15030 | darwin* | rhapsody*) |
| 15031 | |
| 15032 | |
| 15033 | archive_cmds_need_lc_CXX=no |
| 15034 | hardcode_direct_CXX=no |
| 15035 | hardcode_automatic_CXX=yes |
| 15036 | hardcode_shlibpath_var_CXX=unsupported |
| 15037 | if test yes = "$lt_cv_ld_force_load"; then |
| 15038 | 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\"`' |
| 15039 | |
| 15040 | else |
| 15041 | whole_archive_flag_spec_CXX='' |
| 15042 | fi |
| 15043 | link_all_deplibs_CXX=yes |
| 15044 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
| 15045 | case $cc_basename in |
| 15046 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 15047 | *) _lt_dar_can_shared=$GCC ;; |
| 15048 | esac |
| 15049 | if test yes = "$_lt_dar_can_shared"; then |
| 15050 | output_verbose_link_cmd=func_echo_all |
| 15051 | 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" |
| 15052 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 15053 | 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" |
| 15054 | 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" |
| 15055 | if test yes != "$lt_cv_apple_cc_single_mod"; then |
| 15056 | 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" |
| 15057 | 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" |
| 15058 | fi |
| 15059 | |
| 15060 | else |
| 15061 | ld_shlibs_CXX=no |
| 15062 | fi |
| 15063 | |
| 15064 | ;; |
| 15065 | |
| 15066 | os2*) |
| 15067 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15068 | hardcode_minus_L_CXX=yes |
| 15069 | allow_undefined_flag_CXX=unsupported |
| 15070 | shrext_cmds=.dll |
| 15071 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 15072 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 15073 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 15074 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 15075 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 15076 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 15077 | emximp -o $lib $output_objdir/$libname.def' |
| 15078 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 15079 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 15080 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 15081 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 15082 | prefix_cmds="$SED"~ |
| 15083 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 15084 | prefix_cmds="$prefix_cmds -e 1d"; |
| 15085 | fi~ |
| 15086 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 15087 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 15088 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 15089 | emximp -o $lib $output_objdir/$libname.def' |
| 15090 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 15091 | enable_shared_with_static_runtimes_CXX=yes |
| 15092 | ;; |
| 15093 | |
| 15094 | dgux*) |
| 15095 | case $cc_basename in |
| 15096 | ec++*) |
| 15097 | # FIXME: insert proper C++ library support |
| 15098 | ld_shlibs_CXX=no |
| 15099 | ;; |
| 15100 | ghcx*) |
| 15101 | # Green Hills C++ Compiler |
| 15102 | # FIXME: insert proper C++ library support |
| 15103 | ld_shlibs_CXX=no |
| 15104 | ;; |
| 15105 | *) |
| 15106 | # FIXME: insert proper C++ library support |
| 15107 | ld_shlibs_CXX=no |
| 15108 | ;; |
| 15109 | esac |
| 15110 | ;; |
| 15111 | |
| 15112 | freebsd2.*) |
| 15113 | # C++ shared libraries reported to be fairly broken before |
| 15114 | # switch to ELF |
| 15115 | ld_shlibs_CXX=no |
| 15116 | ;; |
| 15117 | |
| 15118 | freebsd-elf*) |
| 15119 | archive_cmds_need_lc_CXX=no |
| 15120 | ;; |
| 15121 | |
| 15122 | freebsd* | dragonfly*) |
| 15123 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15124 | # conventions |
| 15125 | ld_shlibs_CXX=yes |
| 15126 | ;; |
| 15127 | |
| 15128 | haiku*) |
| 15129 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15130 | link_all_deplibs_CXX=yes |
| 15131 | ;; |
| 15132 | |
| 15133 | hpux9*) |
| 15134 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 15135 | hardcode_libdir_separator_CXX=: |
| 15136 | export_dynamic_flag_spec_CXX='$wl-E' |
| 15137 | hardcode_direct_CXX=yes |
| 15138 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15139 | # but as the default |
| 15140 | # location of the library. |
| 15141 | |
| 15142 | case $cc_basename in |
| 15143 | CC*) |
| 15144 | # FIXME: insert proper C++ library support |
| 15145 | ld_shlibs_CXX=no |
| 15146 | ;; |
| 15147 | aCC*) |
| 15148 | 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' |
| 15149 | # Commands to make compiler produce verbose output that lists |
| 15150 | # what "hidden" libraries, object files and flags are used when |
| 15151 | # linking a shared library. |
| 15152 | # |
| 15153 | # There doesn't appear to be a way to prevent this compiler from |
| 15154 | # explicitly linking system object files so we need to strip them |
| 15155 | # from the output so that they don't get included in the library |
| 15156 | # dependencies. |
| 15157 | 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"' |
| 15158 | ;; |
| 15159 | *) |
| 15160 | if test yes = "$GXX"; then |
| 15161 | 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' |
| 15162 | else |
| 15163 | # FIXME: insert proper C++ library support |
| 15164 | ld_shlibs_CXX=no |
| 15165 | fi |
| 15166 | ;; |
| 15167 | esac |
| 15168 | ;; |
| 15169 | |
| 15170 | hpux10*|hpux11*) |
| 15171 | if test no = "$with_gnu_ld"; then |
| 15172 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
| 15173 | hardcode_libdir_separator_CXX=: |
| 15174 | |
| 15175 | case $host_cpu in |
| 15176 | hppa*64*|ia64*) |
| 15177 | ;; |
| 15178 | *) |
| 15179 | export_dynamic_flag_spec_CXX='$wl-E' |
| 15180 | ;; |
| 15181 | esac |
| 15182 | fi |
| 15183 | case $host_cpu in |
| 15184 | hppa*64*|ia64*) |
| 15185 | hardcode_direct_CXX=no |
| 15186 | hardcode_shlibpath_var_CXX=no |
| 15187 | ;; |
| 15188 | *) |
| 15189 | hardcode_direct_CXX=yes |
| 15190 | hardcode_direct_absolute_CXX=yes |
| 15191 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15192 | # but as the default |
| 15193 | # location of the library. |
| 15194 | ;; |
| 15195 | esac |
| 15196 | |
| 15197 | case $cc_basename in |
| 15198 | CC*) |
| 15199 | # FIXME: insert proper C++ library support |
| 15200 | ld_shlibs_CXX=no |
| 15201 | ;; |
| 15202 | aCC*) |
| 15203 | case $host_cpu in |
| 15204 | hppa*64*) |
| 15205 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15206 | ;; |
| 15207 | ia64*) |
| 15208 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15209 | ;; |
| 15210 | *) |
| 15211 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15212 | ;; |
| 15213 | esac |
| 15214 | # Commands to make compiler produce verbose output that lists |
| 15215 | # what "hidden" libraries, object files and flags are used when |
| 15216 | # linking a shared library. |
| 15217 | # |
| 15218 | # There doesn't appear to be a way to prevent this compiler from |
| 15219 | # explicitly linking system object files so we need to strip them |
| 15220 | # from the output so that they don't get included in the library |
| 15221 | # dependencies. |
| 15222 | 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"' |
| 15223 | ;; |
| 15224 | *) |
| 15225 | if test yes = "$GXX"; then |
| 15226 | if test no = "$with_gnu_ld"; then |
| 15227 | case $host_cpu in |
| 15228 | hppa*64*) |
| 15229 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15230 | ;; |
| 15231 | ia64*) |
| 15232 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15233 | ;; |
| 15234 | *) |
| 15235 | 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' |
| 15236 | ;; |
| 15237 | esac |
| 15238 | fi |
| 15239 | else |
| 15240 | # FIXME: insert proper C++ library support |
| 15241 | ld_shlibs_CXX=no |
| 15242 | fi |
| 15243 | ;; |
| 15244 | esac |
| 15245 | ;; |
| 15246 | |
| 15247 | interix[3-9]*) |
| 15248 | hardcode_direct_CXX=no |
| 15249 | hardcode_shlibpath_var_CXX=no |
| 15250 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15251 | export_dynamic_flag_spec_CXX='$wl-E' |
| 15252 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15253 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15254 | # default) and relocated if they conflict, which is a slow very memory |
| 15255 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15256 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15257 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15258 | 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' |
| 15259 | 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' |
| 15260 | ;; |
| 15261 | irix5* | irix6*) |
| 15262 | case $cc_basename in |
| 15263 | CC*) |
| 15264 | # SGI C++ |
| 15265 | 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' |
| 15266 | |
| 15267 | # Archives containing C++ object files must be created using |
| 15268 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15269 | # necessary to make sure instantiated templates are included |
| 15270 | # in the archive. |
| 15271 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15272 | ;; |
| 15273 | *) |
| 15274 | if test yes = "$GXX"; then |
| 15275 | if test no = "$with_gnu_ld"; then |
| 15276 | 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' |
| 15277 | else |
| 15278 | 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' |
| 15279 | fi |
| 15280 | fi |
| 15281 | link_all_deplibs_CXX=yes |
| 15282 | ;; |
| 15283 | esac |
| 15284 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15285 | hardcode_libdir_separator_CXX=: |
| 15286 | inherit_rpath_CXX=yes |
| 15287 | ;; |
| 15288 | |
| 15289 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 15290 | case $cc_basename in |
| 15291 | KCC*) |
| 15292 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15293 | |
| 15294 | # KCC will only create a shared library if the output file |
| 15295 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15296 | # to its proper name (with version) after linking. |
| 15297 | 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' |
| 15298 | 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' |
| 15299 | # Commands to make compiler produce verbose output that lists |
| 15300 | # what "hidden" libraries, object files and flags are used when |
| 15301 | # linking a shared library. |
| 15302 | # |
| 15303 | # There doesn't appear to be a way to prevent this compiler from |
| 15304 | # explicitly linking system object files so we need to strip them |
| 15305 | # from the output so that they don't get included in the library |
| 15306 | # dependencies. |
| 15307 | 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"' |
| 15308 | |
| 15309 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15310 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15311 | |
| 15312 | # Archives containing C++ object files must be created using |
| 15313 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15314 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15315 | ;; |
| 15316 | icpc* | ecpc* ) |
| 15317 | # Intel C++ |
| 15318 | with_gnu_ld=yes |
| 15319 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 15320 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 15321 | # earlier do not add the objects themselves. |
| 15322 | case `$CC -V 2>&1` in |
| 15323 | *"Version 7."*) |
| 15324 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15325 | 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' |
| 15326 | ;; |
| 15327 | *) # Version 8.0 or newer |
| 15328 | tmp_idyn= |
| 15329 | case $host_cpu in |
| 15330 | ia64*) tmp_idyn=' -i_dynamic';; |
| 15331 | esac |
| 15332 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15333 | 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' |
| 15334 | ;; |
| 15335 | esac |
| 15336 | archive_cmds_need_lc_CXX=no |
| 15337 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15338 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15339 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 15340 | ;; |
| 15341 | pgCC* | pgcpp*) |
| 15342 | # Portland Group C++ compiler |
| 15343 | case `$CC -V` in |
| 15344 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 15345 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 15346 | rm -rf $tpldir~ |
| 15347 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 15348 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 15349 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 15350 | rm -rf $tpldir~ |
| 15351 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 15352 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 15353 | $RANLIB $oldlib' |
| 15354 | archive_cmds_CXX='tpldir=Template.dir~ |
| 15355 | rm -rf $tpldir~ |
| 15356 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15357 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15358 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 15359 | rm -rf $tpldir~ |
| 15360 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15361 | $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' |
| 15362 | ;; |
| 15363 | *) # Version 6 and above use weak symbols |
| 15364 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15365 | 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' |
| 15366 | ;; |
| 15367 | esac |
| 15368 | |
| 15369 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
| 15370 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15371 | 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' |
| 15372 | ;; |
| 15373 | cxx*) |
| 15374 | # Compaq C++ |
| 15375 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15376 | 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' |
| 15377 | |
| 15378 | runpath_var=LD_RUN_PATH |
| 15379 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15380 | hardcode_libdir_separator_CXX=: |
| 15381 | |
| 15382 | # Commands to make compiler produce verbose output that lists |
| 15383 | # what "hidden" libraries, object files and flags are used when |
| 15384 | # linking a shared library. |
| 15385 | # |
| 15386 | # There doesn't appear to be a way to prevent this compiler from |
| 15387 | # explicitly linking system object files so we need to strip them |
| 15388 | # from the output so that they don't get included in the library |
| 15389 | # dependencies. |
| 15390 | 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' |
| 15391 | ;; |
| 15392 | xl* | mpixl* | bgxl*) |
| 15393 | # IBM XL 8.0 on PPC, with GNU ld |
| 15394 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15395 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
| 15396 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15397 | if test yes = "$supports_anon_versioning"; then |
| 15398 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15399 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15400 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15401 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 15402 | fi |
| 15403 | ;; |
| 15404 | *) |
| 15405 | case `$CC -V 2>&1 | sed 5q` in |
| 15406 | *Sun\ C*) |
| 15407 | # Sun C++ 5.9 |
| 15408 | no_undefined_flag_CXX=' -zdefs' |
| 15409 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15410 | 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' |
| 15411 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15412 | 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' |
| 15413 | compiler_needs_object_CXX=yes |
| 15414 | |
| 15415 | # Not sure whether something based on |
| 15416 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 15417 | # would be better. |
| 15418 | output_verbose_link_cmd='func_echo_all' |
| 15419 | |
| 15420 | # Archives containing C++ object files must be created using |
| 15421 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15422 | # necessary to make sure instantiated templates are included |
| 15423 | # in the archive. |
| 15424 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15425 | ;; |
| 15426 | esac |
| 15427 | ;; |
| 15428 | esac |
| 15429 | ;; |
| 15430 | |
| 15431 | lynxos*) |
| 15432 | # FIXME: insert proper C++ library support |
| 15433 | ld_shlibs_CXX=no |
| 15434 | ;; |
| 15435 | |
| 15436 | m88k*) |
| 15437 | # FIXME: insert proper C++ library support |
| 15438 | ld_shlibs_CXX=no |
| 15439 | ;; |
| 15440 | |
| 15441 | mvs*) |
| 15442 | case $cc_basename in |
| 15443 | cxx*) |
| 15444 | # FIXME: insert proper C++ library support |
| 15445 | ld_shlibs_CXX=no |
| 15446 | ;; |
| 15447 | *) |
| 15448 | # FIXME: insert proper C++ library support |
| 15449 | ld_shlibs_CXX=no |
| 15450 | ;; |
| 15451 | esac |
| 15452 | ;; |
| 15453 | |
| 15454 | netbsd*) |
| 15455 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15456 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 15457 | wlarc= |
| 15458 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15459 | hardcode_direct_CXX=yes |
| 15460 | hardcode_shlibpath_var_CXX=no |
| 15461 | fi |
| 15462 | # Workaround some broken pre-1.5 toolchains |
| 15463 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 15464 | ;; |
| 15465 | |
| 15466 | *nto* | *qnx*) |
| 15467 | ld_shlibs_CXX=yes |
| 15468 | ;; |
| 15469 | |
| 15470 | openbsd* | bitrig*) |
| 15471 | if test -f /usr/libexec/ld.so; then |
| 15472 | hardcode_direct_CXX=yes |
| 15473 | hardcode_shlibpath_var_CXX=no |
| 15474 | hardcode_direct_absolute_CXX=yes |
| 15475 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 15476 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15477 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
| 15478 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' |
| 15479 | export_dynamic_flag_spec_CXX='$wl-E' |
| 15480 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 15481 | fi |
| 15482 | output_verbose_link_cmd=func_echo_all |
| 15483 | else |
| 15484 | ld_shlibs_CXX=no |
| 15485 | fi |
| 15486 | ;; |
| 15487 | |
| 15488 | osf3* | osf4* | osf5*) |
| 15489 | case $cc_basename in |
| 15490 | KCC*) |
| 15491 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15492 | |
| 15493 | # KCC will only create a shared library if the output file |
| 15494 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15495 | # to its proper name (with version) after linking. |
| 15496 | 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' |
| 15497 | |
| 15498 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
| 15499 | hardcode_libdir_separator_CXX=: |
| 15500 | |
| 15501 | # Archives containing C++ object files must be created using |
| 15502 | # the KAI C++ compiler. |
| 15503 | case $host in |
| 15504 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 15505 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 15506 | esac |
| 15507 | ;; |
| 15508 | RCC*) |
| 15509 | # Rational C++ 2.4.1 |
| 15510 | # FIXME: insert proper C++ library support |
| 15511 | ld_shlibs_CXX=no |
| 15512 | ;; |
| 15513 | cxx*) |
| 15514 | case $host in |
| 15515 | osf3*) |
| 15516 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 15517 | 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' |
| 15518 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15519 | ;; |
| 15520 | *) |
| 15521 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 15522 | 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' |
| 15523 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 15524 | echo "-hidden">> $lib.exp~ |
| 15525 | $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~ |
| 15526 | $RM $lib.exp' |
| 15527 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15528 | ;; |
| 15529 | esac |
| 15530 | |
| 15531 | hardcode_libdir_separator_CXX=: |
| 15532 | |
| 15533 | # Commands to make compiler produce verbose output that lists |
| 15534 | # what "hidden" libraries, object files and flags are used when |
| 15535 | # linking a shared library. |
| 15536 | # |
| 15537 | # There doesn't appear to be a way to prevent this compiler from |
| 15538 | # explicitly linking system object files so we need to strip them |
| 15539 | # from the output so that they don't get included in the library |
| 15540 | # dependencies. |
| 15541 | 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"' |
| 15542 | ;; |
| 15543 | *) |
| 15544 | if test yes,no = "$GXX,$with_gnu_ld"; then |
| 15545 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
| 15546 | case $host in |
| 15547 | osf3*) |
| 15548 | 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' |
| 15549 | ;; |
| 15550 | *) |
| 15551 | 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' |
| 15552 | ;; |
| 15553 | esac |
| 15554 | |
| 15555 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
| 15556 | hardcode_libdir_separator_CXX=: |
| 15557 | |
| 15558 | # Commands to make compiler produce verbose output that lists |
| 15559 | # what "hidden" libraries, object files and flags are used when |
| 15560 | # linking a shared library. |
| 15561 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 15562 | |
| 15563 | else |
| 15564 | # FIXME: insert proper C++ library support |
| 15565 | ld_shlibs_CXX=no |
| 15566 | fi |
| 15567 | ;; |
| 15568 | esac |
| 15569 | ;; |
| 15570 | |
| 15571 | psos*) |
| 15572 | # FIXME: insert proper C++ library support |
| 15573 | ld_shlibs_CXX=no |
| 15574 | ;; |
| 15575 | |
| 15576 | sunos4*) |
| 15577 | case $cc_basename in |
| 15578 | CC*) |
| 15579 | # Sun C++ 4.x |
| 15580 | # FIXME: insert proper C++ library support |
| 15581 | ld_shlibs_CXX=no |
| 15582 | ;; |
| 15583 | lcc*) |
| 15584 | # Lucid |
| 15585 | # FIXME: insert proper C++ library support |
| 15586 | ld_shlibs_CXX=no |
| 15587 | ;; |
| 15588 | *) |
| 15589 | # FIXME: insert proper C++ library support |
| 15590 | ld_shlibs_CXX=no |
| 15591 | ;; |
| 15592 | esac |
| 15593 | ;; |
| 15594 | |
| 15595 | solaris*) |
| 15596 | case $cc_basename in |
| 15597 | CC* | sunCC*) |
| 15598 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 15599 | archive_cmds_need_lc_CXX=yes |
| 15600 | no_undefined_flag_CXX=' -zdefs' |
| 15601 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15602 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15603 | $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' |
| 15604 | |
| 15605 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15606 | hardcode_shlibpath_var_CXX=no |
| 15607 | case $host_os in |
| 15608 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15609 | *) |
| 15610 | # The compiler driver will combine and reorder linker options, |
| 15611 | # but understands '-z linker_flag'. |
| 15612 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15613 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 15614 | ;; |
| 15615 | esac |
| 15616 | link_all_deplibs_CXX=yes |
| 15617 | |
| 15618 | output_verbose_link_cmd='func_echo_all' |
| 15619 | |
| 15620 | # Archives containing C++ object files must be created using |
| 15621 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15622 | # necessary to make sure instantiated templates are included |
| 15623 | # in the archive. |
| 15624 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15625 | ;; |
| 15626 | gcx*) |
| 15627 | # Green Hills C++ Compiler |
| 15628 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 15629 | |
| 15630 | # The C++ compiler must be used to create the archive. |
| 15631 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 15632 | ;; |
| 15633 | *) |
| 15634 | # GNU C++ compiler with Solaris linker |
| 15635 | if test yes,no = "$GXX,$with_gnu_ld"; then |
| 15636 | no_undefined_flag_CXX=' $wl-z ${wl}defs' |
| 15637 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 15638 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 15639 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15640 | $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' |
| 15641 | |
| 15642 | # Commands to make compiler produce verbose output that lists |
| 15643 | # what "hidden" libraries, object files and flags are used when |
| 15644 | # linking a shared library. |
| 15645 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 15646 | else |
| 15647 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
| 15648 | # platform. |
| 15649 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 15650 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15651 | $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' |
| 15652 | |
| 15653 | # Commands to make compiler produce verbose output that lists |
| 15654 | # what "hidden" libraries, object files and flags are used when |
| 15655 | # linking a shared library. |
| 15656 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
| 15657 | fi |
| 15658 | |
| 15659 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
| 15660 | case $host_os in |
| 15661 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15662 | *) |
| 15663 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 15664 | ;; |
| 15665 | esac |
| 15666 | fi |
| 15667 | ;; |
| 15668 | esac |
| 15669 | ;; |
| 15670 | |
| 15671 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 15672 | no_undefined_flag_CXX='$wl-z,text' |
| 15673 | archive_cmds_need_lc_CXX=no |
| 15674 | hardcode_shlibpath_var_CXX=no |
| 15675 | runpath_var='LD_RUN_PATH' |
| 15676 | |
| 15677 | case $cc_basename in |
| 15678 | CC*) |
| 15679 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15680 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15681 | ;; |
| 15682 | *) |
| 15683 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15684 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15685 | ;; |
| 15686 | esac |
| 15687 | ;; |
| 15688 | |
| 15689 | sysv5* | sco3.2v5* | sco5v6*) |
| 15690 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 15691 | # link with -lc, and that would cause any symbols used from libc to |
| 15692 | # always be unresolved, which means just about no library would |
| 15693 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15694 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15695 | # as -z defs. |
| 15696 | no_undefined_flag_CXX='$wl-z,text' |
| 15697 | allow_undefined_flag_CXX='$wl-z,nodefs' |
| 15698 | archive_cmds_need_lc_CXX=no |
| 15699 | hardcode_shlibpath_var_CXX=no |
| 15700 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
| 15701 | hardcode_libdir_separator_CXX=':' |
| 15702 | link_all_deplibs_CXX=yes |
| 15703 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
| 15704 | runpath_var='LD_RUN_PATH' |
| 15705 | |
| 15706 | case $cc_basename in |
| 15707 | CC*) |
| 15708 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15709 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15710 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 15711 | '"$old_archive_cmds_CXX" |
| 15712 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 15713 | '"$reload_cmds_CXX" |
| 15714 | ;; |
| 15715 | *) |
| 15716 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15717 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15718 | ;; |
| 15719 | esac |
| 15720 | ;; |
| 15721 | |
| 15722 | tandem*) |
| 15723 | case $cc_basename in |
| 15724 | NCC*) |
| 15725 | # NonStop-UX NCC 3.20 |
| 15726 | # FIXME: insert proper C++ library support |
| 15727 | ld_shlibs_CXX=no |
| 15728 | ;; |
| 15729 | *) |
| 15730 | # FIXME: insert proper C++ library support |
| 15731 | ld_shlibs_CXX=no |
| 15732 | ;; |
| 15733 | esac |
| 15734 | ;; |
| 15735 | |
| 15736 | vxworks*) |
| 15737 | # FIXME: insert proper C++ library support |
| 15738 | ld_shlibs_CXX=no |
| 15739 | ;; |
| 15740 | |
| 15741 | *) |
| 15742 | # FIXME: insert proper C++ library support |
| 15743 | ld_shlibs_CXX=no |
| 15744 | ;; |
| 15745 | esac |
| 15746 | |
| 15747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 15748 | printf "%s\n" "$ld_shlibs_CXX" >&6; } |
| 15749 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 15750 | |
| 15751 | GCC_CXX=$GXX |
| 15752 | LD_CXX=$LD |
| 15753 | |
| 15754 | ## CAVEAT EMPTOR: |
| 15755 | ## There is no encapsulation within the following macros, do not change |
| 15756 | ## the running order or otherwise move them around unless you know exactly |
| 15757 | ## what you are doing... |
| 15758 | # Dependencies to place before and after the object being linked: |
| 15759 | predep_objects_CXX= |
| 15760 | postdep_objects_CXX= |
| 15761 | predeps_CXX= |
| 15762 | postdeps_CXX= |
| 15763 | compiler_lib_search_path_CXX= |
| 15764 | |
| 15765 | cat > conftest.$ac_ext <<_LT_EOF |
| 15766 | class Foo |
| 15767 | { |
| 15768 | public: |
| 15769 | Foo (void) { a = 0; } |
| 15770 | private: |
| 15771 | int a; |
| 15772 | }; |
| 15773 | _LT_EOF |
| 15774 | |
| 15775 | |
| 15776 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 15777 | case "$CC $CFLAGS " in #( |
| 15778 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 15779 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 15780 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 15781 | esac |
| 15782 | |
| 15783 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 15784 | (eval $ac_compile) 2>&5 |
| 15785 | ac_status=$? |
| 15786 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15787 | test $ac_status = 0; }; then |
| 15788 | # Parse the compiler output and extract the necessary |
| 15789 | # objects, libraries and library flags. |
| 15790 | |
| 15791 | # Sentinel used to keep track of whether or not we are before |
| 15792 | # the conftest object file. |
| 15793 | pre_test_object_deps_done=no |
| 15794 | |
| 15795 | for p in `eval "$output_verbose_link_cmd"`; do |
| 15796 | case $prev$p in |
| 15797 | |
| 15798 | -L* | -R* | -l*) |
| 15799 | # Some compilers place space between "-{L,R}" and the path. |
| 15800 | # Remove the space. |
| 15801 | if test x-L = "$p" || |
| 15802 | test x-R = "$p"; then |
| 15803 | prev=$p |
| 15804 | continue |
| 15805 | fi |
| 15806 | |
| 15807 | # Expand the sysroot to ease extracting the directories later. |
| 15808 | if test -z "$prev"; then |
| 15809 | case $p in |
| 15810 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 15811 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 15812 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 15813 | esac |
| 15814 | fi |
| 15815 | case $p in |
| 15816 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 15817 | esac |
| 15818 | if test no = "$pre_test_object_deps_done"; then |
| 15819 | case $prev in |
| 15820 | -L | -R) |
| 15821 | # Internal compiler library paths should come after those |
| 15822 | # provided the user. The postdeps already come after the |
| 15823 | # user supplied libs so there is no need to process them. |
| 15824 | if test -z "$compiler_lib_search_path_CXX"; then |
| 15825 | compiler_lib_search_path_CXX=$prev$p |
| 15826 | else |
| 15827 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
| 15828 | fi |
| 15829 | ;; |
| 15830 | # The "-l" case would never come before the object being |
| 15831 | # linked, so don't bother handling this case. |
| 15832 | esac |
| 15833 | else |
| 15834 | if test -z "$postdeps_CXX"; then |
| 15835 | postdeps_CXX=$prev$p |
| 15836 | else |
| 15837 | postdeps_CXX="${postdeps_CXX} $prev$p" |
| 15838 | fi |
| 15839 | fi |
| 15840 | prev= |
| 15841 | ;; |
| 15842 | |
| 15843 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 15844 | *.$objext) |
| 15845 | # This assumes that the test object file only shows up |
| 15846 | # once in the compiler output. |
| 15847 | if test "$p" = "conftest.$objext"; then |
| 15848 | pre_test_object_deps_done=yes |
| 15849 | continue |
| 15850 | fi |
| 15851 | |
| 15852 | if test no = "$pre_test_object_deps_done"; then |
| 15853 | if test -z "$predep_objects_CXX"; then |
| 15854 | predep_objects_CXX=$p |
| 15855 | else |
| 15856 | predep_objects_CXX="$predep_objects_CXX $p" |
| 15857 | fi |
| 15858 | else |
| 15859 | if test -z "$postdep_objects_CXX"; then |
| 15860 | postdep_objects_CXX=$p |
| 15861 | else |
| 15862 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 15863 | fi |
| 15864 | fi |
| 15865 | ;; |
| 15866 | |
| 15867 | *) ;; # Ignore the rest. |
| 15868 | |
| 15869 | esac |
| 15870 | done |
| 15871 | |
| 15872 | # Clean up. |
| 15873 | rm -f a.out a.exe |
| 15874 | else |
| 15875 | echo "libtool.m4: error: problem compiling CXX test program" |
| 15876 | fi |
| 15877 | |
| 15878 | $RM -f confest.$objext |
| 15879 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 15880 | |
| 15881 | # PORTME: override above test on systems where it is broken |
| 15882 | case $host_os in |
| 15883 | interix[3-9]*) |
| 15884 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 15885 | # hack all around it, let's just trust "g++" to DTRT. |
| 15886 | predep_objects_CXX= |
| 15887 | postdep_objects_CXX= |
| 15888 | postdeps_CXX= |
| 15889 | ;; |
| 15890 | esac |
| 15891 | |
| 15892 | |
| 15893 | case " $postdeps_CXX " in |
| 15894 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 15895 | esac |
| 15896 | compiler_lib_search_dirs_CXX= |
| 15897 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 15898 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
| 15899 | fi |
| 15900 | |
| 15901 | |
| 15902 | |
| 15903 | |
| 15904 | |
| 15905 | |
| 15906 | |
| 15907 | |
| 15908 | |
| 15909 | |
| 15910 | |
| 15911 | |
| 15912 | |
| 15913 | |
| 15914 | |
| 15915 | |
| 15916 | |
| 15917 | |
| 15918 | |
| 15919 | |
| 15920 | |
| 15921 | |
| 15922 | |
| 15923 | |
| 15924 | |
| 15925 | |
| 15926 | |
| 15927 | |
| 15928 | |
| 15929 | |
| 15930 | |
| 15931 | lt_prog_compiler_wl_CXX= |
| 15932 | lt_prog_compiler_pic_CXX= |
| 15933 | lt_prog_compiler_static_CXX= |
| 15934 | |
| 15935 | |
| 15936 | # C++ specific cases for pic, static, wl, etc. |
| 15937 | if test yes = "$GXX"; then |
| 15938 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15939 | lt_prog_compiler_static_CXX='-static' |
| 15940 | |
| 15941 | case $host_os in |
| 15942 | aix*) |
| 15943 | # All AIX code is PIC. |
| 15944 | if test ia64 = "$host_cpu"; then |
| 15945 | # AIX 5 now supports IA64 processor |
| 15946 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15947 | fi |
| 15948 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15949 | ;; |
| 15950 | |
| 15951 | amigaos*) |
| 15952 | case $host_cpu in |
| 15953 | powerpc) |
| 15954 | # see comment about AmigaOS4 .so support |
| 15955 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15956 | ;; |
| 15957 | m68k) |
| 15958 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15959 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 15960 | # like '-m68040'. |
| 15961 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 15962 | ;; |
| 15963 | esac |
| 15964 | ;; |
| 15965 | |
| 15966 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15967 | # PIC is the default for these OSes. |
| 15968 | ;; |
| 15969 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 15970 | # This hack is so that the source file can tell whether it is being |
| 15971 | # built for inclusion in a dll (and should export symbols for example). |
| 15972 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 15973 | # (--disable-auto-import) libraries |
| 15974 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 15975 | case $host_os in |
| 15976 | os2*) |
| 15977 | lt_prog_compiler_static_CXX='$wl-static' |
| 15978 | ;; |
| 15979 | esac |
| 15980 | ;; |
| 15981 | darwin* | rhapsody*) |
| 15982 | # PIC is the default on this platform |
| 15983 | # Common symbols not allowed in MH_DYLIB files |
| 15984 | lt_prog_compiler_pic_CXX='-fno-common' |
| 15985 | ;; |
| 15986 | *djgpp*) |
| 15987 | # DJGPP does not support shared libraries at all |
| 15988 | lt_prog_compiler_pic_CXX= |
| 15989 | ;; |
| 15990 | haiku*) |
| 15991 | # PIC is the default for Haiku. |
| 15992 | # The "-static" flag exists, but is broken. |
| 15993 | lt_prog_compiler_static_CXX= |
| 15994 | ;; |
| 15995 | interix[3-9]*) |
| 15996 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 15997 | # Instead, we relocate shared libraries at runtime. |
| 15998 | ;; |
| 15999 | sysv4*MP*) |
| 16000 | if test -d /usr/nec; then |
| 16001 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16002 | fi |
| 16003 | ;; |
| 16004 | hpux*) |
| 16005 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 16006 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 16007 | # sets the default TLS model and affects inlining. |
| 16008 | case $host_cpu in |
| 16009 | hppa*64*) |
| 16010 | ;; |
| 16011 | *) |
| 16012 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16013 | ;; |
| 16014 | esac |
| 16015 | ;; |
| 16016 | *qnx* | *nto*) |
| 16017 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16018 | # it will coredump. |
| 16019 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16020 | ;; |
| 16021 | *) |
| 16022 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16023 | ;; |
| 16024 | esac |
| 16025 | else |
| 16026 | case $host_os in |
| 16027 | aix[4-9]*) |
| 16028 | # All AIX code is PIC. |
| 16029 | if test ia64 = "$host_cpu"; then |
| 16030 | # AIX 5 now supports IA64 processor |
| 16031 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16032 | else |
| 16033 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16034 | fi |
| 16035 | ;; |
| 16036 | chorus*) |
| 16037 | case $cc_basename in |
| 16038 | cxch68*) |
| 16039 | # Green Hills C++ Compiler |
| 16040 | # _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" |
| 16041 | ;; |
| 16042 | esac |
| 16043 | ;; |
| 16044 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 16045 | # This hack is so that the source file can tell whether it is being |
| 16046 | # built for inclusion in a dll (and should export symbols for example). |
| 16047 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16048 | ;; |
| 16049 | dgux*) |
| 16050 | case $cc_basename in |
| 16051 | ec++*) |
| 16052 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16053 | ;; |
| 16054 | ghcx*) |
| 16055 | # Green Hills C++ Compiler |
| 16056 | lt_prog_compiler_pic_CXX='-pic' |
| 16057 | ;; |
| 16058 | *) |
| 16059 | ;; |
| 16060 | esac |
| 16061 | ;; |
| 16062 | freebsd* | dragonfly*) |
| 16063 | # FreeBSD uses GNU C++ |
| 16064 | ;; |
| 16065 | hpux9* | hpux10* | hpux11*) |
| 16066 | case $cc_basename in |
| 16067 | CC*) |
| 16068 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16069 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 16070 | if test ia64 != "$host_cpu"; then |
| 16071 | lt_prog_compiler_pic_CXX='+Z' |
| 16072 | fi |
| 16073 | ;; |
| 16074 | aCC*) |
| 16075 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16076 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
| 16077 | case $host_cpu in |
| 16078 | hppa*64*|ia64*) |
| 16079 | # +Z the default |
| 16080 | ;; |
| 16081 | *) |
| 16082 | lt_prog_compiler_pic_CXX='+Z' |
| 16083 | ;; |
| 16084 | esac |
| 16085 | ;; |
| 16086 | *) |
| 16087 | ;; |
| 16088 | esac |
| 16089 | ;; |
| 16090 | interix*) |
| 16091 | # This is c89, which is MS Visual C++ (no shared libs) |
| 16092 | # Anyone wants to do a port? |
| 16093 | ;; |
| 16094 | irix5* | irix6* | nonstopux*) |
| 16095 | case $cc_basename in |
| 16096 | CC*) |
| 16097 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16098 | lt_prog_compiler_static_CXX='-non_shared' |
| 16099 | # CC pic flag -KPIC is the default. |
| 16100 | ;; |
| 16101 | *) |
| 16102 | ;; |
| 16103 | esac |
| 16104 | ;; |
| 16105 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 16106 | case $cc_basename in |
| 16107 | KCC*) |
| 16108 | # KAI C++ Compiler |
| 16109 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16110 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16111 | ;; |
| 16112 | ecpc* ) |
| 16113 | # old Intel C++ for x86_64, which still supported -KPIC. |
| 16114 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16115 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16116 | lt_prog_compiler_static_CXX='-static' |
| 16117 | ;; |
| 16118 | icpc* ) |
| 16119 | # Intel C++, used to be incompatible with GCC. |
| 16120 | # ICC 10 doesn't accept -KPIC any more. |
| 16121 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16122 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16123 | lt_prog_compiler_static_CXX='-static' |
| 16124 | ;; |
| 16125 | pgCC* | pgcpp*) |
| 16126 | # Portland Group C++ compiler |
| 16127 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16128 | lt_prog_compiler_pic_CXX='-fpic' |
| 16129 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16130 | ;; |
| 16131 | cxx*) |
| 16132 | # Compaq C++ |
| 16133 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16134 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16135 | lt_prog_compiler_pic_CXX= |
| 16136 | lt_prog_compiler_static_CXX='-non_shared' |
| 16137 | ;; |
| 16138 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 16139 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 16140 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16141 | lt_prog_compiler_pic_CXX='-qpic' |
| 16142 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 16143 | ;; |
| 16144 | *) |
| 16145 | case `$CC -V 2>&1 | sed 5q` in |
| 16146 | *Sun\ C*) |
| 16147 | # Sun C++ 5.9 |
| 16148 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16149 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16150 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16151 | ;; |
| 16152 | esac |
| 16153 | ;; |
| 16154 | esac |
| 16155 | ;; |
| 16156 | lynxos*) |
| 16157 | ;; |
| 16158 | m88k*) |
| 16159 | ;; |
| 16160 | mvs*) |
| 16161 | case $cc_basename in |
| 16162 | cxx*) |
| 16163 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16164 | ;; |
| 16165 | *) |
| 16166 | ;; |
| 16167 | esac |
| 16168 | ;; |
| 16169 | netbsd* | netbsdelf*-gnu) |
| 16170 | ;; |
| 16171 | *qnx* | *nto*) |
| 16172 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16173 | # it will coredump. |
| 16174 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16175 | ;; |
| 16176 | osf3* | osf4* | osf5*) |
| 16177 | case $cc_basename in |
| 16178 | KCC*) |
| 16179 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16180 | ;; |
| 16181 | RCC*) |
| 16182 | # Rational C++ 2.4.1 |
| 16183 | lt_prog_compiler_pic_CXX='-pic' |
| 16184 | ;; |
| 16185 | cxx*) |
| 16186 | # Digital/Compaq C++ |
| 16187 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16188 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16189 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16190 | lt_prog_compiler_pic_CXX= |
| 16191 | lt_prog_compiler_static_CXX='-non_shared' |
| 16192 | ;; |
| 16193 | *) |
| 16194 | ;; |
| 16195 | esac |
| 16196 | ;; |
| 16197 | psos*) |
| 16198 | ;; |
| 16199 | solaris*) |
| 16200 | case $cc_basename in |
| 16201 | CC* | sunCC*) |
| 16202 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16203 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16204 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16205 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16206 | ;; |
| 16207 | gcx*) |
| 16208 | # Green Hills C++ Compiler |
| 16209 | lt_prog_compiler_pic_CXX='-PIC' |
| 16210 | ;; |
| 16211 | *) |
| 16212 | ;; |
| 16213 | esac |
| 16214 | ;; |
| 16215 | sunos4*) |
| 16216 | case $cc_basename in |
| 16217 | CC*) |
| 16218 | # Sun C++ 4.x |
| 16219 | lt_prog_compiler_pic_CXX='-pic' |
| 16220 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16221 | ;; |
| 16222 | lcc*) |
| 16223 | # Lucid |
| 16224 | lt_prog_compiler_pic_CXX='-pic' |
| 16225 | ;; |
| 16226 | *) |
| 16227 | ;; |
| 16228 | esac |
| 16229 | ;; |
| 16230 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16231 | case $cc_basename in |
| 16232 | CC*) |
| 16233 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16234 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16235 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16236 | ;; |
| 16237 | esac |
| 16238 | ;; |
| 16239 | tandem*) |
| 16240 | case $cc_basename in |
| 16241 | NCC*) |
| 16242 | # NonStop-UX NCC 3.20 |
| 16243 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16244 | ;; |
| 16245 | *) |
| 16246 | ;; |
| 16247 | esac |
| 16248 | ;; |
| 16249 | vxworks*) |
| 16250 | ;; |
| 16251 | *) |
| 16252 | lt_prog_compiler_can_build_shared_CXX=no |
| 16253 | ;; |
| 16254 | esac |
| 16255 | fi |
| 16256 | |
| 16257 | case $host_os in |
| 16258 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 16259 | *djgpp*) |
| 16260 | lt_prog_compiler_pic_CXX= |
| 16261 | ;; |
| 16262 | *) |
| 16263 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16264 | ;; |
| 16265 | esac |
| 16266 | |
| 16267 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 16268 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 16269 | if test ${lt_cv_prog_compiler_pic_CXX+y} |
| 16270 | then : |
| 16271 | printf %s "(cached) " >&6 |
| 16272 | else $as_nop |
| 16273 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 16274 | fi |
| 16275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 16276 | printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 16277 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 16278 | |
| 16279 | # |
| 16280 | # Check to make sure the PIC flag actually works. |
| 16281 | # |
| 16282 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 16283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 16284 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 16285 | if test ${lt_cv_prog_compiler_pic_works_CXX+y} |
| 16286 | then : |
| 16287 | printf %s "(cached) " >&6 |
| 16288 | else $as_nop |
| 16289 | lt_cv_prog_compiler_pic_works_CXX=no |
| 16290 | ac_outfile=conftest.$ac_objext |
| 16291 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16292 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 16293 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16294 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16295 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16296 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16297 | # The option is referenced via a variable to avoid confusing sed. |
| 16298 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16299 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16300 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16301 | -e 's:$: $lt_compiler_flag:'` |
| 16302 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 16303 | (eval "$lt_compile" 2>conftest.err) |
| 16304 | ac_status=$? |
| 16305 | cat conftest.err >&5 |
| 16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16307 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16308 | # The compiler can only warn and ignore the option if not recognized |
| 16309 | # So say no if there are warnings other than the usual output. |
| 16310 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 16311 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16312 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 16313 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 16314 | fi |
| 16315 | fi |
| 16316 | $RM conftest* |
| 16317 | |
| 16318 | fi |
| 16319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 16320 | printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 16321 | |
| 16322 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
| 16323 | case $lt_prog_compiler_pic_CXX in |
| 16324 | "" | " "*) ;; |
| 16325 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16326 | esac |
| 16327 | else |
| 16328 | lt_prog_compiler_pic_CXX= |
| 16329 | lt_prog_compiler_can_build_shared_CXX=no |
| 16330 | fi |
| 16331 | |
| 16332 | fi |
| 16333 | |
| 16334 | |
| 16335 | |
| 16336 | |
| 16337 | |
| 16338 | # |
| 16339 | # Check to make sure the static flag actually works. |
| 16340 | # |
| 16341 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 16342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 16343 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 16344 | if test ${lt_cv_prog_compiler_static_works_CXX+y} |
| 16345 | then : |
| 16346 | printf %s "(cached) " >&6 |
| 16347 | else $as_nop |
| 16348 | lt_cv_prog_compiler_static_works_CXX=no |
| 16349 | save_LDFLAGS=$LDFLAGS |
| 16350 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16351 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16352 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16353 | # The linker can only warn and ignore the option if not recognized |
| 16354 | # So say no if there are warnings |
| 16355 | if test -s conftest.err; then |
| 16356 | # Append any errors to the config.log. |
| 16357 | cat conftest.err 1>&5 |
| 16358 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 16359 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16360 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16361 | lt_cv_prog_compiler_static_works_CXX=yes |
| 16362 | fi |
| 16363 | else |
| 16364 | lt_cv_prog_compiler_static_works_CXX=yes |
| 16365 | fi |
| 16366 | fi |
| 16367 | $RM -r conftest* |
| 16368 | LDFLAGS=$save_LDFLAGS |
| 16369 | |
| 16370 | fi |
| 16371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 16372 | printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 16373 | |
| 16374 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
| 16375 | : |
| 16376 | else |
| 16377 | lt_prog_compiler_static_CXX= |
| 16378 | fi |
| 16379 | |
| 16380 | |
| 16381 | |
| 16382 | |
| 16383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16384 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 16385 | if test ${lt_cv_prog_compiler_c_o_CXX+y} |
| 16386 | then : |
| 16387 | printf %s "(cached) " >&6 |
| 16388 | else $as_nop |
| 16389 | lt_cv_prog_compiler_c_o_CXX=no |
| 16390 | $RM -r conftest 2>/dev/null |
| 16391 | mkdir conftest |
| 16392 | cd conftest |
| 16393 | mkdir out |
| 16394 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16395 | |
| 16396 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16397 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16398 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16399 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16400 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16401 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16402 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16403 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16404 | -e 's:$: $lt_compiler_flag:'` |
| 16405 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 16406 | (eval "$lt_compile" 2>out/conftest.err) |
| 16407 | ac_status=$? |
| 16408 | cat out/conftest.err >&5 |
| 16409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16410 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16411 | then |
| 16412 | # The compiler can only warn and ignore the option if not recognized |
| 16413 | # So say no if there are warnings |
| 16414 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 16415 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16416 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16417 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16418 | fi |
| 16419 | fi |
| 16420 | chmod u+w . 2>&5 |
| 16421 | $RM conftest* |
| 16422 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16423 | # template instantiation |
| 16424 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16425 | $RM out/* && rmdir out |
| 16426 | cd .. |
| 16427 | $RM -r conftest |
| 16428 | $RM conftest* |
| 16429 | |
| 16430 | fi |
| 16431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16432 | printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16433 | |
| 16434 | |
| 16435 | |
| 16436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16437 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 16438 | if test ${lt_cv_prog_compiler_c_o_CXX+y} |
| 16439 | then : |
| 16440 | printf %s "(cached) " >&6 |
| 16441 | else $as_nop |
| 16442 | lt_cv_prog_compiler_c_o_CXX=no |
| 16443 | $RM -r conftest 2>/dev/null |
| 16444 | mkdir conftest |
| 16445 | cd conftest |
| 16446 | mkdir out |
| 16447 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16448 | |
| 16449 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16450 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16451 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16452 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16453 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16454 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16455 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16456 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16457 | -e 's:$: $lt_compiler_flag:'` |
| 16458 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 16459 | (eval "$lt_compile" 2>out/conftest.err) |
| 16460 | ac_status=$? |
| 16461 | cat out/conftest.err >&5 |
| 16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16463 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16464 | then |
| 16465 | # The compiler can only warn and ignore the option if not recognized |
| 16466 | # So say no if there are warnings |
| 16467 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 16468 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16469 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16470 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16471 | fi |
| 16472 | fi |
| 16473 | chmod u+w . 2>&5 |
| 16474 | $RM conftest* |
| 16475 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16476 | # template instantiation |
| 16477 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16478 | $RM out/* && rmdir out |
| 16479 | cd .. |
| 16480 | $RM -r conftest |
| 16481 | $RM conftest* |
| 16482 | |
| 16483 | fi |
| 16484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16485 | printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16486 | |
| 16487 | |
| 16488 | |
| 16489 | |
| 16490 | hard_links=nottested |
| 16491 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then |
| 16492 | # do not overwrite the value of need_locks provided by the user |
| 16493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 16494 | printf %s "checking if we can lock with hard links... " >&6; } |
| 16495 | hard_links=yes |
| 16496 | $RM conftest* |
| 16497 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16498 | touch conftest.a |
| 16499 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16500 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 16502 | printf "%s\n" "$hard_links" >&6; } |
| 16503 | if test no = "$hard_links"; then |
| 16504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 16505 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 16506 | need_locks=warn |
| 16507 | fi |
| 16508 | else |
| 16509 | need_locks=no |
| 16510 | fi |
| 16511 | |
| 16512 | |
| 16513 | |
| 16514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16515 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 16516 | |
| 16517 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16518 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 16519 | case $host_os in |
| 16520 | aix[4-9]*) |
| 16521 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16522 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 16523 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 16524 | # weak defined symbols like other global defined symbols, whereas |
| 16525 | # GNU nm marks them as "W". |
| 16526 | # While the 'weak' keyword is ignored in the Export File, we need |
| 16527 | # it in the Import File for the 'aix-soname' feature, so we have |
| 16528 | # to replace the "-B" option with "-P" for AIX nm. |
| 16529 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 16530 | 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' |
| 16531 | else |
| 16532 | 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 == "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' |
| 16533 | fi |
| 16534 | ;; |
| 16535 | pw32*) |
| 16536 | export_symbols_cmds_CXX=$ltdll_cmds |
| 16537 | ;; |
| 16538 | cygwin* | mingw* | cegcc*) |
| 16539 | case $cc_basename in |
| 16540 | cl*) |
| 16541 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 16542 | ;; |
| 16543 | *) |
| 16544 | 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' |
| 16545 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 16546 | ;; |
| 16547 | esac |
| 16548 | ;; |
| 16549 | linux* | k*bsd*-gnu | gnu*) |
| 16550 | link_all_deplibs_CXX=no |
| 16551 | ;; |
| 16552 | *) |
| 16553 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16554 | ;; |
| 16555 | esac |
| 16556 | |
| 16557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 16558 | printf "%s\n" "$ld_shlibs_CXX" >&6; } |
| 16559 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
| 16560 | |
| 16561 | with_gnu_ld_CXX=$with_gnu_ld |
| 16562 | |
| 16563 | |
| 16564 | |
| 16565 | |
| 16566 | |
| 16567 | |
| 16568 | # |
| 16569 | # Do we need to explicitly link libc? |
| 16570 | # |
| 16571 | case "x$archive_cmds_need_lc_CXX" in |
| 16572 | x|xyes) |
| 16573 | # Assume -lc should be added |
| 16574 | archive_cmds_need_lc_CXX=yes |
| 16575 | |
| 16576 | if test yes,yes = "$GCC,$enable_shared"; then |
| 16577 | case $archive_cmds_CXX in |
| 16578 | *'~'*) |
| 16579 | # FIXME: we may have to deal with multi-command sequences. |
| 16580 | ;; |
| 16581 | '$CC '*) |
| 16582 | # Test whether the compiler implicitly links with -lc since on some |
| 16583 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16584 | # to ld, don't add -lc before -lgcc. |
| 16585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 16586 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 16587 | if test ${lt_cv_archive_cmds_need_lc_CXX+y} |
| 16588 | then : |
| 16589 | printf %s "(cached) " >&6 |
| 16590 | else $as_nop |
| 16591 | $RM conftest* |
| 16592 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16593 | |
| 16594 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 16595 | (eval $ac_compile) 2>&5 |
| 16596 | ac_status=$? |
| 16597 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16598 | test $ac_status = 0; } 2>conftest.err; then |
| 16599 | soname=conftest |
| 16600 | lib=conftest |
| 16601 | libobjs=conftest.$ac_objext |
| 16602 | deplibs= |
| 16603 | wl=$lt_prog_compiler_wl_CXX |
| 16604 | pic_flag=$lt_prog_compiler_pic_CXX |
| 16605 | compiler_flags=-v |
| 16606 | linker_flags=-v |
| 16607 | verstring= |
| 16608 | output_objdir=. |
| 16609 | libname=conftest |
| 16610 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16611 | allow_undefined_flag_CXX= |
| 16612 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 16613 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16614 | ac_status=$? |
| 16615 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16616 | test $ac_status = 0; } |
| 16617 | then |
| 16618 | lt_cv_archive_cmds_need_lc_CXX=no |
| 16619 | else |
| 16620 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 16621 | fi |
| 16622 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16623 | else |
| 16624 | cat conftest.err 1>&5 |
| 16625 | fi |
| 16626 | $RM conftest* |
| 16627 | |
| 16628 | fi |
| 16629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 16630 | printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 16631 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 16632 | ;; |
| 16633 | esac |
| 16634 | fi |
| 16635 | ;; |
| 16636 | esac |
| 16637 | |
| 16638 | |
| 16639 | |
| 16640 | |
| 16641 | |
| 16642 | |
| 16643 | |
| 16644 | |
| 16645 | |
| 16646 | |
| 16647 | |
| 16648 | |
| 16649 | |
| 16650 | |
| 16651 | |
| 16652 | |
| 16653 | |
| 16654 | |
| 16655 | |
| 16656 | |
| 16657 | |
| 16658 | |
| 16659 | |
| 16660 | |
| 16661 | |
| 16662 | |
| 16663 | |
| 16664 | |
| 16665 | |
| 16666 | |
| 16667 | |
| 16668 | |
| 16669 | |
| 16670 | |
| 16671 | |
| 16672 | |
| 16673 | |
| 16674 | |
| 16675 | |
| 16676 | |
| 16677 | |
| 16678 | |
| 16679 | |
| 16680 | |
| 16681 | |
| 16682 | |
| 16683 | |
| 16684 | |
| 16685 | |
| 16686 | |
| 16687 | |
| 16688 | |
| 16689 | |
| 16690 | |
| 16691 | |
| 16692 | |
| 16693 | |
| 16694 | |
| 16695 | |
| 16696 | |
| 16697 | |
| 16698 | |
| 16699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 16700 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 16701 | |
| 16702 | library_names_spec= |
| 16703 | libname_spec='lib$name' |
| 16704 | soname_spec= |
| 16705 | shrext_cmds=.so |
| 16706 | postinstall_cmds= |
| 16707 | postuninstall_cmds= |
| 16708 | finish_cmds= |
| 16709 | finish_eval= |
| 16710 | shlibpath_var= |
| 16711 | shlibpath_overrides_runpath=unknown |
| 16712 | version_type=none |
| 16713 | dynamic_linker="$host_os ld.so" |
| 16714 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16715 | need_lib_prefix=unknown |
| 16716 | hardcode_into_libs=no |
| 16717 | |
| 16718 | # when you set need_version to no, make sure it does not cause -set_version |
| 16719 | # flags to be left without arguments |
| 16720 | need_version=unknown |
| 16721 | |
| 16722 | |
| 16723 | |
| 16724 | case $host_os in |
| 16725 | aix3*) |
| 16726 | version_type=linux # correct to gnu/linux during the next big refactor |
| 16727 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 16728 | shlibpath_var=LIBPATH |
| 16729 | |
| 16730 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16731 | soname_spec='$libname$release$shared_ext$major' |
| 16732 | ;; |
| 16733 | |
| 16734 | aix[4-9]*) |
| 16735 | version_type=linux # correct to gnu/linux during the next big refactor |
| 16736 | need_lib_prefix=no |
| 16737 | need_version=no |
| 16738 | hardcode_into_libs=yes |
| 16739 | if test ia64 = "$host_cpu"; then |
| 16740 | # AIX 5 supports IA64 |
| 16741 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 16742 | shlibpath_var=LD_LIBRARY_PATH |
| 16743 | else |
| 16744 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16745 | # for dependence libraries. The import file would start with |
| 16746 | # the line '#! .'. This would cause the generated library to |
| 16747 | # depend on '.', always an invalid library. This was fixed in |
| 16748 | # development snapshots of GCC prior to 3.0. |
| 16749 | case $host_os in |
| 16750 | aix4 | aix4.[01] | aix4.[01].*) |
| 16751 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16752 | echo ' yes ' |
| 16753 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 16754 | : |
| 16755 | else |
| 16756 | can_build_shared=no |
| 16757 | fi |
| 16758 | ;; |
| 16759 | esac |
| 16760 | # Using Import Files as archive members, it is possible to support |
| 16761 | # filename-based versioning of shared library archives on AIX. While |
| 16762 | # this would work for both with and without runtime linking, it will |
| 16763 | # prevent static linking of such archives. So we do filename-based |
| 16764 | # shared library versioning with .so extension only, which is used |
| 16765 | # when both runtime linking and shared linking is enabled. |
| 16766 | # Unfortunately, runtime linking may impact performance, so we do |
| 16767 | # not want this to be the default eventually. Also, we use the |
| 16768 | # versioned .so libs for executables only if there is the -brtl |
| 16769 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 16770 | # To allow for filename-based versioning support, we need to create |
| 16771 | # libNAME.so.V as an archive file, containing: |
| 16772 | # *) an Import File, referring to the versioned filename of the |
| 16773 | # archive as well as the shared archive member, telling the |
| 16774 | # bitwidth (32 or 64) of that shared object, and providing the |
| 16775 | # list of exported symbols of that shared object, eventually |
| 16776 | # decorated with the 'weak' keyword |
| 16777 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 16778 | # it being seen by the linker. |
| 16779 | # At run time we better use the real file rather than another symlink, |
| 16780 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 16781 | |
| 16782 | case $with_aix_soname,$aix_use_runtimelinking in |
| 16783 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 16784 | # soname into executable. Probably we can add versioning support to |
| 16785 | # collect2, so additional links can be useful in future. |
| 16786 | aix,yes) # traditional libtool |
| 16787 | dynamic_linker='AIX unversionable lib.so' |
| 16788 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16789 | # instead of lib<name>.a to let people know that these are not |
| 16790 | # typical AIX shared libraries. |
| 16791 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16792 | ;; |
| 16793 | aix,no) # traditional AIX only |
| 16794 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 16795 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16796 | # and later when we are not doing run time linking. |
| 16797 | library_names_spec='$libname$release.a $libname.a' |
| 16798 | soname_spec='$libname$release$shared_ext$major' |
| 16799 | ;; |
| 16800 | svr4,*) # full svr4 only |
| 16801 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 16802 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 16803 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 16804 | shlibpath_overrides_runpath=yes |
| 16805 | ;; |
| 16806 | *,yes) # both, prefer svr4 |
| 16807 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 16808 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 16809 | # unpreferred sharedlib libNAME.a needs extra handling |
| 16810 | 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"' |
| 16811 | 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"' |
| 16812 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 16813 | shlibpath_overrides_runpath=yes |
| 16814 | ;; |
| 16815 | *,no) # both, prefer aix |
| 16816 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 16817 | library_names_spec='$libname$release.a $libname.a' |
| 16818 | soname_spec='$libname$release$shared_ext$major' |
| 16819 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 16820 | 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)' |
| 16821 | 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"' |
| 16822 | ;; |
| 16823 | esac |
| 16824 | shlibpath_var=LIBPATH |
| 16825 | fi |
| 16826 | ;; |
| 16827 | |
| 16828 | amigaos*) |
| 16829 | case $host_cpu in |
| 16830 | powerpc) |
| 16831 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 16832 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 16833 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16834 | ;; |
| 16835 | m68k) |
| 16836 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16837 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16838 | 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' |
| 16839 | ;; |
| 16840 | esac |
| 16841 | ;; |
| 16842 | |
| 16843 | beos*) |
| 16844 | library_names_spec='$libname$shared_ext' |
| 16845 | dynamic_linker="$host_os ld.so" |
| 16846 | shlibpath_var=LIBRARY_PATH |
| 16847 | ;; |
| 16848 | |
| 16849 | bsdi[45]*) |
| 16850 | version_type=linux # correct to gnu/linux during the next big refactor |
| 16851 | need_version=no |
| 16852 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16853 | soname_spec='$libname$release$shared_ext$major' |
| 16854 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16855 | shlibpath_var=LD_LIBRARY_PATH |
| 16856 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16857 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16858 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16859 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16860 | # libtool to hard-code these into programs |
| 16861 | ;; |
| 16862 | |
| 16863 | cygwin* | mingw* | pw32* | cegcc*) |
| 16864 | version_type=windows |
| 16865 | shrext_cmds=.dll |
| 16866 | need_version=no |
| 16867 | need_lib_prefix=no |
| 16868 | |
| 16869 | case $GCC,$cc_basename in |
| 16870 | yes,*) |
| 16871 | # gcc |
| 16872 | library_names_spec='$libname.dll.a' |
| 16873 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16874 | postinstall_cmds='base_file=`basename \$file`~ |
| 16875 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 16876 | dldir=$destdir/`dirname \$dlpath`~ |
| 16877 | test -d \$dldir || mkdir -p \$dldir~ |
| 16878 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16879 | chmod a+x \$dldir/$dlname~ |
| 16880 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16881 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 16882 | fi' |
| 16883 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16884 | dlpath=$dir/\$dldll~ |
| 16885 | $RM \$dlpath' |
| 16886 | shlibpath_overrides_runpath=yes |
| 16887 | |
| 16888 | case $host_os in |
| 16889 | cygwin*) |
| 16890 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16891 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16892 | |
| 16893 | ;; |
| 16894 | mingw* | cegcc*) |
| 16895 | # MinGW DLLs use traditional 'lib' prefix |
| 16896 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16897 | ;; |
| 16898 | pw32*) |
| 16899 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16900 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16901 | ;; |
| 16902 | esac |
| 16903 | dynamic_linker='Win32 ld.exe' |
| 16904 | ;; |
| 16905 | |
| 16906 | *,cl*) |
| 16907 | # Native MSVC |
| 16908 | libname_spec='$name' |
| 16909 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16910 | library_names_spec='$libname.dll.lib' |
| 16911 | |
| 16912 | case $build_os in |
| 16913 | mingw*) |
| 16914 | sys_lib_search_path_spec= |
| 16915 | lt_save_ifs=$IFS |
| 16916 | IFS=';' |
| 16917 | for lt_path in $LIB |
| 16918 | do |
| 16919 | IFS=$lt_save_ifs |
| 16920 | # Let DOS variable expansion print the short 8.3 style file name. |
| 16921 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 16922 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 16923 | done |
| 16924 | IFS=$lt_save_ifs |
| 16925 | # Convert to MSYS style. |
| 16926 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 16927 | ;; |
| 16928 | cygwin*) |
| 16929 | # Convert to unix form, then to dos form, then back to unix form |
| 16930 | # but this time dos style (no spaces!) so that the unix form looks |
| 16931 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 16932 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 16933 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 16934 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16935 | ;; |
| 16936 | *) |
| 16937 | sys_lib_search_path_spec=$LIB |
| 16938 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 16939 | # It is most probably a Windows format PATH. |
| 16940 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16941 | else |
| 16942 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16943 | fi |
| 16944 | # FIXME: find the short name or the path components, as spaces are |
| 16945 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 16946 | ;; |
| 16947 | esac |
| 16948 | |
| 16949 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16950 | postinstall_cmds='base_file=`basename \$file`~ |
| 16951 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 16952 | dldir=$destdir/`dirname \$dlpath`~ |
| 16953 | test -d \$dldir || mkdir -p \$dldir~ |
| 16954 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16955 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16956 | dlpath=$dir/\$dldll~ |
| 16957 | $RM \$dlpath' |
| 16958 | shlibpath_overrides_runpath=yes |
| 16959 | dynamic_linker='Win32 link.exe' |
| 16960 | ;; |
| 16961 | |
| 16962 | *) |
| 16963 | # Assume MSVC wrapper |
| 16964 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 16965 | dynamic_linker='Win32 ld.exe' |
| 16966 | ;; |
| 16967 | esac |
| 16968 | # FIXME: first we should search . and the directory the executable is in |
| 16969 | shlibpath_var=PATH |
| 16970 | ;; |
| 16971 | |
| 16972 | darwin* | rhapsody*) |
| 16973 | dynamic_linker="$host_os dyld" |
| 16974 | version_type=darwin |
| 16975 | need_lib_prefix=no |
| 16976 | need_version=no |
| 16977 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 16978 | soname_spec='$libname$release$major$shared_ext' |
| 16979 | shlibpath_overrides_runpath=yes |
| 16980 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16981 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16982 | |
| 16983 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16984 | ;; |
| 16985 | |
| 16986 | dgux*) |
| 16987 | version_type=linux # correct to gnu/linux during the next big refactor |
| 16988 | need_lib_prefix=no |
| 16989 | need_version=no |
| 16990 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16991 | soname_spec='$libname$release$shared_ext$major' |
| 16992 | shlibpath_var=LD_LIBRARY_PATH |
| 16993 | ;; |
| 16994 | |
| 16995 | freebsd* | dragonfly*) |
| 16996 | # DragonFly does not have aout. When/if they implement a new |
| 16997 | # versioning mechanism, adjust this. |
| 16998 | if test -x /usr/bin/objformat; then |
| 16999 | objformat=`/usr/bin/objformat` |
| 17000 | else |
| 17001 | case $host_os in |
| 17002 | freebsd[23].*) objformat=aout ;; |
| 17003 | *) objformat=elf ;; |
| 17004 | esac |
| 17005 | fi |
| 17006 | version_type=freebsd-$objformat |
| 17007 | case $version_type in |
| 17008 | freebsd-elf*) |
| 17009 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17010 | soname_spec='$libname$release$shared_ext$major' |
| 17011 | need_version=no |
| 17012 | need_lib_prefix=no |
| 17013 | ;; |
| 17014 | freebsd-*) |
| 17015 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17016 | need_version=yes |
| 17017 | ;; |
| 17018 | esac |
| 17019 | shlibpath_var=LD_LIBRARY_PATH |
| 17020 | case $host_os in |
| 17021 | freebsd2.*) |
| 17022 | shlibpath_overrides_runpath=yes |
| 17023 | ;; |
| 17024 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 17025 | shlibpath_overrides_runpath=yes |
| 17026 | hardcode_into_libs=yes |
| 17027 | ;; |
| 17028 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 17029 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 17030 | shlibpath_overrides_runpath=no |
| 17031 | hardcode_into_libs=yes |
| 17032 | ;; |
| 17033 | *) # from 4.6 on, and DragonFly |
| 17034 | shlibpath_overrides_runpath=yes |
| 17035 | hardcode_into_libs=yes |
| 17036 | ;; |
| 17037 | esac |
| 17038 | ;; |
| 17039 | |
| 17040 | haiku*) |
| 17041 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17042 | need_lib_prefix=no |
| 17043 | need_version=no |
| 17044 | dynamic_linker="$host_os runtime_loader" |
| 17045 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17046 | soname_spec='$libname$release$shared_ext$major' |
| 17047 | shlibpath_var=LIBRARY_PATH |
| 17048 | shlibpath_overrides_runpath=no |
| 17049 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 17050 | hardcode_into_libs=yes |
| 17051 | ;; |
| 17052 | |
| 17053 | hpux9* | hpux10* | hpux11*) |
| 17054 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17055 | # link against other versions. |
| 17056 | version_type=sunos |
| 17057 | need_lib_prefix=no |
| 17058 | need_version=no |
| 17059 | case $host_cpu in |
| 17060 | ia64*) |
| 17061 | shrext_cmds='.so' |
| 17062 | hardcode_into_libs=yes |
| 17063 | dynamic_linker="$host_os dld.so" |
| 17064 | shlibpath_var=LD_LIBRARY_PATH |
| 17065 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17066 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17067 | soname_spec='$libname$release$shared_ext$major' |
| 17068 | if test 32 = "$HPUX_IA64_MODE"; then |
| 17069 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17070 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 17071 | else |
| 17072 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17073 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 17074 | fi |
| 17075 | ;; |
| 17076 | hppa*64*) |
| 17077 | shrext_cmds='.sl' |
| 17078 | hardcode_into_libs=yes |
| 17079 | dynamic_linker="$host_os dld.sl" |
| 17080 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17081 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17082 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17083 | soname_spec='$libname$release$shared_ext$major' |
| 17084 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17085 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17086 | ;; |
| 17087 | *) |
| 17088 | shrext_cmds='.sl' |
| 17089 | dynamic_linker="$host_os dld.sl" |
| 17090 | shlibpath_var=SHLIB_PATH |
| 17091 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17092 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17093 | soname_spec='$libname$release$shared_ext$major' |
| 17094 | ;; |
| 17095 | esac |
| 17096 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 17097 | postinstall_cmds='chmod 555 $lib' |
| 17098 | # or fails outright, so override atomically: |
| 17099 | install_override_mode=555 |
| 17100 | ;; |
| 17101 | |
| 17102 | interix[3-9]*) |
| 17103 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17104 | need_lib_prefix=no |
| 17105 | need_version=no |
| 17106 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17107 | soname_spec='$libname$release$shared_ext$major' |
| 17108 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17109 | shlibpath_var=LD_LIBRARY_PATH |
| 17110 | shlibpath_overrides_runpath=no |
| 17111 | hardcode_into_libs=yes |
| 17112 | ;; |
| 17113 | |
| 17114 | irix5* | irix6* | nonstopux*) |
| 17115 | case $host_os in |
| 17116 | nonstopux*) version_type=nonstopux ;; |
| 17117 | *) |
| 17118 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 17119 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17120 | else |
| 17121 | version_type=irix |
| 17122 | fi ;; |
| 17123 | esac |
| 17124 | need_lib_prefix=no |
| 17125 | need_version=no |
| 17126 | soname_spec='$libname$release$shared_ext$major' |
| 17127 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 17128 | case $host_os in |
| 17129 | irix5* | nonstopux*) |
| 17130 | libsuff= shlibsuff= |
| 17131 | ;; |
| 17132 | *) |
| 17133 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17134 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17135 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17136 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17137 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17138 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17139 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17140 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17141 | esac |
| 17142 | ;; |
| 17143 | esac |
| 17144 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17145 | shlibpath_overrides_runpath=no |
| 17146 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 17147 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 17148 | hardcode_into_libs=yes |
| 17149 | ;; |
| 17150 | |
| 17151 | # No shared lib support for Linux oldld, aout, or coff. |
| 17152 | linux*oldld* | linux*aout* | linux*coff*) |
| 17153 | dynamic_linker=no |
| 17154 | ;; |
| 17155 | |
| 17156 | linux*android*) |
| 17157 | version_type=none # Android doesn't support versioned libraries. |
| 17158 | need_lib_prefix=no |
| 17159 | need_version=no |
| 17160 | library_names_spec='$libname$release$shared_ext' |
| 17161 | soname_spec='$libname$release$shared_ext' |
| 17162 | finish_cmds= |
| 17163 | shlibpath_var=LD_LIBRARY_PATH |
| 17164 | shlibpath_overrides_runpath=yes |
| 17165 | |
| 17166 | # This implies no fast_install, which is unacceptable. |
| 17167 | # Some rework will be needed to allow for fast_install |
| 17168 | # before this can be enabled. |
| 17169 | hardcode_into_libs=yes |
| 17170 | |
| 17171 | dynamic_linker='Android linker' |
| 17172 | # Don't embed -rpath directories since the linker doesn't support them. |
| 17173 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17174 | ;; |
| 17175 | |
| 17176 | # This must be glibc/ELF. |
| 17177 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 17178 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17179 | need_lib_prefix=no |
| 17180 | need_version=no |
| 17181 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17182 | soname_spec='$libname$release$shared_ext$major' |
| 17183 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17184 | shlibpath_var=LD_LIBRARY_PATH |
| 17185 | shlibpath_overrides_runpath=no |
| 17186 | |
| 17187 | # Some binutils ld are patched to set DT_RUNPATH |
| 17188 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 17189 | then : |
| 17190 | printf %s "(cached) " >&6 |
| 17191 | else $as_nop |
| 17192 | lt_cv_shlibpath_overrides_runpath=no |
| 17193 | save_LDFLAGS=$LDFLAGS |
| 17194 | save_libdir=$libdir |
| 17195 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 17196 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 17197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17198 | /* end confdefs.h. */ |
| 17199 | |
| 17200 | int |
| 17201 | main (void) |
| 17202 | { |
| 17203 | |
| 17204 | ; |
| 17205 | return 0; |
| 17206 | } |
| 17207 | _ACEOF |
| 17208 | if ac_fn_cxx_try_link "$LINENO" |
| 17209 | then : |
| 17210 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 17211 | then : |
| 17212 | lt_cv_shlibpath_overrides_runpath=yes |
| 17213 | fi |
| 17214 | fi |
| 17215 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17216 | conftest$ac_exeext conftest.$ac_ext |
| 17217 | LDFLAGS=$save_LDFLAGS |
| 17218 | libdir=$save_libdir |
| 17219 | |
| 17220 | fi |
| 17221 | |
| 17222 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 17223 | |
| 17224 | # This implies no fast_install, which is unacceptable. |
| 17225 | # Some rework will be needed to allow for fast_install |
| 17226 | # before this can be enabled. |
| 17227 | hardcode_into_libs=yes |
| 17228 | |
| 17229 | # Ideally, we could use ldconfig to report *all* directores which are |
| 17230 | # searched for libraries, however this is still not possible. Aside from not |
| 17231 | # being certain /sbin/ldconfig is available, command |
| 17232 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 17233 | # even though it is searched at run-time. Try to do the best guess by |
| 17234 | # appending ld.so.conf contents (and includes) to the search path. |
| 17235 | if test -f /etc/ld.so.conf; then |
| 17236 | 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' ' '` |
| 17237 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17238 | fi |
| 17239 | |
| 17240 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17241 | # powerpc, because MkLinux only supported shared libraries with the |
| 17242 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17243 | # most powerpc-linux boxes support dynamic linking these days and |
| 17244 | # people can always --disable-shared, the test was removed, and we |
| 17245 | # assume the GNU/Linux dynamic linker is in use. |
| 17246 | dynamic_linker='GNU/Linux ld.so' |
| 17247 | ;; |
| 17248 | |
| 17249 | netbsdelf*-gnu) |
| 17250 | version_type=linux |
| 17251 | need_lib_prefix=no |
| 17252 | need_version=no |
| 17253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17254 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17255 | shlibpath_var=LD_LIBRARY_PATH |
| 17256 | shlibpath_overrides_runpath=no |
| 17257 | hardcode_into_libs=yes |
| 17258 | dynamic_linker='NetBSD ld.elf_so' |
| 17259 | ;; |
| 17260 | |
| 17261 | netbsd*) |
| 17262 | version_type=sunos |
| 17263 | need_lib_prefix=no |
| 17264 | need_version=no |
| 17265 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17266 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17267 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17268 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17269 | else |
| 17270 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17271 | soname_spec='$libname$release$shared_ext$major' |
| 17272 | dynamic_linker='NetBSD ld.elf_so' |
| 17273 | fi |
| 17274 | shlibpath_var=LD_LIBRARY_PATH |
| 17275 | shlibpath_overrides_runpath=yes |
| 17276 | hardcode_into_libs=yes |
| 17277 | ;; |
| 17278 | |
| 17279 | newsos6) |
| 17280 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17281 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17282 | shlibpath_var=LD_LIBRARY_PATH |
| 17283 | shlibpath_overrides_runpath=yes |
| 17284 | ;; |
| 17285 | |
| 17286 | *nto* | *qnx*) |
| 17287 | version_type=qnx |
| 17288 | need_lib_prefix=no |
| 17289 | need_version=no |
| 17290 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17291 | soname_spec='$libname$release$shared_ext$major' |
| 17292 | shlibpath_var=LD_LIBRARY_PATH |
| 17293 | shlibpath_overrides_runpath=no |
| 17294 | hardcode_into_libs=yes |
| 17295 | dynamic_linker='ldqnx.so' |
| 17296 | ;; |
| 17297 | |
| 17298 | openbsd* | bitrig*) |
| 17299 | version_type=sunos |
| 17300 | sys_lib_dlsearch_path_spec=/usr/lib |
| 17301 | need_lib_prefix=no |
| 17302 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 17303 | need_version=no |
| 17304 | else |
| 17305 | need_version=yes |
| 17306 | fi |
| 17307 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17308 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17309 | shlibpath_var=LD_LIBRARY_PATH |
| 17310 | shlibpath_overrides_runpath=yes |
| 17311 | ;; |
| 17312 | |
| 17313 | os2*) |
| 17314 | libname_spec='$name' |
| 17315 | version_type=windows |
| 17316 | shrext_cmds=.dll |
| 17317 | need_version=no |
| 17318 | need_lib_prefix=no |
| 17319 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 17320 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 17321 | v=$($ECHO $release$versuffix | tr -d .-); |
| 17322 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 17323 | $ECHO $n$v`$shared_ext' |
| 17324 | library_names_spec='${libname}_dll.$libext' |
| 17325 | dynamic_linker='OS/2 ld.exe' |
| 17326 | shlibpath_var=BEGINLIBPATH |
| 17327 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17328 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17329 | postinstall_cmds='base_file=`basename \$file`~ |
| 17330 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 17331 | dldir=$destdir/`dirname \$dlpath`~ |
| 17332 | test -d \$dldir || mkdir -p \$dldir~ |
| 17333 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 17334 | chmod a+x \$dldir/$dlname~ |
| 17335 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 17336 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 17337 | fi' |
| 17338 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 17339 | dlpath=$dir/\$dldll~ |
| 17340 | $RM \$dlpath' |
| 17341 | ;; |
| 17342 | |
| 17343 | osf3* | osf4* | osf5*) |
| 17344 | version_type=osf |
| 17345 | need_lib_prefix=no |
| 17346 | need_version=no |
| 17347 | soname_spec='$libname$release$shared_ext$major' |
| 17348 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17349 | shlibpath_var=LD_LIBRARY_PATH |
| 17350 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17351 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17352 | ;; |
| 17353 | |
| 17354 | rdos*) |
| 17355 | dynamic_linker=no |
| 17356 | ;; |
| 17357 | |
| 17358 | solaris*) |
| 17359 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17360 | need_lib_prefix=no |
| 17361 | need_version=no |
| 17362 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17363 | soname_spec='$libname$release$shared_ext$major' |
| 17364 | shlibpath_var=LD_LIBRARY_PATH |
| 17365 | shlibpath_overrides_runpath=yes |
| 17366 | hardcode_into_libs=yes |
| 17367 | # ldd complains unless libraries are executable |
| 17368 | postinstall_cmds='chmod +x $lib' |
| 17369 | ;; |
| 17370 | |
| 17371 | sunos4*) |
| 17372 | version_type=sunos |
| 17373 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17374 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17375 | shlibpath_var=LD_LIBRARY_PATH |
| 17376 | shlibpath_overrides_runpath=yes |
| 17377 | if test yes = "$with_gnu_ld"; then |
| 17378 | need_lib_prefix=no |
| 17379 | fi |
| 17380 | need_version=yes |
| 17381 | ;; |
| 17382 | |
| 17383 | sysv4 | sysv4.3*) |
| 17384 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17385 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17386 | soname_spec='$libname$release$shared_ext$major' |
| 17387 | shlibpath_var=LD_LIBRARY_PATH |
| 17388 | case $host_vendor in |
| 17389 | sni) |
| 17390 | shlibpath_overrides_runpath=no |
| 17391 | need_lib_prefix=no |
| 17392 | runpath_var=LD_RUN_PATH |
| 17393 | ;; |
| 17394 | siemens) |
| 17395 | need_lib_prefix=no |
| 17396 | ;; |
| 17397 | motorola) |
| 17398 | need_lib_prefix=no |
| 17399 | need_version=no |
| 17400 | shlibpath_overrides_runpath=no |
| 17401 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17402 | ;; |
| 17403 | esac |
| 17404 | ;; |
| 17405 | |
| 17406 | sysv4*MP*) |
| 17407 | if test -d /usr/nec; then |
| 17408 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17409 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 17410 | soname_spec='$libname$shared_ext.$major' |
| 17411 | shlibpath_var=LD_LIBRARY_PATH |
| 17412 | fi |
| 17413 | ;; |
| 17414 | |
| 17415 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17416 | version_type=sco |
| 17417 | need_lib_prefix=no |
| 17418 | need_version=no |
| 17419 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 17420 | soname_spec='$libname$release$shared_ext$major' |
| 17421 | shlibpath_var=LD_LIBRARY_PATH |
| 17422 | shlibpath_overrides_runpath=yes |
| 17423 | hardcode_into_libs=yes |
| 17424 | if test yes = "$with_gnu_ld"; then |
| 17425 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17426 | else |
| 17427 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17428 | case $host_os in |
| 17429 | sco3.2v5*) |
| 17430 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17431 | ;; |
| 17432 | esac |
| 17433 | fi |
| 17434 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 17435 | ;; |
| 17436 | |
| 17437 | tpf*) |
| 17438 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 17439 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17440 | need_lib_prefix=no |
| 17441 | need_version=no |
| 17442 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17443 | shlibpath_var=LD_LIBRARY_PATH |
| 17444 | shlibpath_overrides_runpath=no |
| 17445 | hardcode_into_libs=yes |
| 17446 | ;; |
| 17447 | |
| 17448 | uts4*) |
| 17449 | version_type=linux # correct to gnu/linux during the next big refactor |
| 17450 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17451 | soname_spec='$libname$release$shared_ext$major' |
| 17452 | shlibpath_var=LD_LIBRARY_PATH |
| 17453 | ;; |
| 17454 | |
| 17455 | *) |
| 17456 | dynamic_linker=no |
| 17457 | ;; |
| 17458 | esac |
| 17459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 17460 | printf "%s\n" "$dynamic_linker" >&6; } |
| 17461 | test no = "$dynamic_linker" && can_build_shared=no |
| 17462 | |
| 17463 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17464 | if test yes = "$GCC"; then |
| 17465 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17466 | fi |
| 17467 | |
| 17468 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 17469 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 17470 | fi |
| 17471 | |
| 17472 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 17473 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 17474 | fi |
| 17475 | |
| 17476 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 17477 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 17478 | |
| 17479 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 17480 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 17481 | |
| 17482 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 17483 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 17484 | |
| 17485 | |
| 17486 | |
| 17487 | |
| 17488 | |
| 17489 | |
| 17490 | |
| 17491 | |
| 17492 | |
| 17493 | |
| 17494 | |
| 17495 | |
| 17496 | |
| 17497 | |
| 17498 | |
| 17499 | |
| 17500 | |
| 17501 | |
| 17502 | |
| 17503 | |
| 17504 | |
| 17505 | |
| 17506 | |
| 17507 | |
| 17508 | |
| 17509 | |
| 17510 | |
| 17511 | |
| 17512 | |
| 17513 | |
| 17514 | |
| 17515 | |
| 17516 | |
| 17517 | |
| 17518 | |
| 17519 | |
| 17520 | |
| 17521 | |
| 17522 | |
| 17523 | |
| 17524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 17525 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 17526 | hardcode_action_CXX= |
| 17527 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 17528 | test -n "$runpath_var_CXX" || |
| 17529 | test yes = "$hardcode_automatic_CXX"; then |
| 17530 | |
| 17531 | # We can hardcode non-existent directories. |
| 17532 | if test no != "$hardcode_direct_CXX" && |
| 17533 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17534 | # have to relink, otherwise we might link with an installed library |
| 17535 | # when we should be linking with a yet-to-be-installed one |
| 17536 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
| 17537 | test no != "$hardcode_minus_L_CXX"; then |
| 17538 | # Linking always hardcodes the temporary library directory. |
| 17539 | hardcode_action_CXX=relink |
| 17540 | else |
| 17541 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17542 | hardcode_action_CXX=immediate |
| 17543 | fi |
| 17544 | else |
| 17545 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17546 | # directories. |
| 17547 | hardcode_action_CXX=unsupported |
| 17548 | fi |
| 17549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 17550 | printf "%s\n" "$hardcode_action_CXX" >&6; } |
| 17551 | |
| 17552 | if test relink = "$hardcode_action_CXX" || |
| 17553 | test yes = "$inherit_rpath_CXX"; then |
| 17554 | # Fast installation is not supported |
| 17555 | enable_fast_install=no |
| 17556 | elif test yes = "$shlibpath_overrides_runpath" || |
| 17557 | test no = "$enable_shared"; then |
| 17558 | # Fast installation is not necessary |
| 17559 | enable_fast_install=needless |
| 17560 | fi |
| 17561 | |
| 17562 | |
| 17563 | |
| 17564 | |
| 17565 | |
| 17566 | |
| 17567 | |
| 17568 | fi # test -n "$compiler" |
| 17569 | |
| 17570 | CC=$lt_save_CC |
| 17571 | CFLAGS=$lt_save_CFLAGS |
| 17572 | LDCXX=$LD |
| 17573 | LD=$lt_save_LD |
| 17574 | GCC=$lt_save_GCC |
| 17575 | with_gnu_ld=$lt_save_with_gnu_ld |
| 17576 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 17577 | lt_cv_path_LD=$lt_save_path_LD |
| 17578 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 17579 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 17580 | fi # test yes != "$_lt_caught_CXX_error" |
| 17581 | |
| 17582 | ac_ext=c |
| 17583 | ac_cpp='$CPP $CPPFLAGS' |
| 17584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17587 | |
| 17588 | |
| 17589 | |
| 17590 | |
| 17591 | |
| 17592 | |
| 17593 | |
| 17594 | |
| 17595 | |
| 17596 | |
| 17597 | |
| 17598 | |
| 17599 | |
| 17600 | |
| 17601 | |
| 17602 | ac_config_commands="$ac_config_commands libtool" |
| 17603 | |
| 17604 | |
| 17605 | |
| 17606 | |
| 17607 | # Only expand once: |
| 17608 | |
| 17609 | |
| 17610 | |
| 17611 | |
| 17612 | |
| 17613 | |
| 17614 | |
| 17615 | |
| 17616 | |
| 17617 | |
| 17618 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 17619 | if test -n "$ac_tool_prefix"; then |
| 17620 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 17621 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 17622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17623 | printf %s "checking for $ac_word... " >&6; } |
| 17624 | if test ${ac_cv_path_PKG_CONFIG+y} |
| 17625 | then : |
| 17626 | printf %s "(cached) " >&6 |
| 17627 | else $as_nop |
| 17628 | case $PKG_CONFIG in |
| 17629 | [\\/]* | ?:[\\/]*) |
| 17630 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 17631 | ;; |
| 17632 | *) |
| 17633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17634 | for as_dir in $PATH |
| 17635 | do |
| 17636 | IFS=$as_save_IFS |
| 17637 | case $as_dir in #((( |
| 17638 | '') as_dir=./ ;; |
| 17639 | */) ;; |
| 17640 | *) as_dir=$as_dir/ ;; |
| 17641 | esac |
| 17642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17643 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17644 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 17645 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17646 | break 2 |
| 17647 | fi |
| 17648 | done |
| 17649 | done |
| 17650 | IFS=$as_save_IFS |
| 17651 | |
| 17652 | ;; |
| 17653 | esac |
| 17654 | fi |
| 17655 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 17656 | if test -n "$PKG_CONFIG"; then |
| 17657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 17658 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 17659 | else |
| 17660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17661 | printf "%s\n" "no" >&6; } |
| 17662 | fi |
| 17663 | |
| 17664 | |
| 17665 | fi |
| 17666 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 17667 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 17668 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 17669 | set dummy pkg-config; ac_word=$2 |
| 17670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17671 | printf %s "checking for $ac_word... " >&6; } |
| 17672 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 17673 | then : |
| 17674 | printf %s "(cached) " >&6 |
| 17675 | else $as_nop |
| 17676 | case $ac_pt_PKG_CONFIG in |
| 17677 | [\\/]* | ?:[\\/]*) |
| 17678 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 17679 | ;; |
| 17680 | *) |
| 17681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17682 | for as_dir in $PATH |
| 17683 | do |
| 17684 | IFS=$as_save_IFS |
| 17685 | case $as_dir in #((( |
| 17686 | '') as_dir=./ ;; |
| 17687 | */) ;; |
| 17688 | *) as_dir=$as_dir/ ;; |
| 17689 | esac |
| 17690 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17691 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17692 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 17693 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17694 | break 2 |
| 17695 | fi |
| 17696 | done |
| 17697 | done |
| 17698 | IFS=$as_save_IFS |
| 17699 | |
| 17700 | ;; |
| 17701 | esac |
| 17702 | fi |
| 17703 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 17704 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 17705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 17706 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
| 17707 | else |
| 17708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17709 | printf "%s\n" "no" >&6; } |
| 17710 | fi |
| 17711 | |
| 17712 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 17713 | PKG_CONFIG="" |
| 17714 | else |
| 17715 | case $cross_compiling:$ac_tool_warned in |
| 17716 | yes:) |
| 17717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17718 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17719 | ac_tool_warned=yes ;; |
| 17720 | esac |
| 17721 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 17722 | fi |
| 17723 | else |
| 17724 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 17725 | fi |
| 17726 | |
| 17727 | fi |
| 17728 | if test -n "$PKG_CONFIG"; then |
| 17729 | _pkg_min_version=0.9.0 |
| 17730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 17731 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 17732 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 17733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17734 | printf "%s\n" "yes" >&6; } |
| 17735 | else |
| 17736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17737 | printf "%s\n" "no" >&6; } |
| 17738 | PKG_CONFIG="" |
| 17739 | fi |
| 17740 | fi |
| 17741 | if test x$PKG_CONFIG = x ; then |
| 17742 | as_fn_error $? "*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/. |
| 17743 | *** You will need pkg-config to compile against Libvisual Library" "$LINENO" 5 |
| 17744 | fi |
| 17745 | if $PKG_CONFIG --atleast-pkgconfig-version 0.14 ; then |
| 17746 | : |
| 17747 | else |
| 17748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** pkg-config too old; version 0.14 or better recommended." >&5 |
| 17749 | printf "%s\n" "$as_me: WARNING: *** pkg-config too old; version 0.14 or better recommended." >&2;} |
| 17750 | fi |
| 17751 | |
| 17752 | # Checks for header files. |
| 17753 | ac_header_dirent=no |
| 17754 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 17755 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 17756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 17757 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 17758 | if eval test \${$as_ac_Header+y} |
| 17759 | then : |
| 17760 | printf %s "(cached) " >&6 |
| 17761 | else $as_nop |
| 17762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17763 | /* end confdefs.h. */ |
| 17764 | #include <sys/types.h> |
| 17765 | #include <$ac_hdr> |
| 17766 | |
| 17767 | int |
| 17768 | main (void) |
| 17769 | { |
| 17770 | if ((DIR *) 0) |
| 17771 | return 0; |
| 17772 | ; |
| 17773 | return 0; |
| 17774 | } |
| 17775 | _ACEOF |
| 17776 | if ac_fn_c_try_compile "$LINENO" |
| 17777 | then : |
| 17778 | eval "$as_ac_Header=yes" |
| 17779 | else $as_nop |
| 17780 | eval "$as_ac_Header=no" |
| 17781 | fi |
| 17782 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17783 | fi |
| 17784 | eval ac_res=\$$as_ac_Header |
| 17785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17786 | printf "%s\n" "$ac_res" >&6; } |
| 17787 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 17788 | then : |
| 17789 | cat >>confdefs.h <<_ACEOF |
| 17790 | #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 17791 | _ACEOF |
| 17792 | |
| 17793 | ac_header_dirent=$ac_hdr; break |
| 17794 | fi |
| 17795 | |
| 17796 | done |
| 17797 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 17798 | if test $ac_header_dirent = dirent.h; then |
| 17799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 17800 | printf %s "checking for library containing opendir... " >&6; } |
| 17801 | if test ${ac_cv_search_opendir+y} |
| 17802 | then : |
| 17803 | printf %s "(cached) " >&6 |
| 17804 | else $as_nop |
| 17805 | ac_func_search_save_LIBS=$LIBS |
| 17806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17807 | /* end confdefs.h. */ |
| 17808 | |
| 17809 | /* Override any GCC internal prototype to avoid an error. |
| 17810 | Use char because int might match the return type of a GCC |
| 17811 | builtin and then its argument prototype would still apply. */ |
| 17812 | char opendir (); |
| 17813 | int |
| 17814 | main (void) |
| 17815 | { |
| 17816 | return opendir (); |
| 17817 | ; |
| 17818 | return 0; |
| 17819 | } |
| 17820 | _ACEOF |
| 17821 | for ac_lib in '' dir |
| 17822 | do |
| 17823 | if test -z "$ac_lib"; then |
| 17824 | ac_res="none required" |
| 17825 | else |
| 17826 | ac_res=-l$ac_lib |
| 17827 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17828 | fi |
| 17829 | if ac_fn_c_try_link "$LINENO" |
| 17830 | then : |
| 17831 | ac_cv_search_opendir=$ac_res |
| 17832 | fi |
| 17833 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17834 | conftest$ac_exeext |
| 17835 | if test ${ac_cv_search_opendir+y} |
| 17836 | then : |
| 17837 | break |
| 17838 | fi |
| 17839 | done |
| 17840 | if test ${ac_cv_search_opendir+y} |
| 17841 | then : |
| 17842 | |
| 17843 | else $as_nop |
| 17844 | ac_cv_search_opendir=no |
| 17845 | fi |
| 17846 | rm conftest.$ac_ext |
| 17847 | LIBS=$ac_func_search_save_LIBS |
| 17848 | fi |
| 17849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 17850 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 17851 | ac_res=$ac_cv_search_opendir |
| 17852 | if test "$ac_res" != no |
| 17853 | then : |
| 17854 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17855 | |
| 17856 | fi |
| 17857 | |
| 17858 | else |
| 17859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 17860 | printf %s "checking for library containing opendir... " >&6; } |
| 17861 | if test ${ac_cv_search_opendir+y} |
| 17862 | then : |
| 17863 | printf %s "(cached) " >&6 |
| 17864 | else $as_nop |
| 17865 | ac_func_search_save_LIBS=$LIBS |
| 17866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17867 | /* end confdefs.h. */ |
| 17868 | |
| 17869 | /* Override any GCC internal prototype to avoid an error. |
| 17870 | Use char because int might match the return type of a GCC |
| 17871 | builtin and then its argument prototype would still apply. */ |
| 17872 | char opendir (); |
| 17873 | int |
| 17874 | main (void) |
| 17875 | { |
| 17876 | return opendir (); |
| 17877 | ; |
| 17878 | return 0; |
| 17879 | } |
| 17880 | _ACEOF |
| 17881 | for ac_lib in '' x |
| 17882 | do |
| 17883 | if test -z "$ac_lib"; then |
| 17884 | ac_res="none required" |
| 17885 | else |
| 17886 | ac_res=-l$ac_lib |
| 17887 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17888 | fi |
| 17889 | if ac_fn_c_try_link "$LINENO" |
| 17890 | then : |
| 17891 | ac_cv_search_opendir=$ac_res |
| 17892 | fi |
| 17893 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17894 | conftest$ac_exeext |
| 17895 | if test ${ac_cv_search_opendir+y} |
| 17896 | then : |
| 17897 | break |
| 17898 | fi |
| 17899 | done |
| 17900 | if test ${ac_cv_search_opendir+y} |
| 17901 | then : |
| 17902 | |
| 17903 | else $as_nop |
| 17904 | ac_cv_search_opendir=no |
| 17905 | fi |
| 17906 | rm conftest.$ac_ext |
| 17907 | LIBS=$ac_func_search_save_LIBS |
| 17908 | fi |
| 17909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 17910 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 17911 | ac_res=$ac_cv_search_opendir |
| 17912 | if test "$ac_res" != no |
| 17913 | then : |
| 17914 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17915 | |
| 17916 | fi |
| 17917 | |
| 17918 | fi |
| 17919 | |
| 17920 | ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 17921 | if test "x$ac_cv_header_fcntl_h" = xyes |
| 17922 | then : |
| 17923 | printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 17924 | |
| 17925 | fi |
| 17926 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 17927 | if test "x$ac_cv_header_sys_types_h" = xyes |
| 17928 | then : |
| 17929 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 17930 | |
| 17931 | fi |
| 17932 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 17933 | if test "x$ac_cv_header_stdlib_h" = xyes |
| 17934 | then : |
| 17935 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 17936 | |
| 17937 | fi |
| 17938 | ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 17939 | if test "x$ac_cv_header_string_h" = xyes |
| 17940 | then : |
| 17941 | printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h |
| 17942 | |
| 17943 | fi |
| 17944 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 17945 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 17946 | then : |
| 17947 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 17948 | |
| 17949 | fi |
| 17950 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 17951 | if test "x$ac_cv_header_unistd_h" = xyes |
| 17952 | then : |
| 17953 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 17954 | |
| 17955 | fi |
| 17956 | ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" |
| 17957 | if test "x$ac_cv_header_sched_h" = xyes |
| 17958 | then : |
| 17959 | printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h |
| 17960 | |
| 17961 | fi |
| 17962 | ac_fn_c_check_header_compile "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" |
| 17963 | if test "x$ac_cv_header_sys_sched_h" = xyes |
| 17964 | then : |
| 17965 | printf "%s\n" "#define HAVE_SYS_SCHED_H 1" >>confdefs.h |
| 17966 | |
| 17967 | fi |
| 17968 | |
| 17969 | |
| 17970 | # Checks for typedefs, structures, and compiler characteristics. |
| 17971 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true |
| 17972 | ac_ext=cpp |
| 17973 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17974 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17975 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17976 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17977 | ac_success=no |
| 17978 | |
| 17979 | |
| 17980 | |
| 17981 | |
| 17982 | |
| 17983 | if test x$ac_success = xno; then |
| 17984 | for alternative in ${ax_cxx_compile_alternatives}; do |
| 17985 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do |
| 17986 | cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 17987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 17988 | printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 17989 | if eval test \${$cachevar+y} |
| 17990 | then : |
| 17991 | printf %s "(cached) " >&6 |
| 17992 | else $as_nop |
| 17993 | ac_save_CXX="$CXX" |
| 17994 | CXX="$CXX $switch" |
| 17995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17996 | /* end confdefs.h. */ |
| 17997 | |
| 17998 | |
| 17999 | // If the compiler admits that it is not ready for C++11, why torture it? |
| 18000 | // Hopefully, this will speed up the test. |
| 18001 | |
| 18002 | #ifndef __cplusplus |
| 18003 | |
| 18004 | #error "This is not a C++ compiler" |
| 18005 | |
| 18006 | #elif __cplusplus < 201103L |
| 18007 | |
| 18008 | #error "This is not a C++11 compiler" |
| 18009 | |
| 18010 | #else |
| 18011 | |
| 18012 | namespace cxx11 |
| 18013 | { |
| 18014 | |
| 18015 | namespace test_static_assert |
| 18016 | { |
| 18017 | |
| 18018 | template <typename T> |
| 18019 | struct check |
| 18020 | { |
| 18021 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 18022 | }; |
| 18023 | |
| 18024 | } |
| 18025 | |
| 18026 | namespace test_final_override |
| 18027 | { |
| 18028 | |
| 18029 | struct Base |
| 18030 | { |
| 18031 | virtual ~Base() {} |
| 18032 | virtual void f() {} |
| 18033 | }; |
| 18034 | |
| 18035 | struct Derived : public Base |
| 18036 | { |
| 18037 | virtual ~Derived() override {} |
| 18038 | virtual void f() override {} |
| 18039 | }; |
| 18040 | |
| 18041 | } |
| 18042 | |
| 18043 | namespace test_double_right_angle_brackets |
| 18044 | { |
| 18045 | |
| 18046 | template < typename T > |
| 18047 | struct check {}; |
| 18048 | |
| 18049 | typedef check<void> single_type; |
| 18050 | typedef check<check<void>> double_type; |
| 18051 | typedef check<check<check<void>>> triple_type; |
| 18052 | typedef check<check<check<check<void>>>> quadruple_type; |
| 18053 | |
| 18054 | } |
| 18055 | |
| 18056 | namespace test_decltype |
| 18057 | { |
| 18058 | |
| 18059 | int |
| 18060 | f() |
| 18061 | { |
| 18062 | int a = 1; |
| 18063 | decltype(a) b = 2; |
| 18064 | return a + b; |
| 18065 | } |
| 18066 | |
| 18067 | } |
| 18068 | |
| 18069 | namespace test_type_deduction |
| 18070 | { |
| 18071 | |
| 18072 | template < typename T1, typename T2 > |
| 18073 | struct is_same |
| 18074 | { |
| 18075 | static const bool value = false; |
| 18076 | }; |
| 18077 | |
| 18078 | template < typename T > |
| 18079 | struct is_same<T, T> |
| 18080 | { |
| 18081 | static const bool value = true; |
| 18082 | }; |
| 18083 | |
| 18084 | template < typename T1, typename T2 > |
| 18085 | auto |
| 18086 | add(T1 a1, T2 a2) -> decltype(a1 + a2) |
| 18087 | { |
| 18088 | return a1 + a2; |
| 18089 | } |
| 18090 | |
| 18091 | int |
| 18092 | test(const int c, volatile int v) |
| 18093 | { |
| 18094 | static_assert(is_same<int, decltype(0)>::value == true, ""); |
| 18095 | static_assert(is_same<int, decltype(c)>::value == false, ""); |
| 18096 | static_assert(is_same<int, decltype(v)>::value == false, ""); |
| 18097 | auto ac = c; |
| 18098 | auto av = v; |
| 18099 | auto sumi = ac + av + 'x'; |
| 18100 | auto sumf = ac + av + 1.0; |
| 18101 | static_assert(is_same<int, decltype(ac)>::value == true, ""); |
| 18102 | static_assert(is_same<int, decltype(av)>::value == true, ""); |
| 18103 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); |
| 18104 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); |
| 18105 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); |
| 18106 | return (sumf > 0.0) ? sumi : add(c, v); |
| 18107 | } |
| 18108 | |
| 18109 | } |
| 18110 | |
| 18111 | namespace test_noexcept |
| 18112 | { |
| 18113 | |
| 18114 | int f() { return 0; } |
| 18115 | int g() noexcept { return 0; } |
| 18116 | |
| 18117 | static_assert(noexcept(f()) == false, ""); |
| 18118 | static_assert(noexcept(g()) == true, ""); |
| 18119 | |
| 18120 | } |
| 18121 | |
| 18122 | namespace test_constexpr |
| 18123 | { |
| 18124 | |
| 18125 | template < typename CharT > |
| 18126 | unsigned long constexpr |
| 18127 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept |
| 18128 | { |
| 18129 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; |
| 18130 | } |
| 18131 | |
| 18132 | template < typename CharT > |
| 18133 | unsigned long constexpr |
| 18134 | strlen_c(const CharT *const s) noexcept |
| 18135 | { |
| 18136 | return strlen_c_r(s, 0UL); |
| 18137 | } |
| 18138 | |
| 18139 | static_assert(strlen_c("") == 0UL, ""); |
| 18140 | static_assert(strlen_c("1") == 1UL, ""); |
| 18141 | static_assert(strlen_c("example") == 7UL, ""); |
| 18142 | static_assert(strlen_c("another\0example") == 7UL, ""); |
| 18143 | |
| 18144 | } |
| 18145 | |
| 18146 | namespace test_rvalue_references |
| 18147 | { |
| 18148 | |
| 18149 | template < int N > |
| 18150 | struct answer |
| 18151 | { |
| 18152 | static constexpr int value = N; |
| 18153 | }; |
| 18154 | |
| 18155 | answer<1> f(int&) { return answer<1>(); } |
| 18156 | answer<2> f(const int&) { return answer<2>(); } |
| 18157 | answer<3> f(int&&) { return answer<3>(); } |
| 18158 | |
| 18159 | void |
| 18160 | test() |
| 18161 | { |
| 18162 | int i = 0; |
| 18163 | const int c = 0; |
| 18164 | static_assert(decltype(f(i))::value == 1, ""); |
| 18165 | static_assert(decltype(f(c))::value == 2, ""); |
| 18166 | static_assert(decltype(f(0))::value == 3, ""); |
| 18167 | } |
| 18168 | |
| 18169 | } |
| 18170 | |
| 18171 | namespace test_uniform_initialization |
| 18172 | { |
| 18173 | |
| 18174 | struct test |
| 18175 | { |
| 18176 | static const int zero {}; |
| 18177 | static const int one {1}; |
| 18178 | }; |
| 18179 | |
| 18180 | static_assert(test::zero == 0, ""); |
| 18181 | static_assert(test::one == 1, ""); |
| 18182 | |
| 18183 | } |
| 18184 | |
| 18185 | namespace test_lambdas |
| 18186 | { |
| 18187 | |
| 18188 | void |
| 18189 | test1() |
| 18190 | { |
| 18191 | auto lambda1 = [](){}; |
| 18192 | auto lambda2 = lambda1; |
| 18193 | lambda1(); |
| 18194 | lambda2(); |
| 18195 | } |
| 18196 | |
| 18197 | int |
| 18198 | test2() |
| 18199 | { |
| 18200 | auto a = [](int i, int j){ return i + j; }(1, 2); |
| 18201 | auto b = []() -> int { return '0'; }(); |
| 18202 | auto c = [=](){ return a + b; }(); |
| 18203 | auto d = [&](){ return c; }(); |
| 18204 | auto e = [a, &b](int x) mutable { |
| 18205 | const auto identity = [](int y){ return y; }; |
| 18206 | for (auto i = 0; i < a; ++i) |
| 18207 | a += b--; |
| 18208 | return x + identity(a + b); |
| 18209 | }(0); |
| 18210 | return a + b + c + d + e; |
| 18211 | } |
| 18212 | |
| 18213 | int |
| 18214 | test3() |
| 18215 | { |
| 18216 | const auto nullary = [](){ return 0; }; |
| 18217 | const auto unary = [](int x){ return x; }; |
| 18218 | using nullary_t = decltype(nullary); |
| 18219 | using unary_t = decltype(unary); |
| 18220 | const auto higher1st = [](nullary_t f){ return f(); }; |
| 18221 | const auto higher2nd = [unary](nullary_t f1){ |
| 18222 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; |
| 18223 | }; |
| 18224 | return higher1st(nullary) + higher2nd(nullary)(unary); |
| 18225 | } |
| 18226 | |
| 18227 | } |
| 18228 | |
| 18229 | namespace test_variadic_templates |
| 18230 | { |
| 18231 | |
| 18232 | template <int...> |
| 18233 | struct sum; |
| 18234 | |
| 18235 | template <int N0, int... N1toN> |
| 18236 | struct sum<N0, N1toN...> |
| 18237 | { |
| 18238 | static constexpr auto value = N0 + sum<N1toN...>::value; |
| 18239 | }; |
| 18240 | |
| 18241 | template <> |
| 18242 | struct sum<> |
| 18243 | { |
| 18244 | static constexpr auto value = 0; |
| 18245 | }; |
| 18246 | |
| 18247 | static_assert(sum<>::value == 0, ""); |
| 18248 | static_assert(sum<1>::value == 1, ""); |
| 18249 | static_assert(sum<23>::value == 23, ""); |
| 18250 | static_assert(sum<1, 2>::value == 3, ""); |
| 18251 | static_assert(sum<5, 5, 11>::value == 21, ""); |
| 18252 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); |
| 18253 | |
| 18254 | } |
| 18255 | |
| 18256 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae |
| 18257 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function |
| 18258 | // because of this. |
| 18259 | namespace test_template_alias_sfinae |
| 18260 | { |
| 18261 | |
| 18262 | struct foo {}; |
| 18263 | |
| 18264 | template<typename T> |
| 18265 | using member = typename T::member_type; |
| 18266 | |
| 18267 | template<typename T> |
| 18268 | void func(...) {} |
| 18269 | |
| 18270 | template<typename T> |
| 18271 | void func(member<T>*) {} |
| 18272 | |
| 18273 | void test(); |
| 18274 | |
| 18275 | void test() { func<foo>(0); } |
| 18276 | |
| 18277 | } |
| 18278 | |
| 18279 | } // namespace cxx11 |
| 18280 | |
| 18281 | #endif // __cplusplus >= 201103L |
| 18282 | |
| 18283 | |
| 18284 | |
| 18285 | _ACEOF |
| 18286 | if ac_fn_cxx_try_compile "$LINENO" |
| 18287 | then : |
| 18288 | eval $cachevar=yes |
| 18289 | else $as_nop |
| 18290 | eval $cachevar=no |
| 18291 | fi |
| 18292 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18293 | CXX="$ac_save_CXX" |
| 18294 | fi |
| 18295 | eval ac_res=\$$cachevar |
| 18296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18297 | printf "%s\n" "$ac_res" >&6; } |
| 18298 | if eval test x\$$cachevar = xyes; then |
| 18299 | CXX="$CXX $switch" |
| 18300 | if test -n "$CXXCPP" ; then |
| 18301 | CXXCPP="$CXXCPP $switch" |
| 18302 | fi |
| 18303 | ac_success=yes |
| 18304 | break |
| 18305 | fi |
| 18306 | done |
| 18307 | if test x$ac_success = xyes; then |
| 18308 | break |
| 18309 | fi |
| 18310 | done |
| 18311 | fi |
| 18312 | ac_ext=c |
| 18313 | ac_cpp='$CPP $CPPFLAGS' |
| 18314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18317 | |
| 18318 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 18319 | if test x$ac_success = xno; then |
| 18320 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 18321 | fi |
| 18322 | fi |
| 18323 | if test x$ac_success = xno; then |
| 18324 | HAVE_CXX11=0 |
| 18325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 18326 | printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} |
| 18327 | else |
| 18328 | HAVE_CXX11=1 |
| 18329 | |
| 18330 | printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h |
| 18331 | |
| 18332 | fi |
| 18333 | |
| 18334 | |
| 18335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 18336 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 18337 | if test ${ac_cv_c_const+y} |
| 18338 | then : |
| 18339 | printf %s "(cached) " >&6 |
| 18340 | else $as_nop |
| 18341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18342 | /* end confdefs.h. */ |
| 18343 | |
| 18344 | int |
| 18345 | main (void) |
| 18346 | { |
| 18347 | |
| 18348 | #ifndef __cplusplus |
| 18349 | /* Ultrix mips cc rejects this sort of thing. */ |
| 18350 | typedef int charset[2]; |
| 18351 | const charset cs = { 0, 0 }; |
| 18352 | /* SunOS 4.1.1 cc rejects this. */ |
| 18353 | char const *const *pcpcc; |
| 18354 | char **ppc; |
| 18355 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 18356 | struct point {int x, y;}; |
| 18357 | static struct point const zero = {0,0}; |
| 18358 | /* IBM XL C 1.02.0.0 rejects this. |
| 18359 | It does not let you subtract one const X* pointer from another in |
| 18360 | an arm of an if-expression whose if-part is not a constant |
| 18361 | expression */ |
| 18362 | const char *g = "string"; |
| 18363 | pcpcc = &g + (g ? g-g : 0); |
| 18364 | /* HPUX 7.0 cc rejects these. */ |
| 18365 | ++pcpcc; |
| 18366 | ppc = (char**) pcpcc; |
| 18367 | pcpcc = (char const *const *) ppc; |
| 18368 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 18369 | char tx; |
| 18370 | char *t = &tx; |
| 18371 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 18372 | |
| 18373 | *t++ = 0; |
| 18374 | if (s) return 0; |
| 18375 | } |
| 18376 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 18377 | int x[] = {25, 17}; |
| 18378 | const int *foo = &x[0]; |
| 18379 | ++foo; |
| 18380 | } |
| 18381 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 18382 | typedef const int *iptr; |
| 18383 | iptr p = 0; |
| 18384 | ++p; |
| 18385 | } |
| 18386 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 18387 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 18388 | struct s { int j; const int *ap[3]; } bx; |
| 18389 | struct s *b = &bx; b->j = 5; |
| 18390 | } |
| 18391 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 18392 | const int foo = 10; |
| 18393 | if (!foo) return 0; |
| 18394 | } |
| 18395 | return !cs[0] && !zero.x; |
| 18396 | #endif |
| 18397 | |
| 18398 | ; |
| 18399 | return 0; |
| 18400 | } |
| 18401 | _ACEOF |
| 18402 | if ac_fn_c_try_compile "$LINENO" |
| 18403 | then : |
| 18404 | ac_cv_c_const=yes |
| 18405 | else $as_nop |
| 18406 | ac_cv_c_const=no |
| 18407 | fi |
| 18408 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18409 | fi |
| 18410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 18411 | printf "%s\n" "$ac_cv_c_const" >&6; } |
| 18412 | if test $ac_cv_c_const = no; then |
| 18413 | |
| 18414 | printf "%s\n" "#define const /**/" >>confdefs.h |
| 18415 | |
| 18416 | fi |
| 18417 | |
| 18418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 18419 | printf %s "checking for inline... " >&6; } |
| 18420 | if test ${ac_cv_c_inline+y} |
| 18421 | then : |
| 18422 | printf %s "(cached) " >&6 |
| 18423 | else $as_nop |
| 18424 | ac_cv_c_inline=no |
| 18425 | for ac_kw in inline __inline__ __inline; do |
| 18426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18427 | /* end confdefs.h. */ |
| 18428 | #ifndef __cplusplus |
| 18429 | typedef int foo_t; |
| 18430 | static $ac_kw foo_t static_foo (void) {return 0; } |
| 18431 | $ac_kw foo_t foo (void) {return 0; } |
| 18432 | #endif |
| 18433 | |
| 18434 | _ACEOF |
| 18435 | if ac_fn_c_try_compile "$LINENO" |
| 18436 | then : |
| 18437 | ac_cv_c_inline=$ac_kw |
| 18438 | fi |
| 18439 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18440 | test "$ac_cv_c_inline" != no && break |
| 18441 | done |
| 18442 | |
| 18443 | fi |
| 18444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 18445 | printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 18446 | |
| 18447 | case $ac_cv_c_inline in |
| 18448 | inline | yes) ;; |
| 18449 | *) |
| 18450 | case $ac_cv_c_inline in |
| 18451 | no) ac_val=;; |
| 18452 | *) ac_val=$ac_cv_c_inline;; |
| 18453 | esac |
| 18454 | cat >>confdefs.h <<_ACEOF |
| 18455 | #ifndef __cplusplus |
| 18456 | #define inline $ac_val |
| 18457 | #endif |
| 18458 | _ACEOF |
| 18459 | ;; |
| 18460 | esac |
| 18461 | |
| 18462 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 18463 | if test "x$ac_cv_type_size_t" = xyes |
| 18464 | then : |
| 18465 | |
| 18466 | else $as_nop |
| 18467 | |
| 18468 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 18469 | |
| 18470 | fi |
| 18471 | |
| 18472 | |
| 18473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5 |
| 18474 | printf %s "checking for ISO C99 varargs macros in C... " >&6; } |
| 18475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18476 | /* end confdefs.h. */ |
| 18477 | |
| 18478 | int |
| 18479 | main (void) |
| 18480 | { |
| 18481 | |
| 18482 | int a(int p1, int p2, int p3); |
| 18483 | #define call_a(...) a(1,__VA_ARGS__) |
| 18484 | call_a(2,3); |
| 18485 | |
| 18486 | ; |
| 18487 | return 0; |
| 18488 | } |
| 18489 | _ACEOF |
| 18490 | if ac_fn_c_try_compile "$LINENO" |
| 18491 | then : |
| 18492 | lv_have_iso_c_varargs=yes |
| 18493 | else $as_nop |
| 18494 | lv_have_iso_c_varargs=no |
| 18495 | fi |
| 18496 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lv_have_iso_c_varargs" >&5 |
| 18498 | printf "%s\n" "$lv_have_iso_c_varargs" >&6; } |
| 18499 | |
| 18500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5 |
| 18501 | printf %s "checking for GNUC varargs macros... " >&6; } |
| 18502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18503 | /* end confdefs.h. */ |
| 18504 | |
| 18505 | int |
| 18506 | main (void) |
| 18507 | { |
| 18508 | |
| 18509 | int a(int p1, int p2, int p3); |
| 18510 | #define call_a(params...) a(1,params) |
| 18511 | call_a(2,3); |
| 18512 | |
| 18513 | ; |
| 18514 | return 0; |
| 18515 | } |
| 18516 | _ACEOF |
| 18517 | if ac_fn_c_try_compile "$LINENO" |
| 18518 | then : |
| 18519 | lv_have_gnuc_varargs=yes |
| 18520 | else $as_nop |
| 18521 | lv_have_gnuc_varargs=no |
| 18522 | fi |
| 18523 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lv_have_gnuc_varargs" >&5 |
| 18525 | printf "%s\n" "$lv_have_gnuc_varargs" >&6; } |
| 18526 | |
| 18527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 18528 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 18529 | if test ${ac_cv_c_bigendian+y} |
| 18530 | then : |
| 18531 | printf %s "(cached) " >&6 |
| 18532 | else $as_nop |
| 18533 | ac_cv_c_bigendian=unknown |
| 18534 | # See if we're dealing with a universal compiler. |
| 18535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18536 | /* end confdefs.h. */ |
| 18537 | #ifndef __APPLE_CC__ |
| 18538 | not a universal capable compiler |
| 18539 | #endif |
| 18540 | typedef int dummy; |
| 18541 | |
| 18542 | _ACEOF |
| 18543 | if ac_fn_c_try_compile "$LINENO" |
| 18544 | then : |
| 18545 | |
| 18546 | # Check for potential -arch flags. It is not universal unless |
| 18547 | # there are at least two -arch flags with different values. |
| 18548 | ac_arch= |
| 18549 | ac_prev= |
| 18550 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 18551 | if test -n "$ac_prev"; then |
| 18552 | case $ac_word in |
| 18553 | i?86 | x86_64 | ppc | ppc64) |
| 18554 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 18555 | ac_arch=$ac_word |
| 18556 | else |
| 18557 | ac_cv_c_bigendian=universal |
| 18558 | break |
| 18559 | fi |
| 18560 | ;; |
| 18561 | esac |
| 18562 | ac_prev= |
| 18563 | elif test "x$ac_word" = "x-arch"; then |
| 18564 | ac_prev=arch |
| 18565 | fi |
| 18566 | done |
| 18567 | fi |
| 18568 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18569 | if test $ac_cv_c_bigendian = unknown; then |
| 18570 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 18571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18572 | /* end confdefs.h. */ |
| 18573 | #include <sys/types.h> |
| 18574 | #include <sys/param.h> |
| 18575 | |
| 18576 | int |
| 18577 | main (void) |
| 18578 | { |
| 18579 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 18580 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 18581 | && LITTLE_ENDIAN) |
| 18582 | bogus endian macros |
| 18583 | #endif |
| 18584 | |
| 18585 | ; |
| 18586 | return 0; |
| 18587 | } |
| 18588 | _ACEOF |
| 18589 | if ac_fn_c_try_compile "$LINENO" |
| 18590 | then : |
| 18591 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 18592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18593 | /* end confdefs.h. */ |
| 18594 | #include <sys/types.h> |
| 18595 | #include <sys/param.h> |
| 18596 | |
| 18597 | int |
| 18598 | main (void) |
| 18599 | { |
| 18600 | #if BYTE_ORDER != BIG_ENDIAN |
| 18601 | not big endian |
| 18602 | #endif |
| 18603 | |
| 18604 | ; |
| 18605 | return 0; |
| 18606 | } |
| 18607 | _ACEOF |
| 18608 | if ac_fn_c_try_compile "$LINENO" |
| 18609 | then : |
| 18610 | ac_cv_c_bigendian=yes |
| 18611 | else $as_nop |
| 18612 | ac_cv_c_bigendian=no |
| 18613 | fi |
| 18614 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18615 | fi |
| 18616 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18617 | fi |
| 18618 | if test $ac_cv_c_bigendian = unknown; then |
| 18619 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 18620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18621 | /* end confdefs.h. */ |
| 18622 | #include <limits.h> |
| 18623 | |
| 18624 | int |
| 18625 | main (void) |
| 18626 | { |
| 18627 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 18628 | bogus endian macros |
| 18629 | #endif |
| 18630 | |
| 18631 | ; |
| 18632 | return 0; |
| 18633 | } |
| 18634 | _ACEOF |
| 18635 | if ac_fn_c_try_compile "$LINENO" |
| 18636 | then : |
| 18637 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 18638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18639 | /* end confdefs.h. */ |
| 18640 | #include <limits.h> |
| 18641 | |
| 18642 | int |
| 18643 | main (void) |
| 18644 | { |
| 18645 | #ifndef _BIG_ENDIAN |
| 18646 | not big endian |
| 18647 | #endif |
| 18648 | |
| 18649 | ; |
| 18650 | return 0; |
| 18651 | } |
| 18652 | _ACEOF |
| 18653 | if ac_fn_c_try_compile "$LINENO" |
| 18654 | then : |
| 18655 | ac_cv_c_bigendian=yes |
| 18656 | else $as_nop |
| 18657 | ac_cv_c_bigendian=no |
| 18658 | fi |
| 18659 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18660 | fi |
| 18661 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18662 | fi |
| 18663 | if test $ac_cv_c_bigendian = unknown; then |
| 18664 | # Compile a test program. |
| 18665 | if test "$cross_compiling" = yes |
| 18666 | then : |
| 18667 | # Try to guess by grepping values from an object file. |
| 18668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18669 | /* end confdefs.h. */ |
| 18670 | unsigned short int ascii_mm[] = |
| 18671 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 18672 | unsigned short int ascii_ii[] = |
| 18673 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 18674 | int use_ascii (int i) { |
| 18675 | return ascii_mm[i] + ascii_ii[i]; |
| 18676 | } |
| 18677 | unsigned short int ebcdic_ii[] = |
| 18678 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 18679 | unsigned short int ebcdic_mm[] = |
| 18680 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 18681 | int use_ebcdic (int i) { |
| 18682 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 18683 | } |
| 18684 | extern int foo; |
| 18685 | |
| 18686 | int |
| 18687 | main (void) |
| 18688 | { |
| 18689 | return use_ascii (foo) == use_ebcdic (foo); |
| 18690 | ; |
| 18691 | return 0; |
| 18692 | } |
| 18693 | _ACEOF |
| 18694 | if ac_fn_c_try_compile "$LINENO" |
| 18695 | then : |
| 18696 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 18697 | ac_cv_c_bigendian=yes |
| 18698 | fi |
| 18699 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 18700 | if test "$ac_cv_c_bigendian" = unknown; then |
| 18701 | ac_cv_c_bigendian=no |
| 18702 | else |
| 18703 | # finding both strings is unlikely to happen, but who knows? |
| 18704 | ac_cv_c_bigendian=unknown |
| 18705 | fi |
| 18706 | fi |
| 18707 | fi |
| 18708 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18709 | else $as_nop |
| 18710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18711 | /* end confdefs.h. */ |
| 18712 | $ac_includes_default |
| 18713 | int |
| 18714 | main (void) |
| 18715 | { |
| 18716 | |
| 18717 | /* Are we little or big endian? From Harbison&Steele. */ |
| 18718 | union |
| 18719 | { |
| 18720 | long int l; |
| 18721 | char c[sizeof (long int)]; |
| 18722 | } u; |
| 18723 | u.l = 1; |
| 18724 | return u.c[sizeof (long int) - 1] == 1; |
| 18725 | |
| 18726 | ; |
| 18727 | return 0; |
| 18728 | } |
| 18729 | _ACEOF |
| 18730 | if ac_fn_c_try_run "$LINENO" |
| 18731 | then : |
| 18732 | ac_cv_c_bigendian=no |
| 18733 | else $as_nop |
| 18734 | ac_cv_c_bigendian=yes |
| 18735 | fi |
| 18736 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18737 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18738 | fi |
| 18739 | |
| 18740 | fi |
| 18741 | fi |
| 18742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 18743 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 18744 | case $ac_cv_c_bigendian in #( |
| 18745 | yes) |
| 18746 | bigendian=yes;; #( |
| 18747 | no) |
| 18748 | bigendian=no ;; #( |
| 18749 | universal) |
| 18750 | |
| 18751 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 18752 | |
| 18753 | ;; #( |
| 18754 | *) |
| 18755 | as_fn_error $? "unknown endianness |
| 18756 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 18757 | esac |
| 18758 | |
| 18759 | |
| 18760 | # Checks for library functions. |
| 18761 | |
| 18762 | |
| 18763 | |
| 18764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| 18765 | printf %s "checking types of arguments for select... " >&6; } |
| 18766 | if test ${ac_cv_func_select_args+y} |
| 18767 | then : |
| 18768 | printf %s "(cached) " >&6 |
| 18769 | else $as_nop |
| 18770 | ac_cv_func_select_args='int,int *,struct timeval *' |
| 18771 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 18772 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 18773 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| 18774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18775 | /* end confdefs.h. */ |
| 18776 | $ac_includes_default |
| 18777 | #ifdef HAVE_SYS_SELECT_H |
| 18778 | # include <sys/select.h> |
| 18779 | #endif |
| 18780 | #ifdef HAVE_SYS_SOCKET_H |
| 18781 | # include <sys/socket.h> |
| 18782 | #endif |
| 18783 | |
| 18784 | int |
| 18785 | main (void) |
| 18786 | { |
| 18787 | extern int select ($ac_arg1, |
| 18788 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 18789 | $ac_arg5); |
| 18790 | ; |
| 18791 | return 0; |
| 18792 | } |
| 18793 | _ACEOF |
| 18794 | if ac_fn_c_try_compile "$LINENO" |
| 18795 | then : |
| 18796 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| 18797 | fi |
| 18798 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18799 | done |
| 18800 | done |
| 18801 | done |
| 18802 | |
| 18803 | fi |
| 18804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| 18805 | printf "%s\n" "$ac_cv_func_select_args" >&6; } |
| 18806 | ac_save_IFS=$IFS; IFS=',' |
| 18807 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 18808 | IFS=$ac_save_IFS |
| 18809 | shift |
| 18810 | |
| 18811 | printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h |
| 18812 | |
| 18813 | |
| 18814 | printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h |
| 18815 | |
| 18816 | |
| 18817 | printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h |
| 18818 | |
| 18819 | rm -rf conftest* |
| 18820 | |
| 18821 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 18822 | if test "x$ac_cv_func_gettimeofday" = xyes |
| 18823 | then : |
| 18824 | printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 18825 | |
| 18826 | fi |
| 18827 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" |
| 18828 | if test "x$ac_cv_func_usleep" = xyes |
| 18829 | then : |
| 18830 | printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h |
| 18831 | |
| 18832 | fi |
| 18833 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
| 18834 | if test "x$ac_cv_func_nanosleep" = xyes |
| 18835 | then : |
| 18836 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 18837 | |
| 18838 | fi |
| 18839 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
| 18840 | if test "x$ac_cv_func_select" = xyes |
| 18841 | then : |
| 18842 | printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
| 18843 | |
| 18844 | fi |
| 18845 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
| 18846 | if test "x$ac_cv_func_strdup" = xyes |
| 18847 | then : |
| 18848 | printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h |
| 18849 | |
| 18850 | fi |
| 18851 | ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" |
| 18852 | if test "x$ac_cv_func_strndup" = xyes |
| 18853 | then : |
| 18854 | printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h |
| 18855 | |
| 18856 | fi |
| 18857 | ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
| 18858 | if test "x$ac_cv_func_sysconf" = xyes |
| 18859 | then : |
| 18860 | printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 18861 | |
| 18862 | fi |
| 18863 | |
| 18864 | |
| 18865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
| 18866 | printf %s "checking for dlsym in -ldl... " >&6; } |
| 18867 | if test ${ac_cv_lib_dl_dlsym+y} |
| 18868 | then : |
| 18869 | printf %s "(cached) " >&6 |
| 18870 | else $as_nop |
| 18871 | ac_check_lib_save_LIBS=$LIBS |
| 18872 | LIBS="-ldl $LIBS" |
| 18873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18874 | /* end confdefs.h. */ |
| 18875 | |
| 18876 | /* Override any GCC internal prototype to avoid an error. |
| 18877 | Use char because int might match the return type of a GCC |
| 18878 | builtin and then its argument prototype would still apply. */ |
| 18879 | char dlsym (); |
| 18880 | int |
| 18881 | main (void) |
| 18882 | { |
| 18883 | return dlsym (); |
| 18884 | ; |
| 18885 | return 0; |
| 18886 | } |
| 18887 | _ACEOF |
| 18888 | if ac_fn_c_try_link "$LINENO" |
| 18889 | then : |
| 18890 | ac_cv_lib_dl_dlsym=yes |
| 18891 | else $as_nop |
| 18892 | ac_cv_lib_dl_dlsym=no |
| 18893 | fi |
| 18894 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18895 | conftest$ac_exeext conftest.$ac_ext |
| 18896 | LIBS=$ac_check_lib_save_LIBS |
| 18897 | fi |
| 18898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
| 18899 | printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; } |
| 18900 | if test "x$ac_cv_lib_dl_dlsym" = xyes |
| 18901 | then : |
| 18902 | LIBS="-ldl $LIBS" |
| 18903 | else $as_nop |
| 18904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You need dlsym() to make use of Libvisual." >&5 |
| 18905 | printf "%s\n" "$as_me: WARNING: *** You need dlsym() to make use of Libvisual." >&2;} |
| 18906 | fi |
| 18907 | |
| 18908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 18909 | printf %s "checking for sqrt in -lm... " >&6; } |
| 18910 | if test ${ac_cv_lib_m_sqrt+y} |
| 18911 | then : |
| 18912 | printf %s "(cached) " >&6 |
| 18913 | else $as_nop |
| 18914 | ac_check_lib_save_LIBS=$LIBS |
| 18915 | LIBS="-lm $LIBS" |
| 18916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18917 | /* end confdefs.h. */ |
| 18918 | |
| 18919 | /* Override any GCC internal prototype to avoid an error. |
| 18920 | Use char because int might match the return type of a GCC |
| 18921 | builtin and then its argument prototype would still apply. */ |
| 18922 | char sqrt (); |
| 18923 | int |
| 18924 | main (void) |
| 18925 | { |
| 18926 | return sqrt (); |
| 18927 | ; |
| 18928 | return 0; |
| 18929 | } |
| 18930 | _ACEOF |
| 18931 | if ac_fn_c_try_link "$LINENO" |
| 18932 | then : |
| 18933 | ac_cv_lib_m_sqrt=yes |
| 18934 | else $as_nop |
| 18935 | ac_cv_lib_m_sqrt=no |
| 18936 | fi |
| 18937 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18938 | conftest$ac_exeext conftest.$ac_ext |
| 18939 | LIBS=$ac_check_lib_save_LIBS |
| 18940 | fi |
| 18941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 18942 | printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; } |
| 18943 | if test "x$ac_cv_lib_m_sqrt" = xyes |
| 18944 | then : |
| 18945 | LIBS="-lm $LIBS" |
| 18946 | else $as_nop |
| 18947 | as_fn_error $? "*** You need the Standard C Math Library to build Libvisual." "$LINENO" 5 |
| 18948 | fi |
| 18949 | |
| 18950 | |
| 18951 | # Internationalization |
| 18952 | GETTEXT_PACKAGE="libvisual-${LIBVISUAL_VERSION_SUFFIX}" |
| 18953 | |
| 18954 | |
| 18955 | printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h |
| 18956 | |
| 18957 | |
| 18958 | printf "%s\n" "#define LOCALEDIR \"${prefix}/share/locale\"" >>confdefs.h |
| 18959 | |
| 18960 | |
| 18961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 18962 | printf %s "checking whether NLS is requested... " >&6; } |
| 18963 | # Check whether --enable-nls was given. |
| 18964 | if test ${enable_nls+y} |
| 18965 | then : |
| 18966 | enableval=$enable_nls; USE_NLS=$enableval |
| 18967 | else $as_nop |
| 18968 | USE_NLS=yes |
| 18969 | fi |
| 18970 | |
| 18971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 18972 | printf "%s\n" "$USE_NLS" >&6; } |
| 18973 | |
| 18974 | |
| 18975 | |
| 18976 | |
| 18977 | GETTEXT_MACRO_VERSION=0.19 |
| 18978 | |
| 18979 | |
| 18980 | |
| 18981 | |
| 18982 | # Prepare PATH_SEPARATOR. |
| 18983 | # The user is always right. |
| 18984 | if test "${PATH_SEPARATOR+set}" != set; then |
| 18985 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 18986 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 18987 | # so we have to set that as well for the test. |
| 18988 | PATH_SEPARATOR=: |
| 18989 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 18990 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 18991 | || PATH_SEPARATOR=';' |
| 18992 | } |
| 18993 | fi |
| 18994 | |
| 18995 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 18996 | # as systems may use methods other than mode bits to determine executability. |
| 18997 | cat >conf$$.file <<_ASEOF |
| 18998 | #! /bin/sh |
| 18999 | exit 0 |
| 19000 | _ASEOF |
| 19001 | chmod +x conf$$.file |
| 19002 | if test -x conf$$.file >/dev/null 2>&1; then |
| 19003 | ac_executable_p="test -x" |
| 19004 | else |
| 19005 | ac_executable_p="test -f" |
| 19006 | fi |
| 19007 | rm -f conf$$.file |
| 19008 | |
| 19009 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 19010 | set dummy msgfmt; ac_word=$2 |
| 19011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19012 | printf %s "checking for $ac_word... " >&6; } |
| 19013 | if test ${ac_cv_path_MSGFMT+y} |
| 19014 | then : |
| 19015 | printf %s "(cached) " >&6 |
| 19016 | else $as_nop |
| 19017 | case "$MSGFMT" in |
| 19018 | [\\/]* | ?:[\\/]*) |
| 19019 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 19020 | ;; |
| 19021 | *) |
| 19022 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 19023 | for ac_dir in $PATH; do |
| 19024 | IFS="$ac_save_IFS" |
| 19025 | test -z "$ac_dir" && ac_dir=. |
| 19026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19027 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 19028 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 19029 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 19030 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 19031 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 19032 | break 2 |
| 19033 | fi |
| 19034 | fi |
| 19035 | done |
| 19036 | done |
| 19037 | IFS="$ac_save_IFS" |
| 19038 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 19039 | ;; |
| 19040 | esac |
| 19041 | fi |
| 19042 | MSGFMT="$ac_cv_path_MSGFMT" |
| 19043 | if test "$MSGFMT" != ":"; then |
| 19044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 19045 | printf "%s\n" "$MSGFMT" >&6; } |
| 19046 | else |
| 19047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19048 | printf "%s\n" "no" >&6; } |
| 19049 | fi |
| 19050 | |
| 19051 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 19052 | set dummy gmsgfmt; ac_word=$2 |
| 19053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19054 | printf %s "checking for $ac_word... " >&6; } |
| 19055 | if test ${ac_cv_path_GMSGFMT+y} |
| 19056 | then : |
| 19057 | printf %s "(cached) " >&6 |
| 19058 | else $as_nop |
| 19059 | case $GMSGFMT in |
| 19060 | [\\/]* | ?:[\\/]*) |
| 19061 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 19062 | ;; |
| 19063 | *) |
| 19064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19065 | for as_dir in $PATH |
| 19066 | do |
| 19067 | IFS=$as_save_IFS |
| 19068 | case $as_dir in #((( |
| 19069 | '') as_dir=./ ;; |
| 19070 | */) ;; |
| 19071 | *) as_dir=$as_dir/ ;; |
| 19072 | esac |
| 19073 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19074 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 19075 | ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" |
| 19076 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 19077 | break 2 |
| 19078 | fi |
| 19079 | done |
| 19080 | done |
| 19081 | IFS=$as_save_IFS |
| 19082 | |
| 19083 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 19084 | ;; |
| 19085 | esac |
| 19086 | fi |
| 19087 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 19088 | if test -n "$GMSGFMT"; then |
| 19089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
| 19090 | printf "%s\n" "$GMSGFMT" >&6; } |
| 19091 | else |
| 19092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19093 | printf "%s\n" "no" >&6; } |
| 19094 | fi |
| 19095 | |
| 19096 | |
| 19097 | |
| 19098 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 19099 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 19100 | *) MSGFMT_015=$MSGFMT ;; |
| 19101 | esac |
| 19102 | |
| 19103 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 19104 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 19105 | *) GMSGFMT_015=$GMSGFMT ;; |
| 19106 | esac |
| 19107 | |
| 19108 | |
| 19109 | |
| 19110 | # Prepare PATH_SEPARATOR. |
| 19111 | # The user is always right. |
| 19112 | if test "${PATH_SEPARATOR+set}" != set; then |
| 19113 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 19114 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 19115 | # so we have to set that as well for the test. |
| 19116 | PATH_SEPARATOR=: |
| 19117 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 19118 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 19119 | || PATH_SEPARATOR=';' |
| 19120 | } |
| 19121 | fi |
| 19122 | |
| 19123 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 19124 | # as systems may use methods other than mode bits to determine executability. |
| 19125 | cat >conf$$.file <<_ASEOF |
| 19126 | #! /bin/sh |
| 19127 | exit 0 |
| 19128 | _ASEOF |
| 19129 | chmod +x conf$$.file |
| 19130 | if test -x conf$$.file >/dev/null 2>&1; then |
| 19131 | ac_executable_p="test -x" |
| 19132 | else |
| 19133 | ac_executable_p="test -f" |
| 19134 | fi |
| 19135 | rm -f conf$$.file |
| 19136 | |
| 19137 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 19138 | set dummy xgettext; ac_word=$2 |
| 19139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19140 | printf %s "checking for $ac_word... " >&6; } |
| 19141 | if test ${ac_cv_path_XGETTEXT+y} |
| 19142 | then : |
| 19143 | printf %s "(cached) " >&6 |
| 19144 | else $as_nop |
| 19145 | case "$XGETTEXT" in |
| 19146 | [\\/]* | ?:[\\/]*) |
| 19147 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 19148 | ;; |
| 19149 | *) |
| 19150 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 19151 | for ac_dir in $PATH; do |
| 19152 | IFS="$ac_save_IFS" |
| 19153 | test -z "$ac_dir" && ac_dir=. |
| 19154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19155 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 19156 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 19157 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 19158 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 19159 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 19160 | break 2 |
| 19161 | fi |
| 19162 | fi |
| 19163 | done |
| 19164 | done |
| 19165 | IFS="$ac_save_IFS" |
| 19166 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 19167 | ;; |
| 19168 | esac |
| 19169 | fi |
| 19170 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 19171 | if test "$XGETTEXT" != ":"; then |
| 19172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
| 19173 | printf "%s\n" "$XGETTEXT" >&6; } |
| 19174 | else |
| 19175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19176 | printf "%s\n" "no" >&6; } |
| 19177 | fi |
| 19178 | |
| 19179 | rm -f messages.po |
| 19180 | |
| 19181 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 19182 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 19183 | *) XGETTEXT_015=$XGETTEXT ;; |
| 19184 | esac |
| 19185 | |
| 19186 | |
| 19187 | |
| 19188 | # Prepare PATH_SEPARATOR. |
| 19189 | # The user is always right. |
| 19190 | if test "${PATH_SEPARATOR+set}" != set; then |
| 19191 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 19192 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 19193 | # so we have to set that as well for the test. |
| 19194 | PATH_SEPARATOR=: |
| 19195 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 19196 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 19197 | || PATH_SEPARATOR=';' |
| 19198 | } |
| 19199 | fi |
| 19200 | |
| 19201 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 19202 | # as systems may use methods other than mode bits to determine executability. |
| 19203 | cat >conf$$.file <<_ASEOF |
| 19204 | #! /bin/sh |
| 19205 | exit 0 |
| 19206 | _ASEOF |
| 19207 | chmod +x conf$$.file |
| 19208 | if test -x conf$$.file >/dev/null 2>&1; then |
| 19209 | ac_executable_p="test -x" |
| 19210 | else |
| 19211 | ac_executable_p="test -f" |
| 19212 | fi |
| 19213 | rm -f conf$$.file |
| 19214 | |
| 19215 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 19216 | set dummy msgmerge; ac_word=$2 |
| 19217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19218 | printf %s "checking for $ac_word... " >&6; } |
| 19219 | if test ${ac_cv_path_MSGMERGE+y} |
| 19220 | then : |
| 19221 | printf %s "(cached) " >&6 |
| 19222 | else $as_nop |
| 19223 | case "$MSGMERGE" in |
| 19224 | [\\/]* | ?:[\\/]*) |
| 19225 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 19226 | ;; |
| 19227 | *) |
| 19228 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 19229 | for ac_dir in $PATH; do |
| 19230 | IFS="$ac_save_IFS" |
| 19231 | test -z "$ac_dir" && ac_dir=. |
| 19232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19233 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 19234 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 19235 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 19236 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 19237 | break 2 |
| 19238 | fi |
| 19239 | fi |
| 19240 | done |
| 19241 | done |
| 19242 | IFS="$ac_save_IFS" |
| 19243 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 19244 | ;; |
| 19245 | esac |
| 19246 | fi |
| 19247 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 19248 | if test "$MSGMERGE" != ":"; then |
| 19249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
| 19250 | printf "%s\n" "$MSGMERGE" >&6; } |
| 19251 | else |
| 19252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19253 | printf "%s\n" "no" >&6; } |
| 19254 | fi |
| 19255 | |
| 19256 | |
| 19257 | test -n "$localedir" || localedir='${datadir}/locale' |
| 19258 | |
| 19259 | |
| 19260 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 19261 | |
| 19262 | |
| 19263 | ac_config_commands="$ac_config_commands po-directories" |
| 19264 | |
| 19265 | |
| 19266 | |
| 19267 | if test "X$prefix" = "XNONE"; then |
| 19268 | acl_final_prefix="$ac_default_prefix" |
| 19269 | else |
| 19270 | acl_final_prefix="$prefix" |
| 19271 | fi |
| 19272 | if test "X$exec_prefix" = "XNONE"; then |
| 19273 | acl_final_exec_prefix='${prefix}' |
| 19274 | else |
| 19275 | acl_final_exec_prefix="$exec_prefix" |
| 19276 | fi |
| 19277 | acl_save_prefix="$prefix" |
| 19278 | prefix="$acl_final_prefix" |
| 19279 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 19280 | prefix="$acl_save_prefix" |
| 19281 | |
| 19282 | |
| 19283 | |
| 19284 | # Check whether --with-gnu-ld was given. |
| 19285 | if test ${with_gnu_ld+y} |
| 19286 | then : |
| 19287 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 19288 | else $as_nop |
| 19289 | with_gnu_ld=no |
| 19290 | fi |
| 19291 | |
| 19292 | # Prepare PATH_SEPARATOR. |
| 19293 | # The user is always right. |
| 19294 | if test "${PATH_SEPARATOR+set}" != set; then |
| 19295 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 19296 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 19297 | # so we have to set that as well for the test. |
| 19298 | PATH_SEPARATOR=: |
| 19299 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 19300 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 19301 | || PATH_SEPARATOR=';' |
| 19302 | } |
| 19303 | fi |
| 19304 | |
| 19305 | ac_prog=ld |
| 19306 | if test "$GCC" = yes; then |
| 19307 | # Check if gcc -print-prog-name=ld gives a path. |
| 19308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 19309 | printf %s "checking for ld used by $CC... " >&6; } |
| 19310 | case $host in |
| 19311 | *-*-mingw*) |
| 19312 | # gcc leaves a trailing carriage return which upsets mingw |
| 19313 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 19314 | *) |
| 19315 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 19316 | esac |
| 19317 | case $ac_prog in |
| 19318 | # Accept absolute paths. |
| 19319 | [\\/]* | ?:[\\/]*) |
| 19320 | re_direlt='/[^/][^/]*/\.\./' |
| 19321 | # Canonicalize the pathname of ld |
| 19322 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 19323 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 19324 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 19325 | done |
| 19326 | test -z "$LD" && LD="$ac_prog" |
| 19327 | ;; |
| 19328 | "") |
| 19329 | # If it fails, then pretend we aren't using GCC. |
| 19330 | ac_prog=ld |
| 19331 | ;; |
| 19332 | *) |
| 19333 | # If it is relative, then search for the first ld in PATH. |
| 19334 | with_gnu_ld=unknown |
| 19335 | ;; |
| 19336 | esac |
| 19337 | elif test "$with_gnu_ld" = yes; then |
| 19338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 19339 | printf %s "checking for GNU ld... " >&6; } |
| 19340 | else |
| 19341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 19342 | printf %s "checking for non-GNU ld... " >&6; } |
| 19343 | fi |
| 19344 | if test ${acl_cv_path_LD+y} |
| 19345 | then : |
| 19346 | printf %s "(cached) " >&6 |
| 19347 | else $as_nop |
| 19348 | if test -z "$LD"; then |
| 19349 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 19350 | for ac_dir in $PATH; do |
| 19351 | IFS="$acl_save_ifs" |
| 19352 | test -z "$ac_dir" && ac_dir=. |
| 19353 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 19354 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 19355 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 19356 | # but apparently some variants of GNU ld only accept -v. |
| 19357 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 19358 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
| 19359 | *GNU* | *'with BFD'*) |
| 19360 | test "$with_gnu_ld" != no && break |
| 19361 | ;; |
| 19362 | *) |
| 19363 | test "$with_gnu_ld" != yes && break |
| 19364 | ;; |
| 19365 | esac |
| 19366 | fi |
| 19367 | done |
| 19368 | IFS="$acl_save_ifs" |
| 19369 | else |
| 19370 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 19371 | fi |
| 19372 | fi |
| 19373 | |
| 19374 | LD="$acl_cv_path_LD" |
| 19375 | if test -n "$LD"; then |
| 19376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 19377 | printf "%s\n" "$LD" >&6; } |
| 19378 | else |
| 19379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19380 | printf "%s\n" "no" >&6; } |
| 19381 | fi |
| 19382 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 19383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 19384 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 19385 | if test ${acl_cv_prog_gnu_ld+y} |
| 19386 | then : |
| 19387 | printf %s "(cached) " >&6 |
| 19388 | else $as_nop |
| 19389 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 19390 | case `$LD -v 2>&1 </dev/null` in |
| 19391 | *GNU* | *'with BFD'*) |
| 19392 | acl_cv_prog_gnu_ld=yes |
| 19393 | ;; |
| 19394 | *) |
| 19395 | acl_cv_prog_gnu_ld=no |
| 19396 | ;; |
| 19397 | esac |
| 19398 | fi |
| 19399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
| 19400 | printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } |
| 19401 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 19402 | |
| 19403 | |
| 19404 | |
| 19405 | |
| 19406 | |
| 19407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
| 19408 | printf %s "checking for shared library run path origin... " >&6; } |
| 19409 | if test ${acl_cv_rpath+y} |
| 19410 | then : |
| 19411 | printf %s "(cached) " >&6 |
| 19412 | else $as_nop |
| 19413 | |
| 19414 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 19415 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 19416 | . ./conftest.sh |
| 19417 | rm -f ./conftest.sh |
| 19418 | acl_cv_rpath=done |
| 19419 | |
| 19420 | fi |
| 19421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
| 19422 | printf "%s\n" "$acl_cv_rpath" >&6; } |
| 19423 | wl="$acl_cv_wl" |
| 19424 | acl_libext="$acl_cv_libext" |
| 19425 | acl_shlibext="$acl_cv_shlibext" |
| 19426 | acl_libname_spec="$acl_cv_libname_spec" |
| 19427 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 19428 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 19429 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 19430 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 19431 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 19432 | # Check whether --enable-rpath was given. |
| 19433 | if test ${enable_rpath+y} |
| 19434 | then : |
| 19435 | enableval=$enable_rpath; : |
| 19436 | else $as_nop |
| 19437 | enable_rpath=yes |
| 19438 | fi |
| 19439 | |
| 19440 | |
| 19441 | |
| 19442 | |
| 19443 | |
| 19444 | acl_libdirstem=lib |
| 19445 | acl_libdirstem2= |
| 19446 | case "$host_os" in |
| 19447 | solaris*) |
| 19448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 19449 | printf %s "checking for 64-bit host... " >&6; } |
| 19450 | if test ${gl_cv_solaris_64bit+y} |
| 19451 | then : |
| 19452 | printf %s "(cached) " >&6 |
| 19453 | else $as_nop |
| 19454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19455 | /* end confdefs.h. */ |
| 19456 | |
| 19457 | #ifdef _LP64 |
| 19458 | sixtyfour bits |
| 19459 | #endif |
| 19460 | |
| 19461 | _ACEOF |
| 19462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19463 | $EGREP "sixtyfour bits" >/dev/null 2>&1 |
| 19464 | then : |
| 19465 | gl_cv_solaris_64bit=yes |
| 19466 | else $as_nop |
| 19467 | gl_cv_solaris_64bit=no |
| 19468 | fi |
| 19469 | rm -rf conftest* |
| 19470 | |
| 19471 | |
| 19472 | fi |
| 19473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 19474 | printf "%s\n" "$gl_cv_solaris_64bit" >&6; } |
| 19475 | if test $gl_cv_solaris_64bit = yes; then |
| 19476 | acl_libdirstem=lib/64 |
| 19477 | case "$host_cpu" in |
| 19478 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 19479 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 19480 | esac |
| 19481 | fi |
| 19482 | ;; |
| 19483 | *) |
| 19484 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 19485 | if test -n "$searchpath"; then |
| 19486 | acl_save_IFS="${IFS= }"; IFS=":" |
| 19487 | for searchdir in $searchpath; do |
| 19488 | if test -d "$searchdir"; then |
| 19489 | case "$searchdir" in |
| 19490 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 19491 | */../ | */.. ) |
| 19492 | # Better ignore directories of this form. They are misleading. |
| 19493 | ;; |
| 19494 | *) searchdir=`cd "$searchdir" && pwd` |
| 19495 | case "$searchdir" in |
| 19496 | */lib64 ) acl_libdirstem=lib64 ;; |
| 19497 | esac ;; |
| 19498 | esac |
| 19499 | fi |
| 19500 | done |
| 19501 | IFS="$acl_save_IFS" |
| 19502 | fi |
| 19503 | ;; |
| 19504 | esac |
| 19505 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 19506 | |
| 19507 | |
| 19508 | |
| 19509 | |
| 19510 | |
| 19511 | |
| 19512 | |
| 19513 | |
| 19514 | |
| 19515 | |
| 19516 | |
| 19517 | |
| 19518 | use_additional=yes |
| 19519 | |
| 19520 | acl_save_prefix="$prefix" |
| 19521 | prefix="$acl_final_prefix" |
| 19522 | acl_save_exec_prefix="$exec_prefix" |
| 19523 | exec_prefix="$acl_final_exec_prefix" |
| 19524 | |
| 19525 | eval additional_includedir=\"$includedir\" |
| 19526 | eval additional_libdir=\"$libdir\" |
| 19527 | |
| 19528 | exec_prefix="$acl_save_exec_prefix" |
| 19529 | prefix="$acl_save_prefix" |
| 19530 | |
| 19531 | |
| 19532 | # Check whether --with-libiconv-prefix was given. |
| 19533 | if test ${with_libiconv_prefix+y} |
| 19534 | then : |
| 19535 | withval=$with_libiconv_prefix; |
| 19536 | if test "X$withval" = "Xno"; then |
| 19537 | use_additional=no |
| 19538 | else |
| 19539 | if test "X$withval" = "X"; then |
| 19540 | |
| 19541 | acl_save_prefix="$prefix" |
| 19542 | prefix="$acl_final_prefix" |
| 19543 | acl_save_exec_prefix="$exec_prefix" |
| 19544 | exec_prefix="$acl_final_exec_prefix" |
| 19545 | |
| 19546 | eval additional_includedir=\"$includedir\" |
| 19547 | eval additional_libdir=\"$libdir\" |
| 19548 | |
| 19549 | exec_prefix="$acl_save_exec_prefix" |
| 19550 | prefix="$acl_save_prefix" |
| 19551 | |
| 19552 | else |
| 19553 | additional_includedir="$withval/include" |
| 19554 | additional_libdir="$withval/$acl_libdirstem" |
| 19555 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 19556 | && ! test -d "$withval/$acl_libdirstem"; then |
| 19557 | additional_libdir="$withval/$acl_libdirstem2" |
| 19558 | fi |
| 19559 | fi |
| 19560 | fi |
| 19561 | |
| 19562 | fi |
| 19563 | |
| 19564 | LIBICONV= |
| 19565 | LTLIBICONV= |
| 19566 | INCICONV= |
| 19567 | LIBICONV_PREFIX= |
| 19568 | HAVE_LIBICONV= |
| 19569 | rpathdirs= |
| 19570 | ltrpathdirs= |
| 19571 | names_already_handled= |
| 19572 | names_next_round='iconv ' |
| 19573 | while test -n "$names_next_round"; do |
| 19574 | names_this_round="$names_next_round" |
| 19575 | names_next_round= |
| 19576 | for name in $names_this_round; do |
| 19577 | already_handled= |
| 19578 | for n in $names_already_handled; do |
| 19579 | if test "$n" = "$name"; then |
| 19580 | already_handled=yes |
| 19581 | break |
| 19582 | fi |
| 19583 | done |
| 19584 | if test -z "$already_handled"; then |
| 19585 | names_already_handled="$names_already_handled $name" |
| 19586 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 19587 | eval value=\"\$HAVE_LIB$uppername\" |
| 19588 | if test -n "$value"; then |
| 19589 | if test "$value" = yes; then |
| 19590 | eval value=\"\$LIB$uppername\" |
| 19591 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 19592 | eval value=\"\$LTLIB$uppername\" |
| 19593 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 19594 | else |
| 19595 | : |
| 19596 | fi |
| 19597 | else |
| 19598 | found_dir= |
| 19599 | found_la= |
| 19600 | found_so= |
| 19601 | found_a= |
| 19602 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 19603 | if test -n "$acl_shlibext"; then |
| 19604 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 19605 | else |
| 19606 | shrext= |
| 19607 | fi |
| 19608 | if test $use_additional = yes; then |
| 19609 | dir="$additional_libdir" |
| 19610 | if test -n "$acl_shlibext"; then |
| 19611 | if test -f "$dir/$libname$shrext"; then |
| 19612 | found_dir="$dir" |
| 19613 | found_so="$dir/$libname$shrext" |
| 19614 | else |
| 19615 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 19616 | ver=`(cd "$dir" && \ |
| 19617 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 19618 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 19619 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 19620 | | sed 1q ) 2>/dev/null` |
| 19621 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 19622 | found_dir="$dir" |
| 19623 | found_so="$dir/$libname$shrext.$ver" |
| 19624 | fi |
| 19625 | else |
| 19626 | eval library_names=\"$acl_library_names_spec\" |
| 19627 | for f in $library_names; do |
| 19628 | if test -f "$dir/$f"; then |
| 19629 | found_dir="$dir" |
| 19630 | found_so="$dir/$f" |
| 19631 | break |
| 19632 | fi |
| 19633 | done |
| 19634 | fi |
| 19635 | fi |
| 19636 | fi |
| 19637 | if test "X$found_dir" = "X"; then |
| 19638 | if test -f "$dir/$libname.$acl_libext"; then |
| 19639 | found_dir="$dir" |
| 19640 | found_a="$dir/$libname.$acl_libext" |
| 19641 | fi |
| 19642 | fi |
| 19643 | if test "X$found_dir" != "X"; then |
| 19644 | if test -f "$dir/$libname.la"; then |
| 19645 | found_la="$dir/$libname.la" |
| 19646 | fi |
| 19647 | fi |
| 19648 | fi |
| 19649 | if test "X$found_dir" = "X"; then |
| 19650 | for x in $LDFLAGS $LTLIBICONV; do |
| 19651 | |
| 19652 | acl_save_prefix="$prefix" |
| 19653 | prefix="$acl_final_prefix" |
| 19654 | acl_save_exec_prefix="$exec_prefix" |
| 19655 | exec_prefix="$acl_final_exec_prefix" |
| 19656 | eval x=\"$x\" |
| 19657 | exec_prefix="$acl_save_exec_prefix" |
| 19658 | prefix="$acl_save_prefix" |
| 19659 | |
| 19660 | case "$x" in |
| 19661 | -L*) |
| 19662 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 19663 | if test -n "$acl_shlibext"; then |
| 19664 | if test -f "$dir/$libname$shrext"; then |
| 19665 | found_dir="$dir" |
| 19666 | found_so="$dir/$libname$shrext" |
| 19667 | else |
| 19668 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 19669 | ver=`(cd "$dir" && \ |
| 19670 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 19671 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 19672 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 19673 | | sed 1q ) 2>/dev/null` |
| 19674 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 19675 | found_dir="$dir" |
| 19676 | found_so="$dir/$libname$shrext.$ver" |
| 19677 | fi |
| 19678 | else |
| 19679 | eval library_names=\"$acl_library_names_spec\" |
| 19680 | for f in $library_names; do |
| 19681 | if test -f "$dir/$f"; then |
| 19682 | found_dir="$dir" |
| 19683 | found_so="$dir/$f" |
| 19684 | break |
| 19685 | fi |
| 19686 | done |
| 19687 | fi |
| 19688 | fi |
| 19689 | fi |
| 19690 | if test "X$found_dir" = "X"; then |
| 19691 | if test -f "$dir/$libname.$acl_libext"; then |
| 19692 | found_dir="$dir" |
| 19693 | found_a="$dir/$libname.$acl_libext" |
| 19694 | fi |
| 19695 | fi |
| 19696 | if test "X$found_dir" != "X"; then |
| 19697 | if test -f "$dir/$libname.la"; then |
| 19698 | found_la="$dir/$libname.la" |
| 19699 | fi |
| 19700 | fi |
| 19701 | ;; |
| 19702 | esac |
| 19703 | if test "X$found_dir" != "X"; then |
| 19704 | break |
| 19705 | fi |
| 19706 | done |
| 19707 | fi |
| 19708 | if test "X$found_dir" != "X"; then |
| 19709 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 19710 | if test "X$found_so" != "X"; then |
| 19711 | if test "$enable_rpath" = no \ |
| 19712 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 19713 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 19714 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 19715 | else |
| 19716 | haveit= |
| 19717 | for x in $ltrpathdirs; do |
| 19718 | if test "X$x" = "X$found_dir"; then |
| 19719 | haveit=yes |
| 19720 | break |
| 19721 | fi |
| 19722 | done |
| 19723 | if test -z "$haveit"; then |
| 19724 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 19725 | fi |
| 19726 | if test "$acl_hardcode_direct" = yes; then |
| 19727 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 19728 | else |
| 19729 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 19730 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 19731 | haveit= |
| 19732 | for x in $rpathdirs; do |
| 19733 | if test "X$x" = "X$found_dir"; then |
| 19734 | haveit=yes |
| 19735 | break |
| 19736 | fi |
| 19737 | done |
| 19738 | if test -z "$haveit"; then |
| 19739 | rpathdirs="$rpathdirs $found_dir" |
| 19740 | fi |
| 19741 | else |
| 19742 | haveit= |
| 19743 | for x in $LDFLAGS $LIBICONV; do |
| 19744 | |
| 19745 | acl_save_prefix="$prefix" |
| 19746 | prefix="$acl_final_prefix" |
| 19747 | acl_save_exec_prefix="$exec_prefix" |
| 19748 | exec_prefix="$acl_final_exec_prefix" |
| 19749 | eval x=\"$x\" |
| 19750 | exec_prefix="$acl_save_exec_prefix" |
| 19751 | prefix="$acl_save_prefix" |
| 19752 | |
| 19753 | if test "X$x" = "X-L$found_dir"; then |
| 19754 | haveit=yes |
| 19755 | break |
| 19756 | fi |
| 19757 | done |
| 19758 | if test -z "$haveit"; then |
| 19759 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 19760 | fi |
| 19761 | if test "$acl_hardcode_minus_L" != no; then |
| 19762 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 19763 | else |
| 19764 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 19765 | fi |
| 19766 | fi |
| 19767 | fi |
| 19768 | fi |
| 19769 | else |
| 19770 | if test "X$found_a" != "X"; then |
| 19771 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 19772 | else |
| 19773 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 19774 | fi |
| 19775 | fi |
| 19776 | additional_includedir= |
| 19777 | case "$found_dir" in |
| 19778 | */$acl_libdirstem | */$acl_libdirstem/) |
| 19779 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 19780 | if test "$name" = 'iconv'; then |
| 19781 | LIBICONV_PREFIX="$basedir" |
| 19782 | fi |
| 19783 | additional_includedir="$basedir/include" |
| 19784 | ;; |
| 19785 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 19786 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 19787 | if test "$name" = 'iconv'; then |
| 19788 | LIBICONV_PREFIX="$basedir" |
| 19789 | fi |
| 19790 | additional_includedir="$basedir/include" |
| 19791 | ;; |
| 19792 | esac |
| 19793 | if test "X$additional_includedir" != "X"; then |
| 19794 | if test "X$additional_includedir" != "X/usr/include"; then |
| 19795 | haveit= |
| 19796 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 19797 | if test -n "$GCC"; then |
| 19798 | case $host_os in |
| 19799 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 19800 | esac |
| 19801 | fi |
| 19802 | fi |
| 19803 | if test -z "$haveit"; then |
| 19804 | for x in $CPPFLAGS $INCICONV; do |
| 19805 | |
| 19806 | acl_save_prefix="$prefix" |
| 19807 | prefix="$acl_final_prefix" |
| 19808 | acl_save_exec_prefix="$exec_prefix" |
| 19809 | exec_prefix="$acl_final_exec_prefix" |
| 19810 | eval x=\"$x\" |
| 19811 | exec_prefix="$acl_save_exec_prefix" |
| 19812 | prefix="$acl_save_prefix" |
| 19813 | |
| 19814 | if test "X$x" = "X-I$additional_includedir"; then |
| 19815 | haveit=yes |
| 19816 | break |
| 19817 | fi |
| 19818 | done |
| 19819 | if test -z "$haveit"; then |
| 19820 | if test -d "$additional_includedir"; then |
| 19821 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 19822 | fi |
| 19823 | fi |
| 19824 | fi |
| 19825 | fi |
| 19826 | fi |
| 19827 | if test -n "$found_la"; then |
| 19828 | save_libdir="$libdir" |
| 19829 | case "$found_la" in |
| 19830 | */* | *\\*) . "$found_la" ;; |
| 19831 | *) . "./$found_la" ;; |
| 19832 | esac |
| 19833 | libdir="$save_libdir" |
| 19834 | for dep in $dependency_libs; do |
| 19835 | case "$dep" in |
| 19836 | -L*) |
| 19837 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 19838 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 19839 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 19840 | haveit= |
| 19841 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 19842 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 19843 | if test -n "$GCC"; then |
| 19844 | case $host_os in |
| 19845 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 19846 | esac |
| 19847 | fi |
| 19848 | fi |
| 19849 | if test -z "$haveit"; then |
| 19850 | haveit= |
| 19851 | for x in $LDFLAGS $LIBICONV; do |
| 19852 | |
| 19853 | acl_save_prefix="$prefix" |
| 19854 | prefix="$acl_final_prefix" |
| 19855 | acl_save_exec_prefix="$exec_prefix" |
| 19856 | exec_prefix="$acl_final_exec_prefix" |
| 19857 | eval x=\"$x\" |
| 19858 | exec_prefix="$acl_save_exec_prefix" |
| 19859 | prefix="$acl_save_prefix" |
| 19860 | |
| 19861 | if test "X$x" = "X-L$additional_libdir"; then |
| 19862 | haveit=yes |
| 19863 | break |
| 19864 | fi |
| 19865 | done |
| 19866 | if test -z "$haveit"; then |
| 19867 | if test -d "$additional_libdir"; then |
| 19868 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 19869 | fi |
| 19870 | fi |
| 19871 | haveit= |
| 19872 | for x in $LDFLAGS $LTLIBICONV; do |
| 19873 | |
| 19874 | acl_save_prefix="$prefix" |
| 19875 | prefix="$acl_final_prefix" |
| 19876 | acl_save_exec_prefix="$exec_prefix" |
| 19877 | exec_prefix="$acl_final_exec_prefix" |
| 19878 | eval x=\"$x\" |
| 19879 | exec_prefix="$acl_save_exec_prefix" |
| 19880 | prefix="$acl_save_prefix" |
| 19881 | |
| 19882 | if test "X$x" = "X-L$additional_libdir"; then |
| 19883 | haveit=yes |
| 19884 | break |
| 19885 | fi |
| 19886 | done |
| 19887 | if test -z "$haveit"; then |
| 19888 | if test -d "$additional_libdir"; then |
| 19889 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 19890 | fi |
| 19891 | fi |
| 19892 | fi |
| 19893 | fi |
| 19894 | ;; |
| 19895 | -R*) |
| 19896 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 19897 | if test "$enable_rpath" != no; then |
| 19898 | haveit= |
| 19899 | for x in $rpathdirs; do |
| 19900 | if test "X$x" = "X$dir"; then |
| 19901 | haveit=yes |
| 19902 | break |
| 19903 | fi |
| 19904 | done |
| 19905 | if test -z "$haveit"; then |
| 19906 | rpathdirs="$rpathdirs $dir" |
| 19907 | fi |
| 19908 | haveit= |
| 19909 | for x in $ltrpathdirs; do |
| 19910 | if test "X$x" = "X$dir"; then |
| 19911 | haveit=yes |
| 19912 | break |
| 19913 | fi |
| 19914 | done |
| 19915 | if test -z "$haveit"; then |
| 19916 | ltrpathdirs="$ltrpathdirs $dir" |
| 19917 | fi |
| 19918 | fi |
| 19919 | ;; |
| 19920 | -l*) |
| 19921 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 19922 | ;; |
| 19923 | *.la) |
| 19924 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 19925 | ;; |
| 19926 | *) |
| 19927 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 19928 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 19929 | ;; |
| 19930 | esac |
| 19931 | done |
| 19932 | fi |
| 19933 | else |
| 19934 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 19935 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 19936 | fi |
| 19937 | fi |
| 19938 | fi |
| 19939 | done |
| 19940 | done |
| 19941 | if test "X$rpathdirs" != "X"; then |
| 19942 | if test -n "$acl_hardcode_libdir_separator"; then |
| 19943 | alldirs= |
| 19944 | for found_dir in $rpathdirs; do |
| 19945 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 19946 | done |
| 19947 | acl_save_libdir="$libdir" |
| 19948 | libdir="$alldirs" |
| 19949 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 19950 | libdir="$acl_save_libdir" |
| 19951 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 19952 | else |
| 19953 | for found_dir in $rpathdirs; do |
| 19954 | acl_save_libdir="$libdir" |
| 19955 | libdir="$found_dir" |
| 19956 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 19957 | libdir="$acl_save_libdir" |
| 19958 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 19959 | done |
| 19960 | fi |
| 19961 | fi |
| 19962 | if test "X$ltrpathdirs" != "X"; then |
| 19963 | for found_dir in $ltrpathdirs; do |
| 19964 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 19965 | done |
| 19966 | fi |
| 19967 | |
| 19968 | |
| 19969 | |
| 19970 | |
| 19971 | |
| 19972 | |
| 19973 | |
| 19974 | |
| 19975 | |
| 19976 | |
| 19977 | |
| 19978 | |
| 19979 | |
| 19980 | |
| 19981 | |
| 19982 | |
| 19983 | |
| 19984 | |
| 19985 | |
| 19986 | |
| 19987 | |
| 19988 | |
| 19989 | |
| 19990 | |
| 19991 | |
| 19992 | |
| 19993 | |
| 19994 | |
| 19995 | |
| 19996 | |
| 19997 | |
| 19998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 19999 | printf %s "checking for CFPreferencesCopyAppValue... " >&6; } |
| 20000 | if test ${gt_cv_func_CFPreferencesCopyAppValue+y} |
| 20001 | then : |
| 20002 | printf %s "(cached) " >&6 |
| 20003 | else $as_nop |
| 20004 | gt_save_LIBS="$LIBS" |
| 20005 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 20006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20007 | /* end confdefs.h. */ |
| 20008 | #include <CoreFoundation/CFPreferences.h> |
| 20009 | int |
| 20010 | main (void) |
| 20011 | { |
| 20012 | CFPreferencesCopyAppValue(NULL, NULL) |
| 20013 | ; |
| 20014 | return 0; |
| 20015 | } |
| 20016 | _ACEOF |
| 20017 | if ac_fn_c_try_link "$LINENO" |
| 20018 | then : |
| 20019 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 20020 | else $as_nop |
| 20021 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 20022 | fi |
| 20023 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20024 | conftest$ac_exeext conftest.$ac_ext |
| 20025 | LIBS="$gt_save_LIBS" |
| 20026 | fi |
| 20027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 20028 | printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 20029 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 20030 | |
| 20031 | printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 20032 | |
| 20033 | fi |
| 20034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 20035 | printf %s "checking for CFLocaleCopyCurrent... " >&6; } |
| 20036 | if test ${gt_cv_func_CFLocaleCopyCurrent+y} |
| 20037 | then : |
| 20038 | printf %s "(cached) " >&6 |
| 20039 | else $as_nop |
| 20040 | gt_save_LIBS="$LIBS" |
| 20041 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 20042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20043 | /* end confdefs.h. */ |
| 20044 | #include <CoreFoundation/CFLocale.h> |
| 20045 | int |
| 20046 | main (void) |
| 20047 | { |
| 20048 | CFLocaleCopyCurrent(); |
| 20049 | ; |
| 20050 | return 0; |
| 20051 | } |
| 20052 | _ACEOF |
| 20053 | if ac_fn_c_try_link "$LINENO" |
| 20054 | then : |
| 20055 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 20056 | else $as_nop |
| 20057 | gt_cv_func_CFLocaleCopyCurrent=no |
| 20058 | fi |
| 20059 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20060 | conftest$ac_exeext conftest.$ac_ext |
| 20061 | LIBS="$gt_save_LIBS" |
| 20062 | fi |
| 20063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 20064 | printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 20065 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 20066 | |
| 20067 | printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 20068 | |
| 20069 | fi |
| 20070 | INTL_MACOSX_LIBS= |
| 20071 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 20072 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 20073 | fi |
| 20074 | |
| 20075 | |
| 20076 | |
| 20077 | |
| 20078 | |
| 20079 | |
| 20080 | LIBINTL= |
| 20081 | LTLIBINTL= |
| 20082 | POSUB= |
| 20083 | |
| 20084 | case " $gt_needs " in |
| 20085 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 20086 | *" need-ngettext "*) gt_api_version=2 ;; |
| 20087 | *) gt_api_version=1 ;; |
| 20088 | esac |
| 20089 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 20090 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 20091 | |
| 20092 | if test "$USE_NLS" = "yes"; then |
| 20093 | gt_use_preinstalled_gnugettext=no |
| 20094 | |
| 20095 | |
| 20096 | if test $gt_api_version -ge 3; then |
| 20097 | gt_revision_test_code=' |
| 20098 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 20099 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 20100 | #endif |
| 20101 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 20102 | ' |
| 20103 | else |
| 20104 | gt_revision_test_code= |
| 20105 | fi |
| 20106 | if test $gt_api_version -ge 2; then |
| 20107 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 20108 | else |
| 20109 | gt_expression_test_code= |
| 20110 | fi |
| 20111 | |
| 20112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
| 20113 | printf %s "checking for GNU gettext in libc... " >&6; } |
| 20114 | if eval test \${$gt_func_gnugettext_libc+y} |
| 20115 | then : |
| 20116 | printf %s "(cached) " >&6 |
| 20117 | else $as_nop |
| 20118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20119 | /* end confdefs.h. */ |
| 20120 | |
| 20121 | #include <libintl.h> |
| 20122 | $gt_revision_test_code |
| 20123 | extern int _nl_msg_cat_cntr; |
| 20124 | extern int *_nl_domain_bindings; |
| 20125 | |
| 20126 | int |
| 20127 | main (void) |
| 20128 | { |
| 20129 | |
| 20130 | bindtextdomain ("", ""); |
| 20131 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 20132 | |
| 20133 | ; |
| 20134 | return 0; |
| 20135 | } |
| 20136 | _ACEOF |
| 20137 | if ac_fn_c_try_link "$LINENO" |
| 20138 | then : |
| 20139 | eval "$gt_func_gnugettext_libc=yes" |
| 20140 | else $as_nop |
| 20141 | eval "$gt_func_gnugettext_libc=no" |
| 20142 | fi |
| 20143 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20144 | conftest$ac_exeext conftest.$ac_ext |
| 20145 | fi |
| 20146 | eval ac_res=\$$gt_func_gnugettext_libc |
| 20147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20148 | printf "%s\n" "$ac_res" >&6; } |
| 20149 | |
| 20150 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 20151 | |
| 20152 | |
| 20153 | |
| 20154 | |
| 20155 | |
| 20156 | am_save_CPPFLAGS="$CPPFLAGS" |
| 20157 | |
| 20158 | for element in $INCICONV; do |
| 20159 | haveit= |
| 20160 | for x in $CPPFLAGS; do |
| 20161 | |
| 20162 | acl_save_prefix="$prefix" |
| 20163 | prefix="$acl_final_prefix" |
| 20164 | acl_save_exec_prefix="$exec_prefix" |
| 20165 | exec_prefix="$acl_final_exec_prefix" |
| 20166 | eval x=\"$x\" |
| 20167 | exec_prefix="$acl_save_exec_prefix" |
| 20168 | prefix="$acl_save_prefix" |
| 20169 | |
| 20170 | if test "X$x" = "X$element"; then |
| 20171 | haveit=yes |
| 20172 | break |
| 20173 | fi |
| 20174 | done |
| 20175 | if test -z "$haveit"; then |
| 20176 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 20177 | fi |
| 20178 | done |
| 20179 | |
| 20180 | |
| 20181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
| 20182 | printf %s "checking for iconv... " >&6; } |
| 20183 | if test ${am_cv_func_iconv+y} |
| 20184 | then : |
| 20185 | printf %s "(cached) " >&6 |
| 20186 | else $as_nop |
| 20187 | |
| 20188 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 20189 | am_cv_lib_iconv=no |
| 20190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20191 | /* end confdefs.h. */ |
| 20192 | |
| 20193 | #include <stdlib.h> |
| 20194 | #include <iconv.h> |
| 20195 | |
| 20196 | int |
| 20197 | main (void) |
| 20198 | { |
| 20199 | iconv_t cd = iconv_open("",""); |
| 20200 | iconv(cd,NULL,NULL,NULL,NULL); |
| 20201 | iconv_close(cd); |
| 20202 | ; |
| 20203 | return 0; |
| 20204 | } |
| 20205 | _ACEOF |
| 20206 | if ac_fn_c_try_link "$LINENO" |
| 20207 | then : |
| 20208 | am_cv_func_iconv=yes |
| 20209 | fi |
| 20210 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20211 | conftest$ac_exeext conftest.$ac_ext |
| 20212 | if test "$am_cv_func_iconv" != yes; then |
| 20213 | am_save_LIBS="$LIBS" |
| 20214 | LIBS="$LIBS $LIBICONV" |
| 20215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20216 | /* end confdefs.h. */ |
| 20217 | |
| 20218 | #include <stdlib.h> |
| 20219 | #include <iconv.h> |
| 20220 | |
| 20221 | int |
| 20222 | main (void) |
| 20223 | { |
| 20224 | iconv_t cd = iconv_open("",""); |
| 20225 | iconv(cd,NULL,NULL,NULL,NULL); |
| 20226 | iconv_close(cd); |
| 20227 | ; |
| 20228 | return 0; |
| 20229 | } |
| 20230 | _ACEOF |
| 20231 | if ac_fn_c_try_link "$LINENO" |
| 20232 | then : |
| 20233 | am_cv_lib_iconv=yes |
| 20234 | am_cv_func_iconv=yes |
| 20235 | fi |
| 20236 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20237 | conftest$ac_exeext conftest.$ac_ext |
| 20238 | LIBS="$am_save_LIBS" |
| 20239 | fi |
| 20240 | |
| 20241 | fi |
| 20242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
| 20243 | printf "%s\n" "$am_cv_func_iconv" >&6; } |
| 20244 | if test "$am_cv_func_iconv" = yes; then |
| 20245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 20246 | printf %s "checking for working iconv... " >&6; } |
| 20247 | if test ${am_cv_func_iconv_works+y} |
| 20248 | then : |
| 20249 | printf %s "(cached) " >&6 |
| 20250 | else $as_nop |
| 20251 | |
| 20252 | am_save_LIBS="$LIBS" |
| 20253 | if test $am_cv_lib_iconv = yes; then |
| 20254 | LIBS="$LIBS $LIBICONV" |
| 20255 | fi |
| 20256 | if test "$cross_compiling" = yes |
| 20257 | then : |
| 20258 | |
| 20259 | case "$host_os" in |
| 20260 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 20261 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 20262 | esac |
| 20263 | |
| 20264 | else $as_nop |
| 20265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20266 | /* end confdefs.h. */ |
| 20267 | |
| 20268 | #include <iconv.h> |
| 20269 | #include <string.h> |
| 20270 | int main () |
| 20271 | { |
| 20272 | int result = 0; |
| 20273 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 20274 | returns. */ |
| 20275 | { |
| 20276 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 20277 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 20278 | { |
| 20279 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 20280 | char buf[10]; |
| 20281 | const char *inptr = input; |
| 20282 | size_t inbytesleft = strlen (input); |
| 20283 | char *outptr = buf; |
| 20284 | size_t outbytesleft = sizeof (buf); |
| 20285 | size_t res = iconv (cd_utf8_to_88591, |
| 20286 | (char **) &inptr, &inbytesleft, |
| 20287 | &outptr, &outbytesleft); |
| 20288 | if (res == 0) |
| 20289 | result |= 1; |
| 20290 | iconv_close (cd_utf8_to_88591); |
| 20291 | } |
| 20292 | } |
| 20293 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 20294 | successful returns. */ |
| 20295 | { |
| 20296 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 20297 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 20298 | { |
| 20299 | static const char input[] = "\263"; |
| 20300 | char buf[10]; |
| 20301 | const char *inptr = input; |
| 20302 | size_t inbytesleft = strlen (input); |
| 20303 | char *outptr = buf; |
| 20304 | size_t outbytesleft = sizeof (buf); |
| 20305 | size_t res = iconv (cd_ascii_to_88591, |
| 20306 | (char **) &inptr, &inbytesleft, |
| 20307 | &outptr, &outbytesleft); |
| 20308 | if (res == 0) |
| 20309 | result |= 2; |
| 20310 | iconv_close (cd_ascii_to_88591); |
| 20311 | } |
| 20312 | } |
| 20313 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 20314 | { |
| 20315 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 20316 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 20317 | { |
| 20318 | static const char input[] = "\304"; |
| 20319 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 20320 | const char *inptr = input; |
| 20321 | size_t inbytesleft = 1; |
| 20322 | char *outptr = buf; |
| 20323 | size_t outbytesleft = 1; |
| 20324 | size_t res = iconv (cd_88591_to_utf8, |
| 20325 | (char **) &inptr, &inbytesleft, |
| 20326 | &outptr, &outbytesleft); |
| 20327 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 20328 | result |= 4; |
| 20329 | iconv_close (cd_88591_to_utf8); |
| 20330 | } |
| 20331 | } |
| 20332 | #if 0 /* This bug could be worked around by the caller. */ |
| 20333 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 20334 | { |
| 20335 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 20336 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 20337 | { |
| 20338 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 20339 | char buf[50]; |
| 20340 | const char *inptr = input; |
| 20341 | size_t inbytesleft = strlen (input); |
| 20342 | char *outptr = buf; |
| 20343 | size_t outbytesleft = sizeof (buf); |
| 20344 | size_t res = iconv (cd_88591_to_utf8, |
| 20345 | (char **) &inptr, &inbytesleft, |
| 20346 | &outptr, &outbytesleft); |
| 20347 | if ((int)res > 0) |
| 20348 | result |= 8; |
| 20349 | iconv_close (cd_88591_to_utf8); |
| 20350 | } |
| 20351 | } |
| 20352 | #endif |
| 20353 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 20354 | provided. */ |
| 20355 | if (/* Try standardized names. */ |
| 20356 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 20357 | /* Try IRIX, OSF/1 names. */ |
| 20358 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 20359 | /* Try AIX names. */ |
| 20360 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 20361 | /* Try HP-UX names. */ |
| 20362 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 20363 | result |= 16; |
| 20364 | return result; |
| 20365 | } |
| 20366 | _ACEOF |
| 20367 | if ac_fn_c_try_run "$LINENO" |
| 20368 | then : |
| 20369 | am_cv_func_iconv_works=yes |
| 20370 | else $as_nop |
| 20371 | am_cv_func_iconv_works=no |
| 20372 | fi |
| 20373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20374 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20375 | fi |
| 20376 | |
| 20377 | LIBS="$am_save_LIBS" |
| 20378 | |
| 20379 | fi |
| 20380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 20381 | printf "%s\n" "$am_cv_func_iconv_works" >&6; } |
| 20382 | case "$am_cv_func_iconv_works" in |
| 20383 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 20384 | *) am_func_iconv=yes ;; |
| 20385 | esac |
| 20386 | else |
| 20387 | am_func_iconv=no am_cv_lib_iconv=no |
| 20388 | fi |
| 20389 | if test "$am_func_iconv" = yes; then |
| 20390 | |
| 20391 | printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
| 20392 | |
| 20393 | fi |
| 20394 | if test "$am_cv_lib_iconv" = yes; then |
| 20395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
| 20396 | printf %s "checking how to link with libiconv... " >&6; } |
| 20397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
| 20398 | printf "%s\n" "$LIBICONV" >&6; } |
| 20399 | else |
| 20400 | CPPFLAGS="$am_save_CPPFLAGS" |
| 20401 | LIBICONV= |
| 20402 | LTLIBICONV= |
| 20403 | fi |
| 20404 | |
| 20405 | |
| 20406 | |
| 20407 | |
| 20408 | |
| 20409 | |
| 20410 | |
| 20411 | |
| 20412 | |
| 20413 | |
| 20414 | |
| 20415 | use_additional=yes |
| 20416 | |
| 20417 | acl_save_prefix="$prefix" |
| 20418 | prefix="$acl_final_prefix" |
| 20419 | acl_save_exec_prefix="$exec_prefix" |
| 20420 | exec_prefix="$acl_final_exec_prefix" |
| 20421 | |
| 20422 | eval additional_includedir=\"$includedir\" |
| 20423 | eval additional_libdir=\"$libdir\" |
| 20424 | |
| 20425 | exec_prefix="$acl_save_exec_prefix" |
| 20426 | prefix="$acl_save_prefix" |
| 20427 | |
| 20428 | |
| 20429 | # Check whether --with-libintl-prefix was given. |
| 20430 | if test ${with_libintl_prefix+y} |
| 20431 | then : |
| 20432 | withval=$with_libintl_prefix; |
| 20433 | if test "X$withval" = "Xno"; then |
| 20434 | use_additional=no |
| 20435 | else |
| 20436 | if test "X$withval" = "X"; then |
| 20437 | |
| 20438 | acl_save_prefix="$prefix" |
| 20439 | prefix="$acl_final_prefix" |
| 20440 | acl_save_exec_prefix="$exec_prefix" |
| 20441 | exec_prefix="$acl_final_exec_prefix" |
| 20442 | |
| 20443 | eval additional_includedir=\"$includedir\" |
| 20444 | eval additional_libdir=\"$libdir\" |
| 20445 | |
| 20446 | exec_prefix="$acl_save_exec_prefix" |
| 20447 | prefix="$acl_save_prefix" |
| 20448 | |
| 20449 | else |
| 20450 | additional_includedir="$withval/include" |
| 20451 | additional_libdir="$withval/$acl_libdirstem" |
| 20452 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 20453 | && ! test -d "$withval/$acl_libdirstem"; then |
| 20454 | additional_libdir="$withval/$acl_libdirstem2" |
| 20455 | fi |
| 20456 | fi |
| 20457 | fi |
| 20458 | |
| 20459 | fi |
| 20460 | |
| 20461 | LIBINTL= |
| 20462 | LTLIBINTL= |
| 20463 | INCINTL= |
| 20464 | LIBINTL_PREFIX= |
| 20465 | HAVE_LIBINTL= |
| 20466 | rpathdirs= |
| 20467 | ltrpathdirs= |
| 20468 | names_already_handled= |
| 20469 | names_next_round='intl ' |
| 20470 | while test -n "$names_next_round"; do |
| 20471 | names_this_round="$names_next_round" |
| 20472 | names_next_round= |
| 20473 | for name in $names_this_round; do |
| 20474 | already_handled= |
| 20475 | for n in $names_already_handled; do |
| 20476 | if test "$n" = "$name"; then |
| 20477 | already_handled=yes |
| 20478 | break |
| 20479 | fi |
| 20480 | done |
| 20481 | if test -z "$already_handled"; then |
| 20482 | names_already_handled="$names_already_handled $name" |
| 20483 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 20484 | eval value=\"\$HAVE_LIB$uppername\" |
| 20485 | if test -n "$value"; then |
| 20486 | if test "$value" = yes; then |
| 20487 | eval value=\"\$LIB$uppername\" |
| 20488 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 20489 | eval value=\"\$LTLIB$uppername\" |
| 20490 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 20491 | else |
| 20492 | : |
| 20493 | fi |
| 20494 | else |
| 20495 | found_dir= |
| 20496 | found_la= |
| 20497 | found_so= |
| 20498 | found_a= |
| 20499 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 20500 | if test -n "$acl_shlibext"; then |
| 20501 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 20502 | else |
| 20503 | shrext= |
| 20504 | fi |
| 20505 | if test $use_additional = yes; then |
| 20506 | dir="$additional_libdir" |
| 20507 | if test -n "$acl_shlibext"; then |
| 20508 | if test -f "$dir/$libname$shrext"; then |
| 20509 | found_dir="$dir" |
| 20510 | found_so="$dir/$libname$shrext" |
| 20511 | else |
| 20512 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 20513 | ver=`(cd "$dir" && \ |
| 20514 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 20515 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 20516 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 20517 | | sed 1q ) 2>/dev/null` |
| 20518 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 20519 | found_dir="$dir" |
| 20520 | found_so="$dir/$libname$shrext.$ver" |
| 20521 | fi |
| 20522 | else |
| 20523 | eval library_names=\"$acl_library_names_spec\" |
| 20524 | for f in $library_names; do |
| 20525 | if test -f "$dir/$f"; then |
| 20526 | found_dir="$dir" |
| 20527 | found_so="$dir/$f" |
| 20528 | break |
| 20529 | fi |
| 20530 | done |
| 20531 | fi |
| 20532 | fi |
| 20533 | fi |
| 20534 | if test "X$found_dir" = "X"; then |
| 20535 | if test -f "$dir/$libname.$acl_libext"; then |
| 20536 | found_dir="$dir" |
| 20537 | found_a="$dir/$libname.$acl_libext" |
| 20538 | fi |
| 20539 | fi |
| 20540 | if test "X$found_dir" != "X"; then |
| 20541 | if test -f "$dir/$libname.la"; then |
| 20542 | found_la="$dir/$libname.la" |
| 20543 | fi |
| 20544 | fi |
| 20545 | fi |
| 20546 | if test "X$found_dir" = "X"; then |
| 20547 | for x in $LDFLAGS $LTLIBINTL; do |
| 20548 | |
| 20549 | acl_save_prefix="$prefix" |
| 20550 | prefix="$acl_final_prefix" |
| 20551 | acl_save_exec_prefix="$exec_prefix" |
| 20552 | exec_prefix="$acl_final_exec_prefix" |
| 20553 | eval x=\"$x\" |
| 20554 | exec_prefix="$acl_save_exec_prefix" |
| 20555 | prefix="$acl_save_prefix" |
| 20556 | |
| 20557 | case "$x" in |
| 20558 | -L*) |
| 20559 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 20560 | if test -n "$acl_shlibext"; then |
| 20561 | if test -f "$dir/$libname$shrext"; then |
| 20562 | found_dir="$dir" |
| 20563 | found_so="$dir/$libname$shrext" |
| 20564 | else |
| 20565 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 20566 | ver=`(cd "$dir" && \ |
| 20567 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 20568 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 20569 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 20570 | | sed 1q ) 2>/dev/null` |
| 20571 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 20572 | found_dir="$dir" |
| 20573 | found_so="$dir/$libname$shrext.$ver" |
| 20574 | fi |
| 20575 | else |
| 20576 | eval library_names=\"$acl_library_names_spec\" |
| 20577 | for f in $library_names; do |
| 20578 | if test -f "$dir/$f"; then |
| 20579 | found_dir="$dir" |
| 20580 | found_so="$dir/$f" |
| 20581 | break |
| 20582 | fi |
| 20583 | done |
| 20584 | fi |
| 20585 | fi |
| 20586 | fi |
| 20587 | if test "X$found_dir" = "X"; then |
| 20588 | if test -f "$dir/$libname.$acl_libext"; then |
| 20589 | found_dir="$dir" |
| 20590 | found_a="$dir/$libname.$acl_libext" |
| 20591 | fi |
| 20592 | fi |
| 20593 | if test "X$found_dir" != "X"; then |
| 20594 | if test -f "$dir/$libname.la"; then |
| 20595 | found_la="$dir/$libname.la" |
| 20596 | fi |
| 20597 | fi |
| 20598 | ;; |
| 20599 | esac |
| 20600 | if test "X$found_dir" != "X"; then |
| 20601 | break |
| 20602 | fi |
| 20603 | done |
| 20604 | fi |
| 20605 | if test "X$found_dir" != "X"; then |
| 20606 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 20607 | if test "X$found_so" != "X"; then |
| 20608 | if test "$enable_rpath" = no \ |
| 20609 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 20610 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 20611 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 20612 | else |
| 20613 | haveit= |
| 20614 | for x in $ltrpathdirs; do |
| 20615 | if test "X$x" = "X$found_dir"; then |
| 20616 | haveit=yes |
| 20617 | break |
| 20618 | fi |
| 20619 | done |
| 20620 | if test -z "$haveit"; then |
| 20621 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 20622 | fi |
| 20623 | if test "$acl_hardcode_direct" = yes; then |
| 20624 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 20625 | else |
| 20626 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 20627 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 20628 | haveit= |
| 20629 | for x in $rpathdirs; do |
| 20630 | if test "X$x" = "X$found_dir"; then |
| 20631 | haveit=yes |
| 20632 | break |
| 20633 | fi |
| 20634 | done |
| 20635 | if test -z "$haveit"; then |
| 20636 | rpathdirs="$rpathdirs $found_dir" |
| 20637 | fi |
| 20638 | else |
| 20639 | haveit= |
| 20640 | for x in $LDFLAGS $LIBINTL; do |
| 20641 | |
| 20642 | acl_save_prefix="$prefix" |
| 20643 | prefix="$acl_final_prefix" |
| 20644 | acl_save_exec_prefix="$exec_prefix" |
| 20645 | exec_prefix="$acl_final_exec_prefix" |
| 20646 | eval x=\"$x\" |
| 20647 | exec_prefix="$acl_save_exec_prefix" |
| 20648 | prefix="$acl_save_prefix" |
| 20649 | |
| 20650 | if test "X$x" = "X-L$found_dir"; then |
| 20651 | haveit=yes |
| 20652 | break |
| 20653 | fi |
| 20654 | done |
| 20655 | if test -z "$haveit"; then |
| 20656 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 20657 | fi |
| 20658 | if test "$acl_hardcode_minus_L" != no; then |
| 20659 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 20660 | else |
| 20661 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 20662 | fi |
| 20663 | fi |
| 20664 | fi |
| 20665 | fi |
| 20666 | else |
| 20667 | if test "X$found_a" != "X"; then |
| 20668 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 20669 | else |
| 20670 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 20671 | fi |
| 20672 | fi |
| 20673 | additional_includedir= |
| 20674 | case "$found_dir" in |
| 20675 | */$acl_libdirstem | */$acl_libdirstem/) |
| 20676 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 20677 | if test "$name" = 'intl'; then |
| 20678 | LIBINTL_PREFIX="$basedir" |
| 20679 | fi |
| 20680 | additional_includedir="$basedir/include" |
| 20681 | ;; |
| 20682 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 20683 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 20684 | if test "$name" = 'intl'; then |
| 20685 | LIBINTL_PREFIX="$basedir" |
| 20686 | fi |
| 20687 | additional_includedir="$basedir/include" |
| 20688 | ;; |
| 20689 | esac |
| 20690 | if test "X$additional_includedir" != "X"; then |
| 20691 | if test "X$additional_includedir" != "X/usr/include"; then |
| 20692 | haveit= |
| 20693 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 20694 | if test -n "$GCC"; then |
| 20695 | case $host_os in |
| 20696 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 20697 | esac |
| 20698 | fi |
| 20699 | fi |
| 20700 | if test -z "$haveit"; then |
| 20701 | for x in $CPPFLAGS $INCINTL; do |
| 20702 | |
| 20703 | acl_save_prefix="$prefix" |
| 20704 | prefix="$acl_final_prefix" |
| 20705 | acl_save_exec_prefix="$exec_prefix" |
| 20706 | exec_prefix="$acl_final_exec_prefix" |
| 20707 | eval x=\"$x\" |
| 20708 | exec_prefix="$acl_save_exec_prefix" |
| 20709 | prefix="$acl_save_prefix" |
| 20710 | |
| 20711 | if test "X$x" = "X-I$additional_includedir"; then |
| 20712 | haveit=yes |
| 20713 | break |
| 20714 | fi |
| 20715 | done |
| 20716 | if test -z "$haveit"; then |
| 20717 | if test -d "$additional_includedir"; then |
| 20718 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 20719 | fi |
| 20720 | fi |
| 20721 | fi |
| 20722 | fi |
| 20723 | fi |
| 20724 | if test -n "$found_la"; then |
| 20725 | save_libdir="$libdir" |
| 20726 | case "$found_la" in |
| 20727 | */* | *\\*) . "$found_la" ;; |
| 20728 | *) . "./$found_la" ;; |
| 20729 | esac |
| 20730 | libdir="$save_libdir" |
| 20731 | for dep in $dependency_libs; do |
| 20732 | case "$dep" in |
| 20733 | -L*) |
| 20734 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 20735 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 20736 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 20737 | haveit= |
| 20738 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 20739 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 20740 | if test -n "$GCC"; then |
| 20741 | case $host_os in |
| 20742 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 20743 | esac |
| 20744 | fi |
| 20745 | fi |
| 20746 | if test -z "$haveit"; then |
| 20747 | haveit= |
| 20748 | for x in $LDFLAGS $LIBINTL; do |
| 20749 | |
| 20750 | acl_save_prefix="$prefix" |
| 20751 | prefix="$acl_final_prefix" |
| 20752 | acl_save_exec_prefix="$exec_prefix" |
| 20753 | exec_prefix="$acl_final_exec_prefix" |
| 20754 | eval x=\"$x\" |
| 20755 | exec_prefix="$acl_save_exec_prefix" |
| 20756 | prefix="$acl_save_prefix" |
| 20757 | |
| 20758 | if test "X$x" = "X-L$additional_libdir"; then |
| 20759 | haveit=yes |
| 20760 | break |
| 20761 | fi |
| 20762 | done |
| 20763 | if test -z "$haveit"; then |
| 20764 | if test -d "$additional_libdir"; then |
| 20765 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 20766 | fi |
| 20767 | fi |
| 20768 | haveit= |
| 20769 | for x in $LDFLAGS $LTLIBINTL; do |
| 20770 | |
| 20771 | acl_save_prefix="$prefix" |
| 20772 | prefix="$acl_final_prefix" |
| 20773 | acl_save_exec_prefix="$exec_prefix" |
| 20774 | exec_prefix="$acl_final_exec_prefix" |
| 20775 | eval x=\"$x\" |
| 20776 | exec_prefix="$acl_save_exec_prefix" |
| 20777 | prefix="$acl_save_prefix" |
| 20778 | |
| 20779 | if test "X$x" = "X-L$additional_libdir"; then |
| 20780 | haveit=yes |
| 20781 | break |
| 20782 | fi |
| 20783 | done |
| 20784 | if test -z "$haveit"; then |
| 20785 | if test -d "$additional_libdir"; then |
| 20786 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 20787 | fi |
| 20788 | fi |
| 20789 | fi |
| 20790 | fi |
| 20791 | ;; |
| 20792 | -R*) |
| 20793 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 20794 | if test "$enable_rpath" != no; then |
| 20795 | haveit= |
| 20796 | for x in $rpathdirs; do |
| 20797 | if test "X$x" = "X$dir"; then |
| 20798 | haveit=yes |
| 20799 | break |
| 20800 | fi |
| 20801 | done |
| 20802 | if test -z "$haveit"; then |
| 20803 | rpathdirs="$rpathdirs $dir" |
| 20804 | fi |
| 20805 | haveit= |
| 20806 | for x in $ltrpathdirs; do |
| 20807 | if test "X$x" = "X$dir"; then |
| 20808 | haveit=yes |
| 20809 | break |
| 20810 | fi |
| 20811 | done |
| 20812 | if test -z "$haveit"; then |
| 20813 | ltrpathdirs="$ltrpathdirs $dir" |
| 20814 | fi |
| 20815 | fi |
| 20816 | ;; |
| 20817 | -l*) |
| 20818 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 20819 | ;; |
| 20820 | *.la) |
| 20821 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 20822 | ;; |
| 20823 | *) |
| 20824 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 20825 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 20826 | ;; |
| 20827 | esac |
| 20828 | done |
| 20829 | fi |
| 20830 | else |
| 20831 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 20832 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 20833 | fi |
| 20834 | fi |
| 20835 | fi |
| 20836 | done |
| 20837 | done |
| 20838 | if test "X$rpathdirs" != "X"; then |
| 20839 | if test -n "$acl_hardcode_libdir_separator"; then |
| 20840 | alldirs= |
| 20841 | for found_dir in $rpathdirs; do |
| 20842 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 20843 | done |
| 20844 | acl_save_libdir="$libdir" |
| 20845 | libdir="$alldirs" |
| 20846 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 20847 | libdir="$acl_save_libdir" |
| 20848 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 20849 | else |
| 20850 | for found_dir in $rpathdirs; do |
| 20851 | acl_save_libdir="$libdir" |
| 20852 | libdir="$found_dir" |
| 20853 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 20854 | libdir="$acl_save_libdir" |
| 20855 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 20856 | done |
| 20857 | fi |
| 20858 | fi |
| 20859 | if test "X$ltrpathdirs" != "X"; then |
| 20860 | for found_dir in $ltrpathdirs; do |
| 20861 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 20862 | done |
| 20863 | fi |
| 20864 | |
| 20865 | |
| 20866 | |
| 20867 | |
| 20868 | |
| 20869 | |
| 20870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
| 20871 | printf %s "checking for GNU gettext in libintl... " >&6; } |
| 20872 | if eval test \${$gt_func_gnugettext_libintl+y} |
| 20873 | then : |
| 20874 | printf %s "(cached) " >&6 |
| 20875 | else $as_nop |
| 20876 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 20877 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 20878 | gt_save_LIBS="$LIBS" |
| 20879 | LIBS="$LIBS $LIBINTL" |
| 20880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20881 | /* end confdefs.h. */ |
| 20882 | |
| 20883 | #include <libintl.h> |
| 20884 | $gt_revision_test_code |
| 20885 | extern int _nl_msg_cat_cntr; |
| 20886 | extern |
| 20887 | #ifdef __cplusplus |
| 20888 | "C" |
| 20889 | #endif |
| 20890 | const char *_nl_expand_alias (const char *); |
| 20891 | |
| 20892 | int |
| 20893 | main (void) |
| 20894 | { |
| 20895 | |
| 20896 | bindtextdomain ("", ""); |
| 20897 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 20898 | |
| 20899 | ; |
| 20900 | return 0; |
| 20901 | } |
| 20902 | _ACEOF |
| 20903 | if ac_fn_c_try_link "$LINENO" |
| 20904 | then : |
| 20905 | eval "$gt_func_gnugettext_libintl=yes" |
| 20906 | else $as_nop |
| 20907 | eval "$gt_func_gnugettext_libintl=no" |
| 20908 | fi |
| 20909 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20910 | conftest$ac_exeext conftest.$ac_ext |
| 20911 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
| 20912 | LIBS="$LIBS $LIBICONV" |
| 20913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20914 | /* end confdefs.h. */ |
| 20915 | |
| 20916 | #include <libintl.h> |
| 20917 | $gt_revision_test_code |
| 20918 | extern int _nl_msg_cat_cntr; |
| 20919 | extern |
| 20920 | #ifdef __cplusplus |
| 20921 | "C" |
| 20922 | #endif |
| 20923 | const char *_nl_expand_alias (const char *); |
| 20924 | |
| 20925 | int |
| 20926 | main (void) |
| 20927 | { |
| 20928 | |
| 20929 | bindtextdomain ("", ""); |
| 20930 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 20931 | |
| 20932 | ; |
| 20933 | return 0; |
| 20934 | } |
| 20935 | _ACEOF |
| 20936 | if ac_fn_c_try_link "$LINENO" |
| 20937 | then : |
| 20938 | LIBINTL="$LIBINTL $LIBICONV" |
| 20939 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 20940 | eval "$gt_func_gnugettext_libintl=yes" |
| 20941 | |
| 20942 | fi |
| 20943 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20944 | conftest$ac_exeext conftest.$ac_ext |
| 20945 | fi |
| 20946 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 20947 | LIBS="$gt_save_LIBS" |
| 20948 | fi |
| 20949 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 20950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20951 | printf "%s\n" "$ac_res" >&6; } |
| 20952 | fi |
| 20953 | |
| 20954 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 20955 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
| 20956 | && test "$PACKAGE" != gettext-runtime \ |
| 20957 | && test "$PACKAGE" != gettext-tools; }; then |
| 20958 | gt_use_preinstalled_gnugettext=yes |
| 20959 | else |
| 20960 | LIBINTL= |
| 20961 | LTLIBINTL= |
| 20962 | INCINTL= |
| 20963 | fi |
| 20964 | |
| 20965 | |
| 20966 | |
| 20967 | if test -n "$INTL_MACOSX_LIBS"; then |
| 20968 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 20969 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 20970 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 20971 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 20972 | fi |
| 20973 | fi |
| 20974 | |
| 20975 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 20976 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 20977 | |
| 20978 | printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
| 20979 | |
| 20980 | else |
| 20981 | USE_NLS=no |
| 20982 | fi |
| 20983 | fi |
| 20984 | |
| 20985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
| 20986 | printf %s "checking whether to use NLS... " >&6; } |
| 20987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 20988 | printf "%s\n" "$USE_NLS" >&6; } |
| 20989 | if test "$USE_NLS" = "yes"; then |
| 20990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
| 20991 | printf %s "checking where the gettext function comes from... " >&6; } |
| 20992 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 20993 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 20994 | gt_source="external libintl" |
| 20995 | else |
| 20996 | gt_source="libc" |
| 20997 | fi |
| 20998 | else |
| 20999 | gt_source="included intl directory" |
| 21000 | fi |
| 21001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
| 21002 | printf "%s\n" "$gt_source" >&6; } |
| 21003 | fi |
| 21004 | |
| 21005 | if test "$USE_NLS" = "yes"; then |
| 21006 | |
| 21007 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 21008 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 21009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
| 21010 | printf %s "checking how to link with libintl... " >&6; } |
| 21011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
| 21012 | printf "%s\n" "$LIBINTL" >&6; } |
| 21013 | |
| 21014 | for element in $INCINTL; do |
| 21015 | haveit= |
| 21016 | for x in $CPPFLAGS; do |
| 21017 | |
| 21018 | acl_save_prefix="$prefix" |
| 21019 | prefix="$acl_final_prefix" |
| 21020 | acl_save_exec_prefix="$exec_prefix" |
| 21021 | exec_prefix="$acl_final_exec_prefix" |
| 21022 | eval x=\"$x\" |
| 21023 | exec_prefix="$acl_save_exec_prefix" |
| 21024 | prefix="$acl_save_prefix" |
| 21025 | |
| 21026 | if test "X$x" = "X$element"; then |
| 21027 | haveit=yes |
| 21028 | break |
| 21029 | fi |
| 21030 | done |
| 21031 | if test -z "$haveit"; then |
| 21032 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 21033 | fi |
| 21034 | done |
| 21035 | |
| 21036 | fi |
| 21037 | |
| 21038 | |
| 21039 | printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
| 21040 | |
| 21041 | |
| 21042 | printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
| 21043 | |
| 21044 | fi |
| 21045 | |
| 21046 | POSUB=po |
| 21047 | fi |
| 21048 | |
| 21049 | |
| 21050 | |
| 21051 | INTLLIBS="$LIBINTL" |
| 21052 | |
| 21053 | |
| 21054 | |
| 21055 | |
| 21056 | |
| 21057 | |
| 21058 | |
| 21059 | |
| 21060 | |
| 21061 | |
| 21062 | |
| 21063 | LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation |
| 21064 | " |
| 21065 | |
| 21066 | LIBS_NOT_FOUND_2=". Please choose another thread implementation or |
| 21067 | provide information on your thread implementation. |
| 21068 | You can also run 'configure --disable-threads' |
| 21069 | to compile without thread support." |
| 21070 | |
| 21071 | AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when |
| 21072 | linking threaded applications. As Libvisual cannot do that |
| 21073 | automatically, you will get an linkg error everytime you are |
| 21074 | not using the right compiler. In that case you have to relink |
| 21075 | with the right compiler. Ususally just '_r' is appended |
| 21076 | to the compiler name." |
| 21077 | |
| 21078 | # Check whether --enable-threads was given. |
| 21079 | if test ${enable_threads+y} |
| 21080 | then : |
| 21081 | enableval=$enable_threads; enable_threads=$enableval |
| 21082 | else $as_nop |
| 21083 | enable_threads=yes |
| 21084 | fi |
| 21085 | |
| 21086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable thread support" >&5 |
| 21087 | printf %s "checking whether to enable thread support... " >&6; } |
| 21088 | if test x$enable_threads = xyes; then |
| 21089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21090 | printf "%s\n" "yes" >&6; } |
| 21091 | have_threads=none |
| 21092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread implementation available" >&5 |
| 21093 | printf %s "checking for thread implementation available... " >&6; } |
| 21094 | case $host in |
| 21095 | *-*-mingw*) |
| 21096 | have_threads=win32 |
| 21097 | ;; |
| 21098 | *) |
| 21099 | ;; |
| 21100 | esac |
| 21101 | if test "x$have_threads" = xnone; then |
| 21102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21103 | /* end confdefs.h. */ |
| 21104 | #include <pthread.h> |
| 21105 | int |
| 21106 | main (void) |
| 21107 | { |
| 21108 | pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; |
| 21109 | ; |
| 21110 | return 0; |
| 21111 | } |
| 21112 | _ACEOF |
| 21113 | if ac_fn_c_try_compile "$LINENO" |
| 21114 | then : |
| 21115 | have_threads=posix |
| 21116 | fi |
| 21117 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21118 | fi |
| 21119 | if test "x$have_threads" = xnone; then |
| 21120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21121 | /* end confdefs.h. */ |
| 21122 | #include <pthread.h> |
| 21123 | int |
| 21124 | main (void) |
| 21125 | { |
| 21126 | pthread_mutex_t m; |
| 21127 | pthread_mutex_init (&m, pthread_mutexattr_default); |
| 21128 | ; |
| 21129 | return 0; |
| 21130 | } |
| 21131 | _ACEOF |
| 21132 | if ac_fn_c_try_compile "$LINENO" |
| 21133 | then : |
| 21134 | have_threads=dce |
| 21135 | fi |
| 21136 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21137 | fi |
| 21138 | if test "x$have_threads" = xnone; then |
| 21139 | |
| 21140 | pkg_failed=no |
| 21141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 >= 2.2.0" >&5 |
| 21142 | printf %s "checking for gthread-2.0 >= 2.2.0... " >&6; } |
| 21143 | |
| 21144 | if test -n "$GTHREAD2_CFLAGS"; then |
| 21145 | pkg_cv_GTHREAD2_CFLAGS="$GTHREAD2_CFLAGS" |
| 21146 | elif test -n "$PKG_CONFIG"; then |
| 21147 | if test -n "$PKG_CONFIG" && \ |
| 21148 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\""; } >&5 |
| 21149 | ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5 |
| 21150 | ac_status=$? |
| 21151 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21152 | test $ac_status = 0; }; then |
| 21153 | pkg_cv_GTHREAD2_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.2.0" 2>/dev/null` |
| 21154 | test "x$?" != "x0" && pkg_failed=yes |
| 21155 | else |
| 21156 | pkg_failed=yes |
| 21157 | fi |
| 21158 | else |
| 21159 | pkg_failed=untried |
| 21160 | fi |
| 21161 | if test -n "$GTHREAD2_LIBS"; then |
| 21162 | pkg_cv_GTHREAD2_LIBS="$GTHREAD2_LIBS" |
| 21163 | elif test -n "$PKG_CONFIG"; then |
| 21164 | if test -n "$PKG_CONFIG" && \ |
| 21165 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\""; } >&5 |
| 21166 | ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5 |
| 21167 | ac_status=$? |
| 21168 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21169 | test $ac_status = 0; }; then |
| 21170 | pkg_cv_GTHREAD2_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.2.0" 2>/dev/null` |
| 21171 | test "x$?" != "x0" && pkg_failed=yes |
| 21172 | else |
| 21173 | pkg_failed=yes |
| 21174 | fi |
| 21175 | else |
| 21176 | pkg_failed=untried |
| 21177 | fi |
| 21178 | |
| 21179 | |
| 21180 | |
| 21181 | if test $pkg_failed = yes; then |
| 21182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21183 | printf "%s\n" "no" >&6; } |
| 21184 | |
| 21185 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 21186 | _pkg_short_errors_supported=yes |
| 21187 | else |
| 21188 | _pkg_short_errors_supported=no |
| 21189 | fi |
| 21190 | if test $_pkg_short_errors_supported = yes; then |
| 21191 | GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.2.0" 2>&1` |
| 21192 | else |
| 21193 | GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.2.0" 2>&1` |
| 21194 | fi |
| 21195 | # Put the nasty error message in config.log where it belongs |
| 21196 | echo "$GTHREAD2_PKG_ERRORS" >&5 |
| 21197 | |
| 21198 | have_gthread2="no" |
| 21199 | elif test $pkg_failed = untried; then |
| 21200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21201 | printf "%s\n" "no" >&6; } |
| 21202 | have_gthread2="no" |
| 21203 | else |
| 21204 | GTHREAD2_CFLAGS=$pkg_cv_GTHREAD2_CFLAGS |
| 21205 | GTHREAD2_LIBS=$pkg_cv_GTHREAD2_LIBS |
| 21206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21207 | printf "%s\n" "yes" >&6; } |
| 21208 | have_gthread2="yes" |
| 21209 | fi |
| 21210 | if test x"$have_gthread2" = xyes; then |
| 21211 | have_threads=gthread2 |
| 21212 | |
| 21213 | |
| 21214 | |
| 21215 | printf "%s\n" "#define LV_HAVE_GTHREAD2 1" >>confdefs.h |
| 21216 | |
| 21217 | fi |
| 21218 | fi |
| 21219 | # In future we will check for more thread models... |
| 21220 | |
| 21221 | if test "x$have_threads" = xnone; then |
| 21222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none available" >&5 |
| 21223 | printf "%s\n" "none available" >&6; } |
| 21224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You do not have any supported thread system available. Libvisual will be built without thread support." >&5 |
| 21225 | printf "%s\n" "$as_me: WARNING: You do not have any supported thread system available. Libvisual will be built without thread support." >&2;} |
| 21226 | else |
| 21227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5 |
| 21228 | printf "%s\n" "$have_threads" >&6; } |
| 21229 | fi |
| 21230 | fi |
| 21231 | |
| 21232 | |
| 21233 | |
| 21234 | LV_THREAD_LIBS="" |
| 21235 | if test "x$enable_threads" = xyes && test "x$have_threads" != xnone; then |
| 21236 | case $have_threads in |
| 21237 | posix|dce) |
| 21238 | case $host in |
| 21239 | *-aix*) |
| 21240 | # We are not using gcc (would have set LV_THREAD_LIBS) and thus |
| 21241 | # probably using the aix compiler. |
| 21242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5 |
| 21243 | printf "%s\n" "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;} |
| 21244 | ;; |
| 21245 | *) |
| 21246 | LV_THREAD_LIBS=error |
| 21247 | lv_save_LIBS="$LIBS" |
| 21248 | for thread_lib in "" pthread pthread32 pthreads thread dce; do |
| 21249 | if test x"$thread_lib" = x; then |
| 21250 | add_thread_lib="" |
| 21251 | IN="" |
| 21252 | else |
| 21253 | add_thread_lib="-l$thread_lib" |
| 21254 | IN=" in -l$thread_lib" |
| 21255 | fi |
| 21256 | if test x"$have_threads" = xposix; then |
| 21257 | defattr=0 |
| 21258 | else |
| 21259 | defattr=pthread_attr_default |
| 21260 | fi |
| 21261 | |
| 21262 | LIBS="$add_thread_lib $lv_save_LIBS" |
| 21263 | |
| 21264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5 |
| 21265 | printf %s "checking for pthread_create/pthread_join$IN... " >&6; } |
| 21266 | if test "$cross_compiling" = yes |
| 21267 | then : |
| 21268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21269 | /* end confdefs.h. */ |
| 21270 | |
| 21271 | #include <stdlib.h> |
| 21272 | #include <pthread.h> |
| 21273 | int check_me = 0; |
| 21274 | void* func(void* data) {check_me = 42; return &check_me;} |
| 21275 | int main() |
| 21276 | { pthread_t t; |
| 21277 | void *ret; |
| 21278 | pthread_create (&t, $defattr, func, 0); |
| 21279 | pthread_join (t, &ret); |
| 21280 | exit (check_me != 42 || ret != &check_me); |
| 21281 | } |
| 21282 | _ACEOF |
| 21283 | if ac_fn_c_try_link "$LINENO" |
| 21284 | then : |
| 21285 | lv_result=yes |
| 21286 | else $as_nop |
| 21287 | lv_result=no |
| 21288 | fi |
| 21289 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21290 | conftest$ac_exeext conftest.$ac_ext |
| 21291 | else $as_nop |
| 21292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21293 | /* end confdefs.h. */ |
| 21294 | |
| 21295 | #include <stdlib.h> |
| 21296 | #include <pthread.h> |
| 21297 | int check_me = 0; |
| 21298 | void* func(void* data) {check_me = 42; return &check_me;} |
| 21299 | int main() |
| 21300 | { pthread_t t; |
| 21301 | void *ret; |
| 21302 | pthread_create (&t, $defattr, func, 0); |
| 21303 | pthread_join (t, &ret); |
| 21304 | exit (check_me != 42 || ret != &check_me); |
| 21305 | } |
| 21306 | _ACEOF |
| 21307 | if ac_fn_c_try_run "$LINENO" |
| 21308 | then : |
| 21309 | lv_result=yes |
| 21310 | else $as_nop |
| 21311 | lv_result=no |
| 21312 | fi |
| 21313 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21314 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21315 | fi |
| 21316 | |
| 21317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lv_result" >&5 |
| 21318 | printf "%s\n" "$lv_result" >&6; } |
| 21319 | |
| 21320 | if test "$lv_result" = "yes" ; then |
| 21321 | LV_THREAD_LIBS="$add_thread_lib" |
| 21322 | break |
| 21323 | fi |
| 21324 | done |
| 21325 | |
| 21326 | if test "x$LV_THREAD_LIBS" = xerror; then |
| 21327 | as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5 |
| 21328 | fi |
| 21329 | |
| 21330 | LIBS="$lv_save_LIBS" |
| 21331 | ;; |
| 21332 | esac |
| 21333 | ;; |
| 21334 | gthread2) |
| 21335 | LV_THREAD_LIBS="$GTHREAD2_LIBS" |
| 21336 | ;; |
| 21337 | *) |
| 21338 | ;; |
| 21339 | esac |
| 21340 | else |
| 21341 | # Thread support disabled |
| 21342 | : |
| 21343 | fi |
| 21344 | |
| 21345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5 |
| 21346 | printf %s "checking thread related libraries... " >&6; } |
| 21347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LV_THREAD_LIBS" >&5 |
| 21348 | printf "%s\n" "$LV_THREAD_LIBS" >&6; } |
| 21349 | |
| 21350 | |
| 21351 | |
| 21352 | LV_THREAD_CFLAGS="" |
| 21353 | if test "x$enable_threads" = xyes && test "x$have_threads" != xnone; then |
| 21354 | case $have_threads in |
| 21355 | gthread2) |
| 21356 | LV_THREAD_CFLAGS="$GTHREAD2_CFLAGS" |
| 21357 | ;; |
| 21358 | *) |
| 21359 | ;; |
| 21360 | esac |
| 21361 | fi |
| 21362 | |
| 21363 | |
| 21364 | # check for type sizes |
| 21365 | # The cast to long int works around a bug in the HP C Compiler |
| 21366 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21367 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21368 | # This bug is HP SR number 8606223364. |
| 21369 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 21370 | printf %s "checking size of short... " >&6; } |
| 21371 | if test ${ac_cv_sizeof_short+y} |
| 21372 | then : |
| 21373 | printf %s "(cached) " >&6 |
| 21374 | else $as_nop |
| 21375 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" |
| 21376 | then : |
| 21377 | |
| 21378 | else $as_nop |
| 21379 | if test "$ac_cv_type_short" = yes; then |
| 21380 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21381 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21382 | as_fn_error 77 "cannot compute sizeof (short) |
| 21383 | See \`config.log' for more details" "$LINENO" 5; } |
| 21384 | else |
| 21385 | ac_cv_sizeof_short=0 |
| 21386 | fi |
| 21387 | fi |
| 21388 | |
| 21389 | fi |
| 21390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 21391 | printf "%s\n" "$ac_cv_sizeof_short" >&6; } |
| 21392 | |
| 21393 | |
| 21394 | |
| 21395 | printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h |
| 21396 | |
| 21397 | |
| 21398 | # The cast to long int works around a bug in the HP C Compiler |
| 21399 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21400 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21401 | # This bug is HP SR number 8606223364. |
| 21402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 21403 | printf %s "checking size of int... " >&6; } |
| 21404 | if test ${ac_cv_sizeof_int+y} |
| 21405 | then : |
| 21406 | printf %s "(cached) " >&6 |
| 21407 | else $as_nop |
| 21408 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 21409 | then : |
| 21410 | |
| 21411 | else $as_nop |
| 21412 | if test "$ac_cv_type_int" = yes; then |
| 21413 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21414 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21415 | as_fn_error 77 "cannot compute sizeof (int) |
| 21416 | See \`config.log' for more details" "$LINENO" 5; } |
| 21417 | else |
| 21418 | ac_cv_sizeof_int=0 |
| 21419 | fi |
| 21420 | fi |
| 21421 | |
| 21422 | fi |
| 21423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 21424 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
| 21425 | |
| 21426 | |
| 21427 | |
| 21428 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 21429 | |
| 21430 | |
| 21431 | # The cast to long int works around a bug in the HP C Compiler |
| 21432 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21433 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21434 | # This bug is HP SR number 8606223364. |
| 21435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 21436 | printf %s "checking size of long... " >&6; } |
| 21437 | if test ${ac_cv_sizeof_long+y} |
| 21438 | then : |
| 21439 | printf %s "(cached) " >&6 |
| 21440 | else $as_nop |
| 21441 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 21442 | then : |
| 21443 | |
| 21444 | else $as_nop |
| 21445 | if test "$ac_cv_type_long" = yes; then |
| 21446 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21447 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21448 | as_fn_error 77 "cannot compute sizeof (long) |
| 21449 | See \`config.log' for more details" "$LINENO" 5; } |
| 21450 | else |
| 21451 | ac_cv_sizeof_long=0 |
| 21452 | fi |
| 21453 | fi |
| 21454 | |
| 21455 | fi |
| 21456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 21457 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
| 21458 | |
| 21459 | |
| 21460 | |
| 21461 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 21462 | |
| 21463 | |
| 21464 | # The cast to long int works around a bug in the HP C Compiler |
| 21465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21467 | # This bug is HP SR number 8606223364. |
| 21468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 21469 | printf %s "checking size of size_t... " >&6; } |
| 21470 | if test ${ac_cv_sizeof_size_t+y} |
| 21471 | then : |
| 21472 | printf %s "(cached) " >&6 |
| 21473 | else $as_nop |
| 21474 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" |
| 21475 | then : |
| 21476 | |
| 21477 | else $as_nop |
| 21478 | if test "$ac_cv_type_size_t" = yes; then |
| 21479 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21480 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21481 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 21482 | See \`config.log' for more details" "$LINENO" 5; } |
| 21483 | else |
| 21484 | ac_cv_sizeof_size_t=0 |
| 21485 | fi |
| 21486 | fi |
| 21487 | |
| 21488 | fi |
| 21489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 21490 | printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } |
| 21491 | |
| 21492 | |
| 21493 | |
| 21494 | printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h |
| 21495 | |
| 21496 | |
| 21497 | |
| 21498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5 |
| 21499 | printf %s "checking for the appropriate definition for size_t... " >&6; } |
| 21500 | |
| 21501 | case $ac_cv_sizeof_size_t in |
| 21502 | $ac_cv_sizeof_short) |
| 21503 | visual_size_type=short |
| 21504 | ;; |
| 21505 | $ac_cv_sizeof_int) |
| 21506 | visual_size_type=int |
| 21507 | ;; |
| 21508 | $ac_cv_sizeof_long) |
| 21509 | visual_size_type=long |
| 21510 | ;; |
| 21511 | *) as_fn_error $? "No type matching size_t in size" "$LINENO" 5 |
| 21512 | ;; |
| 21513 | esac |
| 21514 | |
| 21515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned $visual_size_type" >&5 |
| 21516 | printf "%s\n" "unsigned $visual_size_type" >&6; } |
| 21517 | |
| 21518 | build_subdirs="libvisual" |
| 21519 | |
| 21520 | VISUAL_PKG_CONFIG_DEP="" |
| 21521 | |
| 21522 | VISUAL_CFLAGS="" |
| 21523 | if test x"$LV_THREAD_CFLAGS" == xgthread2; then |
| 21524 | VISUAL_PKG_CONFIG_DEP="$VISUAL_PKG_CONFIG_DEP gthread-2.0" |
| 21525 | elif test x"$LV_THREAD_CFLAGS" != x; then |
| 21526 | VISUAL_CFLAGS=$LV_THREAD_CFLAGS |
| 21527 | fi |
| 21528 | |
| 21529 | |
| 21530 | VISUAL_LIBS="$LIBS -lvisual-${LIBVISUAL_VERSION_SUFFIX}" |
| 21531 | if test x"$LV_THREAD_LIBS" != x; then |
| 21532 | VISUAL_LIBS="$LV_THREAD_LIBS $VISUAL_LIBS" |
| 21533 | fi |
| 21534 | |
| 21535 | |
| 21536 | |
| 21537 | # Check whether --enable-lv-tool was given. |
| 21538 | if test ${enable_lv_tool+y} |
| 21539 | then : |
| 21540 | enableval=$enable_lv_tool; lv_tool_enabled=$enableval |
| 21541 | else $as_nop |
| 21542 | lv_tool_enabled=yes |
| 21543 | fi |
| 21544 | |
| 21545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking wheter to build tool programs" >&5 |
| 21546 | printf %s "checking wheter to build tool programs... " >&6; } |
| 21547 | if test x$lv_tool_enabled = xyes ; then |
| 21548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21549 | printf "%s\n" "yes" >&6; } |
| 21550 | else |
| 21551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21552 | printf "%s\n" "no" >&6; } |
| 21553 | fi |
| 21554 | |
| 21555 | # Check whether --enable-examples was given. |
| 21556 | if test ${enable_examples+y} |
| 21557 | then : |
| 21558 | enableval=$enable_examples; examples=$enableval |
| 21559 | else $as_nop |
| 21560 | examples=yes |
| 21561 | fi |
| 21562 | |
| 21563 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking wheter to build example programs" >&5 |
| 21564 | printf %s "checking wheter to build example programs... " >&6; } |
| 21565 | if test x$examples = xyes ; then |
| 21566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21567 | printf "%s\n" "yes" >&6; } |
| 21568 | else |
| 21569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21570 | printf "%s\n" "no" >&6; } |
| 21571 | fi |
| 21572 | |
| 21573 | if test x$lv_tool_enabled = xyes -o x$examples = xyes ; then |
| 21574 | # Find SDL 1.x.x |
| 21575 | # On success, this will set and substitute SDL_CFLAGS and SDL_LIBS |
| 21576 | |
| 21577 | pkg_failed=no |
| 21578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl >= 1.2.0" >&5 |
| 21579 | printf %s "checking for sdl >= 1.2.0... " >&6; } |
| 21580 | |
| 21581 | if test -n "$SDL_CFLAGS"; then |
| 21582 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" |
| 21583 | elif test -n "$PKG_CONFIG"; then |
| 21584 | if test -n "$PKG_CONFIG" && \ |
| 21585 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 |
| 21586 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 |
| 21587 | ac_status=$? |
| 21588 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21589 | test $ac_status = 0; }; then |
| 21590 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` |
| 21591 | test "x$?" != "x0" && pkg_failed=yes |
| 21592 | else |
| 21593 | pkg_failed=yes |
| 21594 | fi |
| 21595 | else |
| 21596 | pkg_failed=untried |
| 21597 | fi |
| 21598 | if test -n "$SDL_LIBS"; then |
| 21599 | pkg_cv_SDL_LIBS="$SDL_LIBS" |
| 21600 | elif test -n "$PKG_CONFIG"; then |
| 21601 | if test -n "$PKG_CONFIG" && \ |
| 21602 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 |
| 21603 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 |
| 21604 | ac_status=$? |
| 21605 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21606 | test $ac_status = 0; }; then |
| 21607 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` |
| 21608 | test "x$?" != "x0" && pkg_failed=yes |
| 21609 | else |
| 21610 | pkg_failed=yes |
| 21611 | fi |
| 21612 | else |
| 21613 | pkg_failed=untried |
| 21614 | fi |
| 21615 | |
| 21616 | |
| 21617 | |
| 21618 | if test $pkg_failed = yes; then |
| 21619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21620 | printf "%s\n" "no" >&6; } |
| 21621 | |
| 21622 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 21623 | _pkg_short_errors_supported=yes |
| 21624 | else |
| 21625 | _pkg_short_errors_supported=no |
| 21626 | fi |
| 21627 | if test $_pkg_short_errors_supported = yes; then |
| 21628 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl >= 1.2.0" 2>&1` |
| 21629 | else |
| 21630 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl >= 1.2.0" 2>&1` |
| 21631 | fi |
| 21632 | # Put the nasty error message in config.log where it belongs |
| 21633 | echo "$SDL_PKG_ERRORS" >&5 |
| 21634 | |
| 21635 | |
| 21636 | as_fn_error $? "*** SDL 1.2.x not installed - please install first" "$LINENO" 5 |
| 21637 | |
| 21638 | elif test $pkg_failed = untried; then |
| 21639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21640 | printf "%s\n" "no" >&6; } |
| 21641 | |
| 21642 | as_fn_error $? "*** SDL 1.2.x not installed - please install first" "$LINENO" 5 |
| 21643 | |
| 21644 | else |
| 21645 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS |
| 21646 | SDL_LIBS=$pkg_cv_SDL_LIBS |
| 21647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21648 | printf "%s\n" "yes" >&6; } |
| 21649 | |
| 21650 | fi |
| 21651 | if test x$examples = xyes ; then |
| 21652 | EXAMPLES='simplesdl morphsdl' |
| 21653 | |
| 21654 | fi |
| 21655 | if test x$lv_tool_enabled = xyes ; then |
| 21656 | TOOLS_LV_TOOL='lv-tool-0.4' |
| 21657 | |
| 21658 | fi |
| 21659 | fi |
| 21660 | |
| 21661 | DEBUG_CFLAGS="" |
| 21662 | # Check whether --enable-profiling was given. |
| 21663 | if test ${enable_profiling+y} |
| 21664 | then : |
| 21665 | enableval=$enable_profiling; profiling=$enableval |
| 21666 | else $as_nop |
| 21667 | profiling=no |
| 21668 | fi |
| 21669 | |
| 21670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5 |
| 21671 | printf %s "checking whether to enable profiling... " >&6; } |
| 21672 | if test x$profiling = xyes; then |
| 21673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21674 | printf "%s\n" "yes" >&6; } |
| 21675 | if test x"$GCC" = xyes; then |
| 21676 | DEBUG_CFLAGS="$DEBUG_CFLAGS -pg" |
| 21677 | else |
| 21678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Profiling only works when using a gcc compiler." >&5 |
| 21679 | printf "%s\n" "$as_me: WARNING: Profiling only works when using a gcc compiler." >&2;} |
| 21680 | fi |
| 21681 | else |
| 21682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21683 | printf "%s\n" "no" >&6; } |
| 21684 | fi |
| 21685 | |
| 21686 | # Check whether --enable-debug was given. |
| 21687 | if test ${enable_debug+y} |
| 21688 | then : |
| 21689 | enableval=$enable_debug; debug=$enableval |
| 21690 | else $as_nop |
| 21691 | debug=no |
| 21692 | fi |
| 21693 | |
| 21694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug" >&5 |
| 21695 | printf %s "checking whether to enable debug... " >&6; } |
| 21696 | if test x$debug = xyes; then |
| 21697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21698 | printf "%s\n" "yes" >&6; } |
| 21699 | if test x"$GCC" = xyes; then |
| 21700 | DEBUG_CFLAGS="$DEBUG_CFLAGS -ggdb3 -Wall" |
| 21701 | DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-braces -Wimplicit -Wunused -Wmissing-prototypes" |
| 21702 | # IMHO -Werror should be here also. --VVB |
| 21703 | lv_save_CFLAGS=$CFLAGS |
| 21704 | CFLAGS="$CFLAGS -Wno-unused-variable" |
| 21705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc version is greater than 2.95" >&5 |
| 21706 | printf %s "checking whether gcc version is greater than 2.95... " >&6; } |
| 21707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21708 | /* end confdefs.h. */ |
| 21709 | #include <stdlib.h> |
| 21710 | int |
| 21711 | main (void) |
| 21712 | { |
| 21713 | exit(0); |
| 21714 | ; |
| 21715 | return 0; |
| 21716 | } |
| 21717 | _ACEOF |
| 21718 | if ac_fn_c_try_compile "$LINENO" |
| 21719 | then : |
| 21720 | lv_gcc_gt_2_95=yes |
| 21721 | else $as_nop |
| 21722 | lv_gcc_gt_2_95=no |
| 21723 | fi |
| 21724 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21725 | CFLAGS=$lv_save_CFLAGS |
| 21726 | if test x$lv_gcc_gt_2_95 = xyes ; then |
| 21727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21728 | printf "%s\n" "yes" >&6; } |
| 21729 | DEBUG_CFLAGS="$DEBUG_CFLAGS -Wno-unused-variable" |
| 21730 | else |
| 21731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21732 | printf "%s\n" "no" >&6; } |
| 21733 | fi |
| 21734 | fi |
| 21735 | else |
| 21736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21737 | printf "%s\n" "no" >&6; } |
| 21738 | fi |
| 21739 | |
| 21740 | |
| 21741 | # Check whether --enable-extra-optimization was given. |
| 21742 | if test ${enable_extra_optimization+y} |
| 21743 | then : |
| 21744 | enableval=$enable_extra_optimization; extra_opt=$enableval |
| 21745 | else $as_nop |
| 21746 | extra_opt=no |
| 21747 | fi |
| 21748 | |
| 21749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable extra optimizations" >&5 |
| 21750 | printf %s "checking whether to enable extra optimizations... " >&6; } |
| 21751 | if test x$extra_opt = xyes; then |
| 21752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21753 | printf "%s\n" "yes" >&6; } |
| 21754 | if test x"$GCC" = xyes; then |
| 21755 | OPT_CFLAGS="-O3 -fexpensive-optimizations" |
| 21756 | else |
| 21757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Extra optimizations only works with a gcc compiler." >&5 |
| 21758 | printf "%s\n" "$as_me: WARNING: Extra optimizations only works with a gcc compiler." >&2;} |
| 21759 | fi |
| 21760 | else |
| 21761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21762 | printf "%s\n" "no" >&6; } |
| 21763 | if test x$debug = xyes && test x"$GCC" = xyes; then |
| 21764 | OPT_CFLAGS="-O0" |
| 21765 | else |
| 21766 | OPT_CFLAGS="" |
| 21767 | fi |
| 21768 | fi |
| 21769 | |
| 21770 | # Check whether --enable-fast-fp-rng was given. |
| 21771 | if test ${enable_fast_fp_rng+y} |
| 21772 | then : |
| 21773 | enableval=$enable_fast_fp_rng; fastfprng=$enableval |
| 21774 | else $as_nop |
| 21775 | fastfprng=maybe |
| 21776 | fi |
| 21777 | |
| 21778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fast FP RNG" >&5 |
| 21779 | printf %s "checking whether to enable fast FP RNG... " >&6; } |
| 21780 | |
| 21781 | if test x$fastfprng = xyes; then |
| 21782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21783 | printf "%s\n" "yes" >&6; } |
| 21784 | elif test x$fastfprng = xmaybe; then |
| 21785 | if test x$extra_opt = xyes; then |
| 21786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21787 | printf "%s\n" "yes" >&6; } |
| 21788 | fastfprng=yes |
| 21789 | else |
| 21790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21791 | printf "%s\n" "no" >&6; } |
| 21792 | fastfprng=no |
| 21793 | fi |
| 21794 | else |
| 21795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21796 | printf "%s\n" "no" >&6; } |
| 21797 | fastfprng=no |
| 21798 | fi |
| 21799 | |
| 21800 | |
| 21801 | #define VISUAL_RANDOM_FAST_FP_RND 1 |
| 21802 | |
| 21803 | if test x$lv_mingw = xyes ; then |
| 21804 | OPT_CFLAGS="-mwindows" |
| 21805 | fi |
| 21806 | |
| 21807 | |
| 21808 | CFLAGS="${CFLAGS} ${DEBUG_CFLAGS} ${OPT_CFLAGS}" |
| 21809 | |
| 21810 | |
| 21811 | libs_dynamic_loader="-ldl" |
| 21812 | LIBS_DYNAMIC_LOADER="$libs_dynamic_loader" |
| 21813 | |
| 21814 | |
| 21815 | LIBVISUAL_INCLUDE_DIR="${includedir}/libvisual-${LIBVISUAL_VERSION_SUFFIX}" |
| 21816 | LIBVISUAL_PLUGINS_BASE_DIR="${libdir}/libvisual-${LIBVISUAL_VERSION_SUFFIX}" |
| 21817 | |
| 21818 | |
| 21819 | |
| 21820 | ac_config_commands="$ac_config_commands libvisual/lvconfig.h" |
| 21821 | |
| 21822 | |
| 21823 | ac_config_files="$ac_config_files po/Makevars po/Makefile.in Makefile libvisual.pc libvisual/Makefile examples/Makefile tools/lv-tool/Makefile" |
| 21824 | |
| 21825 | # |
| 21826 | # For now this are not included in the package |
| 21827 | # |
| 21828 | #tests/Makefile |
| 21829 | #tools/Makefile |
| 21830 | |
| 21831 | cat >confcache <<\_ACEOF |
| 21832 | # This file is a shell script that caches the results of configure |
| 21833 | # tests run on this system so they can be shared between configure |
| 21834 | # scripts and configure runs, see configure's option --config-cache. |
| 21835 | # It is not useful on other systems. If it contains results you don't |
| 21836 | # want to keep, you may remove or edit it. |
| 21837 | # |
| 21838 | # config.status only pays attention to the cache file if you give it |
| 21839 | # the --recheck option to rerun configure. |
| 21840 | # |
| 21841 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 21842 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21843 | # following values. |
| 21844 | |
| 21845 | _ACEOF |
| 21846 | |
| 21847 | # The following way of writing the cache mishandles newlines in values, |
| 21848 | # but we know of no workaround that is simple, portable, and efficient. |
| 21849 | # So, we kill variables containing newlines. |
| 21850 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21851 | # and sets the high bit in the cache file unless we assign to the vars. |
| 21852 | ( |
| 21853 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21854 | eval ac_val=\$$ac_var |
| 21855 | case $ac_val in #( |
| 21856 | *${as_nl}*) |
| 21857 | case $ac_var in #( |
| 21858 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 21859 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 21860 | esac |
| 21861 | case $ac_var in #( |
| 21862 | _ | IFS | as_nl) ;; #( |
| 21863 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 21864 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 21865 | esac ;; |
| 21866 | esac |
| 21867 | done |
| 21868 | |
| 21869 | (set) 2>&1 | |
| 21870 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21871 | *${as_nl}ac_space=\ *) |
| 21872 | # `set' does not quote correctly, so add quotes: double-quote |
| 21873 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 21874 | sed -n \ |
| 21875 | "s/'/'\\\\''/g; |
| 21876 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 21877 | ;; #( |
| 21878 | *) |
| 21879 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 21880 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 21881 | ;; |
| 21882 | esac | |
| 21883 | sort |
| 21884 | ) | |
| 21885 | sed ' |
| 21886 | /^ac_cv_env_/b end |
| 21887 | t clear |
| 21888 | :clear |
| 21889 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 21890 | t end |
| 21891 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21892 | :end' >>confcache |
| 21893 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21894 | if test -w "$cache_file"; then |
| 21895 | if test "x$cache_file" != "x/dev/null"; then |
| 21896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 21897 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 21898 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 21899 | cat confcache >"$cache_file" |
| 21900 | else |
| 21901 | case $cache_file in #( |
| 21902 | */* | ?:*) |
| 21903 | mv -f confcache "$cache_file"$$ && |
| 21904 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 21905 | *) |
| 21906 | mv -f confcache "$cache_file" ;; |
| 21907 | esac |
| 21908 | fi |
| 21909 | fi |
| 21910 | else |
| 21911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 21912 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 21913 | fi |
| 21914 | fi |
| 21915 | rm -f confcache |
| 21916 | |
| 21917 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21918 | # Let make expand exec_prefix. |
| 21919 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21920 | |
| 21921 | DEFS=-DHAVE_CONFIG_H |
| 21922 | |
| 21923 | ac_libobjs= |
| 21924 | ac_ltlibobjs= |
| 21925 | U= |
| 21926 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21927 | # 1. Remove the extension, and $U if already installed. |
| 21928 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 21929 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 21930 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21931 | # will be set to the directory where LIBOBJS objects are built. |
| 21932 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21933 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 21934 | done |
| 21935 | LIBOBJS=$ac_libobjs |
| 21936 | |
| 21937 | LTLIBOBJS=$ac_ltlibobjs |
| 21938 | |
| 21939 | |
| 21940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 21941 | printf %s "checking that generated files are newer than configure... " >&6; } |
| 21942 | if test -n "$am_sleep_pid"; then |
| 21943 | # Hide warnings about reused PIDs. |
| 21944 | wait $am_sleep_pid 2>/dev/null |
| 21945 | fi |
| 21946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 21947 | printf "%s\n" "done" >&6; } |
| 21948 | if test -n "$EXEEXT"; then |
| 21949 | am__EXEEXT_TRUE= |
| 21950 | am__EXEEXT_FALSE='#' |
| 21951 | else |
| 21952 | am__EXEEXT_TRUE='#' |
| 21953 | am__EXEEXT_FALSE= |
| 21954 | fi |
| 21955 | |
| 21956 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 21957 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 21958 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 21959 | fi |
| 21960 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 21961 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 21962 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 21963 | fi |
| 21964 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 21965 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 21966 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 21967 | fi |
| 21968 | |
| 21969 | |
| 21970 | : "${CONFIG_STATUS=./config.status}" |
| 21971 | ac_write_fail=0 |
| 21972 | ac_clean_files_save=$ac_clean_files |
| 21973 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 21974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 21975 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21976 | as_write_fail=0 |
| 21977 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 21978 | #! $SHELL |
| 21979 | # Generated by $as_me. |
| 21980 | # Run this file to recreate the current configuration. |
| 21981 | # Compiler output produced by configure, useful for debugging |
| 21982 | # configure, is in config.log if it exists. |
| 21983 | |
| 21984 | debug=false |
| 21985 | ac_cs_recheck=false |
| 21986 | ac_cs_silent=false |
| 21987 | |
| 21988 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 21989 | export SHELL |
| 21990 | _ASEOF |
| 21991 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 21992 | ## -------------------- ## |
| 21993 | ## M4sh Initialization. ## |
| 21994 | ## -------------------- ## |
| 21995 | |
| 21996 | # Be more Bourne compatible |
| 21997 | DUALCASE=1; export DUALCASE # for MKS sh |
| 21998 | as_nop=: |
| 21999 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 22000 | then : |
| 22001 | emulate sh |
| 22002 | NULLCMD=: |
| 22003 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 22004 | # is contrary to our usage. Disable this feature. |
| 22005 | alias -g '${1+"$@"}'='"$@"' |
| 22006 | setopt NO_GLOB_SUBST |
| 22007 | else $as_nop |
| 22008 | case `(set -o) 2>/dev/null` in #( |
| 22009 | *posix*) : |
| 22010 | set -o posix ;; #( |
| 22011 | *) : |
| 22012 | ;; |
| 22013 | esac |
| 22014 | fi |
| 22015 | |
| 22016 | |
| 22017 | |
| 22018 | # Reset variables that may have inherited troublesome values from |
| 22019 | # the environment. |
| 22020 | |
| 22021 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 22022 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 22023 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 22024 | # Quoting is to prevent editors from complaining about space-tab. |
| 22025 | as_nl=' |
| 22026 | ' |
| 22027 | export as_nl |
| 22028 | IFS=" "" $as_nl" |
| 22029 | |
| 22030 | PS1='$ ' |
| 22031 | PS2='> ' |
| 22032 | PS4='+ ' |
| 22033 | |
| 22034 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 22035 | LC_ALL=C |
| 22036 | export LC_ALL |
| 22037 | LANGUAGE=C |
| 22038 | export LANGUAGE |
| 22039 | |
| 22040 | # We cannot yet rely on "unset" to work, but we need these variables |
| 22041 | # to be unset--not just set to an empty or harmless value--now, to |
| 22042 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 22043 | # also avoids known problems related to "unset" and subshell syntax |
| 22044 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 22045 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 22046 | do eval test \${$as_var+y} \ |
| 22047 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 22048 | done |
| 22049 | |
| 22050 | # Ensure that fds 0, 1, and 2 are open. |
| 22051 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 22052 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 22053 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 22054 | |
| 22055 | # The user is always right. |
| 22056 | if ${PATH_SEPARATOR+false} :; then |
| 22057 | PATH_SEPARATOR=: |
| 22058 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 22059 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 22060 | PATH_SEPARATOR=';' |
| 22061 | } |
| 22062 | fi |
| 22063 | |
| 22064 | |
| 22065 | # Find who we are. Look in the path if we contain no directory separator. |
| 22066 | as_myself= |
| 22067 | case $0 in #(( |
| 22068 | *[\\/]* ) as_myself=$0 ;; |
| 22069 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22070 | for as_dir in $PATH |
| 22071 | do |
| 22072 | IFS=$as_save_IFS |
| 22073 | case $as_dir in #((( |
| 22074 | '') as_dir=./ ;; |
| 22075 | */) ;; |
| 22076 | *) as_dir=$as_dir/ ;; |
| 22077 | esac |
| 22078 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 22079 | done |
| 22080 | IFS=$as_save_IFS |
| 22081 | |
| 22082 | ;; |
| 22083 | esac |
| 22084 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22085 | # in which case we are not to be found in the path. |
| 22086 | if test "x$as_myself" = x; then |
| 22087 | as_myself=$0 |
| 22088 | fi |
| 22089 | if test ! -f "$as_myself"; then |
| 22090 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 22091 | exit 1 |
| 22092 | fi |
| 22093 | |
| 22094 | |
| 22095 | |
| 22096 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 22097 | # ---------------------------------------- |
| 22098 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 22099 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 22100 | # script with STATUS, using 1 if that was 0. |
| 22101 | as_fn_error () |
| 22102 | { |
| 22103 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 22104 | if test "$4"; then |
| 22105 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 22106 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 22107 | fi |
| 22108 | printf "%s\n" "$as_me: error: $2" >&2 |
| 22109 | as_fn_exit $as_status |
| 22110 | } # as_fn_error |
| 22111 | |
| 22112 | |
| 22113 | |
| 22114 | # as_fn_set_status STATUS |
| 22115 | # ----------------------- |
| 22116 | # Set $? to STATUS, without forking. |
| 22117 | as_fn_set_status () |
| 22118 | { |
| 22119 | return $1 |
| 22120 | } # as_fn_set_status |
| 22121 | |
| 22122 | # as_fn_exit STATUS |
| 22123 | # ----------------- |
| 22124 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 22125 | as_fn_exit () |
| 22126 | { |
| 22127 | set +e |
| 22128 | as_fn_set_status $1 |
| 22129 | exit $1 |
| 22130 | } # as_fn_exit |
| 22131 | |
| 22132 | # as_fn_unset VAR |
| 22133 | # --------------- |
| 22134 | # Portably unset VAR. |
| 22135 | as_fn_unset () |
| 22136 | { |
| 22137 | { eval $1=; unset $1;} |
| 22138 | } |
| 22139 | as_unset=as_fn_unset |
| 22140 | |
| 22141 | # as_fn_append VAR VALUE |
| 22142 | # ---------------------- |
| 22143 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 22144 | # advantage of any shell optimizations that allow amortized linear growth over |
| 22145 | # repeated appends, instead of the typical quadratic growth present in naive |
| 22146 | # implementations. |
| 22147 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 22148 | then : |
| 22149 | eval 'as_fn_append () |
| 22150 | { |
| 22151 | eval $1+=\$2 |
| 22152 | }' |
| 22153 | else $as_nop |
| 22154 | as_fn_append () |
| 22155 | { |
| 22156 | eval $1=\$$1\$2 |
| 22157 | } |
| 22158 | fi # as_fn_append |
| 22159 | |
| 22160 | # as_fn_arith ARG... |
| 22161 | # ------------------ |
| 22162 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 22163 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 22164 | # must be portable across $(()) and expr. |
| 22165 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 22166 | then : |
| 22167 | eval 'as_fn_arith () |
| 22168 | { |
| 22169 | as_val=$(( $* )) |
| 22170 | }' |
| 22171 | else $as_nop |
| 22172 | as_fn_arith () |
| 22173 | { |
| 22174 | as_val=`expr "$@" || test $? -eq 1` |
| 22175 | } |
| 22176 | fi # as_fn_arith |
| 22177 | |
| 22178 | |
| 22179 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 22180 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 22181 | as_expr=expr |
| 22182 | else |
| 22183 | as_expr=false |
| 22184 | fi |
| 22185 | |
| 22186 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 22187 | as_basename=basename |
| 22188 | else |
| 22189 | as_basename=false |
| 22190 | fi |
| 22191 | |
| 22192 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 22193 | as_dirname=dirname |
| 22194 | else |
| 22195 | as_dirname=false |
| 22196 | fi |
| 22197 | |
| 22198 | as_me=`$as_basename -- "$0" || |
| 22199 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22200 | X"$0" : 'X\(//\)$' \| \ |
| 22201 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 22202 | printf "%s\n" X/"$0" | |
| 22203 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 22204 | s//\1/ |
| 22205 | q |
| 22206 | } |
| 22207 | /^X\/\(\/\/\)$/{ |
| 22208 | s//\1/ |
| 22209 | q |
| 22210 | } |
| 22211 | /^X\/\(\/\).*/{ |
| 22212 | s//\1/ |
| 22213 | q |
| 22214 | } |
| 22215 | s/.*/./; q'` |
| 22216 | |
| 22217 | # Avoid depending upon Character Ranges. |
| 22218 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22219 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22220 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22221 | as_cr_digits='0123456789' |
| 22222 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22223 | |
| 22224 | |
| 22225 | # Determine whether it's possible to make 'echo' print without a newline. |
| 22226 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 22227 | # for compatibility with existing Makefiles. |
| 22228 | ECHO_C= ECHO_N= ECHO_T= |
| 22229 | case `echo -n x` in #((((( |
| 22230 | -n*) |
| 22231 | case `echo 'xy\c'` in |
| 22232 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 22233 | xy) ECHO_C='\c';; |
| 22234 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 22235 | ECHO_T=' ';; |
| 22236 | esac;; |
| 22237 | *) |
| 22238 | ECHO_N='-n';; |
| 22239 | esac |
| 22240 | |
| 22241 | # For backward compatibility with old third-party macros, we provide |
| 22242 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 22243 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 22244 | as_echo='printf %s\n' |
| 22245 | as_echo_n='printf %s' |
| 22246 | |
| 22247 | rm -f conf$$ conf$$.exe conf$$.file |
| 22248 | if test -d conf$$.dir; then |
| 22249 | rm -f conf$$.dir/conf$$.file |
| 22250 | else |
| 22251 | rm -f conf$$.dir |
| 22252 | mkdir conf$$.dir 2>/dev/null |
| 22253 | fi |
| 22254 | if (echo >conf$$.file) 2>/dev/null; then |
| 22255 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22256 | as_ln_s='ln -s' |
| 22257 | # ... but there are two gotchas: |
| 22258 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 22259 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 22260 | # In both cases, we have to default to `cp -pR'. |
| 22261 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 22262 | as_ln_s='cp -pR' |
| 22263 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22264 | as_ln_s=ln |
| 22265 | else |
| 22266 | as_ln_s='cp -pR' |
| 22267 | fi |
| 22268 | else |
| 22269 | as_ln_s='cp -pR' |
| 22270 | fi |
| 22271 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 22272 | rmdir conf$$.dir 2>/dev/null |
| 22273 | |
| 22274 | |
| 22275 | # as_fn_mkdir_p |
| 22276 | # ------------- |
| 22277 | # Create "$as_dir" as a directory, including parents if necessary. |
| 22278 | as_fn_mkdir_p () |
| 22279 | { |
| 22280 | |
| 22281 | case $as_dir in #( |
| 22282 | -*) as_dir=./$as_dir;; |
| 22283 | esac |
| 22284 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 22285 | as_dirs= |
| 22286 | while :; do |
| 22287 | case $as_dir in #( |
| 22288 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 22289 | *) as_qdir=$as_dir;; |
| 22290 | esac |
| 22291 | as_dirs="'$as_qdir' $as_dirs" |
| 22292 | as_dir=`$as_dirname -- "$as_dir" || |
| 22293 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22294 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22295 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22296 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22297 | printf "%s\n" X"$as_dir" | |
| 22298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22299 | s//\1/ |
| 22300 | q |
| 22301 | } |
| 22302 | /^X\(\/\/\)[^/].*/{ |
| 22303 | s//\1/ |
| 22304 | q |
| 22305 | } |
| 22306 | /^X\(\/\/\)$/{ |
| 22307 | s//\1/ |
| 22308 | q |
| 22309 | } |
| 22310 | /^X\(\/\).*/{ |
| 22311 | s//\1/ |
| 22312 | q |
| 22313 | } |
| 22314 | s/.*/./; q'` |
| 22315 | test -d "$as_dir" && break |
| 22316 | done |
| 22317 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22318 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 22319 | |
| 22320 | |
| 22321 | } # as_fn_mkdir_p |
| 22322 | if mkdir -p . 2>/dev/null; then |
| 22323 | as_mkdir_p='mkdir -p "$as_dir"' |
| 22324 | else |
| 22325 | test -d ./-p && rmdir ./-p |
| 22326 | as_mkdir_p=false |
| 22327 | fi |
| 22328 | |
| 22329 | |
| 22330 | # as_fn_executable_p FILE |
| 22331 | # ----------------------- |
| 22332 | # Test if FILE is an executable regular file. |
| 22333 | as_fn_executable_p () |
| 22334 | { |
| 22335 | test -f "$1" && test -x "$1" |
| 22336 | } # as_fn_executable_p |
| 22337 | as_test_x='test -x' |
| 22338 | as_executable_p=as_fn_executable_p |
| 22339 | |
| 22340 | # Sed expression to map a string onto a valid CPP name. |
| 22341 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 22342 | |
| 22343 | # Sed expression to map a string onto a valid variable name. |
| 22344 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 22345 | |
| 22346 | |
| 22347 | exec 6>&1 |
| 22348 | ## ----------------------------------- ## |
| 22349 | ## Main body of $CONFIG_STATUS script. ## |
| 22350 | ## ----------------------------------- ## |
| 22351 | _ASEOF |
| 22352 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 22353 | |
| 22354 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 22355 | # Save the log message, to keep $0 and so on meaningful, and to |
| 22356 | # report actual input values of CONFIG_FILES etc. instead of their |
| 22357 | # values after options handling. |
| 22358 | ac_log=" |
| 22359 | This file was extended by Libvisual Library $as_me 0.4.2, which was |
| 22360 | generated by GNU Autoconf 2.71. Invocation command line was |
| 22361 | |
| 22362 | CONFIG_FILES = $CONFIG_FILES |
| 22363 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22364 | CONFIG_LINKS = $CONFIG_LINKS |
| 22365 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22366 | $ $0 $@ |
| 22367 | |
| 22368 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 22369 | " |
| 22370 | |
| 22371 | _ACEOF |
| 22372 | |
| 22373 | case $ac_config_files in *" |
| 22374 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 22375 | esac |
| 22376 | |
| 22377 | case $ac_config_headers in *" |
| 22378 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 22379 | esac |
| 22380 | |
| 22381 | |
| 22382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 22383 | # Files that config.status was made for. |
| 22384 | config_files="$ac_config_files" |
| 22385 | config_headers="$ac_config_headers" |
| 22386 | config_commands="$ac_config_commands" |
| 22387 | |
| 22388 | _ACEOF |
| 22389 | |
| 22390 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 22391 | ac_cs_usage="\ |
| 22392 | \`$as_me' instantiates files and other configuration actions |
| 22393 | from templates according to the current configuration. Unless the files |
| 22394 | and actions are specified as TAGs, all are instantiated by default. |
| 22395 | |
| 22396 | Usage: $0 [OPTION]... [TAG]... |
| 22397 | |
| 22398 | -h, --help print this help, then exit |
| 22399 | -V, --version print version number and configuration settings, then exit |
| 22400 | --config print configuration, then exit |
| 22401 | -q, --quiet, --silent |
| 22402 | do not print progress messages |
| 22403 | -d, --debug don't remove temporary files |
| 22404 | --recheck update $as_me by reconfiguring in the same conditions |
| 22405 | --file=FILE[:TEMPLATE] |
| 22406 | instantiate the configuration file FILE |
| 22407 | --header=FILE[:TEMPLATE] |
| 22408 | instantiate the configuration header FILE |
| 22409 | |
| 22410 | Configuration files: |
| 22411 | $config_files |
| 22412 | |
| 22413 | Configuration headers: |
| 22414 | $config_headers |
| 22415 | |
| 22416 | Configuration commands: |
| 22417 | $config_commands |
| 22418 | |
| 22419 | Report bugs to <https://github.com/Libvisual/libvisual/issues>. |
| 22420 | Libvisual Library home page: <https://github.com/Libvisual/libvisual>." |
| 22421 | |
| 22422 | _ACEOF |
| 22423 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 22424 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 22425 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 22426 | ac_cs_config='$ac_cs_config_escaped' |
| 22427 | ac_cs_version="\\ |
| 22428 | Libvisual Library config.status 0.4.2 |
| 22429 | configured by $0, generated by GNU Autoconf 2.71, |
| 22430 | with options \\"\$ac_cs_config\\" |
| 22431 | |
| 22432 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 22433 | This config.status script is free software; the Free Software Foundation |
| 22434 | gives unlimited permission to copy, distribute and modify it." |
| 22435 | |
| 22436 | ac_pwd='$ac_pwd' |
| 22437 | srcdir='$srcdir' |
| 22438 | INSTALL='$INSTALL' |
| 22439 | MKDIR_P='$MKDIR_P' |
| 22440 | AWK='$AWK' |
| 22441 | test -n "\$AWK" || AWK=awk |
| 22442 | _ACEOF |
| 22443 | |
| 22444 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 22445 | # The default lists apply if the user does not specify any file. |
| 22446 | ac_need_defaults=: |
| 22447 | while test $# != 0 |
| 22448 | do |
| 22449 | case $1 in |
| 22450 | --*=?*) |
| 22451 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 22452 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 22453 | ac_shift=: |
| 22454 | ;; |
| 22455 | --*=) |
| 22456 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 22457 | ac_optarg= |
| 22458 | ac_shift=: |
| 22459 | ;; |
| 22460 | *) |
| 22461 | ac_option=$1 |
| 22462 | ac_optarg=$2 |
| 22463 | ac_shift=shift |
| 22464 | ;; |
| 22465 | esac |
| 22466 | |
| 22467 | case $ac_option in |
| 22468 | # Handling of the options. |
| 22469 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 22470 | ac_cs_recheck=: ;; |
| 22471 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 22472 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 22473 | --config | --confi | --conf | --con | --co | --c ) |
| 22474 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 22475 | --debug | --debu | --deb | --de | --d | -d ) |
| 22476 | debug=: ;; |
| 22477 | --file | --fil | --fi | --f ) |
| 22478 | $ac_shift |
| 22479 | case $ac_optarg in |
| 22480 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 22481 | '') as_fn_error $? "missing file argument" ;; |
| 22482 | esac |
| 22483 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 22484 | ac_need_defaults=false;; |
| 22485 | --header | --heade | --head | --hea ) |
| 22486 | $ac_shift |
| 22487 | case $ac_optarg in |
| 22488 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 22489 | esac |
| 22490 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 22491 | ac_need_defaults=false;; |
| 22492 | --he | --h) |
| 22493 | # Conflict between --help and --header |
| 22494 | as_fn_error $? "ambiguous option: \`$1' |
| 22495 | Try \`$0 --help' for more information.";; |
| 22496 | --help | --hel | -h ) |
| 22497 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 22498 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 22499 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 22500 | ac_cs_silent=: ;; |
| 22501 | |
| 22502 | # This is an error. |
| 22503 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 22504 | Try \`$0 --help' for more information." ;; |
| 22505 | |
| 22506 | *) as_fn_append ac_config_targets " $1" |
| 22507 | ac_need_defaults=false ;; |
| 22508 | |
| 22509 | esac |
| 22510 | shift |
| 22511 | done |
| 22512 | |
| 22513 | ac_configure_extra_args= |
| 22514 | |
| 22515 | if $ac_cs_silent; then |
| 22516 | exec 6>/dev/null |
| 22517 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 22518 | fi |
| 22519 | |
| 22520 | _ACEOF |
| 22521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 22522 | if \$ac_cs_recheck; then |
| 22523 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 22524 | shift |
| 22525 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 22526 | CONFIG_SHELL='$SHELL' |
| 22527 | export CONFIG_SHELL |
| 22528 | exec "\$@" |
| 22529 | fi |
| 22530 | |
| 22531 | _ACEOF |
| 22532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 22533 | exec 5>>config.log |
| 22534 | { |
| 22535 | echo |
| 22536 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22537 | ## Running $as_me. ## |
| 22538 | _ASBOX |
| 22539 | printf "%s\n" "$ac_log" |
| 22540 | } >&5 |
| 22541 | |
| 22542 | _ACEOF |
| 22543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 22544 | # |
| 22545 | # INIT-COMMANDS |
| 22546 | # |
| 22547 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 22548 | |
| 22549 | |
| 22550 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 22551 | # if CDPATH is set. |
| 22552 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 22553 | |
| 22554 | sed_quote_subst='$sed_quote_subst' |
| 22555 | double_quote_subst='$double_quote_subst' |
| 22556 | delay_variable_subst='$delay_variable_subst' |
| 22557 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 22558 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 22559 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 22560 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 22561 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 22562 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 22563 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 22564 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 22565 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 22566 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 22567 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 22568 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 22569 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 22570 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 22571 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 22572 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 22573 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 22574 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 22575 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 22576 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 22577 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 22578 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 22579 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 22580 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 22581 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 22582 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 22583 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 22584 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 22585 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 22586 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 22587 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 22588 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 22589 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 22590 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 22591 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 22592 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 22593 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 22594 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 22595 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 22596 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 22597 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 22598 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 22599 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 22600 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 22601 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 22602 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 22603 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 22604 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 22605 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 22606 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 22607 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 22608 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 22609 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 22610 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 22611 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 22612 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 22613 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 22614 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 22615 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 22616 | 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"`' |
| 22617 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 22618 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 22619 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 22620 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 22621 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 22622 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 22623 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 22624 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 22625 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 22626 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 22627 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 22628 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 22629 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 22630 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 22631 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 22632 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 22633 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 22634 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 22635 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 22636 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 22637 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 22638 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 22639 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 22640 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 22641 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 22642 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 22643 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 22644 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 22645 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 22646 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 22647 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 22648 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 22649 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 22650 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 22651 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 22652 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 22653 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 22654 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 22655 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 22656 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 22657 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 22658 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 22659 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 22660 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 22661 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 22662 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 22663 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 22664 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 22665 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 22666 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 22667 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 22668 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 22669 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 22670 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 22671 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 22672 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 22673 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 22674 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 22675 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 22676 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 22677 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 22678 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 22679 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 22680 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 22681 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 22682 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 22683 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 22684 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 22685 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 22686 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 22687 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 22688 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 22689 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 22690 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 22691 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 22692 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 22693 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 22694 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 22695 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 22696 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 22697 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 22698 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 22699 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 22700 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 22701 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22702 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22703 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 22704 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 22705 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 22706 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 22707 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 22708 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 22709 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 22710 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 22711 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 22712 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 22713 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 22714 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 22715 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22716 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22717 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22718 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22719 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22720 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22721 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 22722 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 22723 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 22724 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 22725 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 22726 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 22727 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 22728 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 22729 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 22730 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 22731 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 22732 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 22733 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 22734 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22735 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 22736 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 22737 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22738 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 22739 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 22740 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 22741 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 22742 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 22743 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 22744 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 22745 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 22746 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 22747 | |
| 22748 | LTCC='$LTCC' |
| 22749 | LTCFLAGS='$LTCFLAGS' |
| 22750 | compiler='$compiler_DEFAULT' |
| 22751 | |
| 22752 | # A function that is used when there is no print builtin or printf. |
| 22753 | func_fallback_echo () |
| 22754 | { |
| 22755 | eval 'cat <<_LTECHO_EOF |
| 22756 | \$1 |
| 22757 | _LTECHO_EOF' |
| 22758 | } |
| 22759 | |
| 22760 | # Quote evaled strings. |
| 22761 | for var in AS \ |
| 22762 | DLLTOOL \ |
| 22763 | OBJDUMP \ |
| 22764 | SHELL \ |
| 22765 | ECHO \ |
| 22766 | PATH_SEPARATOR \ |
| 22767 | SED \ |
| 22768 | GREP \ |
| 22769 | EGREP \ |
| 22770 | FGREP \ |
| 22771 | LD \ |
| 22772 | NM \ |
| 22773 | LN_S \ |
| 22774 | lt_SP2NL \ |
| 22775 | lt_NL2SP \ |
| 22776 | reload_flag \ |
| 22777 | deplibs_check_method \ |
| 22778 | file_magic_cmd \ |
| 22779 | file_magic_glob \ |
| 22780 | want_nocaseglob \ |
| 22781 | sharedlib_from_linklib_cmd \ |
| 22782 | AR \ |
| 22783 | AR_FLAGS \ |
| 22784 | archiver_list_spec \ |
| 22785 | STRIP \ |
| 22786 | RANLIB \ |
| 22787 | CC \ |
| 22788 | CFLAGS \ |
| 22789 | compiler \ |
| 22790 | lt_cv_sys_global_symbol_pipe \ |
| 22791 | lt_cv_sys_global_symbol_to_cdecl \ |
| 22792 | lt_cv_sys_global_symbol_to_import \ |
| 22793 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 22794 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 22795 | lt_cv_nm_interface \ |
| 22796 | nm_file_list_spec \ |
| 22797 | lt_cv_truncate_bin \ |
| 22798 | lt_prog_compiler_no_builtin_flag \ |
| 22799 | lt_prog_compiler_pic \ |
| 22800 | lt_prog_compiler_wl \ |
| 22801 | lt_prog_compiler_static \ |
| 22802 | lt_cv_prog_compiler_c_o \ |
| 22803 | need_locks \ |
| 22804 | MANIFEST_TOOL \ |
| 22805 | DSYMUTIL \ |
| 22806 | NMEDIT \ |
| 22807 | LIPO \ |
| 22808 | OTOOL \ |
| 22809 | OTOOL64 \ |
| 22810 | shrext_cmds \ |
| 22811 | export_dynamic_flag_spec \ |
| 22812 | whole_archive_flag_spec \ |
| 22813 | compiler_needs_object \ |
| 22814 | with_gnu_ld \ |
| 22815 | allow_undefined_flag \ |
| 22816 | no_undefined_flag \ |
| 22817 | hardcode_libdir_flag_spec \ |
| 22818 | hardcode_libdir_separator \ |
| 22819 | exclude_expsyms \ |
| 22820 | include_expsyms \ |
| 22821 | file_list_spec \ |
| 22822 | variables_saved_for_relink \ |
| 22823 | libname_spec \ |
| 22824 | library_names_spec \ |
| 22825 | soname_spec \ |
| 22826 | install_override_mode \ |
| 22827 | finish_eval \ |
| 22828 | old_striplib \ |
| 22829 | striplib \ |
| 22830 | compiler_lib_search_dirs \ |
| 22831 | predep_objects \ |
| 22832 | postdep_objects \ |
| 22833 | predeps \ |
| 22834 | postdeps \ |
| 22835 | compiler_lib_search_path \ |
| 22836 | LD_CXX \ |
| 22837 | reload_flag_CXX \ |
| 22838 | compiler_CXX \ |
| 22839 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 22840 | lt_prog_compiler_pic_CXX \ |
| 22841 | lt_prog_compiler_wl_CXX \ |
| 22842 | lt_prog_compiler_static_CXX \ |
| 22843 | lt_cv_prog_compiler_c_o_CXX \ |
| 22844 | export_dynamic_flag_spec_CXX \ |
| 22845 | whole_archive_flag_spec_CXX \ |
| 22846 | compiler_needs_object_CXX \ |
| 22847 | with_gnu_ld_CXX \ |
| 22848 | allow_undefined_flag_CXX \ |
| 22849 | no_undefined_flag_CXX \ |
| 22850 | hardcode_libdir_flag_spec_CXX \ |
| 22851 | hardcode_libdir_separator_CXX \ |
| 22852 | exclude_expsyms_CXX \ |
| 22853 | include_expsyms_CXX \ |
| 22854 | file_list_spec_CXX \ |
| 22855 | compiler_lib_search_dirs_CXX \ |
| 22856 | predep_objects_CXX \ |
| 22857 | postdep_objects_CXX \ |
| 22858 | predeps_CXX \ |
| 22859 | postdeps_CXX \ |
| 22860 | compiler_lib_search_path_CXX; do |
| 22861 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 22862 | *[\\\\\\\`\\"\\\$]*) |
| 22863 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 22864 | ;; |
| 22865 | *) |
| 22866 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 22867 | ;; |
| 22868 | esac |
| 22869 | done |
| 22870 | |
| 22871 | # Double-quote double-evaled strings. |
| 22872 | for var in reload_cmds \ |
| 22873 | old_postinstall_cmds \ |
| 22874 | old_postuninstall_cmds \ |
| 22875 | old_archive_cmds \ |
| 22876 | extract_expsyms_cmds \ |
| 22877 | old_archive_from_new_cmds \ |
| 22878 | old_archive_from_expsyms_cmds \ |
| 22879 | archive_cmds \ |
| 22880 | archive_expsym_cmds \ |
| 22881 | module_cmds \ |
| 22882 | module_expsym_cmds \ |
| 22883 | export_symbols_cmds \ |
| 22884 | prelink_cmds \ |
| 22885 | postlink_cmds \ |
| 22886 | postinstall_cmds \ |
| 22887 | postuninstall_cmds \ |
| 22888 | finish_cmds \ |
| 22889 | sys_lib_search_path_spec \ |
| 22890 | configure_time_dlsearch_path \ |
| 22891 | configure_time_lt_sys_library_path \ |
| 22892 | reload_cmds_CXX \ |
| 22893 | old_archive_cmds_CXX \ |
| 22894 | old_archive_from_new_cmds_CXX \ |
| 22895 | old_archive_from_expsyms_cmds_CXX \ |
| 22896 | archive_cmds_CXX \ |
| 22897 | archive_expsym_cmds_CXX \ |
| 22898 | module_cmds_CXX \ |
| 22899 | module_expsym_cmds_CXX \ |
| 22900 | export_symbols_cmds_CXX \ |
| 22901 | prelink_cmds_CXX \ |
| 22902 | postlink_cmds_CXX; do |
| 22903 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 22904 | *[\\\\\\\`\\"\\\$]*) |
| 22905 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 22906 | ;; |
| 22907 | *) |
| 22908 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 22909 | ;; |
| 22910 | esac |
| 22911 | done |
| 22912 | |
| 22913 | ac_aux_dir='$ac_aux_dir' |
| 22914 | |
| 22915 | # See if we are running on zsh, and set the options that allow our |
| 22916 | # commands through without removal of \ escapes INIT. |
| 22917 | if test -n "\${ZSH_VERSION+set}"; then |
| 22918 | setopt NO_GLOB_SUBST |
| 22919 | fi |
| 22920 | |
| 22921 | |
| 22922 | PACKAGE='$PACKAGE' |
| 22923 | VERSION='$VERSION' |
| 22924 | RM='$RM' |
| 22925 | ofile='$ofile' |
| 22926 | |
| 22927 | |
| 22928 | |
| 22929 | |
| 22930 | |
| 22931 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 22932 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
| 22933 | # from automake < 1.5. |
| 22934 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 22935 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 22936 | LINGUAS="${LINGUAS-%UNSET%}" |
| 22937 | |
| 22938 | |
| 22939 | lv_have_iso_c_varargs=$lv_have_iso_c_varargs |
| 22940 | lv_have_gnuc_varargs=$lv_have_gnuc_varargs |
| 22941 | visual_size_type=$visual_size_type |
| 22942 | fastfprng=$fastfprng |
| 22943 | lv_win32=$lv_win32 |
| 22944 | |
| 22945 | lv_mips=$lv_mips |
| 22946 | lv_alpha=$lv_alpha |
| 22947 | lv_sparc=$lv_sparc |
| 22948 | lv_ix86=$lv_ix86 |
| 22949 | lv_x86_64=$lv_x86_64 |
| 22950 | lv_powerpc=$lv_powerpc |
| 22951 | lv_arch_unknown=$lv_arch_unknown |
| 22952 | |
| 22953 | lv_hpux=$lv_hpux |
| 22954 | lv_aix=$lv_aix |
| 22955 | lv_beos=$lv_beos |
| 22956 | lv_osf=$lv_osf |
| 22957 | lv_irix=$lv_irix |
| 22958 | lv_sunos=$lv_sunos |
| 22959 | lv_solaris=$lv_solaris |
| 22960 | lv_linux=$lv_linux |
| 22961 | lv_sco=$lv_sco |
| 22962 | lv_bsd=$lv_bsd |
| 22963 | lv_darwin=$lv_darwin |
| 22964 | lv_cygwin=$lv_cygwin |
| 22965 | lv_mingw=$lv_mingw |
| 22966 | lv_os_unknown=$lv_os_unknown |
| 22967 | |
| 22968 | lv_have_threads=$have_threads |
| 22969 | lv_enable_threads=$enable_threads |
| 22970 | |
| 22971 | case $visual_size_type in |
| 22972 | short) |
| 22973 | visual_size_format='"hu"' |
| 22974 | ;; |
| 22975 | int) |
| 22976 | visual_size_format='"u"' |
| 22977 | ;; |
| 22978 | long) |
| 22979 | visual_size_format='"lu"' |
| 22980 | ;; |
| 22981 | esac |
| 22982 | |
| 22983 | |
| 22984 | |
| 22985 | _ACEOF |
| 22986 | |
| 22987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 22988 | |
| 22989 | # Handling of arguments. |
| 22990 | for ac_config_target in $ac_config_targets |
| 22991 | do |
| 22992 | case $ac_config_target in |
| 22993 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 22994 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 22995 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 22996 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 22997 | "libvisual/lvconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS libvisual/lvconfig.h" ;; |
| 22998 | "po/Makevars") CONFIG_FILES="$CONFIG_FILES po/Makevars" ;; |
| 22999 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 23000 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 23001 | "libvisual.pc") CONFIG_FILES="$CONFIG_FILES libvisual.pc" ;; |
| 23002 | "libvisual/Makefile") CONFIG_FILES="$CONFIG_FILES libvisual/Makefile" ;; |
| 23003 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 23004 | "tools/lv-tool/Makefile") CONFIG_FILES="$CONFIG_FILES tools/lv-tool/Makefile" ;; |
| 23005 | |
| 23006 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 23007 | esac |
| 23008 | done |
| 23009 | |
| 23010 | |
| 23011 | # If the user did not use the arguments to specify the items to instantiate, |
| 23012 | # then the envvar interface is used. Set only those that are not. |
| 23013 | # We use the long form for the default assignment because of an extremely |
| 23014 | # bizarre bug on SunOS 4.1.3. |
| 23015 | if $ac_need_defaults; then |
| 23016 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 23017 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 23018 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 23019 | fi |
| 23020 | |
| 23021 | # Have a temporary directory for convenience. Make it in the build tree |
| 23022 | # simply because there is no reason against having it here, and in addition, |
| 23023 | # creating and moving files from /tmp can sometimes cause problems. |
| 23024 | # Hook for its removal unless debugging. |
| 23025 | # Note that there is a small window in which the directory will not be cleaned: |
| 23026 | # after its creation but before its name has been assigned to `$tmp'. |
| 23027 | $debug || |
| 23028 | { |
| 23029 | tmp= ac_tmp= |
| 23030 | trap 'exit_status=$? |
| 23031 | : "${ac_tmp:=$tmp}" |
| 23032 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 23033 | ' 0 |
| 23034 | trap 'as_fn_exit 1' 1 2 13 15 |
| 23035 | } |
| 23036 | # Create a (secure) tmp directory for tmp files. |
| 23037 | |
| 23038 | { |
| 23039 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 23040 | test -d "$tmp" |
| 23041 | } || |
| 23042 | { |
| 23043 | tmp=./conf$$-$RANDOM |
| 23044 | (umask 077 && mkdir "$tmp") |
| 23045 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 23046 | ac_tmp=$tmp |
| 23047 | |
| 23048 | # Set up the scripts for CONFIG_FILES section. |
| 23049 | # No need to generate them if there are no CONFIG_FILES. |
| 23050 | # This happens for instance with `./config.status config.h'. |
| 23051 | if test -n "$CONFIG_FILES"; then |
| 23052 | |
| 23053 | |
| 23054 | ac_cr=`echo X | tr X '\015'` |
| 23055 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 23056 | # But we know of no other shell where ac_cr would be empty at this |
| 23057 | # point, so we can use a bashism as a fallback. |
| 23058 | if test "x$ac_cr" = x; then |
| 23059 | eval ac_cr=\$\'\\r\' |
| 23060 | fi |
| 23061 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 23062 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 23063 | ac_cs_awk_cr='\\r' |
| 23064 | else |
| 23065 | ac_cs_awk_cr=$ac_cr |
| 23066 | fi |
| 23067 | |
| 23068 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 23069 | _ACEOF |
| 23070 | |
| 23071 | |
| 23072 | { |
| 23073 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 23074 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 23075 | echo "_ACEOF" |
| 23076 | } >conf$$subs.sh || |
| 23077 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 23078 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 23079 | ac_delim='%!_!# ' |
| 23080 | for ac_last_try in false false false false false :; do |
| 23081 | . ./conf$$subs.sh || |
| 23082 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 23083 | |
| 23084 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 23085 | if test $ac_delim_n = $ac_delim_num; then |
| 23086 | break |
| 23087 | elif $ac_last_try; then |
| 23088 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 23089 | else |
| 23090 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23091 | fi |
| 23092 | done |
| 23093 | rm -f conf$$subs.sh |
| 23094 | |
| 23095 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23096 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 23097 | _ACEOF |
| 23098 | sed -n ' |
| 23099 | h |
| 23100 | s/^/S["/; s/!.*/"]=/ |
| 23101 | p |
| 23102 | g |
| 23103 | s/^[^!]*!// |
| 23104 | :repl |
| 23105 | t repl |
| 23106 | s/'"$ac_delim"'$// |
| 23107 | t delim |
| 23108 | :nl |
| 23109 | h |
| 23110 | s/\(.\{148\}\)..*/\1/ |
| 23111 | t more1 |
| 23112 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 23113 | p |
| 23114 | n |
| 23115 | b repl |
| 23116 | :more1 |
| 23117 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 23118 | p |
| 23119 | g |
| 23120 | s/.\{148\}// |
| 23121 | t nl |
| 23122 | :delim |
| 23123 | h |
| 23124 | s/\(.\{148\}\)..*/\1/ |
| 23125 | t more2 |
| 23126 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 23127 | p |
| 23128 | b |
| 23129 | :more2 |
| 23130 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 23131 | p |
| 23132 | g |
| 23133 | s/.\{148\}// |
| 23134 | t delim |
| 23135 | ' <conf$$subs.awk | sed ' |
| 23136 | /^[^""]/{ |
| 23137 | N |
| 23138 | s/\n// |
| 23139 | } |
| 23140 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 23141 | rm -f conf$$subs.awk |
| 23142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23143 | _ACAWK |
| 23144 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 23145 | for (key in S) S_is_set[key] = 1 |
| 23146 | FS = "" |
| 23147 | |
| 23148 | } |
| 23149 | { |
| 23150 | line = $ 0 |
| 23151 | nfields = split(line, field, "@") |
| 23152 | substed = 0 |
| 23153 | len = length(field[1]) |
| 23154 | for (i = 2; i < nfields; i++) { |
| 23155 | key = field[i] |
| 23156 | keylen = length(key) |
| 23157 | if (S_is_set[key]) { |
| 23158 | value = S[key] |
| 23159 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 23160 | len += length(value) + length(field[++i]) |
| 23161 | substed = 1 |
| 23162 | } else |
| 23163 | len += 1 + keylen |
| 23164 | } |
| 23165 | |
| 23166 | print line |
| 23167 | } |
| 23168 | |
| 23169 | _ACAWK |
| 23170 | _ACEOF |
| 23171 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23172 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 23173 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 23174 | else |
| 23175 | cat |
| 23176 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 23177 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 23178 | _ACEOF |
| 23179 | |
| 23180 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 23181 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 23182 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23183 | # (actually we leave an empty line to preserve line numbers). |
| 23184 | if test "x$srcdir" = x.; then |
| 23185 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 23186 | h |
| 23187 | s/// |
| 23188 | s/^/:/ |
| 23189 | s/[ ]*$/:/ |
| 23190 | s/:\$(srcdir):/:/g |
| 23191 | s/:\${srcdir}:/:/g |
| 23192 | s/:@srcdir@:/:/g |
| 23193 | s/^:*// |
| 23194 | s/:*$// |
| 23195 | x |
| 23196 | s/\(=[ ]*\).*/\1/ |
| 23197 | G |
| 23198 | s/\n// |
| 23199 | s/^[^=]*=[ ]*$// |
| 23200 | }' |
| 23201 | fi |
| 23202 | |
| 23203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23204 | fi # test -n "$CONFIG_FILES" |
| 23205 | |
| 23206 | # Set up the scripts for CONFIG_HEADERS section. |
| 23207 | # No need to generate them if there are no CONFIG_HEADERS. |
| 23208 | # This happens for instance with `./config.status Makefile'. |
| 23209 | if test -n "$CONFIG_HEADERS"; then |
| 23210 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 23211 | BEGIN { |
| 23212 | _ACEOF |
| 23213 | |
| 23214 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 23215 | # here-document in config.status, that substitutes the proper values into |
| 23216 | # config.h.in to produce config.h. |
| 23217 | |
| 23218 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 23219 | # handling of long lines. |
| 23220 | ac_delim='%!_!# ' |
| 23221 | for ac_last_try in false false :; do |
| 23222 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 23223 | if test -z "$ac_tt"; then |
| 23224 | break |
| 23225 | elif $ac_last_try; then |
| 23226 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 23227 | else |
| 23228 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23229 | fi |
| 23230 | done |
| 23231 | |
| 23232 | # For the awk script, D is an array of macro values keyed by name, |
| 23233 | # likewise P contains macro parameters if any. Preserve backslash |
| 23234 | # newline sequences. |
| 23235 | |
| 23236 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 23237 | sed -n ' |
| 23238 | s/.\{148\}/&'"$ac_delim"'/g |
| 23239 | t rset |
| 23240 | :rset |
| 23241 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 23242 | t def |
| 23243 | d |
| 23244 | :def |
| 23245 | s/\\$// |
| 23246 | t bsnl |
| 23247 | s/["\\]/\\&/g |
| 23248 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 23249 | D["\1"]=" \3"/p |
| 23250 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 23251 | d |
| 23252 | :bsnl |
| 23253 | s/["\\]/\\&/g |
| 23254 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 23255 | D["\1"]=" \3\\\\\\n"\\/p |
| 23256 | t cont |
| 23257 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 23258 | t cont |
| 23259 | d |
| 23260 | :cont |
| 23261 | n |
| 23262 | s/.\{148\}/&'"$ac_delim"'/g |
| 23263 | t clear |
| 23264 | :clear |
| 23265 | s/\\$// |
| 23266 | t bsnlc |
| 23267 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 23268 | d |
| 23269 | :bsnlc |
| 23270 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 23271 | b cont |
| 23272 | ' <confdefs.h | sed ' |
| 23273 | s/'"$ac_delim"'/"\\\ |
| 23274 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 23275 | |
| 23276 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23277 | for (key in D) D_is_set[key] = 1 |
| 23278 | FS = "" |
| 23279 | } |
| 23280 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 23281 | line = \$ 0 |
| 23282 | split(line, arg, " ") |
| 23283 | if (arg[1] == "#") { |
| 23284 | defundef = arg[2] |
| 23285 | mac1 = arg[3] |
| 23286 | } else { |
| 23287 | defundef = substr(arg[1], 2) |
| 23288 | mac1 = arg[2] |
| 23289 | } |
| 23290 | split(mac1, mac2, "(") #) |
| 23291 | macro = mac2[1] |
| 23292 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 23293 | if (D_is_set[macro]) { |
| 23294 | # Preserve the white space surrounding the "#". |
| 23295 | print prefix "define", macro P[macro] D[macro] |
| 23296 | next |
| 23297 | } else { |
| 23298 | # Replace #undef with comments. This is necessary, for example, |
| 23299 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 23300 | # on some systems where configure will not decide to define it. |
| 23301 | if (defundef == "undef") { |
| 23302 | print "/*", prefix defundef, macro, "*/" |
| 23303 | next |
| 23304 | } |
| 23305 | } |
| 23306 | } |
| 23307 | { print } |
| 23308 | _ACAWK |
| 23309 | _ACEOF |
| 23310 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23311 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 23312 | fi # test -n "$CONFIG_HEADERS" |
| 23313 | |
| 23314 | |
| 23315 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 23316 | shift |
| 23317 | for ac_tag |
| 23318 | do |
| 23319 | case $ac_tag in |
| 23320 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 23321 | esac |
| 23322 | case $ac_mode$ac_tag in |
| 23323 | :[FHL]*:*);; |
| 23324 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 23325 | :[FH]-) ac_tag=-:-;; |
| 23326 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 23327 | esac |
| 23328 | ac_save_IFS=$IFS |
| 23329 | IFS=: |
| 23330 | set x $ac_tag |
| 23331 | IFS=$ac_save_IFS |
| 23332 | shift |
| 23333 | ac_file=$1 |
| 23334 | shift |
| 23335 | |
| 23336 | case $ac_mode in |
| 23337 | :L) ac_source=$1;; |
| 23338 | :[FH]) |
| 23339 | ac_file_inputs= |
| 23340 | for ac_f |
| 23341 | do |
| 23342 | case $ac_f in |
| 23343 | -) ac_f="$ac_tmp/stdin";; |
| 23344 | *) # Look for the file first in the build tree, then in the source tree |
| 23345 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 23346 | # because $ac_f cannot contain `:'. |
| 23347 | test -f "$ac_f" || |
| 23348 | case $ac_f in |
| 23349 | [\\/$]*) false;; |
| 23350 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 23351 | esac || |
| 23352 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 23353 | esac |
| 23354 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 23355 | as_fn_append ac_file_inputs " '$ac_f'" |
| 23356 | done |
| 23357 | |
| 23358 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23359 | # use $as_me), people would be surprised to read: |
| 23360 | # /* config.h. Generated by config.status. */ |
| 23361 | configure_input='Generated from '` |
| 23362 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 23363 | `' by configure.' |
| 23364 | if test x"$ac_file" != x-; then |
| 23365 | configure_input="$ac_file. $configure_input" |
| 23366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 23367 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 23368 | fi |
| 23369 | # Neutralize special characters interpreted by sed in replacement strings. |
| 23370 | case $configure_input in #( |
| 23371 | *\&* | *\|* | *\\* ) |
| 23372 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 23373 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 23374 | *) ac_sed_conf_input=$configure_input;; |
| 23375 | esac |
| 23376 | |
| 23377 | case $ac_tag in |
| 23378 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 23379 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 23380 | esac |
| 23381 | ;; |
| 23382 | esac |
| 23383 | |
| 23384 | ac_dir=`$as_dirname -- "$ac_file" || |
| 23385 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23386 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23387 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23388 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 23389 | printf "%s\n" X"$ac_file" | |
| 23390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23391 | s//\1/ |
| 23392 | q |
| 23393 | } |
| 23394 | /^X\(\/\/\)[^/].*/{ |
| 23395 | s//\1/ |
| 23396 | q |
| 23397 | } |
| 23398 | /^X\(\/\/\)$/{ |
| 23399 | s//\1/ |
| 23400 | q |
| 23401 | } |
| 23402 | /^X\(\/\).*/{ |
| 23403 | s//\1/ |
| 23404 | q |
| 23405 | } |
| 23406 | s/.*/./; q'` |
| 23407 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 23408 | ac_builddir=. |
| 23409 | |
| 23410 | case "$ac_dir" in |
| 23411 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23412 | *) |
| 23413 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 23414 | # A ".." for each directory in $ac_dir_suffix. |
| 23415 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 23416 | case $ac_top_builddir_sub in |
| 23417 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23418 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 23419 | esac ;; |
| 23420 | esac |
| 23421 | ac_abs_top_builddir=$ac_pwd |
| 23422 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 23423 | # for backward compatibility: |
| 23424 | ac_top_builddir=$ac_top_build_prefix |
| 23425 | |
| 23426 | case $srcdir in |
| 23427 | .) # We are building in place. |
| 23428 | ac_srcdir=. |
| 23429 | ac_top_srcdir=$ac_top_builddir_sub |
| 23430 | ac_abs_top_srcdir=$ac_pwd ;; |
| 23431 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 23432 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23433 | ac_top_srcdir=$srcdir |
| 23434 | ac_abs_top_srcdir=$srcdir ;; |
| 23435 | *) # Relative name. |
| 23436 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 23437 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 23438 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 23439 | esac |
| 23440 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 23441 | |
| 23442 | |
| 23443 | case $ac_mode in |
| 23444 | :F) |
| 23445 | # |
| 23446 | # CONFIG_FILE |
| 23447 | # |
| 23448 | |
| 23449 | case $INSTALL in |
| 23450 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23451 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 23452 | esac |
| 23453 | ac_MKDIR_P=$MKDIR_P |
| 23454 | case $MKDIR_P in |
| 23455 | [\\/$]* | ?:[\\/]* ) ;; |
| 23456 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 23457 | esac |
| 23458 | _ACEOF |
| 23459 | |
| 23460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23461 | # If the template does not know about datarootdir, expand it. |
| 23462 | # FIXME: This hack should be removed a few years after 2.60. |
| 23463 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 23464 | ac_sed_dataroot=' |
| 23465 | /datarootdir/ { |
| 23466 | p |
| 23467 | q |
| 23468 | } |
| 23469 | /@datadir@/p |
| 23470 | /@docdir@/p |
| 23471 | /@infodir@/p |
| 23472 | /@localedir@/p |
| 23473 | /@mandir@/p' |
| 23474 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 23475 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 23476 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 23477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 23478 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 23479 | _ACEOF |
| 23480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23481 | ac_datarootdir_hack=' |
| 23482 | s&@datadir@&$datadir&g |
| 23483 | s&@docdir@&$docdir&g |
| 23484 | s&@infodir@&$infodir&g |
| 23485 | s&@localedir@&$localedir&g |
| 23486 | s&@mandir@&$mandir&g |
| 23487 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 23488 | esac |
| 23489 | _ACEOF |
| 23490 | |
| 23491 | # Neutralize VPATH when `$srcdir' = `.'. |
| 23492 | # Shell code in configure.ac might set extrasub. |
| 23493 | # FIXME: do we really want to maintain this feature? |
| 23494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 23495 | ac_sed_extra="$ac_vpsub |
| 23496 | $extrasub |
| 23497 | _ACEOF |
| 23498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23499 | :t |
| 23500 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23501 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 23502 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 23503 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 23504 | s&@srcdir@&$ac_srcdir&;t t |
| 23505 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 23506 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 23507 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 23508 | s&@builddir@&$ac_builddir&;t t |
| 23509 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 23510 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 23511 | s&@INSTALL@&$ac_INSTALL&;t t |
| 23512 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 23513 | $ac_datarootdir_hack |
| 23514 | " |
| 23515 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 23516 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 23517 | |
| 23518 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 23519 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 23520 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 23521 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 23522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 23523 | which seems to be undefined. Please make sure it is defined" >&5 |
| 23524 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 23525 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 23526 | |
| 23527 | rm -f "$ac_tmp/stdin" |
| 23528 | case $ac_file in |
| 23529 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 23530 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 23531 | esac \ |
| 23532 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 23533 | ;; |
| 23534 | :H) |
| 23535 | # |
| 23536 | # CONFIG_HEADER |
| 23537 | # |
| 23538 | if test x"$ac_file" != x-; then |
| 23539 | { |
| 23540 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 23541 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 23542 | } >"$ac_tmp/config.h" \ |
| 23543 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 23544 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 23545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 23546 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 23547 | else |
| 23548 | rm -f "$ac_file" |
| 23549 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 23550 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 23551 | fi |
| 23552 | else |
| 23553 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 23554 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 23555 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 23556 | fi |
| 23557 | # Compute "$ac_file"'s index in $config_headers. |
| 23558 | _am_arg="$ac_file" |
| 23559 | _am_stamp_count=1 |
| 23560 | for _am_header in $config_headers :; do |
| 23561 | case $_am_header in |
| 23562 | $_am_arg | $_am_arg:* ) |
| 23563 | break ;; |
| 23564 | * ) |
| 23565 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 23566 | esac |
| 23567 | done |
| 23568 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 23569 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23570 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 23571 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 23572 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 23573 | printf "%s\n" X"$_am_arg" | |
| 23574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23575 | s//\1/ |
| 23576 | q |
| 23577 | } |
| 23578 | /^X\(\/\/\)[^/].*/{ |
| 23579 | s//\1/ |
| 23580 | q |
| 23581 | } |
| 23582 | /^X\(\/\/\)$/{ |
| 23583 | s//\1/ |
| 23584 | q |
| 23585 | } |
| 23586 | /^X\(\/\).*/{ |
| 23587 | s//\1/ |
| 23588 | q |
| 23589 | } |
| 23590 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 23591 | ;; |
| 23592 | |
| 23593 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 23594 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 23595 | ;; |
| 23596 | esac |
| 23597 | |
| 23598 | |
| 23599 | case $ac_file$ac_mode in |
| 23600 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 23601 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 23602 | # are listed without --file. Let's play safe and only enable the eval |
| 23603 | # if we detect the quoting. |
| 23604 | # TODO: see whether this extra hack can be removed once we start |
| 23605 | # requiring Autoconf 2.70 or later. |
| 23606 | case $CONFIG_FILES in #( |
| 23607 | *\'*) : |
| 23608 | eval set x "$CONFIG_FILES" ;; #( |
| 23609 | *) : |
| 23610 | set x $CONFIG_FILES ;; #( |
| 23611 | *) : |
| 23612 | ;; |
| 23613 | esac |
| 23614 | shift |
| 23615 | # Used to flag and report bootstrapping failures. |
| 23616 | am_rc=0 |
| 23617 | for am_mf |
| 23618 | do |
| 23619 | # Strip MF so we end up with the name of the file. |
| 23620 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 23621 | # Check whether this is an Automake generated Makefile which includes |
| 23622 | # dependency-tracking related rules and includes. |
| 23623 | # Grep'ing the whole file directly is not great: AIX grep has a line |
| 23624 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 23625 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 23626 | || continue |
| 23627 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 23628 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23629 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 23630 | X"$am_mf" : 'X\(//\)$' \| \ |
| 23631 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 23632 | printf "%s\n" X"$am_mf" | |
| 23633 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23634 | s//\1/ |
| 23635 | q |
| 23636 | } |
| 23637 | /^X\(\/\/\)[^/].*/{ |
| 23638 | s//\1/ |
| 23639 | q |
| 23640 | } |
| 23641 | /^X\(\/\/\)$/{ |
| 23642 | s//\1/ |
| 23643 | q |
| 23644 | } |
| 23645 | /^X\(\/\).*/{ |
| 23646 | s//\1/ |
| 23647 | q |
| 23648 | } |
| 23649 | s/.*/./; q'` |
| 23650 | am_filepart=`$as_basename -- "$am_mf" || |
| 23651 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23652 | X"$am_mf" : 'X\(//\)$' \| \ |
| 23653 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 23654 | printf "%s\n" X/"$am_mf" | |
| 23655 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23656 | s//\1/ |
| 23657 | q |
| 23658 | } |
| 23659 | /^X\/\(\/\/\)$/{ |
| 23660 | s//\1/ |
| 23661 | q |
| 23662 | } |
| 23663 | /^X\/\(\/\).*/{ |
| 23664 | s//\1/ |
| 23665 | q |
| 23666 | } |
| 23667 | s/.*/./; q'` |
| 23668 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 23669 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 23670 | | $MAKE -f - am--depfiles" >&5 |
| 23671 | (cd "$am_dirpart" \ |
| 23672 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 23673 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 23674 | ac_status=$? |
| 23675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23676 | (exit $ac_status); } || am_rc=$? |
| 23677 | done |
| 23678 | if test $am_rc -ne 0; then |
| 23679 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23680 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23681 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 23682 | for automatic dependency tracking. If GNU make was not used, consider |
| 23683 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 23684 | necessary). You can also try re-running configure with the |
| 23685 | '--disable-dependency-tracking' option to at least be able to build |
| 23686 | the package (albeit without support for automatic dependency tracking). |
| 23687 | See \`config.log' for more details" "$LINENO" 5; } |
| 23688 | fi |
| 23689 | { am_dirpart=; unset am_dirpart;} |
| 23690 | { am_filepart=; unset am_filepart;} |
| 23691 | { am_mf=; unset am_mf;} |
| 23692 | { am_rc=; unset am_rc;} |
| 23693 | rm -f conftest-deps.mk |
| 23694 | } |
| 23695 | ;; |
| 23696 | "libtool":C) |
| 23697 | |
| 23698 | # See if we are running on zsh, and set the options that allow our |
| 23699 | # commands through without removal of \ escapes. |
| 23700 | if test -n "${ZSH_VERSION+set}"; then |
| 23701 | setopt NO_GLOB_SUBST |
| 23702 | fi |
| 23703 | |
| 23704 | cfgfile=${ofile}T |
| 23705 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 23706 | $RM "$cfgfile" |
| 23707 | |
| 23708 | cat <<_LT_EOF >> "$cfgfile" |
| 23709 | #! $SHELL |
| 23710 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 23711 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 23712 | |
| 23713 | # Provide generalized library-building support services. |
| 23714 | # Written by Gordon Matzigkeit, 1996 |
| 23715 | |
| 23716 | # Copyright (C) 2014 Free Software Foundation, Inc. |
| 23717 | # This is free software; see the source for copying conditions. There is NO |
| 23718 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 23719 | |
| 23720 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 23721 | # it under the terms of the GNU General Public License as published by |
| 23722 | # the Free Software Foundation; either version 2 of of the License, or |
| 23723 | # (at your option) any later version. |
| 23724 | # |
| 23725 | # As a special exception to the GNU General Public License, if you |
| 23726 | # distribute this file as part of a program or library that is built |
| 23727 | # using GNU Libtool, you may include this file under the same |
| 23728 | # distribution terms that you use for the rest of that program. |
| 23729 | # |
| 23730 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 23731 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23732 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23733 | # GNU General Public License for more details. |
| 23734 | # |
| 23735 | # You should have received a copy of the GNU General Public License |
| 23736 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 23737 | |
| 23738 | |
| 23739 | # The names of the tagged configurations supported by this script. |
| 23740 | available_tags='CXX ' |
| 23741 | |
| 23742 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 23743 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 23744 | |
| 23745 | # ### BEGIN LIBTOOL CONFIG |
| 23746 | |
| 23747 | # Whether or not to build static libraries. |
| 23748 | build_old_libs=$enable_static |
| 23749 | |
| 23750 | # Which release of libtool.m4 was used? |
| 23751 | macro_version=$macro_version |
| 23752 | macro_revision=$macro_revision |
| 23753 | |
| 23754 | # Assembler program. |
| 23755 | AS=$lt_AS |
| 23756 | |
| 23757 | # DLL creation program. |
| 23758 | DLLTOOL=$lt_DLLTOOL |
| 23759 | |
| 23760 | # Object dumper program. |
| 23761 | OBJDUMP=$lt_OBJDUMP |
| 23762 | |
| 23763 | # Whether or not to build shared libraries. |
| 23764 | build_libtool_libs=$enable_shared |
| 23765 | |
| 23766 | # What type of objects to build. |
| 23767 | pic_mode=$pic_mode |
| 23768 | |
| 23769 | # Whether or not to optimize for fast installation. |
| 23770 | fast_install=$enable_fast_install |
| 23771 | |
| 23772 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 23773 | shared_archive_member_spec=$shared_archive_member_spec |
| 23774 | |
| 23775 | # Shell to use when invoking shell scripts. |
| 23776 | SHELL=$lt_SHELL |
| 23777 | |
| 23778 | # An echo program that protects backslashes. |
| 23779 | ECHO=$lt_ECHO |
| 23780 | |
| 23781 | # The PATH separator for the build system. |
| 23782 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 23783 | |
| 23784 | # The host system. |
| 23785 | host_alias=$host_alias |
| 23786 | host=$host |
| 23787 | host_os=$host_os |
| 23788 | |
| 23789 | # The build system. |
| 23790 | build_alias=$build_alias |
| 23791 | build=$build |
| 23792 | build_os=$build_os |
| 23793 | |
| 23794 | # A sed program that does not truncate output. |
| 23795 | SED=$lt_SED |
| 23796 | |
| 23797 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 23798 | Xsed="\$SED -e 1s/^X//" |
| 23799 | |
| 23800 | # A grep program that handles long lines. |
| 23801 | GREP=$lt_GREP |
| 23802 | |
| 23803 | # An ERE matcher. |
| 23804 | EGREP=$lt_EGREP |
| 23805 | |
| 23806 | # A literal string matcher. |
| 23807 | FGREP=$lt_FGREP |
| 23808 | |
| 23809 | # A BSD- or MS-compatible name lister. |
| 23810 | NM=$lt_NM |
| 23811 | |
| 23812 | # Whether we need soft or hard links. |
| 23813 | LN_S=$lt_LN_S |
| 23814 | |
| 23815 | # What is the maximum length of a command? |
| 23816 | max_cmd_len=$max_cmd_len |
| 23817 | |
| 23818 | # Object file suffix (normally "o"). |
| 23819 | objext=$ac_objext |
| 23820 | |
| 23821 | # Executable file suffix (normally ""). |
| 23822 | exeext=$exeext |
| 23823 | |
| 23824 | # whether the shell understands "unset". |
| 23825 | lt_unset=$lt_unset |
| 23826 | |
| 23827 | # turn spaces into newlines. |
| 23828 | SP2NL=$lt_lt_SP2NL |
| 23829 | |
| 23830 | # turn newlines into spaces. |
| 23831 | NL2SP=$lt_lt_NL2SP |
| 23832 | |
| 23833 | # convert \$build file names to \$host format. |
| 23834 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 23835 | |
| 23836 | # convert \$build files to toolchain format. |
| 23837 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 23838 | |
| 23839 | # Method to check whether dependent libraries are shared objects. |
| 23840 | deplibs_check_method=$lt_deplibs_check_method |
| 23841 | |
| 23842 | # Command to use when deplibs_check_method = "file_magic". |
| 23843 | file_magic_cmd=$lt_file_magic_cmd |
| 23844 | |
| 23845 | # How to find potential files when deplibs_check_method = "file_magic". |
| 23846 | file_magic_glob=$lt_file_magic_glob |
| 23847 | |
| 23848 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 23849 | want_nocaseglob=$lt_want_nocaseglob |
| 23850 | |
| 23851 | # Command to associate shared and link libraries. |
| 23852 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 23853 | |
| 23854 | # The archiver. |
| 23855 | AR=$lt_AR |
| 23856 | |
| 23857 | # Flags to create an archive. |
| 23858 | AR_FLAGS=$lt_AR_FLAGS |
| 23859 | |
| 23860 | # How to feed a file listing to the archiver. |
| 23861 | archiver_list_spec=$lt_archiver_list_spec |
| 23862 | |
| 23863 | # A symbol stripping program. |
| 23864 | STRIP=$lt_STRIP |
| 23865 | |
| 23866 | # Commands used to install an old-style archive. |
| 23867 | RANLIB=$lt_RANLIB |
| 23868 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23869 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23870 | |
| 23871 | # Whether to use a lock for old archive extraction. |
| 23872 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 23873 | |
| 23874 | # A C compiler. |
| 23875 | LTCC=$lt_CC |
| 23876 | |
| 23877 | # LTCC compiler flags. |
| 23878 | LTCFLAGS=$lt_CFLAGS |
| 23879 | |
| 23880 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23881 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23882 | |
| 23883 | # Transform the output of nm in a proper C declaration. |
| 23884 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23885 | |
| 23886 | # Transform the output of nm into a list of symbols to manually relocate. |
| 23887 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 23888 | |
| 23889 | # Transform the output of nm in a C name address pair. |
| 23890 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23891 | |
| 23892 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 23893 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 23894 | |
| 23895 | # The name lister interface. |
| 23896 | nm_interface=$lt_lt_cv_nm_interface |
| 23897 | |
| 23898 | # Specify filename containing input files for \$NM. |
| 23899 | nm_file_list_spec=$lt_nm_file_list_spec |
| 23900 | |
| 23901 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 23902 | lt_sysroot=$lt_sysroot |
| 23903 | |
| 23904 | # Command to truncate a binary pipe. |
| 23905 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 23906 | |
| 23907 | # The name of the directory that contains temporary libtool files. |
| 23908 | objdir=$objdir |
| 23909 | |
| 23910 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 23911 | MAGIC_CMD=$MAGIC_CMD |
| 23912 | |
| 23913 | # Must we lock files when doing compilation? |
| 23914 | need_locks=$lt_need_locks |
| 23915 | |
| 23916 | # Manifest tool. |
| 23917 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 23918 | |
| 23919 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 23920 | DSYMUTIL=$lt_DSYMUTIL |
| 23921 | |
| 23922 | # Tool to change global to local symbols on Mac OS X. |
| 23923 | NMEDIT=$lt_NMEDIT |
| 23924 | |
| 23925 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 23926 | LIPO=$lt_LIPO |
| 23927 | |
| 23928 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 23929 | OTOOL=$lt_OTOOL |
| 23930 | |
| 23931 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 23932 | OTOOL64=$lt_OTOOL64 |
| 23933 | |
| 23934 | # Old archive suffix (normally "a"). |
| 23935 | libext=$libext |
| 23936 | |
| 23937 | # Shared library suffix (normally ".so"). |
| 23938 | shrext_cmds=$lt_shrext_cmds |
| 23939 | |
| 23940 | # The commands to extract the exported symbol list from a shared archive. |
| 23941 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23942 | |
| 23943 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23944 | # restored at link time. |
| 23945 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 23946 | |
| 23947 | # Do we need the "lib" prefix for modules? |
| 23948 | need_lib_prefix=$need_lib_prefix |
| 23949 | |
| 23950 | # Do we need a version for libraries? |
| 23951 | need_version=$need_version |
| 23952 | |
| 23953 | # Library versioning type. |
| 23954 | version_type=$version_type |
| 23955 | |
| 23956 | # Shared library runtime path variable. |
| 23957 | runpath_var=$runpath_var |
| 23958 | |
| 23959 | # Shared library path variable. |
| 23960 | shlibpath_var=$shlibpath_var |
| 23961 | |
| 23962 | # Is shlibpath searched before the hard-coded library search path? |
| 23963 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23964 | |
| 23965 | # Format of library name prefix. |
| 23966 | libname_spec=$lt_libname_spec |
| 23967 | |
| 23968 | # List of archive names. First name is the real one, the rest are links. |
| 23969 | # The last name is the one that the linker finds with -lNAME |
| 23970 | library_names_spec=$lt_library_names_spec |
| 23971 | |
| 23972 | # The coded name of the library, if different from the real name. |
| 23973 | soname_spec=$lt_soname_spec |
| 23974 | |
| 23975 | # Permission mode override for installation of shared libraries. |
| 23976 | install_override_mode=$lt_install_override_mode |
| 23977 | |
| 23978 | # Command to use after installation of a shared archive. |
| 23979 | postinstall_cmds=$lt_postinstall_cmds |
| 23980 | |
| 23981 | # Command to use after uninstallation of a shared archive. |
| 23982 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23983 | |
| 23984 | # Commands used to finish a libtool library installation in a directory. |
| 23985 | finish_cmds=$lt_finish_cmds |
| 23986 | |
| 23987 | # As "finish_cmds", except a single script fragment to be evaled but |
| 23988 | # not shown. |
| 23989 | finish_eval=$lt_finish_eval |
| 23990 | |
| 23991 | # Whether we should hardcode library paths into libraries. |
| 23992 | hardcode_into_libs=$hardcode_into_libs |
| 23993 | |
| 23994 | # Compile-time system search path for libraries. |
| 23995 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23996 | |
| 23997 | # Detected run-time system search path for libraries. |
| 23998 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 23999 | |
| 24000 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 24001 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 24002 | |
| 24003 | # Whether dlopen is supported. |
| 24004 | dlopen_support=$enable_dlopen |
| 24005 | |
| 24006 | # Whether dlopen of programs is supported. |
| 24007 | dlopen_self=$enable_dlopen_self |
| 24008 | |
| 24009 | # Whether dlopen of statically linked programs is supported. |
| 24010 | dlopen_self_static=$enable_dlopen_self_static |
| 24011 | |
| 24012 | # Commands to strip libraries. |
| 24013 | old_striplib=$lt_old_striplib |
| 24014 | striplib=$lt_striplib |
| 24015 | |
| 24016 | |
| 24017 | # The linker used to build libraries. |
| 24018 | LD=$lt_LD |
| 24019 | |
| 24020 | # How to create reloadable object files. |
| 24021 | reload_flag=$lt_reload_flag |
| 24022 | reload_cmds=$lt_reload_cmds |
| 24023 | |
| 24024 | # Commands used to build an old-style archive. |
| 24025 | old_archive_cmds=$lt_old_archive_cmds |
| 24026 | |
| 24027 | # A language specific compiler. |
| 24028 | CC=$lt_compiler |
| 24029 | |
| 24030 | # Is the compiler the GNU compiler? |
| 24031 | with_gcc=$GCC |
| 24032 | |
| 24033 | # Compiler flag to turn off builtin functions. |
| 24034 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 24035 | |
| 24036 | # Additional compiler flags for building library objects. |
| 24037 | pic_flag=$lt_lt_prog_compiler_pic |
| 24038 | |
| 24039 | # How to pass a linker flag through the compiler. |
| 24040 | wl=$lt_lt_prog_compiler_wl |
| 24041 | |
| 24042 | # Compiler flag to prevent dynamic linking. |
| 24043 | link_static_flag=$lt_lt_prog_compiler_static |
| 24044 | |
| 24045 | # Does compiler simultaneously support -c and -o options? |
| 24046 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 24047 | |
| 24048 | # Whether or not to add -lc for building shared libraries. |
| 24049 | build_libtool_need_lc=$archive_cmds_need_lc |
| 24050 | |
| 24051 | # Whether or not to disallow shared libs when runtime libs are static. |
| 24052 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 24053 | |
| 24054 | # Compiler flag to allow reflexive dlopens. |
| 24055 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 24056 | |
| 24057 | # Compiler flag to generate shared objects directly from archives. |
| 24058 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 24059 | |
| 24060 | # Whether the compiler copes with passing no objects directly. |
| 24061 | compiler_needs_object=$lt_compiler_needs_object |
| 24062 | |
| 24063 | # Create an old-style archive from a shared archive. |
| 24064 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 24065 | |
| 24066 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24067 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 24068 | |
| 24069 | # Commands used to build a shared archive. |
| 24070 | archive_cmds=$lt_archive_cmds |
| 24071 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 24072 | |
| 24073 | # Commands used to build a loadable module if different from building |
| 24074 | # a shared archive. |
| 24075 | module_cmds=$lt_module_cmds |
| 24076 | module_expsym_cmds=$lt_module_expsym_cmds |
| 24077 | |
| 24078 | # Whether we are building with GNU ld or not. |
| 24079 | with_gnu_ld=$lt_with_gnu_ld |
| 24080 | |
| 24081 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24082 | allow_undefined_flag=$lt_allow_undefined_flag |
| 24083 | |
| 24084 | # Flag that enforces no undefined symbols. |
| 24085 | no_undefined_flag=$lt_no_undefined_flag |
| 24086 | |
| 24087 | # Flag to hardcode \$libdir into a binary during linking. |
| 24088 | # This must work even if \$libdir does not exist |
| 24089 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 24090 | |
| 24091 | # Whether we need a single "-rpath" flag with a separated argument. |
| 24092 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 24093 | |
| 24094 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 24095 | # DIR into the resulting binary. |
| 24096 | hardcode_direct=$hardcode_direct |
| 24097 | |
| 24098 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 24099 | # DIR into the resulting binary and the resulting library dependency is |
| 24100 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 24101 | # library is relocated. |
| 24102 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 24103 | |
| 24104 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 24105 | # into the resulting binary. |
| 24106 | hardcode_minus_L=$hardcode_minus_L |
| 24107 | |
| 24108 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 24109 | # into the resulting binary. |
| 24110 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 24111 | |
| 24112 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 24113 | # into the library and all subsequent libraries and executables linked |
| 24114 | # against it. |
| 24115 | hardcode_automatic=$hardcode_automatic |
| 24116 | |
| 24117 | # Set to yes if linker adds runtime paths of dependent libraries |
| 24118 | # to runtime path list. |
| 24119 | inherit_rpath=$inherit_rpath |
| 24120 | |
| 24121 | # Whether libtool must link a program against all its dependency libraries. |
| 24122 | link_all_deplibs=$link_all_deplibs |
| 24123 | |
| 24124 | # Set to "yes" if exported symbols are required. |
| 24125 | always_export_symbols=$always_export_symbols |
| 24126 | |
| 24127 | # The commands to list exported symbols. |
| 24128 | export_symbols_cmds=$lt_export_symbols_cmds |
| 24129 | |
| 24130 | # Symbols that should not be listed in the preloaded symbols. |
| 24131 | exclude_expsyms=$lt_exclude_expsyms |
| 24132 | |
| 24133 | # Symbols that must always be exported. |
| 24134 | include_expsyms=$lt_include_expsyms |
| 24135 | |
| 24136 | # Commands necessary for linking programs (against libraries) with templates. |
| 24137 | prelink_cmds=$lt_prelink_cmds |
| 24138 | |
| 24139 | # Commands necessary for finishing linking programs. |
| 24140 | postlink_cmds=$lt_postlink_cmds |
| 24141 | |
| 24142 | # Specify filename containing input files. |
| 24143 | file_list_spec=$lt_file_list_spec |
| 24144 | |
| 24145 | # How to hardcode a shared library path into an executable. |
| 24146 | hardcode_action=$hardcode_action |
| 24147 | |
| 24148 | # The directories searched by this compiler when creating a shared library. |
| 24149 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 24150 | |
| 24151 | # Dependencies to place before and after the objects being linked to |
| 24152 | # create a shared library. |
| 24153 | predep_objects=$lt_predep_objects |
| 24154 | postdep_objects=$lt_postdep_objects |
| 24155 | predeps=$lt_predeps |
| 24156 | postdeps=$lt_postdeps |
| 24157 | |
| 24158 | # The library search path used internally by the compiler when linking |
| 24159 | # a shared library. |
| 24160 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 24161 | |
| 24162 | # ### END LIBTOOL CONFIG |
| 24163 | |
| 24164 | _LT_EOF |
| 24165 | |
| 24166 | cat <<'_LT_EOF' >> "$cfgfile" |
| 24167 | |
| 24168 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 24169 | |
| 24170 | # func_munge_path_list VARIABLE PATH |
| 24171 | # ----------------------------------- |
| 24172 | # VARIABLE is name of variable containing _space_ separated list of |
| 24173 | # directories to be munged by the contents of PATH, which is string |
| 24174 | # having a format: |
| 24175 | # "DIR[:DIR]:" |
| 24176 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 24177 | # ":DIR[:DIR]" |
| 24178 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 24179 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 24180 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 24181 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 24182 | # "DIR[:DIR]" |
| 24183 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 24184 | func_munge_path_list () |
| 24185 | { |
| 24186 | case x$2 in |
| 24187 | x) |
| 24188 | ;; |
| 24189 | *:) |
| 24190 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 24191 | ;; |
| 24192 | x:*) |
| 24193 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 24194 | ;; |
| 24195 | *::*) |
| 24196 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 24197 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 24198 | ;; |
| 24199 | *) |
| 24200 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 24201 | ;; |
| 24202 | esac |
| 24203 | } |
| 24204 | |
| 24205 | |
| 24206 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 24207 | func_cc_basename () |
| 24208 | { |
| 24209 | for cc_temp in $*""; do |
| 24210 | case $cc_temp in |
| 24211 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24212 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24213 | \-*) ;; |
| 24214 | *) break;; |
| 24215 | esac |
| 24216 | done |
| 24217 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 24218 | } |
| 24219 | |
| 24220 | |
| 24221 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 24222 | |
| 24223 | _LT_EOF |
| 24224 | |
| 24225 | case $host_os in |
| 24226 | aix3*) |
| 24227 | cat <<\_LT_EOF >> "$cfgfile" |
| 24228 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 24229 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 24230 | # vanish in a puff of smoke. |
| 24231 | if test set != "${COLLECT_NAMES+set}"; then |
| 24232 | COLLECT_NAMES= |
| 24233 | export COLLECT_NAMES |
| 24234 | fi |
| 24235 | _LT_EOF |
| 24236 | ;; |
| 24237 | esac |
| 24238 | |
| 24239 | |
| 24240 | |
| 24241 | ltmain=$ac_aux_dir/ltmain.sh |
| 24242 | |
| 24243 | |
| 24244 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 24245 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 24246 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 24247 | # is reportedly fixed, but why not run on old versions too? |
| 24248 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 24249 | || (rm -f "$cfgfile"; exit 1) |
| 24250 | |
| 24251 | mv -f "$cfgfile" "$ofile" || |
| 24252 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 24253 | chmod +x "$ofile" |
| 24254 | |
| 24255 | |
| 24256 | cat <<_LT_EOF >> "$ofile" |
| 24257 | |
| 24258 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 24259 | |
| 24260 | # The linker used to build libraries. |
| 24261 | LD=$lt_LD_CXX |
| 24262 | |
| 24263 | # How to create reloadable object files. |
| 24264 | reload_flag=$lt_reload_flag_CXX |
| 24265 | reload_cmds=$lt_reload_cmds_CXX |
| 24266 | |
| 24267 | # Commands used to build an old-style archive. |
| 24268 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 24269 | |
| 24270 | # A language specific compiler. |
| 24271 | CC=$lt_compiler_CXX |
| 24272 | |
| 24273 | # Is the compiler the GNU compiler? |
| 24274 | with_gcc=$GCC_CXX |
| 24275 | |
| 24276 | # Compiler flag to turn off builtin functions. |
| 24277 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 24278 | |
| 24279 | # Additional compiler flags for building library objects. |
| 24280 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 24281 | |
| 24282 | # How to pass a linker flag through the compiler. |
| 24283 | wl=$lt_lt_prog_compiler_wl_CXX |
| 24284 | |
| 24285 | # Compiler flag to prevent dynamic linking. |
| 24286 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 24287 | |
| 24288 | # Does compiler simultaneously support -c and -o options? |
| 24289 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 24290 | |
| 24291 | # Whether or not to add -lc for building shared libraries. |
| 24292 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 24293 | |
| 24294 | # Whether or not to disallow shared libs when runtime libs are static. |
| 24295 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 24296 | |
| 24297 | # Compiler flag to allow reflexive dlopens. |
| 24298 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 24299 | |
| 24300 | # Compiler flag to generate shared objects directly from archives. |
| 24301 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 24302 | |
| 24303 | # Whether the compiler copes with passing no objects directly. |
| 24304 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 24305 | |
| 24306 | # Create an old-style archive from a shared archive. |
| 24307 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 24308 | |
| 24309 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24310 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 24311 | |
| 24312 | # Commands used to build a shared archive. |
| 24313 | archive_cmds=$lt_archive_cmds_CXX |
| 24314 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 24315 | |
| 24316 | # Commands used to build a loadable module if different from building |
| 24317 | # a shared archive. |
| 24318 | module_cmds=$lt_module_cmds_CXX |
| 24319 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 24320 | |
| 24321 | # Whether we are building with GNU ld or not. |
| 24322 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 24323 | |
| 24324 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24325 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 24326 | |
| 24327 | # Flag that enforces no undefined symbols. |
| 24328 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 24329 | |
| 24330 | # Flag to hardcode \$libdir into a binary during linking. |
| 24331 | # This must work even if \$libdir does not exist |
| 24332 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 24333 | |
| 24334 | # Whether we need a single "-rpath" flag with a separated argument. |
| 24335 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 24336 | |
| 24337 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 24338 | # DIR into the resulting binary. |
| 24339 | hardcode_direct=$hardcode_direct_CXX |
| 24340 | |
| 24341 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 24342 | # DIR into the resulting binary and the resulting library dependency is |
| 24343 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 24344 | # library is relocated. |
| 24345 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 24346 | |
| 24347 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 24348 | # into the resulting binary. |
| 24349 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 24350 | |
| 24351 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 24352 | # into the resulting binary. |
| 24353 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 24354 | |
| 24355 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 24356 | # into the library and all subsequent libraries and executables linked |
| 24357 | # against it. |
| 24358 | hardcode_automatic=$hardcode_automatic_CXX |
| 24359 | |
| 24360 | # Set to yes if linker adds runtime paths of dependent libraries |
| 24361 | # to runtime path list. |
| 24362 | inherit_rpath=$inherit_rpath_CXX |
| 24363 | |
| 24364 | # Whether libtool must link a program against all its dependency libraries. |
| 24365 | link_all_deplibs=$link_all_deplibs_CXX |
| 24366 | |
| 24367 | # Set to "yes" if exported symbols are required. |
| 24368 | always_export_symbols=$always_export_symbols_CXX |
| 24369 | |
| 24370 | # The commands to list exported symbols. |
| 24371 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 24372 | |
| 24373 | # Symbols that should not be listed in the preloaded symbols. |
| 24374 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 24375 | |
| 24376 | # Symbols that must always be exported. |
| 24377 | include_expsyms=$lt_include_expsyms_CXX |
| 24378 | |
| 24379 | # Commands necessary for linking programs (against libraries) with templates. |
| 24380 | prelink_cmds=$lt_prelink_cmds_CXX |
| 24381 | |
| 24382 | # Commands necessary for finishing linking programs. |
| 24383 | postlink_cmds=$lt_postlink_cmds_CXX |
| 24384 | |
| 24385 | # Specify filename containing input files. |
| 24386 | file_list_spec=$lt_file_list_spec_CXX |
| 24387 | |
| 24388 | # How to hardcode a shared library path into an executable. |
| 24389 | hardcode_action=$hardcode_action_CXX |
| 24390 | |
| 24391 | # The directories searched by this compiler when creating a shared library. |
| 24392 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 24393 | |
| 24394 | # Dependencies to place before and after the objects being linked to |
| 24395 | # create a shared library. |
| 24396 | predep_objects=$lt_predep_objects_CXX |
| 24397 | postdep_objects=$lt_postdep_objects_CXX |
| 24398 | predeps=$lt_predeps_CXX |
| 24399 | postdeps=$lt_postdeps_CXX |
| 24400 | |
| 24401 | # The library search path used internally by the compiler when linking |
| 24402 | # a shared library. |
| 24403 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 24404 | |
| 24405 | # ### END LIBTOOL TAG CONFIG: CXX |
| 24406 | _LT_EOF |
| 24407 | |
| 24408 | ;; |
| 24409 | "po-directories":C) |
| 24410 | for ac_file in $CONFIG_FILES; do |
| 24411 | # Support "outfile[:infile[:infile...]]" |
| 24412 | case "$ac_file" in |
| 24413 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 24414 | esac |
| 24415 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 24416 | case "$ac_file" in */Makefile.in) |
| 24417 | # Adjust a relative srcdir. |
| 24418 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 24419 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
| 24420 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 24421 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 24422 | # In autoconf-2.50 it is called $srcdir. |
| 24423 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 24424 | case "$ac_given_srcdir" in |
| 24425 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 24426 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 24427 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 24428 | esac |
| 24429 | # Treat a directory as a PO directory if and only if it has a |
| 24430 | # POTFILES.in file. This allows packages to have multiple PO |
| 24431 | # directories under different names or in different locations. |
| 24432 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 24433 | rm -f "$ac_dir/POTFILES" |
| 24434 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 24435 | gt_tab=`printf '\t'` |
| 24436 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 24437 | POMAKEFILEDEPS="POTFILES.in" |
| 24438 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 24439 | # on $ac_dir but don't depend on user-specified configuration |
| 24440 | # parameters. |
| 24441 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 24442 | # The LINGUAS file contains the set of available languages. |
| 24443 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 24444 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 24445 | fi |
| 24446 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 24447 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
| 24448 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 24449 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 24450 | else |
| 24451 | # The set of available languages was given in configure.in. |
| 24452 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
| 24453 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 24454 | fi |
| 24455 | # Compute POFILES |
| 24456 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 24457 | # Compute UPDATEPOFILES |
| 24458 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 24459 | # Compute DUMMYPOFILES |
| 24460 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 24461 | # Compute GMOFILES |
| 24462 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 24463 | case "$ac_given_srcdir" in |
| 24464 | .) srcdirpre= ;; |
| 24465 | *) srcdirpre='$(srcdir)/' ;; |
| 24466 | esac |
| 24467 | POFILES= |
| 24468 | UPDATEPOFILES= |
| 24469 | DUMMYPOFILES= |
| 24470 | GMOFILES= |
| 24471 | for lang in $ALL_LINGUAS; do |
| 24472 | POFILES="$POFILES $srcdirpre$lang.po" |
| 24473 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 24474 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 24475 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 24476 | done |
| 24477 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 24478 | # environment variable. |
| 24479 | INST_LINGUAS= |
| 24480 | if test -n "$ALL_LINGUAS"; then |
| 24481 | for presentlang in $ALL_LINGUAS; do |
| 24482 | useit=no |
| 24483 | if test "%UNSET%" != "$LINGUAS"; then |
| 24484 | desiredlanguages="$LINGUAS" |
| 24485 | else |
| 24486 | desiredlanguages="$ALL_LINGUAS" |
| 24487 | fi |
| 24488 | for desiredlang in $desiredlanguages; do |
| 24489 | # Use the presentlang catalog if desiredlang is |
| 24490 | # a. equal to presentlang, or |
| 24491 | # b. a variant of presentlang (because in this case, |
| 24492 | # presentlang can be used as a fallback for messages |
| 24493 | # which are not translated in the desiredlang catalog). |
| 24494 | case "$desiredlang" in |
| 24495 | "$presentlang"*) useit=yes;; |
| 24496 | esac |
| 24497 | done |
| 24498 | if test $useit = yes; then |
| 24499 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 24500 | fi |
| 24501 | done |
| 24502 | fi |
| 24503 | CATALOGS= |
| 24504 | if test -n "$INST_LINGUAS"; then |
| 24505 | for lang in $INST_LINGUAS; do |
| 24506 | CATALOGS="$CATALOGS $lang.gmo" |
| 24507 | done |
| 24508 | fi |
| 24509 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 24510 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 24511 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 24512 | if test -f "$f"; then |
| 24513 | case "$f" in |
| 24514 | *.orig | *.bak | *~) ;; |
| 24515 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 24516 | esac |
| 24517 | fi |
| 24518 | done |
| 24519 | fi |
| 24520 | ;; |
| 24521 | esac |
| 24522 | done ;; |
| 24523 | "libvisual/lvconfig.h":C) |
| 24524 | outfile=libvisual/lvconfig.h-tmp |
| 24525 | cat > $outfile <<\_______EOF |
| 24526 | /* lvconfig.h |
| 24527 | * |
| 24528 | * This is a generated file. Please modify 'configure.ac' |
| 24529 | */ |
| 24530 | |
| 24531 | #ifndef __LV_CONFIG_H__ |
| 24532 | #define __LV_CONFIG_H__ |
| 24533 | |
| 24534 | _______EOF |
| 24535 | |
| 24536 | if test x$lv_have_iso_c_varargs = xyes ; then |
| 24537 | cat >>$outfile <<_______EOF |
| 24538 | #ifndef __cplusplus |
| 24539 | # define LV_HAVE_ISO_VARARGS (1) |
| 24540 | #endif |
| 24541 | _______EOF |
| 24542 | fi |
| 24543 | |
| 24544 | if test x$lv_have_gnuc_varargs = xyes ; then |
| 24545 | cat >>$outfile <<_______EOF |
| 24546 | |
| 24547 | /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi |
| 24548 | * is passed ISO vararg support is turned off, and there is no work |
| 24549 | * around to turn it on, so we unconditionally turn it off. |
| 24550 | */ |
| 24551 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 95 |
| 24552 | # undef LV_HAVE_ISO_VARARGS |
| 24553 | #endif |
| 24554 | |
| 24555 | #define LV_HAVE_GNUC_VARARGS (1) |
| 24556 | _______EOF |
| 24557 | fi |
| 24558 | |
| 24559 | if test x$bigendian = xyes ; then |
| 24560 | cat >>$outfile <<_______EOF |
| 24561 | |
| 24562 | #define VISUAL_BIG_ENDIAN (1) |
| 24563 | #define VISUAL_LITTLE_ENDIAN (0) |
| 24564 | _______EOF |
| 24565 | else |
| 24566 | cat >>$outfile <<_______EOF |
| 24567 | |
| 24568 | #define VISUAL_BIG_ENDIAN (0) |
| 24569 | #define VISUAL_LITTLE_ENDIAN (1) |
| 24570 | _______EOF |
| 24571 | fi |
| 24572 | |
| 24573 | cat >>$outfile <<_______EOF |
| 24574 | |
| 24575 | typedef unsigned $visual_size_type visual_size_t; |
| 24576 | #define VISUAL_SIZE_T_FORMAT $visual_size_format |
| 24577 | _______EOF |
| 24578 | |
| 24579 | if test x$fastfprng = xyes ; then |
| 24580 | cat >>$outfile <<_______EOF |
| 24581 | |
| 24582 | #define VISUAL_RANDOM_FAST_FP_RNG (1) |
| 24583 | _______EOF |
| 24584 | fi |
| 24585 | |
| 24586 | if test x$lv_mips = xyes ; then |
| 24587 | cat >>$outfile <<_______EOF |
| 24588 | |
| 24589 | #define VISUAL_ARCH_MIPS |
| 24590 | _______EOF |
| 24591 | fi |
| 24592 | |
| 24593 | if test x$lv_alpha = xyes ; then |
| 24594 | cat >>$outfile <<_______EOF |
| 24595 | |
| 24596 | #define VISUAL_ARCH_ALPHA |
| 24597 | _______EOF |
| 24598 | fi |
| 24599 | |
| 24600 | if test x$lv_sparc = xyes ; then |
| 24601 | cat >>$outfile <<_______EOF |
| 24602 | |
| 24603 | #define VISUAL_ARCH_SPARC |
| 24604 | _______EOF |
| 24605 | fi |
| 24606 | |
| 24607 | if test x$lv_ix86 = xyes ; then |
| 24608 | cat >>$outfile <<_______EOF |
| 24609 | |
| 24610 | #define VISUAL_ARCH_X86 |
| 24611 | _______EOF |
| 24612 | fi |
| 24613 | |
| 24614 | if test x$lv_x86_64 = xyes ; then |
| 24615 | cat >>$outfile <<_______EOF |
| 24616 | |
| 24617 | #define VISUAL_ARCH_X86_64 |
| 24618 | _______EOF |
| 24619 | fi |
| 24620 | |
| 24621 | if test x$lv_powerpc = xyes ; then |
| 24622 | cat >>$outfile <<_______EOF |
| 24623 | |
| 24624 | #define VISUAL_ARCH_POWERPC |
| 24625 | _______EOF |
| 24626 | fi |
| 24627 | |
| 24628 | if test x$lv_arch_unknown = xyes ; then |
| 24629 | cat >>$outfile <<_______EOF |
| 24630 | |
| 24631 | #define VISUAL_ARCH_UNKNOWN |
| 24632 | _______EOF |
| 24633 | fi |
| 24634 | |
| 24635 | if test x$lv_linux = xyes ; then |
| 24636 | cat >>$outfile <<_______EOF |
| 24637 | |
| 24638 | #define VISUAL_OS_LINUX |
| 24639 | _______EOF |
| 24640 | fi |
| 24641 | |
| 24642 | if test x$lv_win32 = xyes ; then |
| 24643 | cat >>$outfile <<_______EOF |
| 24644 | |
| 24645 | #define VISUAL_OS_WIN32 |
| 24646 | _______EOF |
| 24647 | fi |
| 24648 | |
| 24649 | if test x$lv_hpux = xyes ; then |
| 24650 | cat >>$outfile <<_______EOF |
| 24651 | |
| 24652 | #define VISUAL_OS_HPUX |
| 24653 | _______EOF |
| 24654 | fi |
| 24655 | |
| 24656 | if test x$lv_aix = xyes ; then |
| 24657 | cat >>$outfile <<_______EOF |
| 24658 | |
| 24659 | #define VISUAL_OS_AIX |
| 24660 | _______EOF |
| 24661 | fi |
| 24662 | |
| 24663 | if test x$lv_beos = xyes ; then |
| 24664 | cat >>$outfile <<_______EOF |
| 24665 | |
| 24666 | #define VISUAL_OS_BEOS |
| 24667 | _______EOF |
| 24668 | fi |
| 24669 | |
| 24670 | if test x$lv_osf = xyes ; then |
| 24671 | cat >>$outfile <<_______EOF |
| 24672 | |
| 24673 | #define VISUAL_OS_OSF |
| 24674 | _______EOF |
| 24675 | fi |
| 24676 | |
| 24677 | if test x$lv_irix = xyes ; then |
| 24678 | cat >>$outfile <<_______EOF |
| 24679 | |
| 24680 | #define VISUAL_OS_IRIX |
| 24681 | _______EOF |
| 24682 | fi |
| 24683 | |
| 24684 | if test x$lv_sunos = xyes ; then |
| 24685 | cat >>$outfile <<_______EOF |
| 24686 | |
| 24687 | #define VISUAL_OS_SUNOS |
| 24688 | _______EOF |
| 24689 | fi |
| 24690 | |
| 24691 | if test x$lv_solaris = xyes ; then |
| 24692 | cat >>$outfile <<_______EOF |
| 24693 | |
| 24694 | #define VISUAL_OS_SOLARIS |
| 24695 | _______EOF |
| 24696 | fi |
| 24697 | |
| 24698 | if test x$lv_sco = xyes ; then |
| 24699 | cat >>$outfile <<_______EOF |
| 24700 | |
| 24701 | #define VISUAL_OS_SCO |
| 24702 | _______EOF |
| 24703 | fi |
| 24704 | |
| 24705 | if test x$lv_freebsd = xyes ; then |
| 24706 | cat >>$outfile <<_______EOF |
| 24707 | |
| 24708 | #define VISUAL_OS_FREEBSD |
| 24709 | _______EOF |
| 24710 | fi |
| 24711 | |
| 24712 | if test x$lv_netbsd = xyes ; then |
| 24713 | cat >>$outfile <<_______EOF |
| 24714 | |
| 24715 | #define VISUAL_OS_NETBSD |
| 24716 | _______EOF |
| 24717 | fi |
| 24718 | |
| 24719 | if test x$lv_openbsd = xyes ; then |
| 24720 | cat >>$outfile <<_______EOF |
| 24721 | |
| 24722 | #define VISUAL_OS_OPENBSD |
| 24723 | _______EOF |
| 24724 | fi |
| 24725 | |
| 24726 | if test x$lv_darwin = xyes ; then |
| 24727 | cat >>$outfile <<_______EOF |
| 24728 | |
| 24729 | #define VISUAL_OS_DARWIN |
| 24730 | _______EOF |
| 24731 | fi |
| 24732 | |
| 24733 | if test x$lv_os_unknown = xyes ; then |
| 24734 | cat >>$outfile <<_______EOF |
| 24735 | |
| 24736 | #define VISUAL_OS_UNKNOWN |
| 24737 | _______EOF |
| 24738 | fi |
| 24739 | |
| 24740 | if test x$lv_cygwin = xyes ; then |
| 24741 | cat >>$outfile <<_______EOF |
| 24742 | |
| 24743 | #define VISUAL_WITH_CYGWIN |
| 24744 | _______EOF |
| 24745 | fi |
| 24746 | |
| 24747 | if test x$lv_mingw = xyes ; then |
| 24748 | cat >>$outfile <<_______EOF |
| 24749 | |
| 24750 | #define VISUAL_WITH_MINGW |
| 24751 | _______EOF |
| 24752 | fi |
| 24753 | |
| 24754 | if test x$lv_enable_threads = xyes && test x$lv_have_threads != xnone ; then |
| 24755 | cat >>$outfile <<_______EOF |
| 24756 | |
| 24757 | #define VISUAL_HAVE_THREADS |
| 24758 | _______EOF |
| 24759 | case $lv_have_threads in |
| 24760 | win32) |
| 24761 | cat >>$outfile <<_______EOF |
| 24762 | |
| 24763 | #define VISUAL_THREAD_MODEL_WIN32 |
| 24764 | _______EOF |
| 24765 | ;; |
| 24766 | posix) |
| 24767 | cat >>$outfile <<_______EOF |
| 24768 | |
| 24769 | #define VISUAL_THREAD_MODEL_POSIX |
| 24770 | _______EOF |
| 24771 | ;; |
| 24772 | dce) |
| 24773 | cat >>$outfile <<_______EOF |
| 24774 | |
| 24775 | #define VISUAL_THREAD_MODEL_DCE |
| 24776 | _______EOF |
| 24777 | ;; |
| 24778 | gthread2) |
| 24779 | cat >>$outfile <<_______EOF |
| 24780 | #define VISUAL_THREAD_MODEL_GTHREAD2 |
| 24781 | _______EOF |
| 24782 | ;; |
| 24783 | *) |
| 24784 | ;; |
| 24785 | esac |
| 24786 | fi |
| 24787 | |
| 24788 | echo >>$outfile |
| 24789 | echo >>$outfile |
| 24790 | echo "#endif /* LV_CONFIG_H */" >>$outfile |
| 24791 | echo >>$outfile |
| 24792 | |
| 24793 | if cmp -s $outfile libvisual/lvconfig.h; then |
| 24794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lvconfig.h is unchanged" >&5 |
| 24795 | printf "%s\n" "$as_me: lvconfig.h is unchanged" >&6;} |
| 24796 | rm -f $outfile |
| 24797 | else |
| 24798 | mv $outfile libvisual/lvconfig.h |
| 24799 | fi |
| 24800 | |
| 24801 | ;; |
| 24802 | |
| 24803 | esac |
| 24804 | done # for ac_tag |
| 24805 | |
| 24806 | |
| 24807 | as_fn_exit 0 |
| 24808 | _ACEOF |
| 24809 | ac_clean_files=$ac_clean_files_save |
| 24810 | |
| 24811 | test $ac_write_fail = 0 || |
| 24812 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 24813 | |
| 24814 | |
| 24815 | # configure is writing to config.log, and then calls config.status. |
| 24816 | # config.status does its own redirection, appending to config.log. |
| 24817 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24818 | # by configure, so config.status won't be able to write to it; its |
| 24819 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24820 | # effectively closing config.log, so it can be properly (re)opened and |
| 24821 | # appended to by config.status. When coming back to configure, we |
| 24822 | # need to make the FD available again. |
| 24823 | if test "$no_create" != yes; then |
| 24824 | ac_cs_success=: |
| 24825 | ac_config_status_args= |
| 24826 | test "$silent" = yes && |
| 24827 | ac_config_status_args="$ac_config_status_args --quiet" |
| 24828 | exec 5>/dev/null |
| 24829 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 24830 | exec 5>>config.log |
| 24831 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24832 | # would make configure fail if this is the last instruction. |
| 24833 | $ac_cs_success || as_fn_exit 1 |
| 24834 | fi |
| 24835 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 24836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 24837 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 24838 | fi |
| 24839 | |
| 24840 | |
| 24841 | plugins_base_dir=`eval echo \`eval echo ${LIBVISUAL_PLUGINS_BASE_DIR}\`` |
| 24842 | |
| 24843 | echo " |
| 24844 | ===================================================================== |
| 24845 | LIBVISUAL, AN AUDIO VISUALISATION ABSTRACTION LIBRARY, VERSION $VERSION |
| 24846 | ===================================================================== |
| 24847 | |
| 24848 | install path : ${prefix}/lib |
| 24849 | plugins base directory : $plugins_base_dir |
| 24850 | compiler : ${CC} |
| 24851 | debug enabled : ${debug} |
| 24852 | " |
| 24853 |