| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.71 for flatpak-builder 1.4.10. |
| 4 | # |
| 5 | # Report bugs to <https://github.com/flatpak/flatpak-builder/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/flatpak/flatpak-builder/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='flatpak-builder' |
| 623 | PACKAGE_TARNAME='flatpak-builder' |
| 624 | PACKAGE_VERSION='1.4.10' |
| 625 | PACKAGE_STRING='flatpak-builder 1.4.10' |
| 626 | PACKAGE_BUGREPORT='https://github.com/flatpak/flatpak-builder/issues' |
| 627 | PACKAGE_URL='http://flatpak.org/' |
| 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 | ac_unique_file="src/builder-main.c" |
| 662 | gt_needs= |
| 663 | ac_subst_vars='am__EXEEXT_FALSE |
| 664 | am__EXEEXT_TRUE |
| 665 | LTLIBOBJS |
| 666 | LIBOBJS |
| 667 | FLATPAK_BUILDER_VERSION |
| 668 | installed_testdir |
| 669 | installed_test_metadir |
| 670 | ENABLE_ALWAYS_BUILD_TESTS_FALSE |
| 671 | ENABLE_ALWAYS_BUILD_TESTS_TRUE |
| 672 | ENABLE_INSTALLED_TESTS_FALSE |
| 673 | ENABLE_INSTALLED_TESTS_TRUE |
| 674 | XMLTO_FLAGS |
| 675 | DOCBOOK_DOCS_ENABLED_FALSE |
| 676 | DOCBOOK_DOCS_ENABLED_TRUE |
| 677 | XMLTO |
| 678 | BUILD_DOCUMENTATION_FALSE |
| 679 | BUILD_DOCUMENTATION_TRUE |
| 680 | XMLCATALOG |
| 681 | XML_CATALOG_FILE |
| 682 | XSLTPROC |
| 683 | YAML_LIBS |
| 684 | YAML_CFLAGS |
| 685 | LIBDW_LIBS |
| 686 | LIBDW_CFLAGS |
| 687 | WITH_SYSTEM_DEBUGEDIT_FALSE |
| 688 | WITH_SYSTEM_DEBUGEDIT_TRUE |
| 689 | DEBUGEDIT |
| 690 | LIBELF_LIBS |
| 691 | LIBELF_CFLAGS |
| 692 | BASE_LIBS |
| 693 | BASE_CFLAGS |
| 694 | PKG_CONFIG_LIBDIR |
| 695 | PKG_CONFIG_PATH |
| 696 | PKG_CONFIG |
| 697 | VALGRIND_CHECK_RULES |
| 698 | VALGRIND_HAVE_TOOL_memcheck |
| 699 | VALGRIND_ENABLED |
| 700 | VALGRIND_ENABLED_FALSE |
| 701 | VALGRIND_ENABLED_TRUE |
| 702 | VALGRIND |
| 703 | WARN_CFLAGS |
| 704 | MAINT |
| 705 | MAINTAINER_MODE_FALSE |
| 706 | MAINTAINER_MODE_TRUE |
| 707 | POSUB |
| 708 | LTLIBINTL |
| 709 | LIBINTL |
| 710 | INTLLIBS |
| 711 | LTLIBICONV |
| 712 | LIBICONV |
| 713 | INTL_MACOSX_LIBS |
| 714 | CPP |
| 715 | XGETTEXT_EXTRA_OPTIONS |
| 716 | MSGMERGE |
| 717 | XGETTEXT_015 |
| 718 | XGETTEXT |
| 719 | GMSGFMT_015 |
| 720 | MSGFMT_015 |
| 721 | GMSGFMT |
| 722 | MSGFMT |
| 723 | GETTEXT_MACRO_VERSION |
| 724 | USE_NLS |
| 725 | AM_BACKSLASH |
| 726 | AM_DEFAULT_VERBOSITY |
| 727 | AM_DEFAULT_V |
| 728 | AM_V |
| 729 | CSCOPE |
| 730 | ETAGS |
| 731 | CTAGS |
| 732 | am__fastdepCC_FALSE |
| 733 | am__fastdepCC_TRUE |
| 734 | CCDEPMODE |
| 735 | am__nodep |
| 736 | AMDEPBACKSLASH |
| 737 | AMDEP_FALSE |
| 738 | AMDEP_TRUE |
| 739 | am__include |
| 740 | DEPDIR |
| 741 | am__untar |
| 742 | am__tar |
| 743 | AMTAR |
| 744 | am__leading_dot |
| 745 | SET_MAKE |
| 746 | mkdir_p |
| 747 | MKDIR_P |
| 748 | INSTALL_STRIP_PROGRAM |
| 749 | install_sh |
| 750 | MAKEINFO |
| 751 | AUTOHEADER |
| 752 | AUTOMAKE |
| 753 | AUTOCONF |
| 754 | ACLOCAL |
| 755 | VERSION |
| 756 | PACKAGE |
| 757 | CYGPATH_W |
| 758 | am__isrc |
| 759 | INSTALL_DATA |
| 760 | INSTALL_SCRIPT |
| 761 | INSTALL_PROGRAM |
| 762 | LT_SYS_LIBRARY_PATH |
| 763 | OTOOL64 |
| 764 | OTOOL |
| 765 | LIPO |
| 766 | NMEDIT |
| 767 | DSYMUTIL |
| 768 | MANIFEST_TOOL |
| 769 | RANLIB |
| 770 | STRIP |
| 771 | ac_ct_AR |
| 772 | AR |
| 773 | DLLTOOL |
| 774 | OBJDUMP |
| 775 | FILECMD |
| 776 | LN_S |
| 777 | NM |
| 778 | ac_ct_DUMPBIN |
| 779 | DUMPBIN |
| 780 | LD |
| 781 | FGREP |
| 782 | EGREP |
| 783 | GREP |
| 784 | SED |
| 785 | host_os |
| 786 | host_vendor |
| 787 | host_cpu |
| 788 | host |
| 789 | build_os |
| 790 | build_vendor |
| 791 | build_cpu |
| 792 | build |
| 793 | LIBTOOL |
| 794 | APPSTREAMCLI |
| 795 | AWK |
| 796 | FLATPAK |
| 797 | OBJEXT |
| 798 | EXEEXT |
| 799 | ac_ct_CC |
| 800 | CPPFLAGS |
| 801 | LDFLAGS |
| 802 | CFLAGS |
| 803 | CC |
| 804 | target_alias |
| 805 | host_alias |
| 806 | build_alias |
| 807 | LIBS |
| 808 | ECHO_T |
| 809 | ECHO_N |
| 810 | ECHO_C |
| 811 | DEFS |
| 812 | mandir |
| 813 | localedir |
| 814 | libdir |
| 815 | psdir |
| 816 | pdfdir |
| 817 | dvidir |
| 818 | htmldir |
| 819 | infodir |
| 820 | docdir |
| 821 | oldincludedir |
| 822 | includedir |
| 823 | runstatedir |
| 824 | localstatedir |
| 825 | sharedstatedir |
| 826 | sysconfdir |
| 827 | datadir |
| 828 | datarootdir |
| 829 | libexecdir |
| 830 | sbindir |
| 831 | bindir |
| 832 | program_transform_name |
| 833 | prefix |
| 834 | exec_prefix |
| 835 | PACKAGE_URL |
| 836 | PACKAGE_BUGREPORT |
| 837 | PACKAGE_STRING |
| 838 | PACKAGE_VERSION |
| 839 | PACKAGE_TARNAME |
| 840 | PACKAGE_NAME |
| 841 | PATH_SEPARATOR |
| 842 | SHELL |
| 843 | am__quote' |
| 844 | ac_subst_files='' |
| 845 | ac_user_opts=' |
| 846 | enable_option_checking |
| 847 | enable_largefile |
| 848 | enable_otmpfile |
| 849 | enable_wrpseudo_compat |
| 850 | enable_static |
| 851 | enable_shared |
| 852 | with_pic |
| 853 | enable_fast_install |
| 854 | with_aix_soname |
| 855 | with_gnu_ld |
| 856 | with_sysroot |
| 857 | enable_libtool_lock |
| 858 | enable_dependency_tracking |
| 859 | enable_silent_rules |
| 860 | enable_nls |
| 861 | enable_rpath |
| 862 | with_libiconv_prefix |
| 863 | with_libintl_prefix |
| 864 | enable_maintainer_mode |
| 865 | enable_valgrind |
| 866 | with_system_debugedit |
| 867 | with_yaml |
| 868 | enable_documentation |
| 869 | with_xml_catalog |
| 870 | enable_docbook_docs |
| 871 | with_fuse |
| 872 | enable_installed_tests |
| 873 | enable_always_build_tests |
| 874 | ' |
| 875 | ac_precious_vars='build_alias |
| 876 | host_alias |
| 877 | target_alias |
| 878 | CC |
| 879 | CFLAGS |
| 880 | LDFLAGS |
| 881 | LIBS |
| 882 | CPPFLAGS |
| 883 | LT_SYS_LIBRARY_PATH |
| 884 | CPP |
| 885 | PKG_CONFIG |
| 886 | PKG_CONFIG_PATH |
| 887 | PKG_CONFIG_LIBDIR |
| 888 | BASE_CFLAGS |
| 889 | BASE_LIBS |
| 890 | LIBELF_CFLAGS |
| 891 | LIBELF_LIBS |
| 892 | DEBUGEDIT |
| 893 | LIBDW_CFLAGS |
| 894 | LIBDW_LIBS |
| 895 | YAML_CFLAGS |
| 896 | YAML_LIBS |
| 897 | XMLTO |
| 898 | XMLTO_FLAGS' |
| 899 | |
| 900 | |
| 901 | # Initialize some variables set by options. |
| 902 | ac_init_help= |
| 903 | ac_init_version=false |
| 904 | ac_unrecognized_opts= |
| 905 | ac_unrecognized_sep= |
| 906 | # The variables have the same names as the options, with |
| 907 | # dashes changed to underlines. |
| 908 | cache_file=/dev/null |
| 909 | exec_prefix=NONE |
| 910 | no_create= |
| 911 | no_recursion= |
| 912 | prefix=NONE |
| 913 | program_prefix=NONE |
| 914 | program_suffix=NONE |
| 915 | program_transform_name=s,x,x, |
| 916 | silent= |
| 917 | site= |
| 918 | srcdir= |
| 919 | verbose= |
| 920 | x_includes=NONE |
| 921 | x_libraries=NONE |
| 922 | |
| 923 | # Installation directory options. |
| 924 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 925 | # and all the variables that are supposed to be based on exec_prefix |
| 926 | # by default will actually change. |
| 927 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 928 | # (The list follows the same order as the GNU Coding Standards.) |
| 929 | bindir='${exec_prefix}/bin' |
| 930 | sbindir='${exec_prefix}/sbin' |
| 931 | libexecdir='${exec_prefix}/libexec' |
| 932 | datarootdir='${prefix}/share' |
| 933 | datadir='${datarootdir}' |
| 934 | sysconfdir='${prefix}/etc' |
| 935 | sharedstatedir='${prefix}/com' |
| 936 | localstatedir='${prefix}/var' |
| 937 | runstatedir='${localstatedir}/run' |
| 938 | includedir='${prefix}/include' |
| 939 | oldincludedir='/usr/include' |
| 940 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 941 | infodir='${datarootdir}/info' |
| 942 | htmldir='${docdir}' |
| 943 | dvidir='${docdir}' |
| 944 | pdfdir='${docdir}' |
| 945 | psdir='${docdir}' |
| 946 | libdir='${exec_prefix}/lib' |
| 947 | localedir='${datarootdir}/locale' |
| 948 | mandir='${datarootdir}/man' |
| 949 | |
| 950 | ac_prev= |
| 951 | ac_dashdash= |
| 952 | for ac_option |
| 953 | do |
| 954 | # If the previous option needs an argument, assign it. |
| 955 | if test -n "$ac_prev"; then |
| 956 | eval $ac_prev=\$ac_option |
| 957 | ac_prev= |
| 958 | continue |
| 959 | fi |
| 960 | |
| 961 | case $ac_option in |
| 962 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 963 | *=) ac_optarg= ;; |
| 964 | *) ac_optarg=yes ;; |
| 965 | esac |
| 966 | |
| 967 | case $ac_dashdash$ac_option in |
| 968 | --) |
| 969 | ac_dashdash=yes ;; |
| 970 | |
| 971 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 972 | ac_prev=bindir ;; |
| 973 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 974 | bindir=$ac_optarg ;; |
| 975 | |
| 976 | -build | --build | --buil | --bui | --bu) |
| 977 | ac_prev=build_alias ;; |
| 978 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 979 | build_alias=$ac_optarg ;; |
| 980 | |
| 981 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 982 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 983 | ac_prev=cache_file ;; |
| 984 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 985 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 986 | cache_file=$ac_optarg ;; |
| 987 | |
| 988 | --config-cache | -C) |
| 989 | cache_file=config.cache ;; |
| 990 | |
| 991 | -datadir | --datadir | --datadi | --datad) |
| 992 | ac_prev=datadir ;; |
| 993 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 994 | datadir=$ac_optarg ;; |
| 995 | |
| 996 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 997 | | --dataroo | --dataro | --datar) |
| 998 | ac_prev=datarootdir ;; |
| 999 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1000 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1001 | datarootdir=$ac_optarg ;; |
| 1002 | |
| 1003 | -disable-* | --disable-*) |
| 1004 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1005 | # Reject names that are not valid shell variable names. |
| 1006 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1007 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1008 | ac_useropt_orig=$ac_useropt |
| 1009 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1010 | case $ac_user_opts in |
| 1011 | *" |
| 1012 | "enable_$ac_useropt" |
| 1013 | "*) ;; |
| 1014 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1015 | ac_unrecognized_sep=', ';; |
| 1016 | esac |
| 1017 | eval enable_$ac_useropt=no ;; |
| 1018 | |
| 1019 | -docdir | --docdir | --docdi | --doc | --do) |
| 1020 | ac_prev=docdir ;; |
| 1021 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1022 | docdir=$ac_optarg ;; |
| 1023 | |
| 1024 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1025 | ac_prev=dvidir ;; |
| 1026 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1027 | dvidir=$ac_optarg ;; |
| 1028 | |
| 1029 | -enable-* | --enable-*) |
| 1030 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1031 | # Reject names that are not valid shell variable names. |
| 1032 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1033 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1034 | ac_useropt_orig=$ac_useropt |
| 1035 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1036 | case $ac_user_opts in |
| 1037 | *" |
| 1038 | "enable_$ac_useropt" |
| 1039 | "*) ;; |
| 1040 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1041 | ac_unrecognized_sep=', ';; |
| 1042 | esac |
| 1043 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1044 | |
| 1045 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1046 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1047 | | --exec | --exe | --ex) |
| 1048 | ac_prev=exec_prefix ;; |
| 1049 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1050 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1051 | | --exec=* | --exe=* | --ex=*) |
| 1052 | exec_prefix=$ac_optarg ;; |
| 1053 | |
| 1054 | -gas | --gas | --ga | --g) |
| 1055 | # Obsolete; use --with-gas. |
| 1056 | with_gas=yes ;; |
| 1057 | |
| 1058 | -help | --help | --hel | --he | -h) |
| 1059 | ac_init_help=long ;; |
| 1060 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1061 | ac_init_help=recursive ;; |
| 1062 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1063 | ac_init_help=short ;; |
| 1064 | |
| 1065 | -host | --host | --hos | --ho) |
| 1066 | ac_prev=host_alias ;; |
| 1067 | -host=* | --host=* | --hos=* | --ho=*) |
| 1068 | host_alias=$ac_optarg ;; |
| 1069 | |
| 1070 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1071 | ac_prev=htmldir ;; |
| 1072 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1073 | | --ht=*) |
| 1074 | htmldir=$ac_optarg ;; |
| 1075 | |
| 1076 | -includedir | --includedir | --includedi | --included | --include \ |
| 1077 | | --includ | --inclu | --incl | --inc) |
| 1078 | ac_prev=includedir ;; |
| 1079 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1080 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1081 | includedir=$ac_optarg ;; |
| 1082 | |
| 1083 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1084 | ac_prev=infodir ;; |
| 1085 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1086 | infodir=$ac_optarg ;; |
| 1087 | |
| 1088 | -libdir | --libdir | --libdi | --libd) |
| 1089 | ac_prev=libdir ;; |
| 1090 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1091 | libdir=$ac_optarg ;; |
| 1092 | |
| 1093 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1094 | | --libexe | --libex | --libe) |
| 1095 | ac_prev=libexecdir ;; |
| 1096 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1097 | | --libexe=* | --libex=* | --libe=*) |
| 1098 | libexecdir=$ac_optarg ;; |
| 1099 | |
| 1100 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1101 | ac_prev=localedir ;; |
| 1102 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1103 | localedir=$ac_optarg ;; |
| 1104 | |
| 1105 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1106 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1107 | ac_prev=localstatedir ;; |
| 1108 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1109 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1110 | localstatedir=$ac_optarg ;; |
| 1111 | |
| 1112 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1113 | ac_prev=mandir ;; |
| 1114 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1115 | mandir=$ac_optarg ;; |
| 1116 | |
| 1117 | -nfp | --nfp | --nf) |
| 1118 | # Obsolete; use --without-fp. |
| 1119 | with_fp=no ;; |
| 1120 | |
| 1121 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1122 | | --no-cr | --no-c | -n) |
| 1123 | no_create=yes ;; |
| 1124 | |
| 1125 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1126 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1127 | no_recursion=yes ;; |
| 1128 | |
| 1129 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1130 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1131 | | --oldin | --oldi | --old | --ol | --o) |
| 1132 | ac_prev=oldincludedir ;; |
| 1133 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1134 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1135 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1136 | oldincludedir=$ac_optarg ;; |
| 1137 | |
| 1138 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1139 | ac_prev=prefix ;; |
| 1140 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1141 | prefix=$ac_optarg ;; |
| 1142 | |
| 1143 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1144 | | --program-pre | --program-pr | --program-p) |
| 1145 | ac_prev=program_prefix ;; |
| 1146 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1147 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1148 | program_prefix=$ac_optarg ;; |
| 1149 | |
| 1150 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1151 | | --program-suf | --program-su | --program-s) |
| 1152 | ac_prev=program_suffix ;; |
| 1153 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1154 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1155 | program_suffix=$ac_optarg ;; |
| 1156 | |
| 1157 | -program-transform-name | --program-transform-name \ |
| 1158 | | --program-transform-nam | --program-transform-na \ |
| 1159 | | --program-transform-n | --program-transform- \ |
| 1160 | | --program-transform | --program-transfor \ |
| 1161 | | --program-transfo | --program-transf \ |
| 1162 | | --program-trans | --program-tran \ |
| 1163 | | --progr-tra | --program-tr | --program-t) |
| 1164 | ac_prev=program_transform_name ;; |
| 1165 | -program-transform-name=* | --program-transform-name=* \ |
| 1166 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1167 | | --program-transform-n=* | --program-transform-=* \ |
| 1168 | | --program-transform=* | --program-transfor=* \ |
| 1169 | | --program-transfo=* | --program-transf=* \ |
| 1170 | | --program-trans=* | --program-tran=* \ |
| 1171 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1172 | program_transform_name=$ac_optarg ;; |
| 1173 | |
| 1174 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1175 | ac_prev=pdfdir ;; |
| 1176 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1177 | pdfdir=$ac_optarg ;; |
| 1178 | |
| 1179 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1180 | ac_prev=psdir ;; |
| 1181 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1182 | psdir=$ac_optarg ;; |
| 1183 | |
| 1184 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1185 | | -silent | --silent | --silen | --sile | --sil) |
| 1186 | silent=yes ;; |
| 1187 | |
| 1188 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1189 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1190 | | --run | --ru | --r) |
| 1191 | ac_prev=runstatedir ;; |
| 1192 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1193 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1194 | | --run=* | --ru=* | --r=*) |
| 1195 | runstatedir=$ac_optarg ;; |
| 1196 | |
| 1197 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1198 | ac_prev=sbindir ;; |
| 1199 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1200 | | --sbi=* | --sb=*) |
| 1201 | sbindir=$ac_optarg ;; |
| 1202 | |
| 1203 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1204 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1205 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1206 | | --sha | --sh) |
| 1207 | ac_prev=sharedstatedir ;; |
| 1208 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1209 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1210 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1211 | | --sha=* | --sh=*) |
| 1212 | sharedstatedir=$ac_optarg ;; |
| 1213 | |
| 1214 | -site | --site | --sit) |
| 1215 | ac_prev=site ;; |
| 1216 | -site=* | --site=* | --sit=*) |
| 1217 | site=$ac_optarg ;; |
| 1218 | |
| 1219 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1220 | ac_prev=srcdir ;; |
| 1221 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1222 | srcdir=$ac_optarg ;; |
| 1223 | |
| 1224 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1225 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1226 | ac_prev=sysconfdir ;; |
| 1227 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1228 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1229 | sysconfdir=$ac_optarg ;; |
| 1230 | |
| 1231 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1232 | ac_prev=target_alias ;; |
| 1233 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1234 | target_alias=$ac_optarg ;; |
| 1235 | |
| 1236 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1237 | verbose=yes ;; |
| 1238 | |
| 1239 | -version | --version | --versio | --versi | --vers | -V) |
| 1240 | ac_init_version=: ;; |
| 1241 | |
| 1242 | -with-* | --with-*) |
| 1243 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1244 | # Reject names that are not valid shell variable names. |
| 1245 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1246 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1247 | ac_useropt_orig=$ac_useropt |
| 1248 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1249 | case $ac_user_opts in |
| 1250 | *" |
| 1251 | "with_$ac_useropt" |
| 1252 | "*) ;; |
| 1253 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1254 | ac_unrecognized_sep=', ';; |
| 1255 | esac |
| 1256 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1257 | |
| 1258 | -without-* | --without-*) |
| 1259 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1260 | # Reject names that are not valid shell variable names. |
| 1261 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1262 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1263 | ac_useropt_orig=$ac_useropt |
| 1264 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1265 | case $ac_user_opts in |
| 1266 | *" |
| 1267 | "with_$ac_useropt" |
| 1268 | "*) ;; |
| 1269 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1270 | ac_unrecognized_sep=', ';; |
| 1271 | esac |
| 1272 | eval with_$ac_useropt=no ;; |
| 1273 | |
| 1274 | --x) |
| 1275 | # Obsolete; use --with-x. |
| 1276 | with_x=yes ;; |
| 1277 | |
| 1278 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1279 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1280 | ac_prev=x_includes ;; |
| 1281 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1282 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1283 | x_includes=$ac_optarg ;; |
| 1284 | |
| 1285 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1286 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1287 | ac_prev=x_libraries ;; |
| 1288 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1289 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1290 | x_libraries=$ac_optarg ;; |
| 1291 | |
| 1292 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1293 | Try \`$0 --help' for more information" |
| 1294 | ;; |
| 1295 | |
| 1296 | *=*) |
| 1297 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1298 | # Reject names that are not valid shell variable names. |
| 1299 | case $ac_envvar in #( |
| 1300 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1301 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1302 | esac |
| 1303 | eval $ac_envvar=\$ac_optarg |
| 1304 | export $ac_envvar ;; |
| 1305 | |
| 1306 | *) |
| 1307 | # FIXME: should be removed in autoconf 3.0. |
| 1308 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1309 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1310 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1311 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1312 | ;; |
| 1313 | |
| 1314 | esac |
| 1315 | done |
| 1316 | |
| 1317 | if test -n "$ac_prev"; then |
| 1318 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1319 | as_fn_error $? "missing argument to $ac_option" |
| 1320 | fi |
| 1321 | |
| 1322 | if test -n "$ac_unrecognized_opts"; then |
| 1323 | case $enable_option_checking in |
| 1324 | no) ;; |
| 1325 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1326 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1327 | esac |
| 1328 | fi |
| 1329 | |
| 1330 | # Check all directory arguments for consistency. |
| 1331 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1332 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1333 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1334 | libdir localedir mandir runstatedir |
| 1335 | do |
| 1336 | eval ac_val=\$$ac_var |
| 1337 | # Remove trailing slashes. |
| 1338 | case $ac_val in |
| 1339 | */ ) |
| 1340 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1341 | eval $ac_var=\$ac_val;; |
| 1342 | esac |
| 1343 | # Be sure to have absolute directory names. |
| 1344 | case $ac_val in |
| 1345 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1346 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1347 | esac |
| 1348 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1349 | done |
| 1350 | |
| 1351 | # There might be people who depend on the old broken behavior: `$host' |
| 1352 | # used to hold the argument of --host etc. |
| 1353 | # FIXME: To remove some day. |
| 1354 | build=$build_alias |
| 1355 | host=$host_alias |
| 1356 | target=$target_alias |
| 1357 | |
| 1358 | # FIXME: To remove some day. |
| 1359 | if test "x$host_alias" != x; then |
| 1360 | if test "x$build_alias" = x; then |
| 1361 | cross_compiling=maybe |
| 1362 | elif test "x$build_alias" != "x$host_alias"; then |
| 1363 | cross_compiling=yes |
| 1364 | fi |
| 1365 | fi |
| 1366 | |
| 1367 | ac_tool_prefix= |
| 1368 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1369 | |
| 1370 | test "$silent" = yes && exec 6>/dev/null |
| 1371 | |
| 1372 | |
| 1373 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1374 | ac_ls_di=`ls -di .` && |
| 1375 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1376 | as_fn_error $? "working directory cannot be determined" |
| 1377 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1378 | as_fn_error $? "pwd does not report name of working directory" |
| 1379 | |
| 1380 | |
| 1381 | # Find the source files, if location was not specified. |
| 1382 | if test -z "$srcdir"; then |
| 1383 | ac_srcdir_defaulted=yes |
| 1384 | # Try the directory containing this script, then the parent directory. |
| 1385 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1386 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1387 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1388 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1389 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1390 | printf "%s\n" X"$as_myself" | |
| 1391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1392 | s//\1/ |
| 1393 | q |
| 1394 | } |
| 1395 | /^X\(\/\/\)[^/].*/{ |
| 1396 | s//\1/ |
| 1397 | q |
| 1398 | } |
| 1399 | /^X\(\/\/\)$/{ |
| 1400 | s//\1/ |
| 1401 | q |
| 1402 | } |
| 1403 | /^X\(\/\).*/{ |
| 1404 | s//\1/ |
| 1405 | q |
| 1406 | } |
| 1407 | s/.*/./; q'` |
| 1408 | srcdir=$ac_confdir |
| 1409 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1410 | srcdir=.. |
| 1411 | fi |
| 1412 | else |
| 1413 | ac_srcdir_defaulted=no |
| 1414 | fi |
| 1415 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1416 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1417 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1418 | fi |
| 1419 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1420 | ac_abs_confdir=`( |
| 1421 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1422 | pwd)` |
| 1423 | # When building in place, set srcdir=. |
| 1424 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1425 | srcdir=. |
| 1426 | fi |
| 1427 | # Remove unnecessary trailing slashes from srcdir. |
| 1428 | # Double slashes in file names in object file debugging info |
| 1429 | # mess up M-x gdb in Emacs. |
| 1430 | case $srcdir in |
| 1431 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1432 | esac |
| 1433 | for ac_var in $ac_precious_vars; do |
| 1434 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1435 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1436 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1437 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1438 | done |
| 1439 | |
| 1440 | # |
| 1441 | # Report the --help message. |
| 1442 | # |
| 1443 | if test "$ac_init_help" = "long"; then |
| 1444 | # Omit some internal or obsolete options to make the list less imposing. |
| 1445 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1446 | cat <<_ACEOF |
| 1447 | \`configure' configures flatpak-builder 1.4.10 to adapt to many kinds of systems. |
| 1448 | |
| 1449 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1450 | |
| 1451 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1452 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1453 | |
| 1454 | Defaults for the options are specified in brackets. |
| 1455 | |
| 1456 | Configuration: |
| 1457 | -h, --help display this help and exit |
| 1458 | --help=short display options specific to this package |
| 1459 | --help=recursive display the short help of all the included packages |
| 1460 | -V, --version display version information and exit |
| 1461 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1462 | --cache-file=FILE cache test results in FILE [disabled] |
| 1463 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1464 | -n, --no-create do not create output files |
| 1465 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1466 | |
| 1467 | Installation directories: |
| 1468 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1469 | [$ac_default_prefix] |
| 1470 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1471 | [PREFIX] |
| 1472 | |
| 1473 | By default, \`make install' will install all the files in |
| 1474 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1475 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1476 | for instance \`--prefix=\$HOME'. |
| 1477 | |
| 1478 | For better control, use the options below. |
| 1479 | |
| 1480 | Fine tuning of the installation directories: |
| 1481 | --bindir=DIR user executables [EPREFIX/bin] |
| 1482 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1483 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1484 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1485 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1486 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1487 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1488 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1489 | --includedir=DIR C header files [PREFIX/include] |
| 1490 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1491 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1492 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1493 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1494 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1495 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1496 | --docdir=DIR documentation root [DATAROOTDIR/doc/flatpak-builder] |
| 1497 | --htmldir=DIR html documentation [DOCDIR] |
| 1498 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1499 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1500 | --psdir=DIR ps documentation [DOCDIR] |
| 1501 | _ACEOF |
| 1502 | |
| 1503 | cat <<\_ACEOF |
| 1504 | |
| 1505 | Program names: |
| 1506 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1507 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1508 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1509 | |
| 1510 | System types: |
| 1511 | --build=BUILD configure for building on BUILD [guessed] |
| 1512 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1513 | _ACEOF |
| 1514 | fi |
| 1515 | |
| 1516 | if test -n "$ac_init_help"; then |
| 1517 | case $ac_init_help in |
| 1518 | short | recursive ) echo "Configuration of flatpak-builder 1.4.10:";; |
| 1519 | esac |
| 1520 | cat <<\_ACEOF |
| 1521 | |
| 1522 | Optional Features: |
| 1523 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1524 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1525 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1526 | --disable-largefile omit support for large files |
| 1527 | --disable-otmpfile Disable use of O_TMPFILE [default=no] |
| 1528 | --enable-wrpseudo-compat |
| 1529 | Disable use of syscall() in some cases for |
| 1530 | compatibility with pseudo [default=no] |
| 1531 | --enable-static[=PKGS] build static libraries [default=no] |
| 1532 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1533 | --enable-fast-install[=PKGS] |
| 1534 | optimize for fast installation [default=yes] |
| 1535 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1536 | --enable-dependency-tracking |
| 1537 | do not reject slow dependency extractors |
| 1538 | --disable-dependency-tracking |
| 1539 | speeds up one-time build |
| 1540 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1541 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1542 | --disable-nls do not use Native Language Support |
| 1543 | --disable-rpath do not hardcode runtime library paths |
| 1544 | --disable-maintainer-mode |
| 1545 | disable make rules and dependencies not useful (and |
| 1546 | sometimes confusing) to the casual installer |
| 1547 | --enable-valgrind Whether to enable Valgrind on the unit tests |
| 1548 | --enable-documentation Build documentation |
| 1549 | --enable-docbook-docs build documentation (requires xmlto) |
| 1550 | --enable-installed-tests |
| 1551 | Enable installation of some test cases |
| 1552 | --enable-always-build-tests |
| 1553 | Enable always building tests during 'make all' |
| 1554 | |
| 1555 | Optional Packages: |
| 1556 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1557 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1558 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1559 | both] |
| 1560 | --with-aix-soname=aix|svr4|both |
| 1561 | shared library versioning (aka "SONAME") variant to |
| 1562 | provide on AIX, [default=aix]. |
| 1563 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1564 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1565 | compiler's sysroot if not specified). |
| 1566 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1567 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1568 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1569 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1570 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1571 | --with-system-debugedit Use system debugedit [default=check $DEBUGEDIT] |
| 1572 | --without-yaml Disable YAML support [default=auto] |
| 1573 | --with-xml-catalog=CATALOG |
| 1574 | path to xml catalog to use |
| 1575 | --with-fuse={2,3} Only support this major version of FUSE |
| 1576 | |
| 1577 | Some influential environment variables: |
| 1578 | CC C compiler command |
| 1579 | CFLAGS C compiler flags |
| 1580 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1581 | nonstandard directory <lib dir> |
| 1582 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1583 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1584 | you have headers in a nonstandard directory <include dir> |
| 1585 | LT_SYS_LIBRARY_PATH |
| 1586 | User-defined run-time library search path. |
| 1587 | CPP C preprocessor |
| 1588 | PKG_CONFIG path to pkg-config utility |
| 1589 | PKG_CONFIG_PATH |
| 1590 | directories to add to pkg-config's search path |
| 1591 | PKG_CONFIG_LIBDIR |
| 1592 | path overriding pkg-config's built-in search path |
| 1593 | BASE_CFLAGS C compiler flags for BASE, overriding pkg-config |
| 1594 | BASE_LIBS linker flags for BASE, overriding pkg-config |
| 1595 | LIBELF_CFLAGS |
| 1596 | C compiler flags for LIBELF, overriding pkg-config |
| 1597 | LIBELF_LIBS linker flags for LIBELF, overriding pkg-config |
| 1598 | DEBUGEDIT debugedit executable |
| 1599 | LIBDW_CFLAGS |
| 1600 | C compiler flags for LIBDW, overriding pkg-config |
| 1601 | LIBDW_LIBS linker flags for LIBDW, overriding pkg-config |
| 1602 | YAML_CFLAGS C compiler flags for YAML, overriding pkg-config |
| 1603 | YAML_LIBS linker flags for YAML, overriding pkg-config |
| 1604 | XMLTO Define/override the 'xmlto' location. |
| 1605 | XMLTO_FLAGS Define/override 'xmlto' options, like '--skip-validation'. |
| 1606 | |
| 1607 | Use these variables to override the choices made by `configure' or to help |
| 1608 | it to find libraries and programs with nonstandard names/locations. |
| 1609 | |
| 1610 | Report bugs to <https://github.com/flatpak/flatpak-builder/issues>. |
| 1611 | flatpak-builder home page: <http://flatpak.org/>. |
| 1612 | _ACEOF |
| 1613 | ac_status=$? |
| 1614 | fi |
| 1615 | |
| 1616 | if test "$ac_init_help" = "recursive"; then |
| 1617 | # If there are subdirs, report their specific --help. |
| 1618 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1619 | test -d "$ac_dir" || |
| 1620 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1621 | continue |
| 1622 | ac_builddir=. |
| 1623 | |
| 1624 | case "$ac_dir" in |
| 1625 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1626 | *) |
| 1627 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1628 | # A ".." for each directory in $ac_dir_suffix. |
| 1629 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1630 | case $ac_top_builddir_sub in |
| 1631 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1632 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1633 | esac ;; |
| 1634 | esac |
| 1635 | ac_abs_top_builddir=$ac_pwd |
| 1636 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1637 | # for backward compatibility: |
| 1638 | ac_top_builddir=$ac_top_build_prefix |
| 1639 | |
| 1640 | case $srcdir in |
| 1641 | .) # We are building in place. |
| 1642 | ac_srcdir=. |
| 1643 | ac_top_srcdir=$ac_top_builddir_sub |
| 1644 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1645 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1646 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1647 | ac_top_srcdir=$srcdir |
| 1648 | ac_abs_top_srcdir=$srcdir ;; |
| 1649 | *) # Relative name. |
| 1650 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1651 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1652 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1653 | esac |
| 1654 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1655 | |
| 1656 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1657 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1658 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1659 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1660 | echo && |
| 1661 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1662 | elif test -f "$ac_srcdir/configure"; then |
| 1663 | echo && |
| 1664 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1665 | else |
| 1666 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1667 | fi || ac_status=$? |
| 1668 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1669 | done |
| 1670 | fi |
| 1671 | |
| 1672 | test -n "$ac_init_help" && exit $ac_status |
| 1673 | if $ac_init_version; then |
| 1674 | cat <<\_ACEOF |
| 1675 | flatpak-builder configure 1.4.10 |
| 1676 | generated by GNU Autoconf 2.71 |
| 1677 | |
| 1678 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 1679 | This configure script is free software; the Free Software Foundation |
| 1680 | gives unlimited permission to copy, distribute and modify it. |
| 1681 | _ACEOF |
| 1682 | exit |
| 1683 | fi |
| 1684 | |
| 1685 | ## ------------------------ ## |
| 1686 | ## Autoconf initialization. ## |
| 1687 | ## ------------------------ ## |
| 1688 | |
| 1689 | # ac_fn_c_try_compile LINENO |
| 1690 | # -------------------------- |
| 1691 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1692 | ac_fn_c_try_compile () |
| 1693 | { |
| 1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1695 | rm -f conftest.$ac_objext conftest.beam |
| 1696 | if { { ac_try="$ac_compile" |
| 1697 | case "(($ac_try" in |
| 1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1699 | *) ac_try_echo=$ac_try;; |
| 1700 | esac |
| 1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1702 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1703 | (eval "$ac_compile") 2>conftest.err |
| 1704 | ac_status=$? |
| 1705 | if test -s conftest.err; then |
| 1706 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1707 | cat conftest.er1 >&5 |
| 1708 | mv -f conftest.er1 conftest.err |
| 1709 | fi |
| 1710 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1711 | test $ac_status = 0; } && { |
| 1712 | test -z "$ac_c_werror_flag" || |
| 1713 | test ! -s conftest.err |
| 1714 | } && test -s conftest.$ac_objext |
| 1715 | then : |
| 1716 | ac_retval=0 |
| 1717 | else $as_nop |
| 1718 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1720 | |
| 1721 | ac_retval=1 |
| 1722 | fi |
| 1723 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1724 | as_fn_set_status $ac_retval |
| 1725 | |
| 1726 | } # ac_fn_c_try_compile |
| 1727 | |
| 1728 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1729 | # ------------------------------------------------------- |
| 1730 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1731 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1732 | ac_fn_c_check_header_compile () |
| 1733 | { |
| 1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1736 | printf %s "checking for $2... " >&6; } |
| 1737 | if eval test \${$3+y} |
| 1738 | then : |
| 1739 | printf %s "(cached) " >&6 |
| 1740 | else $as_nop |
| 1741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1742 | /* end confdefs.h. */ |
| 1743 | $4 |
| 1744 | #include <$2> |
| 1745 | _ACEOF |
| 1746 | if ac_fn_c_try_compile "$LINENO" |
| 1747 | then : |
| 1748 | eval "$3=yes" |
| 1749 | else $as_nop |
| 1750 | eval "$3=no" |
| 1751 | fi |
| 1752 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1753 | fi |
| 1754 | eval ac_res=\$$3 |
| 1755 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1756 | printf "%s\n" "$ac_res" >&6; } |
| 1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1758 | |
| 1759 | } # ac_fn_c_check_header_compile |
| 1760 | |
| 1761 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 1762 | # ------------------------------------------------------------------ |
| 1763 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1764 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 1765 | ac_fn_check_decl () |
| 1766 | { |
| 1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1768 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1770 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 1771 | if eval test \${$3+y} |
| 1772 | then : |
| 1773 | printf %s "(cached) " >&6 |
| 1774 | else $as_nop |
| 1775 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1776 | eval ac_save_FLAGS=\$$6 |
| 1777 | as_fn_append $6 " $5" |
| 1778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1779 | /* end confdefs.h. */ |
| 1780 | $4 |
| 1781 | int |
| 1782 | main (void) |
| 1783 | { |
| 1784 | #ifndef $as_decl_name |
| 1785 | #ifdef __cplusplus |
| 1786 | (void) $as_decl_use; |
| 1787 | #else |
| 1788 | (void) $as_decl_name; |
| 1789 | #endif |
| 1790 | #endif |
| 1791 | |
| 1792 | ; |
| 1793 | return 0; |
| 1794 | } |
| 1795 | _ACEOF |
| 1796 | if ac_fn_c_try_compile "$LINENO" |
| 1797 | then : |
| 1798 | eval "$3=yes" |
| 1799 | else $as_nop |
| 1800 | eval "$3=no" |
| 1801 | fi |
| 1802 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1803 | eval $6=\$ac_save_FLAGS |
| 1804 | |
| 1805 | fi |
| 1806 | eval ac_res=\$$3 |
| 1807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1808 | printf "%s\n" "$ac_res" >&6; } |
| 1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1810 | |
| 1811 | } # ac_fn_check_decl |
| 1812 | |
| 1813 | # ac_fn_c_try_link LINENO |
| 1814 | # ----------------------- |
| 1815 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1816 | ac_fn_c_try_link () |
| 1817 | { |
| 1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1819 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1820 | if { { ac_try="$ac_link" |
| 1821 | case "(($ac_try" in |
| 1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1823 | *) ac_try_echo=$ac_try;; |
| 1824 | esac |
| 1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1826 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1827 | (eval "$ac_link") 2>conftest.err |
| 1828 | ac_status=$? |
| 1829 | if test -s conftest.err; then |
| 1830 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1831 | cat conftest.er1 >&5 |
| 1832 | mv -f conftest.er1 conftest.err |
| 1833 | fi |
| 1834 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1835 | test $ac_status = 0; } && { |
| 1836 | test -z "$ac_c_werror_flag" || |
| 1837 | test ! -s conftest.err |
| 1838 | } && test -s conftest$ac_exeext && { |
| 1839 | test "$cross_compiling" = yes || |
| 1840 | test -x conftest$ac_exeext |
| 1841 | } |
| 1842 | then : |
| 1843 | ac_retval=0 |
| 1844 | else $as_nop |
| 1845 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1847 | |
| 1848 | ac_retval=1 |
| 1849 | fi |
| 1850 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1851 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1852 | # interfere with the next link command; also delete a directory that is |
| 1853 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1854 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1855 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1856 | as_fn_set_status $ac_retval |
| 1857 | |
| 1858 | } # ac_fn_c_try_link |
| 1859 | |
| 1860 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1861 | # ---------------------------------- |
| 1862 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1863 | ac_fn_c_check_func () |
| 1864 | { |
| 1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1867 | printf %s "checking for $2... " >&6; } |
| 1868 | if eval test \${$3+y} |
| 1869 | then : |
| 1870 | printf %s "(cached) " >&6 |
| 1871 | else $as_nop |
| 1872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1873 | /* end confdefs.h. */ |
| 1874 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1876 | #define $2 innocuous_$2 |
| 1877 | |
| 1878 | /* System header to define __stub macros and hopefully few prototypes, |
| 1879 | which can conflict with char $2 (); below. */ |
| 1880 | |
| 1881 | #include <limits.h> |
| 1882 | #undef $2 |
| 1883 | |
| 1884 | /* Override any GCC internal prototype to avoid an error. |
| 1885 | Use char because int might match the return type of a GCC |
| 1886 | builtin and then its argument prototype would still apply. */ |
| 1887 | #ifdef __cplusplus |
| 1888 | extern "C" |
| 1889 | #endif |
| 1890 | char $2 (); |
| 1891 | /* The GNU C library defines this for functions which it implements |
| 1892 | to always fail with ENOSYS. Some functions are actually named |
| 1893 | something starting with __ and the normal name is an alias. */ |
| 1894 | #if defined __stub_$2 || defined __stub___$2 |
| 1895 | choke me |
| 1896 | #endif |
| 1897 | |
| 1898 | int |
| 1899 | main (void) |
| 1900 | { |
| 1901 | return $2 (); |
| 1902 | ; |
| 1903 | return 0; |
| 1904 | } |
| 1905 | _ACEOF |
| 1906 | if ac_fn_c_try_link "$LINENO" |
| 1907 | then : |
| 1908 | eval "$3=yes" |
| 1909 | else $as_nop |
| 1910 | eval "$3=no" |
| 1911 | fi |
| 1912 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1913 | conftest$ac_exeext conftest.$ac_ext |
| 1914 | fi |
| 1915 | eval ac_res=\$$3 |
| 1916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1917 | printf "%s\n" "$ac_res" >&6; } |
| 1918 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1919 | |
| 1920 | } # ac_fn_c_check_func |
| 1921 | |
| 1922 | # ac_fn_c_try_cpp LINENO |
| 1923 | # ---------------------- |
| 1924 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1925 | ac_fn_c_try_cpp () |
| 1926 | { |
| 1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1928 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1929 | case "(($ac_try" in |
| 1930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1931 | *) ac_try_echo=$ac_try;; |
| 1932 | esac |
| 1933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1934 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1936 | ac_status=$? |
| 1937 | if test -s conftest.err; then |
| 1938 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1939 | cat conftest.er1 >&5 |
| 1940 | mv -f conftest.er1 conftest.err |
| 1941 | fi |
| 1942 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1943 | test $ac_status = 0; } > conftest.i && { |
| 1944 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1945 | test ! -s conftest.err |
| 1946 | } |
| 1947 | then : |
| 1948 | ac_retval=0 |
| 1949 | else $as_nop |
| 1950 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1952 | |
| 1953 | ac_retval=1 |
| 1954 | fi |
| 1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1956 | as_fn_set_status $ac_retval |
| 1957 | |
| 1958 | } # ac_fn_c_try_cpp |
| 1959 | |
| 1960 | # ac_fn_c_try_run LINENO |
| 1961 | # ---------------------- |
| 1962 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1963 | # executables *can* be run. |
| 1964 | ac_fn_c_try_run () |
| 1965 | { |
| 1966 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1967 | if { { ac_try="$ac_link" |
| 1968 | case "(($ac_try" in |
| 1969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1970 | *) ac_try_echo=$ac_try;; |
| 1971 | esac |
| 1972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1973 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1974 | (eval "$ac_link") 2>&5 |
| 1975 | ac_status=$? |
| 1976 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1977 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1978 | { { case "(($ac_try" in |
| 1979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1980 | *) ac_try_echo=$ac_try;; |
| 1981 | esac |
| 1982 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1983 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1984 | (eval "$ac_try") 2>&5 |
| 1985 | ac_status=$? |
| 1986 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1987 | test $ac_status = 0; }; } |
| 1988 | then : |
| 1989 | ac_retval=0 |
| 1990 | else $as_nop |
| 1991 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1992 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1994 | |
| 1995 | ac_retval=$ac_status |
| 1996 | fi |
| 1997 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1998 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1999 | as_fn_set_status $ac_retval |
| 2000 | |
| 2001 | } # ac_fn_c_try_run |
| 2002 | ac_configure_args_raw= |
| 2003 | for ac_arg |
| 2004 | do |
| 2005 | case $ac_arg in |
| 2006 | *\'*) |
| 2007 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2008 | esac |
| 2009 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2010 | done |
| 2011 | |
| 2012 | case $ac_configure_args_raw in |
| 2013 | *$as_nl*) |
| 2014 | ac_safe_unquote= ;; |
| 2015 | *) |
| 2016 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2017 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2018 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2019 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2020 | esac |
| 2021 | |
| 2022 | cat >config.log <<_ACEOF |
| 2023 | This file contains any messages produced by compilers while |
| 2024 | running configure, to aid debugging if configure makes a mistake. |
| 2025 | |
| 2026 | It was created by flatpak-builder $as_me 1.4.10, which was |
| 2027 | generated by GNU Autoconf 2.71. Invocation command line was |
| 2028 | |
| 2029 | $ $0$ac_configure_args_raw |
| 2030 | |
| 2031 | _ACEOF |
| 2032 | exec 5>>config.log |
| 2033 | { |
| 2034 | cat <<_ASUNAME |
| 2035 | ## --------- ## |
| 2036 | ## Platform. ## |
| 2037 | ## --------- ## |
| 2038 | |
| 2039 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2040 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2041 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2042 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2043 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2044 | |
| 2045 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2046 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2047 | |
| 2048 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2049 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2050 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2051 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2052 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2053 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2054 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2055 | |
| 2056 | _ASUNAME |
| 2057 | |
| 2058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2059 | for as_dir in $PATH |
| 2060 | do |
| 2061 | IFS=$as_save_IFS |
| 2062 | case $as_dir in #((( |
| 2063 | '') as_dir=./ ;; |
| 2064 | */) ;; |
| 2065 | *) as_dir=$as_dir/ ;; |
| 2066 | esac |
| 2067 | printf "%s\n" "PATH: $as_dir" |
| 2068 | done |
| 2069 | IFS=$as_save_IFS |
| 2070 | |
| 2071 | } >&5 |
| 2072 | |
| 2073 | cat >&5 <<_ACEOF |
| 2074 | |
| 2075 | |
| 2076 | ## ----------- ## |
| 2077 | ## Core tests. ## |
| 2078 | ## ----------- ## |
| 2079 | |
| 2080 | _ACEOF |
| 2081 | |
| 2082 | |
| 2083 | # Keep a trace of the command line. |
| 2084 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2085 | # Strip out --silent because we don't want to record it for future runs. |
| 2086 | # Also quote any args containing shell meta-characters. |
| 2087 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2088 | ac_configure_args= |
| 2089 | ac_configure_args0= |
| 2090 | ac_configure_args1= |
| 2091 | ac_must_keep_next=false |
| 2092 | for ac_pass in 1 2 |
| 2093 | do |
| 2094 | for ac_arg |
| 2095 | do |
| 2096 | case $ac_arg in |
| 2097 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2098 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2099 | | -silent | --silent | --silen | --sile | --sil) |
| 2100 | continue ;; |
| 2101 | *\'*) |
| 2102 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2103 | esac |
| 2104 | case $ac_pass in |
| 2105 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2106 | 2) |
| 2107 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2108 | if test $ac_must_keep_next = true; then |
| 2109 | ac_must_keep_next=false # Got value, back to normal. |
| 2110 | else |
| 2111 | case $ac_arg in |
| 2112 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2113 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2114 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2115 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2116 | case "$ac_configure_args0 " in |
| 2117 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2118 | esac |
| 2119 | ;; |
| 2120 | -* ) ac_must_keep_next=true ;; |
| 2121 | esac |
| 2122 | fi |
| 2123 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2124 | ;; |
| 2125 | esac |
| 2126 | done |
| 2127 | done |
| 2128 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2129 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2130 | |
| 2131 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2132 | # config.log. We remove comments because anyway the quotes in there |
| 2133 | # would cause problems or look ugly. |
| 2134 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2135 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2136 | trap 'exit_status=$? |
| 2137 | # Sanitize IFS. |
| 2138 | IFS=" "" $as_nl" |
| 2139 | # Save into config.log some information that might help in debugging. |
| 2140 | { |
| 2141 | echo |
| 2142 | |
| 2143 | printf "%s\n" "## ---------------- ## |
| 2144 | ## Cache variables. ## |
| 2145 | ## ---------------- ##" |
| 2146 | echo |
| 2147 | # The following way of writing the cache mishandles newlines in values, |
| 2148 | ( |
| 2149 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2150 | eval ac_val=\$$ac_var |
| 2151 | case $ac_val in #( |
| 2152 | *${as_nl}*) |
| 2153 | case $ac_var in #( |
| 2154 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2155 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2156 | esac |
| 2157 | case $ac_var in #( |
| 2158 | _ | IFS | as_nl) ;; #( |
| 2159 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2160 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2161 | esac ;; |
| 2162 | esac |
| 2163 | done |
| 2164 | (set) 2>&1 | |
| 2165 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2166 | *${as_nl}ac_space=\ *) |
| 2167 | sed -n \ |
| 2168 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2169 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2170 | ;; #( |
| 2171 | *) |
| 2172 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2173 | ;; |
| 2174 | esac | |
| 2175 | sort |
| 2176 | ) |
| 2177 | echo |
| 2178 | |
| 2179 | printf "%s\n" "## ----------------- ## |
| 2180 | ## Output variables. ## |
| 2181 | ## ----------------- ##" |
| 2182 | echo |
| 2183 | for ac_var in $ac_subst_vars |
| 2184 | do |
| 2185 | eval ac_val=\$$ac_var |
| 2186 | case $ac_val in |
| 2187 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2188 | esac |
| 2189 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2190 | done | sort |
| 2191 | echo |
| 2192 | |
| 2193 | if test -n "$ac_subst_files"; then |
| 2194 | printf "%s\n" "## ------------------- ## |
| 2195 | ## File substitutions. ## |
| 2196 | ## ------------------- ##" |
| 2197 | echo |
| 2198 | for ac_var in $ac_subst_files |
| 2199 | do |
| 2200 | eval ac_val=\$$ac_var |
| 2201 | case $ac_val in |
| 2202 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2203 | esac |
| 2204 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2205 | done | sort |
| 2206 | echo |
| 2207 | fi |
| 2208 | |
| 2209 | if test -s confdefs.h; then |
| 2210 | printf "%s\n" "## ----------- ## |
| 2211 | ## confdefs.h. ## |
| 2212 | ## ----------- ##" |
| 2213 | echo |
| 2214 | cat confdefs.h |
| 2215 | echo |
| 2216 | fi |
| 2217 | test "$ac_signal" != 0 && |
| 2218 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2219 | printf "%s\n" "$as_me: exit $exit_status" |
| 2220 | } >&5 |
| 2221 | rm -f core *.core core.conftest.* && |
| 2222 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2223 | exit $exit_status |
| 2224 | ' 0 |
| 2225 | for ac_signal in 1 2 13 15; do |
| 2226 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2227 | done |
| 2228 | ac_signal=0 |
| 2229 | |
| 2230 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2231 | rm -f -r conftest* confdefs.h |
| 2232 | |
| 2233 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2234 | |
| 2235 | # Predefined preprocessor variables. |
| 2236 | |
| 2237 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2238 | |
| 2239 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2240 | |
| 2241 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2242 | |
| 2243 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2244 | |
| 2245 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2246 | |
| 2247 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2248 | |
| 2249 | |
| 2250 | # Let the site file select an alternate cache file if it wants to. |
| 2251 | # Prefer an explicitly selected file to automatically selected ones. |
| 2252 | if test -n "$CONFIG_SITE"; then |
| 2253 | ac_site_files="$CONFIG_SITE" |
| 2254 | elif test "x$prefix" != xNONE; then |
| 2255 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2256 | else |
| 2257 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2258 | fi |
| 2259 | |
| 2260 | for ac_site_file in $ac_site_files |
| 2261 | do |
| 2262 | case $ac_site_file in #( |
| 2263 | */*) : |
| 2264 | ;; #( |
| 2265 | *) : |
| 2266 | ac_site_file=./$ac_site_file ;; |
| 2267 | esac |
| 2268 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2270 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2271 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2272 | . "$ac_site_file" \ |
| 2273 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2274 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2275 | as_fn_error $? "failed to load site script $ac_site_file |
| 2276 | See \`config.log' for more details" "$LINENO" 5; } |
| 2277 | fi |
| 2278 | done |
| 2279 | |
| 2280 | if test -r "$cache_file"; then |
| 2281 | # Some versions of bash will fail to source /dev/null (special files |
| 2282 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2283 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2285 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2286 | case $cache_file in |
| 2287 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2288 | *) . "./$cache_file";; |
| 2289 | esac |
| 2290 | fi |
| 2291 | else |
| 2292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2293 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2294 | >$cache_file |
| 2295 | fi |
| 2296 | |
| 2297 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2298 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2299 | ac_c_conftest_c89_globals=' |
| 2300 | /* Does the compiler advertise C89 conformance? |
| 2301 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2302 | while being otherwise adequately conformant. */ |
| 2303 | #if !defined __STDC__ |
| 2304 | # error "Compiler does not advertise C89 conformance" |
| 2305 | #endif |
| 2306 | |
| 2307 | #include <stddef.h> |
| 2308 | #include <stdarg.h> |
| 2309 | struct stat; |
| 2310 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2311 | struct buf { int x; }; |
| 2312 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2313 | static char *e (p, i) |
| 2314 | char **p; |
| 2315 | int i; |
| 2316 | { |
| 2317 | return p[i]; |
| 2318 | } |
| 2319 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2320 | { |
| 2321 | char *s; |
| 2322 | va_list v; |
| 2323 | va_start (v,p); |
| 2324 | s = g (p, va_arg (v,int)); |
| 2325 | va_end (v); |
| 2326 | return s; |
| 2327 | } |
| 2328 | |
| 2329 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2330 | function prototypes and stuff, but not \xHH hex character constants. |
| 2331 | These do not provoke an error unfortunately, instead are silently treated |
| 2332 | as an "x". The following induces an error, until -std is added to get |
| 2333 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2334 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2335 | that is true only with -std. */ |
| 2336 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2337 | |
| 2338 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2339 | inside strings and character constants. */ |
| 2340 | #define FOO(x) '\''x'\'' |
| 2341 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2342 | |
| 2343 | int test (int i, double x); |
| 2344 | struct s1 {int (*f) (int a);}; |
| 2345 | struct s2 {int (*f) (double a);}; |
| 2346 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2347 | int, int);' |
| 2348 | |
| 2349 | # Test code for whether the C compiler supports C89 (body of main). |
| 2350 | ac_c_conftest_c89_main=' |
| 2351 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2352 | ' |
| 2353 | |
| 2354 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2355 | ac_c_conftest_c99_globals=' |
| 2356 | // Does the compiler advertise C99 conformance? |
| 2357 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2358 | # error "Compiler does not advertise C99 conformance" |
| 2359 | #endif |
| 2360 | |
| 2361 | #include <stdbool.h> |
| 2362 | extern int puts (const char *); |
| 2363 | extern int printf (const char *, ...); |
| 2364 | extern int dprintf (int, const char *, ...); |
| 2365 | extern void *malloc (size_t); |
| 2366 | |
| 2367 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2368 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2369 | // FILE and stderr. |
| 2370 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2371 | #define showlist(...) puts (#__VA_ARGS__) |
| 2372 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2373 | static void |
| 2374 | test_varargs_macros (void) |
| 2375 | { |
| 2376 | int x = 1234; |
| 2377 | int y = 5678; |
| 2378 | debug ("Flag"); |
| 2379 | debug ("X = %d\n", x); |
| 2380 | showlist (The first, second, and third items.); |
| 2381 | report (x>y, "x is %d but y is %d", x, y); |
| 2382 | } |
| 2383 | |
| 2384 | // Check long long types. |
| 2385 | #define BIG64 18446744073709551615ull |
| 2386 | #define BIG32 4294967295ul |
| 2387 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2388 | #if !BIG_OK |
| 2389 | #error "your preprocessor is broken" |
| 2390 | #endif |
| 2391 | #if BIG_OK |
| 2392 | #else |
| 2393 | #error "your preprocessor is broken" |
| 2394 | #endif |
| 2395 | static long long int bignum = -9223372036854775807LL; |
| 2396 | static unsigned long long int ubignum = BIG64; |
| 2397 | |
| 2398 | struct incomplete_array |
| 2399 | { |
| 2400 | int datasize; |
| 2401 | double data[]; |
| 2402 | }; |
| 2403 | |
| 2404 | struct named_init { |
| 2405 | int number; |
| 2406 | const wchar_t *name; |
| 2407 | double average; |
| 2408 | }; |
| 2409 | |
| 2410 | typedef const char *ccp; |
| 2411 | |
| 2412 | static inline int |
| 2413 | test_restrict (ccp restrict text) |
| 2414 | { |
| 2415 | // See if C++-style comments work. |
| 2416 | // Iterate through items via the restricted pointer. |
| 2417 | // Also check for declarations in for loops. |
| 2418 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2419 | continue; |
| 2420 | return 0; |
| 2421 | } |
| 2422 | |
| 2423 | // Check varargs and va_copy. |
| 2424 | static bool |
| 2425 | test_varargs (const char *format, ...) |
| 2426 | { |
| 2427 | va_list args; |
| 2428 | va_start (args, format); |
| 2429 | va_list args_copy; |
| 2430 | va_copy (args_copy, args); |
| 2431 | |
| 2432 | const char *str = ""; |
| 2433 | int number = 0; |
| 2434 | float fnumber = 0; |
| 2435 | |
| 2436 | while (*format) |
| 2437 | { |
| 2438 | switch (*format++) |
| 2439 | { |
| 2440 | case '\''s'\'': // string |
| 2441 | str = va_arg (args_copy, const char *); |
| 2442 | break; |
| 2443 | case '\''d'\'': // int |
| 2444 | number = va_arg (args_copy, int); |
| 2445 | break; |
| 2446 | case '\''f'\'': // float |
| 2447 | fnumber = va_arg (args_copy, double); |
| 2448 | break; |
| 2449 | default: |
| 2450 | break; |
| 2451 | } |
| 2452 | } |
| 2453 | va_end (args_copy); |
| 2454 | va_end (args); |
| 2455 | |
| 2456 | return *str && number && fnumber; |
| 2457 | } |
| 2458 | ' |
| 2459 | |
| 2460 | # Test code for whether the C compiler supports C99 (body of main). |
| 2461 | ac_c_conftest_c99_main=' |
| 2462 | // Check bool. |
| 2463 | _Bool success = false; |
| 2464 | success |= (argc != 0); |
| 2465 | |
| 2466 | // Check restrict. |
| 2467 | if (test_restrict ("String literal") == 0) |
| 2468 | success = true; |
| 2469 | char *restrict newvar = "Another string"; |
| 2470 | |
| 2471 | // Check varargs. |
| 2472 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2473 | test_varargs_macros (); |
| 2474 | |
| 2475 | // Check flexible array members. |
| 2476 | struct incomplete_array *ia = |
| 2477 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2478 | ia->datasize = 10; |
| 2479 | for (int i = 0; i < ia->datasize; ++i) |
| 2480 | ia->data[i] = i * 1.234; |
| 2481 | |
| 2482 | // Check named initializers. |
| 2483 | struct named_init ni = { |
| 2484 | .number = 34, |
| 2485 | .name = L"Test wide string", |
| 2486 | .average = 543.34343, |
| 2487 | }; |
| 2488 | |
| 2489 | ni.number = 58; |
| 2490 | |
| 2491 | int dynamic_array[ni.number]; |
| 2492 | dynamic_array[0] = argv[0][0]; |
| 2493 | dynamic_array[ni.number - 1] = 543; |
| 2494 | |
| 2495 | // work around unused variable warnings |
| 2496 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2497 | || dynamic_array[ni.number - 1] != 543); |
| 2498 | ' |
| 2499 | |
| 2500 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2501 | ac_c_conftest_c11_globals=' |
| 2502 | // Does the compiler advertise C11 conformance? |
| 2503 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2504 | # error "Compiler does not advertise C11 conformance" |
| 2505 | #endif |
| 2506 | |
| 2507 | // Check _Alignas. |
| 2508 | char _Alignas (double) aligned_as_double; |
| 2509 | char _Alignas (0) no_special_alignment; |
| 2510 | extern char aligned_as_int; |
| 2511 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2512 | |
| 2513 | // Check _Alignof. |
| 2514 | enum |
| 2515 | { |
| 2516 | int_alignment = _Alignof (int), |
| 2517 | int_array_alignment = _Alignof (int[100]), |
| 2518 | char_alignment = _Alignof (char) |
| 2519 | }; |
| 2520 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2521 | |
| 2522 | // Check _Noreturn. |
| 2523 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2524 | |
| 2525 | // Check _Static_assert. |
| 2526 | struct test_static_assert |
| 2527 | { |
| 2528 | int x; |
| 2529 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2530 | "_Static_assert does not work in struct"); |
| 2531 | long int y; |
| 2532 | }; |
| 2533 | |
| 2534 | // Check UTF-8 literals. |
| 2535 | #define u8 syntax error! |
| 2536 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2537 | |
| 2538 | // Check duplicate typedefs. |
| 2539 | typedef long *long_ptr; |
| 2540 | typedef long int *long_ptr; |
| 2541 | typedef long_ptr long_ptr; |
| 2542 | |
| 2543 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2544 | struct anonymous |
| 2545 | { |
| 2546 | union { |
| 2547 | struct { int i; int j; }; |
| 2548 | struct { int k; long int l; } w; |
| 2549 | }; |
| 2550 | int m; |
| 2551 | } v1; |
| 2552 | ' |
| 2553 | |
| 2554 | # Test code for whether the C compiler supports C11 (body of main). |
| 2555 | ac_c_conftest_c11_main=' |
| 2556 | _Static_assert ((offsetof (struct anonymous, i) |
| 2557 | == offsetof (struct anonymous, w.k)), |
| 2558 | "Anonymous union alignment botch"); |
| 2559 | v1.i = 2; |
| 2560 | v1.w.k = 5; |
| 2561 | ok |= v1.i != 5; |
| 2562 | ' |
| 2563 | |
| 2564 | # Test code for whether the C compiler supports C11 (complete). |
| 2565 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2566 | ${ac_c_conftest_c99_globals} |
| 2567 | ${ac_c_conftest_c11_globals} |
| 2568 | |
| 2569 | int |
| 2570 | main (int argc, char **argv) |
| 2571 | { |
| 2572 | int ok = 0; |
| 2573 | ${ac_c_conftest_c89_main} |
| 2574 | ${ac_c_conftest_c99_main} |
| 2575 | ${ac_c_conftest_c11_main} |
| 2576 | return ok; |
| 2577 | } |
| 2578 | " |
| 2579 | |
| 2580 | # Test code for whether the C compiler supports C99 (complete). |
| 2581 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2582 | ${ac_c_conftest_c99_globals} |
| 2583 | |
| 2584 | int |
| 2585 | main (int argc, char **argv) |
| 2586 | { |
| 2587 | int ok = 0; |
| 2588 | ${ac_c_conftest_c89_main} |
| 2589 | ${ac_c_conftest_c99_main} |
| 2590 | return ok; |
| 2591 | } |
| 2592 | " |
| 2593 | |
| 2594 | # Test code for whether the C compiler supports C89 (complete). |
| 2595 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2596 | |
| 2597 | int |
| 2598 | main (int argc, char **argv) |
| 2599 | { |
| 2600 | int ok = 0; |
| 2601 | ${ac_c_conftest_c89_main} |
| 2602 | return ok; |
| 2603 | } |
| 2604 | " |
| 2605 | |
| 2606 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2607 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2608 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2609 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2610 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2611 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2612 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2613 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2614 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 2615 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 2616 | gt_needs="$gt_needs " |
| 2617 | |
| 2618 | # Auxiliary files required by this configure script. |
| 2619 | ac_aux_files="config.rpath missing install-sh config.guess config.sub ltmain.sh compile" |
| 2620 | |
| 2621 | # Locations in which to look for auxiliary files. |
| 2622 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 2623 | |
| 2624 | # Search for a directory containing all of the required auxiliary files, |
| 2625 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2626 | # If we don't find one directory that contains all the files we need, |
| 2627 | # we report the set of missing files from the *first* directory in |
| 2628 | # $ac_aux_dir_candidates and give up. |
| 2629 | ac_missing_aux_files="" |
| 2630 | ac_first_candidate=: |
| 2631 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2633 | as_found=false |
| 2634 | for as_dir in $ac_aux_dir_candidates |
| 2635 | do |
| 2636 | IFS=$as_save_IFS |
| 2637 | case $as_dir in #((( |
| 2638 | '') as_dir=./ ;; |
| 2639 | */) ;; |
| 2640 | *) as_dir=$as_dir/ ;; |
| 2641 | esac |
| 2642 | as_found=: |
| 2643 | |
| 2644 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 2645 | ac_aux_dir_found=yes |
| 2646 | ac_install_sh= |
| 2647 | for ac_aux in $ac_aux_files |
| 2648 | do |
| 2649 | # As a special case, if "install-sh" is required, that requirement |
| 2650 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 2651 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 2652 | if test x"$ac_aux" = x"install-sh" |
| 2653 | then |
| 2654 | if test -f "${as_dir}install-sh"; then |
| 2655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 2656 | ac_install_sh="${as_dir}install-sh -c" |
| 2657 | elif test -f "${as_dir}install.sh"; then |
| 2658 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 2659 | ac_install_sh="${as_dir}install.sh -c" |
| 2660 | elif test -f "${as_dir}shtool"; then |
| 2661 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 2662 | ac_install_sh="${as_dir}shtool install -c" |
| 2663 | else |
| 2664 | ac_aux_dir_found=no |
| 2665 | if $ac_first_candidate; then |
| 2666 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 2667 | else |
| 2668 | break |
| 2669 | fi |
| 2670 | fi |
| 2671 | else |
| 2672 | if test -f "${as_dir}${ac_aux}"; then |
| 2673 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 2674 | else |
| 2675 | ac_aux_dir_found=no |
| 2676 | if $ac_first_candidate; then |
| 2677 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 2678 | else |
| 2679 | break |
| 2680 | fi |
| 2681 | fi |
| 2682 | fi |
| 2683 | done |
| 2684 | if test "$ac_aux_dir_found" = yes; then |
| 2685 | ac_aux_dir="$as_dir" |
| 2686 | break |
| 2687 | fi |
| 2688 | ac_first_candidate=false |
| 2689 | |
| 2690 | as_found=false |
| 2691 | done |
| 2692 | IFS=$as_save_IFS |
| 2693 | if $as_found |
| 2694 | then : |
| 2695 | |
| 2696 | else $as_nop |
| 2697 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 2698 | fi |
| 2699 | |
| 2700 | |
| 2701 | # These three variables are undocumented and unsupported, |
| 2702 | # and are intended to be withdrawn in a future Autoconf release. |
| 2703 | # They can cause serious problems if a builder's source tree is in a directory |
| 2704 | # whose full name contains unusual characters. |
| 2705 | if test -f "${ac_aux_dir}config.guess"; then |
| 2706 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 2707 | fi |
| 2708 | if test -f "${ac_aux_dir}config.sub"; then |
| 2709 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 2710 | fi |
| 2711 | if test -f "$ac_aux_dir/configure"; then |
| 2712 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 2713 | fi |
| 2714 | |
| 2715 | # Check that the precious variables saved in the cache have kept the same |
| 2716 | # value. |
| 2717 | ac_cache_corrupted=false |
| 2718 | for ac_var in $ac_precious_vars; do |
| 2719 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2720 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2721 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2722 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2723 | case $ac_old_set,$ac_new_set in |
| 2724 | set,) |
| 2725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2726 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2727 | ac_cache_corrupted=: ;; |
| 2728 | ,set) |
| 2729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2730 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2731 | ac_cache_corrupted=: ;; |
| 2732 | ,);; |
| 2733 | *) |
| 2734 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2735 | # differences in whitespace do not lead to failure. |
| 2736 | ac_old_val_w=`echo x $ac_old_val` |
| 2737 | ac_new_val_w=`echo x $ac_new_val` |
| 2738 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2740 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2741 | ac_cache_corrupted=: |
| 2742 | else |
| 2743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2744 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2745 | eval $ac_var=\$ac_old_val |
| 2746 | fi |
| 2747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2748 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2750 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2751 | fi;; |
| 2752 | esac |
| 2753 | # Pass precious variables to config.status. |
| 2754 | if test "$ac_new_set" = set; then |
| 2755 | case $ac_new_val in |
| 2756 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2757 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2758 | esac |
| 2759 | case " $ac_configure_args " in |
| 2760 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2761 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2762 | esac |
| 2763 | fi |
| 2764 | done |
| 2765 | if $ac_cache_corrupted; then |
| 2766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2767 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2769 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2770 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 2771 | and start over" "$LINENO" 5 |
| 2772 | fi |
| 2773 | ## -------------------- ## |
| 2774 | ## Main body of script. ## |
| 2775 | ## -------------------- ## |
| 2776 | |
| 2777 | ac_ext=c |
| 2778 | ac_cpp='$CPP $CPPFLAGS' |
| 2779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2782 | |
| 2783 | |
| 2784 | |
| 2785 | GLIB_REQS=2.66 |
| 2786 | OSTREE_REQS=2017.14 |
| 2787 | FLATPAK_REQS=0.99.1 |
| 2788 | APPSTREAMCLI_REQS=0.15.0 |
| 2789 | SYSTEM_DEBUGEDIT_REQS=5.0 |
| 2790 | LIBDW_REQS=0.172 |
| 2791 | |
| 2792 | |
| 2793 | |
| 2794 | |
| 2795 | |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | |
| 2800 | |
| 2801 | |
| 2802 | |
| 2803 | # Expand $ac_aux_dir to an absolute path. |
| 2804 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 2805 | |
| 2806 | ac_ext=c |
| 2807 | ac_cpp='$CPP $CPPFLAGS' |
| 2808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2811 | if test -n "$ac_tool_prefix"; then |
| 2812 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2813 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2815 | printf %s "checking for $ac_word... " >&6; } |
| 2816 | if test ${ac_cv_prog_CC+y} |
| 2817 | then : |
| 2818 | printf %s "(cached) " >&6 |
| 2819 | else $as_nop |
| 2820 | if test -n "$CC"; then |
| 2821 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2822 | else |
| 2823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2824 | for as_dir in $PATH |
| 2825 | do |
| 2826 | IFS=$as_save_IFS |
| 2827 | case $as_dir in #((( |
| 2828 | '') as_dir=./ ;; |
| 2829 | */) ;; |
| 2830 | *) as_dir=$as_dir/ ;; |
| 2831 | esac |
| 2832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2833 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2834 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2835 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2836 | break 2 |
| 2837 | fi |
| 2838 | done |
| 2839 | done |
| 2840 | IFS=$as_save_IFS |
| 2841 | |
| 2842 | fi |
| 2843 | fi |
| 2844 | CC=$ac_cv_prog_CC |
| 2845 | if test -n "$CC"; then |
| 2846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2847 | printf "%s\n" "$CC" >&6; } |
| 2848 | else |
| 2849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2850 | printf "%s\n" "no" >&6; } |
| 2851 | fi |
| 2852 | |
| 2853 | |
| 2854 | fi |
| 2855 | if test -z "$ac_cv_prog_CC"; then |
| 2856 | ac_ct_CC=$CC |
| 2857 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2858 | set dummy gcc; ac_word=$2 |
| 2859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2860 | printf %s "checking for $ac_word... " >&6; } |
| 2861 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 2862 | then : |
| 2863 | printf %s "(cached) " >&6 |
| 2864 | else $as_nop |
| 2865 | if test -n "$ac_ct_CC"; then |
| 2866 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2867 | else |
| 2868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2869 | for as_dir in $PATH |
| 2870 | do |
| 2871 | IFS=$as_save_IFS |
| 2872 | case $as_dir in #((( |
| 2873 | '') as_dir=./ ;; |
| 2874 | */) ;; |
| 2875 | *) as_dir=$as_dir/ ;; |
| 2876 | esac |
| 2877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2878 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2879 | ac_cv_prog_ac_ct_CC="gcc" |
| 2880 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2881 | break 2 |
| 2882 | fi |
| 2883 | done |
| 2884 | done |
| 2885 | IFS=$as_save_IFS |
| 2886 | |
| 2887 | fi |
| 2888 | fi |
| 2889 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2890 | if test -n "$ac_ct_CC"; then |
| 2891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2892 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 2893 | else |
| 2894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2895 | printf "%s\n" "no" >&6; } |
| 2896 | fi |
| 2897 | |
| 2898 | if test "x$ac_ct_CC" = x; then |
| 2899 | CC="" |
| 2900 | else |
| 2901 | case $cross_compiling:$ac_tool_warned in |
| 2902 | yes:) |
| 2903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2904 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2905 | ac_tool_warned=yes ;; |
| 2906 | esac |
| 2907 | CC=$ac_ct_CC |
| 2908 | fi |
| 2909 | else |
| 2910 | CC="$ac_cv_prog_CC" |
| 2911 | fi |
| 2912 | |
| 2913 | if test -z "$CC"; then |
| 2914 | if test -n "$ac_tool_prefix"; then |
| 2915 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2916 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2918 | printf %s "checking for $ac_word... " >&6; } |
| 2919 | if test ${ac_cv_prog_CC+y} |
| 2920 | then : |
| 2921 | printf %s "(cached) " >&6 |
| 2922 | else $as_nop |
| 2923 | if test -n "$CC"; then |
| 2924 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2925 | else |
| 2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2927 | for as_dir in $PATH |
| 2928 | do |
| 2929 | IFS=$as_save_IFS |
| 2930 | case $as_dir in #((( |
| 2931 | '') as_dir=./ ;; |
| 2932 | */) ;; |
| 2933 | *) as_dir=$as_dir/ ;; |
| 2934 | esac |
| 2935 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2936 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2937 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2938 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2939 | break 2 |
| 2940 | fi |
| 2941 | done |
| 2942 | done |
| 2943 | IFS=$as_save_IFS |
| 2944 | |
| 2945 | fi |
| 2946 | fi |
| 2947 | CC=$ac_cv_prog_CC |
| 2948 | if test -n "$CC"; then |
| 2949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2950 | printf "%s\n" "$CC" >&6; } |
| 2951 | else |
| 2952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2953 | printf "%s\n" "no" >&6; } |
| 2954 | fi |
| 2955 | |
| 2956 | |
| 2957 | fi |
| 2958 | fi |
| 2959 | if test -z "$CC"; then |
| 2960 | # Extract the first word of "cc", so it can be a program name with args. |
| 2961 | set dummy cc; ac_word=$2 |
| 2962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2963 | printf %s "checking for $ac_word... " >&6; } |
| 2964 | if test ${ac_cv_prog_CC+y} |
| 2965 | then : |
| 2966 | printf %s "(cached) " >&6 |
| 2967 | else $as_nop |
| 2968 | if test -n "$CC"; then |
| 2969 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2970 | else |
| 2971 | ac_prog_rejected=no |
| 2972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2973 | for as_dir in $PATH |
| 2974 | do |
| 2975 | IFS=$as_save_IFS |
| 2976 | case $as_dir in #((( |
| 2977 | '') as_dir=./ ;; |
| 2978 | */) ;; |
| 2979 | *) as_dir=$as_dir/ ;; |
| 2980 | esac |
| 2981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2982 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2983 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2984 | ac_prog_rejected=yes |
| 2985 | continue |
| 2986 | fi |
| 2987 | ac_cv_prog_CC="cc" |
| 2988 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2989 | break 2 |
| 2990 | fi |
| 2991 | done |
| 2992 | done |
| 2993 | IFS=$as_save_IFS |
| 2994 | |
| 2995 | if test $ac_prog_rejected = yes; then |
| 2996 | # We found a bogon in the path, so make sure we never use it. |
| 2997 | set dummy $ac_cv_prog_CC |
| 2998 | shift |
| 2999 | if test $# != 0; then |
| 3000 | # We chose a different compiler from the bogus one. |
| 3001 | # However, it has the same basename, so the bogon will be chosen |
| 3002 | # first if we set CC to just the basename; use the full file name. |
| 3003 | shift |
| 3004 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3005 | fi |
| 3006 | fi |
| 3007 | fi |
| 3008 | fi |
| 3009 | CC=$ac_cv_prog_CC |
| 3010 | if test -n "$CC"; then |
| 3011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3012 | printf "%s\n" "$CC" >&6; } |
| 3013 | else |
| 3014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3015 | printf "%s\n" "no" >&6; } |
| 3016 | fi |
| 3017 | |
| 3018 | |
| 3019 | fi |
| 3020 | if test -z "$CC"; then |
| 3021 | if test -n "$ac_tool_prefix"; then |
| 3022 | for ac_prog in cl.exe |
| 3023 | do |
| 3024 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3025 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3027 | printf %s "checking for $ac_word... " >&6; } |
| 3028 | if test ${ac_cv_prog_CC+y} |
| 3029 | then : |
| 3030 | printf %s "(cached) " >&6 |
| 3031 | else $as_nop |
| 3032 | if test -n "$CC"; then |
| 3033 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3034 | else |
| 3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3036 | for as_dir in $PATH |
| 3037 | do |
| 3038 | IFS=$as_save_IFS |
| 3039 | case $as_dir in #((( |
| 3040 | '') as_dir=./ ;; |
| 3041 | */) ;; |
| 3042 | *) as_dir=$as_dir/ ;; |
| 3043 | esac |
| 3044 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3045 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3046 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3047 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3048 | break 2 |
| 3049 | fi |
| 3050 | done |
| 3051 | done |
| 3052 | IFS=$as_save_IFS |
| 3053 | |
| 3054 | fi |
| 3055 | fi |
| 3056 | CC=$ac_cv_prog_CC |
| 3057 | if test -n "$CC"; then |
| 3058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3059 | printf "%s\n" "$CC" >&6; } |
| 3060 | else |
| 3061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3062 | printf "%s\n" "no" >&6; } |
| 3063 | fi |
| 3064 | |
| 3065 | |
| 3066 | test -n "$CC" && break |
| 3067 | done |
| 3068 | fi |
| 3069 | if test -z "$CC"; then |
| 3070 | ac_ct_CC=$CC |
| 3071 | for ac_prog in cl.exe |
| 3072 | do |
| 3073 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3074 | set dummy $ac_prog; ac_word=$2 |
| 3075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3076 | printf %s "checking for $ac_word... " >&6; } |
| 3077 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3078 | then : |
| 3079 | printf %s "(cached) " >&6 |
| 3080 | else $as_nop |
| 3081 | if test -n "$ac_ct_CC"; then |
| 3082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3083 | else |
| 3084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3085 | for as_dir in $PATH |
| 3086 | do |
| 3087 | IFS=$as_save_IFS |
| 3088 | case $as_dir in #((( |
| 3089 | '') as_dir=./ ;; |
| 3090 | */) ;; |
| 3091 | *) as_dir=$as_dir/ ;; |
| 3092 | esac |
| 3093 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3094 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3095 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3096 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3097 | break 2 |
| 3098 | fi |
| 3099 | done |
| 3100 | done |
| 3101 | IFS=$as_save_IFS |
| 3102 | |
| 3103 | fi |
| 3104 | fi |
| 3105 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3106 | if test -n "$ac_ct_CC"; then |
| 3107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3108 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3109 | else |
| 3110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3111 | printf "%s\n" "no" >&6; } |
| 3112 | fi |
| 3113 | |
| 3114 | |
| 3115 | test -n "$ac_ct_CC" && break |
| 3116 | done |
| 3117 | |
| 3118 | if test "x$ac_ct_CC" = x; then |
| 3119 | CC="" |
| 3120 | else |
| 3121 | case $cross_compiling:$ac_tool_warned in |
| 3122 | yes:) |
| 3123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3124 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3125 | ac_tool_warned=yes ;; |
| 3126 | esac |
| 3127 | CC=$ac_ct_CC |
| 3128 | fi |
| 3129 | fi |
| 3130 | |
| 3131 | fi |
| 3132 | if test -z "$CC"; then |
| 3133 | if test -n "$ac_tool_prefix"; then |
| 3134 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3135 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3137 | printf %s "checking for $ac_word... " >&6; } |
| 3138 | if test ${ac_cv_prog_CC+y} |
| 3139 | then : |
| 3140 | printf %s "(cached) " >&6 |
| 3141 | else $as_nop |
| 3142 | if test -n "$CC"; then |
| 3143 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3144 | else |
| 3145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3146 | for as_dir in $PATH |
| 3147 | do |
| 3148 | IFS=$as_save_IFS |
| 3149 | case $as_dir in #((( |
| 3150 | '') as_dir=./ ;; |
| 3151 | */) ;; |
| 3152 | *) as_dir=$as_dir/ ;; |
| 3153 | esac |
| 3154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3155 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3156 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3157 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3158 | break 2 |
| 3159 | fi |
| 3160 | done |
| 3161 | done |
| 3162 | IFS=$as_save_IFS |
| 3163 | |
| 3164 | fi |
| 3165 | fi |
| 3166 | CC=$ac_cv_prog_CC |
| 3167 | if test -n "$CC"; then |
| 3168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3169 | printf "%s\n" "$CC" >&6; } |
| 3170 | else |
| 3171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3172 | printf "%s\n" "no" >&6; } |
| 3173 | fi |
| 3174 | |
| 3175 | |
| 3176 | fi |
| 3177 | if test -z "$ac_cv_prog_CC"; then |
| 3178 | ac_ct_CC=$CC |
| 3179 | # Extract the first word of "clang", so it can be a program name with args. |
| 3180 | set dummy clang; ac_word=$2 |
| 3181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3182 | printf %s "checking for $ac_word... " >&6; } |
| 3183 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3184 | then : |
| 3185 | printf %s "(cached) " >&6 |
| 3186 | else $as_nop |
| 3187 | if test -n "$ac_ct_CC"; then |
| 3188 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3189 | else |
| 3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3191 | for as_dir in $PATH |
| 3192 | do |
| 3193 | IFS=$as_save_IFS |
| 3194 | case $as_dir in #((( |
| 3195 | '') as_dir=./ ;; |
| 3196 | */) ;; |
| 3197 | *) as_dir=$as_dir/ ;; |
| 3198 | esac |
| 3199 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3200 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3201 | ac_cv_prog_ac_ct_CC="clang" |
| 3202 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3203 | break 2 |
| 3204 | fi |
| 3205 | done |
| 3206 | done |
| 3207 | IFS=$as_save_IFS |
| 3208 | |
| 3209 | fi |
| 3210 | fi |
| 3211 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3212 | if test -n "$ac_ct_CC"; then |
| 3213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3214 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3215 | else |
| 3216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3217 | printf "%s\n" "no" >&6; } |
| 3218 | fi |
| 3219 | |
| 3220 | if test "x$ac_ct_CC" = x; then |
| 3221 | CC="" |
| 3222 | else |
| 3223 | case $cross_compiling:$ac_tool_warned in |
| 3224 | yes:) |
| 3225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3226 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3227 | ac_tool_warned=yes ;; |
| 3228 | esac |
| 3229 | CC=$ac_ct_CC |
| 3230 | fi |
| 3231 | else |
| 3232 | CC="$ac_cv_prog_CC" |
| 3233 | fi |
| 3234 | |
| 3235 | fi |
| 3236 | |
| 3237 | |
| 3238 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3239 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3240 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3241 | See \`config.log' for more details" "$LINENO" 5; } |
| 3242 | |
| 3243 | # Provide some information about the compiler. |
| 3244 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3245 | set X $ac_compile |
| 3246 | ac_compiler=$2 |
| 3247 | for ac_option in --version -v -V -qversion -version; do |
| 3248 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3249 | case "(($ac_try" in |
| 3250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3251 | *) ac_try_echo=$ac_try;; |
| 3252 | esac |
| 3253 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3254 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3255 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3256 | ac_status=$? |
| 3257 | if test -s conftest.err; then |
| 3258 | sed '10a\ |
| 3259 | ... rest of stderr output deleted ... |
| 3260 | 10q' conftest.err >conftest.er1 |
| 3261 | cat conftest.er1 >&5 |
| 3262 | fi |
| 3263 | rm -f conftest.er1 conftest.err |
| 3264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3265 | test $ac_status = 0; } |
| 3266 | done |
| 3267 | |
| 3268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3269 | /* end confdefs.h. */ |
| 3270 | |
| 3271 | int |
| 3272 | main (void) |
| 3273 | { |
| 3274 | |
| 3275 | ; |
| 3276 | return 0; |
| 3277 | } |
| 3278 | _ACEOF |
| 3279 | ac_clean_files_save=$ac_clean_files |
| 3280 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3281 | # Try to create an executable without -o first, disregard a.out. |
| 3282 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3283 | # of exeext. |
| 3284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3285 | printf %s "checking whether the C compiler works... " >&6; } |
| 3286 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3287 | |
| 3288 | # The possible output files: |
| 3289 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3290 | |
| 3291 | ac_rmfiles= |
| 3292 | for ac_file in $ac_files |
| 3293 | do |
| 3294 | case $ac_file in |
| 3295 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3296 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3297 | esac |
| 3298 | done |
| 3299 | rm -f $ac_rmfiles |
| 3300 | |
| 3301 | if { { ac_try="$ac_link_default" |
| 3302 | case "(($ac_try" in |
| 3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3304 | *) ac_try_echo=$ac_try;; |
| 3305 | esac |
| 3306 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3307 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3308 | (eval "$ac_link_default") 2>&5 |
| 3309 | ac_status=$? |
| 3310 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3311 | test $ac_status = 0; } |
| 3312 | then : |
| 3313 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3314 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3315 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3316 | # so that the user can short-circuit this test for compilers unknown to |
| 3317 | # Autoconf. |
| 3318 | for ac_file in $ac_files '' |
| 3319 | do |
| 3320 | test -f "$ac_file" || continue |
| 3321 | case $ac_file in |
| 3322 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3323 | ;; |
| 3324 | [ab].out ) |
| 3325 | # We found the default executable, but exeext='' is most |
| 3326 | # certainly right. |
| 3327 | break;; |
| 3328 | *.* ) |
| 3329 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 3330 | then :; else |
| 3331 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3332 | fi |
| 3333 | # We set ac_cv_exeext here because the later test for it is not |
| 3334 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3335 | # argument, so we may need to know it at that point already. |
| 3336 | # Even if this section looks crufty: it has the advantage of |
| 3337 | # actually working. |
| 3338 | break;; |
| 3339 | * ) |
| 3340 | break;; |
| 3341 | esac |
| 3342 | done |
| 3343 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3344 | |
| 3345 | else $as_nop |
| 3346 | ac_file='' |
| 3347 | fi |
| 3348 | if test -z "$ac_file" |
| 3349 | then : |
| 3350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3351 | printf "%s\n" "no" >&6; } |
| 3352 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3354 | |
| 3355 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3356 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3357 | as_fn_error 77 "C compiler cannot create executables |
| 3358 | See \`config.log' for more details" "$LINENO" 5; } |
| 3359 | else $as_nop |
| 3360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3361 | printf "%s\n" "yes" >&6; } |
| 3362 | fi |
| 3363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3364 | printf %s "checking for C compiler default output file name... " >&6; } |
| 3365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3366 | printf "%s\n" "$ac_file" >&6; } |
| 3367 | ac_exeext=$ac_cv_exeext |
| 3368 | |
| 3369 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3370 | ac_clean_files=$ac_clean_files_save |
| 3371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3372 | printf %s "checking for suffix of executables... " >&6; } |
| 3373 | if { { ac_try="$ac_link" |
| 3374 | case "(($ac_try" in |
| 3375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3376 | *) ac_try_echo=$ac_try;; |
| 3377 | esac |
| 3378 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3379 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3380 | (eval "$ac_link") 2>&5 |
| 3381 | ac_status=$? |
| 3382 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3383 | test $ac_status = 0; } |
| 3384 | then : |
| 3385 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3386 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3387 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3388 | # `rm'. |
| 3389 | for ac_file in conftest.exe conftest conftest.*; do |
| 3390 | test -f "$ac_file" || continue |
| 3391 | case $ac_file in |
| 3392 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3393 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3394 | break;; |
| 3395 | * ) break;; |
| 3396 | esac |
| 3397 | done |
| 3398 | else $as_nop |
| 3399 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3400 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3401 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3402 | See \`config.log' for more details" "$LINENO" 5; } |
| 3403 | fi |
| 3404 | rm -f conftest conftest$ac_cv_exeext |
| 3405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3406 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 3407 | |
| 3408 | rm -f conftest.$ac_ext |
| 3409 | EXEEXT=$ac_cv_exeext |
| 3410 | ac_exeext=$EXEEXT |
| 3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3412 | /* end confdefs.h. */ |
| 3413 | #include <stdio.h> |
| 3414 | int |
| 3415 | main (void) |
| 3416 | { |
| 3417 | FILE *f = fopen ("conftest.out", "w"); |
| 3418 | return ferror (f) || fclose (f) != 0; |
| 3419 | |
| 3420 | ; |
| 3421 | return 0; |
| 3422 | } |
| 3423 | _ACEOF |
| 3424 | ac_clean_files="$ac_clean_files conftest.out" |
| 3425 | # Check that the compiler produces executables we can run. If not, either |
| 3426 | # the compiler is broken, or we cross compile. |
| 3427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3428 | printf %s "checking whether we are cross compiling... " >&6; } |
| 3429 | if test "$cross_compiling" != yes; then |
| 3430 | { { ac_try="$ac_link" |
| 3431 | case "(($ac_try" in |
| 3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3433 | *) ac_try_echo=$ac_try;; |
| 3434 | esac |
| 3435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3436 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3437 | (eval "$ac_link") 2>&5 |
| 3438 | ac_status=$? |
| 3439 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3440 | test $ac_status = 0; } |
| 3441 | if { ac_try='./conftest$ac_cv_exeext' |
| 3442 | { { case "(($ac_try" in |
| 3443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3444 | *) ac_try_echo=$ac_try;; |
| 3445 | esac |
| 3446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3447 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3448 | (eval "$ac_try") 2>&5 |
| 3449 | ac_status=$? |
| 3450 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3451 | test $ac_status = 0; }; }; then |
| 3452 | cross_compiling=no |
| 3453 | else |
| 3454 | if test "$cross_compiling" = maybe; then |
| 3455 | cross_compiling=yes |
| 3456 | else |
| 3457 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3458 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3459 | as_fn_error 77 "cannot run C compiled programs. |
| 3460 | If you meant to cross compile, use \`--host'. |
| 3461 | See \`config.log' for more details" "$LINENO" 5; } |
| 3462 | fi |
| 3463 | fi |
| 3464 | fi |
| 3465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3466 | printf "%s\n" "$cross_compiling" >&6; } |
| 3467 | |
| 3468 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3469 | ac_clean_files=$ac_clean_files_save |
| 3470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3471 | printf %s "checking for suffix of object files... " >&6; } |
| 3472 | if test ${ac_cv_objext+y} |
| 3473 | then : |
| 3474 | printf %s "(cached) " >&6 |
| 3475 | else $as_nop |
| 3476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3477 | /* end confdefs.h. */ |
| 3478 | |
| 3479 | int |
| 3480 | main (void) |
| 3481 | { |
| 3482 | |
| 3483 | ; |
| 3484 | return 0; |
| 3485 | } |
| 3486 | _ACEOF |
| 3487 | rm -f conftest.o conftest.obj |
| 3488 | if { { ac_try="$ac_compile" |
| 3489 | case "(($ac_try" in |
| 3490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3491 | *) ac_try_echo=$ac_try;; |
| 3492 | esac |
| 3493 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3494 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3495 | (eval "$ac_compile") 2>&5 |
| 3496 | ac_status=$? |
| 3497 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3498 | test $ac_status = 0; } |
| 3499 | then : |
| 3500 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3501 | test -f "$ac_file" || continue; |
| 3502 | case $ac_file in |
| 3503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3504 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3505 | break;; |
| 3506 | esac |
| 3507 | done |
| 3508 | else $as_nop |
| 3509 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3511 | |
| 3512 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3513 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3514 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3515 | See \`config.log' for more details" "$LINENO" 5; } |
| 3516 | fi |
| 3517 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3518 | fi |
| 3519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3520 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 3521 | OBJEXT=$ac_cv_objext |
| 3522 | ac_objext=$OBJEXT |
| 3523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3524 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3525 | if test ${ac_cv_c_compiler_gnu+y} |
| 3526 | then : |
| 3527 | printf %s "(cached) " >&6 |
| 3528 | else $as_nop |
| 3529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3530 | /* end confdefs.h. */ |
| 3531 | |
| 3532 | int |
| 3533 | main (void) |
| 3534 | { |
| 3535 | #ifndef __GNUC__ |
| 3536 | choke me |
| 3537 | #endif |
| 3538 | |
| 3539 | ; |
| 3540 | return 0; |
| 3541 | } |
| 3542 | _ACEOF |
| 3543 | if ac_fn_c_try_compile "$LINENO" |
| 3544 | then : |
| 3545 | ac_compiler_gnu=yes |
| 3546 | else $as_nop |
| 3547 | ac_compiler_gnu=no |
| 3548 | fi |
| 3549 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3550 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3551 | |
| 3552 | fi |
| 3553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3554 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3556 | |
| 3557 | if test $ac_compiler_gnu = yes; then |
| 3558 | GCC=yes |
| 3559 | else |
| 3560 | GCC= |
| 3561 | fi |
| 3562 | ac_test_CFLAGS=${CFLAGS+y} |
| 3563 | ac_save_CFLAGS=$CFLAGS |
| 3564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3565 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 3566 | if test ${ac_cv_prog_cc_g+y} |
| 3567 | then : |
| 3568 | printf %s "(cached) " >&6 |
| 3569 | else $as_nop |
| 3570 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3571 | ac_c_werror_flag=yes |
| 3572 | ac_cv_prog_cc_g=no |
| 3573 | CFLAGS="-g" |
| 3574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3575 | /* end confdefs.h. */ |
| 3576 | |
| 3577 | int |
| 3578 | main (void) |
| 3579 | { |
| 3580 | |
| 3581 | ; |
| 3582 | return 0; |
| 3583 | } |
| 3584 | _ACEOF |
| 3585 | if ac_fn_c_try_compile "$LINENO" |
| 3586 | then : |
| 3587 | ac_cv_prog_cc_g=yes |
| 3588 | else $as_nop |
| 3589 | CFLAGS="" |
| 3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3591 | /* end confdefs.h. */ |
| 3592 | |
| 3593 | int |
| 3594 | main (void) |
| 3595 | { |
| 3596 | |
| 3597 | ; |
| 3598 | return 0; |
| 3599 | } |
| 3600 | _ACEOF |
| 3601 | if ac_fn_c_try_compile "$LINENO" |
| 3602 | then : |
| 3603 | |
| 3604 | else $as_nop |
| 3605 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3606 | CFLAGS="-g" |
| 3607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3608 | /* end confdefs.h. */ |
| 3609 | |
| 3610 | int |
| 3611 | main (void) |
| 3612 | { |
| 3613 | |
| 3614 | ; |
| 3615 | return 0; |
| 3616 | } |
| 3617 | _ACEOF |
| 3618 | if ac_fn_c_try_compile "$LINENO" |
| 3619 | then : |
| 3620 | ac_cv_prog_cc_g=yes |
| 3621 | fi |
| 3622 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3623 | fi |
| 3624 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3625 | fi |
| 3626 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3627 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3628 | fi |
| 3629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3630 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 3631 | if test $ac_test_CFLAGS; then |
| 3632 | CFLAGS=$ac_save_CFLAGS |
| 3633 | elif test $ac_cv_prog_cc_g = yes; then |
| 3634 | if test "$GCC" = yes; then |
| 3635 | CFLAGS="-g -O2" |
| 3636 | else |
| 3637 | CFLAGS="-g" |
| 3638 | fi |
| 3639 | else |
| 3640 | if test "$GCC" = yes; then |
| 3641 | CFLAGS="-O2" |
| 3642 | else |
| 3643 | CFLAGS= |
| 3644 | fi |
| 3645 | fi |
| 3646 | ac_prog_cc_stdc=no |
| 3647 | if test x$ac_prog_cc_stdc = xno |
| 3648 | then : |
| 3649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 3650 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 3651 | if test ${ac_cv_prog_cc_c11+y} |
| 3652 | then : |
| 3653 | printf %s "(cached) " >&6 |
| 3654 | else $as_nop |
| 3655 | ac_cv_prog_cc_c11=no |
| 3656 | ac_save_CC=$CC |
| 3657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3658 | /* end confdefs.h. */ |
| 3659 | $ac_c_conftest_c11_program |
| 3660 | _ACEOF |
| 3661 | for ac_arg in '' -std=gnu11 |
| 3662 | do |
| 3663 | CC="$ac_save_CC $ac_arg" |
| 3664 | if ac_fn_c_try_compile "$LINENO" |
| 3665 | then : |
| 3666 | ac_cv_prog_cc_c11=$ac_arg |
| 3667 | fi |
| 3668 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3669 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 3670 | done |
| 3671 | rm -f conftest.$ac_ext |
| 3672 | CC=$ac_save_CC |
| 3673 | fi |
| 3674 | |
| 3675 | if test "x$ac_cv_prog_cc_c11" = xno |
| 3676 | then : |
| 3677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3678 | printf "%s\n" "unsupported" >&6; } |
| 3679 | else $as_nop |
| 3680 | if test "x$ac_cv_prog_cc_c11" = x |
| 3681 | then : |
| 3682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3683 | printf "%s\n" "none needed" >&6; } |
| 3684 | else $as_nop |
| 3685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 3686 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 3687 | CC="$CC $ac_cv_prog_cc_c11" |
| 3688 | fi |
| 3689 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 3690 | ac_prog_cc_stdc=c11 |
| 3691 | fi |
| 3692 | fi |
| 3693 | if test x$ac_prog_cc_stdc = xno |
| 3694 | then : |
| 3695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 3696 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 3697 | if test ${ac_cv_prog_cc_c99+y} |
| 3698 | then : |
| 3699 | printf %s "(cached) " >&6 |
| 3700 | else $as_nop |
| 3701 | ac_cv_prog_cc_c99=no |
| 3702 | ac_save_CC=$CC |
| 3703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3704 | /* end confdefs.h. */ |
| 3705 | $ac_c_conftest_c99_program |
| 3706 | _ACEOF |
| 3707 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 3708 | do |
| 3709 | CC="$ac_save_CC $ac_arg" |
| 3710 | if ac_fn_c_try_compile "$LINENO" |
| 3711 | then : |
| 3712 | ac_cv_prog_cc_c99=$ac_arg |
| 3713 | fi |
| 3714 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3715 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 3716 | done |
| 3717 | rm -f conftest.$ac_ext |
| 3718 | CC=$ac_save_CC |
| 3719 | fi |
| 3720 | |
| 3721 | if test "x$ac_cv_prog_cc_c99" = xno |
| 3722 | then : |
| 3723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3724 | printf "%s\n" "unsupported" >&6; } |
| 3725 | else $as_nop |
| 3726 | if test "x$ac_cv_prog_cc_c99" = x |
| 3727 | then : |
| 3728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3729 | printf "%s\n" "none needed" >&6; } |
| 3730 | else $as_nop |
| 3731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 3732 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 3733 | CC="$CC $ac_cv_prog_cc_c99" |
| 3734 | fi |
| 3735 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 3736 | ac_prog_cc_stdc=c99 |
| 3737 | fi |
| 3738 | fi |
| 3739 | if test x$ac_prog_cc_stdc = xno |
| 3740 | then : |
| 3741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 3742 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 3743 | if test ${ac_cv_prog_cc_c89+y} |
| 3744 | then : |
| 3745 | printf %s "(cached) " >&6 |
| 3746 | else $as_nop |
| 3747 | ac_cv_prog_cc_c89=no |
| 3748 | ac_save_CC=$CC |
| 3749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3750 | /* end confdefs.h. */ |
| 3751 | $ac_c_conftest_c89_program |
| 3752 | _ACEOF |
| 3753 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3754 | do |
| 3755 | CC="$ac_save_CC $ac_arg" |
| 3756 | if ac_fn_c_try_compile "$LINENO" |
| 3757 | then : |
| 3758 | ac_cv_prog_cc_c89=$ac_arg |
| 3759 | fi |
| 3760 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3761 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3762 | done |
| 3763 | rm -f conftest.$ac_ext |
| 3764 | CC=$ac_save_CC |
| 3765 | fi |
| 3766 | |
| 3767 | if test "x$ac_cv_prog_cc_c89" = xno |
| 3768 | then : |
| 3769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3770 | printf "%s\n" "unsupported" >&6; } |
| 3771 | else $as_nop |
| 3772 | if test "x$ac_cv_prog_cc_c89" = x |
| 3773 | then : |
| 3774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3775 | printf "%s\n" "none needed" >&6; } |
| 3776 | else $as_nop |
| 3777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3778 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 3779 | CC="$CC $ac_cv_prog_cc_c89" |
| 3780 | fi |
| 3781 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 3782 | ac_prog_cc_stdc=c89 |
| 3783 | fi |
| 3784 | fi |
| 3785 | |
| 3786 | ac_ext=c |
| 3787 | ac_cpp='$CPP $CPPFLAGS' |
| 3788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3791 | |
| 3792 | |
| 3793 | ac_ext=c |
| 3794 | ac_cpp='$CPP $CPPFLAGS' |
| 3795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3799 | printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 3800 | if test ${am_cv_prog_cc_c_o+y} |
| 3801 | then : |
| 3802 | printf %s "(cached) " >&6 |
| 3803 | else $as_nop |
| 3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3805 | /* end confdefs.h. */ |
| 3806 | |
| 3807 | int |
| 3808 | main (void) |
| 3809 | { |
| 3810 | |
| 3811 | ; |
| 3812 | return 0; |
| 3813 | } |
| 3814 | _ACEOF |
| 3815 | # Make sure it works both with $CC and with simple cc. |
| 3816 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 3817 | # compilers refuse to overwrite an existing .o file with -o, |
| 3818 | # though they will create one. |
| 3819 | am_cv_prog_cc_c_o=yes |
| 3820 | for am_i in 1 2; do |
| 3821 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3822 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3823 | ac_status=$? |
| 3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3825 | (exit $ac_status); } \ |
| 3826 | && test -f conftest2.$ac_objext; then |
| 3827 | : OK |
| 3828 | else |
| 3829 | am_cv_prog_cc_c_o=no |
| 3830 | break |
| 3831 | fi |
| 3832 | done |
| 3833 | rm -f core conftest* |
| 3834 | unset am_i |
| 3835 | fi |
| 3836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3837 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 3838 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 3839 | # Losing compiler, so override with the script. |
| 3840 | # FIXME: It is wrong to rewrite CC. |
| 3841 | # But if we don't then we get into trouble of one sort or another. |
| 3842 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3843 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3844 | CC="$am_aux_dir/compile $CC" |
| 3845 | fi |
| 3846 | ac_ext=c |
| 3847 | ac_cpp='$CPP $CPPFLAGS' |
| 3848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | ac_header= ac_cache= |
| 3855 | for ac_item in $ac_header_c_list |
| 3856 | do |
| 3857 | if test $ac_cache; then |
| 3858 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 3859 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 3860 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 3861 | fi |
| 3862 | ac_header= ac_cache= |
| 3863 | elif test $ac_header; then |
| 3864 | ac_cache=$ac_item |
| 3865 | else |
| 3866 | ac_header=$ac_item |
| 3867 | fi |
| 3868 | done |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 3878 | then : |
| 3879 | |
| 3880 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 3881 | |
| 3882 | fi |
| 3883 | |
| 3884 | |
| 3885 | |
| 3886 | |
| 3887 | |
| 3888 | |
| 3889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 3890 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 3891 | if test ${ac_cv_safe_to_define___extensions__+y} |
| 3892 | then : |
| 3893 | printf %s "(cached) " >&6 |
| 3894 | else $as_nop |
| 3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3896 | /* end confdefs.h. */ |
| 3897 | |
| 3898 | # define __EXTENSIONS__ 1 |
| 3899 | $ac_includes_default |
| 3900 | int |
| 3901 | main (void) |
| 3902 | { |
| 3903 | |
| 3904 | ; |
| 3905 | return 0; |
| 3906 | } |
| 3907 | _ACEOF |
| 3908 | if ac_fn_c_try_compile "$LINENO" |
| 3909 | then : |
| 3910 | ac_cv_safe_to_define___extensions__=yes |
| 3911 | else $as_nop |
| 3912 | ac_cv_safe_to_define___extensions__=no |
| 3913 | fi |
| 3914 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3915 | fi |
| 3916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 3917 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
| 3918 | |
| 3919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 3920 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 3921 | if test ${ac_cv_should_define__xopen_source+y} |
| 3922 | then : |
| 3923 | printf %s "(cached) " >&6 |
| 3924 | else $as_nop |
| 3925 | ac_cv_should_define__xopen_source=no |
| 3926 | if test $ac_cv_header_wchar_h = yes |
| 3927 | then : |
| 3928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3929 | /* end confdefs.h. */ |
| 3930 | |
| 3931 | #include <wchar.h> |
| 3932 | mbstate_t x; |
| 3933 | int |
| 3934 | main (void) |
| 3935 | { |
| 3936 | |
| 3937 | ; |
| 3938 | return 0; |
| 3939 | } |
| 3940 | _ACEOF |
| 3941 | if ac_fn_c_try_compile "$LINENO" |
| 3942 | then : |
| 3943 | |
| 3944 | else $as_nop |
| 3945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3946 | /* end confdefs.h. */ |
| 3947 | |
| 3948 | #define _XOPEN_SOURCE 500 |
| 3949 | #include <wchar.h> |
| 3950 | mbstate_t x; |
| 3951 | int |
| 3952 | main (void) |
| 3953 | { |
| 3954 | |
| 3955 | ; |
| 3956 | return 0; |
| 3957 | } |
| 3958 | _ACEOF |
| 3959 | if ac_fn_c_try_compile "$LINENO" |
| 3960 | then : |
| 3961 | ac_cv_should_define__xopen_source=yes |
| 3962 | fi |
| 3963 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3964 | fi |
| 3965 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3966 | fi |
| 3967 | fi |
| 3968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 3969 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 3970 | |
| 3971 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 3972 | |
| 3973 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 3974 | |
| 3975 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 3976 | |
| 3977 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 3978 | |
| 3979 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 3980 | |
| 3981 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 3982 | |
| 3983 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 3984 | |
| 3985 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 3986 | |
| 3987 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 3988 | |
| 3989 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 3990 | |
| 3991 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 3992 | |
| 3993 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 3994 | |
| 3995 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 3996 | |
| 3997 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 3998 | |
| 3999 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4000 | |
| 4001 | if test $ac_cv_header_minix_config_h = yes |
| 4002 | then : |
| 4003 | MINIX=yes |
| 4004 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 4005 | |
| 4006 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4007 | |
| 4008 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4009 | |
| 4010 | else $as_nop |
| 4011 | MINIX= |
| 4012 | fi |
| 4013 | if test $ac_cv_safe_to_define___extensions__ = yes |
| 4014 | then : |
| 4015 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4016 | |
| 4017 | fi |
| 4018 | if test $ac_cv_should_define__xopen_source = yes |
| 4019 | then : |
| 4020 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 4021 | |
| 4022 | fi |
| 4023 | |
| 4024 | # Check whether --enable-largefile was given. |
| 4025 | if test ${enable_largefile+y} |
| 4026 | then : |
| 4027 | enableval=$enable_largefile; |
| 4028 | fi |
| 4029 | |
| 4030 | if test "$enable_largefile" != no; then |
| 4031 | |
| 4032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 4033 | printf %s "checking for special C compiler options needed for large files... " >&6; } |
| 4034 | if test ${ac_cv_sys_largefile_CC+y} |
| 4035 | then : |
| 4036 | printf %s "(cached) " >&6 |
| 4037 | else $as_nop |
| 4038 | ac_cv_sys_largefile_CC=no |
| 4039 | if test "$GCC" != yes; then |
| 4040 | ac_save_CC=$CC |
| 4041 | while :; do |
| 4042 | # IRIX 6.2 and later do not support large files by default, |
| 4043 | # so use the C compiler's -n32 option if that helps. |
| 4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4045 | /* end confdefs.h. */ |
| 4046 | #include <sys/types.h> |
| 4047 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4048 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4049 | since some C++ compilers masquerading as C compilers |
| 4050 | incorrectly reject 9223372036854775807. */ |
| 4051 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 4052 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4053 | && LARGE_OFF_T % 2147483647 == 1) |
| 4054 | ? 1 : -1]; |
| 4055 | int |
| 4056 | main (void) |
| 4057 | { |
| 4058 | |
| 4059 | ; |
| 4060 | return 0; |
| 4061 | } |
| 4062 | _ACEOF |
| 4063 | if ac_fn_c_try_compile "$LINENO" |
| 4064 | then : |
| 4065 | break |
| 4066 | fi |
| 4067 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4068 | CC="$CC -n32" |
| 4069 | if ac_fn_c_try_compile "$LINENO" |
| 4070 | then : |
| 4071 | ac_cv_sys_largefile_CC=' -n32'; break |
| 4072 | fi |
| 4073 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4074 | break |
| 4075 | done |
| 4076 | CC=$ac_save_CC |
| 4077 | rm -f conftest.$ac_ext |
| 4078 | fi |
| 4079 | fi |
| 4080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 4081 | printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } |
| 4082 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 4083 | CC=$CC$ac_cv_sys_largefile_CC |
| 4084 | fi |
| 4085 | |
| 4086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 4087 | printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 4088 | if test ${ac_cv_sys_file_offset_bits+y} |
| 4089 | then : |
| 4090 | printf %s "(cached) " >&6 |
| 4091 | else $as_nop |
| 4092 | while :; do |
| 4093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4094 | /* end confdefs.h. */ |
| 4095 | #include <sys/types.h> |
| 4096 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4097 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4098 | since some C++ compilers masquerading as C compilers |
| 4099 | incorrectly reject 9223372036854775807. */ |
| 4100 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 4101 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4102 | && LARGE_OFF_T % 2147483647 == 1) |
| 4103 | ? 1 : -1]; |
| 4104 | int |
| 4105 | main (void) |
| 4106 | { |
| 4107 | |
| 4108 | ; |
| 4109 | return 0; |
| 4110 | } |
| 4111 | _ACEOF |
| 4112 | if ac_fn_c_try_compile "$LINENO" |
| 4113 | then : |
| 4114 | ac_cv_sys_file_offset_bits=no; break |
| 4115 | fi |
| 4116 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4118 | /* end confdefs.h. */ |
| 4119 | #define _FILE_OFFSET_BITS 64 |
| 4120 | #include <sys/types.h> |
| 4121 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4122 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4123 | since some C++ compilers masquerading as C compilers |
| 4124 | incorrectly reject 9223372036854775807. */ |
| 4125 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 4126 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4127 | && LARGE_OFF_T % 2147483647 == 1) |
| 4128 | ? 1 : -1]; |
| 4129 | int |
| 4130 | main (void) |
| 4131 | { |
| 4132 | |
| 4133 | ; |
| 4134 | return 0; |
| 4135 | } |
| 4136 | _ACEOF |
| 4137 | if ac_fn_c_try_compile "$LINENO" |
| 4138 | then : |
| 4139 | ac_cv_sys_file_offset_bits=64; break |
| 4140 | fi |
| 4141 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4142 | ac_cv_sys_file_offset_bits=unknown |
| 4143 | break |
| 4144 | done |
| 4145 | fi |
| 4146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 4147 | printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } |
| 4148 | case $ac_cv_sys_file_offset_bits in #( |
| 4149 | no | unknown) ;; |
| 4150 | *) |
| 4151 | printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h |
| 4152 | ;; |
| 4153 | esac |
| 4154 | rm -rf conftest* |
| 4155 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 4156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 4157 | printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 4158 | if test ${ac_cv_sys_large_files+y} |
| 4159 | then : |
| 4160 | printf %s "(cached) " >&6 |
| 4161 | else $as_nop |
| 4162 | while :; do |
| 4163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4164 | /* end confdefs.h. */ |
| 4165 | #include <sys/types.h> |
| 4166 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4167 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4168 | since some C++ compilers masquerading as C compilers |
| 4169 | incorrectly reject 9223372036854775807. */ |
| 4170 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 4171 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4172 | && LARGE_OFF_T % 2147483647 == 1) |
| 4173 | ? 1 : -1]; |
| 4174 | int |
| 4175 | main (void) |
| 4176 | { |
| 4177 | |
| 4178 | ; |
| 4179 | return 0; |
| 4180 | } |
| 4181 | _ACEOF |
| 4182 | if ac_fn_c_try_compile "$LINENO" |
| 4183 | then : |
| 4184 | ac_cv_sys_large_files=no; break |
| 4185 | fi |
| 4186 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4188 | /* end confdefs.h. */ |
| 4189 | #define _LARGE_FILES 1 |
| 4190 | #include <sys/types.h> |
| 4191 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4192 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4193 | since some C++ compilers masquerading as C compilers |
| 4194 | incorrectly reject 9223372036854775807. */ |
| 4195 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 4196 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4197 | && LARGE_OFF_T % 2147483647 == 1) |
| 4198 | ? 1 : -1]; |
| 4199 | int |
| 4200 | main (void) |
| 4201 | { |
| 4202 | |
| 4203 | ; |
| 4204 | return 0; |
| 4205 | } |
| 4206 | _ACEOF |
| 4207 | if ac_fn_c_try_compile "$LINENO" |
| 4208 | then : |
| 4209 | ac_cv_sys_large_files=1; break |
| 4210 | fi |
| 4211 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4212 | ac_cv_sys_large_files=unknown |
| 4213 | break |
| 4214 | done |
| 4215 | fi |
| 4216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 4217 | printf "%s\n" "$ac_cv_sys_large_files" >&6; } |
| 4218 | case $ac_cv_sys_large_files in #( |
| 4219 | no | unknown) ;; |
| 4220 | *) |
| 4221 | printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h |
| 4222 | ;; |
| 4223 | esac |
| 4224 | rm -rf conftest* |
| 4225 | fi |
| 4226 | fi |
| 4227 | |
| 4228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 4229 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 4230 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 4231 | then : |
| 4232 | printf %s "(cached) " >&6 |
| 4233 | else $as_nop |
| 4234 | ac_save_CFLAGS=$CFLAGS |
| 4235 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 4236 | for ac_arg in '' -fno-builtin; do |
| 4237 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 4238 | # This test program should *not* compile successfully. |
| 4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4240 | /* end confdefs.h. */ |
| 4241 | |
| 4242 | int |
| 4243 | main (void) |
| 4244 | { |
| 4245 | (void) strchr; |
| 4246 | ; |
| 4247 | return 0; |
| 4248 | } |
| 4249 | _ACEOF |
| 4250 | if ac_fn_c_try_compile "$LINENO" |
| 4251 | then : |
| 4252 | |
| 4253 | else $as_nop |
| 4254 | # This test program should compile successfully. |
| 4255 | # No library function is consistently available on |
| 4256 | # freestanding implementations, so test against a dummy |
| 4257 | # declaration. Include always-available headers on the |
| 4258 | # off chance that they somehow elicit warnings. |
| 4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4260 | /* end confdefs.h. */ |
| 4261 | #include <float.h> |
| 4262 | #include <limits.h> |
| 4263 | #include <stdarg.h> |
| 4264 | #include <stddef.h> |
| 4265 | extern void ac_decl (int, char *); |
| 4266 | |
| 4267 | int |
| 4268 | main (void) |
| 4269 | { |
| 4270 | (void) ac_decl (0, (char *) 0); |
| 4271 | (void) ac_decl; |
| 4272 | |
| 4273 | ; |
| 4274 | return 0; |
| 4275 | } |
| 4276 | _ACEOF |
| 4277 | if ac_fn_c_try_compile "$LINENO" |
| 4278 | then : |
| 4279 | if test x"$ac_arg" = x |
| 4280 | then : |
| 4281 | ac_cv_c_undeclared_builtin_options='none needed' |
| 4282 | else $as_nop |
| 4283 | ac_cv_c_undeclared_builtin_options=$ac_arg |
| 4284 | fi |
| 4285 | break |
| 4286 | fi |
| 4287 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4288 | fi |
| 4289 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4290 | done |
| 4291 | CFLAGS=$ac_save_CFLAGS |
| 4292 | |
| 4293 | fi |
| 4294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 4295 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 4296 | case $ac_cv_c_undeclared_builtin_options in #( |
| 4297 | 'cannot detect') : |
| 4298 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4299 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4300 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 4301 | See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 4302 | 'none needed') : |
| 4303 | ac_c_undeclared_builtin_options='' ;; #( |
| 4304 | *) : |
| 4305 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 4306 | esac |
| 4307 | |
| 4308 | |
| 4309 | ac_fn_check_decl "$LINENO" "renameat2" "ac_cv_have_decl_renameat2" " |
| 4310 | #include <sys/types.h> |
| 4311 | #include <unistd.h> |
| 4312 | #include <stdio.h> |
| 4313 | #include <sys/mount.h> |
| 4314 | #include <fcntl.h> |
| 4315 | #include <sched.h> |
| 4316 | #include <linux/loop.h> |
| 4317 | #include <linux/random.h> |
| 4318 | #include <sys/mman.h> |
| 4319 | |
| 4320 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 4321 | if test "x$ac_cv_have_decl_renameat2" = xyes |
| 4322 | then : |
| 4323 | ac_have_decl=1 |
| 4324 | else $as_nop |
| 4325 | ac_have_decl=0 |
| 4326 | fi |
| 4327 | printf "%s\n" "#define HAVE_DECL_RENAMEAT2 $ac_have_decl" >>confdefs.h |
| 4328 | ac_fn_check_decl "$LINENO" "memfd_create" "ac_cv_have_decl_memfd_create" " |
| 4329 | #include <sys/types.h> |
| 4330 | #include <unistd.h> |
| 4331 | #include <stdio.h> |
| 4332 | #include <sys/mount.h> |
| 4333 | #include <fcntl.h> |
| 4334 | #include <sched.h> |
| 4335 | #include <linux/loop.h> |
| 4336 | #include <linux/random.h> |
| 4337 | #include <sys/mman.h> |
| 4338 | |
| 4339 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 4340 | if test "x$ac_cv_have_decl_memfd_create" = xyes |
| 4341 | then : |
| 4342 | ac_have_decl=1 |
| 4343 | else $as_nop |
| 4344 | ac_have_decl=0 |
| 4345 | fi |
| 4346 | printf "%s\n" "#define HAVE_DECL_MEMFD_CREATE $ac_have_decl" >>confdefs.h |
| 4347 | ac_fn_check_decl "$LINENO" "copy_file_range" "ac_cv_have_decl_copy_file_range" " |
| 4348 | #include <sys/types.h> |
| 4349 | #include <unistd.h> |
| 4350 | #include <stdio.h> |
| 4351 | #include <sys/mount.h> |
| 4352 | #include <fcntl.h> |
| 4353 | #include <sched.h> |
| 4354 | #include <linux/loop.h> |
| 4355 | #include <linux/random.h> |
| 4356 | #include <sys/mman.h> |
| 4357 | |
| 4358 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 4359 | if test "x$ac_cv_have_decl_copy_file_range" = xyes |
| 4360 | then : |
| 4361 | ac_have_decl=1 |
| 4362 | else $as_nop |
| 4363 | ac_have_decl=0 |
| 4364 | fi |
| 4365 | printf "%s\n" "#define HAVE_DECL_COPY_FILE_RANGE $ac_have_decl" >>confdefs.h |
| 4366 | |
| 4367 | ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range" |
| 4368 | if test "x$ac_cv_func_close_range" = xyes |
| 4369 | then : |
| 4370 | printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h |
| 4371 | |
| 4372 | fi |
| 4373 | |
| 4374 | |
| 4375 | # Check whether --enable-otmpfile was given. |
| 4376 | if test ${enable_otmpfile+y} |
| 4377 | then : |
| 4378 | enableval=$enable_otmpfile; |
| 4379 | else $as_nop |
| 4380 | enable_otmpfile=yes |
| 4381 | fi |
| 4382 | |
| 4383 | if test $enable_otmpfile = yes |
| 4384 | then : |
| 4385 | |
| 4386 | else $as_nop |
| 4387 | |
| 4388 | |
| 4389 | printf "%s\n" "#define DISABLE_OTMPFILE 1" >>confdefs.h |
| 4390 | |
| 4391 | fi |
| 4392 | |
| 4393 | # Check whether --enable-wrpseudo-compat was given. |
| 4394 | if test ${enable_wrpseudo_compat+y} |
| 4395 | then : |
| 4396 | enableval=$enable_wrpseudo_compat; |
| 4397 | else $as_nop |
| 4398 | enable_wrpseudo_compat=no |
| 4399 | fi |
| 4400 | |
| 4401 | if test $enable_wrpseudo_compat = no |
| 4402 | then : |
| 4403 | |
| 4404 | else $as_nop |
| 4405 | |
| 4406 | |
| 4407 | printf "%s\n" "#define ENABLE_WRPSEUDO_COMPAT 1" >>confdefs.h |
| 4408 | |
| 4409 | fi |
| 4410 | |
| 4411 | |
| 4412 | |
| 4413 | ac_ext=c |
| 4414 | ac_cpp='$CPP $CPPFLAGS' |
| 4415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4418 | if test -n "$ac_tool_prefix"; then |
| 4419 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4420 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4422 | printf %s "checking for $ac_word... " >&6; } |
| 4423 | if test ${ac_cv_prog_CC+y} |
| 4424 | then : |
| 4425 | printf %s "(cached) " >&6 |
| 4426 | else $as_nop |
| 4427 | if test -n "$CC"; then |
| 4428 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4429 | else |
| 4430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4431 | for as_dir in $PATH |
| 4432 | do |
| 4433 | IFS=$as_save_IFS |
| 4434 | case $as_dir in #((( |
| 4435 | '') as_dir=./ ;; |
| 4436 | */) ;; |
| 4437 | *) as_dir=$as_dir/ ;; |
| 4438 | esac |
| 4439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4440 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4441 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4442 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4443 | break 2 |
| 4444 | fi |
| 4445 | done |
| 4446 | done |
| 4447 | IFS=$as_save_IFS |
| 4448 | |
| 4449 | fi |
| 4450 | fi |
| 4451 | CC=$ac_cv_prog_CC |
| 4452 | if test -n "$CC"; then |
| 4453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4454 | printf "%s\n" "$CC" >&6; } |
| 4455 | else |
| 4456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4457 | printf "%s\n" "no" >&6; } |
| 4458 | fi |
| 4459 | |
| 4460 | |
| 4461 | fi |
| 4462 | if test -z "$ac_cv_prog_CC"; then |
| 4463 | ac_ct_CC=$CC |
| 4464 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4465 | set dummy gcc; ac_word=$2 |
| 4466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4467 | printf %s "checking for $ac_word... " >&6; } |
| 4468 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4469 | then : |
| 4470 | printf %s "(cached) " >&6 |
| 4471 | else $as_nop |
| 4472 | if test -n "$ac_ct_CC"; then |
| 4473 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4474 | else |
| 4475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4476 | for as_dir in $PATH |
| 4477 | do |
| 4478 | IFS=$as_save_IFS |
| 4479 | case $as_dir in #((( |
| 4480 | '') as_dir=./ ;; |
| 4481 | */) ;; |
| 4482 | *) as_dir=$as_dir/ ;; |
| 4483 | esac |
| 4484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4485 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4486 | ac_cv_prog_ac_ct_CC="gcc" |
| 4487 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4488 | break 2 |
| 4489 | fi |
| 4490 | done |
| 4491 | done |
| 4492 | IFS=$as_save_IFS |
| 4493 | |
| 4494 | fi |
| 4495 | fi |
| 4496 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4497 | if test -n "$ac_ct_CC"; then |
| 4498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4499 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4500 | else |
| 4501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4502 | printf "%s\n" "no" >&6; } |
| 4503 | fi |
| 4504 | |
| 4505 | if test "x$ac_ct_CC" = x; then |
| 4506 | CC="" |
| 4507 | else |
| 4508 | case $cross_compiling:$ac_tool_warned in |
| 4509 | yes:) |
| 4510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4511 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4512 | ac_tool_warned=yes ;; |
| 4513 | esac |
| 4514 | CC=$ac_ct_CC |
| 4515 | fi |
| 4516 | else |
| 4517 | CC="$ac_cv_prog_CC" |
| 4518 | fi |
| 4519 | |
| 4520 | if test -z "$CC"; then |
| 4521 | if test -n "$ac_tool_prefix"; then |
| 4522 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4523 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4525 | printf %s "checking for $ac_word... " >&6; } |
| 4526 | if test ${ac_cv_prog_CC+y} |
| 4527 | then : |
| 4528 | printf %s "(cached) " >&6 |
| 4529 | else $as_nop |
| 4530 | if test -n "$CC"; then |
| 4531 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4532 | else |
| 4533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4534 | for as_dir in $PATH |
| 4535 | do |
| 4536 | IFS=$as_save_IFS |
| 4537 | case $as_dir in #((( |
| 4538 | '') as_dir=./ ;; |
| 4539 | */) ;; |
| 4540 | *) as_dir=$as_dir/ ;; |
| 4541 | esac |
| 4542 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4543 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4544 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4545 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4546 | break 2 |
| 4547 | fi |
| 4548 | done |
| 4549 | done |
| 4550 | IFS=$as_save_IFS |
| 4551 | |
| 4552 | fi |
| 4553 | fi |
| 4554 | CC=$ac_cv_prog_CC |
| 4555 | if test -n "$CC"; then |
| 4556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4557 | printf "%s\n" "$CC" >&6; } |
| 4558 | else |
| 4559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4560 | printf "%s\n" "no" >&6; } |
| 4561 | fi |
| 4562 | |
| 4563 | |
| 4564 | fi |
| 4565 | fi |
| 4566 | if test -z "$CC"; then |
| 4567 | # Extract the first word of "cc", so it can be a program name with args. |
| 4568 | set dummy cc; ac_word=$2 |
| 4569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4570 | printf %s "checking for $ac_word... " >&6; } |
| 4571 | if test ${ac_cv_prog_CC+y} |
| 4572 | then : |
| 4573 | printf %s "(cached) " >&6 |
| 4574 | else $as_nop |
| 4575 | if test -n "$CC"; then |
| 4576 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4577 | else |
| 4578 | ac_prog_rejected=no |
| 4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4580 | for as_dir in $PATH |
| 4581 | do |
| 4582 | IFS=$as_save_IFS |
| 4583 | case $as_dir in #((( |
| 4584 | '') as_dir=./ ;; |
| 4585 | */) ;; |
| 4586 | *) as_dir=$as_dir/ ;; |
| 4587 | esac |
| 4588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4589 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4590 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4591 | ac_prog_rejected=yes |
| 4592 | continue |
| 4593 | fi |
| 4594 | ac_cv_prog_CC="cc" |
| 4595 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4596 | break 2 |
| 4597 | fi |
| 4598 | done |
| 4599 | done |
| 4600 | IFS=$as_save_IFS |
| 4601 | |
| 4602 | if test $ac_prog_rejected = yes; then |
| 4603 | # We found a bogon in the path, so make sure we never use it. |
| 4604 | set dummy $ac_cv_prog_CC |
| 4605 | shift |
| 4606 | if test $# != 0; then |
| 4607 | # We chose a different compiler from the bogus one. |
| 4608 | # However, it has the same basename, so the bogon will be chosen |
| 4609 | # first if we set CC to just the basename; use the full file name. |
| 4610 | shift |
| 4611 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4612 | fi |
| 4613 | fi |
| 4614 | fi |
| 4615 | fi |
| 4616 | CC=$ac_cv_prog_CC |
| 4617 | if test -n "$CC"; then |
| 4618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4619 | printf "%s\n" "$CC" >&6; } |
| 4620 | else |
| 4621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4622 | printf "%s\n" "no" >&6; } |
| 4623 | fi |
| 4624 | |
| 4625 | |
| 4626 | fi |
| 4627 | if test -z "$CC"; then |
| 4628 | if test -n "$ac_tool_prefix"; then |
| 4629 | for ac_prog in cl.exe |
| 4630 | do |
| 4631 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4632 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4634 | printf %s "checking for $ac_word... " >&6; } |
| 4635 | if test ${ac_cv_prog_CC+y} |
| 4636 | then : |
| 4637 | printf %s "(cached) " >&6 |
| 4638 | else $as_nop |
| 4639 | if test -n "$CC"; then |
| 4640 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4641 | else |
| 4642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4643 | for as_dir in $PATH |
| 4644 | do |
| 4645 | IFS=$as_save_IFS |
| 4646 | case $as_dir in #((( |
| 4647 | '') as_dir=./ ;; |
| 4648 | */) ;; |
| 4649 | *) as_dir=$as_dir/ ;; |
| 4650 | esac |
| 4651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4652 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4653 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4654 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4655 | break 2 |
| 4656 | fi |
| 4657 | done |
| 4658 | done |
| 4659 | IFS=$as_save_IFS |
| 4660 | |
| 4661 | fi |
| 4662 | fi |
| 4663 | CC=$ac_cv_prog_CC |
| 4664 | if test -n "$CC"; then |
| 4665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4666 | printf "%s\n" "$CC" >&6; } |
| 4667 | else |
| 4668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4669 | printf "%s\n" "no" >&6; } |
| 4670 | fi |
| 4671 | |
| 4672 | |
| 4673 | test -n "$CC" && break |
| 4674 | done |
| 4675 | fi |
| 4676 | if test -z "$CC"; then |
| 4677 | ac_ct_CC=$CC |
| 4678 | for ac_prog in cl.exe |
| 4679 | do |
| 4680 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4681 | set dummy $ac_prog; ac_word=$2 |
| 4682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4683 | printf %s "checking for $ac_word... " >&6; } |
| 4684 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4685 | then : |
| 4686 | printf %s "(cached) " >&6 |
| 4687 | else $as_nop |
| 4688 | if test -n "$ac_ct_CC"; then |
| 4689 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4690 | else |
| 4691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4692 | for as_dir in $PATH |
| 4693 | do |
| 4694 | IFS=$as_save_IFS |
| 4695 | case $as_dir in #((( |
| 4696 | '') as_dir=./ ;; |
| 4697 | */) ;; |
| 4698 | *) as_dir=$as_dir/ ;; |
| 4699 | esac |
| 4700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4701 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4702 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4703 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4704 | break 2 |
| 4705 | fi |
| 4706 | done |
| 4707 | done |
| 4708 | IFS=$as_save_IFS |
| 4709 | |
| 4710 | fi |
| 4711 | fi |
| 4712 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4713 | if test -n "$ac_ct_CC"; then |
| 4714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4715 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4716 | else |
| 4717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4718 | printf "%s\n" "no" >&6; } |
| 4719 | fi |
| 4720 | |
| 4721 | |
| 4722 | test -n "$ac_ct_CC" && break |
| 4723 | done |
| 4724 | |
| 4725 | if test "x$ac_ct_CC" = x; then |
| 4726 | CC="" |
| 4727 | else |
| 4728 | case $cross_compiling:$ac_tool_warned in |
| 4729 | yes:) |
| 4730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4731 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4732 | ac_tool_warned=yes ;; |
| 4733 | esac |
| 4734 | CC=$ac_ct_CC |
| 4735 | fi |
| 4736 | fi |
| 4737 | |
| 4738 | fi |
| 4739 | if test -z "$CC"; then |
| 4740 | if test -n "$ac_tool_prefix"; then |
| 4741 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4742 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4744 | printf %s "checking for $ac_word... " >&6; } |
| 4745 | if test ${ac_cv_prog_CC+y} |
| 4746 | then : |
| 4747 | printf %s "(cached) " >&6 |
| 4748 | else $as_nop |
| 4749 | if test -n "$CC"; then |
| 4750 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4751 | else |
| 4752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4753 | for as_dir in $PATH |
| 4754 | do |
| 4755 | IFS=$as_save_IFS |
| 4756 | case $as_dir in #((( |
| 4757 | '') as_dir=./ ;; |
| 4758 | */) ;; |
| 4759 | *) as_dir=$as_dir/ ;; |
| 4760 | esac |
| 4761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4762 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4763 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4764 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4765 | break 2 |
| 4766 | fi |
| 4767 | done |
| 4768 | done |
| 4769 | IFS=$as_save_IFS |
| 4770 | |
| 4771 | fi |
| 4772 | fi |
| 4773 | CC=$ac_cv_prog_CC |
| 4774 | if test -n "$CC"; then |
| 4775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4776 | printf "%s\n" "$CC" >&6; } |
| 4777 | else |
| 4778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4779 | printf "%s\n" "no" >&6; } |
| 4780 | fi |
| 4781 | |
| 4782 | |
| 4783 | fi |
| 4784 | if test -z "$ac_cv_prog_CC"; then |
| 4785 | ac_ct_CC=$CC |
| 4786 | # Extract the first word of "clang", so it can be a program name with args. |
| 4787 | set dummy clang; ac_word=$2 |
| 4788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4789 | printf %s "checking for $ac_word... " >&6; } |
| 4790 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4791 | then : |
| 4792 | printf %s "(cached) " >&6 |
| 4793 | else $as_nop |
| 4794 | if test -n "$ac_ct_CC"; then |
| 4795 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4796 | else |
| 4797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4798 | for as_dir in $PATH |
| 4799 | do |
| 4800 | IFS=$as_save_IFS |
| 4801 | case $as_dir in #((( |
| 4802 | '') as_dir=./ ;; |
| 4803 | */) ;; |
| 4804 | *) as_dir=$as_dir/ ;; |
| 4805 | esac |
| 4806 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4807 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4808 | ac_cv_prog_ac_ct_CC="clang" |
| 4809 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4810 | break 2 |
| 4811 | fi |
| 4812 | done |
| 4813 | done |
| 4814 | IFS=$as_save_IFS |
| 4815 | |
| 4816 | fi |
| 4817 | fi |
| 4818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4819 | if test -n "$ac_ct_CC"; then |
| 4820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4821 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4822 | else |
| 4823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4824 | printf "%s\n" "no" >&6; } |
| 4825 | fi |
| 4826 | |
| 4827 | if test "x$ac_ct_CC" = x; then |
| 4828 | CC="" |
| 4829 | else |
| 4830 | case $cross_compiling:$ac_tool_warned in |
| 4831 | yes:) |
| 4832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4833 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4834 | ac_tool_warned=yes ;; |
| 4835 | esac |
| 4836 | CC=$ac_ct_CC |
| 4837 | fi |
| 4838 | else |
| 4839 | CC="$ac_cv_prog_CC" |
| 4840 | fi |
| 4841 | |
| 4842 | fi |
| 4843 | |
| 4844 | |
| 4845 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4846 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4847 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4848 | See \`config.log' for more details" "$LINENO" 5; } |
| 4849 | |
| 4850 | # Provide some information about the compiler. |
| 4851 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4852 | set X $ac_compile |
| 4853 | ac_compiler=$2 |
| 4854 | for ac_option in --version -v -V -qversion -version; do |
| 4855 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4856 | case "(($ac_try" in |
| 4857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4858 | *) ac_try_echo=$ac_try;; |
| 4859 | esac |
| 4860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4861 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4862 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4863 | ac_status=$? |
| 4864 | if test -s conftest.err; then |
| 4865 | sed '10a\ |
| 4866 | ... rest of stderr output deleted ... |
| 4867 | 10q' conftest.err >conftest.er1 |
| 4868 | cat conftest.er1 >&5 |
| 4869 | fi |
| 4870 | rm -f conftest.er1 conftest.err |
| 4871 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4872 | test $ac_status = 0; } |
| 4873 | done |
| 4874 | |
| 4875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4876 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4877 | if test ${ac_cv_c_compiler_gnu+y} |
| 4878 | then : |
| 4879 | printf %s "(cached) " >&6 |
| 4880 | else $as_nop |
| 4881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4882 | /* end confdefs.h. */ |
| 4883 | |
| 4884 | int |
| 4885 | main (void) |
| 4886 | { |
| 4887 | #ifndef __GNUC__ |
| 4888 | choke me |
| 4889 | #endif |
| 4890 | |
| 4891 | ; |
| 4892 | return 0; |
| 4893 | } |
| 4894 | _ACEOF |
| 4895 | if ac_fn_c_try_compile "$LINENO" |
| 4896 | then : |
| 4897 | ac_compiler_gnu=yes |
| 4898 | else $as_nop |
| 4899 | ac_compiler_gnu=no |
| 4900 | fi |
| 4901 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4902 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4903 | |
| 4904 | fi |
| 4905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4906 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4908 | |
| 4909 | if test $ac_compiler_gnu = yes; then |
| 4910 | GCC=yes |
| 4911 | else |
| 4912 | GCC= |
| 4913 | fi |
| 4914 | ac_test_CFLAGS=${CFLAGS+y} |
| 4915 | ac_save_CFLAGS=$CFLAGS |
| 4916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4917 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 4918 | if test ${ac_cv_prog_cc_g+y} |
| 4919 | then : |
| 4920 | printf %s "(cached) " >&6 |
| 4921 | else $as_nop |
| 4922 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4923 | ac_c_werror_flag=yes |
| 4924 | ac_cv_prog_cc_g=no |
| 4925 | CFLAGS="-g" |
| 4926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4927 | /* end confdefs.h. */ |
| 4928 | |
| 4929 | int |
| 4930 | main (void) |
| 4931 | { |
| 4932 | |
| 4933 | ; |
| 4934 | return 0; |
| 4935 | } |
| 4936 | _ACEOF |
| 4937 | if ac_fn_c_try_compile "$LINENO" |
| 4938 | then : |
| 4939 | ac_cv_prog_cc_g=yes |
| 4940 | else $as_nop |
| 4941 | CFLAGS="" |
| 4942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4943 | /* end confdefs.h. */ |
| 4944 | |
| 4945 | int |
| 4946 | main (void) |
| 4947 | { |
| 4948 | |
| 4949 | ; |
| 4950 | return 0; |
| 4951 | } |
| 4952 | _ACEOF |
| 4953 | if ac_fn_c_try_compile "$LINENO" |
| 4954 | then : |
| 4955 | |
| 4956 | else $as_nop |
| 4957 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4958 | CFLAGS="-g" |
| 4959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4960 | /* end confdefs.h. */ |
| 4961 | |
| 4962 | int |
| 4963 | main (void) |
| 4964 | { |
| 4965 | |
| 4966 | ; |
| 4967 | return 0; |
| 4968 | } |
| 4969 | _ACEOF |
| 4970 | if ac_fn_c_try_compile "$LINENO" |
| 4971 | then : |
| 4972 | ac_cv_prog_cc_g=yes |
| 4973 | fi |
| 4974 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4975 | fi |
| 4976 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4977 | fi |
| 4978 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4979 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4980 | fi |
| 4981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4982 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4983 | if test $ac_test_CFLAGS; then |
| 4984 | CFLAGS=$ac_save_CFLAGS |
| 4985 | elif test $ac_cv_prog_cc_g = yes; then |
| 4986 | if test "$GCC" = yes; then |
| 4987 | CFLAGS="-g -O2" |
| 4988 | else |
| 4989 | CFLAGS="-g" |
| 4990 | fi |
| 4991 | else |
| 4992 | if test "$GCC" = yes; then |
| 4993 | CFLAGS="-O2" |
| 4994 | else |
| 4995 | CFLAGS= |
| 4996 | fi |
| 4997 | fi |
| 4998 | ac_prog_cc_stdc=no |
| 4999 | if test x$ac_prog_cc_stdc = xno |
| 5000 | then : |
| 5001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 5002 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 5003 | if test ${ac_cv_prog_cc_c11+y} |
| 5004 | then : |
| 5005 | printf %s "(cached) " >&6 |
| 5006 | else $as_nop |
| 5007 | ac_cv_prog_cc_c11=no |
| 5008 | ac_save_CC=$CC |
| 5009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5010 | /* end confdefs.h. */ |
| 5011 | $ac_c_conftest_c11_program |
| 5012 | _ACEOF |
| 5013 | for ac_arg in '' -std=gnu11 |
| 5014 | do |
| 5015 | CC="$ac_save_CC $ac_arg" |
| 5016 | if ac_fn_c_try_compile "$LINENO" |
| 5017 | then : |
| 5018 | ac_cv_prog_cc_c11=$ac_arg |
| 5019 | fi |
| 5020 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5021 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 5022 | done |
| 5023 | rm -f conftest.$ac_ext |
| 5024 | CC=$ac_save_CC |
| 5025 | fi |
| 5026 | |
| 5027 | if test "x$ac_cv_prog_cc_c11" = xno |
| 5028 | then : |
| 5029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5030 | printf "%s\n" "unsupported" >&6; } |
| 5031 | else $as_nop |
| 5032 | if test "x$ac_cv_prog_cc_c11" = x |
| 5033 | then : |
| 5034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5035 | printf "%s\n" "none needed" >&6; } |
| 5036 | else $as_nop |
| 5037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 5038 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 5039 | CC="$CC $ac_cv_prog_cc_c11" |
| 5040 | fi |
| 5041 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 5042 | ac_prog_cc_stdc=c11 |
| 5043 | fi |
| 5044 | fi |
| 5045 | if test x$ac_prog_cc_stdc = xno |
| 5046 | then : |
| 5047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 5048 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 5049 | if test ${ac_cv_prog_cc_c99+y} |
| 5050 | then : |
| 5051 | printf %s "(cached) " >&6 |
| 5052 | else $as_nop |
| 5053 | ac_cv_prog_cc_c99=no |
| 5054 | ac_save_CC=$CC |
| 5055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5056 | /* end confdefs.h. */ |
| 5057 | $ac_c_conftest_c99_program |
| 5058 | _ACEOF |
| 5059 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 5060 | do |
| 5061 | CC="$ac_save_CC $ac_arg" |
| 5062 | if ac_fn_c_try_compile "$LINENO" |
| 5063 | then : |
| 5064 | ac_cv_prog_cc_c99=$ac_arg |
| 5065 | fi |
| 5066 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5067 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5068 | done |
| 5069 | rm -f conftest.$ac_ext |
| 5070 | CC=$ac_save_CC |
| 5071 | fi |
| 5072 | |
| 5073 | if test "x$ac_cv_prog_cc_c99" = xno |
| 5074 | then : |
| 5075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5076 | printf "%s\n" "unsupported" >&6; } |
| 5077 | else $as_nop |
| 5078 | if test "x$ac_cv_prog_cc_c99" = x |
| 5079 | then : |
| 5080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5081 | printf "%s\n" "none needed" >&6; } |
| 5082 | else $as_nop |
| 5083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 5084 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 5085 | CC="$CC $ac_cv_prog_cc_c99" |
| 5086 | fi |
| 5087 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5088 | ac_prog_cc_stdc=c99 |
| 5089 | fi |
| 5090 | fi |
| 5091 | if test x$ac_prog_cc_stdc = xno |
| 5092 | then : |
| 5093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 5094 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 5095 | if test ${ac_cv_prog_cc_c89+y} |
| 5096 | then : |
| 5097 | printf %s "(cached) " >&6 |
| 5098 | else $as_nop |
| 5099 | ac_cv_prog_cc_c89=no |
| 5100 | ac_save_CC=$CC |
| 5101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5102 | /* end confdefs.h. */ |
| 5103 | $ac_c_conftest_c89_program |
| 5104 | _ACEOF |
| 5105 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5106 | do |
| 5107 | CC="$ac_save_CC $ac_arg" |
| 5108 | if ac_fn_c_try_compile "$LINENO" |
| 5109 | then : |
| 5110 | ac_cv_prog_cc_c89=$ac_arg |
| 5111 | fi |
| 5112 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5113 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5114 | done |
| 5115 | rm -f conftest.$ac_ext |
| 5116 | CC=$ac_save_CC |
| 5117 | fi |
| 5118 | |
| 5119 | if test "x$ac_cv_prog_cc_c89" = xno |
| 5120 | then : |
| 5121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5122 | printf "%s\n" "unsupported" >&6; } |
| 5123 | else $as_nop |
| 5124 | if test "x$ac_cv_prog_cc_c89" = x |
| 5125 | then : |
| 5126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5127 | printf "%s\n" "none needed" >&6; } |
| 5128 | else $as_nop |
| 5129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5130 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5131 | CC="$CC $ac_cv_prog_cc_c89" |
| 5132 | fi |
| 5133 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5134 | ac_prog_cc_stdc=c89 |
| 5135 | fi |
| 5136 | fi |
| 5137 | |
| 5138 | ac_ext=c |
| 5139 | ac_cpp='$CPP $CPPFLAGS' |
| 5140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5143 | |
| 5144 | |
| 5145 | ac_ext=c |
| 5146 | ac_cpp='$CPP $CPPFLAGS' |
| 5147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5151 | printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 5152 | if test ${am_cv_prog_cc_c_o+y} |
| 5153 | then : |
| 5154 | printf %s "(cached) " >&6 |
| 5155 | else $as_nop |
| 5156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5157 | /* end confdefs.h. */ |
| 5158 | |
| 5159 | int |
| 5160 | main (void) |
| 5161 | { |
| 5162 | |
| 5163 | ; |
| 5164 | return 0; |
| 5165 | } |
| 5166 | _ACEOF |
| 5167 | # Make sure it works both with $CC and with simple cc. |
| 5168 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 5169 | # compilers refuse to overwrite an existing .o file with -o, |
| 5170 | # though they will create one. |
| 5171 | am_cv_prog_cc_c_o=yes |
| 5172 | for am_i in 1 2; do |
| 5173 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5174 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5175 | ac_status=$? |
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); } \ |
| 5178 | && test -f conftest2.$ac_objext; then |
| 5179 | : OK |
| 5180 | else |
| 5181 | am_cv_prog_cc_c_o=no |
| 5182 | break |
| 5183 | fi |
| 5184 | done |
| 5185 | rm -f core conftest* |
| 5186 | unset am_i |
| 5187 | fi |
| 5188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5189 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 5190 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 5191 | # Losing compiler, so override with the script. |
| 5192 | # FIXME: It is wrong to rewrite CC. |
| 5193 | # But if we don't then we get into trouble of one sort or another. |
| 5194 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5195 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5196 | CC="$am_aux_dir/compile $CC" |
| 5197 | fi |
| 5198 | ac_ext=c |
| 5199 | ac_cpp='$CPP $CPPFLAGS' |
| 5200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5203 | |
| 5204 | |
| 5205 | |
| 5206 | |
| 5207 | # Check whether --enable-static was given. |
| 5208 | if test ${enable_static+y} |
| 5209 | then : |
| 5210 | enableval=$enable_static; p=${PACKAGE-default} |
| 5211 | case $enableval in |
| 5212 | yes) enable_static=yes ;; |
| 5213 | no) enable_static=no ;; |
| 5214 | *) |
| 5215 | enable_static=no |
| 5216 | # Look at the argument we got. We use all the common list separators. |
| 5217 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 5218 | for pkg in $enableval; do |
| 5219 | IFS=$lt_save_ifs |
| 5220 | if test "X$pkg" = "X$p"; then |
| 5221 | enable_static=yes |
| 5222 | fi |
| 5223 | done |
| 5224 | IFS=$lt_save_ifs |
| 5225 | ;; |
| 5226 | esac |
| 5227 | else $as_nop |
| 5228 | enable_static=no |
| 5229 | fi |
| 5230 | |
| 5231 | |
| 5232 | |
| 5233 | |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | |
| 5240 | # Extract the first word of "flatpak", so it can be a program name with args. |
| 5241 | set dummy flatpak; ac_word=$2 |
| 5242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5243 | printf %s "checking for $ac_word... " >&6; } |
| 5244 | if test ${ac_cv_prog_FLATPAK+y} |
| 5245 | then : |
| 5246 | printf %s "(cached) " >&6 |
| 5247 | else $as_nop |
| 5248 | if test -n "$FLATPAK"; then |
| 5249 | ac_cv_prog_FLATPAK="$FLATPAK" # Let the user override the test. |
| 5250 | else |
| 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5252 | for as_dir in $PATH |
| 5253 | do |
| 5254 | IFS=$as_save_IFS |
| 5255 | case $as_dir in #((( |
| 5256 | '') as_dir=./ ;; |
| 5257 | */) ;; |
| 5258 | *) as_dir=$as_dir/ ;; |
| 5259 | esac |
| 5260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5261 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5262 | ac_cv_prog_FLATPAK="flatpak" |
| 5263 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5264 | break 2 |
| 5265 | fi |
| 5266 | done |
| 5267 | done |
| 5268 | IFS=$as_save_IFS |
| 5269 | |
| 5270 | test -z "$ac_cv_prog_FLATPAK" && ac_cv_prog_FLATPAK="false" |
| 5271 | fi |
| 5272 | fi |
| 5273 | FLATPAK=$ac_cv_prog_FLATPAK |
| 5274 | if test -n "$FLATPAK"; then |
| 5275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLATPAK" >&5 |
| 5276 | printf "%s\n" "$FLATPAK" >&6; } |
| 5277 | else |
| 5278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5279 | printf "%s\n" "no" >&6; } |
| 5280 | fi |
| 5281 | |
| 5282 | |
| 5283 | |
| 5284 | if test "x$FLATPAK" = xfalse; then |
| 5285 | as_fn_error $? "You need flatpak installed" "$LINENO" 5 |
| 5286 | else |
| 5287 | FLATPAK_VERSION=`$FLATPAK --version | sed 's,.*\ \(0-9*\.0-9*\.0-9*\)$,\1,'` |
| 5288 | for ac_prog in gawk mawk nawk awk |
| 5289 | do |
| 5290 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5291 | set dummy $ac_prog; ac_word=$2 |
| 5292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5293 | printf %s "checking for $ac_word... " >&6; } |
| 5294 | if test ${ac_cv_prog_AWK+y} |
| 5295 | then : |
| 5296 | printf %s "(cached) " >&6 |
| 5297 | else $as_nop |
| 5298 | if test -n "$AWK"; then |
| 5299 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 5300 | else |
| 5301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5302 | for as_dir in $PATH |
| 5303 | do |
| 5304 | IFS=$as_save_IFS |
| 5305 | case $as_dir in #((( |
| 5306 | '') as_dir=./ ;; |
| 5307 | */) ;; |
| 5308 | *) as_dir=$as_dir/ ;; |
| 5309 | esac |
| 5310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5311 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5312 | ac_cv_prog_AWK="$ac_prog" |
| 5313 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5314 | break 2 |
| 5315 | fi |
| 5316 | done |
| 5317 | done |
| 5318 | IFS=$as_save_IFS |
| 5319 | |
| 5320 | fi |
| 5321 | fi |
| 5322 | AWK=$ac_cv_prog_AWK |
| 5323 | if test -n "$AWK"; then |
| 5324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 5325 | printf "%s\n" "$AWK" >&6; } |
| 5326 | else |
| 5327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5328 | printf "%s\n" "no" >&6; } |
| 5329 | fi |
| 5330 | |
| 5331 | |
| 5332 | test -n "$AWK" && break |
| 5333 | done |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | # Used to indicate true or false condition |
| 5339 | ax_compare_version=false |
| 5340 | |
| 5341 | # Convert the two version strings to be compared into a format that |
| 5342 | # allows a simple string comparison. The end result is that a version |
| 5343 | # string of the form 1.12.5-r617 will be converted to the form |
| 5344 | # 0001001200050617. In other words, each number is zero padded to four |
| 5345 | # digits, and non digits are removed. |
| 5346 | |
| 5347 | ax_compare_version_A=`echo "$FLATPAK_REQS" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 5348 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 5349 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5350 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5351 | -e 's/[^0-9]//g'` |
| 5352 | |
| 5353 | |
| 5354 | ax_compare_version_B=`echo "$FLATPAK_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 5355 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 5356 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5357 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5358 | -e 's/[^0-9]//g'` |
| 5359 | |
| 5360 | |
| 5361 | ax_compare_version=`echo "x$ax_compare_version_A |
| 5362 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` |
| 5363 | |
| 5364 | |
| 5365 | |
| 5366 | if test "$ax_compare_version" = "true" ; then |
| 5367 | as_fn_error $? "You need at least version $FLATPAK_REQS of flatpak, your version is $FLATPAK_VERSION" "$LINENO" 5 |
| 5368 | fi |
| 5369 | |
| 5370 | fi |
| 5371 | |
| 5372 | # Extract the first word of "appstreamcli", so it can be a program name with args. |
| 5373 | set dummy appstreamcli; ac_word=$2 |
| 5374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5375 | printf %s "checking for $ac_word... " >&6; } |
| 5376 | if test ${ac_cv_prog_APPSTREAMCLI+y} |
| 5377 | then : |
| 5378 | printf %s "(cached) " >&6 |
| 5379 | else $as_nop |
| 5380 | if test -n "$APPSTREAMCLI"; then |
| 5381 | ac_cv_prog_APPSTREAMCLI="$APPSTREAMCLI" # Let the user override the test. |
| 5382 | else |
| 5383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5384 | for as_dir in $PATH |
| 5385 | do |
| 5386 | IFS=$as_save_IFS |
| 5387 | case $as_dir in #((( |
| 5388 | '') as_dir=./ ;; |
| 5389 | */) ;; |
| 5390 | *) as_dir=$as_dir/ ;; |
| 5391 | esac |
| 5392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5393 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5394 | ac_cv_prog_APPSTREAMCLI="appstreamcli" |
| 5395 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5396 | break 2 |
| 5397 | fi |
| 5398 | done |
| 5399 | done |
| 5400 | IFS=$as_save_IFS |
| 5401 | |
| 5402 | test -z "$ac_cv_prog_APPSTREAMCLI" && ac_cv_prog_APPSTREAMCLI="false" |
| 5403 | fi |
| 5404 | fi |
| 5405 | APPSTREAMCLI=$ac_cv_prog_APPSTREAMCLI |
| 5406 | if test -n "$APPSTREAMCLI"; then |
| 5407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APPSTREAMCLI" >&5 |
| 5408 | printf "%s\n" "$APPSTREAMCLI" >&6; } |
| 5409 | else |
| 5410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5411 | printf "%s\n" "no" >&6; } |
| 5412 | fi |
| 5413 | |
| 5414 | |
| 5415 | if test "x$APPSTREAMCLI" = xfalse; then |
| 5416 | as_fn_error $? "You need appstreamcli installed" "$LINENO" 5 |
| 5417 | APPSTREAMCLI_VERSION=`$APPSTREAMCLI --version | sed 's,.*\ \(0-9*\.0-9*\.0-9*\)$,\1,'` |
| 5418 | |
| 5419 | |
| 5420 | |
| 5421 | # Used to indicate true or false condition |
| 5422 | ax_compare_version=false |
| 5423 | |
| 5424 | # Convert the two version strings to be compared into a format that |
| 5425 | # allows a simple string comparison. The end result is that a version |
| 5426 | # string of the form 1.12.5-r617 will be converted to the form |
| 5427 | # 0001001200050617. In other words, each number is zero padded to four |
| 5428 | # digits, and non digits are removed. |
| 5429 | |
| 5430 | ax_compare_version_A=`echo "$APPSTREAMCLI_REQS" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 5431 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 5432 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5433 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5434 | -e 's/[^0-9]//g'` |
| 5435 | |
| 5436 | |
| 5437 | ax_compare_version_B=`echo "$APPSTREAMCLI_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 5438 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 5439 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5440 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 5441 | -e 's/[^0-9]//g'` |
| 5442 | |
| 5443 | |
| 5444 | ax_compare_version=`echo "x$ax_compare_version_A |
| 5445 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` |
| 5446 | |
| 5447 | |
| 5448 | |
| 5449 | if test "$ax_compare_version" = "true" ; then |
| 5450 | as_fn_error $? "You need at least version $APPSTREAMCLI_REQS of appstreamcli, your version is $APPSTREAMCLI_VERSION" "$LINENO" 5 |
| 5451 | fi |
| 5452 | |
| 5453 | fi |
| 5454 | |
| 5455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether appstreamcli has compose support" >&5 |
| 5456 | printf %s "checking whether appstreamcli has compose support... " >&6; } |
| 5457 | if appstreamcli compose --help >/dev/null 2>&1 |
| 5458 | then : |
| 5459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5460 | printf "%s\n" "yes" >&6; } |
| 5461 | else $as_nop |
| 5462 | |
| 5463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5464 | printf "%s\n" "no" >&6; } |
| 5465 | as_fn_error $? "appstreamcli must have compose support enabled and installed" "$LINENO" 5 |
| 5466 | |
| 5467 | fi |
| 5468 | |
| 5469 | |
| 5470 | case `pwd` in |
| 5471 | *\ * | *\ *) |
| 5472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 5473 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 5474 | esac |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | macro_version='2.4.7' |
| 5479 | macro_revision='2.4.7' |
| 5480 | |
| 5481 | |
| 5482 | |
| 5483 | |
| 5484 | |
| 5485 | |
| 5486 | |
| 5487 | |
| 5488 | |
| 5489 | |
| 5490 | |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | ltmain=$ac_aux_dir/ltmain.sh |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 | # Make sure we can run config.sub. |
| 5499 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 5500 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 5501 | |
| 5502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 5503 | printf %s "checking build system type... " >&6; } |
| 5504 | if test ${ac_cv_build+y} |
| 5505 | then : |
| 5506 | printf %s "(cached) " >&6 |
| 5507 | else $as_nop |
| 5508 | ac_build_alias=$build_alias |
| 5509 | test "x$ac_build_alias" = x && |
| 5510 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 5511 | test "x$ac_build_alias" = x && |
| 5512 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 5513 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 5514 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 5515 | |
| 5516 | fi |
| 5517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 5518 | printf "%s\n" "$ac_cv_build" >&6; } |
| 5519 | case $ac_cv_build in |
| 5520 | *-*-*) ;; |
| 5521 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 5522 | esac |
| 5523 | build=$ac_cv_build |
| 5524 | ac_save_IFS=$IFS; IFS='-' |
| 5525 | set x $ac_cv_build |
| 5526 | shift |
| 5527 | build_cpu=$1 |
| 5528 | build_vendor=$2 |
| 5529 | shift; shift |
| 5530 | # Remember, the first character of IFS is used to create $*, |
| 5531 | # except with old shells: |
| 5532 | build_os=$* |
| 5533 | IFS=$ac_save_IFS |
| 5534 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 5535 | |
| 5536 | |
| 5537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 5538 | printf %s "checking host system type... " >&6; } |
| 5539 | if test ${ac_cv_host+y} |
| 5540 | then : |
| 5541 | printf %s "(cached) " >&6 |
| 5542 | else $as_nop |
| 5543 | if test "x$host_alias" = x; then |
| 5544 | ac_cv_host=$ac_cv_build |
| 5545 | else |
| 5546 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 5547 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 5548 | fi |
| 5549 | |
| 5550 | fi |
| 5551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 5552 | printf "%s\n" "$ac_cv_host" >&6; } |
| 5553 | case $ac_cv_host in |
| 5554 | *-*-*) ;; |
| 5555 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 5556 | esac |
| 5557 | host=$ac_cv_host |
| 5558 | ac_save_IFS=$IFS; IFS='-' |
| 5559 | set x $ac_cv_host |
| 5560 | shift |
| 5561 | host_cpu=$1 |
| 5562 | host_vendor=$2 |
| 5563 | shift; shift |
| 5564 | # Remember, the first character of IFS is used to create $*, |
| 5565 | # except with old shells: |
| 5566 | host_os=$* |
| 5567 | IFS=$ac_save_IFS |
| 5568 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 5569 | |
| 5570 | |
| 5571 | # Backslashify metacharacters that are still active within |
| 5572 | # double-quoted strings. |
| 5573 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 5574 | |
| 5575 | # Same as above, but do not quote variable references. |
| 5576 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 5577 | |
| 5578 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5579 | # double_quote_subst'ed string. |
| 5580 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5581 | |
| 5582 | # Sed substitution to delay expansion of an escaped single quote. |
| 5583 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 5584 | |
| 5585 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5586 | no_glob_subst='s/\*/\\\*/g' |
| 5587 | |
| 5588 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5589 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5590 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5591 | |
| 5592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 5593 | printf %s "checking how to print strings... " >&6; } |
| 5594 | # Test print first, because it will be a builtin if present. |
| 5595 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 5596 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5597 | ECHO='print -r --' |
| 5598 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5599 | ECHO='printf %s\n' |
| 5600 | else |
| 5601 | # Use this function as a fallback that always works. |
| 5602 | func_fallback_echo () |
| 5603 | { |
| 5604 | eval 'cat <<_LTECHO_EOF |
| 5605 | $1 |
| 5606 | _LTECHO_EOF' |
| 5607 | } |
| 5608 | ECHO='func_fallback_echo' |
| 5609 | fi |
| 5610 | |
| 5611 | # func_echo_all arg... |
| 5612 | # Invoke $ECHO with all args, space-separated. |
| 5613 | func_echo_all () |
| 5614 | { |
| 5615 | $ECHO "" |
| 5616 | } |
| 5617 | |
| 5618 | case $ECHO in |
| 5619 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 5620 | printf "%s\n" "printf" >&6; } ;; |
| 5621 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 5622 | printf "%s\n" "print -r" >&6; } ;; |
| 5623 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 5624 | printf "%s\n" "cat" >&6; } ;; |
| 5625 | esac |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5641 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 5642 | if test ${ac_cv_path_SED+y} |
| 5643 | then : |
| 5644 | printf %s "(cached) " >&6 |
| 5645 | else $as_nop |
| 5646 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5647 | for ac_i in 1 2 3 4 5 6 7; do |
| 5648 | ac_script="$ac_script$as_nl$ac_script" |
| 5649 | done |
| 5650 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5651 | { ac_script=; unset ac_script;} |
| 5652 | if test -z "$SED"; then |
| 5653 | ac_path_SED_found=false |
| 5654 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5656 | for as_dir in $PATH |
| 5657 | do |
| 5658 | IFS=$as_save_IFS |
| 5659 | case $as_dir in #((( |
| 5660 | '') as_dir=./ ;; |
| 5661 | */) ;; |
| 5662 | *) as_dir=$as_dir/ ;; |
| 5663 | esac |
| 5664 | for ac_prog in sed gsed |
| 5665 | do |
| 5666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5667 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 5668 | as_fn_executable_p "$ac_path_SED" || continue |
| 5669 | # Check for GNU ac_path_SED and select it if it is found. |
| 5670 | # Check for GNU $ac_path_SED |
| 5671 | case `"$ac_path_SED" --version 2>&1` in |
| 5672 | *GNU*) |
| 5673 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5674 | *) |
| 5675 | ac_count=0 |
| 5676 | printf %s 0123456789 >"conftest.in" |
| 5677 | while : |
| 5678 | do |
| 5679 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5680 | mv "conftest.tmp" "conftest.in" |
| 5681 | cp "conftest.in" "conftest.nl" |
| 5682 | printf "%s\n" '' >> "conftest.nl" |
| 5683 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5684 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5685 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5686 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5687 | # Best one so far, save it but keep looking for a better one |
| 5688 | ac_cv_path_SED="$ac_path_SED" |
| 5689 | ac_path_SED_max=$ac_count |
| 5690 | fi |
| 5691 | # 10*(2^10) chars as input seems more than enough |
| 5692 | test $ac_count -gt 10 && break |
| 5693 | done |
| 5694 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5695 | esac |
| 5696 | |
| 5697 | $ac_path_SED_found && break 3 |
| 5698 | done |
| 5699 | done |
| 5700 | done |
| 5701 | IFS=$as_save_IFS |
| 5702 | if test -z "$ac_cv_path_SED"; then |
| 5703 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5704 | fi |
| 5705 | else |
| 5706 | ac_cv_path_SED=$SED |
| 5707 | fi |
| 5708 | |
| 5709 | fi |
| 5710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5711 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 5712 | SED="$ac_cv_path_SED" |
| 5713 | rm -f conftest.sed |
| 5714 | |
| 5715 | test -z "$SED" && SED=sed |
| 5716 | Xsed="$SED -e 1s/^X//" |
| 5717 | |
| 5718 | |
| 5719 | |
| 5720 | |
| 5721 | |
| 5722 | |
| 5723 | |
| 5724 | |
| 5725 | |
| 5726 | |
| 5727 | |
| 5728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5729 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 5730 | if test ${ac_cv_path_GREP+y} |
| 5731 | then : |
| 5732 | printf %s "(cached) " >&6 |
| 5733 | else $as_nop |
| 5734 | if test -z "$GREP"; then |
| 5735 | ac_path_GREP_found=false |
| 5736 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5738 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5739 | do |
| 5740 | IFS=$as_save_IFS |
| 5741 | case $as_dir in #((( |
| 5742 | '') as_dir=./ ;; |
| 5743 | */) ;; |
| 5744 | *) as_dir=$as_dir/ ;; |
| 5745 | esac |
| 5746 | for ac_prog in grep ggrep |
| 5747 | do |
| 5748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5749 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 5750 | as_fn_executable_p "$ac_path_GREP" || continue |
| 5751 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5752 | # Check for GNU $ac_path_GREP |
| 5753 | case `"$ac_path_GREP" --version 2>&1` in |
| 5754 | *GNU*) |
| 5755 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5756 | *) |
| 5757 | ac_count=0 |
| 5758 | printf %s 0123456789 >"conftest.in" |
| 5759 | while : |
| 5760 | do |
| 5761 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5762 | mv "conftest.tmp" "conftest.in" |
| 5763 | cp "conftest.in" "conftest.nl" |
| 5764 | printf "%s\n" 'GREP' >> "conftest.nl" |
| 5765 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5766 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5767 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5768 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5769 | # Best one so far, save it but keep looking for a better one |
| 5770 | ac_cv_path_GREP="$ac_path_GREP" |
| 5771 | ac_path_GREP_max=$ac_count |
| 5772 | fi |
| 5773 | # 10*(2^10) chars as input seems more than enough |
| 5774 | test $ac_count -gt 10 && break |
| 5775 | done |
| 5776 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5777 | esac |
| 5778 | |
| 5779 | $ac_path_GREP_found && break 3 |
| 5780 | done |
| 5781 | done |
| 5782 | done |
| 5783 | IFS=$as_save_IFS |
| 5784 | if test -z "$ac_cv_path_GREP"; then |
| 5785 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5786 | fi |
| 5787 | else |
| 5788 | ac_cv_path_GREP=$GREP |
| 5789 | fi |
| 5790 | |
| 5791 | fi |
| 5792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5793 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 5794 | GREP="$ac_cv_path_GREP" |
| 5795 | |
| 5796 | |
| 5797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5798 | printf %s "checking for egrep... " >&6; } |
| 5799 | if test ${ac_cv_path_EGREP+y} |
| 5800 | then : |
| 5801 | printf %s "(cached) " >&6 |
| 5802 | else $as_nop |
| 5803 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5804 | then ac_cv_path_EGREP="$GREP -E" |
| 5805 | else |
| 5806 | if test -z "$EGREP"; then |
| 5807 | ac_path_EGREP_found=false |
| 5808 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5810 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5811 | do |
| 5812 | IFS=$as_save_IFS |
| 5813 | case $as_dir in #((( |
| 5814 | '') as_dir=./ ;; |
| 5815 | */) ;; |
| 5816 | *) as_dir=$as_dir/ ;; |
| 5817 | esac |
| 5818 | for ac_prog in egrep |
| 5819 | do |
| 5820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5821 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 5822 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 5823 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5824 | # Check for GNU $ac_path_EGREP |
| 5825 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5826 | *GNU*) |
| 5827 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5828 | *) |
| 5829 | ac_count=0 |
| 5830 | printf %s 0123456789 >"conftest.in" |
| 5831 | while : |
| 5832 | do |
| 5833 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5834 | mv "conftest.tmp" "conftest.in" |
| 5835 | cp "conftest.in" "conftest.nl" |
| 5836 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 5837 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5838 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5839 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5840 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5841 | # Best one so far, save it but keep looking for a better one |
| 5842 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5843 | ac_path_EGREP_max=$ac_count |
| 5844 | fi |
| 5845 | # 10*(2^10) chars as input seems more than enough |
| 5846 | test $ac_count -gt 10 && break |
| 5847 | done |
| 5848 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5849 | esac |
| 5850 | |
| 5851 | $ac_path_EGREP_found && break 3 |
| 5852 | done |
| 5853 | done |
| 5854 | done |
| 5855 | IFS=$as_save_IFS |
| 5856 | if test -z "$ac_cv_path_EGREP"; then |
| 5857 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5858 | fi |
| 5859 | else |
| 5860 | ac_cv_path_EGREP=$EGREP |
| 5861 | fi |
| 5862 | |
| 5863 | fi |
| 5864 | fi |
| 5865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5866 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 5867 | EGREP="$ac_cv_path_EGREP" |
| 5868 | |
| 5869 | |
| 5870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5871 | printf %s "checking for fgrep... " >&6; } |
| 5872 | if test ${ac_cv_path_FGREP+y} |
| 5873 | then : |
| 5874 | printf %s "(cached) " >&6 |
| 5875 | else $as_nop |
| 5876 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5877 | then ac_cv_path_FGREP="$GREP -F" |
| 5878 | else |
| 5879 | if test -z "$FGREP"; then |
| 5880 | ac_path_FGREP_found=false |
| 5881 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5883 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5884 | do |
| 5885 | IFS=$as_save_IFS |
| 5886 | case $as_dir in #((( |
| 5887 | '') as_dir=./ ;; |
| 5888 | */) ;; |
| 5889 | *) as_dir=$as_dir/ ;; |
| 5890 | esac |
| 5891 | for ac_prog in fgrep |
| 5892 | do |
| 5893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5894 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 5895 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 5896 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5897 | # Check for GNU $ac_path_FGREP |
| 5898 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5899 | *GNU*) |
| 5900 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5901 | *) |
| 5902 | ac_count=0 |
| 5903 | printf %s 0123456789 >"conftest.in" |
| 5904 | while : |
| 5905 | do |
| 5906 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5907 | mv "conftest.tmp" "conftest.in" |
| 5908 | cp "conftest.in" "conftest.nl" |
| 5909 | printf "%s\n" 'FGREP' >> "conftest.nl" |
| 5910 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5911 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5912 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5913 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5914 | # Best one so far, save it but keep looking for a better one |
| 5915 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5916 | ac_path_FGREP_max=$ac_count |
| 5917 | fi |
| 5918 | # 10*(2^10) chars as input seems more than enough |
| 5919 | test $ac_count -gt 10 && break |
| 5920 | done |
| 5921 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5922 | esac |
| 5923 | |
| 5924 | $ac_path_FGREP_found && break 3 |
| 5925 | done |
| 5926 | done |
| 5927 | done |
| 5928 | IFS=$as_save_IFS |
| 5929 | if test -z "$ac_cv_path_FGREP"; then |
| 5930 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5931 | fi |
| 5932 | else |
| 5933 | ac_cv_path_FGREP=$FGREP |
| 5934 | fi |
| 5935 | |
| 5936 | fi |
| 5937 | fi |
| 5938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5939 | printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 5940 | FGREP="$ac_cv_path_FGREP" |
| 5941 | |
| 5942 | |
| 5943 | test -z "$GREP" && GREP=grep |
| 5944 | |
| 5945 | |
| 5946 | |
| 5947 | |
| 5948 | |
| 5949 | |
| 5950 | |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 | |
| 5955 | |
| 5956 | |
| 5957 | |
| 5958 | |
| 5959 | |
| 5960 | |
| 5961 | |
| 5962 | |
| 5963 | # Check whether --with-gnu-ld was given. |
| 5964 | if test ${with_gnu_ld+y} |
| 5965 | then : |
| 5966 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 5967 | else $as_nop |
| 5968 | with_gnu_ld=no |
| 5969 | fi |
| 5970 | |
| 5971 | ac_prog=ld |
| 5972 | if test yes = "$GCC"; then |
| 5973 | # Check if gcc -print-prog-name=ld gives a path. |
| 5974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5975 | printf %s "checking for ld used by $CC... " >&6; } |
| 5976 | case $host in |
| 5977 | *-*-mingw*) |
| 5978 | # gcc leaves a trailing carriage return, which upsets mingw |
| 5979 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5980 | *) |
| 5981 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5982 | esac |
| 5983 | case $ac_prog in |
| 5984 | # Accept absolute paths. |
| 5985 | [\\/]* | ?:[\\/]*) |
| 5986 | re_direlt='/[^/][^/]*/\.\./' |
| 5987 | # Canonicalize the pathname of ld |
| 5988 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5989 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5990 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5991 | done |
| 5992 | test -z "$LD" && LD=$ac_prog |
| 5993 | ;; |
| 5994 | "") |
| 5995 | # If it fails, then pretend we aren't using GCC. |
| 5996 | ac_prog=ld |
| 5997 | ;; |
| 5998 | *) |
| 5999 | # If it is relative, then search for the first ld in PATH. |
| 6000 | with_gnu_ld=unknown |
| 6001 | ;; |
| 6002 | esac |
| 6003 | elif test yes = "$with_gnu_ld"; then |
| 6004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6005 | printf %s "checking for GNU ld... " >&6; } |
| 6006 | else |
| 6007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6008 | printf %s "checking for non-GNU ld... " >&6; } |
| 6009 | fi |
| 6010 | if test ${lt_cv_path_LD+y} |
| 6011 | then : |
| 6012 | printf %s "(cached) " >&6 |
| 6013 | else $as_nop |
| 6014 | if test -z "$LD"; then |
| 6015 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6016 | for ac_dir in $PATH; do |
| 6017 | IFS=$lt_save_ifs |
| 6018 | test -z "$ac_dir" && ac_dir=. |
| 6019 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6020 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 6021 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6022 | # but apparently some variants of GNU ld only accept -v. |
| 6023 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6024 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6025 | *GNU* | *'with BFD'*) |
| 6026 | test no != "$with_gnu_ld" && break |
| 6027 | ;; |
| 6028 | *) |
| 6029 | test yes != "$with_gnu_ld" && break |
| 6030 | ;; |
| 6031 | esac |
| 6032 | fi |
| 6033 | done |
| 6034 | IFS=$lt_save_ifs |
| 6035 | else |
| 6036 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 6037 | fi |
| 6038 | fi |
| 6039 | |
| 6040 | LD=$lt_cv_path_LD |
| 6041 | if test -n "$LD"; then |
| 6042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6043 | printf "%s\n" "$LD" >&6; } |
| 6044 | else |
| 6045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6046 | printf "%s\n" "no" >&6; } |
| 6047 | fi |
| 6048 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6050 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6051 | if test ${lt_cv_prog_gnu_ld+y} |
| 6052 | then : |
| 6053 | printf %s "(cached) " >&6 |
| 6054 | else $as_nop |
| 6055 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6056 | case `$LD -v 2>&1 </dev/null` in |
| 6057 | *GNU* | *'with BFD'*) |
| 6058 | lt_cv_prog_gnu_ld=yes |
| 6059 | ;; |
| 6060 | *) |
| 6061 | lt_cv_prog_gnu_ld=no |
| 6062 | ;; |
| 6063 | esac |
| 6064 | fi |
| 6065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6066 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 6067 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6068 | |
| 6069 | |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6078 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6079 | if test ${lt_cv_path_NM+y} |
| 6080 | then : |
| 6081 | printf %s "(cached) " >&6 |
| 6082 | else $as_nop |
| 6083 | if test -n "$NM"; then |
| 6084 | # Let the user override the test. |
| 6085 | lt_cv_path_NM=$NM |
| 6086 | else |
| 6087 | lt_nm_to_check=${ac_tool_prefix}nm |
| 6088 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6089 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6090 | fi |
| 6091 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6092 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6093 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6094 | IFS=$lt_save_ifs |
| 6095 | test -z "$ac_dir" && ac_dir=. |
| 6096 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 6097 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 6098 | # Check to see if the nm accepts a BSD-compat flag. |
| 6099 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 6100 | # nm: unknown option "B" ignored |
| 6101 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6102 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 6103 | case $build_os in |
| 6104 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 6105 | *) lt_bad_file=/dev/null ;; |
| 6106 | esac |
| 6107 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in |
| 6108 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 6109 | lt_cv_path_NM="$tmp_nm -B" |
| 6110 | break 2 |
| 6111 | ;; |
| 6112 | *) |
| 6113 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in |
| 6114 | */dev/null*) |
| 6115 | lt_cv_path_NM="$tmp_nm -p" |
| 6116 | break 2 |
| 6117 | ;; |
| 6118 | *) |
| 6119 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6120 | continue # so that we can try to find one that supports BSD flags |
| 6121 | ;; |
| 6122 | esac |
| 6123 | ;; |
| 6124 | esac |
| 6125 | fi |
| 6126 | done |
| 6127 | IFS=$lt_save_ifs |
| 6128 | done |
| 6129 | : ${lt_cv_path_NM=no} |
| 6130 | fi |
| 6131 | fi |
| 6132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6133 | printf "%s\n" "$lt_cv_path_NM" >&6; } |
| 6134 | if test no != "$lt_cv_path_NM"; then |
| 6135 | NM=$lt_cv_path_NM |
| 6136 | else |
| 6137 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6138 | if test -n "$DUMPBIN"; then : |
| 6139 | # Let the user override the test. |
| 6140 | else |
| 6141 | if test -n "$ac_tool_prefix"; then |
| 6142 | for ac_prog in dumpbin "link -dump" |
| 6143 | do |
| 6144 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6145 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6147 | printf %s "checking for $ac_word... " >&6; } |
| 6148 | if test ${ac_cv_prog_DUMPBIN+y} |
| 6149 | then : |
| 6150 | printf %s "(cached) " >&6 |
| 6151 | else $as_nop |
| 6152 | if test -n "$DUMPBIN"; then |
| 6153 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6154 | else |
| 6155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6156 | for as_dir in $PATH |
| 6157 | do |
| 6158 | IFS=$as_save_IFS |
| 6159 | case $as_dir in #((( |
| 6160 | '') as_dir=./ ;; |
| 6161 | */) ;; |
| 6162 | *) as_dir=$as_dir/ ;; |
| 6163 | esac |
| 6164 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6165 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6166 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6167 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6168 | break 2 |
| 6169 | fi |
| 6170 | done |
| 6171 | done |
| 6172 | IFS=$as_save_IFS |
| 6173 | |
| 6174 | fi |
| 6175 | fi |
| 6176 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6177 | if test -n "$DUMPBIN"; then |
| 6178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6179 | printf "%s\n" "$DUMPBIN" >&6; } |
| 6180 | else |
| 6181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6182 | printf "%s\n" "no" >&6; } |
| 6183 | fi |
| 6184 | |
| 6185 | |
| 6186 | test -n "$DUMPBIN" && break |
| 6187 | done |
| 6188 | fi |
| 6189 | if test -z "$DUMPBIN"; then |
| 6190 | ac_ct_DUMPBIN=$DUMPBIN |
| 6191 | for ac_prog in dumpbin "link -dump" |
| 6192 | do |
| 6193 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6194 | set dummy $ac_prog; ac_word=$2 |
| 6195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6196 | printf %s "checking for $ac_word... " >&6; } |
| 6197 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y} |
| 6198 | then : |
| 6199 | printf %s "(cached) " >&6 |
| 6200 | else $as_nop |
| 6201 | if test -n "$ac_ct_DUMPBIN"; then |
| 6202 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6203 | else |
| 6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6205 | for as_dir in $PATH |
| 6206 | do |
| 6207 | IFS=$as_save_IFS |
| 6208 | case $as_dir in #((( |
| 6209 | '') as_dir=./ ;; |
| 6210 | */) ;; |
| 6211 | *) as_dir=$as_dir/ ;; |
| 6212 | esac |
| 6213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6214 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6215 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6216 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6217 | break 2 |
| 6218 | fi |
| 6219 | done |
| 6220 | done |
| 6221 | IFS=$as_save_IFS |
| 6222 | |
| 6223 | fi |
| 6224 | fi |
| 6225 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6226 | if test -n "$ac_ct_DUMPBIN"; then |
| 6227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6228 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; } |
| 6229 | else |
| 6230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6231 | printf "%s\n" "no" >&6; } |
| 6232 | fi |
| 6233 | |
| 6234 | |
| 6235 | test -n "$ac_ct_DUMPBIN" && break |
| 6236 | done |
| 6237 | |
| 6238 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6239 | DUMPBIN=":" |
| 6240 | else |
| 6241 | case $cross_compiling:$ac_tool_warned in |
| 6242 | yes:) |
| 6243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6244 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6245 | ac_tool_warned=yes ;; |
| 6246 | esac |
| 6247 | DUMPBIN=$ac_ct_DUMPBIN |
| 6248 | fi |
| 6249 | fi |
| 6250 | |
| 6251 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in |
| 6252 | *COFF*) |
| 6253 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 6254 | ;; |
| 6255 | *) |
| 6256 | DUMPBIN=: |
| 6257 | ;; |
| 6258 | esac |
| 6259 | fi |
| 6260 | |
| 6261 | if test : != "$DUMPBIN"; then |
| 6262 | NM=$DUMPBIN |
| 6263 | fi |
| 6264 | fi |
| 6265 | test -z "$NM" && NM=nm |
| 6266 | |
| 6267 | |
| 6268 | |
| 6269 | |
| 6270 | |
| 6271 | |
| 6272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6273 | printf %s "checking the name lister ($NM) interface... " >&6; } |
| 6274 | if test ${lt_cv_nm_interface+y} |
| 6275 | then : |
| 6276 | printf %s "(cached) " >&6 |
| 6277 | else $as_nop |
| 6278 | lt_cv_nm_interface="BSD nm" |
| 6279 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6280 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6281 | (eval "$ac_compile" 2>conftest.err) |
| 6282 | cat conftest.err >&5 |
| 6283 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6284 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6285 | cat conftest.err >&5 |
| 6286 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6287 | cat conftest.out >&5 |
| 6288 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6289 | lt_cv_nm_interface="MS dumpbin" |
| 6290 | fi |
| 6291 | rm -f conftest* |
| 6292 | fi |
| 6293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6294 | printf "%s\n" "$lt_cv_nm_interface" >&6; } |
| 6295 | |
| 6296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6297 | printf %s "checking whether ln -s works... " >&6; } |
| 6298 | LN_S=$as_ln_s |
| 6299 | if test "$LN_S" = "ln -s"; then |
| 6300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6301 | printf "%s\n" "yes" >&6; } |
| 6302 | else |
| 6303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6304 | printf "%s\n" "no, using $LN_S" >&6; } |
| 6305 | fi |
| 6306 | |
| 6307 | # find the maximum length of command line arguments |
| 6308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6309 | printf %s "checking the maximum length of command line arguments... " >&6; } |
| 6310 | if test ${lt_cv_sys_max_cmd_len+y} |
| 6311 | then : |
| 6312 | printf %s "(cached) " >&6 |
| 6313 | else $as_nop |
| 6314 | i=0 |
| 6315 | teststring=ABCD |
| 6316 | |
| 6317 | case $build_os in |
| 6318 | msdosdjgpp*) |
| 6319 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6320 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6321 | # during glob expansion). Even if it were fixed, the result of this |
| 6322 | # check would be larger than it should be. |
| 6323 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6324 | ;; |
| 6325 | |
| 6326 | gnu*) |
| 6327 | # Under GNU Hurd, this test is not required because there is |
| 6328 | # no limit to the length of command line arguments. |
| 6329 | # Libtool will interpret -1 as no limit whatsoever |
| 6330 | lt_cv_sys_max_cmd_len=-1; |
| 6331 | ;; |
| 6332 | |
| 6333 | cygwin* | mingw* | cegcc*) |
| 6334 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6335 | # about 5 minutes as the teststring grows exponentially. |
| 6336 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6337 | # you end up with a "frozen" computer, even though with patience |
| 6338 | # the test eventually succeeds (with a max line length of 256k). |
| 6339 | # Instead, let's just punt: use the minimum linelength reported by |
| 6340 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6341 | lt_cv_sys_max_cmd_len=8192; |
| 6342 | ;; |
| 6343 | |
| 6344 | mint*) |
| 6345 | # On MiNT this can take a long time and run out of memory. |
| 6346 | lt_cv_sys_max_cmd_len=8192; |
| 6347 | ;; |
| 6348 | |
| 6349 | amigaos*) |
| 6350 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6351 | # So we just punt and use a minimum line length of 8192. |
| 6352 | lt_cv_sys_max_cmd_len=8192; |
| 6353 | ;; |
| 6354 | |
| 6355 | bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) |
| 6356 | # This has been around since 386BSD, at least. Likely further. |
| 6357 | if test -x /sbin/sysctl; then |
| 6358 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6359 | elif test -x /usr/sbin/sysctl; then |
| 6360 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6361 | else |
| 6362 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6363 | fi |
| 6364 | # And add a safety zone |
| 6365 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6366 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6367 | ;; |
| 6368 | |
| 6369 | interix*) |
| 6370 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6371 | lt_cv_sys_max_cmd_len=196608 |
| 6372 | ;; |
| 6373 | |
| 6374 | os2*) |
| 6375 | # The test takes a long time on OS/2. |
| 6376 | lt_cv_sys_max_cmd_len=8192 |
| 6377 | ;; |
| 6378 | |
| 6379 | osf*) |
| 6380 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6381 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6382 | # nice to cause kernel panics so lets avoid the loop below. |
| 6383 | # First set a reasonable default. |
| 6384 | lt_cv_sys_max_cmd_len=16384 |
| 6385 | # |
| 6386 | if test -x /sbin/sysconfig; then |
| 6387 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6388 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6389 | esac |
| 6390 | fi |
| 6391 | ;; |
| 6392 | sco3.2v5*) |
| 6393 | lt_cv_sys_max_cmd_len=102400 |
| 6394 | ;; |
| 6395 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6396 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6397 | if test -n "$kargmax"; then |
| 6398 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` |
| 6399 | else |
| 6400 | lt_cv_sys_max_cmd_len=32768 |
| 6401 | fi |
| 6402 | ;; |
| 6403 | *) |
| 6404 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6405 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 6406 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 6407 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6408 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6409 | else |
| 6410 | # Make teststring a little bigger before we do anything with it. |
| 6411 | # a 1K string should be a reasonable start. |
| 6412 | for i in 1 2 3 4 5 6 7 8; do |
| 6413 | teststring=$teststring$teststring |
| 6414 | done |
| 6415 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6416 | # If test is not a shell built-in, we'll probably end up computing a |
| 6417 | # maximum length that is only half of the actual maximum length, but |
| 6418 | # we can't tell. |
| 6419 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 6420 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6421 | test 17 != "$i" # 1/2 MB should be enough |
| 6422 | do |
| 6423 | i=`expr $i + 1` |
| 6424 | teststring=$teststring$teststring |
| 6425 | done |
| 6426 | # Only check the string length outside the loop. |
| 6427 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6428 | teststring= |
| 6429 | # Add a significant safety factor because C++ compilers can tack on |
| 6430 | # massive amounts of additional arguments before passing them to the |
| 6431 | # linker. It appears as though 1/2 is a usable value. |
| 6432 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6433 | fi |
| 6434 | ;; |
| 6435 | esac |
| 6436 | |
| 6437 | fi |
| 6438 | |
| 6439 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6441 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } |
| 6442 | else |
| 6443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6444 | printf "%s\n" "none" >&6; } |
| 6445 | fi |
| 6446 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6447 | |
| 6448 | |
| 6449 | |
| 6450 | |
| 6451 | |
| 6452 | |
| 6453 | : ${CP="cp -f"} |
| 6454 | : ${MV="mv -f"} |
| 6455 | : ${RM="rm -f"} |
| 6456 | |
| 6457 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6458 | lt_unset=unset |
| 6459 | else |
| 6460 | lt_unset=false |
| 6461 | fi |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | # test EBCDIC or ASCII |
| 6468 | case `echo X|tr X '\101'` in |
| 6469 | A) # ASCII based system |
| 6470 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6471 | lt_SP2NL='tr \040 \012' |
| 6472 | lt_NL2SP='tr \015\012 \040\040' |
| 6473 | ;; |
| 6474 | *) # EBCDIC based system |
| 6475 | lt_SP2NL='tr \100 \n' |
| 6476 | lt_NL2SP='tr \r\n \100\100' |
| 6477 | ;; |
| 6478 | esac |
| 6479 | |
| 6480 | |
| 6481 | |
| 6482 | |
| 6483 | |
| 6484 | |
| 6485 | |
| 6486 | |
| 6487 | |
| 6488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 6489 | printf %s "checking how to convert $build file names to $host format... " >&6; } |
| 6490 | if test ${lt_cv_to_host_file_cmd+y} |
| 6491 | then : |
| 6492 | printf %s "(cached) " >&6 |
| 6493 | else $as_nop |
| 6494 | case $host in |
| 6495 | *-*-mingw* ) |
| 6496 | case $build in |
| 6497 | *-*-mingw* ) # actually msys |
| 6498 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 6499 | ;; |
| 6500 | *-*-cygwin* ) |
| 6501 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 6502 | ;; |
| 6503 | * ) # otherwise, assume *nix |
| 6504 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 6505 | ;; |
| 6506 | esac |
| 6507 | ;; |
| 6508 | *-*-cygwin* ) |
| 6509 | case $build in |
| 6510 | *-*-mingw* ) # actually msys |
| 6511 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 6512 | ;; |
| 6513 | *-*-cygwin* ) |
| 6514 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6515 | ;; |
| 6516 | * ) # otherwise, assume *nix |
| 6517 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 6518 | ;; |
| 6519 | esac |
| 6520 | ;; |
| 6521 | * ) # unhandled hosts (and "normal" native builds) |
| 6522 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6523 | ;; |
| 6524 | esac |
| 6525 | |
| 6526 | fi |
| 6527 | |
| 6528 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 6529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 6530 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } |
| 6531 | |
| 6532 | |
| 6533 | |
| 6534 | |
| 6535 | |
| 6536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 6537 | printf %s "checking how to convert $build file names to toolchain format... " >&6; } |
| 6538 | if test ${lt_cv_to_tool_file_cmd+y} |
| 6539 | then : |
| 6540 | printf %s "(cached) " >&6 |
| 6541 | else $as_nop |
| 6542 | #assume ordinary cross tools, or native build. |
| 6543 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 6544 | case $host in |
| 6545 | *-*-mingw* ) |
| 6546 | case $build in |
| 6547 | *-*-mingw* ) # actually msys |
| 6548 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 6549 | ;; |
| 6550 | esac |
| 6551 | ;; |
| 6552 | esac |
| 6553 | |
| 6554 | fi |
| 6555 | |
| 6556 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 6557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 6558 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } |
| 6559 | |
| 6560 | |
| 6561 | |
| 6562 | |
| 6563 | |
| 6564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 6565 | printf %s "checking for $LD option to reload object files... " >&6; } |
| 6566 | if test ${lt_cv_ld_reload_flag+y} |
| 6567 | then : |
| 6568 | printf %s "(cached) " >&6 |
| 6569 | else $as_nop |
| 6570 | lt_cv_ld_reload_flag='-r' |
| 6571 | fi |
| 6572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 6573 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } |
| 6574 | reload_flag=$lt_cv_ld_reload_flag |
| 6575 | case $reload_flag in |
| 6576 | "" | " "*) ;; |
| 6577 | *) reload_flag=" $reload_flag" ;; |
| 6578 | esac |
| 6579 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6580 | case $host_os in |
| 6581 | cygwin* | mingw* | pw32* | cegcc*) |
| 6582 | if test yes != "$GCC"; then |
| 6583 | reload_cmds=false |
| 6584 | fi |
| 6585 | ;; |
| 6586 | darwin*) |
| 6587 | if test yes = "$GCC"; then |
| 6588 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 6589 | else |
| 6590 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6591 | fi |
| 6592 | ;; |
| 6593 | esac |
| 6594 | |
| 6595 | |
| 6596 | |
| 6597 | |
| 6598 | |
| 6599 | |
| 6600 | |
| 6601 | |
| 6602 | |
| 6603 | if test -n "$ac_tool_prefix"; then |
| 6604 | # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. |
| 6605 | set dummy ${ac_tool_prefix}file; ac_word=$2 |
| 6606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6607 | printf %s "checking for $ac_word... " >&6; } |
| 6608 | if test ${ac_cv_prog_FILECMD+y} |
| 6609 | then : |
| 6610 | printf %s "(cached) " >&6 |
| 6611 | else $as_nop |
| 6612 | if test -n "$FILECMD"; then |
| 6613 | ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. |
| 6614 | else |
| 6615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6616 | for as_dir in $PATH |
| 6617 | do |
| 6618 | IFS=$as_save_IFS |
| 6619 | case $as_dir in #((( |
| 6620 | '') as_dir=./ ;; |
| 6621 | */) ;; |
| 6622 | *) as_dir=$as_dir/ ;; |
| 6623 | esac |
| 6624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6625 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6626 | ac_cv_prog_FILECMD="${ac_tool_prefix}file" |
| 6627 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6628 | break 2 |
| 6629 | fi |
| 6630 | done |
| 6631 | done |
| 6632 | IFS=$as_save_IFS |
| 6633 | |
| 6634 | fi |
| 6635 | fi |
| 6636 | FILECMD=$ac_cv_prog_FILECMD |
| 6637 | if test -n "$FILECMD"; then |
| 6638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 |
| 6639 | printf "%s\n" "$FILECMD" >&6; } |
| 6640 | else |
| 6641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6642 | printf "%s\n" "no" >&6; } |
| 6643 | fi |
| 6644 | |
| 6645 | |
| 6646 | fi |
| 6647 | if test -z "$ac_cv_prog_FILECMD"; then |
| 6648 | ac_ct_FILECMD=$FILECMD |
| 6649 | # Extract the first word of "file", so it can be a program name with args. |
| 6650 | set dummy file; ac_word=$2 |
| 6651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6652 | printf %s "checking for $ac_word... " >&6; } |
| 6653 | if test ${ac_cv_prog_ac_ct_FILECMD+y} |
| 6654 | then : |
| 6655 | printf %s "(cached) " >&6 |
| 6656 | else $as_nop |
| 6657 | if test -n "$ac_ct_FILECMD"; then |
| 6658 | ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. |
| 6659 | else |
| 6660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6661 | for as_dir in $PATH |
| 6662 | do |
| 6663 | IFS=$as_save_IFS |
| 6664 | case $as_dir in #((( |
| 6665 | '') as_dir=./ ;; |
| 6666 | */) ;; |
| 6667 | *) as_dir=$as_dir/ ;; |
| 6668 | esac |
| 6669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6670 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6671 | ac_cv_prog_ac_ct_FILECMD="file" |
| 6672 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6673 | break 2 |
| 6674 | fi |
| 6675 | done |
| 6676 | done |
| 6677 | IFS=$as_save_IFS |
| 6678 | |
| 6679 | fi |
| 6680 | fi |
| 6681 | ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD |
| 6682 | if test -n "$ac_ct_FILECMD"; then |
| 6683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 |
| 6684 | printf "%s\n" "$ac_ct_FILECMD" >&6; } |
| 6685 | else |
| 6686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6687 | printf "%s\n" "no" >&6; } |
| 6688 | fi |
| 6689 | |
| 6690 | if test "x$ac_ct_FILECMD" = x; then |
| 6691 | FILECMD=":" |
| 6692 | else |
| 6693 | case $cross_compiling:$ac_tool_warned in |
| 6694 | yes:) |
| 6695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6696 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6697 | ac_tool_warned=yes ;; |
| 6698 | esac |
| 6699 | FILECMD=$ac_ct_FILECMD |
| 6700 | fi |
| 6701 | else |
| 6702 | FILECMD="$ac_cv_prog_FILECMD" |
| 6703 | fi |
| 6704 | |
| 6705 | |
| 6706 | |
| 6707 | |
| 6708 | |
| 6709 | |
| 6710 | |
| 6711 | if test -n "$ac_tool_prefix"; then |
| 6712 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 6713 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 6714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6715 | printf %s "checking for $ac_word... " >&6; } |
| 6716 | if test ${ac_cv_prog_OBJDUMP+y} |
| 6717 | then : |
| 6718 | printf %s "(cached) " >&6 |
| 6719 | else $as_nop |
| 6720 | if test -n "$OBJDUMP"; then |
| 6721 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 6722 | else |
| 6723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6724 | for as_dir in $PATH |
| 6725 | do |
| 6726 | IFS=$as_save_IFS |
| 6727 | case $as_dir in #((( |
| 6728 | '') as_dir=./ ;; |
| 6729 | */) ;; |
| 6730 | *) as_dir=$as_dir/ ;; |
| 6731 | esac |
| 6732 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6733 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6734 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 6735 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6736 | break 2 |
| 6737 | fi |
| 6738 | done |
| 6739 | done |
| 6740 | IFS=$as_save_IFS |
| 6741 | |
| 6742 | fi |
| 6743 | fi |
| 6744 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 6745 | if test -n "$OBJDUMP"; then |
| 6746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 6747 | printf "%s\n" "$OBJDUMP" >&6; } |
| 6748 | else |
| 6749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6750 | printf "%s\n" "no" >&6; } |
| 6751 | fi |
| 6752 | |
| 6753 | |
| 6754 | fi |
| 6755 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 6756 | ac_ct_OBJDUMP=$OBJDUMP |
| 6757 | # Extract the first word of "objdump", so it can be a program name with args. |
| 6758 | set dummy objdump; ac_word=$2 |
| 6759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6760 | printf %s "checking for $ac_word... " >&6; } |
| 6761 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 6762 | then : |
| 6763 | printf %s "(cached) " >&6 |
| 6764 | else $as_nop |
| 6765 | if test -n "$ac_ct_OBJDUMP"; then |
| 6766 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 6767 | else |
| 6768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6769 | for as_dir in $PATH |
| 6770 | do |
| 6771 | IFS=$as_save_IFS |
| 6772 | case $as_dir in #((( |
| 6773 | '') as_dir=./ ;; |
| 6774 | */) ;; |
| 6775 | *) as_dir=$as_dir/ ;; |
| 6776 | esac |
| 6777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6778 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6779 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 6780 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6781 | break 2 |
| 6782 | fi |
| 6783 | done |
| 6784 | done |
| 6785 | IFS=$as_save_IFS |
| 6786 | |
| 6787 | fi |
| 6788 | fi |
| 6789 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 6790 | if test -n "$ac_ct_OBJDUMP"; then |
| 6791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 6792 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 6793 | else |
| 6794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6795 | printf "%s\n" "no" >&6; } |
| 6796 | fi |
| 6797 | |
| 6798 | if test "x$ac_ct_OBJDUMP" = x; then |
| 6799 | OBJDUMP="false" |
| 6800 | else |
| 6801 | case $cross_compiling:$ac_tool_warned in |
| 6802 | yes:) |
| 6803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6804 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6805 | ac_tool_warned=yes ;; |
| 6806 | esac |
| 6807 | OBJDUMP=$ac_ct_OBJDUMP |
| 6808 | fi |
| 6809 | else |
| 6810 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 6811 | fi |
| 6812 | |
| 6813 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6814 | |
| 6815 | |
| 6816 | |
| 6817 | |
| 6818 | |
| 6819 | |
| 6820 | |
| 6821 | |
| 6822 | |
| 6823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 6824 | printf %s "checking how to recognize dependent libraries... " >&6; } |
| 6825 | if test ${lt_cv_deplibs_check_method+y} |
| 6826 | then : |
| 6827 | printf %s "(cached) " >&6 |
| 6828 | else $as_nop |
| 6829 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 6830 | lt_cv_file_magic_test_file= |
| 6831 | lt_cv_deplibs_check_method='unknown' |
| 6832 | # Need to set the preceding variable on all platforms that support |
| 6833 | # interlibrary dependencies. |
| 6834 | # 'none' -- dependencies not supported. |
| 6835 | # 'unknown' -- same as none, but documents that we really don't know. |
| 6836 | # 'pass_all' -- all dependencies passed with no checks. |
| 6837 | # 'test_compile' -- check by making test program. |
| 6838 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 6839 | # that responds to the $file_magic_cmd with a given extended regex. |
| 6840 | # If you have 'file' or equivalent on your system and you're not sure |
| 6841 | # whether 'pass_all' will *always* work, you probably want this one. |
| 6842 | |
| 6843 | case $host_os in |
| 6844 | aix[4-9]*) |
| 6845 | lt_cv_deplibs_check_method=pass_all |
| 6846 | ;; |
| 6847 | |
| 6848 | beos*) |
| 6849 | lt_cv_deplibs_check_method=pass_all |
| 6850 | ;; |
| 6851 | |
| 6852 | bsdi[45]*) |
| 6853 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 6854 | lt_cv_file_magic_cmd='$FILECMD -L' |
| 6855 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 6856 | ;; |
| 6857 | |
| 6858 | cygwin*) |
| 6859 | # func_win32_libid is a shell function defined in ltmain.sh |
| 6860 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6861 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6862 | ;; |
| 6863 | |
| 6864 | mingw* | pw32*) |
| 6865 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 6866 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 6867 | # unless we find 'file', for example because we are cross-compiling. |
| 6868 | if ( file / ) >/dev/null 2>&1; then |
| 6869 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6870 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6871 | else |
| 6872 | # Keep this pattern in sync with the one in func_win32_libid. |
| 6873 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 6874 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6875 | fi |
| 6876 | ;; |
| 6877 | |
| 6878 | cegcc*) |
| 6879 | # use the weaker test based on 'objdump'. See mingw*. |
| 6880 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 6881 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6882 | ;; |
| 6883 | |
| 6884 | darwin* | rhapsody*) |
| 6885 | lt_cv_deplibs_check_method=pass_all |
| 6886 | ;; |
| 6887 | |
| 6888 | freebsd* | dragonfly* | midnightbsd*) |
| 6889 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6890 | case $host_cpu in |
| 6891 | i*86 ) |
| 6892 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 6893 | # Let's accept both of them until this is cleared up. |
| 6894 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 6895 | lt_cv_file_magic_cmd=$FILECMD |
| 6896 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 6897 | ;; |
| 6898 | esac |
| 6899 | else |
| 6900 | lt_cv_deplibs_check_method=pass_all |
| 6901 | fi |
| 6902 | ;; |
| 6903 | |
| 6904 | haiku*) |
| 6905 | lt_cv_deplibs_check_method=pass_all |
| 6906 | ;; |
| 6907 | |
| 6908 | hpux10.20* | hpux11*) |
| 6909 | lt_cv_file_magic_cmd=$FILECMD |
| 6910 | case $host_cpu in |
| 6911 | ia64*) |
| 6912 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 6913 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 6914 | ;; |
| 6915 | hppa*64*) |
| 6916 | 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]' |
| 6917 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 6918 | ;; |
| 6919 | *) |
| 6920 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 6921 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 6922 | ;; |
| 6923 | esac |
| 6924 | ;; |
| 6925 | |
| 6926 | interix[3-9]*) |
| 6927 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 6928 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 6929 | ;; |
| 6930 | |
| 6931 | irix5* | irix6* | nonstopux*) |
| 6932 | case $LD in |
| 6933 | *-32|*"-32 ") libmagic=32-bit;; |
| 6934 | *-n32|*"-n32 ") libmagic=N32;; |
| 6935 | *-64|*"-64 ") libmagic=64-bit;; |
| 6936 | *) libmagic=never-match;; |
| 6937 | esac |
| 6938 | lt_cv_deplibs_check_method=pass_all |
| 6939 | ;; |
| 6940 | |
| 6941 | # This must be glibc/ELF. |
| 6942 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 6943 | lt_cv_deplibs_check_method=pass_all |
| 6944 | ;; |
| 6945 | |
| 6946 | netbsd* | netbsdelf*-gnu) |
| 6947 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6948 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6949 | else |
| 6950 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 6951 | fi |
| 6952 | ;; |
| 6953 | |
| 6954 | newos6*) |
| 6955 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 6956 | lt_cv_file_magic_cmd=$FILECMD |
| 6957 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6958 | ;; |
| 6959 | |
| 6960 | *nto* | *qnx*) |
| 6961 | lt_cv_deplibs_check_method=pass_all |
| 6962 | ;; |
| 6963 | |
| 6964 | openbsd* | bitrig*) |
| 6965 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 6966 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 6967 | else |
| 6968 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6969 | fi |
| 6970 | ;; |
| 6971 | |
| 6972 | osf3* | osf4* | osf5*) |
| 6973 | lt_cv_deplibs_check_method=pass_all |
| 6974 | ;; |
| 6975 | |
| 6976 | rdos*) |
| 6977 | lt_cv_deplibs_check_method=pass_all |
| 6978 | ;; |
| 6979 | |
| 6980 | solaris*) |
| 6981 | lt_cv_deplibs_check_method=pass_all |
| 6982 | ;; |
| 6983 | |
| 6984 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6985 | lt_cv_deplibs_check_method=pass_all |
| 6986 | ;; |
| 6987 | |
| 6988 | sysv4 | sysv4.3*) |
| 6989 | case $host_vendor in |
| 6990 | motorola) |
| 6991 | 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]' |
| 6992 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6993 | ;; |
| 6994 | ncr) |
| 6995 | lt_cv_deplibs_check_method=pass_all |
| 6996 | ;; |
| 6997 | sequent) |
| 6998 | lt_cv_file_magic_cmd='/bin/file' |
| 6999 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 7000 | ;; |
| 7001 | sni) |
| 7002 | lt_cv_file_magic_cmd='/bin/file' |
| 7003 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 7004 | lt_cv_file_magic_test_file=/lib/libc.so |
| 7005 | ;; |
| 7006 | siemens) |
| 7007 | lt_cv_deplibs_check_method=pass_all |
| 7008 | ;; |
| 7009 | pc) |
| 7010 | lt_cv_deplibs_check_method=pass_all |
| 7011 | ;; |
| 7012 | esac |
| 7013 | ;; |
| 7014 | |
| 7015 | tpf*) |
| 7016 | lt_cv_deplibs_check_method=pass_all |
| 7017 | ;; |
| 7018 | os2*) |
| 7019 | lt_cv_deplibs_check_method=pass_all |
| 7020 | ;; |
| 7021 | esac |
| 7022 | |
| 7023 | fi |
| 7024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 7025 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } |
| 7026 | |
| 7027 | file_magic_glob= |
| 7028 | want_nocaseglob=no |
| 7029 | if test "$build" = "$host"; then |
| 7030 | case $host_os in |
| 7031 | mingw* | pw32*) |
| 7032 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 7033 | want_nocaseglob=yes |
| 7034 | else |
| 7035 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 7036 | fi |
| 7037 | ;; |
| 7038 | esac |
| 7039 | fi |
| 7040 | |
| 7041 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 7042 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 7043 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7044 | |
| 7045 | |
| 7046 | |
| 7047 | |
| 7048 | |
| 7049 | |
| 7050 | |
| 7051 | |
| 7052 | |
| 7053 | |
| 7054 | |
| 7055 | |
| 7056 | |
| 7057 | |
| 7058 | |
| 7059 | |
| 7060 | |
| 7061 | |
| 7062 | |
| 7063 | |
| 7064 | |
| 7065 | |
| 7066 | if test -n "$ac_tool_prefix"; then |
| 7067 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7068 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7070 | printf %s "checking for $ac_word... " >&6; } |
| 7071 | if test ${ac_cv_prog_DLLTOOL+y} |
| 7072 | then : |
| 7073 | printf %s "(cached) " >&6 |
| 7074 | else $as_nop |
| 7075 | if test -n "$DLLTOOL"; then |
| 7076 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7077 | else |
| 7078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7079 | for as_dir in $PATH |
| 7080 | do |
| 7081 | IFS=$as_save_IFS |
| 7082 | case $as_dir in #((( |
| 7083 | '') as_dir=./ ;; |
| 7084 | */) ;; |
| 7085 | *) as_dir=$as_dir/ ;; |
| 7086 | esac |
| 7087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7088 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7089 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7090 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7091 | break 2 |
| 7092 | fi |
| 7093 | done |
| 7094 | done |
| 7095 | IFS=$as_save_IFS |
| 7096 | |
| 7097 | fi |
| 7098 | fi |
| 7099 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7100 | if test -n "$DLLTOOL"; then |
| 7101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7102 | printf "%s\n" "$DLLTOOL" >&6; } |
| 7103 | else |
| 7104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7105 | printf "%s\n" "no" >&6; } |
| 7106 | fi |
| 7107 | |
| 7108 | |
| 7109 | fi |
| 7110 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7111 | ac_ct_DLLTOOL=$DLLTOOL |
| 7112 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 7113 | set dummy dlltool; ac_word=$2 |
| 7114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7115 | printf %s "checking for $ac_word... " >&6; } |
| 7116 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 7117 | then : |
| 7118 | printf %s "(cached) " >&6 |
| 7119 | else $as_nop |
| 7120 | if test -n "$ac_ct_DLLTOOL"; then |
| 7121 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7122 | else |
| 7123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7124 | for as_dir in $PATH |
| 7125 | do |
| 7126 | IFS=$as_save_IFS |
| 7127 | case $as_dir in #((( |
| 7128 | '') as_dir=./ ;; |
| 7129 | */) ;; |
| 7130 | *) as_dir=$as_dir/ ;; |
| 7131 | esac |
| 7132 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7133 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7134 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7135 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7136 | break 2 |
| 7137 | fi |
| 7138 | done |
| 7139 | done |
| 7140 | IFS=$as_save_IFS |
| 7141 | |
| 7142 | fi |
| 7143 | fi |
| 7144 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7145 | if test -n "$ac_ct_DLLTOOL"; then |
| 7146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7147 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 7148 | else |
| 7149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7150 | printf "%s\n" "no" >&6; } |
| 7151 | fi |
| 7152 | |
| 7153 | if test "x$ac_ct_DLLTOOL" = x; then |
| 7154 | DLLTOOL="false" |
| 7155 | else |
| 7156 | case $cross_compiling:$ac_tool_warned in |
| 7157 | yes:) |
| 7158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7159 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7160 | ac_tool_warned=yes ;; |
| 7161 | esac |
| 7162 | DLLTOOL=$ac_ct_DLLTOOL |
| 7163 | fi |
| 7164 | else |
| 7165 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7166 | fi |
| 7167 | |
| 7168 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7169 | |
| 7170 | |
| 7171 | |
| 7172 | |
| 7173 | |
| 7174 | |
| 7175 | |
| 7176 | |
| 7177 | |
| 7178 | |
| 7179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7180 | printf %s "checking how to associate runtime and link libraries... " >&6; } |
| 7181 | if test ${lt_cv_sharedlib_from_linklib_cmd+y} |
| 7182 | then : |
| 7183 | printf %s "(cached) " >&6 |
| 7184 | else $as_nop |
| 7185 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7186 | |
| 7187 | case $host_os in |
| 7188 | cygwin* | mingw* | pw32* | cegcc*) |
| 7189 | # two different shell functions defined in ltmain.sh; |
| 7190 | # decide which one to use based on capabilities of $DLLTOOL |
| 7191 | case `$DLLTOOL --help 2>&1` in |
| 7192 | *--identify-strict*) |
| 7193 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7194 | ;; |
| 7195 | *) |
| 7196 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7197 | ;; |
| 7198 | esac |
| 7199 | ;; |
| 7200 | *) |
| 7201 | # fallback: assume linklib IS sharedlib |
| 7202 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 7203 | ;; |
| 7204 | esac |
| 7205 | |
| 7206 | fi |
| 7207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7208 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7209 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7210 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7211 | |
| 7212 | |
| 7213 | |
| 7214 | |
| 7215 | |
| 7216 | |
| 7217 | |
| 7218 | if test -n "$ac_tool_prefix"; then |
| 7219 | for ac_prog in ar |
| 7220 | do |
| 7221 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7222 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7224 | printf %s "checking for $ac_word... " >&6; } |
| 7225 | if test ${ac_cv_prog_AR+y} |
| 7226 | then : |
| 7227 | printf %s "(cached) " >&6 |
| 7228 | else $as_nop |
| 7229 | if test -n "$AR"; then |
| 7230 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7231 | else |
| 7232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7233 | for as_dir in $PATH |
| 7234 | do |
| 7235 | IFS=$as_save_IFS |
| 7236 | case $as_dir in #((( |
| 7237 | '') as_dir=./ ;; |
| 7238 | */) ;; |
| 7239 | *) as_dir=$as_dir/ ;; |
| 7240 | esac |
| 7241 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7242 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7243 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7244 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7245 | break 2 |
| 7246 | fi |
| 7247 | done |
| 7248 | done |
| 7249 | IFS=$as_save_IFS |
| 7250 | |
| 7251 | fi |
| 7252 | fi |
| 7253 | AR=$ac_cv_prog_AR |
| 7254 | if test -n "$AR"; then |
| 7255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7256 | printf "%s\n" "$AR" >&6; } |
| 7257 | else |
| 7258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7259 | printf "%s\n" "no" >&6; } |
| 7260 | fi |
| 7261 | |
| 7262 | |
| 7263 | test -n "$AR" && break |
| 7264 | done |
| 7265 | fi |
| 7266 | if test -z "$AR"; then |
| 7267 | ac_ct_AR=$AR |
| 7268 | for ac_prog in ar |
| 7269 | do |
| 7270 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7271 | set dummy $ac_prog; ac_word=$2 |
| 7272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7273 | printf %s "checking for $ac_word... " >&6; } |
| 7274 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 7275 | then : |
| 7276 | printf %s "(cached) " >&6 |
| 7277 | else $as_nop |
| 7278 | if test -n "$ac_ct_AR"; then |
| 7279 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7280 | else |
| 7281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7282 | for as_dir in $PATH |
| 7283 | do |
| 7284 | IFS=$as_save_IFS |
| 7285 | case $as_dir in #((( |
| 7286 | '') as_dir=./ ;; |
| 7287 | */) ;; |
| 7288 | *) as_dir=$as_dir/ ;; |
| 7289 | esac |
| 7290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7291 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7292 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7293 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7294 | break 2 |
| 7295 | fi |
| 7296 | done |
| 7297 | done |
| 7298 | IFS=$as_save_IFS |
| 7299 | |
| 7300 | fi |
| 7301 | fi |
| 7302 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7303 | if test -n "$ac_ct_AR"; then |
| 7304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7305 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 7306 | else |
| 7307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7308 | printf "%s\n" "no" >&6; } |
| 7309 | fi |
| 7310 | |
| 7311 | |
| 7312 | test -n "$ac_ct_AR" && break |
| 7313 | done |
| 7314 | |
| 7315 | if test "x$ac_ct_AR" = x; then |
| 7316 | AR="false" |
| 7317 | else |
| 7318 | case $cross_compiling:$ac_tool_warned in |
| 7319 | yes:) |
| 7320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7321 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7322 | ac_tool_warned=yes ;; |
| 7323 | esac |
| 7324 | AR=$ac_ct_AR |
| 7325 | fi |
| 7326 | fi |
| 7327 | |
| 7328 | : ${AR=ar} |
| 7329 | |
| 7330 | |
| 7331 | |
| 7332 | |
| 7333 | |
| 7334 | |
| 7335 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with |
| 7336 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have |
| 7337 | # higher priority because thats what people were doing historically (setting |
| 7338 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS |
| 7339 | # variable obsoleted/removed. |
| 7340 | |
| 7341 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} |
| 7342 | lt_ar_flags=$AR_FLAGS |
| 7343 | |
| 7344 | |
| 7345 | |
| 7346 | |
| 7347 | |
| 7348 | |
| 7349 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override |
| 7350 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die. |
| 7351 | |
| 7352 | |
| 7353 | |
| 7354 | |
| 7355 | |
| 7356 | |
| 7357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7358 | printf %s "checking for archiver @FILE support... " >&6; } |
| 7359 | if test ${lt_cv_ar_at_file+y} |
| 7360 | then : |
| 7361 | printf %s "(cached) " >&6 |
| 7362 | else $as_nop |
| 7363 | lt_cv_ar_at_file=no |
| 7364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7365 | /* end confdefs.h. */ |
| 7366 | |
| 7367 | int |
| 7368 | main (void) |
| 7369 | { |
| 7370 | |
| 7371 | ; |
| 7372 | return 0; |
| 7373 | } |
| 7374 | _ACEOF |
| 7375 | if ac_fn_c_try_compile "$LINENO" |
| 7376 | then : |
| 7377 | echo conftest.$ac_objext > conftest.lst |
| 7378 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7379 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7380 | (eval $lt_ar_try) 2>&5 |
| 7381 | ac_status=$? |
| 7382 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7383 | test $ac_status = 0; } |
| 7384 | if test 0 -eq "$ac_status"; then |
| 7385 | # Ensure the archiver fails upon bogus file names. |
| 7386 | rm -f conftest.$ac_objext libconftest.a |
| 7387 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7388 | (eval $lt_ar_try) 2>&5 |
| 7389 | ac_status=$? |
| 7390 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7391 | test $ac_status = 0; } |
| 7392 | if test 0 -ne "$ac_status"; then |
| 7393 | lt_cv_ar_at_file=@ |
| 7394 | fi |
| 7395 | fi |
| 7396 | rm -f conftest.* libconftest.a |
| 7397 | |
| 7398 | fi |
| 7399 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7400 | |
| 7401 | fi |
| 7402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7403 | printf "%s\n" "$lt_cv_ar_at_file" >&6; } |
| 7404 | |
| 7405 | if test no = "$lt_cv_ar_at_file"; then |
| 7406 | archiver_list_spec= |
| 7407 | else |
| 7408 | archiver_list_spec=$lt_cv_ar_at_file |
| 7409 | fi |
| 7410 | |
| 7411 | |
| 7412 | |
| 7413 | |
| 7414 | |
| 7415 | |
| 7416 | |
| 7417 | if test -n "$ac_tool_prefix"; then |
| 7418 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7419 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7421 | printf %s "checking for $ac_word... " >&6; } |
| 7422 | if test ${ac_cv_prog_STRIP+y} |
| 7423 | then : |
| 7424 | printf %s "(cached) " >&6 |
| 7425 | else $as_nop |
| 7426 | if test -n "$STRIP"; then |
| 7427 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7428 | else |
| 7429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7430 | for as_dir in $PATH |
| 7431 | do |
| 7432 | IFS=$as_save_IFS |
| 7433 | case $as_dir in #((( |
| 7434 | '') as_dir=./ ;; |
| 7435 | */) ;; |
| 7436 | *) as_dir=$as_dir/ ;; |
| 7437 | esac |
| 7438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7439 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7440 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7441 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7442 | break 2 |
| 7443 | fi |
| 7444 | done |
| 7445 | done |
| 7446 | IFS=$as_save_IFS |
| 7447 | |
| 7448 | fi |
| 7449 | fi |
| 7450 | STRIP=$ac_cv_prog_STRIP |
| 7451 | if test -n "$STRIP"; then |
| 7452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7453 | printf "%s\n" "$STRIP" >&6; } |
| 7454 | else |
| 7455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7456 | printf "%s\n" "no" >&6; } |
| 7457 | fi |
| 7458 | |
| 7459 | |
| 7460 | fi |
| 7461 | if test -z "$ac_cv_prog_STRIP"; then |
| 7462 | ac_ct_STRIP=$STRIP |
| 7463 | # Extract the first word of "strip", so it can be a program name with args. |
| 7464 | set dummy strip; ac_word=$2 |
| 7465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7466 | printf %s "checking for $ac_word... " >&6; } |
| 7467 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 7468 | then : |
| 7469 | printf %s "(cached) " >&6 |
| 7470 | else $as_nop |
| 7471 | if test -n "$ac_ct_STRIP"; then |
| 7472 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7473 | else |
| 7474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7475 | for as_dir in $PATH |
| 7476 | do |
| 7477 | IFS=$as_save_IFS |
| 7478 | case $as_dir in #((( |
| 7479 | '') as_dir=./ ;; |
| 7480 | */) ;; |
| 7481 | *) as_dir=$as_dir/ ;; |
| 7482 | esac |
| 7483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7484 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7485 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7486 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7487 | break 2 |
| 7488 | fi |
| 7489 | done |
| 7490 | done |
| 7491 | IFS=$as_save_IFS |
| 7492 | |
| 7493 | fi |
| 7494 | fi |
| 7495 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7496 | if test -n "$ac_ct_STRIP"; then |
| 7497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7498 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 7499 | else |
| 7500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7501 | printf "%s\n" "no" >&6; } |
| 7502 | fi |
| 7503 | |
| 7504 | if test "x$ac_ct_STRIP" = x; then |
| 7505 | STRIP=":" |
| 7506 | else |
| 7507 | case $cross_compiling:$ac_tool_warned in |
| 7508 | yes:) |
| 7509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7510 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7511 | ac_tool_warned=yes ;; |
| 7512 | esac |
| 7513 | STRIP=$ac_ct_STRIP |
| 7514 | fi |
| 7515 | else |
| 7516 | STRIP="$ac_cv_prog_STRIP" |
| 7517 | fi |
| 7518 | |
| 7519 | test -z "$STRIP" && STRIP=: |
| 7520 | |
| 7521 | |
| 7522 | |
| 7523 | |
| 7524 | |
| 7525 | |
| 7526 | if test -n "$ac_tool_prefix"; then |
| 7527 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7528 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7530 | printf %s "checking for $ac_word... " >&6; } |
| 7531 | if test ${ac_cv_prog_RANLIB+y} |
| 7532 | then : |
| 7533 | printf %s "(cached) " >&6 |
| 7534 | else $as_nop |
| 7535 | if test -n "$RANLIB"; then |
| 7536 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7537 | else |
| 7538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7539 | for as_dir in $PATH |
| 7540 | do |
| 7541 | IFS=$as_save_IFS |
| 7542 | case $as_dir in #((( |
| 7543 | '') as_dir=./ ;; |
| 7544 | */) ;; |
| 7545 | *) as_dir=$as_dir/ ;; |
| 7546 | esac |
| 7547 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7548 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7549 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7550 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7551 | break 2 |
| 7552 | fi |
| 7553 | done |
| 7554 | done |
| 7555 | IFS=$as_save_IFS |
| 7556 | |
| 7557 | fi |
| 7558 | fi |
| 7559 | RANLIB=$ac_cv_prog_RANLIB |
| 7560 | if test -n "$RANLIB"; then |
| 7561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7562 | printf "%s\n" "$RANLIB" >&6; } |
| 7563 | else |
| 7564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7565 | printf "%s\n" "no" >&6; } |
| 7566 | fi |
| 7567 | |
| 7568 | |
| 7569 | fi |
| 7570 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7571 | ac_ct_RANLIB=$RANLIB |
| 7572 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7573 | set dummy ranlib; ac_word=$2 |
| 7574 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7575 | printf %s "checking for $ac_word... " >&6; } |
| 7576 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7577 | then : |
| 7578 | printf %s "(cached) " >&6 |
| 7579 | else $as_nop |
| 7580 | if test -n "$ac_ct_RANLIB"; then |
| 7581 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7582 | else |
| 7583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7584 | for as_dir in $PATH |
| 7585 | do |
| 7586 | IFS=$as_save_IFS |
| 7587 | case $as_dir in #((( |
| 7588 | '') as_dir=./ ;; |
| 7589 | */) ;; |
| 7590 | *) as_dir=$as_dir/ ;; |
| 7591 | esac |
| 7592 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7593 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7594 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7595 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7596 | break 2 |
| 7597 | fi |
| 7598 | done |
| 7599 | done |
| 7600 | IFS=$as_save_IFS |
| 7601 | |
| 7602 | fi |
| 7603 | fi |
| 7604 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7605 | if test -n "$ac_ct_RANLIB"; then |
| 7606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7607 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 7608 | else |
| 7609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7610 | printf "%s\n" "no" >&6; } |
| 7611 | fi |
| 7612 | |
| 7613 | if test "x$ac_ct_RANLIB" = x; then |
| 7614 | RANLIB=":" |
| 7615 | else |
| 7616 | case $cross_compiling:$ac_tool_warned in |
| 7617 | yes:) |
| 7618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7619 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7620 | ac_tool_warned=yes ;; |
| 7621 | esac |
| 7622 | RANLIB=$ac_ct_RANLIB |
| 7623 | fi |
| 7624 | else |
| 7625 | RANLIB="$ac_cv_prog_RANLIB" |
| 7626 | fi |
| 7627 | |
| 7628 | test -z "$RANLIB" && RANLIB=: |
| 7629 | |
| 7630 | |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | # Determine commands to create old-style static archives. |
| 7636 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 7637 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7638 | old_postuninstall_cmds= |
| 7639 | |
| 7640 | if test -n "$RANLIB"; then |
| 7641 | case $host_os in |
| 7642 | bitrig* | openbsd*) |
| 7643 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 7644 | ;; |
| 7645 | *) |
| 7646 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 7647 | ;; |
| 7648 | esac |
| 7649 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 7650 | fi |
| 7651 | |
| 7652 | case $host_os in |
| 7653 | darwin*) |
| 7654 | lock_old_archive_extraction=yes ;; |
| 7655 | *) |
| 7656 | lock_old_archive_extraction=no ;; |
| 7657 | esac |
| 7658 | |
| 7659 | |
| 7660 | |
| 7661 | |
| 7662 | |
| 7663 | |
| 7664 | |
| 7665 | |
| 7666 | |
| 7667 | |
| 7668 | |
| 7669 | |
| 7670 | |
| 7671 | |
| 7672 | |
| 7673 | |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | |
| 7678 | |
| 7679 | |
| 7680 | |
| 7681 | |
| 7682 | |
| 7683 | |
| 7684 | |
| 7685 | |
| 7686 | |
| 7687 | |
| 7688 | |
| 7689 | |
| 7690 | |
| 7691 | |
| 7692 | |
| 7693 | |
| 7694 | |
| 7695 | |
| 7696 | |
| 7697 | # If no C compiler was specified, use CC. |
| 7698 | LTCC=${LTCC-"$CC"} |
| 7699 | |
| 7700 | # If no C compiler flags were specified, use CFLAGS. |
| 7701 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7702 | |
| 7703 | # Allow CC to be a program name with arguments. |
| 7704 | compiler=$CC |
| 7705 | |
| 7706 | |
| 7707 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 7709 | printf %s "checking command to parse $NM output from $compiler object... " >&6; } |
| 7710 | if test ${lt_cv_sys_global_symbol_pipe+y} |
| 7711 | then : |
| 7712 | printf %s "(cached) " >&6 |
| 7713 | else $as_nop |
| 7714 | |
| 7715 | # These are sane defaults that work on at least a few old systems. |
| 7716 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7717 | |
| 7718 | # Character class describing NM global symbol codes. |
| 7719 | symcode='[BCDEGRST]' |
| 7720 | |
| 7721 | # Regexp to match symbols that can be accessed directly from C. |
| 7722 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7723 | |
| 7724 | # Define system-specific variables. |
| 7725 | case $host_os in |
| 7726 | aix*) |
| 7727 | symcode='[BCDT]' |
| 7728 | ;; |
| 7729 | cygwin* | mingw* | pw32* | cegcc*) |
| 7730 | symcode='[ABCDGISTW]' |
| 7731 | ;; |
| 7732 | hpux*) |
| 7733 | if test ia64 = "$host_cpu"; then |
| 7734 | symcode='[ABCDEGRST]' |
| 7735 | fi |
| 7736 | ;; |
| 7737 | irix* | nonstopux*) |
| 7738 | symcode='[BCDEGRST]' |
| 7739 | ;; |
| 7740 | osf*) |
| 7741 | symcode='[BCDEGQRST]' |
| 7742 | ;; |
| 7743 | solaris*) |
| 7744 | symcode='[BDRT]' |
| 7745 | ;; |
| 7746 | sco3.2v5*) |
| 7747 | symcode='[DT]' |
| 7748 | ;; |
| 7749 | sysv4.2uw2*) |
| 7750 | symcode='[DT]' |
| 7751 | ;; |
| 7752 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 7753 | symcode='[ABDT]' |
| 7754 | ;; |
| 7755 | sysv4) |
| 7756 | symcode='[DFNSTU]' |
| 7757 | ;; |
| 7758 | esac |
| 7759 | |
| 7760 | # If we're using GNU nm, then use its standard symbol codes. |
| 7761 | case `$NM -V 2>&1` in |
| 7762 | *GNU* | *'with BFD'*) |
| 7763 | symcode='[ABCDGIRSTW]' ;; |
| 7764 | esac |
| 7765 | |
| 7766 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7767 | # Gets list of data symbols to import. |
| 7768 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" |
| 7769 | # Adjust the below global symbol transforms to fixup imported variables. |
| 7770 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 7771 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 7772 | lt_c_name_lib_hook="\ |
| 7773 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 7774 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 7775 | else |
| 7776 | # Disable hooks by default. |
| 7777 | lt_cv_sys_global_symbol_to_import= |
| 7778 | lt_cdecl_hook= |
| 7779 | lt_c_name_hook= |
| 7780 | lt_c_name_lib_hook= |
| 7781 | fi |
| 7782 | |
| 7783 | # Transform an extracted symbol line into a proper C declaration. |
| 7784 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 7785 | # so use this general approach. |
| 7786 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ |
| 7787 | $lt_cdecl_hook\ |
| 7788 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 7789 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7790 | |
| 7791 | # Transform an extracted symbol line into symbol name and symbol address |
| 7792 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ |
| 7793 | $lt_c_name_hook\ |
| 7794 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 7795 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 7796 | |
| 7797 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 7798 | # symbol address. |
| 7799 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ |
| 7800 | $lt_c_name_lib_hook\ |
| 7801 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 7802 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 7803 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 7804 | |
| 7805 | # Handle CRLF in mingw tool chain |
| 7806 | opt_cr= |
| 7807 | case $build_os in |
| 7808 | mingw*) |
| 7809 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7810 | ;; |
| 7811 | esac |
| 7812 | |
| 7813 | # Try without a prefix underscore, then with it. |
| 7814 | for ac_symprfx in "" "_"; do |
| 7815 | |
| 7816 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 7817 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 7818 | |
| 7819 | # Write the raw and C identifiers. |
| 7820 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7821 | # Fake it for dumpbin and say T for any non-static function, |
| 7822 | # D for any global variable and I for any imported variable. |
| 7823 | # Also find C++ and __fastcall symbols from MSVC++ or ICC, |
| 7824 | # which start with @ or ?. |
| 7825 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 7826 | " {last_section=section; section=\$ 3};"\ |
| 7827 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 7828 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 7829 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 7830 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 7831 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 7832 | " \$ 0!~/External *\|/{next};"\ |
| 7833 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 7834 | " {if(hide[section]) next};"\ |
| 7835 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 7836 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 7837 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 7838 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 7839 | " ' prfx=^$ac_symprfx" |
| 7840 | else |
| 7841 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 7842 | fi |
| 7843 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" |
| 7844 | |
| 7845 | # Check to see that the pipe works correctly. |
| 7846 | pipe_works=no |
| 7847 | |
| 7848 | rm -f conftest* |
| 7849 | cat > conftest.$ac_ext <<_LT_EOF |
| 7850 | #ifdef __cplusplus |
| 7851 | extern "C" { |
| 7852 | #endif |
| 7853 | char nm_test_var; |
| 7854 | void nm_test_func(void); |
| 7855 | void nm_test_func(void){} |
| 7856 | #ifdef __cplusplus |
| 7857 | } |
| 7858 | #endif |
| 7859 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7860 | _LT_EOF |
| 7861 | |
| 7862 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7863 | (eval $ac_compile) 2>&5 |
| 7864 | ac_status=$? |
| 7865 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7866 | test $ac_status = 0; }; then |
| 7867 | # Now try to grab the symbols. |
| 7868 | nlist=conftest.nm |
| 7869 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 7870 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 7871 | # Try sorting and uniquifying the output. |
| 7872 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7873 | mv -f "$nlist"T "$nlist" |
| 7874 | else |
| 7875 | rm -f "$nlist"T |
| 7876 | fi |
| 7877 | |
| 7878 | # Make sure that we snagged all the symbols we need. |
| 7879 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 7880 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 7881 | cat <<_LT_EOF > conftest.$ac_ext |
| 7882 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 7883 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 7884 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 7885 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 7886 | # define LT_DLSYM_CONST |
| 7887 | #elif defined __osf__ |
| 7888 | /* This system does not cope well with relocations in const data. */ |
| 7889 | # define LT_DLSYM_CONST |
| 7890 | #else |
| 7891 | # define LT_DLSYM_CONST const |
| 7892 | #endif |
| 7893 | |
| 7894 | #ifdef __cplusplus |
| 7895 | extern "C" { |
| 7896 | #endif |
| 7897 | |
| 7898 | _LT_EOF |
| 7899 | # Now generate the symbol file. |
| 7900 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 7901 | |
| 7902 | cat <<_LT_EOF >> conftest.$ac_ext |
| 7903 | |
| 7904 | /* The mapping between symbol names and symbols. */ |
| 7905 | LT_DLSYM_CONST struct { |
| 7906 | const char *name; |
| 7907 | void *address; |
| 7908 | } |
| 7909 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 7910 | { |
| 7911 | { "@PROGRAM@", (void *) 0 }, |
| 7912 | _LT_EOF |
| 7913 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 7914 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 7915 | {0, (void *) 0} |
| 7916 | }; |
| 7917 | |
| 7918 | /* This works around a problem in FreeBSD linker */ |
| 7919 | #ifdef FREEBSD_WORKAROUND |
| 7920 | static const void *lt_preloaded_setup() { |
| 7921 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 7922 | } |
| 7923 | #endif |
| 7924 | |
| 7925 | #ifdef __cplusplus |
| 7926 | } |
| 7927 | #endif |
| 7928 | _LT_EOF |
| 7929 | # Now try linking the two files. |
| 7930 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7931 | lt_globsym_save_LIBS=$LIBS |
| 7932 | lt_globsym_save_CFLAGS=$CFLAGS |
| 7933 | LIBS=conftstm.$ac_objext |
| 7934 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7935 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7936 | (eval $ac_link) 2>&5 |
| 7937 | ac_status=$? |
| 7938 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7939 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 7940 | pipe_works=yes |
| 7941 | fi |
| 7942 | LIBS=$lt_globsym_save_LIBS |
| 7943 | CFLAGS=$lt_globsym_save_CFLAGS |
| 7944 | else |
| 7945 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7946 | fi |
| 7947 | else |
| 7948 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7949 | fi |
| 7950 | else |
| 7951 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7952 | fi |
| 7953 | else |
| 7954 | echo "$progname: failed program was:" >&5 |
| 7955 | cat conftest.$ac_ext >&5 |
| 7956 | fi |
| 7957 | rm -rf conftest* conftst* |
| 7958 | |
| 7959 | # Do not use the global_symbol_pipe unless it works. |
| 7960 | if test yes = "$pipe_works"; then |
| 7961 | break |
| 7962 | else |
| 7963 | lt_cv_sys_global_symbol_pipe= |
| 7964 | fi |
| 7965 | done |
| 7966 | |
| 7967 | fi |
| 7968 | |
| 7969 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7970 | lt_cv_sys_global_symbol_to_cdecl= |
| 7971 | fi |
| 7972 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 7974 | printf "%s\n" "failed" >&6; } |
| 7975 | else |
| 7976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 7977 | printf "%s\n" "ok" >&6; } |
| 7978 | fi |
| 7979 | |
| 7980 | # Response file support. |
| 7981 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7982 | nm_file_list_spec='@' |
| 7983 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 7984 | nm_file_list_spec='@' |
| 7985 | fi |
| 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 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8024 | printf %s "checking for sysroot... " >&6; } |
| 8025 | |
| 8026 | # Check whether --with-sysroot was given. |
| 8027 | if test ${with_sysroot+y} |
| 8028 | then : |
| 8029 | withval=$with_sysroot; |
| 8030 | else $as_nop |
| 8031 | with_sysroot=no |
| 8032 | fi |
| 8033 | |
| 8034 | |
| 8035 | lt_sysroot= |
| 8036 | case $with_sysroot in #( |
| 8037 | yes) |
| 8038 | if test yes = "$GCC"; then |
| 8039 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 8040 | fi |
| 8041 | ;; #( |
| 8042 | /*) |
| 8043 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` |
| 8044 | ;; #( |
| 8045 | no|'') |
| 8046 | ;; #( |
| 8047 | *) |
| 8048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 8049 | printf "%s\n" "$with_sysroot" >&6; } |
| 8050 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8051 | ;; |
| 8052 | esac |
| 8053 | |
| 8054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8055 | printf "%s\n" "${lt_sysroot:-no}" >&6; } |
| 8056 | |
| 8057 | |
| 8058 | |
| 8059 | |
| 8060 | |
| 8061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 8062 | printf %s "checking for a working dd... " >&6; } |
| 8063 | if test ${ac_cv_path_lt_DD+y} |
| 8064 | then : |
| 8065 | printf %s "(cached) " >&6 |
| 8066 | else $as_nop |
| 8067 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8068 | cat conftest.i conftest.i >conftest2.i |
| 8069 | : ${lt_DD:=$DD} |
| 8070 | if test -z "$lt_DD"; then |
| 8071 | ac_path_lt_DD_found=false |
| 8072 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8074 | for as_dir in $PATH |
| 8075 | do |
| 8076 | IFS=$as_save_IFS |
| 8077 | case $as_dir in #((( |
| 8078 | '') as_dir=./ ;; |
| 8079 | */) ;; |
| 8080 | *) as_dir=$as_dir/ ;; |
| 8081 | esac |
| 8082 | for ac_prog in dd |
| 8083 | do |
| 8084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8085 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" |
| 8086 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 8087 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8088 | cmp -s conftest.i conftest.out \ |
| 8089 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 8090 | fi |
| 8091 | $ac_path_lt_DD_found && break 3 |
| 8092 | done |
| 8093 | done |
| 8094 | done |
| 8095 | IFS=$as_save_IFS |
| 8096 | if test -z "$ac_cv_path_lt_DD"; then |
| 8097 | : |
| 8098 | fi |
| 8099 | else |
| 8100 | ac_cv_path_lt_DD=$lt_DD |
| 8101 | fi |
| 8102 | |
| 8103 | rm -f conftest.i conftest2.i conftest.out |
| 8104 | fi |
| 8105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 8106 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; } |
| 8107 | |
| 8108 | |
| 8109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 8110 | printf %s "checking how to truncate binary pipes... " >&6; } |
| 8111 | if test ${lt_cv_truncate_bin+y} |
| 8112 | then : |
| 8113 | printf %s "(cached) " >&6 |
| 8114 | else $as_nop |
| 8115 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8116 | cat conftest.i conftest.i >conftest2.i |
| 8117 | lt_cv_truncate_bin= |
| 8118 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8119 | cmp -s conftest.i conftest.out \ |
| 8120 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 8121 | fi |
| 8122 | rm -f conftest.i conftest2.i conftest.out |
| 8123 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 8124 | fi |
| 8125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 8126 | printf "%s\n" "$lt_cv_truncate_bin" >&6; } |
| 8127 | |
| 8128 | |
| 8129 | |
| 8130 | |
| 8131 | |
| 8132 | |
| 8133 | |
| 8134 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 8135 | func_cc_basename () |
| 8136 | { |
| 8137 | for cc_temp in $*""; do |
| 8138 | case $cc_temp in |
| 8139 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8140 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8141 | \-*) ;; |
| 8142 | *) break;; |
| 8143 | esac |
| 8144 | done |
| 8145 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8146 | } |
| 8147 | |
| 8148 | # Check whether --enable-libtool-lock was given. |
| 8149 | if test ${enable_libtool_lock+y} |
| 8150 | then : |
| 8151 | enableval=$enable_libtool_lock; |
| 8152 | fi |
| 8153 | |
| 8154 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 8155 | |
| 8156 | # Some flags need to be propagated to the compiler or linker for good |
| 8157 | # libtool support. |
| 8158 | case $host in |
| 8159 | ia64-*-hpux*) |
| 8160 | # Find out what ABI is being produced by ac_compile, and set mode |
| 8161 | # options accordingly. |
| 8162 | echo 'int i;' > conftest.$ac_ext |
| 8163 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8164 | (eval $ac_compile) 2>&5 |
| 8165 | ac_status=$? |
| 8166 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8167 | test $ac_status = 0; }; then |
| 8168 | case `$FILECMD conftest.$ac_objext` in |
| 8169 | *ELF-32*) |
| 8170 | HPUX_IA64_MODE=32 |
| 8171 | ;; |
| 8172 | *ELF-64*) |
| 8173 | HPUX_IA64_MODE=64 |
| 8174 | ;; |
| 8175 | esac |
| 8176 | fi |
| 8177 | rm -rf conftest* |
| 8178 | ;; |
| 8179 | *-*-irix6*) |
| 8180 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8181 | # options accordingly. |
| 8182 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8183 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8184 | (eval $ac_compile) 2>&5 |
| 8185 | ac_status=$? |
| 8186 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8187 | test $ac_status = 0; }; then |
| 8188 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 8189 | case `$FILECMD conftest.$ac_objext` in |
| 8190 | *32-bit*) |
| 8191 | LD="${LD-ld} -melf32bsmip" |
| 8192 | ;; |
| 8193 | *N32*) |
| 8194 | LD="${LD-ld} -melf32bmipn32" |
| 8195 | ;; |
| 8196 | *64-bit*) |
| 8197 | LD="${LD-ld} -melf64bmip" |
| 8198 | ;; |
| 8199 | esac |
| 8200 | else |
| 8201 | case `$FILECMD conftest.$ac_objext` in |
| 8202 | *32-bit*) |
| 8203 | LD="${LD-ld} -32" |
| 8204 | ;; |
| 8205 | *N32*) |
| 8206 | LD="${LD-ld} -n32" |
| 8207 | ;; |
| 8208 | *64-bit*) |
| 8209 | LD="${LD-ld} -64" |
| 8210 | ;; |
| 8211 | esac |
| 8212 | fi |
| 8213 | fi |
| 8214 | rm -rf conftest* |
| 8215 | ;; |
| 8216 | |
| 8217 | mips64*-*linux*) |
| 8218 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8219 | # options accordingly. |
| 8220 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8221 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8222 | (eval $ac_compile) 2>&5 |
| 8223 | ac_status=$? |
| 8224 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8225 | test $ac_status = 0; }; then |
| 8226 | emul=elf |
| 8227 | case `$FILECMD conftest.$ac_objext` in |
| 8228 | *32-bit*) |
| 8229 | emul="${emul}32" |
| 8230 | ;; |
| 8231 | *64-bit*) |
| 8232 | emul="${emul}64" |
| 8233 | ;; |
| 8234 | esac |
| 8235 | case `$FILECMD conftest.$ac_objext` in |
| 8236 | *MSB*) |
| 8237 | emul="${emul}btsmip" |
| 8238 | ;; |
| 8239 | *LSB*) |
| 8240 | emul="${emul}ltsmip" |
| 8241 | ;; |
| 8242 | esac |
| 8243 | case `$FILECMD conftest.$ac_objext` in |
| 8244 | *N32*) |
| 8245 | emul="${emul}n32" |
| 8246 | ;; |
| 8247 | esac |
| 8248 | LD="${LD-ld} -m $emul" |
| 8249 | fi |
| 8250 | rm -rf conftest* |
| 8251 | ;; |
| 8252 | |
| 8253 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 8254 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 8255 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8256 | # options accordingly. Note that the listed cases only cover the |
| 8257 | # situations where additional linker options are needed (such as when |
| 8258 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 8259 | # vice versa); the common cases where no linker options are needed do |
| 8260 | # not appear in the list. |
| 8261 | echo 'int i;' > conftest.$ac_ext |
| 8262 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8263 | (eval $ac_compile) 2>&5 |
| 8264 | ac_status=$? |
| 8265 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8266 | test $ac_status = 0; }; then |
| 8267 | case `$FILECMD conftest.o` in |
| 8268 | *32-bit*) |
| 8269 | case $host in |
| 8270 | x86_64-*kfreebsd*-gnu) |
| 8271 | LD="${LD-ld} -m elf_i386_fbsd" |
| 8272 | ;; |
| 8273 | x86_64-*linux*) |
| 8274 | case `$FILECMD conftest.o` in |
| 8275 | *x86-64*) |
| 8276 | LD="${LD-ld} -m elf32_x86_64" |
| 8277 | ;; |
| 8278 | *) |
| 8279 | LD="${LD-ld} -m elf_i386" |
| 8280 | ;; |
| 8281 | esac |
| 8282 | ;; |
| 8283 | powerpc64le-*linux*) |
| 8284 | LD="${LD-ld} -m elf32lppclinux" |
| 8285 | ;; |
| 8286 | powerpc64-*linux*) |
| 8287 | LD="${LD-ld} -m elf32ppclinux" |
| 8288 | ;; |
| 8289 | s390x-*linux*) |
| 8290 | LD="${LD-ld} -m elf_s390" |
| 8291 | ;; |
| 8292 | sparc64-*linux*) |
| 8293 | LD="${LD-ld} -m elf32_sparc" |
| 8294 | ;; |
| 8295 | esac |
| 8296 | ;; |
| 8297 | *64-bit*) |
| 8298 | case $host in |
| 8299 | x86_64-*kfreebsd*-gnu) |
| 8300 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8301 | ;; |
| 8302 | x86_64-*linux*) |
| 8303 | LD="${LD-ld} -m elf_x86_64" |
| 8304 | ;; |
| 8305 | powerpcle-*linux*) |
| 8306 | LD="${LD-ld} -m elf64lppc" |
| 8307 | ;; |
| 8308 | powerpc-*linux*) |
| 8309 | LD="${LD-ld} -m elf64ppc" |
| 8310 | ;; |
| 8311 | s390*-*linux*|s390*-*tpf*) |
| 8312 | LD="${LD-ld} -m elf64_s390" |
| 8313 | ;; |
| 8314 | sparc*-*linux*) |
| 8315 | LD="${LD-ld} -m elf64_sparc" |
| 8316 | ;; |
| 8317 | esac |
| 8318 | ;; |
| 8319 | esac |
| 8320 | fi |
| 8321 | rm -rf conftest* |
| 8322 | ;; |
| 8323 | |
| 8324 | *-*-sco3.2v5*) |
| 8325 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8326 | SAVE_CFLAGS=$CFLAGS |
| 8327 | CFLAGS="$CFLAGS -belf" |
| 8328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8329 | printf %s "checking whether the C compiler needs -belf... " >&6; } |
| 8330 | if test ${lt_cv_cc_needs_belf+y} |
| 8331 | then : |
| 8332 | printf %s "(cached) " >&6 |
| 8333 | else $as_nop |
| 8334 | ac_ext=c |
| 8335 | ac_cpp='$CPP $CPPFLAGS' |
| 8336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8339 | |
| 8340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8341 | /* end confdefs.h. */ |
| 8342 | |
| 8343 | int |
| 8344 | main (void) |
| 8345 | { |
| 8346 | |
| 8347 | ; |
| 8348 | return 0; |
| 8349 | } |
| 8350 | _ACEOF |
| 8351 | if ac_fn_c_try_link "$LINENO" |
| 8352 | then : |
| 8353 | lt_cv_cc_needs_belf=yes |
| 8354 | else $as_nop |
| 8355 | lt_cv_cc_needs_belf=no |
| 8356 | fi |
| 8357 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8358 | conftest$ac_exeext conftest.$ac_ext |
| 8359 | ac_ext=c |
| 8360 | ac_cpp='$CPP $CPPFLAGS' |
| 8361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8364 | |
| 8365 | fi |
| 8366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8367 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } |
| 8368 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 8369 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8370 | CFLAGS=$SAVE_CFLAGS |
| 8371 | fi |
| 8372 | ;; |
| 8373 | *-*solaris*) |
| 8374 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8375 | # options accordingly. |
| 8376 | echo 'int i;' > conftest.$ac_ext |
| 8377 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8378 | (eval $ac_compile) 2>&5 |
| 8379 | ac_status=$? |
| 8380 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8381 | test $ac_status = 0; }; then |
| 8382 | case `$FILECMD conftest.o` in |
| 8383 | *64-bit*) |
| 8384 | case $lt_cv_prog_gnu_ld in |
| 8385 | yes*) |
| 8386 | case $host in |
| 8387 | i?86-*-solaris*|x86_64-*-solaris*) |
| 8388 | LD="${LD-ld} -m elf_x86_64" |
| 8389 | ;; |
| 8390 | sparc*-*-solaris*) |
| 8391 | LD="${LD-ld} -m elf64_sparc" |
| 8392 | ;; |
| 8393 | esac |
| 8394 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8395 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8396 | LD=${LD-ld}_sol2 |
| 8397 | fi |
| 8398 | ;; |
| 8399 | *) |
| 8400 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8401 | LD="${LD-ld} -64" |
| 8402 | fi |
| 8403 | ;; |
| 8404 | esac |
| 8405 | ;; |
| 8406 | esac |
| 8407 | fi |
| 8408 | rm -rf conftest* |
| 8409 | ;; |
| 8410 | esac |
| 8411 | |
| 8412 | need_locks=$enable_libtool_lock |
| 8413 | |
| 8414 | if test -n "$ac_tool_prefix"; then |
| 8415 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8416 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8418 | printf %s "checking for $ac_word... " >&6; } |
| 8419 | if test ${ac_cv_prog_MANIFEST_TOOL+y} |
| 8420 | then : |
| 8421 | printf %s "(cached) " >&6 |
| 8422 | else $as_nop |
| 8423 | if test -n "$MANIFEST_TOOL"; then |
| 8424 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8425 | else |
| 8426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8427 | for as_dir in $PATH |
| 8428 | do |
| 8429 | IFS=$as_save_IFS |
| 8430 | case $as_dir in #((( |
| 8431 | '') as_dir=./ ;; |
| 8432 | */) ;; |
| 8433 | *) as_dir=$as_dir/ ;; |
| 8434 | esac |
| 8435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8436 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8437 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8438 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8439 | break 2 |
| 8440 | fi |
| 8441 | done |
| 8442 | done |
| 8443 | IFS=$as_save_IFS |
| 8444 | |
| 8445 | fi |
| 8446 | fi |
| 8447 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8448 | if test -n "$MANIFEST_TOOL"; then |
| 8449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8450 | printf "%s\n" "$MANIFEST_TOOL" >&6; } |
| 8451 | else |
| 8452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8453 | printf "%s\n" "no" >&6; } |
| 8454 | fi |
| 8455 | |
| 8456 | |
| 8457 | fi |
| 8458 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8459 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8460 | # Extract the first word of "mt", so it can be a program name with args. |
| 8461 | set dummy mt; ac_word=$2 |
| 8462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8463 | printf %s "checking for $ac_word... " >&6; } |
| 8464 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} |
| 8465 | then : |
| 8466 | printf %s "(cached) " >&6 |
| 8467 | else $as_nop |
| 8468 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8469 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8470 | else |
| 8471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8472 | for as_dir in $PATH |
| 8473 | do |
| 8474 | IFS=$as_save_IFS |
| 8475 | case $as_dir in #((( |
| 8476 | '') as_dir=./ ;; |
| 8477 | */) ;; |
| 8478 | *) as_dir=$as_dir/ ;; |
| 8479 | esac |
| 8480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8481 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8482 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8483 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8484 | break 2 |
| 8485 | fi |
| 8486 | done |
| 8487 | done |
| 8488 | IFS=$as_save_IFS |
| 8489 | |
| 8490 | fi |
| 8491 | fi |
| 8492 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8493 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8495 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8496 | else |
| 8497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8498 | printf "%s\n" "no" >&6; } |
| 8499 | fi |
| 8500 | |
| 8501 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8502 | MANIFEST_TOOL=":" |
| 8503 | else |
| 8504 | case $cross_compiling:$ac_tool_warned in |
| 8505 | yes:) |
| 8506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8507 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8508 | ac_tool_warned=yes ;; |
| 8509 | esac |
| 8510 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8511 | fi |
| 8512 | else |
| 8513 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8514 | fi |
| 8515 | |
| 8516 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8518 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8519 | if test ${lt_cv_path_mainfest_tool+y} |
| 8520 | then : |
| 8521 | printf %s "(cached) " >&6 |
| 8522 | else $as_nop |
| 8523 | lt_cv_path_mainfest_tool=no |
| 8524 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8525 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8526 | cat conftest.err >&5 |
| 8527 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8528 | lt_cv_path_mainfest_tool=yes |
| 8529 | fi |
| 8530 | rm -f conftest* |
| 8531 | fi |
| 8532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 8533 | printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } |
| 8534 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 8535 | MANIFEST_TOOL=: |
| 8536 | fi |
| 8537 | |
| 8538 | |
| 8539 | |
| 8540 | |
| 8541 | |
| 8542 | |
| 8543 | case $host_os in |
| 8544 | rhapsody* | darwin*) |
| 8545 | if test -n "$ac_tool_prefix"; then |
| 8546 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8547 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 8548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8549 | printf %s "checking for $ac_word... " >&6; } |
| 8550 | if test ${ac_cv_prog_DSYMUTIL+y} |
| 8551 | then : |
| 8552 | printf %s "(cached) " >&6 |
| 8553 | else $as_nop |
| 8554 | if test -n "$DSYMUTIL"; then |
| 8555 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 8556 | else |
| 8557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8558 | for as_dir in $PATH |
| 8559 | do |
| 8560 | IFS=$as_save_IFS |
| 8561 | case $as_dir in #((( |
| 8562 | '') as_dir=./ ;; |
| 8563 | */) ;; |
| 8564 | *) as_dir=$as_dir/ ;; |
| 8565 | esac |
| 8566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8567 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8568 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 8569 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8570 | break 2 |
| 8571 | fi |
| 8572 | done |
| 8573 | done |
| 8574 | IFS=$as_save_IFS |
| 8575 | |
| 8576 | fi |
| 8577 | fi |
| 8578 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8579 | if test -n "$DSYMUTIL"; then |
| 8580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8581 | printf "%s\n" "$DSYMUTIL" >&6; } |
| 8582 | else |
| 8583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8584 | printf "%s\n" "no" >&6; } |
| 8585 | fi |
| 8586 | |
| 8587 | |
| 8588 | fi |
| 8589 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 8590 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 8591 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 8592 | set dummy dsymutil; ac_word=$2 |
| 8593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8594 | printf %s "checking for $ac_word... " >&6; } |
| 8595 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} |
| 8596 | then : |
| 8597 | printf %s "(cached) " >&6 |
| 8598 | else $as_nop |
| 8599 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8600 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 8601 | else |
| 8602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8603 | for as_dir in $PATH |
| 8604 | do |
| 8605 | IFS=$as_save_IFS |
| 8606 | case $as_dir in #((( |
| 8607 | '') as_dir=./ ;; |
| 8608 | */) ;; |
| 8609 | *) as_dir=$as_dir/ ;; |
| 8610 | esac |
| 8611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8612 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8613 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 8614 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8615 | break 2 |
| 8616 | fi |
| 8617 | done |
| 8618 | done |
| 8619 | IFS=$as_save_IFS |
| 8620 | |
| 8621 | fi |
| 8622 | fi |
| 8623 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 8624 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 8626 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } |
| 8627 | else |
| 8628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8629 | printf "%s\n" "no" >&6; } |
| 8630 | fi |
| 8631 | |
| 8632 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 8633 | DSYMUTIL=":" |
| 8634 | else |
| 8635 | case $cross_compiling:$ac_tool_warned in |
| 8636 | yes:) |
| 8637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8638 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8639 | ac_tool_warned=yes ;; |
| 8640 | esac |
| 8641 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 8642 | fi |
| 8643 | else |
| 8644 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 8645 | fi |
| 8646 | |
| 8647 | if test -n "$ac_tool_prefix"; then |
| 8648 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 8649 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 8650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8651 | printf %s "checking for $ac_word... " >&6; } |
| 8652 | if test ${ac_cv_prog_NMEDIT+y} |
| 8653 | then : |
| 8654 | printf %s "(cached) " >&6 |
| 8655 | else $as_nop |
| 8656 | if test -n "$NMEDIT"; then |
| 8657 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 8658 | else |
| 8659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8660 | for as_dir in $PATH |
| 8661 | do |
| 8662 | IFS=$as_save_IFS |
| 8663 | case $as_dir in #((( |
| 8664 | '') as_dir=./ ;; |
| 8665 | */) ;; |
| 8666 | *) as_dir=$as_dir/ ;; |
| 8667 | esac |
| 8668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8669 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8670 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 8671 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8672 | break 2 |
| 8673 | fi |
| 8674 | done |
| 8675 | done |
| 8676 | IFS=$as_save_IFS |
| 8677 | |
| 8678 | fi |
| 8679 | fi |
| 8680 | NMEDIT=$ac_cv_prog_NMEDIT |
| 8681 | if test -n "$NMEDIT"; then |
| 8682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 8683 | printf "%s\n" "$NMEDIT" >&6; } |
| 8684 | else |
| 8685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8686 | printf "%s\n" "no" >&6; } |
| 8687 | fi |
| 8688 | |
| 8689 | |
| 8690 | fi |
| 8691 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 8692 | ac_ct_NMEDIT=$NMEDIT |
| 8693 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 8694 | set dummy nmedit; ac_word=$2 |
| 8695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8696 | printf %s "checking for $ac_word... " >&6; } |
| 8697 | if test ${ac_cv_prog_ac_ct_NMEDIT+y} |
| 8698 | then : |
| 8699 | printf %s "(cached) " >&6 |
| 8700 | else $as_nop |
| 8701 | if test -n "$ac_ct_NMEDIT"; then |
| 8702 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 8703 | else |
| 8704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8705 | for as_dir in $PATH |
| 8706 | do |
| 8707 | IFS=$as_save_IFS |
| 8708 | case $as_dir in #((( |
| 8709 | '') as_dir=./ ;; |
| 8710 | */) ;; |
| 8711 | *) as_dir=$as_dir/ ;; |
| 8712 | esac |
| 8713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8714 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8715 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 8716 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8717 | break 2 |
| 8718 | fi |
| 8719 | done |
| 8720 | done |
| 8721 | IFS=$as_save_IFS |
| 8722 | |
| 8723 | fi |
| 8724 | fi |
| 8725 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 8726 | if test -n "$ac_ct_NMEDIT"; then |
| 8727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 8728 | printf "%s\n" "$ac_ct_NMEDIT" >&6; } |
| 8729 | else |
| 8730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8731 | printf "%s\n" "no" >&6; } |
| 8732 | fi |
| 8733 | |
| 8734 | if test "x$ac_ct_NMEDIT" = x; then |
| 8735 | NMEDIT=":" |
| 8736 | else |
| 8737 | case $cross_compiling:$ac_tool_warned in |
| 8738 | yes:) |
| 8739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8740 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8741 | ac_tool_warned=yes ;; |
| 8742 | esac |
| 8743 | NMEDIT=$ac_ct_NMEDIT |
| 8744 | fi |
| 8745 | else |
| 8746 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 8747 | fi |
| 8748 | |
| 8749 | if test -n "$ac_tool_prefix"; then |
| 8750 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 8751 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 8752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8753 | printf %s "checking for $ac_word... " >&6; } |
| 8754 | if test ${ac_cv_prog_LIPO+y} |
| 8755 | then : |
| 8756 | printf %s "(cached) " >&6 |
| 8757 | else $as_nop |
| 8758 | if test -n "$LIPO"; then |
| 8759 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 8760 | else |
| 8761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8762 | for as_dir in $PATH |
| 8763 | do |
| 8764 | IFS=$as_save_IFS |
| 8765 | case $as_dir in #((( |
| 8766 | '') as_dir=./ ;; |
| 8767 | */) ;; |
| 8768 | *) as_dir=$as_dir/ ;; |
| 8769 | esac |
| 8770 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8771 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8772 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 8773 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8774 | break 2 |
| 8775 | fi |
| 8776 | done |
| 8777 | done |
| 8778 | IFS=$as_save_IFS |
| 8779 | |
| 8780 | fi |
| 8781 | fi |
| 8782 | LIPO=$ac_cv_prog_LIPO |
| 8783 | if test -n "$LIPO"; then |
| 8784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 8785 | printf "%s\n" "$LIPO" >&6; } |
| 8786 | else |
| 8787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8788 | printf "%s\n" "no" >&6; } |
| 8789 | fi |
| 8790 | |
| 8791 | |
| 8792 | fi |
| 8793 | if test -z "$ac_cv_prog_LIPO"; then |
| 8794 | ac_ct_LIPO=$LIPO |
| 8795 | # Extract the first word of "lipo", so it can be a program name with args. |
| 8796 | set dummy lipo; ac_word=$2 |
| 8797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8798 | printf %s "checking for $ac_word... " >&6; } |
| 8799 | if test ${ac_cv_prog_ac_ct_LIPO+y} |
| 8800 | then : |
| 8801 | printf %s "(cached) " >&6 |
| 8802 | else $as_nop |
| 8803 | if test -n "$ac_ct_LIPO"; then |
| 8804 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 8805 | else |
| 8806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8807 | for as_dir in $PATH |
| 8808 | do |
| 8809 | IFS=$as_save_IFS |
| 8810 | case $as_dir in #((( |
| 8811 | '') as_dir=./ ;; |
| 8812 | */) ;; |
| 8813 | *) as_dir=$as_dir/ ;; |
| 8814 | esac |
| 8815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8816 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8817 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 8818 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8819 | break 2 |
| 8820 | fi |
| 8821 | done |
| 8822 | done |
| 8823 | IFS=$as_save_IFS |
| 8824 | |
| 8825 | fi |
| 8826 | fi |
| 8827 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 8828 | if test -n "$ac_ct_LIPO"; then |
| 8829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 8830 | printf "%s\n" "$ac_ct_LIPO" >&6; } |
| 8831 | else |
| 8832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8833 | printf "%s\n" "no" >&6; } |
| 8834 | fi |
| 8835 | |
| 8836 | if test "x$ac_ct_LIPO" = x; then |
| 8837 | LIPO=":" |
| 8838 | else |
| 8839 | case $cross_compiling:$ac_tool_warned in |
| 8840 | yes:) |
| 8841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8842 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8843 | ac_tool_warned=yes ;; |
| 8844 | esac |
| 8845 | LIPO=$ac_ct_LIPO |
| 8846 | fi |
| 8847 | else |
| 8848 | LIPO="$ac_cv_prog_LIPO" |
| 8849 | fi |
| 8850 | |
| 8851 | if test -n "$ac_tool_prefix"; then |
| 8852 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 8853 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 8854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8855 | printf %s "checking for $ac_word... " >&6; } |
| 8856 | if test ${ac_cv_prog_OTOOL+y} |
| 8857 | then : |
| 8858 | printf %s "(cached) " >&6 |
| 8859 | else $as_nop |
| 8860 | if test -n "$OTOOL"; then |
| 8861 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 8862 | else |
| 8863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8864 | for as_dir in $PATH |
| 8865 | do |
| 8866 | IFS=$as_save_IFS |
| 8867 | case $as_dir in #((( |
| 8868 | '') as_dir=./ ;; |
| 8869 | */) ;; |
| 8870 | *) as_dir=$as_dir/ ;; |
| 8871 | esac |
| 8872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8873 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8874 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 8875 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8876 | break 2 |
| 8877 | fi |
| 8878 | done |
| 8879 | done |
| 8880 | IFS=$as_save_IFS |
| 8881 | |
| 8882 | fi |
| 8883 | fi |
| 8884 | OTOOL=$ac_cv_prog_OTOOL |
| 8885 | if test -n "$OTOOL"; then |
| 8886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 8887 | printf "%s\n" "$OTOOL" >&6; } |
| 8888 | else |
| 8889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8890 | printf "%s\n" "no" >&6; } |
| 8891 | fi |
| 8892 | |
| 8893 | |
| 8894 | fi |
| 8895 | if test -z "$ac_cv_prog_OTOOL"; then |
| 8896 | ac_ct_OTOOL=$OTOOL |
| 8897 | # Extract the first word of "otool", so it can be a program name with args. |
| 8898 | set dummy otool; ac_word=$2 |
| 8899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8900 | printf %s "checking for $ac_word... " >&6; } |
| 8901 | if test ${ac_cv_prog_ac_ct_OTOOL+y} |
| 8902 | then : |
| 8903 | printf %s "(cached) " >&6 |
| 8904 | else $as_nop |
| 8905 | if test -n "$ac_ct_OTOOL"; then |
| 8906 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 8907 | else |
| 8908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8909 | for as_dir in $PATH |
| 8910 | do |
| 8911 | IFS=$as_save_IFS |
| 8912 | case $as_dir in #((( |
| 8913 | '') as_dir=./ ;; |
| 8914 | */) ;; |
| 8915 | *) as_dir=$as_dir/ ;; |
| 8916 | esac |
| 8917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8918 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8919 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 8920 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8921 | break 2 |
| 8922 | fi |
| 8923 | done |
| 8924 | done |
| 8925 | IFS=$as_save_IFS |
| 8926 | |
| 8927 | fi |
| 8928 | fi |
| 8929 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 8930 | if test -n "$ac_ct_OTOOL"; then |
| 8931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 8932 | printf "%s\n" "$ac_ct_OTOOL" >&6; } |
| 8933 | else |
| 8934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8935 | printf "%s\n" "no" >&6; } |
| 8936 | fi |
| 8937 | |
| 8938 | if test "x$ac_ct_OTOOL" = x; then |
| 8939 | OTOOL=":" |
| 8940 | else |
| 8941 | case $cross_compiling:$ac_tool_warned in |
| 8942 | yes:) |
| 8943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8944 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8945 | ac_tool_warned=yes ;; |
| 8946 | esac |
| 8947 | OTOOL=$ac_ct_OTOOL |
| 8948 | fi |
| 8949 | else |
| 8950 | OTOOL="$ac_cv_prog_OTOOL" |
| 8951 | fi |
| 8952 | |
| 8953 | if test -n "$ac_tool_prefix"; then |
| 8954 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 8955 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 8956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8957 | printf %s "checking for $ac_word... " >&6; } |
| 8958 | if test ${ac_cv_prog_OTOOL64+y} |
| 8959 | then : |
| 8960 | printf %s "(cached) " >&6 |
| 8961 | else $as_nop |
| 8962 | if test -n "$OTOOL64"; then |
| 8963 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 8964 | else |
| 8965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8966 | for as_dir in $PATH |
| 8967 | do |
| 8968 | IFS=$as_save_IFS |
| 8969 | case $as_dir in #((( |
| 8970 | '') as_dir=./ ;; |
| 8971 | */) ;; |
| 8972 | *) as_dir=$as_dir/ ;; |
| 8973 | esac |
| 8974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8975 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8976 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 8977 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8978 | break 2 |
| 8979 | fi |
| 8980 | done |
| 8981 | done |
| 8982 | IFS=$as_save_IFS |
| 8983 | |
| 8984 | fi |
| 8985 | fi |
| 8986 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 8987 | if test -n "$OTOOL64"; then |
| 8988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 8989 | printf "%s\n" "$OTOOL64" >&6; } |
| 8990 | else |
| 8991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8992 | printf "%s\n" "no" >&6; } |
| 8993 | fi |
| 8994 | |
| 8995 | |
| 8996 | fi |
| 8997 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 8998 | ac_ct_OTOOL64=$OTOOL64 |
| 8999 | # Extract the first word of "otool64", so it can be a program name with args. |
| 9000 | set dummy otool64; ac_word=$2 |
| 9001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9002 | printf %s "checking for $ac_word... " >&6; } |
| 9003 | if test ${ac_cv_prog_ac_ct_OTOOL64+y} |
| 9004 | then : |
| 9005 | printf %s "(cached) " >&6 |
| 9006 | else $as_nop |
| 9007 | if test -n "$ac_ct_OTOOL64"; then |
| 9008 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9009 | else |
| 9010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9011 | for as_dir in $PATH |
| 9012 | do |
| 9013 | IFS=$as_save_IFS |
| 9014 | case $as_dir in #((( |
| 9015 | '') as_dir=./ ;; |
| 9016 | */) ;; |
| 9017 | *) as_dir=$as_dir/ ;; |
| 9018 | esac |
| 9019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9020 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9021 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9022 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9023 | break 2 |
| 9024 | fi |
| 9025 | done |
| 9026 | done |
| 9027 | IFS=$as_save_IFS |
| 9028 | |
| 9029 | fi |
| 9030 | fi |
| 9031 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9032 | if test -n "$ac_ct_OTOOL64"; then |
| 9033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9034 | printf "%s\n" "$ac_ct_OTOOL64" >&6; } |
| 9035 | else |
| 9036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9037 | printf "%s\n" "no" >&6; } |
| 9038 | fi |
| 9039 | |
| 9040 | if test "x$ac_ct_OTOOL64" = x; then |
| 9041 | OTOOL64=":" |
| 9042 | else |
| 9043 | case $cross_compiling:$ac_tool_warned in |
| 9044 | yes:) |
| 9045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9046 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9047 | ac_tool_warned=yes ;; |
| 9048 | esac |
| 9049 | OTOOL64=$ac_ct_OTOOL64 |
| 9050 | fi |
| 9051 | else |
| 9052 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 9053 | fi |
| 9054 | |
| 9055 | |
| 9056 | |
| 9057 | |
| 9058 | |
| 9059 | |
| 9060 | |
| 9061 | |
| 9062 | |
| 9063 | |
| 9064 | |
| 9065 | |
| 9066 | |
| 9067 | |
| 9068 | |
| 9069 | |
| 9070 | |
| 9071 | |
| 9072 | |
| 9073 | |
| 9074 | |
| 9075 | |
| 9076 | |
| 9077 | |
| 9078 | |
| 9079 | |
| 9080 | |
| 9081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9082 | printf %s "checking for -single_module linker flag... " >&6; } |
| 9083 | if test ${lt_cv_apple_cc_single_mod+y} |
| 9084 | then : |
| 9085 | printf %s "(cached) " >&6 |
| 9086 | else $as_nop |
| 9087 | lt_cv_apple_cc_single_mod=no |
| 9088 | if test -z "$LT_MULTI_MODULE"; then |
| 9089 | # By default we will add the -single_module flag. You can override |
| 9090 | # by either setting the environment variable LT_MULTI_MODULE |
| 9091 | # non-empty at configure time, or by adding -multi_module to the |
| 9092 | # link flags. |
| 9093 | rm -rf libconftest.dylib* |
| 9094 | echo "int foo(void){return 1;}" > conftest.c |
| 9095 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9096 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9097 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9098 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9099 | _lt_result=$? |
| 9100 | # If there is a non-empty error log, and "single_module" |
| 9101 | # appears in it, assume the flag caused a linker warning |
| 9102 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 9103 | cat conftest.err >&5 |
| 9104 | # Otherwise, if the output was created with a 0 exit code from |
| 9105 | # the compiler, it worked. |
| 9106 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 9107 | lt_cv_apple_cc_single_mod=yes |
| 9108 | else |
| 9109 | cat conftest.err >&5 |
| 9110 | fi |
| 9111 | rm -rf libconftest.dylib* |
| 9112 | rm -f conftest.* |
| 9113 | fi |
| 9114 | fi |
| 9115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9116 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } |
| 9117 | |
| 9118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9119 | printf %s "checking for -exported_symbols_list linker flag... " >&6; } |
| 9120 | if test ${lt_cv_ld_exported_symbols_list+y} |
| 9121 | then : |
| 9122 | printf %s "(cached) " >&6 |
| 9123 | else $as_nop |
| 9124 | lt_cv_ld_exported_symbols_list=no |
| 9125 | save_LDFLAGS=$LDFLAGS |
| 9126 | echo "_main" > conftest.sym |
| 9127 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9129 | /* end confdefs.h. */ |
| 9130 | |
| 9131 | int |
| 9132 | main (void) |
| 9133 | { |
| 9134 | |
| 9135 | ; |
| 9136 | return 0; |
| 9137 | } |
| 9138 | _ACEOF |
| 9139 | if ac_fn_c_try_link "$LINENO" |
| 9140 | then : |
| 9141 | lt_cv_ld_exported_symbols_list=yes |
| 9142 | else $as_nop |
| 9143 | lt_cv_ld_exported_symbols_list=no |
| 9144 | fi |
| 9145 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9146 | conftest$ac_exeext conftest.$ac_ext |
| 9147 | LDFLAGS=$save_LDFLAGS |
| 9148 | |
| 9149 | fi |
| 9150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9151 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9152 | |
| 9153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9154 | printf %s "checking for -force_load linker flag... " >&6; } |
| 9155 | if test ${lt_cv_ld_force_load+y} |
| 9156 | then : |
| 9157 | printf %s "(cached) " >&6 |
| 9158 | else $as_nop |
| 9159 | lt_cv_ld_force_load=no |
| 9160 | cat > conftest.c << _LT_EOF |
| 9161 | int forced_loaded() { return 2;} |
| 9162 | _LT_EOF |
| 9163 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9164 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9165 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 |
| 9166 | $AR $AR_FLAGS libconftest.a conftest.o 2>&5 |
| 9167 | echo "$RANLIB libconftest.a" >&5 |
| 9168 | $RANLIB libconftest.a 2>&5 |
| 9169 | cat > conftest.c << _LT_EOF |
| 9170 | int main() { return 0;} |
| 9171 | _LT_EOF |
| 9172 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9173 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9174 | _lt_result=$? |
| 9175 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 9176 | cat conftest.err >&5 |
| 9177 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 9178 | lt_cv_ld_force_load=yes |
| 9179 | else |
| 9180 | cat conftest.err >&5 |
| 9181 | fi |
| 9182 | rm -f conftest.err libconftest.a conftest conftest.c |
| 9183 | rm -rf conftest.dSYM |
| 9184 | |
| 9185 | fi |
| 9186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9187 | printf "%s\n" "$lt_cv_ld_force_load" >&6; } |
| 9188 | case $host_os in |
| 9189 | rhapsody* | darwin1.[012]) |
| 9190 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 9191 | darwin1.*) |
| 9192 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9193 | darwin*) |
| 9194 | case $MACOSX_DEPLOYMENT_TARGET,$host in |
| 9195 | 10.[012],*|,*powerpc*-darwin[5-8]*) |
| 9196 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9197 | *) |
| 9198 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 9199 | esac |
| 9200 | ;; |
| 9201 | esac |
| 9202 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 9203 | _lt_dar_single_mod='$single_module' |
| 9204 | fi |
| 9205 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 9206 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 9207 | else |
| 9208 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 9209 | fi |
| 9210 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 9211 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9212 | else |
| 9213 | _lt_dsymutil= |
| 9214 | fi |
| 9215 | ;; |
| 9216 | esac |
| 9217 | |
| 9218 | # func_munge_path_list VARIABLE PATH |
| 9219 | # ----------------------------------- |
| 9220 | # VARIABLE is name of variable containing _space_ separated list of |
| 9221 | # directories to be munged by the contents of PATH, which is string |
| 9222 | # having a format: |
| 9223 | # "DIR[:DIR]:" |
| 9224 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 9225 | # ":DIR[:DIR]" |
| 9226 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 9227 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 9228 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 9229 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 9230 | # "DIR[:DIR]" |
| 9231 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 9232 | func_munge_path_list () |
| 9233 | { |
| 9234 | case x$2 in |
| 9235 | x) |
| 9236 | ;; |
| 9237 | *:) |
| 9238 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 9239 | ;; |
| 9240 | x:*) |
| 9241 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 9242 | ;; |
| 9243 | *::*) |
| 9244 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 9245 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 9246 | ;; |
| 9247 | *) |
| 9248 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 9249 | ;; |
| 9250 | esac |
| 9251 | } |
| 9252 | |
| 9253 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9254 | " |
| 9255 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 9256 | then : |
| 9257 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 9258 | |
| 9259 | fi |
| 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | |
| 9265 | # Set options |
| 9266 | # Check whether --enable-static was given. |
| 9267 | if test ${enable_static+y} |
| 9268 | then : |
| 9269 | enableval=$enable_static; p=${PACKAGE-default} |
| 9270 | case $enableval in |
| 9271 | yes) enable_static=yes ;; |
| 9272 | no) enable_static=no ;; |
| 9273 | *) |
| 9274 | enable_static=no |
| 9275 | # Look at the argument we got. We use all the common list separators. |
| 9276 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9277 | for pkg in $enableval; do |
| 9278 | IFS=$lt_save_ifs |
| 9279 | if test "X$pkg" = "X$p"; then |
| 9280 | enable_static=yes |
| 9281 | fi |
| 9282 | done |
| 9283 | IFS=$lt_save_ifs |
| 9284 | ;; |
| 9285 | esac |
| 9286 | else $as_nop |
| 9287 | enable_static=no |
| 9288 | fi |
| 9289 | |
| 9290 | |
| 9291 | |
| 9292 | |
| 9293 | |
| 9294 | |
| 9295 | |
| 9296 | enable_dlopen=no |
| 9297 | |
| 9298 | |
| 9299 | enable_win32_dll=no |
| 9300 | |
| 9301 | |
| 9302 | # Check whether --enable-shared was given. |
| 9303 | if test ${enable_shared+y} |
| 9304 | then : |
| 9305 | enableval=$enable_shared; p=${PACKAGE-default} |
| 9306 | case $enableval in |
| 9307 | yes) enable_shared=yes ;; |
| 9308 | no) enable_shared=no ;; |
| 9309 | *) |
| 9310 | enable_shared=no |
| 9311 | # Look at the argument we got. We use all the common list separators. |
| 9312 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9313 | for pkg in $enableval; do |
| 9314 | IFS=$lt_save_ifs |
| 9315 | if test "X$pkg" = "X$p"; then |
| 9316 | enable_shared=yes |
| 9317 | fi |
| 9318 | done |
| 9319 | IFS=$lt_save_ifs |
| 9320 | ;; |
| 9321 | esac |
| 9322 | else $as_nop |
| 9323 | enable_shared=yes |
| 9324 | fi |
| 9325 | |
| 9326 | |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | |
| 9335 | |
| 9336 | # Check whether --with-pic was given. |
| 9337 | if test ${with_pic+y} |
| 9338 | then : |
| 9339 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 9340 | case $withval in |
| 9341 | yes|no) pic_mode=$withval ;; |
| 9342 | *) |
| 9343 | pic_mode=default |
| 9344 | # Look at the argument we got. We use all the common list separators. |
| 9345 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9346 | for lt_pkg in $withval; do |
| 9347 | IFS=$lt_save_ifs |
| 9348 | if test "X$lt_pkg" = "X$lt_p"; then |
| 9349 | pic_mode=yes |
| 9350 | fi |
| 9351 | done |
| 9352 | IFS=$lt_save_ifs |
| 9353 | ;; |
| 9354 | esac |
| 9355 | else $as_nop |
| 9356 | pic_mode=default |
| 9357 | fi |
| 9358 | |
| 9359 | |
| 9360 | |
| 9361 | |
| 9362 | |
| 9363 | |
| 9364 | |
| 9365 | |
| 9366 | # Check whether --enable-fast-install was given. |
| 9367 | if test ${enable_fast_install+y} |
| 9368 | then : |
| 9369 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 9370 | case $enableval in |
| 9371 | yes) enable_fast_install=yes ;; |
| 9372 | no) enable_fast_install=no ;; |
| 9373 | *) |
| 9374 | enable_fast_install=no |
| 9375 | # Look at the argument we got. We use all the common list separators. |
| 9376 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9377 | for pkg in $enableval; do |
| 9378 | IFS=$lt_save_ifs |
| 9379 | if test "X$pkg" = "X$p"; then |
| 9380 | enable_fast_install=yes |
| 9381 | fi |
| 9382 | done |
| 9383 | IFS=$lt_save_ifs |
| 9384 | ;; |
| 9385 | esac |
| 9386 | else $as_nop |
| 9387 | enable_fast_install=yes |
| 9388 | fi |
| 9389 | |
| 9390 | |
| 9391 | |
| 9392 | |
| 9393 | |
| 9394 | |
| 9395 | |
| 9396 | |
| 9397 | shared_archive_member_spec= |
| 9398 | case $host,$enable_shared in |
| 9399 | power*-*-aix[5-9]*,yes) |
| 9400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 9401 | printf %s "checking which variant of shared library versioning to provide... " >&6; } |
| 9402 | |
| 9403 | # Check whether --with-aix-soname was given. |
| 9404 | if test ${with_aix_soname+y} |
| 9405 | then : |
| 9406 | withval=$with_aix_soname; case $withval in |
| 9407 | aix|svr4|both) |
| 9408 | ;; |
| 9409 | *) |
| 9410 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 9411 | ;; |
| 9412 | esac |
| 9413 | lt_cv_with_aix_soname=$with_aix_soname |
| 9414 | else $as_nop |
| 9415 | if test ${lt_cv_with_aix_soname+y} |
| 9416 | then : |
| 9417 | printf %s "(cached) " >&6 |
| 9418 | else $as_nop |
| 9419 | lt_cv_with_aix_soname=aix |
| 9420 | fi |
| 9421 | |
| 9422 | with_aix_soname=$lt_cv_with_aix_soname |
| 9423 | fi |
| 9424 | |
| 9425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 9426 | printf "%s\n" "$with_aix_soname" >&6; } |
| 9427 | if test aix != "$with_aix_soname"; then |
| 9428 | # For the AIX way of multilib, we name the shared archive member |
| 9429 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 9430 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 9431 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 9432 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 9433 | if test 64 = "${OBJECT_MODE-32}"; then |
| 9434 | shared_archive_member_spec=shr_64 |
| 9435 | else |
| 9436 | shared_archive_member_spec=shr |
| 9437 | fi |
| 9438 | fi |
| 9439 | ;; |
| 9440 | *) |
| 9441 | with_aix_soname=aix |
| 9442 | ;; |
| 9443 | esac |
| 9444 | |
| 9445 | |
| 9446 | |
| 9447 | |
| 9448 | |
| 9449 | |
| 9450 | |
| 9451 | |
| 9452 | |
| 9453 | |
| 9454 | # This can be used to rebuild libtool when needed |
| 9455 | LIBTOOL_DEPS=$ltmain |
| 9456 | |
| 9457 | # Always use our own libtool. |
| 9458 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 9459 | |
| 9460 | |
| 9461 | |
| 9462 | |
| 9463 | |
| 9464 | |
| 9465 | |
| 9466 | |
| 9467 | |
| 9468 | |
| 9469 | |
| 9470 | |
| 9471 | |
| 9472 | |
| 9473 | |
| 9474 | |
| 9475 | |
| 9476 | |
| 9477 | |
| 9478 | |
| 9479 | |
| 9480 | |
| 9481 | |
| 9482 | |
| 9483 | |
| 9484 | |
| 9485 | |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 | test -z "$LN_S" && LN_S="ln -s" |
| 9490 | |
| 9491 | |
| 9492 | |
| 9493 | |
| 9494 | |
| 9495 | |
| 9496 | |
| 9497 | |
| 9498 | |
| 9499 | |
| 9500 | |
| 9501 | |
| 9502 | |
| 9503 | |
| 9504 | if test -n "${ZSH_VERSION+set}"; then |
| 9505 | setopt NO_GLOB_SUBST |
| 9506 | fi |
| 9507 | |
| 9508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 9509 | printf %s "checking for objdir... " >&6; } |
| 9510 | if test ${lt_cv_objdir+y} |
| 9511 | then : |
| 9512 | printf %s "(cached) " >&6 |
| 9513 | else $as_nop |
| 9514 | rm -f .libs 2>/dev/null |
| 9515 | mkdir .libs 2>/dev/null |
| 9516 | if test -d .libs; then |
| 9517 | lt_cv_objdir=.libs |
| 9518 | else |
| 9519 | # MS-DOS does not allow filenames that begin with a dot. |
| 9520 | lt_cv_objdir=_libs |
| 9521 | fi |
| 9522 | rmdir .libs 2>/dev/null |
| 9523 | fi |
| 9524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 9525 | printf "%s\n" "$lt_cv_objdir" >&6; } |
| 9526 | objdir=$lt_cv_objdir |
| 9527 | |
| 9528 | |
| 9529 | |
| 9530 | |
| 9531 | |
| 9532 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h |
| 9533 | |
| 9534 | |
| 9535 | |
| 9536 | |
| 9537 | case $host_os in |
| 9538 | aix3*) |
| 9539 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9540 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9541 | # vanish in a puff of smoke. |
| 9542 | if test set != "${COLLECT_NAMES+set}"; then |
| 9543 | COLLECT_NAMES= |
| 9544 | export COLLECT_NAMES |
| 9545 | fi |
| 9546 | ;; |
| 9547 | esac |
| 9548 | |
| 9549 | # Global variables: |
| 9550 | ofile=libtool |
| 9551 | can_build_shared=yes |
| 9552 | |
| 9553 | # All known linkers require a '.a' archive for static linking (except MSVC and |
| 9554 | # ICC, which need '.lib'). |
| 9555 | libext=a |
| 9556 | |
| 9557 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9558 | |
| 9559 | old_CC=$CC |
| 9560 | old_CFLAGS=$CFLAGS |
| 9561 | |
| 9562 | # Set sane defaults for various variables |
| 9563 | test -z "$CC" && CC=cc |
| 9564 | test -z "$LTCC" && LTCC=$CC |
| 9565 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 9566 | test -z "$LD" && LD=ld |
| 9567 | test -z "$ac_objext" && ac_objext=o |
| 9568 | |
| 9569 | func_cc_basename $compiler |
| 9570 | cc_basename=$func_cc_basename_result |
| 9571 | |
| 9572 | |
| 9573 | # Only perform the check for file, if the check method requires it |
| 9574 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 9575 | case $deplibs_check_method in |
| 9576 | file_magic*) |
| 9577 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 9578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 9579 | printf %s "checking for ${ac_tool_prefix}file... " >&6; } |
| 9580 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 9581 | then : |
| 9582 | printf %s "(cached) " >&6 |
| 9583 | else $as_nop |
| 9584 | case $MAGIC_CMD in |
| 9585 | [\\/*] | ?:[\\/]*) |
| 9586 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 9587 | ;; |
| 9588 | *) |
| 9589 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 9590 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 9591 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 9592 | for ac_dir in $ac_dummy; do |
| 9593 | IFS=$lt_save_ifs |
| 9594 | test -z "$ac_dir" && ac_dir=. |
| 9595 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 9596 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 9597 | if test -n "$file_magic_test_file"; then |
| 9598 | case $deplibs_check_method in |
| 9599 | "file_magic "*) |
| 9600 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 9601 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9602 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 9603 | $EGREP "$file_magic_regex" > /dev/null; then |
| 9604 | : |
| 9605 | else |
| 9606 | cat <<_LT_EOF 1>&2 |
| 9607 | |
| 9608 | *** Warning: the command libtool uses to detect shared libraries, |
| 9609 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 9610 | *** The result is that libtool may fail to recognize shared libraries |
| 9611 | *** as such. This will affect the creation of libtool libraries that |
| 9612 | *** depend on shared libraries, but programs linked with such libtool |
| 9613 | *** libraries will work regardless of this problem. Nevertheless, you |
| 9614 | *** may want to report the problem to your system manager and/or to |
| 9615 | *** [email protected] |
| 9616 | |
| 9617 | _LT_EOF |
| 9618 | fi ;; |
| 9619 | esac |
| 9620 | fi |
| 9621 | break |
| 9622 | fi |
| 9623 | done |
| 9624 | IFS=$lt_save_ifs |
| 9625 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 9626 | ;; |
| 9627 | esac |
| 9628 | fi |
| 9629 | |
| 9630 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9631 | if test -n "$MAGIC_CMD"; then |
| 9632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 9633 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 9634 | else |
| 9635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9636 | printf "%s\n" "no" >&6; } |
| 9637 | fi |
| 9638 | |
| 9639 | |
| 9640 | |
| 9641 | |
| 9642 | |
| 9643 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 9644 | if test -n "$ac_tool_prefix"; then |
| 9645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 9646 | printf %s "checking for file... " >&6; } |
| 9647 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 9648 | then : |
| 9649 | printf %s "(cached) " >&6 |
| 9650 | else $as_nop |
| 9651 | case $MAGIC_CMD in |
| 9652 | [\\/*] | ?:[\\/]*) |
| 9653 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 9654 | ;; |
| 9655 | *) |
| 9656 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 9657 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 9658 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 9659 | for ac_dir in $ac_dummy; do |
| 9660 | IFS=$lt_save_ifs |
| 9661 | test -z "$ac_dir" && ac_dir=. |
| 9662 | if test -f "$ac_dir/file"; then |
| 9663 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 9664 | if test -n "$file_magic_test_file"; then |
| 9665 | case $deplibs_check_method in |
| 9666 | "file_magic "*) |
| 9667 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 9668 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9669 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 9670 | $EGREP "$file_magic_regex" > /dev/null; then |
| 9671 | : |
| 9672 | else |
| 9673 | cat <<_LT_EOF 1>&2 |
| 9674 | |
| 9675 | *** Warning: the command libtool uses to detect shared libraries, |
| 9676 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 9677 | *** The result is that libtool may fail to recognize shared libraries |
| 9678 | *** as such. This will affect the creation of libtool libraries that |
| 9679 | *** depend on shared libraries, but programs linked with such libtool |
| 9680 | *** libraries will work regardless of this problem. Nevertheless, you |
| 9681 | *** may want to report the problem to your system manager and/or to |
| 9682 | *** [email protected] |
| 9683 | |
| 9684 | _LT_EOF |
| 9685 | fi ;; |
| 9686 | esac |
| 9687 | fi |
| 9688 | break |
| 9689 | fi |
| 9690 | done |
| 9691 | IFS=$lt_save_ifs |
| 9692 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 9693 | ;; |
| 9694 | esac |
| 9695 | fi |
| 9696 | |
| 9697 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9698 | if test -n "$MAGIC_CMD"; then |
| 9699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 9700 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 9701 | else |
| 9702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9703 | printf "%s\n" "no" >&6; } |
| 9704 | fi |
| 9705 | |
| 9706 | |
| 9707 | else |
| 9708 | MAGIC_CMD=: |
| 9709 | fi |
| 9710 | fi |
| 9711 | |
| 9712 | fi |
| 9713 | ;; |
| 9714 | esac |
| 9715 | |
| 9716 | # Use C for the default configuration in the libtool script |
| 9717 | |
| 9718 | lt_save_CC=$CC |
| 9719 | ac_ext=c |
| 9720 | ac_cpp='$CPP $CPPFLAGS' |
| 9721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9724 | |
| 9725 | |
| 9726 | # Source file extension for C test sources. |
| 9727 | ac_ext=c |
| 9728 | |
| 9729 | # Object file extension for compiled C test sources. |
| 9730 | objext=o |
| 9731 | objext=$objext |
| 9732 | |
| 9733 | # Code to be used in simple compile tests |
| 9734 | lt_simple_compile_test_code="int some_variable = 0;" |
| 9735 | |
| 9736 | # Code to be used in simple link tests |
| 9737 | lt_simple_link_test_code='int main(){return(0);}' |
| 9738 | |
| 9739 | |
| 9740 | |
| 9741 | |
| 9742 | |
| 9743 | |
| 9744 | |
| 9745 | # If no C compiler was specified, use CC. |
| 9746 | LTCC=${LTCC-"$CC"} |
| 9747 | |
| 9748 | # If no C compiler flags were specified, use CFLAGS. |
| 9749 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9750 | |
| 9751 | # Allow CC to be a program name with arguments. |
| 9752 | compiler=$CC |
| 9753 | |
| 9754 | # Save the default compiler, since it gets overwritten when the other |
| 9755 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 9756 | compiler_DEFAULT=$CC |
| 9757 | |
| 9758 | # save warnings/boilerplate of simple test code |
| 9759 | ac_outfile=conftest.$ac_objext |
| 9760 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 9761 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9762 | _lt_compiler_boilerplate=`cat conftest.err` |
| 9763 | $RM conftest* |
| 9764 | |
| 9765 | ac_outfile=conftest.$ac_objext |
| 9766 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 9767 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9768 | _lt_linker_boilerplate=`cat conftest.err` |
| 9769 | $RM -r conftest* |
| 9770 | |
| 9771 | |
| 9772 | ## CAVEAT EMPTOR: |
| 9773 | ## There is no encapsulation within the following macros, do not change |
| 9774 | ## the running order or otherwise move them around unless you know exactly |
| 9775 | ## what you are doing... |
| 9776 | if test -n "$compiler"; then |
| 9777 | |
| 9778 | lt_prog_compiler_no_builtin_flag= |
| 9779 | |
| 9780 | if test yes = "$GCC"; then |
| 9781 | case $cc_basename in |
| 9782 | nvcc*) |
| 9783 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 9784 | *) |
| 9785 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 9786 | esac |
| 9787 | |
| 9788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 9789 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 9790 | if test ${lt_cv_prog_compiler_rtti_exceptions+y} |
| 9791 | then : |
| 9792 | printf %s "(cached) " >&6 |
| 9793 | else $as_nop |
| 9794 | lt_cv_prog_compiler_rtti_exceptions=no |
| 9795 | ac_outfile=conftest.$ac_objext |
| 9796 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9797 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 9798 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9799 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9800 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9801 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9802 | # The option is referenced via a variable to avoid confusing sed. |
| 9803 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9804 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9805 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9806 | -e 's:$: $lt_compiler_flag:'` |
| 9807 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9808 | (eval "$lt_compile" 2>conftest.err) |
| 9809 | ac_status=$? |
| 9810 | cat conftest.err >&5 |
| 9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9812 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9813 | # The compiler can only warn and ignore the option if not recognized |
| 9814 | # So say no if there are warnings other than the usual output. |
| 9815 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 9816 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9817 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 9818 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 9819 | fi |
| 9820 | fi |
| 9821 | $RM conftest* |
| 9822 | |
| 9823 | fi |
| 9824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 9825 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 9826 | |
| 9827 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 9828 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 9829 | else |
| 9830 | : |
| 9831 | fi |
| 9832 | |
| 9833 | fi |
| 9834 | |
| 9835 | |
| 9836 | |
| 9837 | |
| 9838 | |
| 9839 | |
| 9840 | lt_prog_compiler_wl= |
| 9841 | lt_prog_compiler_pic= |
| 9842 | lt_prog_compiler_static= |
| 9843 | |
| 9844 | |
| 9845 | if test yes = "$GCC"; then |
| 9846 | lt_prog_compiler_wl='-Wl,' |
| 9847 | lt_prog_compiler_static='-static' |
| 9848 | |
| 9849 | case $host_os in |
| 9850 | aix*) |
| 9851 | # All AIX code is PIC. |
| 9852 | if test ia64 = "$host_cpu"; then |
| 9853 | # AIX 5 now supports IA64 processor |
| 9854 | lt_prog_compiler_static='-Bstatic' |
| 9855 | fi |
| 9856 | lt_prog_compiler_pic='-fPIC' |
| 9857 | ;; |
| 9858 | |
| 9859 | amigaos*) |
| 9860 | case $host_cpu in |
| 9861 | powerpc) |
| 9862 | # see comment about AmigaOS4 .so support |
| 9863 | lt_prog_compiler_pic='-fPIC' |
| 9864 | ;; |
| 9865 | m68k) |
| 9866 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 9867 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 9868 | # like '-m68040'. |
| 9869 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 9870 | ;; |
| 9871 | esac |
| 9872 | ;; |
| 9873 | |
| 9874 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 9875 | # PIC is the default for these OSes. |
| 9876 | ;; |
| 9877 | |
| 9878 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 9879 | # This hack is so that the source file can tell whether it is being |
| 9880 | # built for inclusion in a dll (and should export symbols for example). |
| 9881 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 9882 | # (--disable-auto-import) libraries |
| 9883 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 9884 | case $host_os in |
| 9885 | os2*) |
| 9886 | lt_prog_compiler_static='$wl-static' |
| 9887 | ;; |
| 9888 | esac |
| 9889 | ;; |
| 9890 | |
| 9891 | darwin* | rhapsody*) |
| 9892 | # PIC is the default on this platform |
| 9893 | # Common symbols not allowed in MH_DYLIB files |
| 9894 | lt_prog_compiler_pic='-fno-common' |
| 9895 | ;; |
| 9896 | |
| 9897 | haiku*) |
| 9898 | # PIC is the default for Haiku. |
| 9899 | # The "-static" flag exists, but is broken. |
| 9900 | lt_prog_compiler_static= |
| 9901 | ;; |
| 9902 | |
| 9903 | hpux*) |
| 9904 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 9905 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 9906 | # sets the default TLS model and affects inlining. |
| 9907 | case $host_cpu in |
| 9908 | hppa*64*) |
| 9909 | # +Z the default |
| 9910 | ;; |
| 9911 | *) |
| 9912 | lt_prog_compiler_pic='-fPIC' |
| 9913 | ;; |
| 9914 | esac |
| 9915 | ;; |
| 9916 | |
| 9917 | interix[3-9]*) |
| 9918 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 9919 | # Instead, we relocate shared libraries at runtime. |
| 9920 | ;; |
| 9921 | |
| 9922 | msdosdjgpp*) |
| 9923 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 9924 | # on systems that don't support them. |
| 9925 | lt_prog_compiler_can_build_shared=no |
| 9926 | enable_shared=no |
| 9927 | ;; |
| 9928 | |
| 9929 | *nto* | *qnx*) |
| 9930 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 9931 | # it will coredump. |
| 9932 | lt_prog_compiler_pic='-fPIC -shared' |
| 9933 | ;; |
| 9934 | |
| 9935 | sysv4*MP*) |
| 9936 | if test -d /usr/nec; then |
| 9937 | lt_prog_compiler_pic=-Kconform_pic |
| 9938 | fi |
| 9939 | ;; |
| 9940 | |
| 9941 | *) |
| 9942 | lt_prog_compiler_pic='-fPIC' |
| 9943 | ;; |
| 9944 | esac |
| 9945 | |
| 9946 | case $cc_basename in |
| 9947 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9948 | lt_prog_compiler_wl='-Xlinker ' |
| 9949 | if test -n "$lt_prog_compiler_pic"; then |
| 9950 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 9951 | fi |
| 9952 | ;; |
| 9953 | esac |
| 9954 | else |
| 9955 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 9956 | case $host_os in |
| 9957 | aix*) |
| 9958 | lt_prog_compiler_wl='-Wl,' |
| 9959 | if test ia64 = "$host_cpu"; then |
| 9960 | # AIX 5 now supports IA64 processor |
| 9961 | lt_prog_compiler_static='-Bstatic' |
| 9962 | else |
| 9963 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 9964 | fi |
| 9965 | ;; |
| 9966 | |
| 9967 | darwin* | rhapsody*) |
| 9968 | # PIC is the default on this platform |
| 9969 | # Common symbols not allowed in MH_DYLIB files |
| 9970 | lt_prog_compiler_pic='-fno-common' |
| 9971 | case $cc_basename in |
| 9972 | nagfor*) |
| 9973 | # NAG Fortran compiler |
| 9974 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 9975 | lt_prog_compiler_pic='-PIC' |
| 9976 | lt_prog_compiler_static='-Bstatic' |
| 9977 | ;; |
| 9978 | esac |
| 9979 | ;; |
| 9980 | |
| 9981 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 9982 | # This hack is so that the source file can tell whether it is being |
| 9983 | # built for inclusion in a dll (and should export symbols for example). |
| 9984 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 9985 | case $host_os in |
| 9986 | os2*) |
| 9987 | lt_prog_compiler_static='$wl-static' |
| 9988 | ;; |
| 9989 | esac |
| 9990 | ;; |
| 9991 | |
| 9992 | hpux9* | hpux10* | hpux11*) |
| 9993 | lt_prog_compiler_wl='-Wl,' |
| 9994 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 9995 | # not for PA HP-UX. |
| 9996 | case $host_cpu in |
| 9997 | hppa*64*|ia64*) |
| 9998 | # +Z the default |
| 9999 | ;; |
| 10000 | *) |
| 10001 | lt_prog_compiler_pic='+Z' |
| 10002 | ;; |
| 10003 | esac |
| 10004 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10005 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 10006 | ;; |
| 10007 | |
| 10008 | irix5* | irix6* | nonstopux*) |
| 10009 | lt_prog_compiler_wl='-Wl,' |
| 10010 | # PIC (with -KPIC) is the default. |
| 10011 | lt_prog_compiler_static='-non_shared' |
| 10012 | ;; |
| 10013 | |
| 10014 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 10015 | case $cc_basename in |
| 10016 | # old Intel for x86_64, which still supported -KPIC. |
| 10017 | ecc*) |
| 10018 | lt_prog_compiler_wl='-Wl,' |
| 10019 | lt_prog_compiler_pic='-KPIC' |
| 10020 | lt_prog_compiler_static='-static' |
| 10021 | ;; |
| 10022 | # flang / f18. f95 an alias for gfortran or flang on Debian |
| 10023 | flang* | f18* | f95*) |
| 10024 | lt_prog_compiler_wl='-Wl,' |
| 10025 | lt_prog_compiler_pic='-fPIC' |
| 10026 | lt_prog_compiler_static='-static' |
| 10027 | ;; |
| 10028 | # icc used to be incompatible with GCC. |
| 10029 | # ICC 10 doesn't accept -KPIC any more. |
| 10030 | icc* | ifort*) |
| 10031 | lt_prog_compiler_wl='-Wl,' |
| 10032 | lt_prog_compiler_pic='-fPIC' |
| 10033 | lt_prog_compiler_static='-static' |
| 10034 | ;; |
| 10035 | # Lahey Fortran 8.1. |
| 10036 | lf95*) |
| 10037 | lt_prog_compiler_wl='-Wl,' |
| 10038 | lt_prog_compiler_pic='--shared' |
| 10039 | lt_prog_compiler_static='--static' |
| 10040 | ;; |
| 10041 | nagfor*) |
| 10042 | # NAG Fortran compiler |
| 10043 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10044 | lt_prog_compiler_pic='-PIC' |
| 10045 | lt_prog_compiler_static='-Bstatic' |
| 10046 | ;; |
| 10047 | tcc*) |
| 10048 | # Fabrice Bellard et al's Tiny C Compiler |
| 10049 | lt_prog_compiler_wl='-Wl,' |
| 10050 | lt_prog_compiler_pic='-fPIC' |
| 10051 | lt_prog_compiler_static='-static' |
| 10052 | ;; |
| 10053 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10054 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 10055 | # which looks to be a dead project) |
| 10056 | lt_prog_compiler_wl='-Wl,' |
| 10057 | lt_prog_compiler_pic='-fpic' |
| 10058 | lt_prog_compiler_static='-Bstatic' |
| 10059 | ;; |
| 10060 | ccc*) |
| 10061 | lt_prog_compiler_wl='-Wl,' |
| 10062 | # All Alpha code is PIC. |
| 10063 | lt_prog_compiler_static='-non_shared' |
| 10064 | ;; |
| 10065 | xl* | bgxl* | bgf* | mpixl*) |
| 10066 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 10067 | lt_prog_compiler_wl='-Wl,' |
| 10068 | lt_prog_compiler_pic='-qpic' |
| 10069 | lt_prog_compiler_static='-qstaticlink' |
| 10070 | ;; |
| 10071 | *) |
| 10072 | case `$CC -V 2>&1 | $SED 5q` in |
| 10073 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 10074 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10075 | lt_prog_compiler_pic='-KPIC' |
| 10076 | lt_prog_compiler_static='-Bstatic' |
| 10077 | lt_prog_compiler_wl='' |
| 10078 | ;; |
| 10079 | *Sun\ F* | *Sun*Fortran*) |
| 10080 | lt_prog_compiler_pic='-KPIC' |
| 10081 | lt_prog_compiler_static='-Bstatic' |
| 10082 | lt_prog_compiler_wl='-Qoption ld ' |
| 10083 | ;; |
| 10084 | *Sun\ C*) |
| 10085 | # Sun C 5.9 |
| 10086 | lt_prog_compiler_pic='-KPIC' |
| 10087 | lt_prog_compiler_static='-Bstatic' |
| 10088 | lt_prog_compiler_wl='-Wl,' |
| 10089 | ;; |
| 10090 | *Intel*\ [CF]*Compiler*) |
| 10091 | lt_prog_compiler_wl='-Wl,' |
| 10092 | lt_prog_compiler_pic='-fPIC' |
| 10093 | lt_prog_compiler_static='-static' |
| 10094 | ;; |
| 10095 | *Portland\ Group*) |
| 10096 | lt_prog_compiler_wl='-Wl,' |
| 10097 | lt_prog_compiler_pic='-fpic' |
| 10098 | lt_prog_compiler_static='-Bstatic' |
| 10099 | ;; |
| 10100 | esac |
| 10101 | ;; |
| 10102 | esac |
| 10103 | ;; |
| 10104 | |
| 10105 | newsos6) |
| 10106 | lt_prog_compiler_pic='-KPIC' |
| 10107 | lt_prog_compiler_static='-Bstatic' |
| 10108 | ;; |
| 10109 | |
| 10110 | *nto* | *qnx*) |
| 10111 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10112 | # it will coredump. |
| 10113 | lt_prog_compiler_pic='-fPIC -shared' |
| 10114 | ;; |
| 10115 | |
| 10116 | osf3* | osf4* | osf5*) |
| 10117 | lt_prog_compiler_wl='-Wl,' |
| 10118 | # All OSF/1 code is PIC. |
| 10119 | lt_prog_compiler_static='-non_shared' |
| 10120 | ;; |
| 10121 | |
| 10122 | rdos*) |
| 10123 | lt_prog_compiler_static='-non_shared' |
| 10124 | ;; |
| 10125 | |
| 10126 | solaris*) |
| 10127 | lt_prog_compiler_pic='-KPIC' |
| 10128 | lt_prog_compiler_static='-Bstatic' |
| 10129 | case $cc_basename in |
| 10130 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 10131 | lt_prog_compiler_wl='-Qoption ld ';; |
| 10132 | *) |
| 10133 | lt_prog_compiler_wl='-Wl,';; |
| 10134 | esac |
| 10135 | ;; |
| 10136 | |
| 10137 | sunos4*) |
| 10138 | lt_prog_compiler_wl='-Qoption ld ' |
| 10139 | lt_prog_compiler_pic='-PIC' |
| 10140 | lt_prog_compiler_static='-Bstatic' |
| 10141 | ;; |
| 10142 | |
| 10143 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 10144 | lt_prog_compiler_wl='-Wl,' |
| 10145 | lt_prog_compiler_pic='-KPIC' |
| 10146 | lt_prog_compiler_static='-Bstatic' |
| 10147 | ;; |
| 10148 | |
| 10149 | sysv4*MP*) |
| 10150 | if test -d /usr/nec; then |
| 10151 | lt_prog_compiler_pic='-Kconform_pic' |
| 10152 | lt_prog_compiler_static='-Bstatic' |
| 10153 | fi |
| 10154 | ;; |
| 10155 | |
| 10156 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10157 | lt_prog_compiler_wl='-Wl,' |
| 10158 | lt_prog_compiler_pic='-KPIC' |
| 10159 | lt_prog_compiler_static='-Bstatic' |
| 10160 | ;; |
| 10161 | |
| 10162 | unicos*) |
| 10163 | lt_prog_compiler_wl='-Wl,' |
| 10164 | lt_prog_compiler_can_build_shared=no |
| 10165 | ;; |
| 10166 | |
| 10167 | uts4*) |
| 10168 | lt_prog_compiler_pic='-pic' |
| 10169 | lt_prog_compiler_static='-Bstatic' |
| 10170 | ;; |
| 10171 | |
| 10172 | *) |
| 10173 | lt_prog_compiler_can_build_shared=no |
| 10174 | ;; |
| 10175 | esac |
| 10176 | fi |
| 10177 | |
| 10178 | case $host_os in |
| 10179 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 10180 | *djgpp*) |
| 10181 | lt_prog_compiler_pic= |
| 10182 | ;; |
| 10183 | *) |
| 10184 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10185 | ;; |
| 10186 | esac |
| 10187 | |
| 10188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10189 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 10190 | if test ${lt_cv_prog_compiler_pic+y} |
| 10191 | then : |
| 10192 | printf %s "(cached) " >&6 |
| 10193 | else $as_nop |
| 10194 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10195 | fi |
| 10196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10197 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 10198 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10199 | |
| 10200 | # |
| 10201 | # Check to make sure the PIC flag actually works. |
| 10202 | # |
| 10203 | if test -n "$lt_prog_compiler_pic"; then |
| 10204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10205 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10206 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 10207 | then : |
| 10208 | printf %s "(cached) " >&6 |
| 10209 | else $as_nop |
| 10210 | lt_cv_prog_compiler_pic_works=no |
| 10211 | ac_outfile=conftest.$ac_objext |
| 10212 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10213 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 10214 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10215 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10216 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10217 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10218 | # The option is referenced via a variable to avoid confusing sed. |
| 10219 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10220 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10221 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10222 | -e 's:$: $lt_compiler_flag:'` |
| 10223 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10224 | (eval "$lt_compile" 2>conftest.err) |
| 10225 | ac_status=$? |
| 10226 | cat conftest.err >&5 |
| 10227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10228 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10229 | # The compiler can only warn and ignore the option if not recognized |
| 10230 | # So say no if there are warnings other than the usual output. |
| 10231 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10232 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10233 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10234 | lt_cv_prog_compiler_pic_works=yes |
| 10235 | fi |
| 10236 | fi |
| 10237 | $RM conftest* |
| 10238 | |
| 10239 | fi |
| 10240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10241 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10242 | |
| 10243 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 10244 | case $lt_prog_compiler_pic in |
| 10245 | "" | " "*) ;; |
| 10246 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10247 | esac |
| 10248 | else |
| 10249 | lt_prog_compiler_pic= |
| 10250 | lt_prog_compiler_can_build_shared=no |
| 10251 | fi |
| 10252 | |
| 10253 | fi |
| 10254 | |
| 10255 | |
| 10256 | |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | |
| 10261 | |
| 10262 | |
| 10263 | |
| 10264 | |
| 10265 | # |
| 10266 | # Check to make sure the static flag actually works. |
| 10267 | # |
| 10268 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10270 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10271 | if test ${lt_cv_prog_compiler_static_works+y} |
| 10272 | then : |
| 10273 | printf %s "(cached) " >&6 |
| 10274 | else $as_nop |
| 10275 | lt_cv_prog_compiler_static_works=no |
| 10276 | save_LDFLAGS=$LDFLAGS |
| 10277 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10278 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10279 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10280 | # The linker can only warn and ignore the option if not recognized |
| 10281 | # So say no if there are warnings |
| 10282 | if test -s conftest.err; then |
| 10283 | # Append any errors to the config.log. |
| 10284 | cat conftest.err 1>&5 |
| 10285 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10286 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10287 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10288 | lt_cv_prog_compiler_static_works=yes |
| 10289 | fi |
| 10290 | else |
| 10291 | lt_cv_prog_compiler_static_works=yes |
| 10292 | fi |
| 10293 | fi |
| 10294 | $RM -r conftest* |
| 10295 | LDFLAGS=$save_LDFLAGS |
| 10296 | |
| 10297 | fi |
| 10298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 10299 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 10300 | |
| 10301 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 10302 | : |
| 10303 | else |
| 10304 | lt_prog_compiler_static= |
| 10305 | fi |
| 10306 | |
| 10307 | |
| 10308 | |
| 10309 | |
| 10310 | |
| 10311 | |
| 10312 | |
| 10313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10314 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10315 | if test ${lt_cv_prog_compiler_c_o+y} |
| 10316 | then : |
| 10317 | printf %s "(cached) " >&6 |
| 10318 | else $as_nop |
| 10319 | lt_cv_prog_compiler_c_o=no |
| 10320 | $RM -r conftest 2>/dev/null |
| 10321 | mkdir conftest |
| 10322 | cd conftest |
| 10323 | mkdir out |
| 10324 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10325 | |
| 10326 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10327 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10328 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10329 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10330 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10331 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10332 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10333 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10334 | -e 's:$: $lt_compiler_flag:'` |
| 10335 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10336 | (eval "$lt_compile" 2>out/conftest.err) |
| 10337 | ac_status=$? |
| 10338 | cat out/conftest.err >&5 |
| 10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10340 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10341 | then |
| 10342 | # The compiler can only warn and ignore the option if not recognized |
| 10343 | # So say no if there are warnings |
| 10344 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10345 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10346 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10347 | lt_cv_prog_compiler_c_o=yes |
| 10348 | fi |
| 10349 | fi |
| 10350 | chmod u+w . 2>&5 |
| 10351 | $RM conftest* |
| 10352 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10353 | # template instantiation |
| 10354 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10355 | $RM out/* && rmdir out |
| 10356 | cd .. |
| 10357 | $RM -r conftest |
| 10358 | $RM conftest* |
| 10359 | |
| 10360 | fi |
| 10361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 10362 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 10363 | |
| 10364 | |
| 10365 | |
| 10366 | |
| 10367 | |
| 10368 | |
| 10369 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10370 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10371 | if test ${lt_cv_prog_compiler_c_o+y} |
| 10372 | then : |
| 10373 | printf %s "(cached) " >&6 |
| 10374 | else $as_nop |
| 10375 | lt_cv_prog_compiler_c_o=no |
| 10376 | $RM -r conftest 2>/dev/null |
| 10377 | mkdir conftest |
| 10378 | cd conftest |
| 10379 | mkdir out |
| 10380 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10381 | |
| 10382 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10383 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10384 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10385 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10386 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10387 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10388 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10389 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10390 | -e 's:$: $lt_compiler_flag:'` |
| 10391 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10392 | (eval "$lt_compile" 2>out/conftest.err) |
| 10393 | ac_status=$? |
| 10394 | cat out/conftest.err >&5 |
| 10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10396 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10397 | then |
| 10398 | # The compiler can only warn and ignore the option if not recognized |
| 10399 | # So say no if there are warnings |
| 10400 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10401 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10402 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10403 | lt_cv_prog_compiler_c_o=yes |
| 10404 | fi |
| 10405 | fi |
| 10406 | chmod u+w . 2>&5 |
| 10407 | $RM conftest* |
| 10408 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10409 | # template instantiation |
| 10410 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10411 | $RM out/* && rmdir out |
| 10412 | cd .. |
| 10413 | $RM -r conftest |
| 10414 | $RM conftest* |
| 10415 | |
| 10416 | fi |
| 10417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 10418 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 10419 | |
| 10420 | |
| 10421 | |
| 10422 | |
| 10423 | hard_links=nottested |
| 10424 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 10425 | # do not overwrite the value of need_locks provided by the user |
| 10426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 10427 | printf %s "checking if we can lock with hard links... " >&6; } |
| 10428 | hard_links=yes |
| 10429 | $RM conftest* |
| 10430 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10431 | touch conftest.a |
| 10432 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10433 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 10435 | printf "%s\n" "$hard_links" >&6; } |
| 10436 | if test no = "$hard_links"; then |
| 10437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 10438 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 10439 | need_locks=warn |
| 10440 | fi |
| 10441 | else |
| 10442 | need_locks=no |
| 10443 | fi |
| 10444 | |
| 10445 | |
| 10446 | |
| 10447 | |
| 10448 | |
| 10449 | |
| 10450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10451 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 10452 | |
| 10453 | runpath_var= |
| 10454 | allow_undefined_flag= |
| 10455 | always_export_symbols=no |
| 10456 | archive_cmds= |
| 10457 | archive_expsym_cmds= |
| 10458 | compiler_needs_object=no |
| 10459 | enable_shared_with_static_runtimes=no |
| 10460 | export_dynamic_flag_spec= |
| 10461 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10462 | hardcode_automatic=no |
| 10463 | hardcode_direct=no |
| 10464 | hardcode_direct_absolute=no |
| 10465 | hardcode_libdir_flag_spec= |
| 10466 | hardcode_libdir_separator= |
| 10467 | hardcode_minus_L=no |
| 10468 | hardcode_shlibpath_var=unsupported |
| 10469 | inherit_rpath=no |
| 10470 | link_all_deplibs=unknown |
| 10471 | module_cmds= |
| 10472 | module_expsym_cmds= |
| 10473 | old_archive_from_new_cmds= |
| 10474 | old_archive_from_expsyms_cmds= |
| 10475 | thread_safe_flag_spec= |
| 10476 | whole_archive_flag_spec= |
| 10477 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 10478 | # included in the symbol list |
| 10479 | include_expsyms= |
| 10480 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 10481 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 10482 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 10483 | # as well as any symbol that contains 'd'. |
| 10484 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 10485 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 10486 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 10487 | # the symbol is explicitly referenced. Since portable code cannot |
| 10488 | # rely on this symbol name, it's probably fine to never include it in |
| 10489 | # preloaded symbol tables. |
| 10490 | # Exclude shared library initialization/finalization symbols. |
| 10491 | extract_expsyms_cmds= |
| 10492 | |
| 10493 | case $host_os in |
| 10494 | cygwin* | mingw* | pw32* | cegcc*) |
| 10495 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time |
| 10496 | # When not using gcc, we currently assume that we are using |
| 10497 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 10498 | if test yes != "$GCC"; then |
| 10499 | with_gnu_ld=no |
| 10500 | fi |
| 10501 | ;; |
| 10502 | interix*) |
| 10503 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) |
| 10504 | with_gnu_ld=yes |
| 10505 | ;; |
| 10506 | openbsd* | bitrig*) |
| 10507 | with_gnu_ld=no |
| 10508 | ;; |
| 10509 | linux* | k*bsd*-gnu | gnu*) |
| 10510 | link_all_deplibs=no |
| 10511 | ;; |
| 10512 | esac |
| 10513 | |
| 10514 | ld_shlibs=yes |
| 10515 | |
| 10516 | # On some targets, GNU ld is compatible enough with the native linker |
| 10517 | # that we're better off using the native interface for both. |
| 10518 | lt_use_gnu_ld_interface=no |
| 10519 | if test yes = "$with_gnu_ld"; then |
| 10520 | case $host_os in |
| 10521 | aix*) |
| 10522 | # The AIX port of GNU ld has always aspired to compatibility |
| 10523 | # with the native linker. However, as the warning in the GNU ld |
| 10524 | # block says, versions before 2.19.5* couldn't really create working |
| 10525 | # shared libraries, regardless of the interface used. |
| 10526 | case `$LD -v 2>&1` in |
| 10527 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 10528 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 10529 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 10530 | *) |
| 10531 | lt_use_gnu_ld_interface=yes |
| 10532 | ;; |
| 10533 | esac |
| 10534 | ;; |
| 10535 | *) |
| 10536 | lt_use_gnu_ld_interface=yes |
| 10537 | ;; |
| 10538 | esac |
| 10539 | fi |
| 10540 | |
| 10541 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 10542 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10543 | wlarc='$wl' |
| 10544 | |
| 10545 | # Set some defaults for GNU ld with shared library support. These |
| 10546 | # are reset later if shared libraries are not supported. Putting them |
| 10547 | # here allows them to be overridden if necessary. |
| 10548 | runpath_var=LD_RUN_PATH |
| 10549 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10550 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 10551 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10552 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 10553 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 10554 | else |
| 10555 | whole_archive_flag_spec= |
| 10556 | fi |
| 10557 | supports_anon_versioning=no |
| 10558 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
| 10559 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 10560 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 10561 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 10562 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 10563 | *\ 2.11.*) ;; # other 2.11 versions |
| 10564 | *) supports_anon_versioning=yes ;; |
| 10565 | esac |
| 10566 | |
| 10567 | # See if GNU ld supports shared libraries. |
| 10568 | case $host_os in |
| 10569 | aix[3-9]*) |
| 10570 | # On AIX/PPC, the GNU linker is very broken |
| 10571 | if test ia64 != "$host_cpu"; then |
| 10572 | ld_shlibs=no |
| 10573 | cat <<_LT_EOF 1>&2 |
| 10574 | |
| 10575 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 10576 | *** to be unable to reliably create shared libraries on AIX. |
| 10577 | *** Therefore, libtool is disabling shared libraries support. If you |
| 10578 | *** really care for shared libraries, you may want to install binutils |
| 10579 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 10580 | *** You will then need to restart the configuration process. |
| 10581 | |
| 10582 | _LT_EOF |
| 10583 | fi |
| 10584 | ;; |
| 10585 | |
| 10586 | amigaos*) |
| 10587 | case $host_cpu in |
| 10588 | powerpc) |
| 10589 | # see comment about AmigaOS4 .so support |
| 10590 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10591 | archive_expsym_cmds='' |
| 10592 | ;; |
| 10593 | m68k) |
| 10594 | 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)' |
| 10595 | hardcode_libdir_flag_spec='-L$libdir' |
| 10596 | hardcode_minus_L=yes |
| 10597 | ;; |
| 10598 | esac |
| 10599 | ;; |
| 10600 | |
| 10601 | beos*) |
| 10602 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10603 | allow_undefined_flag=unsupported |
| 10604 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 10605 | # support --undefined. This deserves some investigation. FIXME |
| 10606 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10607 | else |
| 10608 | ld_shlibs=no |
| 10609 | fi |
| 10610 | ;; |
| 10611 | |
| 10612 | cygwin* | mingw* | pw32* | cegcc*) |
| 10613 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 10614 | # as there is no search path for DLLs. |
| 10615 | hardcode_libdir_flag_spec='-L$libdir' |
| 10616 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 10617 | allow_undefined_flag=unsupported |
| 10618 | always_export_symbols=no |
| 10619 | enable_shared_with_static_runtimes=yes |
| 10620 | 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' |
| 10621 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 10622 | |
| 10623 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 10624 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10625 | # If the export-symbols file already is a .def file, use it as |
| 10626 | # is; otherwise, prepend EXPORTS... |
| 10627 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 10628 | cp $export_symbols $output_objdir/$soname.def; |
| 10629 | else |
| 10630 | echo EXPORTS > $output_objdir/$soname.def; |
| 10631 | cat $export_symbols >> $output_objdir/$soname.def; |
| 10632 | fi~ |
| 10633 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10634 | else |
| 10635 | ld_shlibs=no |
| 10636 | fi |
| 10637 | ;; |
| 10638 | |
| 10639 | haiku*) |
| 10640 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10641 | link_all_deplibs=yes |
| 10642 | ;; |
| 10643 | |
| 10644 | os2*) |
| 10645 | hardcode_libdir_flag_spec='-L$libdir' |
| 10646 | hardcode_minus_L=yes |
| 10647 | allow_undefined_flag=unsupported |
| 10648 | shrext_cmds=.dll |
| 10649 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10650 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10651 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10652 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10653 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 10654 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10655 | emximp -o $lib $output_objdir/$libname.def' |
| 10656 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10657 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10658 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10659 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10660 | prefix_cmds="$SED"~ |
| 10661 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 10662 | prefix_cmds="$prefix_cmds -e 1d"; |
| 10663 | fi~ |
| 10664 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 10665 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 10666 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10667 | emximp -o $lib $output_objdir/$libname.def' |
| 10668 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 10669 | enable_shared_with_static_runtimes=yes |
| 10670 | file_list_spec='@' |
| 10671 | ;; |
| 10672 | |
| 10673 | interix[3-9]*) |
| 10674 | hardcode_direct=no |
| 10675 | hardcode_shlibpath_var=no |
| 10676 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10677 | export_dynamic_flag_spec='$wl-E' |
| 10678 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 10679 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 10680 | # default) and relocated if they conflict, which is a slow very memory |
| 10681 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 10682 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 10683 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 10684 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 10685 | 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' |
| 10686 | ;; |
| 10687 | |
| 10688 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10689 | tmp_diet=no |
| 10690 | if test linux-dietlibc = "$host_os"; then |
| 10691 | case $cc_basename in |
| 10692 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 10693 | esac |
| 10694 | fi |
| 10695 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 10696 | && test no = "$tmp_diet" |
| 10697 | then |
| 10698 | tmp_addflag=' $pic_flag' |
| 10699 | tmp_sharedflag='-shared' |
| 10700 | case $cc_basename,$host_cpu in |
| 10701 | pgcc*) # Portland Group C compiler |
| 10702 | 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' |
| 10703 | tmp_addflag=' $pic_flag' |
| 10704 | ;; |
| 10705 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10706 | # Portland Group f77 and f90 compilers |
| 10707 | 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' |
| 10708 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 10709 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 10710 | tmp_addflag=' -i_dynamic' ;; |
| 10711 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 10712 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 10713 | ifc* | ifort*) # Intel Fortran compiler |
| 10714 | tmp_addflag=' -nofor_main' ;; |
| 10715 | lf95*) # Lahey Fortran 8.1 |
| 10716 | whole_archive_flag_spec= |
| 10717 | tmp_sharedflag='--shared' ;; |
| 10718 | nagfor*) # NAGFOR 5.3 |
| 10719 | tmp_sharedflag='-Wl,-shared' ;; |
| 10720 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 10721 | tmp_sharedflag='-qmkshrobj' |
| 10722 | tmp_addflag= ;; |
| 10723 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10724 | 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' |
| 10725 | compiler_needs_object=yes |
| 10726 | ;; |
| 10727 | esac |
| 10728 | case `$CC -V 2>&1 | $SED 5q` in |
| 10729 | *Sun\ C*) # Sun C 5.9 |
| 10730 | 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' |
| 10731 | compiler_needs_object=yes |
| 10732 | tmp_sharedflag='-G' ;; |
| 10733 | *Sun\ F*) # Sun Fortran 8.3 |
| 10734 | tmp_sharedflag='-G' ;; |
| 10735 | esac |
| 10736 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10737 | |
| 10738 | if test yes = "$supports_anon_versioning"; then |
| 10739 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10740 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10741 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10742 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 10743 | fi |
| 10744 | |
| 10745 | case $cc_basename in |
| 10746 | tcc*) |
| 10747 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10748 | export_dynamic_flag_spec='-rdynamic' |
| 10749 | ;; |
| 10750 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 10751 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 10752 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 10753 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10754 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 10755 | if test yes = "$supports_anon_versioning"; then |
| 10756 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10757 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10758 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10759 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 10760 | fi |
| 10761 | ;; |
| 10762 | esac |
| 10763 | else |
| 10764 | ld_shlibs=no |
| 10765 | fi |
| 10766 | ;; |
| 10767 | |
| 10768 | netbsd* | netbsdelf*-gnu) |
| 10769 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10770 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 10771 | wlarc= |
| 10772 | else |
| 10773 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10774 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10775 | fi |
| 10776 | ;; |
| 10777 | |
| 10778 | solaris*) |
| 10779 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 10780 | ld_shlibs=no |
| 10781 | cat <<_LT_EOF 1>&2 |
| 10782 | |
| 10783 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 10784 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 10785 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10786 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 10787 | *** your PATH or compiler configuration so that the native linker is |
| 10788 | *** used, and then restart. |
| 10789 | |
| 10790 | _LT_EOF |
| 10791 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10792 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10793 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10794 | else |
| 10795 | ld_shlibs=no |
| 10796 | fi |
| 10797 | ;; |
| 10798 | |
| 10799 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 10800 | case `$LD -v 2>&1` in |
| 10801 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 10802 | ld_shlibs=no |
| 10803 | cat <<_LT_EOF 1>&2 |
| 10804 | |
| 10805 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 10806 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 10807 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10808 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 10809 | *** your PATH or compiler configuration so that the native linker is |
| 10810 | *** used, and then restart. |
| 10811 | |
| 10812 | _LT_EOF |
| 10813 | ;; |
| 10814 | *) |
| 10815 | # For security reasons, it is highly recommended that you always |
| 10816 | # use absolute paths for naming shared libraries, and exclude the |
| 10817 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 10818 | # requires that you compile everything twice, which is a pain. |
| 10819 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10820 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10821 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10822 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10823 | else |
| 10824 | ld_shlibs=no |
| 10825 | fi |
| 10826 | ;; |
| 10827 | esac |
| 10828 | ;; |
| 10829 | |
| 10830 | sunos4*) |
| 10831 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10832 | wlarc= |
| 10833 | hardcode_direct=yes |
| 10834 | hardcode_shlibpath_var=no |
| 10835 | ;; |
| 10836 | |
| 10837 | *) |
| 10838 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10839 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10840 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10841 | else |
| 10842 | ld_shlibs=no |
| 10843 | fi |
| 10844 | ;; |
| 10845 | esac |
| 10846 | |
| 10847 | if test no = "$ld_shlibs"; then |
| 10848 | runpath_var= |
| 10849 | hardcode_libdir_flag_spec= |
| 10850 | export_dynamic_flag_spec= |
| 10851 | whole_archive_flag_spec= |
| 10852 | fi |
| 10853 | else |
| 10854 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 10855 | case $host_os in |
| 10856 | aix3*) |
| 10857 | allow_undefined_flag=unsupported |
| 10858 | always_export_symbols=yes |
| 10859 | 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' |
| 10860 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 10861 | # are no directories specified by -L. |
| 10862 | hardcode_minus_L=yes |
| 10863 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 10864 | # Neither direct hardcoding nor static linking is supported with a |
| 10865 | # broken collect2. |
| 10866 | hardcode_direct=unsupported |
| 10867 | fi |
| 10868 | ;; |
| 10869 | |
| 10870 | aix[4-9]*) |
| 10871 | if test ia64 = "$host_cpu"; then |
| 10872 | # On IA64, the linker does run time linking by default, so we don't |
| 10873 | # have to do anything special. |
| 10874 | aix_use_runtimelinking=no |
| 10875 | exp_sym_flag='-Bexport' |
| 10876 | no_entry_flag= |
| 10877 | else |
| 10878 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10879 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 10880 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 10881 | # weak defined symbols like other global defined symbols, whereas |
| 10882 | # GNU nm marks them as "W". |
| 10883 | # While the 'weak' keyword is ignored in the Export File, we need |
| 10884 | # it in the Import File for the 'aix-soname' feature, so we have |
| 10885 | # to replace the "-B" option with "-P" for AIX nm. |
| 10886 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 10887 | 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' |
| 10888 | else |
| 10889 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 10890 | fi |
| 10891 | aix_use_runtimelinking=no |
| 10892 | |
| 10893 | # Test if we are trying to use run time linking or normal |
| 10894 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10895 | # have runtime linking enabled, and use it for executables. |
| 10896 | # For shared libraries, we enable/disable runtime linking |
| 10897 | # depending on the kind of the shared library created - |
| 10898 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 10899 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 10900 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 10901 | # lib.a static archive |
| 10902 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 10903 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 10904 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 10905 | # lib.a(lib.so.V) shared, rtl:no |
| 10906 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 10907 | # lib.a static archive |
| 10908 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 10909 | for ld_flag in $LDFLAGS; do |
| 10910 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 10911 | aix_use_runtimelinking=yes |
| 10912 | break |
| 10913 | fi |
| 10914 | done |
| 10915 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 10916 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 10917 | # so we don't have lib.a shared libs to link our executables. |
| 10918 | # We have to force runtime linking in this case. |
| 10919 | aix_use_runtimelinking=yes |
| 10920 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 10921 | fi |
| 10922 | ;; |
| 10923 | esac |
| 10924 | |
| 10925 | exp_sym_flag='-bexport' |
| 10926 | no_entry_flag='-bnoentry' |
| 10927 | fi |
| 10928 | |
| 10929 | # When large executables or shared objects are built, AIX ld can |
| 10930 | # have problems creating the table of contents. If linking a library |
| 10931 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10932 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10933 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10934 | |
| 10935 | archive_cmds='' |
| 10936 | hardcode_direct=yes |
| 10937 | hardcode_direct_absolute=yes |
| 10938 | hardcode_libdir_separator=':' |
| 10939 | link_all_deplibs=yes |
| 10940 | file_list_spec='$wl-f,' |
| 10941 | case $with_aix_soname,$aix_use_runtimelinking in |
| 10942 | aix,*) ;; # traditional, no import file |
| 10943 | svr4,* | *,yes) # use import file |
| 10944 | # The Import File defines what to hardcode. |
| 10945 | hardcode_direct=no |
| 10946 | hardcode_direct_absolute=no |
| 10947 | ;; |
| 10948 | esac |
| 10949 | |
| 10950 | if test yes = "$GCC"; then |
| 10951 | case $host_os in aix4.[012]|aix4.[012].*) |
| 10952 | # We only want to do this on AIX 4.2 and lower, the check |
| 10953 | # below for broken collect2 doesn't work under 4.3+ |
| 10954 | collect2name=`$CC -print-prog-name=collect2` |
| 10955 | if test -f "$collect2name" && |
| 10956 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 10957 | then |
| 10958 | # We have reworked collect2 |
| 10959 | : |
| 10960 | else |
| 10961 | # We have old collect2 |
| 10962 | hardcode_direct=unsupported |
| 10963 | # It fails to find uninstalled libraries when the uninstalled |
| 10964 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10965 | # to unsupported forces relinking |
| 10966 | hardcode_minus_L=yes |
| 10967 | hardcode_libdir_flag_spec='-L$libdir' |
| 10968 | hardcode_libdir_separator= |
| 10969 | fi |
| 10970 | ;; |
| 10971 | esac |
| 10972 | shared_flag='-shared' |
| 10973 | if test yes = "$aix_use_runtimelinking"; then |
| 10974 | shared_flag="$shared_flag "'$wl-G' |
| 10975 | fi |
| 10976 | # Need to ensure runtime linking is disabled for the traditional |
| 10977 | # shared library, or the linker may eventually find shared libraries |
| 10978 | # /with/ Import File - we do not want to mix them. |
| 10979 | shared_flag_aix='-shared' |
| 10980 | shared_flag_svr4='-shared $wl-G' |
| 10981 | else |
| 10982 | # not using gcc |
| 10983 | if test ia64 = "$host_cpu"; then |
| 10984 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10985 | # chokes on -Wl,-G. The following line is correct: |
| 10986 | shared_flag='-G' |
| 10987 | else |
| 10988 | if test yes = "$aix_use_runtimelinking"; then |
| 10989 | shared_flag='$wl-G' |
| 10990 | else |
| 10991 | shared_flag='$wl-bM:SRE' |
| 10992 | fi |
| 10993 | shared_flag_aix='$wl-bM:SRE' |
| 10994 | shared_flag_svr4='$wl-G' |
| 10995 | fi |
| 10996 | fi |
| 10997 | |
| 10998 | export_dynamic_flag_spec='$wl-bexpall' |
| 10999 | # It seems that -bexpall does not export symbols beginning with |
| 11000 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11001 | always_export_symbols=yes |
| 11002 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11003 | # Warning - without using the other runtime loading flags (-brtl), |
| 11004 | # -berok will link without error, but may produce a broken library. |
| 11005 | allow_undefined_flag='-berok' |
| 11006 | # Determine the default libpath from the value encoded in an |
| 11007 | # empty executable. |
| 11008 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 11009 | aix_libpath=$lt_cv_aix_libpath |
| 11010 | else |
| 11011 | if test ${lt_cv_aix_libpath_+y} |
| 11012 | then : |
| 11013 | printf %s "(cached) " >&6 |
| 11014 | else $as_nop |
| 11015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11016 | /* end confdefs.h. */ |
| 11017 | |
| 11018 | int |
| 11019 | main (void) |
| 11020 | { |
| 11021 | |
| 11022 | ; |
| 11023 | return 0; |
| 11024 | } |
| 11025 | _ACEOF |
| 11026 | if ac_fn_c_try_link "$LINENO" |
| 11027 | then : |
| 11028 | |
| 11029 | lt_aix_libpath_sed=' |
| 11030 | /Import File Strings/,/^$/ { |
| 11031 | /^0/ { |
| 11032 | s/^0 *\([^ ]*\) *$/\1/ |
| 11033 | p |
| 11034 | } |
| 11035 | }' |
| 11036 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11037 | # Check for a 64-bit object if we didn't find anything. |
| 11038 | if test -z "$lt_cv_aix_libpath_"; then |
| 11039 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11040 | fi |
| 11041 | fi |
| 11042 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11043 | conftest$ac_exeext conftest.$ac_ext |
| 11044 | if test -z "$lt_cv_aix_libpath_"; then |
| 11045 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 11046 | fi |
| 11047 | |
| 11048 | fi |
| 11049 | |
| 11050 | aix_libpath=$lt_cv_aix_libpath_ |
| 11051 | fi |
| 11052 | |
| 11053 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11054 | 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 |
| 11055 | else |
| 11056 | if test ia64 = "$host_cpu"; then |
| 11057 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 11058 | allow_undefined_flag="-z nodefs" |
| 11059 | 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" |
| 11060 | else |
| 11061 | # Determine the default libpath from the value encoded in an |
| 11062 | # empty executable. |
| 11063 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 11064 | aix_libpath=$lt_cv_aix_libpath |
| 11065 | else |
| 11066 | if test ${lt_cv_aix_libpath_+y} |
| 11067 | then : |
| 11068 | printf %s "(cached) " >&6 |
| 11069 | else $as_nop |
| 11070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11071 | /* end confdefs.h. */ |
| 11072 | |
| 11073 | int |
| 11074 | main (void) |
| 11075 | { |
| 11076 | |
| 11077 | ; |
| 11078 | return 0; |
| 11079 | } |
| 11080 | _ACEOF |
| 11081 | if ac_fn_c_try_link "$LINENO" |
| 11082 | then : |
| 11083 | |
| 11084 | lt_aix_libpath_sed=' |
| 11085 | /Import File Strings/,/^$/ { |
| 11086 | /^0/ { |
| 11087 | s/^0 *\([^ ]*\) *$/\1/ |
| 11088 | p |
| 11089 | } |
| 11090 | }' |
| 11091 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11092 | # Check for a 64-bit object if we didn't find anything. |
| 11093 | if test -z "$lt_cv_aix_libpath_"; then |
| 11094 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11095 | fi |
| 11096 | fi |
| 11097 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11098 | conftest$ac_exeext conftest.$ac_ext |
| 11099 | if test -z "$lt_cv_aix_libpath_"; then |
| 11100 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 11101 | fi |
| 11102 | |
| 11103 | fi |
| 11104 | |
| 11105 | aix_libpath=$lt_cv_aix_libpath_ |
| 11106 | fi |
| 11107 | |
| 11108 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11109 | # Warning - without using the other run time loading flags, |
| 11110 | # -berok will link without error, but may produce a broken library. |
| 11111 | no_undefined_flag=' $wl-bernotok' |
| 11112 | allow_undefined_flag=' $wl-berok' |
| 11113 | if test yes = "$with_gnu_ld"; then |
| 11114 | # We only use this code for GNU lds that support --whole-archive. |
| 11115 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 11116 | else |
| 11117 | # Exported symbols can be pulled into shared objects from archives |
| 11118 | whole_archive_flag_spec='$convenience' |
| 11119 | fi |
| 11120 | archive_cmds_need_lc=yes |
| 11121 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 11122 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 11123 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 11124 | if test svr4 != "$with_aix_soname"; then |
| 11125 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11126 | 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' |
| 11127 | fi |
| 11128 | if test aix != "$with_aix_soname"; then |
| 11129 | 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' |
| 11130 | else |
| 11131 | # used by -dlpreopen to get the symbols |
| 11132 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 11133 | fi |
| 11134 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 11135 | fi |
| 11136 | fi |
| 11137 | ;; |
| 11138 | |
| 11139 | amigaos*) |
| 11140 | case $host_cpu in |
| 11141 | powerpc) |
| 11142 | # see comment about AmigaOS4 .so support |
| 11143 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11144 | archive_expsym_cmds='' |
| 11145 | ;; |
| 11146 | m68k) |
| 11147 | 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)' |
| 11148 | hardcode_libdir_flag_spec='-L$libdir' |
| 11149 | hardcode_minus_L=yes |
| 11150 | ;; |
| 11151 | esac |
| 11152 | ;; |
| 11153 | |
| 11154 | bsdi[45]*) |
| 11155 | export_dynamic_flag_spec=-rdynamic |
| 11156 | ;; |
| 11157 | |
| 11158 | cygwin* | mingw* | pw32* | cegcc*) |
| 11159 | # When not using gcc, we currently assume that we are using |
| 11160 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 11161 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11162 | # no search path for DLLs. |
| 11163 | case $cc_basename in |
| 11164 | cl* | icl*) |
| 11165 | # Native MSVC or ICC |
| 11166 | hardcode_libdir_flag_spec=' ' |
| 11167 | allow_undefined_flag=unsupported |
| 11168 | always_export_symbols=yes |
| 11169 | file_list_spec='@' |
| 11170 | # Tell ltmain to make .lib files, not .a files. |
| 11171 | libext=lib |
| 11172 | # Tell ltmain to make .dll files, not .so files. |
| 11173 | shrext_cmds=.dll |
| 11174 | # FIXME: Setting linknames here is a bad hack. |
| 11175 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 11176 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11177 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 11178 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 11179 | else |
| 11180 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 11181 | fi~ |
| 11182 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 11183 | linknames=' |
| 11184 | # The linker will not automatically build a static lib if we build a DLL. |
| 11185 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11186 | enable_shared_with_static_runtimes=yes |
| 11187 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 11188 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11189 | # Don't use ranlib |
| 11190 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11191 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11192 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11193 | case $lt_outputfile in |
| 11194 | *.exe|*.EXE) ;; |
| 11195 | *) |
| 11196 | lt_outputfile=$lt_outputfile.exe |
| 11197 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 11198 | ;; |
| 11199 | esac~ |
| 11200 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 11201 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11202 | $RM "$lt_outputfile.manifest"; |
| 11203 | fi' |
| 11204 | ;; |
| 11205 | *) |
| 11206 | # Assume MSVC and ICC wrapper |
| 11207 | hardcode_libdir_flag_spec=' ' |
| 11208 | allow_undefined_flag=unsupported |
| 11209 | # Tell ltmain to make .lib files, not .a files. |
| 11210 | libext=lib |
| 11211 | # Tell ltmain to make .dll files, not .so files. |
| 11212 | shrext_cmds=.dll |
| 11213 | # FIXME: Setting linknames here is a bad hack. |
| 11214 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11215 | # The linker will automatically build a .lib file if we build a DLL. |
| 11216 | old_archive_from_new_cmds='true' |
| 11217 | # FIXME: Should let the user specify the lib program. |
| 11218 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11219 | enable_shared_with_static_runtimes=yes |
| 11220 | ;; |
| 11221 | esac |
| 11222 | ;; |
| 11223 | |
| 11224 | darwin* | rhapsody*) |
| 11225 | |
| 11226 | |
| 11227 | archive_cmds_need_lc=no |
| 11228 | hardcode_direct=no |
| 11229 | hardcode_automatic=yes |
| 11230 | hardcode_shlibpath_var=unsupported |
| 11231 | if test yes = "$lt_cv_ld_force_load"; then |
| 11232 | 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\"`' |
| 11233 | |
| 11234 | else |
| 11235 | whole_archive_flag_spec='' |
| 11236 | fi |
| 11237 | link_all_deplibs=yes |
| 11238 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 11239 | case $cc_basename in |
| 11240 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 11241 | *) _lt_dar_can_shared=$GCC ;; |
| 11242 | esac |
| 11243 | if test yes = "$_lt_dar_can_shared"; then |
| 11244 | output_verbose_link_cmd=func_echo_all |
| 11245 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 11246 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 11247 | 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" |
| 11248 | 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" |
| 11249 | |
| 11250 | else |
| 11251 | ld_shlibs=no |
| 11252 | fi |
| 11253 | |
| 11254 | ;; |
| 11255 | |
| 11256 | dgux*) |
| 11257 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11258 | hardcode_libdir_flag_spec='-L$libdir' |
| 11259 | hardcode_shlibpath_var=no |
| 11260 | ;; |
| 11261 | |
| 11262 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11263 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 11264 | # does not break anything, and helps significantly (at the cost of a little |
| 11265 | # extra space). |
| 11266 | freebsd2.2*) |
| 11267 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11268 | hardcode_libdir_flag_spec='-R$libdir' |
| 11269 | hardcode_direct=yes |
| 11270 | hardcode_shlibpath_var=no |
| 11271 | ;; |
| 11272 | |
| 11273 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11274 | freebsd2.*) |
| 11275 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11276 | hardcode_direct=yes |
| 11277 | hardcode_minus_L=yes |
| 11278 | hardcode_shlibpath_var=no |
| 11279 | ;; |
| 11280 | |
| 11281 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11282 | freebsd* | dragonfly* | midnightbsd*) |
| 11283 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11284 | hardcode_libdir_flag_spec='-R$libdir' |
| 11285 | hardcode_direct=yes |
| 11286 | hardcode_shlibpath_var=no |
| 11287 | ;; |
| 11288 | |
| 11289 | hpux9*) |
| 11290 | if test yes = "$GCC"; then |
| 11291 | 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' |
| 11292 | else |
| 11293 | 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' |
| 11294 | fi |
| 11295 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11296 | hardcode_libdir_separator=: |
| 11297 | hardcode_direct=yes |
| 11298 | |
| 11299 | # hardcode_minus_L: Not really in the search PATH, |
| 11300 | # but as the default location of the library. |
| 11301 | hardcode_minus_L=yes |
| 11302 | export_dynamic_flag_spec='$wl-E' |
| 11303 | ;; |
| 11304 | |
| 11305 | hpux10*) |
| 11306 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11307 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11308 | else |
| 11309 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11310 | fi |
| 11311 | if test no = "$with_gnu_ld"; then |
| 11312 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11313 | hardcode_libdir_separator=: |
| 11314 | hardcode_direct=yes |
| 11315 | hardcode_direct_absolute=yes |
| 11316 | export_dynamic_flag_spec='$wl-E' |
| 11317 | # hardcode_minus_L: Not really in the search PATH, |
| 11318 | # but as the default location of the library. |
| 11319 | hardcode_minus_L=yes |
| 11320 | fi |
| 11321 | ;; |
| 11322 | |
| 11323 | hpux11*) |
| 11324 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11325 | case $host_cpu in |
| 11326 | hppa*64*) |
| 11327 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11328 | ;; |
| 11329 | ia64*) |
| 11330 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11331 | ;; |
| 11332 | *) |
| 11333 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11334 | ;; |
| 11335 | esac |
| 11336 | else |
| 11337 | case $host_cpu in |
| 11338 | hppa*64*) |
| 11339 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11340 | ;; |
| 11341 | ia64*) |
| 11342 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11343 | ;; |
| 11344 | *) |
| 11345 | |
| 11346 | # Older versions of the 11.00 compiler do not understand -b yet |
| 11347 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 11348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 11349 | printf %s "checking if $CC understands -b... " >&6; } |
| 11350 | if test ${lt_cv_prog_compiler__b+y} |
| 11351 | then : |
| 11352 | printf %s "(cached) " >&6 |
| 11353 | else $as_nop |
| 11354 | lt_cv_prog_compiler__b=no |
| 11355 | save_LDFLAGS=$LDFLAGS |
| 11356 | LDFLAGS="$LDFLAGS -b" |
| 11357 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11358 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11359 | # The linker can only warn and ignore the option if not recognized |
| 11360 | # So say no if there are warnings |
| 11361 | if test -s conftest.err; then |
| 11362 | # Append any errors to the config.log. |
| 11363 | cat conftest.err 1>&5 |
| 11364 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 11365 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11366 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 11367 | lt_cv_prog_compiler__b=yes |
| 11368 | fi |
| 11369 | else |
| 11370 | lt_cv_prog_compiler__b=yes |
| 11371 | fi |
| 11372 | fi |
| 11373 | $RM -r conftest* |
| 11374 | LDFLAGS=$save_LDFLAGS |
| 11375 | |
| 11376 | fi |
| 11377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 11378 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } |
| 11379 | |
| 11380 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 11381 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11382 | else |
| 11383 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11384 | fi |
| 11385 | |
| 11386 | ;; |
| 11387 | esac |
| 11388 | fi |
| 11389 | if test no = "$with_gnu_ld"; then |
| 11390 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11391 | hardcode_libdir_separator=: |
| 11392 | |
| 11393 | case $host_cpu in |
| 11394 | hppa*64*|ia64*) |
| 11395 | hardcode_direct=no |
| 11396 | hardcode_shlibpath_var=no |
| 11397 | ;; |
| 11398 | *) |
| 11399 | hardcode_direct=yes |
| 11400 | hardcode_direct_absolute=yes |
| 11401 | export_dynamic_flag_spec='$wl-E' |
| 11402 | |
| 11403 | # hardcode_minus_L: Not really in the search PATH, |
| 11404 | # but as the default location of the library. |
| 11405 | hardcode_minus_L=yes |
| 11406 | ;; |
| 11407 | esac |
| 11408 | fi |
| 11409 | ;; |
| 11410 | |
| 11411 | irix5* | irix6* | nonstopux*) |
| 11412 | if test yes = "$GCC"; then |
| 11413 | 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' |
| 11414 | # Try to use the -exported_symbol ld option, if it does not |
| 11415 | # work, assume that -exports_file does not work either and |
| 11416 | # implicitly export all symbols. |
| 11417 | # This should be the same for all languages, so no per-tag cache variable. |
| 11418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 11419 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 11420 | if test ${lt_cv_irix_exported_symbol+y} |
| 11421 | then : |
| 11422 | printf %s "(cached) " >&6 |
| 11423 | else $as_nop |
| 11424 | save_LDFLAGS=$LDFLAGS |
| 11425 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 11426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11427 | /* end confdefs.h. */ |
| 11428 | int foo (void) { return 0; } |
| 11429 | _ACEOF |
| 11430 | if ac_fn_c_try_link "$LINENO" |
| 11431 | then : |
| 11432 | lt_cv_irix_exported_symbol=yes |
| 11433 | else $as_nop |
| 11434 | lt_cv_irix_exported_symbol=no |
| 11435 | fi |
| 11436 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11437 | conftest$ac_exeext conftest.$ac_ext |
| 11438 | LDFLAGS=$save_LDFLAGS |
| 11439 | fi |
| 11440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 11441 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } |
| 11442 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 11443 | 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' |
| 11444 | fi |
| 11445 | link_all_deplibs=no |
| 11446 | else |
| 11447 | 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' |
| 11448 | 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' |
| 11449 | fi |
| 11450 | archive_cmds_need_lc='no' |
| 11451 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11452 | hardcode_libdir_separator=: |
| 11453 | inherit_rpath=yes |
| 11454 | link_all_deplibs=yes |
| 11455 | ;; |
| 11456 | |
| 11457 | linux*) |
| 11458 | case $cc_basename in |
| 11459 | tcc*) |
| 11460 | # Fabrice Bellard et al's Tiny C Compiler |
| 11461 | ld_shlibs=yes |
| 11462 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11463 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11464 | ;; |
| 11465 | esac |
| 11466 | ;; |
| 11467 | |
| 11468 | netbsd* | netbsdelf*-gnu) |
| 11469 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11470 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 11471 | else |
| 11472 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 11473 | fi |
| 11474 | hardcode_libdir_flag_spec='-R$libdir' |
| 11475 | hardcode_direct=yes |
| 11476 | hardcode_shlibpath_var=no |
| 11477 | ;; |
| 11478 | |
| 11479 | newsos6) |
| 11480 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11481 | hardcode_direct=yes |
| 11482 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11483 | hardcode_libdir_separator=: |
| 11484 | hardcode_shlibpath_var=no |
| 11485 | ;; |
| 11486 | |
| 11487 | *nto* | *qnx*) |
| 11488 | ;; |
| 11489 | |
| 11490 | openbsd* | bitrig*) |
| 11491 | if test -f /usr/libexec/ld.so; then |
| 11492 | hardcode_direct=yes |
| 11493 | hardcode_shlibpath_var=no |
| 11494 | hardcode_direct_absolute=yes |
| 11495 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 11496 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11497 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 11498 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 11499 | export_dynamic_flag_spec='$wl-E' |
| 11500 | else |
| 11501 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11502 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 11503 | fi |
| 11504 | else |
| 11505 | ld_shlibs=no |
| 11506 | fi |
| 11507 | ;; |
| 11508 | |
| 11509 | os2*) |
| 11510 | hardcode_libdir_flag_spec='-L$libdir' |
| 11511 | hardcode_minus_L=yes |
| 11512 | allow_undefined_flag=unsupported |
| 11513 | shrext_cmds=.dll |
| 11514 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11515 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11516 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11517 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11518 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 11519 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11520 | emximp -o $lib $output_objdir/$libname.def' |
| 11521 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11522 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11523 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11524 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11525 | prefix_cmds="$SED"~ |
| 11526 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 11527 | prefix_cmds="$prefix_cmds -e 1d"; |
| 11528 | fi~ |
| 11529 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 11530 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 11531 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11532 | emximp -o $lib $output_objdir/$libname.def' |
| 11533 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 11534 | enable_shared_with_static_runtimes=yes |
| 11535 | file_list_spec='@' |
| 11536 | ;; |
| 11537 | |
| 11538 | osf3*) |
| 11539 | if test yes = "$GCC"; then |
| 11540 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 11541 | 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' |
| 11542 | else |
| 11543 | allow_undefined_flag=' -expect_unresolved \*' |
| 11544 | 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' |
| 11545 | fi |
| 11546 | archive_cmds_need_lc='no' |
| 11547 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11548 | hardcode_libdir_separator=: |
| 11549 | ;; |
| 11550 | |
| 11551 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 11552 | if test yes = "$GCC"; then |
| 11553 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 11554 | 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' |
| 11555 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11556 | else |
| 11557 | allow_undefined_flag=' -expect_unresolved \*' |
| 11558 | 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' |
| 11559 | 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~ |
| 11560 | $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' |
| 11561 | |
| 11562 | # Both c and cxx compiler support -rpath directly |
| 11563 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 11564 | fi |
| 11565 | archive_cmds_need_lc='no' |
| 11566 | hardcode_libdir_separator=: |
| 11567 | ;; |
| 11568 | |
| 11569 | solaris*) |
| 11570 | no_undefined_flag=' -z defs' |
| 11571 | if test yes = "$GCC"; then |
| 11572 | wlarc='$wl' |
| 11573 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11574 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 11575 | $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' |
| 11576 | else |
| 11577 | case `$CC -V 2>&1` in |
| 11578 | *"Compilers 5.0"*) |
| 11579 | wlarc='' |
| 11580 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11581 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 11582 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 11583 | ;; |
| 11584 | *) |
| 11585 | wlarc='$wl' |
| 11586 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11587 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 11588 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 11589 | ;; |
| 11590 | esac |
| 11591 | fi |
| 11592 | hardcode_libdir_flag_spec='-R$libdir' |
| 11593 | hardcode_shlibpath_var=no |
| 11594 | case $host_os in |
| 11595 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 11596 | *) |
| 11597 | # The compiler driver will combine and reorder linker options, |
| 11598 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 11599 | # but is careful enough not to reorder. |
| 11600 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 11601 | if test yes = "$GCC"; then |
| 11602 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 11603 | else |
| 11604 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 11605 | fi |
| 11606 | ;; |
| 11607 | esac |
| 11608 | link_all_deplibs=yes |
| 11609 | ;; |
| 11610 | |
| 11611 | sunos4*) |
| 11612 | if test sequent = "$host_vendor"; then |
| 11613 | # Use $CC to link under sequent, because it throws in some extra .o |
| 11614 | # files that make .init and .fini sections work. |
| 11615 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11616 | else |
| 11617 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 11618 | fi |
| 11619 | hardcode_libdir_flag_spec='-L$libdir' |
| 11620 | hardcode_direct=yes |
| 11621 | hardcode_minus_L=yes |
| 11622 | hardcode_shlibpath_var=no |
| 11623 | ;; |
| 11624 | |
| 11625 | sysv4) |
| 11626 | case $host_vendor in |
| 11627 | sni) |
| 11628 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11629 | hardcode_direct=yes # is this really true??? |
| 11630 | ;; |
| 11631 | siemens) |
| 11632 | ## LD is ld it makes a PLAMLIB |
| 11633 | ## CC just makes a GrossModule. |
| 11634 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 11635 | reload_cmds='$CC -r -o $output$reload_objs' |
| 11636 | hardcode_direct=no |
| 11637 | ;; |
| 11638 | motorola) |
| 11639 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11640 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 11641 | ;; |
| 11642 | esac |
| 11643 | runpath_var='LD_RUN_PATH' |
| 11644 | hardcode_shlibpath_var=no |
| 11645 | ;; |
| 11646 | |
| 11647 | sysv4.3*) |
| 11648 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11649 | hardcode_shlibpath_var=no |
| 11650 | export_dynamic_flag_spec='-Bexport' |
| 11651 | ;; |
| 11652 | |
| 11653 | sysv4*MP*) |
| 11654 | if test -d /usr/nec; then |
| 11655 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11656 | hardcode_shlibpath_var=no |
| 11657 | runpath_var=LD_RUN_PATH |
| 11658 | hardcode_runpath_var=yes |
| 11659 | ld_shlibs=yes |
| 11660 | fi |
| 11661 | ;; |
| 11662 | |
| 11663 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 11664 | no_undefined_flag='$wl-z,text' |
| 11665 | archive_cmds_need_lc=no |
| 11666 | hardcode_shlibpath_var=no |
| 11667 | runpath_var='LD_RUN_PATH' |
| 11668 | |
| 11669 | if test yes = "$GCC"; then |
| 11670 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11671 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11672 | else |
| 11673 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11674 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11675 | fi |
| 11676 | ;; |
| 11677 | |
| 11678 | sysv5* | sco3.2v5* | sco5v6*) |
| 11679 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 11680 | # link with -lc, and that would cause any symbols used from libc to |
| 11681 | # always be unresolved, which means just about no library would |
| 11682 | # ever link correctly. If we're not using GNU ld we use -z text |
| 11683 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 11684 | # as -z defs. |
| 11685 | no_undefined_flag='$wl-z,text' |
| 11686 | allow_undefined_flag='$wl-z,nodefs' |
| 11687 | archive_cmds_need_lc=no |
| 11688 | hardcode_shlibpath_var=no |
| 11689 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 11690 | hardcode_libdir_separator=':' |
| 11691 | link_all_deplibs=yes |
| 11692 | export_dynamic_flag_spec='$wl-Bexport' |
| 11693 | runpath_var='LD_RUN_PATH' |
| 11694 | |
| 11695 | if test yes = "$GCC"; then |
| 11696 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11697 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11698 | else |
| 11699 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11700 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11701 | fi |
| 11702 | ;; |
| 11703 | |
| 11704 | uts4*) |
| 11705 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11706 | hardcode_libdir_flag_spec='-L$libdir' |
| 11707 | hardcode_shlibpath_var=no |
| 11708 | ;; |
| 11709 | |
| 11710 | *) |
| 11711 | ld_shlibs=no |
| 11712 | ;; |
| 11713 | esac |
| 11714 | |
| 11715 | if test sni = "$host_vendor"; then |
| 11716 | case $host in |
| 11717 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11718 | export_dynamic_flag_spec='$wl-Blargedynsym' |
| 11719 | ;; |
| 11720 | esac |
| 11721 | fi |
| 11722 | fi |
| 11723 | |
| 11724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 11725 | printf "%s\n" "$ld_shlibs" >&6; } |
| 11726 | test no = "$ld_shlibs" && can_build_shared=no |
| 11727 | |
| 11728 | with_gnu_ld=$with_gnu_ld |
| 11729 | |
| 11730 | |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | # |
| 11745 | # Do we need to explicitly link libc? |
| 11746 | # |
| 11747 | case "x$archive_cmds_need_lc" in |
| 11748 | x|xyes) |
| 11749 | # Assume -lc should be added |
| 11750 | archive_cmds_need_lc=yes |
| 11751 | |
| 11752 | if test yes,yes = "$GCC,$enable_shared"; then |
| 11753 | case $archive_cmds in |
| 11754 | *'~'*) |
| 11755 | # FIXME: we may have to deal with multi-command sequences. |
| 11756 | ;; |
| 11757 | '$CC '*) |
| 11758 | # Test whether the compiler implicitly links with -lc since on some |
| 11759 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11760 | # to ld, don't add -lc before -lgcc. |
| 11761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 11762 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 11763 | if test ${lt_cv_archive_cmds_need_lc+y} |
| 11764 | then : |
| 11765 | printf %s "(cached) " >&6 |
| 11766 | else $as_nop |
| 11767 | $RM conftest* |
| 11768 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11769 | |
| 11770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11771 | (eval $ac_compile) 2>&5 |
| 11772 | ac_status=$? |
| 11773 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11774 | test $ac_status = 0; } 2>conftest.err; then |
| 11775 | soname=conftest |
| 11776 | lib=conftest |
| 11777 | libobjs=conftest.$ac_objext |
| 11778 | deplibs= |
| 11779 | wl=$lt_prog_compiler_wl |
| 11780 | pic_flag=$lt_prog_compiler_pic |
| 11781 | compiler_flags=-v |
| 11782 | linker_flags=-v |
| 11783 | verstring= |
| 11784 | output_objdir=. |
| 11785 | libname=conftest |
| 11786 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 11787 | allow_undefined_flag= |
| 11788 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 11789 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11790 | ac_status=$? |
| 11791 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11792 | test $ac_status = 0; } |
| 11793 | then |
| 11794 | lt_cv_archive_cmds_need_lc=no |
| 11795 | else |
| 11796 | lt_cv_archive_cmds_need_lc=yes |
| 11797 | fi |
| 11798 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 11799 | else |
| 11800 | cat conftest.err 1>&5 |
| 11801 | fi |
| 11802 | $RM conftest* |
| 11803 | |
| 11804 | fi |
| 11805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 11806 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } |
| 11807 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 11808 | ;; |
| 11809 | esac |
| 11810 | fi |
| 11811 | ;; |
| 11812 | esac |
| 11813 | |
| 11814 | |
| 11815 | |
| 11816 | |
| 11817 | |
| 11818 | |
| 11819 | |
| 11820 | |
| 11821 | |
| 11822 | |
| 11823 | |
| 11824 | |
| 11825 | |
| 11826 | |
| 11827 | |
| 11828 | |
| 11829 | |
| 11830 | |
| 11831 | |
| 11832 | |
| 11833 | |
| 11834 | |
| 11835 | |
| 11836 | |
| 11837 | |
| 11838 | |
| 11839 | |
| 11840 | |
| 11841 | |
| 11842 | |
| 11843 | |
| 11844 | |
| 11845 | |
| 11846 | |
| 11847 | |
| 11848 | |
| 11849 | |
| 11850 | |
| 11851 | |
| 11852 | |
| 11853 | |
| 11854 | |
| 11855 | |
| 11856 | |
| 11857 | |
| 11858 | |
| 11859 | |
| 11860 | |
| 11861 | |
| 11862 | |
| 11863 | |
| 11864 | |
| 11865 | |
| 11866 | |
| 11867 | |
| 11868 | |
| 11869 | |
| 11870 | |
| 11871 | |
| 11872 | |
| 11873 | |
| 11874 | |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | |
| 11891 | |
| 11892 | |
| 11893 | |
| 11894 | |
| 11895 | |
| 11896 | |
| 11897 | |
| 11898 | |
| 11899 | |
| 11900 | |
| 11901 | |
| 11902 | |
| 11903 | |
| 11904 | |
| 11905 | |
| 11906 | |
| 11907 | |
| 11908 | |
| 11909 | |
| 11910 | |
| 11911 | |
| 11912 | |
| 11913 | |
| 11914 | |
| 11915 | |
| 11916 | |
| 11917 | |
| 11918 | |
| 11919 | |
| 11920 | |
| 11921 | |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
| 11942 | |
| 11943 | |
| 11944 | |
| 11945 | |
| 11946 | |
| 11947 | |
| 11948 | |
| 11949 | |
| 11950 | |
| 11951 | |
| 11952 | |
| 11953 | |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
| 11960 | |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 11966 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 11967 | |
| 11968 | if test yes = "$GCC"; then |
| 11969 | case $host_os in |
| 11970 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 11971 | *) lt_awk_arg='/^libraries:/' ;; |
| 11972 | esac |
| 11973 | case $host_os in |
| 11974 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 11975 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 11976 | esac |
| 11977 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 11978 | case $lt_search_path_spec in |
| 11979 | *\;*) |
| 11980 | # if the path contains ";" then we assume it to be the separator |
| 11981 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11982 | # assumed that no part of a normal pathname contains ";" but that should |
| 11983 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11984 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 11985 | ;; |
| 11986 | *) |
| 11987 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 11988 | ;; |
| 11989 | esac |
| 11990 | # Ok, now we have the path, separated by spaces, we can step through it |
| 11991 | # and add multilib dir if necessary... |
| 11992 | lt_tmp_lt_search_path_spec= |
| 11993 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 11994 | # ...but if some path component already ends with the multilib dir we assume |
| 11995 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 11996 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 11997 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 11998 | lt_multi_os_dir= |
| 11999 | ;; |
| 12000 | esac |
| 12001 | for lt_sys_path in $lt_search_path_spec; do |
| 12002 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 12003 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 12004 | elif test -n "$lt_multi_os_dir"; then |
| 12005 | test -d "$lt_sys_path" && \ |
| 12006 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 12007 | fi |
| 12008 | done |
| 12009 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 12010 | BEGIN {RS = " "; FS = "/|\n";} { |
| 12011 | lt_foo = ""; |
| 12012 | lt_count = 0; |
| 12013 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 12014 | if ($lt_i != "" && $lt_i != ".") { |
| 12015 | if ($lt_i == "..") { |
| 12016 | lt_count++; |
| 12017 | } else { |
| 12018 | if (lt_count == 0) { |
| 12019 | lt_foo = "/" $lt_i lt_foo; |
| 12020 | } else { |
| 12021 | lt_count--; |
| 12022 | } |
| 12023 | } |
| 12024 | } |
| 12025 | } |
| 12026 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 12027 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 12028 | }'` |
| 12029 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 12030 | # for these hosts. |
| 12031 | case $host_os in |
| 12032 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 12033 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 12034 | esac |
| 12035 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 12036 | else |
| 12037 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12038 | fi |
| 12039 | library_names_spec= |
| 12040 | libname_spec='lib$name' |
| 12041 | soname_spec= |
| 12042 | shrext_cmds=.so |
| 12043 | postinstall_cmds= |
| 12044 | postuninstall_cmds= |
| 12045 | finish_cmds= |
| 12046 | finish_eval= |
| 12047 | shlibpath_var= |
| 12048 | shlibpath_overrides_runpath=unknown |
| 12049 | version_type=none |
| 12050 | dynamic_linker="$host_os ld.so" |
| 12051 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12052 | need_lib_prefix=unknown |
| 12053 | hardcode_into_libs=no |
| 12054 | |
| 12055 | # when you set need_version to no, make sure it does not cause -set_version |
| 12056 | # flags to be left without arguments |
| 12057 | need_version=unknown |
| 12058 | |
| 12059 | |
| 12060 | |
| 12061 | case $host_os in |
| 12062 | aix3*) |
| 12063 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12064 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 12065 | shlibpath_var=LIBPATH |
| 12066 | |
| 12067 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12068 | soname_spec='$libname$release$shared_ext$major' |
| 12069 | ;; |
| 12070 | |
| 12071 | aix[4-9]*) |
| 12072 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12073 | need_lib_prefix=no |
| 12074 | need_version=no |
| 12075 | hardcode_into_libs=yes |
| 12076 | if test ia64 = "$host_cpu"; then |
| 12077 | # AIX 5 supports IA64 |
| 12078 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 12079 | shlibpath_var=LD_LIBRARY_PATH |
| 12080 | else |
| 12081 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12082 | # for dependence libraries. The import file would start with |
| 12083 | # the line '#! .'. This would cause the generated library to |
| 12084 | # depend on '.', always an invalid library. This was fixed in |
| 12085 | # development snapshots of GCC prior to 3.0. |
| 12086 | case $host_os in |
| 12087 | aix4 | aix4.[01] | aix4.[01].*) |
| 12088 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12089 | echo ' yes ' |
| 12090 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 12091 | : |
| 12092 | else |
| 12093 | can_build_shared=no |
| 12094 | fi |
| 12095 | ;; |
| 12096 | esac |
| 12097 | # Using Import Files as archive members, it is possible to support |
| 12098 | # filename-based versioning of shared library archives on AIX. While |
| 12099 | # this would work for both with and without runtime linking, it will |
| 12100 | # prevent static linking of such archives. So we do filename-based |
| 12101 | # shared library versioning with .so extension only, which is used |
| 12102 | # when both runtime linking and shared linking is enabled. |
| 12103 | # Unfortunately, runtime linking may impact performance, so we do |
| 12104 | # not want this to be the default eventually. Also, we use the |
| 12105 | # versioned .so libs for executables only if there is the -brtl |
| 12106 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 12107 | # To allow for filename-based versioning support, we need to create |
| 12108 | # libNAME.so.V as an archive file, containing: |
| 12109 | # *) an Import File, referring to the versioned filename of the |
| 12110 | # archive as well as the shared archive member, telling the |
| 12111 | # bitwidth (32 or 64) of that shared object, and providing the |
| 12112 | # list of exported symbols of that shared object, eventually |
| 12113 | # decorated with the 'weak' keyword |
| 12114 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 12115 | # it being seen by the linker. |
| 12116 | # At run time we better use the real file rather than another symlink, |
| 12117 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 12118 | |
| 12119 | case $with_aix_soname,$aix_use_runtimelinking in |
| 12120 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 12121 | # soname into executable. Probably we can add versioning support to |
| 12122 | # collect2, so additional links can be useful in future. |
| 12123 | aix,yes) # traditional libtool |
| 12124 | dynamic_linker='AIX unversionable lib.so' |
| 12125 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12126 | # instead of lib<name>.a to let people know that these are not |
| 12127 | # typical AIX shared libraries. |
| 12128 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12129 | ;; |
| 12130 | aix,no) # traditional AIX only |
| 12131 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 12132 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12133 | # and later when we are not doing run time linking. |
| 12134 | library_names_spec='$libname$release.a $libname.a' |
| 12135 | soname_spec='$libname$release$shared_ext$major' |
| 12136 | ;; |
| 12137 | svr4,*) # full svr4 only |
| 12138 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 12139 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12140 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 12141 | shlibpath_overrides_runpath=yes |
| 12142 | ;; |
| 12143 | *,yes) # both, prefer svr4 |
| 12144 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 12145 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12146 | # unpreferred sharedlib libNAME.a needs extra handling |
| 12147 | 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"' |
| 12148 | 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"' |
| 12149 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 12150 | shlibpath_overrides_runpath=yes |
| 12151 | ;; |
| 12152 | *,no) # both, prefer aix |
| 12153 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 12154 | library_names_spec='$libname$release.a $libname.a' |
| 12155 | soname_spec='$libname$release$shared_ext$major' |
| 12156 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 12157 | 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)' |
| 12158 | 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"' |
| 12159 | ;; |
| 12160 | esac |
| 12161 | shlibpath_var=LIBPATH |
| 12162 | fi |
| 12163 | ;; |
| 12164 | |
| 12165 | amigaos*) |
| 12166 | case $host_cpu in |
| 12167 | powerpc) |
| 12168 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 12169 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 12170 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12171 | ;; |
| 12172 | m68k) |
| 12173 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12174 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12175 | 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' |
| 12176 | ;; |
| 12177 | esac |
| 12178 | ;; |
| 12179 | |
| 12180 | beos*) |
| 12181 | library_names_spec='$libname$shared_ext' |
| 12182 | dynamic_linker="$host_os ld.so" |
| 12183 | shlibpath_var=LIBRARY_PATH |
| 12184 | ;; |
| 12185 | |
| 12186 | bsdi[45]*) |
| 12187 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12188 | need_version=no |
| 12189 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12190 | soname_spec='$libname$release$shared_ext$major' |
| 12191 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12192 | shlibpath_var=LD_LIBRARY_PATH |
| 12193 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12194 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12195 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12196 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12197 | # libtool to hard-code these into programs |
| 12198 | ;; |
| 12199 | |
| 12200 | cygwin* | mingw* | pw32* | cegcc*) |
| 12201 | version_type=windows |
| 12202 | shrext_cmds=.dll |
| 12203 | need_version=no |
| 12204 | need_lib_prefix=no |
| 12205 | |
| 12206 | case $GCC,$cc_basename in |
| 12207 | yes,*) |
| 12208 | # gcc |
| 12209 | library_names_spec='$libname.dll.a' |
| 12210 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12211 | postinstall_cmds='base_file=`basename \$file`~ |
| 12212 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12213 | dldir=$destdir/`dirname \$dlpath`~ |
| 12214 | test -d \$dldir || mkdir -p \$dldir~ |
| 12215 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12216 | chmod a+x \$dldir/$dlname~ |
| 12217 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12218 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12219 | fi' |
| 12220 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12221 | dlpath=$dir/\$dldll~ |
| 12222 | $RM \$dlpath' |
| 12223 | shlibpath_overrides_runpath=yes |
| 12224 | |
| 12225 | case $host_os in |
| 12226 | cygwin*) |
| 12227 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12228 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12229 | |
| 12230 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 12231 | ;; |
| 12232 | mingw* | cegcc*) |
| 12233 | # MinGW DLLs use traditional 'lib' prefix |
| 12234 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12235 | ;; |
| 12236 | pw32*) |
| 12237 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12238 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12239 | ;; |
| 12240 | esac |
| 12241 | dynamic_linker='Win32 ld.exe' |
| 12242 | ;; |
| 12243 | |
| 12244 | *,cl* | *,icl*) |
| 12245 | # Native MSVC or ICC |
| 12246 | libname_spec='$name' |
| 12247 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12248 | library_names_spec='$libname.dll.lib' |
| 12249 | |
| 12250 | case $build_os in |
| 12251 | mingw*) |
| 12252 | sys_lib_search_path_spec= |
| 12253 | lt_save_ifs=$IFS |
| 12254 | IFS=';' |
| 12255 | for lt_path in $LIB |
| 12256 | do |
| 12257 | IFS=$lt_save_ifs |
| 12258 | # Let DOS variable expansion print the short 8.3 style file name. |
| 12259 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 12260 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 12261 | done |
| 12262 | IFS=$lt_save_ifs |
| 12263 | # Convert to MSYS style. |
| 12264 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 12265 | ;; |
| 12266 | cygwin*) |
| 12267 | # Convert to unix form, then to dos form, then back to unix form |
| 12268 | # but this time dos style (no spaces!) so that the unix form looks |
| 12269 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 12270 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 12271 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 12272 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12273 | ;; |
| 12274 | *) |
| 12275 | sys_lib_search_path_spec=$LIB |
| 12276 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 12277 | # It is most probably a Windows format PATH. |
| 12278 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12279 | else |
| 12280 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12281 | fi |
| 12282 | # FIXME: find the short name or the path components, as spaces are |
| 12283 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 12284 | ;; |
| 12285 | esac |
| 12286 | |
| 12287 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12288 | postinstall_cmds='base_file=`basename \$file`~ |
| 12289 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12290 | dldir=$destdir/`dirname \$dlpath`~ |
| 12291 | test -d \$dldir || mkdir -p \$dldir~ |
| 12292 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 12293 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12294 | dlpath=$dir/\$dldll~ |
| 12295 | $RM \$dlpath' |
| 12296 | shlibpath_overrides_runpath=yes |
| 12297 | dynamic_linker='Win32 link.exe' |
| 12298 | ;; |
| 12299 | |
| 12300 | *) |
| 12301 | # Assume MSVC and ICC wrapper |
| 12302 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 12303 | dynamic_linker='Win32 ld.exe' |
| 12304 | ;; |
| 12305 | esac |
| 12306 | # FIXME: first we should search . and the directory the executable is in |
| 12307 | shlibpath_var=PATH |
| 12308 | ;; |
| 12309 | |
| 12310 | darwin* | rhapsody*) |
| 12311 | dynamic_linker="$host_os dyld" |
| 12312 | version_type=darwin |
| 12313 | need_lib_prefix=no |
| 12314 | need_version=no |
| 12315 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 12316 | soname_spec='$libname$release$major$shared_ext' |
| 12317 | shlibpath_overrides_runpath=yes |
| 12318 | shlibpath_var=DYLD_LIBRARY_PATH |
| 12319 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 12320 | |
| 12321 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 12322 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12323 | ;; |
| 12324 | |
| 12325 | dgux*) |
| 12326 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12327 | need_lib_prefix=no |
| 12328 | need_version=no |
| 12329 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12330 | soname_spec='$libname$release$shared_ext$major' |
| 12331 | shlibpath_var=LD_LIBRARY_PATH |
| 12332 | ;; |
| 12333 | |
| 12334 | freebsd* | dragonfly* | midnightbsd*) |
| 12335 | # DragonFly does not have aout. When/if they implement a new |
| 12336 | # versioning mechanism, adjust this. |
| 12337 | if test -x /usr/bin/objformat; then |
| 12338 | objformat=`/usr/bin/objformat` |
| 12339 | else |
| 12340 | case $host_os in |
| 12341 | freebsd[23].*) objformat=aout ;; |
| 12342 | *) objformat=elf ;; |
| 12343 | esac |
| 12344 | fi |
| 12345 | version_type=freebsd-$objformat |
| 12346 | case $version_type in |
| 12347 | freebsd-elf*) |
| 12348 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12349 | soname_spec='$libname$release$shared_ext$major' |
| 12350 | need_version=no |
| 12351 | need_lib_prefix=no |
| 12352 | ;; |
| 12353 | freebsd-*) |
| 12354 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 12355 | need_version=yes |
| 12356 | ;; |
| 12357 | esac |
| 12358 | shlibpath_var=LD_LIBRARY_PATH |
| 12359 | case $host_os in |
| 12360 | freebsd2.*) |
| 12361 | shlibpath_overrides_runpath=yes |
| 12362 | ;; |
| 12363 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 12364 | shlibpath_overrides_runpath=yes |
| 12365 | hardcode_into_libs=yes |
| 12366 | ;; |
| 12367 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12368 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 12369 | shlibpath_overrides_runpath=no |
| 12370 | hardcode_into_libs=yes |
| 12371 | ;; |
| 12372 | *) # from 4.6 on, and DragonFly |
| 12373 | shlibpath_overrides_runpath=yes |
| 12374 | hardcode_into_libs=yes |
| 12375 | ;; |
| 12376 | esac |
| 12377 | ;; |
| 12378 | |
| 12379 | haiku*) |
| 12380 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12381 | need_lib_prefix=no |
| 12382 | need_version=no |
| 12383 | dynamic_linker="$host_os runtime_loader" |
| 12384 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12385 | soname_spec='$libname$release$shared_ext$major' |
| 12386 | shlibpath_var=LIBRARY_PATH |
| 12387 | shlibpath_overrides_runpath=no |
| 12388 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 12389 | hardcode_into_libs=yes |
| 12390 | ;; |
| 12391 | |
| 12392 | hpux9* | hpux10* | hpux11*) |
| 12393 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12394 | # link against other versions. |
| 12395 | version_type=sunos |
| 12396 | need_lib_prefix=no |
| 12397 | need_version=no |
| 12398 | case $host_cpu in |
| 12399 | ia64*) |
| 12400 | shrext_cmds='.so' |
| 12401 | hardcode_into_libs=yes |
| 12402 | dynamic_linker="$host_os dld.so" |
| 12403 | shlibpath_var=LD_LIBRARY_PATH |
| 12404 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12405 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12406 | soname_spec='$libname$release$shared_ext$major' |
| 12407 | if test 32 = "$HPUX_IA64_MODE"; then |
| 12408 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12409 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 12410 | else |
| 12411 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12412 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 12413 | fi |
| 12414 | ;; |
| 12415 | hppa*64*) |
| 12416 | shrext_cmds='.sl' |
| 12417 | hardcode_into_libs=yes |
| 12418 | dynamic_linker="$host_os dld.sl" |
| 12419 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12420 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12421 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12422 | soname_spec='$libname$release$shared_ext$major' |
| 12423 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12424 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12425 | ;; |
| 12426 | *) |
| 12427 | shrext_cmds='.sl' |
| 12428 | dynamic_linker="$host_os dld.sl" |
| 12429 | shlibpath_var=SHLIB_PATH |
| 12430 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12431 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12432 | soname_spec='$libname$release$shared_ext$major' |
| 12433 | ;; |
| 12434 | esac |
| 12435 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 12436 | postinstall_cmds='chmod 555 $lib' |
| 12437 | # or fails outright, so override atomically: |
| 12438 | install_override_mode=555 |
| 12439 | ;; |
| 12440 | |
| 12441 | interix[3-9]*) |
| 12442 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12443 | need_lib_prefix=no |
| 12444 | need_version=no |
| 12445 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12446 | soname_spec='$libname$release$shared_ext$major' |
| 12447 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 12448 | shlibpath_var=LD_LIBRARY_PATH |
| 12449 | shlibpath_overrides_runpath=no |
| 12450 | hardcode_into_libs=yes |
| 12451 | ;; |
| 12452 | |
| 12453 | irix5* | irix6* | nonstopux*) |
| 12454 | case $host_os in |
| 12455 | nonstopux*) version_type=nonstopux ;; |
| 12456 | *) |
| 12457 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 12458 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12459 | else |
| 12460 | version_type=irix |
| 12461 | fi ;; |
| 12462 | esac |
| 12463 | need_lib_prefix=no |
| 12464 | need_version=no |
| 12465 | soname_spec='$libname$release$shared_ext$major' |
| 12466 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 12467 | case $host_os in |
| 12468 | irix5* | nonstopux*) |
| 12469 | libsuff= shlibsuff= |
| 12470 | ;; |
| 12471 | *) |
| 12472 | case $LD in # libtool.m4 will add one of these switches to LD |
| 12473 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12474 | libsuff= shlibsuff= libmagic=32-bit;; |
| 12475 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12476 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12477 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12478 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12479 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 12480 | esac |
| 12481 | ;; |
| 12482 | esac |
| 12483 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12484 | shlibpath_overrides_runpath=no |
| 12485 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 12486 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 12487 | hardcode_into_libs=yes |
| 12488 | ;; |
| 12489 | |
| 12490 | # No shared lib support for Linux oldld, aout, or coff. |
| 12491 | linux*oldld* | linux*aout* | linux*coff*) |
| 12492 | dynamic_linker=no |
| 12493 | ;; |
| 12494 | |
| 12495 | linux*android*) |
| 12496 | version_type=none # Android doesn't support versioned libraries. |
| 12497 | need_lib_prefix=no |
| 12498 | need_version=no |
| 12499 | library_names_spec='$libname$release$shared_ext' |
| 12500 | soname_spec='$libname$release$shared_ext' |
| 12501 | finish_cmds= |
| 12502 | shlibpath_var=LD_LIBRARY_PATH |
| 12503 | shlibpath_overrides_runpath=yes |
| 12504 | |
| 12505 | # This implies no fast_install, which is unacceptable. |
| 12506 | # Some rework will be needed to allow for fast_install |
| 12507 | # before this can be enabled. |
| 12508 | hardcode_into_libs=yes |
| 12509 | |
| 12510 | dynamic_linker='Android linker' |
| 12511 | # Don't embed -rpath directories since the linker doesn't support them. |
| 12512 | hardcode_libdir_flag_spec='-L$libdir' |
| 12513 | ;; |
| 12514 | |
| 12515 | # This must be glibc/ELF. |
| 12516 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 12517 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12518 | need_lib_prefix=no |
| 12519 | need_version=no |
| 12520 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12521 | soname_spec='$libname$release$shared_ext$major' |
| 12522 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12523 | shlibpath_var=LD_LIBRARY_PATH |
| 12524 | shlibpath_overrides_runpath=no |
| 12525 | |
| 12526 | # Some binutils ld are patched to set DT_RUNPATH |
| 12527 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 12528 | then : |
| 12529 | printf %s "(cached) " >&6 |
| 12530 | else $as_nop |
| 12531 | lt_cv_shlibpath_overrides_runpath=no |
| 12532 | save_LDFLAGS=$LDFLAGS |
| 12533 | save_libdir=$libdir |
| 12534 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 12535 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 12536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12537 | /* end confdefs.h. */ |
| 12538 | |
| 12539 | int |
| 12540 | main (void) |
| 12541 | { |
| 12542 | |
| 12543 | ; |
| 12544 | return 0; |
| 12545 | } |
| 12546 | _ACEOF |
| 12547 | if ac_fn_c_try_link "$LINENO" |
| 12548 | then : |
| 12549 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 12550 | then : |
| 12551 | lt_cv_shlibpath_overrides_runpath=yes |
| 12552 | fi |
| 12553 | fi |
| 12554 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12555 | conftest$ac_exeext conftest.$ac_ext |
| 12556 | LDFLAGS=$save_LDFLAGS |
| 12557 | libdir=$save_libdir |
| 12558 | |
| 12559 | fi |
| 12560 | |
| 12561 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 12562 | |
| 12563 | # This implies no fast_install, which is unacceptable. |
| 12564 | # Some rework will be needed to allow for fast_install |
| 12565 | # before this can be enabled. |
| 12566 | hardcode_into_libs=yes |
| 12567 | |
| 12568 | # Ideally, we could use ldconfig to report *all* directores which are |
| 12569 | # searched for libraries, however this is still not possible. Aside from not |
| 12570 | # being certain /sbin/ldconfig is available, command |
| 12571 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 12572 | # even though it is searched at run-time. Try to do the best guess by |
| 12573 | # appending ld.so.conf contents (and includes) to the search path. |
| 12574 | if test -f /etc/ld.so.conf; then |
| 12575 | 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' ' '` |
| 12576 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 12577 | fi |
| 12578 | |
| 12579 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 12580 | # powerpc, because MkLinux only supported shared libraries with the |
| 12581 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 12582 | # most powerpc-linux boxes support dynamic linking these days and |
| 12583 | # people can always --disable-shared, the test was removed, and we |
| 12584 | # assume the GNU/Linux dynamic linker is in use. |
| 12585 | dynamic_linker='GNU/Linux ld.so' |
| 12586 | ;; |
| 12587 | |
| 12588 | netbsdelf*-gnu) |
| 12589 | version_type=linux |
| 12590 | need_lib_prefix=no |
| 12591 | need_version=no |
| 12592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12594 | shlibpath_var=LD_LIBRARY_PATH |
| 12595 | shlibpath_overrides_runpath=no |
| 12596 | hardcode_into_libs=yes |
| 12597 | dynamic_linker='NetBSD ld.elf_so' |
| 12598 | ;; |
| 12599 | |
| 12600 | netbsd*) |
| 12601 | version_type=sunos |
| 12602 | need_lib_prefix=no |
| 12603 | need_version=no |
| 12604 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12605 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 12606 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12607 | dynamic_linker='NetBSD (a.out) ld.so' |
| 12608 | else |
| 12609 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12610 | soname_spec='$libname$release$shared_ext$major' |
| 12611 | dynamic_linker='NetBSD ld.elf_so' |
| 12612 | fi |
| 12613 | shlibpath_var=LD_LIBRARY_PATH |
| 12614 | shlibpath_overrides_runpath=yes |
| 12615 | hardcode_into_libs=yes |
| 12616 | ;; |
| 12617 | |
| 12618 | newsos6) |
| 12619 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12620 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12621 | shlibpath_var=LD_LIBRARY_PATH |
| 12622 | shlibpath_overrides_runpath=yes |
| 12623 | ;; |
| 12624 | |
| 12625 | *nto* | *qnx*) |
| 12626 | version_type=qnx |
| 12627 | need_lib_prefix=no |
| 12628 | need_version=no |
| 12629 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12630 | soname_spec='$libname$release$shared_ext$major' |
| 12631 | shlibpath_var=LD_LIBRARY_PATH |
| 12632 | shlibpath_overrides_runpath=no |
| 12633 | hardcode_into_libs=yes |
| 12634 | dynamic_linker='ldqnx.so' |
| 12635 | ;; |
| 12636 | |
| 12637 | openbsd* | bitrig*) |
| 12638 | version_type=sunos |
| 12639 | sys_lib_dlsearch_path_spec=/usr/lib |
| 12640 | need_lib_prefix=no |
| 12641 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 12642 | need_version=no |
| 12643 | else |
| 12644 | need_version=yes |
| 12645 | fi |
| 12646 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 12647 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12648 | shlibpath_var=LD_LIBRARY_PATH |
| 12649 | shlibpath_overrides_runpath=yes |
| 12650 | ;; |
| 12651 | |
| 12652 | os2*) |
| 12653 | libname_spec='$name' |
| 12654 | version_type=windows |
| 12655 | shrext_cmds=.dll |
| 12656 | need_version=no |
| 12657 | need_lib_prefix=no |
| 12658 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 12659 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 12660 | v=$($ECHO $release$versuffix | tr -d .-); |
| 12661 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 12662 | $ECHO $n$v`$shared_ext' |
| 12663 | library_names_spec='${libname}_dll.$libext' |
| 12664 | dynamic_linker='OS/2 ld.exe' |
| 12665 | shlibpath_var=BEGINLIBPATH |
| 12666 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12667 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12668 | postinstall_cmds='base_file=`basename \$file`~ |
| 12669 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 12670 | dldir=$destdir/`dirname \$dlpath`~ |
| 12671 | test -d \$dldir || mkdir -p \$dldir~ |
| 12672 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12673 | chmod a+x \$dldir/$dlname~ |
| 12674 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12675 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12676 | fi' |
| 12677 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 12678 | dlpath=$dir/\$dldll~ |
| 12679 | $RM \$dlpath' |
| 12680 | ;; |
| 12681 | |
| 12682 | osf3* | osf4* | osf5*) |
| 12683 | version_type=osf |
| 12684 | need_lib_prefix=no |
| 12685 | need_version=no |
| 12686 | soname_spec='$libname$release$shared_ext$major' |
| 12687 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12688 | shlibpath_var=LD_LIBRARY_PATH |
| 12689 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 12690 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12691 | ;; |
| 12692 | |
| 12693 | rdos*) |
| 12694 | dynamic_linker=no |
| 12695 | ;; |
| 12696 | |
| 12697 | solaris*) |
| 12698 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12699 | need_lib_prefix=no |
| 12700 | need_version=no |
| 12701 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12702 | soname_spec='$libname$release$shared_ext$major' |
| 12703 | shlibpath_var=LD_LIBRARY_PATH |
| 12704 | shlibpath_overrides_runpath=yes |
| 12705 | hardcode_into_libs=yes |
| 12706 | # ldd complains unless libraries are executable |
| 12707 | postinstall_cmds='chmod +x $lib' |
| 12708 | ;; |
| 12709 | |
| 12710 | sunos4*) |
| 12711 | version_type=sunos |
| 12712 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 12713 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 12714 | shlibpath_var=LD_LIBRARY_PATH |
| 12715 | shlibpath_overrides_runpath=yes |
| 12716 | if test yes = "$with_gnu_ld"; then |
| 12717 | need_lib_prefix=no |
| 12718 | fi |
| 12719 | need_version=yes |
| 12720 | ;; |
| 12721 | |
| 12722 | sysv4 | sysv4.3*) |
| 12723 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12724 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12725 | soname_spec='$libname$release$shared_ext$major' |
| 12726 | shlibpath_var=LD_LIBRARY_PATH |
| 12727 | case $host_vendor in |
| 12728 | sni) |
| 12729 | shlibpath_overrides_runpath=no |
| 12730 | need_lib_prefix=no |
| 12731 | runpath_var=LD_RUN_PATH |
| 12732 | ;; |
| 12733 | siemens) |
| 12734 | need_lib_prefix=no |
| 12735 | ;; |
| 12736 | motorola) |
| 12737 | need_lib_prefix=no |
| 12738 | need_version=no |
| 12739 | shlibpath_overrides_runpath=no |
| 12740 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 12741 | ;; |
| 12742 | esac |
| 12743 | ;; |
| 12744 | |
| 12745 | sysv4*MP*) |
| 12746 | if test -d /usr/nec; then |
| 12747 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12748 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 12749 | soname_spec='$libname$shared_ext.$major' |
| 12750 | shlibpath_var=LD_LIBRARY_PATH |
| 12751 | fi |
| 12752 | ;; |
| 12753 | |
| 12754 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 12755 | version_type=sco |
| 12756 | need_lib_prefix=no |
| 12757 | need_version=no |
| 12758 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 12759 | soname_spec='$libname$release$shared_ext$major' |
| 12760 | shlibpath_var=LD_LIBRARY_PATH |
| 12761 | shlibpath_overrides_runpath=yes |
| 12762 | hardcode_into_libs=yes |
| 12763 | if test yes = "$with_gnu_ld"; then |
| 12764 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 12765 | else |
| 12766 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 12767 | case $host_os in |
| 12768 | sco3.2v5*) |
| 12769 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 12770 | ;; |
| 12771 | esac |
| 12772 | fi |
| 12773 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 12774 | ;; |
| 12775 | |
| 12776 | tpf*) |
| 12777 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 12778 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12779 | need_lib_prefix=no |
| 12780 | need_version=no |
| 12781 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12782 | shlibpath_var=LD_LIBRARY_PATH |
| 12783 | shlibpath_overrides_runpath=no |
| 12784 | hardcode_into_libs=yes |
| 12785 | ;; |
| 12786 | |
| 12787 | uts4*) |
| 12788 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12789 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12790 | soname_spec='$libname$release$shared_ext$major' |
| 12791 | shlibpath_var=LD_LIBRARY_PATH |
| 12792 | ;; |
| 12793 | |
| 12794 | *) |
| 12795 | dynamic_linker=no |
| 12796 | ;; |
| 12797 | esac |
| 12798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 12799 | printf "%s\n" "$dynamic_linker" >&6; } |
| 12800 | test no = "$dynamic_linker" && can_build_shared=no |
| 12801 | |
| 12802 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 12803 | if test yes = "$GCC"; then |
| 12804 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 12805 | fi |
| 12806 | |
| 12807 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 12808 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 12809 | fi |
| 12810 | |
| 12811 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 12812 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 12813 | fi |
| 12814 | |
| 12815 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 12816 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 12817 | |
| 12818 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 12819 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 12820 | |
| 12821 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 12822 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 12823 | |
| 12824 | |
| 12825 | |
| 12826 | |
| 12827 | |
| 12828 | |
| 12829 | |
| 12830 | |
| 12831 | |
| 12832 | |
| 12833 | |
| 12834 | |
| 12835 | |
| 12836 | |
| 12837 | |
| 12838 | |
| 12839 | |
| 12840 | |
| 12841 | |
| 12842 | |
| 12843 | |
| 12844 | |
| 12845 | |
| 12846 | |
| 12847 | |
| 12848 | |
| 12849 | |
| 12850 | |
| 12851 | |
| 12852 | |
| 12853 | |
| 12854 | |
| 12855 | |
| 12856 | |
| 12857 | |
| 12858 | |
| 12859 | |
| 12860 | |
| 12861 | |
| 12862 | |
| 12863 | |
| 12864 | |
| 12865 | |
| 12866 | |
| 12867 | |
| 12868 | |
| 12869 | |
| 12870 | |
| 12871 | |
| 12872 | |
| 12873 | |
| 12874 | |
| 12875 | |
| 12876 | |
| 12877 | |
| 12878 | |
| 12879 | |
| 12880 | |
| 12881 | |
| 12882 | |
| 12883 | |
| 12884 | |
| 12885 | |
| 12886 | |
| 12887 | |
| 12888 | |
| 12889 | |
| 12890 | |
| 12891 | |
| 12892 | |
| 12893 | |
| 12894 | |
| 12895 | |
| 12896 | |
| 12897 | |
| 12898 | |
| 12899 | |
| 12900 | |
| 12901 | |
| 12902 | |
| 12903 | |
| 12904 | |
| 12905 | |
| 12906 | |
| 12907 | |
| 12908 | |
| 12909 | |
| 12910 | |
| 12911 | |
| 12912 | |
| 12913 | |
| 12914 | |
| 12915 | |
| 12916 | |
| 12917 | |
| 12918 | |
| 12919 | |
| 12920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 12921 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 12922 | hardcode_action= |
| 12923 | if test -n "$hardcode_libdir_flag_spec" || |
| 12924 | test -n "$runpath_var" || |
| 12925 | test yes = "$hardcode_automatic"; then |
| 12926 | |
| 12927 | # We can hardcode non-existent directories. |
| 12928 | if test no != "$hardcode_direct" && |
| 12929 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 12930 | # have to relink, otherwise we might link with an installed library |
| 12931 | # when we should be linking with a yet-to-be-installed one |
| 12932 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 12933 | test no != "$hardcode_minus_L"; then |
| 12934 | # Linking always hardcodes the temporary library directory. |
| 12935 | hardcode_action=relink |
| 12936 | else |
| 12937 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 12938 | hardcode_action=immediate |
| 12939 | fi |
| 12940 | else |
| 12941 | # We cannot hardcode anything, or else we can only hardcode existing |
| 12942 | # directories. |
| 12943 | hardcode_action=unsupported |
| 12944 | fi |
| 12945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 12946 | printf "%s\n" "$hardcode_action" >&6; } |
| 12947 | |
| 12948 | if test relink = "$hardcode_action" || |
| 12949 | test yes = "$inherit_rpath"; then |
| 12950 | # Fast installation is not supported |
| 12951 | enable_fast_install=no |
| 12952 | elif test yes = "$shlibpath_overrides_runpath" || |
| 12953 | test no = "$enable_shared"; then |
| 12954 | # Fast installation is not necessary |
| 12955 | enable_fast_install=needless |
| 12956 | fi |
| 12957 | |
| 12958 | |
| 12959 | |
| 12960 | |
| 12961 | |
| 12962 | |
| 12963 | if test yes != "$enable_dlopen"; then |
| 12964 | enable_dlopen=unknown |
| 12965 | enable_dlopen_self=unknown |
| 12966 | enable_dlopen_self_static=unknown |
| 12967 | else |
| 12968 | lt_cv_dlopen=no |
| 12969 | lt_cv_dlopen_libs= |
| 12970 | |
| 12971 | case $host_os in |
| 12972 | beos*) |
| 12973 | lt_cv_dlopen=load_add_on |
| 12974 | lt_cv_dlopen_libs= |
| 12975 | lt_cv_dlopen_self=yes |
| 12976 | ;; |
| 12977 | |
| 12978 | mingw* | pw32* | cegcc*) |
| 12979 | lt_cv_dlopen=LoadLibrary |
| 12980 | lt_cv_dlopen_libs= |
| 12981 | ;; |
| 12982 | |
| 12983 | cygwin*) |
| 12984 | lt_cv_dlopen=dlopen |
| 12985 | lt_cv_dlopen_libs= |
| 12986 | ;; |
| 12987 | |
| 12988 | darwin*) |
| 12989 | # if libdl is installed we need to link against it |
| 12990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 12991 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 12992 | if test ${ac_cv_lib_dl_dlopen+y} |
| 12993 | then : |
| 12994 | printf %s "(cached) " >&6 |
| 12995 | else $as_nop |
| 12996 | ac_check_lib_save_LIBS=$LIBS |
| 12997 | LIBS="-ldl $LIBS" |
| 12998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12999 | /* end confdefs.h. */ |
| 13000 | |
| 13001 | /* Override any GCC internal prototype to avoid an error. |
| 13002 | Use char because int might match the return type of a GCC |
| 13003 | builtin and then its argument prototype would still apply. */ |
| 13004 | char dlopen (); |
| 13005 | int |
| 13006 | main (void) |
| 13007 | { |
| 13008 | return dlopen (); |
| 13009 | ; |
| 13010 | return 0; |
| 13011 | } |
| 13012 | _ACEOF |
| 13013 | if ac_fn_c_try_link "$LINENO" |
| 13014 | then : |
| 13015 | ac_cv_lib_dl_dlopen=yes |
| 13016 | else $as_nop |
| 13017 | ac_cv_lib_dl_dlopen=no |
| 13018 | fi |
| 13019 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13020 | conftest$ac_exeext conftest.$ac_ext |
| 13021 | LIBS=$ac_check_lib_save_LIBS |
| 13022 | fi |
| 13023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13024 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 13025 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13026 | then : |
| 13027 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13028 | else $as_nop |
| 13029 | |
| 13030 | lt_cv_dlopen=dyld |
| 13031 | lt_cv_dlopen_libs= |
| 13032 | lt_cv_dlopen_self=yes |
| 13033 | |
| 13034 | fi |
| 13035 | |
| 13036 | ;; |
| 13037 | |
| 13038 | tpf*) |
| 13039 | # Don't try to run any link tests for TPF. We know it's impossible |
| 13040 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 13041 | lt_cv_dlopen=dlopen |
| 13042 | lt_cv_dlopen_libs= |
| 13043 | lt_cv_dlopen_self=no |
| 13044 | ;; |
| 13045 | |
| 13046 | *) |
| 13047 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 13048 | if test "x$ac_cv_func_shl_load" = xyes |
| 13049 | then : |
| 13050 | lt_cv_dlopen=shl_load |
| 13051 | else $as_nop |
| 13052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 13053 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 13054 | if test ${ac_cv_lib_dld_shl_load+y} |
| 13055 | then : |
| 13056 | printf %s "(cached) " >&6 |
| 13057 | else $as_nop |
| 13058 | ac_check_lib_save_LIBS=$LIBS |
| 13059 | LIBS="-ldld $LIBS" |
| 13060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13061 | /* end confdefs.h. */ |
| 13062 | |
| 13063 | /* Override any GCC internal prototype to avoid an error. |
| 13064 | Use char because int might match the return type of a GCC |
| 13065 | builtin and then its argument prototype would still apply. */ |
| 13066 | char shl_load (); |
| 13067 | int |
| 13068 | main (void) |
| 13069 | { |
| 13070 | return shl_load (); |
| 13071 | ; |
| 13072 | return 0; |
| 13073 | } |
| 13074 | _ACEOF |
| 13075 | if ac_fn_c_try_link "$LINENO" |
| 13076 | then : |
| 13077 | ac_cv_lib_dld_shl_load=yes |
| 13078 | else $as_nop |
| 13079 | ac_cv_lib_dld_shl_load=no |
| 13080 | fi |
| 13081 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13082 | conftest$ac_exeext conftest.$ac_ext |
| 13083 | LIBS=$ac_check_lib_save_LIBS |
| 13084 | fi |
| 13085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13086 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 13087 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 13088 | then : |
| 13089 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 13090 | else $as_nop |
| 13091 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 13092 | if test "x$ac_cv_func_dlopen" = xyes |
| 13093 | then : |
| 13094 | lt_cv_dlopen=dlopen |
| 13095 | else $as_nop |
| 13096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13097 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 13098 | if test ${ac_cv_lib_dl_dlopen+y} |
| 13099 | then : |
| 13100 | printf %s "(cached) " >&6 |
| 13101 | else $as_nop |
| 13102 | ac_check_lib_save_LIBS=$LIBS |
| 13103 | LIBS="-ldl $LIBS" |
| 13104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13105 | /* end confdefs.h. */ |
| 13106 | |
| 13107 | /* Override any GCC internal prototype to avoid an error. |
| 13108 | Use char because int might match the return type of a GCC |
| 13109 | builtin and then its argument prototype would still apply. */ |
| 13110 | char dlopen (); |
| 13111 | int |
| 13112 | main (void) |
| 13113 | { |
| 13114 | return dlopen (); |
| 13115 | ; |
| 13116 | return 0; |
| 13117 | } |
| 13118 | _ACEOF |
| 13119 | if ac_fn_c_try_link "$LINENO" |
| 13120 | then : |
| 13121 | ac_cv_lib_dl_dlopen=yes |
| 13122 | else $as_nop |
| 13123 | ac_cv_lib_dl_dlopen=no |
| 13124 | fi |
| 13125 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13126 | conftest$ac_exeext conftest.$ac_ext |
| 13127 | LIBS=$ac_check_lib_save_LIBS |
| 13128 | fi |
| 13129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13130 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 13131 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13132 | then : |
| 13133 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13134 | else $as_nop |
| 13135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 13136 | printf %s "checking for dlopen in -lsvld... " >&6; } |
| 13137 | if test ${ac_cv_lib_svld_dlopen+y} |
| 13138 | then : |
| 13139 | printf %s "(cached) " >&6 |
| 13140 | else $as_nop |
| 13141 | ac_check_lib_save_LIBS=$LIBS |
| 13142 | LIBS="-lsvld $LIBS" |
| 13143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13144 | /* end confdefs.h. */ |
| 13145 | |
| 13146 | /* Override any GCC internal prototype to avoid an error. |
| 13147 | Use char because int might match the return type of a GCC |
| 13148 | builtin and then its argument prototype would still apply. */ |
| 13149 | char dlopen (); |
| 13150 | int |
| 13151 | main (void) |
| 13152 | { |
| 13153 | return dlopen (); |
| 13154 | ; |
| 13155 | return 0; |
| 13156 | } |
| 13157 | _ACEOF |
| 13158 | if ac_fn_c_try_link "$LINENO" |
| 13159 | then : |
| 13160 | ac_cv_lib_svld_dlopen=yes |
| 13161 | else $as_nop |
| 13162 | ac_cv_lib_svld_dlopen=no |
| 13163 | fi |
| 13164 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13165 | conftest$ac_exeext conftest.$ac_ext |
| 13166 | LIBS=$ac_check_lib_save_LIBS |
| 13167 | fi |
| 13168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13169 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } |
| 13170 | if test "x$ac_cv_lib_svld_dlopen" = xyes |
| 13171 | then : |
| 13172 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 13173 | else $as_nop |
| 13174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 13175 | printf %s "checking for dld_link in -ldld... " >&6; } |
| 13176 | if test ${ac_cv_lib_dld_dld_link+y} |
| 13177 | then : |
| 13178 | printf %s "(cached) " >&6 |
| 13179 | else $as_nop |
| 13180 | ac_check_lib_save_LIBS=$LIBS |
| 13181 | LIBS="-ldld $LIBS" |
| 13182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13183 | /* end confdefs.h. */ |
| 13184 | |
| 13185 | /* Override any GCC internal prototype to avoid an error. |
| 13186 | Use char because int might match the return type of a GCC |
| 13187 | builtin and then its argument prototype would still apply. */ |
| 13188 | char dld_link (); |
| 13189 | int |
| 13190 | main (void) |
| 13191 | { |
| 13192 | return dld_link (); |
| 13193 | ; |
| 13194 | return 0; |
| 13195 | } |
| 13196 | _ACEOF |
| 13197 | if ac_fn_c_try_link "$LINENO" |
| 13198 | then : |
| 13199 | ac_cv_lib_dld_dld_link=yes |
| 13200 | else $as_nop |
| 13201 | ac_cv_lib_dld_dld_link=no |
| 13202 | fi |
| 13203 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13204 | conftest$ac_exeext conftest.$ac_ext |
| 13205 | LIBS=$ac_check_lib_save_LIBS |
| 13206 | fi |
| 13207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13208 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } |
| 13209 | if test "x$ac_cv_lib_dld_dld_link" = xyes |
| 13210 | then : |
| 13211 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 13212 | fi |
| 13213 | |
| 13214 | |
| 13215 | fi |
| 13216 | |
| 13217 | |
| 13218 | fi |
| 13219 | |
| 13220 | |
| 13221 | fi |
| 13222 | |
| 13223 | |
| 13224 | fi |
| 13225 | |
| 13226 | |
| 13227 | fi |
| 13228 | |
| 13229 | ;; |
| 13230 | esac |
| 13231 | |
| 13232 | if test no = "$lt_cv_dlopen"; then |
| 13233 | enable_dlopen=no |
| 13234 | else |
| 13235 | enable_dlopen=yes |
| 13236 | fi |
| 13237 | |
| 13238 | case $lt_cv_dlopen in |
| 13239 | dlopen) |
| 13240 | save_CPPFLAGS=$CPPFLAGS |
| 13241 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13242 | |
| 13243 | save_LDFLAGS=$LDFLAGS |
| 13244 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13245 | |
| 13246 | save_LIBS=$LIBS |
| 13247 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13248 | |
| 13249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 13250 | printf %s "checking whether a program can dlopen itself... " >&6; } |
| 13251 | if test ${lt_cv_dlopen_self+y} |
| 13252 | then : |
| 13253 | printf %s "(cached) " >&6 |
| 13254 | else $as_nop |
| 13255 | if test yes = "$cross_compiling"; then : |
| 13256 | lt_cv_dlopen_self=cross |
| 13257 | else |
| 13258 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13259 | lt_status=$lt_dlunknown |
| 13260 | cat > conftest.$ac_ext <<_LT_EOF |
| 13261 | #line $LINENO "configure" |
| 13262 | #include "confdefs.h" |
| 13263 | |
| 13264 | #if HAVE_DLFCN_H |
| 13265 | #include <dlfcn.h> |
| 13266 | #endif |
| 13267 | |
| 13268 | #include <stdio.h> |
| 13269 | |
| 13270 | #ifdef RTLD_GLOBAL |
| 13271 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13272 | #else |
| 13273 | # ifdef DL_GLOBAL |
| 13274 | # define LT_DLGLOBAL DL_GLOBAL |
| 13275 | # else |
| 13276 | # define LT_DLGLOBAL 0 |
| 13277 | # endif |
| 13278 | #endif |
| 13279 | |
| 13280 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13281 | find out it does not work in some platform. */ |
| 13282 | #ifndef LT_DLLAZY_OR_NOW |
| 13283 | # ifdef RTLD_LAZY |
| 13284 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13285 | # else |
| 13286 | # ifdef DL_LAZY |
| 13287 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13288 | # else |
| 13289 | # ifdef RTLD_NOW |
| 13290 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13291 | # else |
| 13292 | # ifdef DL_NOW |
| 13293 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13294 | # else |
| 13295 | # define LT_DLLAZY_OR_NOW 0 |
| 13296 | # endif |
| 13297 | # endif |
| 13298 | # endif |
| 13299 | # endif |
| 13300 | #endif |
| 13301 | |
| 13302 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 13303 | correspondingly for the symbols needed. */ |
| 13304 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13305 | int fnord () __attribute__((visibility("default"))); |
| 13306 | #endif |
| 13307 | |
| 13308 | int fnord () { return 42; } |
| 13309 | int main () |
| 13310 | { |
| 13311 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13312 | int status = $lt_dlunknown; |
| 13313 | |
| 13314 | if (self) |
| 13315 | { |
| 13316 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13317 | else |
| 13318 | { |
| 13319 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13320 | else puts (dlerror ()); |
| 13321 | } |
| 13322 | /* dlclose (self); */ |
| 13323 | } |
| 13324 | else |
| 13325 | puts (dlerror ()); |
| 13326 | |
| 13327 | return status; |
| 13328 | } |
| 13329 | _LT_EOF |
| 13330 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13331 | (eval $ac_link) 2>&5 |
| 13332 | ac_status=$? |
| 13333 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13334 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 13335 | (./conftest; exit; ) >&5 2>/dev/null |
| 13336 | lt_status=$? |
| 13337 | case x$lt_status in |
| 13338 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 13339 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 13340 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 13341 | esac |
| 13342 | else : |
| 13343 | # compilation failed |
| 13344 | lt_cv_dlopen_self=no |
| 13345 | fi |
| 13346 | fi |
| 13347 | rm -fr conftest* |
| 13348 | |
| 13349 | |
| 13350 | fi |
| 13351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 13352 | printf "%s\n" "$lt_cv_dlopen_self" >&6; } |
| 13353 | |
| 13354 | if test yes = "$lt_cv_dlopen_self"; then |
| 13355 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 13356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 13357 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; } |
| 13358 | if test ${lt_cv_dlopen_self_static+y} |
| 13359 | then : |
| 13360 | printf %s "(cached) " >&6 |
| 13361 | else $as_nop |
| 13362 | if test yes = "$cross_compiling"; then : |
| 13363 | lt_cv_dlopen_self_static=cross |
| 13364 | else |
| 13365 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13366 | lt_status=$lt_dlunknown |
| 13367 | cat > conftest.$ac_ext <<_LT_EOF |
| 13368 | #line $LINENO "configure" |
| 13369 | #include "confdefs.h" |
| 13370 | |
| 13371 | #if HAVE_DLFCN_H |
| 13372 | #include <dlfcn.h> |
| 13373 | #endif |
| 13374 | |
| 13375 | #include <stdio.h> |
| 13376 | |
| 13377 | #ifdef RTLD_GLOBAL |
| 13378 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13379 | #else |
| 13380 | # ifdef DL_GLOBAL |
| 13381 | # define LT_DLGLOBAL DL_GLOBAL |
| 13382 | # else |
| 13383 | # define LT_DLGLOBAL 0 |
| 13384 | # endif |
| 13385 | #endif |
| 13386 | |
| 13387 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13388 | find out it does not work in some platform. */ |
| 13389 | #ifndef LT_DLLAZY_OR_NOW |
| 13390 | # ifdef RTLD_LAZY |
| 13391 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13392 | # else |
| 13393 | # ifdef DL_LAZY |
| 13394 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13395 | # else |
| 13396 | # ifdef RTLD_NOW |
| 13397 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13398 | # else |
| 13399 | # ifdef DL_NOW |
| 13400 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13401 | # else |
| 13402 | # define LT_DLLAZY_OR_NOW 0 |
| 13403 | # endif |
| 13404 | # endif |
| 13405 | # endif |
| 13406 | # endif |
| 13407 | #endif |
| 13408 | |
| 13409 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 13410 | correspondingly for the symbols needed. */ |
| 13411 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13412 | int fnord () __attribute__((visibility("default"))); |
| 13413 | #endif |
| 13414 | |
| 13415 | int fnord () { return 42; } |
| 13416 | int main () |
| 13417 | { |
| 13418 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13419 | int status = $lt_dlunknown; |
| 13420 | |
| 13421 | if (self) |
| 13422 | { |
| 13423 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13424 | else |
| 13425 | { |
| 13426 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13427 | else puts (dlerror ()); |
| 13428 | } |
| 13429 | /* dlclose (self); */ |
| 13430 | } |
| 13431 | else |
| 13432 | puts (dlerror ()); |
| 13433 | |
| 13434 | return status; |
| 13435 | } |
| 13436 | _LT_EOF |
| 13437 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13438 | (eval $ac_link) 2>&5 |
| 13439 | ac_status=$? |
| 13440 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13441 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 13442 | (./conftest; exit; ) >&5 2>/dev/null |
| 13443 | lt_status=$? |
| 13444 | case x$lt_status in |
| 13445 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13446 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13447 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 13448 | esac |
| 13449 | else : |
| 13450 | # compilation failed |
| 13451 | lt_cv_dlopen_self_static=no |
| 13452 | fi |
| 13453 | fi |
| 13454 | rm -fr conftest* |
| 13455 | |
| 13456 | |
| 13457 | fi |
| 13458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 13459 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } |
| 13460 | fi |
| 13461 | |
| 13462 | CPPFLAGS=$save_CPPFLAGS |
| 13463 | LDFLAGS=$save_LDFLAGS |
| 13464 | LIBS=$save_LIBS |
| 13465 | ;; |
| 13466 | esac |
| 13467 | |
| 13468 | case $lt_cv_dlopen_self in |
| 13469 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 13470 | *) enable_dlopen_self=unknown ;; |
| 13471 | esac |
| 13472 | |
| 13473 | case $lt_cv_dlopen_self_static in |
| 13474 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 13475 | *) enable_dlopen_self_static=unknown ;; |
| 13476 | esac |
| 13477 | fi |
| 13478 | |
| 13479 | |
| 13480 | |
| 13481 | |
| 13482 | |
| 13483 | |
| 13484 | |
| 13485 | |
| 13486 | |
| 13487 | |
| 13488 | |
| 13489 | |
| 13490 | |
| 13491 | |
| 13492 | |
| 13493 | |
| 13494 | |
| 13495 | striplib= |
| 13496 | old_striplib= |
| 13497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 13498 | printf %s "checking whether stripping libraries is possible... " >&6; } |
| 13499 | if test -z "$STRIP"; then |
| 13500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13501 | printf "%s\n" "no" >&6; } |
| 13502 | else |
| 13503 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 13504 | old_striplib="$STRIP --strip-debug" |
| 13505 | striplib="$STRIP --strip-unneeded" |
| 13506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13507 | printf "%s\n" "yes" >&6; } |
| 13508 | else |
| 13509 | case $host_os in |
| 13510 | darwin*) |
| 13511 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13512 | striplib="$STRIP -x" |
| 13513 | old_striplib="$STRIP -S" |
| 13514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13515 | printf "%s\n" "yes" >&6; } |
| 13516 | ;; |
| 13517 | freebsd*) |
| 13518 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then |
| 13519 | old_striplib="$STRIP --strip-debug" |
| 13520 | striplib="$STRIP --strip-unneeded" |
| 13521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13522 | printf "%s\n" "yes" >&6; } |
| 13523 | else |
| 13524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13525 | printf "%s\n" "no" >&6; } |
| 13526 | fi |
| 13527 | ;; |
| 13528 | *) |
| 13529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13530 | printf "%s\n" "no" >&6; } |
| 13531 | ;; |
| 13532 | esac |
| 13533 | fi |
| 13534 | fi |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | |
| 13542 | |
| 13543 | |
| 13544 | |
| 13545 | |
| 13546 | |
| 13547 | # Report what library types will actually be built |
| 13548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 13549 | printf %s "checking if libtool supports shared libraries... " >&6; } |
| 13550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 13551 | printf "%s\n" "$can_build_shared" >&6; } |
| 13552 | |
| 13553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 13554 | printf %s "checking whether to build shared libraries... " >&6; } |
| 13555 | test no = "$can_build_shared" && enable_shared=no |
| 13556 | |
| 13557 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13558 | # are all built from PIC. |
| 13559 | case $host_os in |
| 13560 | aix3*) |
| 13561 | test yes = "$enable_shared" && enable_static=no |
| 13562 | if test -n "$RANLIB"; then |
| 13563 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13564 | postinstall_cmds='$RANLIB $lib' |
| 13565 | fi |
| 13566 | ;; |
| 13567 | |
| 13568 | aix[4-9]*) |
| 13569 | if test ia64 != "$host_cpu"; then |
| 13570 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 13571 | yes,aix,yes) ;; # shared object as lib.so file only |
| 13572 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 13573 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 13574 | esac |
| 13575 | fi |
| 13576 | ;; |
| 13577 | esac |
| 13578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 13579 | printf "%s\n" "$enable_shared" >&6; } |
| 13580 | |
| 13581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 13582 | printf %s "checking whether to build static libraries... " >&6; } |
| 13583 | # Make sure either enable_shared or enable_static is yes. |
| 13584 | test yes = "$enable_shared" || enable_static=yes |
| 13585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 13586 | printf "%s\n" "$enable_static" >&6; } |
| 13587 | |
| 13588 | |
| 13589 | |
| 13590 | |
| 13591 | fi |
| 13592 | ac_ext=c |
| 13593 | ac_cpp='$CPP $CPPFLAGS' |
| 13594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13597 | |
| 13598 | CC=$lt_save_CC |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
| 13606 | |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | ac_config_commands="$ac_config_commands libtool" |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | # Only expand once: |
| 13620 | |
| 13621 | |
| 13622 | |
| 13623 | |
| 13624 | ac_config_headers="$ac_config_headers config.h" |
| 13625 | |
| 13626 | |
| 13627 | am__api_version='1.16' |
| 13628 | |
| 13629 | |
| 13630 | # Find a good install program. We prefer a C program (faster), |
| 13631 | # so one script is as good as another. But avoid the broken or |
| 13632 | # incompatible versions: |
| 13633 | # SysV /etc/install, /usr/sbin/install |
| 13634 | # SunOS /usr/etc/install |
| 13635 | # IRIX /sbin/install |
| 13636 | # AIX /bin/install |
| 13637 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 13638 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 13639 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 13640 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 13641 | # OS/2's system install, which has a completely different semantic |
| 13642 | # ./install, which can be erroneously created by make from ./install.sh. |
| 13643 | # Reject install programs that cannot install multiple files. |
| 13644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 13645 | printf %s "checking for a BSD-compatible install... " >&6; } |
| 13646 | if test -z "$INSTALL"; then |
| 13647 | if test ${ac_cv_path_install+y} |
| 13648 | then : |
| 13649 | printf %s "(cached) " >&6 |
| 13650 | else $as_nop |
| 13651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13652 | for as_dir in $PATH |
| 13653 | do |
| 13654 | IFS=$as_save_IFS |
| 13655 | case $as_dir in #((( |
| 13656 | '') as_dir=./ ;; |
| 13657 | */) ;; |
| 13658 | *) as_dir=$as_dir/ ;; |
| 13659 | esac |
| 13660 | # Account for fact that we put trailing slashes in our PATH walk. |
| 13661 | case $as_dir in #(( |
| 13662 | ./ | /[cC]/* | \ |
| 13663 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 13664 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 13665 | /usr/ucb/* ) ;; |
| 13666 | *) |
| 13667 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 13668 | # Don't use installbsd from OSF since it installs stuff as root |
| 13669 | # by default. |
| 13670 | for ac_prog in ginstall scoinst install; do |
| 13671 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13672 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 13673 | if test $ac_prog = install && |
| 13674 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 13675 | # AIX install. It has an incompatible calling convention. |
| 13676 | : |
| 13677 | elif test $ac_prog = install && |
| 13678 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 13679 | # program-specific install script used by HP pwplus--don't use. |
| 13680 | : |
| 13681 | else |
| 13682 | rm -rf conftest.one conftest.two conftest.dir |
| 13683 | echo one > conftest.one |
| 13684 | echo two > conftest.two |
| 13685 | mkdir conftest.dir |
| 13686 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 13687 | test -s conftest.one && test -s conftest.two && |
| 13688 | test -s conftest.dir/conftest.one && |
| 13689 | test -s conftest.dir/conftest.two |
| 13690 | then |
| 13691 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 13692 | break 3 |
| 13693 | fi |
| 13694 | fi |
| 13695 | fi |
| 13696 | done |
| 13697 | done |
| 13698 | ;; |
| 13699 | esac |
| 13700 | |
| 13701 | done |
| 13702 | IFS=$as_save_IFS |
| 13703 | |
| 13704 | rm -rf conftest.one conftest.two conftest.dir |
| 13705 | |
| 13706 | fi |
| 13707 | if test ${ac_cv_path_install+y}; then |
| 13708 | INSTALL=$ac_cv_path_install |
| 13709 | else |
| 13710 | # As a last resort, use the slow shell script. Don't cache a |
| 13711 | # value for INSTALL within a source directory, because that will |
| 13712 | # break other packages using the cache if that directory is |
| 13713 | # removed, or if the value is a relative name. |
| 13714 | INSTALL=$ac_install_sh |
| 13715 | fi |
| 13716 | fi |
| 13717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 13718 | printf "%s\n" "$INSTALL" >&6; } |
| 13719 | |
| 13720 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 13721 | # It thinks the first close brace ends the variable substitution. |
| 13722 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 13723 | |
| 13724 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 13725 | |
| 13726 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 13727 | |
| 13728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 13729 | printf %s "checking whether build environment is sane... " >&6; } |
| 13730 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 13731 | # name. Accept space and tab only in the latter. |
| 13732 | am_lf=' |
| 13733 | ' |
| 13734 | case `pwd` in |
| 13735 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 13736 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 13737 | esac |
| 13738 | case $srcdir in |
| 13739 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 13740 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 13741 | esac |
| 13742 | |
| 13743 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 13744 | # arguments. Must try -L first in case configure is actually a |
| 13745 | # symlink; some systems play weird games with the mod time of symlinks |
| 13746 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 13747 | # directory). |
| 13748 | if ( |
| 13749 | am_has_slept=no |
| 13750 | for am_try in 1 2; do |
| 13751 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 13752 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 13753 | if test "$*" = "X"; then |
| 13754 | # -L didn't work. |
| 13755 | set X `ls -t "$srcdir/configure" conftest.file` |
| 13756 | fi |
| 13757 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 13758 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 13759 | |
| 13760 | # If neither matched, then we have a broken ls. This can happen |
| 13761 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 13762 | # broken ls alias from the environment. This has actually |
| 13763 | # happened. Such a system could not be considered "sane". |
| 13764 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 13765 | alias in your environment" "$LINENO" 5 |
| 13766 | fi |
| 13767 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 13768 | break |
| 13769 | fi |
| 13770 | # Just in case. |
| 13771 | sleep 1 |
| 13772 | am_has_slept=yes |
| 13773 | done |
| 13774 | test "$2" = conftest.file |
| 13775 | ) |
| 13776 | then |
| 13777 | # Ok. |
| 13778 | : |
| 13779 | else |
| 13780 | as_fn_error $? "newly created file is older than distributed files! |
| 13781 | Check your system clock" "$LINENO" 5 |
| 13782 | fi |
| 13783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13784 | printf "%s\n" "yes" >&6; } |
| 13785 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 13786 | # generated files are strictly newer. |
| 13787 | am_sleep_pid= |
| 13788 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 13789 | ( sleep 1 ) & |
| 13790 | am_sleep_pid=$! |
| 13791 | fi |
| 13792 | |
| 13793 | rm -f conftest.file |
| 13794 | |
| 13795 | test "$program_prefix" != NONE && |
| 13796 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 13797 | # Use a double $ so make ignores it. |
| 13798 | test "$program_suffix" != NONE && |
| 13799 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 13800 | # Double any \ or $. |
| 13801 | # By default was `s,x,x', remove it if useless. |
| 13802 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 13803 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 13804 | |
| 13805 | |
| 13806 | if test x"${MISSING+set}" != xset; then |
| 13807 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 13808 | fi |
| 13809 | # Use eval to expand $SHELL |
| 13810 | if eval "$MISSING --is-lightweight"; then |
| 13811 | am_missing_run="$MISSING " |
| 13812 | else |
| 13813 | am_missing_run= |
| 13814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 13815 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 13816 | fi |
| 13817 | |
| 13818 | if test x"${install_sh+set}" != xset; then |
| 13819 | case $am_aux_dir in |
| 13820 | *\ * | *\ *) |
| 13821 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 13822 | *) |
| 13823 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 13824 | esac |
| 13825 | fi |
| 13826 | |
| 13827 | # Installed binaries are usually stripped using 'strip' when the user |
| 13828 | # run "make install-strip". However 'strip' might not be the right |
| 13829 | # tool to use in cross-compilation environments, therefore Automake |
| 13830 | # will honor the 'STRIP' environment variable to overrule this program. |
| 13831 | if test "$cross_compiling" != no; then |
| 13832 | if test -n "$ac_tool_prefix"; then |
| 13833 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13834 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 13835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13836 | printf %s "checking for $ac_word... " >&6; } |
| 13837 | if test ${ac_cv_prog_STRIP+y} |
| 13838 | then : |
| 13839 | printf %s "(cached) " >&6 |
| 13840 | else $as_nop |
| 13841 | if test -n "$STRIP"; then |
| 13842 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13843 | else |
| 13844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13845 | for as_dir in $PATH |
| 13846 | do |
| 13847 | IFS=$as_save_IFS |
| 13848 | case $as_dir in #((( |
| 13849 | '') as_dir=./ ;; |
| 13850 | */) ;; |
| 13851 | *) as_dir=$as_dir/ ;; |
| 13852 | esac |
| 13853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13854 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13855 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13857 | break 2 |
| 13858 | fi |
| 13859 | done |
| 13860 | done |
| 13861 | IFS=$as_save_IFS |
| 13862 | |
| 13863 | fi |
| 13864 | fi |
| 13865 | STRIP=$ac_cv_prog_STRIP |
| 13866 | if test -n "$STRIP"; then |
| 13867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 13868 | printf "%s\n" "$STRIP" >&6; } |
| 13869 | else |
| 13870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13871 | printf "%s\n" "no" >&6; } |
| 13872 | fi |
| 13873 | |
| 13874 | |
| 13875 | fi |
| 13876 | if test -z "$ac_cv_prog_STRIP"; then |
| 13877 | ac_ct_STRIP=$STRIP |
| 13878 | # Extract the first word of "strip", so it can be a program name with args. |
| 13879 | set dummy strip; ac_word=$2 |
| 13880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13881 | printf %s "checking for $ac_word... " >&6; } |
| 13882 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 13883 | then : |
| 13884 | printf %s "(cached) " >&6 |
| 13885 | else $as_nop |
| 13886 | if test -n "$ac_ct_STRIP"; then |
| 13887 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13888 | else |
| 13889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13890 | for as_dir in $PATH |
| 13891 | do |
| 13892 | IFS=$as_save_IFS |
| 13893 | case $as_dir in #((( |
| 13894 | '') as_dir=./ ;; |
| 13895 | */) ;; |
| 13896 | *) as_dir=$as_dir/ ;; |
| 13897 | esac |
| 13898 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13899 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13900 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13901 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13902 | break 2 |
| 13903 | fi |
| 13904 | done |
| 13905 | done |
| 13906 | IFS=$as_save_IFS |
| 13907 | |
| 13908 | fi |
| 13909 | fi |
| 13910 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13911 | if test -n "$ac_ct_STRIP"; then |
| 13912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 13913 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 13914 | else |
| 13915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13916 | printf "%s\n" "no" >&6; } |
| 13917 | fi |
| 13918 | |
| 13919 | if test "x$ac_ct_STRIP" = x; then |
| 13920 | STRIP=":" |
| 13921 | else |
| 13922 | case $cross_compiling:$ac_tool_warned in |
| 13923 | yes:) |
| 13924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13925 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13926 | ac_tool_warned=yes ;; |
| 13927 | esac |
| 13928 | STRIP=$ac_ct_STRIP |
| 13929 | fi |
| 13930 | else |
| 13931 | STRIP="$ac_cv_prog_STRIP" |
| 13932 | fi |
| 13933 | |
| 13934 | fi |
| 13935 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 13936 | |
| 13937 | |
| 13938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 13939 | printf %s "checking for a race-free mkdir -p... " >&6; } |
| 13940 | if test -z "$MKDIR_P"; then |
| 13941 | if test ${ac_cv_path_mkdir+y} |
| 13942 | then : |
| 13943 | printf %s "(cached) " >&6 |
| 13944 | else $as_nop |
| 13945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13946 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 13947 | do |
| 13948 | IFS=$as_save_IFS |
| 13949 | case $as_dir in #((( |
| 13950 | '') as_dir=./ ;; |
| 13951 | */) ;; |
| 13952 | *) as_dir=$as_dir/ ;; |
| 13953 | esac |
| 13954 | for ac_prog in mkdir gmkdir; do |
| 13955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13956 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 13957 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 13958 | 'mkdir ('*'coreutils) '* | \ |
| 13959 | 'BusyBox '* | \ |
| 13960 | 'mkdir (fileutils) '4.1*) |
| 13961 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 13962 | break 3;; |
| 13963 | esac |
| 13964 | done |
| 13965 | done |
| 13966 | done |
| 13967 | IFS=$as_save_IFS |
| 13968 | |
| 13969 | fi |
| 13970 | |
| 13971 | test -d ./--version && rmdir ./--version |
| 13972 | if test ${ac_cv_path_mkdir+y}; then |
| 13973 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 13974 | else |
| 13975 | # As a last resort, use the slow shell script. Don't cache a |
| 13976 | # value for MKDIR_P within a source directory, because that will |
| 13977 | # break other packages using the cache if that directory is |
| 13978 | # removed, or if the value is a relative name. |
| 13979 | MKDIR_P="$ac_install_sh -d" |
| 13980 | fi |
| 13981 | fi |
| 13982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 13983 | printf "%s\n" "$MKDIR_P" >&6; } |
| 13984 | |
| 13985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 13986 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 13987 | set x ${MAKE-make} |
| 13988 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 13989 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 13990 | then : |
| 13991 | printf %s "(cached) " >&6 |
| 13992 | else $as_nop |
| 13993 | cat >conftest.make <<\_ACEOF |
| 13994 | SHELL = /bin/sh |
| 13995 | all: |
| 13996 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 13997 | _ACEOF |
| 13998 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 13999 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 14000 | *@@@%%%=?*=@@@%%%*) |
| 14001 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 14002 | *) |
| 14003 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 14004 | esac |
| 14005 | rm -f conftest.make |
| 14006 | fi |
| 14007 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 14008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14009 | printf "%s\n" "yes" >&6; } |
| 14010 | SET_MAKE= |
| 14011 | else |
| 14012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14013 | printf "%s\n" "no" >&6; } |
| 14014 | SET_MAKE="MAKE=${MAKE-make}" |
| 14015 | fi |
| 14016 | |
| 14017 | rm -rf .tst 2>/dev/null |
| 14018 | mkdir .tst 2>/dev/null |
| 14019 | if test -d .tst; then |
| 14020 | am__leading_dot=. |
| 14021 | else |
| 14022 | am__leading_dot=_ |
| 14023 | fi |
| 14024 | rmdir .tst 2>/dev/null |
| 14025 | |
| 14026 | DEPDIR="${am__leading_dot}deps" |
| 14027 | |
| 14028 | ac_config_commands="$ac_config_commands depfiles" |
| 14029 | |
| 14030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 14031 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 14032 | cat > confinc.mk << 'END' |
| 14033 | am__doit: |
| 14034 | @echo this is the am__doit target >confinc.out |
| 14035 | .PHONY: am__doit |
| 14036 | END |
| 14037 | am__include="#" |
| 14038 | am__quote= |
| 14039 | # BSD make does it like this. |
| 14040 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 14041 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 14042 | echo 'include confinc.mk # ignored' > confmf.GNU |
| 14043 | _am_result=no |
| 14044 | for s in GNU BSD; do |
| 14045 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 14046 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 14047 | ac_status=$? |
| 14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14049 | (exit $ac_status); } |
| 14050 | case $?:`cat confinc.out 2>/dev/null` in #( |
| 14051 | '0:this is the am__doit target') : |
| 14052 | case $s in #( |
| 14053 | BSD) : |
| 14054 | am__include='.include' am__quote='"' ;; #( |
| 14055 | *) : |
| 14056 | am__include='include' am__quote='' ;; |
| 14057 | esac ;; #( |
| 14058 | *) : |
| 14059 | ;; |
| 14060 | esac |
| 14061 | if test "$am__include" != "#"; then |
| 14062 | _am_result="yes ($s style)" |
| 14063 | break |
| 14064 | fi |
| 14065 | done |
| 14066 | rm -f confinc.* confmf.* |
| 14067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 14068 | printf "%s\n" "${_am_result}" >&6; } |
| 14069 | |
| 14070 | # Check whether --enable-dependency-tracking was given. |
| 14071 | if test ${enable_dependency_tracking+y} |
| 14072 | then : |
| 14073 | enableval=$enable_dependency_tracking; |
| 14074 | fi |
| 14075 | |
| 14076 | if test "x$enable_dependency_tracking" != xno; then |
| 14077 | am_depcomp="$ac_aux_dir/depcomp" |
| 14078 | AMDEPBACKSLASH='\' |
| 14079 | am__nodep='_no' |
| 14080 | fi |
| 14081 | if test "x$enable_dependency_tracking" != xno; then |
| 14082 | AMDEP_TRUE= |
| 14083 | AMDEP_FALSE='#' |
| 14084 | else |
| 14085 | AMDEP_TRUE='#' |
| 14086 | AMDEP_FALSE= |
| 14087 | fi |
| 14088 | |
| 14089 | |
| 14090 | # Check whether --enable-silent-rules was given. |
| 14091 | if test ${enable_silent_rules+y} |
| 14092 | then : |
| 14093 | enableval=$enable_silent_rules; |
| 14094 | fi |
| 14095 | |
| 14096 | case $enable_silent_rules in # ((( |
| 14097 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 14098 | no) AM_DEFAULT_VERBOSITY=1;; |
| 14099 | *) AM_DEFAULT_VERBOSITY=1;; |
| 14100 | esac |
| 14101 | am_make=${MAKE-make} |
| 14102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 14103 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 14104 | if test ${am_cv_make_support_nested_variables+y} |
| 14105 | then : |
| 14106 | printf %s "(cached) " >&6 |
| 14107 | else $as_nop |
| 14108 | if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 14109 | BAR0=false |
| 14110 | BAR1=true |
| 14111 | V=1 |
| 14112 | am__doit: |
| 14113 | @$(TRUE) |
| 14114 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 14115 | am_cv_make_support_nested_variables=yes |
| 14116 | else |
| 14117 | am_cv_make_support_nested_variables=no |
| 14118 | fi |
| 14119 | fi |
| 14120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 14121 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 14122 | if test $am_cv_make_support_nested_variables = yes; then |
| 14123 | AM_V='$(V)' |
| 14124 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 14125 | else |
| 14126 | AM_V=$AM_DEFAULT_VERBOSITY |
| 14127 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 14128 | fi |
| 14129 | AM_BACKSLASH='\' |
| 14130 | |
| 14131 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 14132 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 14133 | # is not polluted with repeated "-I." |
| 14134 | am__isrc=' -I$(srcdir)' |
| 14135 | # test to see if srcdir already configured |
| 14136 | if test -f $srcdir/config.status; then |
| 14137 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 14138 | fi |
| 14139 | fi |
| 14140 | |
| 14141 | # test whether we have cygpath |
| 14142 | if test -z "$CYGPATH_W"; then |
| 14143 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 14144 | CYGPATH_W='cygpath -w' |
| 14145 | else |
| 14146 | CYGPATH_W=echo |
| 14147 | fi |
| 14148 | fi |
| 14149 | |
| 14150 | |
| 14151 | # Define the identity of the package. |
| 14152 | PACKAGE='flatpak-builder' |
| 14153 | VERSION='1.4.10' |
| 14154 | |
| 14155 | |
| 14156 | # Some tools Automake needs. |
| 14157 | |
| 14158 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 14159 | |
| 14160 | |
| 14161 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 14162 | |
| 14163 | |
| 14164 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 14165 | |
| 14166 | |
| 14167 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 14168 | |
| 14169 | |
| 14170 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 14171 | |
| 14172 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 14173 | # dies out for good. For more background, see: |
| 14174 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 14175 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 14176 | mkdir_p='$(MKDIR_P)' |
| 14177 | |
| 14178 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 14179 | # system "awk" is bad on some platforms. |
| 14180 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 14181 | # in the wild :-( We should find a proper way to deprecate it ... |
| 14182 | AMTAR='$${TAR-tar}' |
| 14183 | |
| 14184 | |
| 14185 | # We'll loop over all known methods to create a tar archive until one works. |
| 14186 | _am_tools='gnutar plaintar pax cpio none' |
| 14187 | |
| 14188 | # The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 14189 | # There is notably a 21 bits limit for the UID and the GID. In fact, |
| 14190 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 14191 | # and bug#13588). |
| 14192 | am_max_uid=2097151 # 2^21 - 1 |
| 14193 | am_max_gid=$am_max_uid |
| 14194 | # The $UID and $GID variables are not portable, so we need to resort |
| 14195 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 14196 | # below are definitely unexpected, so allow the users to see them |
| 14197 | # (that is, avoid stderr redirection). |
| 14198 | am_uid=`id -u || echo unknown` |
| 14199 | am_gid=`id -g || echo unknown` |
| 14200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 |
| 14201 | printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } |
| 14202 | if test $am_uid -le $am_max_uid; then |
| 14203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14204 | printf "%s\n" "yes" >&6; } |
| 14205 | else |
| 14206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14207 | printf "%s\n" "no" >&6; } |
| 14208 | _am_tools=none |
| 14209 | fi |
| 14210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 |
| 14211 | printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } |
| 14212 | if test $am_gid -le $am_max_gid; then |
| 14213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14214 | printf "%s\n" "yes" >&6; } |
| 14215 | else |
| 14216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14217 | printf "%s\n" "no" >&6; } |
| 14218 | _am_tools=none |
| 14219 | fi |
| 14220 | |
| 14221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 14222 | printf %s "checking how to create a ustar tar archive... " >&6; } |
| 14223 | |
| 14224 | # Go ahead even if we have the value already cached. We do so because we |
| 14225 | # need to set the values for the 'am__tar' and 'am__untar' variables. |
| 14226 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 14227 | |
| 14228 | for _am_tool in $_am_tools; do |
| 14229 | case $_am_tool in |
| 14230 | gnutar) |
| 14231 | for _am_tar in tar gnutar gtar; do |
| 14232 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 14233 | ($_am_tar --version) >&5 2>&5 |
| 14234 | ac_status=$? |
| 14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14236 | (exit $ac_status); } && break |
| 14237 | done |
| 14238 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 14239 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 14240 | am__untar="$_am_tar -xf -" |
| 14241 | ;; |
| 14242 | plaintar) |
| 14243 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 14244 | # ustar tarball either. |
| 14245 | (tar --version) >/dev/null 2>&1 && continue |
| 14246 | am__tar='tar chf - "$$tardir"' |
| 14247 | am__tar_='tar chf - "$tardir"' |
| 14248 | am__untar='tar xf -' |
| 14249 | ;; |
| 14250 | pax) |
| 14251 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 14252 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 14253 | am__untar='pax -r' |
| 14254 | ;; |
| 14255 | cpio) |
| 14256 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 14257 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 14258 | am__untar='cpio -i -H ustar -d' |
| 14259 | ;; |
| 14260 | none) |
| 14261 | am__tar=false |
| 14262 | am__tar_=false |
| 14263 | am__untar=false |
| 14264 | ;; |
| 14265 | esac |
| 14266 | |
| 14267 | # If the value was cached, stop now. We just wanted to have am__tar |
| 14268 | # and am__untar set. |
| 14269 | test -n "${am_cv_prog_tar_ustar}" && break |
| 14270 | |
| 14271 | # tar/untar a dummy directory, and stop if the command works. |
| 14272 | rm -rf conftest.dir |
| 14273 | mkdir conftest.dir |
| 14274 | echo GrepMe > conftest.dir/file |
| 14275 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 14276 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); } |
| 14280 | rm -rf conftest.dir |
| 14281 | if test -s conftest.tar; then |
| 14282 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 14283 | ($am__untar <conftest.tar) >&5 2>&5 |
| 14284 | ac_status=$? |
| 14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14286 | (exit $ac_status); } |
| 14287 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
| 14288 | (cat conftest.dir/file) >&5 2>&5 |
| 14289 | ac_status=$? |
| 14290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14291 | (exit $ac_status); } |
| 14292 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 14293 | fi |
| 14294 | done |
| 14295 | rm -rf conftest.dir |
| 14296 | |
| 14297 | if test ${am_cv_prog_tar_ustar+y} |
| 14298 | then : |
| 14299 | printf %s "(cached) " >&6 |
| 14300 | else $as_nop |
| 14301 | am_cv_prog_tar_ustar=$_am_tool |
| 14302 | fi |
| 14303 | |
| 14304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 14305 | printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } |
| 14306 | |
| 14307 | |
| 14308 | |
| 14309 | |
| 14310 | |
| 14311 | depcc="$CC" am_compiler_list= |
| 14312 | |
| 14313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 14314 | printf %s "checking dependency style of $depcc... " >&6; } |
| 14315 | if test ${am_cv_CC_dependencies_compiler_type+y} |
| 14316 | then : |
| 14317 | printf %s "(cached) " >&6 |
| 14318 | else $as_nop |
| 14319 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 14320 | # We make a subdir and do the tests there. Otherwise we can end up |
| 14321 | # making bogus files that we don't know about and never remove. For |
| 14322 | # instance it was reported that on HP-UX the gcc test will end up |
| 14323 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 14324 | # in D". |
| 14325 | rm -rf conftest.dir |
| 14326 | mkdir conftest.dir |
| 14327 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 14328 | # using a relative directory. |
| 14329 | cp "$am_depcomp" conftest.dir |
| 14330 | cd conftest.dir |
| 14331 | # We will build objects and dependencies in a subdirectory because |
| 14332 | # it helps to detect inapplicable dependency modes. For instance |
| 14333 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 14334 | # side effect of compilation, but ICC will put the dependencies in |
| 14335 | # the current directory while Tru64 will put them in the object |
| 14336 | # directory. |
| 14337 | mkdir sub |
| 14338 | |
| 14339 | am_cv_CC_dependencies_compiler_type=none |
| 14340 | if test "$am_compiler_list" = ""; then |
| 14341 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 14342 | fi |
| 14343 | am__universal=false |
| 14344 | case " $depcc " in #( |
| 14345 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 14346 | esac |
| 14347 | |
| 14348 | for depmode in $am_compiler_list; do |
| 14349 | # Setup a source with many dependencies, because some compilers |
| 14350 | # like to wrap large dependency lists on column 80 (with \), and |
| 14351 | # we should not choose a depcomp mode which is confused by this. |
| 14352 | # |
| 14353 | # We need to recreate these files for each test, as the compiler may |
| 14354 | # overwrite some of them when testing with obscure command lines. |
| 14355 | # This happens at least with the AIX C compiler. |
| 14356 | : > sub/conftest.c |
| 14357 | for i in 1 2 3 4 5 6; do |
| 14358 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 14359 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 14360 | # Solaris 10 /bin/sh. |
| 14361 | echo '/* dummy */' > sub/conftst$i.h |
| 14362 | done |
| 14363 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 14364 | |
| 14365 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 14366 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 14367 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 14368 | # versions had trouble with output in subdirs. |
| 14369 | am__obj=sub/conftest.${OBJEXT-o} |
| 14370 | am__minus_obj="-o $am__obj" |
| 14371 | case $depmode in |
| 14372 | gcc) |
| 14373 | # This depmode causes a compiler race in universal mode. |
| 14374 | test "$am__universal" = false || continue |
| 14375 | ;; |
| 14376 | nosideeffect) |
| 14377 | # After this tag, mechanisms are not by side-effect, so they'll |
| 14378 | # only be used when explicitly requested. |
| 14379 | if test "x$enable_dependency_tracking" = xyes; then |
| 14380 | continue |
| 14381 | else |
| 14382 | break |
| 14383 | fi |
| 14384 | ;; |
| 14385 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 14386 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 14387 | # not run yet. These depmodes are late enough in the game, and |
| 14388 | # so weak that their functioning should not be impacted. |
| 14389 | am__obj=conftest.${OBJEXT-o} |
| 14390 | am__minus_obj= |
| 14391 | ;; |
| 14392 | none) break ;; |
| 14393 | esac |
| 14394 | if depmode=$depmode \ |
| 14395 | source=sub/conftest.c object=$am__obj \ |
| 14396 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 14397 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 14398 | >/dev/null 2>conftest.err && |
| 14399 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 14400 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 14401 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 14402 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 14403 | # icc doesn't choke on unknown options, it will just issue warnings |
| 14404 | # or remarks (even with -Werror). So we grep stderr for any message |
| 14405 | # that says an option was ignored or not supported. |
| 14406 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 14407 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 14408 | # The diagnosis changed in icc 8.0: |
| 14409 | # icc: Command line remark: option '-MP' not supported |
| 14410 | if (grep 'ignoring option' conftest.err || |
| 14411 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 14412 | am_cv_CC_dependencies_compiler_type=$depmode |
| 14413 | break |
| 14414 | fi |
| 14415 | fi |
| 14416 | done |
| 14417 | |
| 14418 | cd .. |
| 14419 | rm -rf conftest.dir |
| 14420 | else |
| 14421 | am_cv_CC_dependencies_compiler_type=none |
| 14422 | fi |
| 14423 | |
| 14424 | fi |
| 14425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 14426 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 14427 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 14428 | |
| 14429 | if |
| 14430 | test "x$enable_dependency_tracking" != xno \ |
| 14431 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 14432 | am__fastdepCC_TRUE= |
| 14433 | am__fastdepCC_FALSE='#' |
| 14434 | else |
| 14435 | am__fastdepCC_TRUE='#' |
| 14436 | am__fastdepCC_FALSE= |
| 14437 | fi |
| 14438 | |
| 14439 | |
| 14440 | # Variables for tags utilities; see am/tags.am |
| 14441 | if test -z "$CTAGS"; then |
| 14442 | CTAGS=ctags |
| 14443 | fi |
| 14444 | |
| 14445 | if test -z "$ETAGS"; then |
| 14446 | ETAGS=etags |
| 14447 | fi |
| 14448 | |
| 14449 | if test -z "$CSCOPE"; then |
| 14450 | CSCOPE=cscope |
| 14451 | fi |
| 14452 | |
| 14453 | |
| 14454 | |
| 14455 | # POSIX will say in a future version that running "rm -f" with no argument |
| 14456 | # is OK; and we want to be able to make that assumption in our Makefile |
| 14457 | # recipes. So use an aggressive probe to check that the usage we want is |
| 14458 | # actually supported "in the wild" to an acceptable degree. |
| 14459 | # See automake bug#10828. |
| 14460 | # To make any issue more visible, cause the running configure to be aborted |
| 14461 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 14462 | # user can still override this though. |
| 14463 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 14464 | cat >&2 <<'END' |
| 14465 | Oops! |
| 14466 | |
| 14467 | Your 'rm' program seems unable to run without file operands specified |
| 14468 | on the command line, even when the '-f' option is present. This is contrary |
| 14469 | to the behaviour of most rm programs out there, and not conforming with |
| 14470 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 14471 | |
| 14472 | Please tell [email protected] about your system, including the value |
| 14473 | of your $PATH and any error possibly output before this message. This |
| 14474 | can help us improve future automake versions. |
| 14475 | |
| 14476 | END |
| 14477 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 14478 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 14479 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 14480 | echo >&2 |
| 14481 | else |
| 14482 | cat >&2 <<'END' |
| 14483 | Aborting the configuration process, to ensure you take notice of the issue. |
| 14484 | |
| 14485 | You can download and install GNU coreutils to get an 'rm' implementation |
| 14486 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 14487 | |
| 14488 | If you want to complete the configuration process using your problematic |
| 14489 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 14490 | to "yes", and re-run configure. |
| 14491 | |
| 14492 | END |
| 14493 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 14494 | fi |
| 14495 | fi |
| 14496 | |
| 14497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 14498 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 14499 | if test ${ac_cv_path_SED+y} |
| 14500 | then : |
| 14501 | printf %s "(cached) " >&6 |
| 14502 | else $as_nop |
| 14503 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 14504 | for ac_i in 1 2 3 4 5 6 7; do |
| 14505 | ac_script="$ac_script$as_nl$ac_script" |
| 14506 | done |
| 14507 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 14508 | { ac_script=; unset ac_script;} |
| 14509 | if test -z "$SED"; then |
| 14510 | ac_path_SED_found=false |
| 14511 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 14512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14513 | for as_dir in $PATH |
| 14514 | do |
| 14515 | IFS=$as_save_IFS |
| 14516 | case $as_dir in #((( |
| 14517 | '') as_dir=./ ;; |
| 14518 | */) ;; |
| 14519 | *) as_dir=$as_dir/ ;; |
| 14520 | esac |
| 14521 | for ac_prog in sed gsed |
| 14522 | do |
| 14523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14524 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 14525 | as_fn_executable_p "$ac_path_SED" || continue |
| 14526 | # Check for GNU ac_path_SED and select it if it is found. |
| 14527 | # Check for GNU $ac_path_SED |
| 14528 | case `"$ac_path_SED" --version 2>&1` in |
| 14529 | *GNU*) |
| 14530 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 14531 | *) |
| 14532 | ac_count=0 |
| 14533 | printf %s 0123456789 >"conftest.in" |
| 14534 | while : |
| 14535 | do |
| 14536 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 14537 | mv "conftest.tmp" "conftest.in" |
| 14538 | cp "conftest.in" "conftest.nl" |
| 14539 | printf "%s\n" '' >> "conftest.nl" |
| 14540 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 14541 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 14542 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 14543 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 14544 | # Best one so far, save it but keep looking for a better one |
| 14545 | ac_cv_path_SED="$ac_path_SED" |
| 14546 | ac_path_SED_max=$ac_count |
| 14547 | fi |
| 14548 | # 10*(2^10) chars as input seems more than enough |
| 14549 | test $ac_count -gt 10 && break |
| 14550 | done |
| 14551 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 14552 | esac |
| 14553 | |
| 14554 | $ac_path_SED_found && break 3 |
| 14555 | done |
| 14556 | done |
| 14557 | done |
| 14558 | IFS=$as_save_IFS |
| 14559 | if test -z "$ac_cv_path_SED"; then |
| 14560 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 14561 | fi |
| 14562 | else |
| 14563 | ac_cv_path_SED=$SED |
| 14564 | fi |
| 14565 | |
| 14566 | fi |
| 14567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 14568 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 14569 | SED="$ac_cv_path_SED" |
| 14570 | rm -f conftest.sed |
| 14571 | |
| 14572 | |
| 14573 | |
| 14574 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 14575 | printf %s "checking whether NLS is requested... " >&6; } |
| 14576 | # Check whether --enable-nls was given. |
| 14577 | if test ${enable_nls+y} |
| 14578 | then : |
| 14579 | enableval=$enable_nls; USE_NLS=$enableval |
| 14580 | else $as_nop |
| 14581 | USE_NLS=yes |
| 14582 | fi |
| 14583 | |
| 14584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 14585 | printf "%s\n" "$USE_NLS" >&6; } |
| 14586 | |
| 14587 | |
| 14588 | |
| 14589 | |
| 14590 | GETTEXT_MACRO_VERSION=0.18 |
| 14591 | |
| 14592 | |
| 14593 | |
| 14594 | |
| 14595 | # Prepare PATH_SEPARATOR. |
| 14596 | # The user is always right. |
| 14597 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14598 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14599 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14600 | # so we have to set that as well for the test. |
| 14601 | PATH_SEPARATOR=: |
| 14602 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14603 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14604 | || PATH_SEPARATOR=';' |
| 14605 | } |
| 14606 | fi |
| 14607 | |
| 14608 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 14609 | # as systems may use methods other than mode bits to determine executability. |
| 14610 | cat >conf$$.file <<_ASEOF |
| 14611 | #! /bin/sh |
| 14612 | exit 0 |
| 14613 | _ASEOF |
| 14614 | chmod +x conf$$.file |
| 14615 | if test -x conf$$.file >/dev/null 2>&1; then |
| 14616 | ac_executable_p="test -x" |
| 14617 | else |
| 14618 | ac_executable_p="test -f" |
| 14619 | fi |
| 14620 | rm -f conf$$.file |
| 14621 | |
| 14622 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14623 | set dummy msgfmt; ac_word=$2 |
| 14624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14625 | printf %s "checking for $ac_word... " >&6; } |
| 14626 | if test ${ac_cv_path_MSGFMT+y} |
| 14627 | then : |
| 14628 | printf %s "(cached) " >&6 |
| 14629 | else $as_nop |
| 14630 | case "$MSGFMT" in |
| 14631 | [\\/]* | ?:[\\/]*) |
| 14632 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 14633 | ;; |
| 14634 | *) |
| 14635 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14636 | for ac_dir in $PATH; do |
| 14637 | IFS="$ac_save_IFS" |
| 14638 | test -z "$ac_dir" && ac_dir=. |
| 14639 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14640 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14641 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14642 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 14643 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 14644 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 14645 | break 2 |
| 14646 | fi |
| 14647 | fi |
| 14648 | done |
| 14649 | done |
| 14650 | IFS="$ac_save_IFS" |
| 14651 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 14652 | ;; |
| 14653 | esac |
| 14654 | fi |
| 14655 | MSGFMT="$ac_cv_path_MSGFMT" |
| 14656 | if test "$MSGFMT" != ":"; then |
| 14657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 14658 | printf "%s\n" "$MSGFMT" >&6; } |
| 14659 | else |
| 14660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14661 | printf "%s\n" "no" >&6; } |
| 14662 | fi |
| 14663 | |
| 14664 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 14665 | set dummy gmsgfmt; ac_word=$2 |
| 14666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14667 | printf %s "checking for $ac_word... " >&6; } |
| 14668 | if test ${ac_cv_path_GMSGFMT+y} |
| 14669 | then : |
| 14670 | printf %s "(cached) " >&6 |
| 14671 | else $as_nop |
| 14672 | case $GMSGFMT in |
| 14673 | [\\/]* | ?:[\\/]*) |
| 14674 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 14675 | ;; |
| 14676 | *) |
| 14677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14678 | for as_dir in $PATH |
| 14679 | do |
| 14680 | IFS=$as_save_IFS |
| 14681 | case $as_dir in #((( |
| 14682 | '') as_dir=./ ;; |
| 14683 | */) ;; |
| 14684 | *) as_dir=$as_dir/ ;; |
| 14685 | esac |
| 14686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14687 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 14688 | ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" |
| 14689 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 14690 | break 2 |
| 14691 | fi |
| 14692 | done |
| 14693 | done |
| 14694 | IFS=$as_save_IFS |
| 14695 | |
| 14696 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 14697 | ;; |
| 14698 | esac |
| 14699 | fi |
| 14700 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 14701 | if test -n "$GMSGFMT"; then |
| 14702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
| 14703 | printf "%s\n" "$GMSGFMT" >&6; } |
| 14704 | else |
| 14705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14706 | printf "%s\n" "no" >&6; } |
| 14707 | fi |
| 14708 | |
| 14709 | |
| 14710 | |
| 14711 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14712 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 14713 | *) MSGFMT_015=$MSGFMT ;; |
| 14714 | esac |
| 14715 | |
| 14716 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14717 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 14718 | *) GMSGFMT_015=$GMSGFMT ;; |
| 14719 | esac |
| 14720 | |
| 14721 | |
| 14722 | |
| 14723 | # Prepare PATH_SEPARATOR. |
| 14724 | # The user is always right. |
| 14725 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14726 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14727 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14728 | # so we have to set that as well for the test. |
| 14729 | PATH_SEPARATOR=: |
| 14730 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14731 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14732 | || PATH_SEPARATOR=';' |
| 14733 | } |
| 14734 | fi |
| 14735 | |
| 14736 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 14737 | # as systems may use methods other than mode bits to determine executability. |
| 14738 | cat >conf$$.file <<_ASEOF |
| 14739 | #! /bin/sh |
| 14740 | exit 0 |
| 14741 | _ASEOF |
| 14742 | chmod +x conf$$.file |
| 14743 | if test -x conf$$.file >/dev/null 2>&1; then |
| 14744 | ac_executable_p="test -x" |
| 14745 | else |
| 14746 | ac_executable_p="test -f" |
| 14747 | fi |
| 14748 | rm -f conf$$.file |
| 14749 | |
| 14750 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 14751 | set dummy xgettext; ac_word=$2 |
| 14752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14753 | printf %s "checking for $ac_word... " >&6; } |
| 14754 | if test ${ac_cv_path_XGETTEXT+y} |
| 14755 | then : |
| 14756 | printf %s "(cached) " >&6 |
| 14757 | else $as_nop |
| 14758 | case "$XGETTEXT" in |
| 14759 | [\\/]* | ?:[\\/]*) |
| 14760 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 14761 | ;; |
| 14762 | *) |
| 14763 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14764 | for ac_dir in $PATH; do |
| 14765 | IFS="$ac_save_IFS" |
| 14766 | test -z "$ac_dir" && ac_dir=. |
| 14767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14768 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14769 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14770 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 14771 | (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 |
| 14772 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 14773 | break 2 |
| 14774 | fi |
| 14775 | fi |
| 14776 | done |
| 14777 | done |
| 14778 | IFS="$ac_save_IFS" |
| 14779 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 14780 | ;; |
| 14781 | esac |
| 14782 | fi |
| 14783 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 14784 | if test "$XGETTEXT" != ":"; then |
| 14785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
| 14786 | printf "%s\n" "$XGETTEXT" >&6; } |
| 14787 | else |
| 14788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14789 | printf "%s\n" "no" >&6; } |
| 14790 | fi |
| 14791 | |
| 14792 | rm -f messages.po |
| 14793 | |
| 14794 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14795 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 14796 | *) XGETTEXT_015=$XGETTEXT ;; |
| 14797 | esac |
| 14798 | |
| 14799 | |
| 14800 | |
| 14801 | # Prepare PATH_SEPARATOR. |
| 14802 | # The user is always right. |
| 14803 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14804 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14805 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14806 | # so we have to set that as well for the test. |
| 14807 | PATH_SEPARATOR=: |
| 14808 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14809 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14810 | || PATH_SEPARATOR=';' |
| 14811 | } |
| 14812 | fi |
| 14813 | |
| 14814 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 14815 | # as systems may use methods other than mode bits to determine executability. |
| 14816 | cat >conf$$.file <<_ASEOF |
| 14817 | #! /bin/sh |
| 14818 | exit 0 |
| 14819 | _ASEOF |
| 14820 | chmod +x conf$$.file |
| 14821 | if test -x conf$$.file >/dev/null 2>&1; then |
| 14822 | ac_executable_p="test -x" |
| 14823 | else |
| 14824 | ac_executable_p="test -f" |
| 14825 | fi |
| 14826 | rm -f conf$$.file |
| 14827 | |
| 14828 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 14829 | set dummy msgmerge; ac_word=$2 |
| 14830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14831 | printf %s "checking for $ac_word... " >&6; } |
| 14832 | if test ${ac_cv_path_MSGMERGE+y} |
| 14833 | then : |
| 14834 | printf %s "(cached) " >&6 |
| 14835 | else $as_nop |
| 14836 | case "$MSGMERGE" in |
| 14837 | [\\/]* | ?:[\\/]*) |
| 14838 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 14839 | ;; |
| 14840 | *) |
| 14841 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14842 | for ac_dir in $PATH; do |
| 14843 | IFS="$ac_save_IFS" |
| 14844 | test -z "$ac_dir" && ac_dir=. |
| 14845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14846 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14847 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14848 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 14849 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 14850 | break 2 |
| 14851 | fi |
| 14852 | fi |
| 14853 | done |
| 14854 | done |
| 14855 | IFS="$ac_save_IFS" |
| 14856 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 14857 | ;; |
| 14858 | esac |
| 14859 | fi |
| 14860 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 14861 | if test "$MSGMERGE" != ":"; then |
| 14862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
| 14863 | printf "%s\n" "$MSGMERGE" >&6; } |
| 14864 | else |
| 14865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14866 | printf "%s\n" "no" >&6; } |
| 14867 | fi |
| 14868 | |
| 14869 | |
| 14870 | test -n "$localedir" || localedir='${datadir}/locale' |
| 14871 | |
| 14872 | |
| 14873 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 14874 | |
| 14875 | |
| 14876 | ac_config_commands="$ac_config_commands po-directories" |
| 14877 | |
| 14878 | |
| 14879 | |
| 14880 | if test "X$prefix" = "XNONE"; then |
| 14881 | acl_final_prefix="$ac_default_prefix" |
| 14882 | else |
| 14883 | acl_final_prefix="$prefix" |
| 14884 | fi |
| 14885 | if test "X$exec_prefix" = "XNONE"; then |
| 14886 | acl_final_exec_prefix='${prefix}' |
| 14887 | else |
| 14888 | acl_final_exec_prefix="$exec_prefix" |
| 14889 | fi |
| 14890 | acl_save_prefix="$prefix" |
| 14891 | prefix="$acl_final_prefix" |
| 14892 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 14893 | prefix="$acl_save_prefix" |
| 14894 | |
| 14895 | |
| 14896 | |
| 14897 | # Check whether --with-gnu-ld was given. |
| 14898 | if test ${with_gnu_ld+y} |
| 14899 | then : |
| 14900 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 14901 | else $as_nop |
| 14902 | with_gnu_ld=no |
| 14903 | fi |
| 14904 | |
| 14905 | # Prepare PATH_SEPARATOR. |
| 14906 | # The user is always right. |
| 14907 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14908 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14909 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14910 | # so we have to set that as well for the test. |
| 14911 | PATH_SEPARATOR=: |
| 14912 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14913 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14914 | || PATH_SEPARATOR=';' |
| 14915 | } |
| 14916 | fi |
| 14917 | |
| 14918 | ac_prog=ld |
| 14919 | if test "$GCC" = yes; then |
| 14920 | # Check if gcc -print-prog-name=ld gives a path. |
| 14921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 14922 | printf %s "checking for ld used by $CC... " >&6; } |
| 14923 | case $host in |
| 14924 | *-*-mingw*) |
| 14925 | # gcc leaves a trailing carriage return which upsets mingw |
| 14926 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14927 | *) |
| 14928 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14929 | esac |
| 14930 | case $ac_prog in |
| 14931 | # Accept absolute paths. |
| 14932 | [\\/]* | ?:[\\/]*) |
| 14933 | re_direlt='/[^/][^/]*/\.\./' |
| 14934 | # Canonicalize the pathname of ld |
| 14935 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 14936 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 14937 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 14938 | done |
| 14939 | test -z "$LD" && LD="$ac_prog" |
| 14940 | ;; |
| 14941 | "") |
| 14942 | # If it fails, then pretend we aren't using GCC. |
| 14943 | ac_prog=ld |
| 14944 | ;; |
| 14945 | *) |
| 14946 | # If it is relative, then search for the first ld in PATH. |
| 14947 | with_gnu_ld=unknown |
| 14948 | ;; |
| 14949 | esac |
| 14950 | elif test "$with_gnu_ld" = yes; then |
| 14951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 14952 | printf %s "checking for GNU ld... " >&6; } |
| 14953 | else |
| 14954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 14955 | printf %s "checking for non-GNU ld... " >&6; } |
| 14956 | fi |
| 14957 | if test ${acl_cv_path_LD+y} |
| 14958 | then : |
| 14959 | printf %s "(cached) " >&6 |
| 14960 | else $as_nop |
| 14961 | if test -z "$LD"; then |
| 14962 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14963 | for ac_dir in $PATH; do |
| 14964 | IFS="$acl_save_ifs" |
| 14965 | test -z "$ac_dir" && ac_dir=. |
| 14966 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14967 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 14968 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 14969 | # but apparently some variants of GNU ld only accept -v. |
| 14970 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 14971 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
| 14972 | *GNU* | *'with BFD'*) |
| 14973 | test "$with_gnu_ld" != no && break |
| 14974 | ;; |
| 14975 | *) |
| 14976 | test "$with_gnu_ld" != yes && break |
| 14977 | ;; |
| 14978 | esac |
| 14979 | fi |
| 14980 | done |
| 14981 | IFS="$acl_save_ifs" |
| 14982 | else |
| 14983 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 14984 | fi |
| 14985 | fi |
| 14986 | |
| 14987 | LD="$acl_cv_path_LD" |
| 14988 | if test -n "$LD"; then |
| 14989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 14990 | printf "%s\n" "$LD" >&6; } |
| 14991 | else |
| 14992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14993 | printf "%s\n" "no" >&6; } |
| 14994 | fi |
| 14995 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 14996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 14997 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 14998 | if test ${acl_cv_prog_gnu_ld+y} |
| 14999 | then : |
| 15000 | printf %s "(cached) " >&6 |
| 15001 | else $as_nop |
| 15002 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 15003 | case `$LD -v 2>&1 </dev/null` in |
| 15004 | *GNU* | *'with BFD'*) |
| 15005 | acl_cv_prog_gnu_ld=yes |
| 15006 | ;; |
| 15007 | *) |
| 15008 | acl_cv_prog_gnu_ld=no |
| 15009 | ;; |
| 15010 | esac |
| 15011 | fi |
| 15012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
| 15013 | printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } |
| 15014 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 15015 | |
| 15016 | |
| 15017 | |
| 15018 | |
| 15019 | |
| 15020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
| 15021 | printf %s "checking for shared library run path origin... " >&6; } |
| 15022 | if test ${acl_cv_rpath+y} |
| 15023 | then : |
| 15024 | printf %s "(cached) " >&6 |
| 15025 | else $as_nop |
| 15026 | |
| 15027 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 15028 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 15029 | . ./conftest.sh |
| 15030 | rm -f ./conftest.sh |
| 15031 | acl_cv_rpath=done |
| 15032 | |
| 15033 | fi |
| 15034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
| 15035 | printf "%s\n" "$acl_cv_rpath" >&6; } |
| 15036 | wl="$acl_cv_wl" |
| 15037 | acl_libext="$acl_cv_libext" |
| 15038 | acl_shlibext="$acl_cv_shlibext" |
| 15039 | acl_libname_spec="$acl_cv_libname_spec" |
| 15040 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 15041 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 15042 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 15043 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 15044 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 15045 | # Check whether --enable-rpath was given. |
| 15046 | if test ${enable_rpath+y} |
| 15047 | then : |
| 15048 | enableval=$enable_rpath; : |
| 15049 | else $as_nop |
| 15050 | enable_rpath=yes |
| 15051 | fi |
| 15052 | |
| 15053 | |
| 15054 | ac_ext=c |
| 15055 | ac_cpp='$CPP $CPPFLAGS' |
| 15056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 15060 | printf %s "checking how to run the C preprocessor... " >&6; } |
| 15061 | # On Suns, sometimes $CPP names a directory. |
| 15062 | if test -n "$CPP" && test -d "$CPP"; then |
| 15063 | CPP= |
| 15064 | fi |
| 15065 | if test -z "$CPP"; then |
| 15066 | if test ${ac_cv_prog_CPP+y} |
| 15067 | then : |
| 15068 | printf %s "(cached) " >&6 |
| 15069 | else $as_nop |
| 15070 | # Double quotes because $CC needs to be expanded |
| 15071 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 15072 | do |
| 15073 | ac_preproc_ok=false |
| 15074 | for ac_c_preproc_warn_flag in '' yes |
| 15075 | do |
| 15076 | # Use a header file that comes with gcc, so configuring glibc |
| 15077 | # with a fresh cross-compiler works. |
| 15078 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 15079 | # not just through cpp. "Syntax error" is here to catch this case. |
| 15080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15081 | /* end confdefs.h. */ |
| 15082 | #include <limits.h> |
| 15083 | Syntax error |
| 15084 | _ACEOF |
| 15085 | if ac_fn_c_try_cpp "$LINENO" |
| 15086 | then : |
| 15087 | |
| 15088 | else $as_nop |
| 15089 | # Broken: fails on valid input. |
| 15090 | continue |
| 15091 | fi |
| 15092 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 15093 | |
| 15094 | # OK, works on sane cases. Now check whether nonexistent headers |
| 15095 | # can be detected and how. |
| 15096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15097 | /* end confdefs.h. */ |
| 15098 | #include <ac_nonexistent.h> |
| 15099 | _ACEOF |
| 15100 | if ac_fn_c_try_cpp "$LINENO" |
| 15101 | then : |
| 15102 | # Broken: success on invalid input. |
| 15103 | continue |
| 15104 | else $as_nop |
| 15105 | # Passes both tests. |
| 15106 | ac_preproc_ok=: |
| 15107 | break |
| 15108 | fi |
| 15109 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 15110 | |
| 15111 | done |
| 15112 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 15113 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 15114 | if $ac_preproc_ok |
| 15115 | then : |
| 15116 | break |
| 15117 | fi |
| 15118 | |
| 15119 | done |
| 15120 | ac_cv_prog_CPP=$CPP |
| 15121 | |
| 15122 | fi |
| 15123 | CPP=$ac_cv_prog_CPP |
| 15124 | else |
| 15125 | ac_cv_prog_CPP=$CPP |
| 15126 | fi |
| 15127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 15128 | printf "%s\n" "$CPP" >&6; } |
| 15129 | ac_preproc_ok=false |
| 15130 | for ac_c_preproc_warn_flag in '' yes |
| 15131 | do |
| 15132 | # Use a header file that comes with gcc, so configuring glibc |
| 15133 | # with a fresh cross-compiler works. |
| 15134 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 15135 | # not just through cpp. "Syntax error" is here to catch this case. |
| 15136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15137 | /* end confdefs.h. */ |
| 15138 | #include <limits.h> |
| 15139 | Syntax error |
| 15140 | _ACEOF |
| 15141 | if ac_fn_c_try_cpp "$LINENO" |
| 15142 | then : |
| 15143 | |
| 15144 | else $as_nop |
| 15145 | # Broken: fails on valid input. |
| 15146 | continue |
| 15147 | fi |
| 15148 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 15149 | |
| 15150 | # OK, works on sane cases. Now check whether nonexistent headers |
| 15151 | # can be detected and how. |
| 15152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15153 | /* end confdefs.h. */ |
| 15154 | #include <ac_nonexistent.h> |
| 15155 | _ACEOF |
| 15156 | if ac_fn_c_try_cpp "$LINENO" |
| 15157 | then : |
| 15158 | # Broken: success on invalid input. |
| 15159 | continue |
| 15160 | else $as_nop |
| 15161 | # Passes both tests. |
| 15162 | ac_preproc_ok=: |
| 15163 | break |
| 15164 | fi |
| 15165 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 15166 | |
| 15167 | done |
| 15168 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 15169 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 15170 | if $ac_preproc_ok |
| 15171 | then : |
| 15172 | |
| 15173 | else $as_nop |
| 15174 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15175 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15176 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 15177 | See \`config.log' for more details" "$LINENO" 5; } |
| 15178 | fi |
| 15179 | |
| 15180 | ac_ext=c |
| 15181 | ac_cpp='$CPP $CPPFLAGS' |
| 15182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15185 | |
| 15186 | |
| 15187 | |
| 15188 | |
| 15189 | acl_libdirstem=lib |
| 15190 | acl_libdirstem2= |
| 15191 | case "$host_os" in |
| 15192 | solaris*) |
| 15193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 15194 | printf %s "checking for 64-bit host... " >&6; } |
| 15195 | if test ${gl_cv_solaris_64bit+y} |
| 15196 | then : |
| 15197 | printf %s "(cached) " >&6 |
| 15198 | else $as_nop |
| 15199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15200 | /* end confdefs.h. */ |
| 15201 | |
| 15202 | #ifdef _LP64 |
| 15203 | sixtyfour bits |
| 15204 | #endif |
| 15205 | |
| 15206 | _ACEOF |
| 15207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15208 | $EGREP "sixtyfour bits" >/dev/null 2>&1 |
| 15209 | then : |
| 15210 | gl_cv_solaris_64bit=yes |
| 15211 | else $as_nop |
| 15212 | gl_cv_solaris_64bit=no |
| 15213 | fi |
| 15214 | rm -rf conftest* |
| 15215 | |
| 15216 | |
| 15217 | fi |
| 15218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 15219 | printf "%s\n" "$gl_cv_solaris_64bit" >&6; } |
| 15220 | if test $gl_cv_solaris_64bit = yes; then |
| 15221 | acl_libdirstem=lib/64 |
| 15222 | case "$host_cpu" in |
| 15223 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 15224 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 15225 | esac |
| 15226 | fi |
| 15227 | ;; |
| 15228 | *) |
| 15229 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 15230 | if test -n "$searchpath"; then |
| 15231 | acl_save_IFS="${IFS= }"; IFS=":" |
| 15232 | for searchdir in $searchpath; do |
| 15233 | if test -d "$searchdir"; then |
| 15234 | case "$searchdir" in |
| 15235 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 15236 | */../ | */.. ) |
| 15237 | # Better ignore directories of this form. They are misleading. |
| 15238 | ;; |
| 15239 | *) searchdir=`cd "$searchdir" && pwd` |
| 15240 | case "$searchdir" in |
| 15241 | */lib64 ) acl_libdirstem=lib64 ;; |
| 15242 | esac ;; |
| 15243 | esac |
| 15244 | fi |
| 15245 | done |
| 15246 | IFS="$acl_save_IFS" |
| 15247 | fi |
| 15248 | ;; |
| 15249 | esac |
| 15250 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 15251 | |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | |
| 15257 | |
| 15258 | |
| 15259 | |
| 15260 | |
| 15261 | |
| 15262 | |
| 15263 | use_additional=yes |
| 15264 | |
| 15265 | acl_save_prefix="$prefix" |
| 15266 | prefix="$acl_final_prefix" |
| 15267 | acl_save_exec_prefix="$exec_prefix" |
| 15268 | exec_prefix="$acl_final_exec_prefix" |
| 15269 | |
| 15270 | eval additional_includedir=\"$includedir\" |
| 15271 | eval additional_libdir=\"$libdir\" |
| 15272 | |
| 15273 | exec_prefix="$acl_save_exec_prefix" |
| 15274 | prefix="$acl_save_prefix" |
| 15275 | |
| 15276 | |
| 15277 | # Check whether --with-libiconv-prefix was given. |
| 15278 | if test ${with_libiconv_prefix+y} |
| 15279 | then : |
| 15280 | withval=$with_libiconv_prefix; |
| 15281 | if test "X$withval" = "Xno"; then |
| 15282 | use_additional=no |
| 15283 | else |
| 15284 | if test "X$withval" = "X"; then |
| 15285 | |
| 15286 | acl_save_prefix="$prefix" |
| 15287 | prefix="$acl_final_prefix" |
| 15288 | acl_save_exec_prefix="$exec_prefix" |
| 15289 | exec_prefix="$acl_final_exec_prefix" |
| 15290 | |
| 15291 | eval additional_includedir=\"$includedir\" |
| 15292 | eval additional_libdir=\"$libdir\" |
| 15293 | |
| 15294 | exec_prefix="$acl_save_exec_prefix" |
| 15295 | prefix="$acl_save_prefix" |
| 15296 | |
| 15297 | else |
| 15298 | additional_includedir="$withval/include" |
| 15299 | additional_libdir="$withval/$acl_libdirstem" |
| 15300 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 15301 | && ! test -d "$withval/$acl_libdirstem"; then |
| 15302 | additional_libdir="$withval/$acl_libdirstem2" |
| 15303 | fi |
| 15304 | fi |
| 15305 | fi |
| 15306 | |
| 15307 | fi |
| 15308 | |
| 15309 | LIBICONV= |
| 15310 | LTLIBICONV= |
| 15311 | INCICONV= |
| 15312 | LIBICONV_PREFIX= |
| 15313 | HAVE_LIBICONV= |
| 15314 | rpathdirs= |
| 15315 | ltrpathdirs= |
| 15316 | names_already_handled= |
| 15317 | names_next_round='iconv ' |
| 15318 | while test -n "$names_next_round"; do |
| 15319 | names_this_round="$names_next_round" |
| 15320 | names_next_round= |
| 15321 | for name in $names_this_round; do |
| 15322 | already_handled= |
| 15323 | for n in $names_already_handled; do |
| 15324 | if test "$n" = "$name"; then |
| 15325 | already_handled=yes |
| 15326 | break |
| 15327 | fi |
| 15328 | done |
| 15329 | if test -z "$already_handled"; then |
| 15330 | names_already_handled="$names_already_handled $name" |
| 15331 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 15332 | eval value=\"\$HAVE_LIB$uppername\" |
| 15333 | if test -n "$value"; then |
| 15334 | if test "$value" = yes; then |
| 15335 | eval value=\"\$LIB$uppername\" |
| 15336 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 15337 | eval value=\"\$LTLIB$uppername\" |
| 15338 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 15339 | else |
| 15340 | : |
| 15341 | fi |
| 15342 | else |
| 15343 | found_dir= |
| 15344 | found_la= |
| 15345 | found_so= |
| 15346 | found_a= |
| 15347 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 15348 | if test -n "$acl_shlibext"; then |
| 15349 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 15350 | else |
| 15351 | shrext= |
| 15352 | fi |
| 15353 | if test $use_additional = yes; then |
| 15354 | dir="$additional_libdir" |
| 15355 | if test -n "$acl_shlibext"; then |
| 15356 | if test -f "$dir/$libname$shrext"; then |
| 15357 | found_dir="$dir" |
| 15358 | found_so="$dir/$libname$shrext" |
| 15359 | else |
| 15360 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 15361 | ver=`(cd "$dir" && \ |
| 15362 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 15363 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 15364 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 15365 | | sed 1q ) 2>/dev/null` |
| 15366 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 15367 | found_dir="$dir" |
| 15368 | found_so="$dir/$libname$shrext.$ver" |
| 15369 | fi |
| 15370 | else |
| 15371 | eval library_names=\"$acl_library_names_spec\" |
| 15372 | for f in $library_names; do |
| 15373 | if test -f "$dir/$f"; then |
| 15374 | found_dir="$dir" |
| 15375 | found_so="$dir/$f" |
| 15376 | break |
| 15377 | fi |
| 15378 | done |
| 15379 | fi |
| 15380 | fi |
| 15381 | fi |
| 15382 | if test "X$found_dir" = "X"; then |
| 15383 | if test -f "$dir/$libname.$acl_libext"; then |
| 15384 | found_dir="$dir" |
| 15385 | found_a="$dir/$libname.$acl_libext" |
| 15386 | fi |
| 15387 | fi |
| 15388 | if test "X$found_dir" != "X"; then |
| 15389 | if test -f "$dir/$libname.la"; then |
| 15390 | found_la="$dir/$libname.la" |
| 15391 | fi |
| 15392 | fi |
| 15393 | fi |
| 15394 | if test "X$found_dir" = "X"; then |
| 15395 | for x in $LDFLAGS $LTLIBICONV; do |
| 15396 | |
| 15397 | acl_save_prefix="$prefix" |
| 15398 | prefix="$acl_final_prefix" |
| 15399 | acl_save_exec_prefix="$exec_prefix" |
| 15400 | exec_prefix="$acl_final_exec_prefix" |
| 15401 | eval x=\"$x\" |
| 15402 | exec_prefix="$acl_save_exec_prefix" |
| 15403 | prefix="$acl_save_prefix" |
| 15404 | |
| 15405 | case "$x" in |
| 15406 | -L*) |
| 15407 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 15408 | if test -n "$acl_shlibext"; then |
| 15409 | if test -f "$dir/$libname$shrext"; then |
| 15410 | found_dir="$dir" |
| 15411 | found_so="$dir/$libname$shrext" |
| 15412 | else |
| 15413 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 15414 | ver=`(cd "$dir" && \ |
| 15415 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 15416 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 15417 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 15418 | | sed 1q ) 2>/dev/null` |
| 15419 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 15420 | found_dir="$dir" |
| 15421 | found_so="$dir/$libname$shrext.$ver" |
| 15422 | fi |
| 15423 | else |
| 15424 | eval library_names=\"$acl_library_names_spec\" |
| 15425 | for f in $library_names; do |
| 15426 | if test -f "$dir/$f"; then |
| 15427 | found_dir="$dir" |
| 15428 | found_so="$dir/$f" |
| 15429 | break |
| 15430 | fi |
| 15431 | done |
| 15432 | fi |
| 15433 | fi |
| 15434 | fi |
| 15435 | if test "X$found_dir" = "X"; then |
| 15436 | if test -f "$dir/$libname.$acl_libext"; then |
| 15437 | found_dir="$dir" |
| 15438 | found_a="$dir/$libname.$acl_libext" |
| 15439 | fi |
| 15440 | fi |
| 15441 | if test "X$found_dir" != "X"; then |
| 15442 | if test -f "$dir/$libname.la"; then |
| 15443 | found_la="$dir/$libname.la" |
| 15444 | fi |
| 15445 | fi |
| 15446 | ;; |
| 15447 | esac |
| 15448 | if test "X$found_dir" != "X"; then |
| 15449 | break |
| 15450 | fi |
| 15451 | done |
| 15452 | fi |
| 15453 | if test "X$found_dir" != "X"; then |
| 15454 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 15455 | if test "X$found_so" != "X"; then |
| 15456 | if test "$enable_rpath" = no \ |
| 15457 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 15458 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 15459 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15460 | else |
| 15461 | haveit= |
| 15462 | for x in $ltrpathdirs; do |
| 15463 | if test "X$x" = "X$found_dir"; then |
| 15464 | haveit=yes |
| 15465 | break |
| 15466 | fi |
| 15467 | done |
| 15468 | if test -z "$haveit"; then |
| 15469 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 15470 | fi |
| 15471 | if test "$acl_hardcode_direct" = yes; then |
| 15472 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15473 | else |
| 15474 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 15475 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15476 | haveit= |
| 15477 | for x in $rpathdirs; do |
| 15478 | if test "X$x" = "X$found_dir"; then |
| 15479 | haveit=yes |
| 15480 | break |
| 15481 | fi |
| 15482 | done |
| 15483 | if test -z "$haveit"; then |
| 15484 | rpathdirs="$rpathdirs $found_dir" |
| 15485 | fi |
| 15486 | else |
| 15487 | haveit= |
| 15488 | for x in $LDFLAGS $LIBICONV; do |
| 15489 | |
| 15490 | acl_save_prefix="$prefix" |
| 15491 | prefix="$acl_final_prefix" |
| 15492 | acl_save_exec_prefix="$exec_prefix" |
| 15493 | exec_prefix="$acl_final_exec_prefix" |
| 15494 | eval x=\"$x\" |
| 15495 | exec_prefix="$acl_save_exec_prefix" |
| 15496 | prefix="$acl_save_prefix" |
| 15497 | |
| 15498 | if test "X$x" = "X-L$found_dir"; then |
| 15499 | haveit=yes |
| 15500 | break |
| 15501 | fi |
| 15502 | done |
| 15503 | if test -z "$haveit"; then |
| 15504 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 15505 | fi |
| 15506 | if test "$acl_hardcode_minus_L" != no; then |
| 15507 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15508 | else |
| 15509 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 15510 | fi |
| 15511 | fi |
| 15512 | fi |
| 15513 | fi |
| 15514 | else |
| 15515 | if test "X$found_a" != "X"; then |
| 15516 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 15517 | else |
| 15518 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 15519 | fi |
| 15520 | fi |
| 15521 | additional_includedir= |
| 15522 | case "$found_dir" in |
| 15523 | */$acl_libdirstem | */$acl_libdirstem/) |
| 15524 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 15525 | if test "$name" = 'iconv'; then |
| 15526 | LIBICONV_PREFIX="$basedir" |
| 15527 | fi |
| 15528 | additional_includedir="$basedir/include" |
| 15529 | ;; |
| 15530 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 15531 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 15532 | if test "$name" = 'iconv'; then |
| 15533 | LIBICONV_PREFIX="$basedir" |
| 15534 | fi |
| 15535 | additional_includedir="$basedir/include" |
| 15536 | ;; |
| 15537 | esac |
| 15538 | if test "X$additional_includedir" != "X"; then |
| 15539 | if test "X$additional_includedir" != "X/usr/include"; then |
| 15540 | haveit= |
| 15541 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 15542 | if test -n "$GCC"; then |
| 15543 | case $host_os in |
| 15544 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 15545 | esac |
| 15546 | fi |
| 15547 | fi |
| 15548 | if test -z "$haveit"; then |
| 15549 | for x in $CPPFLAGS $INCICONV; do |
| 15550 | |
| 15551 | acl_save_prefix="$prefix" |
| 15552 | prefix="$acl_final_prefix" |
| 15553 | acl_save_exec_prefix="$exec_prefix" |
| 15554 | exec_prefix="$acl_final_exec_prefix" |
| 15555 | eval x=\"$x\" |
| 15556 | exec_prefix="$acl_save_exec_prefix" |
| 15557 | prefix="$acl_save_prefix" |
| 15558 | |
| 15559 | if test "X$x" = "X-I$additional_includedir"; then |
| 15560 | haveit=yes |
| 15561 | break |
| 15562 | fi |
| 15563 | done |
| 15564 | if test -z "$haveit"; then |
| 15565 | if test -d "$additional_includedir"; then |
| 15566 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 15567 | fi |
| 15568 | fi |
| 15569 | fi |
| 15570 | fi |
| 15571 | fi |
| 15572 | if test -n "$found_la"; then |
| 15573 | save_libdir="$libdir" |
| 15574 | case "$found_la" in |
| 15575 | */* | *\\*) . "$found_la" ;; |
| 15576 | *) . "./$found_la" ;; |
| 15577 | esac |
| 15578 | libdir="$save_libdir" |
| 15579 | for dep in $dependency_libs; do |
| 15580 | case "$dep" in |
| 15581 | -L*) |
| 15582 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 15583 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 15584 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 15585 | haveit= |
| 15586 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 15587 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 15588 | if test -n "$GCC"; then |
| 15589 | case $host_os in |
| 15590 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 15591 | esac |
| 15592 | fi |
| 15593 | fi |
| 15594 | if test -z "$haveit"; then |
| 15595 | haveit= |
| 15596 | for x in $LDFLAGS $LIBICONV; do |
| 15597 | |
| 15598 | acl_save_prefix="$prefix" |
| 15599 | prefix="$acl_final_prefix" |
| 15600 | acl_save_exec_prefix="$exec_prefix" |
| 15601 | exec_prefix="$acl_final_exec_prefix" |
| 15602 | eval x=\"$x\" |
| 15603 | exec_prefix="$acl_save_exec_prefix" |
| 15604 | prefix="$acl_save_prefix" |
| 15605 | |
| 15606 | if test "X$x" = "X-L$additional_libdir"; then |
| 15607 | haveit=yes |
| 15608 | break |
| 15609 | fi |
| 15610 | done |
| 15611 | if test -z "$haveit"; then |
| 15612 | if test -d "$additional_libdir"; then |
| 15613 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 15614 | fi |
| 15615 | fi |
| 15616 | haveit= |
| 15617 | for x in $LDFLAGS $LTLIBICONV; do |
| 15618 | |
| 15619 | acl_save_prefix="$prefix" |
| 15620 | prefix="$acl_final_prefix" |
| 15621 | acl_save_exec_prefix="$exec_prefix" |
| 15622 | exec_prefix="$acl_final_exec_prefix" |
| 15623 | eval x=\"$x\" |
| 15624 | exec_prefix="$acl_save_exec_prefix" |
| 15625 | prefix="$acl_save_prefix" |
| 15626 | |
| 15627 | if test "X$x" = "X-L$additional_libdir"; then |
| 15628 | haveit=yes |
| 15629 | break |
| 15630 | fi |
| 15631 | done |
| 15632 | if test -z "$haveit"; then |
| 15633 | if test -d "$additional_libdir"; then |
| 15634 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 15635 | fi |
| 15636 | fi |
| 15637 | fi |
| 15638 | fi |
| 15639 | ;; |
| 15640 | -R*) |
| 15641 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 15642 | if test "$enable_rpath" != no; then |
| 15643 | haveit= |
| 15644 | for x in $rpathdirs; do |
| 15645 | if test "X$x" = "X$dir"; then |
| 15646 | haveit=yes |
| 15647 | break |
| 15648 | fi |
| 15649 | done |
| 15650 | if test -z "$haveit"; then |
| 15651 | rpathdirs="$rpathdirs $dir" |
| 15652 | fi |
| 15653 | haveit= |
| 15654 | for x in $ltrpathdirs; do |
| 15655 | if test "X$x" = "X$dir"; then |
| 15656 | haveit=yes |
| 15657 | break |
| 15658 | fi |
| 15659 | done |
| 15660 | if test -z "$haveit"; then |
| 15661 | ltrpathdirs="$ltrpathdirs $dir" |
| 15662 | fi |
| 15663 | fi |
| 15664 | ;; |
| 15665 | -l*) |
| 15666 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 15667 | ;; |
| 15668 | *.la) |
| 15669 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 15670 | ;; |
| 15671 | *) |
| 15672 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 15673 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 15674 | ;; |
| 15675 | esac |
| 15676 | done |
| 15677 | fi |
| 15678 | else |
| 15679 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 15680 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 15681 | fi |
| 15682 | fi |
| 15683 | fi |
| 15684 | done |
| 15685 | done |
| 15686 | if test "X$rpathdirs" != "X"; then |
| 15687 | if test -n "$acl_hardcode_libdir_separator"; then |
| 15688 | alldirs= |
| 15689 | for found_dir in $rpathdirs; do |
| 15690 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 15691 | done |
| 15692 | acl_save_libdir="$libdir" |
| 15693 | libdir="$alldirs" |
| 15694 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 15695 | libdir="$acl_save_libdir" |
| 15696 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 15697 | else |
| 15698 | for found_dir in $rpathdirs; do |
| 15699 | acl_save_libdir="$libdir" |
| 15700 | libdir="$found_dir" |
| 15701 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 15702 | libdir="$acl_save_libdir" |
| 15703 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 15704 | done |
| 15705 | fi |
| 15706 | fi |
| 15707 | if test "X$ltrpathdirs" != "X"; then |
| 15708 | for found_dir in $ltrpathdirs; do |
| 15709 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 15710 | done |
| 15711 | fi |
| 15712 | |
| 15713 | |
| 15714 | |
| 15715 | |
| 15716 | |
| 15717 | |
| 15718 | |
| 15719 | |
| 15720 | |
| 15721 | |
| 15722 | |
| 15723 | |
| 15724 | |
| 15725 | |
| 15726 | |
| 15727 | |
| 15728 | |
| 15729 | |
| 15730 | |
| 15731 | |
| 15732 | |
| 15733 | |
| 15734 | |
| 15735 | |
| 15736 | |
| 15737 | |
| 15738 | |
| 15739 | |
| 15740 | |
| 15741 | |
| 15742 | |
| 15743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 15744 | printf %s "checking for CFPreferencesCopyAppValue... " >&6; } |
| 15745 | if test ${gt_cv_func_CFPreferencesCopyAppValue+y} |
| 15746 | then : |
| 15747 | printf %s "(cached) " >&6 |
| 15748 | else $as_nop |
| 15749 | gt_save_LIBS="$LIBS" |
| 15750 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 15751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15752 | /* end confdefs.h. */ |
| 15753 | #include <CoreFoundation/CFPreferences.h> |
| 15754 | int |
| 15755 | main (void) |
| 15756 | { |
| 15757 | CFPreferencesCopyAppValue(NULL, NULL) |
| 15758 | ; |
| 15759 | return 0; |
| 15760 | } |
| 15761 | _ACEOF |
| 15762 | if ac_fn_c_try_link "$LINENO" |
| 15763 | then : |
| 15764 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 15765 | else $as_nop |
| 15766 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 15767 | fi |
| 15768 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15769 | conftest$ac_exeext conftest.$ac_ext |
| 15770 | LIBS="$gt_save_LIBS" |
| 15771 | fi |
| 15772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 15773 | printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 15774 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 15775 | |
| 15776 | printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 15777 | |
| 15778 | fi |
| 15779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 15780 | printf %s "checking for CFLocaleCopyCurrent... " >&6; } |
| 15781 | if test ${gt_cv_func_CFLocaleCopyCurrent+y} |
| 15782 | then : |
| 15783 | printf %s "(cached) " >&6 |
| 15784 | else $as_nop |
| 15785 | gt_save_LIBS="$LIBS" |
| 15786 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 15787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15788 | /* end confdefs.h. */ |
| 15789 | #include <CoreFoundation/CFLocale.h> |
| 15790 | int |
| 15791 | main (void) |
| 15792 | { |
| 15793 | CFLocaleCopyCurrent(); |
| 15794 | ; |
| 15795 | return 0; |
| 15796 | } |
| 15797 | _ACEOF |
| 15798 | if ac_fn_c_try_link "$LINENO" |
| 15799 | then : |
| 15800 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 15801 | else $as_nop |
| 15802 | gt_cv_func_CFLocaleCopyCurrent=no |
| 15803 | fi |
| 15804 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15805 | conftest$ac_exeext conftest.$ac_ext |
| 15806 | LIBS="$gt_save_LIBS" |
| 15807 | fi |
| 15808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 15809 | printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 15810 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 15811 | |
| 15812 | printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 15813 | |
| 15814 | fi |
| 15815 | INTL_MACOSX_LIBS= |
| 15816 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 15817 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 15818 | fi |
| 15819 | |
| 15820 | |
| 15821 | |
| 15822 | |
| 15823 | |
| 15824 | |
| 15825 | LIBINTL= |
| 15826 | LTLIBINTL= |
| 15827 | POSUB= |
| 15828 | |
| 15829 | case " $gt_needs " in |
| 15830 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 15831 | *" need-ngettext "*) gt_api_version=2 ;; |
| 15832 | *) gt_api_version=1 ;; |
| 15833 | esac |
| 15834 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 15835 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 15836 | |
| 15837 | if test "$USE_NLS" = "yes"; then |
| 15838 | gt_use_preinstalled_gnugettext=no |
| 15839 | |
| 15840 | |
| 15841 | if test $gt_api_version -ge 3; then |
| 15842 | gt_revision_test_code=' |
| 15843 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 15844 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 15845 | #endif |
| 15846 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 15847 | ' |
| 15848 | else |
| 15849 | gt_revision_test_code= |
| 15850 | fi |
| 15851 | if test $gt_api_version -ge 2; then |
| 15852 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 15853 | else |
| 15854 | gt_expression_test_code= |
| 15855 | fi |
| 15856 | |
| 15857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
| 15858 | printf %s "checking for GNU gettext in libc... " >&6; } |
| 15859 | if eval test \${$gt_func_gnugettext_libc+y} |
| 15860 | then : |
| 15861 | printf %s "(cached) " >&6 |
| 15862 | else $as_nop |
| 15863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15864 | /* end confdefs.h. */ |
| 15865 | |
| 15866 | #include <libintl.h> |
| 15867 | $gt_revision_test_code |
| 15868 | extern int _nl_msg_cat_cntr; |
| 15869 | extern int *_nl_domain_bindings; |
| 15870 | |
| 15871 | int |
| 15872 | main (void) |
| 15873 | { |
| 15874 | |
| 15875 | bindtextdomain ("", ""); |
| 15876 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 15877 | |
| 15878 | ; |
| 15879 | return 0; |
| 15880 | } |
| 15881 | _ACEOF |
| 15882 | if ac_fn_c_try_link "$LINENO" |
| 15883 | then : |
| 15884 | eval "$gt_func_gnugettext_libc=yes" |
| 15885 | else $as_nop |
| 15886 | eval "$gt_func_gnugettext_libc=no" |
| 15887 | fi |
| 15888 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15889 | conftest$ac_exeext conftest.$ac_ext |
| 15890 | fi |
| 15891 | eval ac_res=\$$gt_func_gnugettext_libc |
| 15892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15893 | printf "%s\n" "$ac_res" >&6; } |
| 15894 | |
| 15895 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 15896 | |
| 15897 | |
| 15898 | |
| 15899 | |
| 15900 | |
| 15901 | am_save_CPPFLAGS="$CPPFLAGS" |
| 15902 | |
| 15903 | for element in $INCICONV; do |
| 15904 | haveit= |
| 15905 | for x in $CPPFLAGS; do |
| 15906 | |
| 15907 | acl_save_prefix="$prefix" |
| 15908 | prefix="$acl_final_prefix" |
| 15909 | acl_save_exec_prefix="$exec_prefix" |
| 15910 | exec_prefix="$acl_final_exec_prefix" |
| 15911 | eval x=\"$x\" |
| 15912 | exec_prefix="$acl_save_exec_prefix" |
| 15913 | prefix="$acl_save_prefix" |
| 15914 | |
| 15915 | if test "X$x" = "X$element"; then |
| 15916 | haveit=yes |
| 15917 | break |
| 15918 | fi |
| 15919 | done |
| 15920 | if test -z "$haveit"; then |
| 15921 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 15922 | fi |
| 15923 | done |
| 15924 | |
| 15925 | |
| 15926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
| 15927 | printf %s "checking for iconv... " >&6; } |
| 15928 | if test ${am_cv_func_iconv+y} |
| 15929 | then : |
| 15930 | printf %s "(cached) " >&6 |
| 15931 | else $as_nop |
| 15932 | |
| 15933 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 15934 | am_cv_lib_iconv=no |
| 15935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15936 | /* end confdefs.h. */ |
| 15937 | |
| 15938 | #include <stdlib.h> |
| 15939 | #include <iconv.h> |
| 15940 | |
| 15941 | int |
| 15942 | main (void) |
| 15943 | { |
| 15944 | iconv_t cd = iconv_open("",""); |
| 15945 | iconv(cd,NULL,NULL,NULL,NULL); |
| 15946 | iconv_close(cd); |
| 15947 | ; |
| 15948 | return 0; |
| 15949 | } |
| 15950 | _ACEOF |
| 15951 | if ac_fn_c_try_link "$LINENO" |
| 15952 | then : |
| 15953 | am_cv_func_iconv=yes |
| 15954 | fi |
| 15955 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15956 | conftest$ac_exeext conftest.$ac_ext |
| 15957 | if test "$am_cv_func_iconv" != yes; then |
| 15958 | am_save_LIBS="$LIBS" |
| 15959 | LIBS="$LIBS $LIBICONV" |
| 15960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15961 | /* end confdefs.h. */ |
| 15962 | |
| 15963 | #include <stdlib.h> |
| 15964 | #include <iconv.h> |
| 15965 | |
| 15966 | int |
| 15967 | main (void) |
| 15968 | { |
| 15969 | iconv_t cd = iconv_open("",""); |
| 15970 | iconv(cd,NULL,NULL,NULL,NULL); |
| 15971 | iconv_close(cd); |
| 15972 | ; |
| 15973 | return 0; |
| 15974 | } |
| 15975 | _ACEOF |
| 15976 | if ac_fn_c_try_link "$LINENO" |
| 15977 | then : |
| 15978 | am_cv_lib_iconv=yes |
| 15979 | am_cv_func_iconv=yes |
| 15980 | fi |
| 15981 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15982 | conftest$ac_exeext conftest.$ac_ext |
| 15983 | LIBS="$am_save_LIBS" |
| 15984 | fi |
| 15985 | |
| 15986 | fi |
| 15987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
| 15988 | printf "%s\n" "$am_cv_func_iconv" >&6; } |
| 15989 | if test "$am_cv_func_iconv" = yes; then |
| 15990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 15991 | printf %s "checking for working iconv... " >&6; } |
| 15992 | if test ${am_cv_func_iconv_works+y} |
| 15993 | then : |
| 15994 | printf %s "(cached) " >&6 |
| 15995 | else $as_nop |
| 15996 | |
| 15997 | am_save_LIBS="$LIBS" |
| 15998 | if test $am_cv_lib_iconv = yes; then |
| 15999 | LIBS="$LIBS $LIBICONV" |
| 16000 | fi |
| 16001 | if test "$cross_compiling" = yes |
| 16002 | then : |
| 16003 | |
| 16004 | case "$host_os" in |
| 16005 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 16006 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 16007 | esac |
| 16008 | |
| 16009 | else $as_nop |
| 16010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16011 | /* end confdefs.h. */ |
| 16012 | |
| 16013 | #include <iconv.h> |
| 16014 | #include <string.h> |
| 16015 | int main () |
| 16016 | { |
| 16017 | int result = 0; |
| 16018 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 16019 | returns. */ |
| 16020 | { |
| 16021 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 16022 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 16023 | { |
| 16024 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 16025 | char buf[10]; |
| 16026 | const char *inptr = input; |
| 16027 | size_t inbytesleft = strlen (input); |
| 16028 | char *outptr = buf; |
| 16029 | size_t outbytesleft = sizeof (buf); |
| 16030 | size_t res = iconv (cd_utf8_to_88591, |
| 16031 | (char **) &inptr, &inbytesleft, |
| 16032 | &outptr, &outbytesleft); |
| 16033 | if (res == 0) |
| 16034 | result |= 1; |
| 16035 | iconv_close (cd_utf8_to_88591); |
| 16036 | } |
| 16037 | } |
| 16038 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 16039 | successful returns. */ |
| 16040 | { |
| 16041 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 16042 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 16043 | { |
| 16044 | static const char input[] = "\263"; |
| 16045 | char buf[10]; |
| 16046 | const char *inptr = input; |
| 16047 | size_t inbytesleft = strlen (input); |
| 16048 | char *outptr = buf; |
| 16049 | size_t outbytesleft = sizeof (buf); |
| 16050 | size_t res = iconv (cd_ascii_to_88591, |
| 16051 | (char **) &inptr, &inbytesleft, |
| 16052 | &outptr, &outbytesleft); |
| 16053 | if (res == 0) |
| 16054 | result |= 2; |
| 16055 | iconv_close (cd_ascii_to_88591); |
| 16056 | } |
| 16057 | } |
| 16058 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 16059 | { |
| 16060 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 16061 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 16062 | { |
| 16063 | static const char input[] = "\304"; |
| 16064 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 16065 | const char *inptr = input; |
| 16066 | size_t inbytesleft = 1; |
| 16067 | char *outptr = buf; |
| 16068 | size_t outbytesleft = 1; |
| 16069 | size_t res = iconv (cd_88591_to_utf8, |
| 16070 | (char **) &inptr, &inbytesleft, |
| 16071 | &outptr, &outbytesleft); |
| 16072 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 16073 | result |= 4; |
| 16074 | iconv_close (cd_88591_to_utf8); |
| 16075 | } |
| 16076 | } |
| 16077 | #if 0 /* This bug could be worked around by the caller. */ |
| 16078 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 16079 | { |
| 16080 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 16081 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 16082 | { |
| 16083 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 16084 | char buf[50]; |
| 16085 | const char *inptr = input; |
| 16086 | size_t inbytesleft = strlen (input); |
| 16087 | char *outptr = buf; |
| 16088 | size_t outbytesleft = sizeof (buf); |
| 16089 | size_t res = iconv (cd_88591_to_utf8, |
| 16090 | (char **) &inptr, &inbytesleft, |
| 16091 | &outptr, &outbytesleft); |
| 16092 | if ((int)res > 0) |
| 16093 | result |= 8; |
| 16094 | iconv_close (cd_88591_to_utf8); |
| 16095 | } |
| 16096 | } |
| 16097 | #endif |
| 16098 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 16099 | provided. */ |
| 16100 | if (/* Try standardized names. */ |
| 16101 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 16102 | /* Try IRIX, OSF/1 names. */ |
| 16103 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 16104 | /* Try AIX names. */ |
| 16105 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 16106 | /* Try HP-UX names. */ |
| 16107 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 16108 | result |= 16; |
| 16109 | return result; |
| 16110 | } |
| 16111 | _ACEOF |
| 16112 | if ac_fn_c_try_run "$LINENO" |
| 16113 | then : |
| 16114 | am_cv_func_iconv_works=yes |
| 16115 | else $as_nop |
| 16116 | am_cv_func_iconv_works=no |
| 16117 | fi |
| 16118 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16119 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16120 | fi |
| 16121 | |
| 16122 | LIBS="$am_save_LIBS" |
| 16123 | |
| 16124 | fi |
| 16125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 16126 | printf "%s\n" "$am_cv_func_iconv_works" >&6; } |
| 16127 | case "$am_cv_func_iconv_works" in |
| 16128 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 16129 | *) am_func_iconv=yes ;; |
| 16130 | esac |
| 16131 | else |
| 16132 | am_func_iconv=no am_cv_lib_iconv=no |
| 16133 | fi |
| 16134 | if test "$am_func_iconv" = yes; then |
| 16135 | |
| 16136 | printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
| 16137 | |
| 16138 | fi |
| 16139 | if test "$am_cv_lib_iconv" = yes; then |
| 16140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
| 16141 | printf %s "checking how to link with libiconv... " >&6; } |
| 16142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
| 16143 | printf "%s\n" "$LIBICONV" >&6; } |
| 16144 | else |
| 16145 | CPPFLAGS="$am_save_CPPFLAGS" |
| 16146 | LIBICONV= |
| 16147 | LTLIBICONV= |
| 16148 | fi |
| 16149 | |
| 16150 | |
| 16151 | |
| 16152 | |
| 16153 | |
| 16154 | |
| 16155 | |
| 16156 | |
| 16157 | |
| 16158 | |
| 16159 | |
| 16160 | use_additional=yes |
| 16161 | |
| 16162 | acl_save_prefix="$prefix" |
| 16163 | prefix="$acl_final_prefix" |
| 16164 | acl_save_exec_prefix="$exec_prefix" |
| 16165 | exec_prefix="$acl_final_exec_prefix" |
| 16166 | |
| 16167 | eval additional_includedir=\"$includedir\" |
| 16168 | eval additional_libdir=\"$libdir\" |
| 16169 | |
| 16170 | exec_prefix="$acl_save_exec_prefix" |
| 16171 | prefix="$acl_save_prefix" |
| 16172 | |
| 16173 | |
| 16174 | # Check whether --with-libintl-prefix was given. |
| 16175 | if test ${with_libintl_prefix+y} |
| 16176 | then : |
| 16177 | withval=$with_libintl_prefix; |
| 16178 | if test "X$withval" = "Xno"; then |
| 16179 | use_additional=no |
| 16180 | else |
| 16181 | if test "X$withval" = "X"; then |
| 16182 | |
| 16183 | acl_save_prefix="$prefix" |
| 16184 | prefix="$acl_final_prefix" |
| 16185 | acl_save_exec_prefix="$exec_prefix" |
| 16186 | exec_prefix="$acl_final_exec_prefix" |
| 16187 | |
| 16188 | eval additional_includedir=\"$includedir\" |
| 16189 | eval additional_libdir=\"$libdir\" |
| 16190 | |
| 16191 | exec_prefix="$acl_save_exec_prefix" |
| 16192 | prefix="$acl_save_prefix" |
| 16193 | |
| 16194 | else |
| 16195 | additional_includedir="$withval/include" |
| 16196 | additional_libdir="$withval/$acl_libdirstem" |
| 16197 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 16198 | && ! test -d "$withval/$acl_libdirstem"; then |
| 16199 | additional_libdir="$withval/$acl_libdirstem2" |
| 16200 | fi |
| 16201 | fi |
| 16202 | fi |
| 16203 | |
| 16204 | fi |
| 16205 | |
| 16206 | LIBINTL= |
| 16207 | LTLIBINTL= |
| 16208 | INCINTL= |
| 16209 | LIBINTL_PREFIX= |
| 16210 | HAVE_LIBINTL= |
| 16211 | rpathdirs= |
| 16212 | ltrpathdirs= |
| 16213 | names_already_handled= |
| 16214 | names_next_round='intl ' |
| 16215 | while test -n "$names_next_round"; do |
| 16216 | names_this_round="$names_next_round" |
| 16217 | names_next_round= |
| 16218 | for name in $names_this_round; do |
| 16219 | already_handled= |
| 16220 | for n in $names_already_handled; do |
| 16221 | if test "$n" = "$name"; then |
| 16222 | already_handled=yes |
| 16223 | break |
| 16224 | fi |
| 16225 | done |
| 16226 | if test -z "$already_handled"; then |
| 16227 | names_already_handled="$names_already_handled $name" |
| 16228 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 16229 | eval value=\"\$HAVE_LIB$uppername\" |
| 16230 | if test -n "$value"; then |
| 16231 | if test "$value" = yes; then |
| 16232 | eval value=\"\$LIB$uppername\" |
| 16233 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 16234 | eval value=\"\$LTLIB$uppername\" |
| 16235 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 16236 | else |
| 16237 | : |
| 16238 | fi |
| 16239 | else |
| 16240 | found_dir= |
| 16241 | found_la= |
| 16242 | found_so= |
| 16243 | found_a= |
| 16244 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 16245 | if test -n "$acl_shlibext"; then |
| 16246 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 16247 | else |
| 16248 | shrext= |
| 16249 | fi |
| 16250 | if test $use_additional = yes; then |
| 16251 | dir="$additional_libdir" |
| 16252 | if test -n "$acl_shlibext"; then |
| 16253 | if test -f "$dir/$libname$shrext"; then |
| 16254 | found_dir="$dir" |
| 16255 | found_so="$dir/$libname$shrext" |
| 16256 | else |
| 16257 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 16258 | ver=`(cd "$dir" && \ |
| 16259 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 16260 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 16261 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 16262 | | sed 1q ) 2>/dev/null` |
| 16263 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 16264 | found_dir="$dir" |
| 16265 | found_so="$dir/$libname$shrext.$ver" |
| 16266 | fi |
| 16267 | else |
| 16268 | eval library_names=\"$acl_library_names_spec\" |
| 16269 | for f in $library_names; do |
| 16270 | if test -f "$dir/$f"; then |
| 16271 | found_dir="$dir" |
| 16272 | found_so="$dir/$f" |
| 16273 | break |
| 16274 | fi |
| 16275 | done |
| 16276 | fi |
| 16277 | fi |
| 16278 | fi |
| 16279 | if test "X$found_dir" = "X"; then |
| 16280 | if test -f "$dir/$libname.$acl_libext"; then |
| 16281 | found_dir="$dir" |
| 16282 | found_a="$dir/$libname.$acl_libext" |
| 16283 | fi |
| 16284 | fi |
| 16285 | if test "X$found_dir" != "X"; then |
| 16286 | if test -f "$dir/$libname.la"; then |
| 16287 | found_la="$dir/$libname.la" |
| 16288 | fi |
| 16289 | fi |
| 16290 | fi |
| 16291 | if test "X$found_dir" = "X"; then |
| 16292 | for x in $LDFLAGS $LTLIBINTL; do |
| 16293 | |
| 16294 | acl_save_prefix="$prefix" |
| 16295 | prefix="$acl_final_prefix" |
| 16296 | acl_save_exec_prefix="$exec_prefix" |
| 16297 | exec_prefix="$acl_final_exec_prefix" |
| 16298 | eval x=\"$x\" |
| 16299 | exec_prefix="$acl_save_exec_prefix" |
| 16300 | prefix="$acl_save_prefix" |
| 16301 | |
| 16302 | case "$x" in |
| 16303 | -L*) |
| 16304 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 16305 | if test -n "$acl_shlibext"; then |
| 16306 | if test -f "$dir/$libname$shrext"; then |
| 16307 | found_dir="$dir" |
| 16308 | found_so="$dir/$libname$shrext" |
| 16309 | else |
| 16310 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 16311 | ver=`(cd "$dir" && \ |
| 16312 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 16313 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 16314 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 16315 | | sed 1q ) 2>/dev/null` |
| 16316 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 16317 | found_dir="$dir" |
| 16318 | found_so="$dir/$libname$shrext.$ver" |
| 16319 | fi |
| 16320 | else |
| 16321 | eval library_names=\"$acl_library_names_spec\" |
| 16322 | for f in $library_names; do |
| 16323 | if test -f "$dir/$f"; then |
| 16324 | found_dir="$dir" |
| 16325 | found_so="$dir/$f" |
| 16326 | break |
| 16327 | fi |
| 16328 | done |
| 16329 | fi |
| 16330 | fi |
| 16331 | fi |
| 16332 | if test "X$found_dir" = "X"; then |
| 16333 | if test -f "$dir/$libname.$acl_libext"; then |
| 16334 | found_dir="$dir" |
| 16335 | found_a="$dir/$libname.$acl_libext" |
| 16336 | fi |
| 16337 | fi |
| 16338 | if test "X$found_dir" != "X"; then |
| 16339 | if test -f "$dir/$libname.la"; then |
| 16340 | found_la="$dir/$libname.la" |
| 16341 | fi |
| 16342 | fi |
| 16343 | ;; |
| 16344 | esac |
| 16345 | if test "X$found_dir" != "X"; then |
| 16346 | break |
| 16347 | fi |
| 16348 | done |
| 16349 | fi |
| 16350 | if test "X$found_dir" != "X"; then |
| 16351 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 16352 | if test "X$found_so" != "X"; then |
| 16353 | if test "$enable_rpath" = no \ |
| 16354 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 16355 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 16356 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16357 | else |
| 16358 | haveit= |
| 16359 | for x in $ltrpathdirs; do |
| 16360 | if test "X$x" = "X$found_dir"; then |
| 16361 | haveit=yes |
| 16362 | break |
| 16363 | fi |
| 16364 | done |
| 16365 | if test -z "$haveit"; then |
| 16366 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 16367 | fi |
| 16368 | if test "$acl_hardcode_direct" = yes; then |
| 16369 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16370 | else |
| 16371 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 16372 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16373 | haveit= |
| 16374 | for x in $rpathdirs; do |
| 16375 | if test "X$x" = "X$found_dir"; then |
| 16376 | haveit=yes |
| 16377 | break |
| 16378 | fi |
| 16379 | done |
| 16380 | if test -z "$haveit"; then |
| 16381 | rpathdirs="$rpathdirs $found_dir" |
| 16382 | fi |
| 16383 | else |
| 16384 | haveit= |
| 16385 | for x in $LDFLAGS $LIBINTL; do |
| 16386 | |
| 16387 | acl_save_prefix="$prefix" |
| 16388 | prefix="$acl_final_prefix" |
| 16389 | acl_save_exec_prefix="$exec_prefix" |
| 16390 | exec_prefix="$acl_final_exec_prefix" |
| 16391 | eval x=\"$x\" |
| 16392 | exec_prefix="$acl_save_exec_prefix" |
| 16393 | prefix="$acl_save_prefix" |
| 16394 | |
| 16395 | if test "X$x" = "X-L$found_dir"; then |
| 16396 | haveit=yes |
| 16397 | break |
| 16398 | fi |
| 16399 | done |
| 16400 | if test -z "$haveit"; then |
| 16401 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 16402 | fi |
| 16403 | if test "$acl_hardcode_minus_L" != no; then |
| 16404 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16405 | else |
| 16406 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 16407 | fi |
| 16408 | fi |
| 16409 | fi |
| 16410 | fi |
| 16411 | else |
| 16412 | if test "X$found_a" != "X"; then |
| 16413 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 16414 | else |
| 16415 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 16416 | fi |
| 16417 | fi |
| 16418 | additional_includedir= |
| 16419 | case "$found_dir" in |
| 16420 | */$acl_libdirstem | */$acl_libdirstem/) |
| 16421 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 16422 | if test "$name" = 'intl'; then |
| 16423 | LIBINTL_PREFIX="$basedir" |
| 16424 | fi |
| 16425 | additional_includedir="$basedir/include" |
| 16426 | ;; |
| 16427 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 16428 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 16429 | if test "$name" = 'intl'; then |
| 16430 | LIBINTL_PREFIX="$basedir" |
| 16431 | fi |
| 16432 | additional_includedir="$basedir/include" |
| 16433 | ;; |
| 16434 | esac |
| 16435 | if test "X$additional_includedir" != "X"; then |
| 16436 | if test "X$additional_includedir" != "X/usr/include"; then |
| 16437 | haveit= |
| 16438 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 16439 | if test -n "$GCC"; then |
| 16440 | case $host_os in |
| 16441 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 16442 | esac |
| 16443 | fi |
| 16444 | fi |
| 16445 | if test -z "$haveit"; then |
| 16446 | for x in $CPPFLAGS $INCINTL; do |
| 16447 | |
| 16448 | acl_save_prefix="$prefix" |
| 16449 | prefix="$acl_final_prefix" |
| 16450 | acl_save_exec_prefix="$exec_prefix" |
| 16451 | exec_prefix="$acl_final_exec_prefix" |
| 16452 | eval x=\"$x\" |
| 16453 | exec_prefix="$acl_save_exec_prefix" |
| 16454 | prefix="$acl_save_prefix" |
| 16455 | |
| 16456 | if test "X$x" = "X-I$additional_includedir"; then |
| 16457 | haveit=yes |
| 16458 | break |
| 16459 | fi |
| 16460 | done |
| 16461 | if test -z "$haveit"; then |
| 16462 | if test -d "$additional_includedir"; then |
| 16463 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 16464 | fi |
| 16465 | fi |
| 16466 | fi |
| 16467 | fi |
| 16468 | fi |
| 16469 | if test -n "$found_la"; then |
| 16470 | save_libdir="$libdir" |
| 16471 | case "$found_la" in |
| 16472 | */* | *\\*) . "$found_la" ;; |
| 16473 | *) . "./$found_la" ;; |
| 16474 | esac |
| 16475 | libdir="$save_libdir" |
| 16476 | for dep in $dependency_libs; do |
| 16477 | case "$dep" in |
| 16478 | -L*) |
| 16479 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 16480 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 16481 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 16482 | haveit= |
| 16483 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 16484 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 16485 | if test -n "$GCC"; then |
| 16486 | case $host_os in |
| 16487 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 16488 | esac |
| 16489 | fi |
| 16490 | fi |
| 16491 | if test -z "$haveit"; then |
| 16492 | haveit= |
| 16493 | for x in $LDFLAGS $LIBINTL; do |
| 16494 | |
| 16495 | acl_save_prefix="$prefix" |
| 16496 | prefix="$acl_final_prefix" |
| 16497 | acl_save_exec_prefix="$exec_prefix" |
| 16498 | exec_prefix="$acl_final_exec_prefix" |
| 16499 | eval x=\"$x\" |
| 16500 | exec_prefix="$acl_save_exec_prefix" |
| 16501 | prefix="$acl_save_prefix" |
| 16502 | |
| 16503 | if test "X$x" = "X-L$additional_libdir"; then |
| 16504 | haveit=yes |
| 16505 | break |
| 16506 | fi |
| 16507 | done |
| 16508 | if test -z "$haveit"; then |
| 16509 | if test -d "$additional_libdir"; then |
| 16510 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 16511 | fi |
| 16512 | fi |
| 16513 | haveit= |
| 16514 | for x in $LDFLAGS $LTLIBINTL; do |
| 16515 | |
| 16516 | acl_save_prefix="$prefix" |
| 16517 | prefix="$acl_final_prefix" |
| 16518 | acl_save_exec_prefix="$exec_prefix" |
| 16519 | exec_prefix="$acl_final_exec_prefix" |
| 16520 | eval x=\"$x\" |
| 16521 | exec_prefix="$acl_save_exec_prefix" |
| 16522 | prefix="$acl_save_prefix" |
| 16523 | |
| 16524 | if test "X$x" = "X-L$additional_libdir"; then |
| 16525 | haveit=yes |
| 16526 | break |
| 16527 | fi |
| 16528 | done |
| 16529 | if test -z "$haveit"; then |
| 16530 | if test -d "$additional_libdir"; then |
| 16531 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 16532 | fi |
| 16533 | fi |
| 16534 | fi |
| 16535 | fi |
| 16536 | ;; |
| 16537 | -R*) |
| 16538 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 16539 | if test "$enable_rpath" != no; then |
| 16540 | haveit= |
| 16541 | for x in $rpathdirs; do |
| 16542 | if test "X$x" = "X$dir"; then |
| 16543 | haveit=yes |
| 16544 | break |
| 16545 | fi |
| 16546 | done |
| 16547 | if test -z "$haveit"; then |
| 16548 | rpathdirs="$rpathdirs $dir" |
| 16549 | fi |
| 16550 | haveit= |
| 16551 | for x in $ltrpathdirs; do |
| 16552 | if test "X$x" = "X$dir"; then |
| 16553 | haveit=yes |
| 16554 | break |
| 16555 | fi |
| 16556 | done |
| 16557 | if test -z "$haveit"; then |
| 16558 | ltrpathdirs="$ltrpathdirs $dir" |
| 16559 | fi |
| 16560 | fi |
| 16561 | ;; |
| 16562 | -l*) |
| 16563 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 16564 | ;; |
| 16565 | *.la) |
| 16566 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 16567 | ;; |
| 16568 | *) |
| 16569 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 16570 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 16571 | ;; |
| 16572 | esac |
| 16573 | done |
| 16574 | fi |
| 16575 | else |
| 16576 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 16577 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 16578 | fi |
| 16579 | fi |
| 16580 | fi |
| 16581 | done |
| 16582 | done |
| 16583 | if test "X$rpathdirs" != "X"; then |
| 16584 | if test -n "$acl_hardcode_libdir_separator"; then |
| 16585 | alldirs= |
| 16586 | for found_dir in $rpathdirs; do |
| 16587 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 16588 | done |
| 16589 | acl_save_libdir="$libdir" |
| 16590 | libdir="$alldirs" |
| 16591 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 16592 | libdir="$acl_save_libdir" |
| 16593 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 16594 | else |
| 16595 | for found_dir in $rpathdirs; do |
| 16596 | acl_save_libdir="$libdir" |
| 16597 | libdir="$found_dir" |
| 16598 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 16599 | libdir="$acl_save_libdir" |
| 16600 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 16601 | done |
| 16602 | fi |
| 16603 | fi |
| 16604 | if test "X$ltrpathdirs" != "X"; then |
| 16605 | for found_dir in $ltrpathdirs; do |
| 16606 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 16607 | done |
| 16608 | fi |
| 16609 | |
| 16610 | |
| 16611 | |
| 16612 | |
| 16613 | |
| 16614 | |
| 16615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
| 16616 | printf %s "checking for GNU gettext in libintl... " >&6; } |
| 16617 | if eval test \${$gt_func_gnugettext_libintl+y} |
| 16618 | then : |
| 16619 | printf %s "(cached) " >&6 |
| 16620 | else $as_nop |
| 16621 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 16622 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 16623 | gt_save_LIBS="$LIBS" |
| 16624 | LIBS="$LIBS $LIBINTL" |
| 16625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16626 | /* end confdefs.h. */ |
| 16627 | |
| 16628 | #include <libintl.h> |
| 16629 | $gt_revision_test_code |
| 16630 | extern int _nl_msg_cat_cntr; |
| 16631 | extern |
| 16632 | #ifdef __cplusplus |
| 16633 | "C" |
| 16634 | #endif |
| 16635 | const char *_nl_expand_alias (const char *); |
| 16636 | |
| 16637 | int |
| 16638 | main (void) |
| 16639 | { |
| 16640 | |
| 16641 | bindtextdomain ("", ""); |
| 16642 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 16643 | |
| 16644 | ; |
| 16645 | return 0; |
| 16646 | } |
| 16647 | _ACEOF |
| 16648 | if ac_fn_c_try_link "$LINENO" |
| 16649 | then : |
| 16650 | eval "$gt_func_gnugettext_libintl=yes" |
| 16651 | else $as_nop |
| 16652 | eval "$gt_func_gnugettext_libintl=no" |
| 16653 | fi |
| 16654 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16655 | conftest$ac_exeext conftest.$ac_ext |
| 16656 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
| 16657 | LIBS="$LIBS $LIBICONV" |
| 16658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16659 | /* end confdefs.h. */ |
| 16660 | |
| 16661 | #include <libintl.h> |
| 16662 | $gt_revision_test_code |
| 16663 | extern int _nl_msg_cat_cntr; |
| 16664 | extern |
| 16665 | #ifdef __cplusplus |
| 16666 | "C" |
| 16667 | #endif |
| 16668 | const char *_nl_expand_alias (const char *); |
| 16669 | |
| 16670 | int |
| 16671 | main (void) |
| 16672 | { |
| 16673 | |
| 16674 | bindtextdomain ("", ""); |
| 16675 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 16676 | |
| 16677 | ; |
| 16678 | return 0; |
| 16679 | } |
| 16680 | _ACEOF |
| 16681 | if ac_fn_c_try_link "$LINENO" |
| 16682 | then : |
| 16683 | LIBINTL="$LIBINTL $LIBICONV" |
| 16684 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 16685 | eval "$gt_func_gnugettext_libintl=yes" |
| 16686 | |
| 16687 | fi |
| 16688 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16689 | conftest$ac_exeext conftest.$ac_ext |
| 16690 | fi |
| 16691 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 16692 | LIBS="$gt_save_LIBS" |
| 16693 | fi |
| 16694 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 16695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16696 | printf "%s\n" "$ac_res" >&6; } |
| 16697 | fi |
| 16698 | |
| 16699 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 16700 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
| 16701 | && test "$PACKAGE" != gettext-runtime \ |
| 16702 | && test "$PACKAGE" != gettext-tools; }; then |
| 16703 | gt_use_preinstalled_gnugettext=yes |
| 16704 | else |
| 16705 | LIBINTL= |
| 16706 | LTLIBINTL= |
| 16707 | INCINTL= |
| 16708 | fi |
| 16709 | |
| 16710 | |
| 16711 | |
| 16712 | if test -n "$INTL_MACOSX_LIBS"; then |
| 16713 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 16714 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 16715 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 16716 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 16717 | fi |
| 16718 | fi |
| 16719 | |
| 16720 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 16721 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 16722 | |
| 16723 | printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
| 16724 | |
| 16725 | else |
| 16726 | USE_NLS=no |
| 16727 | fi |
| 16728 | fi |
| 16729 | |
| 16730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
| 16731 | printf %s "checking whether to use NLS... " >&6; } |
| 16732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 16733 | printf "%s\n" "$USE_NLS" >&6; } |
| 16734 | if test "$USE_NLS" = "yes"; then |
| 16735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
| 16736 | printf %s "checking where the gettext function comes from... " >&6; } |
| 16737 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 16738 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 16739 | gt_source="external libintl" |
| 16740 | else |
| 16741 | gt_source="libc" |
| 16742 | fi |
| 16743 | else |
| 16744 | gt_source="included intl directory" |
| 16745 | fi |
| 16746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
| 16747 | printf "%s\n" "$gt_source" >&6; } |
| 16748 | fi |
| 16749 | |
| 16750 | if test "$USE_NLS" = "yes"; then |
| 16751 | |
| 16752 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 16753 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 16754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
| 16755 | printf %s "checking how to link with libintl... " >&6; } |
| 16756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
| 16757 | printf "%s\n" "$LIBINTL" >&6; } |
| 16758 | |
| 16759 | for element in $INCINTL; do |
| 16760 | haveit= |
| 16761 | for x in $CPPFLAGS; do |
| 16762 | |
| 16763 | acl_save_prefix="$prefix" |
| 16764 | prefix="$acl_final_prefix" |
| 16765 | acl_save_exec_prefix="$exec_prefix" |
| 16766 | exec_prefix="$acl_final_exec_prefix" |
| 16767 | eval x=\"$x\" |
| 16768 | exec_prefix="$acl_save_exec_prefix" |
| 16769 | prefix="$acl_save_prefix" |
| 16770 | |
| 16771 | if test "X$x" = "X$element"; then |
| 16772 | haveit=yes |
| 16773 | break |
| 16774 | fi |
| 16775 | done |
| 16776 | if test -z "$haveit"; then |
| 16777 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 16778 | fi |
| 16779 | done |
| 16780 | |
| 16781 | fi |
| 16782 | |
| 16783 | |
| 16784 | printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
| 16785 | |
| 16786 | |
| 16787 | printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
| 16788 | |
| 16789 | fi |
| 16790 | |
| 16791 | POSUB=po |
| 16792 | fi |
| 16793 | |
| 16794 | |
| 16795 | |
| 16796 | INTLLIBS="$LIBINTL" |
| 16797 | |
| 16798 | |
| 16799 | |
| 16800 | |
| 16801 | |
| 16802 | |
| 16803 | |
| 16804 | |
| 16805 | printf "%s\n" "#define GETTEXT_PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 16806 | |
| 16807 | |
| 16808 | # Enable silent rules is available |
| 16809 | # Check whether --enable-silent-rules was given. |
| 16810 | if test ${enable_silent_rules+y} |
| 16811 | then : |
| 16812 | enableval=$enable_silent_rules; |
| 16813 | fi |
| 16814 | |
| 16815 | case $enable_silent_rules in # ((( |
| 16816 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 16817 | no) AM_DEFAULT_VERBOSITY=1;; |
| 16818 | *) AM_DEFAULT_VERBOSITY=0;; |
| 16819 | esac |
| 16820 | am_make=${MAKE-make} |
| 16821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 16822 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 16823 | if test ${am_cv_make_support_nested_variables+y} |
| 16824 | then : |
| 16825 | printf %s "(cached) " >&6 |
| 16826 | else $as_nop |
| 16827 | if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 16828 | BAR0=false |
| 16829 | BAR1=true |
| 16830 | V=1 |
| 16831 | am__doit: |
| 16832 | @$(TRUE) |
| 16833 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 16834 | am_cv_make_support_nested_variables=yes |
| 16835 | else |
| 16836 | am_cv_make_support_nested_variables=no |
| 16837 | fi |
| 16838 | fi |
| 16839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 16840 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 16841 | if test $am_cv_make_support_nested_variables = yes; then |
| 16842 | AM_V='$(V)' |
| 16843 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 16844 | else |
| 16845 | AM_V=$AM_DEFAULT_VERBOSITY |
| 16846 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 16847 | fi |
| 16848 | AM_BACKSLASH='\' |
| 16849 | |
| 16850 | |
| 16851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 16852 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 16853 | # Check whether --enable-maintainer-mode was given. |
| 16854 | if test ${enable_maintainer_mode+y} |
| 16855 | then : |
| 16856 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 16857 | else $as_nop |
| 16858 | USE_MAINTAINER_MODE=yes |
| 16859 | fi |
| 16860 | |
| 16861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 16862 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
| 16863 | if test $USE_MAINTAINER_MODE = yes; then |
| 16864 | MAINTAINER_MODE_TRUE= |
| 16865 | MAINTAINER_MODE_FALSE='#' |
| 16866 | else |
| 16867 | MAINTAINER_MODE_TRUE='#' |
| 16868 | MAINTAINER_MODE_FALSE= |
| 16869 | fi |
| 16870 | |
| 16871 | MAINT=$MAINTAINER_MODE_TRUE |
| 16872 | |
| 16873 | |
| 16874 | |
| 16875 | |
| 16876 | for flag in \ |
| 16877 | -pipe \ |
| 16878 | -Wall \ |
| 16879 | -Werror=empty-body \ |
| 16880 | -Werror=strict-prototypes \ |
| 16881 | -Werror=missing-prototypes \ |
| 16882 | -Werror=implicit-function-declaration \ |
| 16883 | "-Werror=format=2 -Werror=format-security -Werror=format-nonliteral" \ |
| 16884 | -Werror=pointer-arith -Werror=init-self \ |
| 16885 | -Werror=missing-declarations \ |
| 16886 | -Werror=return-type \ |
| 16887 | -Werror=overflow \ |
| 16888 | -Werror=int-conversion \ |
| 16889 | -Werror=parenthesis \ |
| 16890 | -Werror=incompatible-pointer-types \ |
| 16891 | -Werror=misleading-indentation \ |
| 16892 | -Werror=missing-include-dirs \ |
| 16893 | ; do |
| 16894 | |
| 16895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 |
| 16896 | printf %s "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } |
| 16897 | if { as_var=`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } |
| 16898 | then : |
| 16899 | printf %s "(cached) " >&6 |
| 16900 | else $as_nop |
| 16901 | eval "cc_save_CFLAGS='${CFLAGS}'" |
| 16902 | eval "CFLAGS='${cc_save_CFLAGS} -Werror `echo "$flag" | sed 's/^-Wno-/-W/'`'" |
| 16903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16904 | /* end confdefs.h. */ |
| 16905 | int main(void) { return 0; } |
| 16906 | _ACEOF |
| 16907 | if ac_fn_c_try_link "$LINENO" |
| 16908 | then : |
| 16909 | eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" |
| 16910 | else $as_nop |
| 16911 | eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" |
| 16912 | fi |
| 16913 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16914 | conftest$ac_exeext conftest.$ac_ext |
| 16915 | eval "CFLAGS='$cc_save_CFLAGS'" |
| 16916 | fi |
| 16917 | eval ac_res=\$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` |
| 16918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16919 | printf "%s\n" "$ac_res" >&6; } |
| 16920 | |
| 16921 | if eval test x$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes |
| 16922 | then : |
| 16923 | eval "WARN_CFLAGS='${WARN_CFLAGS} $flag'" |
| 16924 | fi |
| 16925 | |
| 16926 | done |
| 16927 | |
| 16928 | |
| 16929 | |
| 16930 | |
| 16931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Valgrind on the unit tests" >&5 |
| 16932 | printf %s "checking whether to enable Valgrind on the unit tests... " >&6; } |
| 16933 | # Check whether --enable-valgrind was given. |
| 16934 | if test ${enable_valgrind+y} |
| 16935 | then : |
| 16936 | enableval=$enable_valgrind; enable_valgrind=$enableval |
| 16937 | else $as_nop |
| 16938 | enable_valgrind= |
| 16939 | fi |
| 16940 | |
| 16941 | |
| 16942 | # Check for Valgrind. |
| 16943 | # Extract the first word of "valgrind", so it can be a program name with args. |
| 16944 | set dummy valgrind; ac_word=$2 |
| 16945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16946 | printf %s "checking for $ac_word... " >&6; } |
| 16947 | if test ${ac_cv_prog_VALGRIND+y} |
| 16948 | then : |
| 16949 | printf %s "(cached) " >&6 |
| 16950 | else $as_nop |
| 16951 | if test -n "$VALGRIND"; then |
| 16952 | ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. |
| 16953 | else |
| 16954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16955 | for as_dir in $PATH |
| 16956 | do |
| 16957 | IFS=$as_save_IFS |
| 16958 | case $as_dir in #((( |
| 16959 | '') as_dir=./ ;; |
| 16960 | */) ;; |
| 16961 | *) as_dir=$as_dir/ ;; |
| 16962 | esac |
| 16963 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16964 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 16965 | ac_cv_prog_VALGRIND="valgrind" |
| 16966 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 16967 | break 2 |
| 16968 | fi |
| 16969 | done |
| 16970 | done |
| 16971 | IFS=$as_save_IFS |
| 16972 | |
| 16973 | fi |
| 16974 | fi |
| 16975 | VALGRIND=$ac_cv_prog_VALGRIND |
| 16976 | if test -n "$VALGRIND"; then |
| 16977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 |
| 16978 | printf "%s\n" "$VALGRIND" >&6; } |
| 16979 | else |
| 16980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16981 | printf "%s\n" "no" >&6; } |
| 16982 | fi |
| 16983 | |
| 16984 | |
| 16985 | |
| 16986 | if test "$enable_valgrind" = "yes" -a "$VALGRIND" = "" |
| 16987 | then : |
| 16988 | |
| 16989 | as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5 |
| 16990 | |
| 16991 | fi |
| 16992 | if test "$enable_valgrind" != "no" |
| 16993 | then : |
| 16994 | enable_valgrind=yes |
| 16995 | fi |
| 16996 | |
| 16997 | if test "$enable_valgrind" = "yes"; then |
| 16998 | VALGRIND_ENABLED_TRUE= |
| 16999 | VALGRIND_ENABLED_FALSE='#' |
| 17000 | else |
| 17001 | VALGRIND_ENABLED_TRUE='#' |
| 17002 | VALGRIND_ENABLED_FALSE= |
| 17003 | fi |
| 17004 | |
| 17005 | VALGRIND_ENABLED=$enable_valgrind |
| 17006 | |
| 17007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_valgrind" >&5 |
| 17008 | printf "%s\n" "$enable_valgrind" >&6; } |
| 17009 | |
| 17010 | # Check for Valgrind tools we care about. |
| 17011 | #m4_define([valgrind_tool_list],[[memcheck], [helgrind], [drd], [exp-sgcheck]]) |
| 17012 | # I trimmed this, because we fail on all the thread stuff |
| 17013 | |
| 17014 | |
| 17015 | if test "$VALGRIND" != "" |
| 17016 | then : |
| 17017 | |
| 17018 | |
| 17019 | |
| 17020 | |
| 17021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5 |
| 17022 | printf %s "checking for Valgrind tool memcheck... " >&6; } |
| 17023 | if test ${ax_cv_valgrind_tool_memcheck+y} |
| 17024 | then : |
| 17025 | printf %s "(cached) " >&6 |
| 17026 | else $as_nop |
| 17027 | |
| 17028 | ax_cv_valgrind_tool_memcheck= |
| 17029 | if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1` |
| 17030 | then : |
| 17031 | |
| 17032 | ax_cv_valgrind_tool_memcheck="memcheck" |
| 17033 | |
| 17034 | fi |
| 17035 | |
| 17036 | fi |
| 17037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5 |
| 17038 | printf "%s\n" "$ax_cv_valgrind_tool_memcheck" >&6; } |
| 17039 | |
| 17040 | VALGRIND_HAVE_TOOL_memcheck=$ax_cv_valgrind_tool_memcheck |
| 17041 | |
| 17042 | |
| 17043 | |
| 17044 | fi |
| 17045 | |
| 17046 | VALGRIND_CHECK_RULES=' |
| 17047 | # Valgrind check |
| 17048 | # |
| 17049 | # Optional: |
| 17050 | # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions |
| 17051 | # files to load. (Default: empty) |
| 17052 | # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools. |
| 17053 | # (Default: --num-callers=30) |
| 17054 | # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of: |
| 17055 | # memcheck, helgrind, drd, sgcheck). (Default: various) |
| 17056 | |
| 17057 | # Optional variables |
| 17058 | VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES)) |
| 17059 | VALGRIND_FLAGS ?= --num-callers=30 |
| 17060 | VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no |
| 17061 | VALGRIND_helgrind_FLAGS ?= --history-level=approx |
| 17062 | VALGRIND_drd_FLAGS ?= |
| 17063 | VALGRIND_sgcheck_FLAGS ?= |
| 17064 | |
| 17065 | # Internal use |
| 17066 | valgrind_tools = memcheck helgrind drd sgcheck |
| 17067 | valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools))) |
| 17068 | |
| 17069 | valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS) |
| 17070 | valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS) |
| 17071 | valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS) |
| 17072 | valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS) |
| 17073 | |
| 17074 | valgrind_quiet = $(valgrind_quiet_$(V)) |
| 17075 | valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY)) |
| 17076 | valgrind_quiet_0 = --quiet |
| 17077 | |
| 17078 | # Support running with and without libtool. |
| 17079 | ifneq ($(LIBTOOL),) |
| 17080 | valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute |
| 17081 | else |
| 17082 | valgrind_lt = |
| 17083 | endif |
| 17084 | |
| 17085 | # Use recursive makes in order to ignore errors during check |
| 17086 | check-valgrind: |
| 17087 | ifeq ($(VALGRIND_ENABLED),yes) |
| 17088 | -$(foreach tool,$(valgrind_tools), \ |
| 17089 | $(if $(VALGRIND_HAVE_TOOL_$(tool))$(VALGRIND_HAVE_TOOL_exp_$(tool)), \ |
| 17090 | $(MAKE) $(AM_MAKEFLAGS) -k check-valgrind-tool VALGRIND_TOOL=$(tool); \ |
| 17091 | ) \ |
| 17092 | ) |
| 17093 | else |
| 17094 | @echo "Need to reconfigure with --enable-valgrind" |
| 17095 | endif |
| 17096 | |
| 17097 | # Valgrind running |
| 17098 | VALGRIND_TESTS_ENVIRONMENT = \ |
| 17099 | $(TESTS_ENVIRONMENT) \ |
| 17100 | env VALGRIND=$(VALGRIND) \ |
| 17101 | G_SLICE=always-malloc,debug-blocks \ |
| 17102 | G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly |
| 17103 | |
| 17104 | VALGRIND_LOG_COMPILER = \ |
| 17105 | $(valgrind_lt) \ |
| 17106 | $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS) |
| 17107 | |
| 17108 | check-valgrind-tool: |
| 17109 | ifeq ($(VALGRIND_ENABLED),yes) |
| 17110 | $(MAKE) check-TESTS \ |
| 17111 | TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)" \ |
| 17112 | LOG_COMPILER="$(VALGRIND_LOG_COMPILER)" \ |
| 17113 | LOG_FLAGS="$(valgrind_$(VALGRIND_TOOL)_flags)" \ |
| 17114 | TEST_SUITE_LOG=test-suite-$(VALGRIND_TOOL).log |
| 17115 | else |
| 17116 | @echo "Need to reconfigure with --enable-valgrind" |
| 17117 | endif |
| 17118 | |
| 17119 | DISTCHECK_CONFIGURE_FLAGS ?= |
| 17120 | DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind |
| 17121 | |
| 17122 | MOSTLYCLEANFILES ?= |
| 17123 | MOSTLYCLEANFILES += $(valgrind_log_files) |
| 17124 | |
| 17125 | .PHONY: check-valgrind check-valgrind-tool |
| 17126 | ' |
| 17127 | |
| 17128 | |
| 17129 | |
| 17130 | |
| 17131 | |
| 17132 | |
| 17133 | |
| 17134 | |
| 17135 | |
| 17136 | |
| 17137 | |
| 17138 | |
| 17139 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 17140 | if test -n "$ac_tool_prefix"; then |
| 17141 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 17142 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 17143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17144 | printf %s "checking for $ac_word... " >&6; } |
| 17145 | if test ${ac_cv_path_PKG_CONFIG+y} |
| 17146 | then : |
| 17147 | printf %s "(cached) " >&6 |
| 17148 | else $as_nop |
| 17149 | case $PKG_CONFIG in |
| 17150 | [\\/]* | ?:[\\/]*) |
| 17151 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 17152 | ;; |
| 17153 | *) |
| 17154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17155 | for as_dir in $PATH |
| 17156 | do |
| 17157 | IFS=$as_save_IFS |
| 17158 | case $as_dir in #((( |
| 17159 | '') as_dir=./ ;; |
| 17160 | */) ;; |
| 17161 | *) as_dir=$as_dir/ ;; |
| 17162 | esac |
| 17163 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17164 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17165 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 17166 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17167 | break 2 |
| 17168 | fi |
| 17169 | done |
| 17170 | done |
| 17171 | IFS=$as_save_IFS |
| 17172 | |
| 17173 | ;; |
| 17174 | esac |
| 17175 | fi |
| 17176 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 17177 | if test -n "$PKG_CONFIG"; then |
| 17178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 17179 | printf "%s\n" "$PKG_CONFIG" >&6; } |
| 17180 | else |
| 17181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17182 | printf "%s\n" "no" >&6; } |
| 17183 | fi |
| 17184 | |
| 17185 | |
| 17186 | fi |
| 17187 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 17188 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 17189 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 17190 | set dummy pkg-config; ac_word=$2 |
| 17191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17192 | printf %s "checking for $ac_word... " >&6; } |
| 17193 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 17194 | then : |
| 17195 | printf %s "(cached) " >&6 |
| 17196 | else $as_nop |
| 17197 | case $ac_pt_PKG_CONFIG in |
| 17198 | [\\/]* | ?:[\\/]*) |
| 17199 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 17200 | ;; |
| 17201 | *) |
| 17202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17203 | for as_dir in $PATH |
| 17204 | do |
| 17205 | IFS=$as_save_IFS |
| 17206 | case $as_dir in #((( |
| 17207 | '') as_dir=./ ;; |
| 17208 | */) ;; |
| 17209 | *) as_dir=$as_dir/ ;; |
| 17210 | esac |
| 17211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17212 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17213 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 17214 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17215 | break 2 |
| 17216 | fi |
| 17217 | done |
| 17218 | done |
| 17219 | IFS=$as_save_IFS |
| 17220 | |
| 17221 | ;; |
| 17222 | esac |
| 17223 | fi |
| 17224 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 17225 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 17226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 17227 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
| 17228 | else |
| 17229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17230 | printf "%s\n" "no" >&6; } |
| 17231 | fi |
| 17232 | |
| 17233 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 17234 | PKG_CONFIG="" |
| 17235 | else |
| 17236 | case $cross_compiling:$ac_tool_warned in |
| 17237 | yes:) |
| 17238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17239 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17240 | ac_tool_warned=yes ;; |
| 17241 | esac |
| 17242 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 17243 | fi |
| 17244 | else |
| 17245 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 17246 | fi |
| 17247 | |
| 17248 | fi |
| 17249 | if test -n "$PKG_CONFIG"; then |
| 17250 | _pkg_min_version=0.24 |
| 17251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 17252 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 17253 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 17254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17255 | printf "%s\n" "yes" >&6; } |
| 17256 | else |
| 17257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17258 | printf "%s\n" "no" >&6; } |
| 17259 | PKG_CONFIG="" |
| 17260 | fi |
| 17261 | fi |
| 17262 | |
| 17263 | # For libglnx |
| 17264 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 17265 | if test "x$ac_cv_header_sys_xattr_h" = xyes |
| 17266 | then : |
| 17267 | |
| 17268 | else $as_nop |
| 17269 | as_fn_error $? "You must have sys/xattr.h from glibc" "$LINENO" 5 |
| 17270 | fi |
| 17271 | |
| 17272 | |
| 17273 | |
| 17274 | pkg_failed=no |
| 17275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl" >&5 |
| 17276 | printf %s "checking for glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl... " >&6; } |
| 17277 | |
| 17278 | if test -n "$BASE_CFLAGS"; then |
| 17279 | pkg_cv_BASE_CFLAGS="$BASE_CFLAGS" |
| 17280 | elif test -n "$PKG_CONFIG"; then |
| 17281 | if test -n "$PKG_CONFIG" && \ |
| 17282 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= \$OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl\""; } >&5 |
| 17283 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl") 2>&5 |
| 17284 | ac_status=$? |
| 17285 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17286 | test $ac_status = 0; }; then |
| 17287 | pkg_cv_BASE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl" 2>/dev/null` |
| 17288 | test "x$?" != "x0" && pkg_failed=yes |
| 17289 | else |
| 17290 | pkg_failed=yes |
| 17291 | fi |
| 17292 | else |
| 17293 | pkg_failed=untried |
| 17294 | fi |
| 17295 | if test -n "$BASE_LIBS"; then |
| 17296 | pkg_cv_BASE_LIBS="$BASE_LIBS" |
| 17297 | elif test -n "$PKG_CONFIG"; then |
| 17298 | if test -n "$PKG_CONFIG" && \ |
| 17299 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= \$OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl\""; } >&5 |
| 17300 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl") 2>&5 |
| 17301 | ac_status=$? |
| 17302 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17303 | test $ac_status = 0; }; then |
| 17304 | pkg_cv_BASE_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl" 2>/dev/null` |
| 17305 | test "x$?" != "x0" && pkg_failed=yes |
| 17306 | else |
| 17307 | pkg_failed=yes |
| 17308 | fi |
| 17309 | else |
| 17310 | pkg_failed=untried |
| 17311 | fi |
| 17312 | |
| 17313 | |
| 17314 | |
| 17315 | if test $pkg_failed = yes; then |
| 17316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17317 | printf "%s\n" "no" >&6; } |
| 17318 | |
| 17319 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 17320 | _pkg_short_errors_supported=yes |
| 17321 | else |
| 17322 | _pkg_short_errors_supported=no |
| 17323 | fi |
| 17324 | if test $_pkg_short_errors_supported = yes; then |
| 17325 | BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl" 2>&1` |
| 17326 | else |
| 17327 | BASE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl" 2>&1` |
| 17328 | fi |
| 17329 | # Put the nasty error message in config.log where it belongs |
| 17330 | echo "$BASE_PKG_ERRORS" >&5 |
| 17331 | |
| 17332 | as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQS gio-2.0 gio-unix-2.0 ostree-1 >= $OSTREE_REQS json-glib-1.0 libxml-2.0 >= 2.4 libcurl) were not met: |
| 17333 | |
| 17334 | $BASE_PKG_ERRORS |
| 17335 | |
| 17336 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 17337 | installed software in a non-standard prefix. |
| 17338 | |
| 17339 | Alternatively, you may set the environment variables BASE_CFLAGS |
| 17340 | and BASE_LIBS to avoid the need to call pkg-config. |
| 17341 | See the pkg-config man page for more details." "$LINENO" 5 |
| 17342 | elif test $pkg_failed = untried; then |
| 17343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17344 | printf "%s\n" "no" >&6; } |
| 17345 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17346 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17347 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| 17348 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 17349 | path to pkg-config. |
| 17350 | |
| 17351 | Alternatively, you may set the environment variables BASE_CFLAGS |
| 17352 | and BASE_LIBS to avoid the need to call pkg-config. |
| 17353 | See the pkg-config man page for more details. |
| 17354 | |
| 17355 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 17356 | See \`config.log' for more details" "$LINENO" 5; } |
| 17357 | else |
| 17358 | BASE_CFLAGS=$pkg_cv_BASE_CFLAGS |
| 17359 | BASE_LIBS=$pkg_cv_BASE_LIBS |
| 17360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17361 | printf "%s\n" "yes" >&6; } |
| 17362 | |
| 17363 | fi |
| 17364 | |
| 17365 | |
| 17366 | pkg_failed=no |
| 17367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libelf >= 0.8.12" >&5 |
| 17368 | printf %s "checking for libelf >= 0.8.12... " >&6; } |
| 17369 | |
| 17370 | if test -n "$LIBELF_CFLAGS"; then |
| 17371 | pkg_cv_LIBELF_CFLAGS="$LIBELF_CFLAGS" |
| 17372 | elif test -n "$PKG_CONFIG"; then |
| 17373 | if test -n "$PKG_CONFIG" && \ |
| 17374 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf >= 0.8.12\""; } >&5 |
| 17375 | ($PKG_CONFIG --exists --print-errors "libelf >= 0.8.12") 2>&5 |
| 17376 | ac_status=$? |
| 17377 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17378 | test $ac_status = 0; }; then |
| 17379 | pkg_cv_LIBELF_CFLAGS=`$PKG_CONFIG --cflags "libelf >= 0.8.12" 2>/dev/null` |
| 17380 | test "x$?" != "x0" && pkg_failed=yes |
| 17381 | else |
| 17382 | pkg_failed=yes |
| 17383 | fi |
| 17384 | else |
| 17385 | pkg_failed=untried |
| 17386 | fi |
| 17387 | if test -n "$LIBELF_LIBS"; then |
| 17388 | pkg_cv_LIBELF_LIBS="$LIBELF_LIBS" |
| 17389 | elif test -n "$PKG_CONFIG"; then |
| 17390 | if test -n "$PKG_CONFIG" && \ |
| 17391 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf >= 0.8.12\""; } >&5 |
| 17392 | ($PKG_CONFIG --exists --print-errors "libelf >= 0.8.12") 2>&5 |
| 17393 | ac_status=$? |
| 17394 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17395 | test $ac_status = 0; }; then |
| 17396 | pkg_cv_LIBELF_LIBS=`$PKG_CONFIG --libs "libelf >= 0.8.12" 2>/dev/null` |
| 17397 | test "x$?" != "x0" && pkg_failed=yes |
| 17398 | else |
| 17399 | pkg_failed=yes |
| 17400 | fi |
| 17401 | else |
| 17402 | pkg_failed=untried |
| 17403 | fi |
| 17404 | |
| 17405 | |
| 17406 | |
| 17407 | if test $pkg_failed = yes; then |
| 17408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17409 | printf "%s\n" "no" >&6; } |
| 17410 | |
| 17411 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 17412 | _pkg_short_errors_supported=yes |
| 17413 | else |
| 17414 | _pkg_short_errors_supported=no |
| 17415 | fi |
| 17416 | if test $_pkg_short_errors_supported = yes; then |
| 17417 | LIBELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelf >= 0.8.12" 2>&1` |
| 17418 | else |
| 17419 | LIBELF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelf >= 0.8.12" 2>&1` |
| 17420 | fi |
| 17421 | # Put the nasty error message in config.log where it belongs |
| 17422 | echo "$LIBELF_PKG_ERRORS" >&5 |
| 17423 | |
| 17424 | have_libelf=maybe |
| 17425 | elif test $pkg_failed = untried; then |
| 17426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17427 | printf "%s\n" "no" >&6; } |
| 17428 | have_libelf=maybe |
| 17429 | else |
| 17430 | LIBELF_CFLAGS=$pkg_cv_LIBELF_CFLAGS |
| 17431 | LIBELF_LIBS=$pkg_cv_LIBELF_LIBS |
| 17432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17433 | printf "%s\n" "yes" >&6; } |
| 17434 | have_libelf=yes |
| 17435 | fi |
| 17436 | if test $have_libelf = maybe |
| 17437 | then : |
| 17438 | |
| 17439 | save_LIBS=$LIBS |
| 17440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
| 17441 | printf %s "checking for elf_begin in -lelf... " >&6; } |
| 17442 | if test ${ac_cv_lib_elf_elf_begin+y} |
| 17443 | then : |
| 17444 | printf %s "(cached) " >&6 |
| 17445 | else $as_nop |
| 17446 | ac_check_lib_save_LIBS=$LIBS |
| 17447 | LIBS="-lelf $LIBS" |
| 17448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17449 | /* end confdefs.h. */ |
| 17450 | |
| 17451 | /* Override any GCC internal prototype to avoid an error. |
| 17452 | Use char because int might match the return type of a GCC |
| 17453 | builtin and then its argument prototype would still apply. */ |
| 17454 | char elf_begin (); |
| 17455 | int |
| 17456 | main (void) |
| 17457 | { |
| 17458 | return elf_begin (); |
| 17459 | ; |
| 17460 | return 0; |
| 17461 | } |
| 17462 | _ACEOF |
| 17463 | if ac_fn_c_try_link "$LINENO" |
| 17464 | then : |
| 17465 | ac_cv_lib_elf_elf_begin=yes |
| 17466 | else $as_nop |
| 17467 | ac_cv_lib_elf_elf_begin=no |
| 17468 | fi |
| 17469 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17470 | conftest$ac_exeext conftest.$ac_ext |
| 17471 | LIBS=$ac_check_lib_save_LIBS |
| 17472 | fi |
| 17473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 17474 | printf "%s\n" "$ac_cv_lib_elf_elf_begin" >&6; } |
| 17475 | if test "x$ac_cv_lib_elf_elf_begin" = xyes |
| 17476 | then : |
| 17477 | : |
| 17478 | else $as_nop |
| 17479 | have_libelf=no |
| 17480 | fi |
| 17481 | |
| 17482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5 |
| 17483 | printf %s "checking for elf_getshdrstrndx in -lelf... " >&6; } |
| 17484 | if test ${ac_cv_lib_elf_elf_getshdrstrndx+y} |
| 17485 | then : |
| 17486 | printf %s "(cached) " >&6 |
| 17487 | else $as_nop |
| 17488 | ac_check_lib_save_LIBS=$LIBS |
| 17489 | LIBS="-lelf $LIBS" |
| 17490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17491 | /* end confdefs.h. */ |
| 17492 | |
| 17493 | /* Override any GCC internal prototype to avoid an error. |
| 17494 | Use char because int might match the return type of a GCC |
| 17495 | builtin and then its argument prototype would still apply. */ |
| 17496 | char elf_getshdrstrndx (); |
| 17497 | int |
| 17498 | main (void) |
| 17499 | { |
| 17500 | return elf_getshdrstrndx (); |
| 17501 | ; |
| 17502 | return 0; |
| 17503 | } |
| 17504 | _ACEOF |
| 17505 | if ac_fn_c_try_link "$LINENO" |
| 17506 | then : |
| 17507 | ac_cv_lib_elf_elf_getshdrstrndx=yes |
| 17508 | else $as_nop |
| 17509 | ac_cv_lib_elf_elf_getshdrstrndx=no |
| 17510 | fi |
| 17511 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17512 | conftest$ac_exeext conftest.$ac_ext |
| 17513 | LIBS=$ac_check_lib_save_LIBS |
| 17514 | fi |
| 17515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5 |
| 17516 | printf "%s\n" "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; } |
| 17517 | if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes |
| 17518 | then : |
| 17519 | : |
| 17520 | else $as_nop |
| 17521 | have_libelf=no |
| 17522 | fi |
| 17523 | |
| 17524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrnum in -lelf" >&5 |
| 17525 | printf %s "checking for elf_getshdrnum in -lelf... " >&6; } |
| 17526 | if test ${ac_cv_lib_elf_elf_getshdrnum+y} |
| 17527 | then : |
| 17528 | printf %s "(cached) " >&6 |
| 17529 | else $as_nop |
| 17530 | ac_check_lib_save_LIBS=$LIBS |
| 17531 | LIBS="-lelf $LIBS" |
| 17532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17533 | /* end confdefs.h. */ |
| 17534 | |
| 17535 | /* Override any GCC internal prototype to avoid an error. |
| 17536 | Use char because int might match the return type of a GCC |
| 17537 | builtin and then its argument prototype would still apply. */ |
| 17538 | char elf_getshdrnum (); |
| 17539 | int |
| 17540 | main (void) |
| 17541 | { |
| 17542 | return elf_getshdrnum (); |
| 17543 | ; |
| 17544 | return 0; |
| 17545 | } |
| 17546 | _ACEOF |
| 17547 | if ac_fn_c_try_link "$LINENO" |
| 17548 | then : |
| 17549 | ac_cv_lib_elf_elf_getshdrnum=yes |
| 17550 | else $as_nop |
| 17551 | ac_cv_lib_elf_elf_getshdrnum=no |
| 17552 | fi |
| 17553 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17554 | conftest$ac_exeext conftest.$ac_ext |
| 17555 | LIBS=$ac_check_lib_save_LIBS |
| 17556 | fi |
| 17557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrnum" >&5 |
| 17558 | printf "%s\n" "$ac_cv_lib_elf_elf_getshdrnum" >&6; } |
| 17559 | if test "x$ac_cv_lib_elf_elf_getshdrnum" = xyes |
| 17560 | then : |
| 17561 | : |
| 17562 | else $as_nop |
| 17563 | have_libelf=no |
| 17564 | fi |
| 17565 | |
| 17566 | ac_fn_c_check_header_compile "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default" |
| 17567 | if test "x$ac_cv_header_libelf_h" = xyes |
| 17568 | then : |
| 17569 | : |
| 17570 | else $as_nop |
| 17571 | have_libelf=no |
| 17572 | fi |
| 17573 | |
| 17574 | LIBS=$save_LIBS |
| 17575 | |
| 17576 | if test $have_libelf != no; then |
| 17577 | LIBELF_LIBS=-lelf |
| 17578 | have_libelf=yes |
| 17579 | fi |
| 17580 | |
| 17581 | fi |
| 17582 | |
| 17583 | if test x$have_libelf != xyes; then |
| 17584 | as_fn_error $? "libelf not found" "$LINENO" 5 |
| 17585 | fi |
| 17586 | |
| 17587 | |
| 17588 | |
| 17589 | # Check whether --with-system-debugedit was given. |
| 17590 | if test ${with_system_debugedit+y} |
| 17591 | then : |
| 17592 | withval=$with_system_debugedit; DEBUGEDIT="$withval" |
| 17593 | else $as_nop |
| 17594 | DEBUGEDIT="${DEBUGEDIT:-false}" |
| 17595 | fi |
| 17596 | |
| 17597 | case $DEBUGEDIT in #( |
| 17598 | yes) : |
| 17599 | DEBUGEDIT=debugedit ;; #( |
| 17600 | no) : |
| 17601 | DEBUGEDIT=false ;; #( |
| 17602 | auto) : |
| 17603 | # Extract the first word of "debugedit", so it can be a program name with args. |
| 17604 | set dummy debugedit; ac_word=$2 |
| 17605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17606 | printf %s "checking for $ac_word... " >&6; } |
| 17607 | if test ${ac_cv_prog_DEBUGEDIT+y} |
| 17608 | then : |
| 17609 | printf %s "(cached) " >&6 |
| 17610 | else $as_nop |
| 17611 | if test -n "$DEBUGEDIT"; then |
| 17612 | ac_cv_prog_DEBUGEDIT="$DEBUGEDIT" # Let the user override the test. |
| 17613 | else |
| 17614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17615 | for as_dir in $PATH |
| 17616 | do |
| 17617 | IFS=$as_save_IFS |
| 17618 | case $as_dir in #((( |
| 17619 | '') as_dir=./ ;; |
| 17620 | */) ;; |
| 17621 | *) as_dir=$as_dir/ ;; |
| 17622 | esac |
| 17623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17624 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17625 | ac_cv_prog_DEBUGEDIT="debugedit" |
| 17626 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17627 | break 2 |
| 17628 | fi |
| 17629 | done |
| 17630 | done |
| 17631 | IFS=$as_save_IFS |
| 17632 | |
| 17633 | test -z "$ac_cv_prog_DEBUGEDIT" && ac_cv_prog_DEBUGEDIT="false" |
| 17634 | fi |
| 17635 | fi |
| 17636 | DEBUGEDIT=$ac_cv_prog_DEBUGEDIT |
| 17637 | if test -n "$DEBUGEDIT"; then |
| 17638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUGEDIT" >&5 |
| 17639 | printf "%s\n" "$DEBUGEDIT" >&6; } |
| 17640 | else |
| 17641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17642 | printf "%s\n" "no" >&6; } |
| 17643 | fi |
| 17644 | |
| 17645 | ;; #( |
| 17646 | *) : |
| 17647 | ;; |
| 17648 | esac |
| 17649 | if test "x$DEBUGEDIT" != xfalse; then |
| 17650 | DEBUGEDIT_VERSION=`$DEBUGEDIT -V | sed 's,.*\ \(0-9*\.0-9*\.0-9*\)$,\1,'` |
| 17651 | |
| 17652 | |
| 17653 | |
| 17654 | # Used to indicate true or false condition |
| 17655 | ax_compare_version=false |
| 17656 | |
| 17657 | # Convert the two version strings to be compared into a format that |
| 17658 | # allows a simple string comparison. The end result is that a version |
| 17659 | # string of the form 1.12.5-r617 will be converted to the form |
| 17660 | # 0001001200050617. In other words, each number is zero padded to four |
| 17661 | # digits, and non digits are removed. |
| 17662 | |
| 17663 | ax_compare_version_A=`echo "$SYSTEM_DEBUGEDIT_REQS" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 17664 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 17665 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 17666 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 17667 | -e 's/[^0-9]//g'` |
| 17668 | |
| 17669 | |
| 17670 | ax_compare_version_B=`echo "$DEBUGEDIT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 17671 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 17672 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 17673 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 17674 | -e 's/[^0-9]//g'` |
| 17675 | |
| 17676 | |
| 17677 | ax_compare_version=`echo "x$ax_compare_version_A |
| 17678 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` |
| 17679 | |
| 17680 | |
| 17681 | |
| 17682 | if test "$ax_compare_version" = "true" ; then |
| 17683 | as_fn_error $? "You need at least version $SYSTEM_DEBUGEDIT_REQS of debugedit to use the system installed version" "$LINENO" 5 |
| 17684 | fi |
| 17685 | |
| 17686 | if true; then |
| 17687 | WITH_SYSTEM_DEBUGEDIT_TRUE= |
| 17688 | WITH_SYSTEM_DEBUGEDIT_FALSE='#' |
| 17689 | else |
| 17690 | WITH_SYSTEM_DEBUGEDIT_TRUE='#' |
| 17691 | WITH_SYSTEM_DEBUGEDIT_FALSE= |
| 17692 | fi |
| 17693 | |
| 17694 | else |
| 17695 | |
| 17696 | pkg_failed=no |
| 17697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdw >= $LIBDW_REQS" >&5 |
| 17698 | printf %s "checking for libdw >= $LIBDW_REQS... " >&6; } |
| 17699 | |
| 17700 | if test -n "$LIBDW_CFLAGS"; then |
| 17701 | pkg_cv_LIBDW_CFLAGS="$LIBDW_CFLAGS" |
| 17702 | elif test -n "$PKG_CONFIG"; then |
| 17703 | if test -n "$PKG_CONFIG" && \ |
| 17704 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdw >= \$LIBDW_REQS\""; } >&5 |
| 17705 | ($PKG_CONFIG --exists --print-errors "libdw >= $LIBDW_REQS") 2>&5 |
| 17706 | ac_status=$? |
| 17707 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17708 | test $ac_status = 0; }; then |
| 17709 | pkg_cv_LIBDW_CFLAGS=`$PKG_CONFIG --cflags "libdw >= $LIBDW_REQS" 2>/dev/null` |
| 17710 | test "x$?" != "x0" && pkg_failed=yes |
| 17711 | else |
| 17712 | pkg_failed=yes |
| 17713 | fi |
| 17714 | else |
| 17715 | pkg_failed=untried |
| 17716 | fi |
| 17717 | if test -n "$LIBDW_LIBS"; then |
| 17718 | pkg_cv_LIBDW_LIBS="$LIBDW_LIBS" |
| 17719 | elif test -n "$PKG_CONFIG"; then |
| 17720 | if test -n "$PKG_CONFIG" && \ |
| 17721 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdw >= \$LIBDW_REQS\""; } >&5 |
| 17722 | ($PKG_CONFIG --exists --print-errors "libdw >= $LIBDW_REQS") 2>&5 |
| 17723 | ac_status=$? |
| 17724 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17725 | test $ac_status = 0; }; then |
| 17726 | pkg_cv_LIBDW_LIBS=`$PKG_CONFIG --libs "libdw >= $LIBDW_REQS" 2>/dev/null` |
| 17727 | test "x$?" != "x0" && pkg_failed=yes |
| 17728 | else |
| 17729 | pkg_failed=yes |
| 17730 | fi |
| 17731 | else |
| 17732 | pkg_failed=untried |
| 17733 | fi |
| 17734 | |
| 17735 | |
| 17736 | |
| 17737 | if test $pkg_failed = yes; then |
| 17738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17739 | printf "%s\n" "no" >&6; } |
| 17740 | |
| 17741 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 17742 | _pkg_short_errors_supported=yes |
| 17743 | else |
| 17744 | _pkg_short_errors_supported=no |
| 17745 | fi |
| 17746 | if test $_pkg_short_errors_supported = yes; then |
| 17747 | LIBDW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdw >= $LIBDW_REQS" 2>&1` |
| 17748 | else |
| 17749 | LIBDW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdw >= $LIBDW_REQS" 2>&1` |
| 17750 | fi |
| 17751 | # Put the nasty error message in config.log where it belongs |
| 17752 | echo "$LIBDW_PKG_ERRORS" >&5 |
| 17753 | |
| 17754 | have_libdw=no |
| 17755 | elif test $pkg_failed = untried; then |
| 17756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17757 | printf "%s\n" "no" >&6; } |
| 17758 | have_libdw=no |
| 17759 | else |
| 17760 | LIBDW_CFLAGS=$pkg_cv_LIBDW_CFLAGS |
| 17761 | LIBDW_LIBS=$pkg_cv_LIBDW_LIBS |
| 17762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17763 | printf "%s\n" "yes" >&6; } |
| 17764 | have_libdw=yes |
| 17765 | fi |
| 17766 | if test "x$have_libdw" == xno; then |
| 17767 | as_fn_error $? "libdw >= $LIBDW_REQS needed by debugedit but not found" "$LINENO" 5 |
| 17768 | fi |
| 17769 | if false; then |
| 17770 | WITH_SYSTEM_DEBUGEDIT_TRUE= |
| 17771 | WITH_SYSTEM_DEBUGEDIT_FALSE='#' |
| 17772 | else |
| 17773 | WITH_SYSTEM_DEBUGEDIT_TRUE='#' |
| 17774 | WITH_SYSTEM_DEBUGEDIT_FALSE= |
| 17775 | fi |
| 17776 | |
| 17777 | fi |
| 17778 | |
| 17779 | |
| 17780 | # Check whether --with-yaml was given. |
| 17781 | if test ${with_yaml+y} |
| 17782 | then : |
| 17783 | withval=$with_yaml; |
| 17784 | fi |
| 17785 | |
| 17786 | if test "x$with_yaml" != "xno" |
| 17787 | then : |
| 17788 | |
| 17789 | |
| 17790 | pkg_failed=no |
| 17791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yaml-0.1" >&5 |
| 17792 | printf %s "checking for yaml-0.1... " >&6; } |
| 17793 | |
| 17794 | if test -n "$YAML_CFLAGS"; then |
| 17795 | pkg_cv_YAML_CFLAGS="$YAML_CFLAGS" |
| 17796 | elif test -n "$PKG_CONFIG"; then |
| 17797 | if test -n "$PKG_CONFIG" && \ |
| 17798 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaml-0.1\""; } >&5 |
| 17799 | ($PKG_CONFIG --exists --print-errors "yaml-0.1") 2>&5 |
| 17800 | ac_status=$? |
| 17801 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17802 | test $ac_status = 0; }; then |
| 17803 | pkg_cv_YAML_CFLAGS=`$PKG_CONFIG --cflags "yaml-0.1" 2>/dev/null` |
| 17804 | test "x$?" != "x0" && pkg_failed=yes |
| 17805 | else |
| 17806 | pkg_failed=yes |
| 17807 | fi |
| 17808 | else |
| 17809 | pkg_failed=untried |
| 17810 | fi |
| 17811 | if test -n "$YAML_LIBS"; then |
| 17812 | pkg_cv_YAML_LIBS="$YAML_LIBS" |
| 17813 | elif test -n "$PKG_CONFIG"; then |
| 17814 | if test -n "$PKG_CONFIG" && \ |
| 17815 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaml-0.1\""; } >&5 |
| 17816 | ($PKG_CONFIG --exists --print-errors "yaml-0.1") 2>&5 |
| 17817 | ac_status=$? |
| 17818 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17819 | test $ac_status = 0; }; then |
| 17820 | pkg_cv_YAML_LIBS=`$PKG_CONFIG --libs "yaml-0.1" 2>/dev/null` |
| 17821 | test "x$?" != "x0" && pkg_failed=yes |
| 17822 | else |
| 17823 | pkg_failed=yes |
| 17824 | fi |
| 17825 | else |
| 17826 | pkg_failed=untried |
| 17827 | fi |
| 17828 | |
| 17829 | |
| 17830 | |
| 17831 | if test $pkg_failed = yes; then |
| 17832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17833 | printf "%s\n" "no" >&6; } |
| 17834 | |
| 17835 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 17836 | _pkg_short_errors_supported=yes |
| 17837 | else |
| 17838 | _pkg_short_errors_supported=no |
| 17839 | fi |
| 17840 | if test $_pkg_short_errors_supported = yes; then |
| 17841 | YAML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "yaml-0.1" 2>&1` |
| 17842 | else |
| 17843 | YAML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "yaml-0.1" 2>&1` |
| 17844 | fi |
| 17845 | # Put the nasty error message in config.log where it belongs |
| 17846 | echo "$YAML_PKG_ERRORS" >&5 |
| 17847 | |
| 17848 | have_yaml=no |
| 17849 | elif test $pkg_failed = untried; then |
| 17850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17851 | printf "%s\n" "no" >&6; } |
| 17852 | have_yaml=no |
| 17853 | else |
| 17854 | YAML_CFLAGS=$pkg_cv_YAML_CFLAGS |
| 17855 | YAML_LIBS=$pkg_cv_YAML_LIBS |
| 17856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17857 | printf "%s\n" "yes" >&6; } |
| 17858 | have_yaml=yes |
| 17859 | fi |
| 17860 | |
| 17861 | else $as_nop |
| 17862 | have_yaml=no |
| 17863 | fi |
| 17864 | if test "x$have_yaml" = "xno" |
| 17865 | then : |
| 17866 | |
| 17867 | if test "x$with_yaml" = "xyes" |
| 17868 | then : |
| 17869 | as_fn_error $? "yaml-0.1 was not found, which is needed for --with-yaml" "$LINENO" 5 |
| 17870 | fi |
| 17871 | |
| 17872 | else $as_nop |
| 17873 | |
| 17874 | printf "%s\n" "#define FLATPAK_BUILDER_ENABLE_YAML 1" >>confdefs.h |
| 17875 | |
| 17876 | fi |
| 17877 | |
| 17878 | # Check whether --enable-documentation was given. |
| 17879 | if test ${enable_documentation+y} |
| 17880 | then : |
| 17881 | enableval=$enable_documentation; |
| 17882 | else $as_nop |
| 17883 | enable_documentation=yes |
| 17884 | fi |
| 17885 | |
| 17886 | if test x$enable_documentation = xyes; then |
| 17887 | # Extract the first word of "xsltproc", so it can be a program name with args. |
| 17888 | set dummy xsltproc; ac_word=$2 |
| 17889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17890 | printf %s "checking for $ac_word... " >&6; } |
| 17891 | if test ${ac_cv_path_XSLTPROC+y} |
| 17892 | then : |
| 17893 | printf %s "(cached) " >&6 |
| 17894 | else $as_nop |
| 17895 | case $XSLTPROC in |
| 17896 | [\\/]* | ?:[\\/]*) |
| 17897 | ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. |
| 17898 | ;; |
| 17899 | *) |
| 17900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17901 | for as_dir in $PATH |
| 17902 | do |
| 17903 | IFS=$as_save_IFS |
| 17904 | case $as_dir in #((( |
| 17905 | '') as_dir=./ ;; |
| 17906 | */) ;; |
| 17907 | *) as_dir=$as_dir/ ;; |
| 17908 | esac |
| 17909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17910 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17911 | ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" |
| 17912 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17913 | break 2 |
| 17914 | fi |
| 17915 | done |
| 17916 | done |
| 17917 | IFS=$as_save_IFS |
| 17918 | |
| 17919 | ;; |
| 17920 | esac |
| 17921 | fi |
| 17922 | XSLTPROC=$ac_cv_path_XSLTPROC |
| 17923 | if test -n "$XSLTPROC"; then |
| 17924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 |
| 17925 | printf "%s\n" "$XSLTPROC" >&6; } |
| 17926 | else |
| 17927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17928 | printf "%s\n" "no" >&6; } |
| 17929 | fi |
| 17930 | |
| 17931 | |
| 17932 | if test x$XSLTPROC = x; then |
| 17933 | as_fn_error $? "xsltproc is required to build documentation" "$LINENO" 5 |
| 17934 | fi |
| 17935 | |
| 17936 | |
| 17937 | # check for the presence of the XML catalog |
| 17938 | |
| 17939 | # Check whether --with-xml-catalog was given. |
| 17940 | if test ${with_xml_catalog+y} |
| 17941 | then : |
| 17942 | withval=$with_xml_catalog; |
| 17943 | else $as_nop |
| 17944 | with_xml_catalog=/etc/xml/catalog |
| 17945 | fi |
| 17946 | |
| 17947 | jh_found_xmlcatalog=true |
| 17948 | XML_CATALOG_FILE="$with_xml_catalog" |
| 17949 | |
| 17950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5 |
| 17951 | printf %s "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; } |
| 17952 | if test -f "$XML_CATALOG_FILE"; then |
| 17953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 17954 | printf "%s\n" "found" >&6; } |
| 17955 | else |
| 17956 | jh_found_xmlcatalog=false |
| 17957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 17958 | printf "%s\n" "not found" >&6; } |
| 17959 | fi |
| 17960 | |
| 17961 | # check for the xmlcatalog program |
| 17962 | # Extract the first word of "xmlcatalog", so it can be a program name with args. |
| 17963 | set dummy xmlcatalog; ac_word=$2 |
| 17964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17965 | printf %s "checking for $ac_word... " >&6; } |
| 17966 | if test ${ac_cv_path_XMLCATALOG+y} |
| 17967 | then : |
| 17968 | printf %s "(cached) " >&6 |
| 17969 | else $as_nop |
| 17970 | case $XMLCATALOG in |
| 17971 | [\\/]* | ?:[\\/]*) |
| 17972 | ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path. |
| 17973 | ;; |
| 17974 | *) |
| 17975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17976 | for as_dir in $PATH |
| 17977 | do |
| 17978 | IFS=$as_save_IFS |
| 17979 | case $as_dir in #((( |
| 17980 | '') as_dir=./ ;; |
| 17981 | */) ;; |
| 17982 | *) as_dir=$as_dir/ ;; |
| 17983 | esac |
| 17984 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17985 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 17986 | ac_cv_path_XMLCATALOG="$as_dir$ac_word$ac_exec_ext" |
| 17987 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 17988 | break 2 |
| 17989 | fi |
| 17990 | done |
| 17991 | done |
| 17992 | IFS=$as_save_IFS |
| 17993 | |
| 17994 | test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no" |
| 17995 | ;; |
| 17996 | esac |
| 17997 | fi |
| 17998 | XMLCATALOG=$ac_cv_path_XMLCATALOG |
| 17999 | if test -n "$XMLCATALOG"; then |
| 18000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5 |
| 18001 | printf "%s\n" "$XMLCATALOG" >&6; } |
| 18002 | else |
| 18003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18004 | printf "%s\n" "no" >&6; } |
| 18005 | fi |
| 18006 | |
| 18007 | |
| 18008 | if test "x$XMLCATALOG" = xno; then |
| 18009 | jh_found_xmlcatalog=false |
| 18010 | fi |
| 18011 | |
| 18012 | if $jh_found_xmlcatalog; then |
| 18013 | : |
| 18014 | else |
| 18015 | : |
| 18016 | fi |
| 18017 | |
| 18018 | |
| 18019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.3 in XML catalog" >&5 |
| 18020 | printf %s "checking for DocBook XML DTD V4.3 in XML catalog... " >&6; } |
| 18021 | if $jh_found_xmlcatalog && \ |
| 18022 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.3//EN\" >&2"; } >&5 |
| 18023 | ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.3//EN" >&2) 2>&5 |
| 18024 | ac_status=$? |
| 18025 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18026 | test $ac_status = 0; }; then |
| 18027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 18028 | printf "%s\n" "found" >&6; } |
| 18029 | have_docbook_dtd=yes |
| 18030 | else |
| 18031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 18032 | printf "%s\n" "not found" >&6; } |
| 18033 | have_docbook_dtd=no |
| 18034 | fi |
| 18035 | |
| 18036 | if test "$have_docbook_dtd" != yes; then |
| 18037 | as_fn_error $? "DocBook DTD is required for --enable-documentation" "$LINENO" 5 |
| 18038 | fi |
| 18039 | |
| 18040 | |
| 18041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5 |
| 18042 | printf %s "checking for DocBook XSL Stylesheets in XML catalog... " >&6; } |
| 18043 | if $jh_found_xmlcatalog && \ |
| 18044 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5 |
| 18045 | ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5 |
| 18046 | ac_status=$? |
| 18047 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18048 | test $ac_status = 0; }; then |
| 18049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 18050 | printf "%s\n" "found" >&6; } |
| 18051 | have_docbook_style=yes |
| 18052 | else |
| 18053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 18054 | printf "%s\n" "not found" >&6; } |
| 18055 | have_docbook_style=no |
| 18056 | fi |
| 18057 | |
| 18058 | if test "$have_docbook_style" != yes; then |
| 18059 | as_fn_error $? "DocBook XSL Stylesheets are required for --enable-documentation" "$LINENO" 5 |
| 18060 | fi |
| 18061 | fi |
| 18062 | if test x$enable_documentation = xyes; then |
| 18063 | BUILD_DOCUMENTATION_TRUE= |
| 18064 | BUILD_DOCUMENTATION_FALSE='#' |
| 18065 | else |
| 18066 | BUILD_DOCUMENTATION_TRUE='#' |
| 18067 | BUILD_DOCUMENTATION_FALSE= |
| 18068 | fi |
| 18069 | |
| 18070 | |
| 18071 | # Check whether --enable-docbook-docs was given. |
| 18072 | if test ${enable_docbook_docs+y} |
| 18073 | then : |
| 18074 | enableval=$enable_docbook_docs; enable_docbook_docs=$enableval |
| 18075 | else $as_nop |
| 18076 | enable_docbook_docs=auto |
| 18077 | fi |
| 18078 | |
| 18079 | # Extract the first word of "xmlto", so it can be a program name with args. |
| 18080 | set dummy xmlto; ac_word=$2 |
| 18081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18082 | printf %s "checking for $ac_word... " >&6; } |
| 18083 | if test ${ac_cv_path_XMLTO+y} |
| 18084 | then : |
| 18085 | printf %s "(cached) " >&6 |
| 18086 | else $as_nop |
| 18087 | case $XMLTO in |
| 18088 | [\\/]* | ?:[\\/]*) |
| 18089 | ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. |
| 18090 | ;; |
| 18091 | *) |
| 18092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18093 | for as_dir in $PATH |
| 18094 | do |
| 18095 | IFS=$as_save_IFS |
| 18096 | case $as_dir in #((( |
| 18097 | '') as_dir=./ ;; |
| 18098 | */) ;; |
| 18099 | *) as_dir=$as_dir/ ;; |
| 18100 | esac |
| 18101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18102 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 18103 | ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" |
| 18104 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 18105 | break 2 |
| 18106 | fi |
| 18107 | done |
| 18108 | done |
| 18109 | IFS=$as_save_IFS |
| 18110 | |
| 18111 | test -z "$ac_cv_path_XMLTO" && ac_cv_path_XMLTO="no" |
| 18112 | ;; |
| 18113 | esac |
| 18114 | fi |
| 18115 | XMLTO=$ac_cv_path_XMLTO |
| 18116 | if test -n "$XMLTO"; then |
| 18117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 |
| 18118 | printf "%s\n" "$XMLTO" >&6; } |
| 18119 | else |
| 18120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18121 | printf "%s\n" "no" >&6; } |
| 18122 | fi |
| 18123 | |
| 18124 | |
| 18125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build DocBook documentation" >&5 |
| 18126 | printf %s "checking whether to build DocBook documentation... " >&6; } |
| 18127 | if test x$XMLTO = xno ; then |
| 18128 | have_docbook=no |
| 18129 | else |
| 18130 | have_docbook=yes |
| 18131 | fi |
| 18132 | if test x$enable_docbook_docs = xauto ; then |
| 18133 | if test x$have_docbook = xno ; then |
| 18134 | enable_docbook_docs=no |
| 18135 | else |
| 18136 | enable_docbook_docs=yes |
| 18137 | fi |
| 18138 | fi |
| 18139 | if test x$enable_docbook_docs = xyes; then |
| 18140 | if test x$have_docbook = xno; then |
| 18141 | as_fn_error $? "Building DocBook docs explicitly required, but DocBook not found" "$LINENO" 5 |
| 18142 | fi |
| 18143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18144 | printf "%s\n" "yes" >&6; } |
| 18145 | else |
| 18146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18147 | printf "%s\n" "no" >&6; } |
| 18148 | fi |
| 18149 | if test x$enable_docbook_docs = xyes; then |
| 18150 | DOCBOOK_DOCS_ENABLED_TRUE= |
| 18151 | DOCBOOK_DOCS_ENABLED_FALSE='#' |
| 18152 | else |
| 18153 | DOCBOOK_DOCS_ENABLED_TRUE='#' |
| 18154 | DOCBOOK_DOCS_ENABLED_FALSE= |
| 18155 | fi |
| 18156 | |
| 18157 | |
| 18158 | |
| 18159 | |
| 18160 | |
| 18161 | # Check whether --with-fuse was given. |
| 18162 | if test ${with_fuse+y} |
| 18163 | then : |
| 18164 | withval=$with_fuse; fuse_major="$withval" |
| 18165 | else $as_nop |
| 18166 | fuse_major=maximize-compatibility |
| 18167 | fi |
| 18168 | |
| 18169 | if test $fuse_major = 2 |
| 18170 | then : |
| 18171 | |
| 18172 | printf "%s\n" "#define ASSUME_FUSE_2 /**/" >>confdefs.h |
| 18173 | |
| 18174 | fi |
| 18175 | |
| 18176 | |
| 18177 | # Check whether --enable-installed-tests was given. |
| 18178 | if test ${enable_installed_tests+y} |
| 18179 | then : |
| 18180 | enableval=$enable_installed_tests; case ${enableval} in |
| 18181 | yes) ENABLE_INSTALLED_TESTS="1" ;; |
| 18182 | no) ENABLE_INSTALLED_TESTS="" ;; |
| 18183 | *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;; |
| 18184 | esac |
| 18185 | fi |
| 18186 | |
| 18187 | if test "$ENABLE_INSTALLED_TESTS" = "1"; then |
| 18188 | ENABLE_INSTALLED_TESTS_TRUE= |
| 18189 | ENABLE_INSTALLED_TESTS_FALSE='#' |
| 18190 | else |
| 18191 | ENABLE_INSTALLED_TESTS_TRUE='#' |
| 18192 | ENABLE_INSTALLED_TESTS_FALSE= |
| 18193 | fi |
| 18194 | |
| 18195 | # Check whether --enable-always-build-tests was given. |
| 18196 | if test ${enable_always_build_tests+y} |
| 18197 | then : |
| 18198 | enableval=$enable_always_build_tests; case ${enableval} in |
| 18199 | yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;; |
| 18200 | no) ENABLE_ALWAYS_BUILD_TESTS="" ;; |
| 18201 | *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;; |
| 18202 | esac |
| 18203 | fi |
| 18204 | |
| 18205 | if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then |
| 18206 | ENABLE_ALWAYS_BUILD_TESTS_TRUE= |
| 18207 | ENABLE_ALWAYS_BUILD_TESTS_FALSE='#' |
| 18208 | else |
| 18209 | ENABLE_ALWAYS_BUILD_TESTS_TRUE='#' |
| 18210 | ENABLE_ALWAYS_BUILD_TESTS_FALSE= |
| 18211 | fi |
| 18212 | |
| 18213 | if test "$ENABLE_INSTALLED_TESTS" = "1"; then |
| 18214 | installed_test_metadir=${datadir}/installed-tests/flatpak-builder |
| 18215 | |
| 18216 | installed_testdir=${libexecdir}/installed-tests/flatpak-builder |
| 18217 | |
| 18218 | fi |
| 18219 | |
| 18220 | |
| 18221 | FLATPAK_BUILDER_VERSION=1.4.10 |
| 18222 | |
| 18223 | |
| 18224 | ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile doc/flatpak-builder-docs.xml" |
| 18225 | |
| 18226 | cat >confcache <<\_ACEOF |
| 18227 | # This file is a shell script that caches the results of configure |
| 18228 | # tests run on this system so they can be shared between configure |
| 18229 | # scripts and configure runs, see configure's option --config-cache. |
| 18230 | # It is not useful on other systems. If it contains results you don't |
| 18231 | # want to keep, you may remove or edit it. |
| 18232 | # |
| 18233 | # config.status only pays attention to the cache file if you give it |
| 18234 | # the --recheck option to rerun configure. |
| 18235 | # |
| 18236 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18237 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18238 | # following values. |
| 18239 | |
| 18240 | _ACEOF |
| 18241 | |
| 18242 | # The following way of writing the cache mishandles newlines in values, |
| 18243 | # but we know of no workaround that is simple, portable, and efficient. |
| 18244 | # So, we kill variables containing newlines. |
| 18245 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18246 | # and sets the high bit in the cache file unless we assign to the vars. |
| 18247 | ( |
| 18248 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18249 | eval ac_val=\$$ac_var |
| 18250 | case $ac_val in #( |
| 18251 | *${as_nl}*) |
| 18252 | case $ac_var in #( |
| 18253 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 18254 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 18255 | esac |
| 18256 | case $ac_var in #( |
| 18257 | _ | IFS | as_nl) ;; #( |
| 18258 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 18259 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 18260 | esac ;; |
| 18261 | esac |
| 18262 | done |
| 18263 | |
| 18264 | (set) 2>&1 | |
| 18265 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18266 | *${as_nl}ac_space=\ *) |
| 18267 | # `set' does not quote correctly, so add quotes: double-quote |
| 18268 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 18269 | sed -n \ |
| 18270 | "s/'/'\\\\''/g; |
| 18271 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18272 | ;; #( |
| 18273 | *) |
| 18274 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18275 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 18276 | ;; |
| 18277 | esac | |
| 18278 | sort |
| 18279 | ) | |
| 18280 | sed ' |
| 18281 | /^ac_cv_env_/b end |
| 18282 | t clear |
| 18283 | :clear |
| 18284 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 18285 | t end |
| 18286 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18287 | :end' >>confcache |
| 18288 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18289 | if test -w "$cache_file"; then |
| 18290 | if test "x$cache_file" != "x/dev/null"; then |
| 18291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 18292 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 18293 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 18294 | cat confcache >"$cache_file" |
| 18295 | else |
| 18296 | case $cache_file in #( |
| 18297 | */* | ?:*) |
| 18298 | mv -f confcache "$cache_file"$$ && |
| 18299 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 18300 | *) |
| 18301 | mv -f confcache "$cache_file" ;; |
| 18302 | esac |
| 18303 | fi |
| 18304 | fi |
| 18305 | else |
| 18306 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 18307 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 18308 | fi |
| 18309 | fi |
| 18310 | rm -f confcache |
| 18311 | |
| 18312 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18313 | # Let make expand exec_prefix. |
| 18314 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18315 | |
| 18316 | DEFS=-DHAVE_CONFIG_H |
| 18317 | |
| 18318 | ac_libobjs= |
| 18319 | ac_ltlibobjs= |
| 18320 | U= |
| 18321 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18322 | # 1. Remove the extension, and $U if already installed. |
| 18323 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 18324 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 18325 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18326 | # will be set to the directory where LIBOBJS objects are built. |
| 18327 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18328 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 18329 | done |
| 18330 | LIBOBJS=$ac_libobjs |
| 18331 | |
| 18332 | LTLIBOBJS=$ac_ltlibobjs |
| 18333 | |
| 18334 | |
| 18335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 18336 | printf %s "checking that generated files are newer than configure... " >&6; } |
| 18337 | if test -n "$am_sleep_pid"; then |
| 18338 | # Hide warnings about reused PIDs. |
| 18339 | wait $am_sleep_pid 2>/dev/null |
| 18340 | fi |
| 18341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 18342 | printf "%s\n" "done" >&6; } |
| 18343 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 18344 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 18345 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18346 | fi |
| 18347 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 18348 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 18349 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18350 | fi |
| 18351 | if test -n "$EXEEXT"; then |
| 18352 | am__EXEEXT_TRUE= |
| 18353 | am__EXEEXT_FALSE='#' |
| 18354 | else |
| 18355 | am__EXEEXT_TRUE='#' |
| 18356 | am__EXEEXT_FALSE= |
| 18357 | fi |
| 18358 | |
| 18359 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 18360 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 18361 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18362 | fi |
| 18363 | if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then |
| 18364 | as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined. |
| 18365 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18366 | fi |
| 18367 | if test -z "${WITH_SYSTEM_DEBUGEDIT_TRUE}" && test -z "${WITH_SYSTEM_DEBUGEDIT_FALSE}"; then |
| 18368 | as_fn_error $? "conditional \"WITH_SYSTEM_DEBUGEDIT\" was never defined. |
| 18369 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18370 | fi |
| 18371 | if test -z "${WITH_SYSTEM_DEBUGEDIT_TRUE}" && test -z "${WITH_SYSTEM_DEBUGEDIT_FALSE}"; then |
| 18372 | as_fn_error $? "conditional \"WITH_SYSTEM_DEBUGEDIT\" was never defined. |
| 18373 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18374 | fi |
| 18375 | if test -z "${BUILD_DOCUMENTATION_TRUE}" && test -z "${BUILD_DOCUMENTATION_FALSE}"; then |
| 18376 | as_fn_error $? "conditional \"BUILD_DOCUMENTATION\" was never defined. |
| 18377 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18378 | fi |
| 18379 | if test -z "${DOCBOOK_DOCS_ENABLED_TRUE}" && test -z "${DOCBOOK_DOCS_ENABLED_FALSE}"; then |
| 18380 | as_fn_error $? "conditional \"DOCBOOK_DOCS_ENABLED\" was never defined. |
| 18381 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18382 | fi |
| 18383 | if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then |
| 18384 | as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined. |
| 18385 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18386 | fi |
| 18387 | if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then |
| 18388 | as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined. |
| 18389 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18390 | fi |
| 18391 | |
| 18392 | : "${CONFIG_STATUS=./config.status}" |
| 18393 | ac_write_fail=0 |
| 18394 | ac_clean_files_save=$ac_clean_files |
| 18395 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 18397 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18398 | as_write_fail=0 |
| 18399 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 18400 | #! $SHELL |
| 18401 | # Generated by $as_me. |
| 18402 | # Run this file to recreate the current configuration. |
| 18403 | # Compiler output produced by configure, useful for debugging |
| 18404 | # configure, is in config.log if it exists. |
| 18405 | |
| 18406 | debug=false |
| 18407 | ac_cs_recheck=false |
| 18408 | ac_cs_silent=false |
| 18409 | |
| 18410 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18411 | export SHELL |
| 18412 | _ASEOF |
| 18413 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 18414 | ## -------------------- ## |
| 18415 | ## M4sh Initialization. ## |
| 18416 | ## -------------------- ## |
| 18417 | |
| 18418 | # Be more Bourne compatible |
| 18419 | DUALCASE=1; export DUALCASE # for MKS sh |
| 18420 | as_nop=: |
| 18421 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 18422 | then : |
| 18423 | emulate sh |
| 18424 | NULLCMD=: |
| 18425 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 18426 | # is contrary to our usage. Disable this feature. |
| 18427 | alias -g '${1+"$@"}'='"$@"' |
| 18428 | setopt NO_GLOB_SUBST |
| 18429 | else $as_nop |
| 18430 | case `(set -o) 2>/dev/null` in #( |
| 18431 | *posix*) : |
| 18432 | set -o posix ;; #( |
| 18433 | *) : |
| 18434 | ;; |
| 18435 | esac |
| 18436 | fi |
| 18437 | |
| 18438 | |
| 18439 | |
| 18440 | # Reset variables that may have inherited troublesome values from |
| 18441 | # the environment. |
| 18442 | |
| 18443 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 18444 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 18445 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 18446 | # Quoting is to prevent editors from complaining about space-tab. |
| 18447 | as_nl=' |
| 18448 | ' |
| 18449 | export as_nl |
| 18450 | IFS=" "" $as_nl" |
| 18451 | |
| 18452 | PS1='$ ' |
| 18453 | PS2='> ' |
| 18454 | PS4='+ ' |
| 18455 | |
| 18456 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 18457 | LC_ALL=C |
| 18458 | export LC_ALL |
| 18459 | LANGUAGE=C |
| 18460 | export LANGUAGE |
| 18461 | |
| 18462 | # We cannot yet rely on "unset" to work, but we need these variables |
| 18463 | # to be unset--not just set to an empty or harmless value--now, to |
| 18464 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 18465 | # also avoids known problems related to "unset" and subshell syntax |
| 18466 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 18467 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 18468 | do eval test \${$as_var+y} \ |
| 18469 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 18470 | done |
| 18471 | |
| 18472 | # Ensure that fds 0, 1, and 2 are open. |
| 18473 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 18474 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 18475 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 18476 | |
| 18477 | # The user is always right. |
| 18478 | if ${PATH_SEPARATOR+false} :; then |
| 18479 | PATH_SEPARATOR=: |
| 18480 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 18481 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 18482 | PATH_SEPARATOR=';' |
| 18483 | } |
| 18484 | fi |
| 18485 | |
| 18486 | |
| 18487 | # Find who we are. Look in the path if we contain no directory separator. |
| 18488 | as_myself= |
| 18489 | case $0 in #(( |
| 18490 | *[\\/]* ) as_myself=$0 ;; |
| 18491 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18492 | for as_dir in $PATH |
| 18493 | do |
| 18494 | IFS=$as_save_IFS |
| 18495 | case $as_dir in #((( |
| 18496 | '') as_dir=./ ;; |
| 18497 | */) ;; |
| 18498 | *) as_dir=$as_dir/ ;; |
| 18499 | esac |
| 18500 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 18501 | done |
| 18502 | IFS=$as_save_IFS |
| 18503 | |
| 18504 | ;; |
| 18505 | esac |
| 18506 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18507 | # in which case we are not to be found in the path. |
| 18508 | if test "x$as_myself" = x; then |
| 18509 | as_myself=$0 |
| 18510 | fi |
| 18511 | if test ! -f "$as_myself"; then |
| 18512 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18513 | exit 1 |
| 18514 | fi |
| 18515 | |
| 18516 | |
| 18517 | |
| 18518 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 18519 | # ---------------------------------------- |
| 18520 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 18521 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 18522 | # script with STATUS, using 1 if that was 0. |
| 18523 | as_fn_error () |
| 18524 | { |
| 18525 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 18526 | if test "$4"; then |
| 18527 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 18528 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 18529 | fi |
| 18530 | printf "%s\n" "$as_me: error: $2" >&2 |
| 18531 | as_fn_exit $as_status |
| 18532 | } # as_fn_error |
| 18533 | |
| 18534 | |
| 18535 | |
| 18536 | # as_fn_set_status STATUS |
| 18537 | # ----------------------- |
| 18538 | # Set $? to STATUS, without forking. |
| 18539 | as_fn_set_status () |
| 18540 | { |
| 18541 | return $1 |
| 18542 | } # as_fn_set_status |
| 18543 | |
| 18544 | # as_fn_exit STATUS |
| 18545 | # ----------------- |
| 18546 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 18547 | as_fn_exit () |
| 18548 | { |
| 18549 | set +e |
| 18550 | as_fn_set_status $1 |
| 18551 | exit $1 |
| 18552 | } # as_fn_exit |
| 18553 | |
| 18554 | # as_fn_unset VAR |
| 18555 | # --------------- |
| 18556 | # Portably unset VAR. |
| 18557 | as_fn_unset () |
| 18558 | { |
| 18559 | { eval $1=; unset $1;} |
| 18560 | } |
| 18561 | as_unset=as_fn_unset |
| 18562 | |
| 18563 | # as_fn_append VAR VALUE |
| 18564 | # ---------------------- |
| 18565 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 18566 | # advantage of any shell optimizations that allow amortized linear growth over |
| 18567 | # repeated appends, instead of the typical quadratic growth present in naive |
| 18568 | # implementations. |
| 18569 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 18570 | then : |
| 18571 | eval 'as_fn_append () |
| 18572 | { |
| 18573 | eval $1+=\$2 |
| 18574 | }' |
| 18575 | else $as_nop |
| 18576 | as_fn_append () |
| 18577 | { |
| 18578 | eval $1=\$$1\$2 |
| 18579 | } |
| 18580 | fi # as_fn_append |
| 18581 | |
| 18582 | # as_fn_arith ARG... |
| 18583 | # ------------------ |
| 18584 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 18585 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 18586 | # must be portable across $(()) and expr. |
| 18587 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 18588 | then : |
| 18589 | eval 'as_fn_arith () |
| 18590 | { |
| 18591 | as_val=$(( $* )) |
| 18592 | }' |
| 18593 | else $as_nop |
| 18594 | as_fn_arith () |
| 18595 | { |
| 18596 | as_val=`expr "$@" || test $? -eq 1` |
| 18597 | } |
| 18598 | fi # as_fn_arith |
| 18599 | |
| 18600 | |
| 18601 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18602 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18603 | as_expr=expr |
| 18604 | else |
| 18605 | as_expr=false |
| 18606 | fi |
| 18607 | |
| 18608 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18609 | as_basename=basename |
| 18610 | else |
| 18611 | as_basename=false |
| 18612 | fi |
| 18613 | |
| 18614 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18615 | as_dirname=dirname |
| 18616 | else |
| 18617 | as_dirname=false |
| 18618 | fi |
| 18619 | |
| 18620 | as_me=`$as_basename -- "$0" || |
| 18621 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18622 | X"$0" : 'X\(//\)$' \| \ |
| 18623 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 18624 | printf "%s\n" X/"$0" | |
| 18625 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18626 | s//\1/ |
| 18627 | q |
| 18628 | } |
| 18629 | /^X\/\(\/\/\)$/{ |
| 18630 | s//\1/ |
| 18631 | q |
| 18632 | } |
| 18633 | /^X\/\(\/\).*/{ |
| 18634 | s//\1/ |
| 18635 | q |
| 18636 | } |
| 18637 | s/.*/./; q'` |
| 18638 | |
| 18639 | # Avoid depending upon Character Ranges. |
| 18640 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18641 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18642 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18643 | as_cr_digits='0123456789' |
| 18644 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 18645 | |
| 18646 | |
| 18647 | # Determine whether it's possible to make 'echo' print without a newline. |
| 18648 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 18649 | # for compatibility with existing Makefiles. |
| 18650 | ECHO_C= ECHO_N= ECHO_T= |
| 18651 | case `echo -n x` in #((((( |
| 18652 | -n*) |
| 18653 | case `echo 'xy\c'` in |
| 18654 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 18655 | xy) ECHO_C='\c';; |
| 18656 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 18657 | ECHO_T=' ';; |
| 18658 | esac;; |
| 18659 | *) |
| 18660 | ECHO_N='-n';; |
| 18661 | esac |
| 18662 | |
| 18663 | # For backward compatibility with old third-party macros, we provide |
| 18664 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 18665 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 18666 | as_echo='printf %s\n' |
| 18667 | as_echo_n='printf %s' |
| 18668 | |
| 18669 | rm -f conf$$ conf$$.exe conf$$.file |
| 18670 | if test -d conf$$.dir; then |
| 18671 | rm -f conf$$.dir/conf$$.file |
| 18672 | else |
| 18673 | rm -f conf$$.dir |
| 18674 | mkdir conf$$.dir 2>/dev/null |
| 18675 | fi |
| 18676 | if (echo >conf$$.file) 2>/dev/null; then |
| 18677 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18678 | as_ln_s='ln -s' |
| 18679 | # ... but there are two gotchas: |
| 18680 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18681 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18682 | # In both cases, we have to default to `cp -pR'. |
| 18683 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 18684 | as_ln_s='cp -pR' |
| 18685 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18686 | as_ln_s=ln |
| 18687 | else |
| 18688 | as_ln_s='cp -pR' |
| 18689 | fi |
| 18690 | else |
| 18691 | as_ln_s='cp -pR' |
| 18692 | fi |
| 18693 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18694 | rmdir conf$$.dir 2>/dev/null |
| 18695 | |
| 18696 | |
| 18697 | # as_fn_mkdir_p |
| 18698 | # ------------- |
| 18699 | # Create "$as_dir" as a directory, including parents if necessary. |
| 18700 | as_fn_mkdir_p () |
| 18701 | { |
| 18702 | |
| 18703 | case $as_dir in #( |
| 18704 | -*) as_dir=./$as_dir;; |
| 18705 | esac |
| 18706 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 18707 | as_dirs= |
| 18708 | while :; do |
| 18709 | case $as_dir in #( |
| 18710 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18711 | *) as_qdir=$as_dir;; |
| 18712 | esac |
| 18713 | as_dirs="'$as_qdir' $as_dirs" |
| 18714 | as_dir=`$as_dirname -- "$as_dir" || |
| 18715 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18716 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18717 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18718 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18719 | printf "%s\n" X"$as_dir" | |
| 18720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18721 | s//\1/ |
| 18722 | q |
| 18723 | } |
| 18724 | /^X\(\/\/\)[^/].*/{ |
| 18725 | s//\1/ |
| 18726 | q |
| 18727 | } |
| 18728 | /^X\(\/\/\)$/{ |
| 18729 | s//\1/ |
| 18730 | q |
| 18731 | } |
| 18732 | /^X\(\/\).*/{ |
| 18733 | s//\1/ |
| 18734 | q |
| 18735 | } |
| 18736 | s/.*/./; q'` |
| 18737 | test -d "$as_dir" && break |
| 18738 | done |
| 18739 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18740 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 18741 | |
| 18742 | |
| 18743 | } # as_fn_mkdir_p |
| 18744 | if mkdir -p . 2>/dev/null; then |
| 18745 | as_mkdir_p='mkdir -p "$as_dir"' |
| 18746 | else |
| 18747 | test -d ./-p && rmdir ./-p |
| 18748 | as_mkdir_p=false |
| 18749 | fi |
| 18750 | |
| 18751 | |
| 18752 | # as_fn_executable_p FILE |
| 18753 | # ----------------------- |
| 18754 | # Test if FILE is an executable regular file. |
| 18755 | as_fn_executable_p () |
| 18756 | { |
| 18757 | test -f "$1" && test -x "$1" |
| 18758 | } # as_fn_executable_p |
| 18759 | as_test_x='test -x' |
| 18760 | as_executable_p=as_fn_executable_p |
| 18761 | |
| 18762 | # Sed expression to map a string onto a valid CPP name. |
| 18763 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 18764 | |
| 18765 | # Sed expression to map a string onto a valid variable name. |
| 18766 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 18767 | |
| 18768 | |
| 18769 | exec 6>&1 |
| 18770 | ## ----------------------------------- ## |
| 18771 | ## Main body of $CONFIG_STATUS script. ## |
| 18772 | ## ----------------------------------- ## |
| 18773 | _ASEOF |
| 18774 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 18775 | |
| 18776 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18777 | # Save the log message, to keep $0 and so on meaningful, and to |
| 18778 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18779 | # values after options handling. |
| 18780 | ac_log=" |
| 18781 | This file was extended by flatpak-builder $as_me 1.4.10, which was |
| 18782 | generated by GNU Autoconf 2.71. Invocation command line was |
| 18783 | |
| 18784 | CONFIG_FILES = $CONFIG_FILES |
| 18785 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18786 | CONFIG_LINKS = $CONFIG_LINKS |
| 18787 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18788 | $ $0 $@ |
| 18789 | |
| 18790 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18791 | " |
| 18792 | |
| 18793 | _ACEOF |
| 18794 | |
| 18795 | case $ac_config_files in *" |
| 18796 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 18797 | esac |
| 18798 | |
| 18799 | case $ac_config_headers in *" |
| 18800 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 18801 | esac |
| 18802 | |
| 18803 | |
| 18804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18805 | # Files that config.status was made for. |
| 18806 | config_files="$ac_config_files" |
| 18807 | config_headers="$ac_config_headers" |
| 18808 | config_commands="$ac_config_commands" |
| 18809 | |
| 18810 | _ACEOF |
| 18811 | |
| 18812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18813 | ac_cs_usage="\ |
| 18814 | \`$as_me' instantiates files and other configuration actions |
| 18815 | from templates according to the current configuration. Unless the files |
| 18816 | and actions are specified as TAGs, all are instantiated by default. |
| 18817 | |
| 18818 | Usage: $0 [OPTION]... [TAG]... |
| 18819 | |
| 18820 | -h, --help print this help, then exit |
| 18821 | -V, --version print version number and configuration settings, then exit |
| 18822 | --config print configuration, then exit |
| 18823 | -q, --quiet, --silent |
| 18824 | do not print progress messages |
| 18825 | -d, --debug don't remove temporary files |
| 18826 | --recheck update $as_me by reconfiguring in the same conditions |
| 18827 | --file=FILE[:TEMPLATE] |
| 18828 | instantiate the configuration file FILE |
| 18829 | --header=FILE[:TEMPLATE] |
| 18830 | instantiate the configuration header FILE |
| 18831 | |
| 18832 | Configuration files: |
| 18833 | $config_files |
| 18834 | |
| 18835 | Configuration headers: |
| 18836 | $config_headers |
| 18837 | |
| 18838 | Configuration commands: |
| 18839 | $config_commands |
| 18840 | |
| 18841 | Report bugs to <https://github.com/flatpak/flatpak-builder/issues>. |
| 18842 | flatpak-builder home page: <http://flatpak.org/>." |
| 18843 | |
| 18844 | _ACEOF |
| 18845 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 18846 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 18847 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18848 | ac_cs_config='$ac_cs_config_escaped' |
| 18849 | ac_cs_version="\\ |
| 18850 | flatpak-builder config.status 1.4.10 |
| 18851 | configured by $0, generated by GNU Autoconf 2.71, |
| 18852 | with options \\"\$ac_cs_config\\" |
| 18853 | |
| 18854 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 18855 | This config.status script is free software; the Free Software Foundation |
| 18856 | gives unlimited permission to copy, distribute and modify it." |
| 18857 | |
| 18858 | ac_pwd='$ac_pwd' |
| 18859 | srcdir='$srcdir' |
| 18860 | INSTALL='$INSTALL' |
| 18861 | MKDIR_P='$MKDIR_P' |
| 18862 | AWK='$AWK' |
| 18863 | test -n "\$AWK" || AWK=awk |
| 18864 | _ACEOF |
| 18865 | |
| 18866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18867 | # The default lists apply if the user does not specify any file. |
| 18868 | ac_need_defaults=: |
| 18869 | while test $# != 0 |
| 18870 | do |
| 18871 | case $1 in |
| 18872 | --*=?*) |
| 18873 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18874 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 18875 | ac_shift=: |
| 18876 | ;; |
| 18877 | --*=) |
| 18878 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18879 | ac_optarg= |
| 18880 | ac_shift=: |
| 18881 | ;; |
| 18882 | *) |
| 18883 | ac_option=$1 |
| 18884 | ac_optarg=$2 |
| 18885 | ac_shift=shift |
| 18886 | ;; |
| 18887 | esac |
| 18888 | |
| 18889 | case $ac_option in |
| 18890 | # Handling of the options. |
| 18891 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18892 | ac_cs_recheck=: ;; |
| 18893 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 18894 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 18895 | --config | --confi | --conf | --con | --co | --c ) |
| 18896 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 18897 | --debug | --debu | --deb | --de | --d | -d ) |
| 18898 | debug=: ;; |
| 18899 | --file | --fil | --fi | --f ) |
| 18900 | $ac_shift |
| 18901 | case $ac_optarg in |
| 18902 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18903 | '') as_fn_error $? "missing file argument" ;; |
| 18904 | esac |
| 18905 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 18906 | ac_need_defaults=false;; |
| 18907 | --header | --heade | --head | --hea ) |
| 18908 | $ac_shift |
| 18909 | case $ac_optarg in |
| 18910 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18911 | esac |
| 18912 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 18913 | ac_need_defaults=false;; |
| 18914 | --he | --h) |
| 18915 | # Conflict between --help and --header |
| 18916 | as_fn_error $? "ambiguous option: \`$1' |
| 18917 | Try \`$0 --help' for more information.";; |
| 18918 | --help | --hel | -h ) |
| 18919 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 18920 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18921 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18922 | ac_cs_silent=: ;; |
| 18923 | |
| 18924 | # This is an error. |
| 18925 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 18926 | Try \`$0 --help' for more information." ;; |
| 18927 | |
| 18928 | *) as_fn_append ac_config_targets " $1" |
| 18929 | ac_need_defaults=false ;; |
| 18930 | |
| 18931 | esac |
| 18932 | shift |
| 18933 | done |
| 18934 | |
| 18935 | ac_configure_extra_args= |
| 18936 | |
| 18937 | if $ac_cs_silent; then |
| 18938 | exec 6>/dev/null |
| 18939 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18940 | fi |
| 18941 | |
| 18942 | _ACEOF |
| 18943 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18944 | if \$ac_cs_recheck; then |
| 18945 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18946 | shift |
| 18947 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18948 | CONFIG_SHELL='$SHELL' |
| 18949 | export CONFIG_SHELL |
| 18950 | exec "\$@" |
| 18951 | fi |
| 18952 | |
| 18953 | _ACEOF |
| 18954 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18955 | exec 5>>config.log |
| 18956 | { |
| 18957 | echo |
| 18958 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18959 | ## Running $as_me. ## |
| 18960 | _ASBOX |
| 18961 | printf "%s\n" "$ac_log" |
| 18962 | } >&5 |
| 18963 | |
| 18964 | _ACEOF |
| 18965 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18966 | # |
| 18967 | # INIT-COMMANDS |
| 18968 | # |
| 18969 | |
| 18970 | |
| 18971 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18972 | # if CDPATH is set. |
| 18973 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18974 | |
| 18975 | sed_quote_subst='$sed_quote_subst' |
| 18976 | double_quote_subst='$double_quote_subst' |
| 18977 | delay_variable_subst='$delay_variable_subst' |
| 18978 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 18979 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 18980 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 18981 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 18982 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 18983 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 18984 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 18985 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 18986 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 18987 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 18988 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 18989 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 18990 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 18991 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 18992 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 18993 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 18994 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 18995 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 18996 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 18997 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 18998 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 18999 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 19000 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 19001 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 19002 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 19003 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 19004 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 19005 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 19006 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 19007 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 19008 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19009 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19010 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 19011 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 19012 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 19013 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 19014 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 19015 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 19016 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 19017 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 19018 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 19019 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 19020 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 19021 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 19022 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 19023 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19024 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 19025 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 19026 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19027 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19028 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19029 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 19030 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 19031 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 19032 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 19033 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 19034 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 19035 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 19036 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 19037 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 19038 | 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"`' |
| 19039 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 19040 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19041 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 19042 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 19043 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 19044 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 19045 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 19046 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 19047 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 19048 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 19049 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 19050 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 19051 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 19052 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 19053 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 19054 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 19055 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 19056 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 19057 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 19058 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 19059 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19060 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 19061 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 19062 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19063 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19064 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 19065 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 19066 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19067 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19068 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19069 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 19070 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19071 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 19072 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19073 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19074 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19075 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 19076 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 19077 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 19078 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 19079 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19080 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 19081 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 19082 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 19083 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 19084 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 19085 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19086 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19087 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19088 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19089 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19090 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 19091 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 19092 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 19093 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 19094 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 19095 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19096 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 19097 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 19098 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 19099 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 19100 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 19101 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19102 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19103 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 19104 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 19105 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 19106 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19107 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 19108 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 19109 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 19110 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 19111 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 19112 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 19113 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 19114 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 19115 | |
| 19116 | LTCC='$LTCC' |
| 19117 | LTCFLAGS='$LTCFLAGS' |
| 19118 | compiler='$compiler_DEFAULT' |
| 19119 | |
| 19120 | # A function that is used when there is no print builtin or printf. |
| 19121 | func_fallback_echo () |
| 19122 | { |
| 19123 | eval 'cat <<_LTECHO_EOF |
| 19124 | \$1 |
| 19125 | _LTECHO_EOF' |
| 19126 | } |
| 19127 | |
| 19128 | # Quote evaled strings. |
| 19129 | for var in SHELL \ |
| 19130 | ECHO \ |
| 19131 | PATH_SEPARATOR \ |
| 19132 | SED \ |
| 19133 | GREP \ |
| 19134 | EGREP \ |
| 19135 | FGREP \ |
| 19136 | LD \ |
| 19137 | NM \ |
| 19138 | LN_S \ |
| 19139 | lt_SP2NL \ |
| 19140 | lt_NL2SP \ |
| 19141 | reload_flag \ |
| 19142 | FILECMD \ |
| 19143 | OBJDUMP \ |
| 19144 | deplibs_check_method \ |
| 19145 | file_magic_cmd \ |
| 19146 | file_magic_glob \ |
| 19147 | want_nocaseglob \ |
| 19148 | DLLTOOL \ |
| 19149 | sharedlib_from_linklib_cmd \ |
| 19150 | AR \ |
| 19151 | archiver_list_spec \ |
| 19152 | STRIP \ |
| 19153 | RANLIB \ |
| 19154 | CC \ |
| 19155 | CFLAGS \ |
| 19156 | compiler \ |
| 19157 | lt_cv_sys_global_symbol_pipe \ |
| 19158 | lt_cv_sys_global_symbol_to_cdecl \ |
| 19159 | lt_cv_sys_global_symbol_to_import \ |
| 19160 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19161 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 19162 | lt_cv_nm_interface \ |
| 19163 | nm_file_list_spec \ |
| 19164 | lt_cv_truncate_bin \ |
| 19165 | lt_prog_compiler_no_builtin_flag \ |
| 19166 | lt_prog_compiler_pic \ |
| 19167 | lt_prog_compiler_wl \ |
| 19168 | lt_prog_compiler_static \ |
| 19169 | lt_cv_prog_compiler_c_o \ |
| 19170 | need_locks \ |
| 19171 | MANIFEST_TOOL \ |
| 19172 | DSYMUTIL \ |
| 19173 | NMEDIT \ |
| 19174 | LIPO \ |
| 19175 | OTOOL \ |
| 19176 | OTOOL64 \ |
| 19177 | shrext_cmds \ |
| 19178 | export_dynamic_flag_spec \ |
| 19179 | whole_archive_flag_spec \ |
| 19180 | compiler_needs_object \ |
| 19181 | with_gnu_ld \ |
| 19182 | allow_undefined_flag \ |
| 19183 | no_undefined_flag \ |
| 19184 | hardcode_libdir_flag_spec \ |
| 19185 | hardcode_libdir_separator \ |
| 19186 | exclude_expsyms \ |
| 19187 | include_expsyms \ |
| 19188 | file_list_spec \ |
| 19189 | variables_saved_for_relink \ |
| 19190 | libname_spec \ |
| 19191 | library_names_spec \ |
| 19192 | soname_spec \ |
| 19193 | install_override_mode \ |
| 19194 | finish_eval \ |
| 19195 | old_striplib \ |
| 19196 | striplib; do |
| 19197 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19198 | *[\\\\\\\`\\"\\\$]*) |
| 19199 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 19200 | ;; |
| 19201 | *) |
| 19202 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19203 | ;; |
| 19204 | esac |
| 19205 | done |
| 19206 | |
| 19207 | # Double-quote double-evaled strings. |
| 19208 | for var in reload_cmds \ |
| 19209 | old_postinstall_cmds \ |
| 19210 | old_postuninstall_cmds \ |
| 19211 | old_archive_cmds \ |
| 19212 | extract_expsyms_cmds \ |
| 19213 | old_archive_from_new_cmds \ |
| 19214 | old_archive_from_expsyms_cmds \ |
| 19215 | archive_cmds \ |
| 19216 | archive_expsym_cmds \ |
| 19217 | module_cmds \ |
| 19218 | module_expsym_cmds \ |
| 19219 | export_symbols_cmds \ |
| 19220 | prelink_cmds \ |
| 19221 | postlink_cmds \ |
| 19222 | postinstall_cmds \ |
| 19223 | postuninstall_cmds \ |
| 19224 | finish_cmds \ |
| 19225 | sys_lib_search_path_spec \ |
| 19226 | configure_time_dlsearch_path \ |
| 19227 | configure_time_lt_sys_library_path; do |
| 19228 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19229 | *[\\\\\\\`\\"\\\$]*) |
| 19230 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 19231 | ;; |
| 19232 | *) |
| 19233 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19234 | ;; |
| 19235 | esac |
| 19236 | done |
| 19237 | |
| 19238 | ac_aux_dir='$ac_aux_dir' |
| 19239 | |
| 19240 | # See if we are running on zsh, and set the options that allow our |
| 19241 | # commands through without removal of \ escapes INIT. |
| 19242 | if test -n "\${ZSH_VERSION+set}"; then |
| 19243 | setopt NO_GLOB_SUBST |
| 19244 | fi |
| 19245 | |
| 19246 | |
| 19247 | PACKAGE='$PACKAGE' |
| 19248 | VERSION='$VERSION' |
| 19249 | RM='$RM' |
| 19250 | ofile='$ofile' |
| 19251 | |
| 19252 | |
| 19253 | |
| 19254 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 19255 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 19256 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
| 19257 | # from automake < 1.5. |
| 19258 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 19259 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 19260 | LINGUAS="${LINGUAS-%UNSET%}" |
| 19261 | |
| 19262 | |
| 19263 | _ACEOF |
| 19264 | |
| 19265 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19266 | |
| 19267 | # Handling of arguments. |
| 19268 | for ac_config_target in $ac_config_targets |
| 19269 | do |
| 19270 | case $ac_config_target in |
| 19271 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 19272 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 19273 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 19274 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 19275 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 19276 | "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; |
| 19277 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 19278 | "doc/flatpak-builder-docs.xml") CONFIG_FILES="$CONFIG_FILES doc/flatpak-builder-docs.xml" ;; |
| 19279 | |
| 19280 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 19281 | esac |
| 19282 | done |
| 19283 | |
| 19284 | |
| 19285 | # If the user did not use the arguments to specify the items to instantiate, |
| 19286 | # then the envvar interface is used. Set only those that are not. |
| 19287 | # We use the long form for the default assignment because of an extremely |
| 19288 | # bizarre bug on SunOS 4.1.3. |
| 19289 | if $ac_need_defaults; then |
| 19290 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 19291 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 19292 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 19293 | fi |
| 19294 | |
| 19295 | # Have a temporary directory for convenience. Make it in the build tree |
| 19296 | # simply because there is no reason against having it here, and in addition, |
| 19297 | # creating and moving files from /tmp can sometimes cause problems. |
| 19298 | # Hook for its removal unless debugging. |
| 19299 | # Note that there is a small window in which the directory will not be cleaned: |
| 19300 | # after its creation but before its name has been assigned to `$tmp'. |
| 19301 | $debug || |
| 19302 | { |
| 19303 | tmp= ac_tmp= |
| 19304 | trap 'exit_status=$? |
| 19305 | : "${ac_tmp:=$tmp}" |
| 19306 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 19307 | ' 0 |
| 19308 | trap 'as_fn_exit 1' 1 2 13 15 |
| 19309 | } |
| 19310 | # Create a (secure) tmp directory for tmp files. |
| 19311 | |
| 19312 | { |
| 19313 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 19314 | test -d "$tmp" |
| 19315 | } || |
| 19316 | { |
| 19317 | tmp=./conf$$-$RANDOM |
| 19318 | (umask 077 && mkdir "$tmp") |
| 19319 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 19320 | ac_tmp=$tmp |
| 19321 | |
| 19322 | # Set up the scripts for CONFIG_FILES section. |
| 19323 | # No need to generate them if there are no CONFIG_FILES. |
| 19324 | # This happens for instance with `./config.status config.h'. |
| 19325 | if test -n "$CONFIG_FILES"; then |
| 19326 | |
| 19327 | |
| 19328 | ac_cr=`echo X | tr X '\015'` |
| 19329 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 19330 | # But we know of no other shell where ac_cr would be empty at this |
| 19331 | # point, so we can use a bashism as a fallback. |
| 19332 | if test "x$ac_cr" = x; then |
| 19333 | eval ac_cr=\$\'\\r\' |
| 19334 | fi |
| 19335 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 19336 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 19337 | ac_cs_awk_cr='\\r' |
| 19338 | else |
| 19339 | ac_cs_awk_cr=$ac_cr |
| 19340 | fi |
| 19341 | |
| 19342 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 19343 | _ACEOF |
| 19344 | |
| 19345 | |
| 19346 | { |
| 19347 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 19348 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 19349 | echo "_ACEOF" |
| 19350 | } >conf$$subs.sh || |
| 19351 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19352 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 19353 | ac_delim='%!_!# ' |
| 19354 | for ac_last_try in false false false false false :; do |
| 19355 | . ./conf$$subs.sh || |
| 19356 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19357 | |
| 19358 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 19359 | if test $ac_delim_n = $ac_delim_num; then |
| 19360 | break |
| 19361 | elif $ac_last_try; then |
| 19362 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19363 | else |
| 19364 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19365 | fi |
| 19366 | done |
| 19367 | rm -f conf$$subs.sh |
| 19368 | |
| 19369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19370 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 19371 | _ACEOF |
| 19372 | sed -n ' |
| 19373 | h |
| 19374 | s/^/S["/; s/!.*/"]=/ |
| 19375 | p |
| 19376 | g |
| 19377 | s/^[^!]*!// |
| 19378 | :repl |
| 19379 | t repl |
| 19380 | s/'"$ac_delim"'$// |
| 19381 | t delim |
| 19382 | :nl |
| 19383 | h |
| 19384 | s/\(.\{148\}\)..*/\1/ |
| 19385 | t more1 |
| 19386 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 19387 | p |
| 19388 | n |
| 19389 | b repl |
| 19390 | :more1 |
| 19391 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19392 | p |
| 19393 | g |
| 19394 | s/.\{148\}// |
| 19395 | t nl |
| 19396 | :delim |
| 19397 | h |
| 19398 | s/\(.\{148\}\)..*/\1/ |
| 19399 | t more2 |
| 19400 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 19401 | p |
| 19402 | b |
| 19403 | :more2 |
| 19404 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19405 | p |
| 19406 | g |
| 19407 | s/.\{148\}// |
| 19408 | t delim |
| 19409 | ' <conf$$subs.awk | sed ' |
| 19410 | /^[^""]/{ |
| 19411 | N |
| 19412 | s/\n// |
| 19413 | } |
| 19414 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19415 | rm -f conf$$subs.awk |
| 19416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19417 | _ACAWK |
| 19418 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 19419 | for (key in S) S_is_set[key] = 1 |
| 19420 | FS = "" |
| 19421 | |
| 19422 | } |
| 19423 | { |
| 19424 | line = $ 0 |
| 19425 | nfields = split(line, field, "@") |
| 19426 | substed = 0 |
| 19427 | len = length(field[1]) |
| 19428 | for (i = 2; i < nfields; i++) { |
| 19429 | key = field[i] |
| 19430 | keylen = length(key) |
| 19431 | if (S_is_set[key]) { |
| 19432 | value = S[key] |
| 19433 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19434 | len += length(value) + length(field[++i]) |
| 19435 | substed = 1 |
| 19436 | } else |
| 19437 | len += 1 + keylen |
| 19438 | } |
| 19439 | |
| 19440 | print line |
| 19441 | } |
| 19442 | |
| 19443 | _ACAWK |
| 19444 | _ACEOF |
| 19445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19446 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19447 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19448 | else |
| 19449 | cat |
| 19450 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 19451 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 19452 | _ACEOF |
| 19453 | |
| 19454 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 19455 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 19456 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19457 | # (actually we leave an empty line to preserve line numbers). |
| 19458 | if test "x$srcdir" = x.; then |
| 19459 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 19460 | h |
| 19461 | s/// |
| 19462 | s/^/:/ |
| 19463 | s/[ ]*$/:/ |
| 19464 | s/:\$(srcdir):/:/g |
| 19465 | s/:\${srcdir}:/:/g |
| 19466 | s/:@srcdir@:/:/g |
| 19467 | s/^:*// |
| 19468 | s/:*$// |
| 19469 | x |
| 19470 | s/\(=[ ]*\).*/\1/ |
| 19471 | G |
| 19472 | s/\n// |
| 19473 | s/^[^=]*=[ ]*$// |
| 19474 | }' |
| 19475 | fi |
| 19476 | |
| 19477 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19478 | fi # test -n "$CONFIG_FILES" |
| 19479 | |
| 19480 | # Set up the scripts for CONFIG_HEADERS section. |
| 19481 | # No need to generate them if there are no CONFIG_HEADERS. |
| 19482 | # This happens for instance with `./config.status Makefile'. |
| 19483 | if test -n "$CONFIG_HEADERS"; then |
| 19484 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 19485 | BEGIN { |
| 19486 | _ACEOF |
| 19487 | |
| 19488 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19489 | # here-document in config.status, that substitutes the proper values into |
| 19490 | # config.h.in to produce config.h. |
| 19491 | |
| 19492 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 19493 | # handling of long lines. |
| 19494 | ac_delim='%!_!# ' |
| 19495 | for ac_last_try in false false :; do |
| 19496 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 19497 | if test -z "$ac_tt"; then |
| 19498 | break |
| 19499 | elif $ac_last_try; then |
| 19500 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 19501 | else |
| 19502 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19503 | fi |
| 19504 | done |
| 19505 | |
| 19506 | # For the awk script, D is an array of macro values keyed by name, |
| 19507 | # likewise P contains macro parameters if any. Preserve backslash |
| 19508 | # newline sequences. |
| 19509 | |
| 19510 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19511 | sed -n ' |
| 19512 | s/.\{148\}/&'"$ac_delim"'/g |
| 19513 | t rset |
| 19514 | :rset |
| 19515 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19516 | t def |
| 19517 | d |
| 19518 | :def |
| 19519 | s/\\$// |
| 19520 | t bsnl |
| 19521 | s/["\\]/\\&/g |
| 19522 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19523 | D["\1"]=" \3"/p |
| 19524 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19525 | d |
| 19526 | :bsnl |
| 19527 | s/["\\]/\\&/g |
| 19528 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19529 | D["\1"]=" \3\\\\\\n"\\/p |
| 19530 | t cont |
| 19531 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19532 | t cont |
| 19533 | d |
| 19534 | :cont |
| 19535 | n |
| 19536 | s/.\{148\}/&'"$ac_delim"'/g |
| 19537 | t clear |
| 19538 | :clear |
| 19539 | s/\\$// |
| 19540 | t bsnlc |
| 19541 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19542 | d |
| 19543 | :bsnlc |
| 19544 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19545 | b cont |
| 19546 | ' <confdefs.h | sed ' |
| 19547 | s/'"$ac_delim"'/"\\\ |
| 19548 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19549 | |
| 19550 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19551 | for (key in D) D_is_set[key] = 1 |
| 19552 | FS = "" |
| 19553 | } |
| 19554 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 19555 | line = \$ 0 |
| 19556 | split(line, arg, " ") |
| 19557 | if (arg[1] == "#") { |
| 19558 | defundef = arg[2] |
| 19559 | mac1 = arg[3] |
| 19560 | } else { |
| 19561 | defundef = substr(arg[1], 2) |
| 19562 | mac1 = arg[2] |
| 19563 | } |
| 19564 | split(mac1, mac2, "(") #) |
| 19565 | macro = mac2[1] |
| 19566 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 19567 | if (D_is_set[macro]) { |
| 19568 | # Preserve the white space surrounding the "#". |
| 19569 | print prefix "define", macro P[macro] D[macro] |
| 19570 | next |
| 19571 | } else { |
| 19572 | # Replace #undef with comments. This is necessary, for example, |
| 19573 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 19574 | # on some systems where configure will not decide to define it. |
| 19575 | if (defundef == "undef") { |
| 19576 | print "/*", prefix defundef, macro, "*/" |
| 19577 | next |
| 19578 | } |
| 19579 | } |
| 19580 | } |
| 19581 | { print } |
| 19582 | _ACAWK |
| 19583 | _ACEOF |
| 19584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19585 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 19586 | fi # test -n "$CONFIG_HEADERS" |
| 19587 | |
| 19588 | |
| 19589 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 19590 | shift |
| 19591 | for ac_tag |
| 19592 | do |
| 19593 | case $ac_tag in |
| 19594 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 19595 | esac |
| 19596 | case $ac_mode$ac_tag in |
| 19597 | :[FHL]*:*);; |
| 19598 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 19599 | :[FH]-) ac_tag=-:-;; |
| 19600 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 19601 | esac |
| 19602 | ac_save_IFS=$IFS |
| 19603 | IFS=: |
| 19604 | set x $ac_tag |
| 19605 | IFS=$ac_save_IFS |
| 19606 | shift |
| 19607 | ac_file=$1 |
| 19608 | shift |
| 19609 | |
| 19610 | case $ac_mode in |
| 19611 | :L) ac_source=$1;; |
| 19612 | :[FH]) |
| 19613 | ac_file_inputs= |
| 19614 | for ac_f |
| 19615 | do |
| 19616 | case $ac_f in |
| 19617 | -) ac_f="$ac_tmp/stdin";; |
| 19618 | *) # Look for the file first in the build tree, then in the source tree |
| 19619 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 19620 | # because $ac_f cannot contain `:'. |
| 19621 | test -f "$ac_f" || |
| 19622 | case $ac_f in |
| 19623 | [\\/$]*) false;; |
| 19624 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 19625 | esac || |
| 19626 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 19627 | esac |
| 19628 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 19629 | as_fn_append ac_file_inputs " '$ac_f'" |
| 19630 | done |
| 19631 | |
| 19632 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19633 | # use $as_me), people would be surprised to read: |
| 19634 | # /* config.h. Generated by config.status. */ |
| 19635 | configure_input='Generated from '` |
| 19636 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 19637 | `' by configure.' |
| 19638 | if test x"$ac_file" != x-; then |
| 19639 | configure_input="$ac_file. $configure_input" |
| 19640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 19641 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 19642 | fi |
| 19643 | # Neutralize special characters interpreted by sed in replacement strings. |
| 19644 | case $configure_input in #( |
| 19645 | *\&* | *\|* | *\\* ) |
| 19646 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 19647 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 19648 | *) ac_sed_conf_input=$configure_input;; |
| 19649 | esac |
| 19650 | |
| 19651 | case $ac_tag in |
| 19652 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 19653 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 19654 | esac |
| 19655 | ;; |
| 19656 | esac |
| 19657 | |
| 19658 | ac_dir=`$as_dirname -- "$ac_file" || |
| 19659 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19660 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19661 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19662 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 19663 | printf "%s\n" X"$ac_file" | |
| 19664 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19665 | s//\1/ |
| 19666 | q |
| 19667 | } |
| 19668 | /^X\(\/\/\)[^/].*/{ |
| 19669 | s//\1/ |
| 19670 | q |
| 19671 | } |
| 19672 | /^X\(\/\/\)$/{ |
| 19673 | s//\1/ |
| 19674 | q |
| 19675 | } |
| 19676 | /^X\(\/\).*/{ |
| 19677 | s//\1/ |
| 19678 | q |
| 19679 | } |
| 19680 | s/.*/./; q'` |
| 19681 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 19682 | ac_builddir=. |
| 19683 | |
| 19684 | case "$ac_dir" in |
| 19685 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19686 | *) |
| 19687 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 19688 | # A ".." for each directory in $ac_dir_suffix. |
| 19689 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 19690 | case $ac_top_builddir_sub in |
| 19691 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19692 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19693 | esac ;; |
| 19694 | esac |
| 19695 | ac_abs_top_builddir=$ac_pwd |
| 19696 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19697 | # for backward compatibility: |
| 19698 | ac_top_builddir=$ac_top_build_prefix |
| 19699 | |
| 19700 | case $srcdir in |
| 19701 | .) # We are building in place. |
| 19702 | ac_srcdir=. |
| 19703 | ac_top_srcdir=$ac_top_builddir_sub |
| 19704 | ac_abs_top_srcdir=$ac_pwd ;; |
| 19705 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 19706 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19707 | ac_top_srcdir=$srcdir |
| 19708 | ac_abs_top_srcdir=$srcdir ;; |
| 19709 | *) # Relative name. |
| 19710 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19711 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19712 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 19713 | esac |
| 19714 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 19715 | |
| 19716 | |
| 19717 | case $ac_mode in |
| 19718 | :F) |
| 19719 | # |
| 19720 | # CONFIG_FILE |
| 19721 | # |
| 19722 | |
| 19723 | case $INSTALL in |
| 19724 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19725 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 19726 | esac |
| 19727 | ac_MKDIR_P=$MKDIR_P |
| 19728 | case $MKDIR_P in |
| 19729 | [\\/$]* | ?:[\\/]* ) ;; |
| 19730 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 19731 | esac |
| 19732 | _ACEOF |
| 19733 | |
| 19734 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19735 | # If the template does not know about datarootdir, expand it. |
| 19736 | # FIXME: This hack should be removed a few years after 2.60. |
| 19737 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 19738 | ac_sed_dataroot=' |
| 19739 | /datarootdir/ { |
| 19740 | p |
| 19741 | q |
| 19742 | } |
| 19743 | /@datadir@/p |
| 19744 | /@docdir@/p |
| 19745 | /@infodir@/p |
| 19746 | /@localedir@/p |
| 19747 | /@mandir@/p' |
| 19748 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 19749 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 19750 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 19751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 19752 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 19753 | _ACEOF |
| 19754 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19755 | ac_datarootdir_hack=' |
| 19756 | s&@datadir@&$datadir&g |
| 19757 | s&@docdir@&$docdir&g |
| 19758 | s&@infodir@&$infodir&g |
| 19759 | s&@localedir@&$localedir&g |
| 19760 | s&@mandir@&$mandir&g |
| 19761 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 19762 | esac |
| 19763 | _ACEOF |
| 19764 | |
| 19765 | # Neutralize VPATH when `$srcdir' = `.'. |
| 19766 | # Shell code in configure.ac might set extrasub. |
| 19767 | # FIXME: do we really want to maintain this feature? |
| 19768 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19769 | ac_sed_extra="$ac_vpsub |
| 19770 | $extrasub |
| 19771 | _ACEOF |
| 19772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19773 | :t |
| 19774 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19775 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 19776 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 19777 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 19778 | s&@srcdir@&$ac_srcdir&;t t |
| 19779 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 19780 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 19781 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 19782 | s&@builddir@&$ac_builddir&;t t |
| 19783 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 19784 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 19785 | s&@INSTALL@&$ac_INSTALL&;t t |
| 19786 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 19787 | $ac_datarootdir_hack |
| 19788 | " |
| 19789 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 19790 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19791 | |
| 19792 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 19793 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 19794 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 19795 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 19796 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19797 | which seems to be undefined. Please make sure it is defined" >&5 |
| 19798 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19799 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 19800 | |
| 19801 | rm -f "$ac_tmp/stdin" |
| 19802 | case $ac_file in |
| 19803 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 19804 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 19805 | esac \ |
| 19806 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19807 | ;; |
| 19808 | :H) |
| 19809 | # |
| 19810 | # CONFIG_HEADER |
| 19811 | # |
| 19812 | if test x"$ac_file" != x-; then |
| 19813 | { |
| 19814 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 19815 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 19816 | } >"$ac_tmp/config.h" \ |
| 19817 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19818 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 19819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 19820 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 19821 | else |
| 19822 | rm -f "$ac_file" |
| 19823 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 19824 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19825 | fi |
| 19826 | else |
| 19827 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 19828 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 19829 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 19830 | fi |
| 19831 | # Compute "$ac_file"'s index in $config_headers. |
| 19832 | _am_arg="$ac_file" |
| 19833 | _am_stamp_count=1 |
| 19834 | for _am_header in $config_headers :; do |
| 19835 | case $_am_header in |
| 19836 | $_am_arg | $_am_arg:* ) |
| 19837 | break ;; |
| 19838 | * ) |
| 19839 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 19840 | esac |
| 19841 | done |
| 19842 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 19843 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19844 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 19845 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 19846 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 19847 | printf "%s\n" X"$_am_arg" | |
| 19848 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19849 | s//\1/ |
| 19850 | q |
| 19851 | } |
| 19852 | /^X\(\/\/\)[^/].*/{ |
| 19853 | s//\1/ |
| 19854 | q |
| 19855 | } |
| 19856 | /^X\(\/\/\)$/{ |
| 19857 | s//\1/ |
| 19858 | q |
| 19859 | } |
| 19860 | /^X\(\/\).*/{ |
| 19861 | s//\1/ |
| 19862 | q |
| 19863 | } |
| 19864 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 19865 | ;; |
| 19866 | |
| 19867 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 19868 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 19869 | ;; |
| 19870 | esac |
| 19871 | |
| 19872 | |
| 19873 | case $ac_file$ac_mode in |
| 19874 | "libtool":C) |
| 19875 | |
| 19876 | # See if we are running on zsh, and set the options that allow our |
| 19877 | # commands through without removal of \ escapes. |
| 19878 | if test -n "${ZSH_VERSION+set}"; then |
| 19879 | setopt NO_GLOB_SUBST |
| 19880 | fi |
| 19881 | |
| 19882 | cfgfile=${ofile}T |
| 19883 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 19884 | $RM "$cfgfile" |
| 19885 | |
| 19886 | cat <<_LT_EOF >> "$cfgfile" |
| 19887 | #! $SHELL |
| 19888 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 19889 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 19890 | |
| 19891 | # Provide generalized library-building support services. |
| 19892 | # Written by Gordon Matzigkeit, 1996 |
| 19893 | |
| 19894 | # Copyright (C) 2014 Free Software Foundation, Inc. |
| 19895 | # This is free software; see the source for copying conditions. There is NO |
| 19896 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 19897 | |
| 19898 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 19899 | # it under the terms of the GNU General Public License as published by |
| 19900 | # the Free Software Foundation; either version 2 of of the License, or |
| 19901 | # (at your option) any later version. |
| 19902 | # |
| 19903 | # As a special exception to the GNU General Public License, if you |
| 19904 | # distribute this file as part of a program or library that is built |
| 19905 | # using GNU Libtool, you may include this file under the same |
| 19906 | # distribution terms that you use for the rest of that program. |
| 19907 | # |
| 19908 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 19909 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19910 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19911 | # GNU General Public License for more details. |
| 19912 | # |
| 19913 | # You should have received a copy of the GNU General Public License |
| 19914 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19915 | |
| 19916 | |
| 19917 | # The names of the tagged configurations supported by this script. |
| 19918 | available_tags='' |
| 19919 | |
| 19920 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 19921 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 19922 | |
| 19923 | # ### BEGIN LIBTOOL CONFIG |
| 19924 | |
| 19925 | # Whether or not to build static libraries. |
| 19926 | build_old_libs=$enable_static |
| 19927 | |
| 19928 | # Which release of libtool.m4 was used? |
| 19929 | macro_version=$macro_version |
| 19930 | macro_revision=$macro_revision |
| 19931 | |
| 19932 | # Whether or not to build shared libraries. |
| 19933 | build_libtool_libs=$enable_shared |
| 19934 | |
| 19935 | # What type of objects to build. |
| 19936 | pic_mode=$pic_mode |
| 19937 | |
| 19938 | # Whether or not to optimize for fast installation. |
| 19939 | fast_install=$enable_fast_install |
| 19940 | |
| 19941 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 19942 | shared_archive_member_spec=$shared_archive_member_spec |
| 19943 | |
| 19944 | # Shell to use when invoking shell scripts. |
| 19945 | SHELL=$lt_SHELL |
| 19946 | |
| 19947 | # An echo program that protects backslashes. |
| 19948 | ECHO=$lt_ECHO |
| 19949 | |
| 19950 | # The PATH separator for the build system. |
| 19951 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 19952 | |
| 19953 | # The host system. |
| 19954 | host_alias=$host_alias |
| 19955 | host=$host |
| 19956 | host_os=$host_os |
| 19957 | |
| 19958 | # The build system. |
| 19959 | build_alias=$build_alias |
| 19960 | build=$build |
| 19961 | build_os=$build_os |
| 19962 | |
| 19963 | # A sed program that does not truncate output. |
| 19964 | SED=$lt_SED |
| 19965 | |
| 19966 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 19967 | Xsed="\$SED -e 1s/^X//" |
| 19968 | |
| 19969 | # A grep program that handles long lines. |
| 19970 | GREP=$lt_GREP |
| 19971 | |
| 19972 | # An ERE matcher. |
| 19973 | EGREP=$lt_EGREP |
| 19974 | |
| 19975 | # A literal string matcher. |
| 19976 | FGREP=$lt_FGREP |
| 19977 | |
| 19978 | # A BSD- or MS-compatible name lister. |
| 19979 | NM=$lt_NM |
| 19980 | |
| 19981 | # Whether we need soft or hard links. |
| 19982 | LN_S=$lt_LN_S |
| 19983 | |
| 19984 | # What is the maximum length of a command? |
| 19985 | max_cmd_len=$max_cmd_len |
| 19986 | |
| 19987 | # Object file suffix (normally "o"). |
| 19988 | objext=$ac_objext |
| 19989 | |
| 19990 | # Executable file suffix (normally ""). |
| 19991 | exeext=$exeext |
| 19992 | |
| 19993 | # whether the shell understands "unset". |
| 19994 | lt_unset=$lt_unset |
| 19995 | |
| 19996 | # turn spaces into newlines. |
| 19997 | SP2NL=$lt_lt_SP2NL |
| 19998 | |
| 19999 | # turn newlines into spaces. |
| 20000 | NL2SP=$lt_lt_NL2SP |
| 20001 | |
| 20002 | # convert \$build file names to \$host format. |
| 20003 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 20004 | |
| 20005 | # convert \$build files to toolchain format. |
| 20006 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 20007 | |
| 20008 | # A file(cmd) program that detects file types. |
| 20009 | FILECMD=$lt_FILECMD |
| 20010 | |
| 20011 | # An object symbol dumper. |
| 20012 | OBJDUMP=$lt_OBJDUMP |
| 20013 | |
| 20014 | # Method to check whether dependent libraries are shared objects. |
| 20015 | deplibs_check_method=$lt_deplibs_check_method |
| 20016 | |
| 20017 | # Command to use when deplibs_check_method = "file_magic". |
| 20018 | file_magic_cmd=$lt_file_magic_cmd |
| 20019 | |
| 20020 | # How to find potential files when deplibs_check_method = "file_magic". |
| 20021 | file_magic_glob=$lt_file_magic_glob |
| 20022 | |
| 20023 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 20024 | want_nocaseglob=$lt_want_nocaseglob |
| 20025 | |
| 20026 | # DLL creation program. |
| 20027 | DLLTOOL=$lt_DLLTOOL |
| 20028 | |
| 20029 | # Command to associate shared and link libraries. |
| 20030 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 20031 | |
| 20032 | # The archiver. |
| 20033 | AR=$lt_AR |
| 20034 | |
| 20035 | # Flags to create an archive (by configure). |
| 20036 | lt_ar_flags=$lt_ar_flags |
| 20037 | |
| 20038 | # Flags to create an archive. |
| 20039 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 20040 | |
| 20041 | # How to feed a file listing to the archiver. |
| 20042 | archiver_list_spec=$lt_archiver_list_spec |
| 20043 | |
| 20044 | # A symbol stripping program. |
| 20045 | STRIP=$lt_STRIP |
| 20046 | |
| 20047 | # Commands used to install an old-style archive. |
| 20048 | RANLIB=$lt_RANLIB |
| 20049 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20050 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20051 | |
| 20052 | # Whether to use a lock for old archive extraction. |
| 20053 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 20054 | |
| 20055 | # A C compiler. |
| 20056 | LTCC=$lt_CC |
| 20057 | |
| 20058 | # LTCC compiler flags. |
| 20059 | LTCFLAGS=$lt_CFLAGS |
| 20060 | |
| 20061 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20062 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20063 | |
| 20064 | # Transform the output of nm in a proper C declaration. |
| 20065 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20066 | |
| 20067 | # Transform the output of nm into a list of symbols to manually relocate. |
| 20068 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 20069 | |
| 20070 | # Transform the output of nm in a C name address pair. |
| 20071 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20072 | |
| 20073 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 20074 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 20075 | |
| 20076 | # The name lister interface. |
| 20077 | nm_interface=$lt_lt_cv_nm_interface |
| 20078 | |
| 20079 | # Specify filename containing input files for \$NM. |
| 20080 | nm_file_list_spec=$lt_nm_file_list_spec |
| 20081 | |
| 20082 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 20083 | lt_sysroot=$lt_sysroot |
| 20084 | |
| 20085 | # Command to truncate a binary pipe. |
| 20086 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 20087 | |
| 20088 | # The name of the directory that contains temporary libtool files. |
| 20089 | objdir=$objdir |
| 20090 | |
| 20091 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 20092 | MAGIC_CMD=$MAGIC_CMD |
| 20093 | |
| 20094 | # Must we lock files when doing compilation? |
| 20095 | need_locks=$lt_need_locks |
| 20096 | |
| 20097 | # Manifest tool. |
| 20098 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 20099 | |
| 20100 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 20101 | DSYMUTIL=$lt_DSYMUTIL |
| 20102 | |
| 20103 | # Tool to change global to local symbols on Mac OS X. |
| 20104 | NMEDIT=$lt_NMEDIT |
| 20105 | |
| 20106 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 20107 | LIPO=$lt_LIPO |
| 20108 | |
| 20109 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 20110 | OTOOL=$lt_OTOOL |
| 20111 | |
| 20112 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 20113 | OTOOL64=$lt_OTOOL64 |
| 20114 | |
| 20115 | # Old archive suffix (normally "a"). |
| 20116 | libext=$libext |
| 20117 | |
| 20118 | # Shared library suffix (normally ".so"). |
| 20119 | shrext_cmds=$lt_shrext_cmds |
| 20120 | |
| 20121 | # The commands to extract the exported symbol list from a shared archive. |
| 20122 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20123 | |
| 20124 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20125 | # restored at link time. |
| 20126 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 20127 | |
| 20128 | # Do we need the "lib" prefix for modules? |
| 20129 | need_lib_prefix=$need_lib_prefix |
| 20130 | |
| 20131 | # Do we need a version for libraries? |
| 20132 | need_version=$need_version |
| 20133 | |
| 20134 | # Library versioning type. |
| 20135 | version_type=$version_type |
| 20136 | |
| 20137 | # Shared library runtime path variable. |
| 20138 | runpath_var=$runpath_var |
| 20139 | |
| 20140 | # Shared library path variable. |
| 20141 | shlibpath_var=$shlibpath_var |
| 20142 | |
| 20143 | # Is shlibpath searched before the hard-coded library search path? |
| 20144 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20145 | |
| 20146 | # Format of library name prefix. |
| 20147 | libname_spec=$lt_libname_spec |
| 20148 | |
| 20149 | # List of archive names. First name is the real one, the rest are links. |
| 20150 | # The last name is the one that the linker finds with -lNAME |
| 20151 | library_names_spec=$lt_library_names_spec |
| 20152 | |
| 20153 | # The coded name of the library, if different from the real name. |
| 20154 | soname_spec=$lt_soname_spec |
| 20155 | |
| 20156 | # Permission mode override for installation of shared libraries. |
| 20157 | install_override_mode=$lt_install_override_mode |
| 20158 | |
| 20159 | # Command to use after installation of a shared archive. |
| 20160 | postinstall_cmds=$lt_postinstall_cmds |
| 20161 | |
| 20162 | # Command to use after uninstallation of a shared archive. |
| 20163 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20164 | |
| 20165 | # Commands used to finish a libtool library installation in a directory. |
| 20166 | finish_cmds=$lt_finish_cmds |
| 20167 | |
| 20168 | # As "finish_cmds", except a single script fragment to be evaled but |
| 20169 | # not shown. |
| 20170 | finish_eval=$lt_finish_eval |
| 20171 | |
| 20172 | # Whether we should hardcode library paths into libraries. |
| 20173 | hardcode_into_libs=$hardcode_into_libs |
| 20174 | |
| 20175 | # Compile-time system search path for libraries. |
| 20176 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20177 | |
| 20178 | # Detected run-time system search path for libraries. |
| 20179 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 20180 | |
| 20181 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 20182 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 20183 | |
| 20184 | # Whether dlopen is supported. |
| 20185 | dlopen_support=$enable_dlopen |
| 20186 | |
| 20187 | # Whether dlopen of programs is supported. |
| 20188 | dlopen_self=$enable_dlopen_self |
| 20189 | |
| 20190 | # Whether dlopen of statically linked programs is supported. |
| 20191 | dlopen_self_static=$enable_dlopen_self_static |
| 20192 | |
| 20193 | # Commands to strip libraries. |
| 20194 | old_striplib=$lt_old_striplib |
| 20195 | striplib=$lt_striplib |
| 20196 | |
| 20197 | |
| 20198 | # The linker used to build libraries. |
| 20199 | LD=$lt_LD |
| 20200 | |
| 20201 | # How to create reloadable object files. |
| 20202 | reload_flag=$lt_reload_flag |
| 20203 | reload_cmds=$lt_reload_cmds |
| 20204 | |
| 20205 | # Commands used to build an old-style archive. |
| 20206 | old_archive_cmds=$lt_old_archive_cmds |
| 20207 | |
| 20208 | # A language specific compiler. |
| 20209 | CC=$lt_compiler |
| 20210 | |
| 20211 | # Is the compiler the GNU compiler? |
| 20212 | with_gcc=$GCC |
| 20213 | |
| 20214 | # Compiler flag to turn off builtin functions. |
| 20215 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 20216 | |
| 20217 | # Additional compiler flags for building library objects. |
| 20218 | pic_flag=$lt_lt_prog_compiler_pic |
| 20219 | |
| 20220 | # How to pass a linker flag through the compiler. |
| 20221 | wl=$lt_lt_prog_compiler_wl |
| 20222 | |
| 20223 | # Compiler flag to prevent dynamic linking. |
| 20224 | link_static_flag=$lt_lt_prog_compiler_static |
| 20225 | |
| 20226 | # Does compiler simultaneously support -c and -o options? |
| 20227 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 20228 | |
| 20229 | # Whether or not to add -lc for building shared libraries. |
| 20230 | build_libtool_need_lc=$archive_cmds_need_lc |
| 20231 | |
| 20232 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20233 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 20234 | |
| 20235 | # Compiler flag to allow reflexive dlopens. |
| 20236 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 20237 | |
| 20238 | # Compiler flag to generate shared objects directly from archives. |
| 20239 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 20240 | |
| 20241 | # Whether the compiler copes with passing no objects directly. |
| 20242 | compiler_needs_object=$lt_compiler_needs_object |
| 20243 | |
| 20244 | # Create an old-style archive from a shared archive. |
| 20245 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 20246 | |
| 20247 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20248 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 20249 | |
| 20250 | # Commands used to build a shared archive. |
| 20251 | archive_cmds=$lt_archive_cmds |
| 20252 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 20253 | |
| 20254 | # Commands used to build a loadable module if different from building |
| 20255 | # a shared archive. |
| 20256 | module_cmds=$lt_module_cmds |
| 20257 | module_expsym_cmds=$lt_module_expsym_cmds |
| 20258 | |
| 20259 | # Whether we are building with GNU ld or not. |
| 20260 | with_gnu_ld=$lt_with_gnu_ld |
| 20261 | |
| 20262 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20263 | allow_undefined_flag=$lt_allow_undefined_flag |
| 20264 | |
| 20265 | # Flag that enforces no undefined symbols. |
| 20266 | no_undefined_flag=$lt_no_undefined_flag |
| 20267 | |
| 20268 | # Flag to hardcode \$libdir into a binary during linking. |
| 20269 | # This must work even if \$libdir does not exist |
| 20270 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 20271 | |
| 20272 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20273 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 20274 | |
| 20275 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 20276 | # DIR into the resulting binary. |
| 20277 | hardcode_direct=$hardcode_direct |
| 20278 | |
| 20279 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 20280 | # DIR into the resulting binary and the resulting library dependency is |
| 20281 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 20282 | # library is relocated. |
| 20283 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 20284 | |
| 20285 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20286 | # into the resulting binary. |
| 20287 | hardcode_minus_L=$hardcode_minus_L |
| 20288 | |
| 20289 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 20290 | # into the resulting binary. |
| 20291 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 20292 | |
| 20293 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 20294 | # into the library and all subsequent libraries and executables linked |
| 20295 | # against it. |
| 20296 | hardcode_automatic=$hardcode_automatic |
| 20297 | |
| 20298 | # Set to yes if linker adds runtime paths of dependent libraries |
| 20299 | # to runtime path list. |
| 20300 | inherit_rpath=$inherit_rpath |
| 20301 | |
| 20302 | # Whether libtool must link a program against all its dependency libraries. |
| 20303 | link_all_deplibs=$link_all_deplibs |
| 20304 | |
| 20305 | # Set to "yes" if exported symbols are required. |
| 20306 | always_export_symbols=$always_export_symbols |
| 20307 | |
| 20308 | # The commands to list exported symbols. |
| 20309 | export_symbols_cmds=$lt_export_symbols_cmds |
| 20310 | |
| 20311 | # Symbols that should not be listed in the preloaded symbols. |
| 20312 | exclude_expsyms=$lt_exclude_expsyms |
| 20313 | |
| 20314 | # Symbols that must always be exported. |
| 20315 | include_expsyms=$lt_include_expsyms |
| 20316 | |
| 20317 | # Commands necessary for linking programs (against libraries) with templates. |
| 20318 | prelink_cmds=$lt_prelink_cmds |
| 20319 | |
| 20320 | # Commands necessary for finishing linking programs. |
| 20321 | postlink_cmds=$lt_postlink_cmds |
| 20322 | |
| 20323 | # Specify filename containing input files. |
| 20324 | file_list_spec=$lt_file_list_spec |
| 20325 | |
| 20326 | # How to hardcode a shared library path into an executable. |
| 20327 | hardcode_action=$hardcode_action |
| 20328 | |
| 20329 | # ### END LIBTOOL CONFIG |
| 20330 | |
| 20331 | _LT_EOF |
| 20332 | |
| 20333 | cat <<'_LT_EOF' >> "$cfgfile" |
| 20334 | |
| 20335 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 20336 | |
| 20337 | # func_munge_path_list VARIABLE PATH |
| 20338 | # ----------------------------------- |
| 20339 | # VARIABLE is name of variable containing _space_ separated list of |
| 20340 | # directories to be munged by the contents of PATH, which is string |
| 20341 | # having a format: |
| 20342 | # "DIR[:DIR]:" |
| 20343 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 20344 | # ":DIR[:DIR]" |
| 20345 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 20346 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 20347 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 20348 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 20349 | # "DIR[:DIR]" |
| 20350 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 20351 | func_munge_path_list () |
| 20352 | { |
| 20353 | case x$2 in |
| 20354 | x) |
| 20355 | ;; |
| 20356 | *:) |
| 20357 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 20358 | ;; |
| 20359 | x:*) |
| 20360 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 20361 | ;; |
| 20362 | *::*) |
| 20363 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 20364 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 20365 | ;; |
| 20366 | *) |
| 20367 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 20368 | ;; |
| 20369 | esac |
| 20370 | } |
| 20371 | |
| 20372 | |
| 20373 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 20374 | func_cc_basename () |
| 20375 | { |
| 20376 | for cc_temp in $*""; do |
| 20377 | case $cc_temp in |
| 20378 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20379 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20380 | \-*) ;; |
| 20381 | *) break;; |
| 20382 | esac |
| 20383 | done |
| 20384 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 20385 | } |
| 20386 | |
| 20387 | |
| 20388 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 20389 | |
| 20390 | _LT_EOF |
| 20391 | |
| 20392 | case $host_os in |
| 20393 | aix3*) |
| 20394 | cat <<\_LT_EOF >> "$cfgfile" |
| 20395 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 20396 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 20397 | # vanish in a puff of smoke. |
| 20398 | if test set != "${COLLECT_NAMES+set}"; then |
| 20399 | COLLECT_NAMES= |
| 20400 | export COLLECT_NAMES |
| 20401 | fi |
| 20402 | _LT_EOF |
| 20403 | ;; |
| 20404 | esac |
| 20405 | |
| 20406 | |
| 20407 | |
| 20408 | ltmain=$ac_aux_dir/ltmain.sh |
| 20409 | |
| 20410 | |
| 20411 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 20412 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 20413 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 20414 | # is reportedly fixed, but why not run on old versions too? |
| 20415 | $SED '$q' "$ltmain" >> "$cfgfile" \ |
| 20416 | || (rm -f "$cfgfile"; exit 1) |
| 20417 | |
| 20418 | mv -f "$cfgfile" "$ofile" || |
| 20419 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 20420 | chmod +x "$ofile" |
| 20421 | |
| 20422 | ;; |
| 20423 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 20424 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 20425 | # are listed without --file. Let's play safe and only enable the eval |
| 20426 | # if we detect the quoting. |
| 20427 | # TODO: see whether this extra hack can be removed once we start |
| 20428 | # requiring Autoconf 2.70 or later. |
| 20429 | case $CONFIG_FILES in #( |
| 20430 | *\'*) : |
| 20431 | eval set x "$CONFIG_FILES" ;; #( |
| 20432 | *) : |
| 20433 | set x $CONFIG_FILES ;; #( |
| 20434 | *) : |
| 20435 | ;; |
| 20436 | esac |
| 20437 | shift |
| 20438 | # Used to flag and report bootstrapping failures. |
| 20439 | am_rc=0 |
| 20440 | for am_mf |
| 20441 | do |
| 20442 | # Strip MF so we end up with the name of the file. |
| 20443 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 20444 | # Check whether this is an Automake generated Makefile which includes |
| 20445 | # dependency-tracking related rules and includes. |
| 20446 | # Grep'ing the whole file directly is not great: AIX grep has a line |
| 20447 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 20448 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 20449 | || continue |
| 20450 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 20451 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20452 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 20453 | X"$am_mf" : 'X\(//\)$' \| \ |
| 20454 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 20455 | printf "%s\n" X"$am_mf" | |
| 20456 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20457 | s//\1/ |
| 20458 | q |
| 20459 | } |
| 20460 | /^X\(\/\/\)[^/].*/{ |
| 20461 | s//\1/ |
| 20462 | q |
| 20463 | } |
| 20464 | /^X\(\/\/\)$/{ |
| 20465 | s//\1/ |
| 20466 | q |
| 20467 | } |
| 20468 | /^X\(\/\).*/{ |
| 20469 | s//\1/ |
| 20470 | q |
| 20471 | } |
| 20472 | s/.*/./; q'` |
| 20473 | am_filepart=`$as_basename -- "$am_mf" || |
| 20474 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20475 | X"$am_mf" : 'X\(//\)$' \| \ |
| 20476 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 20477 | printf "%s\n" X/"$am_mf" | |
| 20478 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20479 | s//\1/ |
| 20480 | q |
| 20481 | } |
| 20482 | /^X\/\(\/\/\)$/{ |
| 20483 | s//\1/ |
| 20484 | q |
| 20485 | } |
| 20486 | /^X\/\(\/\).*/{ |
| 20487 | s//\1/ |
| 20488 | q |
| 20489 | } |
| 20490 | s/.*/./; q'` |
| 20491 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 20492 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 20493 | | $MAKE -f - am--depfiles" >&5 |
| 20494 | (cd "$am_dirpart" \ |
| 20495 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 20496 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 20497 | ac_status=$? |
| 20498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20499 | (exit $ac_status); } || am_rc=$? |
| 20500 | done |
| 20501 | if test $am_rc -ne 0; then |
| 20502 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 20503 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 20504 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 20505 | for automatic dependency tracking. If GNU make was not used, consider |
| 20506 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 20507 | necessary). You can also try re-running configure with the |
| 20508 | '--disable-dependency-tracking' option to at least be able to build |
| 20509 | the package (albeit without support for automatic dependency tracking). |
| 20510 | See \`config.log' for more details" "$LINENO" 5; } |
| 20511 | fi |
| 20512 | { am_dirpart=; unset am_dirpart;} |
| 20513 | { am_filepart=; unset am_filepart;} |
| 20514 | { am_mf=; unset am_mf;} |
| 20515 | { am_rc=; unset am_rc;} |
| 20516 | rm -f conftest-deps.mk |
| 20517 | } |
| 20518 | ;; |
| 20519 | "po-directories":C) |
| 20520 | for ac_file in $CONFIG_FILES; do |
| 20521 | # Support "outfile[:infile[:infile...]]" |
| 20522 | case "$ac_file" in |
| 20523 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 20524 | esac |
| 20525 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 20526 | case "$ac_file" in */Makefile.in) |
| 20527 | # Adjust a relative srcdir. |
| 20528 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 20529 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
| 20530 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 20531 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 20532 | # In autoconf-2.50 it is called $srcdir. |
| 20533 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 20534 | case "$ac_given_srcdir" in |
| 20535 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 20536 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 20537 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 20538 | esac |
| 20539 | # Treat a directory as a PO directory if and only if it has a |
| 20540 | # POTFILES.in file. This allows packages to have multiple PO |
| 20541 | # directories under different names or in different locations. |
| 20542 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 20543 | rm -f "$ac_dir/POTFILES" |
| 20544 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 20545 | gt_tab=`printf '\t'` |
| 20546 | 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" |
| 20547 | POMAKEFILEDEPS="POTFILES.in" |
| 20548 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 20549 | # on $ac_dir but don't depend on user-specified configuration |
| 20550 | # parameters. |
| 20551 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 20552 | # The LINGUAS file contains the set of available languages. |
| 20553 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 20554 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 20555 | fi |
| 20556 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 20557 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
| 20558 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 20559 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 20560 | else |
| 20561 | # The set of available languages was given in configure.in. |
| 20562 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
| 20563 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 20564 | fi |
| 20565 | # Compute POFILES |
| 20566 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 20567 | # Compute UPDATEPOFILES |
| 20568 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 20569 | # Compute DUMMYPOFILES |
| 20570 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 20571 | # Compute GMOFILES |
| 20572 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 20573 | case "$ac_given_srcdir" in |
| 20574 | .) srcdirpre= ;; |
| 20575 | *) srcdirpre='$(srcdir)/' ;; |
| 20576 | esac |
| 20577 | POFILES= |
| 20578 | UPDATEPOFILES= |
| 20579 | DUMMYPOFILES= |
| 20580 | GMOFILES= |
| 20581 | for lang in $ALL_LINGUAS; do |
| 20582 | POFILES="$POFILES $srcdirpre$lang.po" |
| 20583 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 20584 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 20585 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 20586 | done |
| 20587 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 20588 | # environment variable. |
| 20589 | INST_LINGUAS= |
| 20590 | if test -n "$ALL_LINGUAS"; then |
| 20591 | for presentlang in $ALL_LINGUAS; do |
| 20592 | useit=no |
| 20593 | if test "%UNSET%" != "$LINGUAS"; then |
| 20594 | desiredlanguages="$LINGUAS" |
| 20595 | else |
| 20596 | desiredlanguages="$ALL_LINGUAS" |
| 20597 | fi |
| 20598 | for desiredlang in $desiredlanguages; do |
| 20599 | # Use the presentlang catalog if desiredlang is |
| 20600 | # a. equal to presentlang, or |
| 20601 | # b. a variant of presentlang (because in this case, |
| 20602 | # presentlang can be used as a fallback for messages |
| 20603 | # which are not translated in the desiredlang catalog). |
| 20604 | case "$desiredlang" in |
| 20605 | "$presentlang"*) useit=yes;; |
| 20606 | esac |
| 20607 | done |
| 20608 | if test $useit = yes; then |
| 20609 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 20610 | fi |
| 20611 | done |
| 20612 | fi |
| 20613 | CATALOGS= |
| 20614 | if test -n "$INST_LINGUAS"; then |
| 20615 | for lang in $INST_LINGUAS; do |
| 20616 | CATALOGS="$CATALOGS $lang.gmo" |
| 20617 | done |
| 20618 | fi |
| 20619 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 20620 | 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" |
| 20621 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 20622 | if test -f "$f"; then |
| 20623 | case "$f" in |
| 20624 | *.orig | *.bak | *~) ;; |
| 20625 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 20626 | esac |
| 20627 | fi |
| 20628 | done |
| 20629 | fi |
| 20630 | ;; |
| 20631 | esac |
| 20632 | done ;; |
| 20633 | |
| 20634 | esac |
| 20635 | done # for ac_tag |
| 20636 | |
| 20637 | |
| 20638 | as_fn_exit 0 |
| 20639 | _ACEOF |
| 20640 | ac_clean_files=$ac_clean_files_save |
| 20641 | |
| 20642 | test $ac_write_fail = 0 || |
| 20643 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 20644 | |
| 20645 | |
| 20646 | # configure is writing to config.log, and then calls config.status. |
| 20647 | # config.status does its own redirection, appending to config.log. |
| 20648 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20649 | # by configure, so config.status won't be able to write to it; its |
| 20650 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20651 | # effectively closing config.log, so it can be properly (re)opened and |
| 20652 | # appended to by config.status. When coming back to configure, we |
| 20653 | # need to make the FD available again. |
| 20654 | if test "$no_create" != yes; then |
| 20655 | ac_cs_success=: |
| 20656 | ac_config_status_args= |
| 20657 | test "$silent" = yes && |
| 20658 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20659 | exec 5>/dev/null |
| 20660 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20661 | exec 5>>config.log |
| 20662 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20663 | # would make configure fail if this is the last instruction. |
| 20664 | $ac_cs_success || as_fn_exit 1 |
| 20665 | fi |
| 20666 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 20667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 20668 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 20669 | fi |
| 20670 | |
| 20671 | |
| 20672 | echo "" |
| 20673 | echo " flatpak-builder $FLATPAK_BUILDER_VERSION" |
| 20674 | echo " =============================" |
| 20675 | echo "" |
| 20676 |