Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for sign 1.0. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 | # |
| 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
| 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
| 30 | esac |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
| 80 | |
| 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
| 90 | as_myself= |
| 91 | case $0 in #(( |
| 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
| 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
| 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 | exit 1 |
| 112 | fi |
| 113 | |
| 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
| 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
| 131 | |
| 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
| 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
| 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
| 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
| 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | |
| 200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 204 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 207 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 208 | if (eval "$as_required") 2>/dev/null; then : |
| 209 | as_have_required=yes |
| 210 | else |
| 211 | as_have_required=no |
| 212 | fi |
| 213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 214 | |
| 215 | else |
| 216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 217 | as_found=false |
| 218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 219 | do |
| 220 | IFS=$as_save_IFS |
| 221 | test -z "$as_dir" && as_dir=. |
| 222 | as_found=: |
| 223 | case $as_dir in #( |
| 224 | /*) |
| 225 | for as_base in sh bash ksh sh5; do |
| 226 | # Try only shells that exist, to save several forks. |
| 227 | as_shell=$as_dir/$as_base |
| 228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 230 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 | break 2 |
| 233 | fi |
| 234 | fi |
| 235 | done;; |
| 236 | esac |
| 237 | as_found=false |
| 238 | done |
| 239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 241 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 242 | fi; } |
| 243 | IFS=$as_save_IFS |
| 244 | |
| 245 | |
| 246 | if test "x$CONFIG_SHELL" != x; then : |
| 247 | export CONFIG_SHELL |
| 248 | # We cannot yet assume a decent shell, so we have to provide a |
| 249 | # neutralization value for shells without unset; and this also |
| 250 | # works around shells that cannot unset nonexistent variables. |
| 251 | # Preserve -v and -x to the replacement shell. |
| 252 | BASH_ENV=/dev/null |
| 253 | ENV=/dev/null |
| 254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 255 | case $- in # (((( |
| 256 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 257 | *v* ) as_opts=-v ;; |
| 258 | *x* ) as_opts=-x ;; |
| 259 | * ) as_opts= ;; |
| 260 | esac |
| 261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 262 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 263 | # out after a failed `exec'. |
| 264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 265 | exit 255 |
| 266 | fi |
| 267 | |
| 268 | if test x$as_have_required = xno; then : |
| 269 | $as_echo "$0: This script requires a shell more modern than all" |
| 270 | $as_echo "$0: the shells that I found on your system." |
| 271 | if test x${ZSH_VERSION+set} = xset ; then |
| 272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 274 | else |
| 275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 276 | $0: including any error possibly output before this |
| 277 | $0: message. Then install a modern shell, or manually run |
| 278 | $0: the script under such a shell if you do have one." |
| 279 | fi |
| 280 | exit 1 |
| 281 | fi |
| 282 | fi |
| 283 | fi |
| 284 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 285 | export SHELL |
| 286 | # Unset more variables known to interfere with behavior of common tools. |
| 287 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 288 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 289 | |
| 290 | ## --------------------- ## |
| 291 | ## M4sh Shell Functions. ## |
| 292 | ## --------------------- ## |
| 293 | # as_fn_unset VAR |
| 294 | # --------------- |
| 295 | # Portably unset VAR. |
| 296 | as_fn_unset () |
| 297 | { |
| 298 | { eval $1=; unset $1;} |
| 299 | } |
| 300 | as_unset=as_fn_unset |
| 301 | |
| 302 | # as_fn_set_status STATUS |
| 303 | # ----------------------- |
| 304 | # Set $? to STATUS, without forking. |
| 305 | as_fn_set_status () |
| 306 | { |
| 307 | return $1 |
| 308 | } # as_fn_set_status |
| 309 | |
| 310 | # as_fn_exit STATUS |
| 311 | # ----------------- |
| 312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 313 | as_fn_exit () |
| 314 | { |
| 315 | set +e |
| 316 | as_fn_set_status $1 |
| 317 | exit $1 |
| 318 | } # as_fn_exit |
| 319 | |
| 320 | # as_fn_mkdir_p |
| 321 | # ------------- |
| 322 | # Create "$as_dir" as a directory, including parents if necessary. |
| 323 | as_fn_mkdir_p () |
| 324 | { |
| 325 | |
| 326 | case $as_dir in #( |
| 327 | -*) as_dir=./$as_dir;; |
| 328 | esac |
| 329 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 330 | as_dirs= |
| 331 | while :; do |
| 332 | case $as_dir in #( |
| 333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 334 | *) as_qdir=$as_dir;; |
| 335 | esac |
| 336 | as_dirs="'$as_qdir' $as_dirs" |
| 337 | as_dir=`$as_dirname -- "$as_dir" || |
| 338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 339 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 340 | X"$as_dir" : 'X\(//\)$' \| \ |
| 341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 342 | $as_echo X"$as_dir" | |
| 343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)[^/].*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\/\)$/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | /^X\(\/\).*/{ |
| 356 | s//\1/ |
| 357 | q |
| 358 | } |
| 359 | s/.*/./; q'` |
| 360 | test -d "$as_dir" && break |
| 361 | done |
| 362 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 364 | |
| 365 | |
| 366 | } # as_fn_mkdir_p |
| 367 | |
| 368 | # as_fn_executable_p FILE |
| 369 | # ----------------------- |
| 370 | # Test if FILE is an executable regular file. |
| 371 | as_fn_executable_p () |
| 372 | { |
| 373 | test -f "$1" && test -x "$1" |
| 374 | } # as_fn_executable_p |
| 375 | # as_fn_append VAR VALUE |
| 376 | # ---------------------- |
| 377 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 378 | # advantage of any shell optimizations that allow amortized linear growth over |
| 379 | # repeated appends, instead of the typical quadratic growth present in naive |
| 380 | # implementations. |
| 381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 382 | eval 'as_fn_append () |
| 383 | { |
| 384 | eval $1+=\$2 |
| 385 | }' |
| 386 | else |
| 387 | as_fn_append () |
| 388 | { |
| 389 | eval $1=\$$1\$2 |
| 390 | } |
| 391 | fi # as_fn_append |
| 392 | |
| 393 | # as_fn_arith ARG... |
| 394 | # ------------------ |
| 395 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 | # must be portable across $(()) and expr. |
| 398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 399 | eval 'as_fn_arith () |
| 400 | { |
| 401 | as_val=$(( $* )) |
| 402 | }' |
| 403 | else |
| 404 | as_fn_arith () |
| 405 | { |
| 406 | as_val=`expr "$@" || test $? -eq 1` |
| 407 | } |
| 408 | fi # as_fn_arith |
| 409 | |
| 410 | |
| 411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 412 | # ---------------------------------------- |
| 413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 415 | # script with STATUS, using 1 if that was 0. |
| 416 | as_fn_error () |
| 417 | { |
| 418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 419 | if test "$4"; then |
| 420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 422 | fi |
| 423 | $as_echo "$as_me: error: $2" >&2 |
| 424 | as_fn_exit $as_status |
| 425 | } # as_fn_error |
| 426 | |
| 427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 429 | as_expr=expr |
| 430 | else |
| 431 | as_expr=false |
| 432 | fi |
| 433 | |
| 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 435 | as_basename=basename |
| 436 | else |
| 437 | as_basename=false |
| 438 | fi |
| 439 | |
| 440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 441 | as_dirname=dirname |
| 442 | else |
| 443 | as_dirname=false |
| 444 | fi |
| 445 | |
| 446 | as_me=`$as_basename -- "$0" || |
| 447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 448 | X"$0" : 'X\(//\)$' \| \ |
| 449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 450 | $as_echo X/"$0" | |
| 451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | /^X\/\(\/\/\)$/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | /^X\/\(\/\).*/{ |
| 460 | s//\1/ |
| 461 | q |
| 462 | } |
| 463 | s/.*/./; q'` |
| 464 | |
| 465 | # Avoid depending upon Character Ranges. |
| 466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 469 | as_cr_digits='0123456789' |
| 470 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 471 | |
| 472 | |
| 473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 478 | sed -n ' |
| 479 | p |
| 480 | /[$]LINENO/= |
| 481 | ' <$as_myself | |
| 482 | sed ' |
| 483 | s/[$]LINENO.*/&-/ |
| 484 | t lineno |
| 485 | b |
| 486 | :lineno |
| 487 | N |
| 488 | :loop |
| 489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 490 | t loop |
| 491 | s/-\n.*// |
| 492 | ' >$as_me.lineno && |
| 493 | chmod +x "$as_me.lineno" || |
| 494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 495 | |
| 496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 497 | # already done that, so ensure we don't try to do so again and fall |
| 498 | # in an infinite loop. This has already happened in practice. |
| 499 | _as_can_reexec=no; export _as_can_reexec |
| 500 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 501 | # (the dirname of $[0] is not the place where we might find the |
| 502 | # original and so on. Autoconf is especially sensitive to this). |
| 503 | . "./$as_me.lineno" |
| 504 | # Exit status is that of the last command. |
| 505 | exit |
| 506 | } |
| 507 | |
| 508 | ECHO_C= ECHO_N= ECHO_T= |
| 509 | case `echo -n x` in #((((( |
| 510 | -n*) |
| 511 | case `echo 'xy\c'` in |
| 512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 513 | xy) ECHO_C='\c';; |
| 514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 515 | ECHO_T=' ';; |
| 516 | esac;; |
| 517 | *) |
| 518 | ECHO_N='-n';; |
| 519 | esac |
| 520 | |
| 521 | rm -f conf$$ conf$$.exe conf$$.file |
| 522 | if test -d conf$$.dir; then |
| 523 | rm -f conf$$.dir/conf$$.file |
| 524 | else |
| 525 | rm -f conf$$.dir |
| 526 | mkdir conf$$.dir 2>/dev/null |
| 527 | fi |
| 528 | if (echo >conf$$.file) 2>/dev/null; then |
| 529 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s='ln -s' |
| 531 | # ... but there are two gotchas: |
| 532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 534 | # In both cases, we have to default to `cp -pR'. |
| 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 536 | as_ln_s='cp -pR' |
| 537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 538 | as_ln_s=ln |
| 539 | else |
| 540 | as_ln_s='cp -pR' |
| 541 | fi |
| 542 | else |
| 543 | as_ln_s='cp -pR' |
| 544 | fi |
| 545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 546 | rmdir conf$$.dir 2>/dev/null |
| 547 | |
| 548 | if mkdir -p . 2>/dev/null; then |
| 549 | as_mkdir_p='mkdir -p "$as_dir"' |
| 550 | else |
| 551 | test -d ./-p && rmdir ./-p |
| 552 | as_mkdir_p=false |
| 553 | fi |
| 554 | |
| 555 | as_test_x='test -x' |
| 556 | as_executable_p=as_fn_executable_p |
| 557 | |
| 558 | # Sed expression to map a string onto a valid CPP name. |
| 559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 560 | |
| 561 | # Sed expression to map a string onto a valid variable name. |
| 562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 563 | |
| 564 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 565 | |
| 566 | |
| 567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 568 | exec 6>&1 |
| 569 | |
| 570 | # Name of the host. |
| 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 572 | # so uname gets run too. |
| 573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 574 | |
| 575 | # |
| 576 | # Initializations. |
| 577 | # |
| 578 | ac_default_prefix=/usr/local |
| 579 | ac_clean_files= |
| 580 | ac_config_libobj_dir=. |
| 581 | LIBOBJS= |
| 582 | cross_compiling=no |
| 583 | subdirs= |
| 584 | MFLAGS= |
| 585 | MAKEFLAGS= |
| 586 | |
| 587 | # Identity of this package. |
| 588 | PACKAGE_NAME='sign' |
| 589 | PACKAGE_TARNAME='sign' |
| 590 | PACKAGE_VERSION='1.0' |
| 591 | PACKAGE_STRING='sign 1.0' |
| 592 | PACKAGE_BUGREPORT='' |
| 593 | PACKAGE_URL='' |
| 594 | |
| 595 | # Factoring default headers for most tests. |
| 596 | ac_includes_default="\ |
| 597 | #include <stdio.h> |
| 598 | #ifdef HAVE_SYS_TYPES_H |
| 599 | # include <sys/types.h> |
| 600 | #endif |
| 601 | #ifdef HAVE_SYS_STAT_H |
| 602 | # include <sys/stat.h> |
| 603 | #endif |
| 604 | #ifdef STDC_HEADERS |
| 605 | # include <stdlib.h> |
| 606 | # include <stddef.h> |
| 607 | #else |
| 608 | # ifdef HAVE_STDLIB_H |
| 609 | # include <stdlib.h> |
| 610 | # endif |
| 611 | #endif |
| 612 | #ifdef HAVE_STRING_H |
| 613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 614 | # include <memory.h> |
| 615 | # endif |
| 616 | # include <string.h> |
| 617 | #endif |
| 618 | #ifdef HAVE_STRINGS_H |
| 619 | # include <strings.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_INTTYPES_H |
| 622 | # include <inttypes.h> |
| 623 | #endif |
| 624 | #ifdef HAVE_STDINT_H |
| 625 | # include <stdint.h> |
| 626 | #endif |
| 627 | #ifdef HAVE_UNISTD_H |
| 628 | # include <unistd.h> |
| 629 | #endif" |
| 630 | |
| 631 | ac_subst_vars='am__EXEEXT_FALSE |
| 632 | am__EXEEXT_TRUE |
| 633 | LTLIBOBJS |
| 634 | LIBOBJS |
| 635 | CPP |
| 636 | OTOOL64 |
| 637 | OTOOL |
| 638 | LIPO |
| 639 | NMEDIT |
| 640 | DSYMUTIL |
| 641 | MANIFEST_TOOL |
| 642 | RANLIB |
| 643 | ac_ct_AR |
| 644 | AR |
| 645 | DLLTOOL |
| 646 | OBJDUMP |
| 647 | LN_S |
| 648 | NM |
| 649 | ac_ct_DUMPBIN |
| 650 | DUMPBIN |
| 651 | LD |
| 652 | FGREP |
| 653 | EGREP |
| 654 | GREP |
| 655 | SED |
| 656 | host_os |
| 657 | host_vendor |
| 658 | host_cpu |
| 659 | host |
| 660 | build_os |
| 661 | build_vendor |
| 662 | build_cpu |
| 663 | build |
| 664 | LIBTOOL |
| 665 | am__fastdepCCAS_FALSE |
| 666 | am__fastdepCCAS_TRUE |
| 667 | CCASDEPMODE |
| 668 | CCASFLAGS |
| 669 | CCAS |
| 670 | am__fastdepCC_FALSE |
| 671 | am__fastdepCC_TRUE |
| 672 | CCDEPMODE |
| 673 | am__nodep |
| 674 | AMDEPBACKSLASH |
| 675 | AMDEP_FALSE |
| 676 | AMDEP_TRUE |
| 677 | am__quote |
| 678 | am__include |
| 679 | DEPDIR |
| 680 | OBJEXT |
| 681 | EXEEXT |
| 682 | ac_ct_CC |
| 683 | CPPFLAGS |
| 684 | LDFLAGS |
| 685 | CFLAGS |
| 686 | CC |
| 687 | AM_BACKSLASH |
| 688 | AM_DEFAULT_VERBOSITY |
| 689 | AM_DEFAULT_V |
| 690 | AM_V |
| 691 | am__untar |
| 692 | am__tar |
| 693 | AMTAR |
| 694 | am__leading_dot |
| 695 | SET_MAKE |
| 696 | AWK |
| 697 | mkdir_p |
| 698 | MKDIR_P |
| 699 | INSTALL_STRIP_PROGRAM |
| 700 | STRIP |
| 701 | install_sh |
| 702 | MAKEINFO |
| 703 | AUTOHEADER |
| 704 | AUTOMAKE |
| 705 | AUTOCONF |
| 706 | ACLOCAL |
| 707 | VERSION |
| 708 | PACKAGE |
| 709 | CYGPATH_W |
| 710 | am__isrc |
| 711 | INSTALL_DATA |
| 712 | INSTALL_SCRIPT |
| 713 | INSTALL_PROGRAM |
| 714 | target_alias |
| 715 | host_alias |
| 716 | build_alias |
| 717 | LIBS |
| 718 | ECHO_T |
| 719 | ECHO_N |
| 720 | ECHO_C |
| 721 | DEFS |
| 722 | mandir |
| 723 | localedir |
| 724 | libdir |
| 725 | psdir |
| 726 | pdfdir |
| 727 | dvidir |
| 728 | htmldir |
| 729 | infodir |
| 730 | docdir |
| 731 | oldincludedir |
| 732 | includedir |
| 733 | localstatedir |
| 734 | sharedstatedir |
| 735 | sysconfdir |
| 736 | datadir |
| 737 | datarootdir |
| 738 | libexecdir |
| 739 | sbindir |
| 740 | bindir |
| 741 | program_transform_name |
| 742 | prefix |
| 743 | exec_prefix |
| 744 | PACKAGE_URL |
| 745 | PACKAGE_BUGREPORT |
| 746 | PACKAGE_STRING |
| 747 | PACKAGE_VERSION |
| 748 | PACKAGE_TARNAME |
| 749 | PACKAGE_NAME |
| 750 | PATH_SEPARATOR |
| 751 | SHELL' |
| 752 | ac_subst_files='' |
| 753 | ac_user_opts=' |
| 754 | enable_option_checking |
| 755 | enable_silent_rules |
| 756 | enable_dependency_tracking |
| 757 | enable_shared |
| 758 | enable_static |
| 759 | with_pic |
| 760 | enable_fast_install |
| 761 | with_gnu_ld |
| 762 | with_sysroot |
| 763 | enable_libtool_lock |
| 764 | ' |
| 765 | ac_precious_vars='build_alias |
| 766 | host_alias |
| 767 | target_alias |
| 768 | CC |
| 769 | CFLAGS |
| 770 | LDFLAGS |
| 771 | LIBS |
| 772 | CPPFLAGS |
| 773 | CCAS |
| 774 | CCASFLAGS |
| 775 | CPP' |
| 776 | |
| 777 | |
| 778 | # Initialize some variables set by options. |
| 779 | ac_init_help= |
| 780 | ac_init_version=false |
| 781 | ac_unrecognized_opts= |
| 782 | ac_unrecognized_sep= |
| 783 | # The variables have the same names as the options, with |
| 784 | # dashes changed to underlines. |
| 785 | cache_file=/dev/null |
| 786 | exec_prefix=NONE |
| 787 | no_create= |
| 788 | no_recursion= |
| 789 | prefix=NONE |
| 790 | program_prefix=NONE |
| 791 | program_suffix=NONE |
| 792 | program_transform_name=s,x,x, |
| 793 | silent= |
| 794 | site= |
| 795 | srcdir= |
| 796 | verbose= |
| 797 | x_includes=NONE |
| 798 | x_libraries=NONE |
| 799 | |
| 800 | # Installation directory options. |
| 801 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 802 | # and all the variables that are supposed to be based on exec_prefix |
| 803 | # by default will actually change. |
| 804 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 805 | # (The list follows the same order as the GNU Coding Standards.) |
| 806 | bindir='${exec_prefix}/bin' |
| 807 | sbindir='${exec_prefix}/sbin' |
| 808 | libexecdir='${exec_prefix}/libexec' |
| 809 | datarootdir='${prefix}/share' |
| 810 | datadir='${datarootdir}' |
| 811 | sysconfdir='${prefix}/etc' |
| 812 | sharedstatedir='${prefix}/com' |
| 813 | localstatedir='${prefix}/var' |
| 814 | includedir='${prefix}/include' |
| 815 | oldincludedir='/usr/include' |
| 816 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 817 | infodir='${datarootdir}/info' |
| 818 | htmldir='${docdir}' |
| 819 | dvidir='${docdir}' |
| 820 | pdfdir='${docdir}' |
| 821 | psdir='${docdir}' |
| 822 | libdir='${exec_prefix}/lib' |
| 823 | localedir='${datarootdir}/locale' |
| 824 | mandir='${datarootdir}/man' |
| 825 | |
| 826 | ac_prev= |
| 827 | ac_dashdash= |
| 828 | for ac_option |
| 829 | do |
| 830 | # If the previous option needs an argument, assign it. |
| 831 | if test -n "$ac_prev"; then |
| 832 | eval $ac_prev=\$ac_option |
| 833 | ac_prev= |
| 834 | continue |
| 835 | fi |
| 836 | |
| 837 | case $ac_option in |
| 838 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 839 | *=) ac_optarg= ;; |
| 840 | *) ac_optarg=yes ;; |
| 841 | esac |
| 842 | |
| 843 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 844 | |
| 845 | case $ac_dashdash$ac_option in |
| 846 | --) |
| 847 | ac_dashdash=yes ;; |
| 848 | |
| 849 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 850 | ac_prev=bindir ;; |
| 851 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 852 | bindir=$ac_optarg ;; |
| 853 | |
| 854 | -build | --build | --buil | --bui | --bu) |
| 855 | ac_prev=build_alias ;; |
| 856 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 857 | build_alias=$ac_optarg ;; |
| 858 | |
| 859 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 860 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 861 | ac_prev=cache_file ;; |
| 862 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 863 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 864 | cache_file=$ac_optarg ;; |
| 865 | |
| 866 | --config-cache | -C) |
| 867 | cache_file=config.cache ;; |
| 868 | |
| 869 | -datadir | --datadir | --datadi | --datad) |
| 870 | ac_prev=datadir ;; |
| 871 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 872 | datadir=$ac_optarg ;; |
| 873 | |
| 874 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 875 | | --dataroo | --dataro | --datar) |
| 876 | ac_prev=datarootdir ;; |
| 877 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 878 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 879 | datarootdir=$ac_optarg ;; |
| 880 | |
| 881 | -disable-* | --disable-*) |
| 882 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 883 | # Reject names that are not valid shell variable names. |
| 884 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 885 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 886 | ac_useropt_orig=$ac_useropt |
| 887 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 888 | case $ac_user_opts in |
| 889 | *" |
| 890 | "enable_$ac_useropt" |
| 891 | "*) ;; |
| 892 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 893 | ac_unrecognized_sep=', ';; |
| 894 | esac |
| 895 | eval enable_$ac_useropt=no ;; |
| 896 | |
| 897 | -docdir | --docdir | --docdi | --doc | --do) |
| 898 | ac_prev=docdir ;; |
| 899 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 900 | docdir=$ac_optarg ;; |
| 901 | |
| 902 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 903 | ac_prev=dvidir ;; |
| 904 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 905 | dvidir=$ac_optarg ;; |
| 906 | |
| 907 | -enable-* | --enable-*) |
| 908 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 909 | # Reject names that are not valid shell variable names. |
| 910 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 911 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 912 | ac_useropt_orig=$ac_useropt |
| 913 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 914 | case $ac_user_opts in |
| 915 | *" |
| 916 | "enable_$ac_useropt" |
| 917 | "*) ;; |
| 918 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 919 | ac_unrecognized_sep=', ';; |
| 920 | esac |
| 921 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 922 | |
| 923 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 924 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 925 | | --exec | --exe | --ex) |
| 926 | ac_prev=exec_prefix ;; |
| 927 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 928 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 929 | | --exec=* | --exe=* | --ex=*) |
| 930 | exec_prefix=$ac_optarg ;; |
| 931 | |
| 932 | -gas | --gas | --ga | --g) |
| 933 | # Obsolete; use --with-gas. |
| 934 | with_gas=yes ;; |
| 935 | |
| 936 | -help | --help | --hel | --he | -h) |
| 937 | ac_init_help=long ;; |
| 938 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 939 | ac_init_help=recursive ;; |
| 940 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 941 | ac_init_help=short ;; |
| 942 | |
| 943 | -host | --host | --hos | --ho) |
| 944 | ac_prev=host_alias ;; |
| 945 | -host=* | --host=* | --hos=* | --ho=*) |
| 946 | host_alias=$ac_optarg ;; |
| 947 | |
| 948 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 949 | ac_prev=htmldir ;; |
| 950 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 951 | | --ht=*) |
| 952 | htmldir=$ac_optarg ;; |
| 953 | |
| 954 | -includedir | --includedir | --includedi | --included | --include \ |
| 955 | | --includ | --inclu | --incl | --inc) |
| 956 | ac_prev=includedir ;; |
| 957 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 958 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 959 | includedir=$ac_optarg ;; |
| 960 | |
| 961 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 962 | ac_prev=infodir ;; |
| 963 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 964 | infodir=$ac_optarg ;; |
| 965 | |
| 966 | -libdir | --libdir | --libdi | --libd) |
| 967 | ac_prev=libdir ;; |
| 968 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 969 | libdir=$ac_optarg ;; |
| 970 | |
| 971 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 972 | | --libexe | --libex | --libe) |
| 973 | ac_prev=libexecdir ;; |
| 974 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 975 | | --libexe=* | --libex=* | --libe=*) |
| 976 | libexecdir=$ac_optarg ;; |
| 977 | |
| 978 | -localedir | --localedir | --localedi | --localed | --locale) |
| 979 | ac_prev=localedir ;; |
| 980 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 981 | localedir=$ac_optarg ;; |
| 982 | |
| 983 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 984 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 985 | ac_prev=localstatedir ;; |
| 986 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 987 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 988 | localstatedir=$ac_optarg ;; |
| 989 | |
| 990 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 991 | ac_prev=mandir ;; |
| 992 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 993 | mandir=$ac_optarg ;; |
| 994 | |
| 995 | -nfp | --nfp | --nf) |
| 996 | # Obsolete; use --without-fp. |
| 997 | with_fp=no ;; |
| 998 | |
| 999 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1000 | | --no-cr | --no-c | -n) |
| 1001 | no_create=yes ;; |
| 1002 | |
| 1003 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1004 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1005 | no_recursion=yes ;; |
| 1006 | |
| 1007 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1008 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1009 | | --oldin | --oldi | --old | --ol | --o) |
| 1010 | ac_prev=oldincludedir ;; |
| 1011 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1012 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1013 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1014 | oldincludedir=$ac_optarg ;; |
| 1015 | |
| 1016 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1017 | ac_prev=prefix ;; |
| 1018 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1019 | prefix=$ac_optarg ;; |
| 1020 | |
| 1021 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1022 | | --program-pre | --program-pr | --program-p) |
| 1023 | ac_prev=program_prefix ;; |
| 1024 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1025 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1026 | program_prefix=$ac_optarg ;; |
| 1027 | |
| 1028 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1029 | | --program-suf | --program-su | --program-s) |
| 1030 | ac_prev=program_suffix ;; |
| 1031 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1032 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1033 | program_suffix=$ac_optarg ;; |
| 1034 | |
| 1035 | -program-transform-name | --program-transform-name \ |
| 1036 | | --program-transform-nam | --program-transform-na \ |
| 1037 | | --program-transform-n | --program-transform- \ |
| 1038 | | --program-transform | --program-transfor \ |
| 1039 | | --program-transfo | --program-transf \ |
| 1040 | | --program-trans | --program-tran \ |
| 1041 | | --progr-tra | --program-tr | --program-t) |
| 1042 | ac_prev=program_transform_name ;; |
| 1043 | -program-transform-name=* | --program-transform-name=* \ |
| 1044 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1045 | | --program-transform-n=* | --program-transform-=* \ |
| 1046 | | --program-transform=* | --program-transfor=* \ |
| 1047 | | --program-transfo=* | --program-transf=* \ |
| 1048 | | --program-trans=* | --program-tran=* \ |
| 1049 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1050 | program_transform_name=$ac_optarg ;; |
| 1051 | |
| 1052 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1053 | ac_prev=pdfdir ;; |
| 1054 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1055 | pdfdir=$ac_optarg ;; |
| 1056 | |
| 1057 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1058 | ac_prev=psdir ;; |
| 1059 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1060 | psdir=$ac_optarg ;; |
| 1061 | |
| 1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1063 | | -silent | --silent | --silen | --sile | --sil) |
| 1064 | silent=yes ;; |
| 1065 | |
| 1066 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1067 | ac_prev=sbindir ;; |
| 1068 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1069 | | --sbi=* | --sb=*) |
| 1070 | sbindir=$ac_optarg ;; |
| 1071 | |
| 1072 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1073 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1074 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1075 | | --sha | --sh) |
| 1076 | ac_prev=sharedstatedir ;; |
| 1077 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1078 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1079 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1080 | | --sha=* | --sh=*) |
| 1081 | sharedstatedir=$ac_optarg ;; |
| 1082 | |
| 1083 | -site | --site | --sit) |
| 1084 | ac_prev=site ;; |
| 1085 | -site=* | --site=* | --sit=*) |
| 1086 | site=$ac_optarg ;; |
| 1087 | |
| 1088 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1089 | ac_prev=srcdir ;; |
| 1090 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1091 | srcdir=$ac_optarg ;; |
| 1092 | |
| 1093 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1094 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1095 | ac_prev=sysconfdir ;; |
| 1096 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1097 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1098 | sysconfdir=$ac_optarg ;; |
| 1099 | |
| 1100 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1101 | ac_prev=target_alias ;; |
| 1102 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1103 | target_alias=$ac_optarg ;; |
| 1104 | |
| 1105 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1106 | verbose=yes ;; |
| 1107 | |
| 1108 | -version | --version | --versio | --versi | --vers | -V) |
| 1109 | ac_init_version=: ;; |
| 1110 | |
| 1111 | -with-* | --with-*) |
| 1112 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1113 | # Reject names that are not valid shell variable names. |
| 1114 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1115 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1116 | ac_useropt_orig=$ac_useropt |
| 1117 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1118 | case $ac_user_opts in |
| 1119 | *" |
| 1120 | "with_$ac_useropt" |
| 1121 | "*) ;; |
| 1122 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1123 | ac_unrecognized_sep=', ';; |
| 1124 | esac |
| 1125 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1126 | |
| 1127 | -without-* | --without-*) |
| 1128 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1129 | # Reject names that are not valid shell variable names. |
| 1130 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1131 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1132 | ac_useropt_orig=$ac_useropt |
| 1133 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1134 | case $ac_user_opts in |
| 1135 | *" |
| 1136 | "with_$ac_useropt" |
| 1137 | "*) ;; |
| 1138 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1139 | ac_unrecognized_sep=', ';; |
| 1140 | esac |
| 1141 | eval with_$ac_useropt=no ;; |
| 1142 | |
| 1143 | --x) |
| 1144 | # Obsolete; use --with-x. |
| 1145 | with_x=yes ;; |
| 1146 | |
| 1147 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1148 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1149 | ac_prev=x_includes ;; |
| 1150 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1151 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1152 | x_includes=$ac_optarg ;; |
| 1153 | |
| 1154 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1155 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1156 | ac_prev=x_libraries ;; |
| 1157 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1158 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1159 | x_libraries=$ac_optarg ;; |
| 1160 | |
| 1161 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1162 | Try \`$0 --help' for more information" |
| 1163 | ;; |
| 1164 | |
| 1165 | *=*) |
| 1166 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1167 | # Reject names that are not valid shell variable names. |
| 1168 | case $ac_envvar in #( |
| 1169 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1170 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1171 | esac |
| 1172 | eval $ac_envvar=\$ac_optarg |
| 1173 | export $ac_envvar ;; |
| 1174 | |
| 1175 | *) |
| 1176 | # FIXME: should be removed in autoconf 3.0. |
| 1177 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1178 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1179 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1180 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1181 | ;; |
| 1182 | |
| 1183 | esac |
| 1184 | done |
| 1185 | |
| 1186 | if test -n "$ac_prev"; then |
| 1187 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1188 | as_fn_error $? "missing argument to $ac_option" |
| 1189 | fi |
| 1190 | |
| 1191 | if test -n "$ac_unrecognized_opts"; then |
| 1192 | case $enable_option_checking in |
| 1193 | no) ;; |
| 1194 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1195 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1196 | esac |
| 1197 | fi |
| 1198 | |
| 1199 | # Check all directory arguments for consistency. |
| 1200 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1201 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1202 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1203 | libdir localedir mandir |
| 1204 | do |
| 1205 | eval ac_val=\$$ac_var |
| 1206 | # Remove trailing slashes. |
| 1207 | case $ac_val in |
| 1208 | */ ) |
| 1209 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1210 | eval $ac_var=\$ac_val;; |
| 1211 | esac |
| 1212 | # Be sure to have absolute directory names. |
| 1213 | case $ac_val in |
| 1214 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1215 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1216 | esac |
| 1217 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1218 | done |
| 1219 | |
| 1220 | # There might be people who depend on the old broken behavior: `$host' |
| 1221 | # used to hold the argument of --host etc. |
| 1222 | # FIXME: To remove some day. |
| 1223 | build=$build_alias |
| 1224 | host=$host_alias |
| 1225 | target=$target_alias |
| 1226 | |
| 1227 | # FIXME: To remove some day. |
| 1228 | if test "x$host_alias" != x; then |
| 1229 | if test "x$build_alias" = x; then |
| 1230 | cross_compiling=maybe |
| 1231 | elif test "x$build_alias" != "x$host_alias"; then |
| 1232 | cross_compiling=yes |
| 1233 | fi |
| 1234 | fi |
| 1235 | |
| 1236 | ac_tool_prefix= |
| 1237 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1238 | |
| 1239 | test "$silent" = yes && exec 6>/dev/null |
| 1240 | |
| 1241 | |
| 1242 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1243 | ac_ls_di=`ls -di .` && |
| 1244 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1245 | as_fn_error $? "working directory cannot be determined" |
| 1246 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1247 | as_fn_error $? "pwd does not report name of working directory" |
| 1248 | |
| 1249 | |
| 1250 | # Find the source files, if location was not specified. |
| 1251 | if test -z "$srcdir"; then |
| 1252 | ac_srcdir_defaulted=yes |
| 1253 | # Try the directory containing this script, then the parent directory. |
| 1254 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1255 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1256 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1257 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1258 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1259 | $as_echo X"$as_myself" | |
| 1260 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1261 | s//\1/ |
| 1262 | q |
| 1263 | } |
| 1264 | /^X\(\/\/\)[^/].*/{ |
| 1265 | s//\1/ |
| 1266 | q |
| 1267 | } |
| 1268 | /^X\(\/\/\)$/{ |
| 1269 | s//\1/ |
| 1270 | q |
| 1271 | } |
| 1272 | /^X\(\/\).*/{ |
| 1273 | s//\1/ |
| 1274 | q |
| 1275 | } |
| 1276 | s/.*/./; q'` |
| 1277 | srcdir=$ac_confdir |
| 1278 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1279 | srcdir=.. |
| 1280 | fi |
| 1281 | else |
| 1282 | ac_srcdir_defaulted=no |
| 1283 | fi |
| 1284 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1285 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1286 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1287 | fi |
| 1288 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1289 | ac_abs_confdir=`( |
| 1290 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1291 | pwd)` |
| 1292 | # When building in place, set srcdir=. |
| 1293 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1294 | srcdir=. |
| 1295 | fi |
| 1296 | # Remove unnecessary trailing slashes from srcdir. |
| 1297 | # Double slashes in file names in object file debugging info |
| 1298 | # mess up M-x gdb in Emacs. |
| 1299 | case $srcdir in |
| 1300 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1301 | esac |
| 1302 | for ac_var in $ac_precious_vars; do |
| 1303 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1304 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1305 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1306 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1307 | done |
| 1308 | |
| 1309 | # |
| 1310 | # Report the --help message. |
| 1311 | # |
| 1312 | if test "$ac_init_help" = "long"; then |
| 1313 | # Omit some internal or obsolete options to make the list less imposing. |
| 1314 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1315 | cat <<_ACEOF |
| 1316 | \`configure' configures sign 1.0 to adapt to many kinds of systems. |
| 1317 | |
| 1318 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1319 | |
| 1320 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1321 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1322 | |
| 1323 | Defaults for the options are specified in brackets. |
| 1324 | |
| 1325 | Configuration: |
| 1326 | -h, --help display this help and exit |
| 1327 | --help=short display options specific to this package |
| 1328 | --help=recursive display the short help of all the included packages |
| 1329 | -V, --version display version information and exit |
| 1330 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1331 | --cache-file=FILE cache test results in FILE [disabled] |
| 1332 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1333 | -n, --no-create do not create output files |
| 1334 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1335 | |
| 1336 | Installation directories: |
| 1337 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1338 | [$ac_default_prefix] |
| 1339 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1340 | [PREFIX] |
| 1341 | |
| 1342 | By default, \`make install' will install all the files in |
| 1343 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1344 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1345 | for instance \`--prefix=\$HOME'. |
| 1346 | |
| 1347 | For better control, use the options below. |
| 1348 | |
| 1349 | Fine tuning of the installation directories: |
| 1350 | --bindir=DIR user executables [EPREFIX/bin] |
| 1351 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1352 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1353 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1354 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1355 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1356 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1357 | --includedir=DIR C header files [PREFIX/include] |
| 1358 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1359 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1360 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1361 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1362 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1363 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1364 | --docdir=DIR documentation root [DATAROOTDIR/doc/sign] |
| 1365 | --htmldir=DIR html documentation [DOCDIR] |
| 1366 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1367 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1368 | --psdir=DIR ps documentation [DOCDIR] |
| 1369 | _ACEOF |
| 1370 | |
| 1371 | cat <<\_ACEOF |
| 1372 | |
| 1373 | Program names: |
| 1374 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1375 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1376 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1377 | |
| 1378 | System types: |
| 1379 | --build=BUILD configure for building on BUILD [guessed] |
| 1380 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1381 | _ACEOF |
| 1382 | fi |
| 1383 | |
| 1384 | if test -n "$ac_init_help"; then |
| 1385 | case $ac_init_help in |
| 1386 | short | recursive ) echo "Configuration of sign 1.0:";; |
| 1387 | esac |
| 1388 | cat <<\_ACEOF |
| 1389 | |
| 1390 | Optional Features: |
| 1391 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1392 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1393 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1394 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1395 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1396 | --enable-dependency-tracking |
| 1397 | do not reject slow dependency extractors |
| 1398 | --disable-dependency-tracking |
| 1399 | speeds up one-time build |
| 1400 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1401 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1402 | --enable-fast-install[=PKGS] |
| 1403 | optimize for fast installation [default=yes] |
| 1404 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1405 | |
| 1406 | Optional Packages: |
| 1407 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1408 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1409 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1410 | both] |
| 1411 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1412 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1413 | (or the compiler's sysroot if not specified). |
| 1414 | |
| 1415 | Some influential environment variables: |
| 1416 | CC C compiler command |
| 1417 | CFLAGS C compiler flags |
| 1418 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1419 | nonstandard directory <lib dir> |
| 1420 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1421 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1422 | you have headers in a nonstandard directory <include dir> |
| 1423 | CCAS assembler compiler command (defaults to CC) |
| 1424 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
| 1425 | CPP C preprocessor |
| 1426 | |
| 1427 | Use these variables to override the choices made by `configure' or to help |
| 1428 | it to find libraries and programs with nonstandard names/locations. |
| 1429 | |
| 1430 | Report bugs to the package provider. |
| 1431 | _ACEOF |
| 1432 | ac_status=$? |
| 1433 | fi |
| 1434 | |
| 1435 | if test "$ac_init_help" = "recursive"; then |
| 1436 | # If there are subdirs, report their specific --help. |
| 1437 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1438 | test -d "$ac_dir" || |
| 1439 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1440 | continue |
| 1441 | ac_builddir=. |
| 1442 | |
| 1443 | case "$ac_dir" in |
| 1444 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1445 | *) |
| 1446 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1447 | # A ".." for each directory in $ac_dir_suffix. |
| 1448 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1449 | case $ac_top_builddir_sub in |
| 1450 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1451 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1452 | esac ;; |
| 1453 | esac |
| 1454 | ac_abs_top_builddir=$ac_pwd |
| 1455 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1456 | # for backward compatibility: |
| 1457 | ac_top_builddir=$ac_top_build_prefix |
| 1458 | |
| 1459 | case $srcdir in |
| 1460 | .) # We are building in place. |
| 1461 | ac_srcdir=. |
| 1462 | ac_top_srcdir=$ac_top_builddir_sub |
| 1463 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1464 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1465 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1466 | ac_top_srcdir=$srcdir |
| 1467 | ac_abs_top_srcdir=$srcdir ;; |
| 1468 | *) # Relative name. |
| 1469 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1470 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1471 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1472 | esac |
| 1473 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1474 | |
| 1475 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1476 | # Check for guested configure. |
| 1477 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1478 | echo && |
| 1479 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1480 | elif test -f "$ac_srcdir/configure"; then |
| 1481 | echo && |
| 1482 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1483 | else |
| 1484 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1485 | fi || ac_status=$? |
| 1486 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1487 | done |
| 1488 | fi |
| 1489 | |
| 1490 | test -n "$ac_init_help" && exit $ac_status |
| 1491 | if $ac_init_version; then |
| 1492 | cat <<\_ACEOF |
| 1493 | sign configure 1.0 |
| 1494 | generated by GNU Autoconf 2.69 |
| 1495 | |
| 1496 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1497 | This configure script is free software; the Free Software Foundation |
| 1498 | gives unlimited permission to copy, distribute and modify it. |
| 1499 | _ACEOF |
| 1500 | exit |
| 1501 | fi |
| 1502 | |
| 1503 | ## ------------------------ ## |
| 1504 | ## Autoconf initialization. ## |
| 1505 | ## ------------------------ ## |
| 1506 | |
| 1507 | # ac_fn_c_try_compile LINENO |
| 1508 | # -------------------------- |
| 1509 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1510 | ac_fn_c_try_compile () |
| 1511 | { |
| 1512 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1513 | rm -f conftest.$ac_objext |
| 1514 | if { { ac_try="$ac_compile" |
| 1515 | case "(($ac_try" in |
| 1516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1517 | *) ac_try_echo=$ac_try;; |
| 1518 | esac |
| 1519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1520 | $as_echo "$ac_try_echo"; } >&5 |
| 1521 | (eval "$ac_compile") 2>conftest.err |
| 1522 | ac_status=$? |
| 1523 | if test -s conftest.err; then |
| 1524 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1525 | cat conftest.er1 >&5 |
| 1526 | mv -f conftest.er1 conftest.err |
| 1527 | fi |
| 1528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1529 | test $ac_status = 0; } && { |
| 1530 | test -z "$ac_c_werror_flag" || |
| 1531 | test ! -s conftest.err |
| 1532 | } && test -s conftest.$ac_objext; then : |
| 1533 | ac_retval=0 |
| 1534 | else |
| 1535 | $as_echo "$as_me: failed program was:" >&5 |
| 1536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1537 | |
| 1538 | ac_retval=1 |
| 1539 | fi |
| 1540 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1541 | as_fn_set_status $ac_retval |
| 1542 | |
| 1543 | } # ac_fn_c_try_compile |
| 1544 | |
| 1545 | # ac_fn_c_try_link LINENO |
| 1546 | # ----------------------- |
| 1547 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1548 | ac_fn_c_try_link () |
| 1549 | { |
| 1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1551 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1552 | if { { ac_try="$ac_link" |
| 1553 | case "(($ac_try" in |
| 1554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1555 | *) ac_try_echo=$ac_try;; |
| 1556 | esac |
| 1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1558 | $as_echo "$ac_try_echo"; } >&5 |
| 1559 | (eval "$ac_link") 2>conftest.err |
| 1560 | ac_status=$? |
| 1561 | if test -s conftest.err; then |
| 1562 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1563 | cat conftest.er1 >&5 |
| 1564 | mv -f conftest.er1 conftest.err |
| 1565 | fi |
| 1566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1567 | test $ac_status = 0; } && { |
| 1568 | test -z "$ac_c_werror_flag" || |
| 1569 | test ! -s conftest.err |
| 1570 | } && test -s conftest$ac_exeext && { |
| 1571 | test "$cross_compiling" = yes || |
| 1572 | test -x conftest$ac_exeext |
| 1573 | }; then : |
| 1574 | ac_retval=0 |
| 1575 | else |
| 1576 | $as_echo "$as_me: failed program was:" >&5 |
| 1577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1578 | |
| 1579 | ac_retval=1 |
| 1580 | fi |
| 1581 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1582 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1583 | # interfere with the next link command; also delete a directory that is |
| 1584 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1585 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1586 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1587 | as_fn_set_status $ac_retval |
| 1588 | |
| 1589 | } # ac_fn_c_try_link |
| 1590 | |
| 1591 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1592 | # ------------------------------------------------------- |
| 1593 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1594 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1595 | ac_fn_c_check_header_compile () |
| 1596 | { |
| 1597 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1599 | $as_echo_n "checking for $2... " >&6; } |
| 1600 | if eval \${$3+:} false; then : |
| 1601 | $as_echo_n "(cached) " >&6 |
| 1602 | else |
| 1603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1604 | /* end confdefs.h. */ |
| 1605 | $4 |
| 1606 | #include <$2> |
| 1607 | _ACEOF |
| 1608 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1609 | eval "$3=yes" |
| 1610 | else |
| 1611 | eval "$3=no" |
| 1612 | fi |
| 1613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1614 | fi |
| 1615 | eval ac_res=\$$3 |
| 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1617 | $as_echo "$ac_res" >&6; } |
| 1618 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1619 | |
| 1620 | } # ac_fn_c_check_header_compile |
| 1621 | |
| 1622 | # ac_fn_c_try_cpp LINENO |
| 1623 | # ---------------------- |
| 1624 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1625 | ac_fn_c_try_cpp () |
| 1626 | { |
| 1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1628 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1629 | case "(($ac_try" in |
| 1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1631 | *) ac_try_echo=$ac_try;; |
| 1632 | esac |
| 1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1634 | $as_echo "$ac_try_echo"; } >&5 |
| 1635 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1636 | ac_status=$? |
| 1637 | if test -s conftest.err; then |
| 1638 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1639 | cat conftest.er1 >&5 |
| 1640 | mv -f conftest.er1 conftest.err |
| 1641 | fi |
| 1642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1643 | test $ac_status = 0; } > conftest.i && { |
| 1644 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1645 | test ! -s conftest.err |
| 1646 | }; then : |
| 1647 | ac_retval=0 |
| 1648 | else |
| 1649 | $as_echo "$as_me: failed program was:" >&5 |
| 1650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1651 | |
| 1652 | ac_retval=1 |
| 1653 | fi |
| 1654 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1655 | as_fn_set_status $ac_retval |
| 1656 | |
| 1657 | } # ac_fn_c_try_cpp |
| 1658 | |
| 1659 | # ac_fn_c_try_run LINENO |
| 1660 | # ---------------------- |
| 1661 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1662 | # that executables *can* be run. |
| 1663 | ac_fn_c_try_run () |
| 1664 | { |
| 1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1666 | if { { ac_try="$ac_link" |
| 1667 | case "(($ac_try" in |
| 1668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1669 | *) ac_try_echo=$ac_try;; |
| 1670 | esac |
| 1671 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1672 | $as_echo "$ac_try_echo"; } >&5 |
| 1673 | (eval "$ac_link") 2>&5 |
| 1674 | ac_status=$? |
| 1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1676 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1677 | { { case "(($ac_try" in |
| 1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1679 | *) ac_try_echo=$ac_try;; |
| 1680 | esac |
| 1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1682 | $as_echo "$ac_try_echo"; } >&5 |
| 1683 | (eval "$ac_try") 2>&5 |
| 1684 | ac_status=$? |
| 1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1686 | test $ac_status = 0; }; }; then : |
| 1687 | ac_retval=0 |
| 1688 | else |
| 1689 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1690 | $as_echo "$as_me: failed program was:" >&5 |
| 1691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1692 | |
| 1693 | ac_retval=$ac_status |
| 1694 | fi |
| 1695 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1697 | as_fn_set_status $ac_retval |
| 1698 | |
| 1699 | } # ac_fn_c_try_run |
| 1700 | |
| 1701 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1702 | # ---------------------------------- |
| 1703 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1704 | ac_fn_c_check_func () |
| 1705 | { |
| 1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1708 | $as_echo_n "checking for $2... " >&6; } |
| 1709 | if eval \${$3+:} false; then : |
| 1710 | $as_echo_n "(cached) " >&6 |
| 1711 | else |
| 1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1713 | /* end confdefs.h. */ |
| 1714 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1716 | #define $2 innocuous_$2 |
| 1717 | |
| 1718 | /* System header to define __stub macros and hopefully few prototypes, |
| 1719 | which can conflict with char $2 (); below. |
| 1720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1721 | <limits.h> exists even on freestanding compilers. */ |
| 1722 | |
| 1723 | #ifdef __STDC__ |
| 1724 | # include <limits.h> |
| 1725 | #else |
| 1726 | # include <assert.h> |
| 1727 | #endif |
| 1728 | |
| 1729 | #undef $2 |
| 1730 | |
| 1731 | /* Override any GCC internal prototype to avoid an error. |
| 1732 | Use char because int might match the return type of a GCC |
| 1733 | builtin and then its argument prototype would still apply. */ |
| 1734 | #ifdef __cplusplus |
| 1735 | extern "C" |
| 1736 | #endif |
| 1737 | char $2 (); |
| 1738 | /* The GNU C library defines this for functions which it implements |
| 1739 | to always fail with ENOSYS. Some functions are actually named |
| 1740 | something starting with __ and the normal name is an alias. */ |
| 1741 | #if defined __stub_$2 || defined __stub___$2 |
| 1742 | choke me |
| 1743 | #endif |
| 1744 | |
| 1745 | int |
| 1746 | main () |
| 1747 | { |
| 1748 | return $2 (); |
| 1749 | ; |
| 1750 | return 0; |
| 1751 | } |
| 1752 | _ACEOF |
| 1753 | if ac_fn_c_try_link "$LINENO"; then : |
| 1754 | eval "$3=yes" |
| 1755 | else |
| 1756 | eval "$3=no" |
| 1757 | fi |
| 1758 | rm -f core conftest.err conftest.$ac_objext \ |
| 1759 | conftest$ac_exeext conftest.$ac_ext |
| 1760 | fi |
| 1761 | eval ac_res=\$$3 |
| 1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1763 | $as_echo "$ac_res" >&6; } |
| 1764 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1765 | |
| 1766 | } # ac_fn_c_check_func |
| 1767 | cat >config.log <<_ACEOF |
| 1768 | This file contains any messages produced by compilers while |
| 1769 | running configure, to aid debugging if configure makes a mistake. |
| 1770 | |
| 1771 | It was created by sign $as_me 1.0, which was |
| 1772 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1773 | |
| 1774 | $ $0 $@ |
| 1775 | |
| 1776 | _ACEOF |
| 1777 | exec 5>>config.log |
| 1778 | { |
| 1779 | cat <<_ASUNAME |
| 1780 | ## --------- ## |
| 1781 | ## Platform. ## |
| 1782 | ## --------- ## |
| 1783 | |
| 1784 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1785 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1786 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1787 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1788 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1789 | |
| 1790 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1791 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1792 | |
| 1793 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1794 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1795 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1796 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1797 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1798 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1799 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1800 | |
| 1801 | _ASUNAME |
| 1802 | |
| 1803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1804 | for as_dir in $PATH |
| 1805 | do |
| 1806 | IFS=$as_save_IFS |
| 1807 | test -z "$as_dir" && as_dir=. |
| 1808 | $as_echo "PATH: $as_dir" |
| 1809 | done |
| 1810 | IFS=$as_save_IFS |
| 1811 | |
| 1812 | } >&5 |
| 1813 | |
| 1814 | cat >&5 <<_ACEOF |
| 1815 | |
| 1816 | |
| 1817 | ## ----------- ## |
| 1818 | ## Core tests. ## |
| 1819 | ## ----------- ## |
| 1820 | |
| 1821 | _ACEOF |
| 1822 | |
| 1823 | |
| 1824 | # Keep a trace of the command line. |
| 1825 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1826 | # Strip out --silent because we don't want to record it for future runs. |
| 1827 | # Also quote any args containing shell meta-characters. |
| 1828 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1829 | ac_configure_args= |
| 1830 | ac_configure_args0= |
| 1831 | ac_configure_args1= |
| 1832 | ac_must_keep_next=false |
| 1833 | for ac_pass in 1 2 |
| 1834 | do |
| 1835 | for ac_arg |
| 1836 | do |
| 1837 | case $ac_arg in |
| 1838 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1839 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1840 | | -silent | --silent | --silen | --sile | --sil) |
| 1841 | continue ;; |
| 1842 | *\'*) |
| 1843 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1844 | esac |
| 1845 | case $ac_pass in |
| 1846 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1847 | 2) |
| 1848 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1849 | if test $ac_must_keep_next = true; then |
| 1850 | ac_must_keep_next=false # Got value, back to normal. |
| 1851 | else |
| 1852 | case $ac_arg in |
| 1853 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1854 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1855 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1856 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1857 | case "$ac_configure_args0 " in |
| 1858 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1859 | esac |
| 1860 | ;; |
| 1861 | -* ) ac_must_keep_next=true ;; |
| 1862 | esac |
| 1863 | fi |
| 1864 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1865 | ;; |
| 1866 | esac |
| 1867 | done |
| 1868 | done |
| 1869 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1870 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1871 | |
| 1872 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1873 | # config.log. We remove comments because anyway the quotes in there |
| 1874 | # would cause problems or look ugly. |
| 1875 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1876 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1877 | trap 'exit_status=$? |
| 1878 | # Save into config.log some information that might help in debugging. |
| 1879 | { |
| 1880 | echo |
| 1881 | |
| 1882 | $as_echo "## ---------------- ## |
| 1883 | ## Cache variables. ## |
| 1884 | ## ---------------- ##" |
| 1885 | echo |
| 1886 | # The following way of writing the cache mishandles newlines in values, |
| 1887 | ( |
| 1888 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1889 | eval ac_val=\$$ac_var |
| 1890 | case $ac_val in #( |
| 1891 | *${as_nl}*) |
| 1892 | case $ac_var in #( |
| 1893 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1894 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1895 | esac |
| 1896 | case $ac_var in #( |
| 1897 | _ | IFS | as_nl) ;; #( |
| 1898 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1899 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1900 | esac ;; |
| 1901 | esac |
| 1902 | done |
| 1903 | (set) 2>&1 | |
| 1904 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1905 | *${as_nl}ac_space=\ *) |
| 1906 | sed -n \ |
| 1907 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1908 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1909 | ;; #( |
| 1910 | *) |
| 1911 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1912 | ;; |
| 1913 | esac | |
| 1914 | sort |
| 1915 | ) |
| 1916 | echo |
| 1917 | |
| 1918 | $as_echo "## ----------------- ## |
| 1919 | ## Output variables. ## |
| 1920 | ## ----------------- ##" |
| 1921 | echo |
| 1922 | for ac_var in $ac_subst_vars |
| 1923 | do |
| 1924 | eval ac_val=\$$ac_var |
| 1925 | case $ac_val in |
| 1926 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1927 | esac |
| 1928 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1929 | done | sort |
| 1930 | echo |
| 1931 | |
| 1932 | if test -n "$ac_subst_files"; then |
| 1933 | $as_echo "## ------------------- ## |
| 1934 | ## File substitutions. ## |
| 1935 | ## ------------------- ##" |
| 1936 | echo |
| 1937 | for ac_var in $ac_subst_files |
| 1938 | do |
| 1939 | eval ac_val=\$$ac_var |
| 1940 | case $ac_val in |
| 1941 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1942 | esac |
| 1943 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1944 | done | sort |
| 1945 | echo |
| 1946 | fi |
| 1947 | |
| 1948 | if test -s confdefs.h; then |
| 1949 | $as_echo "## ----------- ## |
| 1950 | ## confdefs.h. ## |
| 1951 | ## ----------- ##" |
| 1952 | echo |
| 1953 | cat confdefs.h |
| 1954 | echo |
| 1955 | fi |
| 1956 | test "$ac_signal" != 0 && |
| 1957 | $as_echo "$as_me: caught signal $ac_signal" |
| 1958 | $as_echo "$as_me: exit $exit_status" |
| 1959 | } >&5 |
| 1960 | rm -f core *.core core.conftest.* && |
| 1961 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1962 | exit $exit_status |
| 1963 | ' 0 |
| 1964 | for ac_signal in 1 2 13 15; do |
| 1965 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1966 | done |
| 1967 | ac_signal=0 |
| 1968 | |
| 1969 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1970 | rm -f -r conftest* confdefs.h |
| 1971 | |
| 1972 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1973 | |
| 1974 | # Predefined preprocessor variables. |
| 1975 | |
| 1976 | cat >>confdefs.h <<_ACEOF |
| 1977 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1978 | _ACEOF |
| 1979 | |
| 1980 | cat >>confdefs.h <<_ACEOF |
| 1981 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1982 | _ACEOF |
| 1983 | |
| 1984 | cat >>confdefs.h <<_ACEOF |
| 1985 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1986 | _ACEOF |
| 1987 | |
| 1988 | cat >>confdefs.h <<_ACEOF |
| 1989 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1990 | _ACEOF |
| 1991 | |
| 1992 | cat >>confdefs.h <<_ACEOF |
| 1993 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1994 | _ACEOF |
| 1995 | |
| 1996 | cat >>confdefs.h <<_ACEOF |
| 1997 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1998 | _ACEOF |
| 1999 | |
| 2000 | |
| 2001 | # Let the site file select an alternate cache file if it wants to. |
| 2002 | # Prefer an explicitly selected file to automatically selected ones. |
| 2003 | ac_site_file1=NONE |
| 2004 | ac_site_file2=NONE |
| 2005 | if test -n "$CONFIG_SITE"; then |
| 2006 | # We do not want a PATH search for config.site. |
| 2007 | case $CONFIG_SITE in #(( |
| 2008 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2009 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2010 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2011 | esac |
| 2012 | elif test "x$prefix" != xNONE; then |
| 2013 | ac_site_file1=$prefix/share/config.site |
| 2014 | ac_site_file2=$prefix/etc/config.site |
| 2015 | else |
| 2016 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2017 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2018 | fi |
| 2019 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2020 | do |
| 2021 | test "x$ac_site_file" = xNONE && continue |
| 2022 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2024 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2025 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2026 | . "$ac_site_file" \ |
| 2027 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2028 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2029 | as_fn_error $? "failed to load site script $ac_site_file |
| 2030 | See \`config.log' for more details" "$LINENO" 5; } |
| 2031 | fi |
| 2032 | done |
| 2033 | |
| 2034 | if test -r "$cache_file"; then |
| 2035 | # Some versions of bash will fail to source /dev/null (special files |
| 2036 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2037 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2039 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2040 | case $cache_file in |
| 2041 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2042 | *) . "./$cache_file";; |
| 2043 | esac |
| 2044 | fi |
| 2045 | else |
| 2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2047 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2048 | >$cache_file |
| 2049 | fi |
| 2050 | |
| 2051 | # Check that the precious variables saved in the cache have kept the same |
| 2052 | # value. |
| 2053 | ac_cache_corrupted=false |
| 2054 | for ac_var in $ac_precious_vars; do |
| 2055 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2056 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2057 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2058 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2059 | case $ac_old_set,$ac_new_set in |
| 2060 | set,) |
| 2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2062 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2063 | ac_cache_corrupted=: ;; |
| 2064 | ,set) |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2066 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2067 | ac_cache_corrupted=: ;; |
| 2068 | ,);; |
| 2069 | *) |
| 2070 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2071 | # differences in whitespace do not lead to failure. |
| 2072 | ac_old_val_w=`echo x $ac_old_val` |
| 2073 | ac_new_val_w=`echo x $ac_new_val` |
| 2074 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2076 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2077 | ac_cache_corrupted=: |
| 2078 | else |
| 2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2080 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2081 | eval $ac_var=\$ac_old_val |
| 2082 | fi |
| 2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2084 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2086 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2087 | fi;; |
| 2088 | esac |
| 2089 | # Pass precious variables to config.status. |
| 2090 | if test "$ac_new_set" = set; then |
| 2091 | case $ac_new_val in |
| 2092 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2093 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2094 | esac |
| 2095 | case " $ac_configure_args " in |
| 2096 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2097 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2098 | esac |
| 2099 | fi |
| 2100 | done |
| 2101 | if $ac_cache_corrupted; then |
| 2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2105 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2106 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2107 | fi |
| 2108 | ## -------------------- ## |
| 2109 | ## Main body of script. ## |
| 2110 | ## -------------------- ## |
| 2111 | |
| 2112 | ac_ext=c |
| 2113 | ac_cpp='$CPP $CPPFLAGS' |
| 2114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2117 | |
| 2118 | |
| 2119 | am__api_version='1.14' |
| 2120 | |
| 2121 | ac_aux_dir= |
| 2122 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2123 | if test -f "$ac_dir/install-sh"; then |
| 2124 | ac_aux_dir=$ac_dir |
| 2125 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2126 | break |
| 2127 | elif test -f "$ac_dir/install.sh"; then |
| 2128 | ac_aux_dir=$ac_dir |
| 2129 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2130 | break |
| 2131 | elif test -f "$ac_dir/shtool"; then |
| 2132 | ac_aux_dir=$ac_dir |
| 2133 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2134 | break |
| 2135 | fi |
| 2136 | done |
| 2137 | if test -z "$ac_aux_dir"; then |
| 2138 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2139 | fi |
| 2140 | |
| 2141 | # These three variables are undocumented and unsupported, |
| 2142 | # and are intended to be withdrawn in a future Autoconf release. |
| 2143 | # They can cause serious problems if a builder's source tree is in a directory |
| 2144 | # whose full name contains unusual characters. |
| 2145 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2146 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2147 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2148 | |
| 2149 | |
| 2150 | # Find a good install program. We prefer a C program (faster), |
| 2151 | # so one script is as good as another. But avoid the broken or |
| 2152 | # incompatible versions: |
| 2153 | # SysV /etc/install, /usr/sbin/install |
| 2154 | # SunOS /usr/etc/install |
| 2155 | # IRIX /sbin/install |
| 2156 | # AIX /bin/install |
| 2157 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2158 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2159 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2160 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2161 | # OS/2's system install, which has a completely different semantic |
| 2162 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2163 | # Reject install programs that cannot install multiple files. |
| 2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2165 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2166 | if test -z "$INSTALL"; then |
| 2167 | if ${ac_cv_path_install+:} false; then : |
| 2168 | $as_echo_n "(cached) " >&6 |
| 2169 | else |
| 2170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2171 | for as_dir in $PATH |
| 2172 | do |
| 2173 | IFS=$as_save_IFS |
| 2174 | test -z "$as_dir" && as_dir=. |
| 2175 | # Account for people who put trailing slashes in PATH elements. |
| 2176 | case $as_dir/ in #(( |
| 2177 | ./ | .// | /[cC]/* | \ |
| 2178 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2179 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2180 | /usr/ucb/* ) ;; |
| 2181 | *) |
| 2182 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2183 | # Don't use installbsd from OSF since it installs stuff as root |
| 2184 | # by default. |
| 2185 | for ac_prog in ginstall scoinst install; do |
| 2186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2187 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2188 | if test $ac_prog = install && |
| 2189 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2190 | # AIX install. It has an incompatible calling convention. |
| 2191 | : |
| 2192 | elif test $ac_prog = install && |
| 2193 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2194 | # program-specific install script used by HP pwplus--don't use. |
| 2195 | : |
| 2196 | else |
| 2197 | rm -rf conftest.one conftest.two conftest.dir |
| 2198 | echo one > conftest.one |
| 2199 | echo two > conftest.two |
| 2200 | mkdir conftest.dir |
| 2201 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2202 | test -s conftest.one && test -s conftest.two && |
| 2203 | test -s conftest.dir/conftest.one && |
| 2204 | test -s conftest.dir/conftest.two |
| 2205 | then |
| 2206 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2207 | break 3 |
| 2208 | fi |
| 2209 | fi |
| 2210 | fi |
| 2211 | done |
| 2212 | done |
| 2213 | ;; |
| 2214 | esac |
| 2215 | |
| 2216 | done |
| 2217 | IFS=$as_save_IFS |
| 2218 | |
| 2219 | rm -rf conftest.one conftest.two conftest.dir |
| 2220 | |
| 2221 | fi |
| 2222 | if test "${ac_cv_path_install+set}" = set; then |
| 2223 | INSTALL=$ac_cv_path_install |
| 2224 | else |
| 2225 | # As a last resort, use the slow shell script. Don't cache a |
| 2226 | # value for INSTALL within a source directory, because that will |
| 2227 | # break other packages using the cache if that directory is |
| 2228 | # removed, or if the value is a relative name. |
| 2229 | INSTALL=$ac_install_sh |
| 2230 | fi |
| 2231 | fi |
| 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2233 | $as_echo "$INSTALL" >&6; } |
| 2234 | |
| 2235 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2236 | # It thinks the first close brace ends the variable substitution. |
| 2237 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2238 | |
| 2239 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2240 | |
| 2241 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2242 | |
| 2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2244 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2245 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2246 | # name. Accept space and tab only in the latter. |
| 2247 | am_lf=' |
| 2248 | ' |
| 2249 | case `pwd` in |
| 2250 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2251 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2252 | esac |
| 2253 | case $srcdir in |
| 2254 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2255 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2256 | esac |
| 2257 | |
| 2258 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 2259 | # arguments. Must try -L first in case configure is actually a |
| 2260 | # symlink; some systems play weird games with the mod time of symlinks |
| 2261 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2262 | # directory). |
| 2263 | if ( |
| 2264 | am_has_slept=no |
| 2265 | for am_try in 1 2; do |
| 2266 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2267 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2268 | if test "$*" = "X"; then |
| 2269 | # -L didn't work. |
| 2270 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2271 | fi |
| 2272 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2273 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2274 | |
| 2275 | # If neither matched, then we have a broken ls. This can happen |
| 2276 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2277 | # broken ls alias from the environment. This has actually |
| 2278 | # happened. Such a system could not be considered "sane". |
| 2279 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2280 | alias in your environment" "$LINENO" 5 |
| 2281 | fi |
| 2282 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2283 | break |
| 2284 | fi |
| 2285 | # Just in case. |
| 2286 | sleep 1 |
| 2287 | am_has_slept=yes |
| 2288 | done |
| 2289 | test "$2" = conftest.file |
| 2290 | ) |
| 2291 | then |
| 2292 | # Ok. |
| 2293 | : |
| 2294 | else |
| 2295 | as_fn_error $? "newly created file is older than distributed files! |
| 2296 | Check your system clock" "$LINENO" 5 |
| 2297 | fi |
| 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2299 | $as_echo "yes" >&6; } |
| 2300 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2301 | # generated files are strictly newer. |
| 2302 | am_sleep_pid= |
| 2303 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2304 | ( sleep 1 ) & |
| 2305 | am_sleep_pid=$! |
| 2306 | fi |
| 2307 | |
| 2308 | rm -f conftest.file |
| 2309 | |
| 2310 | test "$program_prefix" != NONE && |
| 2311 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2312 | # Use a double $ so make ignores it. |
| 2313 | test "$program_suffix" != NONE && |
| 2314 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2315 | # Double any \ or $. |
| 2316 | # By default was `s,x,x', remove it if useless. |
| 2317 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2318 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2319 | |
| 2320 | # expand $ac_aux_dir to an absolute path |
| 2321 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2322 | |
| 2323 | if test x"${MISSING+set}" != xset; then |
| 2324 | case $am_aux_dir in |
| 2325 | *\ * | *\ *) |
| 2326 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2327 | *) |
| 2328 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2329 | esac |
| 2330 | fi |
| 2331 | # Use eval to expand $SHELL |
| 2332 | if eval "$MISSING --is-lightweight"; then |
| 2333 | am_missing_run="$MISSING " |
| 2334 | else |
| 2335 | am_missing_run= |
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2337 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2338 | fi |
| 2339 | |
| 2340 | if test x"${install_sh}" != xset; then |
| 2341 | case $am_aux_dir in |
| 2342 | *\ * | *\ *) |
| 2343 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2344 | *) |
| 2345 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2346 | esac |
| 2347 | fi |
| 2348 | |
| 2349 | # Installed binaries are usually stripped using 'strip' when the user |
| 2350 | # run "make install-strip". However 'strip' might not be the right |
| 2351 | # tool to use in cross-compilation environments, therefore Automake |
| 2352 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2353 | if test "$cross_compiling" != no; then |
| 2354 | if test -n "$ac_tool_prefix"; then |
| 2355 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2356 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2358 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2359 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2360 | $as_echo_n "(cached) " >&6 |
| 2361 | else |
| 2362 | if test -n "$STRIP"; then |
| 2363 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2364 | else |
| 2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2366 | for as_dir in $PATH |
| 2367 | do |
| 2368 | IFS=$as_save_IFS |
| 2369 | test -z "$as_dir" && as_dir=. |
| 2370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2372 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2374 | break 2 |
| 2375 | fi |
| 2376 | done |
| 2377 | done |
| 2378 | IFS=$as_save_IFS |
| 2379 | |
| 2380 | fi |
| 2381 | fi |
| 2382 | STRIP=$ac_cv_prog_STRIP |
| 2383 | if test -n "$STRIP"; then |
| 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2385 | $as_echo "$STRIP" >&6; } |
| 2386 | else |
| 2387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2388 | $as_echo "no" >&6; } |
| 2389 | fi |
| 2390 | |
| 2391 | |
| 2392 | fi |
| 2393 | if test -z "$ac_cv_prog_STRIP"; then |
| 2394 | ac_ct_STRIP=$STRIP |
| 2395 | # Extract the first word of "strip", so it can be a program name with args. |
| 2396 | set dummy strip; ac_word=$2 |
| 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2398 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2399 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2400 | $as_echo_n "(cached) " >&6 |
| 2401 | else |
| 2402 | if test -n "$ac_ct_STRIP"; then |
| 2403 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2404 | else |
| 2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2406 | for as_dir in $PATH |
| 2407 | do |
| 2408 | IFS=$as_save_IFS |
| 2409 | test -z "$as_dir" && as_dir=. |
| 2410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2412 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2414 | break 2 |
| 2415 | fi |
| 2416 | done |
| 2417 | done |
| 2418 | IFS=$as_save_IFS |
| 2419 | |
| 2420 | fi |
| 2421 | fi |
| 2422 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2423 | if test -n "$ac_ct_STRIP"; then |
| 2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2425 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2426 | else |
| 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2428 | $as_echo "no" >&6; } |
| 2429 | fi |
| 2430 | |
| 2431 | if test "x$ac_ct_STRIP" = x; then |
| 2432 | STRIP=":" |
| 2433 | else |
| 2434 | case $cross_compiling:$ac_tool_warned in |
| 2435 | yes:) |
| 2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2437 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2438 | ac_tool_warned=yes ;; |
| 2439 | esac |
| 2440 | STRIP=$ac_ct_STRIP |
| 2441 | fi |
| 2442 | else |
| 2443 | STRIP="$ac_cv_prog_STRIP" |
| 2444 | fi |
| 2445 | |
| 2446 | fi |
| 2447 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2448 | |
| 2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2450 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2451 | if test -z "$MKDIR_P"; then |
| 2452 | if ${ac_cv_path_mkdir+:} false; then : |
| 2453 | $as_echo_n "(cached) " >&6 |
| 2454 | else |
| 2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2456 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2457 | do |
| 2458 | IFS=$as_save_IFS |
| 2459 | test -z "$as_dir" && as_dir=. |
| 2460 | for ac_prog in mkdir gmkdir; do |
| 2461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2462 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2463 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2464 | 'mkdir (GNU coreutils) '* | \ |
| 2465 | 'mkdir (coreutils) '* | \ |
| 2466 | 'mkdir (fileutils) '4.1*) |
| 2467 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2468 | break 3;; |
| 2469 | esac |
| 2470 | done |
| 2471 | done |
| 2472 | done |
| 2473 | IFS=$as_save_IFS |
| 2474 | |
| 2475 | fi |
| 2476 | |
| 2477 | test -d ./--version && rmdir ./--version |
| 2478 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2479 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2480 | else |
| 2481 | # As a last resort, use the slow shell script. Don't cache a |
| 2482 | # value for MKDIR_P within a source directory, because that will |
| 2483 | # break other packages using the cache if that directory is |
| 2484 | # removed, or if the value is a relative name. |
| 2485 | MKDIR_P="$ac_install_sh -d" |
| 2486 | fi |
| 2487 | fi |
| 2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2489 | $as_echo "$MKDIR_P" >&6; } |
| 2490 | |
| 2491 | for ac_prog in gawk mawk nawk awk |
| 2492 | do |
| 2493 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2494 | set dummy $ac_prog; ac_word=$2 |
| 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2496 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2497 | if ${ac_cv_prog_AWK+:} false; then : |
| 2498 | $as_echo_n "(cached) " >&6 |
| 2499 | else |
| 2500 | if test -n "$AWK"; then |
| 2501 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2502 | else |
| 2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2504 | for as_dir in $PATH |
| 2505 | do |
| 2506 | IFS=$as_save_IFS |
| 2507 | test -z "$as_dir" && as_dir=. |
| 2508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2510 | ac_cv_prog_AWK="$ac_prog" |
| 2511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2512 | break 2 |
| 2513 | fi |
| 2514 | done |
| 2515 | done |
| 2516 | IFS=$as_save_IFS |
| 2517 | |
| 2518 | fi |
| 2519 | fi |
| 2520 | AWK=$ac_cv_prog_AWK |
| 2521 | if test -n "$AWK"; then |
| 2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2523 | $as_echo "$AWK" >&6; } |
| 2524 | else |
| 2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2526 | $as_echo "no" >&6; } |
| 2527 | fi |
| 2528 | |
| 2529 | |
| 2530 | test -n "$AWK" && break |
| 2531 | done |
| 2532 | |
| 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2534 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2535 | set x ${MAKE-make} |
| 2536 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2537 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 2538 | $as_echo_n "(cached) " >&6 |
| 2539 | else |
| 2540 | cat >conftest.make <<\_ACEOF |
| 2541 | SHELL = /bin/sh |
| 2542 | all: |
| 2543 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2544 | _ACEOF |
| 2545 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2546 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2547 | *@@@%%%=?*=@@@%%%*) |
| 2548 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2549 | *) |
| 2550 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2551 | esac |
| 2552 | rm -f conftest.make |
| 2553 | fi |
| 2554 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2556 | $as_echo "yes" >&6; } |
| 2557 | SET_MAKE= |
| 2558 | else |
| 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2560 | $as_echo "no" >&6; } |
| 2561 | SET_MAKE="MAKE=${MAKE-make}" |
| 2562 | fi |
| 2563 | |
| 2564 | rm -rf .tst 2>/dev/null |
| 2565 | mkdir .tst 2>/dev/null |
| 2566 | if test -d .tst; then |
| 2567 | am__leading_dot=. |
| 2568 | else |
| 2569 | am__leading_dot=_ |
| 2570 | fi |
| 2571 | rmdir .tst 2>/dev/null |
| 2572 | |
| 2573 | # Check whether --enable-silent-rules was given. |
| 2574 | if test "${enable_silent_rules+set}" = set; then : |
| 2575 | enableval=$enable_silent_rules; |
| 2576 | fi |
| 2577 | |
| 2578 | case $enable_silent_rules in # ((( |
| 2579 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2580 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2581 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2582 | esac |
| 2583 | am_make=${MAKE-make} |
| 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2585 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2586 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2587 | $as_echo_n "(cached) " >&6 |
| 2588 | else |
| 2589 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2590 | BAR0=false |
| 2591 | BAR1=true |
| 2592 | V=1 |
| 2593 | am__doit: |
| 2594 | @$(TRUE) |
| 2595 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2596 | am_cv_make_support_nested_variables=yes |
| 2597 | else |
| 2598 | am_cv_make_support_nested_variables=no |
| 2599 | fi |
| 2600 | fi |
| 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2602 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2603 | if test $am_cv_make_support_nested_variables = yes; then |
| 2604 | AM_V='$(V)' |
| 2605 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2606 | else |
| 2607 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2608 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2609 | fi |
| 2610 | AM_BACKSLASH='\' |
| 2611 | |
| 2612 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2613 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2614 | # is not polluted with repeated "-I." |
| 2615 | am__isrc=' -I$(srcdir)' |
| 2616 | # test to see if srcdir already configured |
| 2617 | if test -f $srcdir/config.status; then |
| 2618 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2619 | fi |
| 2620 | fi |
| 2621 | |
| 2622 | # test whether we have cygpath |
| 2623 | if test -z "$CYGPATH_W"; then |
| 2624 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2625 | CYGPATH_W='cygpath -w' |
| 2626 | else |
| 2627 | CYGPATH_W=echo |
| 2628 | fi |
| 2629 | fi |
| 2630 | |
| 2631 | |
| 2632 | # Define the identity of the package. |
| 2633 | PACKAGE='sign' |
| 2634 | VERSION='1.0' |
| 2635 | |
| 2636 | |
| 2637 | cat >>confdefs.h <<_ACEOF |
| 2638 | #define PACKAGE "$PACKAGE" |
| 2639 | _ACEOF |
| 2640 | |
| 2641 | |
| 2642 | cat >>confdefs.h <<_ACEOF |
| 2643 | #define VERSION "$VERSION" |
| 2644 | _ACEOF |
| 2645 | |
| 2646 | # Some tools Automake needs. |
| 2647 | |
| 2648 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2649 | |
| 2650 | |
| 2651 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2652 | |
| 2653 | |
| 2654 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2655 | |
| 2656 | |
| 2657 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2658 | |
| 2659 | |
| 2660 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2661 | |
| 2662 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2663 | # dies out for good. For more background, see: |
| 2664 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2665 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2666 | mkdir_p='$(MKDIR_P)' |
| 2667 | |
| 2668 | # We need awk for the "check" target. The system "awk" is bad on |
| 2669 | # some platforms. |
| 2670 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2671 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2672 | AMTAR='$${TAR-tar}' |
| 2673 | |
| 2674 | |
| 2675 | # We'll loop over all known methods to create a tar archive until one works. |
| 2676 | _am_tools='gnutar pax cpio none' |
| 2677 | |
| 2678 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2679 | |
| 2680 | |
| 2681 | |
| 2682 | |
| 2683 | |
| 2684 | |
| 2685 | # POSIX will say in a future version that running "rm -f" with no argument |
| 2686 | # is OK; and we want to be able to make that assumption in our Makefile |
| 2687 | # recipes. So use an aggressive probe to check that the usage we want is |
| 2688 | # actually supported "in the wild" to an acceptable degree. |
| 2689 | # See automake bug#10828. |
| 2690 | # To make any issue more visible, cause the running configure to be aborted |
| 2691 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 2692 | # user can still override this though. |
| 2693 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 2694 | cat >&2 <<'END' |
| 2695 | Oops! |
| 2696 | |
| 2697 | Your 'rm' program seems unable to run without file operands specified |
| 2698 | on the command line, even when the '-f' option is present. This is contrary |
| 2699 | to the behaviour of most rm programs out there, and not conforming with |
| 2700 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2701 | |
| 2702 | Please tell bug-automake@gnu.org about your system, including the value |
| 2703 | of your $PATH and any error possibly output before this message. This |
| 2704 | can help us improve future automake versions. |
| 2705 | |
| 2706 | END |
| 2707 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2708 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2709 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2710 | echo >&2 |
| 2711 | else |
| 2712 | cat >&2 <<'END' |
| 2713 | Aborting the configuration process, to ensure you take notice of the issue. |
| 2714 | |
| 2715 | You can download and install GNU coreutils to get an 'rm' implementation |
| 2716 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 2717 | |
| 2718 | If you want to complete the configuration process using your problematic |
| 2719 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 2720 | to "yes", and re-run configure. |
| 2721 | |
| 2722 | END |
| 2723 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 2724 | fi |
| 2725 | fi |
| 2726 | |
| 2727 | DEPDIR="${am__leading_dot}deps" |
| 2728 | |
| 2729 | ac_config_commands="$ac_config_commands depfiles" |
| 2730 | |
| 2731 | |
| 2732 | am_make=${MAKE-make} |
| 2733 | cat > confinc << 'END' |
| 2734 | am__doit: |
| 2735 | @echo this is the am__doit target |
| 2736 | .PHONY: am__doit |
| 2737 | END |
| 2738 | # If we don't find an include directive, just comment out the code. |
| 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 2740 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 2741 | am__include="#" |
| 2742 | am__quote= |
| 2743 | _am_result=none |
| 2744 | # First try GNU make style include. |
| 2745 | echo "include confinc" > confmf |
| 2746 | # Ignore all kinds of additional output from 'make'. |
| 2747 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2748 | *the\ am__doit\ target*) |
| 2749 | am__include=include |
| 2750 | am__quote= |
| 2751 | _am_result=GNU |
| 2752 | ;; |
| 2753 | esac |
| 2754 | # Now try BSD make style include. |
| 2755 | if test "$am__include" = "#"; then |
| 2756 | echo '.include "confinc"' > confmf |
| 2757 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2758 | *the\ am__doit\ target*) |
| 2759 | am__include=.include |
| 2760 | am__quote="\"" |
| 2761 | _am_result=BSD |
| 2762 | ;; |
| 2763 | esac |
| 2764 | fi |
| 2765 | |
| 2766 | |
| 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 2768 | $as_echo "$_am_result" >&6; } |
| 2769 | rm -f confinc confmf |
| 2770 | |
| 2771 | # Check whether --enable-dependency-tracking was given. |
| 2772 | if test "${enable_dependency_tracking+set}" = set; then : |
| 2773 | enableval=$enable_dependency_tracking; |
| 2774 | fi |
| 2775 | |
| 2776 | if test "x$enable_dependency_tracking" != xno; then |
| 2777 | am_depcomp="$ac_aux_dir/depcomp" |
| 2778 | AMDEPBACKSLASH='\' |
| 2779 | am__nodep='_no' |
| 2780 | fi |
| 2781 | if test "x$enable_dependency_tracking" != xno; then |
| 2782 | AMDEP_TRUE= |
| 2783 | AMDEP_FALSE='#' |
| 2784 | else |
| 2785 | AMDEP_TRUE='#' |
| 2786 | AMDEP_FALSE= |
| 2787 | fi |
| 2788 | |
| 2789 | |
| 2790 | ac_ext=c |
| 2791 | ac_cpp='$CPP $CPPFLAGS' |
| 2792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2795 | if test -n "$ac_tool_prefix"; then |
| 2796 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2797 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2799 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2800 | if ${ac_cv_prog_CC+:} false; then : |
| 2801 | $as_echo_n "(cached) " >&6 |
| 2802 | else |
| 2803 | if test -n "$CC"; then |
| 2804 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2805 | else |
| 2806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2807 | for as_dir in $PATH |
| 2808 | do |
| 2809 | IFS=$as_save_IFS |
| 2810 | test -z "$as_dir" && as_dir=. |
| 2811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2813 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2815 | break 2 |
| 2816 | fi |
| 2817 | done |
| 2818 | done |
| 2819 | IFS=$as_save_IFS |
| 2820 | |
| 2821 | fi |
| 2822 | fi |
| 2823 | CC=$ac_cv_prog_CC |
| 2824 | if test -n "$CC"; then |
| 2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2826 | $as_echo "$CC" >&6; } |
| 2827 | else |
| 2828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2829 | $as_echo "no" >&6; } |
| 2830 | fi |
| 2831 | |
| 2832 | |
| 2833 | fi |
| 2834 | if test -z "$ac_cv_prog_CC"; then |
| 2835 | ac_ct_CC=$CC |
| 2836 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2837 | set dummy gcc; ac_word=$2 |
| 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2839 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2840 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2841 | $as_echo_n "(cached) " >&6 |
| 2842 | else |
| 2843 | if test -n "$ac_ct_CC"; then |
| 2844 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2845 | else |
| 2846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2847 | for as_dir in $PATH |
| 2848 | do |
| 2849 | IFS=$as_save_IFS |
| 2850 | test -z "$as_dir" && as_dir=. |
| 2851 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2853 | ac_cv_prog_ac_ct_CC="gcc" |
| 2854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2855 | break 2 |
| 2856 | fi |
| 2857 | done |
| 2858 | done |
| 2859 | IFS=$as_save_IFS |
| 2860 | |
| 2861 | fi |
| 2862 | fi |
| 2863 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2864 | if test -n "$ac_ct_CC"; then |
| 2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2866 | $as_echo "$ac_ct_CC" >&6; } |
| 2867 | else |
| 2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2869 | $as_echo "no" >&6; } |
| 2870 | fi |
| 2871 | |
| 2872 | if test "x$ac_ct_CC" = x; then |
| 2873 | CC="" |
| 2874 | else |
| 2875 | case $cross_compiling:$ac_tool_warned in |
| 2876 | yes:) |
| 2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2878 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2879 | ac_tool_warned=yes ;; |
| 2880 | esac |
| 2881 | CC=$ac_ct_CC |
| 2882 | fi |
| 2883 | else |
| 2884 | CC="$ac_cv_prog_CC" |
| 2885 | fi |
| 2886 | |
| 2887 | if test -z "$CC"; then |
| 2888 | if test -n "$ac_tool_prefix"; then |
| 2889 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2890 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2892 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2893 | if ${ac_cv_prog_CC+:} false; then : |
| 2894 | $as_echo_n "(cached) " >&6 |
| 2895 | else |
| 2896 | if test -n "$CC"; then |
| 2897 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2898 | else |
| 2899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2900 | for as_dir in $PATH |
| 2901 | do |
| 2902 | IFS=$as_save_IFS |
| 2903 | test -z "$as_dir" && as_dir=. |
| 2904 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2906 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2908 | break 2 |
| 2909 | fi |
| 2910 | done |
| 2911 | done |
| 2912 | IFS=$as_save_IFS |
| 2913 | |
| 2914 | fi |
| 2915 | fi |
| 2916 | CC=$ac_cv_prog_CC |
| 2917 | if test -n "$CC"; then |
| 2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2919 | $as_echo "$CC" >&6; } |
| 2920 | else |
| 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2922 | $as_echo "no" >&6; } |
| 2923 | fi |
| 2924 | |
| 2925 | |
| 2926 | fi |
| 2927 | fi |
| 2928 | if test -z "$CC"; then |
| 2929 | # Extract the first word of "cc", so it can be a program name with args. |
| 2930 | set dummy cc; ac_word=$2 |
| 2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2932 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2933 | if ${ac_cv_prog_CC+:} false; then : |
| 2934 | $as_echo_n "(cached) " >&6 |
| 2935 | else |
| 2936 | if test -n "$CC"; then |
| 2937 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2938 | else |
| 2939 | ac_prog_rejected=no |
| 2940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2941 | for as_dir in $PATH |
| 2942 | do |
| 2943 | IFS=$as_save_IFS |
| 2944 | test -z "$as_dir" && as_dir=. |
| 2945 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2947 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2948 | ac_prog_rejected=yes |
| 2949 | continue |
| 2950 | fi |
| 2951 | ac_cv_prog_CC="cc" |
| 2952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2953 | break 2 |
| 2954 | fi |
| 2955 | done |
| 2956 | done |
| 2957 | IFS=$as_save_IFS |
| 2958 | |
| 2959 | if test $ac_prog_rejected = yes; then |
| 2960 | # We found a bogon in the path, so make sure we never use it. |
| 2961 | set dummy $ac_cv_prog_CC |
| 2962 | shift |
| 2963 | if test $# != 0; then |
| 2964 | # We chose a different compiler from the bogus one. |
| 2965 | # However, it has the same basename, so the bogon will be chosen |
| 2966 | # first if we set CC to just the basename; use the full file name. |
| 2967 | shift |
| 2968 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2969 | fi |
| 2970 | fi |
| 2971 | fi |
| 2972 | fi |
| 2973 | CC=$ac_cv_prog_CC |
| 2974 | if test -n "$CC"; then |
| 2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2976 | $as_echo "$CC" >&6; } |
| 2977 | else |
| 2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2979 | $as_echo "no" >&6; } |
| 2980 | fi |
| 2981 | |
| 2982 | |
| 2983 | fi |
| 2984 | if test -z "$CC"; then |
| 2985 | if test -n "$ac_tool_prefix"; then |
| 2986 | for ac_prog in cl.exe |
| 2987 | do |
| 2988 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2989 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2991 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2992 | if ${ac_cv_prog_CC+:} false; then : |
| 2993 | $as_echo_n "(cached) " >&6 |
| 2994 | else |
| 2995 | if test -n "$CC"; then |
| 2996 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2997 | else |
| 2998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2999 | for as_dir in $PATH |
| 3000 | do |
| 3001 | IFS=$as_save_IFS |
| 3002 | test -z "$as_dir" && as_dir=. |
| 3003 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3005 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3007 | break 2 |
| 3008 | fi |
| 3009 | done |
| 3010 | done |
| 3011 | IFS=$as_save_IFS |
| 3012 | |
| 3013 | fi |
| 3014 | fi |
| 3015 | CC=$ac_cv_prog_CC |
| 3016 | if test -n "$CC"; then |
| 3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3018 | $as_echo "$CC" >&6; } |
| 3019 | else |
| 3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3021 | $as_echo "no" >&6; } |
| 3022 | fi |
| 3023 | |
| 3024 | |
| 3025 | test -n "$CC" && break |
| 3026 | done |
| 3027 | fi |
| 3028 | if test -z "$CC"; then |
| 3029 | ac_ct_CC=$CC |
| 3030 | for ac_prog in cl.exe |
| 3031 | do |
| 3032 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3033 | set dummy $ac_prog; ac_word=$2 |
| 3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3035 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3036 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3037 | $as_echo_n "(cached) " >&6 |
| 3038 | else |
| 3039 | if test -n "$ac_ct_CC"; then |
| 3040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3041 | else |
| 3042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3043 | for as_dir in $PATH |
| 3044 | do |
| 3045 | IFS=$as_save_IFS |
| 3046 | test -z "$as_dir" && as_dir=. |
| 3047 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3049 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3051 | break 2 |
| 3052 | fi |
| 3053 | done |
| 3054 | done |
| 3055 | IFS=$as_save_IFS |
| 3056 | |
| 3057 | fi |
| 3058 | fi |
| 3059 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3060 | if test -n "$ac_ct_CC"; then |
| 3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3062 | $as_echo "$ac_ct_CC" >&6; } |
| 3063 | else |
| 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3065 | $as_echo "no" >&6; } |
| 3066 | fi |
| 3067 | |
| 3068 | |
| 3069 | test -n "$ac_ct_CC" && break |
| 3070 | done |
| 3071 | |
| 3072 | if test "x$ac_ct_CC" = x; then |
| 3073 | CC="" |
| 3074 | else |
| 3075 | case $cross_compiling:$ac_tool_warned in |
| 3076 | yes:) |
| 3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3079 | ac_tool_warned=yes ;; |
| 3080 | esac |
| 3081 | CC=$ac_ct_CC |
| 3082 | fi |
| 3083 | fi |
| 3084 | |
| 3085 | fi |
| 3086 | |
| 3087 | |
| 3088 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3089 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3090 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3091 | See \`config.log' for more details" "$LINENO" 5; } |
| 3092 | |
| 3093 | # Provide some information about the compiler. |
| 3094 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3095 | set X $ac_compile |
| 3096 | ac_compiler=$2 |
| 3097 | for ac_option in --version -v -V -qversion; do |
| 3098 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3099 | case "(($ac_try" in |
| 3100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3101 | *) ac_try_echo=$ac_try;; |
| 3102 | esac |
| 3103 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3104 | $as_echo "$ac_try_echo"; } >&5 |
| 3105 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3106 | ac_status=$? |
| 3107 | if test -s conftest.err; then |
| 3108 | sed '10a\ |
| 3109 | ... rest of stderr output deleted ... |
| 3110 | 10q' conftest.err >conftest.er1 |
| 3111 | cat conftest.er1 >&5 |
| 3112 | fi |
| 3113 | rm -f conftest.er1 conftest.err |
| 3114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3115 | test $ac_status = 0; } |
| 3116 | done |
| 3117 | |
| 3118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3119 | /* end confdefs.h. */ |
| 3120 | |
| 3121 | int |
| 3122 | main () |
| 3123 | { |
| 3124 | |
| 3125 | ; |
| 3126 | return 0; |
| 3127 | } |
| 3128 | _ACEOF |
| 3129 | ac_clean_files_save=$ac_clean_files |
| 3130 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3131 | # Try to create an executable without -o first, disregard a.out. |
| 3132 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3133 | # of exeext. |
| 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3135 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3136 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3137 | |
| 3138 | # The possible output files: |
| 3139 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3140 | |
| 3141 | ac_rmfiles= |
| 3142 | for ac_file in $ac_files |
| 3143 | do |
| 3144 | case $ac_file in |
| 3145 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3146 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3147 | esac |
| 3148 | done |
| 3149 | rm -f $ac_rmfiles |
| 3150 | |
| 3151 | if { { ac_try="$ac_link_default" |
| 3152 | case "(($ac_try" in |
| 3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3154 | *) ac_try_echo=$ac_try;; |
| 3155 | esac |
| 3156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3157 | $as_echo "$ac_try_echo"; } >&5 |
| 3158 | (eval "$ac_link_default") 2>&5 |
| 3159 | ac_status=$? |
| 3160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3161 | test $ac_status = 0; }; then : |
| 3162 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3163 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3164 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3165 | # so that the user can short-circuit this test for compilers unknown to |
| 3166 | # Autoconf. |
| 3167 | for ac_file in $ac_files '' |
| 3168 | do |
| 3169 | test -f "$ac_file" || continue |
| 3170 | case $ac_file in |
| 3171 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3172 | ;; |
| 3173 | [ab].out ) |
| 3174 | # We found the default executable, but exeext='' is most |
| 3175 | # certainly right. |
| 3176 | break;; |
| 3177 | *.* ) |
| 3178 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3179 | then :; else |
| 3180 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3181 | fi |
| 3182 | # We set ac_cv_exeext here because the later test for it is not |
| 3183 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3184 | # argument, so we may need to know it at that point already. |
| 3185 | # Even if this section looks crufty: it has the advantage of |
| 3186 | # actually working. |
| 3187 | break;; |
| 3188 | * ) |
| 3189 | break;; |
| 3190 | esac |
| 3191 | done |
| 3192 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3193 | |
| 3194 | else |
| 3195 | ac_file='' |
| 3196 | fi |
| 3197 | if test -z "$ac_file"; then : |
| 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3199 | $as_echo "no" >&6; } |
| 3200 | $as_echo "$as_me: failed program was:" >&5 |
| 3201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3202 | |
| 3203 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3204 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3205 | as_fn_error 77 "C compiler cannot create executables |
| 3206 | See \`config.log' for more details" "$LINENO" 5; } |
| 3207 | else |
| 3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3209 | $as_echo "yes" >&6; } |
| 3210 | fi |
| 3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3212 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3214 | $as_echo "$ac_file" >&6; } |
| 3215 | ac_exeext=$ac_cv_exeext |
| 3216 | |
| 3217 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3218 | ac_clean_files=$ac_clean_files_save |
| 3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3220 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3221 | if { { ac_try="$ac_link" |
| 3222 | case "(($ac_try" in |
| 3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3224 | *) ac_try_echo=$ac_try;; |
| 3225 | esac |
| 3226 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3227 | $as_echo "$ac_try_echo"; } >&5 |
| 3228 | (eval "$ac_link") 2>&5 |
| 3229 | ac_status=$? |
| 3230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3231 | test $ac_status = 0; }; then : |
| 3232 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3233 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3234 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3235 | # `rm'. |
| 3236 | for ac_file in conftest.exe conftest conftest.*; do |
| 3237 | test -f "$ac_file" || continue |
| 3238 | case $ac_file in |
| 3239 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3240 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3241 | break;; |
| 3242 | * ) break;; |
| 3243 | esac |
| 3244 | done |
| 3245 | else |
| 3246 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3248 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3249 | See \`config.log' for more details" "$LINENO" 5; } |
| 3250 | fi |
| 3251 | rm -f conftest conftest$ac_cv_exeext |
| 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3253 | $as_echo "$ac_cv_exeext" >&6; } |
| 3254 | |
| 3255 | rm -f conftest.$ac_ext |
| 3256 | EXEEXT=$ac_cv_exeext |
| 3257 | ac_exeext=$EXEEXT |
| 3258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3259 | /* end confdefs.h. */ |
| 3260 | #include <stdio.h> |
| 3261 | int |
| 3262 | main () |
| 3263 | { |
| 3264 | FILE *f = fopen ("conftest.out", "w"); |
| 3265 | return ferror (f) || fclose (f) != 0; |
| 3266 | |
| 3267 | ; |
| 3268 | return 0; |
| 3269 | } |
| 3270 | _ACEOF |
| 3271 | ac_clean_files="$ac_clean_files conftest.out" |
| 3272 | # Check that the compiler produces executables we can run. If not, either |
| 3273 | # the compiler is broken, or we cross compile. |
| 3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3275 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3276 | if test "$cross_compiling" != yes; then |
| 3277 | { { ac_try="$ac_link" |
| 3278 | case "(($ac_try" in |
| 3279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3280 | *) ac_try_echo=$ac_try;; |
| 3281 | esac |
| 3282 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3283 | $as_echo "$ac_try_echo"; } >&5 |
| 3284 | (eval "$ac_link") 2>&5 |
| 3285 | ac_status=$? |
| 3286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3287 | test $ac_status = 0; } |
| 3288 | if { ac_try='./conftest$ac_cv_exeext' |
| 3289 | { { case "(($ac_try" in |
| 3290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3291 | *) ac_try_echo=$ac_try;; |
| 3292 | esac |
| 3293 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3294 | $as_echo "$ac_try_echo"; } >&5 |
| 3295 | (eval "$ac_try") 2>&5 |
| 3296 | ac_status=$? |
| 3297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3298 | test $ac_status = 0; }; }; then |
| 3299 | cross_compiling=no |
| 3300 | else |
| 3301 | if test "$cross_compiling" = maybe; then |
| 3302 | cross_compiling=yes |
| 3303 | else |
| 3304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3306 | as_fn_error $? "cannot run C compiled programs. |
| 3307 | If you meant to cross compile, use \`--host'. |
| 3308 | See \`config.log' for more details" "$LINENO" 5; } |
| 3309 | fi |
| 3310 | fi |
| 3311 | fi |
| 3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3313 | $as_echo "$cross_compiling" >&6; } |
| 3314 | |
| 3315 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3316 | ac_clean_files=$ac_clean_files_save |
| 3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3318 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3319 | if ${ac_cv_objext+:} false; then : |
| 3320 | $as_echo_n "(cached) " >&6 |
| 3321 | else |
| 3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3323 | /* end confdefs.h. */ |
| 3324 | |
| 3325 | int |
| 3326 | main () |
| 3327 | { |
| 3328 | |
| 3329 | ; |
| 3330 | return 0; |
| 3331 | } |
| 3332 | _ACEOF |
| 3333 | rm -f conftest.o conftest.obj |
| 3334 | if { { ac_try="$ac_compile" |
| 3335 | case "(($ac_try" in |
| 3336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3337 | *) ac_try_echo=$ac_try;; |
| 3338 | esac |
| 3339 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3340 | $as_echo "$ac_try_echo"; } >&5 |
| 3341 | (eval "$ac_compile") 2>&5 |
| 3342 | ac_status=$? |
| 3343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3344 | test $ac_status = 0; }; then : |
| 3345 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3346 | test -f "$ac_file" || continue; |
| 3347 | case $ac_file in |
| 3348 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3349 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3350 | break;; |
| 3351 | esac |
| 3352 | done |
| 3353 | else |
| 3354 | $as_echo "$as_me: failed program was:" >&5 |
| 3355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3356 | |
| 3357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3359 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3360 | See \`config.log' for more details" "$LINENO" 5; } |
| 3361 | fi |
| 3362 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3363 | fi |
| 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3365 | $as_echo "$ac_cv_objext" >&6; } |
| 3366 | OBJEXT=$ac_cv_objext |
| 3367 | ac_objext=$OBJEXT |
| 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3369 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3370 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3371 | $as_echo_n "(cached) " >&6 |
| 3372 | else |
| 3373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3374 | /* end confdefs.h. */ |
| 3375 | |
| 3376 | int |
| 3377 | main () |
| 3378 | { |
| 3379 | #ifndef __GNUC__ |
| 3380 | choke me |
| 3381 | #endif |
| 3382 | |
| 3383 | ; |
| 3384 | return 0; |
| 3385 | } |
| 3386 | _ACEOF |
| 3387 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3388 | ac_compiler_gnu=yes |
| 3389 | else |
| 3390 | ac_compiler_gnu=no |
| 3391 | fi |
| 3392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3393 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3394 | |
| 3395 | fi |
| 3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3397 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3398 | if test $ac_compiler_gnu = yes; then |
| 3399 | GCC=yes |
| 3400 | else |
| 3401 | GCC= |
| 3402 | fi |
| 3403 | ac_test_CFLAGS=${CFLAGS+set} |
| 3404 | ac_save_CFLAGS=$CFLAGS |
| 3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3406 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3407 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3408 | $as_echo_n "(cached) " >&6 |
| 3409 | else |
| 3410 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3411 | ac_c_werror_flag=yes |
| 3412 | ac_cv_prog_cc_g=no |
| 3413 | CFLAGS="-g" |
| 3414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3415 | /* end confdefs.h. */ |
| 3416 | |
| 3417 | int |
| 3418 | main () |
| 3419 | { |
| 3420 | |
| 3421 | ; |
| 3422 | return 0; |
| 3423 | } |
| 3424 | _ACEOF |
| 3425 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3426 | ac_cv_prog_cc_g=yes |
| 3427 | else |
| 3428 | CFLAGS="" |
| 3429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3430 | /* end confdefs.h. */ |
| 3431 | |
| 3432 | int |
| 3433 | main () |
| 3434 | { |
| 3435 | |
| 3436 | ; |
| 3437 | return 0; |
| 3438 | } |
| 3439 | _ACEOF |
| 3440 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3441 | |
| 3442 | else |
| 3443 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3444 | CFLAGS="-g" |
| 3445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3446 | /* end confdefs.h. */ |
| 3447 | |
| 3448 | int |
| 3449 | main () |
| 3450 | { |
| 3451 | |
| 3452 | ; |
| 3453 | return 0; |
| 3454 | } |
| 3455 | _ACEOF |
| 3456 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3457 | ac_cv_prog_cc_g=yes |
| 3458 | fi |
| 3459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3460 | fi |
| 3461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3462 | fi |
| 3463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3464 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3465 | fi |
| 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3467 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3468 | if test "$ac_test_CFLAGS" = set; then |
| 3469 | CFLAGS=$ac_save_CFLAGS |
| 3470 | elif test $ac_cv_prog_cc_g = yes; then |
| 3471 | if test "$GCC" = yes; then |
| 3472 | CFLAGS="-g -O2" |
| 3473 | else |
| 3474 | CFLAGS="-g" |
| 3475 | fi |
| 3476 | else |
| 3477 | if test "$GCC" = yes; then |
| 3478 | CFLAGS="-O2" |
| 3479 | else |
| 3480 | CFLAGS= |
| 3481 | fi |
| 3482 | fi |
| 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3484 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3485 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3486 | $as_echo_n "(cached) " >&6 |
| 3487 | else |
| 3488 | ac_cv_prog_cc_c89=no |
| 3489 | ac_save_CC=$CC |
| 3490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3491 | /* end confdefs.h. */ |
| 3492 | #include <stdarg.h> |
| 3493 | #include <stdio.h> |
| 3494 | struct stat; |
| 3495 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3496 | struct buf { int x; }; |
| 3497 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3498 | static char *e (p, i) |
| 3499 | char **p; |
| 3500 | int i; |
| 3501 | { |
| 3502 | return p[i]; |
| 3503 | } |
| 3504 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3505 | { |
| 3506 | char *s; |
| 3507 | va_list v; |
| 3508 | va_start (v,p); |
| 3509 | s = g (p, va_arg (v,int)); |
| 3510 | va_end (v); |
| 3511 | return s; |
| 3512 | } |
| 3513 | |
| 3514 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3515 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3516 | These don't provoke an error unfortunately, instead are silently treated |
| 3517 | as 'x'. The following induces an error, until -std is added to get |
| 3518 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3519 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3520 | that's true only with -std. */ |
| 3521 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3522 | |
| 3523 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3524 | inside strings and character constants. */ |
| 3525 | #define FOO(x) 'x' |
| 3526 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3527 | |
| 3528 | int test (int i, double x); |
| 3529 | struct s1 {int (*f) (int a);}; |
| 3530 | struct s2 {int (*f) (double a);}; |
| 3531 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3532 | int argc; |
| 3533 | char **argv; |
| 3534 | int |
| 3535 | main () |
| 3536 | { |
| 3537 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3538 | ; |
| 3539 | return 0; |
| 3540 | } |
| 3541 | _ACEOF |
| 3542 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3543 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3544 | do |
| 3545 | CC="$ac_save_CC $ac_arg" |
| 3546 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3547 | ac_cv_prog_cc_c89=$ac_arg |
| 3548 | fi |
| 3549 | rm -f core conftest.err conftest.$ac_objext |
| 3550 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3551 | done |
| 3552 | rm -f conftest.$ac_ext |
| 3553 | CC=$ac_save_CC |
| 3554 | |
| 3555 | fi |
| 3556 | # AC_CACHE_VAL |
| 3557 | case "x$ac_cv_prog_cc_c89" in |
| 3558 | x) |
| 3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3560 | $as_echo "none needed" >&6; } ;; |
| 3561 | xno) |
| 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3563 | $as_echo "unsupported" >&6; } ;; |
| 3564 | *) |
| 3565 | CC="$CC $ac_cv_prog_cc_c89" |
| 3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3567 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3568 | esac |
| 3569 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3570 | |
| 3571 | fi |
| 3572 | |
| 3573 | ac_ext=c |
| 3574 | ac_cpp='$CPP $CPPFLAGS' |
| 3575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3578 | |
| 3579 | ac_ext=c |
| 3580 | ac_cpp='$CPP $CPPFLAGS' |
| 3581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3585 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3586 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 3587 | $as_echo_n "(cached) " >&6 |
| 3588 | else |
| 3589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3590 | /* end confdefs.h. */ |
| 3591 | |
| 3592 | int |
| 3593 | main () |
| 3594 | { |
| 3595 | |
| 3596 | ; |
| 3597 | return 0; |
| 3598 | } |
| 3599 | _ACEOF |
| 3600 | # Make sure it works both with $CC and with simple cc. |
| 3601 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 3602 | # compilers refuse to overwrite an existing .o file with -o, |
| 3603 | # though they will create one. |
| 3604 | am_cv_prog_cc_c_o=yes |
| 3605 | for am_i in 1 2; do |
| 3606 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3607 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3608 | ac_status=$? |
| 3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3610 | (exit $ac_status); } \ |
| 3611 | && test -f conftest2.$ac_objext; then |
| 3612 | : OK |
| 3613 | else |
| 3614 | am_cv_prog_cc_c_o=no |
| 3615 | break |
| 3616 | fi |
| 3617 | done |
| 3618 | rm -f core conftest* |
| 3619 | unset am_i |
| 3620 | fi |
| 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3622 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3623 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 3624 | # Losing compiler, so override with the script. |
| 3625 | # FIXME: It is wrong to rewrite CC. |
| 3626 | # But if we don't then we get into trouble of one sort or another. |
| 3627 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3628 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3629 | CC="$am_aux_dir/compile $CC" |
| 3630 | fi |
| 3631 | ac_ext=c |
| 3632 | ac_cpp='$CPP $CPPFLAGS' |
| 3633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3636 | |
| 3637 | |
| 3638 | depcc="$CC" am_compiler_list= |
| 3639 | |
| 3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3641 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3642 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 3643 | $as_echo_n "(cached) " >&6 |
| 3644 | else |
| 3645 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3646 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3647 | # making bogus files that we don't know about and never remove. For |
| 3648 | # instance it was reported that on HP-UX the gcc test will end up |
| 3649 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 3650 | # in D". |
| 3651 | rm -rf conftest.dir |
| 3652 | mkdir conftest.dir |
| 3653 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3654 | # using a relative directory. |
| 3655 | cp "$am_depcomp" conftest.dir |
| 3656 | cd conftest.dir |
| 3657 | # We will build objects and dependencies in a subdirectory because |
| 3658 | # it helps to detect inapplicable dependency modes. For instance |
| 3659 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3660 | # side effect of compilation, but ICC will put the dependencies in |
| 3661 | # the current directory while Tru64 will put them in the object |
| 3662 | # directory. |
| 3663 | mkdir sub |
| 3664 | |
| 3665 | am_cv_CC_dependencies_compiler_type=none |
| 3666 | if test "$am_compiler_list" = ""; then |
| 3667 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3668 | fi |
| 3669 | am__universal=false |
| 3670 | case " $depcc " in #( |
| 3671 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3672 | esac |
| 3673 | |
| 3674 | for depmode in $am_compiler_list; do |
| 3675 | # Setup a source with many dependencies, because some compilers |
| 3676 | # like to wrap large dependency lists on column 80 (with \), and |
| 3677 | # we should not choose a depcomp mode which is confused by this. |
| 3678 | # |
| 3679 | # We need to recreate these files for each test, as the compiler may |
| 3680 | # overwrite some of them when testing with obscure command lines. |
| 3681 | # This happens at least with the AIX C compiler. |
| 3682 | : > sub/conftest.c |
| 3683 | for i in 1 2 3 4 5 6; do |
| 3684 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3685 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3686 | # Solaris 10 /bin/sh. |
| 3687 | echo '/* dummy */' > sub/conftst$i.h |
| 3688 | done |
| 3689 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3690 | |
| 3691 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 3692 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3693 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 3694 | # versions had trouble with output in subdirs. |
| 3695 | am__obj=sub/conftest.${OBJEXT-o} |
| 3696 | am__minus_obj="-o $am__obj" |
| 3697 | case $depmode in |
| 3698 | gcc) |
| 3699 | # This depmode causes a compiler race in universal mode. |
| 3700 | test "$am__universal" = false || continue |
| 3701 | ;; |
| 3702 | nosideeffect) |
| 3703 | # After this tag, mechanisms are not by side-effect, so they'll |
| 3704 | # only be used when explicitly requested. |
| 3705 | if test "x$enable_dependency_tracking" = xyes; then |
| 3706 | continue |
| 3707 | else |
| 3708 | break |
| 3709 | fi |
| 3710 | ;; |
| 3711 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 3712 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 3713 | # not run yet. These depmodes are late enough in the game, and |
| 3714 | # so weak that their functioning should not be impacted. |
| 3715 | am__obj=conftest.${OBJEXT-o} |
| 3716 | am__minus_obj= |
| 3717 | ;; |
| 3718 | none) break ;; |
| 3719 | esac |
| 3720 | if depmode=$depmode \ |
| 3721 | source=sub/conftest.c object=$am__obj \ |
| 3722 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3723 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3724 | >/dev/null 2>conftest.err && |
| 3725 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3726 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3727 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3728 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3729 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3730 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3731 | # that says an option was ignored or not supported. |
| 3732 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3733 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3734 | # The diagnosis changed in icc 8.0: |
| 3735 | # icc: Command line remark: option '-MP' not supported |
| 3736 | if (grep 'ignoring option' conftest.err || |
| 3737 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3738 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3739 | break |
| 3740 | fi |
| 3741 | fi |
| 3742 | done |
| 3743 | |
| 3744 | cd .. |
| 3745 | rm -rf conftest.dir |
| 3746 | else |
| 3747 | am_cv_CC_dependencies_compiler_type=none |
| 3748 | fi |
| 3749 | |
| 3750 | fi |
| 3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3752 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3753 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3754 | |
| 3755 | if |
| 3756 | test "x$enable_dependency_tracking" != xno \ |
| 3757 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3758 | am__fastdepCC_TRUE= |
| 3759 | am__fastdepCC_FALSE='#' |
| 3760 | else |
| 3761 | am__fastdepCC_TRUE='#' |
| 3762 | am__fastdepCC_FALSE= |
| 3763 | fi |
| 3764 | |
| 3765 | |
| 3766 | # By default we simply use the C compiler to build assembly code. |
| 3767 | |
| 3768 | test "${CCAS+set}" = set || CCAS=$CC |
| 3769 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
| 3770 | |
| 3771 | |
| 3772 | |
| 3773 | depcc="$CCAS" am_compiler_list= |
| 3774 | |
| 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3776 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3777 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
| 3778 | $as_echo_n "(cached) " >&6 |
| 3779 | else |
| 3780 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3781 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3782 | # making bogus files that we don't know about and never remove. For |
| 3783 | # instance it was reported that on HP-UX the gcc test will end up |
| 3784 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 3785 | # in D". |
| 3786 | rm -rf conftest.dir |
| 3787 | mkdir conftest.dir |
| 3788 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3789 | # using a relative directory. |
| 3790 | cp "$am_depcomp" conftest.dir |
| 3791 | cd conftest.dir |
| 3792 | # We will build objects and dependencies in a subdirectory because |
| 3793 | # it helps to detect inapplicable dependency modes. For instance |
| 3794 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3795 | # side effect of compilation, but ICC will put the dependencies in |
| 3796 | # the current directory while Tru64 will put them in the object |
| 3797 | # directory. |
| 3798 | mkdir sub |
| 3799 | |
| 3800 | am_cv_CCAS_dependencies_compiler_type=none |
| 3801 | if test "$am_compiler_list" = ""; then |
| 3802 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3803 | fi |
| 3804 | am__universal=false |
| 3805 | |
| 3806 | |
| 3807 | for depmode in $am_compiler_list; do |
| 3808 | # Setup a source with many dependencies, because some compilers |
| 3809 | # like to wrap large dependency lists on column 80 (with \), and |
| 3810 | # we should not choose a depcomp mode which is confused by this. |
| 3811 | # |
| 3812 | # We need to recreate these files for each test, as the compiler may |
| 3813 | # overwrite some of them when testing with obscure command lines. |
| 3814 | # This happens at least with the AIX C compiler. |
| 3815 | : > sub/conftest.c |
| 3816 | for i in 1 2 3 4 5 6; do |
| 3817 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3818 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3819 | # Solaris 10 /bin/sh. |
| 3820 | echo '/* dummy */' > sub/conftst$i.h |
| 3821 | done |
| 3822 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3823 | |
| 3824 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 3825 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3826 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 3827 | # versions had trouble with output in subdirs. |
| 3828 | am__obj=sub/conftest.${OBJEXT-o} |
| 3829 | am__minus_obj="-o $am__obj" |
| 3830 | case $depmode in |
| 3831 | gcc) |
| 3832 | # This depmode causes a compiler race in universal mode. |
| 3833 | test "$am__universal" = false || continue |
| 3834 | ;; |
| 3835 | nosideeffect) |
| 3836 | # After this tag, mechanisms are not by side-effect, so they'll |
| 3837 | # only be used when explicitly requested. |
| 3838 | if test "x$enable_dependency_tracking" = xyes; then |
| 3839 | continue |
| 3840 | else |
| 3841 | break |
| 3842 | fi |
| 3843 | ;; |
| 3844 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 3845 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 3846 | # not run yet. These depmodes are late enough in the game, and |
| 3847 | # so weak that their functioning should not be impacted. |
| 3848 | am__obj=conftest.${OBJEXT-o} |
| 3849 | am__minus_obj= |
| 3850 | ;; |
| 3851 | none) break ;; |
| 3852 | esac |
| 3853 | if depmode=$depmode \ |
| 3854 | source=sub/conftest.c object=$am__obj \ |
| 3855 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3856 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3857 | >/dev/null 2>conftest.err && |
| 3858 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3859 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3860 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3861 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3862 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3863 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3864 | # that says an option was ignored or not supported. |
| 3865 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3866 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3867 | # The diagnosis changed in icc 8.0: |
| 3868 | # icc: Command line remark: option '-MP' not supported |
| 3869 | if (grep 'ignoring option' conftest.err || |
| 3870 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3871 | am_cv_CCAS_dependencies_compiler_type=$depmode |
| 3872 | break |
| 3873 | fi |
| 3874 | fi |
| 3875 | done |
| 3876 | |
| 3877 | cd .. |
| 3878 | rm -rf conftest.dir |
| 3879 | else |
| 3880 | am_cv_CCAS_dependencies_compiler_type=none |
| 3881 | fi |
| 3882 | |
| 3883 | fi |
| 3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
| 3885 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
| 3886 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
| 3887 | |
| 3888 | if |
| 3889 | test "x$enable_dependency_tracking" != xno \ |
| 3890 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
| 3891 | am__fastdepCCAS_TRUE= |
| 3892 | am__fastdepCCAS_FALSE='#' |
| 3893 | else |
| 3894 | am__fastdepCCAS_TRUE='#' |
| 3895 | am__fastdepCCAS_FALSE= |
| 3896 | fi |
| 3897 | |
| 3898 | |
| 3899 | ac_ext=c |
| 3900 | ac_cpp='$CPP $CPPFLAGS' |
| 3901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3904 | if test -n "$ac_tool_prefix"; then |
| 3905 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3906 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3908 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3909 | if ${ac_cv_prog_CC+:} false; then : |
| 3910 | $as_echo_n "(cached) " >&6 |
| 3911 | else |
| 3912 | if test -n "$CC"; then |
| 3913 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3914 | else |
| 3915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3916 | for as_dir in $PATH |
| 3917 | do |
| 3918 | IFS=$as_save_IFS |
| 3919 | test -z "$as_dir" && as_dir=. |
| 3920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3922 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3924 | break 2 |
| 3925 | fi |
| 3926 | done |
| 3927 | done |
| 3928 | IFS=$as_save_IFS |
| 3929 | |
| 3930 | fi |
| 3931 | fi |
| 3932 | CC=$ac_cv_prog_CC |
| 3933 | if test -n "$CC"; then |
| 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3935 | $as_echo "$CC" >&6; } |
| 3936 | else |
| 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3938 | $as_echo "no" >&6; } |
| 3939 | fi |
| 3940 | |
| 3941 | |
| 3942 | fi |
| 3943 | if test -z "$ac_cv_prog_CC"; then |
| 3944 | ac_ct_CC=$CC |
| 3945 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3946 | set dummy gcc; ac_word=$2 |
| 3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3948 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3949 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3950 | $as_echo_n "(cached) " >&6 |
| 3951 | else |
| 3952 | if test -n "$ac_ct_CC"; then |
| 3953 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3954 | else |
| 3955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3956 | for as_dir in $PATH |
| 3957 | do |
| 3958 | IFS=$as_save_IFS |
| 3959 | test -z "$as_dir" && as_dir=. |
| 3960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3962 | ac_cv_prog_ac_ct_CC="gcc" |
| 3963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3964 | break 2 |
| 3965 | fi |
| 3966 | done |
| 3967 | done |
| 3968 | IFS=$as_save_IFS |
| 3969 | |
| 3970 | fi |
| 3971 | fi |
| 3972 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3973 | if test -n "$ac_ct_CC"; then |
| 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3975 | $as_echo "$ac_ct_CC" >&6; } |
| 3976 | else |
| 3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3978 | $as_echo "no" >&6; } |
| 3979 | fi |
| 3980 | |
| 3981 | if test "x$ac_ct_CC" = x; then |
| 3982 | CC="" |
| 3983 | else |
| 3984 | case $cross_compiling:$ac_tool_warned in |
| 3985 | yes:) |
| 3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3988 | ac_tool_warned=yes ;; |
| 3989 | esac |
| 3990 | CC=$ac_ct_CC |
| 3991 | fi |
| 3992 | else |
| 3993 | CC="$ac_cv_prog_CC" |
| 3994 | fi |
| 3995 | |
| 3996 | if test -z "$CC"; then |
| 3997 | if test -n "$ac_tool_prefix"; then |
| 3998 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3999 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4001 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4002 | if ${ac_cv_prog_CC+:} false; then : |
| 4003 | $as_echo_n "(cached) " >&6 |
| 4004 | else |
| 4005 | if test -n "$CC"; then |
| 4006 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4007 | else |
| 4008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4009 | for as_dir in $PATH |
| 4010 | do |
| 4011 | IFS=$as_save_IFS |
| 4012 | test -z "$as_dir" && as_dir=. |
| 4013 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4015 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4017 | break 2 |
| 4018 | fi |
| 4019 | done |
| 4020 | done |
| 4021 | IFS=$as_save_IFS |
| 4022 | |
| 4023 | fi |
| 4024 | fi |
| 4025 | CC=$ac_cv_prog_CC |
| 4026 | if test -n "$CC"; then |
| 4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4028 | $as_echo "$CC" >&6; } |
| 4029 | else |
| 4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4031 | $as_echo "no" >&6; } |
| 4032 | fi |
| 4033 | |
| 4034 | |
| 4035 | fi |
| 4036 | fi |
| 4037 | if test -z "$CC"; then |
| 4038 | # Extract the first word of "cc", so it can be a program name with args. |
| 4039 | set dummy cc; ac_word=$2 |
| 4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4041 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4042 | if ${ac_cv_prog_CC+:} false; then : |
| 4043 | $as_echo_n "(cached) " >&6 |
| 4044 | else |
| 4045 | if test -n "$CC"; then |
| 4046 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4047 | else |
| 4048 | ac_prog_rejected=no |
| 4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4050 | for as_dir in $PATH |
| 4051 | do |
| 4052 | IFS=$as_save_IFS |
| 4053 | test -z "$as_dir" && as_dir=. |
| 4054 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4056 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4057 | ac_prog_rejected=yes |
| 4058 | continue |
| 4059 | fi |
| 4060 | ac_cv_prog_CC="cc" |
| 4061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4062 | break 2 |
| 4063 | fi |
| 4064 | done |
| 4065 | done |
| 4066 | IFS=$as_save_IFS |
| 4067 | |
| 4068 | if test $ac_prog_rejected = yes; then |
| 4069 | # We found a bogon in the path, so make sure we never use it. |
| 4070 | set dummy $ac_cv_prog_CC |
| 4071 | shift |
| 4072 | if test $# != 0; then |
| 4073 | # We chose a different compiler from the bogus one. |
| 4074 | # However, it has the same basename, so the bogon will be chosen |
| 4075 | # first if we set CC to just the basename; use the full file name. |
| 4076 | shift |
| 4077 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4078 | fi |
| 4079 | fi |
| 4080 | fi |
| 4081 | fi |
| 4082 | CC=$ac_cv_prog_CC |
| 4083 | if test -n "$CC"; then |
| 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4085 | $as_echo "$CC" >&6; } |
| 4086 | else |
| 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4088 | $as_echo "no" >&6; } |
| 4089 | fi |
| 4090 | |
| 4091 | |
| 4092 | fi |
| 4093 | if test -z "$CC"; then |
| 4094 | if test -n "$ac_tool_prefix"; then |
| 4095 | for ac_prog in cl.exe |
| 4096 | do |
| 4097 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4098 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4100 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4101 | if ${ac_cv_prog_CC+:} false; then : |
| 4102 | $as_echo_n "(cached) " >&6 |
| 4103 | else |
| 4104 | if test -n "$CC"; then |
| 4105 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4106 | else |
| 4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4108 | for as_dir in $PATH |
| 4109 | do |
| 4110 | IFS=$as_save_IFS |
| 4111 | test -z "$as_dir" && as_dir=. |
| 4112 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4114 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4116 | break 2 |
| 4117 | fi |
| 4118 | done |
| 4119 | done |
| 4120 | IFS=$as_save_IFS |
| 4121 | |
| 4122 | fi |
| 4123 | fi |
| 4124 | CC=$ac_cv_prog_CC |
| 4125 | if test -n "$CC"; then |
| 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4127 | $as_echo "$CC" >&6; } |
| 4128 | else |
| 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4130 | $as_echo "no" >&6; } |
| 4131 | fi |
| 4132 | |
| 4133 | |
| 4134 | test -n "$CC" && break |
| 4135 | done |
| 4136 | fi |
| 4137 | if test -z "$CC"; then |
| 4138 | ac_ct_CC=$CC |
| 4139 | for ac_prog in cl.exe |
| 4140 | do |
| 4141 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4142 | set dummy $ac_prog; ac_word=$2 |
| 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4144 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4145 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4146 | $as_echo_n "(cached) " >&6 |
| 4147 | else |
| 4148 | if test -n "$ac_ct_CC"; then |
| 4149 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4150 | else |
| 4151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4152 | for as_dir in $PATH |
| 4153 | do |
| 4154 | IFS=$as_save_IFS |
| 4155 | test -z "$as_dir" && as_dir=. |
| 4156 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4158 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4160 | break 2 |
| 4161 | fi |
| 4162 | done |
| 4163 | done |
| 4164 | IFS=$as_save_IFS |
| 4165 | |
| 4166 | fi |
| 4167 | fi |
| 4168 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4169 | if test -n "$ac_ct_CC"; then |
| 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4171 | $as_echo "$ac_ct_CC" >&6; } |
| 4172 | else |
| 4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4174 | $as_echo "no" >&6; } |
| 4175 | fi |
| 4176 | |
| 4177 | |
| 4178 | test -n "$ac_ct_CC" && break |
| 4179 | done |
| 4180 | |
| 4181 | if test "x$ac_ct_CC" = x; then |
| 4182 | CC="" |
| 4183 | else |
| 4184 | case $cross_compiling:$ac_tool_warned in |
| 4185 | yes:) |
| 4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4187 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4188 | ac_tool_warned=yes ;; |
| 4189 | esac |
| 4190 | CC=$ac_ct_CC |
| 4191 | fi |
| 4192 | fi |
| 4193 | |
| 4194 | fi |
| 4195 | |
| 4196 | |
| 4197 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4199 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4200 | See \`config.log' for more details" "$LINENO" 5; } |
| 4201 | |
| 4202 | # Provide some information about the compiler. |
| 4203 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4204 | set X $ac_compile |
| 4205 | ac_compiler=$2 |
| 4206 | for ac_option in --version -v -V -qversion; do |
| 4207 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4208 | case "(($ac_try" in |
| 4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4210 | *) ac_try_echo=$ac_try;; |
| 4211 | esac |
| 4212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4213 | $as_echo "$ac_try_echo"; } >&5 |
| 4214 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4215 | ac_status=$? |
| 4216 | if test -s conftest.err; then |
| 4217 | sed '10a\ |
| 4218 | ... rest of stderr output deleted ... |
| 4219 | 10q' conftest.err >conftest.er1 |
| 4220 | cat conftest.er1 >&5 |
| 4221 | fi |
| 4222 | rm -f conftest.er1 conftest.err |
| 4223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4224 | test $ac_status = 0; } |
| 4225 | done |
| 4226 | |
| 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4228 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4229 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 4230 | $as_echo_n "(cached) " >&6 |
| 4231 | else |
| 4232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4233 | /* end confdefs.h. */ |
| 4234 | |
| 4235 | int |
| 4236 | main () |
| 4237 | { |
| 4238 | #ifndef __GNUC__ |
| 4239 | choke me |
| 4240 | #endif |
| 4241 | |
| 4242 | ; |
| 4243 | return 0; |
| 4244 | } |
| 4245 | _ACEOF |
| 4246 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4247 | ac_compiler_gnu=yes |
| 4248 | else |
| 4249 | ac_compiler_gnu=no |
| 4250 | fi |
| 4251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4252 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4253 | |
| 4254 | fi |
| 4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4256 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4257 | if test $ac_compiler_gnu = yes; then |
| 4258 | GCC=yes |
| 4259 | else |
| 4260 | GCC= |
| 4261 | fi |
| 4262 | ac_test_CFLAGS=${CFLAGS+set} |
| 4263 | ac_save_CFLAGS=$CFLAGS |
| 4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4265 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4266 | if ${ac_cv_prog_cc_g+:} false; then : |
| 4267 | $as_echo_n "(cached) " >&6 |
| 4268 | else |
| 4269 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4270 | ac_c_werror_flag=yes |
| 4271 | ac_cv_prog_cc_g=no |
| 4272 | CFLAGS="-g" |
| 4273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4274 | /* end confdefs.h. */ |
| 4275 | |
| 4276 | int |
| 4277 | main () |
| 4278 | { |
| 4279 | |
| 4280 | ; |
| 4281 | return 0; |
| 4282 | } |
| 4283 | _ACEOF |
| 4284 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4285 | ac_cv_prog_cc_g=yes |
| 4286 | else |
| 4287 | CFLAGS="" |
| 4288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4289 | /* end confdefs.h. */ |
| 4290 | |
| 4291 | int |
| 4292 | main () |
| 4293 | { |
| 4294 | |
| 4295 | ; |
| 4296 | return 0; |
| 4297 | } |
| 4298 | _ACEOF |
| 4299 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4300 | |
| 4301 | else |
| 4302 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4303 | CFLAGS="-g" |
| 4304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4305 | /* end confdefs.h. */ |
| 4306 | |
| 4307 | int |
| 4308 | main () |
| 4309 | { |
| 4310 | |
| 4311 | ; |
| 4312 | return 0; |
| 4313 | } |
| 4314 | _ACEOF |
| 4315 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4316 | ac_cv_prog_cc_g=yes |
| 4317 | fi |
| 4318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4319 | fi |
| 4320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4321 | fi |
| 4322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4323 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4324 | fi |
| 4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4326 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4327 | if test "$ac_test_CFLAGS" = set; then |
| 4328 | CFLAGS=$ac_save_CFLAGS |
| 4329 | elif test $ac_cv_prog_cc_g = yes; then |
| 4330 | if test "$GCC" = yes; then |
| 4331 | CFLAGS="-g -O2" |
| 4332 | else |
| 4333 | CFLAGS="-g" |
| 4334 | fi |
| 4335 | else |
| 4336 | if test "$GCC" = yes; then |
| 4337 | CFLAGS="-O2" |
| 4338 | else |
| 4339 | CFLAGS= |
| 4340 | fi |
| 4341 | fi |
| 4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4343 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4344 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4345 | $as_echo_n "(cached) " >&6 |
| 4346 | else |
| 4347 | ac_cv_prog_cc_c89=no |
| 4348 | ac_save_CC=$CC |
| 4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4350 | /* end confdefs.h. */ |
| 4351 | #include <stdarg.h> |
| 4352 | #include <stdio.h> |
| 4353 | struct stat; |
| 4354 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4355 | struct buf { int x; }; |
| 4356 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4357 | static char *e (p, i) |
| 4358 | char **p; |
| 4359 | int i; |
| 4360 | { |
| 4361 | return p[i]; |
| 4362 | } |
| 4363 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4364 | { |
| 4365 | char *s; |
| 4366 | va_list v; |
| 4367 | va_start (v,p); |
| 4368 | s = g (p, va_arg (v,int)); |
| 4369 | va_end (v); |
| 4370 | return s; |
| 4371 | } |
| 4372 | |
| 4373 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4374 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4375 | These don't provoke an error unfortunately, instead are silently treated |
| 4376 | as 'x'. The following induces an error, until -std is added to get |
| 4377 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4378 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4379 | that's true only with -std. */ |
| 4380 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4381 | |
| 4382 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4383 | inside strings and character constants. */ |
| 4384 | #define FOO(x) 'x' |
| 4385 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4386 | |
| 4387 | int test (int i, double x); |
| 4388 | struct s1 {int (*f) (int a);}; |
| 4389 | struct s2 {int (*f) (double a);}; |
| 4390 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4391 | int argc; |
| 4392 | char **argv; |
| 4393 | int |
| 4394 | main () |
| 4395 | { |
| 4396 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4397 | ; |
| 4398 | return 0; |
| 4399 | } |
| 4400 | _ACEOF |
| 4401 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4402 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4403 | do |
| 4404 | CC="$ac_save_CC $ac_arg" |
| 4405 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4406 | ac_cv_prog_cc_c89=$ac_arg |
| 4407 | fi |
| 4408 | rm -f core conftest.err conftest.$ac_objext |
| 4409 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4410 | done |
| 4411 | rm -f conftest.$ac_ext |
| 4412 | CC=$ac_save_CC |
| 4413 | |
| 4414 | fi |
| 4415 | # AC_CACHE_VAL |
| 4416 | case "x$ac_cv_prog_cc_c89" in |
| 4417 | x) |
| 4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4419 | $as_echo "none needed" >&6; } ;; |
| 4420 | xno) |
| 4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4422 | $as_echo "unsupported" >&6; } ;; |
| 4423 | *) |
| 4424 | CC="$CC $ac_cv_prog_cc_c89" |
| 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4426 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4427 | esac |
| 4428 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4429 | |
| 4430 | fi |
| 4431 | |
| 4432 | ac_ext=c |
| 4433 | ac_cpp='$CPP $CPPFLAGS' |
| 4434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4437 | |
| 4438 | ac_ext=c |
| 4439 | ac_cpp='$CPP $CPPFLAGS' |
| 4440 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4441 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4442 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4444 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4445 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4446 | $as_echo_n "(cached) " >&6 |
| 4447 | else |
| 4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4449 | /* end confdefs.h. */ |
| 4450 | |
| 4451 | int |
| 4452 | main () |
| 4453 | { |
| 4454 | |
| 4455 | ; |
| 4456 | return 0; |
| 4457 | } |
| 4458 | _ACEOF |
| 4459 | # Make sure it works both with $CC and with simple cc. |
| 4460 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4461 | # compilers refuse to overwrite an existing .o file with -o, |
| 4462 | # though they will create one. |
| 4463 | am_cv_prog_cc_c_o=yes |
| 4464 | for am_i in 1 2; do |
| 4465 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4466 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4467 | ac_status=$? |
| 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4469 | (exit $ac_status); } \ |
| 4470 | && test -f conftest2.$ac_objext; then |
| 4471 | : OK |
| 4472 | else |
| 4473 | am_cv_prog_cc_c_o=no |
| 4474 | break |
| 4475 | fi |
| 4476 | done |
| 4477 | rm -f core conftest* |
| 4478 | unset am_i |
| 4479 | fi |
| 4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4481 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4482 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4483 | # Losing compiler, so override with the script. |
| 4484 | # FIXME: It is wrong to rewrite CC. |
| 4485 | # But if we don't then we get into trouble of one sort or another. |
| 4486 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4487 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4488 | CC="$am_aux_dir/compile $CC" |
| 4489 | fi |
| 4490 | ac_ext=c |
| 4491 | ac_cpp='$CPP $CPPFLAGS' |
| 4492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4495 | |
| 4496 | |
| 4497 | depcc="$CC" am_compiler_list= |
| 4498 | |
| 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4500 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4501 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4502 | $as_echo_n "(cached) " >&6 |
| 4503 | else |
| 4504 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4505 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4506 | # making bogus files that we don't know about and never remove. For |
| 4507 | # instance it was reported that on HP-UX the gcc test will end up |
| 4508 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4509 | # in D". |
| 4510 | rm -rf conftest.dir |
| 4511 | mkdir conftest.dir |
| 4512 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4513 | # using a relative directory. |
| 4514 | cp "$am_depcomp" conftest.dir |
| 4515 | cd conftest.dir |
| 4516 | # We will build objects and dependencies in a subdirectory because |
| 4517 | # it helps to detect inapplicable dependency modes. For instance |
| 4518 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4519 | # side effect of compilation, but ICC will put the dependencies in |
| 4520 | # the current directory while Tru64 will put them in the object |
| 4521 | # directory. |
| 4522 | mkdir sub |
| 4523 | |
| 4524 | am_cv_CC_dependencies_compiler_type=none |
| 4525 | if test "$am_compiler_list" = ""; then |
| 4526 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4527 | fi |
| 4528 | am__universal=false |
| 4529 | case " $depcc " in #( |
| 4530 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4531 | esac |
| 4532 | |
| 4533 | for depmode in $am_compiler_list; do |
| 4534 | # Setup a source with many dependencies, because some compilers |
| 4535 | # like to wrap large dependency lists on column 80 (with \), and |
| 4536 | # we should not choose a depcomp mode which is confused by this. |
| 4537 | # |
| 4538 | # We need to recreate these files for each test, as the compiler may |
| 4539 | # overwrite some of them when testing with obscure command lines. |
| 4540 | # This happens at least with the AIX C compiler. |
| 4541 | : > sub/conftest.c |
| 4542 | for i in 1 2 3 4 5 6; do |
| 4543 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4544 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4545 | # Solaris 10 /bin/sh. |
| 4546 | echo '/* dummy */' > sub/conftst$i.h |
| 4547 | done |
| 4548 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4549 | |
| 4550 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4551 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4552 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4553 | # versions had trouble with output in subdirs. |
| 4554 | am__obj=sub/conftest.${OBJEXT-o} |
| 4555 | am__minus_obj="-o $am__obj" |
| 4556 | case $depmode in |
| 4557 | gcc) |
| 4558 | # This depmode causes a compiler race in universal mode. |
| 4559 | test "$am__universal" = false || continue |
| 4560 | ;; |
| 4561 | nosideeffect) |
| 4562 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4563 | # only be used when explicitly requested. |
| 4564 | if test "x$enable_dependency_tracking" = xyes; then |
| 4565 | continue |
| 4566 | else |
| 4567 | break |
| 4568 | fi |
| 4569 | ;; |
| 4570 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4571 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4572 | # not run yet. These depmodes are late enough in the game, and |
| 4573 | # so weak that their functioning should not be impacted. |
| 4574 | am__obj=conftest.${OBJEXT-o} |
| 4575 | am__minus_obj= |
| 4576 | ;; |
| 4577 | none) break ;; |
| 4578 | esac |
| 4579 | if depmode=$depmode \ |
| 4580 | source=sub/conftest.c object=$am__obj \ |
| 4581 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4582 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4583 | >/dev/null 2>conftest.err && |
| 4584 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4585 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4586 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4587 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4588 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4589 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4590 | # that says an option was ignored or not supported. |
| 4591 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4592 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4593 | # The diagnosis changed in icc 8.0: |
| 4594 | # icc: Command line remark: option '-MP' not supported |
| 4595 | if (grep 'ignoring option' conftest.err || |
| 4596 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4597 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4598 | break |
| 4599 | fi |
| 4600 | fi |
| 4601 | done |
| 4602 | |
| 4603 | cd .. |
| 4604 | rm -rf conftest.dir |
| 4605 | else |
| 4606 | am_cv_CC_dependencies_compiler_type=none |
| 4607 | fi |
| 4608 | |
| 4609 | fi |
| 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4611 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4612 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4613 | |
| 4614 | if |
| 4615 | test "x$enable_dependency_tracking" != xno \ |
| 4616 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4617 | am__fastdepCC_TRUE= |
| 4618 | am__fastdepCC_FALSE='#' |
| 4619 | else |
| 4620 | am__fastdepCC_TRUE='#' |
| 4621 | am__fastdepCC_FALSE= |
| 4622 | fi |
| 4623 | |
| 4624 | |
| 4625 | case `pwd` in |
| 4626 | *\ * | *\ *) |
| 4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4628 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4629 | esac |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | macro_version='2.4.2' |
| 4634 | macro_revision='1.3337' |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | |
| 4639 | |
| 4640 | |
| 4641 | |
| 4642 | |
| 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4649 | |
| 4650 | # Make sure we can run config.sub. |
| 4651 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4652 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4653 | |
| 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4655 | $as_echo_n "checking build system type... " >&6; } |
| 4656 | if ${ac_cv_build+:} false; then : |
| 4657 | $as_echo_n "(cached) " >&6 |
| 4658 | else |
| 4659 | ac_build_alias=$build_alias |
| 4660 | test "x$ac_build_alias" = x && |
| 4661 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4662 | test "x$ac_build_alias" = x && |
| 4663 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4664 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4665 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4666 | |
| 4667 | fi |
| 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4669 | $as_echo "$ac_cv_build" >&6; } |
| 4670 | case $ac_cv_build in |
| 4671 | *-*-*) ;; |
| 4672 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4673 | esac |
| 4674 | build=$ac_cv_build |
| 4675 | ac_save_IFS=$IFS; IFS='-' |
| 4676 | set x $ac_cv_build |
| 4677 | shift |
| 4678 | build_cpu=$1 |
| 4679 | build_vendor=$2 |
| 4680 | shift; shift |
| 4681 | # Remember, the first character of IFS is used to create $*, |
| 4682 | # except with old shells: |
| 4683 | build_os=$* |
| 4684 | IFS=$ac_save_IFS |
| 4685 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4686 | |
| 4687 | |
| 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4689 | $as_echo_n "checking host system type... " >&6; } |
| 4690 | if ${ac_cv_host+:} false; then : |
| 4691 | $as_echo_n "(cached) " >&6 |
| 4692 | else |
| 4693 | if test "x$host_alias" = x; then |
| 4694 | ac_cv_host=$ac_cv_build |
| 4695 | else |
| 4696 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4697 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4698 | fi |
| 4699 | |
| 4700 | fi |
| 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4702 | $as_echo "$ac_cv_host" >&6; } |
| 4703 | case $ac_cv_host in |
| 4704 | *-*-*) ;; |
| 4705 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4706 | esac |
| 4707 | host=$ac_cv_host |
| 4708 | ac_save_IFS=$IFS; IFS='-' |
| 4709 | set x $ac_cv_host |
| 4710 | shift |
| 4711 | host_cpu=$1 |
| 4712 | host_vendor=$2 |
| 4713 | shift; shift |
| 4714 | # Remember, the first character of IFS is used to create $*, |
| 4715 | # except with old shells: |
| 4716 | host_os=$* |
| 4717 | IFS=$ac_save_IFS |
| 4718 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4719 | |
| 4720 | |
| 4721 | # Backslashify metacharacters that are still active within |
| 4722 | # double-quoted strings. |
| 4723 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4724 | |
| 4725 | # Same as above, but do not quote variable references. |
| 4726 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4727 | |
| 4728 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4729 | # double_quote_subst'ed string. |
| 4730 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4731 | |
| 4732 | # Sed substitution to delay expansion of an escaped single quote. |
| 4733 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4734 | |
| 4735 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4736 | no_glob_subst='s/\*/\\\*/g' |
| 4737 | |
| 4738 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4739 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4740 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4741 | |
| 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4743 | $as_echo_n "checking how to print strings... " >&6; } |
| 4744 | # Test print first, because it will be a builtin if present. |
| 4745 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4746 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4747 | ECHO='print -r --' |
| 4748 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4749 | ECHO='printf %s\n' |
| 4750 | else |
| 4751 | # Use this function as a fallback that always works. |
| 4752 | func_fallback_echo () |
| 4753 | { |
| 4754 | eval 'cat <<_LTECHO_EOF |
| 4755 | $1 |
| 4756 | _LTECHO_EOF' |
| 4757 | } |
| 4758 | ECHO='func_fallback_echo' |
| 4759 | fi |
| 4760 | |
| 4761 | # func_echo_all arg... |
| 4762 | # Invoke $ECHO with all args, space-separated. |
| 4763 | func_echo_all () |
| 4764 | { |
| 4765 | $ECHO "" |
| 4766 | } |
| 4767 | |
| 4768 | case "$ECHO" in |
| 4769 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4770 | $as_echo "printf" >&6; } ;; |
| 4771 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4772 | $as_echo "print -r" >&6; } ;; |
| 4773 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4774 | $as_echo "cat" >&6; } ;; |
| 4775 | esac |
| 4776 | |
| 4777 | |
| 4778 | |
| 4779 | |
| 4780 | |
| 4781 | |
| 4782 | |
| 4783 | |
| 4784 | |
| 4785 | |
| 4786 | |
| 4787 | |
| 4788 | |
| 4789 | |
| 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4791 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4792 | if ${ac_cv_path_SED+:} false; then : |
| 4793 | $as_echo_n "(cached) " >&6 |
| 4794 | else |
| 4795 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4796 | for ac_i in 1 2 3 4 5 6 7; do |
| 4797 | ac_script="$ac_script$as_nl$ac_script" |
| 4798 | done |
| 4799 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4800 | { ac_script=; unset ac_script;} |
| 4801 | if test -z "$SED"; then |
| 4802 | ac_path_SED_found=false |
| 4803 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4805 | for as_dir in $PATH |
| 4806 | do |
| 4807 | IFS=$as_save_IFS |
| 4808 | test -z "$as_dir" && as_dir=. |
| 4809 | for ac_prog in sed gsed; do |
| 4810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4811 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4812 | as_fn_executable_p "$ac_path_SED" || continue |
| 4813 | # Check for GNU ac_path_SED and select it if it is found. |
| 4814 | # Check for GNU $ac_path_SED |
| 4815 | case `"$ac_path_SED" --version 2>&1` in |
| 4816 | *GNU*) |
| 4817 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4818 | *) |
| 4819 | ac_count=0 |
| 4820 | $as_echo_n 0123456789 >"conftest.in" |
| 4821 | while : |
| 4822 | do |
| 4823 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4824 | mv "conftest.tmp" "conftest.in" |
| 4825 | cp "conftest.in" "conftest.nl" |
| 4826 | $as_echo '' >> "conftest.nl" |
| 4827 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4828 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4829 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4830 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4831 | # Best one so far, save it but keep looking for a better one |
| 4832 | ac_cv_path_SED="$ac_path_SED" |
| 4833 | ac_path_SED_max=$ac_count |
| 4834 | fi |
| 4835 | # 10*(2^10) chars as input seems more than enough |
| 4836 | test $ac_count -gt 10 && break |
| 4837 | done |
| 4838 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4839 | esac |
| 4840 | |
| 4841 | $ac_path_SED_found && break 3 |
| 4842 | done |
| 4843 | done |
| 4844 | done |
| 4845 | IFS=$as_save_IFS |
| 4846 | if test -z "$ac_cv_path_SED"; then |
| 4847 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4848 | fi |
| 4849 | else |
| 4850 | ac_cv_path_SED=$SED |
| 4851 | fi |
| 4852 | |
| 4853 | fi |
| 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4855 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4856 | SED="$ac_cv_path_SED" |
| 4857 | rm -f conftest.sed |
| 4858 | |
| 4859 | test -z "$SED" && SED=sed |
| 4860 | Xsed="$SED -e 1s/^X//" |
| 4861 | |
| 4862 | |
| 4863 | |
| 4864 | |
| 4865 | |
| 4866 | |
| 4867 | |
| 4868 | |
| 4869 | |
| 4870 | |
| 4871 | |
| 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4873 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4874 | if ${ac_cv_path_GREP+:} false; then : |
| 4875 | $as_echo_n "(cached) " >&6 |
| 4876 | else |
| 4877 | if test -z "$GREP"; then |
| 4878 | ac_path_GREP_found=false |
| 4879 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4881 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4882 | do |
| 4883 | IFS=$as_save_IFS |
| 4884 | test -z "$as_dir" && as_dir=. |
| 4885 | for ac_prog in grep ggrep; do |
| 4886 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4887 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4888 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4889 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4890 | # Check for GNU $ac_path_GREP |
| 4891 | case `"$ac_path_GREP" --version 2>&1` in |
| 4892 | *GNU*) |
| 4893 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4894 | *) |
| 4895 | ac_count=0 |
| 4896 | $as_echo_n 0123456789 >"conftest.in" |
| 4897 | while : |
| 4898 | do |
| 4899 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4900 | mv "conftest.tmp" "conftest.in" |
| 4901 | cp "conftest.in" "conftest.nl" |
| 4902 | $as_echo 'GREP' >> "conftest.nl" |
| 4903 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4904 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4905 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4906 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4907 | # Best one so far, save it but keep looking for a better one |
| 4908 | ac_cv_path_GREP="$ac_path_GREP" |
| 4909 | ac_path_GREP_max=$ac_count |
| 4910 | fi |
| 4911 | # 10*(2^10) chars as input seems more than enough |
| 4912 | test $ac_count -gt 10 && break |
| 4913 | done |
| 4914 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4915 | esac |
| 4916 | |
| 4917 | $ac_path_GREP_found && break 3 |
| 4918 | done |
| 4919 | done |
| 4920 | done |
| 4921 | IFS=$as_save_IFS |
| 4922 | if test -z "$ac_cv_path_GREP"; then |
| 4923 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4924 | fi |
| 4925 | else |
| 4926 | ac_cv_path_GREP=$GREP |
| 4927 | fi |
| 4928 | |
| 4929 | fi |
| 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4931 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4932 | GREP="$ac_cv_path_GREP" |
| 4933 | |
| 4934 | |
| 4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4936 | $as_echo_n "checking for egrep... " >&6; } |
| 4937 | if ${ac_cv_path_EGREP+:} false; then : |
| 4938 | $as_echo_n "(cached) " >&6 |
| 4939 | else |
| 4940 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4941 | then ac_cv_path_EGREP="$GREP -E" |
| 4942 | else |
| 4943 | if test -z "$EGREP"; then |
| 4944 | ac_path_EGREP_found=false |
| 4945 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4947 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4948 | do |
| 4949 | IFS=$as_save_IFS |
| 4950 | test -z "$as_dir" && as_dir=. |
| 4951 | for ac_prog in egrep; do |
| 4952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4953 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4954 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4955 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4956 | # Check for GNU $ac_path_EGREP |
| 4957 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4958 | *GNU*) |
| 4959 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4960 | *) |
| 4961 | ac_count=0 |
| 4962 | $as_echo_n 0123456789 >"conftest.in" |
| 4963 | while : |
| 4964 | do |
| 4965 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4966 | mv "conftest.tmp" "conftest.in" |
| 4967 | cp "conftest.in" "conftest.nl" |
| 4968 | $as_echo 'EGREP' >> "conftest.nl" |
| 4969 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4970 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4971 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4972 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4973 | # Best one so far, save it but keep looking for a better one |
| 4974 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4975 | ac_path_EGREP_max=$ac_count |
| 4976 | fi |
| 4977 | # 10*(2^10) chars as input seems more than enough |
| 4978 | test $ac_count -gt 10 && break |
| 4979 | done |
| 4980 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4981 | esac |
| 4982 | |
| 4983 | $ac_path_EGREP_found && break 3 |
| 4984 | done |
| 4985 | done |
| 4986 | done |
| 4987 | IFS=$as_save_IFS |
| 4988 | if test -z "$ac_cv_path_EGREP"; then |
| 4989 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4990 | fi |
| 4991 | else |
| 4992 | ac_cv_path_EGREP=$EGREP |
| 4993 | fi |
| 4994 | |
| 4995 | fi |
| 4996 | fi |
| 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4998 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4999 | EGREP="$ac_cv_path_EGREP" |
| 5000 | |
| 5001 | |
| 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5003 | $as_echo_n "checking for fgrep... " >&6; } |
| 5004 | if ${ac_cv_path_FGREP+:} false; then : |
| 5005 | $as_echo_n "(cached) " >&6 |
| 5006 | else |
| 5007 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5008 | then ac_cv_path_FGREP="$GREP -F" |
| 5009 | else |
| 5010 | if test -z "$FGREP"; then |
| 5011 | ac_path_FGREP_found=false |
| 5012 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5014 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5015 | do |
| 5016 | IFS=$as_save_IFS |
| 5017 | test -z "$as_dir" && as_dir=. |
| 5018 | for ac_prog in fgrep; do |
| 5019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5020 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5021 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 5022 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5023 | # Check for GNU $ac_path_FGREP |
| 5024 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5025 | *GNU*) |
| 5026 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5027 | *) |
| 5028 | ac_count=0 |
| 5029 | $as_echo_n 0123456789 >"conftest.in" |
| 5030 | while : |
| 5031 | do |
| 5032 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5033 | mv "conftest.tmp" "conftest.in" |
| 5034 | cp "conftest.in" "conftest.nl" |
| 5035 | $as_echo 'FGREP' >> "conftest.nl" |
| 5036 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5037 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5038 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5039 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5040 | # Best one so far, save it but keep looking for a better one |
| 5041 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5042 | ac_path_FGREP_max=$ac_count |
| 5043 | fi |
| 5044 | # 10*(2^10) chars as input seems more than enough |
| 5045 | test $ac_count -gt 10 && break |
| 5046 | done |
| 5047 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5048 | esac |
| 5049 | |
| 5050 | $ac_path_FGREP_found && break 3 |
| 5051 | done |
| 5052 | done |
| 5053 | done |
| 5054 | IFS=$as_save_IFS |
| 5055 | if test -z "$ac_cv_path_FGREP"; then |
| 5056 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5057 | fi |
| 5058 | else |
| 5059 | ac_cv_path_FGREP=$FGREP |
| 5060 | fi |
| 5061 | |
| 5062 | fi |
| 5063 | fi |
| 5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5065 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5066 | FGREP="$ac_cv_path_FGREP" |
| 5067 | |
| 5068 | |
| 5069 | test -z "$GREP" && GREP=grep |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | |
| 5076 | |
| 5077 | |
| 5078 | |
| 5079 | |
| 5080 | |
| 5081 | |
| 5082 | |
| 5083 | |
| 5084 | |
| 5085 | |
| 5086 | |
| 5087 | |
| 5088 | |
| 5089 | # Check whether --with-gnu-ld was given. |
| 5090 | if test "${with_gnu_ld+set}" = set; then : |
| 5091 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5092 | else |
| 5093 | with_gnu_ld=no |
| 5094 | fi |
| 5095 | |
| 5096 | ac_prog=ld |
| 5097 | if test "$GCC" = yes; then |
| 5098 | # Check if gcc -print-prog-name=ld gives a path. |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5100 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5101 | case $host in |
| 5102 | *-*-mingw*) |
| 5103 | # gcc leaves a trailing carriage return which upsets mingw |
| 5104 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5105 | *) |
| 5106 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5107 | esac |
| 5108 | case $ac_prog in |
| 5109 | # Accept absolute paths. |
| 5110 | [\\/]* | ?:[\\/]*) |
| 5111 | re_direlt='/[^/][^/]*/\.\./' |
| 5112 | # Canonicalize the pathname of ld |
| 5113 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5114 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5115 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5116 | done |
| 5117 | test -z "$LD" && LD="$ac_prog" |
| 5118 | ;; |
| 5119 | "") |
| 5120 | # If it fails, then pretend we aren't using GCC. |
| 5121 | ac_prog=ld |
| 5122 | ;; |
| 5123 | *) |
| 5124 | # If it is relative, then search for the first ld in PATH. |
| 5125 | with_gnu_ld=unknown |
| 5126 | ;; |
| 5127 | esac |
| 5128 | elif test "$with_gnu_ld" = yes; then |
| 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5130 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5131 | else |
| 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 5133 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5134 | fi |
| 5135 | if ${lt_cv_path_LD+:} false; then : |
| 5136 | $as_echo_n "(cached) " >&6 |
| 5137 | else |
| 5138 | if test -z "$LD"; then |
| 5139 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5140 | for ac_dir in $PATH; do |
| 5141 | IFS="$lt_save_ifs" |
| 5142 | test -z "$ac_dir" && ac_dir=. |
| 5143 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5144 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5145 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5146 | # but apparently some variants of GNU ld only accept -v. |
| 5147 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5148 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5149 | *GNU* | *'with BFD'*) |
| 5150 | test "$with_gnu_ld" != no && break |
| 5151 | ;; |
| 5152 | *) |
| 5153 | test "$with_gnu_ld" != yes && break |
| 5154 | ;; |
| 5155 | esac |
| 5156 | fi |
| 5157 | done |
| 5158 | IFS="$lt_save_ifs" |
| 5159 | else |
| 5160 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5161 | fi |
| 5162 | fi |
| 5163 | |
| 5164 | LD="$lt_cv_path_LD" |
| 5165 | if test -n "$LD"; then |
| 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5167 | $as_echo "$LD" >&6; } |
| 5168 | else |
| 5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5170 | $as_echo "no" >&6; } |
| 5171 | fi |
| 5172 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5174 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5175 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5176 | $as_echo_n "(cached) " >&6 |
| 5177 | else |
| 5178 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5179 | case `$LD -v 2>&1 </dev/null` in |
| 5180 | *GNU* | *'with BFD'*) |
| 5181 | lt_cv_prog_gnu_ld=yes |
| 5182 | ;; |
| 5183 | *) |
| 5184 | lt_cv_prog_gnu_ld=no |
| 5185 | ;; |
| 5186 | esac |
| 5187 | fi |
| 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5189 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5190 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5191 | |
| 5192 | |
| 5193 | |
| 5194 | |
| 5195 | |
| 5196 | |
| 5197 | |
| 5198 | |
| 5199 | |
| 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5201 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5202 | if ${lt_cv_path_NM+:} false; then : |
| 5203 | $as_echo_n "(cached) " >&6 |
| 5204 | else |
| 5205 | if test -n "$NM"; then |
| 5206 | # Let the user override the test. |
| 5207 | lt_cv_path_NM="$NM" |
| 5208 | else |
| 5209 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5210 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5211 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5212 | fi |
| 5213 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5214 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5215 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5216 | IFS="$lt_save_ifs" |
| 5217 | test -z "$ac_dir" && ac_dir=. |
| 5218 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5219 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5220 | # Check to see if the nm accepts a BSD-compat flag. |
| 5221 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5222 | # nm: unknown option "B" ignored |
| 5223 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5224 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5225 | */dev/null* | *'Invalid file or object type'*) |
| 5226 | lt_cv_path_NM="$tmp_nm -B" |
| 5227 | break |
| 5228 | ;; |
| 5229 | *) |
| 5230 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5231 | */dev/null*) |
| 5232 | lt_cv_path_NM="$tmp_nm -p" |
| 5233 | break |
| 5234 | ;; |
| 5235 | *) |
| 5236 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5237 | continue # so that we can try to find one that supports BSD flags |
| 5238 | ;; |
| 5239 | esac |
| 5240 | ;; |
| 5241 | esac |
| 5242 | fi |
| 5243 | done |
| 5244 | IFS="$lt_save_ifs" |
| 5245 | done |
| 5246 | : ${lt_cv_path_NM=no} |
| 5247 | fi |
| 5248 | fi |
| 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5250 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5251 | if test "$lt_cv_path_NM" != "no"; then |
| 5252 | NM="$lt_cv_path_NM" |
| 5253 | else |
| 5254 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5255 | if test -n "$DUMPBIN"; then : |
| 5256 | # Let the user override the test. |
| 5257 | else |
| 5258 | if test -n "$ac_tool_prefix"; then |
| 5259 | for ac_prog in dumpbin "link -dump" |
| 5260 | do |
| 5261 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5262 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5264 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5265 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5266 | $as_echo_n "(cached) " >&6 |
| 5267 | else |
| 5268 | if test -n "$DUMPBIN"; then |
| 5269 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5270 | else |
| 5271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5272 | for as_dir in $PATH |
| 5273 | do |
| 5274 | IFS=$as_save_IFS |
| 5275 | test -z "$as_dir" && as_dir=. |
| 5276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5278 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5280 | break 2 |
| 5281 | fi |
| 5282 | done |
| 5283 | done |
| 5284 | IFS=$as_save_IFS |
| 5285 | |
| 5286 | fi |
| 5287 | fi |
| 5288 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5289 | if test -n "$DUMPBIN"; then |
| 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5291 | $as_echo "$DUMPBIN" >&6; } |
| 5292 | else |
| 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5294 | $as_echo "no" >&6; } |
| 5295 | fi |
| 5296 | |
| 5297 | |
| 5298 | test -n "$DUMPBIN" && break |
| 5299 | done |
| 5300 | fi |
| 5301 | if test -z "$DUMPBIN"; then |
| 5302 | ac_ct_DUMPBIN=$DUMPBIN |
| 5303 | for ac_prog in dumpbin "link -dump" |
| 5304 | do |
| 5305 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5306 | set dummy $ac_prog; ac_word=$2 |
| 5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5308 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5309 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 5310 | $as_echo_n "(cached) " >&6 |
| 5311 | else |
| 5312 | if test -n "$ac_ct_DUMPBIN"; then |
| 5313 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5314 | else |
| 5315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5316 | for as_dir in $PATH |
| 5317 | do |
| 5318 | IFS=$as_save_IFS |
| 5319 | test -z "$as_dir" && as_dir=. |
| 5320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5322 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5324 | break 2 |
| 5325 | fi |
| 5326 | done |
| 5327 | done |
| 5328 | IFS=$as_save_IFS |
| 5329 | |
| 5330 | fi |
| 5331 | fi |
| 5332 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5333 | if test -n "$ac_ct_DUMPBIN"; then |
| 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5335 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5336 | else |
| 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5338 | $as_echo "no" >&6; } |
| 5339 | fi |
| 5340 | |
| 5341 | |
| 5342 | test -n "$ac_ct_DUMPBIN" && break |
| 5343 | done |
| 5344 | |
| 5345 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5346 | DUMPBIN=":" |
| 5347 | else |
| 5348 | case $cross_compiling:$ac_tool_warned in |
| 5349 | yes:) |
| 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5351 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5352 | ac_tool_warned=yes ;; |
| 5353 | esac |
| 5354 | DUMPBIN=$ac_ct_DUMPBIN |
| 5355 | fi |
| 5356 | fi |
| 5357 | |
| 5358 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5359 | *COFF*) |
| 5360 | DUMPBIN="$DUMPBIN -symbols" |
| 5361 | ;; |
| 5362 | *) |
| 5363 | DUMPBIN=: |
| 5364 | ;; |
| 5365 | esac |
| 5366 | fi |
| 5367 | |
| 5368 | if test "$DUMPBIN" != ":"; then |
| 5369 | NM="$DUMPBIN" |
| 5370 | fi |
| 5371 | fi |
| 5372 | test -z "$NM" && NM=nm |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
| 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5380 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5381 | if ${lt_cv_nm_interface+:} false; then : |
| 5382 | $as_echo_n "(cached) " >&6 |
| 5383 | else |
| 5384 | lt_cv_nm_interface="BSD nm" |
| 5385 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5386 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5387 | (eval "$ac_compile" 2>conftest.err) |
| 5388 | cat conftest.err >&5 |
| 5389 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5390 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5391 | cat conftest.err >&5 |
| 5392 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5393 | cat conftest.out >&5 |
| 5394 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5395 | lt_cv_nm_interface="MS dumpbin" |
| 5396 | fi |
| 5397 | rm -f conftest* |
| 5398 | fi |
| 5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5400 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5401 | |
| 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5403 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 5404 | LN_S=$as_ln_s |
| 5405 | if test "$LN_S" = "ln -s"; then |
| 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5407 | $as_echo "yes" >&6; } |
| 5408 | else |
| 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5410 | $as_echo "no, using $LN_S" >&6; } |
| 5411 | fi |
| 5412 | |
| 5413 | # find the maximum length of command line arguments |
| 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5415 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5416 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 5417 | $as_echo_n "(cached) " >&6 |
| 5418 | else |
| 5419 | i=0 |
| 5420 | teststring="ABCD" |
| 5421 | |
| 5422 | case $build_os in |
| 5423 | msdosdjgpp*) |
| 5424 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5425 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5426 | # during glob expansion). Even if it were fixed, the result of this |
| 5427 | # check would be larger than it should be. |
| 5428 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5429 | ;; |
| 5430 | |
| 5431 | gnu*) |
| 5432 | # Under GNU Hurd, this test is not required because there is |
| 5433 | # no limit to the length of command line arguments. |
| 5434 | # Libtool will interpret -1 as no limit whatsoever |
| 5435 | lt_cv_sys_max_cmd_len=-1; |
| 5436 | ;; |
| 5437 | |
| 5438 | cygwin* | mingw* | cegcc*) |
| 5439 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5440 | # about 5 minutes as the teststring grows exponentially. |
| 5441 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5442 | # you end up with a "frozen" computer, even though with patience |
| 5443 | # the test eventually succeeds (with a max line length of 256k). |
| 5444 | # Instead, let's just punt: use the minimum linelength reported by |
| 5445 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5446 | lt_cv_sys_max_cmd_len=8192; |
| 5447 | ;; |
| 5448 | |
| 5449 | mint*) |
| 5450 | # On MiNT this can take a long time and run out of memory. |
| 5451 | lt_cv_sys_max_cmd_len=8192; |
| 5452 | ;; |
| 5453 | |
| 5454 | amigaos*) |
| 5455 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5456 | # So we just punt and use a minimum line length of 8192. |
| 5457 | lt_cv_sys_max_cmd_len=8192; |
| 5458 | ;; |
| 5459 | |
| 5460 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5461 | # This has been around since 386BSD, at least. Likely further. |
| 5462 | if test -x /sbin/sysctl; then |
| 5463 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5464 | elif test -x /usr/sbin/sysctl; then |
| 5465 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5466 | else |
| 5467 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5468 | fi |
| 5469 | # And add a safety zone |
| 5470 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5471 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5472 | ;; |
| 5473 | |
| 5474 | interix*) |
| 5475 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5476 | lt_cv_sys_max_cmd_len=196608 |
| 5477 | ;; |
| 5478 | |
| 5479 | os2*) |
| 5480 | # The test takes a long time on OS/2. |
| 5481 | lt_cv_sys_max_cmd_len=8192 |
| 5482 | ;; |
| 5483 | |
| 5484 | osf*) |
| 5485 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5486 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5487 | # nice to cause kernel panics so lets avoid the loop below. |
| 5488 | # First set a reasonable default. |
| 5489 | lt_cv_sys_max_cmd_len=16384 |
| 5490 | # |
| 5491 | if test -x /sbin/sysconfig; then |
| 5492 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5493 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5494 | esac |
| 5495 | fi |
| 5496 | ;; |
| 5497 | sco3.2v5*) |
| 5498 | lt_cv_sys_max_cmd_len=102400 |
| 5499 | ;; |
| 5500 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5501 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5502 | if test -n "$kargmax"; then |
| 5503 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5504 | else |
| 5505 | lt_cv_sys_max_cmd_len=32768 |
| 5506 | fi |
| 5507 | ;; |
| 5508 | *) |
| 5509 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5510 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 5511 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 5512 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5513 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5514 | else |
| 5515 | # Make teststring a little bigger before we do anything with it. |
| 5516 | # a 1K string should be a reasonable start. |
| 5517 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5518 | teststring=$teststring$teststring |
| 5519 | done |
| 5520 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5521 | # If test is not a shell built-in, we'll probably end up computing a |
| 5522 | # maximum length that is only half of the actual maximum length, but |
| 5523 | # we can't tell. |
| 5524 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5525 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5526 | test $i != 17 # 1/2 MB should be enough |
| 5527 | do |
| 5528 | i=`expr $i + 1` |
| 5529 | teststring=$teststring$teststring |
| 5530 | done |
| 5531 | # Only check the string length outside the loop. |
| 5532 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5533 | teststring= |
| 5534 | # Add a significant safety factor because C++ compilers can tack on |
| 5535 | # massive amounts of additional arguments before passing them to the |
| 5536 | # linker. It appears as though 1/2 is a usable value. |
| 5537 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5538 | fi |
| 5539 | ;; |
| 5540 | esac |
| 5541 | |
| 5542 | fi |
| 5543 | |
| 5544 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5546 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5547 | else |
| 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5549 | $as_echo "none" >&6; } |
| 5550 | fi |
| 5551 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5552 | |
| 5553 | |
| 5554 | |
| 5555 | |
| 5556 | |
| 5557 | |
| 5558 | : ${CP="cp -f"} |
| 5559 | : ${MV="mv -f"} |
| 5560 | : ${RM="rm -f"} |
| 5561 | |
| 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5563 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5564 | # Try some XSI features |
| 5565 | xsi_shell=no |
| 5566 | ( _lt_dummy="a/b/c" |
| 5567 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5568 | = c,a/b,b/c, \ |
| 5569 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5570 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5571 | && xsi_shell=yes |
| 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5573 | $as_echo "$xsi_shell" >&6; } |
| 5574 | |
| 5575 | |
| 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5577 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5578 | lt_shell_append=no |
| 5579 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5580 | >/dev/null 2>&1 \ |
| 5581 | && lt_shell_append=yes |
| 5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5583 | $as_echo "$lt_shell_append" >&6; } |
| 5584 | |
| 5585 | |
| 5586 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5587 | lt_unset=unset |
| 5588 | else |
| 5589 | lt_unset=false |
| 5590 | fi |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
| 5595 | |
| 5596 | # test EBCDIC or ASCII |
| 5597 | case `echo X|tr X '\101'` in |
| 5598 | A) # ASCII based system |
| 5599 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5600 | lt_SP2NL='tr \040 \012' |
| 5601 | lt_NL2SP='tr \015\012 \040\040' |
| 5602 | ;; |
| 5603 | *) # EBCDIC based system |
| 5604 | lt_SP2NL='tr \100 \n' |
| 5605 | lt_NL2SP='tr \r\n \100\100' |
| 5606 | ;; |
| 5607 | esac |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5618 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5619 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5620 | $as_echo_n "(cached) " >&6 |
| 5621 | else |
| 5622 | case $host in |
| 5623 | *-*-mingw* ) |
| 5624 | case $build in |
| 5625 | *-*-mingw* ) # actually msys |
| 5626 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5627 | ;; |
| 5628 | *-*-cygwin* ) |
| 5629 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5630 | ;; |
| 5631 | * ) # otherwise, assume *nix |
| 5632 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5633 | ;; |
| 5634 | esac |
| 5635 | ;; |
| 5636 | *-*-cygwin* ) |
| 5637 | case $build in |
| 5638 | *-*-mingw* ) # actually msys |
| 5639 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5640 | ;; |
| 5641 | *-*-cygwin* ) |
| 5642 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5643 | ;; |
| 5644 | * ) # otherwise, assume *nix |
| 5645 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5646 | ;; |
| 5647 | esac |
| 5648 | ;; |
| 5649 | * ) # unhandled hosts (and "normal" native builds) |
| 5650 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5651 | ;; |
| 5652 | esac |
| 5653 | |
| 5654 | fi |
| 5655 | |
| 5656 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5658 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5659 | |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5665 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5666 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5667 | $as_echo_n "(cached) " >&6 |
| 5668 | else |
| 5669 | #assume ordinary cross tools, or native build. |
| 5670 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5671 | case $host in |
| 5672 | *-*-mingw* ) |
| 5673 | case $build in |
| 5674 | *-*-mingw* ) # actually msys |
| 5675 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5676 | ;; |
| 5677 | esac |
| 5678 | ;; |
| 5679 | esac |
| 5680 | |
| 5681 | fi |
| 5682 | |
| 5683 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5685 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5686 | |
| 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5692 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5693 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5694 | $as_echo_n "(cached) " >&6 |
| 5695 | else |
| 5696 | lt_cv_ld_reload_flag='-r' |
| 5697 | fi |
| 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5699 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5700 | reload_flag=$lt_cv_ld_reload_flag |
| 5701 | case $reload_flag in |
| 5702 | "" | " "*) ;; |
| 5703 | *) reload_flag=" $reload_flag" ;; |
| 5704 | esac |
| 5705 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5706 | case $host_os in |
| 5707 | cygwin* | mingw* | pw32* | cegcc*) |
| 5708 | if test "$GCC" != yes; then |
| 5709 | reload_cmds=false |
| 5710 | fi |
| 5711 | ;; |
| 5712 | darwin*) |
| 5713 | if test "$GCC" = yes; then |
| 5714 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5715 | else |
| 5716 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5717 | fi |
| 5718 | ;; |
| 5719 | esac |
| 5720 | |
| 5721 | |
| 5722 | |
| 5723 | |
| 5724 | |
| 5725 | |
| 5726 | |
| 5727 | |
| 5728 | |
| 5729 | if test -n "$ac_tool_prefix"; then |
| 5730 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5731 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5733 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5734 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5735 | $as_echo_n "(cached) " >&6 |
| 5736 | else |
| 5737 | if test -n "$OBJDUMP"; then |
| 5738 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5739 | else |
| 5740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5741 | for as_dir in $PATH |
| 5742 | do |
| 5743 | IFS=$as_save_IFS |
| 5744 | test -z "$as_dir" && as_dir=. |
| 5745 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5747 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5749 | break 2 |
| 5750 | fi |
| 5751 | done |
| 5752 | done |
| 5753 | IFS=$as_save_IFS |
| 5754 | |
| 5755 | fi |
| 5756 | fi |
| 5757 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5758 | if test -n "$OBJDUMP"; then |
| 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5760 | $as_echo "$OBJDUMP" >&6; } |
| 5761 | else |
| 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5763 | $as_echo "no" >&6; } |
| 5764 | fi |
| 5765 | |
| 5766 | |
| 5767 | fi |
| 5768 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5769 | ac_ct_OBJDUMP=$OBJDUMP |
| 5770 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5771 | set dummy objdump; ac_word=$2 |
| 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5773 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5774 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5775 | $as_echo_n "(cached) " >&6 |
| 5776 | else |
| 5777 | if test -n "$ac_ct_OBJDUMP"; then |
| 5778 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5779 | else |
| 5780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5781 | for as_dir in $PATH |
| 5782 | do |
| 5783 | IFS=$as_save_IFS |
| 5784 | test -z "$as_dir" && as_dir=. |
| 5785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5787 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5789 | break 2 |
| 5790 | fi |
| 5791 | done |
| 5792 | done |
| 5793 | IFS=$as_save_IFS |
| 5794 | |
| 5795 | fi |
| 5796 | fi |
| 5797 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5798 | if test -n "$ac_ct_OBJDUMP"; then |
| 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5800 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5801 | else |
| 5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5803 | $as_echo "no" >&6; } |
| 5804 | fi |
| 5805 | |
| 5806 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5807 | OBJDUMP="false" |
| 5808 | else |
| 5809 | case $cross_compiling:$ac_tool_warned in |
| 5810 | yes:) |
| 5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5812 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5813 | ac_tool_warned=yes ;; |
| 5814 | esac |
| 5815 | OBJDUMP=$ac_ct_OBJDUMP |
| 5816 | fi |
| 5817 | else |
| 5818 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5819 | fi |
| 5820 | |
| 5821 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5822 | |
| 5823 | |
| 5824 | |
| 5825 | |
| 5826 | |
| 5827 | |
| 5828 | |
| 5829 | |
| 5830 | |
| 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5832 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5833 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5834 | $as_echo_n "(cached) " >&6 |
| 5835 | else |
| 5836 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5837 | lt_cv_file_magic_test_file= |
| 5838 | lt_cv_deplibs_check_method='unknown' |
| 5839 | # Need to set the preceding variable on all platforms that support |
| 5840 | # interlibrary dependencies. |
| 5841 | # 'none' -- dependencies not supported. |
| 5842 | # `unknown' -- same as none, but documents that we really don't know. |
| 5843 | # 'pass_all' -- all dependencies passed with no checks. |
| 5844 | # 'test_compile' -- check by making test program. |
| 5845 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5846 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5847 | # If you have `file' or equivalent on your system and you're not sure |
| 5848 | # whether `pass_all' will *always* work, you probably want this one. |
| 5849 | |
| 5850 | case $host_os in |
| 5851 | aix[4-9]*) |
| 5852 | lt_cv_deplibs_check_method=pass_all |
| 5853 | ;; |
| 5854 | |
| 5855 | beos*) |
| 5856 | lt_cv_deplibs_check_method=pass_all |
| 5857 | ;; |
| 5858 | |
| 5859 | bsdi[45]*) |
| 5860 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5861 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5862 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5863 | ;; |
| 5864 | |
| 5865 | cygwin*) |
| 5866 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5867 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5868 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5869 | ;; |
| 5870 | |
| 5871 | mingw* | pw32*) |
| 5872 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5873 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5874 | # unless we find 'file', for example because we are cross-compiling. |
| 5875 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5876 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5877 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5878 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5879 | else |
| 5880 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5881 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5882 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5883 | fi |
| 5884 | ;; |
| 5885 | |
| 5886 | cegcc*) |
| 5887 | # use the weaker test based on 'objdump'. See mingw*. |
| 5888 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5889 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5890 | ;; |
| 5891 | |
| 5892 | darwin* | rhapsody*) |
| 5893 | lt_cv_deplibs_check_method=pass_all |
| 5894 | ;; |
| 5895 | |
| 5896 | freebsd* | dragonfly*) |
| 5897 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5898 | case $host_cpu in |
| 5899 | i*86 ) |
| 5900 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5901 | # Let's accept both of them until this is cleared up. |
| 5902 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5903 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5904 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5905 | ;; |
| 5906 | esac |
| 5907 | else |
| 5908 | lt_cv_deplibs_check_method=pass_all |
| 5909 | fi |
| 5910 | ;; |
| 5911 | |
| 5912 | haiku*) |
| 5913 | lt_cv_deplibs_check_method=pass_all |
| 5914 | ;; |
| 5915 | |
| 5916 | hpux10.20* | hpux11*) |
| 5917 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5918 | case $host_cpu in |
| 5919 | ia64*) |
| 5920 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5921 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5922 | ;; |
| 5923 | hppa*64*) |
| 5924 | 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]' |
| 5925 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5926 | ;; |
| 5927 | *) |
| 5928 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5929 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5930 | ;; |
| 5931 | esac |
| 5932 | ;; |
| 5933 | |
| 5934 | interix[3-9]*) |
| 5935 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5936 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5937 | ;; |
| 5938 | |
| 5939 | irix5* | irix6* | nonstopux*) |
| 5940 | case $LD in |
| 5941 | *-32|*"-32 ") libmagic=32-bit;; |
| 5942 | *-n32|*"-n32 ") libmagic=N32;; |
| 5943 | *-64|*"-64 ") libmagic=64-bit;; |
| 5944 | *) libmagic=never-match;; |
| 5945 | esac |
| 5946 | lt_cv_deplibs_check_method=pass_all |
| 5947 | ;; |
| 5948 | |
| 5949 | # This must be glibc/ELF. |
| 5950 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 5951 | lt_cv_deplibs_check_method=pass_all |
| 5952 | ;; |
| 5953 | |
| 5954 | netbsd* | netbsdelf*-gnu) |
| 5955 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5956 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5957 | else |
| 5958 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5959 | fi |
| 5960 | ;; |
| 5961 | |
| 5962 | newos6*) |
| 5963 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5964 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5965 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5966 | ;; |
| 5967 | |
| 5968 | *nto* | *qnx*) |
| 5969 | lt_cv_deplibs_check_method=pass_all |
| 5970 | ;; |
| 5971 | |
| 5972 | openbsd*) |
| 5973 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5974 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5975 | else |
| 5976 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5977 | fi |
| 5978 | ;; |
| 5979 | |
| 5980 | osf3* | osf4* | osf5*) |
| 5981 | lt_cv_deplibs_check_method=pass_all |
| 5982 | ;; |
| 5983 | |
| 5984 | rdos*) |
| 5985 | lt_cv_deplibs_check_method=pass_all |
| 5986 | ;; |
| 5987 | |
| 5988 | solaris*) |
| 5989 | lt_cv_deplibs_check_method=pass_all |
| 5990 | ;; |
| 5991 | |
| 5992 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5993 | lt_cv_deplibs_check_method=pass_all |
| 5994 | ;; |
| 5995 | |
| 5996 | sysv4 | sysv4.3*) |
| 5997 | case $host_vendor in |
| 5998 | motorola) |
| 5999 | 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]' |
| 6000 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6001 | ;; |
| 6002 | ncr) |
| 6003 | lt_cv_deplibs_check_method=pass_all |
| 6004 | ;; |
| 6005 | sequent) |
| 6006 | lt_cv_file_magic_cmd='/bin/file' |
| 6007 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 6008 | ;; |
| 6009 | sni) |
| 6010 | lt_cv_file_magic_cmd='/bin/file' |
| 6011 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 6012 | lt_cv_file_magic_test_file=/lib/libc.so |
| 6013 | ;; |
| 6014 | siemens) |
| 6015 | lt_cv_deplibs_check_method=pass_all |
| 6016 | ;; |
| 6017 | pc) |
| 6018 | lt_cv_deplibs_check_method=pass_all |
| 6019 | ;; |
| 6020 | esac |
| 6021 | ;; |
| 6022 | |
| 6023 | tpf*) |
| 6024 | lt_cv_deplibs_check_method=pass_all |
| 6025 | ;; |
| 6026 | esac |
| 6027 | |
| 6028 | fi |
| 6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 6030 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 6031 | |
| 6032 | file_magic_glob= |
| 6033 | want_nocaseglob=no |
| 6034 | if test "$build" = "$host"; then |
| 6035 | case $host_os in |
| 6036 | mingw* | pw32*) |
| 6037 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 6038 | want_nocaseglob=yes |
| 6039 | else |
| 6040 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 6041 | fi |
| 6042 | ;; |
| 6043 | esac |
| 6044 | fi |
| 6045 | |
| 6046 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 6047 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 6048 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6049 | |
| 6050 | |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | |
| 6066 | |
| 6067 | |
| 6068 | |
| 6069 | |
| 6070 | |
| 6071 | if test -n "$ac_tool_prefix"; then |
| 6072 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6073 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6075 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6076 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 6077 | $as_echo_n "(cached) " >&6 |
| 6078 | else |
| 6079 | if test -n "$DLLTOOL"; then |
| 6080 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6081 | else |
| 6082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6083 | for as_dir in $PATH |
| 6084 | do |
| 6085 | IFS=$as_save_IFS |
| 6086 | test -z "$as_dir" && as_dir=. |
| 6087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6089 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 6090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6091 | break 2 |
| 6092 | fi |
| 6093 | done |
| 6094 | done |
| 6095 | IFS=$as_save_IFS |
| 6096 | |
| 6097 | fi |
| 6098 | fi |
| 6099 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6100 | if test -n "$DLLTOOL"; then |
| 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 6102 | $as_echo "$DLLTOOL" >&6; } |
| 6103 | else |
| 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6105 | $as_echo "no" >&6; } |
| 6106 | fi |
| 6107 | |
| 6108 | |
| 6109 | fi |
| 6110 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6111 | ac_ct_DLLTOOL=$DLLTOOL |
| 6112 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6113 | set dummy dlltool; ac_word=$2 |
| 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6115 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6116 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 6117 | $as_echo_n "(cached) " >&6 |
| 6118 | else |
| 6119 | if test -n "$ac_ct_DLLTOOL"; then |
| 6120 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6121 | else |
| 6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6123 | for as_dir in $PATH |
| 6124 | do |
| 6125 | IFS=$as_save_IFS |
| 6126 | test -z "$as_dir" && as_dir=. |
| 6127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6129 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 6130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6131 | break 2 |
| 6132 | fi |
| 6133 | done |
| 6134 | done |
| 6135 | IFS=$as_save_IFS |
| 6136 | |
| 6137 | fi |
| 6138 | fi |
| 6139 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6140 | if test -n "$ac_ct_DLLTOOL"; then |
| 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 6142 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 6143 | else |
| 6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6145 | $as_echo "no" >&6; } |
| 6146 | fi |
| 6147 | |
| 6148 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6149 | DLLTOOL="false" |
| 6150 | else |
| 6151 | case $cross_compiling:$ac_tool_warned in |
| 6152 | yes:) |
| 6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6154 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6155 | ac_tool_warned=yes ;; |
| 6156 | esac |
| 6157 | DLLTOOL=$ac_ct_DLLTOOL |
| 6158 | fi |
| 6159 | else |
| 6160 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6161 | fi |
| 6162 | |
| 6163 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6164 | |
| 6165 | |
| 6166 | |
| 6167 | |
| 6168 | |
| 6169 | |
| 6170 | |
| 6171 | |
| 6172 | |
| 6173 | |
| 6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 6175 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 6176 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 6177 | $as_echo_n "(cached) " >&6 |
| 6178 | else |
| 6179 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 6180 | |
| 6181 | case $host_os in |
| 6182 | cygwin* | mingw* | pw32* | cegcc*) |
| 6183 | # two different shell functions defined in ltmain.sh |
| 6184 | # decide which to use based on capabilities of $DLLTOOL |
| 6185 | case `$DLLTOOL --help 2>&1` in |
| 6186 | *--identify-strict*) |
| 6187 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6188 | ;; |
| 6189 | *) |
| 6190 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 6191 | ;; |
| 6192 | esac |
| 6193 | ;; |
| 6194 | *) |
| 6195 | # fallback: assume linklib IS sharedlib |
| 6196 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 6197 | ;; |
| 6198 | esac |
| 6199 | |
| 6200 | fi |
| 6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 6202 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 6203 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 6204 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 6205 | |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 | |
| 6210 | |
| 6211 | |
| 6212 | |
| 6213 | if test -n "$ac_tool_prefix"; then |
| 6214 | for ac_prog in ar |
| 6215 | do |
| 6216 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6217 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6219 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6220 | if ${ac_cv_prog_AR+:} false; then : |
| 6221 | $as_echo_n "(cached) " >&6 |
| 6222 | else |
| 6223 | if test -n "$AR"; then |
| 6224 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6225 | else |
| 6226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6227 | for as_dir in $PATH |
| 6228 | do |
| 6229 | IFS=$as_save_IFS |
| 6230 | test -z "$as_dir" && as_dir=. |
| 6231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6233 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 6234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6235 | break 2 |
| 6236 | fi |
| 6237 | done |
| 6238 | done |
| 6239 | IFS=$as_save_IFS |
| 6240 | |
| 6241 | fi |
| 6242 | fi |
| 6243 | AR=$ac_cv_prog_AR |
| 6244 | if test -n "$AR"; then |
| 6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6246 | $as_echo "$AR" >&6; } |
| 6247 | else |
| 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6249 | $as_echo "no" >&6; } |
| 6250 | fi |
| 6251 | |
| 6252 | |
| 6253 | test -n "$AR" && break |
| 6254 | done |
| 6255 | fi |
| 6256 | if test -z "$AR"; then |
| 6257 | ac_ct_AR=$AR |
| 6258 | for ac_prog in ar |
| 6259 | do |
| 6260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6261 | set dummy $ac_prog; ac_word=$2 |
| 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6263 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6264 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6265 | $as_echo_n "(cached) " >&6 |
| 6266 | else |
| 6267 | if test -n "$ac_ct_AR"; then |
| 6268 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6269 | else |
| 6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6271 | for as_dir in $PATH |
| 6272 | do |
| 6273 | IFS=$as_save_IFS |
| 6274 | test -z "$as_dir" && as_dir=. |
| 6275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6277 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6279 | break 2 |
| 6280 | fi |
| 6281 | done |
| 6282 | done |
| 6283 | IFS=$as_save_IFS |
| 6284 | |
| 6285 | fi |
| 6286 | fi |
| 6287 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6288 | if test -n "$ac_ct_AR"; then |
| 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6290 | $as_echo "$ac_ct_AR" >&6; } |
| 6291 | else |
| 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6293 | $as_echo "no" >&6; } |
| 6294 | fi |
| 6295 | |
| 6296 | |
| 6297 | test -n "$ac_ct_AR" && break |
| 6298 | done |
| 6299 | |
| 6300 | if test "x$ac_ct_AR" = x; then |
| 6301 | AR="false" |
| 6302 | else |
| 6303 | case $cross_compiling:$ac_tool_warned in |
| 6304 | yes:) |
| 6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6306 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6307 | ac_tool_warned=yes ;; |
| 6308 | esac |
| 6309 | AR=$ac_ct_AR |
| 6310 | fi |
| 6311 | fi |
| 6312 | |
| 6313 | : ${AR=ar} |
| 6314 | : ${AR_FLAGS=cru} |
| 6315 | |
| 6316 | |
| 6317 | |
| 6318 | |
| 6319 | |
| 6320 | |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | |
| 6325 | |
| 6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 6327 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 6328 | if ${lt_cv_ar_at_file+:} false; then : |
| 6329 | $as_echo_n "(cached) " >&6 |
| 6330 | else |
| 6331 | lt_cv_ar_at_file=no |
| 6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6333 | /* end confdefs.h. */ |
| 6334 | |
| 6335 | int |
| 6336 | main () |
| 6337 | { |
| 6338 | |
| 6339 | ; |
| 6340 | return 0; |
| 6341 | } |
| 6342 | _ACEOF |
| 6343 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6344 | echo conftest.$ac_objext > conftest.lst |
| 6345 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 6346 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6347 | (eval $lt_ar_try) 2>&5 |
| 6348 | ac_status=$? |
| 6349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6350 | test $ac_status = 0; } |
| 6351 | if test "$ac_status" -eq 0; then |
| 6352 | # Ensure the archiver fails upon bogus file names. |
| 6353 | rm -f conftest.$ac_objext libconftest.a |
| 6354 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6355 | (eval $lt_ar_try) 2>&5 |
| 6356 | ac_status=$? |
| 6357 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6358 | test $ac_status = 0; } |
| 6359 | if test "$ac_status" -ne 0; then |
| 6360 | lt_cv_ar_at_file=@ |
| 6361 | fi |
| 6362 | fi |
| 6363 | rm -f conftest.* libconftest.a |
| 6364 | |
| 6365 | fi |
| 6366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6367 | |
| 6368 | fi |
| 6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6370 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 6371 | |
| 6372 | if test "x$lt_cv_ar_at_file" = xno; then |
| 6373 | archiver_list_spec= |
| 6374 | else |
| 6375 | archiver_list_spec=$lt_cv_ar_at_file |
| 6376 | fi |
| 6377 | |
| 6378 | |
| 6379 | |
| 6380 | |
| 6381 | |
| 6382 | |
| 6383 | |
| 6384 | if test -n "$ac_tool_prefix"; then |
| 6385 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6386 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6388 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6389 | if ${ac_cv_prog_STRIP+:} false; then : |
| 6390 | $as_echo_n "(cached) " >&6 |
| 6391 | else |
| 6392 | if test -n "$STRIP"; then |
| 6393 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6394 | else |
| 6395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6396 | for as_dir in $PATH |
| 6397 | do |
| 6398 | IFS=$as_save_IFS |
| 6399 | test -z "$as_dir" && as_dir=. |
| 6400 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6402 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6404 | break 2 |
| 6405 | fi |
| 6406 | done |
| 6407 | done |
| 6408 | IFS=$as_save_IFS |
| 6409 | |
| 6410 | fi |
| 6411 | fi |
| 6412 | STRIP=$ac_cv_prog_STRIP |
| 6413 | if test -n "$STRIP"; then |
| 6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6415 | $as_echo "$STRIP" >&6; } |
| 6416 | else |
| 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6418 | $as_echo "no" >&6; } |
| 6419 | fi |
| 6420 | |
| 6421 | |
| 6422 | fi |
| 6423 | if test -z "$ac_cv_prog_STRIP"; then |
| 6424 | ac_ct_STRIP=$STRIP |
| 6425 | # Extract the first word of "strip", so it can be a program name with args. |
| 6426 | set dummy strip; ac_word=$2 |
| 6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6428 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6429 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 6430 | $as_echo_n "(cached) " >&6 |
| 6431 | else |
| 6432 | if test -n "$ac_ct_STRIP"; then |
| 6433 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6434 | else |
| 6435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6436 | for as_dir in $PATH |
| 6437 | do |
| 6438 | IFS=$as_save_IFS |
| 6439 | test -z "$as_dir" && as_dir=. |
| 6440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6442 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6444 | break 2 |
| 6445 | fi |
| 6446 | done |
| 6447 | done |
| 6448 | IFS=$as_save_IFS |
| 6449 | |
| 6450 | fi |
| 6451 | fi |
| 6452 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6453 | if test -n "$ac_ct_STRIP"; then |
| 6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6455 | $as_echo "$ac_ct_STRIP" >&6; } |
| 6456 | else |
| 6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6458 | $as_echo "no" >&6; } |
| 6459 | fi |
| 6460 | |
| 6461 | if test "x$ac_ct_STRIP" = x; then |
| 6462 | STRIP=":" |
| 6463 | else |
| 6464 | case $cross_compiling:$ac_tool_warned in |
| 6465 | yes:) |
| 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6467 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6468 | ac_tool_warned=yes ;; |
| 6469 | esac |
| 6470 | STRIP=$ac_ct_STRIP |
| 6471 | fi |
| 6472 | else |
| 6473 | STRIP="$ac_cv_prog_STRIP" |
| 6474 | fi |
| 6475 | |
| 6476 | test -z "$STRIP" && STRIP=: |
| 6477 | |
| 6478 | |
| 6479 | |
| 6480 | |
| 6481 | |
| 6482 | |
| 6483 | if test -n "$ac_tool_prefix"; then |
| 6484 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6485 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6487 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6488 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 6489 | $as_echo_n "(cached) " >&6 |
| 6490 | else |
| 6491 | if test -n "$RANLIB"; then |
| 6492 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6493 | else |
| 6494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6495 | for as_dir in $PATH |
| 6496 | do |
| 6497 | IFS=$as_save_IFS |
| 6498 | test -z "$as_dir" && as_dir=. |
| 6499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6501 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6503 | break 2 |
| 6504 | fi |
| 6505 | done |
| 6506 | done |
| 6507 | IFS=$as_save_IFS |
| 6508 | |
| 6509 | fi |
| 6510 | fi |
| 6511 | RANLIB=$ac_cv_prog_RANLIB |
| 6512 | if test -n "$RANLIB"; then |
| 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6514 | $as_echo "$RANLIB" >&6; } |
| 6515 | else |
| 6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6517 | $as_echo "no" >&6; } |
| 6518 | fi |
| 6519 | |
| 6520 | |
| 6521 | fi |
| 6522 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6523 | ac_ct_RANLIB=$RANLIB |
| 6524 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6525 | set dummy ranlib; ac_word=$2 |
| 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6527 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6528 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6529 | $as_echo_n "(cached) " >&6 |
| 6530 | else |
| 6531 | if test -n "$ac_ct_RANLIB"; then |
| 6532 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6533 | else |
| 6534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6535 | for as_dir in $PATH |
| 6536 | do |
| 6537 | IFS=$as_save_IFS |
| 6538 | test -z "$as_dir" && as_dir=. |
| 6539 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6541 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6543 | break 2 |
| 6544 | fi |
| 6545 | done |
| 6546 | done |
| 6547 | IFS=$as_save_IFS |
| 6548 | |
| 6549 | fi |
| 6550 | fi |
| 6551 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6552 | if test -n "$ac_ct_RANLIB"; then |
| 6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6554 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6555 | else |
| 6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6557 | $as_echo "no" >&6; } |
| 6558 | fi |
| 6559 | |
| 6560 | if test "x$ac_ct_RANLIB" = x; then |
| 6561 | RANLIB=":" |
| 6562 | else |
| 6563 | case $cross_compiling:$ac_tool_warned in |
| 6564 | yes:) |
| 6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6566 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6567 | ac_tool_warned=yes ;; |
| 6568 | esac |
| 6569 | RANLIB=$ac_ct_RANLIB |
| 6570 | fi |
| 6571 | else |
| 6572 | RANLIB="$ac_cv_prog_RANLIB" |
| 6573 | fi |
| 6574 | |
| 6575 | test -z "$RANLIB" && RANLIB=: |
| 6576 | |
| 6577 | |
| 6578 | |
| 6579 | |
| 6580 | |
| 6581 | |
| 6582 | # Determine commands to create old-style static archives. |
| 6583 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6584 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6585 | old_postuninstall_cmds= |
| 6586 | |
| 6587 | if test -n "$RANLIB"; then |
| 6588 | case $host_os in |
| 6589 | openbsd*) |
| 6590 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6591 | ;; |
| 6592 | *) |
| 6593 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6594 | ;; |
| 6595 | esac |
| 6596 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6597 | fi |
| 6598 | |
| 6599 | case $host_os in |
| 6600 | darwin*) |
| 6601 | lock_old_archive_extraction=yes ;; |
| 6602 | *) |
| 6603 | lock_old_archive_extraction=no ;; |
| 6604 | esac |
| 6605 | |
| 6606 | |
| 6607 | |
| 6608 | |
| 6609 | |
| 6610 | |
| 6611 | |
| 6612 | |
| 6613 | |
| 6614 | |
| 6615 | |
| 6616 | |
| 6617 | |
| 6618 | |
| 6619 | |
| 6620 | |
| 6621 | |
| 6622 | |
| 6623 | |
| 6624 | |
| 6625 | |
| 6626 | |
| 6627 | |
| 6628 | |
| 6629 | |
| 6630 | |
| 6631 | |
| 6632 | |
| 6633 | |
| 6634 | |
| 6635 | |
| 6636 | |
| 6637 | |
| 6638 | |
| 6639 | |
| 6640 | |
| 6641 | |
| 6642 | |
| 6643 | |
| 6644 | # If no C compiler was specified, use CC. |
| 6645 | LTCC=${LTCC-"$CC"} |
| 6646 | |
| 6647 | # If no C compiler flags were specified, use CFLAGS. |
| 6648 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6649 | |
| 6650 | # Allow CC to be a program name with arguments. |
| 6651 | compiler=$CC |
| 6652 | |
| 6653 | |
| 6654 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6656 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6657 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6658 | $as_echo_n "(cached) " >&6 |
| 6659 | else |
| 6660 | |
| 6661 | # These are sane defaults that work on at least a few old systems. |
| 6662 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6663 | |
| 6664 | # Character class describing NM global symbol codes. |
| 6665 | symcode='[BCDEGRST]' |
| 6666 | |
| 6667 | # Regexp to match symbols that can be accessed directly from C. |
| 6668 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6669 | |
| 6670 | # Define system-specific variables. |
| 6671 | case $host_os in |
| 6672 | aix*) |
| 6673 | symcode='[BCDT]' |
| 6674 | ;; |
| 6675 | cygwin* | mingw* | pw32* | cegcc*) |
| 6676 | symcode='[ABCDGISTW]' |
| 6677 | ;; |
| 6678 | hpux*) |
| 6679 | if test "$host_cpu" = ia64; then |
| 6680 | symcode='[ABCDEGRST]' |
| 6681 | fi |
| 6682 | ;; |
| 6683 | irix* | nonstopux*) |
| 6684 | symcode='[BCDEGRST]' |
| 6685 | ;; |
| 6686 | osf*) |
| 6687 | symcode='[BCDEGQRST]' |
| 6688 | ;; |
| 6689 | solaris*) |
| 6690 | symcode='[BDRT]' |
| 6691 | ;; |
| 6692 | sco3.2v5*) |
| 6693 | symcode='[DT]' |
| 6694 | ;; |
| 6695 | sysv4.2uw2*) |
| 6696 | symcode='[DT]' |
| 6697 | ;; |
| 6698 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6699 | symcode='[ABDT]' |
| 6700 | ;; |
| 6701 | sysv4) |
| 6702 | symcode='[DFNSTU]' |
| 6703 | ;; |
| 6704 | esac |
| 6705 | |
| 6706 | # If we're using GNU nm, then use its standard symbol codes. |
| 6707 | case `$NM -V 2>&1` in |
| 6708 | *GNU* | *'with BFD'*) |
| 6709 | symcode='[ABCDGIRSTW]' ;; |
| 6710 | esac |
| 6711 | |
| 6712 | # Transform an extracted symbol line into a proper C declaration. |
| 6713 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6714 | # so use this general approach. |
| 6715 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6716 | |
| 6717 | # Transform an extracted symbol line into symbol name and symbol address |
| 6718 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6719 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 6720 | |
| 6721 | # Handle CRLF in mingw tool chain |
| 6722 | opt_cr= |
| 6723 | case $build_os in |
| 6724 | mingw*) |
| 6725 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6726 | ;; |
| 6727 | esac |
| 6728 | |
| 6729 | # Try without a prefix underscore, then with it. |
| 6730 | for ac_symprfx in "" "_"; do |
| 6731 | |
| 6732 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6733 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6734 | |
| 6735 | # Write the raw and C identifiers. |
| 6736 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6737 | # Fake it for dumpbin and say T for any non-static function |
| 6738 | # and D for any global variable. |
| 6739 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6740 | # which start with @ or ?. |
| 6741 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6742 | " {last_section=section; section=\$ 3};"\ |
| 6743 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6744 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6745 | " \$ 0!~/External *\|/{next};"\ |
| 6746 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6747 | " {if(hide[section]) next};"\ |
| 6748 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6749 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6750 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6751 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6752 | " ' prfx=^$ac_symprfx" |
| 6753 | else |
| 6754 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6755 | fi |
| 6756 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6757 | |
| 6758 | # Check to see that the pipe works correctly. |
| 6759 | pipe_works=no |
| 6760 | |
| 6761 | rm -f conftest* |
| 6762 | cat > conftest.$ac_ext <<_LT_EOF |
| 6763 | #ifdef __cplusplus |
| 6764 | extern "C" { |
| 6765 | #endif |
| 6766 | char nm_test_var; |
| 6767 | void nm_test_func(void); |
| 6768 | void nm_test_func(void){} |
| 6769 | #ifdef __cplusplus |
| 6770 | } |
| 6771 | #endif |
| 6772 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6773 | _LT_EOF |
| 6774 | |
| 6775 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6776 | (eval $ac_compile) 2>&5 |
| 6777 | ac_status=$? |
| 6778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6779 | test $ac_status = 0; }; then |
| 6780 | # Now try to grab the symbols. |
| 6781 | nlist=conftest.nm |
| 6782 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6783 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6784 | ac_status=$? |
| 6785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6786 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6787 | # Try sorting and uniquifying the output. |
| 6788 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6789 | mv -f "$nlist"T "$nlist" |
| 6790 | else |
| 6791 | rm -f "$nlist"T |
| 6792 | fi |
| 6793 | |
| 6794 | # Make sure that we snagged all the symbols we need. |
| 6795 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6796 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6797 | cat <<_LT_EOF > conftest.$ac_ext |
| 6798 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6799 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6800 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6801 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6802 | # define LT_DLSYM_CONST |
| 6803 | #elif defined(__osf__) |
| 6804 | /* This system does not cope well with relocations in const data. */ |
| 6805 | # define LT_DLSYM_CONST |
| 6806 | #else |
| 6807 | # define LT_DLSYM_CONST const |
| 6808 | #endif |
| 6809 | |
| 6810 | #ifdef __cplusplus |
| 6811 | extern "C" { |
| 6812 | #endif |
| 6813 | |
| 6814 | _LT_EOF |
| 6815 | # Now generate the symbol file. |
| 6816 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6817 | |
| 6818 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6819 | |
| 6820 | /* The mapping between symbol names and symbols. */ |
| 6821 | LT_DLSYM_CONST struct { |
| 6822 | const char *name; |
| 6823 | void *address; |
| 6824 | } |
| 6825 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6826 | { |
| 6827 | { "@PROGRAM@", (void *) 0 }, |
| 6828 | _LT_EOF |
| 6829 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6830 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6831 | {0, (void *) 0} |
| 6832 | }; |
| 6833 | |
| 6834 | /* This works around a problem in FreeBSD linker */ |
| 6835 | #ifdef FREEBSD_WORKAROUND |
| 6836 | static const void *lt_preloaded_setup() { |
| 6837 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6838 | } |
| 6839 | #endif |
| 6840 | |
| 6841 | #ifdef __cplusplus |
| 6842 | } |
| 6843 | #endif |
| 6844 | _LT_EOF |
| 6845 | # Now try linking the two files. |
| 6846 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6847 | lt_globsym_save_LIBS=$LIBS |
| 6848 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6849 | LIBS="conftstm.$ac_objext" |
| 6850 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6851 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6852 | (eval $ac_link) 2>&5 |
| 6853 | ac_status=$? |
| 6854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6855 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6856 | pipe_works=yes |
| 6857 | fi |
| 6858 | LIBS=$lt_globsym_save_LIBS |
| 6859 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6860 | else |
| 6861 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6862 | fi |
| 6863 | else |
| 6864 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6865 | fi |
| 6866 | else |
| 6867 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6868 | fi |
| 6869 | else |
| 6870 | echo "$progname: failed program was:" >&5 |
| 6871 | cat conftest.$ac_ext >&5 |
| 6872 | fi |
| 6873 | rm -rf conftest* conftst* |
| 6874 | |
| 6875 | # Do not use the global_symbol_pipe unless it works. |
| 6876 | if test "$pipe_works" = yes; then |
| 6877 | break |
| 6878 | else |
| 6879 | lt_cv_sys_global_symbol_pipe= |
| 6880 | fi |
| 6881 | done |
| 6882 | |
| 6883 | fi |
| 6884 | |
| 6885 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6886 | lt_cv_sys_global_symbol_to_cdecl= |
| 6887 | fi |
| 6888 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6890 | $as_echo "failed" >&6; } |
| 6891 | else |
| 6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6893 | $as_echo "ok" >&6; } |
| 6894 | fi |
| 6895 | |
| 6896 | # Response file support. |
| 6897 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6898 | nm_file_list_spec='@' |
| 6899 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6900 | nm_file_list_spec='@' |
| 6901 | fi |
| 6902 | |
| 6903 | |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | |
| 6908 | |
| 6909 | |
| 6910 | |
| 6911 | |
| 6912 | |
| 6913 | |
| 6914 | |
| 6915 | |
| 6916 | |
| 6917 | |
| 6918 | |
| 6919 | |
| 6920 | |
| 6921 | |
| 6922 | |
| 6923 | |
| 6924 | |
| 6925 | |
| 6926 | |
| 6927 | |
| 6928 | |
| 6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6930 | $as_echo_n "checking for sysroot... " >&6; } |
| 6931 | |
| 6932 | # Check whether --with-sysroot was given. |
| 6933 | if test "${with_sysroot+set}" = set; then : |
| 6934 | withval=$with_sysroot; |
| 6935 | else |
| 6936 | with_sysroot=no |
| 6937 | fi |
| 6938 | |
| 6939 | |
| 6940 | lt_sysroot= |
| 6941 | case ${with_sysroot} in #( |
| 6942 | yes) |
| 6943 | if test "$GCC" = yes; then |
| 6944 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6945 | fi |
| 6946 | ;; #( |
| 6947 | /*) |
| 6948 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6949 | ;; #( |
| 6950 | no|'') |
| 6951 | ;; #( |
| 6952 | *) |
| 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6954 | $as_echo "${with_sysroot}" >&6; } |
| 6955 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6956 | ;; |
| 6957 | esac |
| 6958 | |
| 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6960 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6961 | |
| 6962 | |
| 6963 | |
| 6964 | |
| 6965 | |
| 6966 | # Check whether --enable-libtool-lock was given. |
| 6967 | if test "${enable_libtool_lock+set}" = set; then : |
| 6968 | enableval=$enable_libtool_lock; |
| 6969 | fi |
| 6970 | |
| 6971 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6972 | |
| 6973 | # Some flags need to be propagated to the compiler or linker for good |
| 6974 | # libtool support. |
| 6975 | case $host in |
| 6976 | ia64-*-hpux*) |
| 6977 | # Find out which ABI we are using. |
| 6978 | echo 'int i;' > conftest.$ac_ext |
| 6979 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6980 | (eval $ac_compile) 2>&5 |
| 6981 | ac_status=$? |
| 6982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6983 | test $ac_status = 0; }; then |
| 6984 | case `/usr/bin/file conftest.$ac_objext` in |
| 6985 | *ELF-32*) |
| 6986 | HPUX_IA64_MODE="32" |
| 6987 | ;; |
| 6988 | *ELF-64*) |
| 6989 | HPUX_IA64_MODE="64" |
| 6990 | ;; |
| 6991 | esac |
| 6992 | fi |
| 6993 | rm -rf conftest* |
| 6994 | ;; |
| 6995 | *-*-irix6*) |
| 6996 | # Find out which ABI we are using. |
| 6997 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6998 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6999 | (eval $ac_compile) 2>&5 |
| 7000 | ac_status=$? |
| 7001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7002 | test $ac_status = 0; }; then |
| 7003 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7004 | case `/usr/bin/file conftest.$ac_objext` in |
| 7005 | *32-bit*) |
| 7006 | LD="${LD-ld} -melf32bsmip" |
| 7007 | ;; |
| 7008 | *N32*) |
| 7009 | LD="${LD-ld} -melf32bmipn32" |
| 7010 | ;; |
| 7011 | *64-bit*) |
| 7012 | LD="${LD-ld} -melf64bmip" |
| 7013 | ;; |
| 7014 | esac |
| 7015 | else |
| 7016 | case `/usr/bin/file conftest.$ac_objext` in |
| 7017 | *32-bit*) |
| 7018 | LD="${LD-ld} -32" |
| 7019 | ;; |
| 7020 | *N32*) |
| 7021 | LD="${LD-ld} -n32" |
| 7022 | ;; |
| 7023 | *64-bit*) |
| 7024 | LD="${LD-ld} -64" |
| 7025 | ;; |
| 7026 | esac |
| 7027 | fi |
| 7028 | fi |
| 7029 | rm -rf conftest* |
| 7030 | ;; |
| 7031 | |
| 7032 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 7033 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 7034 | # Find out which ABI we are using. |
| 7035 | echo 'int i;' > conftest.$ac_ext |
| 7036 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7037 | (eval $ac_compile) 2>&5 |
| 7038 | ac_status=$? |
| 7039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7040 | test $ac_status = 0; }; then |
| 7041 | case `/usr/bin/file conftest.o` in |
| 7042 | *32-bit*) |
| 7043 | case $host in |
| 7044 | x86_64-*kfreebsd*-gnu) |
| 7045 | LD="${LD-ld} -m elf_i386_fbsd" |
| 7046 | ;; |
| 7047 | x86_64-*linux*) |
| 7048 | case `/usr/bin/file conftest.o` in |
| 7049 | *x86-64*) |
| 7050 | LD="${LD-ld} -m elf32_x86_64" |
| 7051 | ;; |
| 7052 | *) |
| 7053 | LD="${LD-ld} -m elf_i386" |
| 7054 | ;; |
| 7055 | esac |
| 7056 | ;; |
| 7057 | powerpc64le-*) |
| 7058 | LD="${LD-ld} -m elf32lppclinux" |
| 7059 | ;; |
| 7060 | powerpc64-*) |
| 7061 | LD="${LD-ld} -m elf32ppclinux" |
| 7062 | ;; |
| 7063 | s390x-*linux*) |
| 7064 | LD="${LD-ld} -m elf_s390" |
| 7065 | ;; |
| 7066 | sparc64-*linux*) |
| 7067 | LD="${LD-ld} -m elf32_sparc" |
| 7068 | ;; |
| 7069 | esac |
| 7070 | ;; |
| 7071 | *64-bit*) |
| 7072 | case $host in |
| 7073 | x86_64-*kfreebsd*-gnu) |
| 7074 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 7075 | ;; |
| 7076 | x86_64-*linux*) |
| 7077 | LD="${LD-ld} -m elf_x86_64" |
| 7078 | ;; |
| 7079 | powerpcle-*) |
| 7080 | LD="${LD-ld} -m elf64lppc" |
| 7081 | ;; |
| 7082 | powerpc-*) |
| 7083 | LD="${LD-ld} -m elf64ppc" |
| 7084 | ;; |
| 7085 | s390*-*linux*|s390*-*tpf*) |
| 7086 | LD="${LD-ld} -m elf64_s390" |
| 7087 | ;; |
| 7088 | sparc*-*linux*) |
| 7089 | LD="${LD-ld} -m elf64_sparc" |
| 7090 | ;; |
| 7091 | esac |
| 7092 | ;; |
| 7093 | esac |
| 7094 | fi |
| 7095 | rm -rf conftest* |
| 7096 | ;; |
| 7097 | |
| 7098 | *-*-sco3.2v5*) |
| 7099 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 7100 | SAVE_CFLAGS="$CFLAGS" |
| 7101 | CFLAGS="$CFLAGS -belf" |
| 7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 7103 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 7104 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 7105 | $as_echo_n "(cached) " >&6 |
| 7106 | else |
| 7107 | ac_ext=c |
| 7108 | ac_cpp='$CPP $CPPFLAGS' |
| 7109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7112 | |
| 7113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7114 | /* end confdefs.h. */ |
| 7115 | |
| 7116 | int |
| 7117 | main () |
| 7118 | { |
| 7119 | |
| 7120 | ; |
| 7121 | return 0; |
| 7122 | } |
| 7123 | _ACEOF |
| 7124 | if ac_fn_c_try_link "$LINENO"; then : |
| 7125 | lt_cv_cc_needs_belf=yes |
| 7126 | else |
| 7127 | lt_cv_cc_needs_belf=no |
| 7128 | fi |
| 7129 | rm -f core conftest.err conftest.$ac_objext \ |
| 7130 | conftest$ac_exeext conftest.$ac_ext |
| 7131 | ac_ext=c |
| 7132 | ac_cpp='$CPP $CPPFLAGS' |
| 7133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7136 | |
| 7137 | fi |
| 7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 7139 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 7140 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 7141 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 7142 | CFLAGS="$SAVE_CFLAGS" |
| 7143 | fi |
| 7144 | ;; |
| 7145 | *-*solaris*) |
| 7146 | # Find out which ABI we are using. |
| 7147 | echo 'int i;' > conftest.$ac_ext |
| 7148 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7149 | (eval $ac_compile) 2>&5 |
| 7150 | ac_status=$? |
| 7151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7152 | test $ac_status = 0; }; then |
| 7153 | case `/usr/bin/file conftest.o` in |
| 7154 | *64-bit*) |
| 7155 | case $lt_cv_prog_gnu_ld in |
| 7156 | yes*) |
| 7157 | case $host in |
| 7158 | i?86-*-solaris*) |
| 7159 | LD="${LD-ld} -m elf_x86_64" |
| 7160 | ;; |
| 7161 | sparc*-*-solaris*) |
| 7162 | LD="${LD-ld} -m elf64_sparc" |
| 7163 | ;; |
| 7164 | esac |
| 7165 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 7166 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 7167 | LD="${LD-ld}_sol2" |
| 7168 | fi |
| 7169 | ;; |
| 7170 | *) |
| 7171 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 7172 | LD="${LD-ld} -64" |
| 7173 | fi |
| 7174 | ;; |
| 7175 | esac |
| 7176 | ;; |
| 7177 | esac |
| 7178 | fi |
| 7179 | rm -rf conftest* |
| 7180 | ;; |
| 7181 | esac |
| 7182 | |
| 7183 | need_locks="$enable_libtool_lock" |
| 7184 | |
| 7185 | if test -n "$ac_tool_prefix"; then |
| 7186 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 7187 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7189 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7190 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 7191 | $as_echo_n "(cached) " >&6 |
| 7192 | else |
| 7193 | if test -n "$MANIFEST_TOOL"; then |
| 7194 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 7195 | else |
| 7196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7197 | for as_dir in $PATH |
| 7198 | do |
| 7199 | IFS=$as_save_IFS |
| 7200 | test -z "$as_dir" && as_dir=. |
| 7201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7203 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 7204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7205 | break 2 |
| 7206 | fi |
| 7207 | done |
| 7208 | done |
| 7209 | IFS=$as_save_IFS |
| 7210 | |
| 7211 | fi |
| 7212 | fi |
| 7213 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 7214 | if test -n "$MANIFEST_TOOL"; then |
| 7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 7216 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 7217 | else |
| 7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7219 | $as_echo "no" >&6; } |
| 7220 | fi |
| 7221 | |
| 7222 | |
| 7223 | fi |
| 7224 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 7225 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 7226 | # Extract the first word of "mt", so it can be a program name with args. |
| 7227 | set dummy mt; ac_word=$2 |
| 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7229 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7230 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 7231 | $as_echo_n "(cached) " >&6 |
| 7232 | else |
| 7233 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7234 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 7235 | else |
| 7236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7237 | for as_dir in $PATH |
| 7238 | do |
| 7239 | IFS=$as_save_IFS |
| 7240 | test -z "$as_dir" && as_dir=. |
| 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_ac_ct_MANIFEST_TOOL="mt" |
| 7244 | $as_echo "$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 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 7254 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 7256 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 7257 | else |
| 7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7259 | $as_echo "no" >&6; } |
| 7260 | fi |
| 7261 | |
| 7262 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 7263 | MANIFEST_TOOL=":" |
| 7264 | else |
| 7265 | case $cross_compiling:$ac_tool_warned in |
| 7266 | yes:) |
| 7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7269 | ac_tool_warned=yes ;; |
| 7270 | esac |
| 7271 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 7272 | fi |
| 7273 | else |
| 7274 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 7275 | fi |
| 7276 | |
| 7277 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 7279 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 7280 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 7281 | $as_echo_n "(cached) " >&6 |
| 7282 | else |
| 7283 | lt_cv_path_mainfest_tool=no |
| 7284 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 7285 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 7286 | cat conftest.err >&5 |
| 7287 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 7288 | lt_cv_path_mainfest_tool=yes |
| 7289 | fi |
| 7290 | rm -f conftest* |
| 7291 | fi |
| 7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7293 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7294 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7295 | MANIFEST_TOOL=: |
| 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | |
| 7300 | |
| 7301 | |
| 7302 | |
| 7303 | case $host_os in |
| 7304 | rhapsody* | darwin*) |
| 7305 | if test -n "$ac_tool_prefix"; then |
| 7306 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 7307 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7309 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7310 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 7311 | $as_echo_n "(cached) " >&6 |
| 7312 | else |
| 7313 | if test -n "$DSYMUTIL"; then |
| 7314 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 7315 | else |
| 7316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7317 | for as_dir in $PATH |
| 7318 | do |
| 7319 | IFS=$as_save_IFS |
| 7320 | test -z "$as_dir" && as_dir=. |
| 7321 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7323 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 7324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7325 | break 2 |
| 7326 | fi |
| 7327 | done |
| 7328 | done |
| 7329 | IFS=$as_save_IFS |
| 7330 | |
| 7331 | fi |
| 7332 | fi |
| 7333 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 7334 | if test -n "$DSYMUTIL"; then |
| 7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 7336 | $as_echo "$DSYMUTIL" >&6; } |
| 7337 | else |
| 7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7339 | $as_echo "no" >&6; } |
| 7340 | fi |
| 7341 | |
| 7342 | |
| 7343 | fi |
| 7344 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 7345 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 7346 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 7347 | set dummy dsymutil; ac_word=$2 |
| 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7349 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7350 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 7351 | $as_echo_n "(cached) " >&6 |
| 7352 | else |
| 7353 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7354 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 7355 | else |
| 7356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7357 | for as_dir in $PATH |
| 7358 | do |
| 7359 | IFS=$as_save_IFS |
| 7360 | test -z "$as_dir" && as_dir=. |
| 7361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7363 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 7364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7365 | break 2 |
| 7366 | fi |
| 7367 | done |
| 7368 | done |
| 7369 | IFS=$as_save_IFS |
| 7370 | |
| 7371 | fi |
| 7372 | fi |
| 7373 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7374 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7376 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7377 | else |
| 7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7379 | $as_echo "no" >&6; } |
| 7380 | fi |
| 7381 | |
| 7382 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 7383 | DSYMUTIL=":" |
| 7384 | else |
| 7385 | case $cross_compiling:$ac_tool_warned in |
| 7386 | yes:) |
| 7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7388 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7389 | ac_tool_warned=yes ;; |
| 7390 | esac |
| 7391 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7392 | fi |
| 7393 | else |
| 7394 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7395 | fi |
| 7396 | |
| 7397 | if test -n "$ac_tool_prefix"; then |
| 7398 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7399 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7401 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7402 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7403 | $as_echo_n "(cached) " >&6 |
| 7404 | else |
| 7405 | if test -n "$NMEDIT"; then |
| 7406 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7407 | else |
| 7408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7409 | for as_dir in $PATH |
| 7410 | do |
| 7411 | IFS=$as_save_IFS |
| 7412 | test -z "$as_dir" && as_dir=. |
| 7413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7415 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7417 | break 2 |
| 7418 | fi |
| 7419 | done |
| 7420 | done |
| 7421 | IFS=$as_save_IFS |
| 7422 | |
| 7423 | fi |
| 7424 | fi |
| 7425 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7426 | if test -n "$NMEDIT"; then |
| 7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7428 | $as_echo "$NMEDIT" >&6; } |
| 7429 | else |
| 7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7431 | $as_echo "no" >&6; } |
| 7432 | fi |
| 7433 | |
| 7434 | |
| 7435 | fi |
| 7436 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7437 | ac_ct_NMEDIT=$NMEDIT |
| 7438 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7439 | set dummy nmedit; ac_word=$2 |
| 7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7441 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7442 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7443 | $as_echo_n "(cached) " >&6 |
| 7444 | else |
| 7445 | if test -n "$ac_ct_NMEDIT"; then |
| 7446 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7447 | else |
| 7448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7449 | for as_dir in $PATH |
| 7450 | do |
| 7451 | IFS=$as_save_IFS |
| 7452 | test -z "$as_dir" && as_dir=. |
| 7453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7455 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7457 | break 2 |
| 7458 | fi |
| 7459 | done |
| 7460 | done |
| 7461 | IFS=$as_save_IFS |
| 7462 | |
| 7463 | fi |
| 7464 | fi |
| 7465 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7466 | if test -n "$ac_ct_NMEDIT"; then |
| 7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7468 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7469 | else |
| 7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7471 | $as_echo "no" >&6; } |
| 7472 | fi |
| 7473 | |
| 7474 | if test "x$ac_ct_NMEDIT" = x; then |
| 7475 | NMEDIT=":" |
| 7476 | else |
| 7477 | case $cross_compiling:$ac_tool_warned in |
| 7478 | yes:) |
| 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7481 | ac_tool_warned=yes ;; |
| 7482 | esac |
| 7483 | NMEDIT=$ac_ct_NMEDIT |
| 7484 | fi |
| 7485 | else |
| 7486 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7487 | fi |
| 7488 | |
| 7489 | if test -n "$ac_tool_prefix"; then |
| 7490 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7491 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7493 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7494 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7495 | $as_echo_n "(cached) " >&6 |
| 7496 | else |
| 7497 | if test -n "$LIPO"; then |
| 7498 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7499 | else |
| 7500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7501 | for as_dir in $PATH |
| 7502 | do |
| 7503 | IFS=$as_save_IFS |
| 7504 | test -z "$as_dir" && as_dir=. |
| 7505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7507 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7509 | break 2 |
| 7510 | fi |
| 7511 | done |
| 7512 | done |
| 7513 | IFS=$as_save_IFS |
| 7514 | |
| 7515 | fi |
| 7516 | fi |
| 7517 | LIPO=$ac_cv_prog_LIPO |
| 7518 | if test -n "$LIPO"; then |
| 7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7520 | $as_echo "$LIPO" >&6; } |
| 7521 | else |
| 7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7523 | $as_echo "no" >&6; } |
| 7524 | fi |
| 7525 | |
| 7526 | |
| 7527 | fi |
| 7528 | if test -z "$ac_cv_prog_LIPO"; then |
| 7529 | ac_ct_LIPO=$LIPO |
| 7530 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7531 | set dummy lipo; ac_word=$2 |
| 7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7533 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7534 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7535 | $as_echo_n "(cached) " >&6 |
| 7536 | else |
| 7537 | if test -n "$ac_ct_LIPO"; then |
| 7538 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7539 | else |
| 7540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7541 | for as_dir in $PATH |
| 7542 | do |
| 7543 | IFS=$as_save_IFS |
| 7544 | test -z "$as_dir" && as_dir=. |
| 7545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7547 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7549 | break 2 |
| 7550 | fi |
| 7551 | done |
| 7552 | done |
| 7553 | IFS=$as_save_IFS |
| 7554 | |
| 7555 | fi |
| 7556 | fi |
| 7557 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7558 | if test -n "$ac_ct_LIPO"; then |
| 7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7560 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7561 | else |
| 7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7563 | $as_echo "no" >&6; } |
| 7564 | fi |
| 7565 | |
| 7566 | if test "x$ac_ct_LIPO" = x; then |
| 7567 | LIPO=":" |
| 7568 | else |
| 7569 | case $cross_compiling:$ac_tool_warned in |
| 7570 | yes:) |
| 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7573 | ac_tool_warned=yes ;; |
| 7574 | esac |
| 7575 | LIPO=$ac_ct_LIPO |
| 7576 | fi |
| 7577 | else |
| 7578 | LIPO="$ac_cv_prog_LIPO" |
| 7579 | fi |
| 7580 | |
| 7581 | if test -n "$ac_tool_prefix"; then |
| 7582 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7583 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7585 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7586 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7587 | $as_echo_n "(cached) " >&6 |
| 7588 | else |
| 7589 | if test -n "$OTOOL"; then |
| 7590 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7591 | else |
| 7592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7593 | for as_dir in $PATH |
| 7594 | do |
| 7595 | IFS=$as_save_IFS |
| 7596 | test -z "$as_dir" && as_dir=. |
| 7597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7599 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7601 | break 2 |
| 7602 | fi |
| 7603 | done |
| 7604 | done |
| 7605 | IFS=$as_save_IFS |
| 7606 | |
| 7607 | fi |
| 7608 | fi |
| 7609 | OTOOL=$ac_cv_prog_OTOOL |
| 7610 | if test -n "$OTOOL"; then |
| 7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7612 | $as_echo "$OTOOL" >&6; } |
| 7613 | else |
| 7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7615 | $as_echo "no" >&6; } |
| 7616 | fi |
| 7617 | |
| 7618 | |
| 7619 | fi |
| 7620 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7621 | ac_ct_OTOOL=$OTOOL |
| 7622 | # Extract the first word of "otool", so it can be a program name with args. |
| 7623 | set dummy otool; ac_word=$2 |
| 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7625 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7626 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7627 | $as_echo_n "(cached) " >&6 |
| 7628 | else |
| 7629 | if test -n "$ac_ct_OTOOL"; then |
| 7630 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7631 | else |
| 7632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7633 | for as_dir in $PATH |
| 7634 | do |
| 7635 | IFS=$as_save_IFS |
| 7636 | test -z "$as_dir" && as_dir=. |
| 7637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7639 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7641 | break 2 |
| 7642 | fi |
| 7643 | done |
| 7644 | done |
| 7645 | IFS=$as_save_IFS |
| 7646 | |
| 7647 | fi |
| 7648 | fi |
| 7649 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7650 | if test -n "$ac_ct_OTOOL"; then |
| 7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7652 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7653 | else |
| 7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7655 | $as_echo "no" >&6; } |
| 7656 | fi |
| 7657 | |
| 7658 | if test "x$ac_ct_OTOOL" = x; then |
| 7659 | OTOOL=":" |
| 7660 | else |
| 7661 | case $cross_compiling:$ac_tool_warned in |
| 7662 | yes:) |
| 7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7664 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7665 | ac_tool_warned=yes ;; |
| 7666 | esac |
| 7667 | OTOOL=$ac_ct_OTOOL |
| 7668 | fi |
| 7669 | else |
| 7670 | OTOOL="$ac_cv_prog_OTOOL" |
| 7671 | fi |
| 7672 | |
| 7673 | if test -n "$ac_tool_prefix"; then |
| 7674 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7675 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7677 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7678 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7679 | $as_echo_n "(cached) " >&6 |
| 7680 | else |
| 7681 | if test -n "$OTOOL64"; then |
| 7682 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7683 | else |
| 7684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7685 | for as_dir in $PATH |
| 7686 | do |
| 7687 | IFS=$as_save_IFS |
| 7688 | test -z "$as_dir" && as_dir=. |
| 7689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7691 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7693 | break 2 |
| 7694 | fi |
| 7695 | done |
| 7696 | done |
| 7697 | IFS=$as_save_IFS |
| 7698 | |
| 7699 | fi |
| 7700 | fi |
| 7701 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7702 | if test -n "$OTOOL64"; then |
| 7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7704 | $as_echo "$OTOOL64" >&6; } |
| 7705 | else |
| 7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7707 | $as_echo "no" >&6; } |
| 7708 | fi |
| 7709 | |
| 7710 | |
| 7711 | fi |
| 7712 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7713 | ac_ct_OTOOL64=$OTOOL64 |
| 7714 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7715 | set dummy otool64; ac_word=$2 |
| 7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7717 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7718 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7719 | $as_echo_n "(cached) " >&6 |
| 7720 | else |
| 7721 | if test -n "$ac_ct_OTOOL64"; then |
| 7722 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7723 | else |
| 7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7725 | for as_dir in $PATH |
| 7726 | do |
| 7727 | IFS=$as_save_IFS |
| 7728 | test -z "$as_dir" && as_dir=. |
| 7729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7731 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7733 | break 2 |
| 7734 | fi |
| 7735 | done |
| 7736 | done |
| 7737 | IFS=$as_save_IFS |
| 7738 | |
| 7739 | fi |
| 7740 | fi |
| 7741 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7742 | if test -n "$ac_ct_OTOOL64"; then |
| 7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7744 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7745 | else |
| 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7747 | $as_echo "no" >&6; } |
| 7748 | fi |
| 7749 | |
| 7750 | if test "x$ac_ct_OTOOL64" = x; then |
| 7751 | OTOOL64=":" |
| 7752 | else |
| 7753 | case $cross_compiling:$ac_tool_warned in |
| 7754 | yes:) |
| 7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7757 | ac_tool_warned=yes ;; |
| 7758 | esac |
| 7759 | OTOOL64=$ac_ct_OTOOL64 |
| 7760 | fi |
| 7761 | else |
| 7762 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7763 | fi |
| 7764 | |
| 7765 | |
| 7766 | |
| 7767 | |
| 7768 | |
| 7769 | |
| 7770 | |
| 7771 | |
| 7772 | |
| 7773 | |
| 7774 | |
| 7775 | |
| 7776 | |
| 7777 | |
| 7778 | |
| 7779 | |
| 7780 | |
| 7781 | |
| 7782 | |
| 7783 | |
| 7784 | |
| 7785 | |
| 7786 | |
| 7787 | |
| 7788 | |
| 7789 | |
| 7790 | |
| 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7792 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7793 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7794 | $as_echo_n "(cached) " >&6 |
| 7795 | else |
| 7796 | lt_cv_apple_cc_single_mod=no |
| 7797 | if test -z "${LT_MULTI_MODULE}"; then |
| 7798 | # By default we will add the -single_module flag. You can override |
| 7799 | # by either setting the environment variable LT_MULTI_MODULE |
| 7800 | # non-empty at configure time, or by adding -multi_module to the |
| 7801 | # link flags. |
| 7802 | rm -rf libconftest.dylib* |
| 7803 | echo "int foo(void){return 1;}" > conftest.c |
| 7804 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7805 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7806 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7807 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7808 | _lt_result=$? |
| 7809 | # If there is a non-empty error log, and "single_module" |
| 7810 | # appears in it, assume the flag caused a linker warning |
| 7811 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7812 | cat conftest.err >&5 |
| 7813 | # Otherwise, if the output was created with a 0 exit code from |
| 7814 | # the compiler, it worked. |
| 7815 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7816 | lt_cv_apple_cc_single_mod=yes |
| 7817 | else |
| 7818 | cat conftest.err >&5 |
| 7819 | fi |
| 7820 | rm -rf libconftest.dylib* |
| 7821 | rm -f conftest.* |
| 7822 | fi |
| 7823 | fi |
| 7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7825 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7826 | |
| 7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7828 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7829 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7830 | $as_echo_n "(cached) " >&6 |
| 7831 | else |
| 7832 | lt_cv_ld_exported_symbols_list=no |
| 7833 | save_LDFLAGS=$LDFLAGS |
| 7834 | echo "_main" > conftest.sym |
| 7835 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7837 | /* end confdefs.h. */ |
| 7838 | |
| 7839 | int |
| 7840 | main () |
| 7841 | { |
| 7842 | |
| 7843 | ; |
| 7844 | return 0; |
| 7845 | } |
| 7846 | _ACEOF |
| 7847 | if ac_fn_c_try_link "$LINENO"; then : |
| 7848 | lt_cv_ld_exported_symbols_list=yes |
| 7849 | else |
| 7850 | lt_cv_ld_exported_symbols_list=no |
| 7851 | fi |
| 7852 | rm -f core conftest.err conftest.$ac_objext \ |
| 7853 | conftest$ac_exeext conftest.$ac_ext |
| 7854 | LDFLAGS="$save_LDFLAGS" |
| 7855 | |
| 7856 | fi |
| 7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7858 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7859 | |
| 7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7861 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7862 | if ${lt_cv_ld_force_load+:} false; then : |
| 7863 | $as_echo_n "(cached) " >&6 |
| 7864 | else |
| 7865 | lt_cv_ld_force_load=no |
| 7866 | cat > conftest.c << _LT_EOF |
| 7867 | int forced_loaded() { return 2;} |
| 7868 | _LT_EOF |
| 7869 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7870 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7871 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7872 | $AR cru libconftest.a conftest.o 2>&5 |
| 7873 | echo "$RANLIB libconftest.a" >&5 |
| 7874 | $RANLIB libconftest.a 2>&5 |
| 7875 | cat > conftest.c << _LT_EOF |
| 7876 | int main() { return 0;} |
| 7877 | _LT_EOF |
| 7878 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7879 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7880 | _lt_result=$? |
| 7881 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7882 | cat conftest.err >&5 |
| 7883 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7884 | lt_cv_ld_force_load=yes |
| 7885 | else |
| 7886 | cat conftest.err >&5 |
| 7887 | fi |
| 7888 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7889 | rm -rf conftest.dSYM |
| 7890 | |
| 7891 | fi |
| 7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7893 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7894 | case $host_os in |
| 7895 | rhapsody* | darwin1.[012]) |
| 7896 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7897 | darwin1.*) |
| 7898 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7899 | darwin*) # darwin 5.x on |
| 7900 | # if running on 10.5 or later, the deployment target defaults |
| 7901 | # to the OS version, if on x86, and 10.4, the deployment |
| 7902 | # target defaults to 10.4. Don't you love it? |
| 7903 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7904 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7905 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7906 | 10.[012]*) |
| 7907 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7908 | 10.*) |
| 7909 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7910 | esac |
| 7911 | ;; |
| 7912 | esac |
| 7913 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7914 | _lt_dar_single_mod='$single_module' |
| 7915 | fi |
| 7916 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7917 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7918 | else |
| 7919 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7920 | fi |
| 7921 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7922 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7923 | else |
| 7924 | _lt_dsymutil= |
| 7925 | fi |
| 7926 | ;; |
| 7927 | esac |
| 7928 | |
| 7929 | ac_ext=c |
| 7930 | ac_cpp='$CPP $CPPFLAGS' |
| 7931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7935 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7936 | # On Suns, sometimes $CPP names a directory. |
| 7937 | if test -n "$CPP" && test -d "$CPP"; then |
| 7938 | CPP= |
| 7939 | fi |
| 7940 | if test -z "$CPP"; then |
| 7941 | if ${ac_cv_prog_CPP+:} false; then : |
| 7942 | $as_echo_n "(cached) " >&6 |
| 7943 | else |
| 7944 | # Double quotes because CPP needs to be expanded |
| 7945 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7946 | do |
| 7947 | ac_preproc_ok=false |
| 7948 | for ac_c_preproc_warn_flag in '' yes |
| 7949 | do |
| 7950 | # Use a header file that comes with gcc, so configuring glibc |
| 7951 | # with a fresh cross-compiler works. |
| 7952 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7953 | # <limits.h> exists even on freestanding compilers. |
| 7954 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7955 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7957 | /* end confdefs.h. */ |
| 7958 | #ifdef __STDC__ |
| 7959 | # include <limits.h> |
| 7960 | #else |
| 7961 | # include <assert.h> |
| 7962 | #endif |
| 7963 | Syntax error |
| 7964 | _ACEOF |
| 7965 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7966 | |
| 7967 | else |
| 7968 | # Broken: fails on valid input. |
| 7969 | continue |
| 7970 | fi |
| 7971 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7972 | |
| 7973 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7974 | # can be detected and how. |
| 7975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7976 | /* end confdefs.h. */ |
| 7977 | #include <ac_nonexistent.h> |
| 7978 | _ACEOF |
| 7979 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7980 | # Broken: success on invalid input. |
| 7981 | continue |
| 7982 | else |
| 7983 | # Passes both tests. |
| 7984 | ac_preproc_ok=: |
| 7985 | break |
| 7986 | fi |
| 7987 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7988 | |
| 7989 | done |
| 7990 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7991 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7992 | if $ac_preproc_ok; then : |
| 7993 | break |
| 7994 | fi |
| 7995 | |
| 7996 | done |
| 7997 | ac_cv_prog_CPP=$CPP |
| 7998 | |
| 7999 | fi |
| 8000 | CPP=$ac_cv_prog_CPP |
| 8001 | else |
| 8002 | ac_cv_prog_CPP=$CPP |
| 8003 | fi |
| 8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 8005 | $as_echo "$CPP" >&6; } |
| 8006 | ac_preproc_ok=false |
| 8007 | for ac_c_preproc_warn_flag in '' yes |
| 8008 | do |
| 8009 | # Use a header file that comes with gcc, so configuring glibc |
| 8010 | # with a fresh cross-compiler works. |
| 8011 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8012 | # <limits.h> exists even on freestanding compilers. |
| 8013 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 8014 | # not just through cpp. "Syntax error" is here to catch this case. |
| 8015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8016 | /* end confdefs.h. */ |
| 8017 | #ifdef __STDC__ |
| 8018 | # include <limits.h> |
| 8019 | #else |
| 8020 | # include <assert.h> |
| 8021 | #endif |
| 8022 | Syntax error |
| 8023 | _ACEOF |
| 8024 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 8025 | |
| 8026 | else |
| 8027 | # Broken: fails on valid input. |
| 8028 | continue |
| 8029 | fi |
| 8030 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 8031 | |
| 8032 | # OK, works on sane cases. Now check whether nonexistent headers |
| 8033 | # can be detected and how. |
| 8034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8035 | /* end confdefs.h. */ |
| 8036 | #include <ac_nonexistent.h> |
| 8037 | _ACEOF |
| 8038 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 8039 | # Broken: success on invalid input. |
| 8040 | continue |
| 8041 | else |
| 8042 | # Passes both tests. |
| 8043 | ac_preproc_ok=: |
| 8044 | break |
| 8045 | fi |
| 8046 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 8047 | |
| 8048 | done |
| 8049 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 8050 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 8051 | if $ac_preproc_ok; then : |
| 8052 | |
| 8053 | else |
| 8054 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8055 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8056 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 8057 | See \`config.log' for more details" "$LINENO" 5; } |
| 8058 | fi |
| 8059 | |
| 8060 | ac_ext=c |
| 8061 | ac_cpp='$CPP $CPPFLAGS' |
| 8062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8065 | |
| 8066 | |
| 8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 8068 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 8069 | if ${ac_cv_header_stdc+:} false; then : |
| 8070 | $as_echo_n "(cached) " >&6 |
| 8071 | else |
| 8072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8073 | /* end confdefs.h. */ |
| 8074 | #include <stdlib.h> |
| 8075 | #include <stdarg.h> |
| 8076 | #include <string.h> |
| 8077 | #include <float.h> |
| 8078 | |
| 8079 | int |
| 8080 | main () |
| 8081 | { |
| 8082 | |
| 8083 | ; |
| 8084 | return 0; |
| 8085 | } |
| 8086 | _ACEOF |
| 8087 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8088 | ac_cv_header_stdc=yes |
| 8089 | else |
| 8090 | ac_cv_header_stdc=no |
| 8091 | fi |
| 8092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8093 | |
| 8094 | if test $ac_cv_header_stdc = yes; then |
| 8095 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 8096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8097 | /* end confdefs.h. */ |
| 8098 | #include <string.h> |
| 8099 | |
| 8100 | _ACEOF |
| 8101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8102 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 8103 | |
| 8104 | else |
| 8105 | ac_cv_header_stdc=no |
| 8106 | fi |
| 8107 | rm -f conftest* |
| 8108 | |
| 8109 | fi |
| 8110 | |
| 8111 | if test $ac_cv_header_stdc = yes; then |
| 8112 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 8113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8114 | /* end confdefs.h. */ |
| 8115 | #include <stdlib.h> |
| 8116 | |
| 8117 | _ACEOF |
| 8118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8119 | $EGREP "free" >/dev/null 2>&1; then : |
| 8120 | |
| 8121 | else |
| 8122 | ac_cv_header_stdc=no |
| 8123 | fi |
| 8124 | rm -f conftest* |
| 8125 | |
| 8126 | fi |
| 8127 | |
| 8128 | if test $ac_cv_header_stdc = yes; then |
| 8129 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 8130 | if test "$cross_compiling" = yes; then : |
| 8131 | : |
| 8132 | else |
| 8133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8134 | /* end confdefs.h. */ |
| 8135 | #include <ctype.h> |
| 8136 | #include <stdlib.h> |
| 8137 | #if ((' ' & 0x0FF) == 0x020) |
| 8138 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8139 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8140 | #else |
| 8141 | # define ISLOWER(c) \ |
| 8142 | (('a' <= (c) && (c) <= 'i') \ |
| 8143 | || ('j' <= (c) && (c) <= 'r') \ |
| 8144 | || ('s' <= (c) && (c) <= 'z')) |
| 8145 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8146 | #endif |
| 8147 | |
| 8148 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8149 | int |
| 8150 | main () |
| 8151 | { |
| 8152 | int i; |
| 8153 | for (i = 0; i < 256; i++) |
| 8154 | if (XOR (islower (i), ISLOWER (i)) |
| 8155 | || toupper (i) != TOUPPER (i)) |
| 8156 | return 2; |
| 8157 | return 0; |
| 8158 | } |
| 8159 | _ACEOF |
| 8160 | if ac_fn_c_try_run "$LINENO"; then : |
| 8161 | |
| 8162 | else |
| 8163 | ac_cv_header_stdc=no |
| 8164 | fi |
| 8165 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8166 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8167 | fi |
| 8168 | |
| 8169 | fi |
| 8170 | fi |
| 8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 8172 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 8173 | if test $ac_cv_header_stdc = yes; then |
| 8174 | |
| 8175 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 8176 | |
| 8177 | fi |
| 8178 | |
| 8179 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8180 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 8181 | inttypes.h stdint.h unistd.h |
| 8182 | do : |
| 8183 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8184 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8185 | " |
| 8186 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8187 | cat >>confdefs.h <<_ACEOF |
| 8188 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8189 | _ACEOF |
| 8190 | |
| 8191 | fi |
| 8192 | |
| 8193 | done |
| 8194 | |
| 8195 | |
| 8196 | for ac_header in dlfcn.h |
| 8197 | do : |
| 8198 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 8199 | " |
| 8200 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 8201 | cat >>confdefs.h <<_ACEOF |
| 8202 | #define HAVE_DLFCN_H 1 |
| 8203 | _ACEOF |
| 8204 | |
| 8205 | fi |
| 8206 | |
| 8207 | done |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | # Set options |
| 8214 | |
| 8215 | |
| 8216 | |
| 8217 | enable_dlopen=no |
| 8218 | |
| 8219 | |
| 8220 | enable_win32_dll=no |
| 8221 | |
| 8222 | |
| 8223 | # Check whether --enable-shared was given. |
| 8224 | if test "${enable_shared+set}" = set; then : |
| 8225 | enableval=$enable_shared; p=${PACKAGE-default} |
| 8226 | case $enableval in |
| 8227 | yes) enable_shared=yes ;; |
| 8228 | no) enable_shared=no ;; |
| 8229 | *) |
| 8230 | enable_shared=no |
| 8231 | # Look at the argument we got. We use all the common list separators. |
| 8232 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8233 | for pkg in $enableval; do |
| 8234 | IFS="$lt_save_ifs" |
| 8235 | if test "X$pkg" = "X$p"; then |
| 8236 | enable_shared=yes |
| 8237 | fi |
| 8238 | done |
| 8239 | IFS="$lt_save_ifs" |
| 8240 | ;; |
| 8241 | esac |
| 8242 | else |
| 8243 | enable_shared=yes |
| 8244 | fi |
| 8245 | |
| 8246 | |
| 8247 | |
| 8248 | |
| 8249 | |
| 8250 | |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | # Check whether --enable-static was given. |
| 8255 | if test "${enable_static+set}" = set; then : |
| 8256 | enableval=$enable_static; p=${PACKAGE-default} |
| 8257 | case $enableval in |
| 8258 | yes) enable_static=yes ;; |
| 8259 | no) enable_static=no ;; |
| 8260 | *) |
| 8261 | enable_static=no |
| 8262 | # Look at the argument we got. We use all the common list separators. |
| 8263 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8264 | for pkg in $enableval; do |
| 8265 | IFS="$lt_save_ifs" |
| 8266 | if test "X$pkg" = "X$p"; then |
| 8267 | enable_static=yes |
| 8268 | fi |
| 8269 | done |
| 8270 | IFS="$lt_save_ifs" |
| 8271 | ;; |
| 8272 | esac |
| 8273 | else |
| 8274 | enable_static=yes |
| 8275 | fi |
| 8276 | |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 | |
| 8281 | |
| 8282 | |
| 8283 | |
| 8284 | |
| 8285 | |
| 8286 | # Check whether --with-pic was given. |
| 8287 | if test "${with_pic+set}" = set; then : |
| 8288 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 8289 | case $withval in |
| 8290 | yes|no) pic_mode=$withval ;; |
| 8291 | *) |
| 8292 | pic_mode=default |
| 8293 | # Look at the argument we got. We use all the common list separators. |
| 8294 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8295 | for lt_pkg in $withval; do |
| 8296 | IFS="$lt_save_ifs" |
| 8297 | if test "X$lt_pkg" = "X$lt_p"; then |
| 8298 | pic_mode=yes |
| 8299 | fi |
| 8300 | done |
| 8301 | IFS="$lt_save_ifs" |
| 8302 | ;; |
| 8303 | esac |
| 8304 | else |
| 8305 | pic_mode=default |
| 8306 | fi |
| 8307 | |
| 8308 | |
| 8309 | test -z "$pic_mode" && pic_mode=default |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
| 8315 | |
| 8316 | |
| 8317 | # Check whether --enable-fast-install was given. |
| 8318 | if test "${enable_fast_install+set}" = set; then : |
| 8319 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 8320 | case $enableval in |
| 8321 | yes) enable_fast_install=yes ;; |
| 8322 | no) enable_fast_install=no ;; |
| 8323 | *) |
| 8324 | enable_fast_install=no |
| 8325 | # Look at the argument we got. We use all the common list separators. |
| 8326 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8327 | for pkg in $enableval; do |
| 8328 | IFS="$lt_save_ifs" |
| 8329 | if test "X$pkg" = "X$p"; then |
| 8330 | enable_fast_install=yes |
| 8331 | fi |
| 8332 | done |
| 8333 | IFS="$lt_save_ifs" |
| 8334 | ;; |
| 8335 | esac |
| 8336 | else |
| 8337 | enable_fast_install=yes |
| 8338 | fi |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | # This can be used to rebuild libtool when needed |
| 8351 | LIBTOOL_DEPS="$ltmain" |
| 8352 | |
| 8353 | # Always use our own libtool. |
| 8354 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | test -z "$LN_S" && LN_S="ln -s" |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | if test -n "${ZSH_VERSION+set}" ; then |
| 8401 | setopt NO_GLOB_SUBST |
| 8402 | fi |
| 8403 | |
| 8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8405 | $as_echo_n "checking for objdir... " >&6; } |
| 8406 | if ${lt_cv_objdir+:} false; then : |
| 8407 | $as_echo_n "(cached) " >&6 |
| 8408 | else |
| 8409 | rm -f .libs 2>/dev/null |
| 8410 | mkdir .libs 2>/dev/null |
| 8411 | if test -d .libs; then |
| 8412 | lt_cv_objdir=.libs |
| 8413 | else |
| 8414 | # MS-DOS does not allow filenames that begin with a dot. |
| 8415 | lt_cv_objdir=_libs |
| 8416 | fi |
| 8417 | rmdir .libs 2>/dev/null |
| 8418 | fi |
| 8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8420 | $as_echo "$lt_cv_objdir" >&6; } |
| 8421 | objdir=$lt_cv_objdir |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | cat >>confdefs.h <<_ACEOF |
| 8428 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8429 | _ACEOF |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | case $host_os in |
| 8435 | aix3*) |
| 8436 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8437 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8438 | # vanish in a puff of smoke. |
| 8439 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8440 | COLLECT_NAMES= |
| 8441 | export COLLECT_NAMES |
| 8442 | fi |
| 8443 | ;; |
| 8444 | esac |
| 8445 | |
| 8446 | # Global variables: |
| 8447 | ofile=libtool |
| 8448 | can_build_shared=yes |
| 8449 | |
| 8450 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 8451 | # which needs '.lib'). |
| 8452 | libext=a |
| 8453 | |
| 8454 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8455 | |
| 8456 | old_CC="$CC" |
| 8457 | old_CFLAGS="$CFLAGS" |
| 8458 | |
| 8459 | # Set sane defaults for various variables |
| 8460 | test -z "$CC" && CC=cc |
| 8461 | test -z "$LTCC" && LTCC=$CC |
| 8462 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8463 | test -z "$LD" && LD=ld |
| 8464 | test -z "$ac_objext" && ac_objext=o |
| 8465 | |
| 8466 | for cc_temp in $compiler""; do |
| 8467 | case $cc_temp in |
| 8468 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8469 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8470 | \-*) ;; |
| 8471 | *) break;; |
| 8472 | esac |
| 8473 | done |
| 8474 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8475 | |
| 8476 | |
| 8477 | # Only perform the check for file, if the check method requires it |
| 8478 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8479 | case $deplibs_check_method in |
| 8480 | file_magic*) |
| 8481 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8483 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8484 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8485 | $as_echo_n "(cached) " >&6 |
| 8486 | else |
| 8487 | case $MAGIC_CMD in |
| 8488 | [\\/*] | ?:[\\/]*) |
| 8489 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8490 | ;; |
| 8491 | *) |
| 8492 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8493 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8494 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8495 | for ac_dir in $ac_dummy; do |
| 8496 | IFS="$lt_save_ifs" |
| 8497 | test -z "$ac_dir" && ac_dir=. |
| 8498 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8499 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8500 | if test -n "$file_magic_test_file"; then |
| 8501 | case $deplibs_check_method in |
| 8502 | "file_magic "*) |
| 8503 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8504 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8505 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8506 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8507 | : |
| 8508 | else |
| 8509 | cat <<_LT_EOF 1>&2 |
| 8510 | |
| 8511 | *** Warning: the command libtool uses to detect shared libraries, |
| 8512 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8513 | *** The result is that libtool may fail to recognize shared libraries |
| 8514 | *** as such. This will affect the creation of libtool libraries that |
| 8515 | *** depend on shared libraries, but programs linked with such libtool |
| 8516 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8517 | *** may want to report the problem to your system manager and/or to |
| 8518 | *** bug-libtool@gnu.org |
| 8519 | |
| 8520 | _LT_EOF |
| 8521 | fi ;; |
| 8522 | esac |
| 8523 | fi |
| 8524 | break |
| 8525 | fi |
| 8526 | done |
| 8527 | IFS="$lt_save_ifs" |
| 8528 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8529 | ;; |
| 8530 | esac |
| 8531 | fi |
| 8532 | |
| 8533 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8534 | if test -n "$MAGIC_CMD"; then |
| 8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8536 | $as_echo "$MAGIC_CMD" >&6; } |
| 8537 | else |
| 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8539 | $as_echo "no" >&6; } |
| 8540 | fi |
| 8541 | |
| 8542 | |
| 8543 | |
| 8544 | |
| 8545 | |
| 8546 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8547 | if test -n "$ac_tool_prefix"; then |
| 8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8549 | $as_echo_n "checking for file... " >&6; } |
| 8550 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8551 | $as_echo_n "(cached) " >&6 |
| 8552 | else |
| 8553 | case $MAGIC_CMD in |
| 8554 | [\\/*] | ?:[\\/]*) |
| 8555 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8556 | ;; |
| 8557 | *) |
| 8558 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8559 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8560 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8561 | for ac_dir in $ac_dummy; do |
| 8562 | IFS="$lt_save_ifs" |
| 8563 | test -z "$ac_dir" && ac_dir=. |
| 8564 | if test -f $ac_dir/file; then |
| 8565 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8566 | if test -n "$file_magic_test_file"; then |
| 8567 | case $deplibs_check_method in |
| 8568 | "file_magic "*) |
| 8569 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8570 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8571 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8572 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8573 | : |
| 8574 | else |
| 8575 | cat <<_LT_EOF 1>&2 |
| 8576 | |
| 8577 | *** Warning: the command libtool uses to detect shared libraries, |
| 8578 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8579 | *** The result is that libtool may fail to recognize shared libraries |
| 8580 | *** as such. This will affect the creation of libtool libraries that |
| 8581 | *** depend on shared libraries, but programs linked with such libtool |
| 8582 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8583 | *** may want to report the problem to your system manager and/or to |
| 8584 | *** bug-libtool@gnu.org |
| 8585 | |
| 8586 | _LT_EOF |
| 8587 | fi ;; |
| 8588 | esac |
| 8589 | fi |
| 8590 | break |
| 8591 | fi |
| 8592 | done |
| 8593 | IFS="$lt_save_ifs" |
| 8594 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8595 | ;; |
| 8596 | esac |
| 8597 | fi |
| 8598 | |
| 8599 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8600 | if test -n "$MAGIC_CMD"; then |
| 8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8602 | $as_echo "$MAGIC_CMD" >&6; } |
| 8603 | else |
| 8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8605 | $as_echo "no" >&6; } |
| 8606 | fi |
| 8607 | |
| 8608 | |
| 8609 | else |
| 8610 | MAGIC_CMD=: |
| 8611 | fi |
| 8612 | fi |
| 8613 | |
| 8614 | fi |
| 8615 | ;; |
| 8616 | esac |
| 8617 | |
| 8618 | # Use C for the default configuration in the libtool script |
| 8619 | |
| 8620 | lt_save_CC="$CC" |
| 8621 | ac_ext=c |
| 8622 | ac_cpp='$CPP $CPPFLAGS' |
| 8623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8626 | |
| 8627 | |
| 8628 | # Source file extension for C test sources. |
| 8629 | ac_ext=c |
| 8630 | |
| 8631 | # Object file extension for compiled C test sources. |
| 8632 | objext=o |
| 8633 | objext=$objext |
| 8634 | |
| 8635 | # Code to be used in simple compile tests |
| 8636 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8637 | |
| 8638 | # Code to be used in simple link tests |
| 8639 | lt_simple_link_test_code='int main(){return(0);}' |
| 8640 | |
| 8641 | |
| 8642 | |
| 8643 | |
| 8644 | |
| 8645 | |
| 8646 | |
| 8647 | # If no C compiler was specified, use CC. |
| 8648 | LTCC=${LTCC-"$CC"} |
| 8649 | |
| 8650 | # If no C compiler flags were specified, use CFLAGS. |
| 8651 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8652 | |
| 8653 | # Allow CC to be a program name with arguments. |
| 8654 | compiler=$CC |
| 8655 | |
| 8656 | # Save the default compiler, since it gets overwritten when the other |
| 8657 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8658 | compiler_DEFAULT=$CC |
| 8659 | |
| 8660 | # save warnings/boilerplate of simple test code |
| 8661 | ac_outfile=conftest.$ac_objext |
| 8662 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8663 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8664 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8665 | $RM conftest* |
| 8666 | |
| 8667 | ac_outfile=conftest.$ac_objext |
| 8668 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8669 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8670 | _lt_linker_boilerplate=`cat conftest.err` |
| 8671 | $RM -r conftest* |
| 8672 | |
| 8673 | |
| 8674 | if test -n "$compiler"; then |
| 8675 | |
| 8676 | lt_prog_compiler_no_builtin_flag= |
| 8677 | |
| 8678 | if test "$GCC" = yes; then |
| 8679 | case $cc_basename in |
| 8680 | nvcc*) |
| 8681 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8682 | *) |
| 8683 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8684 | esac |
| 8685 | |
| 8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8687 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8688 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8689 | $as_echo_n "(cached) " >&6 |
| 8690 | else |
| 8691 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8692 | ac_outfile=conftest.$ac_objext |
| 8693 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8694 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8695 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8696 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8697 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8698 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8699 | # The option is referenced via a variable to avoid confusing sed. |
| 8700 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8701 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8702 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8703 | -e 's:$: $lt_compiler_flag:'` |
| 8704 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8705 | (eval "$lt_compile" 2>conftest.err) |
| 8706 | ac_status=$? |
| 8707 | cat conftest.err >&5 |
| 8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8709 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8710 | # The compiler can only warn and ignore the option if not recognized |
| 8711 | # So say no if there are warnings other than the usual output. |
| 8712 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8713 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8714 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8715 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8716 | fi |
| 8717 | fi |
| 8718 | $RM conftest* |
| 8719 | |
| 8720 | fi |
| 8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8722 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8723 | |
| 8724 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8725 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8726 | else |
| 8727 | : |
| 8728 | fi |
| 8729 | |
| 8730 | fi |
| 8731 | |
| 8732 | |
| 8733 | |
| 8734 | |
| 8735 | |
| 8736 | |
| 8737 | lt_prog_compiler_wl= |
| 8738 | lt_prog_compiler_pic= |
| 8739 | lt_prog_compiler_static= |
| 8740 | |
| 8741 | |
| 8742 | if test "$GCC" = yes; then |
| 8743 | lt_prog_compiler_wl='-Wl,' |
| 8744 | lt_prog_compiler_static='-static' |
| 8745 | |
| 8746 | case $host_os in |
| 8747 | aix*) |
| 8748 | # All AIX code is PIC. |
| 8749 | if test "$host_cpu" = ia64; then |
| 8750 | # AIX 5 now supports IA64 processor |
| 8751 | lt_prog_compiler_static='-Bstatic' |
| 8752 | fi |
| 8753 | ;; |
| 8754 | |
| 8755 | amigaos*) |
| 8756 | case $host_cpu in |
| 8757 | powerpc) |
| 8758 | # see comment about AmigaOS4 .so support |
| 8759 | lt_prog_compiler_pic='-fPIC' |
| 8760 | ;; |
| 8761 | m68k) |
| 8762 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8763 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8764 | # like `-m68040'. |
| 8765 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8766 | ;; |
| 8767 | esac |
| 8768 | ;; |
| 8769 | |
| 8770 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8771 | # PIC is the default for these OSes. |
| 8772 | ;; |
| 8773 | |
| 8774 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8775 | # This hack is so that the source file can tell whether it is being |
| 8776 | # built for inclusion in a dll (and should export symbols for example). |
| 8777 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8778 | # (--disable-auto-import) libraries |
| 8779 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8780 | ;; |
| 8781 | |
| 8782 | darwin* | rhapsody*) |
| 8783 | # PIC is the default on this platform |
| 8784 | # Common symbols not allowed in MH_DYLIB files |
| 8785 | lt_prog_compiler_pic='-fno-common' |
| 8786 | ;; |
| 8787 | |
| 8788 | haiku*) |
| 8789 | # PIC is the default for Haiku. |
| 8790 | # The "-static" flag exists, but is broken. |
| 8791 | lt_prog_compiler_static= |
| 8792 | ;; |
| 8793 | |
| 8794 | hpux*) |
| 8795 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8796 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8797 | # sets the default TLS model and affects inlining. |
| 8798 | case $host_cpu in |
| 8799 | hppa*64*) |
| 8800 | # +Z the default |
| 8801 | ;; |
| 8802 | *) |
| 8803 | lt_prog_compiler_pic='-fPIC' |
| 8804 | ;; |
| 8805 | esac |
| 8806 | ;; |
| 8807 | |
| 8808 | interix[3-9]*) |
| 8809 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8810 | # Instead, we relocate shared libraries at runtime. |
| 8811 | ;; |
| 8812 | |
| 8813 | msdosdjgpp*) |
| 8814 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8815 | # on systems that don't support them. |
| 8816 | lt_prog_compiler_can_build_shared=no |
| 8817 | enable_shared=no |
| 8818 | ;; |
| 8819 | |
| 8820 | *nto* | *qnx*) |
| 8821 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8822 | # it will coredump. |
| 8823 | lt_prog_compiler_pic='-fPIC -shared' |
| 8824 | ;; |
| 8825 | |
| 8826 | sysv4*MP*) |
| 8827 | if test -d /usr/nec; then |
| 8828 | lt_prog_compiler_pic=-Kconform_pic |
| 8829 | fi |
| 8830 | ;; |
| 8831 | |
| 8832 | *) |
| 8833 | lt_prog_compiler_pic='-fPIC' |
| 8834 | ;; |
| 8835 | esac |
| 8836 | |
| 8837 | case $cc_basename in |
| 8838 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8839 | lt_prog_compiler_wl='-Xlinker ' |
| 8840 | if test -n "$lt_prog_compiler_pic"; then |
| 8841 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8842 | fi |
| 8843 | ;; |
| 8844 | esac |
| 8845 | else |
| 8846 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8847 | case $host_os in |
| 8848 | aix*) |
| 8849 | lt_prog_compiler_wl='-Wl,' |
| 8850 | if test "$host_cpu" = ia64; then |
| 8851 | # AIX 5 now supports IA64 processor |
| 8852 | lt_prog_compiler_static='-Bstatic' |
| 8853 | else |
| 8854 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8855 | fi |
| 8856 | ;; |
| 8857 | |
| 8858 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8859 | # This hack is so that the source file can tell whether it is being |
| 8860 | # built for inclusion in a dll (and should export symbols for example). |
| 8861 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8862 | ;; |
| 8863 | |
| 8864 | hpux9* | hpux10* | hpux11*) |
| 8865 | lt_prog_compiler_wl='-Wl,' |
| 8866 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8867 | # not for PA HP-UX. |
| 8868 | case $host_cpu in |
| 8869 | hppa*64*|ia64*) |
| 8870 | # +Z the default |
| 8871 | ;; |
| 8872 | *) |
| 8873 | lt_prog_compiler_pic='+Z' |
| 8874 | ;; |
| 8875 | esac |
| 8876 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8877 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8878 | ;; |
| 8879 | |
| 8880 | irix5* | irix6* | nonstopux*) |
| 8881 | lt_prog_compiler_wl='-Wl,' |
| 8882 | # PIC (with -KPIC) is the default. |
| 8883 | lt_prog_compiler_static='-non_shared' |
| 8884 | ;; |
| 8885 | |
| 8886 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 8887 | case $cc_basename in |
| 8888 | # old Intel for x86_64 which still supported -KPIC. |
| 8889 | ecc*) |
| 8890 | lt_prog_compiler_wl='-Wl,' |
| 8891 | lt_prog_compiler_pic='-KPIC' |
| 8892 | lt_prog_compiler_static='-static' |
| 8893 | ;; |
| 8894 | # icc used to be incompatible with GCC. |
| 8895 | # ICC 10 doesn't accept -KPIC any more. |
| 8896 | icc* | ifort*) |
| 8897 | lt_prog_compiler_wl='-Wl,' |
| 8898 | lt_prog_compiler_pic='-fPIC' |
| 8899 | lt_prog_compiler_static='-static' |
| 8900 | ;; |
| 8901 | # Lahey Fortran 8.1. |
| 8902 | lf95*) |
| 8903 | lt_prog_compiler_wl='-Wl,' |
| 8904 | lt_prog_compiler_pic='--shared' |
| 8905 | lt_prog_compiler_static='--static' |
| 8906 | ;; |
| 8907 | nagfor*) |
| 8908 | # NAG Fortran compiler |
| 8909 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8910 | lt_prog_compiler_pic='-PIC' |
| 8911 | lt_prog_compiler_static='-Bstatic' |
| 8912 | ;; |
| 8913 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8914 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8915 | # which looks to be a dead project) |
| 8916 | lt_prog_compiler_wl='-Wl,' |
| 8917 | lt_prog_compiler_pic='-fpic' |
| 8918 | lt_prog_compiler_static='-Bstatic' |
| 8919 | ;; |
| 8920 | ccc*) |
| 8921 | lt_prog_compiler_wl='-Wl,' |
| 8922 | # All Alpha code is PIC. |
| 8923 | lt_prog_compiler_static='-non_shared' |
| 8924 | ;; |
| 8925 | xl* | bgxl* | bgf* | mpixl*) |
| 8926 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8927 | lt_prog_compiler_wl='-Wl,' |
| 8928 | lt_prog_compiler_pic='-qpic' |
| 8929 | lt_prog_compiler_static='-qstaticlink' |
| 8930 | ;; |
| 8931 | *) |
| 8932 | case `$CC -V 2>&1 | sed 5q` in |
| 8933 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8934 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8935 | lt_prog_compiler_pic='-KPIC' |
| 8936 | lt_prog_compiler_static='-Bstatic' |
| 8937 | lt_prog_compiler_wl='' |
| 8938 | ;; |
| 8939 | *Sun\ F* | *Sun*Fortran*) |
| 8940 | lt_prog_compiler_pic='-KPIC' |
| 8941 | lt_prog_compiler_static='-Bstatic' |
| 8942 | lt_prog_compiler_wl='-Qoption ld ' |
| 8943 | ;; |
| 8944 | *Sun\ C*) |
| 8945 | # Sun C 5.9 |
| 8946 | lt_prog_compiler_pic='-KPIC' |
| 8947 | lt_prog_compiler_static='-Bstatic' |
| 8948 | lt_prog_compiler_wl='-Wl,' |
| 8949 | ;; |
| 8950 | *Intel*\ [CF]*Compiler*) |
| 8951 | lt_prog_compiler_wl='-Wl,' |
| 8952 | lt_prog_compiler_pic='-fPIC' |
| 8953 | lt_prog_compiler_static='-static' |
| 8954 | ;; |
| 8955 | *Portland\ Group*) |
| 8956 | lt_prog_compiler_wl='-Wl,' |
| 8957 | lt_prog_compiler_pic='-fpic' |
| 8958 | lt_prog_compiler_static='-Bstatic' |
| 8959 | ;; |
| 8960 | esac |
| 8961 | ;; |
| 8962 | esac |
| 8963 | ;; |
| 8964 | |
| 8965 | newsos6) |
| 8966 | lt_prog_compiler_pic='-KPIC' |
| 8967 | lt_prog_compiler_static='-Bstatic' |
| 8968 | ;; |
| 8969 | |
| 8970 | *nto* | *qnx*) |
| 8971 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8972 | # it will coredump. |
| 8973 | lt_prog_compiler_pic='-fPIC -shared' |
| 8974 | ;; |
| 8975 | |
| 8976 | osf3* | osf4* | osf5*) |
| 8977 | lt_prog_compiler_wl='-Wl,' |
| 8978 | # All OSF/1 code is PIC. |
| 8979 | lt_prog_compiler_static='-non_shared' |
| 8980 | ;; |
| 8981 | |
| 8982 | rdos*) |
| 8983 | lt_prog_compiler_static='-non_shared' |
| 8984 | ;; |
| 8985 | |
| 8986 | solaris*) |
| 8987 | lt_prog_compiler_pic='-KPIC' |
| 8988 | lt_prog_compiler_static='-Bstatic' |
| 8989 | case $cc_basename in |
| 8990 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8991 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8992 | *) |
| 8993 | lt_prog_compiler_wl='-Wl,';; |
| 8994 | esac |
| 8995 | ;; |
| 8996 | |
| 8997 | sunos4*) |
| 8998 | lt_prog_compiler_wl='-Qoption ld ' |
| 8999 | lt_prog_compiler_pic='-PIC' |
| 9000 | lt_prog_compiler_static='-Bstatic' |
| 9001 | ;; |
| 9002 | |
| 9003 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 9004 | lt_prog_compiler_wl='-Wl,' |
| 9005 | lt_prog_compiler_pic='-KPIC' |
| 9006 | lt_prog_compiler_static='-Bstatic' |
| 9007 | ;; |
| 9008 | |
| 9009 | sysv4*MP*) |
| 9010 | if test -d /usr/nec ;then |
| 9011 | lt_prog_compiler_pic='-Kconform_pic' |
| 9012 | lt_prog_compiler_static='-Bstatic' |
| 9013 | fi |
| 9014 | ;; |
| 9015 | |
| 9016 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 9017 | lt_prog_compiler_wl='-Wl,' |
| 9018 | lt_prog_compiler_pic='-KPIC' |
| 9019 | lt_prog_compiler_static='-Bstatic' |
| 9020 | ;; |
| 9021 | |
| 9022 | unicos*) |
| 9023 | lt_prog_compiler_wl='-Wl,' |
| 9024 | lt_prog_compiler_can_build_shared=no |
| 9025 | ;; |
| 9026 | |
| 9027 | uts4*) |
| 9028 | lt_prog_compiler_pic='-pic' |
| 9029 | lt_prog_compiler_static='-Bstatic' |
| 9030 | ;; |
| 9031 | |
| 9032 | *) |
| 9033 | lt_prog_compiler_can_build_shared=no |
| 9034 | ;; |
| 9035 | esac |
| 9036 | fi |
| 9037 | |
| 9038 | case $host_os in |
| 9039 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 9040 | *djgpp*) |
| 9041 | lt_prog_compiler_pic= |
| 9042 | ;; |
| 9043 | *) |
| 9044 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 9045 | ;; |
| 9046 | esac |
| 9047 | |
| 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 9049 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 9050 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 9051 | $as_echo_n "(cached) " >&6 |
| 9052 | else |
| 9053 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 9054 | fi |
| 9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 9056 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 9057 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 9058 | |
| 9059 | # |
| 9060 | # Check to make sure the PIC flag actually works. |
| 9061 | # |
| 9062 | if test -n "$lt_prog_compiler_pic"; then |
| 9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 9064 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 9065 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 9066 | $as_echo_n "(cached) " >&6 |
| 9067 | else |
| 9068 | lt_cv_prog_compiler_pic_works=no |
| 9069 | ac_outfile=conftest.$ac_objext |
| 9070 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9071 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 9072 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9073 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9074 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9075 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9076 | # The option is referenced via a variable to avoid confusing sed. |
| 9077 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9078 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9079 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9080 | -e 's:$: $lt_compiler_flag:'` |
| 9081 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9082 | (eval "$lt_compile" 2>conftest.err) |
| 9083 | ac_status=$? |
| 9084 | cat conftest.err >&5 |
| 9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9086 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9087 | # The compiler can only warn and ignore the option if not recognized |
| 9088 | # So say no if there are warnings other than the usual output. |
| 9089 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 9090 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9091 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 9092 | lt_cv_prog_compiler_pic_works=yes |
| 9093 | fi |
| 9094 | fi |
| 9095 | $RM conftest* |
| 9096 | |
| 9097 | fi |
| 9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 9099 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 9100 | |
| 9101 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 9102 | case $lt_prog_compiler_pic in |
| 9103 | "" | " "*) ;; |
| 9104 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 9105 | esac |
| 9106 | else |
| 9107 | lt_prog_compiler_pic= |
| 9108 | lt_prog_compiler_can_build_shared=no |
| 9109 | fi |
| 9110 | |
| 9111 | fi |
| 9112 | |
| 9113 | |
| 9114 | |
| 9115 | |
| 9116 | |
| 9117 | |
| 9118 | |
| 9119 | |
| 9120 | |
| 9121 | |
| 9122 | |
| 9123 | # |
| 9124 | # Check to make sure the static flag actually works. |
| 9125 | # |
| 9126 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 9128 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 9129 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 9130 | $as_echo_n "(cached) " >&6 |
| 9131 | else |
| 9132 | lt_cv_prog_compiler_static_works=no |
| 9133 | save_LDFLAGS="$LDFLAGS" |
| 9134 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 9135 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9136 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9137 | # The linker can only warn and ignore the option if not recognized |
| 9138 | # So say no if there are warnings |
| 9139 | if test -s conftest.err; then |
| 9140 | # Append any errors to the config.log. |
| 9141 | cat conftest.err 1>&5 |
| 9142 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9143 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9144 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9145 | lt_cv_prog_compiler_static_works=yes |
| 9146 | fi |
| 9147 | else |
| 9148 | lt_cv_prog_compiler_static_works=yes |
| 9149 | fi |
| 9150 | fi |
| 9151 | $RM -r conftest* |
| 9152 | LDFLAGS="$save_LDFLAGS" |
| 9153 | |
| 9154 | fi |
| 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 9156 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9157 | |
| 9158 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9159 | : |
| 9160 | else |
| 9161 | lt_prog_compiler_static= |
| 9162 | fi |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9171 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9172 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9173 | $as_echo_n "(cached) " >&6 |
| 9174 | else |
| 9175 | lt_cv_prog_compiler_c_o=no |
| 9176 | $RM -r conftest 2>/dev/null |
| 9177 | mkdir conftest |
| 9178 | cd conftest |
| 9179 | mkdir out |
| 9180 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9181 | |
| 9182 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9183 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9184 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9185 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9186 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9187 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9188 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9189 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9190 | -e 's:$: $lt_compiler_flag:'` |
| 9191 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9192 | (eval "$lt_compile" 2>out/conftest.err) |
| 9193 | ac_status=$? |
| 9194 | cat out/conftest.err >&5 |
| 9195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9196 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9197 | then |
| 9198 | # The compiler can only warn and ignore the option if not recognized |
| 9199 | # So say no if there are warnings |
| 9200 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9201 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9202 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9203 | lt_cv_prog_compiler_c_o=yes |
| 9204 | fi |
| 9205 | fi |
| 9206 | chmod u+w . 2>&5 |
| 9207 | $RM conftest* |
| 9208 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9209 | # template instantiation |
| 9210 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9211 | $RM out/* && rmdir out |
| 9212 | cd .. |
| 9213 | $RM -r conftest |
| 9214 | $RM conftest* |
| 9215 | |
| 9216 | fi |
| 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9218 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9219 | |
| 9220 | |
| 9221 | |
| 9222 | |
| 9223 | |
| 9224 | |
| 9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9226 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9227 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9228 | $as_echo_n "(cached) " >&6 |
| 9229 | else |
| 9230 | lt_cv_prog_compiler_c_o=no |
| 9231 | $RM -r conftest 2>/dev/null |
| 9232 | mkdir conftest |
| 9233 | cd conftest |
| 9234 | mkdir out |
| 9235 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9236 | |
| 9237 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9238 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9239 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9240 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9241 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9242 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9243 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9244 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9245 | -e 's:$: $lt_compiler_flag:'` |
| 9246 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9247 | (eval "$lt_compile" 2>out/conftest.err) |
| 9248 | ac_status=$? |
| 9249 | cat out/conftest.err >&5 |
| 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9251 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9252 | then |
| 9253 | # The compiler can only warn and ignore the option if not recognized |
| 9254 | # So say no if there are warnings |
| 9255 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9256 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9257 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9258 | lt_cv_prog_compiler_c_o=yes |
| 9259 | fi |
| 9260 | fi |
| 9261 | chmod u+w . 2>&5 |
| 9262 | $RM conftest* |
| 9263 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9264 | # template instantiation |
| 9265 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9266 | $RM out/* && rmdir out |
| 9267 | cd .. |
| 9268 | $RM -r conftest |
| 9269 | $RM conftest* |
| 9270 | |
| 9271 | fi |
| 9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9273 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9274 | |
| 9275 | |
| 9276 | |
| 9277 | |
| 9278 | hard_links="nottested" |
| 9279 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9280 | # do not overwrite the value of need_locks provided by the user |
| 9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9282 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9283 | hard_links=yes |
| 9284 | $RM conftest* |
| 9285 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9286 | touch conftest.a |
| 9287 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9288 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9290 | $as_echo "$hard_links" >&6; } |
| 9291 | if test "$hard_links" = no; then |
| 9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9293 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9294 | need_locks=warn |
| 9295 | fi |
| 9296 | else |
| 9297 | need_locks=no |
| 9298 | fi |
| 9299 | |
| 9300 | |
| 9301 | |
| 9302 | |
| 9303 | |
| 9304 | |
| 9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9306 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9307 | |
| 9308 | runpath_var= |
| 9309 | allow_undefined_flag= |
| 9310 | always_export_symbols=no |
| 9311 | archive_cmds= |
| 9312 | archive_expsym_cmds= |
| 9313 | compiler_needs_object=no |
| 9314 | enable_shared_with_static_runtimes=no |
| 9315 | export_dynamic_flag_spec= |
| 9316 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9317 | hardcode_automatic=no |
| 9318 | hardcode_direct=no |
| 9319 | hardcode_direct_absolute=no |
| 9320 | hardcode_libdir_flag_spec= |
| 9321 | hardcode_libdir_separator= |
| 9322 | hardcode_minus_L=no |
| 9323 | hardcode_shlibpath_var=unsupported |
| 9324 | inherit_rpath=no |
| 9325 | link_all_deplibs=unknown |
| 9326 | module_cmds= |
| 9327 | module_expsym_cmds= |
| 9328 | old_archive_from_new_cmds= |
| 9329 | old_archive_from_expsyms_cmds= |
| 9330 | thread_safe_flag_spec= |
| 9331 | whole_archive_flag_spec= |
| 9332 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9333 | # included in the symbol list |
| 9334 | include_expsyms= |
| 9335 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9336 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9337 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9338 | # as well as any symbol that contains `d'. |
| 9339 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9340 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9341 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9342 | # the symbol is explicitly referenced. Since portable code cannot |
| 9343 | # rely on this symbol name, it's probably fine to never include it in |
| 9344 | # preloaded symbol tables. |
| 9345 | # Exclude shared library initialization/finalization symbols. |
| 9346 | extract_expsyms_cmds= |
| 9347 | |
| 9348 | case $host_os in |
| 9349 | cygwin* | mingw* | pw32* | cegcc*) |
| 9350 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9351 | # When not using gcc, we currently assume that we are using |
| 9352 | # Microsoft Visual C++. |
| 9353 | if test "$GCC" != yes; then |
| 9354 | with_gnu_ld=no |
| 9355 | fi |
| 9356 | ;; |
| 9357 | interix*) |
| 9358 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9359 | with_gnu_ld=yes |
| 9360 | ;; |
| 9361 | openbsd*) |
| 9362 | with_gnu_ld=no |
| 9363 | ;; |
| 9364 | linux* | k*bsd*-gnu | gnu*) |
| 9365 | link_all_deplibs=no |
| 9366 | ;; |
| 9367 | esac |
| 9368 | |
| 9369 | ld_shlibs=yes |
| 9370 | |
| 9371 | # On some targets, GNU ld is compatible enough with the native linker |
| 9372 | # that we're better off using the native interface for both. |
| 9373 | lt_use_gnu_ld_interface=no |
| 9374 | if test "$with_gnu_ld" = yes; then |
| 9375 | case $host_os in |
| 9376 | aix*) |
| 9377 | # The AIX port of GNU ld has always aspired to compatibility |
| 9378 | # with the native linker. However, as the warning in the GNU ld |
| 9379 | # block says, versions before 2.19.5* couldn't really create working |
| 9380 | # shared libraries, regardless of the interface used. |
| 9381 | case `$LD -v 2>&1` in |
| 9382 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9383 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9384 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9385 | *) |
| 9386 | lt_use_gnu_ld_interface=yes |
| 9387 | ;; |
| 9388 | esac |
| 9389 | ;; |
| 9390 | *) |
| 9391 | lt_use_gnu_ld_interface=yes |
| 9392 | ;; |
| 9393 | esac |
| 9394 | fi |
| 9395 | |
| 9396 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 9397 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9398 | wlarc='${wl}' |
| 9399 | |
| 9400 | # Set some defaults for GNU ld with shared library support. These |
| 9401 | # are reset later if shared libraries are not supported. Putting them |
| 9402 | # here allows them to be overridden if necessary. |
| 9403 | runpath_var=LD_RUN_PATH |
| 9404 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9405 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9406 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9407 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9408 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9409 | else |
| 9410 | whole_archive_flag_spec= |
| 9411 | fi |
| 9412 | supports_anon_versioning=no |
| 9413 | case `$LD -v 2>&1` in |
| 9414 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9415 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9416 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9417 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9418 | *\ 2.11.*) ;; # other 2.11 versions |
| 9419 | *) supports_anon_versioning=yes ;; |
| 9420 | esac |
| 9421 | |
| 9422 | # See if GNU ld supports shared libraries. |
| 9423 | case $host_os in |
| 9424 | aix[3-9]*) |
| 9425 | # On AIX/PPC, the GNU linker is very broken |
| 9426 | if test "$host_cpu" != ia64; then |
| 9427 | ld_shlibs=no |
| 9428 | cat <<_LT_EOF 1>&2 |
| 9429 | |
| 9430 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9431 | *** to be unable to reliably create shared libraries on AIX. |
| 9432 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9433 | *** really care for shared libraries, you may want to install binutils |
| 9434 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9435 | *** You will then need to restart the configuration process. |
| 9436 | |
| 9437 | _LT_EOF |
| 9438 | fi |
| 9439 | ;; |
| 9440 | |
| 9441 | amigaos*) |
| 9442 | case $host_cpu in |
| 9443 | powerpc) |
| 9444 | # see comment about AmigaOS4 .so support |
| 9445 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9446 | archive_expsym_cmds='' |
| 9447 | ;; |
| 9448 | m68k) |
| 9449 | 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)' |
| 9450 | hardcode_libdir_flag_spec='-L$libdir' |
| 9451 | hardcode_minus_L=yes |
| 9452 | ;; |
| 9453 | esac |
| 9454 | ;; |
| 9455 | |
| 9456 | beos*) |
| 9457 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9458 | allow_undefined_flag=unsupported |
| 9459 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9460 | # support --undefined. This deserves some investigation. FIXME |
| 9461 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9462 | else |
| 9463 | ld_shlibs=no |
| 9464 | fi |
| 9465 | ;; |
| 9466 | |
| 9467 | cygwin* | mingw* | pw32* | cegcc*) |
| 9468 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9469 | # as there is no search path for DLLs. |
| 9470 | hardcode_libdir_flag_spec='-L$libdir' |
| 9471 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9472 | allow_undefined_flag=unsupported |
| 9473 | always_export_symbols=no |
| 9474 | enable_shared_with_static_runtimes=yes |
| 9475 | 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' |
| 9476 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9477 | |
| 9478 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9479 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9480 | # If the export-symbols file already is a .def file (1st line |
| 9481 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9482 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9483 | cp $export_symbols $output_objdir/$soname.def; |
| 9484 | else |
| 9485 | echo EXPORTS > $output_objdir/$soname.def; |
| 9486 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9487 | fi~ |
| 9488 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9489 | else |
| 9490 | ld_shlibs=no |
| 9491 | fi |
| 9492 | ;; |
| 9493 | |
| 9494 | haiku*) |
| 9495 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9496 | link_all_deplibs=yes |
| 9497 | ;; |
| 9498 | |
| 9499 | interix[3-9]*) |
| 9500 | hardcode_direct=no |
| 9501 | hardcode_shlibpath_var=no |
| 9502 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9503 | export_dynamic_flag_spec='${wl}-E' |
| 9504 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9505 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9506 | # default) and relocated if they conflict, which is a slow very memory |
| 9507 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9508 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9509 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9510 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9511 | 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' |
| 9512 | ;; |
| 9513 | |
| 9514 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9515 | tmp_diet=no |
| 9516 | if test "$host_os" = linux-dietlibc; then |
| 9517 | case $cc_basename in |
| 9518 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9519 | esac |
| 9520 | fi |
| 9521 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9522 | && test "$tmp_diet" = no |
| 9523 | then |
| 9524 | tmp_addflag=' $pic_flag' |
| 9525 | tmp_sharedflag='-shared' |
| 9526 | case $cc_basename,$host_cpu in |
| 9527 | pgcc*) # Portland Group C compiler |
| 9528 | 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' |
| 9529 | tmp_addflag=' $pic_flag' |
| 9530 | ;; |
| 9531 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9532 | # Portland Group f77 and f90 compilers |
| 9533 | 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' |
| 9534 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9535 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9536 | tmp_addflag=' -i_dynamic' ;; |
| 9537 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9538 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9539 | ifc* | ifort*) # Intel Fortran compiler |
| 9540 | tmp_addflag=' -nofor_main' ;; |
| 9541 | lf95*) # Lahey Fortran 8.1 |
| 9542 | whole_archive_flag_spec= |
| 9543 | tmp_sharedflag='--shared' ;; |
| 9544 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9545 | tmp_sharedflag='-qmkshrobj' |
| 9546 | tmp_addflag= ;; |
| 9547 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9548 | 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' |
| 9549 | compiler_needs_object=yes |
| 9550 | ;; |
| 9551 | esac |
| 9552 | case `$CC -V 2>&1 | sed 5q` in |
| 9553 | *Sun\ C*) # Sun C 5.9 |
| 9554 | 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' |
| 9555 | compiler_needs_object=yes |
| 9556 | tmp_sharedflag='-G' ;; |
| 9557 | *Sun\ F*) # Sun Fortran 8.3 |
| 9558 | tmp_sharedflag='-G' ;; |
| 9559 | esac |
| 9560 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9561 | |
| 9562 | if test "x$supports_anon_versioning" = xyes; then |
| 9563 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9564 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9565 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9566 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9567 | fi |
| 9568 | |
| 9569 | case $cc_basename in |
| 9570 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9571 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9572 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9573 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9574 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9575 | if test "x$supports_anon_versioning" = xyes; then |
| 9576 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9577 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9578 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9579 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9580 | fi |
| 9581 | ;; |
| 9582 | esac |
| 9583 | else |
| 9584 | ld_shlibs=no |
| 9585 | fi |
| 9586 | ;; |
| 9587 | |
| 9588 | netbsd* | netbsdelf*-gnu) |
| 9589 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9590 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9591 | wlarc= |
| 9592 | else |
| 9593 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9594 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9595 | fi |
| 9596 | ;; |
| 9597 | |
| 9598 | solaris*) |
| 9599 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9600 | ld_shlibs=no |
| 9601 | cat <<_LT_EOF 1>&2 |
| 9602 | |
| 9603 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9604 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9605 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9606 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9607 | *** your PATH or compiler configuration so that the native linker is |
| 9608 | *** used, and then restart. |
| 9609 | |
| 9610 | _LT_EOF |
| 9611 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9612 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9613 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9614 | else |
| 9615 | ld_shlibs=no |
| 9616 | fi |
| 9617 | ;; |
| 9618 | |
| 9619 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9620 | case `$LD -v 2>&1` in |
| 9621 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9622 | ld_shlibs=no |
| 9623 | cat <<_LT_EOF 1>&2 |
| 9624 | |
| 9625 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9626 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9627 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9628 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9629 | *** your PATH or compiler configuration so that the native linker is |
| 9630 | *** used, and then restart. |
| 9631 | |
| 9632 | _LT_EOF |
| 9633 | ;; |
| 9634 | *) |
| 9635 | # For security reasons, it is highly recommended that you always |
| 9636 | # use absolute paths for naming shared libraries, and exclude the |
| 9637 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9638 | # requires that you compile everything twice, which is a pain. |
| 9639 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9640 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9641 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9642 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9643 | else |
| 9644 | ld_shlibs=no |
| 9645 | fi |
| 9646 | ;; |
| 9647 | esac |
| 9648 | ;; |
| 9649 | |
| 9650 | sunos4*) |
| 9651 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9652 | wlarc= |
| 9653 | hardcode_direct=yes |
| 9654 | hardcode_shlibpath_var=no |
| 9655 | ;; |
| 9656 | |
| 9657 | *) |
| 9658 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9659 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9660 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9661 | else |
| 9662 | ld_shlibs=no |
| 9663 | fi |
| 9664 | ;; |
| 9665 | esac |
| 9666 | |
| 9667 | if test "$ld_shlibs" = no; then |
| 9668 | runpath_var= |
| 9669 | hardcode_libdir_flag_spec= |
| 9670 | export_dynamic_flag_spec= |
| 9671 | whole_archive_flag_spec= |
| 9672 | fi |
| 9673 | else |
| 9674 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9675 | case $host_os in |
| 9676 | aix3*) |
| 9677 | allow_undefined_flag=unsupported |
| 9678 | always_export_symbols=yes |
| 9679 | 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' |
| 9680 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9681 | # are no directories specified by -L. |
| 9682 | hardcode_minus_L=yes |
| 9683 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9684 | # Neither direct hardcoding nor static linking is supported with a |
| 9685 | # broken collect2. |
| 9686 | hardcode_direct=unsupported |
| 9687 | fi |
| 9688 | ;; |
| 9689 | |
| 9690 | aix[4-9]*) |
| 9691 | if test "$host_cpu" = ia64; then |
| 9692 | # On IA64, the linker does run time linking by default, so we don't |
| 9693 | # have to do anything special. |
| 9694 | aix_use_runtimelinking=no |
| 9695 | exp_sym_flag='-Bexport' |
| 9696 | no_entry_flag="" |
| 9697 | else |
| 9698 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9699 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9700 | # Also, AIX nm treats weak defined symbols like other global |
| 9701 | # defined symbols, whereas GNU nm marks them as "W". |
| 9702 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9703 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9704 | else |
| 9705 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9706 | fi |
| 9707 | aix_use_runtimelinking=no |
| 9708 | |
| 9709 | # Test if we are trying to use run time linking or normal |
| 9710 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9711 | # need to do runtime linking. |
| 9712 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9713 | for ld_flag in $LDFLAGS; do |
| 9714 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9715 | aix_use_runtimelinking=yes |
| 9716 | break |
| 9717 | fi |
| 9718 | done |
| 9719 | ;; |
| 9720 | esac |
| 9721 | |
| 9722 | exp_sym_flag='-bexport' |
| 9723 | no_entry_flag='-bnoentry' |
| 9724 | fi |
| 9725 | |
| 9726 | # When large executables or shared objects are built, AIX ld can |
| 9727 | # have problems creating the table of contents. If linking a library |
| 9728 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9729 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9730 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9731 | |
| 9732 | archive_cmds='' |
| 9733 | hardcode_direct=yes |
| 9734 | hardcode_direct_absolute=yes |
| 9735 | hardcode_libdir_separator=':' |
| 9736 | link_all_deplibs=yes |
| 9737 | file_list_spec='${wl}-f,' |
| 9738 | |
| 9739 | if test "$GCC" = yes; then |
| 9740 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9741 | # We only want to do this on AIX 4.2 and lower, the check |
| 9742 | # below for broken collect2 doesn't work under 4.3+ |
| 9743 | collect2name=`${CC} -print-prog-name=collect2` |
| 9744 | if test -f "$collect2name" && |
| 9745 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9746 | then |
| 9747 | # We have reworked collect2 |
| 9748 | : |
| 9749 | else |
| 9750 | # We have old collect2 |
| 9751 | hardcode_direct=unsupported |
| 9752 | # It fails to find uninstalled libraries when the uninstalled |
| 9753 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9754 | # to unsupported forces relinking |
| 9755 | hardcode_minus_L=yes |
| 9756 | hardcode_libdir_flag_spec='-L$libdir' |
| 9757 | hardcode_libdir_separator= |
| 9758 | fi |
| 9759 | ;; |
| 9760 | esac |
| 9761 | shared_flag='-shared' |
| 9762 | if test "$aix_use_runtimelinking" = yes; then |
| 9763 | shared_flag="$shared_flag "'${wl}-G' |
| 9764 | fi |
| 9765 | link_all_deplibs=no |
| 9766 | else |
| 9767 | # not using gcc |
| 9768 | if test "$host_cpu" = ia64; then |
| 9769 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9770 | # chokes on -Wl,-G. The following line is correct: |
| 9771 | shared_flag='-G' |
| 9772 | else |
| 9773 | if test "$aix_use_runtimelinking" = yes; then |
| 9774 | shared_flag='${wl}-G' |
| 9775 | else |
| 9776 | shared_flag='${wl}-bM:SRE' |
| 9777 | fi |
| 9778 | fi |
| 9779 | fi |
| 9780 | |
| 9781 | export_dynamic_flag_spec='${wl}-bexpall' |
| 9782 | # It seems that -bexpall does not export symbols beginning with |
| 9783 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9784 | always_export_symbols=yes |
| 9785 | if test "$aix_use_runtimelinking" = yes; then |
| 9786 | # Warning - without using the other runtime loading flags (-brtl), |
| 9787 | # -berok will link without error, but may produce a broken library. |
| 9788 | allow_undefined_flag='-berok' |
| 9789 | # Determine the default libpath from the value encoded in an |
| 9790 | # empty executable. |
| 9791 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9792 | aix_libpath=$lt_cv_aix_libpath |
| 9793 | else |
| 9794 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9795 | $as_echo_n "(cached) " >&6 |
| 9796 | else |
| 9797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9798 | /* end confdefs.h. */ |
| 9799 | |
| 9800 | int |
| 9801 | main () |
| 9802 | { |
| 9803 | |
| 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
| 9808 | if ac_fn_c_try_link "$LINENO"; then : |
| 9809 | |
| 9810 | lt_aix_libpath_sed=' |
| 9811 | /Import File Strings/,/^$/ { |
| 9812 | /^0/ { |
| 9813 | s/^0 *\([^ ]*\) *$/\1/ |
| 9814 | p |
| 9815 | } |
| 9816 | }' |
| 9817 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9818 | # Check for a 64-bit object if we didn't find anything. |
| 9819 | if test -z "$lt_cv_aix_libpath_"; then |
| 9820 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9821 | fi |
| 9822 | fi |
| 9823 | rm -f core conftest.err conftest.$ac_objext \ |
| 9824 | conftest$ac_exeext conftest.$ac_ext |
| 9825 | if test -z "$lt_cv_aix_libpath_"; then |
| 9826 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9827 | fi |
| 9828 | |
| 9829 | fi |
| 9830 | |
| 9831 | aix_libpath=$lt_cv_aix_libpath_ |
| 9832 | fi |
| 9833 | |
| 9834 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9835 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9836 | else |
| 9837 | if test "$host_cpu" = ia64; then |
| 9838 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9839 | allow_undefined_flag="-z nodefs" |
| 9840 | 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" |
| 9841 | else |
| 9842 | # Determine the default libpath from the value encoded in an |
| 9843 | # empty executable. |
| 9844 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9845 | aix_libpath=$lt_cv_aix_libpath |
| 9846 | else |
| 9847 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9848 | $as_echo_n "(cached) " >&6 |
| 9849 | else |
| 9850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9851 | /* end confdefs.h. */ |
| 9852 | |
| 9853 | int |
| 9854 | main () |
| 9855 | { |
| 9856 | |
| 9857 | ; |
| 9858 | return 0; |
| 9859 | } |
| 9860 | _ACEOF |
| 9861 | if ac_fn_c_try_link "$LINENO"; then : |
| 9862 | |
| 9863 | lt_aix_libpath_sed=' |
| 9864 | /Import File Strings/,/^$/ { |
| 9865 | /^0/ { |
| 9866 | s/^0 *\([^ ]*\) *$/\1/ |
| 9867 | p |
| 9868 | } |
| 9869 | }' |
| 9870 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9871 | # Check for a 64-bit object if we didn't find anything. |
| 9872 | if test -z "$lt_cv_aix_libpath_"; then |
| 9873 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9874 | fi |
| 9875 | fi |
| 9876 | rm -f core conftest.err conftest.$ac_objext \ |
| 9877 | conftest$ac_exeext conftest.$ac_ext |
| 9878 | if test -z "$lt_cv_aix_libpath_"; then |
| 9879 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9880 | fi |
| 9881 | |
| 9882 | fi |
| 9883 | |
| 9884 | aix_libpath=$lt_cv_aix_libpath_ |
| 9885 | fi |
| 9886 | |
| 9887 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9888 | # Warning - without using the other run time loading flags, |
| 9889 | # -berok will link without error, but may produce a broken library. |
| 9890 | no_undefined_flag=' ${wl}-bernotok' |
| 9891 | allow_undefined_flag=' ${wl}-berok' |
| 9892 | if test "$with_gnu_ld" = yes; then |
| 9893 | # We only use this code for GNU lds that support --whole-archive. |
| 9894 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9895 | else |
| 9896 | # Exported symbols can be pulled into shared objects from archives |
| 9897 | whole_archive_flag_spec='$convenience' |
| 9898 | fi |
| 9899 | archive_cmds_need_lc=yes |
| 9900 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9901 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 9902 | fi |
| 9903 | fi |
| 9904 | ;; |
| 9905 | |
| 9906 | amigaos*) |
| 9907 | case $host_cpu in |
| 9908 | powerpc) |
| 9909 | # see comment about AmigaOS4 .so support |
| 9910 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9911 | archive_expsym_cmds='' |
| 9912 | ;; |
| 9913 | m68k) |
| 9914 | 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)' |
| 9915 | hardcode_libdir_flag_spec='-L$libdir' |
| 9916 | hardcode_minus_L=yes |
| 9917 | ;; |
| 9918 | esac |
| 9919 | ;; |
| 9920 | |
| 9921 | bsdi[45]*) |
| 9922 | export_dynamic_flag_spec=-rdynamic |
| 9923 | ;; |
| 9924 | |
| 9925 | cygwin* | mingw* | pw32* | cegcc*) |
| 9926 | # When not using gcc, we currently assume that we are using |
| 9927 | # Microsoft Visual C++. |
| 9928 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9929 | # no search path for DLLs. |
| 9930 | case $cc_basename in |
| 9931 | cl*) |
| 9932 | # Native MSVC |
| 9933 | hardcode_libdir_flag_spec=' ' |
| 9934 | allow_undefined_flag=unsupported |
| 9935 | always_export_symbols=yes |
| 9936 | file_list_spec='@' |
| 9937 | # Tell ltmain to make .lib files, not .a files. |
| 9938 | libext=lib |
| 9939 | # Tell ltmain to make .dll files, not .so files. |
| 9940 | shrext_cmds=".dll" |
| 9941 | # FIXME: Setting linknames here is a bad hack. |
| 9942 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9943 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9944 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9945 | else |
| 9946 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9947 | fi~ |
| 9948 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9949 | linknames=' |
| 9950 | # The linker will not automatically build a static lib if we build a DLL. |
| 9951 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9952 | enable_shared_with_static_runtimes=yes |
| 9953 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9954 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9955 | # Don't use ranlib |
| 9956 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9957 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9958 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9959 | case $lt_outputfile in |
| 9960 | *.exe|*.EXE) ;; |
| 9961 | *) |
| 9962 | lt_outputfile="$lt_outputfile.exe" |
| 9963 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9964 | ;; |
| 9965 | esac~ |
| 9966 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9967 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9968 | $RM "$lt_outputfile.manifest"; |
| 9969 | fi' |
| 9970 | ;; |
| 9971 | *) |
| 9972 | # Assume MSVC wrapper |
| 9973 | hardcode_libdir_flag_spec=' ' |
| 9974 | allow_undefined_flag=unsupported |
| 9975 | # Tell ltmain to make .lib files, not .a files. |
| 9976 | libext=lib |
| 9977 | # Tell ltmain to make .dll files, not .so files. |
| 9978 | shrext_cmds=".dll" |
| 9979 | # FIXME: Setting linknames here is a bad hack. |
| 9980 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9981 | # The linker will automatically build a .lib file if we build a DLL. |
| 9982 | old_archive_from_new_cmds='true' |
| 9983 | # FIXME: Should let the user specify the lib program. |
| 9984 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9985 | enable_shared_with_static_runtimes=yes |
| 9986 | ;; |
| 9987 | esac |
| 9988 | ;; |
| 9989 | |
| 9990 | darwin* | rhapsody*) |
| 9991 | |
| 9992 | |
| 9993 | archive_cmds_need_lc=no |
| 9994 | hardcode_direct=no |
| 9995 | hardcode_automatic=yes |
| 9996 | hardcode_shlibpath_var=unsupported |
| 9997 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9998 | 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\"`' |
| 9999 | |
| 10000 | else |
| 10001 | whole_archive_flag_spec='' |
| 10002 | fi |
| 10003 | link_all_deplibs=yes |
| 10004 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 10005 | case $cc_basename in |
| 10006 | ifort*) _lt_dar_can_shared=yes ;; |
| 10007 | *) _lt_dar_can_shared=$GCC ;; |
| 10008 | esac |
| 10009 | if test "$_lt_dar_can_shared" = "yes"; then |
| 10010 | output_verbose_link_cmd=func_echo_all |
| 10011 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 10012 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 10013 | 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}" |
| 10014 | 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}" |
| 10015 | |
| 10016 | else |
| 10017 | ld_shlibs=no |
| 10018 | fi |
| 10019 | |
| 10020 | ;; |
| 10021 | |
| 10022 | dgux*) |
| 10023 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10024 | hardcode_libdir_flag_spec='-L$libdir' |
| 10025 | hardcode_shlibpath_var=no |
| 10026 | ;; |
| 10027 | |
| 10028 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 10029 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 10030 | # does not break anything, and helps significantly (at the cost of a little |
| 10031 | # extra space). |
| 10032 | freebsd2.2*) |
| 10033 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 10034 | hardcode_libdir_flag_spec='-R$libdir' |
| 10035 | hardcode_direct=yes |
| 10036 | hardcode_shlibpath_var=no |
| 10037 | ;; |
| 10038 | |
| 10039 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 10040 | freebsd2.*) |
| 10041 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10042 | hardcode_direct=yes |
| 10043 | hardcode_minus_L=yes |
| 10044 | hardcode_shlibpath_var=no |
| 10045 | ;; |
| 10046 | |
| 10047 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 10048 | freebsd* | dragonfly*) |
| 10049 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10050 | hardcode_libdir_flag_spec='-R$libdir' |
| 10051 | hardcode_direct=yes |
| 10052 | hardcode_shlibpath_var=no |
| 10053 | ;; |
| 10054 | |
| 10055 | hpux9*) |
| 10056 | if test "$GCC" = yes; then |
| 10057 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10058 | else |
| 10059 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10060 | fi |
| 10061 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10062 | hardcode_libdir_separator=: |
| 10063 | hardcode_direct=yes |
| 10064 | |
| 10065 | # hardcode_minus_L: Not really in the search PATH, |
| 10066 | # but as the default location of the library. |
| 10067 | hardcode_minus_L=yes |
| 10068 | export_dynamic_flag_spec='${wl}-E' |
| 10069 | ;; |
| 10070 | |
| 10071 | hpux10*) |
| 10072 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10073 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10074 | else |
| 10075 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10076 | fi |
| 10077 | if test "$with_gnu_ld" = no; then |
| 10078 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10079 | hardcode_libdir_separator=: |
| 10080 | hardcode_direct=yes |
| 10081 | hardcode_direct_absolute=yes |
| 10082 | export_dynamic_flag_spec='${wl}-E' |
| 10083 | # hardcode_minus_L: Not really in the search PATH, |
| 10084 | # but as the default location of the library. |
| 10085 | hardcode_minus_L=yes |
| 10086 | fi |
| 10087 | ;; |
| 10088 | |
| 10089 | hpux11*) |
| 10090 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10091 | case $host_cpu in |
| 10092 | hppa*64*) |
| 10093 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10094 | ;; |
| 10095 | ia64*) |
| 10096 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10097 | ;; |
| 10098 | *) |
| 10099 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10100 | ;; |
| 10101 | esac |
| 10102 | else |
| 10103 | case $host_cpu in |
| 10104 | hppa*64*) |
| 10105 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10106 | ;; |
| 10107 | ia64*) |
| 10108 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10109 | ;; |
| 10110 | *) |
| 10111 | |
| 10112 | # Older versions of the 11.00 compiler do not understand -b yet |
| 10113 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 10115 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 10116 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 10117 | $as_echo_n "(cached) " >&6 |
| 10118 | else |
| 10119 | lt_cv_prog_compiler__b=no |
| 10120 | save_LDFLAGS="$LDFLAGS" |
| 10121 | LDFLAGS="$LDFLAGS -b" |
| 10122 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10123 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10124 | # The linker can only warn and ignore the option if not recognized |
| 10125 | # So say no if there are warnings |
| 10126 | if test -s conftest.err; then |
| 10127 | # Append any errors to the config.log. |
| 10128 | cat conftest.err 1>&5 |
| 10129 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10130 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10131 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10132 | lt_cv_prog_compiler__b=yes |
| 10133 | fi |
| 10134 | else |
| 10135 | lt_cv_prog_compiler__b=yes |
| 10136 | fi |
| 10137 | fi |
| 10138 | $RM -r conftest* |
| 10139 | LDFLAGS="$save_LDFLAGS" |
| 10140 | |
| 10141 | fi |
| 10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 10143 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 10144 | |
| 10145 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 10146 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10147 | else |
| 10148 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10149 | fi |
| 10150 | |
| 10151 | ;; |
| 10152 | esac |
| 10153 | fi |
| 10154 | if test "$with_gnu_ld" = no; then |
| 10155 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10156 | hardcode_libdir_separator=: |
| 10157 | |
| 10158 | case $host_cpu in |
| 10159 | hppa*64*|ia64*) |
| 10160 | hardcode_direct=no |
| 10161 | hardcode_shlibpath_var=no |
| 10162 | ;; |
| 10163 | *) |
| 10164 | hardcode_direct=yes |
| 10165 | hardcode_direct_absolute=yes |
| 10166 | export_dynamic_flag_spec='${wl}-E' |
| 10167 | |
| 10168 | # hardcode_minus_L: Not really in the search PATH, |
| 10169 | # but as the default location of the library. |
| 10170 | hardcode_minus_L=yes |
| 10171 | ;; |
| 10172 | esac |
| 10173 | fi |
| 10174 | ;; |
| 10175 | |
| 10176 | irix5* | irix6* | nonstopux*) |
| 10177 | if test "$GCC" = yes; then |
| 10178 | 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' |
| 10179 | # Try to use the -exported_symbol ld option, if it does not |
| 10180 | # work, assume that -exports_file does not work either and |
| 10181 | # implicitly export all symbols. |
| 10182 | # This should be the same for all languages, so no per-tag cache variable. |
| 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 10184 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 10185 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 10186 | $as_echo_n "(cached) " >&6 |
| 10187 | else |
| 10188 | save_LDFLAGS="$LDFLAGS" |
| 10189 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10191 | /* end confdefs.h. */ |
| 10192 | int foo (void) { return 0; } |
| 10193 | _ACEOF |
| 10194 | if ac_fn_c_try_link "$LINENO"; then : |
| 10195 | lt_cv_irix_exported_symbol=yes |
| 10196 | else |
| 10197 | lt_cv_irix_exported_symbol=no |
| 10198 | fi |
| 10199 | rm -f core conftest.err conftest.$ac_objext \ |
| 10200 | conftest$ac_exeext conftest.$ac_ext |
| 10201 | LDFLAGS="$save_LDFLAGS" |
| 10202 | fi |
| 10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 10204 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 10205 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 10206 | 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' |
| 10207 | fi |
| 10208 | else |
| 10209 | 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' |
| 10210 | 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' |
| 10211 | fi |
| 10212 | archive_cmds_need_lc='no' |
| 10213 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10214 | hardcode_libdir_separator=: |
| 10215 | inherit_rpath=yes |
| 10216 | link_all_deplibs=yes |
| 10217 | ;; |
| 10218 | |
| 10219 | netbsd* | netbsdelf*-gnu) |
| 10220 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10221 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10222 | else |
| 10223 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10224 | fi |
| 10225 | hardcode_libdir_flag_spec='-R$libdir' |
| 10226 | hardcode_direct=yes |
| 10227 | hardcode_shlibpath_var=no |
| 10228 | ;; |
| 10229 | |
| 10230 | newsos6) |
| 10231 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10232 | hardcode_direct=yes |
| 10233 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10234 | hardcode_libdir_separator=: |
| 10235 | hardcode_shlibpath_var=no |
| 10236 | ;; |
| 10237 | |
| 10238 | *nto* | *qnx*) |
| 10239 | ;; |
| 10240 | |
| 10241 | openbsd*) |
| 10242 | if test -f /usr/libexec/ld.so; then |
| 10243 | hardcode_direct=yes |
| 10244 | hardcode_shlibpath_var=no |
| 10245 | hardcode_direct_absolute=yes |
| 10246 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10247 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10248 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10249 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10250 | export_dynamic_flag_spec='${wl}-E' |
| 10251 | else |
| 10252 | case $host_os in |
| 10253 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10254 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10255 | hardcode_libdir_flag_spec='-R$libdir' |
| 10256 | ;; |
| 10257 | *) |
| 10258 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10259 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10260 | ;; |
| 10261 | esac |
| 10262 | fi |
| 10263 | else |
| 10264 | ld_shlibs=no |
| 10265 | fi |
| 10266 | ;; |
| 10267 | |
| 10268 | os2*) |
| 10269 | hardcode_libdir_flag_spec='-L$libdir' |
| 10270 | hardcode_minus_L=yes |
| 10271 | allow_undefined_flag=unsupported |
| 10272 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 10273 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10274 | ;; |
| 10275 | |
| 10276 | osf3*) |
| 10277 | if test "$GCC" = yes; then |
| 10278 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10279 | 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' |
| 10280 | else |
| 10281 | allow_undefined_flag=' -expect_unresolved \*' |
| 10282 | 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' |
| 10283 | fi |
| 10284 | archive_cmds_need_lc='no' |
| 10285 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10286 | hardcode_libdir_separator=: |
| 10287 | ;; |
| 10288 | |
| 10289 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10290 | if test "$GCC" = yes; then |
| 10291 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10292 | 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' |
| 10293 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10294 | else |
| 10295 | allow_undefined_flag=' -expect_unresolved \*' |
| 10296 | 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' |
| 10297 | 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~ |
| 10298 | $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' |
| 10299 | |
| 10300 | # Both c and cxx compiler support -rpath directly |
| 10301 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10302 | fi |
| 10303 | archive_cmds_need_lc='no' |
| 10304 | hardcode_libdir_separator=: |
| 10305 | ;; |
| 10306 | |
| 10307 | solaris*) |
| 10308 | no_undefined_flag=' -z defs' |
| 10309 | if test "$GCC" = yes; then |
| 10310 | wlarc='${wl}' |
| 10311 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10312 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10313 | $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' |
| 10314 | else |
| 10315 | case `$CC -V 2>&1` in |
| 10316 | *"Compilers 5.0"*) |
| 10317 | wlarc='' |
| 10318 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10319 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10320 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10321 | ;; |
| 10322 | *) |
| 10323 | wlarc='${wl}' |
| 10324 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10325 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10326 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10327 | ;; |
| 10328 | esac |
| 10329 | fi |
| 10330 | hardcode_libdir_flag_spec='-R$libdir' |
| 10331 | hardcode_shlibpath_var=no |
| 10332 | case $host_os in |
| 10333 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10334 | *) |
| 10335 | # The compiler driver will combine and reorder linker options, |
| 10336 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10337 | # but is careful enough not to reorder. |
| 10338 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10339 | if test "$GCC" = yes; then |
| 10340 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10341 | else |
| 10342 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10343 | fi |
| 10344 | ;; |
| 10345 | esac |
| 10346 | link_all_deplibs=yes |
| 10347 | ;; |
| 10348 | |
| 10349 | sunos4*) |
| 10350 | if test "x$host_vendor" = xsequent; then |
| 10351 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10352 | # files that make .init and .fini sections work. |
| 10353 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10354 | else |
| 10355 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10356 | fi |
| 10357 | hardcode_libdir_flag_spec='-L$libdir' |
| 10358 | hardcode_direct=yes |
| 10359 | hardcode_minus_L=yes |
| 10360 | hardcode_shlibpath_var=no |
| 10361 | ;; |
| 10362 | |
| 10363 | sysv4) |
| 10364 | case $host_vendor in |
| 10365 | sni) |
| 10366 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10367 | hardcode_direct=yes # is this really true??? |
| 10368 | ;; |
| 10369 | siemens) |
| 10370 | ## LD is ld it makes a PLAMLIB |
| 10371 | ## CC just makes a GrossModule. |
| 10372 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10373 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10374 | hardcode_direct=no |
| 10375 | ;; |
| 10376 | motorola) |
| 10377 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10378 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10379 | ;; |
| 10380 | esac |
| 10381 | runpath_var='LD_RUN_PATH' |
| 10382 | hardcode_shlibpath_var=no |
| 10383 | ;; |
| 10384 | |
| 10385 | sysv4.3*) |
| 10386 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10387 | hardcode_shlibpath_var=no |
| 10388 | export_dynamic_flag_spec='-Bexport' |
| 10389 | ;; |
| 10390 | |
| 10391 | sysv4*MP*) |
| 10392 | if test -d /usr/nec; then |
| 10393 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10394 | hardcode_shlibpath_var=no |
| 10395 | runpath_var=LD_RUN_PATH |
| 10396 | hardcode_runpath_var=yes |
| 10397 | ld_shlibs=yes |
| 10398 | fi |
| 10399 | ;; |
| 10400 | |
| 10401 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10402 | no_undefined_flag='${wl}-z,text' |
| 10403 | archive_cmds_need_lc=no |
| 10404 | hardcode_shlibpath_var=no |
| 10405 | runpath_var='LD_RUN_PATH' |
| 10406 | |
| 10407 | if test "$GCC" = yes; then |
| 10408 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10409 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10410 | else |
| 10411 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10412 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10413 | fi |
| 10414 | ;; |
| 10415 | |
| 10416 | sysv5* | sco3.2v5* | sco5v6*) |
| 10417 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 10418 | # link with -lc, and that would cause any symbols used from libc to |
| 10419 | # always be unresolved, which means just about no library would |
| 10420 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10421 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10422 | # as -z defs. |
| 10423 | no_undefined_flag='${wl}-z,text' |
| 10424 | allow_undefined_flag='${wl}-z,nodefs' |
| 10425 | archive_cmds_need_lc=no |
| 10426 | hardcode_shlibpath_var=no |
| 10427 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10428 | hardcode_libdir_separator=':' |
| 10429 | link_all_deplibs=yes |
| 10430 | export_dynamic_flag_spec='${wl}-Bexport' |
| 10431 | runpath_var='LD_RUN_PATH' |
| 10432 | |
| 10433 | if test "$GCC" = yes; then |
| 10434 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10435 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10436 | else |
| 10437 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10438 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10439 | fi |
| 10440 | ;; |
| 10441 | |
| 10442 | uts4*) |
| 10443 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10444 | hardcode_libdir_flag_spec='-L$libdir' |
| 10445 | hardcode_shlibpath_var=no |
| 10446 | ;; |
| 10447 | |
| 10448 | *) |
| 10449 | ld_shlibs=no |
| 10450 | ;; |
| 10451 | esac |
| 10452 | |
| 10453 | if test x$host_vendor = xsni; then |
| 10454 | case $host in |
| 10455 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10456 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10457 | ;; |
| 10458 | esac |
| 10459 | fi |
| 10460 | fi |
| 10461 | |
| 10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10463 | $as_echo "$ld_shlibs" >&6; } |
| 10464 | test "$ld_shlibs" = no && can_build_shared=no |
| 10465 | |
| 10466 | with_gnu_ld=$with_gnu_ld |
| 10467 | |
| 10468 | |
| 10469 | |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | # |
| 10483 | # Do we need to explicitly link libc? |
| 10484 | # |
| 10485 | case "x$archive_cmds_need_lc" in |
| 10486 | x|xyes) |
| 10487 | # Assume -lc should be added |
| 10488 | archive_cmds_need_lc=yes |
| 10489 | |
| 10490 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10491 | case $archive_cmds in |
| 10492 | *'~'*) |
| 10493 | # FIXME: we may have to deal with multi-command sequences. |
| 10494 | ;; |
| 10495 | '$CC '*) |
| 10496 | # Test whether the compiler implicitly links with -lc since on some |
| 10497 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10498 | # to ld, don't add -lc before -lgcc. |
| 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10500 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10501 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10502 | $as_echo_n "(cached) " >&6 |
| 10503 | else |
| 10504 | $RM conftest* |
| 10505 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10506 | |
| 10507 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10508 | (eval $ac_compile) 2>&5 |
| 10509 | ac_status=$? |
| 10510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10511 | test $ac_status = 0; } 2>conftest.err; then |
| 10512 | soname=conftest |
| 10513 | lib=conftest |
| 10514 | libobjs=conftest.$ac_objext |
| 10515 | deplibs= |
| 10516 | wl=$lt_prog_compiler_wl |
| 10517 | pic_flag=$lt_prog_compiler_pic |
| 10518 | compiler_flags=-v |
| 10519 | linker_flags=-v |
| 10520 | verstring= |
| 10521 | output_objdir=. |
| 10522 | libname=conftest |
| 10523 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10524 | allow_undefined_flag= |
| 10525 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10526 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10527 | ac_status=$? |
| 10528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10529 | test $ac_status = 0; } |
| 10530 | then |
| 10531 | lt_cv_archive_cmds_need_lc=no |
| 10532 | else |
| 10533 | lt_cv_archive_cmds_need_lc=yes |
| 10534 | fi |
| 10535 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10536 | else |
| 10537 | cat conftest.err 1>&5 |
| 10538 | fi |
| 10539 | $RM conftest* |
| 10540 | |
| 10541 | fi |
| 10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10543 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10544 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10545 | ;; |
| 10546 | esac |
| 10547 | fi |
| 10548 | ;; |
| 10549 | esac |
| 10550 | |
| 10551 | |
| 10552 | |
| 10553 | |
| 10554 | |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | |
| 10590 | |
| 10591 | |
| 10592 | |
| 10593 | |
| 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | |
| 10622 | |
| 10623 | |
| 10624 | |
| 10625 | |
| 10626 | |
| 10627 | |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | |
| 10633 | |
| 10634 | |
| 10635 | |
| 10636 | |
| 10637 | |
| 10638 | |
| 10639 | |
| 10640 | |
| 10641 | |
| 10642 | |
| 10643 | |
| 10644 | |
| 10645 | |
| 10646 | |
| 10647 | |
| 10648 | |
| 10649 | |
| 10650 | |
| 10651 | |
| 10652 | |
| 10653 | |
| 10654 | |
| 10655 | |
| 10656 | |
| 10657 | |
| 10658 | |
| 10659 | |
| 10660 | |
| 10661 | |
| 10662 | |
| 10663 | |
| 10664 | |
| 10665 | |
| 10666 | |
| 10667 | |
| 10668 | |
| 10669 | |
| 10670 | |
| 10671 | |
| 10672 | |
| 10673 | |
| 10674 | |
| 10675 | |
| 10676 | |
| 10677 | |
| 10678 | |
| 10679 | |
| 10680 | |
| 10681 | |
| 10682 | |
| 10683 | |
| 10684 | |
| 10685 | |
| 10686 | |
| 10687 | |
| 10688 | |
| 10689 | |
| 10690 | |
| 10691 | |
| 10692 | |
| 10693 | |
| 10694 | |
| 10695 | |
| 10696 | |
| 10697 | |
| 10698 | |
| 10699 | |
| 10700 | |
| 10701 | |
| 10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10703 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10704 | |
| 10705 | if test "$GCC" = yes; then |
| 10706 | case $host_os in |
| 10707 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10708 | *) lt_awk_arg="/^libraries:/" ;; |
| 10709 | esac |
| 10710 | case $host_os in |
| 10711 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10712 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10713 | esac |
| 10714 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10715 | case $lt_search_path_spec in |
| 10716 | *\;*) |
| 10717 | # if the path contains ";" then we assume it to be the separator |
| 10718 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10719 | # assumed that no part of a normal pathname contains ";" but that should |
| 10720 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10721 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10722 | ;; |
| 10723 | *) |
| 10724 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10725 | ;; |
| 10726 | esac |
| 10727 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10728 | # and add multilib dir if necessary. |
| 10729 | lt_tmp_lt_search_path_spec= |
| 10730 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10731 | for lt_sys_path in $lt_search_path_spec; do |
| 10732 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10733 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10734 | else |
| 10735 | test -d "$lt_sys_path" && \ |
| 10736 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10737 | fi |
| 10738 | done |
| 10739 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10740 | BEGIN {RS=" "; FS="/|\n";} { |
| 10741 | lt_foo=""; |
| 10742 | lt_count=0; |
| 10743 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10744 | if ($lt_i != "" && $lt_i != ".") { |
| 10745 | if ($lt_i == "..") { |
| 10746 | lt_count++; |
| 10747 | } else { |
| 10748 | if (lt_count == 0) { |
| 10749 | lt_foo="/" $lt_i lt_foo; |
| 10750 | } else { |
| 10751 | lt_count--; |
| 10752 | } |
| 10753 | } |
| 10754 | } |
| 10755 | } |
| 10756 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10757 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10758 | }'` |
| 10759 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10760 | # for these hosts. |
| 10761 | case $host_os in |
| 10762 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10763 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10764 | esac |
| 10765 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10766 | else |
| 10767 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10768 | fi |
| 10769 | library_names_spec= |
| 10770 | libname_spec='lib$name' |
| 10771 | soname_spec= |
| 10772 | shrext_cmds=".so" |
| 10773 | postinstall_cmds= |
| 10774 | postuninstall_cmds= |
| 10775 | finish_cmds= |
| 10776 | finish_eval= |
| 10777 | shlibpath_var= |
| 10778 | shlibpath_overrides_runpath=unknown |
| 10779 | version_type=none |
| 10780 | dynamic_linker="$host_os ld.so" |
| 10781 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10782 | need_lib_prefix=unknown |
| 10783 | hardcode_into_libs=no |
| 10784 | |
| 10785 | # when you set need_version to no, make sure it does not cause -set_version |
| 10786 | # flags to be left without arguments |
| 10787 | need_version=unknown |
| 10788 | |
| 10789 | case $host_os in |
| 10790 | aix3*) |
| 10791 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10792 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10793 | shlibpath_var=LIBPATH |
| 10794 | |
| 10795 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10796 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10797 | ;; |
| 10798 | |
| 10799 | aix[4-9]*) |
| 10800 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10801 | need_lib_prefix=no |
| 10802 | need_version=no |
| 10803 | hardcode_into_libs=yes |
| 10804 | if test "$host_cpu" = ia64; then |
| 10805 | # AIX 5 supports IA64 |
| 10806 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10807 | shlibpath_var=LD_LIBRARY_PATH |
| 10808 | else |
| 10809 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10810 | # for dependence libraries. The import file would start with |
| 10811 | # the line `#! .'. This would cause the generated library to |
| 10812 | # depend on `.', always an invalid library. This was fixed in |
| 10813 | # development snapshots of GCC prior to 3.0. |
| 10814 | case $host_os in |
| 10815 | aix4 | aix4.[01] | aix4.[01].*) |
| 10816 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10817 | echo ' yes ' |
| 10818 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10819 | : |
| 10820 | else |
| 10821 | can_build_shared=no |
| 10822 | fi |
| 10823 | ;; |
| 10824 | esac |
| 10825 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10826 | # soname into executable. Probably we can add versioning support to |
| 10827 | # collect2, so additional links can be useful in future. |
| 10828 | if test "$aix_use_runtimelinking" = yes; then |
| 10829 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10830 | # instead of lib<name>.a to let people know that these are not |
| 10831 | # typical AIX shared libraries. |
| 10832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10833 | else |
| 10834 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10835 | # and later when we are not doing run time linking. |
| 10836 | library_names_spec='${libname}${release}.a $libname.a' |
| 10837 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10838 | fi |
| 10839 | shlibpath_var=LIBPATH |
| 10840 | fi |
| 10841 | ;; |
| 10842 | |
| 10843 | amigaos*) |
| 10844 | case $host_cpu in |
| 10845 | powerpc) |
| 10846 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10847 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10849 | ;; |
| 10850 | m68k) |
| 10851 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10852 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10853 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' |
| 10854 | ;; |
| 10855 | esac |
| 10856 | ;; |
| 10857 | |
| 10858 | beos*) |
| 10859 | library_names_spec='${libname}${shared_ext}' |
| 10860 | dynamic_linker="$host_os ld.so" |
| 10861 | shlibpath_var=LIBRARY_PATH |
| 10862 | ;; |
| 10863 | |
| 10864 | bsdi[45]*) |
| 10865 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10866 | need_version=no |
| 10867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10868 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10869 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10870 | shlibpath_var=LD_LIBRARY_PATH |
| 10871 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10872 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10873 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10874 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10875 | # libtool to hard-code these into programs |
| 10876 | ;; |
| 10877 | |
| 10878 | cygwin* | mingw* | pw32* | cegcc*) |
| 10879 | version_type=windows |
| 10880 | shrext_cmds=".dll" |
| 10881 | need_version=no |
| 10882 | need_lib_prefix=no |
| 10883 | |
| 10884 | case $GCC,$cc_basename in |
| 10885 | yes,*) |
| 10886 | # gcc |
| 10887 | library_names_spec='$libname.dll.a' |
| 10888 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10889 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10890 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10891 | dldir=$destdir/`dirname \$dlpath`~ |
| 10892 | test -d \$dldir || mkdir -p \$dldir~ |
| 10893 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10894 | chmod a+x \$dldir/$dlname~ |
| 10895 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10896 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10897 | fi' |
| 10898 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10899 | dlpath=$dir/\$dldll~ |
| 10900 | $RM \$dlpath' |
| 10901 | shlibpath_overrides_runpath=yes |
| 10902 | |
| 10903 | case $host_os in |
| 10904 | cygwin*) |
| 10905 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10906 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10907 | |
| 10908 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10909 | ;; |
| 10910 | mingw* | cegcc*) |
| 10911 | # MinGW DLLs use traditional 'lib' prefix |
| 10912 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10913 | ;; |
| 10914 | pw32*) |
| 10915 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10916 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10917 | ;; |
| 10918 | esac |
| 10919 | dynamic_linker='Win32 ld.exe' |
| 10920 | ;; |
| 10921 | |
| 10922 | *,cl*) |
| 10923 | # Native MSVC |
| 10924 | libname_spec='$name' |
| 10925 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10926 | library_names_spec='${libname}.dll.lib' |
| 10927 | |
| 10928 | case $build_os in |
| 10929 | mingw*) |
| 10930 | sys_lib_search_path_spec= |
| 10931 | lt_save_ifs=$IFS |
| 10932 | IFS=';' |
| 10933 | for lt_path in $LIB |
| 10934 | do |
| 10935 | IFS=$lt_save_ifs |
| 10936 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10937 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10938 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10939 | done |
| 10940 | IFS=$lt_save_ifs |
| 10941 | # Convert to MSYS style. |
| 10942 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10943 | ;; |
| 10944 | cygwin*) |
| 10945 | # Convert to unix form, then to dos form, then back to unix form |
| 10946 | # but this time dos style (no spaces!) so that the unix form looks |
| 10947 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10948 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10949 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10950 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10951 | ;; |
| 10952 | *) |
| 10953 | sys_lib_search_path_spec="$LIB" |
| 10954 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10955 | # It is most probably a Windows format PATH. |
| 10956 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10957 | else |
| 10958 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10959 | fi |
| 10960 | # FIXME: find the short name or the path components, as spaces are |
| 10961 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10962 | ;; |
| 10963 | esac |
| 10964 | |
| 10965 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10966 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10967 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10968 | dldir=$destdir/`dirname \$dlpath`~ |
| 10969 | test -d \$dldir || mkdir -p \$dldir~ |
| 10970 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10971 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10972 | dlpath=$dir/\$dldll~ |
| 10973 | $RM \$dlpath' |
| 10974 | shlibpath_overrides_runpath=yes |
| 10975 | dynamic_linker='Win32 link.exe' |
| 10976 | ;; |
| 10977 | |
| 10978 | *) |
| 10979 | # Assume MSVC wrapper |
| 10980 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10981 | dynamic_linker='Win32 ld.exe' |
| 10982 | ;; |
| 10983 | esac |
| 10984 | # FIXME: first we should search . and the directory the executable is in |
| 10985 | shlibpath_var=PATH |
| 10986 | ;; |
| 10987 | |
| 10988 | darwin* | rhapsody*) |
| 10989 | dynamic_linker="$host_os dyld" |
| 10990 | version_type=darwin |
| 10991 | need_lib_prefix=no |
| 10992 | need_version=no |
| 10993 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10994 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10995 | shlibpath_overrides_runpath=yes |
| 10996 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10997 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10998 | |
| 10999 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 11000 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 11001 | ;; |
| 11002 | |
| 11003 | dgux*) |
| 11004 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11005 | need_lib_prefix=no |
| 11006 | need_version=no |
| 11007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11008 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11009 | shlibpath_var=LD_LIBRARY_PATH |
| 11010 | ;; |
| 11011 | |
| 11012 | freebsd* | dragonfly*) |
| 11013 | # DragonFly does not have aout. When/if they implement a new |
| 11014 | # versioning mechanism, adjust this. |
| 11015 | if test -x /usr/bin/objformat; then |
| 11016 | objformat=`/usr/bin/objformat` |
| 11017 | else |
| 11018 | case $host_os in |
| 11019 | freebsd[23].*) objformat=aout ;; |
| 11020 | *) objformat=elf ;; |
| 11021 | esac |
| 11022 | fi |
| 11023 | version_type=freebsd-$objformat |
| 11024 | case $version_type in |
| 11025 | freebsd-elf*) |
| 11026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11027 | need_version=no |
| 11028 | need_lib_prefix=no |
| 11029 | ;; |
| 11030 | freebsd-*) |
| 11031 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11032 | need_version=yes |
| 11033 | ;; |
| 11034 | esac |
| 11035 | shlibpath_var=LD_LIBRARY_PATH |
| 11036 | case $host_os in |
| 11037 | freebsd2.*) |
| 11038 | shlibpath_overrides_runpath=yes |
| 11039 | ;; |
| 11040 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 11041 | shlibpath_overrides_runpath=yes |
| 11042 | hardcode_into_libs=yes |
| 11043 | ;; |
| 11044 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 11045 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 11046 | shlibpath_overrides_runpath=no |
| 11047 | hardcode_into_libs=yes |
| 11048 | ;; |
| 11049 | *) # from 4.6 on, and DragonFly |
| 11050 | shlibpath_overrides_runpath=yes |
| 11051 | hardcode_into_libs=yes |
| 11052 | ;; |
| 11053 | esac |
| 11054 | ;; |
| 11055 | |
| 11056 | haiku*) |
| 11057 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11058 | need_lib_prefix=no |
| 11059 | need_version=no |
| 11060 | dynamic_linker="$host_os runtime_loader" |
| 11061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11062 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11063 | shlibpath_var=LIBRARY_PATH |
| 11064 | shlibpath_overrides_runpath=yes |
| 11065 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 11066 | hardcode_into_libs=yes |
| 11067 | ;; |
| 11068 | |
| 11069 | hpux9* | hpux10* | hpux11*) |
| 11070 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 11071 | # link against other versions. |
| 11072 | version_type=sunos |
| 11073 | need_lib_prefix=no |
| 11074 | need_version=no |
| 11075 | case $host_cpu in |
| 11076 | ia64*) |
| 11077 | shrext_cmds='.so' |
| 11078 | hardcode_into_libs=yes |
| 11079 | dynamic_linker="$host_os dld.so" |
| 11080 | shlibpath_var=LD_LIBRARY_PATH |
| 11081 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11083 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11084 | if test "X$HPUX_IA64_MODE" = X32; then |
| 11085 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11086 | else |
| 11087 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11088 | fi |
| 11089 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11090 | ;; |
| 11091 | hppa*64*) |
| 11092 | shrext_cmds='.sl' |
| 11093 | hardcode_into_libs=yes |
| 11094 | dynamic_linker="$host_os dld.sl" |
| 11095 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11096 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11099 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11100 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11101 | ;; |
| 11102 | *) |
| 11103 | shrext_cmds='.sl' |
| 11104 | dynamic_linker="$host_os dld.sl" |
| 11105 | shlibpath_var=SHLIB_PATH |
| 11106 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11108 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11109 | ;; |
| 11110 | esac |
| 11111 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 11112 | postinstall_cmds='chmod 555 $lib' |
| 11113 | # or fails outright, so override atomically: |
| 11114 | install_override_mode=555 |
| 11115 | ;; |
| 11116 | |
| 11117 | interix[3-9]*) |
| 11118 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11119 | need_lib_prefix=no |
| 11120 | need_version=no |
| 11121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11122 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11123 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 11124 | shlibpath_var=LD_LIBRARY_PATH |
| 11125 | shlibpath_overrides_runpath=no |
| 11126 | hardcode_into_libs=yes |
| 11127 | ;; |
| 11128 | |
| 11129 | irix5* | irix6* | nonstopux*) |
| 11130 | case $host_os in |
| 11131 | nonstopux*) version_type=nonstopux ;; |
| 11132 | *) |
| 11133 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11134 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11135 | else |
| 11136 | version_type=irix |
| 11137 | fi ;; |
| 11138 | esac |
| 11139 | need_lib_prefix=no |
| 11140 | need_version=no |
| 11141 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11143 | case $host_os in |
| 11144 | irix5* | nonstopux*) |
| 11145 | libsuff= shlibsuff= |
| 11146 | ;; |
| 11147 | *) |
| 11148 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11149 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11150 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11151 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11152 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11153 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11154 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11155 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11156 | esac |
| 11157 | ;; |
| 11158 | esac |
| 11159 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11160 | shlibpath_overrides_runpath=no |
| 11161 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11162 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11163 | hardcode_into_libs=yes |
| 11164 | ;; |
| 11165 | |
| 11166 | # No shared lib support for Linux oldld, aout, or coff. |
| 11167 | linux*oldld* | linux*aout* | linux*coff*) |
| 11168 | dynamic_linker=no |
| 11169 | ;; |
| 11170 | |
| 11171 | # This must be glibc/ELF. |
| 11172 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 11173 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11174 | need_lib_prefix=no |
| 11175 | need_version=no |
| 11176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11177 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11178 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11179 | shlibpath_var=LD_LIBRARY_PATH |
| 11180 | shlibpath_overrides_runpath=no |
| 11181 | |
| 11182 | # Some binutils ld are patched to set DT_RUNPATH |
| 11183 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 11184 | $as_echo_n "(cached) " >&6 |
| 11185 | else |
| 11186 | lt_cv_shlibpath_overrides_runpath=no |
| 11187 | save_LDFLAGS=$LDFLAGS |
| 11188 | save_libdir=$libdir |
| 11189 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11190 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 11191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11192 | /* end confdefs.h. */ |
| 11193 | |
| 11194 | int |
| 11195 | main () |
| 11196 | { |
| 11197 | |
| 11198 | ; |
| 11199 | return 0; |
| 11200 | } |
| 11201 | _ACEOF |
| 11202 | if ac_fn_c_try_link "$LINENO"; then : |
| 11203 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 11204 | lt_cv_shlibpath_overrides_runpath=yes |
| 11205 | fi |
| 11206 | fi |
| 11207 | rm -f core conftest.err conftest.$ac_objext \ |
| 11208 | conftest$ac_exeext conftest.$ac_ext |
| 11209 | LDFLAGS=$save_LDFLAGS |
| 11210 | libdir=$save_libdir |
| 11211 | |
| 11212 | fi |
| 11213 | |
| 11214 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 11215 | |
| 11216 | # This implies no fast_install, which is unacceptable. |
| 11217 | # Some rework will be needed to allow for fast_install |
| 11218 | # before this can be enabled. |
| 11219 | hardcode_into_libs=yes |
| 11220 | |
| 11221 | # Append ld.so.conf contents to the search path |
| 11222 | if test -f /etc/ld.so.conf; then |
| 11223 | 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' ' '` |
| 11224 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11225 | fi |
| 11226 | |
| 11227 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11228 | # powerpc, because MkLinux only supported shared libraries with the |
| 11229 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11230 | # most powerpc-linux boxes support dynamic linking these days and |
| 11231 | # people can always --disable-shared, the test was removed, and we |
| 11232 | # assume the GNU/Linux dynamic linker is in use. |
| 11233 | dynamic_linker='GNU/Linux ld.so' |
| 11234 | ;; |
| 11235 | |
| 11236 | netbsdelf*-gnu) |
| 11237 | version_type=linux |
| 11238 | need_lib_prefix=no |
| 11239 | need_version=no |
| 11240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11242 | shlibpath_var=LD_LIBRARY_PATH |
| 11243 | shlibpath_overrides_runpath=no |
| 11244 | hardcode_into_libs=yes |
| 11245 | dynamic_linker='NetBSD ld.elf_so' |
| 11246 | ;; |
| 11247 | |
| 11248 | netbsd*) |
| 11249 | version_type=sunos |
| 11250 | need_lib_prefix=no |
| 11251 | need_version=no |
| 11252 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11254 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11255 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11256 | else |
| 11257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11259 | dynamic_linker='NetBSD ld.elf_so' |
| 11260 | fi |
| 11261 | shlibpath_var=LD_LIBRARY_PATH |
| 11262 | shlibpath_overrides_runpath=yes |
| 11263 | hardcode_into_libs=yes |
| 11264 | ;; |
| 11265 | |
| 11266 | newsos6) |
| 11267 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11269 | shlibpath_var=LD_LIBRARY_PATH |
| 11270 | shlibpath_overrides_runpath=yes |
| 11271 | ;; |
| 11272 | |
| 11273 | *nto* | *qnx*) |
| 11274 | version_type=qnx |
| 11275 | need_lib_prefix=no |
| 11276 | need_version=no |
| 11277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11278 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11279 | shlibpath_var=LD_LIBRARY_PATH |
| 11280 | shlibpath_overrides_runpath=no |
| 11281 | hardcode_into_libs=yes |
| 11282 | dynamic_linker='ldqnx.so' |
| 11283 | ;; |
| 11284 | |
| 11285 | openbsd*) |
| 11286 | version_type=sunos |
| 11287 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 11288 | need_lib_prefix=no |
| 11289 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11290 | case $host_os in |
| 11291 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11292 | *) need_version=no ;; |
| 11293 | esac |
| 11294 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11295 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11296 | shlibpath_var=LD_LIBRARY_PATH |
| 11297 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11298 | case $host_os in |
| 11299 | openbsd2.[89] | openbsd2.[89].*) |
| 11300 | shlibpath_overrides_runpath=no |
| 11301 | ;; |
| 11302 | *) |
| 11303 | shlibpath_overrides_runpath=yes |
| 11304 | ;; |
| 11305 | esac |
| 11306 | else |
| 11307 | shlibpath_overrides_runpath=yes |
| 11308 | fi |
| 11309 | ;; |
| 11310 | |
| 11311 | os2*) |
| 11312 | libname_spec='$name' |
| 11313 | shrext_cmds=".dll" |
| 11314 | need_lib_prefix=no |
| 11315 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11316 | dynamic_linker='OS/2 ld.exe' |
| 11317 | shlibpath_var=LIBPATH |
| 11318 | ;; |
| 11319 | |
| 11320 | osf3* | osf4* | osf5*) |
| 11321 | version_type=osf |
| 11322 | need_lib_prefix=no |
| 11323 | need_version=no |
| 11324 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11326 | shlibpath_var=LD_LIBRARY_PATH |
| 11327 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11328 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11329 | ;; |
| 11330 | |
| 11331 | rdos*) |
| 11332 | dynamic_linker=no |
| 11333 | ;; |
| 11334 | |
| 11335 | solaris*) |
| 11336 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11337 | need_lib_prefix=no |
| 11338 | need_version=no |
| 11339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11340 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11341 | shlibpath_var=LD_LIBRARY_PATH |
| 11342 | shlibpath_overrides_runpath=yes |
| 11343 | hardcode_into_libs=yes |
| 11344 | # ldd complains unless libraries are executable |
| 11345 | postinstall_cmds='chmod +x $lib' |
| 11346 | ;; |
| 11347 | |
| 11348 | sunos4*) |
| 11349 | version_type=sunos |
| 11350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11351 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11352 | shlibpath_var=LD_LIBRARY_PATH |
| 11353 | shlibpath_overrides_runpath=yes |
| 11354 | if test "$with_gnu_ld" = yes; then |
| 11355 | need_lib_prefix=no |
| 11356 | fi |
| 11357 | need_version=yes |
| 11358 | ;; |
| 11359 | |
| 11360 | sysv4 | sysv4.3*) |
| 11361 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11364 | shlibpath_var=LD_LIBRARY_PATH |
| 11365 | case $host_vendor in |
| 11366 | sni) |
| 11367 | shlibpath_overrides_runpath=no |
| 11368 | need_lib_prefix=no |
| 11369 | runpath_var=LD_RUN_PATH |
| 11370 | ;; |
| 11371 | siemens) |
| 11372 | need_lib_prefix=no |
| 11373 | ;; |
| 11374 | motorola) |
| 11375 | need_lib_prefix=no |
| 11376 | need_version=no |
| 11377 | shlibpath_overrides_runpath=no |
| 11378 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11379 | ;; |
| 11380 | esac |
| 11381 | ;; |
| 11382 | |
| 11383 | sysv4*MP*) |
| 11384 | if test -d /usr/nec ;then |
| 11385 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11386 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11387 | soname_spec='$libname${shared_ext}.$major' |
| 11388 | shlibpath_var=LD_LIBRARY_PATH |
| 11389 | fi |
| 11390 | ;; |
| 11391 | |
| 11392 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11393 | version_type=freebsd-elf |
| 11394 | need_lib_prefix=no |
| 11395 | need_version=no |
| 11396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11397 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11398 | shlibpath_var=LD_LIBRARY_PATH |
| 11399 | shlibpath_overrides_runpath=yes |
| 11400 | hardcode_into_libs=yes |
| 11401 | if test "$with_gnu_ld" = yes; then |
| 11402 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11403 | else |
| 11404 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11405 | case $host_os in |
| 11406 | sco3.2v5*) |
| 11407 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11408 | ;; |
| 11409 | esac |
| 11410 | fi |
| 11411 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11412 | ;; |
| 11413 | |
| 11414 | tpf*) |
| 11415 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11416 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11417 | need_lib_prefix=no |
| 11418 | need_version=no |
| 11419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11420 | shlibpath_var=LD_LIBRARY_PATH |
| 11421 | shlibpath_overrides_runpath=no |
| 11422 | hardcode_into_libs=yes |
| 11423 | ;; |
| 11424 | |
| 11425 | uts4*) |
| 11426 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11428 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11429 | shlibpath_var=LD_LIBRARY_PATH |
| 11430 | ;; |
| 11431 | |
| 11432 | *) |
| 11433 | dynamic_linker=no |
| 11434 | ;; |
| 11435 | esac |
| 11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11437 | $as_echo "$dynamic_linker" >&6; } |
| 11438 | test "$dynamic_linker" = no && can_build_shared=no |
| 11439 | |
| 11440 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11441 | if test "$GCC" = yes; then |
| 11442 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11443 | fi |
| 11444 | |
| 11445 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11446 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11447 | fi |
| 11448 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11449 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11450 | fi |
| 11451 | |
| 11452 | |
| 11453 | |
| 11454 | |
| 11455 | |
| 11456 | |
| 11457 | |
| 11458 | |
| 11459 | |
| 11460 | |
| 11461 | |
| 11462 | |
| 11463 | |
| 11464 | |
| 11465 | |
| 11466 | |
| 11467 | |
| 11468 | |
| 11469 | |
| 11470 | |
| 11471 | |
| 11472 | |
| 11473 | |
| 11474 | |
| 11475 | |
| 11476 | |
| 11477 | |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | |
| 11506 | |
| 11507 | |
| 11508 | |
| 11509 | |
| 11510 | |
| 11511 | |
| 11512 | |
| 11513 | |
| 11514 | |
| 11515 | |
| 11516 | |
| 11517 | |
| 11518 | |
| 11519 | |
| 11520 | |
| 11521 | |
| 11522 | |
| 11523 | |
| 11524 | |
| 11525 | |
| 11526 | |
| 11527 | |
| 11528 | |
| 11529 | |
| 11530 | |
| 11531 | |
| 11532 | |
| 11533 | |
| 11534 | |
| 11535 | |
| 11536 | |
| 11537 | |
| 11538 | |
| 11539 | |
| 11540 | |
| 11541 | |
| 11542 | |
| 11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11544 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11545 | hardcode_action= |
| 11546 | if test -n "$hardcode_libdir_flag_spec" || |
| 11547 | test -n "$runpath_var" || |
| 11548 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11549 | |
| 11550 | # We can hardcode non-existent directories. |
| 11551 | if test "$hardcode_direct" != no && |
| 11552 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11553 | # have to relink, otherwise we might link with an installed library |
| 11554 | # when we should be linking with a yet-to-be-installed one |
| 11555 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11556 | test "$hardcode_minus_L" != no; then |
| 11557 | # Linking always hardcodes the temporary library directory. |
| 11558 | hardcode_action=relink |
| 11559 | else |
| 11560 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11561 | hardcode_action=immediate |
| 11562 | fi |
| 11563 | else |
| 11564 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11565 | # directories. |
| 11566 | hardcode_action=unsupported |
| 11567 | fi |
| 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11569 | $as_echo "$hardcode_action" >&6; } |
| 11570 | |
| 11571 | if test "$hardcode_action" = relink || |
| 11572 | test "$inherit_rpath" = yes; then |
| 11573 | # Fast installation is not supported |
| 11574 | enable_fast_install=no |
| 11575 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11576 | test "$enable_shared" = no; then |
| 11577 | # Fast installation is not necessary |
| 11578 | enable_fast_install=needless |
| 11579 | fi |
| 11580 | |
| 11581 | |
| 11582 | |
| 11583 | |
| 11584 | |
| 11585 | |
| 11586 | if test "x$enable_dlopen" != xyes; then |
| 11587 | enable_dlopen=unknown |
| 11588 | enable_dlopen_self=unknown |
| 11589 | enable_dlopen_self_static=unknown |
| 11590 | else |
| 11591 | lt_cv_dlopen=no |
| 11592 | lt_cv_dlopen_libs= |
| 11593 | |
| 11594 | case $host_os in |
| 11595 | beos*) |
| 11596 | lt_cv_dlopen="load_add_on" |
| 11597 | lt_cv_dlopen_libs= |
| 11598 | lt_cv_dlopen_self=yes |
| 11599 | ;; |
| 11600 | |
| 11601 | mingw* | pw32* | cegcc*) |
| 11602 | lt_cv_dlopen="LoadLibrary" |
| 11603 | lt_cv_dlopen_libs= |
| 11604 | ;; |
| 11605 | |
| 11606 | cygwin*) |
| 11607 | lt_cv_dlopen="dlopen" |
| 11608 | lt_cv_dlopen_libs= |
| 11609 | ;; |
| 11610 | |
| 11611 | darwin*) |
| 11612 | # if libdl is installed we need to link against it |
| 11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11614 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11615 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11616 | $as_echo_n "(cached) " >&6 |
| 11617 | else |
| 11618 | ac_check_lib_save_LIBS=$LIBS |
| 11619 | LIBS="-ldl $LIBS" |
| 11620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11621 | /* end confdefs.h. */ |
| 11622 | |
| 11623 | /* Override any GCC internal prototype to avoid an error. |
| 11624 | Use char because int might match the return type of a GCC |
| 11625 | builtin and then its argument prototype would still apply. */ |
| 11626 | #ifdef __cplusplus |
| 11627 | extern "C" |
| 11628 | #endif |
| 11629 | char dlopen (); |
| 11630 | int |
| 11631 | main () |
| 11632 | { |
| 11633 | return dlopen (); |
| 11634 | ; |
| 11635 | return 0; |
| 11636 | } |
| 11637 | _ACEOF |
| 11638 | if ac_fn_c_try_link "$LINENO"; then : |
| 11639 | ac_cv_lib_dl_dlopen=yes |
| 11640 | else |
| 11641 | ac_cv_lib_dl_dlopen=no |
| 11642 | fi |
| 11643 | rm -f core conftest.err conftest.$ac_objext \ |
| 11644 | conftest$ac_exeext conftest.$ac_ext |
| 11645 | LIBS=$ac_check_lib_save_LIBS |
| 11646 | fi |
| 11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11648 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11649 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11650 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11651 | else |
| 11652 | |
| 11653 | lt_cv_dlopen="dyld" |
| 11654 | lt_cv_dlopen_libs= |
| 11655 | lt_cv_dlopen_self=yes |
| 11656 | |
| 11657 | fi |
| 11658 | |
| 11659 | ;; |
| 11660 | |
| 11661 | *) |
| 11662 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11663 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11664 | lt_cv_dlopen="shl_load" |
| 11665 | else |
| 11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11667 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11668 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11669 | $as_echo_n "(cached) " >&6 |
| 11670 | else |
| 11671 | ac_check_lib_save_LIBS=$LIBS |
| 11672 | LIBS="-ldld $LIBS" |
| 11673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11674 | /* end confdefs.h. */ |
| 11675 | |
| 11676 | /* Override any GCC internal prototype to avoid an error. |
| 11677 | Use char because int might match the return type of a GCC |
| 11678 | builtin and then its argument prototype would still apply. */ |
| 11679 | #ifdef __cplusplus |
| 11680 | extern "C" |
| 11681 | #endif |
| 11682 | char shl_load (); |
| 11683 | int |
| 11684 | main () |
| 11685 | { |
| 11686 | return shl_load (); |
| 11687 | ; |
| 11688 | return 0; |
| 11689 | } |
| 11690 | _ACEOF |
| 11691 | if ac_fn_c_try_link "$LINENO"; then : |
| 11692 | ac_cv_lib_dld_shl_load=yes |
| 11693 | else |
| 11694 | ac_cv_lib_dld_shl_load=no |
| 11695 | fi |
| 11696 | rm -f core conftest.err conftest.$ac_objext \ |
| 11697 | conftest$ac_exeext conftest.$ac_ext |
| 11698 | LIBS=$ac_check_lib_save_LIBS |
| 11699 | fi |
| 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11701 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11702 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11703 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11704 | else |
| 11705 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11706 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11707 | lt_cv_dlopen="dlopen" |
| 11708 | else |
| 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11710 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11711 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11712 | $as_echo_n "(cached) " >&6 |
| 11713 | else |
| 11714 | ac_check_lib_save_LIBS=$LIBS |
| 11715 | LIBS="-ldl $LIBS" |
| 11716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11717 | /* end confdefs.h. */ |
| 11718 | |
| 11719 | /* Override any GCC internal prototype to avoid an error. |
| 11720 | Use char because int might match the return type of a GCC |
| 11721 | builtin and then its argument prototype would still apply. */ |
| 11722 | #ifdef __cplusplus |
| 11723 | extern "C" |
| 11724 | #endif |
| 11725 | char dlopen (); |
| 11726 | int |
| 11727 | main () |
| 11728 | { |
| 11729 | return dlopen (); |
| 11730 | ; |
| 11731 | return 0; |
| 11732 | } |
| 11733 | _ACEOF |
| 11734 | if ac_fn_c_try_link "$LINENO"; then : |
| 11735 | ac_cv_lib_dl_dlopen=yes |
| 11736 | else |
| 11737 | ac_cv_lib_dl_dlopen=no |
| 11738 | fi |
| 11739 | rm -f core conftest.err conftest.$ac_objext \ |
| 11740 | conftest$ac_exeext conftest.$ac_ext |
| 11741 | LIBS=$ac_check_lib_save_LIBS |
| 11742 | fi |
| 11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11744 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11745 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11746 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11747 | else |
| 11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11749 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11750 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11751 | $as_echo_n "(cached) " >&6 |
| 11752 | else |
| 11753 | ac_check_lib_save_LIBS=$LIBS |
| 11754 | LIBS="-lsvld $LIBS" |
| 11755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11756 | /* end confdefs.h. */ |
| 11757 | |
| 11758 | /* Override any GCC internal prototype to avoid an error. |
| 11759 | Use char because int might match the return type of a GCC |
| 11760 | builtin and then its argument prototype would still apply. */ |
| 11761 | #ifdef __cplusplus |
| 11762 | extern "C" |
| 11763 | #endif |
| 11764 | char dlopen (); |
| 11765 | int |
| 11766 | main () |
| 11767 | { |
| 11768 | return dlopen (); |
| 11769 | ; |
| 11770 | return 0; |
| 11771 | } |
| 11772 | _ACEOF |
| 11773 | if ac_fn_c_try_link "$LINENO"; then : |
| 11774 | ac_cv_lib_svld_dlopen=yes |
| 11775 | else |
| 11776 | ac_cv_lib_svld_dlopen=no |
| 11777 | fi |
| 11778 | rm -f core conftest.err conftest.$ac_objext \ |
| 11779 | conftest$ac_exeext conftest.$ac_ext |
| 11780 | LIBS=$ac_check_lib_save_LIBS |
| 11781 | fi |
| 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11783 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11784 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11785 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11786 | else |
| 11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11788 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11789 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11790 | $as_echo_n "(cached) " >&6 |
| 11791 | else |
| 11792 | ac_check_lib_save_LIBS=$LIBS |
| 11793 | LIBS="-ldld $LIBS" |
| 11794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11795 | /* end confdefs.h. */ |
| 11796 | |
| 11797 | /* Override any GCC internal prototype to avoid an error. |
| 11798 | Use char because int might match the return type of a GCC |
| 11799 | builtin and then its argument prototype would still apply. */ |
| 11800 | #ifdef __cplusplus |
| 11801 | extern "C" |
| 11802 | #endif |
| 11803 | char dld_link (); |
| 11804 | int |
| 11805 | main () |
| 11806 | { |
| 11807 | return dld_link (); |
| 11808 | ; |
| 11809 | return 0; |
| 11810 | } |
| 11811 | _ACEOF |
| 11812 | if ac_fn_c_try_link "$LINENO"; then : |
| 11813 | ac_cv_lib_dld_dld_link=yes |
| 11814 | else |
| 11815 | ac_cv_lib_dld_dld_link=no |
| 11816 | fi |
| 11817 | rm -f core conftest.err conftest.$ac_objext \ |
| 11818 | conftest$ac_exeext conftest.$ac_ext |
| 11819 | LIBS=$ac_check_lib_save_LIBS |
| 11820 | fi |
| 11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11822 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11823 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11824 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11825 | fi |
| 11826 | |
| 11827 | |
| 11828 | fi |
| 11829 | |
| 11830 | |
| 11831 | fi |
| 11832 | |
| 11833 | |
| 11834 | fi |
| 11835 | |
| 11836 | |
| 11837 | fi |
| 11838 | |
| 11839 | |
| 11840 | fi |
| 11841 | |
| 11842 | ;; |
| 11843 | esac |
| 11844 | |
| 11845 | if test "x$lt_cv_dlopen" != xno; then |
| 11846 | enable_dlopen=yes |
| 11847 | else |
| 11848 | enable_dlopen=no |
| 11849 | fi |
| 11850 | |
| 11851 | case $lt_cv_dlopen in |
| 11852 | dlopen) |
| 11853 | save_CPPFLAGS="$CPPFLAGS" |
| 11854 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11855 | |
| 11856 | save_LDFLAGS="$LDFLAGS" |
| 11857 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11858 | |
| 11859 | save_LIBS="$LIBS" |
| 11860 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11861 | |
| 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11863 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11864 | if ${lt_cv_dlopen_self+:} false; then : |
| 11865 | $as_echo_n "(cached) " >&6 |
| 11866 | else |
| 11867 | if test "$cross_compiling" = yes; then : |
| 11868 | lt_cv_dlopen_self=cross |
| 11869 | else |
| 11870 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11871 | lt_status=$lt_dlunknown |
| 11872 | cat > conftest.$ac_ext <<_LT_EOF |
| 11873 | #line $LINENO "configure" |
| 11874 | #include "confdefs.h" |
| 11875 | |
| 11876 | #if HAVE_DLFCN_H |
| 11877 | #include <dlfcn.h> |
| 11878 | #endif |
| 11879 | |
| 11880 | #include <stdio.h> |
| 11881 | |
| 11882 | #ifdef RTLD_GLOBAL |
| 11883 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11884 | #else |
| 11885 | # ifdef DL_GLOBAL |
| 11886 | # define LT_DLGLOBAL DL_GLOBAL |
| 11887 | # else |
| 11888 | # define LT_DLGLOBAL 0 |
| 11889 | # endif |
| 11890 | #endif |
| 11891 | |
| 11892 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11893 | find out it does not work in some platform. */ |
| 11894 | #ifndef LT_DLLAZY_OR_NOW |
| 11895 | # ifdef RTLD_LAZY |
| 11896 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11897 | # else |
| 11898 | # ifdef DL_LAZY |
| 11899 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11900 | # else |
| 11901 | # ifdef RTLD_NOW |
| 11902 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11903 | # else |
| 11904 | # ifdef DL_NOW |
| 11905 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11906 | # else |
| 11907 | # define LT_DLLAZY_OR_NOW 0 |
| 11908 | # endif |
| 11909 | # endif |
| 11910 | # endif |
| 11911 | # endif |
| 11912 | #endif |
| 11913 | |
| 11914 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11915 | correspondingly for the symbols needed. */ |
| 11916 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11917 | int fnord () __attribute__((visibility("default"))); |
| 11918 | #endif |
| 11919 | |
| 11920 | int fnord () { return 42; } |
| 11921 | int main () |
| 11922 | { |
| 11923 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11924 | int status = $lt_dlunknown; |
| 11925 | |
| 11926 | if (self) |
| 11927 | { |
| 11928 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11929 | else |
| 11930 | { |
| 11931 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11932 | else puts (dlerror ()); |
| 11933 | } |
| 11934 | /* dlclose (self); */ |
| 11935 | } |
| 11936 | else |
| 11937 | puts (dlerror ()); |
| 11938 | |
| 11939 | return status; |
| 11940 | } |
| 11941 | _LT_EOF |
| 11942 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11943 | (eval $ac_link) 2>&5 |
| 11944 | ac_status=$? |
| 11945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11946 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11947 | (./conftest; exit; ) >&5 2>/dev/null |
| 11948 | lt_status=$? |
| 11949 | case x$lt_status in |
| 11950 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11951 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11952 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11953 | esac |
| 11954 | else : |
| 11955 | # compilation failed |
| 11956 | lt_cv_dlopen_self=no |
| 11957 | fi |
| 11958 | fi |
| 11959 | rm -fr conftest* |
| 11960 | |
| 11961 | |
| 11962 | fi |
| 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11964 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11965 | |
| 11966 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11967 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11969 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11970 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 11971 | $as_echo_n "(cached) " >&6 |
| 11972 | else |
| 11973 | if test "$cross_compiling" = yes; then : |
| 11974 | lt_cv_dlopen_self_static=cross |
| 11975 | else |
| 11976 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11977 | lt_status=$lt_dlunknown |
| 11978 | cat > conftest.$ac_ext <<_LT_EOF |
| 11979 | #line $LINENO "configure" |
| 11980 | #include "confdefs.h" |
| 11981 | |
| 11982 | #if HAVE_DLFCN_H |
| 11983 | #include <dlfcn.h> |
| 11984 | #endif |
| 11985 | |
| 11986 | #include <stdio.h> |
| 11987 | |
| 11988 | #ifdef RTLD_GLOBAL |
| 11989 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11990 | #else |
| 11991 | # ifdef DL_GLOBAL |
| 11992 | # define LT_DLGLOBAL DL_GLOBAL |
| 11993 | # else |
| 11994 | # define LT_DLGLOBAL 0 |
| 11995 | # endif |
| 11996 | #endif |
| 11997 | |
| 11998 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11999 | find out it does not work in some platform. */ |
| 12000 | #ifndef LT_DLLAZY_OR_NOW |
| 12001 | # ifdef RTLD_LAZY |
| 12002 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12003 | # else |
| 12004 | # ifdef DL_LAZY |
| 12005 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12006 | # else |
| 12007 | # ifdef RTLD_NOW |
| 12008 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12009 | # else |
| 12010 | # ifdef DL_NOW |
| 12011 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12012 | # else |
| 12013 | # define LT_DLLAZY_OR_NOW 0 |
| 12014 | # endif |
| 12015 | # endif |
| 12016 | # endif |
| 12017 | # endif |
| 12018 | #endif |
| 12019 | |
| 12020 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 12021 | correspondingly for the symbols needed. */ |
| 12022 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12023 | int fnord () __attribute__((visibility("default"))); |
| 12024 | #endif |
| 12025 | |
| 12026 | int fnord () { return 42; } |
| 12027 | int main () |
| 12028 | { |
| 12029 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12030 | int status = $lt_dlunknown; |
| 12031 | |
| 12032 | if (self) |
| 12033 | { |
| 12034 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12035 | else |
| 12036 | { |
| 12037 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12038 | else puts (dlerror ()); |
| 12039 | } |
| 12040 | /* dlclose (self); */ |
| 12041 | } |
| 12042 | else |
| 12043 | puts (dlerror ()); |
| 12044 | |
| 12045 | return status; |
| 12046 | } |
| 12047 | _LT_EOF |
| 12048 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 12049 | (eval $ac_link) 2>&5 |
| 12050 | ac_status=$? |
| 12051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12052 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12053 | (./conftest; exit; ) >&5 2>/dev/null |
| 12054 | lt_status=$? |
| 12055 | case x$lt_status in |
| 12056 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12057 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12058 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 12059 | esac |
| 12060 | else : |
| 12061 | # compilation failed |
| 12062 | lt_cv_dlopen_self_static=no |
| 12063 | fi |
| 12064 | fi |
| 12065 | rm -fr conftest* |
| 12066 | |
| 12067 | |
| 12068 | fi |
| 12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 12070 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 12071 | fi |
| 12072 | |
| 12073 | CPPFLAGS="$save_CPPFLAGS" |
| 12074 | LDFLAGS="$save_LDFLAGS" |
| 12075 | LIBS="$save_LIBS" |
| 12076 | ;; |
| 12077 | esac |
| 12078 | |
| 12079 | case $lt_cv_dlopen_self in |
| 12080 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12081 | *) enable_dlopen_self=unknown ;; |
| 12082 | esac |
| 12083 | |
| 12084 | case $lt_cv_dlopen_self_static in |
| 12085 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12086 | *) enable_dlopen_self_static=unknown ;; |
| 12087 | esac |
| 12088 | fi |
| 12089 | |
| 12090 | |
| 12091 | |
| 12092 | |
| 12093 | |
| 12094 | |
| 12095 | |
| 12096 | |
| 12097 | |
| 12098 | |
| 12099 | |
| 12100 | |
| 12101 | |
| 12102 | |
| 12103 | |
| 12104 | |
| 12105 | |
| 12106 | striplib= |
| 12107 | old_striplib= |
| 12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 12109 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 12110 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 12111 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12112 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12114 | $as_echo "yes" >&6; } |
| 12115 | else |
| 12116 | # FIXME - insert some real tests, host_os isn't really good enough |
| 12117 | case $host_os in |
| 12118 | darwin*) |
| 12119 | if test -n "$STRIP" ; then |
| 12120 | striplib="$STRIP -x" |
| 12121 | old_striplib="$STRIP -S" |
| 12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12123 | $as_echo "yes" >&6; } |
| 12124 | else |
| 12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12126 | $as_echo "no" >&6; } |
| 12127 | fi |
| 12128 | ;; |
| 12129 | *) |
| 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12131 | $as_echo "no" >&6; } |
| 12132 | ;; |
| 12133 | esac |
| 12134 | fi |
| 12135 | |
| 12136 | |
| 12137 | |
| 12138 | |
| 12139 | |
| 12140 | |
| 12141 | |
| 12142 | |
| 12143 | |
| 12144 | |
| 12145 | |
| 12146 | |
| 12147 | # Report which library types will actually be built |
| 12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 12149 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 12151 | $as_echo "$can_build_shared" >&6; } |
| 12152 | |
| 12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 12154 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 12155 | test "$can_build_shared" = "no" && enable_shared=no |
| 12156 | |
| 12157 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12158 | # are all built from PIC. |
| 12159 | case $host_os in |
| 12160 | aix3*) |
| 12161 | test "$enable_shared" = yes && enable_static=no |
| 12162 | if test -n "$RANLIB"; then |
| 12163 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12164 | postinstall_cmds='$RANLIB $lib' |
| 12165 | fi |
| 12166 | ;; |
| 12167 | |
| 12168 | aix[4-9]*) |
| 12169 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12170 | test "$enable_shared" = yes && enable_static=no |
| 12171 | fi |
| 12172 | ;; |
| 12173 | esac |
| 12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 12175 | $as_echo "$enable_shared" >&6; } |
| 12176 | |
| 12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12178 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 12179 | # Make sure either enable_shared or enable_static is yes. |
| 12180 | test "$enable_shared" = yes || enable_static=yes |
| 12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12182 | $as_echo "$enable_static" >&6; } |
| 12183 | |
| 12184 | |
| 12185 | |
| 12186 | |
| 12187 | fi |
| 12188 | ac_ext=c |
| 12189 | ac_cpp='$CPP $CPPFLAGS' |
| 12190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12193 | |
| 12194 | CC="$lt_save_CC" |
| 12195 | |
| 12196 | |
| 12197 | |
| 12198 | |
| 12199 | |
| 12200 | |
| 12201 | |
| 12202 | |
| 12203 | |
| 12204 | |
| 12205 | |
| 12206 | |
| 12207 | |
| 12208 | |
| 12209 | |
| 12210 | ac_config_commands="$ac_config_commands libtool" |
| 12211 | |
| 12212 | |
| 12213 | |
| 12214 | |
| 12215 | # Only expand once: |
| 12216 | |
| 12217 | |
| 12218 | |
| 12219 | ac_config_files="$ac_config_files Makefile" |
| 12220 | |
| 12221 | cat >confcache <<\_ACEOF |
| 12222 | # This file is a shell script that caches the results of configure |
| 12223 | # tests run on this system so they can be shared between configure |
| 12224 | # scripts and configure runs, see configure's option --config-cache. |
| 12225 | # It is not useful on other systems. If it contains results you don't |
| 12226 | # want to keep, you may remove or edit it. |
| 12227 | # |
| 12228 | # config.status only pays attention to the cache file if you give it |
| 12229 | # the --recheck option to rerun configure. |
| 12230 | # |
| 12231 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 12232 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 12233 | # following values. |
| 12234 | |
| 12235 | _ACEOF |
| 12236 | |
| 12237 | # The following way of writing the cache mishandles newlines in values, |
| 12238 | # but we know of no workaround that is simple, portable, and efficient. |
| 12239 | # So, we kill variables containing newlines. |
| 12240 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 12241 | # and sets the high bit in the cache file unless we assign to the vars. |
| 12242 | ( |
| 12243 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 12244 | eval ac_val=\$$ac_var |
| 12245 | case $ac_val in #( |
| 12246 | *${as_nl}*) |
| 12247 | case $ac_var in #( |
| 12248 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 12249 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 12250 | esac |
| 12251 | case $ac_var in #( |
| 12252 | _ | IFS | as_nl) ;; #( |
| 12253 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 12254 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 12255 | esac ;; |
| 12256 | esac |
| 12257 | done |
| 12258 | |
| 12259 | (set) 2>&1 | |
| 12260 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 12261 | *${as_nl}ac_space=\ *) |
| 12262 | # `set' does not quote correctly, so add quotes: double-quote |
| 12263 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 12264 | sed -n \ |
| 12265 | "s/'/'\\\\''/g; |
| 12266 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 12267 | ;; #( |
| 12268 | *) |
| 12269 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 12270 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 12271 | ;; |
| 12272 | esac | |
| 12273 | sort |
| 12274 | ) | |
| 12275 | sed ' |
| 12276 | /^ac_cv_env_/b end |
| 12277 | t clear |
| 12278 | :clear |
| 12279 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 12280 | t end |
| 12281 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12282 | :end' >>confcache |
| 12283 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 12284 | if test -w "$cache_file"; then |
| 12285 | if test "x$cache_file" != "x/dev/null"; then |
| 12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 12287 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 12288 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 12289 | cat confcache >"$cache_file" |
| 12290 | else |
| 12291 | case $cache_file in #( |
| 12292 | */* | ?:*) |
| 12293 | mv -f confcache "$cache_file"$$ && |
| 12294 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 12295 | *) |
| 12296 | mv -f confcache "$cache_file" ;; |
| 12297 | esac |
| 12298 | fi |
| 12299 | fi |
| 12300 | else |
| 12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 12302 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 12303 | fi |
| 12304 | fi |
| 12305 | rm -f confcache |
| 12306 | |
| 12307 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12308 | # Let make expand exec_prefix. |
| 12309 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12310 | |
| 12311 | # Transform confdefs.h into DEFS. |
| 12312 | # Protect against shell expansion while executing Makefile rules. |
| 12313 | # Protect against Makefile macro expansion. |
| 12314 | # |
| 12315 | # If the first sed substitution is executed (which looks for macros that |
| 12316 | # take arguments), then branch to the quote section. Otherwise, |
| 12317 | # look for a macro that doesn't take arguments. |
| 12318 | ac_script=' |
| 12319 | :mline |
| 12320 | /\\$/{ |
| 12321 | N |
| 12322 | s,\\\n,, |
| 12323 | b mline |
| 12324 | } |
| 12325 | t clear |
| 12326 | :clear |
| 12327 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 12328 | t quote |
| 12329 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 12330 | t quote |
| 12331 | b any |
| 12332 | :quote |
| 12333 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 12334 | s/\[/\\&/g |
| 12335 | s/\]/\\&/g |
| 12336 | s/\$/$$/g |
| 12337 | H |
| 12338 | :any |
| 12339 | ${ |
| 12340 | g |
| 12341 | s/^\n// |
| 12342 | s/\n/ /g |
| 12343 | p |
| 12344 | } |
| 12345 | ' |
| 12346 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 12347 | |
| 12348 | |
| 12349 | ac_libobjs= |
| 12350 | ac_ltlibobjs= |
| 12351 | U= |
| 12352 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12353 | # 1. Remove the extension, and $U if already installed. |
| 12354 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 12355 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 12356 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 12357 | # will be set to the directory where LIBOBJS objects are built. |
| 12358 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 12359 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 12360 | done |
| 12361 | LIBOBJS=$ac_libobjs |
| 12362 | |
| 12363 | LTLIBOBJS=$ac_ltlibobjs |
| 12364 | |
| 12365 | |
| 12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 12367 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 12368 | if test -n "$am_sleep_pid"; then |
| 12369 | # Hide warnings about reused PIDs. |
| 12370 | wait $am_sleep_pid 2>/dev/null |
| 12371 | fi |
| 12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 12373 | $as_echo "done" >&6; } |
| 12374 | if test -n "$EXEEXT"; then |
| 12375 | am__EXEEXT_TRUE= |
| 12376 | am__EXEEXT_FALSE='#' |
| 12377 | else |
| 12378 | am__EXEEXT_TRUE='#' |
| 12379 | am__EXEEXT_FALSE= |
| 12380 | fi |
| 12381 | |
| 12382 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 12383 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 12384 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12385 | fi |
| 12386 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 12387 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 12388 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12389 | fi |
| 12390 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
| 12391 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
| 12392 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12393 | fi |
| 12394 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 12395 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 12396 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12397 | fi |
| 12398 | |
| 12399 | : "${CONFIG_STATUS=./config.status}" |
| 12400 | ac_write_fail=0 |
| 12401 | ac_clean_files_save=$ac_clean_files |
| 12402 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 12404 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12405 | as_write_fail=0 |
| 12406 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 12407 | #! $SHELL |
| 12408 | # Generated by $as_me. |
| 12409 | # Run this file to recreate the current configuration. |
| 12410 | # Compiler output produced by configure, useful for debugging |
| 12411 | # configure, is in config.log if it exists. |
| 12412 | |
| 12413 | debug=false |
| 12414 | ac_cs_recheck=false |
| 12415 | ac_cs_silent=false |
| 12416 | |
| 12417 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 12418 | export SHELL |
| 12419 | _ASEOF |
| 12420 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 12421 | ## -------------------- ## |
| 12422 | ## M4sh Initialization. ## |
| 12423 | ## -------------------- ## |
| 12424 | |
| 12425 | # Be more Bourne compatible |
| 12426 | DUALCASE=1; export DUALCASE # for MKS sh |
| 12427 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 12428 | emulate sh |
| 12429 | NULLCMD=: |
| 12430 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 12431 | # is contrary to our usage. Disable this feature. |
| 12432 | alias -g '${1+"$@"}'='"$@"' |
| 12433 | setopt NO_GLOB_SUBST |
| 12434 | else |
| 12435 | case `(set -o) 2>/dev/null` in #( |
| 12436 | *posix*) : |
| 12437 | set -o posix ;; #( |
| 12438 | *) : |
| 12439 | ;; |
| 12440 | esac |
| 12441 | fi |
| 12442 | |
| 12443 | |
| 12444 | as_nl=' |
| 12445 | ' |
| 12446 | export as_nl |
| 12447 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 12448 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 12449 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 12450 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 12451 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 12452 | # but without wasting forks for bash or zsh. |
| 12453 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 12454 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 12455 | as_echo='print -r --' |
| 12456 | as_echo_n='print -rn --' |
| 12457 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 12458 | as_echo='printf %s\n' |
| 12459 | as_echo_n='printf %s' |
| 12460 | else |
| 12461 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 12462 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 12463 | as_echo_n='/usr/ucb/echo -n' |
| 12464 | else |
| 12465 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 12466 | as_echo_n_body='eval |
| 12467 | arg=$1; |
| 12468 | case $arg in #( |
| 12469 | *"$as_nl"*) |
| 12470 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 12471 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 12472 | esac; |
| 12473 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 12474 | ' |
| 12475 | export as_echo_n_body |
| 12476 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 12477 | fi |
| 12478 | export as_echo_body |
| 12479 | as_echo='sh -c $as_echo_body as_echo' |
| 12480 | fi |
| 12481 | |
| 12482 | # The user is always right. |
| 12483 | if test "${PATH_SEPARATOR+set}" != set; then |
| 12484 | PATH_SEPARATOR=: |
| 12485 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 12486 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 12487 | PATH_SEPARATOR=';' |
| 12488 | } |
| 12489 | fi |
| 12490 | |
| 12491 | |
| 12492 | # IFS |
| 12493 | # We need space, tab and new line, in precisely that order. Quoting is |
| 12494 | # there to prevent editors from complaining about space-tab. |
| 12495 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 12496 | # splitting by setting IFS to empty value.) |
| 12497 | IFS=" "" $as_nl" |
| 12498 | |
| 12499 | # Find who we are. Look in the path if we contain no directory separator. |
| 12500 | as_myself= |
| 12501 | case $0 in #(( |
| 12502 | *[\\/]* ) as_myself=$0 ;; |
| 12503 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12504 | for as_dir in $PATH |
| 12505 | do |
| 12506 | IFS=$as_save_IFS |
| 12507 | test -z "$as_dir" && as_dir=. |
| 12508 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12509 | done |
| 12510 | IFS=$as_save_IFS |
| 12511 | |
| 12512 | ;; |
| 12513 | esac |
| 12514 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12515 | # in which case we are not to be found in the path. |
| 12516 | if test "x$as_myself" = x; then |
| 12517 | as_myself=$0 |
| 12518 | fi |
| 12519 | if test ! -f "$as_myself"; then |
| 12520 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 12521 | exit 1 |
| 12522 | fi |
| 12523 | |
| 12524 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 12525 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 12526 | # suppresses any "Segmentation fault" message there. '((' could |
| 12527 | # trigger a bug in pdksh 5.2.14. |
| 12528 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 12529 | do eval test x\${$as_var+set} = xset \ |
| 12530 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 12531 | done |
| 12532 | PS1='$ ' |
| 12533 | PS2='> ' |
| 12534 | PS4='+ ' |
| 12535 | |
| 12536 | # NLS nuisances. |
| 12537 | LC_ALL=C |
| 12538 | export LC_ALL |
| 12539 | LANGUAGE=C |
| 12540 | export LANGUAGE |
| 12541 | |
| 12542 | # CDPATH. |
| 12543 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12544 | |
| 12545 | |
| 12546 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 12547 | # ---------------------------------------- |
| 12548 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 12549 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 12550 | # script with STATUS, using 1 if that was 0. |
| 12551 | as_fn_error () |
| 12552 | { |
| 12553 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 12554 | if test "$4"; then |
| 12555 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 12556 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 12557 | fi |
| 12558 | $as_echo "$as_me: error: $2" >&2 |
| 12559 | as_fn_exit $as_status |
| 12560 | } # as_fn_error |
| 12561 | |
| 12562 | |
| 12563 | # as_fn_set_status STATUS |
| 12564 | # ----------------------- |
| 12565 | # Set $? to STATUS, without forking. |
| 12566 | as_fn_set_status () |
| 12567 | { |
| 12568 | return $1 |
| 12569 | } # as_fn_set_status |
| 12570 | |
| 12571 | # as_fn_exit STATUS |
| 12572 | # ----------------- |
| 12573 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 12574 | as_fn_exit () |
| 12575 | { |
| 12576 | set +e |
| 12577 | as_fn_set_status $1 |
| 12578 | exit $1 |
| 12579 | } # as_fn_exit |
| 12580 | |
| 12581 | # as_fn_unset VAR |
| 12582 | # --------------- |
| 12583 | # Portably unset VAR. |
| 12584 | as_fn_unset () |
| 12585 | { |
| 12586 | { eval $1=; unset $1;} |
| 12587 | } |
| 12588 | as_unset=as_fn_unset |
| 12589 | # as_fn_append VAR VALUE |
| 12590 | # ---------------------- |
| 12591 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 12592 | # advantage of any shell optimizations that allow amortized linear growth over |
| 12593 | # repeated appends, instead of the typical quadratic growth present in naive |
| 12594 | # implementations. |
| 12595 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 12596 | eval 'as_fn_append () |
| 12597 | { |
| 12598 | eval $1+=\$2 |
| 12599 | }' |
| 12600 | else |
| 12601 | as_fn_append () |
| 12602 | { |
| 12603 | eval $1=\$$1\$2 |
| 12604 | } |
| 12605 | fi # as_fn_append |
| 12606 | |
| 12607 | # as_fn_arith ARG... |
| 12608 | # ------------------ |
| 12609 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 12610 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 12611 | # must be portable across $(()) and expr. |
| 12612 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 12613 | eval 'as_fn_arith () |
| 12614 | { |
| 12615 | as_val=$(( $* )) |
| 12616 | }' |
| 12617 | else |
| 12618 | as_fn_arith () |
| 12619 | { |
| 12620 | as_val=`expr "$@" || test $? -eq 1` |
| 12621 | } |
| 12622 | fi # as_fn_arith |
| 12623 | |
| 12624 | |
| 12625 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12626 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12627 | as_expr=expr |
| 12628 | else |
| 12629 | as_expr=false |
| 12630 | fi |
| 12631 | |
| 12632 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 12633 | as_basename=basename |
| 12634 | else |
| 12635 | as_basename=false |
| 12636 | fi |
| 12637 | |
| 12638 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 12639 | as_dirname=dirname |
| 12640 | else |
| 12641 | as_dirname=false |
| 12642 | fi |
| 12643 | |
| 12644 | as_me=`$as_basename -- "$0" || |
| 12645 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12646 | X"$0" : 'X\(//\)$' \| \ |
| 12647 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 12648 | $as_echo X/"$0" | |
| 12649 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 12650 | s//\1/ |
| 12651 | q |
| 12652 | } |
| 12653 | /^X\/\(\/\/\)$/{ |
| 12654 | s//\1/ |
| 12655 | q |
| 12656 | } |
| 12657 | /^X\/\(\/\).*/{ |
| 12658 | s//\1/ |
| 12659 | q |
| 12660 | } |
| 12661 | s/.*/./; q'` |
| 12662 | |
| 12663 | # Avoid depending upon Character Ranges. |
| 12664 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12665 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12666 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12667 | as_cr_digits='0123456789' |
| 12668 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 12669 | |
| 12670 | ECHO_C= ECHO_N= ECHO_T= |
| 12671 | case `echo -n x` in #((((( |
| 12672 | -n*) |
| 12673 | case `echo 'xy\c'` in |
| 12674 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 12675 | xy) ECHO_C='\c';; |
| 12676 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 12677 | ECHO_T=' ';; |
| 12678 | esac;; |
| 12679 | *) |
| 12680 | ECHO_N='-n';; |
| 12681 | esac |
| 12682 | |
| 12683 | rm -f conf$$ conf$$.exe conf$$.file |
| 12684 | if test -d conf$$.dir; then |
| 12685 | rm -f conf$$.dir/conf$$.file |
| 12686 | else |
| 12687 | rm -f conf$$.dir |
| 12688 | mkdir conf$$.dir 2>/dev/null |
| 12689 | fi |
| 12690 | if (echo >conf$$.file) 2>/dev/null; then |
| 12691 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12692 | as_ln_s='ln -s' |
| 12693 | # ... but there are two gotchas: |
| 12694 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 12695 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 12696 | # In both cases, we have to default to `cp -pR'. |
| 12697 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 12698 | as_ln_s='cp -pR' |
| 12699 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12700 | as_ln_s=ln |
| 12701 | else |
| 12702 | as_ln_s='cp -pR' |
| 12703 | fi |
| 12704 | else |
| 12705 | as_ln_s='cp -pR' |
| 12706 | fi |
| 12707 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 12708 | rmdir conf$$.dir 2>/dev/null |
| 12709 | |
| 12710 | |
| 12711 | # as_fn_mkdir_p |
| 12712 | # ------------- |
| 12713 | # Create "$as_dir" as a directory, including parents if necessary. |
| 12714 | as_fn_mkdir_p () |
| 12715 | { |
| 12716 | |
| 12717 | case $as_dir in #( |
| 12718 | -*) as_dir=./$as_dir;; |
| 12719 | esac |
| 12720 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 12721 | as_dirs= |
| 12722 | while :; do |
| 12723 | case $as_dir in #( |
| 12724 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 12725 | *) as_qdir=$as_dir;; |
| 12726 | esac |
| 12727 | as_dirs="'$as_qdir' $as_dirs" |
| 12728 | as_dir=`$as_dirname -- "$as_dir" || |
| 12729 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12730 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12731 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12732 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 12733 | $as_echo X"$as_dir" | |
| 12734 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12735 | s//\1/ |
| 12736 | q |
| 12737 | } |
| 12738 | /^X\(\/\/\)[^/].*/{ |
| 12739 | s//\1/ |
| 12740 | q |
| 12741 | } |
| 12742 | /^X\(\/\/\)$/{ |
| 12743 | s//\1/ |
| 12744 | q |
| 12745 | } |
| 12746 | /^X\(\/\).*/{ |
| 12747 | s//\1/ |
| 12748 | q |
| 12749 | } |
| 12750 | s/.*/./; q'` |
| 12751 | test -d "$as_dir" && break |
| 12752 | done |
| 12753 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12754 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 12755 | |
| 12756 | |
| 12757 | } # as_fn_mkdir_p |
| 12758 | if mkdir -p . 2>/dev/null; then |
| 12759 | as_mkdir_p='mkdir -p "$as_dir"' |
| 12760 | else |
| 12761 | test -d ./-p && rmdir ./-p |
| 12762 | as_mkdir_p=false |
| 12763 | fi |
| 12764 | |
| 12765 | |
| 12766 | # as_fn_executable_p FILE |
| 12767 | # ----------------------- |
| 12768 | # Test if FILE is an executable regular file. |
| 12769 | as_fn_executable_p () |
| 12770 | { |
| 12771 | test -f "$1" && test -x "$1" |
| 12772 | } # as_fn_executable_p |
| 12773 | as_test_x='test -x' |
| 12774 | as_executable_p=as_fn_executable_p |
| 12775 | |
| 12776 | # Sed expression to map a string onto a valid CPP name. |
| 12777 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 12778 | |
| 12779 | # Sed expression to map a string onto a valid variable name. |
| 12780 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 12781 | |
| 12782 | |
| 12783 | exec 6>&1 |
| 12784 | ## ----------------------------------- ## |
| 12785 | ## Main body of $CONFIG_STATUS script. ## |
| 12786 | ## ----------------------------------- ## |
| 12787 | _ASEOF |
| 12788 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 12789 | |
| 12790 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12791 | # Save the log message, to keep $0 and so on meaningful, and to |
| 12792 | # report actual input values of CONFIG_FILES etc. instead of their |
| 12793 | # values after options handling. |
| 12794 | ac_log=" |
| 12795 | This file was extended by sign $as_me 1.0, which was |
| 12796 | generated by GNU Autoconf 2.69. Invocation command line was |
| 12797 | |
| 12798 | CONFIG_FILES = $CONFIG_FILES |
| 12799 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12800 | CONFIG_LINKS = $CONFIG_LINKS |
| 12801 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12802 | $ $0 $@ |
| 12803 | |
| 12804 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12805 | " |
| 12806 | |
| 12807 | _ACEOF |
| 12808 | |
| 12809 | case $ac_config_files in *" |
| 12810 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12811 | esac |
| 12812 | |
| 12813 | |
| 12814 | |
| 12815 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12816 | # Files that config.status was made for. |
| 12817 | config_files="$ac_config_files" |
| 12818 | config_commands="$ac_config_commands" |
| 12819 | |
| 12820 | _ACEOF |
| 12821 | |
| 12822 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12823 | ac_cs_usage="\ |
| 12824 | \`$as_me' instantiates files and other configuration actions |
| 12825 | from templates according to the current configuration. Unless the files |
| 12826 | and actions are specified as TAGs, all are instantiated by default. |
| 12827 | |
| 12828 | Usage: $0 [OPTION]... [TAG]... |
| 12829 | |
| 12830 | -h, --help print this help, then exit |
| 12831 | -V, --version print version number and configuration settings, then exit |
| 12832 | --config print configuration, then exit |
| 12833 | -q, --quiet, --silent |
| 12834 | do not print progress messages |
| 12835 | -d, --debug don't remove temporary files |
| 12836 | --recheck update $as_me by reconfiguring in the same conditions |
| 12837 | --file=FILE[:TEMPLATE] |
| 12838 | instantiate the configuration file FILE |
| 12839 | |
| 12840 | Configuration files: |
| 12841 | $config_files |
| 12842 | |
| 12843 | Configuration commands: |
| 12844 | $config_commands |
| 12845 | |
| 12846 | Report bugs to the package provider." |
| 12847 | |
| 12848 | _ACEOF |
| 12849 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12850 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 12851 | ac_cs_version="\\ |
| 12852 | sign config.status 1.0 |
| 12853 | configured by $0, generated by GNU Autoconf 2.69, |
| 12854 | with options \\"\$ac_cs_config\\" |
| 12855 | |
| 12856 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 12857 | This config.status script is free software; the Free Software Foundation |
| 12858 | gives unlimited permission to copy, distribute and modify it." |
| 12859 | |
| 12860 | ac_pwd='$ac_pwd' |
| 12861 | srcdir='$srcdir' |
| 12862 | INSTALL='$INSTALL' |
| 12863 | MKDIR_P='$MKDIR_P' |
| 12864 | AWK='$AWK' |
| 12865 | test -n "\$AWK" || AWK=awk |
| 12866 | _ACEOF |
| 12867 | |
| 12868 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12869 | # The default lists apply if the user does not specify any file. |
| 12870 | ac_need_defaults=: |
| 12871 | while test $# != 0 |
| 12872 | do |
| 12873 | case $1 in |
| 12874 | --*=?*) |
| 12875 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12876 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 12877 | ac_shift=: |
| 12878 | ;; |
| 12879 | --*=) |
| 12880 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12881 | ac_optarg= |
| 12882 | ac_shift=: |
| 12883 | ;; |
| 12884 | *) |
| 12885 | ac_option=$1 |
| 12886 | ac_optarg=$2 |
| 12887 | ac_shift=shift |
| 12888 | ;; |
| 12889 | esac |
| 12890 | |
| 12891 | case $ac_option in |
| 12892 | # Handling of the options. |
| 12893 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12894 | ac_cs_recheck=: ;; |
| 12895 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 12896 | $as_echo "$ac_cs_version"; exit ;; |
| 12897 | --config | --confi | --conf | --con | --co | --c ) |
| 12898 | $as_echo "$ac_cs_config"; exit ;; |
| 12899 | --debug | --debu | --deb | --de | --d | -d ) |
| 12900 | debug=: ;; |
| 12901 | --file | --fil | --fi | --f ) |
| 12902 | $ac_shift |
| 12903 | case $ac_optarg in |
| 12904 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12905 | '') as_fn_error $? "missing file argument" ;; |
| 12906 | esac |
| 12907 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 12908 | ac_need_defaults=false;; |
| 12909 | --he | --h | --help | --hel | -h ) |
| 12910 | $as_echo "$ac_cs_usage"; exit ;; |
| 12911 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12912 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12913 | ac_cs_silent=: ;; |
| 12914 | |
| 12915 | # This is an error. |
| 12916 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 12917 | Try \`$0 --help' for more information." ;; |
| 12918 | |
| 12919 | *) as_fn_append ac_config_targets " $1" |
| 12920 | ac_need_defaults=false ;; |
| 12921 | |
| 12922 | esac |
| 12923 | shift |
| 12924 | done |
| 12925 | |
| 12926 | ac_configure_extra_args= |
| 12927 | |
| 12928 | if $ac_cs_silent; then |
| 12929 | exec 6>/dev/null |
| 12930 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12931 | fi |
| 12932 | |
| 12933 | _ACEOF |
| 12934 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12935 | if \$ac_cs_recheck; then |
| 12936 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 12937 | shift |
| 12938 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12939 | CONFIG_SHELL='$SHELL' |
| 12940 | export CONFIG_SHELL |
| 12941 | exec "\$@" |
| 12942 | fi |
| 12943 | |
| 12944 | _ACEOF |
| 12945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12946 | exec 5>>config.log |
| 12947 | { |
| 12948 | echo |
| 12949 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12950 | ## Running $as_me. ## |
| 12951 | _ASBOX |
| 12952 | $as_echo "$ac_log" |
| 12953 | } >&5 |
| 12954 | |
| 12955 | _ACEOF |
| 12956 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12957 | # |
| 12958 | # INIT-COMMANDS |
| 12959 | # |
| 12960 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 12961 | |
| 12962 | |
| 12963 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 12964 | # if CDPATH is set. |
| 12965 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12966 | |
| 12967 | sed_quote_subst='$sed_quote_subst' |
| 12968 | double_quote_subst='$double_quote_subst' |
| 12969 | delay_variable_subst='$delay_variable_subst' |
| 12970 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 12971 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 12972 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 12973 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 12974 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 12975 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 12976 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 12977 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 12978 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 12979 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 12980 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 12981 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 12982 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 12983 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 12984 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 12985 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 12986 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 12987 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 12988 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 12989 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 12990 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 12991 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 12992 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 12993 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 12994 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 12995 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 12996 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 12997 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 12998 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 12999 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 13000 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 13001 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 13002 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 13003 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 13004 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 13005 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 13006 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 13007 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 13008 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 13009 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 13010 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 13011 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 13012 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13013 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 13014 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 13015 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13016 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13017 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 13018 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 13019 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 13020 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 13021 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 13022 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 13023 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 13024 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 13025 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 13026 | 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"`' |
| 13027 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13028 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 13029 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 13030 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 13031 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 13032 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 13033 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 13034 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 13035 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 13036 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 13037 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 13038 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 13039 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 13040 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 13041 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 13042 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 13043 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 13044 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 13045 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 13046 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 13047 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 13048 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 13049 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 13050 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 13051 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 13052 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 13053 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 13054 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 13055 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 13056 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 13057 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 13058 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 13059 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 13060 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 13061 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 13062 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 13063 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 13064 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 13065 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 13066 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 13067 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 13068 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 13069 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 13070 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 13071 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 13072 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 13073 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 13074 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 13075 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13076 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 13077 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 13078 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 13079 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 13080 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 13081 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 13082 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 13083 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 13084 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 13085 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 13086 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 13087 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13088 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13089 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 13090 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 13091 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 13092 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 13093 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 13094 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 13095 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 13096 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 13097 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 13098 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 13099 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 13100 | |
| 13101 | LTCC='$LTCC' |
| 13102 | LTCFLAGS='$LTCFLAGS' |
| 13103 | compiler='$compiler_DEFAULT' |
| 13104 | |
| 13105 | # A function that is used when there is no print builtin or printf. |
| 13106 | func_fallback_echo () |
| 13107 | { |
| 13108 | eval 'cat <<_LTECHO_EOF |
| 13109 | \$1 |
| 13110 | _LTECHO_EOF' |
| 13111 | } |
| 13112 | |
| 13113 | # Quote evaled strings. |
| 13114 | for var in SHELL \ |
| 13115 | ECHO \ |
| 13116 | PATH_SEPARATOR \ |
| 13117 | SED \ |
| 13118 | GREP \ |
| 13119 | EGREP \ |
| 13120 | FGREP \ |
| 13121 | LD \ |
| 13122 | NM \ |
| 13123 | LN_S \ |
| 13124 | lt_SP2NL \ |
| 13125 | lt_NL2SP \ |
| 13126 | reload_flag \ |
| 13127 | OBJDUMP \ |
| 13128 | deplibs_check_method \ |
| 13129 | file_magic_cmd \ |
| 13130 | file_magic_glob \ |
| 13131 | want_nocaseglob \ |
| 13132 | DLLTOOL \ |
| 13133 | sharedlib_from_linklib_cmd \ |
| 13134 | AR \ |
| 13135 | AR_FLAGS \ |
| 13136 | archiver_list_spec \ |
| 13137 | STRIP \ |
| 13138 | RANLIB \ |
| 13139 | CC \ |
| 13140 | CFLAGS \ |
| 13141 | compiler \ |
| 13142 | lt_cv_sys_global_symbol_pipe \ |
| 13143 | lt_cv_sys_global_symbol_to_cdecl \ |
| 13144 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13145 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 13146 | nm_file_list_spec \ |
| 13147 | lt_prog_compiler_no_builtin_flag \ |
| 13148 | lt_prog_compiler_pic \ |
| 13149 | lt_prog_compiler_wl \ |
| 13150 | lt_prog_compiler_static \ |
| 13151 | lt_cv_prog_compiler_c_o \ |
| 13152 | need_locks \ |
| 13153 | MANIFEST_TOOL \ |
| 13154 | DSYMUTIL \ |
| 13155 | NMEDIT \ |
| 13156 | LIPO \ |
| 13157 | OTOOL \ |
| 13158 | OTOOL64 \ |
| 13159 | shrext_cmds \ |
| 13160 | export_dynamic_flag_spec \ |
| 13161 | whole_archive_flag_spec \ |
| 13162 | compiler_needs_object \ |
| 13163 | with_gnu_ld \ |
| 13164 | allow_undefined_flag \ |
| 13165 | no_undefined_flag \ |
| 13166 | hardcode_libdir_flag_spec \ |
| 13167 | hardcode_libdir_separator \ |
| 13168 | exclude_expsyms \ |
| 13169 | include_expsyms \ |
| 13170 | file_list_spec \ |
| 13171 | variables_saved_for_relink \ |
| 13172 | libname_spec \ |
| 13173 | library_names_spec \ |
| 13174 | soname_spec \ |
| 13175 | install_override_mode \ |
| 13176 | finish_eval \ |
| 13177 | old_striplib \ |
| 13178 | striplib; do |
| 13179 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 13180 | *[\\\\\\\`\\"\\\$]*) |
| 13181 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 13182 | ;; |
| 13183 | *) |
| 13184 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 13185 | ;; |
| 13186 | esac |
| 13187 | done |
| 13188 | |
| 13189 | # Double-quote double-evaled strings. |
| 13190 | for var in reload_cmds \ |
| 13191 | old_postinstall_cmds \ |
| 13192 | old_postuninstall_cmds \ |
| 13193 | old_archive_cmds \ |
| 13194 | extract_expsyms_cmds \ |
| 13195 | old_archive_from_new_cmds \ |
| 13196 | old_archive_from_expsyms_cmds \ |
| 13197 | archive_cmds \ |
| 13198 | archive_expsym_cmds \ |
| 13199 | module_cmds \ |
| 13200 | module_expsym_cmds \ |
| 13201 | export_symbols_cmds \ |
| 13202 | prelink_cmds \ |
| 13203 | postlink_cmds \ |
| 13204 | postinstall_cmds \ |
| 13205 | postuninstall_cmds \ |
| 13206 | finish_cmds \ |
| 13207 | sys_lib_search_path_spec \ |
| 13208 | sys_lib_dlsearch_path_spec; do |
| 13209 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 13210 | *[\\\\\\\`\\"\\\$]*) |
| 13211 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 13212 | ;; |
| 13213 | *) |
| 13214 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 13215 | ;; |
| 13216 | esac |
| 13217 | done |
| 13218 | |
| 13219 | ac_aux_dir='$ac_aux_dir' |
| 13220 | xsi_shell='$xsi_shell' |
| 13221 | lt_shell_append='$lt_shell_append' |
| 13222 | |
| 13223 | # See if we are running on zsh, and set the options which allow our |
| 13224 | # commands through without removal of \ escapes INIT. |
| 13225 | if test -n "\${ZSH_VERSION+set}" ; then |
| 13226 | setopt NO_GLOB_SUBST |
| 13227 | fi |
| 13228 | |
| 13229 | |
| 13230 | PACKAGE='$PACKAGE' |
| 13231 | VERSION='$VERSION' |
| 13232 | TIMESTAMP='$TIMESTAMP' |
| 13233 | RM='$RM' |
| 13234 | ofile='$ofile' |
| 13235 | |
| 13236 | |
| 13237 | |
| 13238 | |
| 13239 | _ACEOF |
| 13240 | |
| 13241 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13242 | |
| 13243 | # Handling of arguments. |
| 13244 | for ac_config_target in $ac_config_targets |
| 13245 | do |
| 13246 | case $ac_config_target in |
| 13247 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 13248 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 13249 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 13250 | |
| 13251 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 13252 | esac |
| 13253 | done |
| 13254 | |
| 13255 | |
| 13256 | # If the user did not use the arguments to specify the items to instantiate, |
| 13257 | # then the envvar interface is used. Set only those that are not. |
| 13258 | # We use the long form for the default assignment because of an extremely |
| 13259 | # bizarre bug on SunOS 4.1.3. |
| 13260 | if $ac_need_defaults; then |
| 13261 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 13262 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 13263 | fi |
| 13264 | |
| 13265 | # Have a temporary directory for convenience. Make it in the build tree |
| 13266 | # simply because there is no reason against having it here, and in addition, |
| 13267 | # creating and moving files from /tmp can sometimes cause problems. |
| 13268 | # Hook for its removal unless debugging. |
| 13269 | # Note that there is a small window in which the directory will not be cleaned: |
| 13270 | # after its creation but before its name has been assigned to `$tmp'. |
| 13271 | $debug || |
| 13272 | { |
| 13273 | tmp= ac_tmp= |
| 13274 | trap 'exit_status=$? |
| 13275 | : "${ac_tmp:=$tmp}" |
| 13276 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 13277 | ' 0 |
| 13278 | trap 'as_fn_exit 1' 1 2 13 15 |
| 13279 | } |
| 13280 | # Create a (secure) tmp directory for tmp files. |
| 13281 | |
| 13282 | { |
| 13283 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 13284 | test -d "$tmp" |
| 13285 | } || |
| 13286 | { |
| 13287 | tmp=./conf$$-$RANDOM |
| 13288 | (umask 077 && mkdir "$tmp") |
| 13289 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 13290 | ac_tmp=$tmp |
| 13291 | |
| 13292 | # Set up the scripts for CONFIG_FILES section. |
| 13293 | # No need to generate them if there are no CONFIG_FILES. |
| 13294 | # This happens for instance with `./config.status config.h'. |
| 13295 | if test -n "$CONFIG_FILES"; then |
| 13296 | |
| 13297 | |
| 13298 | ac_cr=`echo X | tr X '\015'` |
| 13299 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 13300 | # But we know of no other shell where ac_cr would be empty at this |
| 13301 | # point, so we can use a bashism as a fallback. |
| 13302 | if test "x$ac_cr" = x; then |
| 13303 | eval ac_cr=\$\'\\r\' |
| 13304 | fi |
| 13305 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 13306 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 13307 | ac_cs_awk_cr='\\r' |
| 13308 | else |
| 13309 | ac_cs_awk_cr=$ac_cr |
| 13310 | fi |
| 13311 | |
| 13312 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 13313 | _ACEOF |
| 13314 | |
| 13315 | |
| 13316 | { |
| 13317 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 13318 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 13319 | echo "_ACEOF" |
| 13320 | } >conf$$subs.sh || |
| 13321 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13322 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 13323 | ac_delim='%!_!# ' |
| 13324 | for ac_last_try in false false false false false :; do |
| 13325 | . ./conf$$subs.sh || |
| 13326 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13327 | |
| 13328 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 13329 | if test $ac_delim_n = $ac_delim_num; then |
| 13330 | break |
| 13331 | elif $ac_last_try; then |
| 13332 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13333 | else |
| 13334 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13335 | fi |
| 13336 | done |
| 13337 | rm -f conf$$subs.sh |
| 13338 | |
| 13339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13340 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 13341 | _ACEOF |
| 13342 | sed -n ' |
| 13343 | h |
| 13344 | s/^/S["/; s/!.*/"]=/ |
| 13345 | p |
| 13346 | g |
| 13347 | s/^[^!]*!// |
| 13348 | :repl |
| 13349 | t repl |
| 13350 | s/'"$ac_delim"'$// |
| 13351 | t delim |
| 13352 | :nl |
| 13353 | h |
| 13354 | s/\(.\{148\}\)..*/\1/ |
| 13355 | t more1 |
| 13356 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 13357 | p |
| 13358 | n |
| 13359 | b repl |
| 13360 | :more1 |
| 13361 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13362 | p |
| 13363 | g |
| 13364 | s/.\{148\}// |
| 13365 | t nl |
| 13366 | :delim |
| 13367 | h |
| 13368 | s/\(.\{148\}\)..*/\1/ |
| 13369 | t more2 |
| 13370 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 13371 | p |
| 13372 | b |
| 13373 | :more2 |
| 13374 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13375 | p |
| 13376 | g |
| 13377 | s/.\{148\}// |
| 13378 | t delim |
| 13379 | ' <conf$$subs.awk | sed ' |
| 13380 | /^[^""]/{ |
| 13381 | N |
| 13382 | s/\n// |
| 13383 | } |
| 13384 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13385 | rm -f conf$$subs.awk |
| 13386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13387 | _ACAWK |
| 13388 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 13389 | for (key in S) S_is_set[key] = 1 |
| 13390 | FS = "" |
| 13391 | |
| 13392 | } |
| 13393 | { |
| 13394 | line = $ 0 |
| 13395 | nfields = split(line, field, "@") |
| 13396 | substed = 0 |
| 13397 | len = length(field[1]) |
| 13398 | for (i = 2; i < nfields; i++) { |
| 13399 | key = field[i] |
| 13400 | keylen = length(key) |
| 13401 | if (S_is_set[key]) { |
| 13402 | value = S[key] |
| 13403 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 13404 | len += length(value) + length(field[++i]) |
| 13405 | substed = 1 |
| 13406 | } else |
| 13407 | len += 1 + keylen |
| 13408 | } |
| 13409 | |
| 13410 | print line |
| 13411 | } |
| 13412 | |
| 13413 | _ACAWK |
| 13414 | _ACEOF |
| 13415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13416 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 13417 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 13418 | else |
| 13419 | cat |
| 13420 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 13421 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 13422 | _ACEOF |
| 13423 | |
| 13424 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 13425 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 13426 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13427 | # (actually we leave an empty line to preserve line numbers). |
| 13428 | if test "x$srcdir" = x.; then |
| 13429 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 13430 | h |
| 13431 | s/// |
| 13432 | s/^/:/ |
| 13433 | s/[ ]*$/:/ |
| 13434 | s/:\$(srcdir):/:/g |
| 13435 | s/:\${srcdir}:/:/g |
| 13436 | s/:@srcdir@:/:/g |
| 13437 | s/^:*// |
| 13438 | s/:*$// |
| 13439 | x |
| 13440 | s/\(=[ ]*\).*/\1/ |
| 13441 | G |
| 13442 | s/\n// |
| 13443 | s/^[^=]*=[ ]*$// |
| 13444 | }' |
| 13445 | fi |
| 13446 | |
| 13447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13448 | fi # test -n "$CONFIG_FILES" |
| 13449 | |
| 13450 | |
| 13451 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 13452 | shift |
| 13453 | for ac_tag |
| 13454 | do |
| 13455 | case $ac_tag in |
| 13456 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 13457 | esac |
| 13458 | case $ac_mode$ac_tag in |
| 13459 | :[FHL]*:*);; |
| 13460 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 13461 | :[FH]-) ac_tag=-:-;; |
| 13462 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 13463 | esac |
| 13464 | ac_save_IFS=$IFS |
| 13465 | IFS=: |
| 13466 | set x $ac_tag |
| 13467 | IFS=$ac_save_IFS |
| 13468 | shift |
| 13469 | ac_file=$1 |
| 13470 | shift |
| 13471 | |
| 13472 | case $ac_mode in |
| 13473 | :L) ac_source=$1;; |
| 13474 | :[FH]) |
| 13475 | ac_file_inputs= |
| 13476 | for ac_f |
| 13477 | do |
| 13478 | case $ac_f in |
| 13479 | -) ac_f="$ac_tmp/stdin";; |
| 13480 | *) # Look for the file first in the build tree, then in the source tree |
| 13481 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13482 | # because $ac_f cannot contain `:'. |
| 13483 | test -f "$ac_f" || |
| 13484 | case $ac_f in |
| 13485 | [\\/$]*) false;; |
| 13486 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13487 | esac || |
| 13488 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 13489 | esac |
| 13490 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 13491 | as_fn_append ac_file_inputs " '$ac_f'" |
| 13492 | done |
| 13493 | |
| 13494 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13495 | # use $as_me), people would be surprised to read: |
| 13496 | # /* config.h. Generated by config.status. */ |
| 13497 | configure_input='Generated from '` |
| 13498 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 13499 | `' by configure.' |
| 13500 | if test x"$ac_file" != x-; then |
| 13501 | configure_input="$ac_file. $configure_input" |
| 13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 13503 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 13504 | fi |
| 13505 | # Neutralize special characters interpreted by sed in replacement strings. |
| 13506 | case $configure_input in #( |
| 13507 | *\&* | *\|* | *\\* ) |
| 13508 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 13509 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 13510 | *) ac_sed_conf_input=$configure_input;; |
| 13511 | esac |
| 13512 | |
| 13513 | case $ac_tag in |
| 13514 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 13515 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 13516 | esac |
| 13517 | ;; |
| 13518 | esac |
| 13519 | |
| 13520 | ac_dir=`$as_dirname -- "$ac_file" || |
| 13521 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13522 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13523 | X"$ac_file" : 'X\(//\)$' \| \ |
| 13524 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 13525 | $as_echo X"$ac_file" | |
| 13526 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13527 | s//\1/ |
| 13528 | q |
| 13529 | } |
| 13530 | /^X\(\/\/\)[^/].*/{ |
| 13531 | s//\1/ |
| 13532 | q |
| 13533 | } |
| 13534 | /^X\(\/\/\)$/{ |
| 13535 | s//\1/ |
| 13536 | q |
| 13537 | } |
| 13538 | /^X\(\/\).*/{ |
| 13539 | s//\1/ |
| 13540 | q |
| 13541 | } |
| 13542 | s/.*/./; q'` |
| 13543 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 13544 | ac_builddir=. |
| 13545 | |
| 13546 | case "$ac_dir" in |
| 13547 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13548 | *) |
| 13549 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 13550 | # A ".." for each directory in $ac_dir_suffix. |
| 13551 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 13552 | case $ac_top_builddir_sub in |
| 13553 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13554 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 13555 | esac ;; |
| 13556 | esac |
| 13557 | ac_abs_top_builddir=$ac_pwd |
| 13558 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 13559 | # for backward compatibility: |
| 13560 | ac_top_builddir=$ac_top_build_prefix |
| 13561 | |
| 13562 | case $srcdir in |
| 13563 | .) # We are building in place. |
| 13564 | ac_srcdir=. |
| 13565 | ac_top_srcdir=$ac_top_builddir_sub |
| 13566 | ac_abs_top_srcdir=$ac_pwd ;; |
| 13567 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 13568 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 13569 | ac_top_srcdir=$srcdir |
| 13570 | ac_abs_top_srcdir=$srcdir ;; |
| 13571 | *) # Relative name. |
| 13572 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13573 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13574 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 13575 | esac |
| 13576 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 13577 | |
| 13578 | |
| 13579 | case $ac_mode in |
| 13580 | :F) |
| 13581 | # |
| 13582 | # CONFIG_FILE |
| 13583 | # |
| 13584 | |
| 13585 | case $INSTALL in |
| 13586 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 13587 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 13588 | esac |
| 13589 | ac_MKDIR_P=$MKDIR_P |
| 13590 | case $MKDIR_P in |
| 13591 | [\\/$]* | ?:[\\/]* ) ;; |
| 13592 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 13593 | esac |
| 13594 | _ACEOF |
| 13595 | |
| 13596 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13597 | # If the template does not know about datarootdir, expand it. |
| 13598 | # FIXME: This hack should be removed a few years after 2.60. |
| 13599 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 13600 | ac_sed_dataroot=' |
| 13601 | /datarootdir/ { |
| 13602 | p |
| 13603 | q |
| 13604 | } |
| 13605 | /@datadir@/p |
| 13606 | /@docdir@/p |
| 13607 | /@infodir@/p |
| 13608 | /@localedir@/p |
| 13609 | /@mandir@/p' |
| 13610 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 13611 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 13612 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 13614 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 13615 | _ACEOF |
| 13616 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13617 | ac_datarootdir_hack=' |
| 13618 | s&@datadir@&$datadir&g |
| 13619 | s&@docdir@&$docdir&g |
| 13620 | s&@infodir@&$infodir&g |
| 13621 | s&@localedir@&$localedir&g |
| 13622 | s&@mandir@&$mandir&g |
| 13623 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 13624 | esac |
| 13625 | _ACEOF |
| 13626 | |
| 13627 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13628 | # Shell code in configure.ac might set extrasub. |
| 13629 | # FIXME: do we really want to maintain this feature? |
| 13630 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13631 | ac_sed_extra="$ac_vpsub |
| 13632 | $extrasub |
| 13633 | _ACEOF |
| 13634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13635 | :t |
| 13636 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 13637 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 13638 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 13639 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 13640 | s&@srcdir@&$ac_srcdir&;t t |
| 13641 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13642 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13643 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13644 | s&@builddir@&$ac_builddir&;t t |
| 13645 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13646 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13647 | s&@INSTALL@&$ac_INSTALL&;t t |
| 13648 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 13649 | $ac_datarootdir_hack |
| 13650 | " |
| 13651 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 13652 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13653 | |
| 13654 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 13655 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 13656 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 13657 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13659 | which seems to be undefined. Please make sure it is defined" >&5 |
| 13660 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13661 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 13662 | |
| 13663 | rm -f "$ac_tmp/stdin" |
| 13664 | case $ac_file in |
| 13665 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 13666 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 13667 | esac \ |
| 13668 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13669 | ;; |
| 13670 | |
| 13671 | |
| 13672 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 13673 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 13674 | ;; |
| 13675 | esac |
| 13676 | |
| 13677 | |
| 13678 | case $ac_file$ac_mode in |
| 13679 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 13680 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 13681 | # are listed without --file. Let's play safe and only enable the eval |
| 13682 | # if we detect the quoting. |
| 13683 | case $CONFIG_FILES in |
| 13684 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 13685 | *) set x $CONFIG_FILES ;; |
| 13686 | esac |
| 13687 | shift |
| 13688 | for mf |
| 13689 | do |
| 13690 | # Strip MF so we end up with the name of the file. |
| 13691 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 13692 | # Check whether this is an Automake generated Makefile or not. |
| 13693 | # We used to match only the files named 'Makefile.in', but |
| 13694 | # some people rename them; so instead we look at the file content. |
| 13695 | # Grep'ing the first line is not enough: some people post-process |
| 13696 | # each Makefile.in and add a new line on top of each file to say so. |
| 13697 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 13698 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 13699 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 13700 | dirpart=`$as_dirname -- "$mf" || |
| 13701 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13702 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 13703 | X"$mf" : 'X\(//\)$' \| \ |
| 13704 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 13705 | $as_echo X"$mf" | |
| 13706 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13707 | s//\1/ |
| 13708 | q |
| 13709 | } |
| 13710 | /^X\(\/\/\)[^/].*/{ |
| 13711 | s//\1/ |
| 13712 | q |
| 13713 | } |
| 13714 | /^X\(\/\/\)$/{ |
| 13715 | s//\1/ |
| 13716 | q |
| 13717 | } |
| 13718 | /^X\(\/\).*/{ |
| 13719 | s//\1/ |
| 13720 | q |
| 13721 | } |
| 13722 | s/.*/./; q'` |
| 13723 | else |
| 13724 | continue |
| 13725 | fi |
| 13726 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 13727 | # from the Makefile without running 'make'. |
| 13728 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 13729 | test -z "$DEPDIR" && continue |
| 13730 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 13731 | test -z "$am__include" && continue |
| 13732 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 13733 | # Find all dependency output files, they are included files with |
| 13734 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 13735 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 13736 | # expansion. |
| 13737 | for file in `sed -n " |
| 13738 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 13739 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 13740 | # Make sure the directory exists. |
| 13741 | test -f "$dirpart/$file" && continue |
| 13742 | fdir=`$as_dirname -- "$file" || |
| 13743 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13744 | X"$file" : 'X\(//\)[^/]' \| \ |
| 13745 | X"$file" : 'X\(//\)$' \| \ |
| 13746 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 13747 | $as_echo X"$file" | |
| 13748 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13749 | s//\1/ |
| 13750 | q |
| 13751 | } |
| 13752 | /^X\(\/\/\)[^/].*/{ |
| 13753 | s//\1/ |
| 13754 | q |
| 13755 | } |
| 13756 | /^X\(\/\/\)$/{ |
| 13757 | s//\1/ |
| 13758 | q |
| 13759 | } |
| 13760 | /^X\(\/\).*/{ |
| 13761 | s//\1/ |
| 13762 | q |
| 13763 | } |
| 13764 | s/.*/./; q'` |
| 13765 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 13766 | # echo "creating $dirpart/$file" |
| 13767 | echo '# dummy' > "$dirpart/$file" |
| 13768 | done |
| 13769 | done |
| 13770 | } |
| 13771 | ;; |
| 13772 | "libtool":C) |
| 13773 | |
| 13774 | # See if we are running on zsh, and set the options which allow our |
| 13775 | # commands through without removal of \ escapes. |
| 13776 | if test -n "${ZSH_VERSION+set}" ; then |
| 13777 | setopt NO_GLOB_SUBST |
| 13778 | fi |
| 13779 | |
| 13780 | cfgfile="${ofile}T" |
| 13781 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 13782 | $RM "$cfgfile" |
| 13783 | |
| 13784 | cat <<_LT_EOF >> "$cfgfile" |
| 13785 | #! $SHELL |
| 13786 | |
| 13787 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 13788 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 13789 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13790 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 13791 | # |
| 13792 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13793 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 13794 | # Foundation, Inc. |
| 13795 | # Written by Gordon Matzigkeit, 1996 |
| 13796 | # |
| 13797 | # This file is part of GNU Libtool. |
| 13798 | # |
| 13799 | # GNU Libtool is free software; you can redistribute it and/or |
| 13800 | # modify it under the terms of the GNU General Public License as |
| 13801 | # published by the Free Software Foundation; either version 2 of |
| 13802 | # the License, or (at your option) any later version. |
| 13803 | # |
| 13804 | # As a special exception to the GNU General Public License, |
| 13805 | # if you distribute this file as part of a program or library that |
| 13806 | # is built using GNU Libtool, you may include this file under the |
| 13807 | # same distribution terms that you use for the rest of that program. |
| 13808 | # |
| 13809 | # GNU Libtool is distributed in the hope that it will be useful, |
| 13810 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13811 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13812 | # GNU General Public License for more details. |
| 13813 | # |
| 13814 | # You should have received a copy of the GNU General Public License |
| 13815 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 13816 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13817 | # obtained by writing to the Free Software Foundation, Inc., |
| 13818 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13819 | |
| 13820 | |
| 13821 | # The names of the tagged configurations supported by this script. |
| 13822 | available_tags="" |
| 13823 | |
| 13824 | # ### BEGIN LIBTOOL CONFIG |
| 13825 | |
| 13826 | # Which release of libtool.m4 was used? |
| 13827 | macro_version=$macro_version |
| 13828 | macro_revision=$macro_revision |
| 13829 | |
| 13830 | # Whether or not to build shared libraries. |
| 13831 | build_libtool_libs=$enable_shared |
| 13832 | |
| 13833 | # Whether or not to build static libraries. |
| 13834 | build_old_libs=$enable_static |
| 13835 | |
| 13836 | # What type of objects to build. |
| 13837 | pic_mode=$pic_mode |
| 13838 | |
| 13839 | # Whether or not to optimize for fast installation. |
| 13840 | fast_install=$enable_fast_install |
| 13841 | |
| 13842 | # Shell to use when invoking shell scripts. |
| 13843 | SHELL=$lt_SHELL |
| 13844 | |
| 13845 | # An echo program that protects backslashes. |
| 13846 | ECHO=$lt_ECHO |
| 13847 | |
| 13848 | # The PATH separator for the build system. |
| 13849 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 13850 | |
| 13851 | # The host system. |
| 13852 | host_alias=$host_alias |
| 13853 | host=$host |
| 13854 | host_os=$host_os |
| 13855 | |
| 13856 | # The build system. |
| 13857 | build_alias=$build_alias |
| 13858 | build=$build |
| 13859 | build_os=$build_os |
| 13860 | |
| 13861 | # A sed program that does not truncate output. |
| 13862 | SED=$lt_SED |
| 13863 | |
| 13864 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 13865 | Xsed="\$SED -e 1s/^X//" |
| 13866 | |
| 13867 | # A grep program that handles long lines. |
| 13868 | GREP=$lt_GREP |
| 13869 | |
| 13870 | # An ERE matcher. |
| 13871 | EGREP=$lt_EGREP |
| 13872 | |
| 13873 | # A literal string matcher. |
| 13874 | FGREP=$lt_FGREP |
| 13875 | |
| 13876 | # A BSD- or MS-compatible name lister. |
| 13877 | NM=$lt_NM |
| 13878 | |
| 13879 | # Whether we need soft or hard links. |
| 13880 | LN_S=$lt_LN_S |
| 13881 | |
| 13882 | # What is the maximum length of a command? |
| 13883 | max_cmd_len=$max_cmd_len |
| 13884 | |
| 13885 | # Object file suffix (normally "o"). |
| 13886 | objext=$ac_objext |
| 13887 | |
| 13888 | # Executable file suffix (normally ""). |
| 13889 | exeext=$exeext |
| 13890 | |
| 13891 | # whether the shell understands "unset". |
| 13892 | lt_unset=$lt_unset |
| 13893 | |
| 13894 | # turn spaces into newlines. |
| 13895 | SP2NL=$lt_lt_SP2NL |
| 13896 | |
| 13897 | # turn newlines into spaces. |
| 13898 | NL2SP=$lt_lt_NL2SP |
| 13899 | |
| 13900 | # convert \$build file names to \$host format. |
| 13901 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 13902 | |
| 13903 | # convert \$build files to toolchain format. |
| 13904 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 13905 | |
| 13906 | # An object symbol dumper. |
| 13907 | OBJDUMP=$lt_OBJDUMP |
| 13908 | |
| 13909 | # Method to check whether dependent libraries are shared objects. |
| 13910 | deplibs_check_method=$lt_deplibs_check_method |
| 13911 | |
| 13912 | # Command to use when deplibs_check_method = "file_magic". |
| 13913 | file_magic_cmd=$lt_file_magic_cmd |
| 13914 | |
| 13915 | # How to find potential files when deplibs_check_method = "file_magic". |
| 13916 | file_magic_glob=$lt_file_magic_glob |
| 13917 | |
| 13918 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 13919 | want_nocaseglob=$lt_want_nocaseglob |
| 13920 | |
| 13921 | # DLL creation program. |
| 13922 | DLLTOOL=$lt_DLLTOOL |
| 13923 | |
| 13924 | # Command to associate shared and link libraries. |
| 13925 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 13926 | |
| 13927 | # The archiver. |
| 13928 | AR=$lt_AR |
| 13929 | |
| 13930 | # Flags to create an archive. |
| 13931 | AR_FLAGS=$lt_AR_FLAGS |
| 13932 | |
| 13933 | # How to feed a file listing to the archiver. |
| 13934 | archiver_list_spec=$lt_archiver_list_spec |
| 13935 | |
| 13936 | # A symbol stripping program. |
| 13937 | STRIP=$lt_STRIP |
| 13938 | |
| 13939 | # Commands used to install an old-style archive. |
| 13940 | RANLIB=$lt_RANLIB |
| 13941 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13942 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13943 | |
| 13944 | # Whether to use a lock for old archive extraction. |
| 13945 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 13946 | |
| 13947 | # A C compiler. |
| 13948 | LTCC=$lt_CC |
| 13949 | |
| 13950 | # LTCC compiler flags. |
| 13951 | LTCFLAGS=$lt_CFLAGS |
| 13952 | |
| 13953 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13954 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13955 | |
| 13956 | # Transform the output of nm in a proper C declaration. |
| 13957 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13958 | |
| 13959 | # Transform the output of nm in a C name address pair. |
| 13960 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13961 | |
| 13962 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 13963 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 13964 | |
| 13965 | # Specify filename containing input files for \$NM. |
| 13966 | nm_file_list_spec=$lt_nm_file_list_spec |
| 13967 | |
| 13968 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 13969 | lt_sysroot=$lt_sysroot |
| 13970 | |
| 13971 | # The name of the directory that contains temporary libtool files. |
| 13972 | objdir=$objdir |
| 13973 | |
| 13974 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 13975 | MAGIC_CMD=$MAGIC_CMD |
| 13976 | |
| 13977 | # Must we lock files when doing compilation? |
| 13978 | need_locks=$lt_need_locks |
| 13979 | |
| 13980 | # Manifest tool. |
| 13981 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 13982 | |
| 13983 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 13984 | DSYMUTIL=$lt_DSYMUTIL |
| 13985 | |
| 13986 | # Tool to change global to local symbols on Mac OS X. |
| 13987 | NMEDIT=$lt_NMEDIT |
| 13988 | |
| 13989 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 13990 | LIPO=$lt_LIPO |
| 13991 | |
| 13992 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 13993 | OTOOL=$lt_OTOOL |
| 13994 | |
| 13995 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 13996 | OTOOL64=$lt_OTOOL64 |
| 13997 | |
| 13998 | # Old archive suffix (normally "a"). |
| 13999 | libext=$libext |
| 14000 | |
| 14001 | # Shared library suffix (normally ".so"). |
| 14002 | shrext_cmds=$lt_shrext_cmds |
| 14003 | |
| 14004 | # The commands to extract the exported symbol list from a shared archive. |
| 14005 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14006 | |
| 14007 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14008 | # restored at link time. |
| 14009 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 14010 | |
| 14011 | # Do we need the "lib" prefix for modules? |
| 14012 | need_lib_prefix=$need_lib_prefix |
| 14013 | |
| 14014 | # Do we need a version for libraries? |
| 14015 | need_version=$need_version |
| 14016 | |
| 14017 | # Library versioning type. |
| 14018 | version_type=$version_type |
| 14019 | |
| 14020 | # Shared library runtime path variable. |
| 14021 | runpath_var=$runpath_var |
| 14022 | |
| 14023 | # Shared library path variable. |
| 14024 | shlibpath_var=$shlibpath_var |
| 14025 | |
| 14026 | # Is shlibpath searched before the hard-coded library search path? |
| 14027 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14028 | |
| 14029 | # Format of library name prefix. |
| 14030 | libname_spec=$lt_libname_spec |
| 14031 | |
| 14032 | # List of archive names. First name is the real one, the rest are links. |
| 14033 | # The last name is the one that the linker finds with -lNAME |
| 14034 | library_names_spec=$lt_library_names_spec |
| 14035 | |
| 14036 | # The coded name of the library, if different from the real name. |
| 14037 | soname_spec=$lt_soname_spec |
| 14038 | |
| 14039 | # Permission mode override for installation of shared libraries. |
| 14040 | install_override_mode=$lt_install_override_mode |
| 14041 | |
| 14042 | # Command to use after installation of a shared archive. |
| 14043 | postinstall_cmds=$lt_postinstall_cmds |
| 14044 | |
| 14045 | # Command to use after uninstallation of a shared archive. |
| 14046 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14047 | |
| 14048 | # Commands used to finish a libtool library installation in a directory. |
| 14049 | finish_cmds=$lt_finish_cmds |
| 14050 | |
| 14051 | # As "finish_cmds", except a single script fragment to be evaled but |
| 14052 | # not shown. |
| 14053 | finish_eval=$lt_finish_eval |
| 14054 | |
| 14055 | # Whether we should hardcode library paths into libraries. |
| 14056 | hardcode_into_libs=$hardcode_into_libs |
| 14057 | |
| 14058 | # Compile-time system search path for libraries. |
| 14059 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14060 | |
| 14061 | # Run-time system search path for libraries. |
| 14062 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14063 | |
| 14064 | # Whether dlopen is supported. |
| 14065 | dlopen_support=$enable_dlopen |
| 14066 | |
| 14067 | # Whether dlopen of programs is supported. |
| 14068 | dlopen_self=$enable_dlopen_self |
| 14069 | |
| 14070 | # Whether dlopen of statically linked programs is supported. |
| 14071 | dlopen_self_static=$enable_dlopen_self_static |
| 14072 | |
| 14073 | # Commands to strip libraries. |
| 14074 | old_striplib=$lt_old_striplib |
| 14075 | striplib=$lt_striplib |
| 14076 | |
| 14077 | |
| 14078 | # The linker used to build libraries. |
| 14079 | LD=$lt_LD |
| 14080 | |
| 14081 | # How to create reloadable object files. |
| 14082 | reload_flag=$lt_reload_flag |
| 14083 | reload_cmds=$lt_reload_cmds |
| 14084 | |
| 14085 | # Commands used to build an old-style archive. |
| 14086 | old_archive_cmds=$lt_old_archive_cmds |
| 14087 | |
| 14088 | # A language specific compiler. |
| 14089 | CC=$lt_compiler |
| 14090 | |
| 14091 | # Is the compiler the GNU compiler? |
| 14092 | with_gcc=$GCC |
| 14093 | |
| 14094 | # Compiler flag to turn off builtin functions. |
| 14095 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 14096 | |
| 14097 | # Additional compiler flags for building library objects. |
| 14098 | pic_flag=$lt_lt_prog_compiler_pic |
| 14099 | |
| 14100 | # How to pass a linker flag through the compiler. |
| 14101 | wl=$lt_lt_prog_compiler_wl |
| 14102 | |
| 14103 | # Compiler flag to prevent dynamic linking. |
| 14104 | link_static_flag=$lt_lt_prog_compiler_static |
| 14105 | |
| 14106 | # Does compiler simultaneously support -c and -o options? |
| 14107 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 14108 | |
| 14109 | # Whether or not to add -lc for building shared libraries. |
| 14110 | build_libtool_need_lc=$archive_cmds_need_lc |
| 14111 | |
| 14112 | # Whether or not to disallow shared libs when runtime libs are static. |
| 14113 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 14114 | |
| 14115 | # Compiler flag to allow reflexive dlopens. |
| 14116 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 14117 | |
| 14118 | # Compiler flag to generate shared objects directly from archives. |
| 14119 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 14120 | |
| 14121 | # Whether the compiler copes with passing no objects directly. |
| 14122 | compiler_needs_object=$lt_compiler_needs_object |
| 14123 | |
| 14124 | # Create an old-style archive from a shared archive. |
| 14125 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 14126 | |
| 14127 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14128 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 14129 | |
| 14130 | # Commands used to build a shared archive. |
| 14131 | archive_cmds=$lt_archive_cmds |
| 14132 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 14133 | |
| 14134 | # Commands used to build a loadable module if different from building |
| 14135 | # a shared archive. |
| 14136 | module_cmds=$lt_module_cmds |
| 14137 | module_expsym_cmds=$lt_module_expsym_cmds |
| 14138 | |
| 14139 | # Whether we are building with GNU ld or not. |
| 14140 | with_gnu_ld=$lt_with_gnu_ld |
| 14141 | |
| 14142 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14143 | allow_undefined_flag=$lt_allow_undefined_flag |
| 14144 | |
| 14145 | # Flag that enforces no undefined symbols. |
| 14146 | no_undefined_flag=$lt_no_undefined_flag |
| 14147 | |
| 14148 | # Flag to hardcode \$libdir into a binary during linking. |
| 14149 | # This must work even if \$libdir does not exist |
| 14150 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 14151 | |
| 14152 | # Whether we need a single "-rpath" flag with a separated argument. |
| 14153 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 14154 | |
| 14155 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 14156 | # DIR into the resulting binary. |
| 14157 | hardcode_direct=$hardcode_direct |
| 14158 | |
| 14159 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 14160 | # DIR into the resulting binary and the resulting library dependency is |
| 14161 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 14162 | # library is relocated. |
| 14163 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 14164 | |
| 14165 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 14166 | # into the resulting binary. |
| 14167 | hardcode_minus_L=$hardcode_minus_L |
| 14168 | |
| 14169 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 14170 | # into the resulting binary. |
| 14171 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 14172 | |
| 14173 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 14174 | # into the library and all subsequent libraries and executables linked |
| 14175 | # against it. |
| 14176 | hardcode_automatic=$hardcode_automatic |
| 14177 | |
| 14178 | # Set to yes if linker adds runtime paths of dependent libraries |
| 14179 | # to runtime path list. |
| 14180 | inherit_rpath=$inherit_rpath |
| 14181 | |
| 14182 | # Whether libtool must link a program against all its dependency libraries. |
| 14183 | link_all_deplibs=$link_all_deplibs |
| 14184 | |
| 14185 | # Set to "yes" if exported symbols are required. |
| 14186 | always_export_symbols=$always_export_symbols |
| 14187 | |
| 14188 | # The commands to list exported symbols. |
| 14189 | export_symbols_cmds=$lt_export_symbols_cmds |
| 14190 | |
| 14191 | # Symbols that should not be listed in the preloaded symbols. |
| 14192 | exclude_expsyms=$lt_exclude_expsyms |
| 14193 | |
| 14194 | # Symbols that must always be exported. |
| 14195 | include_expsyms=$lt_include_expsyms |
| 14196 | |
| 14197 | # Commands necessary for linking programs (against libraries) with templates. |
| 14198 | prelink_cmds=$lt_prelink_cmds |
| 14199 | |
| 14200 | # Commands necessary for finishing linking programs. |
| 14201 | postlink_cmds=$lt_postlink_cmds |
| 14202 | |
| 14203 | # Specify filename containing input files. |
| 14204 | file_list_spec=$lt_file_list_spec |
| 14205 | |
| 14206 | # How to hardcode a shared library path into an executable. |
| 14207 | hardcode_action=$hardcode_action |
| 14208 | |
| 14209 | # ### END LIBTOOL CONFIG |
| 14210 | |
| 14211 | _LT_EOF |
| 14212 | |
| 14213 | case $host_os in |
| 14214 | aix3*) |
| 14215 | cat <<\_LT_EOF >> "$cfgfile" |
| 14216 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14217 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14218 | # vanish in a puff of smoke. |
| 14219 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14220 | COLLECT_NAMES= |
| 14221 | export COLLECT_NAMES |
| 14222 | fi |
| 14223 | _LT_EOF |
| 14224 | ;; |
| 14225 | esac |
| 14226 | |
| 14227 | |
| 14228 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14229 | |
| 14230 | |
| 14231 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 14232 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 14233 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 14234 | # is reportedly fixed, but why not run on old versions too? |
| 14235 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 14236 | || (rm -f "$cfgfile"; exit 1) |
| 14237 | |
| 14238 | if test x"$xsi_shell" = xyes; then |
| 14239 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 14240 | func_dirname ()\ |
| 14241 | {\ |
| 14242 | \ case ${1} in\ |
| 14243 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 14244 | \ * ) func_dirname_result="${3}" ;;\ |
| 14245 | \ esac\ |
| 14246 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14247 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14248 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14249 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14250 | |
| 14251 | |
| 14252 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 14253 | func_basename ()\ |
| 14254 | {\ |
| 14255 | \ func_basename_result="${1##*/}"\ |
| 14256 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14257 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14258 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14259 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14260 | |
| 14261 | |
| 14262 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 14263 | func_dirname_and_basename ()\ |
| 14264 | {\ |
| 14265 | \ case ${1} in\ |
| 14266 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 14267 | \ * ) func_dirname_result="${3}" ;;\ |
| 14268 | \ esac\ |
| 14269 | \ func_basename_result="${1##*/}"\ |
| 14270 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14271 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14272 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14273 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14274 | |
| 14275 | |
| 14276 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 14277 | func_stripname ()\ |
| 14278 | {\ |
| 14279 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 14280 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 14281 | \ func_stripname_result=${3}\ |
| 14282 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 14283 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 14284 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14285 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14286 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14287 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14288 | |
| 14289 | |
| 14290 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 14291 | func_split_long_opt ()\ |
| 14292 | {\ |
| 14293 | \ func_split_long_opt_name=${1%%=*}\ |
| 14294 | \ func_split_long_opt_arg=${1#*=}\ |
| 14295 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14296 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14297 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14298 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14299 | |
| 14300 | |
| 14301 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 14302 | func_split_short_opt ()\ |
| 14303 | {\ |
| 14304 | \ func_split_short_opt_arg=${1#??}\ |
| 14305 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 14306 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14307 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14308 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14309 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14310 | |
| 14311 | |
| 14312 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 14313 | func_lo2o ()\ |
| 14314 | {\ |
| 14315 | \ case ${1} in\ |
| 14316 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 14317 | \ *) func_lo2o_result=${1} ;;\ |
| 14318 | \ esac\ |
| 14319 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14320 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14321 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14322 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14323 | |
| 14324 | |
| 14325 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 14326 | func_xform ()\ |
| 14327 | {\ |
| 14328 | func_xform_result=${1%.*}.lo\ |
| 14329 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14330 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14331 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14332 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14333 | |
| 14334 | |
| 14335 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 14336 | func_arith ()\ |
| 14337 | {\ |
| 14338 | func_arith_result=$(( $* ))\ |
| 14339 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14340 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14341 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14342 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14343 | |
| 14344 | |
| 14345 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 14346 | func_len ()\ |
| 14347 | {\ |
| 14348 | func_len_result=${#1}\ |
| 14349 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14350 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14351 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14352 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14353 | |
| 14354 | fi |
| 14355 | |
| 14356 | if test x"$lt_shell_append" = xyes; then |
| 14357 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 14358 | func_append ()\ |
| 14359 | {\ |
| 14360 | eval "${1}+=\\${2}"\ |
| 14361 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14362 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14363 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14364 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14365 | |
| 14366 | |
| 14367 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 14368 | func_append_quoted ()\ |
| 14369 | {\ |
| 14370 | \ func_quote_for_eval "${2}"\ |
| 14371 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 14372 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 14373 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14374 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14375 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14376 | |
| 14377 | |
| 14378 | # Save a `func_append' function call where possible by direct use of '+=' |
| 14379 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 14380 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14381 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14382 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14383 | else |
| 14384 | # Save a `func_append' function call even when '+=' is not available |
| 14385 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 14386 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 14387 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 14388 | test 0 -eq $? || _lt_function_replace_fail=: |
| 14389 | fi |
| 14390 | |
| 14391 | if test x"$_lt_function_replace_fail" = x":"; then |
| 14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 14393 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 14394 | fi |
| 14395 | |
| 14396 | |
| 14397 | mv -f "$cfgfile" "$ofile" || |
| 14398 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 14399 | chmod +x "$ofile" |
| 14400 | |
| 14401 | ;; |
| 14402 | |
| 14403 | esac |
| 14404 | done # for ac_tag |
| 14405 | |
| 14406 | |
| 14407 | as_fn_exit 0 |
| 14408 | _ACEOF |
| 14409 | ac_clean_files=$ac_clean_files_save |
| 14410 | |
| 14411 | test $ac_write_fail = 0 || |
| 14412 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 14413 | |
| 14414 | |
| 14415 | # configure is writing to config.log, and then calls config.status. |
| 14416 | # config.status does its own redirection, appending to config.log. |
| 14417 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14418 | # by configure, so config.status won't be able to write to it; its |
| 14419 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14420 | # effectively closing config.log, so it can be properly (re)opened and |
| 14421 | # appended to by config.status. When coming back to configure, we |
| 14422 | # need to make the FD available again. |
| 14423 | if test "$no_create" != yes; then |
| 14424 | ac_cs_success=: |
| 14425 | ac_config_status_args= |
| 14426 | test "$silent" = yes && |
| 14427 | ac_config_status_args="$ac_config_status_args --quiet" |
| 14428 | exec 5>/dev/null |
| 14429 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 14430 | exec 5>>config.log |
| 14431 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14432 | # would make configure fail if this is the last instruction. |
| 14433 | $ac_cs_success || as_fn_exit 1 |
| 14434 | fi |
| 14435 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 14437 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14438 | fi |
| 14439 | |