Stephane Barbarie | 1408896 | 2017-06-01 16:56:55 -0400 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for voltha 1.0. |
| 4 | # |
| 5 | # Report bugs to <BUG-REPORT-ADDRESS>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | |
| 202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 206 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 209 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 210 | if (eval "$as_required") 2>/dev/null; then : |
| 211 | as_have_required=yes |
| 212 | else |
| 213 | as_have_required=no |
| 214 | fi |
| 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 216 | |
| 217 | else |
| 218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 219 | as_found=false |
| 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
| 224 | as_found=: |
| 225 | case $as_dir in #( |
| 226 | /*) |
| 227 | for as_base in sh bash ksh sh5; do |
| 228 | # Try only shells that exist, to save several forks. |
| 229 | as_shell=$as_dir/$as_base |
| 230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 234 | break 2 |
| 235 | fi |
| 236 | fi |
| 237 | done;; |
| 238 | esac |
| 239 | as_found=false |
| 240 | done |
| 241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 243 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 244 | fi; } |
| 245 | IFS=$as_save_IFS |
| 246 | |
| 247 | |
| 248 | if test "x$CONFIG_SHELL" != x; then : |
| 249 | export CONFIG_SHELL |
| 250 | # We cannot yet assume a decent shell, so we have to provide a |
| 251 | # neutralization value for shells without unset; and this also |
| 252 | # works around shells that cannot unset nonexistent variables. |
| 253 | # Preserve -v and -x to the replacement shell. |
| 254 | BASH_ENV=/dev/null |
| 255 | ENV=/dev/null |
| 256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 | case $- in # (((( |
| 258 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 259 | *v* ) as_opts=-v ;; |
| 260 | *x* ) as_opts=-x ;; |
| 261 | * ) as_opts= ;; |
| 262 | esac |
| 263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 265 | # out after a failed `exec'. |
| 266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 | exit 255 |
| 268 | fi |
| 269 | |
| 270 | if test x$as_have_required = xno; then : |
| 271 | $as_echo "$0: This script requires a shell more modern than all" |
| 272 | $as_echo "$0: the shells that I found on your system." |
| 273 | if test x${ZSH_VERSION+set} = xset ; then |
| 274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 276 | else |
| 277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS |
| 278 | $0: about your system, including any error possibly output |
| 279 | $0: before this message. Then install a modern shell, or |
| 280 | $0: manually run the script under such a shell if you do |
| 281 | $0: have one." |
| 282 | fi |
| 283 | exit 1 |
| 284 | fi |
| 285 | fi |
| 286 | fi |
| 287 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 288 | export SHELL |
| 289 | # Unset more variables known to interfere with behavior of common tools. |
| 290 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 291 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 292 | |
| 293 | ## --------------------- ## |
| 294 | ## M4sh Shell Functions. ## |
| 295 | ## --------------------- ## |
| 296 | # as_fn_unset VAR |
| 297 | # --------------- |
| 298 | # Portably unset VAR. |
| 299 | as_fn_unset () |
| 300 | { |
| 301 | { eval $1=; unset $1;} |
| 302 | } |
| 303 | as_unset=as_fn_unset |
| 304 | |
| 305 | # as_fn_set_status STATUS |
| 306 | # ----------------------- |
| 307 | # Set $? to STATUS, without forking. |
| 308 | as_fn_set_status () |
| 309 | { |
| 310 | return $1 |
| 311 | } # as_fn_set_status |
| 312 | |
| 313 | # as_fn_exit STATUS |
| 314 | # ----------------- |
| 315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 316 | as_fn_exit () |
| 317 | { |
| 318 | set +e |
| 319 | as_fn_set_status $1 |
| 320 | exit $1 |
| 321 | } # as_fn_exit |
| 322 | |
| 323 | # as_fn_mkdir_p |
| 324 | # ------------- |
| 325 | # Create "$as_dir" as a directory, including parents if necessary. |
| 326 | as_fn_mkdir_p () |
| 327 | { |
| 328 | |
| 329 | case $as_dir in #( |
| 330 | -*) as_dir=./$as_dir;; |
| 331 | esac |
| 332 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 333 | as_dirs= |
| 334 | while :; do |
| 335 | case $as_dir in #( |
| 336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 337 | *) as_qdir=$as_dir;; |
| 338 | esac |
| 339 | as_dirs="'$as_qdir' $as_dirs" |
| 340 | as_dir=`$as_dirname -- "$as_dir" || |
| 341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 342 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 343 | X"$as_dir" : 'X\(//\)$' \| \ |
| 344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 345 | $as_echo X"$as_dir" | |
| 346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\/\)[^/].*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | /^X\(\/\/\)$/{ |
| 355 | s//\1/ |
| 356 | q |
| 357 | } |
| 358 | /^X\(\/\).*/{ |
| 359 | s//\1/ |
| 360 | q |
| 361 | } |
| 362 | s/.*/./; q'` |
| 363 | test -d "$as_dir" && break |
| 364 | done |
| 365 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 367 | |
| 368 | |
| 369 | } # as_fn_mkdir_p |
| 370 | |
| 371 | # as_fn_executable_p FILE |
| 372 | # ----------------------- |
| 373 | # Test if FILE is an executable regular file. |
| 374 | as_fn_executable_p () |
| 375 | { |
| 376 | test -f "$1" && test -x "$1" |
| 377 | } # as_fn_executable_p |
| 378 | # as_fn_append VAR VALUE |
| 379 | # ---------------------- |
| 380 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 381 | # advantage of any shell optimizations that allow amortized linear growth over |
| 382 | # repeated appends, instead of the typical quadratic growth present in naive |
| 383 | # implementations. |
| 384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 385 | eval 'as_fn_append () |
| 386 | { |
| 387 | eval $1+=\$2 |
| 388 | }' |
| 389 | else |
| 390 | as_fn_append () |
| 391 | { |
| 392 | eval $1=\$$1\$2 |
| 393 | } |
| 394 | fi # as_fn_append |
| 395 | |
| 396 | # as_fn_arith ARG... |
| 397 | # ------------------ |
| 398 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 | # must be portable across $(()) and expr. |
| 401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 402 | eval 'as_fn_arith () |
| 403 | { |
| 404 | as_val=$(( $* )) |
| 405 | }' |
| 406 | else |
| 407 | as_fn_arith () |
| 408 | { |
| 409 | as_val=`expr "$@" || test $? -eq 1` |
| 410 | } |
| 411 | fi # as_fn_arith |
| 412 | |
| 413 | |
| 414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 415 | # ---------------------------------------- |
| 416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 418 | # script with STATUS, using 1 if that was 0. |
| 419 | as_fn_error () |
| 420 | { |
| 421 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 422 | if test "$4"; then |
| 423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 425 | fi |
| 426 | $as_echo "$as_me: error: $2" >&2 |
| 427 | as_fn_exit $as_status |
| 428 | } # as_fn_error |
| 429 | |
| 430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 432 | as_expr=expr |
| 433 | else |
| 434 | as_expr=false |
| 435 | fi |
| 436 | |
| 437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 438 | as_basename=basename |
| 439 | else |
| 440 | as_basename=false |
| 441 | fi |
| 442 | |
| 443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 444 | as_dirname=dirname |
| 445 | else |
| 446 | as_dirname=false |
| 447 | fi |
| 448 | |
| 449 | as_me=`$as_basename -- "$0" || |
| 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 451 | X"$0" : 'X\(//\)$' \| \ |
| 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 453 | $as_echo X/"$0" | |
| 454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | /^X\/\(\/\/\)$/{ |
| 459 | s//\1/ |
| 460 | q |
| 461 | } |
| 462 | /^X\/\(\/\).*/{ |
| 463 | s//\1/ |
| 464 | q |
| 465 | } |
| 466 | s/.*/./; q'` |
| 467 | |
| 468 | # Avoid depending upon Character Ranges. |
| 469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 472 | as_cr_digits='0123456789' |
| 473 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 474 | |
| 475 | |
| 476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 481 | sed -n ' |
| 482 | p |
| 483 | /[$]LINENO/= |
| 484 | ' <$as_myself | |
| 485 | sed ' |
| 486 | s/[$]LINENO.*/&-/ |
| 487 | t lineno |
| 488 | b |
| 489 | :lineno |
| 490 | N |
| 491 | :loop |
| 492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 493 | t loop |
| 494 | s/-\n.*// |
| 495 | ' >$as_me.lineno && |
| 496 | chmod +x "$as_me.lineno" || |
| 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 498 | |
| 499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 500 | # already done that, so ensure we don't try to do so again and fall |
| 501 | # in an infinite loop. This has already happened in practice. |
| 502 | _as_can_reexec=no; export _as_can_reexec |
| 503 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 504 | # (the dirname of $[0] is not the place where we might find the |
| 505 | # original and so on. Autoconf is especially sensitive to this). |
| 506 | . "./$as_me.lineno" |
| 507 | # Exit status is that of the last command. |
| 508 | exit |
| 509 | } |
| 510 | |
| 511 | ECHO_C= ECHO_N= ECHO_T= |
| 512 | case `echo -n x` in #((((( |
| 513 | -n*) |
| 514 | case `echo 'xy\c'` in |
| 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 516 | xy) ECHO_C='\c';; |
| 517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 518 | ECHO_T=' ';; |
| 519 | esac;; |
| 520 | *) |
| 521 | ECHO_N='-n';; |
| 522 | esac |
| 523 | |
| 524 | rm -f conf$$ conf$$.exe conf$$.file |
| 525 | if test -d conf$$.dir; then |
| 526 | rm -f conf$$.dir/conf$$.file |
| 527 | else |
| 528 | rm -f conf$$.dir |
| 529 | mkdir conf$$.dir 2>/dev/null |
| 530 | fi |
| 531 | if (echo >conf$$.file) 2>/dev/null; then |
| 532 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s='ln -s' |
| 534 | # ... but there are two gotchas: |
| 535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 537 | # In both cases, we have to default to `cp -pR'. |
| 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 539 | as_ln_s='cp -pR' |
| 540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 541 | as_ln_s=ln |
| 542 | else |
| 543 | as_ln_s='cp -pR' |
| 544 | fi |
| 545 | else |
| 546 | as_ln_s='cp -pR' |
| 547 | fi |
| 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 549 | rmdir conf$$.dir 2>/dev/null |
| 550 | |
| 551 | if mkdir -p . 2>/dev/null; then |
| 552 | as_mkdir_p='mkdir -p "$as_dir"' |
| 553 | else |
| 554 | test -d ./-p && rmdir ./-p |
| 555 | as_mkdir_p=false |
| 556 | fi |
| 557 | |
| 558 | as_test_x='test -x' |
| 559 | as_executable_p=as_fn_executable_p |
| 560 | |
| 561 | # Sed expression to map a string onto a valid CPP name. |
| 562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 563 | |
| 564 | # Sed expression to map a string onto a valid variable name. |
| 565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 566 | |
| 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 568 | |
| 569 | |
| 570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 571 | exec 6>&1 |
| 572 | |
| 573 | # Name of the host. |
| 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 575 | # so uname gets run too. |
| 576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 577 | |
| 578 | # |
| 579 | # Initializations. |
| 580 | # |
| 581 | ac_default_prefix=/usr/local |
| 582 | ac_clean_files= |
| 583 | ac_config_libobj_dir=. |
| 584 | LIBOBJS= |
| 585 | cross_compiling=no |
| 586 | subdirs= |
| 587 | MFLAGS= |
| 588 | MAKEFLAGS= |
| 589 | |
| 590 | # Identity of this package. |
| 591 | PACKAGE_NAME='voltha' |
| 592 | PACKAGE_TARNAME='voltha' |
| 593 | PACKAGE_VERSION='1.0' |
| 594 | PACKAGE_STRING='voltha 1.0' |
| 595 | PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' |
| 596 | PACKAGE_URL='' |
| 597 | |
| 598 | ac_unique_file="voltha.c" |
| 599 | # Factoring default headers for most tests. |
| 600 | ac_includes_default="\ |
| 601 | #include <stdio.h> |
| 602 | #ifdef HAVE_SYS_TYPES_H |
| 603 | # include <sys/types.h> |
| 604 | #endif |
| 605 | #ifdef HAVE_SYS_STAT_H |
| 606 | # include <sys/stat.h> |
| 607 | #endif |
| 608 | #ifdef STDC_HEADERS |
| 609 | # include <stdlib.h> |
| 610 | # include <stddef.h> |
| 611 | #else |
| 612 | # ifdef HAVE_STDLIB_H |
| 613 | # include <stdlib.h> |
| 614 | # endif |
| 615 | #endif |
| 616 | #ifdef HAVE_STRING_H |
| 617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 618 | # include <memory.h> |
| 619 | # endif |
| 620 | # include <string.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_STRINGS_H |
| 623 | # include <strings.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_INTTYPES_H |
| 626 | # include <inttypes.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_STDINT_H |
| 629 | # include <stdint.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_UNISTD_H |
| 632 | # include <unistd.h> |
| 633 | #endif" |
| 634 | |
| 635 | ac_subst_vars='LTLIBOBJS |
| 636 | LIBOBJS |
| 637 | NETOPEER_MANAGER |
| 638 | libtool |
| 639 | CPP |
| 640 | OTOOL64 |
| 641 | OTOOL |
| 642 | LIPO |
| 643 | NMEDIT |
| 644 | DSYMUTIL |
| 645 | MANIFEST_TOOL |
| 646 | AWK |
| 647 | RANLIB |
| 648 | STRIP |
| 649 | ac_ct_AR |
| 650 | AR |
| 651 | DLLTOOL |
| 652 | OBJDUMP |
| 653 | LN_S |
| 654 | NM |
| 655 | ac_ct_DUMPBIN |
| 656 | DUMPBIN |
| 657 | LD |
| 658 | FGREP |
| 659 | EGREP |
| 660 | GREP |
| 661 | SED |
| 662 | host_os |
| 663 | host_vendor |
| 664 | host_cpu |
| 665 | host |
| 666 | build_os |
| 667 | build_vendor |
| 668 | build_cpu |
| 669 | build |
| 670 | LIBTOOL |
| 671 | INSTALL_DATA |
| 672 | INSTALL_SCRIPT |
| 673 | INSTALL_PROGRAM |
| 674 | OBJEXT |
| 675 | EXEEXT |
| 676 | ac_ct_CC |
| 677 | CPPFLAGS |
| 678 | LDFLAGS |
| 679 | CFLAGS |
| 680 | CC |
| 681 | XML2_CONFIG |
| 682 | NETOPEER_DIR |
| 683 | PROJECTNAME |
| 684 | target_alias |
| 685 | host_alias |
| 686 | build_alias |
| 687 | LIBS |
| 688 | ECHO_T |
| 689 | ECHO_N |
| 690 | ECHO_C |
| 691 | DEFS |
| 692 | mandir |
| 693 | localedir |
| 694 | libdir |
| 695 | psdir |
| 696 | pdfdir |
| 697 | dvidir |
| 698 | htmldir |
| 699 | infodir |
| 700 | docdir |
| 701 | oldincludedir |
| 702 | includedir |
| 703 | localstatedir |
| 704 | sharedstatedir |
| 705 | sysconfdir |
| 706 | datadir |
| 707 | datarootdir |
| 708 | libexecdir |
| 709 | sbindir |
| 710 | bindir |
| 711 | program_transform_name |
| 712 | prefix |
| 713 | exec_prefix |
| 714 | PACKAGE_URL |
| 715 | PACKAGE_BUGREPORT |
| 716 | PACKAGE_STRING |
| 717 | PACKAGE_VERSION |
| 718 | PACKAGE_TARNAME |
| 719 | PACKAGE_NAME |
| 720 | PATH_SEPARATOR |
| 721 | SHELL' |
| 722 | ac_subst_files='' |
| 723 | ac_user_opts=' |
| 724 | enable_option_checking |
| 725 | enable_debug |
| 726 | with_netopeer_confdir |
| 727 | with_libxml2 |
| 728 | enable_shared |
| 729 | enable_static |
| 730 | with_pic |
| 731 | enable_fast_install |
| 732 | with_gnu_ld |
| 733 | with_sysroot |
| 734 | enable_libtool_lock |
| 735 | ' |
| 736 | ac_precious_vars='build_alias |
| 737 | host_alias |
| 738 | target_alias |
| 739 | CC |
| 740 | CFLAGS |
| 741 | LDFLAGS |
| 742 | LIBS |
| 743 | CPPFLAGS |
| 744 | CPP' |
| 745 | |
| 746 | |
| 747 | # Initialize some variables set by options. |
| 748 | ac_init_help= |
| 749 | ac_init_version=false |
| 750 | ac_unrecognized_opts= |
| 751 | ac_unrecognized_sep= |
| 752 | # The variables have the same names as the options, with |
| 753 | # dashes changed to underlines. |
| 754 | cache_file=/dev/null |
| 755 | exec_prefix=NONE |
| 756 | no_create= |
| 757 | no_recursion= |
| 758 | prefix=NONE |
| 759 | program_prefix=NONE |
| 760 | program_suffix=NONE |
| 761 | program_transform_name=s,x,x, |
| 762 | silent= |
| 763 | site= |
| 764 | srcdir= |
| 765 | verbose= |
| 766 | x_includes=NONE |
| 767 | x_libraries=NONE |
| 768 | |
| 769 | # Installation directory options. |
| 770 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 771 | # and all the variables that are supposed to be based on exec_prefix |
| 772 | # by default will actually change. |
| 773 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 774 | # (The list follows the same order as the GNU Coding Standards.) |
| 775 | bindir='${exec_prefix}/bin' |
| 776 | sbindir='${exec_prefix}/sbin' |
| 777 | libexecdir='${exec_prefix}/libexec' |
| 778 | datarootdir='${prefix}/share' |
| 779 | datadir='${datarootdir}' |
| 780 | sysconfdir='${prefix}/etc' |
| 781 | sharedstatedir='${prefix}/com' |
| 782 | localstatedir='${prefix}/var' |
| 783 | includedir='${prefix}/include' |
| 784 | oldincludedir='/usr/include' |
| 785 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 786 | infodir='${datarootdir}/info' |
| 787 | htmldir='${docdir}' |
| 788 | dvidir='${docdir}' |
| 789 | pdfdir='${docdir}' |
| 790 | psdir='${docdir}' |
| 791 | libdir='${exec_prefix}/lib' |
| 792 | localedir='${datarootdir}/locale' |
| 793 | mandir='${datarootdir}/man' |
| 794 | |
| 795 | ac_prev= |
| 796 | ac_dashdash= |
| 797 | for ac_option |
| 798 | do |
| 799 | # If the previous option needs an argument, assign it. |
| 800 | if test -n "$ac_prev"; then |
| 801 | eval $ac_prev=\$ac_option |
| 802 | ac_prev= |
| 803 | continue |
| 804 | fi |
| 805 | |
| 806 | case $ac_option in |
| 807 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 808 | *=) ac_optarg= ;; |
| 809 | *) ac_optarg=yes ;; |
| 810 | esac |
| 811 | |
| 812 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 813 | |
| 814 | case $ac_dashdash$ac_option in |
| 815 | --) |
| 816 | ac_dashdash=yes ;; |
| 817 | |
| 818 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 819 | ac_prev=bindir ;; |
| 820 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 821 | bindir=$ac_optarg ;; |
| 822 | |
| 823 | -build | --build | --buil | --bui | --bu) |
| 824 | ac_prev=build_alias ;; |
| 825 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 826 | build_alias=$ac_optarg ;; |
| 827 | |
| 828 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 829 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 830 | ac_prev=cache_file ;; |
| 831 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 832 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 833 | cache_file=$ac_optarg ;; |
| 834 | |
| 835 | --config-cache | -C) |
| 836 | cache_file=config.cache ;; |
| 837 | |
| 838 | -datadir | --datadir | --datadi | --datad) |
| 839 | ac_prev=datadir ;; |
| 840 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 841 | datadir=$ac_optarg ;; |
| 842 | |
| 843 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 844 | | --dataroo | --dataro | --datar) |
| 845 | ac_prev=datarootdir ;; |
| 846 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 847 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 848 | datarootdir=$ac_optarg ;; |
| 849 | |
| 850 | -disable-* | --disable-*) |
| 851 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 852 | # Reject names that are not valid shell variable names. |
| 853 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 854 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 855 | ac_useropt_orig=$ac_useropt |
| 856 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 857 | case $ac_user_opts in |
| 858 | *" |
| 859 | "enable_$ac_useropt" |
| 860 | "*) ;; |
| 861 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 862 | ac_unrecognized_sep=', ';; |
| 863 | esac |
| 864 | eval enable_$ac_useropt=no ;; |
| 865 | |
| 866 | -docdir | --docdir | --docdi | --doc | --do) |
| 867 | ac_prev=docdir ;; |
| 868 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 869 | docdir=$ac_optarg ;; |
| 870 | |
| 871 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 872 | ac_prev=dvidir ;; |
| 873 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 874 | dvidir=$ac_optarg ;; |
| 875 | |
| 876 | -enable-* | --enable-*) |
| 877 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 878 | # Reject names that are not valid shell variable names. |
| 879 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 880 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 881 | ac_useropt_orig=$ac_useropt |
| 882 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 883 | case $ac_user_opts in |
| 884 | *" |
| 885 | "enable_$ac_useropt" |
| 886 | "*) ;; |
| 887 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 888 | ac_unrecognized_sep=', ';; |
| 889 | esac |
| 890 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 891 | |
| 892 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 893 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 894 | | --exec | --exe | --ex) |
| 895 | ac_prev=exec_prefix ;; |
| 896 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 897 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 898 | | --exec=* | --exe=* | --ex=*) |
| 899 | exec_prefix=$ac_optarg ;; |
| 900 | |
| 901 | -gas | --gas | --ga | --g) |
| 902 | # Obsolete; use --with-gas. |
| 903 | with_gas=yes ;; |
| 904 | |
| 905 | -help | --help | --hel | --he | -h) |
| 906 | ac_init_help=long ;; |
| 907 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 908 | ac_init_help=recursive ;; |
| 909 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 910 | ac_init_help=short ;; |
| 911 | |
| 912 | -host | --host | --hos | --ho) |
| 913 | ac_prev=host_alias ;; |
| 914 | -host=* | --host=* | --hos=* | --ho=*) |
| 915 | host_alias=$ac_optarg ;; |
| 916 | |
| 917 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 918 | ac_prev=htmldir ;; |
| 919 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 920 | | --ht=*) |
| 921 | htmldir=$ac_optarg ;; |
| 922 | |
| 923 | -includedir | --includedir | --includedi | --included | --include \ |
| 924 | | --includ | --inclu | --incl | --inc) |
| 925 | ac_prev=includedir ;; |
| 926 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 927 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 928 | includedir=$ac_optarg ;; |
| 929 | |
| 930 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 931 | ac_prev=infodir ;; |
| 932 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 933 | infodir=$ac_optarg ;; |
| 934 | |
| 935 | -libdir | --libdir | --libdi | --libd) |
| 936 | ac_prev=libdir ;; |
| 937 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 938 | libdir=$ac_optarg ;; |
| 939 | |
| 940 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 941 | | --libexe | --libex | --libe) |
| 942 | ac_prev=libexecdir ;; |
| 943 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 944 | | --libexe=* | --libex=* | --libe=*) |
| 945 | libexecdir=$ac_optarg ;; |
| 946 | |
| 947 | -localedir | --localedir | --localedi | --localed | --locale) |
| 948 | ac_prev=localedir ;; |
| 949 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 950 | localedir=$ac_optarg ;; |
| 951 | |
| 952 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 953 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 954 | ac_prev=localstatedir ;; |
| 955 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 956 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 957 | localstatedir=$ac_optarg ;; |
| 958 | |
| 959 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 960 | ac_prev=mandir ;; |
| 961 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 962 | mandir=$ac_optarg ;; |
| 963 | |
| 964 | -nfp | --nfp | --nf) |
| 965 | # Obsolete; use --without-fp. |
| 966 | with_fp=no ;; |
| 967 | |
| 968 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 969 | | --no-cr | --no-c | -n) |
| 970 | no_create=yes ;; |
| 971 | |
| 972 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 973 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 974 | no_recursion=yes ;; |
| 975 | |
| 976 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 977 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 978 | | --oldin | --oldi | --old | --ol | --o) |
| 979 | ac_prev=oldincludedir ;; |
| 980 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 981 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 982 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 983 | oldincludedir=$ac_optarg ;; |
| 984 | |
| 985 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 986 | ac_prev=prefix ;; |
| 987 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 988 | prefix=$ac_optarg ;; |
| 989 | |
| 990 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 991 | | --program-pre | --program-pr | --program-p) |
| 992 | ac_prev=program_prefix ;; |
| 993 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 994 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 995 | program_prefix=$ac_optarg ;; |
| 996 | |
| 997 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 998 | | --program-suf | --program-su | --program-s) |
| 999 | ac_prev=program_suffix ;; |
| 1000 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1001 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1002 | program_suffix=$ac_optarg ;; |
| 1003 | |
| 1004 | -program-transform-name | --program-transform-name \ |
| 1005 | | --program-transform-nam | --program-transform-na \ |
| 1006 | | --program-transform-n | --program-transform- \ |
| 1007 | | --program-transform | --program-transfor \ |
| 1008 | | --program-transfo | --program-transf \ |
| 1009 | | --program-trans | --program-tran \ |
| 1010 | | --progr-tra | --program-tr | --program-t) |
| 1011 | ac_prev=program_transform_name ;; |
| 1012 | -program-transform-name=* | --program-transform-name=* \ |
| 1013 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1014 | | --program-transform-n=* | --program-transform-=* \ |
| 1015 | | --program-transform=* | --program-transfor=* \ |
| 1016 | | --program-transfo=* | --program-transf=* \ |
| 1017 | | --program-trans=* | --program-tran=* \ |
| 1018 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1019 | program_transform_name=$ac_optarg ;; |
| 1020 | |
| 1021 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1022 | ac_prev=pdfdir ;; |
| 1023 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1024 | pdfdir=$ac_optarg ;; |
| 1025 | |
| 1026 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1027 | ac_prev=psdir ;; |
| 1028 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1029 | psdir=$ac_optarg ;; |
| 1030 | |
| 1031 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1032 | | -silent | --silent | --silen | --sile | --sil) |
| 1033 | silent=yes ;; |
| 1034 | |
| 1035 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1036 | ac_prev=sbindir ;; |
| 1037 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1038 | | --sbi=* | --sb=*) |
| 1039 | sbindir=$ac_optarg ;; |
| 1040 | |
| 1041 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1042 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1043 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1044 | | --sha | --sh) |
| 1045 | ac_prev=sharedstatedir ;; |
| 1046 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1047 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1048 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1049 | | --sha=* | --sh=*) |
| 1050 | sharedstatedir=$ac_optarg ;; |
| 1051 | |
| 1052 | -site | --site | --sit) |
| 1053 | ac_prev=site ;; |
| 1054 | -site=* | --site=* | --sit=*) |
| 1055 | site=$ac_optarg ;; |
| 1056 | |
| 1057 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1058 | ac_prev=srcdir ;; |
| 1059 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1060 | srcdir=$ac_optarg ;; |
| 1061 | |
| 1062 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1063 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1064 | ac_prev=sysconfdir ;; |
| 1065 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1066 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1067 | sysconfdir=$ac_optarg ;; |
| 1068 | |
| 1069 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1070 | ac_prev=target_alias ;; |
| 1071 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1072 | target_alias=$ac_optarg ;; |
| 1073 | |
| 1074 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1075 | verbose=yes ;; |
| 1076 | |
| 1077 | -version | --version | --versio | --versi | --vers | -V) |
| 1078 | ac_init_version=: ;; |
| 1079 | |
| 1080 | -with-* | --with-*) |
| 1081 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1082 | # Reject names that are not valid shell variable names. |
| 1083 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1084 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1085 | ac_useropt_orig=$ac_useropt |
| 1086 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1087 | case $ac_user_opts in |
| 1088 | *" |
| 1089 | "with_$ac_useropt" |
| 1090 | "*) ;; |
| 1091 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1092 | ac_unrecognized_sep=', ';; |
| 1093 | esac |
| 1094 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1095 | |
| 1096 | -without-* | --without-*) |
| 1097 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1098 | # Reject names that are not valid shell variable names. |
| 1099 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1100 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1101 | ac_useropt_orig=$ac_useropt |
| 1102 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1103 | case $ac_user_opts in |
| 1104 | *" |
| 1105 | "with_$ac_useropt" |
| 1106 | "*) ;; |
| 1107 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1108 | ac_unrecognized_sep=', ';; |
| 1109 | esac |
| 1110 | eval with_$ac_useropt=no ;; |
| 1111 | |
| 1112 | --x) |
| 1113 | # Obsolete; use --with-x. |
| 1114 | with_x=yes ;; |
| 1115 | |
| 1116 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1117 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1118 | ac_prev=x_includes ;; |
| 1119 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1120 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1121 | x_includes=$ac_optarg ;; |
| 1122 | |
| 1123 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1124 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1125 | ac_prev=x_libraries ;; |
| 1126 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1127 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1128 | x_libraries=$ac_optarg ;; |
| 1129 | |
| 1130 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1131 | Try \`$0 --help' for more information" |
| 1132 | ;; |
| 1133 | |
| 1134 | *=*) |
| 1135 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1136 | # Reject names that are not valid shell variable names. |
| 1137 | case $ac_envvar in #( |
| 1138 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1139 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1140 | esac |
| 1141 | eval $ac_envvar=\$ac_optarg |
| 1142 | export $ac_envvar ;; |
| 1143 | |
| 1144 | *) |
| 1145 | # FIXME: should be removed in autoconf 3.0. |
| 1146 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1147 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1148 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1149 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1150 | ;; |
| 1151 | |
| 1152 | esac |
| 1153 | done |
| 1154 | |
| 1155 | if test -n "$ac_prev"; then |
| 1156 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1157 | as_fn_error $? "missing argument to $ac_option" |
| 1158 | fi |
| 1159 | |
| 1160 | if test -n "$ac_unrecognized_opts"; then |
| 1161 | case $enable_option_checking in |
| 1162 | no) ;; |
| 1163 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1164 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1165 | esac |
| 1166 | fi |
| 1167 | |
| 1168 | # Check all directory arguments for consistency. |
| 1169 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1170 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1171 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1172 | libdir localedir mandir |
| 1173 | do |
| 1174 | eval ac_val=\$$ac_var |
| 1175 | # Remove trailing slashes. |
| 1176 | case $ac_val in |
| 1177 | */ ) |
| 1178 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1179 | eval $ac_var=\$ac_val;; |
| 1180 | esac |
| 1181 | # Be sure to have absolute directory names. |
| 1182 | case $ac_val in |
| 1183 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1184 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1185 | esac |
| 1186 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1187 | done |
| 1188 | |
| 1189 | # There might be people who depend on the old broken behavior: `$host' |
| 1190 | # used to hold the argument of --host etc. |
| 1191 | # FIXME: To remove some day. |
| 1192 | build=$build_alias |
| 1193 | host=$host_alias |
| 1194 | target=$target_alias |
| 1195 | |
| 1196 | # FIXME: To remove some day. |
| 1197 | if test "x$host_alias" != x; then |
| 1198 | if test "x$build_alias" = x; then |
| 1199 | cross_compiling=maybe |
| 1200 | elif test "x$build_alias" != "x$host_alias"; then |
| 1201 | cross_compiling=yes |
| 1202 | fi |
| 1203 | fi |
| 1204 | |
| 1205 | ac_tool_prefix= |
| 1206 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1207 | |
| 1208 | test "$silent" = yes && exec 6>/dev/null |
| 1209 | |
| 1210 | |
| 1211 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1212 | ac_ls_di=`ls -di .` && |
| 1213 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1214 | as_fn_error $? "working directory cannot be determined" |
| 1215 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1216 | as_fn_error $? "pwd does not report name of working directory" |
| 1217 | |
| 1218 | |
| 1219 | # Find the source files, if location was not specified. |
| 1220 | if test -z "$srcdir"; then |
| 1221 | ac_srcdir_defaulted=yes |
| 1222 | # Try the directory containing this script, then the parent directory. |
| 1223 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1224 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1225 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1226 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1227 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1228 | $as_echo X"$as_myself" | |
| 1229 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1230 | s//\1/ |
| 1231 | q |
| 1232 | } |
| 1233 | /^X\(\/\/\)[^/].*/{ |
| 1234 | s//\1/ |
| 1235 | q |
| 1236 | } |
| 1237 | /^X\(\/\/\)$/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\).*/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | s/.*/./; q'` |
| 1246 | srcdir=$ac_confdir |
| 1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1248 | srcdir=.. |
| 1249 | fi |
| 1250 | else |
| 1251 | ac_srcdir_defaulted=no |
| 1252 | fi |
| 1253 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1254 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1255 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1256 | fi |
| 1257 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1258 | ac_abs_confdir=`( |
| 1259 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1260 | pwd)` |
| 1261 | # When building in place, set srcdir=. |
| 1262 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1263 | srcdir=. |
| 1264 | fi |
| 1265 | # Remove unnecessary trailing slashes from srcdir. |
| 1266 | # Double slashes in file names in object file debugging info |
| 1267 | # mess up M-x gdb in Emacs. |
| 1268 | case $srcdir in |
| 1269 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1270 | esac |
| 1271 | for ac_var in $ac_precious_vars; do |
| 1272 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1273 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1274 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1275 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1276 | done |
| 1277 | |
| 1278 | # |
| 1279 | # Report the --help message. |
| 1280 | # |
| 1281 | if test "$ac_init_help" = "long"; then |
| 1282 | # Omit some internal or obsolete options to make the list less imposing. |
| 1283 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1284 | cat <<_ACEOF |
| 1285 | \`configure' configures voltha 1.0 to adapt to many kinds of systems. |
| 1286 | |
| 1287 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1288 | |
| 1289 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1290 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1291 | |
| 1292 | Defaults for the options are specified in brackets. |
| 1293 | |
| 1294 | Configuration: |
| 1295 | -h, --help display this help and exit |
| 1296 | --help=short display options specific to this package |
| 1297 | --help=recursive display the short help of all the included packages |
| 1298 | -V, --version display version information and exit |
| 1299 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1300 | --cache-file=FILE cache test results in FILE [disabled] |
| 1301 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1302 | -n, --no-create do not create output files |
| 1303 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1304 | |
| 1305 | Installation directories: |
| 1306 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1307 | [$ac_default_prefix] |
| 1308 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1309 | [PREFIX] |
| 1310 | |
| 1311 | By default, \`make install' will install all the files in |
| 1312 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1313 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1314 | for instance \`--prefix=\$HOME'. |
| 1315 | |
| 1316 | For better control, use the options below. |
| 1317 | |
| 1318 | Fine tuning of the installation directories: |
| 1319 | --bindir=DIR user executables [EPREFIX/bin] |
| 1320 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1321 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1322 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1323 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1324 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1325 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1326 | --includedir=DIR C header files [PREFIX/include] |
| 1327 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1328 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1329 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1330 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1331 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1332 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1333 | --docdir=DIR documentation root [DATAROOTDIR/doc/voltha] |
| 1334 | --htmldir=DIR html documentation [DOCDIR] |
| 1335 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1336 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1337 | --psdir=DIR ps documentation [DOCDIR] |
| 1338 | _ACEOF |
| 1339 | |
| 1340 | cat <<\_ACEOF |
| 1341 | |
| 1342 | System types: |
| 1343 | --build=BUILD configure for building on BUILD [guessed] |
| 1344 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1345 | _ACEOF |
| 1346 | fi |
| 1347 | |
| 1348 | if test -n "$ac_init_help"; then |
| 1349 | case $ac_init_help in |
| 1350 | short | recursive ) echo "Configuration of voltha 1.0:";; |
| 1351 | esac |
| 1352 | cat <<\_ACEOF |
| 1353 | |
| 1354 | Optional Features: |
| 1355 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1356 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1357 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1358 | --enable-debug Compile with debug options |
| 1359 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1360 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1361 | --enable-fast-install[=PKGS] |
| 1362 | optimize for fast installation [default=yes] |
| 1363 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1364 | |
| 1365 | Optional Packages: |
| 1366 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1367 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1368 | --with-netopeer-confdir=DIR |
| 1369 | Netopeer server configuration directory (by default |
| 1370 | ${sysconfdir}/netopeer/) |
| 1371 | --with-libxml2 specific libxml2 location |
| 1372 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1373 | both] |
| 1374 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1375 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1376 | (or the compiler's sysroot if not specified). |
| 1377 | |
| 1378 | Some influential environment variables: |
| 1379 | CC C compiler command |
| 1380 | CFLAGS C compiler flags |
| 1381 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1382 | nonstandard directory <lib dir> |
| 1383 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1384 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1385 | you have headers in a nonstandard directory <include dir> |
| 1386 | CPP C preprocessor |
| 1387 | |
| 1388 | Use these variables to override the choices made by `configure' or to help |
| 1389 | it to find libraries and programs with nonstandard names/locations. |
| 1390 | |
| 1391 | Report bugs to <BUG-REPORT-ADDRESS>. |
| 1392 | _ACEOF |
| 1393 | ac_status=$? |
| 1394 | fi |
| 1395 | |
| 1396 | if test "$ac_init_help" = "recursive"; then |
| 1397 | # If there are subdirs, report their specific --help. |
| 1398 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1399 | test -d "$ac_dir" || |
| 1400 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1401 | continue |
| 1402 | ac_builddir=. |
| 1403 | |
| 1404 | case "$ac_dir" in |
| 1405 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1406 | *) |
| 1407 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1408 | # A ".." for each directory in $ac_dir_suffix. |
| 1409 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1410 | case $ac_top_builddir_sub in |
| 1411 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1412 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1413 | esac ;; |
| 1414 | esac |
| 1415 | ac_abs_top_builddir=$ac_pwd |
| 1416 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1417 | # for backward compatibility: |
| 1418 | ac_top_builddir=$ac_top_build_prefix |
| 1419 | |
| 1420 | case $srcdir in |
| 1421 | .) # We are building in place. |
| 1422 | ac_srcdir=. |
| 1423 | ac_top_srcdir=$ac_top_builddir_sub |
| 1424 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1425 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1426 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1427 | ac_top_srcdir=$srcdir |
| 1428 | ac_abs_top_srcdir=$srcdir ;; |
| 1429 | *) # Relative name. |
| 1430 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1431 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1432 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1433 | esac |
| 1434 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1435 | |
| 1436 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1437 | # Check for guested configure. |
| 1438 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1439 | echo && |
| 1440 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1441 | elif test -f "$ac_srcdir/configure"; then |
| 1442 | echo && |
| 1443 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1444 | else |
| 1445 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1446 | fi || ac_status=$? |
| 1447 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1448 | done |
| 1449 | fi |
| 1450 | |
| 1451 | test -n "$ac_init_help" && exit $ac_status |
| 1452 | if $ac_init_version; then |
| 1453 | cat <<\_ACEOF |
| 1454 | voltha configure 1.0 |
| 1455 | generated by GNU Autoconf 2.69 |
| 1456 | |
| 1457 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1458 | This configure script is free software; the Free Software Foundation |
| 1459 | gives unlimited permission to copy, distribute and modify it. |
| 1460 | _ACEOF |
| 1461 | exit |
| 1462 | fi |
| 1463 | |
| 1464 | ## ------------------------ ## |
| 1465 | ## Autoconf initialization. ## |
| 1466 | ## ------------------------ ## |
| 1467 | |
| 1468 | # ac_fn_c_try_compile LINENO |
| 1469 | # -------------------------- |
| 1470 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1471 | ac_fn_c_try_compile () |
| 1472 | { |
| 1473 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1474 | rm -f conftest.$ac_objext |
| 1475 | if { { ac_try="$ac_compile" |
| 1476 | case "(($ac_try" in |
| 1477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1478 | *) ac_try_echo=$ac_try;; |
| 1479 | esac |
| 1480 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1481 | $as_echo "$ac_try_echo"; } >&5 |
| 1482 | (eval "$ac_compile") 2>conftest.err |
| 1483 | ac_status=$? |
| 1484 | if test -s conftest.err; then |
| 1485 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1486 | cat conftest.er1 >&5 |
| 1487 | mv -f conftest.er1 conftest.err |
| 1488 | fi |
| 1489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1490 | test $ac_status = 0; } && { |
| 1491 | test -z "$ac_c_werror_flag" || |
| 1492 | test ! -s conftest.err |
| 1493 | } && test -s conftest.$ac_objext; then : |
| 1494 | ac_retval=0 |
| 1495 | else |
| 1496 | $as_echo "$as_me: failed program was:" >&5 |
| 1497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1498 | |
| 1499 | ac_retval=1 |
| 1500 | fi |
| 1501 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1502 | as_fn_set_status $ac_retval |
| 1503 | |
| 1504 | } # ac_fn_c_try_compile |
| 1505 | |
| 1506 | # ac_fn_c_try_link LINENO |
| 1507 | # ----------------------- |
| 1508 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1509 | ac_fn_c_try_link () |
| 1510 | { |
| 1511 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1513 | if { { ac_try="$ac_link" |
| 1514 | case "(($ac_try" in |
| 1515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1516 | *) ac_try_echo=$ac_try;; |
| 1517 | esac |
| 1518 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1519 | $as_echo "$ac_try_echo"; } >&5 |
| 1520 | (eval "$ac_link") 2>conftest.err |
| 1521 | ac_status=$? |
| 1522 | if test -s conftest.err; then |
| 1523 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1524 | cat conftest.er1 >&5 |
| 1525 | mv -f conftest.er1 conftest.err |
| 1526 | fi |
| 1527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1528 | test $ac_status = 0; } && { |
| 1529 | test -z "$ac_c_werror_flag" || |
| 1530 | test ! -s conftest.err |
| 1531 | } && test -s conftest$ac_exeext && { |
| 1532 | test "$cross_compiling" = yes || |
| 1533 | test -x conftest$ac_exeext |
| 1534 | }; then : |
| 1535 | ac_retval=0 |
| 1536 | else |
| 1537 | $as_echo "$as_me: failed program was:" >&5 |
| 1538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1539 | |
| 1540 | ac_retval=1 |
| 1541 | fi |
| 1542 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1543 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1544 | # interfere with the next link command; also delete a directory that is |
| 1545 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1546 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1547 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1548 | as_fn_set_status $ac_retval |
| 1549 | |
| 1550 | } # ac_fn_c_try_link |
| 1551 | |
| 1552 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1553 | # ------------------------------------------------------- |
| 1554 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1555 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1556 | ac_fn_c_check_header_compile () |
| 1557 | { |
| 1558 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1560 | $as_echo_n "checking for $2... " >&6; } |
| 1561 | if eval \${$3+:} false; then : |
| 1562 | $as_echo_n "(cached) " >&6 |
| 1563 | else |
| 1564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1565 | /* end confdefs.h. */ |
| 1566 | $4 |
| 1567 | #include <$2> |
| 1568 | _ACEOF |
| 1569 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1570 | eval "$3=yes" |
| 1571 | else |
| 1572 | eval "$3=no" |
| 1573 | fi |
| 1574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1575 | fi |
| 1576 | eval ac_res=\$$3 |
| 1577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1578 | $as_echo "$ac_res" >&6; } |
| 1579 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1580 | |
| 1581 | } # ac_fn_c_check_header_compile |
| 1582 | |
| 1583 | # ac_fn_c_try_cpp LINENO |
| 1584 | # ---------------------- |
| 1585 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1586 | ac_fn_c_try_cpp () |
| 1587 | { |
| 1588 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1589 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1590 | case "(($ac_try" in |
| 1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1592 | *) ac_try_echo=$ac_try;; |
| 1593 | esac |
| 1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1595 | $as_echo "$ac_try_echo"; } >&5 |
| 1596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1597 | ac_status=$? |
| 1598 | if test -s conftest.err; then |
| 1599 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1600 | cat conftest.er1 >&5 |
| 1601 | mv -f conftest.er1 conftest.err |
| 1602 | fi |
| 1603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1604 | test $ac_status = 0; } > conftest.i && { |
| 1605 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1606 | test ! -s conftest.err |
| 1607 | }; then : |
| 1608 | ac_retval=0 |
| 1609 | else |
| 1610 | $as_echo "$as_me: failed program was:" >&5 |
| 1611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1612 | |
| 1613 | ac_retval=1 |
| 1614 | fi |
| 1615 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1616 | as_fn_set_status $ac_retval |
| 1617 | |
| 1618 | } # ac_fn_c_try_cpp |
| 1619 | |
| 1620 | # ac_fn_c_try_run LINENO |
| 1621 | # ---------------------- |
| 1622 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1623 | # that executables *can* be run. |
| 1624 | ac_fn_c_try_run () |
| 1625 | { |
| 1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1627 | if { { ac_try="$ac_link" |
| 1628 | case "(($ac_try" in |
| 1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1630 | *) ac_try_echo=$ac_try;; |
| 1631 | esac |
| 1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1633 | $as_echo "$ac_try_echo"; } >&5 |
| 1634 | (eval "$ac_link") 2>&5 |
| 1635 | ac_status=$? |
| 1636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1637 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1638 | { { case "(($ac_try" in |
| 1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1640 | *) ac_try_echo=$ac_try;; |
| 1641 | esac |
| 1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1643 | $as_echo "$ac_try_echo"; } >&5 |
| 1644 | (eval "$ac_try") 2>&5 |
| 1645 | ac_status=$? |
| 1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1647 | test $ac_status = 0; }; }; then : |
| 1648 | ac_retval=0 |
| 1649 | else |
| 1650 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1651 | $as_echo "$as_me: failed program was:" >&5 |
| 1652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1653 | |
| 1654 | ac_retval=$ac_status |
| 1655 | fi |
| 1656 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1657 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1658 | as_fn_set_status $ac_retval |
| 1659 | |
| 1660 | } # ac_fn_c_try_run |
| 1661 | |
| 1662 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1663 | # ---------------------------------- |
| 1664 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1665 | ac_fn_c_check_func () |
| 1666 | { |
| 1667 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1669 | $as_echo_n "checking for $2... " >&6; } |
| 1670 | if eval \${$3+:} false; then : |
| 1671 | $as_echo_n "(cached) " >&6 |
| 1672 | else |
| 1673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1674 | /* end confdefs.h. */ |
| 1675 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1676 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1677 | #define $2 innocuous_$2 |
| 1678 | |
| 1679 | /* System header to define __stub macros and hopefully few prototypes, |
| 1680 | which can conflict with char $2 (); below. |
| 1681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1682 | <limits.h> exists even on freestanding compilers. */ |
| 1683 | |
| 1684 | #ifdef __STDC__ |
| 1685 | # include <limits.h> |
| 1686 | #else |
| 1687 | # include <assert.h> |
| 1688 | #endif |
| 1689 | |
| 1690 | #undef $2 |
| 1691 | |
| 1692 | /* Override any GCC internal prototype to avoid an error. |
| 1693 | Use char because int might match the return type of a GCC |
| 1694 | builtin and then its argument prototype would still apply. */ |
| 1695 | #ifdef __cplusplus |
| 1696 | extern "C" |
| 1697 | #endif |
| 1698 | char $2 (); |
| 1699 | /* The GNU C library defines this for functions which it implements |
| 1700 | to always fail with ENOSYS. Some functions are actually named |
| 1701 | something starting with __ and the normal name is an alias. */ |
| 1702 | #if defined __stub_$2 || defined __stub___$2 |
| 1703 | choke me |
| 1704 | #endif |
| 1705 | |
| 1706 | int |
| 1707 | main () |
| 1708 | { |
| 1709 | return $2 (); |
| 1710 | ; |
| 1711 | return 0; |
| 1712 | } |
| 1713 | _ACEOF |
| 1714 | if ac_fn_c_try_link "$LINENO"; then : |
| 1715 | eval "$3=yes" |
| 1716 | else |
| 1717 | eval "$3=no" |
| 1718 | fi |
| 1719 | rm -f core conftest.err conftest.$ac_objext \ |
| 1720 | conftest$ac_exeext conftest.$ac_ext |
| 1721 | fi |
| 1722 | eval ac_res=\$$3 |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1724 | $as_echo "$ac_res" >&6; } |
| 1725 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1726 | |
| 1727 | } # ac_fn_c_check_func |
| 1728 | |
| 1729 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1730 | # ------------------------------------------------------- |
| 1731 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1732 | # the include files in INCLUDES and setting the cache variable VAR |
| 1733 | # accordingly. |
| 1734 | ac_fn_c_check_header_mongrel () |
| 1735 | { |
| 1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1737 | if eval \${$3+:} false; then : |
| 1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1739 | $as_echo_n "checking for $2... " >&6; } |
| 1740 | if eval \${$3+:} false; then : |
| 1741 | $as_echo_n "(cached) " >&6 |
| 1742 | fi |
| 1743 | eval ac_res=\$$3 |
| 1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1745 | $as_echo "$ac_res" >&6; } |
| 1746 | else |
| 1747 | # Is the header compilable? |
| 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1749 | $as_echo_n "checking $2 usability... " >&6; } |
| 1750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1751 | /* end confdefs.h. */ |
| 1752 | $4 |
| 1753 | #include <$2> |
| 1754 | _ACEOF |
| 1755 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1756 | ac_header_compiler=yes |
| 1757 | else |
| 1758 | ac_header_compiler=no |
| 1759 | fi |
| 1760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1762 | $as_echo "$ac_header_compiler" >&6; } |
| 1763 | |
| 1764 | # Is the header present? |
| 1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1766 | $as_echo_n "checking $2 presence... " >&6; } |
| 1767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1768 | /* end confdefs.h. */ |
| 1769 | #include <$2> |
| 1770 | _ACEOF |
| 1771 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1772 | ac_header_preproc=yes |
| 1773 | else |
| 1774 | ac_header_preproc=no |
| 1775 | fi |
| 1776 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1778 | $as_echo "$ac_header_preproc" >&6; } |
| 1779 | |
| 1780 | # So? What about this header? |
| 1781 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1782 | yes:no: ) |
| 1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1784 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1786 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1787 | ;; |
| 1788 | no:yes:* ) |
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1790 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1792 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1794 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1796 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1798 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1799 | ( $as_echo "## --------------------------------- ## |
| 1800 | ## Report this to BUG-REPORT-ADDRESS ## |
| 1801 | ## --------------------------------- ##" |
| 1802 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1803 | ;; |
| 1804 | esac |
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1806 | $as_echo_n "checking for $2... " >&6; } |
| 1807 | if eval \${$3+:} false; then : |
| 1808 | $as_echo_n "(cached) " >&6 |
| 1809 | else |
| 1810 | eval "$3=\$ac_header_compiler" |
| 1811 | fi |
| 1812 | eval ac_res=\$$3 |
| 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1814 | $as_echo "$ac_res" >&6; } |
| 1815 | fi |
| 1816 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1817 | |
| 1818 | } # ac_fn_c_check_header_mongrel |
| 1819 | cat >config.log <<_ACEOF |
| 1820 | This file contains any messages produced by compilers while |
| 1821 | running configure, to aid debugging if configure makes a mistake. |
| 1822 | |
| 1823 | It was created by voltha $as_me 1.0, which was |
| 1824 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1825 | |
| 1826 | $ $0 $@ |
| 1827 | |
| 1828 | _ACEOF |
| 1829 | exec 5>>config.log |
| 1830 | { |
| 1831 | cat <<_ASUNAME |
| 1832 | ## --------- ## |
| 1833 | ## Platform. ## |
| 1834 | ## --------- ## |
| 1835 | |
| 1836 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1837 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1838 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1839 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1840 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1841 | |
| 1842 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1843 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1844 | |
| 1845 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1846 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1847 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1848 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1849 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1850 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1851 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1852 | |
| 1853 | _ASUNAME |
| 1854 | |
| 1855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1856 | for as_dir in $PATH |
| 1857 | do |
| 1858 | IFS=$as_save_IFS |
| 1859 | test -z "$as_dir" && as_dir=. |
| 1860 | $as_echo "PATH: $as_dir" |
| 1861 | done |
| 1862 | IFS=$as_save_IFS |
| 1863 | |
| 1864 | } >&5 |
| 1865 | |
| 1866 | cat >&5 <<_ACEOF |
| 1867 | |
| 1868 | |
| 1869 | ## ----------- ## |
| 1870 | ## Core tests. ## |
| 1871 | ## ----------- ## |
| 1872 | |
| 1873 | _ACEOF |
| 1874 | |
| 1875 | |
| 1876 | # Keep a trace of the command line. |
| 1877 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1878 | # Strip out --silent because we don't want to record it for future runs. |
| 1879 | # Also quote any args containing shell meta-characters. |
| 1880 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1881 | ac_configure_args= |
| 1882 | ac_configure_args0= |
| 1883 | ac_configure_args1= |
| 1884 | ac_must_keep_next=false |
| 1885 | for ac_pass in 1 2 |
| 1886 | do |
| 1887 | for ac_arg |
| 1888 | do |
| 1889 | case $ac_arg in |
| 1890 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1891 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1892 | | -silent | --silent | --silen | --sile | --sil) |
| 1893 | continue ;; |
| 1894 | *\'*) |
| 1895 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1896 | esac |
| 1897 | case $ac_pass in |
| 1898 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1899 | 2) |
| 1900 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1901 | if test $ac_must_keep_next = true; then |
| 1902 | ac_must_keep_next=false # Got value, back to normal. |
| 1903 | else |
| 1904 | case $ac_arg in |
| 1905 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1906 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1907 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1908 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1909 | case "$ac_configure_args0 " in |
| 1910 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1911 | esac |
| 1912 | ;; |
| 1913 | -* ) ac_must_keep_next=true ;; |
| 1914 | esac |
| 1915 | fi |
| 1916 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1917 | ;; |
| 1918 | esac |
| 1919 | done |
| 1920 | done |
| 1921 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1922 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1923 | |
| 1924 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1925 | # config.log. We remove comments because anyway the quotes in there |
| 1926 | # would cause problems or look ugly. |
| 1927 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1928 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1929 | trap 'exit_status=$? |
| 1930 | # Save into config.log some information that might help in debugging. |
| 1931 | { |
| 1932 | echo |
| 1933 | |
| 1934 | $as_echo "## ---------------- ## |
| 1935 | ## Cache variables. ## |
| 1936 | ## ---------------- ##" |
| 1937 | echo |
| 1938 | # The following way of writing the cache mishandles newlines in values, |
| 1939 | ( |
| 1940 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1941 | eval ac_val=\$$ac_var |
| 1942 | case $ac_val in #( |
| 1943 | *${as_nl}*) |
| 1944 | case $ac_var in #( |
| 1945 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1946 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1947 | esac |
| 1948 | case $ac_var in #( |
| 1949 | _ | IFS | as_nl) ;; #( |
| 1950 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1951 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1952 | esac ;; |
| 1953 | esac |
| 1954 | done |
| 1955 | (set) 2>&1 | |
| 1956 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1957 | *${as_nl}ac_space=\ *) |
| 1958 | sed -n \ |
| 1959 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1960 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1961 | ;; #( |
| 1962 | *) |
| 1963 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1964 | ;; |
| 1965 | esac | |
| 1966 | sort |
| 1967 | ) |
| 1968 | echo |
| 1969 | |
| 1970 | $as_echo "## ----------------- ## |
| 1971 | ## Output variables. ## |
| 1972 | ## ----------------- ##" |
| 1973 | echo |
| 1974 | for ac_var in $ac_subst_vars |
| 1975 | do |
| 1976 | eval ac_val=\$$ac_var |
| 1977 | case $ac_val in |
| 1978 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1979 | esac |
| 1980 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1981 | done | sort |
| 1982 | echo |
| 1983 | |
| 1984 | if test -n "$ac_subst_files"; then |
| 1985 | $as_echo "## ------------------- ## |
| 1986 | ## File substitutions. ## |
| 1987 | ## ------------------- ##" |
| 1988 | echo |
| 1989 | for ac_var in $ac_subst_files |
| 1990 | do |
| 1991 | eval ac_val=\$$ac_var |
| 1992 | case $ac_val in |
| 1993 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1994 | esac |
| 1995 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1996 | done | sort |
| 1997 | echo |
| 1998 | fi |
| 1999 | |
| 2000 | if test -s confdefs.h; then |
| 2001 | $as_echo "## ----------- ## |
| 2002 | ## confdefs.h. ## |
| 2003 | ## ----------- ##" |
| 2004 | echo |
| 2005 | cat confdefs.h |
| 2006 | echo |
| 2007 | fi |
| 2008 | test "$ac_signal" != 0 && |
| 2009 | $as_echo "$as_me: caught signal $ac_signal" |
| 2010 | $as_echo "$as_me: exit $exit_status" |
| 2011 | } >&5 |
| 2012 | rm -f core *.core core.conftest.* && |
| 2013 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2014 | exit $exit_status |
| 2015 | ' 0 |
| 2016 | for ac_signal in 1 2 13 15; do |
| 2017 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2018 | done |
| 2019 | ac_signal=0 |
| 2020 | |
| 2021 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2022 | rm -f -r conftest* confdefs.h |
| 2023 | |
| 2024 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2025 | |
| 2026 | # Predefined preprocessor variables. |
| 2027 | |
| 2028 | cat >>confdefs.h <<_ACEOF |
| 2029 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2030 | _ACEOF |
| 2031 | |
| 2032 | cat >>confdefs.h <<_ACEOF |
| 2033 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2034 | _ACEOF |
| 2035 | |
| 2036 | cat >>confdefs.h <<_ACEOF |
| 2037 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2038 | _ACEOF |
| 2039 | |
| 2040 | cat >>confdefs.h <<_ACEOF |
| 2041 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2042 | _ACEOF |
| 2043 | |
| 2044 | cat >>confdefs.h <<_ACEOF |
| 2045 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2046 | _ACEOF |
| 2047 | |
| 2048 | cat >>confdefs.h <<_ACEOF |
| 2049 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2050 | _ACEOF |
| 2051 | |
| 2052 | |
| 2053 | # Let the site file select an alternate cache file if it wants to. |
| 2054 | # Prefer an explicitly selected file to automatically selected ones. |
| 2055 | ac_site_file1=NONE |
| 2056 | ac_site_file2=NONE |
| 2057 | if test -n "$CONFIG_SITE"; then |
| 2058 | # We do not want a PATH search for config.site. |
| 2059 | case $CONFIG_SITE in #(( |
| 2060 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2061 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2062 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2063 | esac |
| 2064 | elif test "x$prefix" != xNONE; then |
| 2065 | ac_site_file1=$prefix/share/config.site |
| 2066 | ac_site_file2=$prefix/etc/config.site |
| 2067 | else |
| 2068 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2069 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2070 | fi |
| 2071 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2072 | do |
| 2073 | test "x$ac_site_file" = xNONE && continue |
| 2074 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2076 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2077 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2078 | . "$ac_site_file" \ |
| 2079 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2080 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2081 | as_fn_error $? "failed to load site script $ac_site_file |
| 2082 | See \`config.log' for more details" "$LINENO" 5; } |
| 2083 | fi |
| 2084 | done |
| 2085 | |
| 2086 | if test -r "$cache_file"; then |
| 2087 | # Some versions of bash will fail to source /dev/null (special files |
| 2088 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2089 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2091 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2092 | case $cache_file in |
| 2093 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2094 | *) . "./$cache_file";; |
| 2095 | esac |
| 2096 | fi |
| 2097 | else |
| 2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2099 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2100 | >$cache_file |
| 2101 | fi |
| 2102 | |
| 2103 | # Check that the precious variables saved in the cache have kept the same |
| 2104 | # value. |
| 2105 | ac_cache_corrupted=false |
| 2106 | for ac_var in $ac_precious_vars; do |
| 2107 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2108 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2109 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2110 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2111 | case $ac_old_set,$ac_new_set in |
| 2112 | set,) |
| 2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2114 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2115 | ac_cache_corrupted=: ;; |
| 2116 | ,set) |
| 2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2118 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2119 | ac_cache_corrupted=: ;; |
| 2120 | ,);; |
| 2121 | *) |
| 2122 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2123 | # differences in whitespace do not lead to failure. |
| 2124 | ac_old_val_w=`echo x $ac_old_val` |
| 2125 | ac_new_val_w=`echo x $ac_new_val` |
| 2126 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2128 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2129 | ac_cache_corrupted=: |
| 2130 | else |
| 2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2132 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2133 | eval $ac_var=\$ac_old_val |
| 2134 | fi |
| 2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2136 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2138 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2139 | fi;; |
| 2140 | esac |
| 2141 | # Pass precious variables to config.status. |
| 2142 | if test "$ac_new_set" = set; then |
| 2143 | case $ac_new_val in |
| 2144 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2145 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2146 | esac |
| 2147 | case " $ac_configure_args " in |
| 2148 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2149 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2150 | esac |
| 2151 | fi |
| 2152 | done |
| 2153 | if $ac_cache_corrupted; then |
| 2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2155 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2157 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2158 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2159 | fi |
| 2160 | ## -------------------- ## |
| 2161 | ## Main body of script. ## |
| 2162 | ## -------------------- ## |
| 2163 | |
| 2164 | ac_ext=c |
| 2165 | ac_cpp='$CPP $CPPFLAGS' |
| 2166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2169 | |
| 2170 | |
| 2171 | |
| 2172 | |
| 2173 | PROJECTNAME=voltha |
| 2174 | |
| 2175 | |
| 2176 | # --enable-debug option |
| 2177 | # Check whether --enable-debug was given. |
| 2178 | if test "${enable_debug+set}" = set; then : |
| 2179 | enableval=$enable_debug; CFLAGS="$CFLAGS -g -DDEBUG" |
| 2180 | else |
| 2181 | CFLAGS="$CFLAGS -O3" |
| 2182 | |
| 2183 | fi |
| 2184 | |
| 2185 | |
| 2186 | |
| 2187 | # Check whether --with-netopeer-confdir was given. |
| 2188 | if test "${with_netopeer_confdir+set}" = set; then : |
| 2189 | withval=$with_netopeer_confdir; NETOPEER_DIR="$withval" |
| 2190 | else |
| 2191 | NETOPEER_DIR="${sysconfdir}/netopeer" |
| 2192 | |
| 2193 | fi |
| 2194 | |
| 2195 | |
| 2196 | |
| 2197 | # --with-libxml2=path-to-libxml2-git-repository |
| 2198 | |
| 2199 | # Check whether --with-libxml2 was given. |
| 2200 | if test "${with_libxml2+set}" = set; then : |
| 2201 | withval=$with_libxml2; |
| 2202 | # Extract the first word of "xml2-config", so it can be a program name with args. |
| 2203 | set dummy xml2-config; ac_word=$2 |
| 2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2205 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2206 | if ${ac_cv_prog_XML2_CONFIG+:} false; then : |
| 2207 | $as_echo_n "(cached) " >&6 |
| 2208 | else |
| 2209 | if test -n "$XML2_CONFIG"; then |
| 2210 | ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test. |
| 2211 | else |
| 2212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2213 | for as_dir in $withval |
| 2214 | do |
| 2215 | IFS=$as_save_IFS |
| 2216 | test -z "$as_dir" && as_dir=. |
| 2217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2219 | ac_cv_prog_XML2_CONFIG="yes" |
| 2220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2221 | break 2 |
| 2222 | fi |
| 2223 | done |
| 2224 | done |
| 2225 | IFS=$as_save_IFS |
| 2226 | |
| 2227 | test -z "$ac_cv_prog_XML2_CONFIG" && ac_cv_prog_XML2_CONFIG="no" |
| 2228 | fi |
| 2229 | fi |
| 2230 | XML2_CONFIG=$ac_cv_prog_XML2_CONFIG |
| 2231 | if test -n "$XML2_CONFIG"; then |
| 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5 |
| 2233 | $as_echo "$XML2_CONFIG" >&6; } |
| 2234 | else |
| 2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2236 | $as_echo "no" >&6; } |
| 2237 | fi |
| 2238 | |
| 2239 | |
| 2240 | if test "$XML2_CONFIG" = "no"; then |
| 2241 | as_fn_error $? "Missing development package of libxml2." "$LINENO" 5 |
| 2242 | fi |
| 2243 | CFLAGS="`$withval/xml2-config --cflags` $CFLAGS" |
| 2244 | LDFLAGS="`$withval/xml2-config --libs` $LDFLAGS" |
| 2245 | WITH_LIBXML2="$withval" |
| 2246 | |
| 2247 | |
| 2248 | fi |
| 2249 | |
| 2250 | |
| 2251 | # Checks for programs. |
| 2252 | ac_ext=c |
| 2253 | ac_cpp='$CPP $CPPFLAGS' |
| 2254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2257 | if test -n "$ac_tool_prefix"; then |
| 2258 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2259 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2261 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2262 | if ${ac_cv_prog_CC+:} false; then : |
| 2263 | $as_echo_n "(cached) " >&6 |
| 2264 | else |
| 2265 | if test -n "$CC"; then |
| 2266 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2267 | else |
| 2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2269 | for as_dir in $PATH |
| 2270 | do |
| 2271 | IFS=$as_save_IFS |
| 2272 | test -z "$as_dir" && as_dir=. |
| 2273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2275 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2277 | break 2 |
| 2278 | fi |
| 2279 | done |
| 2280 | done |
| 2281 | IFS=$as_save_IFS |
| 2282 | |
| 2283 | fi |
| 2284 | fi |
| 2285 | CC=$ac_cv_prog_CC |
| 2286 | if test -n "$CC"; then |
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2288 | $as_echo "$CC" >&6; } |
| 2289 | else |
| 2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2291 | $as_echo "no" >&6; } |
| 2292 | fi |
| 2293 | |
| 2294 | |
| 2295 | fi |
| 2296 | if test -z "$ac_cv_prog_CC"; then |
| 2297 | ac_ct_CC=$CC |
| 2298 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2299 | set dummy gcc; ac_word=$2 |
| 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2301 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2302 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2303 | $as_echo_n "(cached) " >&6 |
| 2304 | else |
| 2305 | if test -n "$ac_ct_CC"; then |
| 2306 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2307 | else |
| 2308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2309 | for as_dir in $PATH |
| 2310 | do |
| 2311 | IFS=$as_save_IFS |
| 2312 | test -z "$as_dir" && as_dir=. |
| 2313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2315 | ac_cv_prog_ac_ct_CC="gcc" |
| 2316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2317 | break 2 |
| 2318 | fi |
| 2319 | done |
| 2320 | done |
| 2321 | IFS=$as_save_IFS |
| 2322 | |
| 2323 | fi |
| 2324 | fi |
| 2325 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2326 | if test -n "$ac_ct_CC"; then |
| 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2328 | $as_echo "$ac_ct_CC" >&6; } |
| 2329 | else |
| 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2331 | $as_echo "no" >&6; } |
| 2332 | fi |
| 2333 | |
| 2334 | if test "x$ac_ct_CC" = x; then |
| 2335 | CC="" |
| 2336 | else |
| 2337 | case $cross_compiling:$ac_tool_warned in |
| 2338 | yes:) |
| 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2341 | ac_tool_warned=yes ;; |
| 2342 | esac |
| 2343 | CC=$ac_ct_CC |
| 2344 | fi |
| 2345 | else |
| 2346 | CC="$ac_cv_prog_CC" |
| 2347 | fi |
| 2348 | |
| 2349 | if test -z "$CC"; then |
| 2350 | if test -n "$ac_tool_prefix"; then |
| 2351 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2352 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2354 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2355 | if ${ac_cv_prog_CC+:} false; then : |
| 2356 | $as_echo_n "(cached) " >&6 |
| 2357 | else |
| 2358 | if test -n "$CC"; then |
| 2359 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2360 | else |
| 2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2362 | for as_dir in $PATH |
| 2363 | do |
| 2364 | IFS=$as_save_IFS |
| 2365 | test -z "$as_dir" && as_dir=. |
| 2366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2368 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2370 | break 2 |
| 2371 | fi |
| 2372 | done |
| 2373 | done |
| 2374 | IFS=$as_save_IFS |
| 2375 | |
| 2376 | fi |
| 2377 | fi |
| 2378 | CC=$ac_cv_prog_CC |
| 2379 | if test -n "$CC"; then |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2381 | $as_echo "$CC" >&6; } |
| 2382 | else |
| 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2384 | $as_echo "no" >&6; } |
| 2385 | fi |
| 2386 | |
| 2387 | |
| 2388 | fi |
| 2389 | fi |
| 2390 | if test -z "$CC"; then |
| 2391 | # Extract the first word of "cc", so it can be a program name with args. |
| 2392 | set dummy cc; ac_word=$2 |
| 2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2394 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2395 | if ${ac_cv_prog_CC+:} false; then : |
| 2396 | $as_echo_n "(cached) " >&6 |
| 2397 | else |
| 2398 | if test -n "$CC"; then |
| 2399 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2400 | else |
| 2401 | ac_prog_rejected=no |
| 2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2403 | for as_dir in $PATH |
| 2404 | do |
| 2405 | IFS=$as_save_IFS |
| 2406 | test -z "$as_dir" && as_dir=. |
| 2407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2409 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2410 | ac_prog_rejected=yes |
| 2411 | continue |
| 2412 | fi |
| 2413 | ac_cv_prog_CC="cc" |
| 2414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2415 | break 2 |
| 2416 | fi |
| 2417 | done |
| 2418 | done |
| 2419 | IFS=$as_save_IFS |
| 2420 | |
| 2421 | if test $ac_prog_rejected = yes; then |
| 2422 | # We found a bogon in the path, so make sure we never use it. |
| 2423 | set dummy $ac_cv_prog_CC |
| 2424 | shift |
| 2425 | if test $# != 0; then |
| 2426 | # We chose a different compiler from the bogus one. |
| 2427 | # However, it has the same basename, so the bogon will be chosen |
| 2428 | # first if we set CC to just the basename; use the full file name. |
| 2429 | shift |
| 2430 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2431 | fi |
| 2432 | fi |
| 2433 | fi |
| 2434 | fi |
| 2435 | CC=$ac_cv_prog_CC |
| 2436 | if test -n "$CC"; then |
| 2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2438 | $as_echo "$CC" >&6; } |
| 2439 | else |
| 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2441 | $as_echo "no" >&6; } |
| 2442 | fi |
| 2443 | |
| 2444 | |
| 2445 | fi |
| 2446 | if test -z "$CC"; then |
| 2447 | if test -n "$ac_tool_prefix"; then |
| 2448 | for ac_prog in cl.exe |
| 2449 | do |
| 2450 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2451 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2453 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2454 | if ${ac_cv_prog_CC+:} false; then : |
| 2455 | $as_echo_n "(cached) " >&6 |
| 2456 | else |
| 2457 | if test -n "$CC"; then |
| 2458 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2459 | else |
| 2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2461 | for as_dir in $PATH |
| 2462 | do |
| 2463 | IFS=$as_save_IFS |
| 2464 | test -z "$as_dir" && as_dir=. |
| 2465 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2467 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2469 | break 2 |
| 2470 | fi |
| 2471 | done |
| 2472 | done |
| 2473 | IFS=$as_save_IFS |
| 2474 | |
| 2475 | fi |
| 2476 | fi |
| 2477 | CC=$ac_cv_prog_CC |
| 2478 | if test -n "$CC"; then |
| 2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2480 | $as_echo "$CC" >&6; } |
| 2481 | else |
| 2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2483 | $as_echo "no" >&6; } |
| 2484 | fi |
| 2485 | |
| 2486 | |
| 2487 | test -n "$CC" && break |
| 2488 | done |
| 2489 | fi |
| 2490 | if test -z "$CC"; then |
| 2491 | ac_ct_CC=$CC |
| 2492 | for ac_prog in cl.exe |
| 2493 | do |
| 2494 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2495 | set dummy $ac_prog; ac_word=$2 |
| 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2497 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2498 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2499 | $as_echo_n "(cached) " >&6 |
| 2500 | else |
| 2501 | if test -n "$ac_ct_CC"; then |
| 2502 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2503 | else |
| 2504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2505 | for as_dir in $PATH |
| 2506 | do |
| 2507 | IFS=$as_save_IFS |
| 2508 | test -z "$as_dir" && as_dir=. |
| 2509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2511 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2513 | break 2 |
| 2514 | fi |
| 2515 | done |
| 2516 | done |
| 2517 | IFS=$as_save_IFS |
| 2518 | |
| 2519 | fi |
| 2520 | fi |
| 2521 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2522 | if test -n "$ac_ct_CC"; then |
| 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2524 | $as_echo "$ac_ct_CC" >&6; } |
| 2525 | else |
| 2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2527 | $as_echo "no" >&6; } |
| 2528 | fi |
| 2529 | |
| 2530 | |
| 2531 | test -n "$ac_ct_CC" && break |
| 2532 | done |
| 2533 | |
| 2534 | if test "x$ac_ct_CC" = x; then |
| 2535 | CC="" |
| 2536 | else |
| 2537 | case $cross_compiling:$ac_tool_warned in |
| 2538 | yes:) |
| 2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2540 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2541 | ac_tool_warned=yes ;; |
| 2542 | esac |
| 2543 | CC=$ac_ct_CC |
| 2544 | fi |
| 2545 | fi |
| 2546 | |
| 2547 | fi |
| 2548 | |
| 2549 | |
| 2550 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2552 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2553 | See \`config.log' for more details" "$LINENO" 5; } |
| 2554 | |
| 2555 | # Provide some information about the compiler. |
| 2556 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2557 | set X $ac_compile |
| 2558 | ac_compiler=$2 |
| 2559 | for ac_option in --version -v -V -qversion; do |
| 2560 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2561 | case "(($ac_try" in |
| 2562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2563 | *) ac_try_echo=$ac_try;; |
| 2564 | esac |
| 2565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2566 | $as_echo "$ac_try_echo"; } >&5 |
| 2567 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2568 | ac_status=$? |
| 2569 | if test -s conftest.err; then |
| 2570 | sed '10a\ |
| 2571 | ... rest of stderr output deleted ... |
| 2572 | 10q' conftest.err >conftest.er1 |
| 2573 | cat conftest.er1 >&5 |
| 2574 | fi |
| 2575 | rm -f conftest.er1 conftest.err |
| 2576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2577 | test $ac_status = 0; } |
| 2578 | done |
| 2579 | |
| 2580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2581 | /* end confdefs.h. */ |
| 2582 | |
| 2583 | int |
| 2584 | main () |
| 2585 | { |
| 2586 | |
| 2587 | ; |
| 2588 | return 0; |
| 2589 | } |
| 2590 | _ACEOF |
| 2591 | ac_clean_files_save=$ac_clean_files |
| 2592 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2593 | # Try to create an executable without -o first, disregard a.out. |
| 2594 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2595 | # of exeext. |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2597 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2598 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2599 | |
| 2600 | # The possible output files: |
| 2601 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2602 | |
| 2603 | ac_rmfiles= |
| 2604 | for ac_file in $ac_files |
| 2605 | do |
| 2606 | case $ac_file in |
| 2607 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2608 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2609 | esac |
| 2610 | done |
| 2611 | rm -f $ac_rmfiles |
| 2612 | |
| 2613 | if { { ac_try="$ac_link_default" |
| 2614 | case "(($ac_try" in |
| 2615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2616 | *) ac_try_echo=$ac_try;; |
| 2617 | esac |
| 2618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2619 | $as_echo "$ac_try_echo"; } >&5 |
| 2620 | (eval "$ac_link_default") 2>&5 |
| 2621 | ac_status=$? |
| 2622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2623 | test $ac_status = 0; }; then : |
| 2624 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2625 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2626 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2627 | # so that the user can short-circuit this test for compilers unknown to |
| 2628 | # Autoconf. |
| 2629 | for ac_file in $ac_files '' |
| 2630 | do |
| 2631 | test -f "$ac_file" || continue |
| 2632 | case $ac_file in |
| 2633 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2634 | ;; |
| 2635 | [ab].out ) |
| 2636 | # We found the default executable, but exeext='' is most |
| 2637 | # certainly right. |
| 2638 | break;; |
| 2639 | *.* ) |
| 2640 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2641 | then :; else |
| 2642 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2643 | fi |
| 2644 | # We set ac_cv_exeext here because the later test for it is not |
| 2645 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2646 | # argument, so we may need to know it at that point already. |
| 2647 | # Even if this section looks crufty: it has the advantage of |
| 2648 | # actually working. |
| 2649 | break;; |
| 2650 | * ) |
| 2651 | break;; |
| 2652 | esac |
| 2653 | done |
| 2654 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2655 | |
| 2656 | else |
| 2657 | ac_file='' |
| 2658 | fi |
| 2659 | if test -z "$ac_file"; then : |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2661 | $as_echo "no" >&6; } |
| 2662 | $as_echo "$as_me: failed program was:" >&5 |
| 2663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2664 | |
| 2665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2667 | as_fn_error 77 "C compiler cannot create executables |
| 2668 | See \`config.log' for more details" "$LINENO" 5; } |
| 2669 | else |
| 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2671 | $as_echo "yes" >&6; } |
| 2672 | fi |
| 2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2674 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2676 | $as_echo "$ac_file" >&6; } |
| 2677 | ac_exeext=$ac_cv_exeext |
| 2678 | |
| 2679 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2680 | ac_clean_files=$ac_clean_files_save |
| 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2682 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2683 | if { { ac_try="$ac_link" |
| 2684 | case "(($ac_try" in |
| 2685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2686 | *) ac_try_echo=$ac_try;; |
| 2687 | esac |
| 2688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2689 | $as_echo "$ac_try_echo"; } >&5 |
| 2690 | (eval "$ac_link") 2>&5 |
| 2691 | ac_status=$? |
| 2692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2693 | test $ac_status = 0; }; then : |
| 2694 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2695 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2696 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2697 | # `rm'. |
| 2698 | for ac_file in conftest.exe conftest conftest.*; do |
| 2699 | test -f "$ac_file" || continue |
| 2700 | case $ac_file in |
| 2701 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2702 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2703 | break;; |
| 2704 | * ) break;; |
| 2705 | esac |
| 2706 | done |
| 2707 | else |
| 2708 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2709 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2710 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2711 | See \`config.log' for more details" "$LINENO" 5; } |
| 2712 | fi |
| 2713 | rm -f conftest conftest$ac_cv_exeext |
| 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2715 | $as_echo "$ac_cv_exeext" >&6; } |
| 2716 | |
| 2717 | rm -f conftest.$ac_ext |
| 2718 | EXEEXT=$ac_cv_exeext |
| 2719 | ac_exeext=$EXEEXT |
| 2720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2721 | /* end confdefs.h. */ |
| 2722 | #include <stdio.h> |
| 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | FILE *f = fopen ("conftest.out", "w"); |
| 2727 | return ferror (f) || fclose (f) != 0; |
| 2728 | |
| 2729 | ; |
| 2730 | return 0; |
| 2731 | } |
| 2732 | _ACEOF |
| 2733 | ac_clean_files="$ac_clean_files conftest.out" |
| 2734 | # Check that the compiler produces executables we can run. If not, either |
| 2735 | # the compiler is broken, or we cross compile. |
| 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2737 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2738 | if test "$cross_compiling" != yes; then |
| 2739 | { { ac_try="$ac_link" |
| 2740 | case "(($ac_try" in |
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2742 | *) ac_try_echo=$ac_try;; |
| 2743 | esac |
| 2744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2745 | $as_echo "$ac_try_echo"; } >&5 |
| 2746 | (eval "$ac_link") 2>&5 |
| 2747 | ac_status=$? |
| 2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2749 | test $ac_status = 0; } |
| 2750 | if { ac_try='./conftest$ac_cv_exeext' |
| 2751 | { { case "(($ac_try" in |
| 2752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2753 | *) ac_try_echo=$ac_try;; |
| 2754 | esac |
| 2755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2756 | $as_echo "$ac_try_echo"; } >&5 |
| 2757 | (eval "$ac_try") 2>&5 |
| 2758 | ac_status=$? |
| 2759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2760 | test $ac_status = 0; }; }; then |
| 2761 | cross_compiling=no |
| 2762 | else |
| 2763 | if test "$cross_compiling" = maybe; then |
| 2764 | cross_compiling=yes |
| 2765 | else |
| 2766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2768 | as_fn_error $? "cannot run C compiled programs. |
| 2769 | If you meant to cross compile, use \`--host'. |
| 2770 | See \`config.log' for more details" "$LINENO" 5; } |
| 2771 | fi |
| 2772 | fi |
| 2773 | fi |
| 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2775 | $as_echo "$cross_compiling" >&6; } |
| 2776 | |
| 2777 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2778 | ac_clean_files=$ac_clean_files_save |
| 2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2780 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2781 | if ${ac_cv_objext+:} false; then : |
| 2782 | $as_echo_n "(cached) " >&6 |
| 2783 | else |
| 2784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2785 | /* end confdefs.h. */ |
| 2786 | |
| 2787 | int |
| 2788 | main () |
| 2789 | { |
| 2790 | |
| 2791 | ; |
| 2792 | return 0; |
| 2793 | } |
| 2794 | _ACEOF |
| 2795 | rm -f conftest.o conftest.obj |
| 2796 | if { { ac_try="$ac_compile" |
| 2797 | case "(($ac_try" in |
| 2798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2799 | *) ac_try_echo=$ac_try;; |
| 2800 | esac |
| 2801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2802 | $as_echo "$ac_try_echo"; } >&5 |
| 2803 | (eval "$ac_compile") 2>&5 |
| 2804 | ac_status=$? |
| 2805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2806 | test $ac_status = 0; }; then : |
| 2807 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2808 | test -f "$ac_file" || continue; |
| 2809 | case $ac_file in |
| 2810 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2811 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2812 | break;; |
| 2813 | esac |
| 2814 | done |
| 2815 | else |
| 2816 | $as_echo "$as_me: failed program was:" >&5 |
| 2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2818 | |
| 2819 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2820 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2821 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 2822 | See \`config.log' for more details" "$LINENO" 5; } |
| 2823 | fi |
| 2824 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2825 | fi |
| 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2827 | $as_echo "$ac_cv_objext" >&6; } |
| 2828 | OBJEXT=$ac_cv_objext |
| 2829 | ac_objext=$OBJEXT |
| 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2831 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2832 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 2833 | $as_echo_n "(cached) " >&6 |
| 2834 | else |
| 2835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2836 | /* end confdefs.h. */ |
| 2837 | |
| 2838 | int |
| 2839 | main () |
| 2840 | { |
| 2841 | #ifndef __GNUC__ |
| 2842 | choke me |
| 2843 | #endif |
| 2844 | |
| 2845 | ; |
| 2846 | return 0; |
| 2847 | } |
| 2848 | _ACEOF |
| 2849 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2850 | ac_compiler_gnu=yes |
| 2851 | else |
| 2852 | ac_compiler_gnu=no |
| 2853 | fi |
| 2854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2855 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2856 | |
| 2857 | fi |
| 2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2859 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2860 | if test $ac_compiler_gnu = yes; then |
| 2861 | GCC=yes |
| 2862 | else |
| 2863 | GCC= |
| 2864 | fi |
| 2865 | ac_test_CFLAGS=${CFLAGS+set} |
| 2866 | ac_save_CFLAGS=$CFLAGS |
| 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2868 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2869 | if ${ac_cv_prog_cc_g+:} false; then : |
| 2870 | $as_echo_n "(cached) " >&6 |
| 2871 | else |
| 2872 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2873 | ac_c_werror_flag=yes |
| 2874 | ac_cv_prog_cc_g=no |
| 2875 | CFLAGS="-g" |
| 2876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2877 | /* end confdefs.h. */ |
| 2878 | |
| 2879 | int |
| 2880 | main () |
| 2881 | { |
| 2882 | |
| 2883 | ; |
| 2884 | return 0; |
| 2885 | } |
| 2886 | _ACEOF |
| 2887 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2888 | ac_cv_prog_cc_g=yes |
| 2889 | else |
| 2890 | CFLAGS="" |
| 2891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2892 | /* end confdefs.h. */ |
| 2893 | |
| 2894 | int |
| 2895 | main () |
| 2896 | { |
| 2897 | |
| 2898 | ; |
| 2899 | return 0; |
| 2900 | } |
| 2901 | _ACEOF |
| 2902 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2903 | |
| 2904 | else |
| 2905 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2906 | CFLAGS="-g" |
| 2907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2908 | /* end confdefs.h. */ |
| 2909 | |
| 2910 | int |
| 2911 | main () |
| 2912 | { |
| 2913 | |
| 2914 | ; |
| 2915 | return 0; |
| 2916 | } |
| 2917 | _ACEOF |
| 2918 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2919 | ac_cv_prog_cc_g=yes |
| 2920 | fi |
| 2921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2922 | fi |
| 2923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2924 | fi |
| 2925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2926 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2927 | fi |
| 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2929 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 2930 | if test "$ac_test_CFLAGS" = set; then |
| 2931 | CFLAGS=$ac_save_CFLAGS |
| 2932 | elif test $ac_cv_prog_cc_g = yes; then |
| 2933 | if test "$GCC" = yes; then |
| 2934 | CFLAGS="-g -O2" |
| 2935 | else |
| 2936 | CFLAGS="-g" |
| 2937 | fi |
| 2938 | else |
| 2939 | if test "$GCC" = yes; then |
| 2940 | CFLAGS="-O2" |
| 2941 | else |
| 2942 | CFLAGS= |
| 2943 | fi |
| 2944 | fi |
| 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 2946 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2947 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 2948 | $as_echo_n "(cached) " >&6 |
| 2949 | else |
| 2950 | ac_cv_prog_cc_c89=no |
| 2951 | ac_save_CC=$CC |
| 2952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2953 | /* end confdefs.h. */ |
| 2954 | #include <stdarg.h> |
| 2955 | #include <stdio.h> |
| 2956 | struct stat; |
| 2957 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2958 | struct buf { int x; }; |
| 2959 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2960 | static char *e (p, i) |
| 2961 | char **p; |
| 2962 | int i; |
| 2963 | { |
| 2964 | return p[i]; |
| 2965 | } |
| 2966 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2967 | { |
| 2968 | char *s; |
| 2969 | va_list v; |
| 2970 | va_start (v,p); |
| 2971 | s = g (p, va_arg (v,int)); |
| 2972 | va_end (v); |
| 2973 | return s; |
| 2974 | } |
| 2975 | |
| 2976 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2977 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2978 | These don't provoke an error unfortunately, instead are silently treated |
| 2979 | as 'x'. The following induces an error, until -std is added to get |
| 2980 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2981 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2982 | that's true only with -std. */ |
| 2983 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2984 | |
| 2985 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2986 | inside strings and character constants. */ |
| 2987 | #define FOO(x) 'x' |
| 2988 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2989 | |
| 2990 | int test (int i, double x); |
| 2991 | struct s1 {int (*f) (int a);}; |
| 2992 | struct s2 {int (*f) (double a);}; |
| 2993 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2994 | int argc; |
| 2995 | char **argv; |
| 2996 | int |
| 2997 | main () |
| 2998 | { |
| 2999 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3000 | ; |
| 3001 | return 0; |
| 3002 | } |
| 3003 | _ACEOF |
| 3004 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3005 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3006 | do |
| 3007 | CC="$ac_save_CC $ac_arg" |
| 3008 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3009 | ac_cv_prog_cc_c89=$ac_arg |
| 3010 | fi |
| 3011 | rm -f core conftest.err conftest.$ac_objext |
| 3012 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3013 | done |
| 3014 | rm -f conftest.$ac_ext |
| 3015 | CC=$ac_save_CC |
| 3016 | |
| 3017 | fi |
| 3018 | # AC_CACHE_VAL |
| 3019 | case "x$ac_cv_prog_cc_c89" in |
| 3020 | x) |
| 3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3022 | $as_echo "none needed" >&6; } ;; |
| 3023 | xno) |
| 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3025 | $as_echo "unsupported" >&6; } ;; |
| 3026 | *) |
| 3027 | CC="$CC $ac_cv_prog_cc_c89" |
| 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3029 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3030 | esac |
| 3031 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3032 | |
| 3033 | fi |
| 3034 | |
| 3035 | ac_ext=c |
| 3036 | ac_cpp='$CPP $CPPFLAGS' |
| 3037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3040 | |
| 3041 | ac_aux_dir= |
| 3042 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3043 | if test -f "$ac_dir/install-sh"; then |
| 3044 | ac_aux_dir=$ac_dir |
| 3045 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3046 | break |
| 3047 | elif test -f "$ac_dir/install.sh"; then |
| 3048 | ac_aux_dir=$ac_dir |
| 3049 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3050 | break |
| 3051 | elif test -f "$ac_dir/shtool"; then |
| 3052 | ac_aux_dir=$ac_dir |
| 3053 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3054 | break |
| 3055 | fi |
| 3056 | done |
| 3057 | if test -z "$ac_aux_dir"; then |
| 3058 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3059 | fi |
| 3060 | |
| 3061 | # These three variables are undocumented and unsupported, |
| 3062 | # and are intended to be withdrawn in a future Autoconf release. |
| 3063 | # They can cause serious problems if a builder's source tree is in a directory |
| 3064 | # whose full name contains unusual characters. |
| 3065 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3066 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3067 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3068 | |
| 3069 | |
| 3070 | # Find a good install program. We prefer a C program (faster), |
| 3071 | # so one script is as good as another. But avoid the broken or |
| 3072 | # incompatible versions: |
| 3073 | # SysV /etc/install, /usr/sbin/install |
| 3074 | # SunOS /usr/etc/install |
| 3075 | # IRIX /sbin/install |
| 3076 | # AIX /bin/install |
| 3077 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3078 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3079 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3080 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3081 | # OS/2's system install, which has a completely different semantic |
| 3082 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3083 | # Reject install programs that cannot install multiple files. |
| 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3085 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3086 | if test -z "$INSTALL"; then |
| 3087 | if ${ac_cv_path_install+:} false; then : |
| 3088 | $as_echo_n "(cached) " >&6 |
| 3089 | else |
| 3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3091 | for as_dir in $PATH |
| 3092 | do |
| 3093 | IFS=$as_save_IFS |
| 3094 | test -z "$as_dir" && as_dir=. |
| 3095 | # Account for people who put trailing slashes in PATH elements. |
| 3096 | case $as_dir/ in #(( |
| 3097 | ./ | .// | /[cC]/* | \ |
| 3098 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3099 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3100 | /usr/ucb/* ) ;; |
| 3101 | *) |
| 3102 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3103 | # Don't use installbsd from OSF since it installs stuff as root |
| 3104 | # by default. |
| 3105 | for ac_prog in ginstall scoinst install; do |
| 3106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3107 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3108 | if test $ac_prog = install && |
| 3109 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3110 | # AIX install. It has an incompatible calling convention. |
| 3111 | : |
| 3112 | elif test $ac_prog = install && |
| 3113 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3114 | # program-specific install script used by HP pwplus--don't use. |
| 3115 | : |
| 3116 | else |
| 3117 | rm -rf conftest.one conftest.two conftest.dir |
| 3118 | echo one > conftest.one |
| 3119 | echo two > conftest.two |
| 3120 | mkdir conftest.dir |
| 3121 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3122 | test -s conftest.one && test -s conftest.two && |
| 3123 | test -s conftest.dir/conftest.one && |
| 3124 | test -s conftest.dir/conftest.two |
| 3125 | then |
| 3126 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3127 | break 3 |
| 3128 | fi |
| 3129 | fi |
| 3130 | fi |
| 3131 | done |
| 3132 | done |
| 3133 | ;; |
| 3134 | esac |
| 3135 | |
| 3136 | done |
| 3137 | IFS=$as_save_IFS |
| 3138 | |
| 3139 | rm -rf conftest.one conftest.two conftest.dir |
| 3140 | |
| 3141 | fi |
| 3142 | if test "${ac_cv_path_install+set}" = set; then |
| 3143 | INSTALL=$ac_cv_path_install |
| 3144 | else |
| 3145 | # As a last resort, use the slow shell script. Don't cache a |
| 3146 | # value for INSTALL within a source directory, because that will |
| 3147 | # break other packages using the cache if that directory is |
| 3148 | # removed, or if the value is a relative name. |
| 3149 | INSTALL=$ac_install_sh |
| 3150 | fi |
| 3151 | fi |
| 3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3153 | $as_echo "$INSTALL" >&6; } |
| 3154 | |
| 3155 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3156 | # It thinks the first close brace ends the variable substitution. |
| 3157 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3158 | |
| 3159 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3160 | |
| 3161 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3162 | |
| 3163 | |
| 3164 | # Use libtool |
| 3165 | case `pwd` in |
| 3166 | *\ * | *\ *) |
| 3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 3168 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 3169 | esac |
| 3170 | |
| 3171 | |
| 3172 | |
| 3173 | macro_version='2.4.2' |
| 3174 | macro_revision='1.3337' |
| 3175 | |
| 3176 | |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | ltmain="$ac_aux_dir/ltmain.sh" |
| 3189 | |
| 3190 | # Make sure we can run config.sub. |
| 3191 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3192 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3193 | |
| 3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3195 | $as_echo_n "checking build system type... " >&6; } |
| 3196 | if ${ac_cv_build+:} false; then : |
| 3197 | $as_echo_n "(cached) " >&6 |
| 3198 | else |
| 3199 | ac_build_alias=$build_alias |
| 3200 | test "x$ac_build_alias" = x && |
| 3201 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3202 | test "x$ac_build_alias" = x && |
| 3203 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3204 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3205 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3206 | |
| 3207 | fi |
| 3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3209 | $as_echo "$ac_cv_build" >&6; } |
| 3210 | case $ac_cv_build in |
| 3211 | *-*-*) ;; |
| 3212 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3213 | esac |
| 3214 | build=$ac_cv_build |
| 3215 | ac_save_IFS=$IFS; IFS='-' |
| 3216 | set x $ac_cv_build |
| 3217 | shift |
| 3218 | build_cpu=$1 |
| 3219 | build_vendor=$2 |
| 3220 | shift; shift |
| 3221 | # Remember, the first character of IFS is used to create $*, |
| 3222 | # except with old shells: |
| 3223 | build_os=$* |
| 3224 | IFS=$ac_save_IFS |
| 3225 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3226 | |
| 3227 | |
| 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3229 | $as_echo_n "checking host system type... " >&6; } |
| 3230 | if ${ac_cv_host+:} false; then : |
| 3231 | $as_echo_n "(cached) " >&6 |
| 3232 | else |
| 3233 | if test "x$host_alias" = x; then |
| 3234 | ac_cv_host=$ac_cv_build |
| 3235 | else |
| 3236 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3237 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3238 | fi |
| 3239 | |
| 3240 | fi |
| 3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3242 | $as_echo "$ac_cv_host" >&6; } |
| 3243 | case $ac_cv_host in |
| 3244 | *-*-*) ;; |
| 3245 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3246 | esac |
| 3247 | host=$ac_cv_host |
| 3248 | ac_save_IFS=$IFS; IFS='-' |
| 3249 | set x $ac_cv_host |
| 3250 | shift |
| 3251 | host_cpu=$1 |
| 3252 | host_vendor=$2 |
| 3253 | shift; shift |
| 3254 | # Remember, the first character of IFS is used to create $*, |
| 3255 | # except with old shells: |
| 3256 | host_os=$* |
| 3257 | IFS=$ac_save_IFS |
| 3258 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3259 | |
| 3260 | |
| 3261 | # Backslashify metacharacters that are still active within |
| 3262 | # double-quoted strings. |
| 3263 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 3264 | |
| 3265 | # Same as above, but do not quote variable references. |
| 3266 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 3267 | |
| 3268 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 3269 | # double_quote_subst'ed string. |
| 3270 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 3271 | |
| 3272 | # Sed substitution to delay expansion of an escaped single quote. |
| 3273 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 3274 | |
| 3275 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 3276 | no_glob_subst='s/\*/\\\*/g' |
| 3277 | |
| 3278 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 3279 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 3280 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 3281 | |
| 3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 3283 | $as_echo_n "checking how to print strings... " >&6; } |
| 3284 | # Test print first, because it will be a builtin if present. |
| 3285 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 3286 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 3287 | ECHO='print -r --' |
| 3288 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 3289 | ECHO='printf %s\n' |
| 3290 | else |
| 3291 | # Use this function as a fallback that always works. |
| 3292 | func_fallback_echo () |
| 3293 | { |
| 3294 | eval 'cat <<_LTECHO_EOF |
| 3295 | $1 |
| 3296 | _LTECHO_EOF' |
| 3297 | } |
| 3298 | ECHO='func_fallback_echo' |
| 3299 | fi |
| 3300 | |
| 3301 | # func_echo_all arg... |
| 3302 | # Invoke $ECHO with all args, space-separated. |
| 3303 | func_echo_all () |
| 3304 | { |
| 3305 | $ECHO "" |
| 3306 | } |
| 3307 | |
| 3308 | case "$ECHO" in |
| 3309 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 3310 | $as_echo "printf" >&6; } ;; |
| 3311 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 3312 | $as_echo "print -r" >&6; } ;; |
| 3313 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 3314 | $as_echo "cat" >&6; } ;; |
| 3315 | esac |
| 3316 | |
| 3317 | |
| 3318 | |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 3331 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 3332 | if ${ac_cv_path_SED+:} false; then : |
| 3333 | $as_echo_n "(cached) " >&6 |
| 3334 | else |
| 3335 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3336 | for ac_i in 1 2 3 4 5 6 7; do |
| 3337 | ac_script="$ac_script$as_nl$ac_script" |
| 3338 | done |
| 3339 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 3340 | { ac_script=; unset ac_script;} |
| 3341 | if test -z "$SED"; then |
| 3342 | ac_path_SED_found=false |
| 3343 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3345 | for as_dir in $PATH |
| 3346 | do |
| 3347 | IFS=$as_save_IFS |
| 3348 | test -z "$as_dir" && as_dir=. |
| 3349 | for ac_prog in sed gsed; do |
| 3350 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3351 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 3352 | as_fn_executable_p "$ac_path_SED" || continue |
| 3353 | # Check for GNU ac_path_SED and select it if it is found. |
| 3354 | # Check for GNU $ac_path_SED |
| 3355 | case `"$ac_path_SED" --version 2>&1` in |
| 3356 | *GNU*) |
| 3357 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3358 | *) |
| 3359 | ac_count=0 |
| 3360 | $as_echo_n 0123456789 >"conftest.in" |
| 3361 | while : |
| 3362 | do |
| 3363 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3364 | mv "conftest.tmp" "conftest.in" |
| 3365 | cp "conftest.in" "conftest.nl" |
| 3366 | $as_echo '' >> "conftest.nl" |
| 3367 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3368 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3369 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3370 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3371 | # Best one so far, save it but keep looking for a better one |
| 3372 | ac_cv_path_SED="$ac_path_SED" |
| 3373 | ac_path_SED_max=$ac_count |
| 3374 | fi |
| 3375 | # 10*(2^10) chars as input seems more than enough |
| 3376 | test $ac_count -gt 10 && break |
| 3377 | done |
| 3378 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3379 | esac |
| 3380 | |
| 3381 | $ac_path_SED_found && break 3 |
| 3382 | done |
| 3383 | done |
| 3384 | done |
| 3385 | IFS=$as_save_IFS |
| 3386 | if test -z "$ac_cv_path_SED"; then |
| 3387 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 3388 | fi |
| 3389 | else |
| 3390 | ac_cv_path_SED=$SED |
| 3391 | fi |
| 3392 | |
| 3393 | fi |
| 3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 3395 | $as_echo "$ac_cv_path_SED" >&6; } |
| 3396 | SED="$ac_cv_path_SED" |
| 3397 | rm -f conftest.sed |
| 3398 | |
| 3399 | test -z "$SED" && SED=sed |
| 3400 | Xsed="$SED -e 1s/^X//" |
| 3401 | |
| 3402 | |
| 3403 | |
| 3404 | |
| 3405 | |
| 3406 | |
| 3407 | |
| 3408 | |
| 3409 | |
| 3410 | |
| 3411 | |
| 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3413 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3414 | if ${ac_cv_path_GREP+:} false; then : |
| 3415 | $as_echo_n "(cached) " >&6 |
| 3416 | else |
| 3417 | if test -z "$GREP"; then |
| 3418 | ac_path_GREP_found=false |
| 3419 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3421 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3422 | do |
| 3423 | IFS=$as_save_IFS |
| 3424 | test -z "$as_dir" && as_dir=. |
| 3425 | for ac_prog in grep ggrep; do |
| 3426 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3427 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3428 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3429 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3430 | # Check for GNU $ac_path_GREP |
| 3431 | case `"$ac_path_GREP" --version 2>&1` in |
| 3432 | *GNU*) |
| 3433 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3434 | *) |
| 3435 | ac_count=0 |
| 3436 | $as_echo_n 0123456789 >"conftest.in" |
| 3437 | while : |
| 3438 | do |
| 3439 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3440 | mv "conftest.tmp" "conftest.in" |
| 3441 | cp "conftest.in" "conftest.nl" |
| 3442 | $as_echo 'GREP' >> "conftest.nl" |
| 3443 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3444 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3445 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3446 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3447 | # Best one so far, save it but keep looking for a better one |
| 3448 | ac_cv_path_GREP="$ac_path_GREP" |
| 3449 | ac_path_GREP_max=$ac_count |
| 3450 | fi |
| 3451 | # 10*(2^10) chars as input seems more than enough |
| 3452 | test $ac_count -gt 10 && break |
| 3453 | done |
| 3454 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3455 | esac |
| 3456 | |
| 3457 | $ac_path_GREP_found && break 3 |
| 3458 | done |
| 3459 | done |
| 3460 | done |
| 3461 | IFS=$as_save_IFS |
| 3462 | if test -z "$ac_cv_path_GREP"; then |
| 3463 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3464 | fi |
| 3465 | else |
| 3466 | ac_cv_path_GREP=$GREP |
| 3467 | fi |
| 3468 | |
| 3469 | fi |
| 3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3471 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3472 | GREP="$ac_cv_path_GREP" |
| 3473 | |
| 3474 | |
| 3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3476 | $as_echo_n "checking for egrep... " >&6; } |
| 3477 | if ${ac_cv_path_EGREP+:} false; then : |
| 3478 | $as_echo_n "(cached) " >&6 |
| 3479 | else |
| 3480 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3481 | then ac_cv_path_EGREP="$GREP -E" |
| 3482 | else |
| 3483 | if test -z "$EGREP"; then |
| 3484 | ac_path_EGREP_found=false |
| 3485 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3487 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3488 | do |
| 3489 | IFS=$as_save_IFS |
| 3490 | test -z "$as_dir" && as_dir=. |
| 3491 | for ac_prog in egrep; do |
| 3492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3493 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3494 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3495 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3496 | # Check for GNU $ac_path_EGREP |
| 3497 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3498 | *GNU*) |
| 3499 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3500 | *) |
| 3501 | ac_count=0 |
| 3502 | $as_echo_n 0123456789 >"conftest.in" |
| 3503 | while : |
| 3504 | do |
| 3505 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3506 | mv "conftest.tmp" "conftest.in" |
| 3507 | cp "conftest.in" "conftest.nl" |
| 3508 | $as_echo 'EGREP' >> "conftest.nl" |
| 3509 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3510 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3511 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3512 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3513 | # Best one so far, save it but keep looking for a better one |
| 3514 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3515 | ac_path_EGREP_max=$ac_count |
| 3516 | fi |
| 3517 | # 10*(2^10) chars as input seems more than enough |
| 3518 | test $ac_count -gt 10 && break |
| 3519 | done |
| 3520 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3521 | esac |
| 3522 | |
| 3523 | $ac_path_EGREP_found && break 3 |
| 3524 | done |
| 3525 | done |
| 3526 | done |
| 3527 | IFS=$as_save_IFS |
| 3528 | if test -z "$ac_cv_path_EGREP"; then |
| 3529 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3530 | fi |
| 3531 | else |
| 3532 | ac_cv_path_EGREP=$EGREP |
| 3533 | fi |
| 3534 | |
| 3535 | fi |
| 3536 | fi |
| 3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3538 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3539 | EGREP="$ac_cv_path_EGREP" |
| 3540 | |
| 3541 | |
| 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 3543 | $as_echo_n "checking for fgrep... " >&6; } |
| 3544 | if ${ac_cv_path_FGREP+:} false; then : |
| 3545 | $as_echo_n "(cached) " >&6 |
| 3546 | else |
| 3547 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 3548 | then ac_cv_path_FGREP="$GREP -F" |
| 3549 | else |
| 3550 | if test -z "$FGREP"; then |
| 3551 | ac_path_FGREP_found=false |
| 3552 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3554 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3555 | do |
| 3556 | IFS=$as_save_IFS |
| 3557 | test -z "$as_dir" && as_dir=. |
| 3558 | for ac_prog in fgrep; do |
| 3559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3561 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 3562 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 3563 | # Check for GNU $ac_path_FGREP |
| 3564 | case `"$ac_path_FGREP" --version 2>&1` in |
| 3565 | *GNU*) |
| 3566 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 3567 | *) |
| 3568 | ac_count=0 |
| 3569 | $as_echo_n 0123456789 >"conftest.in" |
| 3570 | while : |
| 3571 | do |
| 3572 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3573 | mv "conftest.tmp" "conftest.in" |
| 3574 | cp "conftest.in" "conftest.nl" |
| 3575 | $as_echo 'FGREP' >> "conftest.nl" |
| 3576 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3577 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3578 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3579 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 3580 | # Best one so far, save it but keep looking for a better one |
| 3581 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 3582 | ac_path_FGREP_max=$ac_count |
| 3583 | fi |
| 3584 | # 10*(2^10) chars as input seems more than enough |
| 3585 | test $ac_count -gt 10 && break |
| 3586 | done |
| 3587 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3588 | esac |
| 3589 | |
| 3590 | $ac_path_FGREP_found && break 3 |
| 3591 | done |
| 3592 | done |
| 3593 | done |
| 3594 | IFS=$as_save_IFS |
| 3595 | if test -z "$ac_cv_path_FGREP"; then |
| 3596 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3597 | fi |
| 3598 | else |
| 3599 | ac_cv_path_FGREP=$FGREP |
| 3600 | fi |
| 3601 | |
| 3602 | fi |
| 3603 | fi |
| 3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 3605 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 3606 | FGREP="$ac_cv_path_FGREP" |
| 3607 | |
| 3608 | |
| 3609 | test -z "$GREP" && GREP=grep |
| 3610 | |
| 3611 | |
| 3612 | |
| 3613 | |
| 3614 | |
| 3615 | |
| 3616 | |
| 3617 | |
| 3618 | |
| 3619 | |
| 3620 | |
| 3621 | |
| 3622 | |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | # Check whether --with-gnu-ld was given. |
| 3630 | if test "${with_gnu_ld+set}" = set; then : |
| 3631 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 3632 | else |
| 3633 | with_gnu_ld=no |
| 3634 | fi |
| 3635 | |
| 3636 | ac_prog=ld |
| 3637 | if test "$GCC" = yes; then |
| 3638 | # Check if gcc -print-prog-name=ld gives a path. |
| 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 3640 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 3641 | case $host in |
| 3642 | *-*-mingw*) |
| 3643 | # gcc leaves a trailing carriage return which upsets mingw |
| 3644 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3645 | *) |
| 3646 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3647 | esac |
| 3648 | case $ac_prog in |
| 3649 | # Accept absolute paths. |
| 3650 | [\\/]* | ?:[\\/]*) |
| 3651 | re_direlt='/[^/][^/]*/\.\./' |
| 3652 | # Canonicalize the pathname of ld |
| 3653 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 3654 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 3655 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 3656 | done |
| 3657 | test -z "$LD" && LD="$ac_prog" |
| 3658 | ;; |
| 3659 | "") |
| 3660 | # If it fails, then pretend we aren't using GCC. |
| 3661 | ac_prog=ld |
| 3662 | ;; |
| 3663 | *) |
| 3664 | # If it is relative, then search for the first ld in PATH. |
| 3665 | with_gnu_ld=unknown |
| 3666 | ;; |
| 3667 | esac |
| 3668 | elif test "$with_gnu_ld" = yes; then |
| 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 3670 | $as_echo_n "checking for GNU ld... " >&6; } |
| 3671 | else |
| 3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 3673 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 3674 | fi |
| 3675 | if ${lt_cv_path_LD+:} false; then : |
| 3676 | $as_echo_n "(cached) " >&6 |
| 3677 | else |
| 3678 | if test -z "$LD"; then |
| 3679 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3680 | for ac_dir in $PATH; do |
| 3681 | IFS="$lt_save_ifs" |
| 3682 | test -z "$ac_dir" && ac_dir=. |
| 3683 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3684 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3685 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3686 | # but apparently some variants of GNU ld only accept -v. |
| 3687 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 3688 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3689 | *GNU* | *'with BFD'*) |
| 3690 | test "$with_gnu_ld" != no && break |
| 3691 | ;; |
| 3692 | *) |
| 3693 | test "$with_gnu_ld" != yes && break |
| 3694 | ;; |
| 3695 | esac |
| 3696 | fi |
| 3697 | done |
| 3698 | IFS="$lt_save_ifs" |
| 3699 | else |
| 3700 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3701 | fi |
| 3702 | fi |
| 3703 | |
| 3704 | LD="$lt_cv_path_LD" |
| 3705 | if test -n "$LD"; then |
| 3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 3707 | $as_echo "$LD" >&6; } |
| 3708 | else |
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3710 | $as_echo "no" >&6; } |
| 3711 | fi |
| 3712 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 3714 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 3715 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 3716 | $as_echo_n "(cached) " >&6 |
| 3717 | else |
| 3718 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 3719 | case `$LD -v 2>&1 </dev/null` in |
| 3720 | *GNU* | *'with BFD'*) |
| 3721 | lt_cv_prog_gnu_ld=yes |
| 3722 | ;; |
| 3723 | *) |
| 3724 | lt_cv_prog_gnu_ld=no |
| 3725 | ;; |
| 3726 | esac |
| 3727 | fi |
| 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 3729 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 3730 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3731 | |
| 3732 | |
| 3733 | |
| 3734 | |
| 3735 | |
| 3736 | |
| 3737 | |
| 3738 | |
| 3739 | |
| 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 3741 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 3742 | if ${lt_cv_path_NM+:} false; then : |
| 3743 | $as_echo_n "(cached) " >&6 |
| 3744 | else |
| 3745 | if test -n "$NM"; then |
| 3746 | # Let the user override the test. |
| 3747 | lt_cv_path_NM="$NM" |
| 3748 | else |
| 3749 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 3750 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3751 | lt_nm_to_check="$lt_nm_to_check nm" |
| 3752 | fi |
| 3753 | for lt_tmp_nm in $lt_nm_to_check; do |
| 3754 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3755 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3756 | IFS="$lt_save_ifs" |
| 3757 | test -z "$ac_dir" && ac_dir=. |
| 3758 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3759 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3760 | # Check to see if the nm accepts a BSD-compat flag. |
| 3761 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3762 | # nm: unknown option "B" ignored |
| 3763 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3764 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3765 | */dev/null* | *'Invalid file or object type'*) |
| 3766 | lt_cv_path_NM="$tmp_nm -B" |
| 3767 | break |
| 3768 | ;; |
| 3769 | *) |
| 3770 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3771 | */dev/null*) |
| 3772 | lt_cv_path_NM="$tmp_nm -p" |
| 3773 | break |
| 3774 | ;; |
| 3775 | *) |
| 3776 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3777 | continue # so that we can try to find one that supports BSD flags |
| 3778 | ;; |
| 3779 | esac |
| 3780 | ;; |
| 3781 | esac |
| 3782 | fi |
| 3783 | done |
| 3784 | IFS="$lt_save_ifs" |
| 3785 | done |
| 3786 | : ${lt_cv_path_NM=no} |
| 3787 | fi |
| 3788 | fi |
| 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 3790 | $as_echo "$lt_cv_path_NM" >&6; } |
| 3791 | if test "$lt_cv_path_NM" != "no"; then |
| 3792 | NM="$lt_cv_path_NM" |
| 3793 | else |
| 3794 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 3795 | if test -n "$DUMPBIN"; then : |
| 3796 | # Let the user override the test. |
| 3797 | else |
| 3798 | if test -n "$ac_tool_prefix"; then |
| 3799 | for ac_prog in dumpbin "link -dump" |
| 3800 | do |
| 3801 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3802 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3804 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3805 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 3806 | $as_echo_n "(cached) " >&6 |
| 3807 | else |
| 3808 | if test -n "$DUMPBIN"; then |
| 3809 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 3810 | else |
| 3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3812 | for as_dir in $PATH |
| 3813 | do |
| 3814 | IFS=$as_save_IFS |
| 3815 | test -z "$as_dir" && as_dir=. |
| 3816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3818 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 3819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3820 | break 2 |
| 3821 | fi |
| 3822 | done |
| 3823 | done |
| 3824 | IFS=$as_save_IFS |
| 3825 | |
| 3826 | fi |
| 3827 | fi |
| 3828 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 3829 | if test -n "$DUMPBIN"; then |
| 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 3831 | $as_echo "$DUMPBIN" >&6; } |
| 3832 | else |
| 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3834 | $as_echo "no" >&6; } |
| 3835 | fi |
| 3836 | |
| 3837 | |
| 3838 | test -n "$DUMPBIN" && break |
| 3839 | done |
| 3840 | fi |
| 3841 | if test -z "$DUMPBIN"; then |
| 3842 | ac_ct_DUMPBIN=$DUMPBIN |
| 3843 | for ac_prog in dumpbin "link -dump" |
| 3844 | do |
| 3845 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3846 | set dummy $ac_prog; ac_word=$2 |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3848 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3849 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 3850 | $as_echo_n "(cached) " >&6 |
| 3851 | else |
| 3852 | if test -n "$ac_ct_DUMPBIN"; then |
| 3853 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 3854 | else |
| 3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3856 | for as_dir in $PATH |
| 3857 | do |
| 3858 | IFS=$as_save_IFS |
| 3859 | test -z "$as_dir" && as_dir=. |
| 3860 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3862 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 3863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3864 | break 2 |
| 3865 | fi |
| 3866 | done |
| 3867 | done |
| 3868 | IFS=$as_save_IFS |
| 3869 | |
| 3870 | fi |
| 3871 | fi |
| 3872 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 3873 | if test -n "$ac_ct_DUMPBIN"; then |
| 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 3875 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 3876 | else |
| 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3878 | $as_echo "no" >&6; } |
| 3879 | fi |
| 3880 | |
| 3881 | |
| 3882 | test -n "$ac_ct_DUMPBIN" && break |
| 3883 | done |
| 3884 | |
| 3885 | if test "x$ac_ct_DUMPBIN" = x; then |
| 3886 | DUMPBIN=":" |
| 3887 | else |
| 3888 | case $cross_compiling:$ac_tool_warned in |
| 3889 | yes:) |
| 3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3891 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3892 | ac_tool_warned=yes ;; |
| 3893 | esac |
| 3894 | DUMPBIN=$ac_ct_DUMPBIN |
| 3895 | fi |
| 3896 | fi |
| 3897 | |
| 3898 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 3899 | *COFF*) |
| 3900 | DUMPBIN="$DUMPBIN -symbols" |
| 3901 | ;; |
| 3902 | *) |
| 3903 | DUMPBIN=: |
| 3904 | ;; |
| 3905 | esac |
| 3906 | fi |
| 3907 | |
| 3908 | if test "$DUMPBIN" != ":"; then |
| 3909 | NM="$DUMPBIN" |
| 3910 | fi |
| 3911 | fi |
| 3912 | test -z "$NM" && NM=nm |
| 3913 | |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 3920 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 3921 | if ${lt_cv_nm_interface+:} false; then : |
| 3922 | $as_echo_n "(cached) " >&6 |
| 3923 | else |
| 3924 | lt_cv_nm_interface="BSD nm" |
| 3925 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 3926 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 3927 | (eval "$ac_compile" 2>conftest.err) |
| 3928 | cat conftest.err >&5 |
| 3929 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 3930 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 3931 | cat conftest.err >&5 |
| 3932 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 3933 | cat conftest.out >&5 |
| 3934 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 3935 | lt_cv_nm_interface="MS dumpbin" |
| 3936 | fi |
| 3937 | rm -f conftest* |
| 3938 | fi |
| 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 3940 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 3941 | |
| 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 3943 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 3944 | LN_S=$as_ln_s |
| 3945 | if test "$LN_S" = "ln -s"; then |
| 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3947 | $as_echo "yes" >&6; } |
| 3948 | else |
| 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 3950 | $as_echo "no, using $LN_S" >&6; } |
| 3951 | fi |
| 3952 | |
| 3953 | # find the maximum length of command line arguments |
| 3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 3955 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 3956 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 3957 | $as_echo_n "(cached) " >&6 |
| 3958 | else |
| 3959 | i=0 |
| 3960 | teststring="ABCD" |
| 3961 | |
| 3962 | case $build_os in |
| 3963 | msdosdjgpp*) |
| 3964 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 3965 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 3966 | # during glob expansion). Even if it were fixed, the result of this |
| 3967 | # check would be larger than it should be. |
| 3968 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 3969 | ;; |
| 3970 | |
| 3971 | gnu*) |
| 3972 | # Under GNU Hurd, this test is not required because there is |
| 3973 | # no limit to the length of command line arguments. |
| 3974 | # Libtool will interpret -1 as no limit whatsoever |
| 3975 | lt_cv_sys_max_cmd_len=-1; |
| 3976 | ;; |
| 3977 | |
| 3978 | cygwin* | mingw* | cegcc*) |
| 3979 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 3980 | # about 5 minutes as the teststring grows exponentially. |
| 3981 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 3982 | # you end up with a "frozen" computer, even though with patience |
| 3983 | # the test eventually succeeds (with a max line length of 256k). |
| 3984 | # Instead, let's just punt: use the minimum linelength reported by |
| 3985 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 3986 | lt_cv_sys_max_cmd_len=8192; |
| 3987 | ;; |
| 3988 | |
| 3989 | mint*) |
| 3990 | # On MiNT this can take a long time and run out of memory. |
| 3991 | lt_cv_sys_max_cmd_len=8192; |
| 3992 | ;; |
| 3993 | |
| 3994 | amigaos*) |
| 3995 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 3996 | # So we just punt and use a minimum line length of 8192. |
| 3997 | lt_cv_sys_max_cmd_len=8192; |
| 3998 | ;; |
| 3999 | |
| 4000 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4001 | # This has been around since 386BSD, at least. Likely further. |
| 4002 | if test -x /sbin/sysctl; then |
| 4003 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4004 | elif test -x /usr/sbin/sysctl; then |
| 4005 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4006 | else |
| 4007 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4008 | fi |
| 4009 | # And add a safety zone |
| 4010 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4011 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4012 | ;; |
| 4013 | |
| 4014 | interix*) |
| 4015 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4016 | lt_cv_sys_max_cmd_len=196608 |
| 4017 | ;; |
| 4018 | |
| 4019 | os2*) |
| 4020 | # The test takes a long time on OS/2. |
| 4021 | lt_cv_sys_max_cmd_len=8192 |
| 4022 | ;; |
| 4023 | |
| 4024 | osf*) |
| 4025 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4026 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4027 | # nice to cause kernel panics so lets avoid the loop below. |
| 4028 | # First set a reasonable default. |
| 4029 | lt_cv_sys_max_cmd_len=16384 |
| 4030 | # |
| 4031 | if test -x /sbin/sysconfig; then |
| 4032 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4033 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4034 | esac |
| 4035 | fi |
| 4036 | ;; |
| 4037 | sco3.2v5*) |
| 4038 | lt_cv_sys_max_cmd_len=102400 |
| 4039 | ;; |
| 4040 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4041 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4042 | if test -n "$kargmax"; then |
| 4043 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4044 | else |
| 4045 | lt_cv_sys_max_cmd_len=32768 |
| 4046 | fi |
| 4047 | ;; |
| 4048 | *) |
| 4049 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4050 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4051 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4052 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4053 | else |
| 4054 | # Make teststring a little bigger before we do anything with it. |
| 4055 | # a 1K string should be a reasonable start. |
| 4056 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4057 | teststring=$teststring$teststring |
| 4058 | done |
| 4059 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4060 | # If test is not a shell built-in, we'll probably end up computing a |
| 4061 | # maximum length that is only half of the actual maximum length, but |
| 4062 | # we can't tell. |
| 4063 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 4064 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 4065 | test $i != 17 # 1/2 MB should be enough |
| 4066 | do |
| 4067 | i=`expr $i + 1` |
| 4068 | teststring=$teststring$teststring |
| 4069 | done |
| 4070 | # Only check the string length outside the loop. |
| 4071 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4072 | teststring= |
| 4073 | # Add a significant safety factor because C++ compilers can tack on |
| 4074 | # massive amounts of additional arguments before passing them to the |
| 4075 | # linker. It appears as though 1/2 is a usable value. |
| 4076 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4077 | fi |
| 4078 | ;; |
| 4079 | esac |
| 4080 | |
| 4081 | fi |
| 4082 | |
| 4083 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4085 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 4086 | else |
| 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 4088 | $as_echo "none" >&6; } |
| 4089 | fi |
| 4090 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4091 | |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | |
| 4096 | |
| 4097 | : ${CP="cp -f"} |
| 4098 | : ${MV="mv -f"} |
| 4099 | : ${RM="rm -f"} |
| 4100 | |
| 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 4102 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 4103 | # Try some XSI features |
| 4104 | xsi_shell=no |
| 4105 | ( _lt_dummy="a/b/c" |
| 4106 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 4107 | = c,a/b,b/c, \ |
| 4108 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4109 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4110 | && xsi_shell=yes |
| 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 4112 | $as_echo "$xsi_shell" >&6; } |
| 4113 | |
| 4114 | |
| 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 4116 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 4117 | lt_shell_append=no |
| 4118 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4119 | >/dev/null 2>&1 \ |
| 4120 | && lt_shell_append=yes |
| 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 4122 | $as_echo "$lt_shell_append" >&6; } |
| 4123 | |
| 4124 | |
| 4125 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4126 | lt_unset=unset |
| 4127 | else |
| 4128 | lt_unset=false |
| 4129 | fi |
| 4130 | |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | |
| 4135 | # test EBCDIC or ASCII |
| 4136 | case `echo X|tr X '\101'` in |
| 4137 | A) # ASCII based system |
| 4138 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4139 | lt_SP2NL='tr \040 \012' |
| 4140 | lt_NL2SP='tr \015\012 \040\040' |
| 4141 | ;; |
| 4142 | *) # EBCDIC based system |
| 4143 | lt_SP2NL='tr \100 \n' |
| 4144 | lt_NL2SP='tr \r\n \100\100' |
| 4145 | ;; |
| 4146 | esac |
| 4147 | |
| 4148 | |
| 4149 | |
| 4150 | |
| 4151 | |
| 4152 | |
| 4153 | |
| 4154 | |
| 4155 | |
| 4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 4157 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 4158 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 4159 | $as_echo_n "(cached) " >&6 |
| 4160 | else |
| 4161 | case $host in |
| 4162 | *-*-mingw* ) |
| 4163 | case $build in |
| 4164 | *-*-mingw* ) # actually msys |
| 4165 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 4166 | ;; |
| 4167 | *-*-cygwin* ) |
| 4168 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 4169 | ;; |
| 4170 | * ) # otherwise, assume *nix |
| 4171 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 4172 | ;; |
| 4173 | esac |
| 4174 | ;; |
| 4175 | *-*-cygwin* ) |
| 4176 | case $build in |
| 4177 | *-*-mingw* ) # actually msys |
| 4178 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 4179 | ;; |
| 4180 | *-*-cygwin* ) |
| 4181 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4182 | ;; |
| 4183 | * ) # otherwise, assume *nix |
| 4184 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 4185 | ;; |
| 4186 | esac |
| 4187 | ;; |
| 4188 | * ) # unhandled hosts (and "normal" native builds) |
| 4189 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4190 | ;; |
| 4191 | esac |
| 4192 | |
| 4193 | fi |
| 4194 | |
| 4195 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 4197 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 4198 | |
| 4199 | |
| 4200 | |
| 4201 | |
| 4202 | |
| 4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 4204 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 4205 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 4206 | $as_echo_n "(cached) " >&6 |
| 4207 | else |
| 4208 | #assume ordinary cross tools, or native build. |
| 4209 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 4210 | case $host in |
| 4211 | *-*-mingw* ) |
| 4212 | case $build in |
| 4213 | *-*-mingw* ) # actually msys |
| 4214 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 4215 | ;; |
| 4216 | esac |
| 4217 | ;; |
| 4218 | esac |
| 4219 | |
| 4220 | fi |
| 4221 | |
| 4222 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 4224 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| 4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 4231 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 4232 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 4233 | $as_echo_n "(cached) " >&6 |
| 4234 | else |
| 4235 | lt_cv_ld_reload_flag='-r' |
| 4236 | fi |
| 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 4238 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 4239 | reload_flag=$lt_cv_ld_reload_flag |
| 4240 | case $reload_flag in |
| 4241 | "" | " "*) ;; |
| 4242 | *) reload_flag=" $reload_flag" ;; |
| 4243 | esac |
| 4244 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4245 | case $host_os in |
| 4246 | cygwin* | mingw* | pw32* | cegcc*) |
| 4247 | if test "$GCC" != yes; then |
| 4248 | reload_cmds=false |
| 4249 | fi |
| 4250 | ;; |
| 4251 | darwin*) |
| 4252 | if test "$GCC" = yes; then |
| 4253 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4254 | else |
| 4255 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4256 | fi |
| 4257 | ;; |
| 4258 | esac |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
| 4263 | |
| 4264 | |
| 4265 | |
| 4266 | |
| 4267 | |
| 4268 | if test -n "$ac_tool_prefix"; then |
| 4269 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4270 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4272 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4273 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 4274 | $as_echo_n "(cached) " >&6 |
| 4275 | else |
| 4276 | if test -n "$OBJDUMP"; then |
| 4277 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4278 | else |
| 4279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4280 | for as_dir in $PATH |
| 4281 | do |
| 4282 | IFS=$as_save_IFS |
| 4283 | test -z "$as_dir" && as_dir=. |
| 4284 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4286 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 4287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4288 | break 2 |
| 4289 | fi |
| 4290 | done |
| 4291 | done |
| 4292 | IFS=$as_save_IFS |
| 4293 | |
| 4294 | fi |
| 4295 | fi |
| 4296 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4297 | if test -n "$OBJDUMP"; then |
| 4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 4299 | $as_echo "$OBJDUMP" >&6; } |
| 4300 | else |
| 4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4302 | $as_echo "no" >&6; } |
| 4303 | fi |
| 4304 | |
| 4305 | |
| 4306 | fi |
| 4307 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4308 | ac_ct_OBJDUMP=$OBJDUMP |
| 4309 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4310 | set dummy objdump; ac_word=$2 |
| 4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4312 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4313 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 4314 | $as_echo_n "(cached) " >&6 |
| 4315 | else |
| 4316 | if test -n "$ac_ct_OBJDUMP"; then |
| 4317 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4318 | else |
| 4319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4320 | for as_dir in $PATH |
| 4321 | do |
| 4322 | IFS=$as_save_IFS |
| 4323 | test -z "$as_dir" && as_dir=. |
| 4324 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4326 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 4327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4328 | break 2 |
| 4329 | fi |
| 4330 | done |
| 4331 | done |
| 4332 | IFS=$as_save_IFS |
| 4333 | |
| 4334 | fi |
| 4335 | fi |
| 4336 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4337 | if test -n "$ac_ct_OBJDUMP"; then |
| 4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 4339 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4340 | else |
| 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4342 | $as_echo "no" >&6; } |
| 4343 | fi |
| 4344 | |
| 4345 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4346 | OBJDUMP="false" |
| 4347 | else |
| 4348 | case $cross_compiling:$ac_tool_warned in |
| 4349 | yes:) |
| 4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4351 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4352 | ac_tool_warned=yes ;; |
| 4353 | esac |
| 4354 | OBJDUMP=$ac_ct_OBJDUMP |
| 4355 | fi |
| 4356 | else |
| 4357 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4358 | fi |
| 4359 | |
| 4360 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4361 | |
| 4362 | |
| 4363 | |
| 4364 | |
| 4365 | |
| 4366 | |
| 4367 | |
| 4368 | |
| 4369 | |
| 4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 4371 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 4372 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 4373 | $as_echo_n "(cached) " >&6 |
| 4374 | else |
| 4375 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4376 | lt_cv_file_magic_test_file= |
| 4377 | lt_cv_deplibs_check_method='unknown' |
| 4378 | # Need to set the preceding variable on all platforms that support |
| 4379 | # interlibrary dependencies. |
| 4380 | # 'none' -- dependencies not supported. |
| 4381 | # `unknown' -- same as none, but documents that we really don't know. |
| 4382 | # 'pass_all' -- all dependencies passed with no checks. |
| 4383 | # 'test_compile' -- check by making test program. |
| 4384 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4385 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4386 | # If you have `file' or equivalent on your system and you're not sure |
| 4387 | # whether `pass_all' will *always* work, you probably want this one. |
| 4388 | |
| 4389 | case $host_os in |
| 4390 | aix[4-9]*) |
| 4391 | lt_cv_deplibs_check_method=pass_all |
| 4392 | ;; |
| 4393 | |
| 4394 | beos*) |
| 4395 | lt_cv_deplibs_check_method=pass_all |
| 4396 | ;; |
| 4397 | |
| 4398 | bsdi[45]*) |
| 4399 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4400 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4401 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4402 | ;; |
| 4403 | |
| 4404 | cygwin*) |
| 4405 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4406 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4407 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4408 | ;; |
| 4409 | |
| 4410 | mingw* | pw32*) |
| 4411 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4412 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4413 | # unless we find 'file', for example because we are cross-compiling. |
| 4414 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 4415 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 4416 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4417 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4418 | else |
| 4419 | # Keep this pattern in sync with the one in func_win32_libid. |
| 4420 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 4421 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4422 | fi |
| 4423 | ;; |
| 4424 | |
| 4425 | cegcc*) |
| 4426 | # use the weaker test based on 'objdump'. See mingw*. |
| 4427 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 4428 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4429 | ;; |
| 4430 | |
| 4431 | darwin* | rhapsody*) |
| 4432 | lt_cv_deplibs_check_method=pass_all |
| 4433 | ;; |
| 4434 | |
| 4435 | freebsd* | dragonfly*) |
| 4436 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 4437 | case $host_cpu in |
| 4438 | i*86 ) |
| 4439 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4440 | # Let's accept both of them until this is cleared up. |
| 4441 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 4442 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4443 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4444 | ;; |
| 4445 | esac |
| 4446 | else |
| 4447 | lt_cv_deplibs_check_method=pass_all |
| 4448 | fi |
| 4449 | ;; |
| 4450 | |
| 4451 | gnu*) |
| 4452 | lt_cv_deplibs_check_method=pass_all |
| 4453 | ;; |
| 4454 | |
| 4455 | haiku*) |
| 4456 | lt_cv_deplibs_check_method=pass_all |
| 4457 | ;; |
| 4458 | |
| 4459 | hpux10.20* | hpux11*) |
| 4460 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4461 | case $host_cpu in |
| 4462 | ia64*) |
| 4463 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4464 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4465 | ;; |
| 4466 | hppa*64*) |
| 4467 | 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]' |
| 4468 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4469 | ;; |
| 4470 | *) |
| 4471 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 4472 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4473 | ;; |
| 4474 | esac |
| 4475 | ;; |
| 4476 | |
| 4477 | interix[3-9]*) |
| 4478 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4479 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4480 | ;; |
| 4481 | |
| 4482 | irix5* | irix6* | nonstopux*) |
| 4483 | case $LD in |
| 4484 | *-32|*"-32 ") libmagic=32-bit;; |
| 4485 | *-n32|*"-n32 ") libmagic=N32;; |
| 4486 | *-64|*"-64 ") libmagic=64-bit;; |
| 4487 | *) libmagic=never-match;; |
| 4488 | esac |
| 4489 | lt_cv_deplibs_check_method=pass_all |
| 4490 | ;; |
| 4491 | |
| 4492 | # This must be glibc/ELF. |
| 4493 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 4494 | lt_cv_deplibs_check_method=pass_all |
| 4495 | ;; |
| 4496 | |
| 4497 | netbsd*) |
| 4498 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 4499 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4500 | else |
| 4501 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4502 | fi |
| 4503 | ;; |
| 4504 | |
| 4505 | newos6*) |
| 4506 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4507 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4508 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4509 | ;; |
| 4510 | |
| 4511 | *nto* | *qnx*) |
| 4512 | lt_cv_deplibs_check_method=pass_all |
| 4513 | ;; |
| 4514 | |
| 4515 | openbsd*) |
| 4516 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4517 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 4518 | else |
| 4519 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4520 | fi |
| 4521 | ;; |
| 4522 | |
| 4523 | osf3* | osf4* | osf5*) |
| 4524 | lt_cv_deplibs_check_method=pass_all |
| 4525 | ;; |
| 4526 | |
| 4527 | rdos*) |
| 4528 | lt_cv_deplibs_check_method=pass_all |
| 4529 | ;; |
| 4530 | |
| 4531 | solaris*) |
| 4532 | lt_cv_deplibs_check_method=pass_all |
| 4533 | ;; |
| 4534 | |
| 4535 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4536 | lt_cv_deplibs_check_method=pass_all |
| 4537 | ;; |
| 4538 | |
| 4539 | sysv4 | sysv4.3*) |
| 4540 | case $host_vendor in |
| 4541 | motorola) |
| 4542 | 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]' |
| 4543 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4544 | ;; |
| 4545 | ncr) |
| 4546 | lt_cv_deplibs_check_method=pass_all |
| 4547 | ;; |
| 4548 | sequent) |
| 4549 | lt_cv_file_magic_cmd='/bin/file' |
| 4550 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4551 | ;; |
| 4552 | sni) |
| 4553 | lt_cv_file_magic_cmd='/bin/file' |
| 4554 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4555 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4556 | ;; |
| 4557 | siemens) |
| 4558 | lt_cv_deplibs_check_method=pass_all |
| 4559 | ;; |
| 4560 | pc) |
| 4561 | lt_cv_deplibs_check_method=pass_all |
| 4562 | ;; |
| 4563 | esac |
| 4564 | ;; |
| 4565 | |
| 4566 | tpf*) |
| 4567 | lt_cv_deplibs_check_method=pass_all |
| 4568 | ;; |
| 4569 | esac |
| 4570 | |
| 4571 | fi |
| 4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 4573 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 4574 | |
| 4575 | file_magic_glob= |
| 4576 | want_nocaseglob=no |
| 4577 | if test "$build" = "$host"; then |
| 4578 | case $host_os in |
| 4579 | mingw* | pw32*) |
| 4580 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 4581 | want_nocaseglob=yes |
| 4582 | else |
| 4583 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 4584 | fi |
| 4585 | ;; |
| 4586 | esac |
| 4587 | fi |
| 4588 | |
| 4589 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4590 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4591 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | if test -n "$ac_tool_prefix"; then |
| 4615 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 4616 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4618 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4619 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 4620 | $as_echo_n "(cached) " >&6 |
| 4621 | else |
| 4622 | if test -n "$DLLTOOL"; then |
| 4623 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 4624 | else |
| 4625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4626 | for as_dir in $PATH |
| 4627 | do |
| 4628 | IFS=$as_save_IFS |
| 4629 | test -z "$as_dir" && as_dir=. |
| 4630 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4632 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 4633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4634 | break 2 |
| 4635 | fi |
| 4636 | done |
| 4637 | done |
| 4638 | IFS=$as_save_IFS |
| 4639 | |
| 4640 | fi |
| 4641 | fi |
| 4642 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 4643 | if test -n "$DLLTOOL"; then |
| 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 4645 | $as_echo "$DLLTOOL" >&6; } |
| 4646 | else |
| 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4648 | $as_echo "no" >&6; } |
| 4649 | fi |
| 4650 | |
| 4651 | |
| 4652 | fi |
| 4653 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 4654 | ac_ct_DLLTOOL=$DLLTOOL |
| 4655 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 4656 | set dummy dlltool; ac_word=$2 |
| 4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4658 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4659 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 4660 | $as_echo_n "(cached) " >&6 |
| 4661 | else |
| 4662 | if test -n "$ac_ct_DLLTOOL"; then |
| 4663 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 4664 | else |
| 4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4666 | for as_dir in $PATH |
| 4667 | do |
| 4668 | IFS=$as_save_IFS |
| 4669 | test -z "$as_dir" && as_dir=. |
| 4670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4672 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 4673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4674 | break 2 |
| 4675 | fi |
| 4676 | done |
| 4677 | done |
| 4678 | IFS=$as_save_IFS |
| 4679 | |
| 4680 | fi |
| 4681 | fi |
| 4682 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 4683 | if test -n "$ac_ct_DLLTOOL"; then |
| 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 4685 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 4686 | else |
| 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4688 | $as_echo "no" >&6; } |
| 4689 | fi |
| 4690 | |
| 4691 | if test "x$ac_ct_DLLTOOL" = x; then |
| 4692 | DLLTOOL="false" |
| 4693 | else |
| 4694 | case $cross_compiling:$ac_tool_warned in |
| 4695 | yes:) |
| 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4697 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4698 | ac_tool_warned=yes ;; |
| 4699 | esac |
| 4700 | DLLTOOL=$ac_ct_DLLTOOL |
| 4701 | fi |
| 4702 | else |
| 4703 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 4704 | fi |
| 4705 | |
| 4706 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | |
| 4711 | |
| 4712 | |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
| 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 4718 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 4719 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 4720 | $as_echo_n "(cached) " >&6 |
| 4721 | else |
| 4722 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 4723 | |
| 4724 | case $host_os in |
| 4725 | cygwin* | mingw* | pw32* | cegcc*) |
| 4726 | # two different shell functions defined in ltmain.sh |
| 4727 | # decide which to use based on capabilities of $DLLTOOL |
| 4728 | case `$DLLTOOL --help 2>&1` in |
| 4729 | *--identify-strict*) |
| 4730 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 4731 | ;; |
| 4732 | *) |
| 4733 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 4734 | ;; |
| 4735 | esac |
| 4736 | ;; |
| 4737 | *) |
| 4738 | # fallback: assume linklib IS sharedlib |
| 4739 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 4740 | ;; |
| 4741 | esac |
| 4742 | |
| 4743 | fi |
| 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 4745 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 4746 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 4747 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 4748 | |
| 4749 | |
| 4750 | |
| 4751 | |
| 4752 | |
| 4753 | |
| 4754 | |
| 4755 | |
| 4756 | if test -n "$ac_tool_prefix"; then |
| 4757 | for ac_prog in ar |
| 4758 | do |
| 4759 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4760 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4762 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4763 | if ${ac_cv_prog_AR+:} false; then : |
| 4764 | $as_echo_n "(cached) " >&6 |
| 4765 | else |
| 4766 | if test -n "$AR"; then |
| 4767 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4768 | else |
| 4769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4770 | for as_dir in $PATH |
| 4771 | do |
| 4772 | IFS=$as_save_IFS |
| 4773 | test -z "$as_dir" && as_dir=. |
| 4774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4776 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4778 | break 2 |
| 4779 | fi |
| 4780 | done |
| 4781 | done |
| 4782 | IFS=$as_save_IFS |
| 4783 | |
| 4784 | fi |
| 4785 | fi |
| 4786 | AR=$ac_cv_prog_AR |
| 4787 | if test -n "$AR"; then |
| 4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4789 | $as_echo "$AR" >&6; } |
| 4790 | else |
| 4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4792 | $as_echo "no" >&6; } |
| 4793 | fi |
| 4794 | |
| 4795 | |
| 4796 | test -n "$AR" && break |
| 4797 | done |
| 4798 | fi |
| 4799 | if test -z "$AR"; then |
| 4800 | ac_ct_AR=$AR |
| 4801 | for ac_prog in ar |
| 4802 | do |
| 4803 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4804 | set dummy $ac_prog; ac_word=$2 |
| 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4806 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4807 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4808 | $as_echo_n "(cached) " >&6 |
| 4809 | else |
| 4810 | if test -n "$ac_ct_AR"; then |
| 4811 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4812 | else |
| 4813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4814 | for as_dir in $PATH |
| 4815 | do |
| 4816 | IFS=$as_save_IFS |
| 4817 | test -z "$as_dir" && as_dir=. |
| 4818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4820 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4822 | break 2 |
| 4823 | fi |
| 4824 | done |
| 4825 | done |
| 4826 | IFS=$as_save_IFS |
| 4827 | |
| 4828 | fi |
| 4829 | fi |
| 4830 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4831 | if test -n "$ac_ct_AR"; then |
| 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4833 | $as_echo "$ac_ct_AR" >&6; } |
| 4834 | else |
| 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4836 | $as_echo "no" >&6; } |
| 4837 | fi |
| 4838 | |
| 4839 | |
| 4840 | test -n "$ac_ct_AR" && break |
| 4841 | done |
| 4842 | |
| 4843 | if test "x$ac_ct_AR" = x; then |
| 4844 | AR="false" |
| 4845 | else |
| 4846 | case $cross_compiling:$ac_tool_warned in |
| 4847 | yes:) |
| 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4850 | ac_tool_warned=yes ;; |
| 4851 | esac |
| 4852 | AR=$ac_ct_AR |
| 4853 | fi |
| 4854 | fi |
| 4855 | |
| 4856 | : ${AR=ar} |
| 4857 | : ${AR_FLAGS=cru} |
| 4858 | |
| 4859 | |
| 4860 | |
| 4861 | |
| 4862 | |
| 4863 | |
| 4864 | |
| 4865 | |
| 4866 | |
| 4867 | |
| 4868 | |
| 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 4870 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 4871 | if ${lt_cv_ar_at_file+:} false; then : |
| 4872 | $as_echo_n "(cached) " >&6 |
| 4873 | else |
| 4874 | lt_cv_ar_at_file=no |
| 4875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4876 | /* end confdefs.h. */ |
| 4877 | |
| 4878 | int |
| 4879 | main () |
| 4880 | { |
| 4881 | |
| 4882 | ; |
| 4883 | return 0; |
| 4884 | } |
| 4885 | _ACEOF |
| 4886 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4887 | echo conftest.$ac_objext > conftest.lst |
| 4888 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 4889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 4890 | (eval $lt_ar_try) 2>&5 |
| 4891 | ac_status=$? |
| 4892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4893 | test $ac_status = 0; } |
| 4894 | if test "$ac_status" -eq 0; then |
| 4895 | # Ensure the archiver fails upon bogus file names. |
| 4896 | rm -f conftest.$ac_objext libconftest.a |
| 4897 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 4898 | (eval $lt_ar_try) 2>&5 |
| 4899 | ac_status=$? |
| 4900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4901 | test $ac_status = 0; } |
| 4902 | if test "$ac_status" -ne 0; then |
| 4903 | lt_cv_ar_at_file=@ |
| 4904 | fi |
| 4905 | fi |
| 4906 | rm -f conftest.* libconftest.a |
| 4907 | |
| 4908 | fi |
| 4909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4910 | |
| 4911 | fi |
| 4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 4913 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 4914 | |
| 4915 | if test "x$lt_cv_ar_at_file" = xno; then |
| 4916 | archiver_list_spec= |
| 4917 | else |
| 4918 | archiver_list_spec=$lt_cv_ar_at_file |
| 4919 | fi |
| 4920 | |
| 4921 | |
| 4922 | |
| 4923 | |
| 4924 | |
| 4925 | |
| 4926 | |
| 4927 | if test -n "$ac_tool_prefix"; then |
| 4928 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4929 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4931 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4932 | if ${ac_cv_prog_STRIP+:} false; then : |
| 4933 | $as_echo_n "(cached) " >&6 |
| 4934 | else |
| 4935 | if test -n "$STRIP"; then |
| 4936 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4937 | else |
| 4938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4939 | for as_dir in $PATH |
| 4940 | do |
| 4941 | IFS=$as_save_IFS |
| 4942 | test -z "$as_dir" && as_dir=. |
| 4943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4945 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4947 | break 2 |
| 4948 | fi |
| 4949 | done |
| 4950 | done |
| 4951 | IFS=$as_save_IFS |
| 4952 | |
| 4953 | fi |
| 4954 | fi |
| 4955 | STRIP=$ac_cv_prog_STRIP |
| 4956 | if test -n "$STRIP"; then |
| 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 4958 | $as_echo "$STRIP" >&6; } |
| 4959 | else |
| 4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4961 | $as_echo "no" >&6; } |
| 4962 | fi |
| 4963 | |
| 4964 | |
| 4965 | fi |
| 4966 | if test -z "$ac_cv_prog_STRIP"; then |
| 4967 | ac_ct_STRIP=$STRIP |
| 4968 | # Extract the first word of "strip", so it can be a program name with args. |
| 4969 | set dummy strip; ac_word=$2 |
| 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4971 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4972 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 4973 | $as_echo_n "(cached) " >&6 |
| 4974 | else |
| 4975 | if test -n "$ac_ct_STRIP"; then |
| 4976 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4977 | else |
| 4978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4979 | for as_dir in $PATH |
| 4980 | do |
| 4981 | IFS=$as_save_IFS |
| 4982 | test -z "$as_dir" && as_dir=. |
| 4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4985 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4987 | break 2 |
| 4988 | fi |
| 4989 | done |
| 4990 | done |
| 4991 | IFS=$as_save_IFS |
| 4992 | |
| 4993 | fi |
| 4994 | fi |
| 4995 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4996 | if test -n "$ac_ct_STRIP"; then |
| 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 4998 | $as_echo "$ac_ct_STRIP" >&6; } |
| 4999 | else |
| 5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5001 | $as_echo "no" >&6; } |
| 5002 | fi |
| 5003 | |
| 5004 | if test "x$ac_ct_STRIP" = x; then |
| 5005 | STRIP=":" |
| 5006 | else |
| 5007 | case $cross_compiling:$ac_tool_warned in |
| 5008 | yes:) |
| 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5011 | ac_tool_warned=yes ;; |
| 5012 | esac |
| 5013 | STRIP=$ac_ct_STRIP |
| 5014 | fi |
| 5015 | else |
| 5016 | STRIP="$ac_cv_prog_STRIP" |
| 5017 | fi |
| 5018 | |
| 5019 | test -z "$STRIP" && STRIP=: |
| 5020 | |
| 5021 | |
| 5022 | |
| 5023 | |
| 5024 | |
| 5025 | |
| 5026 | if test -n "$ac_tool_prefix"; then |
| 5027 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5028 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5030 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5031 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 5032 | $as_echo_n "(cached) " >&6 |
| 5033 | else |
| 5034 | if test -n "$RANLIB"; then |
| 5035 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5036 | else |
| 5037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5038 | for as_dir in $PATH |
| 5039 | do |
| 5040 | IFS=$as_save_IFS |
| 5041 | test -z "$as_dir" && as_dir=. |
| 5042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5044 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5046 | break 2 |
| 5047 | fi |
| 5048 | done |
| 5049 | done |
| 5050 | IFS=$as_save_IFS |
| 5051 | |
| 5052 | fi |
| 5053 | fi |
| 5054 | RANLIB=$ac_cv_prog_RANLIB |
| 5055 | if test -n "$RANLIB"; then |
| 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5057 | $as_echo "$RANLIB" >&6; } |
| 5058 | else |
| 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5060 | $as_echo "no" >&6; } |
| 5061 | fi |
| 5062 | |
| 5063 | |
| 5064 | fi |
| 5065 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5066 | ac_ct_RANLIB=$RANLIB |
| 5067 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5068 | set dummy ranlib; ac_word=$2 |
| 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5071 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 5072 | $as_echo_n "(cached) " >&6 |
| 5073 | else |
| 5074 | if test -n "$ac_ct_RANLIB"; then |
| 5075 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5076 | else |
| 5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5078 | for as_dir in $PATH |
| 5079 | do |
| 5080 | IFS=$as_save_IFS |
| 5081 | test -z "$as_dir" && as_dir=. |
| 5082 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5084 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5086 | break 2 |
| 5087 | fi |
| 5088 | done |
| 5089 | done |
| 5090 | IFS=$as_save_IFS |
| 5091 | |
| 5092 | fi |
| 5093 | fi |
| 5094 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5095 | if test -n "$ac_ct_RANLIB"; then |
| 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5097 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5098 | else |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5100 | $as_echo "no" >&6; } |
| 5101 | fi |
| 5102 | |
| 5103 | if test "x$ac_ct_RANLIB" = x; then |
| 5104 | RANLIB=":" |
| 5105 | else |
| 5106 | case $cross_compiling:$ac_tool_warned in |
| 5107 | yes:) |
| 5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5109 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5110 | ac_tool_warned=yes ;; |
| 5111 | esac |
| 5112 | RANLIB=$ac_ct_RANLIB |
| 5113 | fi |
| 5114 | else |
| 5115 | RANLIB="$ac_cv_prog_RANLIB" |
| 5116 | fi |
| 5117 | |
| 5118 | test -z "$RANLIB" && RANLIB=: |
| 5119 | |
| 5120 | |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
| 5125 | # Determine commands to create old-style static archives. |
| 5126 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5127 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5128 | old_postuninstall_cmds= |
| 5129 | |
| 5130 | if test -n "$RANLIB"; then |
| 5131 | case $host_os in |
| 5132 | openbsd*) |
| 5133 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 5134 | ;; |
| 5135 | *) |
| 5136 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 5137 | ;; |
| 5138 | esac |
| 5139 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 5140 | fi |
| 5141 | |
| 5142 | case $host_os in |
| 5143 | darwin*) |
| 5144 | lock_old_archive_extraction=yes ;; |
| 5145 | *) |
| 5146 | lock_old_archive_extraction=no ;; |
| 5147 | esac |
| 5148 | |
| 5149 | |
| 5150 | |
| 5151 | |
| 5152 | |
| 5153 | |
| 5154 | |
| 5155 | |
| 5156 | |
| 5157 | |
| 5158 | |
| 5159 | |
| 5160 | |
| 5161 | |
| 5162 | |
| 5163 | |
| 5164 | |
| 5165 | |
| 5166 | |
| 5167 | |
| 5168 | |
| 5169 | for ac_prog in gawk mawk nawk awk |
| 5170 | do |
| 5171 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5172 | set dummy $ac_prog; ac_word=$2 |
| 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5174 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5175 | if ${ac_cv_prog_AWK+:} false; then : |
| 5176 | $as_echo_n "(cached) " >&6 |
| 5177 | else |
| 5178 | if test -n "$AWK"; then |
| 5179 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 5180 | else |
| 5181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5182 | for as_dir in $PATH |
| 5183 | do |
| 5184 | IFS=$as_save_IFS |
| 5185 | test -z "$as_dir" && as_dir=. |
| 5186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5188 | ac_cv_prog_AWK="$ac_prog" |
| 5189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5190 | break 2 |
| 5191 | fi |
| 5192 | done |
| 5193 | done |
| 5194 | IFS=$as_save_IFS |
| 5195 | |
| 5196 | fi |
| 5197 | fi |
| 5198 | AWK=$ac_cv_prog_AWK |
| 5199 | if test -n "$AWK"; then |
| 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 5201 | $as_echo "$AWK" >&6; } |
| 5202 | else |
| 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5204 | $as_echo "no" >&6; } |
| 5205 | fi |
| 5206 | |
| 5207 | |
| 5208 | test -n "$AWK" && break |
| 5209 | done |
| 5210 | |
| 5211 | |
| 5212 | |
| 5213 | |
| 5214 | |
| 5215 | |
| 5216 | |
| 5217 | |
| 5218 | |
| 5219 | |
| 5220 | |
| 5221 | |
| 5222 | |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | # If no C compiler was specified, use CC. |
| 5230 | LTCC=${LTCC-"$CC"} |
| 5231 | |
| 5232 | # If no C compiler flags were specified, use CFLAGS. |
| 5233 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5234 | |
| 5235 | # Allow CC to be a program name with arguments. |
| 5236 | compiler=$CC |
| 5237 | |
| 5238 | |
| 5239 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 5241 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 5242 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 5243 | $as_echo_n "(cached) " >&6 |
| 5244 | else |
| 5245 | |
| 5246 | # These are sane defaults that work on at least a few old systems. |
| 5247 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5248 | |
| 5249 | # Character class describing NM global symbol codes. |
| 5250 | symcode='[BCDEGRST]' |
| 5251 | |
| 5252 | # Regexp to match symbols that can be accessed directly from C. |
| 5253 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5254 | |
| 5255 | # Define system-specific variables. |
| 5256 | case $host_os in |
| 5257 | aix*) |
| 5258 | symcode='[BCDT]' |
| 5259 | ;; |
| 5260 | cygwin* | mingw* | pw32* | cegcc*) |
| 5261 | symcode='[ABCDGISTW]' |
| 5262 | ;; |
| 5263 | hpux*) |
| 5264 | if test "$host_cpu" = ia64; then |
| 5265 | symcode='[ABCDEGRST]' |
| 5266 | fi |
| 5267 | ;; |
| 5268 | irix* | nonstopux*) |
| 5269 | symcode='[BCDEGRST]' |
| 5270 | ;; |
| 5271 | osf*) |
| 5272 | symcode='[BCDEGQRST]' |
| 5273 | ;; |
| 5274 | solaris*) |
| 5275 | symcode='[BDRT]' |
| 5276 | ;; |
| 5277 | sco3.2v5*) |
| 5278 | symcode='[DT]' |
| 5279 | ;; |
| 5280 | sysv4.2uw2*) |
| 5281 | symcode='[DT]' |
| 5282 | ;; |
| 5283 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5284 | symcode='[ABDT]' |
| 5285 | ;; |
| 5286 | sysv4) |
| 5287 | symcode='[DFNSTU]' |
| 5288 | ;; |
| 5289 | esac |
| 5290 | |
| 5291 | # If we're using GNU nm, then use its standard symbol codes. |
| 5292 | case `$NM -V 2>&1` in |
| 5293 | *GNU* | *'with BFD'*) |
| 5294 | symcode='[ABCDGIRSTW]' ;; |
| 5295 | esac |
| 5296 | |
| 5297 | # Transform an extracted symbol line into a proper C declaration. |
| 5298 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 5299 | # so use this general approach. |
| 5300 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5301 | |
| 5302 | # Transform an extracted symbol line into symbol name and symbol address |
| 5303 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 5304 | 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'" |
| 5305 | |
| 5306 | # Handle CRLF in mingw tool chain |
| 5307 | opt_cr= |
| 5308 | case $build_os in |
| 5309 | mingw*) |
| 5310 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5311 | ;; |
| 5312 | esac |
| 5313 | |
| 5314 | # Try without a prefix underscore, then with it. |
| 5315 | for ac_symprfx in "" "_"; do |
| 5316 | |
| 5317 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5318 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5319 | |
| 5320 | # Write the raw and C identifiers. |
| 5321 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5322 | # Fake it for dumpbin and say T for any non-static function |
| 5323 | # and D for any global variable. |
| 5324 | # Also find C++ and __fastcall symbols from MSVC++, |
| 5325 | # which start with @ or ?. |
| 5326 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 5327 | " {last_section=section; section=\$ 3};"\ |
| 5328 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 5329 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 5330 | " \$ 0!~/External *\|/{next};"\ |
| 5331 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 5332 | " {if(hide[section]) next};"\ |
| 5333 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 5334 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 5335 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 5336 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 5337 | " ' prfx=^$ac_symprfx" |
| 5338 | else |
| 5339 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5340 | fi |
| 5341 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 5342 | |
| 5343 | # Check to see that the pipe works correctly. |
| 5344 | pipe_works=no |
| 5345 | |
| 5346 | rm -f conftest* |
| 5347 | cat > conftest.$ac_ext <<_LT_EOF |
| 5348 | #ifdef __cplusplus |
| 5349 | extern "C" { |
| 5350 | #endif |
| 5351 | char nm_test_var; |
| 5352 | void nm_test_func(void); |
| 5353 | void nm_test_func(void){} |
| 5354 | #ifdef __cplusplus |
| 5355 | } |
| 5356 | #endif |
| 5357 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5358 | _LT_EOF |
| 5359 | |
| 5360 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 5361 | (eval $ac_compile) 2>&5 |
| 5362 | ac_status=$? |
| 5363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5364 | test $ac_status = 0; }; then |
| 5365 | # Now try to grab the symbols. |
| 5366 | nlist=conftest.nm |
| 5367 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 5368 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 5369 | ac_status=$? |
| 5370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5371 | test $ac_status = 0; } && test -s "$nlist"; then |
| 5372 | # Try sorting and uniquifying the output. |
| 5373 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5374 | mv -f "$nlist"T "$nlist" |
| 5375 | else |
| 5376 | rm -f "$nlist"T |
| 5377 | fi |
| 5378 | |
| 5379 | # Make sure that we snagged all the symbols we need. |
| 5380 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5381 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5382 | cat <<_LT_EOF > conftest.$ac_ext |
| 5383 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 5384 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 5385 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 5386 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 5387 | # define LT_DLSYM_CONST |
| 5388 | #elif defined(__osf__) |
| 5389 | /* This system does not cope well with relocations in const data. */ |
| 5390 | # define LT_DLSYM_CONST |
| 5391 | #else |
| 5392 | # define LT_DLSYM_CONST const |
| 5393 | #endif |
| 5394 | |
| 5395 | #ifdef __cplusplus |
| 5396 | extern "C" { |
| 5397 | #endif |
| 5398 | |
| 5399 | _LT_EOF |
| 5400 | # Now generate the symbol file. |
| 5401 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5402 | |
| 5403 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5404 | |
| 5405 | /* The mapping between symbol names and symbols. */ |
| 5406 | LT_DLSYM_CONST struct { |
| 5407 | const char *name; |
| 5408 | void *address; |
| 5409 | } |
| 5410 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5411 | { |
| 5412 | { "@PROGRAM@", (void *) 0 }, |
| 5413 | _LT_EOF |
| 5414 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5415 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5416 | {0, (void *) 0} |
| 5417 | }; |
| 5418 | |
| 5419 | /* This works around a problem in FreeBSD linker */ |
| 5420 | #ifdef FREEBSD_WORKAROUND |
| 5421 | static const void *lt_preloaded_setup() { |
| 5422 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5423 | } |
| 5424 | #endif |
| 5425 | |
| 5426 | #ifdef __cplusplus |
| 5427 | } |
| 5428 | #endif |
| 5429 | _LT_EOF |
| 5430 | # Now try linking the two files. |
| 5431 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5432 | lt_globsym_save_LIBS=$LIBS |
| 5433 | lt_globsym_save_CFLAGS=$CFLAGS |
| 5434 | LIBS="conftstm.$ac_objext" |
| 5435 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5436 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 5437 | (eval $ac_link) 2>&5 |
| 5438 | ac_status=$? |
| 5439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5440 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 5441 | pipe_works=yes |
| 5442 | fi |
| 5443 | LIBS=$lt_globsym_save_LIBS |
| 5444 | CFLAGS=$lt_globsym_save_CFLAGS |
| 5445 | else |
| 5446 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5447 | fi |
| 5448 | else |
| 5449 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5450 | fi |
| 5451 | else |
| 5452 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5453 | fi |
| 5454 | else |
| 5455 | echo "$progname: failed program was:" >&5 |
| 5456 | cat conftest.$ac_ext >&5 |
| 5457 | fi |
| 5458 | rm -rf conftest* conftst* |
| 5459 | |
| 5460 | # Do not use the global_symbol_pipe unless it works. |
| 5461 | if test "$pipe_works" = yes; then |
| 5462 | break |
| 5463 | else |
| 5464 | lt_cv_sys_global_symbol_pipe= |
| 5465 | fi |
| 5466 | done |
| 5467 | |
| 5468 | fi |
| 5469 | |
| 5470 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5471 | lt_cv_sys_global_symbol_to_cdecl= |
| 5472 | fi |
| 5473 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 5475 | $as_echo "failed" >&6; } |
| 5476 | else |
| 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 5478 | $as_echo "ok" >&6; } |
| 5479 | fi |
| 5480 | |
| 5481 | # Response file support. |
| 5482 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5483 | nm_file_list_spec='@' |
| 5484 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 5485 | nm_file_list_spec='@' |
| 5486 | fi |
| 5487 | |
| 5488 | |
| 5489 | |
| 5490 | |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 | |
| 5499 | |
| 5500 | |
| 5501 | |
| 5502 | |
| 5503 | |
| 5504 | |
| 5505 | |
| 5506 | |
| 5507 | |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | |
| 5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 5515 | $as_echo_n "checking for sysroot... " >&6; } |
| 5516 | |
| 5517 | # Check whether --with-sysroot was given. |
| 5518 | if test "${with_sysroot+set}" = set; then : |
| 5519 | withval=$with_sysroot; |
| 5520 | else |
| 5521 | with_sysroot=no |
| 5522 | fi |
| 5523 | |
| 5524 | |
| 5525 | lt_sysroot= |
| 5526 | case ${with_sysroot} in #( |
| 5527 | yes) |
| 5528 | if test "$GCC" = yes; then |
| 5529 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 5530 | fi |
| 5531 | ;; #( |
| 5532 | /*) |
| 5533 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 5534 | ;; #( |
| 5535 | no|'') |
| 5536 | ;; #( |
| 5537 | *) |
| 5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 5539 | $as_echo "${with_sysroot}" >&6; } |
| 5540 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 5541 | ;; |
| 5542 | esac |
| 5543 | |
| 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 5545 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | # Check whether --enable-libtool-lock was given. |
| 5552 | if test "${enable_libtool_lock+set}" = set; then : |
| 5553 | enableval=$enable_libtool_lock; |
| 5554 | fi |
| 5555 | |
| 5556 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5557 | |
| 5558 | # Some flags need to be propagated to the compiler or linker for good |
| 5559 | # libtool support. |
| 5560 | case $host in |
| 5561 | ia64-*-hpux*) |
| 5562 | # Find out which ABI we are using. |
| 5563 | echo 'int i;' > conftest.$ac_ext |
| 5564 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 5565 | (eval $ac_compile) 2>&5 |
| 5566 | ac_status=$? |
| 5567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5568 | test $ac_status = 0; }; then |
| 5569 | case `/usr/bin/file conftest.$ac_objext` in |
| 5570 | *ELF-32*) |
| 5571 | HPUX_IA64_MODE="32" |
| 5572 | ;; |
| 5573 | *ELF-64*) |
| 5574 | HPUX_IA64_MODE="64" |
| 5575 | ;; |
| 5576 | esac |
| 5577 | fi |
| 5578 | rm -rf conftest* |
| 5579 | ;; |
| 5580 | *-*-irix6*) |
| 5581 | # Find out which ABI we are using. |
| 5582 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 5583 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 5584 | (eval $ac_compile) 2>&5 |
| 5585 | ac_status=$? |
| 5586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5587 | test $ac_status = 0; }; then |
| 5588 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5589 | case `/usr/bin/file conftest.$ac_objext` in |
| 5590 | *32-bit*) |
| 5591 | LD="${LD-ld} -melf32bsmip" |
| 5592 | ;; |
| 5593 | *N32*) |
| 5594 | LD="${LD-ld} -melf32bmipn32" |
| 5595 | ;; |
| 5596 | *64-bit*) |
| 5597 | LD="${LD-ld} -melf64bmip" |
| 5598 | ;; |
| 5599 | esac |
| 5600 | else |
| 5601 | case `/usr/bin/file conftest.$ac_objext` in |
| 5602 | *32-bit*) |
| 5603 | LD="${LD-ld} -32" |
| 5604 | ;; |
| 5605 | *N32*) |
| 5606 | LD="${LD-ld} -n32" |
| 5607 | ;; |
| 5608 | *64-bit*) |
| 5609 | LD="${LD-ld} -64" |
| 5610 | ;; |
| 5611 | esac |
| 5612 | fi |
| 5613 | fi |
| 5614 | rm -rf conftest* |
| 5615 | ;; |
| 5616 | |
| 5617 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 5618 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 5619 | # Find out which ABI we are using. |
| 5620 | echo 'int i;' > conftest.$ac_ext |
| 5621 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 5622 | (eval $ac_compile) 2>&5 |
| 5623 | ac_status=$? |
| 5624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5625 | test $ac_status = 0; }; then |
| 5626 | case `/usr/bin/file conftest.o` in |
| 5627 | *32-bit*) |
| 5628 | case $host in |
| 5629 | x86_64-*kfreebsd*-gnu) |
| 5630 | LD="${LD-ld} -m elf_i386_fbsd" |
| 5631 | ;; |
| 5632 | x86_64-*linux*) |
| 5633 | LD="${LD-ld} -m elf_i386" |
| 5634 | ;; |
| 5635 | ppc64-*linux*|powerpc64-*linux*) |
| 5636 | LD="${LD-ld} -m elf32ppclinux" |
| 5637 | ;; |
| 5638 | s390x-*linux*) |
| 5639 | LD="${LD-ld} -m elf_s390" |
| 5640 | ;; |
| 5641 | sparc64-*linux*) |
| 5642 | LD="${LD-ld} -m elf32_sparc" |
| 5643 | ;; |
| 5644 | esac |
| 5645 | ;; |
| 5646 | *64-bit*) |
| 5647 | case $host in |
| 5648 | x86_64-*kfreebsd*-gnu) |
| 5649 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 5650 | ;; |
| 5651 | x86_64-*linux*) |
| 5652 | LD="${LD-ld} -m elf_x86_64" |
| 5653 | ;; |
| 5654 | ppc*-*linux*|powerpc*-*linux*) |
| 5655 | LD="${LD-ld} -m elf64ppc" |
| 5656 | ;; |
| 5657 | s390*-*linux*|s390*-*tpf*) |
| 5658 | LD="${LD-ld} -m elf64_s390" |
| 5659 | ;; |
| 5660 | sparc*-*linux*) |
| 5661 | LD="${LD-ld} -m elf64_sparc" |
| 5662 | ;; |
| 5663 | esac |
| 5664 | ;; |
| 5665 | esac |
| 5666 | fi |
| 5667 | rm -rf conftest* |
| 5668 | ;; |
| 5669 | |
| 5670 | *-*-sco3.2v5*) |
| 5671 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5672 | SAVE_CFLAGS="$CFLAGS" |
| 5673 | CFLAGS="$CFLAGS -belf" |
| 5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 5675 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 5676 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 5677 | $as_echo_n "(cached) " >&6 |
| 5678 | else |
| 5679 | ac_ext=c |
| 5680 | ac_cpp='$CPP $CPPFLAGS' |
| 5681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5684 | |
| 5685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5686 | /* end confdefs.h. */ |
| 5687 | |
| 5688 | int |
| 5689 | main () |
| 5690 | { |
| 5691 | |
| 5692 | ; |
| 5693 | return 0; |
| 5694 | } |
| 5695 | _ACEOF |
| 5696 | if ac_fn_c_try_link "$LINENO"; then : |
| 5697 | lt_cv_cc_needs_belf=yes |
| 5698 | else |
| 5699 | lt_cv_cc_needs_belf=no |
| 5700 | fi |
| 5701 | rm -f core conftest.err conftest.$ac_objext \ |
| 5702 | conftest$ac_exeext conftest.$ac_ext |
| 5703 | ac_ext=c |
| 5704 | ac_cpp='$CPP $CPPFLAGS' |
| 5705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5708 | |
| 5709 | fi |
| 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 5711 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 5712 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5713 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5714 | CFLAGS="$SAVE_CFLAGS" |
| 5715 | fi |
| 5716 | ;; |
| 5717 | *-*solaris*) |
| 5718 | # Find out which ABI we are using. |
| 5719 | echo 'int i;' > conftest.$ac_ext |
| 5720 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 5721 | (eval $ac_compile) 2>&5 |
| 5722 | ac_status=$? |
| 5723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5724 | test $ac_status = 0; }; then |
| 5725 | case `/usr/bin/file conftest.o` in |
| 5726 | *64-bit*) |
| 5727 | case $lt_cv_prog_gnu_ld in |
| 5728 | yes*) |
| 5729 | case $host in |
| 5730 | i?86-*-solaris*) |
| 5731 | LD="${LD-ld} -m elf_x86_64" |
| 5732 | ;; |
| 5733 | sparc*-*-solaris*) |
| 5734 | LD="${LD-ld} -m elf64_sparc" |
| 5735 | ;; |
| 5736 | esac |
| 5737 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 5738 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 5739 | LD="${LD-ld}_sol2" |
| 5740 | fi |
| 5741 | ;; |
| 5742 | *) |
| 5743 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 5744 | LD="${LD-ld} -64" |
| 5745 | fi |
| 5746 | ;; |
| 5747 | esac |
| 5748 | ;; |
| 5749 | esac |
| 5750 | fi |
| 5751 | rm -rf conftest* |
| 5752 | ;; |
| 5753 | esac |
| 5754 | |
| 5755 | need_locks="$enable_libtool_lock" |
| 5756 | |
| 5757 | if test -n "$ac_tool_prefix"; then |
| 5758 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 5759 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5761 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5762 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 5763 | $as_echo_n "(cached) " >&6 |
| 5764 | else |
| 5765 | if test -n "$MANIFEST_TOOL"; then |
| 5766 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 5767 | else |
| 5768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5769 | for as_dir in $PATH |
| 5770 | do |
| 5771 | IFS=$as_save_IFS |
| 5772 | test -z "$as_dir" && as_dir=. |
| 5773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5775 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 5776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5777 | break 2 |
| 5778 | fi |
| 5779 | done |
| 5780 | done |
| 5781 | IFS=$as_save_IFS |
| 5782 | |
| 5783 | fi |
| 5784 | fi |
| 5785 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 5786 | if test -n "$MANIFEST_TOOL"; then |
| 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 5788 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 5789 | else |
| 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5791 | $as_echo "no" >&6; } |
| 5792 | fi |
| 5793 | |
| 5794 | |
| 5795 | fi |
| 5796 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 5797 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 5798 | # Extract the first word of "mt", so it can be a program name with args. |
| 5799 | set dummy mt; ac_word=$2 |
| 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5801 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5802 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 5803 | $as_echo_n "(cached) " >&6 |
| 5804 | else |
| 5805 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 5806 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 5807 | else |
| 5808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5809 | for as_dir in $PATH |
| 5810 | do |
| 5811 | IFS=$as_save_IFS |
| 5812 | test -z "$as_dir" && as_dir=. |
| 5813 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5815 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 5816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5817 | break 2 |
| 5818 | fi |
| 5819 | done |
| 5820 | done |
| 5821 | IFS=$as_save_IFS |
| 5822 | |
| 5823 | fi |
| 5824 | fi |
| 5825 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 5826 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 5828 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 5829 | else |
| 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5831 | $as_echo "no" >&6; } |
| 5832 | fi |
| 5833 | |
| 5834 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 5835 | MANIFEST_TOOL=":" |
| 5836 | else |
| 5837 | case $cross_compiling:$ac_tool_warned in |
| 5838 | yes:) |
| 5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5841 | ac_tool_warned=yes ;; |
| 5842 | esac |
| 5843 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 5844 | fi |
| 5845 | else |
| 5846 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 5847 | fi |
| 5848 | |
| 5849 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 5851 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 5852 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 5853 | $as_echo_n "(cached) " >&6 |
| 5854 | else |
| 5855 | lt_cv_path_mainfest_tool=no |
| 5856 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 5857 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 5858 | cat conftest.err >&5 |
| 5859 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 5860 | lt_cv_path_mainfest_tool=yes |
| 5861 | fi |
| 5862 | rm -f conftest* |
| 5863 | fi |
| 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 5865 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 5866 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 5867 | MANIFEST_TOOL=: |
| 5868 | fi |
| 5869 | |
| 5870 | |
| 5871 | |
| 5872 | |
| 5873 | |
| 5874 | |
| 5875 | case $host_os in |
| 5876 | rhapsody* | darwin*) |
| 5877 | if test -n "$ac_tool_prefix"; then |
| 5878 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 5879 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5881 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5882 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 5883 | $as_echo_n "(cached) " >&6 |
| 5884 | else |
| 5885 | if test -n "$DSYMUTIL"; then |
| 5886 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 5887 | else |
| 5888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5889 | for as_dir in $PATH |
| 5890 | do |
| 5891 | IFS=$as_save_IFS |
| 5892 | test -z "$as_dir" && as_dir=. |
| 5893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5895 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 5896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5897 | break 2 |
| 5898 | fi |
| 5899 | done |
| 5900 | done |
| 5901 | IFS=$as_save_IFS |
| 5902 | |
| 5903 | fi |
| 5904 | fi |
| 5905 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 5906 | if test -n "$DSYMUTIL"; then |
| 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 5908 | $as_echo "$DSYMUTIL" >&6; } |
| 5909 | else |
| 5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5911 | $as_echo "no" >&6; } |
| 5912 | fi |
| 5913 | |
| 5914 | |
| 5915 | fi |
| 5916 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 5917 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 5918 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 5919 | set dummy dsymutil; ac_word=$2 |
| 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5921 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5922 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 5923 | $as_echo_n "(cached) " >&6 |
| 5924 | else |
| 5925 | if test -n "$ac_ct_DSYMUTIL"; then |
| 5926 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 5927 | else |
| 5928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5929 | for as_dir in $PATH |
| 5930 | do |
| 5931 | IFS=$as_save_IFS |
| 5932 | test -z "$as_dir" && as_dir=. |
| 5933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5935 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 5936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5937 | break 2 |
| 5938 | fi |
| 5939 | done |
| 5940 | done |
| 5941 | IFS=$as_save_IFS |
| 5942 | |
| 5943 | fi |
| 5944 | fi |
| 5945 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 5946 | if test -n "$ac_ct_DSYMUTIL"; then |
| 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 5948 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 5949 | else |
| 5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5951 | $as_echo "no" >&6; } |
| 5952 | fi |
| 5953 | |
| 5954 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 5955 | DSYMUTIL=":" |
| 5956 | else |
| 5957 | case $cross_compiling:$ac_tool_warned in |
| 5958 | yes:) |
| 5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5960 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5961 | ac_tool_warned=yes ;; |
| 5962 | esac |
| 5963 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 5964 | fi |
| 5965 | else |
| 5966 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 5967 | fi |
| 5968 | |
| 5969 | if test -n "$ac_tool_prefix"; then |
| 5970 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 5971 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5973 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5974 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 5975 | $as_echo_n "(cached) " >&6 |
| 5976 | else |
| 5977 | if test -n "$NMEDIT"; then |
| 5978 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 5979 | else |
| 5980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5981 | for as_dir in $PATH |
| 5982 | do |
| 5983 | IFS=$as_save_IFS |
| 5984 | test -z "$as_dir" && as_dir=. |
| 5985 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5987 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 5988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5989 | break 2 |
| 5990 | fi |
| 5991 | done |
| 5992 | done |
| 5993 | IFS=$as_save_IFS |
| 5994 | |
| 5995 | fi |
| 5996 | fi |
| 5997 | NMEDIT=$ac_cv_prog_NMEDIT |
| 5998 | if test -n "$NMEDIT"; then |
| 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6000 | $as_echo "$NMEDIT" >&6; } |
| 6001 | else |
| 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6003 | $as_echo "no" >&6; } |
| 6004 | fi |
| 6005 | |
| 6006 | |
| 6007 | fi |
| 6008 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6009 | ac_ct_NMEDIT=$NMEDIT |
| 6010 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6011 | set dummy nmedit; ac_word=$2 |
| 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6013 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6014 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 6015 | $as_echo_n "(cached) " >&6 |
| 6016 | else |
| 6017 | if test -n "$ac_ct_NMEDIT"; then |
| 6018 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6019 | else |
| 6020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6021 | for as_dir in $PATH |
| 6022 | do |
| 6023 | IFS=$as_save_IFS |
| 6024 | test -z "$as_dir" && as_dir=. |
| 6025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6027 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6029 | break 2 |
| 6030 | fi |
| 6031 | done |
| 6032 | done |
| 6033 | IFS=$as_save_IFS |
| 6034 | |
| 6035 | fi |
| 6036 | fi |
| 6037 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6038 | if test -n "$ac_ct_NMEDIT"; then |
| 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6040 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6041 | else |
| 6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6043 | $as_echo "no" >&6; } |
| 6044 | fi |
| 6045 | |
| 6046 | if test "x$ac_ct_NMEDIT" = x; then |
| 6047 | NMEDIT=":" |
| 6048 | else |
| 6049 | case $cross_compiling:$ac_tool_warned in |
| 6050 | yes:) |
| 6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6052 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6053 | ac_tool_warned=yes ;; |
| 6054 | esac |
| 6055 | NMEDIT=$ac_ct_NMEDIT |
| 6056 | fi |
| 6057 | else |
| 6058 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6059 | fi |
| 6060 | |
| 6061 | if test -n "$ac_tool_prefix"; then |
| 6062 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6063 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6065 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6066 | if ${ac_cv_prog_LIPO+:} false; then : |
| 6067 | $as_echo_n "(cached) " >&6 |
| 6068 | else |
| 6069 | if test -n "$LIPO"; then |
| 6070 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6071 | else |
| 6072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6073 | for as_dir in $PATH |
| 6074 | do |
| 6075 | IFS=$as_save_IFS |
| 6076 | test -z "$as_dir" && as_dir=. |
| 6077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6079 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6081 | break 2 |
| 6082 | fi |
| 6083 | done |
| 6084 | done |
| 6085 | IFS=$as_save_IFS |
| 6086 | |
| 6087 | fi |
| 6088 | fi |
| 6089 | LIPO=$ac_cv_prog_LIPO |
| 6090 | if test -n "$LIPO"; then |
| 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 6092 | $as_echo "$LIPO" >&6; } |
| 6093 | else |
| 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6095 | $as_echo "no" >&6; } |
| 6096 | fi |
| 6097 | |
| 6098 | |
| 6099 | fi |
| 6100 | if test -z "$ac_cv_prog_LIPO"; then |
| 6101 | ac_ct_LIPO=$LIPO |
| 6102 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6103 | set dummy lipo; ac_word=$2 |
| 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6105 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6106 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 6107 | $as_echo_n "(cached) " >&6 |
| 6108 | else |
| 6109 | if test -n "$ac_ct_LIPO"; then |
| 6110 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6111 | else |
| 6112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6113 | for as_dir in $PATH |
| 6114 | do |
| 6115 | IFS=$as_save_IFS |
| 6116 | test -z "$as_dir" && as_dir=. |
| 6117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6119 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6121 | break 2 |
| 6122 | fi |
| 6123 | done |
| 6124 | done |
| 6125 | IFS=$as_save_IFS |
| 6126 | |
| 6127 | fi |
| 6128 | fi |
| 6129 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6130 | if test -n "$ac_ct_LIPO"; then |
| 6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 6132 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6133 | else |
| 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6135 | $as_echo "no" >&6; } |
| 6136 | fi |
| 6137 | |
| 6138 | if test "x$ac_ct_LIPO" = x; then |
| 6139 | LIPO=":" |
| 6140 | else |
| 6141 | case $cross_compiling:$ac_tool_warned in |
| 6142 | yes:) |
| 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6144 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6145 | ac_tool_warned=yes ;; |
| 6146 | esac |
| 6147 | LIPO=$ac_ct_LIPO |
| 6148 | fi |
| 6149 | else |
| 6150 | LIPO="$ac_cv_prog_LIPO" |
| 6151 | fi |
| 6152 | |
| 6153 | if test -n "$ac_tool_prefix"; then |
| 6154 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6155 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6157 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6158 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 6159 | $as_echo_n "(cached) " >&6 |
| 6160 | else |
| 6161 | if test -n "$OTOOL"; then |
| 6162 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6163 | else |
| 6164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6165 | for as_dir in $PATH |
| 6166 | do |
| 6167 | IFS=$as_save_IFS |
| 6168 | test -z "$as_dir" && as_dir=. |
| 6169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6171 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6173 | break 2 |
| 6174 | fi |
| 6175 | done |
| 6176 | done |
| 6177 | IFS=$as_save_IFS |
| 6178 | |
| 6179 | fi |
| 6180 | fi |
| 6181 | OTOOL=$ac_cv_prog_OTOOL |
| 6182 | if test -n "$OTOOL"; then |
| 6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 6184 | $as_echo "$OTOOL" >&6; } |
| 6185 | else |
| 6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6187 | $as_echo "no" >&6; } |
| 6188 | fi |
| 6189 | |
| 6190 | |
| 6191 | fi |
| 6192 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6193 | ac_ct_OTOOL=$OTOOL |
| 6194 | # Extract the first word of "otool", so it can be a program name with args. |
| 6195 | set dummy otool; ac_word=$2 |
| 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6197 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6198 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 6199 | $as_echo_n "(cached) " >&6 |
| 6200 | else |
| 6201 | if test -n "$ac_ct_OTOOL"; then |
| 6202 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6203 | else |
| 6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6205 | for as_dir in $PATH |
| 6206 | do |
| 6207 | IFS=$as_save_IFS |
| 6208 | test -z "$as_dir" && as_dir=. |
| 6209 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6211 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6213 | break 2 |
| 6214 | fi |
| 6215 | done |
| 6216 | done |
| 6217 | IFS=$as_save_IFS |
| 6218 | |
| 6219 | fi |
| 6220 | fi |
| 6221 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6222 | if test -n "$ac_ct_OTOOL"; then |
| 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 6224 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6225 | else |
| 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6227 | $as_echo "no" >&6; } |
| 6228 | fi |
| 6229 | |
| 6230 | if test "x$ac_ct_OTOOL" = x; then |
| 6231 | OTOOL=":" |
| 6232 | else |
| 6233 | case $cross_compiling:$ac_tool_warned in |
| 6234 | yes:) |
| 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6236 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6237 | ac_tool_warned=yes ;; |
| 6238 | esac |
| 6239 | OTOOL=$ac_ct_OTOOL |
| 6240 | fi |
| 6241 | else |
| 6242 | OTOOL="$ac_cv_prog_OTOOL" |
| 6243 | fi |
| 6244 | |
| 6245 | if test -n "$ac_tool_prefix"; then |
| 6246 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6247 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6249 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6250 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 6251 | $as_echo_n "(cached) " >&6 |
| 6252 | else |
| 6253 | if test -n "$OTOOL64"; then |
| 6254 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6255 | else |
| 6256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6257 | for as_dir in $PATH |
| 6258 | do |
| 6259 | IFS=$as_save_IFS |
| 6260 | test -z "$as_dir" && as_dir=. |
| 6261 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6263 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6265 | break 2 |
| 6266 | fi |
| 6267 | done |
| 6268 | done |
| 6269 | IFS=$as_save_IFS |
| 6270 | |
| 6271 | fi |
| 6272 | fi |
| 6273 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6274 | if test -n "$OTOOL64"; then |
| 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 6276 | $as_echo "$OTOOL64" >&6; } |
| 6277 | else |
| 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6279 | $as_echo "no" >&6; } |
| 6280 | fi |
| 6281 | |
| 6282 | |
| 6283 | fi |
| 6284 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6285 | ac_ct_OTOOL64=$OTOOL64 |
| 6286 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6287 | set dummy otool64; ac_word=$2 |
| 6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6289 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6290 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 6291 | $as_echo_n "(cached) " >&6 |
| 6292 | else |
| 6293 | if test -n "$ac_ct_OTOOL64"; then |
| 6294 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6295 | else |
| 6296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6297 | for as_dir in $PATH |
| 6298 | do |
| 6299 | IFS=$as_save_IFS |
| 6300 | test -z "$as_dir" && as_dir=. |
| 6301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6303 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6305 | break 2 |
| 6306 | fi |
| 6307 | done |
| 6308 | done |
| 6309 | IFS=$as_save_IFS |
| 6310 | |
| 6311 | fi |
| 6312 | fi |
| 6313 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6314 | if test -n "$ac_ct_OTOOL64"; then |
| 6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 6316 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 6317 | else |
| 6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6319 | $as_echo "no" >&6; } |
| 6320 | fi |
| 6321 | |
| 6322 | if test "x$ac_ct_OTOOL64" = x; then |
| 6323 | OTOOL64=":" |
| 6324 | else |
| 6325 | case $cross_compiling:$ac_tool_warned in |
| 6326 | yes:) |
| 6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6329 | ac_tool_warned=yes ;; |
| 6330 | esac |
| 6331 | OTOOL64=$ac_ct_OTOOL64 |
| 6332 | fi |
| 6333 | else |
| 6334 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6335 | fi |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | |
| 6340 | |
| 6341 | |
| 6342 | |
| 6343 | |
| 6344 | |
| 6345 | |
| 6346 | |
| 6347 | |
| 6348 | |
| 6349 | |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | |
| 6355 | |
| 6356 | |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 6364 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 6365 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 6366 | $as_echo_n "(cached) " >&6 |
| 6367 | else |
| 6368 | lt_cv_apple_cc_single_mod=no |
| 6369 | if test -z "${LT_MULTI_MODULE}"; then |
| 6370 | # By default we will add the -single_module flag. You can override |
| 6371 | # by either setting the environment variable LT_MULTI_MODULE |
| 6372 | # non-empty at configure time, or by adding -multi_module to the |
| 6373 | # link flags. |
| 6374 | rm -rf libconftest.dylib* |
| 6375 | echo "int foo(void){return 1;}" > conftest.c |
| 6376 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6377 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6378 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6379 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 6380 | _lt_result=$? |
| 6381 | # If there is a non-empty error log, and "single_module" |
| 6382 | # appears in it, assume the flag caused a linker warning |
| 6383 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 6384 | cat conftest.err >&5 |
| 6385 | # Otherwise, if the output was created with a 0 exit code from |
| 6386 | # the compiler, it worked. |
| 6387 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 6388 | lt_cv_apple_cc_single_mod=yes |
| 6389 | else |
| 6390 | cat conftest.err >&5 |
| 6391 | fi |
| 6392 | rm -rf libconftest.dylib* |
| 6393 | rm -f conftest.* |
| 6394 | fi |
| 6395 | fi |
| 6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 6397 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 6398 | |
| 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 6400 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 6401 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 6402 | $as_echo_n "(cached) " >&6 |
| 6403 | else |
| 6404 | lt_cv_ld_exported_symbols_list=no |
| 6405 | save_LDFLAGS=$LDFLAGS |
| 6406 | echo "_main" > conftest.sym |
| 6407 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 6408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6409 | /* end confdefs.h. */ |
| 6410 | |
| 6411 | int |
| 6412 | main () |
| 6413 | { |
| 6414 | |
| 6415 | ; |
| 6416 | return 0; |
| 6417 | } |
| 6418 | _ACEOF |
| 6419 | if ac_fn_c_try_link "$LINENO"; then : |
| 6420 | lt_cv_ld_exported_symbols_list=yes |
| 6421 | else |
| 6422 | lt_cv_ld_exported_symbols_list=no |
| 6423 | fi |
| 6424 | rm -f core conftest.err conftest.$ac_objext \ |
| 6425 | conftest$ac_exeext conftest.$ac_ext |
| 6426 | LDFLAGS="$save_LDFLAGS" |
| 6427 | |
| 6428 | fi |
| 6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 6430 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 6431 | |
| 6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 6433 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 6434 | if ${lt_cv_ld_force_load+:} false; then : |
| 6435 | $as_echo_n "(cached) " >&6 |
| 6436 | else |
| 6437 | lt_cv_ld_force_load=no |
| 6438 | cat > conftest.c << _LT_EOF |
| 6439 | int forced_loaded() { return 2;} |
| 6440 | _LT_EOF |
| 6441 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 6442 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 6443 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 6444 | $AR cru libconftest.a conftest.o 2>&5 |
| 6445 | echo "$RANLIB libconftest.a" >&5 |
| 6446 | $RANLIB libconftest.a 2>&5 |
| 6447 | cat > conftest.c << _LT_EOF |
| 6448 | int main() { return 0;} |
| 6449 | _LT_EOF |
| 6450 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 6451 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 6452 | _lt_result=$? |
| 6453 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 6454 | cat conftest.err >&5 |
| 6455 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 6456 | lt_cv_ld_force_load=yes |
| 6457 | else |
| 6458 | cat conftest.err >&5 |
| 6459 | fi |
| 6460 | rm -f conftest.err libconftest.a conftest conftest.c |
| 6461 | rm -rf conftest.dSYM |
| 6462 | |
| 6463 | fi |
| 6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 6465 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 6466 | case $host_os in |
| 6467 | rhapsody* | darwin1.[012]) |
| 6468 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 6469 | darwin1.*) |
| 6470 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6471 | darwin*) # darwin 5.x on |
| 6472 | # if running on 10.5 or later, the deployment target defaults |
| 6473 | # to the OS version, if on x86, and 10.4, the deployment |
| 6474 | # target defaults to 10.4. Don't you love it? |
| 6475 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 6476 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 6477 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6478 | 10.[012]*) |
| 6479 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6480 | 10.*) |
| 6481 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6482 | esac |
| 6483 | ;; |
| 6484 | esac |
| 6485 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 6486 | _lt_dar_single_mod='$single_module' |
| 6487 | fi |
| 6488 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 6489 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 6490 | else |
| 6491 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6492 | fi |
| 6493 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 6494 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 6495 | else |
| 6496 | _lt_dsymutil= |
| 6497 | fi |
| 6498 | ;; |
| 6499 | esac |
| 6500 | |
| 6501 | ac_ext=c |
| 6502 | ac_cpp='$CPP $CPPFLAGS' |
| 6503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 6507 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 6508 | # On Suns, sometimes $CPP names a directory. |
| 6509 | if test -n "$CPP" && test -d "$CPP"; then |
| 6510 | CPP= |
| 6511 | fi |
| 6512 | if test -z "$CPP"; then |
| 6513 | if ${ac_cv_prog_CPP+:} false; then : |
| 6514 | $as_echo_n "(cached) " >&6 |
| 6515 | else |
| 6516 | # Double quotes because CPP needs to be expanded |
| 6517 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 6518 | do |
| 6519 | ac_preproc_ok=false |
| 6520 | for ac_c_preproc_warn_flag in '' yes |
| 6521 | do |
| 6522 | # Use a header file that comes with gcc, so configuring glibc |
| 6523 | # with a fresh cross-compiler works. |
| 6524 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6525 | # <limits.h> exists even on freestanding compilers. |
| 6526 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6527 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6529 | /* end confdefs.h. */ |
| 6530 | #ifdef __STDC__ |
| 6531 | # include <limits.h> |
| 6532 | #else |
| 6533 | # include <assert.h> |
| 6534 | #endif |
| 6535 | Syntax error |
| 6536 | _ACEOF |
| 6537 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6538 | |
| 6539 | else |
| 6540 | # Broken: fails on valid input. |
| 6541 | continue |
| 6542 | fi |
| 6543 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6544 | |
| 6545 | # OK, works on sane cases. Now check whether nonexistent headers |
| 6546 | # can be detected and how. |
| 6547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6548 | /* end confdefs.h. */ |
| 6549 | #include <ac_nonexistent.h> |
| 6550 | _ACEOF |
| 6551 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6552 | # Broken: success on invalid input. |
| 6553 | continue |
| 6554 | else |
| 6555 | # Passes both tests. |
| 6556 | ac_preproc_ok=: |
| 6557 | break |
| 6558 | fi |
| 6559 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6560 | |
| 6561 | done |
| 6562 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6563 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 6564 | if $ac_preproc_ok; then : |
| 6565 | break |
| 6566 | fi |
| 6567 | |
| 6568 | done |
| 6569 | ac_cv_prog_CPP=$CPP |
| 6570 | |
| 6571 | fi |
| 6572 | CPP=$ac_cv_prog_CPP |
| 6573 | else |
| 6574 | ac_cv_prog_CPP=$CPP |
| 6575 | fi |
| 6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 6577 | $as_echo "$CPP" >&6; } |
| 6578 | ac_preproc_ok=false |
| 6579 | for ac_c_preproc_warn_flag in '' yes |
| 6580 | do |
| 6581 | # Use a header file that comes with gcc, so configuring glibc |
| 6582 | # with a fresh cross-compiler works. |
| 6583 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6584 | # <limits.h> exists even on freestanding compilers. |
| 6585 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6586 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6588 | /* end confdefs.h. */ |
| 6589 | #ifdef __STDC__ |
| 6590 | # include <limits.h> |
| 6591 | #else |
| 6592 | # include <assert.h> |
| 6593 | #endif |
| 6594 | Syntax error |
| 6595 | _ACEOF |
| 6596 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6597 | |
| 6598 | else |
| 6599 | # Broken: fails on valid input. |
| 6600 | continue |
| 6601 | fi |
| 6602 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6603 | |
| 6604 | # OK, works on sane cases. Now check whether nonexistent headers |
| 6605 | # can be detected and how. |
| 6606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6607 | /* end confdefs.h. */ |
| 6608 | #include <ac_nonexistent.h> |
| 6609 | _ACEOF |
| 6610 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6611 | # Broken: success on invalid input. |
| 6612 | continue |
| 6613 | else |
| 6614 | # Passes both tests. |
| 6615 | ac_preproc_ok=: |
| 6616 | break |
| 6617 | fi |
| 6618 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6619 | |
| 6620 | done |
| 6621 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6622 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 6623 | if $ac_preproc_ok; then : |
| 6624 | |
| 6625 | else |
| 6626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6627 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6628 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 6629 | See \`config.log' for more details" "$LINENO" 5; } |
| 6630 | fi |
| 6631 | |
| 6632 | ac_ext=c |
| 6633 | ac_cpp='$CPP $CPPFLAGS' |
| 6634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6637 | |
| 6638 | |
| 6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6640 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6641 | if ${ac_cv_header_stdc+:} false; then : |
| 6642 | $as_echo_n "(cached) " >&6 |
| 6643 | else |
| 6644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6645 | /* end confdefs.h. */ |
| 6646 | #include <stdlib.h> |
| 6647 | #include <stdarg.h> |
| 6648 | #include <string.h> |
| 6649 | #include <float.h> |
| 6650 | |
| 6651 | int |
| 6652 | main () |
| 6653 | { |
| 6654 | |
| 6655 | ; |
| 6656 | return 0; |
| 6657 | } |
| 6658 | _ACEOF |
| 6659 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6660 | ac_cv_header_stdc=yes |
| 6661 | else |
| 6662 | ac_cv_header_stdc=no |
| 6663 | fi |
| 6664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6665 | |
| 6666 | if test $ac_cv_header_stdc = yes; then |
| 6667 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6669 | /* end confdefs.h. */ |
| 6670 | #include <string.h> |
| 6671 | |
| 6672 | _ACEOF |
| 6673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6674 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6675 | |
| 6676 | else |
| 6677 | ac_cv_header_stdc=no |
| 6678 | fi |
| 6679 | rm -f conftest* |
| 6680 | |
| 6681 | fi |
| 6682 | |
| 6683 | if test $ac_cv_header_stdc = yes; then |
| 6684 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6686 | /* end confdefs.h. */ |
| 6687 | #include <stdlib.h> |
| 6688 | |
| 6689 | _ACEOF |
| 6690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6691 | $EGREP "free" >/dev/null 2>&1; then : |
| 6692 | |
| 6693 | else |
| 6694 | ac_cv_header_stdc=no |
| 6695 | fi |
| 6696 | rm -f conftest* |
| 6697 | |
| 6698 | fi |
| 6699 | |
| 6700 | if test $ac_cv_header_stdc = yes; then |
| 6701 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6702 | if test "$cross_compiling" = yes; then : |
| 6703 | : |
| 6704 | else |
| 6705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6706 | /* end confdefs.h. */ |
| 6707 | #include <ctype.h> |
| 6708 | #include <stdlib.h> |
| 6709 | #if ((' ' & 0x0FF) == 0x020) |
| 6710 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6711 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6712 | #else |
| 6713 | # define ISLOWER(c) \ |
| 6714 | (('a' <= (c) && (c) <= 'i') \ |
| 6715 | || ('j' <= (c) && (c) <= 'r') \ |
| 6716 | || ('s' <= (c) && (c) <= 'z')) |
| 6717 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6718 | #endif |
| 6719 | |
| 6720 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6721 | int |
| 6722 | main () |
| 6723 | { |
| 6724 | int i; |
| 6725 | for (i = 0; i < 256; i++) |
| 6726 | if (XOR (islower (i), ISLOWER (i)) |
| 6727 | || toupper (i) != TOUPPER (i)) |
| 6728 | return 2; |
| 6729 | return 0; |
| 6730 | } |
| 6731 | _ACEOF |
| 6732 | if ac_fn_c_try_run "$LINENO"; then : |
| 6733 | |
| 6734 | else |
| 6735 | ac_cv_header_stdc=no |
| 6736 | fi |
| 6737 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6738 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6739 | fi |
| 6740 | |
| 6741 | fi |
| 6742 | fi |
| 6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6744 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6745 | if test $ac_cv_header_stdc = yes; then |
| 6746 | |
| 6747 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6748 | |
| 6749 | fi |
| 6750 | |
| 6751 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6752 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6753 | inttypes.h stdint.h unistd.h |
| 6754 | do : |
| 6755 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6756 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6757 | " |
| 6758 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6759 | cat >>confdefs.h <<_ACEOF |
| 6760 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6761 | _ACEOF |
| 6762 | |
| 6763 | fi |
| 6764 | |
| 6765 | done |
| 6766 | |
| 6767 | |
| 6768 | for ac_header in dlfcn.h |
| 6769 | do : |
| 6770 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 6771 | " |
| 6772 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 6773 | cat >>confdefs.h <<_ACEOF |
| 6774 | #define HAVE_DLFCN_H 1 |
| 6775 | _ACEOF |
| 6776 | |
| 6777 | fi |
| 6778 | |
| 6779 | done |
| 6780 | |
| 6781 | |
| 6782 | |
| 6783 | |
| 6784 | |
| 6785 | # Set options |
| 6786 | |
| 6787 | |
| 6788 | |
| 6789 | enable_dlopen=no |
| 6790 | |
| 6791 | |
| 6792 | enable_win32_dll=no |
| 6793 | |
| 6794 | |
| 6795 | # Check whether --enable-shared was given. |
| 6796 | if test "${enable_shared+set}" = set; then : |
| 6797 | enableval=$enable_shared; p=${PACKAGE-default} |
| 6798 | case $enableval in |
| 6799 | yes) enable_shared=yes ;; |
| 6800 | no) enable_shared=no ;; |
| 6801 | *) |
| 6802 | enable_shared=no |
| 6803 | # Look at the argument we got. We use all the common list separators. |
| 6804 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6805 | for pkg in $enableval; do |
| 6806 | IFS="$lt_save_ifs" |
| 6807 | if test "X$pkg" = "X$p"; then |
| 6808 | enable_shared=yes |
| 6809 | fi |
| 6810 | done |
| 6811 | IFS="$lt_save_ifs" |
| 6812 | ;; |
| 6813 | esac |
| 6814 | else |
| 6815 | enable_shared=yes |
| 6816 | fi |
| 6817 | |
| 6818 | |
| 6819 | |
| 6820 | |
| 6821 | |
| 6822 | |
| 6823 | |
| 6824 | |
| 6825 | |
| 6826 | # Check whether --enable-static was given. |
| 6827 | if test "${enable_static+set}" = set; then : |
| 6828 | enableval=$enable_static; p=${PACKAGE-default} |
| 6829 | case $enableval in |
| 6830 | yes) enable_static=yes ;; |
| 6831 | no) enable_static=no ;; |
| 6832 | *) |
| 6833 | enable_static=no |
| 6834 | # Look at the argument we got. We use all the common list separators. |
| 6835 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6836 | for pkg in $enableval; do |
| 6837 | IFS="$lt_save_ifs" |
| 6838 | if test "X$pkg" = "X$p"; then |
| 6839 | enable_static=yes |
| 6840 | fi |
| 6841 | done |
| 6842 | IFS="$lt_save_ifs" |
| 6843 | ;; |
| 6844 | esac |
| 6845 | else |
| 6846 | enable_static=yes |
| 6847 | fi |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | |
| 6852 | |
| 6853 | |
| 6854 | |
| 6855 | |
| 6856 | |
| 6857 | |
| 6858 | # Check whether --with-pic was given. |
| 6859 | if test "${with_pic+set}" = set; then : |
| 6860 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 6861 | case $withval in |
| 6862 | yes|no) pic_mode=$withval ;; |
| 6863 | *) |
| 6864 | pic_mode=default |
| 6865 | # Look at the argument we got. We use all the common list separators. |
| 6866 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6867 | for lt_pkg in $withval; do |
| 6868 | IFS="$lt_save_ifs" |
| 6869 | if test "X$lt_pkg" = "X$lt_p"; then |
| 6870 | pic_mode=yes |
| 6871 | fi |
| 6872 | done |
| 6873 | IFS="$lt_save_ifs" |
| 6874 | ;; |
| 6875 | esac |
| 6876 | else |
| 6877 | pic_mode=default |
| 6878 | fi |
| 6879 | |
| 6880 | |
| 6881 | test -z "$pic_mode" && pic_mode=default |
| 6882 | |
| 6883 | |
| 6884 | |
| 6885 | |
| 6886 | |
| 6887 | |
| 6888 | |
| 6889 | # Check whether --enable-fast-install was given. |
| 6890 | if test "${enable_fast_install+set}" = set; then : |
| 6891 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 6892 | case $enableval in |
| 6893 | yes) enable_fast_install=yes ;; |
| 6894 | no) enable_fast_install=no ;; |
| 6895 | *) |
| 6896 | enable_fast_install=no |
| 6897 | # Look at the argument we got. We use all the common list separators. |
| 6898 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6899 | for pkg in $enableval; do |
| 6900 | IFS="$lt_save_ifs" |
| 6901 | if test "X$pkg" = "X$p"; then |
| 6902 | enable_fast_install=yes |
| 6903 | fi |
| 6904 | done |
| 6905 | IFS="$lt_save_ifs" |
| 6906 | ;; |
| 6907 | esac |
| 6908 | else |
| 6909 | enable_fast_install=yes |
| 6910 | fi |
| 6911 | |
| 6912 | |
| 6913 | |
| 6914 | |
| 6915 | |
| 6916 | |
| 6917 | |
| 6918 | |
| 6919 | |
| 6920 | |
| 6921 | |
| 6922 | # This can be used to rebuild libtool when needed |
| 6923 | LIBTOOL_DEPS="$ltmain" |
| 6924 | |
| 6925 | # Always use our own libtool. |
| 6926 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 6927 | |
| 6928 | |
| 6929 | |
| 6930 | |
| 6931 | |
| 6932 | |
| 6933 | |
| 6934 | |
| 6935 | |
| 6936 | |
| 6937 | |
| 6938 | |
| 6939 | |
| 6940 | |
| 6941 | |
| 6942 | |
| 6943 | |
| 6944 | |
| 6945 | |
| 6946 | |
| 6947 | |
| 6948 | |
| 6949 | |
| 6950 | |
| 6951 | |
| 6952 | |
| 6953 | |
| 6954 | |
| 6955 | |
| 6956 | |
| 6957 | test -z "$LN_S" && LN_S="ln -s" |
| 6958 | |
| 6959 | |
| 6960 | |
| 6961 | |
| 6962 | |
| 6963 | |
| 6964 | |
| 6965 | |
| 6966 | |
| 6967 | |
| 6968 | |
| 6969 | |
| 6970 | |
| 6971 | |
| 6972 | if test -n "${ZSH_VERSION+set}" ; then |
| 6973 | setopt NO_GLOB_SUBST |
| 6974 | fi |
| 6975 | |
| 6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 6977 | $as_echo_n "checking for objdir... " >&6; } |
| 6978 | if ${lt_cv_objdir+:} false; then : |
| 6979 | $as_echo_n "(cached) " >&6 |
| 6980 | else |
| 6981 | rm -f .libs 2>/dev/null |
| 6982 | mkdir .libs 2>/dev/null |
| 6983 | if test -d .libs; then |
| 6984 | lt_cv_objdir=.libs |
| 6985 | else |
| 6986 | # MS-DOS does not allow filenames that begin with a dot. |
| 6987 | lt_cv_objdir=_libs |
| 6988 | fi |
| 6989 | rmdir .libs 2>/dev/null |
| 6990 | fi |
| 6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 6992 | $as_echo "$lt_cv_objdir" >&6; } |
| 6993 | objdir=$lt_cv_objdir |
| 6994 | |
| 6995 | |
| 6996 | |
| 6997 | |
| 6998 | |
| 6999 | cat >>confdefs.h <<_ACEOF |
| 7000 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7001 | _ACEOF |
| 7002 | |
| 7003 | |
| 7004 | |
| 7005 | |
| 7006 | case $host_os in |
| 7007 | aix3*) |
| 7008 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7009 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7010 | # vanish in a puff of smoke. |
| 7011 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7012 | COLLECT_NAMES= |
| 7013 | export COLLECT_NAMES |
| 7014 | fi |
| 7015 | ;; |
| 7016 | esac |
| 7017 | |
| 7018 | # Global variables: |
| 7019 | ofile=libtool |
| 7020 | can_build_shared=yes |
| 7021 | |
| 7022 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 7023 | # which needs '.lib'). |
| 7024 | libext=a |
| 7025 | |
| 7026 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7027 | |
| 7028 | old_CC="$CC" |
| 7029 | old_CFLAGS="$CFLAGS" |
| 7030 | |
| 7031 | # Set sane defaults for various variables |
| 7032 | test -z "$CC" && CC=cc |
| 7033 | test -z "$LTCC" && LTCC=$CC |
| 7034 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7035 | test -z "$LD" && LD=ld |
| 7036 | test -z "$ac_objext" && ac_objext=o |
| 7037 | |
| 7038 | for cc_temp in $compiler""; do |
| 7039 | case $cc_temp in |
| 7040 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7041 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7042 | \-*) ;; |
| 7043 | *) break;; |
| 7044 | esac |
| 7045 | done |
| 7046 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 7047 | |
| 7048 | |
| 7049 | # Only perform the check for file, if the check method requires it |
| 7050 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7051 | case $deplibs_check_method in |
| 7052 | file_magic*) |
| 7053 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 7055 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 7056 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 7057 | $as_echo_n "(cached) " >&6 |
| 7058 | else |
| 7059 | case $MAGIC_CMD in |
| 7060 | [\\/*] | ?:[\\/]*) |
| 7061 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7062 | ;; |
| 7063 | *) |
| 7064 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7065 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7066 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7067 | for ac_dir in $ac_dummy; do |
| 7068 | IFS="$lt_save_ifs" |
| 7069 | test -z "$ac_dir" && ac_dir=. |
| 7070 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7071 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7072 | if test -n "$file_magic_test_file"; then |
| 7073 | case $deplibs_check_method in |
| 7074 | "file_magic "*) |
| 7075 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7076 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7077 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7078 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7079 | : |
| 7080 | else |
| 7081 | cat <<_LT_EOF 1>&2 |
| 7082 | |
| 7083 | *** Warning: the command libtool uses to detect shared libraries, |
| 7084 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7085 | *** The result is that libtool may fail to recognize shared libraries |
| 7086 | *** as such. This will affect the creation of libtool libraries that |
| 7087 | *** depend on shared libraries, but programs linked with such libtool |
| 7088 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7089 | *** may want to report the problem to your system manager and/or to |
| 7090 | *** bug-libtool@gnu.org |
| 7091 | |
| 7092 | _LT_EOF |
| 7093 | fi ;; |
| 7094 | esac |
| 7095 | fi |
| 7096 | break |
| 7097 | fi |
| 7098 | done |
| 7099 | IFS="$lt_save_ifs" |
| 7100 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7101 | ;; |
| 7102 | esac |
| 7103 | fi |
| 7104 | |
| 7105 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7106 | if test -n "$MAGIC_CMD"; then |
| 7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 7108 | $as_echo "$MAGIC_CMD" >&6; } |
| 7109 | else |
| 7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7111 | $as_echo "no" >&6; } |
| 7112 | fi |
| 7113 | |
| 7114 | |
| 7115 | |
| 7116 | |
| 7117 | |
| 7118 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7119 | if test -n "$ac_tool_prefix"; then |
| 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 7121 | $as_echo_n "checking for file... " >&6; } |
| 7122 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 7123 | $as_echo_n "(cached) " >&6 |
| 7124 | else |
| 7125 | case $MAGIC_CMD in |
| 7126 | [\\/*] | ?:[\\/]*) |
| 7127 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7128 | ;; |
| 7129 | *) |
| 7130 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7131 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7132 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7133 | for ac_dir in $ac_dummy; do |
| 7134 | IFS="$lt_save_ifs" |
| 7135 | test -z "$ac_dir" && ac_dir=. |
| 7136 | if test -f $ac_dir/file; then |
| 7137 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7138 | if test -n "$file_magic_test_file"; then |
| 7139 | case $deplibs_check_method in |
| 7140 | "file_magic "*) |
| 7141 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7142 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7143 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7144 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7145 | : |
| 7146 | else |
| 7147 | cat <<_LT_EOF 1>&2 |
| 7148 | |
| 7149 | *** Warning: the command libtool uses to detect shared libraries, |
| 7150 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7151 | *** The result is that libtool may fail to recognize shared libraries |
| 7152 | *** as such. This will affect the creation of libtool libraries that |
| 7153 | *** depend on shared libraries, but programs linked with such libtool |
| 7154 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7155 | *** may want to report the problem to your system manager and/or to |
| 7156 | *** bug-libtool@gnu.org |
| 7157 | |
| 7158 | _LT_EOF |
| 7159 | fi ;; |
| 7160 | esac |
| 7161 | fi |
| 7162 | break |
| 7163 | fi |
| 7164 | done |
| 7165 | IFS="$lt_save_ifs" |
| 7166 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7167 | ;; |
| 7168 | esac |
| 7169 | fi |
| 7170 | |
| 7171 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7172 | if test -n "$MAGIC_CMD"; then |
| 7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 7174 | $as_echo "$MAGIC_CMD" >&6; } |
| 7175 | else |
| 7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7177 | $as_echo "no" >&6; } |
| 7178 | fi |
| 7179 | |
| 7180 | |
| 7181 | else |
| 7182 | MAGIC_CMD=: |
| 7183 | fi |
| 7184 | fi |
| 7185 | |
| 7186 | fi |
| 7187 | ;; |
| 7188 | esac |
| 7189 | |
| 7190 | # Use C for the default configuration in the libtool script |
| 7191 | |
| 7192 | lt_save_CC="$CC" |
| 7193 | ac_ext=c |
| 7194 | ac_cpp='$CPP $CPPFLAGS' |
| 7195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7198 | |
| 7199 | |
| 7200 | # Source file extension for C test sources. |
| 7201 | ac_ext=c |
| 7202 | |
| 7203 | # Object file extension for compiled C test sources. |
| 7204 | objext=o |
| 7205 | objext=$objext |
| 7206 | |
| 7207 | # Code to be used in simple compile tests |
| 7208 | lt_simple_compile_test_code="int some_variable = 0;" |
| 7209 | |
| 7210 | # Code to be used in simple link tests |
| 7211 | lt_simple_link_test_code='int main(){return(0);}' |
| 7212 | |
| 7213 | |
| 7214 | |
| 7215 | |
| 7216 | |
| 7217 | |
| 7218 | |
| 7219 | # If no C compiler was specified, use CC. |
| 7220 | LTCC=${LTCC-"$CC"} |
| 7221 | |
| 7222 | # If no C compiler flags were specified, use CFLAGS. |
| 7223 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7224 | |
| 7225 | # Allow CC to be a program name with arguments. |
| 7226 | compiler=$CC |
| 7227 | |
| 7228 | # Save the default compiler, since it gets overwritten when the other |
| 7229 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 7230 | compiler_DEFAULT=$CC |
| 7231 | |
| 7232 | # save warnings/boilerplate of simple test code |
| 7233 | ac_outfile=conftest.$ac_objext |
| 7234 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7235 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7236 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7237 | $RM conftest* |
| 7238 | |
| 7239 | ac_outfile=conftest.$ac_objext |
| 7240 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7241 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7242 | _lt_linker_boilerplate=`cat conftest.err` |
| 7243 | $RM -r conftest* |
| 7244 | |
| 7245 | |
| 7246 | if test -n "$compiler"; then |
| 7247 | |
| 7248 | lt_prog_compiler_no_builtin_flag= |
| 7249 | |
| 7250 | if test "$GCC" = yes; then |
| 7251 | case $cc_basename in |
| 7252 | nvcc*) |
| 7253 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 7254 | *) |
| 7255 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 7256 | esac |
| 7257 | |
| 7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7259 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 7260 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 7261 | $as_echo_n "(cached) " >&6 |
| 7262 | else |
| 7263 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7264 | ac_outfile=conftest.$ac_objext |
| 7265 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7266 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7267 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7268 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7269 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7270 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7271 | # The option is referenced via a variable to avoid confusing sed. |
| 7272 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7273 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7274 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7275 | -e 's:$: $lt_compiler_flag:'` |
| 7276 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 7277 | (eval "$lt_compile" 2>conftest.err) |
| 7278 | ac_status=$? |
| 7279 | cat conftest.err >&5 |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7282 | # The compiler can only warn and ignore the option if not recognized |
| 7283 | # So say no if there are warnings other than the usual output. |
| 7284 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 7285 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7286 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7287 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7288 | fi |
| 7289 | fi |
| 7290 | $RM conftest* |
| 7291 | |
| 7292 | fi |
| 7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7294 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 7295 | |
| 7296 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7297 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7298 | else |
| 7299 | : |
| 7300 | fi |
| 7301 | |
| 7302 | fi |
| 7303 | |
| 7304 | |
| 7305 | |
| 7306 | |
| 7307 | |
| 7308 | |
| 7309 | lt_prog_compiler_wl= |
| 7310 | lt_prog_compiler_pic= |
| 7311 | lt_prog_compiler_static= |
| 7312 | |
| 7313 | |
| 7314 | if test "$GCC" = yes; then |
| 7315 | lt_prog_compiler_wl='-Wl,' |
| 7316 | lt_prog_compiler_static='-static' |
| 7317 | |
| 7318 | case $host_os in |
| 7319 | aix*) |
| 7320 | # All AIX code is PIC. |
| 7321 | if test "$host_cpu" = ia64; then |
| 7322 | # AIX 5 now supports IA64 processor |
| 7323 | lt_prog_compiler_static='-Bstatic' |
| 7324 | fi |
| 7325 | ;; |
| 7326 | |
| 7327 | amigaos*) |
| 7328 | case $host_cpu in |
| 7329 | powerpc) |
| 7330 | # see comment about AmigaOS4 .so support |
| 7331 | lt_prog_compiler_pic='-fPIC' |
| 7332 | ;; |
| 7333 | m68k) |
| 7334 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7335 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7336 | # like `-m68040'. |
| 7337 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7338 | ;; |
| 7339 | esac |
| 7340 | ;; |
| 7341 | |
| 7342 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7343 | # PIC is the default for these OSes. |
| 7344 | ;; |
| 7345 | |
| 7346 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 7347 | # This hack is so that the source file can tell whether it is being |
| 7348 | # built for inclusion in a dll (and should export symbols for example). |
| 7349 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7350 | # (--disable-auto-import) libraries |
| 7351 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7352 | ;; |
| 7353 | |
| 7354 | darwin* | rhapsody*) |
| 7355 | # PIC is the default on this platform |
| 7356 | # Common symbols not allowed in MH_DYLIB files |
| 7357 | lt_prog_compiler_pic='-fno-common' |
| 7358 | ;; |
| 7359 | |
| 7360 | haiku*) |
| 7361 | # PIC is the default for Haiku. |
| 7362 | # The "-static" flag exists, but is broken. |
| 7363 | lt_prog_compiler_static= |
| 7364 | ;; |
| 7365 | |
| 7366 | hpux*) |
| 7367 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 7368 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 7369 | # sets the default TLS model and affects inlining. |
| 7370 | case $host_cpu in |
| 7371 | hppa*64*) |
| 7372 | # +Z the default |
| 7373 | ;; |
| 7374 | *) |
| 7375 | lt_prog_compiler_pic='-fPIC' |
| 7376 | ;; |
| 7377 | esac |
| 7378 | ;; |
| 7379 | |
| 7380 | interix[3-9]*) |
| 7381 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7382 | # Instead, we relocate shared libraries at runtime. |
| 7383 | ;; |
| 7384 | |
| 7385 | msdosdjgpp*) |
| 7386 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7387 | # on systems that don't support them. |
| 7388 | lt_prog_compiler_can_build_shared=no |
| 7389 | enable_shared=no |
| 7390 | ;; |
| 7391 | |
| 7392 | *nto* | *qnx*) |
| 7393 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7394 | # it will coredump. |
| 7395 | lt_prog_compiler_pic='-fPIC -shared' |
| 7396 | ;; |
| 7397 | |
| 7398 | sysv4*MP*) |
| 7399 | if test -d /usr/nec; then |
| 7400 | lt_prog_compiler_pic=-Kconform_pic |
| 7401 | fi |
| 7402 | ;; |
| 7403 | |
| 7404 | *) |
| 7405 | lt_prog_compiler_pic='-fPIC' |
| 7406 | ;; |
| 7407 | esac |
| 7408 | |
| 7409 | case $cc_basename in |
| 7410 | nvcc*) # Cuda Compiler Driver 2.2 |
| 7411 | lt_prog_compiler_wl='-Xlinker ' |
| 7412 | if test -n "$lt_prog_compiler_pic"; then |
| 7413 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 7414 | fi |
| 7415 | ;; |
| 7416 | esac |
| 7417 | else |
| 7418 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7419 | case $host_os in |
| 7420 | aix*) |
| 7421 | lt_prog_compiler_wl='-Wl,' |
| 7422 | if test "$host_cpu" = ia64; then |
| 7423 | # AIX 5 now supports IA64 processor |
| 7424 | lt_prog_compiler_static='-Bstatic' |
| 7425 | else |
| 7426 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7427 | fi |
| 7428 | ;; |
| 7429 | |
| 7430 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 7431 | # This hack is so that the source file can tell whether it is being |
| 7432 | # built for inclusion in a dll (and should export symbols for example). |
| 7433 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7434 | ;; |
| 7435 | |
| 7436 | hpux9* | hpux10* | hpux11*) |
| 7437 | lt_prog_compiler_wl='-Wl,' |
| 7438 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7439 | # not for PA HP-UX. |
| 7440 | case $host_cpu in |
| 7441 | hppa*64*|ia64*) |
| 7442 | # +Z the default |
| 7443 | ;; |
| 7444 | *) |
| 7445 | lt_prog_compiler_pic='+Z' |
| 7446 | ;; |
| 7447 | esac |
| 7448 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7449 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7450 | ;; |
| 7451 | |
| 7452 | irix5* | irix6* | nonstopux*) |
| 7453 | lt_prog_compiler_wl='-Wl,' |
| 7454 | # PIC (with -KPIC) is the default. |
| 7455 | lt_prog_compiler_static='-non_shared' |
| 7456 | ;; |
| 7457 | |
| 7458 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 7459 | case $cc_basename in |
| 7460 | # old Intel for x86_64 which still supported -KPIC. |
| 7461 | ecc*) |
| 7462 | lt_prog_compiler_wl='-Wl,' |
| 7463 | lt_prog_compiler_pic='-KPIC' |
| 7464 | lt_prog_compiler_static='-static' |
| 7465 | ;; |
| 7466 | # icc used to be incompatible with GCC. |
| 7467 | # ICC 10 doesn't accept -KPIC any more. |
| 7468 | icc* | ifort*) |
| 7469 | lt_prog_compiler_wl='-Wl,' |
| 7470 | lt_prog_compiler_pic='-fPIC' |
| 7471 | lt_prog_compiler_static='-static' |
| 7472 | ;; |
| 7473 | # Lahey Fortran 8.1. |
| 7474 | lf95*) |
| 7475 | lt_prog_compiler_wl='-Wl,' |
| 7476 | lt_prog_compiler_pic='--shared' |
| 7477 | lt_prog_compiler_static='--static' |
| 7478 | ;; |
| 7479 | nagfor*) |
| 7480 | # NAG Fortran compiler |
| 7481 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 7482 | lt_prog_compiler_pic='-PIC' |
| 7483 | lt_prog_compiler_static='-Bstatic' |
| 7484 | ;; |
| 7485 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 7486 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7487 | # which looks to be a dead project) |
| 7488 | lt_prog_compiler_wl='-Wl,' |
| 7489 | lt_prog_compiler_pic='-fpic' |
| 7490 | lt_prog_compiler_static='-Bstatic' |
| 7491 | ;; |
| 7492 | ccc*) |
| 7493 | lt_prog_compiler_wl='-Wl,' |
| 7494 | # All Alpha code is PIC. |
| 7495 | lt_prog_compiler_static='-non_shared' |
| 7496 | ;; |
| 7497 | xl* | bgxl* | bgf* | mpixl*) |
| 7498 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 7499 | lt_prog_compiler_wl='-Wl,' |
| 7500 | lt_prog_compiler_pic='-qpic' |
| 7501 | lt_prog_compiler_static='-qstaticlink' |
| 7502 | ;; |
| 7503 | *) |
| 7504 | case `$CC -V 2>&1 | sed 5q` in |
| 7505 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 7506 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 7507 | lt_prog_compiler_pic='-KPIC' |
| 7508 | lt_prog_compiler_static='-Bstatic' |
| 7509 | lt_prog_compiler_wl='' |
| 7510 | ;; |
| 7511 | *Sun\ F* | *Sun*Fortran*) |
| 7512 | lt_prog_compiler_pic='-KPIC' |
| 7513 | lt_prog_compiler_static='-Bstatic' |
| 7514 | lt_prog_compiler_wl='-Qoption ld ' |
| 7515 | ;; |
| 7516 | *Sun\ C*) |
| 7517 | # Sun C 5.9 |
| 7518 | lt_prog_compiler_pic='-KPIC' |
| 7519 | lt_prog_compiler_static='-Bstatic' |
| 7520 | lt_prog_compiler_wl='-Wl,' |
| 7521 | ;; |
| 7522 | *Intel*\ [CF]*Compiler*) |
| 7523 | lt_prog_compiler_wl='-Wl,' |
| 7524 | lt_prog_compiler_pic='-fPIC' |
| 7525 | lt_prog_compiler_static='-static' |
| 7526 | ;; |
| 7527 | *Portland\ Group*) |
| 7528 | lt_prog_compiler_wl='-Wl,' |
| 7529 | lt_prog_compiler_pic='-fpic' |
| 7530 | lt_prog_compiler_static='-Bstatic' |
| 7531 | ;; |
| 7532 | esac |
| 7533 | ;; |
| 7534 | esac |
| 7535 | ;; |
| 7536 | |
| 7537 | newsos6) |
| 7538 | lt_prog_compiler_pic='-KPIC' |
| 7539 | lt_prog_compiler_static='-Bstatic' |
| 7540 | ;; |
| 7541 | |
| 7542 | *nto* | *qnx*) |
| 7543 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7544 | # it will coredump. |
| 7545 | lt_prog_compiler_pic='-fPIC -shared' |
| 7546 | ;; |
| 7547 | |
| 7548 | osf3* | osf4* | osf5*) |
| 7549 | lt_prog_compiler_wl='-Wl,' |
| 7550 | # All OSF/1 code is PIC. |
| 7551 | lt_prog_compiler_static='-non_shared' |
| 7552 | ;; |
| 7553 | |
| 7554 | rdos*) |
| 7555 | lt_prog_compiler_static='-non_shared' |
| 7556 | ;; |
| 7557 | |
| 7558 | solaris*) |
| 7559 | lt_prog_compiler_pic='-KPIC' |
| 7560 | lt_prog_compiler_static='-Bstatic' |
| 7561 | case $cc_basename in |
| 7562 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 7563 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7564 | *) |
| 7565 | lt_prog_compiler_wl='-Wl,';; |
| 7566 | esac |
| 7567 | ;; |
| 7568 | |
| 7569 | sunos4*) |
| 7570 | lt_prog_compiler_wl='-Qoption ld ' |
| 7571 | lt_prog_compiler_pic='-PIC' |
| 7572 | lt_prog_compiler_static='-Bstatic' |
| 7573 | ;; |
| 7574 | |
| 7575 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 7576 | lt_prog_compiler_wl='-Wl,' |
| 7577 | lt_prog_compiler_pic='-KPIC' |
| 7578 | lt_prog_compiler_static='-Bstatic' |
| 7579 | ;; |
| 7580 | |
| 7581 | sysv4*MP*) |
| 7582 | if test -d /usr/nec ;then |
| 7583 | lt_prog_compiler_pic='-Kconform_pic' |
| 7584 | lt_prog_compiler_static='-Bstatic' |
| 7585 | fi |
| 7586 | ;; |
| 7587 | |
| 7588 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7589 | lt_prog_compiler_wl='-Wl,' |
| 7590 | lt_prog_compiler_pic='-KPIC' |
| 7591 | lt_prog_compiler_static='-Bstatic' |
| 7592 | ;; |
| 7593 | |
| 7594 | unicos*) |
| 7595 | lt_prog_compiler_wl='-Wl,' |
| 7596 | lt_prog_compiler_can_build_shared=no |
| 7597 | ;; |
| 7598 | |
| 7599 | uts4*) |
| 7600 | lt_prog_compiler_pic='-pic' |
| 7601 | lt_prog_compiler_static='-Bstatic' |
| 7602 | ;; |
| 7603 | |
| 7604 | *) |
| 7605 | lt_prog_compiler_can_build_shared=no |
| 7606 | ;; |
| 7607 | esac |
| 7608 | fi |
| 7609 | |
| 7610 | case $host_os in |
| 7611 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7612 | *djgpp*) |
| 7613 | lt_prog_compiler_pic= |
| 7614 | ;; |
| 7615 | *) |
| 7616 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7617 | ;; |
| 7618 | esac |
| 7619 | |
| 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 7621 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 7622 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 7623 | $as_echo_n "(cached) " >&6 |
| 7624 | else |
| 7625 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 7626 | fi |
| 7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 7628 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 7629 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 7630 | |
| 7631 | # |
| 7632 | # Check to make sure the PIC flag actually works. |
| 7633 | # |
| 7634 | if test -n "$lt_prog_compiler_pic"; then |
| 7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7636 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 7637 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 7638 | $as_echo_n "(cached) " >&6 |
| 7639 | else |
| 7640 | lt_cv_prog_compiler_pic_works=no |
| 7641 | ac_outfile=conftest.$ac_objext |
| 7642 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7643 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7644 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7645 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7646 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7647 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7648 | # The option is referenced via a variable to avoid confusing sed. |
| 7649 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7650 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7651 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7652 | -e 's:$: $lt_compiler_flag:'` |
| 7653 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 7654 | (eval "$lt_compile" 2>conftest.err) |
| 7655 | ac_status=$? |
| 7656 | cat conftest.err >&5 |
| 7657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7658 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7659 | # The compiler can only warn and ignore the option if not recognized |
| 7660 | # So say no if there are warnings other than the usual output. |
| 7661 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 7662 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7663 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7664 | lt_cv_prog_compiler_pic_works=yes |
| 7665 | fi |
| 7666 | fi |
| 7667 | $RM conftest* |
| 7668 | |
| 7669 | fi |
| 7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 7671 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 7672 | |
| 7673 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 7674 | case $lt_prog_compiler_pic in |
| 7675 | "" | " "*) ;; |
| 7676 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7677 | esac |
| 7678 | else |
| 7679 | lt_prog_compiler_pic= |
| 7680 | lt_prog_compiler_can_build_shared=no |
| 7681 | fi |
| 7682 | |
| 7683 | fi |
| 7684 | |
| 7685 | |
| 7686 | |
| 7687 | |
| 7688 | |
| 7689 | |
| 7690 | |
| 7691 | |
| 7692 | |
| 7693 | |
| 7694 | |
| 7695 | # |
| 7696 | # Check to make sure the static flag actually works. |
| 7697 | # |
| 7698 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7700 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 7701 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 7702 | $as_echo_n "(cached) " >&6 |
| 7703 | else |
| 7704 | lt_cv_prog_compiler_static_works=no |
| 7705 | save_LDFLAGS="$LDFLAGS" |
| 7706 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7707 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7708 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7709 | # The linker can only warn and ignore the option if not recognized |
| 7710 | # So say no if there are warnings |
| 7711 | if test -s conftest.err; then |
| 7712 | # Append any errors to the config.log. |
| 7713 | cat conftest.err 1>&5 |
| 7714 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 7715 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7716 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7717 | lt_cv_prog_compiler_static_works=yes |
| 7718 | fi |
| 7719 | else |
| 7720 | lt_cv_prog_compiler_static_works=yes |
| 7721 | fi |
| 7722 | fi |
| 7723 | $RM -r conftest* |
| 7724 | LDFLAGS="$save_LDFLAGS" |
| 7725 | |
| 7726 | fi |
| 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 7728 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 7729 | |
| 7730 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 7731 | : |
| 7732 | else |
| 7733 | lt_prog_compiler_static= |
| 7734 | fi |
| 7735 | |
| 7736 | |
| 7737 | |
| 7738 | |
| 7739 | |
| 7740 | |
| 7741 | |
| 7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7743 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 7744 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 7745 | $as_echo_n "(cached) " >&6 |
| 7746 | else |
| 7747 | lt_cv_prog_compiler_c_o=no |
| 7748 | $RM -r conftest 2>/dev/null |
| 7749 | mkdir conftest |
| 7750 | cd conftest |
| 7751 | mkdir out |
| 7752 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7753 | |
| 7754 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7755 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7756 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7757 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7758 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7759 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7760 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7761 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7762 | -e 's:$: $lt_compiler_flag:'` |
| 7763 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 7764 | (eval "$lt_compile" 2>out/conftest.err) |
| 7765 | ac_status=$? |
| 7766 | cat out/conftest.err >&5 |
| 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7768 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7769 | then |
| 7770 | # The compiler can only warn and ignore the option if not recognized |
| 7771 | # So say no if there are warnings |
| 7772 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 7773 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7774 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7775 | lt_cv_prog_compiler_c_o=yes |
| 7776 | fi |
| 7777 | fi |
| 7778 | chmod u+w . 2>&5 |
| 7779 | $RM conftest* |
| 7780 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7781 | # template instantiation |
| 7782 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7783 | $RM out/* && rmdir out |
| 7784 | cd .. |
| 7785 | $RM -r conftest |
| 7786 | $RM conftest* |
| 7787 | |
| 7788 | fi |
| 7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7790 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 7791 | |
| 7792 | |
| 7793 | |
| 7794 | |
| 7795 | |
| 7796 | |
| 7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7798 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 7799 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 7800 | $as_echo_n "(cached) " >&6 |
| 7801 | else |
| 7802 | lt_cv_prog_compiler_c_o=no |
| 7803 | $RM -r conftest 2>/dev/null |
| 7804 | mkdir conftest |
| 7805 | cd conftest |
| 7806 | mkdir out |
| 7807 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7808 | |
| 7809 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7810 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7811 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7812 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7813 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7814 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7815 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7816 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7817 | -e 's:$: $lt_compiler_flag:'` |
| 7818 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 7819 | (eval "$lt_compile" 2>out/conftest.err) |
| 7820 | ac_status=$? |
| 7821 | cat out/conftest.err >&5 |
| 7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7823 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7824 | then |
| 7825 | # The compiler can only warn and ignore the option if not recognized |
| 7826 | # So say no if there are warnings |
| 7827 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 7828 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7829 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7830 | lt_cv_prog_compiler_c_o=yes |
| 7831 | fi |
| 7832 | fi |
| 7833 | chmod u+w . 2>&5 |
| 7834 | $RM conftest* |
| 7835 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7836 | # template instantiation |
| 7837 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7838 | $RM out/* && rmdir out |
| 7839 | cd .. |
| 7840 | $RM -r conftest |
| 7841 | $RM conftest* |
| 7842 | |
| 7843 | fi |
| 7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7845 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 7846 | |
| 7847 | |
| 7848 | |
| 7849 | |
| 7850 | hard_links="nottested" |
| 7851 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7852 | # do not overwrite the value of need_locks provided by the user |
| 7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 7854 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 7855 | hard_links=yes |
| 7856 | $RM conftest* |
| 7857 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7858 | touch conftest.a |
| 7859 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7860 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 7862 | $as_echo "$hard_links" >&6; } |
| 7863 | if test "$hard_links" = no; then |
| 7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7865 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7866 | need_locks=warn |
| 7867 | fi |
| 7868 | else |
| 7869 | need_locks=no |
| 7870 | fi |
| 7871 | |
| 7872 | |
| 7873 | |
| 7874 | |
| 7875 | |
| 7876 | |
| 7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7878 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 7879 | |
| 7880 | runpath_var= |
| 7881 | allow_undefined_flag= |
| 7882 | always_export_symbols=no |
| 7883 | archive_cmds= |
| 7884 | archive_expsym_cmds= |
| 7885 | compiler_needs_object=no |
| 7886 | enable_shared_with_static_runtimes=no |
| 7887 | export_dynamic_flag_spec= |
| 7888 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7889 | hardcode_automatic=no |
| 7890 | hardcode_direct=no |
| 7891 | hardcode_direct_absolute=no |
| 7892 | hardcode_libdir_flag_spec= |
| 7893 | hardcode_libdir_separator= |
| 7894 | hardcode_minus_L=no |
| 7895 | hardcode_shlibpath_var=unsupported |
| 7896 | inherit_rpath=no |
| 7897 | link_all_deplibs=unknown |
| 7898 | module_cmds= |
| 7899 | module_expsym_cmds= |
| 7900 | old_archive_from_new_cmds= |
| 7901 | old_archive_from_expsyms_cmds= |
| 7902 | thread_safe_flag_spec= |
| 7903 | whole_archive_flag_spec= |
| 7904 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7905 | # included in the symbol list |
| 7906 | include_expsyms= |
| 7907 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7908 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7909 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7910 | # as well as any symbol that contains `d'. |
| 7911 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 7912 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7913 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7914 | # the symbol is explicitly referenced. Since portable code cannot |
| 7915 | # rely on this symbol name, it's probably fine to never include it in |
| 7916 | # preloaded symbol tables. |
| 7917 | # Exclude shared library initialization/finalization symbols. |
| 7918 | extract_expsyms_cmds= |
| 7919 | |
| 7920 | case $host_os in |
| 7921 | cygwin* | mingw* | pw32* | cegcc*) |
| 7922 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7923 | # When not using gcc, we currently assume that we are using |
| 7924 | # Microsoft Visual C++. |
| 7925 | if test "$GCC" != yes; then |
| 7926 | with_gnu_ld=no |
| 7927 | fi |
| 7928 | ;; |
| 7929 | interix*) |
| 7930 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7931 | with_gnu_ld=yes |
| 7932 | ;; |
| 7933 | openbsd*) |
| 7934 | with_gnu_ld=no |
| 7935 | ;; |
| 7936 | esac |
| 7937 | |
| 7938 | ld_shlibs=yes |
| 7939 | |
| 7940 | # On some targets, GNU ld is compatible enough with the native linker |
| 7941 | # that we're better off using the native interface for both. |
| 7942 | lt_use_gnu_ld_interface=no |
| 7943 | if test "$with_gnu_ld" = yes; then |
| 7944 | case $host_os in |
| 7945 | aix*) |
| 7946 | # The AIX port of GNU ld has always aspired to compatibility |
| 7947 | # with the native linker. However, as the warning in the GNU ld |
| 7948 | # block says, versions before 2.19.5* couldn't really create working |
| 7949 | # shared libraries, regardless of the interface used. |
| 7950 | case `$LD -v 2>&1` in |
| 7951 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 7952 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 7953 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 7954 | *) |
| 7955 | lt_use_gnu_ld_interface=yes |
| 7956 | ;; |
| 7957 | esac |
| 7958 | ;; |
| 7959 | *) |
| 7960 | lt_use_gnu_ld_interface=yes |
| 7961 | ;; |
| 7962 | esac |
| 7963 | fi |
| 7964 | |
| 7965 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 7966 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7967 | wlarc='${wl}' |
| 7968 | |
| 7969 | # Set some defaults for GNU ld with shared library support. These |
| 7970 | # are reset later if shared libraries are not supported. Putting them |
| 7971 | # here allows them to be overridden if necessary. |
| 7972 | runpath_var=LD_RUN_PATH |
| 7973 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7974 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7975 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7976 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 7977 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7978 | else |
| 7979 | whole_archive_flag_spec= |
| 7980 | fi |
| 7981 | supports_anon_versioning=no |
| 7982 | case `$LD -v 2>&1` in |
| 7983 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 7984 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7985 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7986 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7987 | *\ 2.11.*) ;; # other 2.11 versions |
| 7988 | *) supports_anon_versioning=yes ;; |
| 7989 | esac |
| 7990 | |
| 7991 | # See if GNU ld supports shared libraries. |
| 7992 | case $host_os in |
| 7993 | aix[3-9]*) |
| 7994 | # On AIX/PPC, the GNU linker is very broken |
| 7995 | if test "$host_cpu" != ia64; then |
| 7996 | ld_shlibs=no |
| 7997 | cat <<_LT_EOF 1>&2 |
| 7998 | |
| 7999 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 8000 | *** to be unable to reliably create shared libraries on AIX. |
| 8001 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8002 | *** really care for shared libraries, you may want to install binutils |
| 8003 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 8004 | *** You will then need to restart the configuration process. |
| 8005 | |
| 8006 | _LT_EOF |
| 8007 | fi |
| 8008 | ;; |
| 8009 | |
| 8010 | amigaos*) |
| 8011 | case $host_cpu in |
| 8012 | powerpc) |
| 8013 | # see comment about AmigaOS4 .so support |
| 8014 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8015 | archive_expsym_cmds='' |
| 8016 | ;; |
| 8017 | m68k) |
| 8018 | 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)' |
| 8019 | hardcode_libdir_flag_spec='-L$libdir' |
| 8020 | hardcode_minus_L=yes |
| 8021 | ;; |
| 8022 | esac |
| 8023 | ;; |
| 8024 | |
| 8025 | beos*) |
| 8026 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8027 | allow_undefined_flag=unsupported |
| 8028 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8029 | # support --undefined. This deserves some investigation. FIXME |
| 8030 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8031 | else |
| 8032 | ld_shlibs=no |
| 8033 | fi |
| 8034 | ;; |
| 8035 | |
| 8036 | cygwin* | mingw* | pw32* | cegcc*) |
| 8037 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 8038 | # as there is no search path for DLLs. |
| 8039 | hardcode_libdir_flag_spec='-L$libdir' |
| 8040 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 8041 | allow_undefined_flag=unsupported |
| 8042 | always_export_symbols=no |
| 8043 | enable_shared_with_static_runtimes=yes |
| 8044 | 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' |
| 8045 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 8046 | |
| 8047 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 8048 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8049 | # If the export-symbols file already is a .def file (1st line |
| 8050 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8051 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8052 | cp $export_symbols $output_objdir/$soname.def; |
| 8053 | else |
| 8054 | echo EXPORTS > $output_objdir/$soname.def; |
| 8055 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8056 | fi~ |
| 8057 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8058 | else |
| 8059 | ld_shlibs=no |
| 8060 | fi |
| 8061 | ;; |
| 8062 | |
| 8063 | haiku*) |
| 8064 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8065 | link_all_deplibs=yes |
| 8066 | ;; |
| 8067 | |
| 8068 | interix[3-9]*) |
| 8069 | hardcode_direct=no |
| 8070 | hardcode_shlibpath_var=no |
| 8071 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8072 | export_dynamic_flag_spec='${wl}-E' |
| 8073 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8074 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8075 | # default) and relocated if they conflict, which is a slow very memory |
| 8076 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8077 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8078 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8079 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8080 | 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' |
| 8081 | ;; |
| 8082 | |
| 8083 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8084 | tmp_diet=no |
| 8085 | if test "$host_os" = linux-dietlibc; then |
| 8086 | case $cc_basename in |
| 8087 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8088 | esac |
| 8089 | fi |
| 8090 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8091 | && test "$tmp_diet" = no |
| 8092 | then |
| 8093 | tmp_addflag=' $pic_flag' |
| 8094 | tmp_sharedflag='-shared' |
| 8095 | case $cc_basename,$host_cpu in |
| 8096 | pgcc*) # Portland Group C compiler |
| 8097 | 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' |
| 8098 | tmp_addflag=' $pic_flag' |
| 8099 | ;; |
| 8100 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8101 | # Portland Group f77 and f90 compilers |
| 8102 | 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' |
| 8103 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8104 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8105 | tmp_addflag=' -i_dynamic' ;; |
| 8106 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8107 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8108 | ifc* | ifort*) # Intel Fortran compiler |
| 8109 | tmp_addflag=' -nofor_main' ;; |
| 8110 | lf95*) # Lahey Fortran 8.1 |
| 8111 | whole_archive_flag_spec= |
| 8112 | tmp_sharedflag='--shared' ;; |
| 8113 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 8114 | tmp_sharedflag='-qmkshrobj' |
| 8115 | tmp_addflag= ;; |
| 8116 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8117 | 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' |
| 8118 | compiler_needs_object=yes |
| 8119 | ;; |
| 8120 | esac |
| 8121 | case `$CC -V 2>&1 | sed 5q` in |
| 8122 | *Sun\ C*) # Sun C 5.9 |
| 8123 | 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' |
| 8124 | compiler_needs_object=yes |
| 8125 | tmp_sharedflag='-G' ;; |
| 8126 | *Sun\ F*) # Sun Fortran 8.3 |
| 8127 | tmp_sharedflag='-G' ;; |
| 8128 | esac |
| 8129 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8130 | |
| 8131 | if test "x$supports_anon_versioning" = xyes; then |
| 8132 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8133 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8134 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8135 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8136 | fi |
| 8137 | |
| 8138 | case $cc_basename in |
| 8139 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 8140 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8141 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 8142 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8143 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 8144 | if test "x$supports_anon_versioning" = xyes; then |
| 8145 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8146 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8147 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8148 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 8149 | fi |
| 8150 | ;; |
| 8151 | esac |
| 8152 | else |
| 8153 | ld_shlibs=no |
| 8154 | fi |
| 8155 | ;; |
| 8156 | |
| 8157 | netbsd*) |
| 8158 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8159 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8160 | wlarc= |
| 8161 | else |
| 8162 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8163 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8164 | fi |
| 8165 | ;; |
| 8166 | |
| 8167 | solaris*) |
| 8168 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 8169 | ld_shlibs=no |
| 8170 | cat <<_LT_EOF 1>&2 |
| 8171 | |
| 8172 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8173 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8174 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8175 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8176 | *** your PATH or compiler configuration so that the native linker is |
| 8177 | *** used, and then restart. |
| 8178 | |
| 8179 | _LT_EOF |
| 8180 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8181 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8182 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8183 | else |
| 8184 | ld_shlibs=no |
| 8185 | fi |
| 8186 | ;; |
| 8187 | |
| 8188 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8189 | case `$LD -v 2>&1` in |
| 8190 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8191 | ld_shlibs=no |
| 8192 | cat <<_LT_EOF 1>&2 |
| 8193 | |
| 8194 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8195 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8196 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8197 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8198 | *** your PATH or compiler configuration so that the native linker is |
| 8199 | *** used, and then restart. |
| 8200 | |
| 8201 | _LT_EOF |
| 8202 | ;; |
| 8203 | *) |
| 8204 | # For security reasons, it is highly recommended that you always |
| 8205 | # use absolute paths for naming shared libraries, and exclude the |
| 8206 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 8207 | # requires that you compile everything twice, which is a pain. |
| 8208 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8209 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8210 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8211 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8212 | else |
| 8213 | ld_shlibs=no |
| 8214 | fi |
| 8215 | ;; |
| 8216 | esac |
| 8217 | ;; |
| 8218 | |
| 8219 | sunos4*) |
| 8220 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8221 | wlarc= |
| 8222 | hardcode_direct=yes |
| 8223 | hardcode_shlibpath_var=no |
| 8224 | ;; |
| 8225 | |
| 8226 | *) |
| 8227 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8228 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8229 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8230 | else |
| 8231 | ld_shlibs=no |
| 8232 | fi |
| 8233 | ;; |
| 8234 | esac |
| 8235 | |
| 8236 | if test "$ld_shlibs" = no; then |
| 8237 | runpath_var= |
| 8238 | hardcode_libdir_flag_spec= |
| 8239 | export_dynamic_flag_spec= |
| 8240 | whole_archive_flag_spec= |
| 8241 | fi |
| 8242 | else |
| 8243 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8244 | case $host_os in |
| 8245 | aix3*) |
| 8246 | allow_undefined_flag=unsupported |
| 8247 | always_export_symbols=yes |
| 8248 | 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' |
| 8249 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8250 | # are no directories specified by -L. |
| 8251 | hardcode_minus_L=yes |
| 8252 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 8253 | # Neither direct hardcoding nor static linking is supported with a |
| 8254 | # broken collect2. |
| 8255 | hardcode_direct=unsupported |
| 8256 | fi |
| 8257 | ;; |
| 8258 | |
| 8259 | aix[4-9]*) |
| 8260 | if test "$host_cpu" = ia64; then |
| 8261 | # On IA64, the linker does run time linking by default, so we don't |
| 8262 | # have to do anything special. |
| 8263 | aix_use_runtimelinking=no |
| 8264 | exp_sym_flag='-Bexport' |
| 8265 | no_entry_flag="" |
| 8266 | else |
| 8267 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8268 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8269 | # Also, AIX nm treats weak defined symbols like other global |
| 8270 | # defined symbols, whereas GNU nm marks them as "W". |
| 8271 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 8272 | 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' |
| 8273 | else |
| 8274 | 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' |
| 8275 | fi |
| 8276 | aix_use_runtimelinking=no |
| 8277 | |
| 8278 | # Test if we are trying to use run time linking or normal |
| 8279 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8280 | # need to do runtime linking. |
| 8281 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 8282 | for ld_flag in $LDFLAGS; do |
| 8283 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8284 | aix_use_runtimelinking=yes |
| 8285 | break |
| 8286 | fi |
| 8287 | done |
| 8288 | ;; |
| 8289 | esac |
| 8290 | |
| 8291 | exp_sym_flag='-bexport' |
| 8292 | no_entry_flag='-bnoentry' |
| 8293 | fi |
| 8294 | |
| 8295 | # When large executables or shared objects are built, AIX ld can |
| 8296 | # have problems creating the table of contents. If linking a library |
| 8297 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8298 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8299 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8300 | |
| 8301 | archive_cmds='' |
| 8302 | hardcode_direct=yes |
| 8303 | hardcode_direct_absolute=yes |
| 8304 | hardcode_libdir_separator=':' |
| 8305 | link_all_deplibs=yes |
| 8306 | file_list_spec='${wl}-f,' |
| 8307 | |
| 8308 | if test "$GCC" = yes; then |
| 8309 | case $host_os in aix4.[012]|aix4.[012].*) |
| 8310 | # We only want to do this on AIX 4.2 and lower, the check |
| 8311 | # below for broken collect2 doesn't work under 4.3+ |
| 8312 | collect2name=`${CC} -print-prog-name=collect2` |
| 8313 | if test -f "$collect2name" && |
| 8314 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 8315 | then |
| 8316 | # We have reworked collect2 |
| 8317 | : |
| 8318 | else |
| 8319 | # We have old collect2 |
| 8320 | hardcode_direct=unsupported |
| 8321 | # It fails to find uninstalled libraries when the uninstalled |
| 8322 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8323 | # to unsupported forces relinking |
| 8324 | hardcode_minus_L=yes |
| 8325 | hardcode_libdir_flag_spec='-L$libdir' |
| 8326 | hardcode_libdir_separator= |
| 8327 | fi |
| 8328 | ;; |
| 8329 | esac |
| 8330 | shared_flag='-shared' |
| 8331 | if test "$aix_use_runtimelinking" = yes; then |
| 8332 | shared_flag="$shared_flag "'${wl}-G' |
| 8333 | fi |
| 8334 | else |
| 8335 | # not using gcc |
| 8336 | if test "$host_cpu" = ia64; then |
| 8337 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8338 | # chokes on -Wl,-G. The following line is correct: |
| 8339 | shared_flag='-G' |
| 8340 | else |
| 8341 | if test "$aix_use_runtimelinking" = yes; then |
| 8342 | shared_flag='${wl}-G' |
| 8343 | else |
| 8344 | shared_flag='${wl}-bM:SRE' |
| 8345 | fi |
| 8346 | fi |
| 8347 | fi |
| 8348 | |
| 8349 | export_dynamic_flag_spec='${wl}-bexpall' |
| 8350 | # It seems that -bexpall does not export symbols beginning with |
| 8351 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8352 | always_export_symbols=yes |
| 8353 | if test "$aix_use_runtimelinking" = yes; then |
| 8354 | # Warning - without using the other runtime loading flags (-brtl), |
| 8355 | # -berok will link without error, but may produce a broken library. |
| 8356 | allow_undefined_flag='-berok' |
| 8357 | # Determine the default libpath from the value encoded in an |
| 8358 | # empty executable. |
| 8359 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 8360 | aix_libpath=$lt_cv_aix_libpath |
| 8361 | else |
| 8362 | if ${lt_cv_aix_libpath_+:} false; then : |
| 8363 | $as_echo_n "(cached) " >&6 |
| 8364 | else |
| 8365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8366 | /* end confdefs.h. */ |
| 8367 | |
| 8368 | int |
| 8369 | main () |
| 8370 | { |
| 8371 | |
| 8372 | ; |
| 8373 | return 0; |
| 8374 | } |
| 8375 | _ACEOF |
| 8376 | if ac_fn_c_try_link "$LINENO"; then : |
| 8377 | |
| 8378 | lt_aix_libpath_sed=' |
| 8379 | /Import File Strings/,/^$/ { |
| 8380 | /^0/ { |
| 8381 | s/^0 *\([^ ]*\) *$/\1/ |
| 8382 | p |
| 8383 | } |
| 8384 | }' |
| 8385 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8386 | # Check for a 64-bit object if we didn't find anything. |
| 8387 | if test -z "$lt_cv_aix_libpath_"; then |
| 8388 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8389 | fi |
| 8390 | fi |
| 8391 | rm -f core conftest.err conftest.$ac_objext \ |
| 8392 | conftest$ac_exeext conftest.$ac_ext |
| 8393 | if test -z "$lt_cv_aix_libpath_"; then |
| 8394 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 8395 | fi |
| 8396 | |
| 8397 | fi |
| 8398 | |
| 8399 | aix_libpath=$lt_cv_aix_libpath_ |
| 8400 | fi |
| 8401 | |
| 8402 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8403 | 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" |
| 8404 | else |
| 8405 | if test "$host_cpu" = ia64; then |
| 8406 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8407 | allow_undefined_flag="-z nodefs" |
| 8408 | 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" |
| 8409 | else |
| 8410 | # Determine the default libpath from the value encoded in an |
| 8411 | # empty executable. |
| 8412 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 8413 | aix_libpath=$lt_cv_aix_libpath |
| 8414 | else |
| 8415 | if ${lt_cv_aix_libpath_+:} false; then : |
| 8416 | $as_echo_n "(cached) " >&6 |
| 8417 | else |
| 8418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8419 | /* end confdefs.h. */ |
| 8420 | |
| 8421 | int |
| 8422 | main () |
| 8423 | { |
| 8424 | |
| 8425 | ; |
| 8426 | return 0; |
| 8427 | } |
| 8428 | _ACEOF |
| 8429 | if ac_fn_c_try_link "$LINENO"; then : |
| 8430 | |
| 8431 | lt_aix_libpath_sed=' |
| 8432 | /Import File Strings/,/^$/ { |
| 8433 | /^0/ { |
| 8434 | s/^0 *\([^ ]*\) *$/\1/ |
| 8435 | p |
| 8436 | } |
| 8437 | }' |
| 8438 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8439 | # Check for a 64-bit object if we didn't find anything. |
| 8440 | if test -z "$lt_cv_aix_libpath_"; then |
| 8441 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8442 | fi |
| 8443 | fi |
| 8444 | rm -f core conftest.err conftest.$ac_objext \ |
| 8445 | conftest$ac_exeext conftest.$ac_ext |
| 8446 | if test -z "$lt_cv_aix_libpath_"; then |
| 8447 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 8448 | fi |
| 8449 | |
| 8450 | fi |
| 8451 | |
| 8452 | aix_libpath=$lt_cv_aix_libpath_ |
| 8453 | fi |
| 8454 | |
| 8455 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8456 | # Warning - without using the other run time loading flags, |
| 8457 | # -berok will link without error, but may produce a broken library. |
| 8458 | no_undefined_flag=' ${wl}-bernotok' |
| 8459 | allow_undefined_flag=' ${wl}-berok' |
| 8460 | if test "$with_gnu_ld" = yes; then |
| 8461 | # We only use this code for GNU lds that support --whole-archive. |
| 8462 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 8463 | else |
| 8464 | # Exported symbols can be pulled into shared objects from archives |
| 8465 | whole_archive_flag_spec='$convenience' |
| 8466 | fi |
| 8467 | archive_cmds_need_lc=yes |
| 8468 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8469 | 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' |
| 8470 | fi |
| 8471 | fi |
| 8472 | ;; |
| 8473 | |
| 8474 | amigaos*) |
| 8475 | case $host_cpu in |
| 8476 | powerpc) |
| 8477 | # see comment about AmigaOS4 .so support |
| 8478 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8479 | archive_expsym_cmds='' |
| 8480 | ;; |
| 8481 | m68k) |
| 8482 | 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)' |
| 8483 | hardcode_libdir_flag_spec='-L$libdir' |
| 8484 | hardcode_minus_L=yes |
| 8485 | ;; |
| 8486 | esac |
| 8487 | ;; |
| 8488 | |
| 8489 | bsdi[45]*) |
| 8490 | export_dynamic_flag_spec=-rdynamic |
| 8491 | ;; |
| 8492 | |
| 8493 | cygwin* | mingw* | pw32* | cegcc*) |
| 8494 | # When not using gcc, we currently assume that we are using |
| 8495 | # Microsoft Visual C++. |
| 8496 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8497 | # no search path for DLLs. |
| 8498 | case $cc_basename in |
| 8499 | cl*) |
| 8500 | # Native MSVC |
| 8501 | hardcode_libdir_flag_spec=' ' |
| 8502 | allow_undefined_flag=unsupported |
| 8503 | always_export_symbols=yes |
| 8504 | file_list_spec='@' |
| 8505 | # Tell ltmain to make .lib files, not .a files. |
| 8506 | libext=lib |
| 8507 | # Tell ltmain to make .dll files, not .so files. |
| 8508 | shrext_cmds=".dll" |
| 8509 | # FIXME: Setting linknames here is a bad hack. |
| 8510 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 8511 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8512 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 8513 | else |
| 8514 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 8515 | fi~ |
| 8516 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 8517 | linknames=' |
| 8518 | # The linker will not automatically build a static lib if we build a DLL. |
| 8519 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 8520 | enable_shared_with_static_runtimes=yes |
| 8521 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 8522 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 8523 | # Don't use ranlib |
| 8524 | old_postinstall_cmds='chmod 644 $oldlib' |
| 8525 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 8526 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 8527 | case $lt_outputfile in |
| 8528 | *.exe|*.EXE) ;; |
| 8529 | *) |
| 8530 | lt_outputfile="$lt_outputfile.exe" |
| 8531 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 8532 | ;; |
| 8533 | esac~ |
| 8534 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 8535 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 8536 | $RM "$lt_outputfile.manifest"; |
| 8537 | fi' |
| 8538 | ;; |
| 8539 | *) |
| 8540 | # Assume MSVC wrapper |
| 8541 | hardcode_libdir_flag_spec=' ' |
| 8542 | allow_undefined_flag=unsupported |
| 8543 | # Tell ltmain to make .lib files, not .a files. |
| 8544 | libext=lib |
| 8545 | # Tell ltmain to make .dll files, not .so files. |
| 8546 | shrext_cmds=".dll" |
| 8547 | # FIXME: Setting linknames here is a bad hack. |
| 8548 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8549 | # The linker will automatically build a .lib file if we build a DLL. |
| 8550 | old_archive_from_new_cmds='true' |
| 8551 | # FIXME: Should let the user specify the lib program. |
| 8552 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 8553 | enable_shared_with_static_runtimes=yes |
| 8554 | ;; |
| 8555 | esac |
| 8556 | ;; |
| 8557 | |
| 8558 | darwin* | rhapsody*) |
| 8559 | |
| 8560 | |
| 8561 | archive_cmds_need_lc=no |
| 8562 | hardcode_direct=no |
| 8563 | hardcode_automatic=yes |
| 8564 | hardcode_shlibpath_var=unsupported |
| 8565 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 8566 | 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\"`' |
| 8567 | |
| 8568 | else |
| 8569 | whole_archive_flag_spec='' |
| 8570 | fi |
| 8571 | link_all_deplibs=yes |
| 8572 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 8573 | case $cc_basename in |
| 8574 | ifort*) _lt_dar_can_shared=yes ;; |
| 8575 | *) _lt_dar_can_shared=$GCC ;; |
| 8576 | esac |
| 8577 | if test "$_lt_dar_can_shared" = "yes"; then |
| 8578 | output_verbose_link_cmd=func_echo_all |
| 8579 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 8580 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 8581 | 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}" |
| 8582 | 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}" |
| 8583 | |
| 8584 | else |
| 8585 | ld_shlibs=no |
| 8586 | fi |
| 8587 | |
| 8588 | ;; |
| 8589 | |
| 8590 | dgux*) |
| 8591 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8592 | hardcode_libdir_flag_spec='-L$libdir' |
| 8593 | hardcode_shlibpath_var=no |
| 8594 | ;; |
| 8595 | |
| 8596 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8597 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8598 | # does not break anything, and helps significantly (at the cost of a little |
| 8599 | # extra space). |
| 8600 | freebsd2.2*) |
| 8601 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8602 | hardcode_libdir_flag_spec='-R$libdir' |
| 8603 | hardcode_direct=yes |
| 8604 | hardcode_shlibpath_var=no |
| 8605 | ;; |
| 8606 | |
| 8607 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8608 | freebsd2.*) |
| 8609 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8610 | hardcode_direct=yes |
| 8611 | hardcode_minus_L=yes |
| 8612 | hardcode_shlibpath_var=no |
| 8613 | ;; |
| 8614 | |
| 8615 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 8616 | freebsd* | dragonfly*) |
| 8617 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8618 | hardcode_libdir_flag_spec='-R$libdir' |
| 8619 | hardcode_direct=yes |
| 8620 | hardcode_shlibpath_var=no |
| 8621 | ;; |
| 8622 | |
| 8623 | hpux9*) |
| 8624 | if test "$GCC" = yes; then |
| 8625 | 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' |
| 8626 | else |
| 8627 | 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' |
| 8628 | fi |
| 8629 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8630 | hardcode_libdir_separator=: |
| 8631 | hardcode_direct=yes |
| 8632 | |
| 8633 | # hardcode_minus_L: Not really in the search PATH, |
| 8634 | # but as the default location of the library. |
| 8635 | hardcode_minus_L=yes |
| 8636 | export_dynamic_flag_spec='${wl}-E' |
| 8637 | ;; |
| 8638 | |
| 8639 | hpux10*) |
| 8640 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 8641 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8642 | else |
| 8643 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8644 | fi |
| 8645 | if test "$with_gnu_ld" = no; then |
| 8646 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8647 | hardcode_libdir_separator=: |
| 8648 | hardcode_direct=yes |
| 8649 | hardcode_direct_absolute=yes |
| 8650 | export_dynamic_flag_spec='${wl}-E' |
| 8651 | # hardcode_minus_L: Not really in the search PATH, |
| 8652 | # but as the default location of the library. |
| 8653 | hardcode_minus_L=yes |
| 8654 | fi |
| 8655 | ;; |
| 8656 | |
| 8657 | hpux11*) |
| 8658 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 8659 | case $host_cpu in |
| 8660 | hppa*64*) |
| 8661 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8662 | ;; |
| 8663 | ia64*) |
| 8664 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8665 | ;; |
| 8666 | *) |
| 8667 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8668 | ;; |
| 8669 | esac |
| 8670 | else |
| 8671 | case $host_cpu in |
| 8672 | hppa*64*) |
| 8673 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8674 | ;; |
| 8675 | ia64*) |
| 8676 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8677 | ;; |
| 8678 | *) |
| 8679 | |
| 8680 | # Older versions of the 11.00 compiler do not understand -b yet |
| 8681 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 8683 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 8684 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 8685 | $as_echo_n "(cached) " >&6 |
| 8686 | else |
| 8687 | lt_cv_prog_compiler__b=no |
| 8688 | save_LDFLAGS="$LDFLAGS" |
| 8689 | LDFLAGS="$LDFLAGS -b" |
| 8690 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8691 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8692 | # The linker can only warn and ignore the option if not recognized |
| 8693 | # So say no if there are warnings |
| 8694 | if test -s conftest.err; then |
| 8695 | # Append any errors to the config.log. |
| 8696 | cat conftest.err 1>&5 |
| 8697 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8698 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8699 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8700 | lt_cv_prog_compiler__b=yes |
| 8701 | fi |
| 8702 | else |
| 8703 | lt_cv_prog_compiler__b=yes |
| 8704 | fi |
| 8705 | fi |
| 8706 | $RM -r conftest* |
| 8707 | LDFLAGS="$save_LDFLAGS" |
| 8708 | |
| 8709 | fi |
| 8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 8711 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 8712 | |
| 8713 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 8714 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8715 | else |
| 8716 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8717 | fi |
| 8718 | |
| 8719 | ;; |
| 8720 | esac |
| 8721 | fi |
| 8722 | if test "$with_gnu_ld" = no; then |
| 8723 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8724 | hardcode_libdir_separator=: |
| 8725 | |
| 8726 | case $host_cpu in |
| 8727 | hppa*64*|ia64*) |
| 8728 | hardcode_direct=no |
| 8729 | hardcode_shlibpath_var=no |
| 8730 | ;; |
| 8731 | *) |
| 8732 | hardcode_direct=yes |
| 8733 | hardcode_direct_absolute=yes |
| 8734 | export_dynamic_flag_spec='${wl}-E' |
| 8735 | |
| 8736 | # hardcode_minus_L: Not really in the search PATH, |
| 8737 | # but as the default location of the library. |
| 8738 | hardcode_minus_L=yes |
| 8739 | ;; |
| 8740 | esac |
| 8741 | fi |
| 8742 | ;; |
| 8743 | |
| 8744 | irix5* | irix6* | nonstopux*) |
| 8745 | if test "$GCC" = yes; then |
| 8746 | 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' |
| 8747 | # Try to use the -exported_symbol ld option, if it does not |
| 8748 | # work, assume that -exports_file does not work either and |
| 8749 | # implicitly export all symbols. |
| 8750 | # This should be the same for all languages, so no per-tag cache variable. |
| 8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 8752 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 8753 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 8754 | $as_echo_n "(cached) " >&6 |
| 8755 | else |
| 8756 | save_LDFLAGS="$LDFLAGS" |
| 8757 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 8758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8759 | /* end confdefs.h. */ |
| 8760 | int foo (void) { return 0; } |
| 8761 | _ACEOF |
| 8762 | if ac_fn_c_try_link "$LINENO"; then : |
| 8763 | lt_cv_irix_exported_symbol=yes |
| 8764 | else |
| 8765 | lt_cv_irix_exported_symbol=no |
| 8766 | fi |
| 8767 | rm -f core conftest.err conftest.$ac_objext \ |
| 8768 | conftest$ac_exeext conftest.$ac_ext |
| 8769 | LDFLAGS="$save_LDFLAGS" |
| 8770 | fi |
| 8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 8772 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 8773 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 8774 | 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' |
| 8775 | fi |
| 8776 | else |
| 8777 | 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' |
| 8778 | 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' |
| 8779 | fi |
| 8780 | archive_cmds_need_lc='no' |
| 8781 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8782 | hardcode_libdir_separator=: |
| 8783 | inherit_rpath=yes |
| 8784 | link_all_deplibs=yes |
| 8785 | ;; |
| 8786 | |
| 8787 | netbsd*) |
| 8788 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8789 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8790 | else |
| 8791 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8792 | fi |
| 8793 | hardcode_libdir_flag_spec='-R$libdir' |
| 8794 | hardcode_direct=yes |
| 8795 | hardcode_shlibpath_var=no |
| 8796 | ;; |
| 8797 | |
| 8798 | newsos6) |
| 8799 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8800 | hardcode_direct=yes |
| 8801 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8802 | hardcode_libdir_separator=: |
| 8803 | hardcode_shlibpath_var=no |
| 8804 | ;; |
| 8805 | |
| 8806 | *nto* | *qnx*) |
| 8807 | ;; |
| 8808 | |
| 8809 | openbsd*) |
| 8810 | if test -f /usr/libexec/ld.so; then |
| 8811 | hardcode_direct=yes |
| 8812 | hardcode_shlibpath_var=no |
| 8813 | hardcode_direct_absolute=yes |
| 8814 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8815 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8816 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8817 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8818 | export_dynamic_flag_spec='${wl}-E' |
| 8819 | else |
| 8820 | case $host_os in |
| 8821 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8822 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8823 | hardcode_libdir_flag_spec='-R$libdir' |
| 8824 | ;; |
| 8825 | *) |
| 8826 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8827 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8828 | ;; |
| 8829 | esac |
| 8830 | fi |
| 8831 | else |
| 8832 | ld_shlibs=no |
| 8833 | fi |
| 8834 | ;; |
| 8835 | |
| 8836 | os2*) |
| 8837 | hardcode_libdir_flag_spec='-L$libdir' |
| 8838 | hardcode_minus_L=yes |
| 8839 | allow_undefined_flag=unsupported |
| 8840 | 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' |
| 8841 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8842 | ;; |
| 8843 | |
| 8844 | osf3*) |
| 8845 | if test "$GCC" = yes; then |
| 8846 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8847 | 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' |
| 8848 | else |
| 8849 | allow_undefined_flag=' -expect_unresolved \*' |
| 8850 | 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' |
| 8851 | fi |
| 8852 | archive_cmds_need_lc='no' |
| 8853 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8854 | hardcode_libdir_separator=: |
| 8855 | ;; |
| 8856 | |
| 8857 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8858 | if test "$GCC" = yes; then |
| 8859 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8860 | 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' |
| 8861 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8862 | else |
| 8863 | allow_undefined_flag=' -expect_unresolved \*' |
| 8864 | 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' |
| 8865 | 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~ |
| 8866 | $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' |
| 8867 | |
| 8868 | # Both c and cxx compiler support -rpath directly |
| 8869 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8870 | fi |
| 8871 | archive_cmds_need_lc='no' |
| 8872 | hardcode_libdir_separator=: |
| 8873 | ;; |
| 8874 | |
| 8875 | solaris*) |
| 8876 | no_undefined_flag=' -z defs' |
| 8877 | if test "$GCC" = yes; then |
| 8878 | wlarc='${wl}' |
| 8879 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8880 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8881 | $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' |
| 8882 | else |
| 8883 | case `$CC -V 2>&1` in |
| 8884 | *"Compilers 5.0"*) |
| 8885 | wlarc='' |
| 8886 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8887 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8888 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 8889 | ;; |
| 8890 | *) |
| 8891 | wlarc='${wl}' |
| 8892 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8893 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8894 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8895 | ;; |
| 8896 | esac |
| 8897 | fi |
| 8898 | hardcode_libdir_flag_spec='-R$libdir' |
| 8899 | hardcode_shlibpath_var=no |
| 8900 | case $host_os in |
| 8901 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 8902 | *) |
| 8903 | # The compiler driver will combine and reorder linker options, |
| 8904 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 8905 | # but is careful enough not to reorder. |
| 8906 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8907 | if test "$GCC" = yes; then |
| 8908 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 8909 | else |
| 8910 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 8911 | fi |
| 8912 | ;; |
| 8913 | esac |
| 8914 | link_all_deplibs=yes |
| 8915 | ;; |
| 8916 | |
| 8917 | sunos4*) |
| 8918 | if test "x$host_vendor" = xsequent; then |
| 8919 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8920 | # files that make .init and .fini sections work. |
| 8921 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8922 | else |
| 8923 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8924 | fi |
| 8925 | hardcode_libdir_flag_spec='-L$libdir' |
| 8926 | hardcode_direct=yes |
| 8927 | hardcode_minus_L=yes |
| 8928 | hardcode_shlibpath_var=no |
| 8929 | ;; |
| 8930 | |
| 8931 | sysv4) |
| 8932 | case $host_vendor in |
| 8933 | sni) |
| 8934 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8935 | hardcode_direct=yes # is this really true??? |
| 8936 | ;; |
| 8937 | siemens) |
| 8938 | ## LD is ld it makes a PLAMLIB |
| 8939 | ## CC just makes a GrossModule. |
| 8940 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8941 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8942 | hardcode_direct=no |
| 8943 | ;; |
| 8944 | motorola) |
| 8945 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8946 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8947 | ;; |
| 8948 | esac |
| 8949 | runpath_var='LD_RUN_PATH' |
| 8950 | hardcode_shlibpath_var=no |
| 8951 | ;; |
| 8952 | |
| 8953 | sysv4.3*) |
| 8954 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8955 | hardcode_shlibpath_var=no |
| 8956 | export_dynamic_flag_spec='-Bexport' |
| 8957 | ;; |
| 8958 | |
| 8959 | sysv4*MP*) |
| 8960 | if test -d /usr/nec; then |
| 8961 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8962 | hardcode_shlibpath_var=no |
| 8963 | runpath_var=LD_RUN_PATH |
| 8964 | hardcode_runpath_var=yes |
| 8965 | ld_shlibs=yes |
| 8966 | fi |
| 8967 | ;; |
| 8968 | |
| 8969 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 8970 | no_undefined_flag='${wl}-z,text' |
| 8971 | archive_cmds_need_lc=no |
| 8972 | hardcode_shlibpath_var=no |
| 8973 | runpath_var='LD_RUN_PATH' |
| 8974 | |
| 8975 | if test "$GCC" = yes; then |
| 8976 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8977 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8978 | else |
| 8979 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8980 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8981 | fi |
| 8982 | ;; |
| 8983 | |
| 8984 | sysv5* | sco3.2v5* | sco5v6*) |
| 8985 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8986 | # link with -lc, and that would cause any symbols used from libc to |
| 8987 | # always be unresolved, which means just about no library would |
| 8988 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8989 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8990 | # as -z defs. |
| 8991 | no_undefined_flag='${wl}-z,text' |
| 8992 | allow_undefined_flag='${wl}-z,nodefs' |
| 8993 | archive_cmds_need_lc=no |
| 8994 | hardcode_shlibpath_var=no |
| 8995 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 8996 | hardcode_libdir_separator=':' |
| 8997 | link_all_deplibs=yes |
| 8998 | export_dynamic_flag_spec='${wl}-Bexport' |
| 8999 | runpath_var='LD_RUN_PATH' |
| 9000 | |
| 9001 | if test "$GCC" = yes; then |
| 9002 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9003 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9004 | else |
| 9005 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9006 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9007 | fi |
| 9008 | ;; |
| 9009 | |
| 9010 | uts4*) |
| 9011 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9012 | hardcode_libdir_flag_spec='-L$libdir' |
| 9013 | hardcode_shlibpath_var=no |
| 9014 | ;; |
| 9015 | |
| 9016 | *) |
| 9017 | ld_shlibs=no |
| 9018 | ;; |
| 9019 | esac |
| 9020 | |
| 9021 | if test x$host_vendor = xsni; then |
| 9022 | case $host in |
| 9023 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9024 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9025 | ;; |
| 9026 | esac |
| 9027 | fi |
| 9028 | fi |
| 9029 | |
| 9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9031 | $as_echo "$ld_shlibs" >&6; } |
| 9032 | test "$ld_shlibs" = no && can_build_shared=no |
| 9033 | |
| 9034 | with_gnu_ld=$with_gnu_ld |
| 9035 | |
| 9036 | |
| 9037 | |
| 9038 | |
| 9039 | |
| 9040 | |
| 9041 | |
| 9042 | |
| 9043 | |
| 9044 | |
| 9045 | |
| 9046 | |
| 9047 | |
| 9048 | |
| 9049 | |
| 9050 | # |
| 9051 | # Do we need to explicitly link libc? |
| 9052 | # |
| 9053 | case "x$archive_cmds_need_lc" in |
| 9054 | x|xyes) |
| 9055 | # Assume -lc should be added |
| 9056 | archive_cmds_need_lc=yes |
| 9057 | |
| 9058 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9059 | case $archive_cmds in |
| 9060 | *'~'*) |
| 9061 | # FIXME: we may have to deal with multi-command sequences. |
| 9062 | ;; |
| 9063 | '$CC '*) |
| 9064 | # Test whether the compiler implicitly links with -lc since on some |
| 9065 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9066 | # to ld, don't add -lc before -lgcc. |
| 9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 9068 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9069 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 9070 | $as_echo_n "(cached) " >&6 |
| 9071 | else |
| 9072 | $RM conftest* |
| 9073 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9074 | |
| 9075 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 9076 | (eval $ac_compile) 2>&5 |
| 9077 | ac_status=$? |
| 9078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9079 | test $ac_status = 0; } 2>conftest.err; then |
| 9080 | soname=conftest |
| 9081 | lib=conftest |
| 9082 | libobjs=conftest.$ac_objext |
| 9083 | deplibs= |
| 9084 | wl=$lt_prog_compiler_wl |
| 9085 | pic_flag=$lt_prog_compiler_pic |
| 9086 | compiler_flags=-v |
| 9087 | linker_flags=-v |
| 9088 | verstring= |
| 9089 | output_objdir=. |
| 9090 | libname=conftest |
| 9091 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9092 | allow_undefined_flag= |
| 9093 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9094 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 9095 | ac_status=$? |
| 9096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9097 | test $ac_status = 0; } |
| 9098 | then |
| 9099 | lt_cv_archive_cmds_need_lc=no |
| 9100 | else |
| 9101 | lt_cv_archive_cmds_need_lc=yes |
| 9102 | fi |
| 9103 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9104 | else |
| 9105 | cat conftest.err 1>&5 |
| 9106 | fi |
| 9107 | $RM conftest* |
| 9108 | |
| 9109 | fi |
| 9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 9111 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 9112 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 9113 | ;; |
| 9114 | esac |
| 9115 | fi |
| 9116 | ;; |
| 9117 | esac |
| 9118 | |
| 9119 | |
| 9120 | |
| 9121 | |
| 9122 | |
| 9123 | |
| 9124 | |
| 9125 | |
| 9126 | |
| 9127 | |
| 9128 | |
| 9129 | |
| 9130 | |
| 9131 | |
| 9132 | |
| 9133 | |
| 9134 | |
| 9135 | |
| 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | |
| 9153 | |
| 9154 | |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | |
| 9183 | |
| 9184 | |
| 9185 | |
| 9186 | |
| 9187 | |
| 9188 | |
| 9189 | |
| 9190 | |
| 9191 | |
| 9192 | |
| 9193 | |
| 9194 | |
| 9195 | |
| 9196 | |
| 9197 | |
| 9198 | |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 | |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | |
| 9221 | |
| 9222 | |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | |
| 9231 | |
| 9232 | |
| 9233 | |
| 9234 | |
| 9235 | |
| 9236 | |
| 9237 | |
| 9238 | |
| 9239 | |
| 9240 | |
| 9241 | |
| 9242 | |
| 9243 | |
| 9244 | |
| 9245 | |
| 9246 | |
| 9247 | |
| 9248 | |
| 9249 | |
| 9250 | |
| 9251 | |
| 9252 | |
| 9253 | |
| 9254 | |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | |
| 9265 | |
| 9266 | |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 9271 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 9272 | |
| 9273 | if test "$GCC" = yes; then |
| 9274 | case $host_os in |
| 9275 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 9276 | *) lt_awk_arg="/^libraries:/" ;; |
| 9277 | esac |
| 9278 | case $host_os in |
| 9279 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 9280 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 9281 | esac |
| 9282 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 9283 | case $lt_search_path_spec in |
| 9284 | *\;*) |
| 9285 | # if the path contains ";" then we assume it to be the separator |
| 9286 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9287 | # assumed that no part of a normal pathname contains ";" but that should |
| 9288 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9289 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 9290 | ;; |
| 9291 | *) |
| 9292 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 9293 | ;; |
| 9294 | esac |
| 9295 | # Ok, now we have the path, separated by spaces, we can step through it |
| 9296 | # and add multilib dir if necessary. |
| 9297 | lt_tmp_lt_search_path_spec= |
| 9298 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 9299 | for lt_sys_path in $lt_search_path_spec; do |
| 9300 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 9301 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 9302 | else |
| 9303 | test -d "$lt_sys_path" && \ |
| 9304 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 9305 | fi |
| 9306 | done |
| 9307 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 9308 | BEGIN {RS=" "; FS="/|\n";} { |
| 9309 | lt_foo=""; |
| 9310 | lt_count=0; |
| 9311 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 9312 | if ($lt_i != "" && $lt_i != ".") { |
| 9313 | if ($lt_i == "..") { |
| 9314 | lt_count++; |
| 9315 | } else { |
| 9316 | if (lt_count == 0) { |
| 9317 | lt_foo="/" $lt_i lt_foo; |
| 9318 | } else { |
| 9319 | lt_count--; |
| 9320 | } |
| 9321 | } |
| 9322 | } |
| 9323 | } |
| 9324 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 9325 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 9326 | }'` |
| 9327 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 9328 | # for these hosts. |
| 9329 | case $host_os in |
| 9330 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 9331 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 9332 | esac |
| 9333 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 9334 | else |
| 9335 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9336 | fi |
| 9337 | library_names_spec= |
| 9338 | libname_spec='lib$name' |
| 9339 | soname_spec= |
| 9340 | shrext_cmds=".so" |
| 9341 | postinstall_cmds= |
| 9342 | postuninstall_cmds= |
| 9343 | finish_cmds= |
| 9344 | finish_eval= |
| 9345 | shlibpath_var= |
| 9346 | shlibpath_overrides_runpath=unknown |
| 9347 | version_type=none |
| 9348 | dynamic_linker="$host_os ld.so" |
| 9349 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9350 | need_lib_prefix=unknown |
| 9351 | hardcode_into_libs=no |
| 9352 | |
| 9353 | # when you set need_version to no, make sure it does not cause -set_version |
| 9354 | # flags to be left without arguments |
| 9355 | need_version=unknown |
| 9356 | |
| 9357 | case $host_os in |
| 9358 | aix3*) |
| 9359 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9360 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9361 | shlibpath_var=LIBPATH |
| 9362 | |
| 9363 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9364 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9365 | ;; |
| 9366 | |
| 9367 | aix[4-9]*) |
| 9368 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9369 | need_lib_prefix=no |
| 9370 | need_version=no |
| 9371 | hardcode_into_libs=yes |
| 9372 | if test "$host_cpu" = ia64; then |
| 9373 | # AIX 5 supports IA64 |
| 9374 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9375 | shlibpath_var=LD_LIBRARY_PATH |
| 9376 | else |
| 9377 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9378 | # for dependence libraries. The import file would start with |
| 9379 | # the line `#! .'. This would cause the generated library to |
| 9380 | # depend on `.', always an invalid library. This was fixed in |
| 9381 | # development snapshots of GCC prior to 3.0. |
| 9382 | case $host_os in |
| 9383 | aix4 | aix4.[01] | aix4.[01].*) |
| 9384 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9385 | echo ' yes ' |
| 9386 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 9387 | : |
| 9388 | else |
| 9389 | can_build_shared=no |
| 9390 | fi |
| 9391 | ;; |
| 9392 | esac |
| 9393 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9394 | # soname into executable. Probably we can add versioning support to |
| 9395 | # collect2, so additional links can be useful in future. |
| 9396 | if test "$aix_use_runtimelinking" = yes; then |
| 9397 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9398 | # instead of lib<name>.a to let people know that these are not |
| 9399 | # typical AIX shared libraries. |
| 9400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9401 | else |
| 9402 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9403 | # and later when we are not doing run time linking. |
| 9404 | library_names_spec='${libname}${release}.a $libname.a' |
| 9405 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9406 | fi |
| 9407 | shlibpath_var=LIBPATH |
| 9408 | fi |
| 9409 | ;; |
| 9410 | |
| 9411 | amigaos*) |
| 9412 | case $host_cpu in |
| 9413 | powerpc) |
| 9414 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 9415 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 9416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9417 | ;; |
| 9418 | m68k) |
| 9419 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9420 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9421 | 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' |
| 9422 | ;; |
| 9423 | esac |
| 9424 | ;; |
| 9425 | |
| 9426 | beos*) |
| 9427 | library_names_spec='${libname}${shared_ext}' |
| 9428 | dynamic_linker="$host_os ld.so" |
| 9429 | shlibpath_var=LIBRARY_PATH |
| 9430 | ;; |
| 9431 | |
| 9432 | bsdi[45]*) |
| 9433 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9434 | need_version=no |
| 9435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9436 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9437 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9438 | shlibpath_var=LD_LIBRARY_PATH |
| 9439 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9440 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9441 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9442 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9443 | # libtool to hard-code these into programs |
| 9444 | ;; |
| 9445 | |
| 9446 | cygwin* | mingw* | pw32* | cegcc*) |
| 9447 | version_type=windows |
| 9448 | shrext_cmds=".dll" |
| 9449 | need_version=no |
| 9450 | need_lib_prefix=no |
| 9451 | |
| 9452 | case $GCC,$cc_basename in |
| 9453 | yes,*) |
| 9454 | # gcc |
| 9455 | library_names_spec='$libname.dll.a' |
| 9456 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9457 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9458 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 9459 | dldir=$destdir/`dirname \$dlpath`~ |
| 9460 | test -d \$dldir || mkdir -p \$dldir~ |
| 9461 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9462 | chmod a+x \$dldir/$dlname~ |
| 9463 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 9464 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 9465 | fi' |
| 9466 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9467 | dlpath=$dir/\$dldll~ |
| 9468 | $RM \$dlpath' |
| 9469 | shlibpath_overrides_runpath=yes |
| 9470 | |
| 9471 | case $host_os in |
| 9472 | cygwin*) |
| 9473 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9474 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9475 | |
| 9476 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 9477 | ;; |
| 9478 | mingw* | cegcc*) |
| 9479 | # MinGW DLLs use traditional 'lib' prefix |
| 9480 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9481 | ;; |
| 9482 | pw32*) |
| 9483 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 9484 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9485 | ;; |
| 9486 | esac |
| 9487 | dynamic_linker='Win32 ld.exe' |
| 9488 | ;; |
| 9489 | |
| 9490 | *,cl*) |
| 9491 | # Native MSVC |
| 9492 | libname_spec='$name' |
| 9493 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9494 | library_names_spec='${libname}.dll.lib' |
| 9495 | |
| 9496 | case $build_os in |
| 9497 | mingw*) |
| 9498 | sys_lib_search_path_spec= |
| 9499 | lt_save_ifs=$IFS |
| 9500 | IFS=';' |
| 9501 | for lt_path in $LIB |
| 9502 | do |
| 9503 | IFS=$lt_save_ifs |
| 9504 | # Let DOS variable expansion print the short 8.3 style file name. |
| 9505 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 9506 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 9507 | done |
| 9508 | IFS=$lt_save_ifs |
| 9509 | # Convert to MSYS style. |
| 9510 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 9511 | ;; |
| 9512 | cygwin*) |
| 9513 | # Convert to unix form, then to dos form, then back to unix form |
| 9514 | # but this time dos style (no spaces!) so that the unix form looks |
| 9515 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 9516 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 9517 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 9518 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9519 | ;; |
| 9520 | *) |
| 9521 | sys_lib_search_path_spec="$LIB" |
| 9522 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 9523 | # It is most probably a Windows format PATH. |
| 9524 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9525 | else |
| 9526 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9527 | fi |
| 9528 | # FIXME: find the short name or the path components, as spaces are |
| 9529 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 9530 | ;; |
| 9531 | esac |
| 9532 | |
| 9533 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9534 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9535 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 9536 | dldir=$destdir/`dirname \$dlpath`~ |
| 9537 | test -d \$dldir || mkdir -p \$dldir~ |
| 9538 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 9539 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9540 | dlpath=$dir/\$dldll~ |
| 9541 | $RM \$dlpath' |
| 9542 | shlibpath_overrides_runpath=yes |
| 9543 | dynamic_linker='Win32 link.exe' |
| 9544 | ;; |
| 9545 | |
| 9546 | *) |
| 9547 | # Assume MSVC wrapper |
| 9548 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9549 | dynamic_linker='Win32 ld.exe' |
| 9550 | ;; |
| 9551 | esac |
| 9552 | # FIXME: first we should search . and the directory the executable is in |
| 9553 | shlibpath_var=PATH |
| 9554 | ;; |
| 9555 | |
| 9556 | darwin* | rhapsody*) |
| 9557 | dynamic_linker="$host_os dyld" |
| 9558 | version_type=darwin |
| 9559 | need_lib_prefix=no |
| 9560 | need_version=no |
| 9561 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9562 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9563 | shlibpath_overrides_runpath=yes |
| 9564 | shlibpath_var=DYLD_LIBRARY_PATH |
| 9565 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 9566 | |
| 9567 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 9568 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9569 | ;; |
| 9570 | |
| 9571 | dgux*) |
| 9572 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9573 | need_lib_prefix=no |
| 9574 | need_version=no |
| 9575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9577 | shlibpath_var=LD_LIBRARY_PATH |
| 9578 | ;; |
| 9579 | |
| 9580 | freebsd* | dragonfly*) |
| 9581 | # DragonFly does not have aout. When/if they implement a new |
| 9582 | # versioning mechanism, adjust this. |
| 9583 | if test -x /usr/bin/objformat; then |
| 9584 | objformat=`/usr/bin/objformat` |
| 9585 | else |
| 9586 | case $host_os in |
| 9587 | freebsd[23].*) objformat=aout ;; |
| 9588 | *) objformat=elf ;; |
| 9589 | esac |
| 9590 | fi |
| 9591 | version_type=freebsd-$objformat |
| 9592 | case $version_type in |
| 9593 | freebsd-elf*) |
| 9594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9595 | need_version=no |
| 9596 | need_lib_prefix=no |
| 9597 | ;; |
| 9598 | freebsd-*) |
| 9599 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9600 | need_version=yes |
| 9601 | ;; |
| 9602 | esac |
| 9603 | shlibpath_var=LD_LIBRARY_PATH |
| 9604 | case $host_os in |
| 9605 | freebsd2.*) |
| 9606 | shlibpath_overrides_runpath=yes |
| 9607 | ;; |
| 9608 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 9609 | shlibpath_overrides_runpath=yes |
| 9610 | hardcode_into_libs=yes |
| 9611 | ;; |
| 9612 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9613 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 9614 | shlibpath_overrides_runpath=no |
| 9615 | hardcode_into_libs=yes |
| 9616 | ;; |
| 9617 | *) # from 4.6 on, and DragonFly |
| 9618 | shlibpath_overrides_runpath=yes |
| 9619 | hardcode_into_libs=yes |
| 9620 | ;; |
| 9621 | esac |
| 9622 | ;; |
| 9623 | |
| 9624 | gnu*) |
| 9625 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9626 | need_lib_prefix=no |
| 9627 | need_version=no |
| 9628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9629 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9630 | shlibpath_var=LD_LIBRARY_PATH |
| 9631 | shlibpath_overrides_runpath=no |
| 9632 | hardcode_into_libs=yes |
| 9633 | ;; |
| 9634 | |
| 9635 | haiku*) |
| 9636 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9637 | need_lib_prefix=no |
| 9638 | need_version=no |
| 9639 | dynamic_linker="$host_os runtime_loader" |
| 9640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9641 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9642 | shlibpath_var=LIBRARY_PATH |
| 9643 | shlibpath_overrides_runpath=yes |
| 9644 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 9645 | hardcode_into_libs=yes |
| 9646 | ;; |
| 9647 | |
| 9648 | hpux9* | hpux10* | hpux11*) |
| 9649 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9650 | # link against other versions. |
| 9651 | version_type=sunos |
| 9652 | need_lib_prefix=no |
| 9653 | need_version=no |
| 9654 | case $host_cpu in |
| 9655 | ia64*) |
| 9656 | shrext_cmds='.so' |
| 9657 | hardcode_into_libs=yes |
| 9658 | dynamic_linker="$host_os dld.so" |
| 9659 | shlibpath_var=LD_LIBRARY_PATH |
| 9660 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9663 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9664 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9665 | else |
| 9666 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9667 | fi |
| 9668 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9669 | ;; |
| 9670 | hppa*64*) |
| 9671 | shrext_cmds='.sl' |
| 9672 | hardcode_into_libs=yes |
| 9673 | dynamic_linker="$host_os dld.sl" |
| 9674 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9675 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9677 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9678 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9679 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9680 | ;; |
| 9681 | *) |
| 9682 | shrext_cmds='.sl' |
| 9683 | dynamic_linker="$host_os dld.sl" |
| 9684 | shlibpath_var=SHLIB_PATH |
| 9685 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9687 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9688 | ;; |
| 9689 | esac |
| 9690 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 9691 | postinstall_cmds='chmod 555 $lib' |
| 9692 | # or fails outright, so override atomically: |
| 9693 | install_override_mode=555 |
| 9694 | ;; |
| 9695 | |
| 9696 | interix[3-9]*) |
| 9697 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9698 | need_lib_prefix=no |
| 9699 | need_version=no |
| 9700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9701 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9702 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9703 | shlibpath_var=LD_LIBRARY_PATH |
| 9704 | shlibpath_overrides_runpath=no |
| 9705 | hardcode_into_libs=yes |
| 9706 | ;; |
| 9707 | |
| 9708 | irix5* | irix6* | nonstopux*) |
| 9709 | case $host_os in |
| 9710 | nonstopux*) version_type=nonstopux ;; |
| 9711 | *) |
| 9712 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9713 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9714 | else |
| 9715 | version_type=irix |
| 9716 | fi ;; |
| 9717 | esac |
| 9718 | need_lib_prefix=no |
| 9719 | need_version=no |
| 9720 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9722 | case $host_os in |
| 9723 | irix5* | nonstopux*) |
| 9724 | libsuff= shlibsuff= |
| 9725 | ;; |
| 9726 | *) |
| 9727 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9728 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9729 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9730 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9731 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9732 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9733 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9734 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9735 | esac |
| 9736 | ;; |
| 9737 | esac |
| 9738 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9739 | shlibpath_overrides_runpath=no |
| 9740 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9741 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9742 | hardcode_into_libs=yes |
| 9743 | ;; |
| 9744 | |
| 9745 | # No shared lib support for Linux oldld, aout, or coff. |
| 9746 | linux*oldld* | linux*aout* | linux*coff*) |
| 9747 | dynamic_linker=no |
| 9748 | ;; |
| 9749 | |
| 9750 | # This must be glibc/ELF. |
| 9751 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9752 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9753 | need_lib_prefix=no |
| 9754 | need_version=no |
| 9755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9756 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9757 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9758 | shlibpath_var=LD_LIBRARY_PATH |
| 9759 | shlibpath_overrides_runpath=no |
| 9760 | |
| 9761 | # Some binutils ld are patched to set DT_RUNPATH |
| 9762 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 9763 | $as_echo_n "(cached) " >&6 |
| 9764 | else |
| 9765 | lt_cv_shlibpath_overrides_runpath=no |
| 9766 | save_LDFLAGS=$LDFLAGS |
| 9767 | save_libdir=$libdir |
| 9768 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 9769 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 9770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9771 | /* end confdefs.h. */ |
| 9772 | |
| 9773 | int |
| 9774 | main () |
| 9775 | { |
| 9776 | |
| 9777 | ; |
| 9778 | return 0; |
| 9779 | } |
| 9780 | _ACEOF |
| 9781 | if ac_fn_c_try_link "$LINENO"; then : |
| 9782 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 9783 | lt_cv_shlibpath_overrides_runpath=yes |
| 9784 | fi |
| 9785 | fi |
| 9786 | rm -f core conftest.err conftest.$ac_objext \ |
| 9787 | conftest$ac_exeext conftest.$ac_ext |
| 9788 | LDFLAGS=$save_LDFLAGS |
| 9789 | libdir=$save_libdir |
| 9790 | |
| 9791 | fi |
| 9792 | |
| 9793 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 9794 | |
| 9795 | # This implies no fast_install, which is unacceptable. |
| 9796 | # Some rework will be needed to allow for fast_install |
| 9797 | # before this can be enabled. |
| 9798 | hardcode_into_libs=yes |
| 9799 | |
| 9800 | # Add ABI-specific directories to the system library path. |
| 9801 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 9802 | |
| 9803 | # Append ld.so.conf contents to the search path |
| 9804 | if test -f /etc/ld.so.conf; then |
| 9805 | 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' ' '` |
| 9806 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| 9807 | |
| 9808 | fi |
| 9809 | |
| 9810 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9811 | # powerpc, because MkLinux only supported shared libraries with the |
| 9812 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9813 | # most powerpc-linux boxes support dynamic linking these days and |
| 9814 | # people can always --disable-shared, the test was removed, and we |
| 9815 | # assume the GNU/Linux dynamic linker is in use. |
| 9816 | dynamic_linker='GNU/Linux ld.so' |
| 9817 | ;; |
| 9818 | |
| 9819 | netbsd*) |
| 9820 | version_type=sunos |
| 9821 | need_lib_prefix=no |
| 9822 | need_version=no |
| 9823 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9825 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9826 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9827 | else |
| 9828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9829 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9830 | dynamic_linker='NetBSD ld.elf_so' |
| 9831 | fi |
| 9832 | shlibpath_var=LD_LIBRARY_PATH |
| 9833 | shlibpath_overrides_runpath=yes |
| 9834 | hardcode_into_libs=yes |
| 9835 | ;; |
| 9836 | |
| 9837 | newsos6) |
| 9838 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9840 | shlibpath_var=LD_LIBRARY_PATH |
| 9841 | shlibpath_overrides_runpath=yes |
| 9842 | ;; |
| 9843 | |
| 9844 | *nto* | *qnx*) |
| 9845 | version_type=qnx |
| 9846 | need_lib_prefix=no |
| 9847 | need_version=no |
| 9848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9850 | shlibpath_var=LD_LIBRARY_PATH |
| 9851 | shlibpath_overrides_runpath=no |
| 9852 | hardcode_into_libs=yes |
| 9853 | dynamic_linker='ldqnx.so' |
| 9854 | ;; |
| 9855 | |
| 9856 | openbsd*) |
| 9857 | version_type=sunos |
| 9858 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 9859 | need_lib_prefix=no |
| 9860 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9861 | case $host_os in |
| 9862 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9863 | *) need_version=no ;; |
| 9864 | esac |
| 9865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9866 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9867 | shlibpath_var=LD_LIBRARY_PATH |
| 9868 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9869 | case $host_os in |
| 9870 | openbsd2.[89] | openbsd2.[89].*) |
| 9871 | shlibpath_overrides_runpath=no |
| 9872 | ;; |
| 9873 | *) |
| 9874 | shlibpath_overrides_runpath=yes |
| 9875 | ;; |
| 9876 | esac |
| 9877 | else |
| 9878 | shlibpath_overrides_runpath=yes |
| 9879 | fi |
| 9880 | ;; |
| 9881 | |
| 9882 | os2*) |
| 9883 | libname_spec='$name' |
| 9884 | shrext_cmds=".dll" |
| 9885 | need_lib_prefix=no |
| 9886 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9887 | dynamic_linker='OS/2 ld.exe' |
| 9888 | shlibpath_var=LIBPATH |
| 9889 | ;; |
| 9890 | |
| 9891 | osf3* | osf4* | osf5*) |
| 9892 | version_type=osf |
| 9893 | need_lib_prefix=no |
| 9894 | need_version=no |
| 9895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9897 | shlibpath_var=LD_LIBRARY_PATH |
| 9898 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9899 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9900 | ;; |
| 9901 | |
| 9902 | rdos*) |
| 9903 | dynamic_linker=no |
| 9904 | ;; |
| 9905 | |
| 9906 | solaris*) |
| 9907 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9908 | need_lib_prefix=no |
| 9909 | need_version=no |
| 9910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9911 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9912 | shlibpath_var=LD_LIBRARY_PATH |
| 9913 | shlibpath_overrides_runpath=yes |
| 9914 | hardcode_into_libs=yes |
| 9915 | # ldd complains unless libraries are executable |
| 9916 | postinstall_cmds='chmod +x $lib' |
| 9917 | ;; |
| 9918 | |
| 9919 | sunos4*) |
| 9920 | version_type=sunos |
| 9921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9922 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9923 | shlibpath_var=LD_LIBRARY_PATH |
| 9924 | shlibpath_overrides_runpath=yes |
| 9925 | if test "$with_gnu_ld" = yes; then |
| 9926 | need_lib_prefix=no |
| 9927 | fi |
| 9928 | need_version=yes |
| 9929 | ;; |
| 9930 | |
| 9931 | sysv4 | sysv4.3*) |
| 9932 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9935 | shlibpath_var=LD_LIBRARY_PATH |
| 9936 | case $host_vendor in |
| 9937 | sni) |
| 9938 | shlibpath_overrides_runpath=no |
| 9939 | need_lib_prefix=no |
| 9940 | runpath_var=LD_RUN_PATH |
| 9941 | ;; |
| 9942 | siemens) |
| 9943 | need_lib_prefix=no |
| 9944 | ;; |
| 9945 | motorola) |
| 9946 | need_lib_prefix=no |
| 9947 | need_version=no |
| 9948 | shlibpath_overrides_runpath=no |
| 9949 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9950 | ;; |
| 9951 | esac |
| 9952 | ;; |
| 9953 | |
| 9954 | sysv4*MP*) |
| 9955 | if test -d /usr/nec ;then |
| 9956 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9957 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9958 | soname_spec='$libname${shared_ext}.$major' |
| 9959 | shlibpath_var=LD_LIBRARY_PATH |
| 9960 | fi |
| 9961 | ;; |
| 9962 | |
| 9963 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9964 | version_type=freebsd-elf |
| 9965 | need_lib_prefix=no |
| 9966 | need_version=no |
| 9967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9969 | shlibpath_var=LD_LIBRARY_PATH |
| 9970 | shlibpath_overrides_runpath=yes |
| 9971 | hardcode_into_libs=yes |
| 9972 | if test "$with_gnu_ld" = yes; then |
| 9973 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9974 | else |
| 9975 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9976 | case $host_os in |
| 9977 | sco3.2v5*) |
| 9978 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9979 | ;; |
| 9980 | esac |
| 9981 | fi |
| 9982 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9983 | ;; |
| 9984 | |
| 9985 | tpf*) |
| 9986 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 9987 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9988 | need_lib_prefix=no |
| 9989 | need_version=no |
| 9990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9991 | shlibpath_var=LD_LIBRARY_PATH |
| 9992 | shlibpath_overrides_runpath=no |
| 9993 | hardcode_into_libs=yes |
| 9994 | ;; |
| 9995 | |
| 9996 | uts4*) |
| 9997 | version_type=linux # correct to gnu/linux during the next big refactor |
| 9998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9999 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10000 | shlibpath_var=LD_LIBRARY_PATH |
| 10001 | ;; |
| 10002 | |
| 10003 | *) |
| 10004 | dynamic_linker=no |
| 10005 | ;; |
| 10006 | esac |
| 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10008 | $as_echo "$dynamic_linker" >&6; } |
| 10009 | test "$dynamic_linker" = no && can_build_shared=no |
| 10010 | |
| 10011 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10012 | if test "$GCC" = yes; then |
| 10013 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10014 | fi |
| 10015 | |
| 10016 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10017 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10018 | fi |
| 10019 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10020 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10021 | fi |
| 10022 | |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | |
| 10043 | |
| 10044 | |
| 10045 | |
| 10046 | |
| 10047 | |
| 10048 | |
| 10049 | |
| 10050 | |
| 10051 | |
| 10052 | |
| 10053 | |
| 10054 | |
| 10055 | |
| 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | |
| 10071 | |
| 10072 | |
| 10073 | |
| 10074 | |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | |
| 10097 | |
| 10098 | |
| 10099 | |
| 10100 | |
| 10101 | |
| 10102 | |
| 10103 | |
| 10104 | |
| 10105 | |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | |
| 10112 | |
| 10113 | |
| 10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 10115 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 10116 | hardcode_action= |
| 10117 | if test -n "$hardcode_libdir_flag_spec" || |
| 10118 | test -n "$runpath_var" || |
| 10119 | test "X$hardcode_automatic" = "Xyes" ; then |
| 10120 | |
| 10121 | # We can hardcode non-existent directories. |
| 10122 | if test "$hardcode_direct" != no && |
| 10123 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10124 | # have to relink, otherwise we might link with an installed library |
| 10125 | # when we should be linking with a yet-to-be-installed one |
| 10126 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 10127 | test "$hardcode_minus_L" != no; then |
| 10128 | # Linking always hardcodes the temporary library directory. |
| 10129 | hardcode_action=relink |
| 10130 | else |
| 10131 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10132 | hardcode_action=immediate |
| 10133 | fi |
| 10134 | else |
| 10135 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10136 | # directories. |
| 10137 | hardcode_action=unsupported |
| 10138 | fi |
| 10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10140 | $as_echo "$hardcode_action" >&6; } |
| 10141 | |
| 10142 | if test "$hardcode_action" = relink || |
| 10143 | test "$inherit_rpath" = yes; then |
| 10144 | # Fast installation is not supported |
| 10145 | enable_fast_install=no |
| 10146 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10147 | test "$enable_shared" = no; then |
| 10148 | # Fast installation is not necessary |
| 10149 | enable_fast_install=needless |
| 10150 | fi |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | if test "x$enable_dlopen" != xyes; then |
| 10158 | enable_dlopen=unknown |
| 10159 | enable_dlopen_self=unknown |
| 10160 | enable_dlopen_self_static=unknown |
| 10161 | else |
| 10162 | lt_cv_dlopen=no |
| 10163 | lt_cv_dlopen_libs= |
| 10164 | |
| 10165 | case $host_os in |
| 10166 | beos*) |
| 10167 | lt_cv_dlopen="load_add_on" |
| 10168 | lt_cv_dlopen_libs= |
| 10169 | lt_cv_dlopen_self=yes |
| 10170 | ;; |
| 10171 | |
| 10172 | mingw* | pw32* | cegcc*) |
| 10173 | lt_cv_dlopen="LoadLibrary" |
| 10174 | lt_cv_dlopen_libs= |
| 10175 | ;; |
| 10176 | |
| 10177 | cygwin*) |
| 10178 | lt_cv_dlopen="dlopen" |
| 10179 | lt_cv_dlopen_libs= |
| 10180 | ;; |
| 10181 | |
| 10182 | darwin*) |
| 10183 | # if libdl is installed we need to link against it |
| 10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10185 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10186 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 10187 | $as_echo_n "(cached) " >&6 |
| 10188 | else |
| 10189 | ac_check_lib_save_LIBS=$LIBS |
| 10190 | LIBS="-ldl $LIBS" |
| 10191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10192 | /* end confdefs.h. */ |
| 10193 | |
| 10194 | /* Override any GCC internal prototype to avoid an error. |
| 10195 | Use char because int might match the return type of a GCC |
| 10196 | builtin and then its argument prototype would still apply. */ |
| 10197 | #ifdef __cplusplus |
| 10198 | extern "C" |
| 10199 | #endif |
| 10200 | char dlopen (); |
| 10201 | int |
| 10202 | main () |
| 10203 | { |
| 10204 | return dlopen (); |
| 10205 | ; |
| 10206 | return 0; |
| 10207 | } |
| 10208 | _ACEOF |
| 10209 | if ac_fn_c_try_link "$LINENO"; then : |
| 10210 | ac_cv_lib_dl_dlopen=yes |
| 10211 | else |
| 10212 | ac_cv_lib_dl_dlopen=no |
| 10213 | fi |
| 10214 | rm -f core conftest.err conftest.$ac_objext \ |
| 10215 | conftest$ac_exeext conftest.$ac_ext |
| 10216 | LIBS=$ac_check_lib_save_LIBS |
| 10217 | fi |
| 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10219 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10220 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 10221 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10222 | else |
| 10223 | |
| 10224 | lt_cv_dlopen="dyld" |
| 10225 | lt_cv_dlopen_libs= |
| 10226 | lt_cv_dlopen_self=yes |
| 10227 | |
| 10228 | fi |
| 10229 | |
| 10230 | ;; |
| 10231 | |
| 10232 | *) |
| 10233 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10234 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 10235 | lt_cv_dlopen="shl_load" |
| 10236 | else |
| 10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10238 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 10239 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 10240 | $as_echo_n "(cached) " >&6 |
| 10241 | else |
| 10242 | ac_check_lib_save_LIBS=$LIBS |
| 10243 | LIBS="-ldld $LIBS" |
| 10244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10245 | /* end confdefs.h. */ |
| 10246 | |
| 10247 | /* Override any GCC internal prototype to avoid an error. |
| 10248 | Use char because int might match the return type of a GCC |
| 10249 | builtin and then its argument prototype would still apply. */ |
| 10250 | #ifdef __cplusplus |
| 10251 | extern "C" |
| 10252 | #endif |
| 10253 | char shl_load (); |
| 10254 | int |
| 10255 | main () |
| 10256 | { |
| 10257 | return shl_load (); |
| 10258 | ; |
| 10259 | return 0; |
| 10260 | } |
| 10261 | _ACEOF |
| 10262 | if ac_fn_c_try_link "$LINENO"; then : |
| 10263 | ac_cv_lib_dld_shl_load=yes |
| 10264 | else |
| 10265 | ac_cv_lib_dld_shl_load=no |
| 10266 | fi |
| 10267 | rm -f core conftest.err conftest.$ac_objext \ |
| 10268 | conftest$ac_exeext conftest.$ac_ext |
| 10269 | LIBS=$ac_check_lib_save_LIBS |
| 10270 | fi |
| 10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10272 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 10273 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 10274 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 10275 | else |
| 10276 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 10277 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 10278 | lt_cv_dlopen="dlopen" |
| 10279 | else |
| 10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10281 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10282 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 10283 | $as_echo_n "(cached) " >&6 |
| 10284 | else |
| 10285 | ac_check_lib_save_LIBS=$LIBS |
| 10286 | LIBS="-ldl $LIBS" |
| 10287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10288 | /* end confdefs.h. */ |
| 10289 | |
| 10290 | /* Override any GCC internal prototype to avoid an error. |
| 10291 | Use char because int might match the return type of a GCC |
| 10292 | builtin and then its argument prototype would still apply. */ |
| 10293 | #ifdef __cplusplus |
| 10294 | extern "C" |
| 10295 | #endif |
| 10296 | char dlopen (); |
| 10297 | int |
| 10298 | main () |
| 10299 | { |
| 10300 | return dlopen (); |
| 10301 | ; |
| 10302 | return 0; |
| 10303 | } |
| 10304 | _ACEOF |
| 10305 | if ac_fn_c_try_link "$LINENO"; then : |
| 10306 | ac_cv_lib_dl_dlopen=yes |
| 10307 | else |
| 10308 | ac_cv_lib_dl_dlopen=no |
| 10309 | fi |
| 10310 | rm -f core conftest.err conftest.$ac_objext \ |
| 10311 | conftest$ac_exeext conftest.$ac_ext |
| 10312 | LIBS=$ac_check_lib_save_LIBS |
| 10313 | fi |
| 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10315 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10316 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 10317 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10318 | else |
| 10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 10320 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 10321 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 10322 | $as_echo_n "(cached) " >&6 |
| 10323 | else |
| 10324 | ac_check_lib_save_LIBS=$LIBS |
| 10325 | LIBS="-lsvld $LIBS" |
| 10326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10327 | /* end confdefs.h. */ |
| 10328 | |
| 10329 | /* Override any GCC internal prototype to avoid an error. |
| 10330 | Use char because int might match the return type of a GCC |
| 10331 | builtin and then its argument prototype would still apply. */ |
| 10332 | #ifdef __cplusplus |
| 10333 | extern "C" |
| 10334 | #endif |
| 10335 | char dlopen (); |
| 10336 | int |
| 10337 | main () |
| 10338 | { |
| 10339 | return dlopen (); |
| 10340 | ; |
| 10341 | return 0; |
| 10342 | } |
| 10343 | _ACEOF |
| 10344 | if ac_fn_c_try_link "$LINENO"; then : |
| 10345 | ac_cv_lib_svld_dlopen=yes |
| 10346 | else |
| 10347 | ac_cv_lib_svld_dlopen=no |
| 10348 | fi |
| 10349 | rm -f core conftest.err conftest.$ac_objext \ |
| 10350 | conftest$ac_exeext conftest.$ac_ext |
| 10351 | LIBS=$ac_check_lib_save_LIBS |
| 10352 | fi |
| 10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10354 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 10355 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 10356 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10357 | else |
| 10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 10359 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 10360 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 10361 | $as_echo_n "(cached) " >&6 |
| 10362 | else |
| 10363 | ac_check_lib_save_LIBS=$LIBS |
| 10364 | LIBS="-ldld $LIBS" |
| 10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10366 | /* end confdefs.h. */ |
| 10367 | |
| 10368 | /* Override any GCC internal prototype to avoid an error. |
| 10369 | Use char because int might match the return type of a GCC |
| 10370 | builtin and then its argument prototype would still apply. */ |
| 10371 | #ifdef __cplusplus |
| 10372 | extern "C" |
| 10373 | #endif |
| 10374 | char dld_link (); |
| 10375 | int |
| 10376 | main () |
| 10377 | { |
| 10378 | return dld_link (); |
| 10379 | ; |
| 10380 | return 0; |
| 10381 | } |
| 10382 | _ACEOF |
| 10383 | if ac_fn_c_try_link "$LINENO"; then : |
| 10384 | ac_cv_lib_dld_dld_link=yes |
| 10385 | else |
| 10386 | ac_cv_lib_dld_dld_link=no |
| 10387 | fi |
| 10388 | rm -f core conftest.err conftest.$ac_objext \ |
| 10389 | conftest$ac_exeext conftest.$ac_ext |
| 10390 | LIBS=$ac_check_lib_save_LIBS |
| 10391 | fi |
| 10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10393 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 10394 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 10395 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 10396 | fi |
| 10397 | |
| 10398 | |
| 10399 | fi |
| 10400 | |
| 10401 | |
| 10402 | fi |
| 10403 | |
| 10404 | |
| 10405 | fi |
| 10406 | |
| 10407 | |
| 10408 | fi |
| 10409 | |
| 10410 | |
| 10411 | fi |
| 10412 | |
| 10413 | ;; |
| 10414 | esac |
| 10415 | |
| 10416 | if test "x$lt_cv_dlopen" != xno; then |
| 10417 | enable_dlopen=yes |
| 10418 | else |
| 10419 | enable_dlopen=no |
| 10420 | fi |
| 10421 | |
| 10422 | case $lt_cv_dlopen in |
| 10423 | dlopen) |
| 10424 | save_CPPFLAGS="$CPPFLAGS" |
| 10425 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10426 | |
| 10427 | save_LDFLAGS="$LDFLAGS" |
| 10428 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 10429 | |
| 10430 | save_LIBS="$LIBS" |
| 10431 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10432 | |
| 10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 10434 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 10435 | if ${lt_cv_dlopen_self+:} false; then : |
| 10436 | $as_echo_n "(cached) " >&6 |
| 10437 | else |
| 10438 | if test "$cross_compiling" = yes; then : |
| 10439 | lt_cv_dlopen_self=cross |
| 10440 | else |
| 10441 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10442 | lt_status=$lt_dlunknown |
| 10443 | cat > conftest.$ac_ext <<_LT_EOF |
| 10444 | #line $LINENO "configure" |
| 10445 | #include "confdefs.h" |
| 10446 | |
| 10447 | #if HAVE_DLFCN_H |
| 10448 | #include <dlfcn.h> |
| 10449 | #endif |
| 10450 | |
| 10451 | #include <stdio.h> |
| 10452 | |
| 10453 | #ifdef RTLD_GLOBAL |
| 10454 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10455 | #else |
| 10456 | # ifdef DL_GLOBAL |
| 10457 | # define LT_DLGLOBAL DL_GLOBAL |
| 10458 | # else |
| 10459 | # define LT_DLGLOBAL 0 |
| 10460 | # endif |
| 10461 | #endif |
| 10462 | |
| 10463 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10464 | find out it does not work in some platform. */ |
| 10465 | #ifndef LT_DLLAZY_OR_NOW |
| 10466 | # ifdef RTLD_LAZY |
| 10467 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10468 | # else |
| 10469 | # ifdef DL_LAZY |
| 10470 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10471 | # else |
| 10472 | # ifdef RTLD_NOW |
| 10473 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10474 | # else |
| 10475 | # ifdef DL_NOW |
| 10476 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10477 | # else |
| 10478 | # define LT_DLLAZY_OR_NOW 0 |
| 10479 | # endif |
| 10480 | # endif |
| 10481 | # endif |
| 10482 | # endif |
| 10483 | #endif |
| 10484 | |
| 10485 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 10486 | correspondingly for the symbols needed. */ |
| 10487 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 10488 | int fnord () __attribute__((visibility("default"))); |
| 10489 | #endif |
| 10490 | |
| 10491 | int fnord () { return 42; } |
| 10492 | int main () |
| 10493 | { |
| 10494 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10495 | int status = $lt_dlunknown; |
| 10496 | |
| 10497 | if (self) |
| 10498 | { |
| 10499 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10500 | else |
| 10501 | { |
| 10502 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10503 | else puts (dlerror ()); |
| 10504 | } |
| 10505 | /* dlclose (self); */ |
| 10506 | } |
| 10507 | else |
| 10508 | puts (dlerror ()); |
| 10509 | |
| 10510 | return status; |
| 10511 | } |
| 10512 | _LT_EOF |
| 10513 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 10514 | (eval $ac_link) 2>&5 |
| 10515 | ac_status=$? |
| 10516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10517 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10518 | (./conftest; exit; ) >&5 2>/dev/null |
| 10519 | lt_status=$? |
| 10520 | case x$lt_status in |
| 10521 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10522 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 10523 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 10524 | esac |
| 10525 | else : |
| 10526 | # compilation failed |
| 10527 | lt_cv_dlopen_self=no |
| 10528 | fi |
| 10529 | fi |
| 10530 | rm -fr conftest* |
| 10531 | |
| 10532 | |
| 10533 | fi |
| 10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 10535 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 10536 | |
| 10537 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 10538 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 10540 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 10541 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 10542 | $as_echo_n "(cached) " >&6 |
| 10543 | else |
| 10544 | if test "$cross_compiling" = yes; then : |
| 10545 | lt_cv_dlopen_self_static=cross |
| 10546 | else |
| 10547 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10548 | lt_status=$lt_dlunknown |
| 10549 | cat > conftest.$ac_ext <<_LT_EOF |
| 10550 | #line $LINENO "configure" |
| 10551 | #include "confdefs.h" |
| 10552 | |
| 10553 | #if HAVE_DLFCN_H |
| 10554 | #include <dlfcn.h> |
| 10555 | #endif |
| 10556 | |
| 10557 | #include <stdio.h> |
| 10558 | |
| 10559 | #ifdef RTLD_GLOBAL |
| 10560 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10561 | #else |
| 10562 | # ifdef DL_GLOBAL |
| 10563 | # define LT_DLGLOBAL DL_GLOBAL |
| 10564 | # else |
| 10565 | # define LT_DLGLOBAL 0 |
| 10566 | # endif |
| 10567 | #endif |
| 10568 | |
| 10569 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10570 | find out it does not work in some platform. */ |
| 10571 | #ifndef LT_DLLAZY_OR_NOW |
| 10572 | # ifdef RTLD_LAZY |
| 10573 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10574 | # else |
| 10575 | # ifdef DL_LAZY |
| 10576 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10577 | # else |
| 10578 | # ifdef RTLD_NOW |
| 10579 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10580 | # else |
| 10581 | # ifdef DL_NOW |
| 10582 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10583 | # else |
| 10584 | # define LT_DLLAZY_OR_NOW 0 |
| 10585 | # endif |
| 10586 | # endif |
| 10587 | # endif |
| 10588 | # endif |
| 10589 | #endif |
| 10590 | |
| 10591 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 10592 | correspondingly for the symbols needed. */ |
| 10593 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 10594 | int fnord () __attribute__((visibility("default"))); |
| 10595 | #endif |
| 10596 | |
| 10597 | int fnord () { return 42; } |
| 10598 | int main () |
| 10599 | { |
| 10600 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10601 | int status = $lt_dlunknown; |
| 10602 | |
| 10603 | if (self) |
| 10604 | { |
| 10605 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10606 | else |
| 10607 | { |
| 10608 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10609 | else puts (dlerror ()); |
| 10610 | } |
| 10611 | /* dlclose (self); */ |
| 10612 | } |
| 10613 | else |
| 10614 | puts (dlerror ()); |
| 10615 | |
| 10616 | return status; |
| 10617 | } |
| 10618 | _LT_EOF |
| 10619 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 10620 | (eval $ac_link) 2>&5 |
| 10621 | ac_status=$? |
| 10622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10623 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10624 | (./conftest; exit; ) >&5 2>/dev/null |
| 10625 | lt_status=$? |
| 10626 | case x$lt_status in |
| 10627 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10628 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10629 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 10630 | esac |
| 10631 | else : |
| 10632 | # compilation failed |
| 10633 | lt_cv_dlopen_self_static=no |
| 10634 | fi |
| 10635 | fi |
| 10636 | rm -fr conftest* |
| 10637 | |
| 10638 | |
| 10639 | fi |
| 10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 10641 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 10642 | fi |
| 10643 | |
| 10644 | CPPFLAGS="$save_CPPFLAGS" |
| 10645 | LDFLAGS="$save_LDFLAGS" |
| 10646 | LIBS="$save_LIBS" |
| 10647 | ;; |
| 10648 | esac |
| 10649 | |
| 10650 | case $lt_cv_dlopen_self in |
| 10651 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10652 | *) enable_dlopen_self=unknown ;; |
| 10653 | esac |
| 10654 | |
| 10655 | case $lt_cv_dlopen_self_static in |
| 10656 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10657 | *) enable_dlopen_self_static=unknown ;; |
| 10658 | esac |
| 10659 | fi |
| 10660 | |
| 10661 | |
| 10662 | |
| 10663 | |
| 10664 | |
| 10665 | |
| 10666 | |
| 10667 | |
| 10668 | |
| 10669 | |
| 10670 | |
| 10671 | |
| 10672 | |
| 10673 | |
| 10674 | |
| 10675 | |
| 10676 | |
| 10677 | striplib= |
| 10678 | old_striplib= |
| 10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 10680 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 10681 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 10682 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10683 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10685 | $as_echo "yes" >&6; } |
| 10686 | else |
| 10687 | # FIXME - insert some real tests, host_os isn't really good enough |
| 10688 | case $host_os in |
| 10689 | darwin*) |
| 10690 | if test -n "$STRIP" ; then |
| 10691 | striplib="$STRIP -x" |
| 10692 | old_striplib="$STRIP -S" |
| 10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10694 | $as_echo "yes" >&6; } |
| 10695 | else |
| 10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10697 | $as_echo "no" >&6; } |
| 10698 | fi |
| 10699 | ;; |
| 10700 | *) |
| 10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10702 | $as_echo "no" >&6; } |
| 10703 | ;; |
| 10704 | esac |
| 10705 | fi |
| 10706 | |
| 10707 | |
| 10708 | |
| 10709 | |
| 10710 | |
| 10711 | |
| 10712 | |
| 10713 | |
| 10714 | |
| 10715 | |
| 10716 | |
| 10717 | |
| 10718 | # Report which library types will actually be built |
| 10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 10720 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 10721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 10722 | $as_echo "$can_build_shared" >&6; } |
| 10723 | |
| 10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 10725 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 10726 | test "$can_build_shared" = "no" && enable_shared=no |
| 10727 | |
| 10728 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10729 | # are all built from PIC. |
| 10730 | case $host_os in |
| 10731 | aix3*) |
| 10732 | test "$enable_shared" = yes && enable_static=no |
| 10733 | if test -n "$RANLIB"; then |
| 10734 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10735 | postinstall_cmds='$RANLIB $lib' |
| 10736 | fi |
| 10737 | ;; |
| 10738 | |
| 10739 | aix[4-9]*) |
| 10740 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10741 | test "$enable_shared" = yes && enable_static=no |
| 10742 | fi |
| 10743 | ;; |
| 10744 | esac |
| 10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 10746 | $as_echo "$enable_shared" >&6; } |
| 10747 | |
| 10748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 10749 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 10750 | # Make sure either enable_shared or enable_static is yes. |
| 10751 | test "$enable_shared" = yes || enable_static=yes |
| 10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 10753 | $as_echo "$enable_static" >&6; } |
| 10754 | |
| 10755 | |
| 10756 | |
| 10757 | |
| 10758 | fi |
| 10759 | ac_ext=c |
| 10760 | ac_cpp='$CPP $CPPFLAGS' |
| 10761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10764 | |
| 10765 | CC="$lt_save_CC" |
| 10766 | |
| 10767 | |
| 10768 | |
| 10769 | |
| 10770 | |
| 10771 | |
| 10772 | |
| 10773 | |
| 10774 | |
| 10775 | |
| 10776 | |
| 10777 | |
| 10778 | |
| 10779 | |
| 10780 | |
| 10781 | ac_config_commands="$ac_config_commands libtool" |
| 10782 | |
| 10783 | |
| 10784 | |
| 10785 | |
| 10786 | # Only expand once: |
| 10787 | |
| 10788 | |
| 10789 | # Always use ./libtool unless overridden from command-line |
| 10790 | if test -z "$libtool"; then |
| 10791 | libtool='./libtool' |
| 10792 | fi |
| 10793 | |
| 10794 | |
| 10795 | # Extract the first word of "netopeer-manager", so it can be a program name with args. |
| 10796 | set dummy netopeer-manager; ac_word=$2 |
| 10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10798 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10799 | if ${ac_cv_path_NETOPEER_MANAGER+:} false; then : |
| 10800 | $as_echo_n "(cached) " >&6 |
| 10801 | else |
| 10802 | case $NETOPEER_MANAGER in |
| 10803 | [\\/]* | ?:[\\/]*) |
| 10804 | ac_cv_path_NETOPEER_MANAGER="$NETOPEER_MANAGER" # Let the user override the test with a path. |
| 10805 | ;; |
| 10806 | *) |
| 10807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10808 | for as_dir in $PATH |
| 10809 | do |
| 10810 | IFS=$as_save_IFS |
| 10811 | test -z "$as_dir" && as_dir=. |
| 10812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10814 | ac_cv_path_NETOPEER_MANAGER="$as_dir/$ac_word$ac_exec_ext" |
| 10815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10816 | break 2 |
| 10817 | fi |
| 10818 | done |
| 10819 | done |
| 10820 | IFS=$as_save_IFS |
| 10821 | |
| 10822 | ;; |
| 10823 | esac |
| 10824 | fi |
| 10825 | NETOPEER_MANAGER=$ac_cv_path_NETOPEER_MANAGER |
| 10826 | if test -n "$NETOPEER_MANAGER"; then |
| 10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETOPEER_MANAGER" >&5 |
| 10828 | $as_echo "$NETOPEER_MANAGER" >&6; } |
| 10829 | else |
| 10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10831 | $as_echo "no" >&6; } |
| 10832 | fi |
| 10833 | |
| 10834 | |
| 10835 | |
| 10836 | |
| 10837 | # Checks for libraries. |
| 10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ncds_apply_rpc2all" >&5 |
| 10839 | $as_echo_n "checking for library containing ncds_apply_rpc2all... " >&6; } |
| 10840 | if ${ac_cv_search_ncds_apply_rpc2all+:} false; then : |
| 10841 | $as_echo_n "(cached) " >&6 |
| 10842 | else |
| 10843 | ac_func_search_save_LIBS=$LIBS |
| 10844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10845 | /* end confdefs.h. */ |
| 10846 | |
| 10847 | /* Override any GCC internal prototype to avoid an error. |
| 10848 | Use char because int might match the return type of a GCC |
| 10849 | builtin and then its argument prototype would still apply. */ |
| 10850 | #ifdef __cplusplus |
| 10851 | extern "C" |
| 10852 | #endif |
| 10853 | char ncds_apply_rpc2all (); |
| 10854 | int |
| 10855 | main () |
| 10856 | { |
| 10857 | return ncds_apply_rpc2all (); |
| 10858 | ; |
| 10859 | return 0; |
| 10860 | } |
| 10861 | _ACEOF |
| 10862 | for ac_lib in '' netconf; do |
| 10863 | if test -z "$ac_lib"; then |
| 10864 | ac_res="none required" |
| 10865 | else |
| 10866 | ac_res=-l$ac_lib |
| 10867 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10868 | fi |
| 10869 | if ac_fn_c_try_link "$LINENO"; then : |
| 10870 | ac_cv_search_ncds_apply_rpc2all=$ac_res |
| 10871 | fi |
| 10872 | rm -f core conftest.err conftest.$ac_objext \ |
| 10873 | conftest$ac_exeext |
| 10874 | if ${ac_cv_search_ncds_apply_rpc2all+:} false; then : |
| 10875 | break |
| 10876 | fi |
| 10877 | done |
| 10878 | if ${ac_cv_search_ncds_apply_rpc2all+:} false; then : |
| 10879 | |
| 10880 | else |
| 10881 | ac_cv_search_ncds_apply_rpc2all=no |
| 10882 | fi |
| 10883 | rm conftest.$ac_ext |
| 10884 | LIBS=$ac_func_search_save_LIBS |
| 10885 | fi |
| 10886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ncds_apply_rpc2all" >&5 |
| 10887 | $as_echo "$ac_cv_search_ncds_apply_rpc2all" >&6; } |
| 10888 | ac_res=$ac_cv_search_ncds_apply_rpc2all |
| 10889 | if test "$ac_res" != no; then : |
| 10890 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10891 | |
| 10892 | else |
| 10893 | as_fn_error $? "libnetconf not found!" "$LINENO" 5 |
| 10894 | fi |
| 10895 | |
| 10896 | |
| 10897 | # Check for libxml2. |
| 10898 | if test -z "$WITH_LIBXML2" ; then |
| 10899 | # Extract the first word of "xml2-config", so it can be a program name with args. |
| 10900 | set dummy xml2-config; ac_word=$2 |
| 10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10902 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10903 | if ${ac_cv_prog_XML2_CONFIG+:} false; then : |
| 10904 | $as_echo_n "(cached) " >&6 |
| 10905 | else |
| 10906 | if test -n "$XML2_CONFIG"; then |
| 10907 | ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test. |
| 10908 | else |
| 10909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10910 | for as_dir in $PATH |
| 10911 | do |
| 10912 | IFS=$as_save_IFS |
| 10913 | test -z "$as_dir" && as_dir=. |
| 10914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10916 | ac_cv_prog_XML2_CONFIG="yes" |
| 10917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10918 | break 2 |
| 10919 | fi |
| 10920 | done |
| 10921 | done |
| 10922 | IFS=$as_save_IFS |
| 10923 | |
| 10924 | test -z "$ac_cv_prog_XML2_CONFIG" && ac_cv_prog_XML2_CONFIG="no" |
| 10925 | fi |
| 10926 | fi |
| 10927 | XML2_CONFIG=$ac_cv_prog_XML2_CONFIG |
| 10928 | if test -n "$XML2_CONFIG"; then |
| 10929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5 |
| 10930 | $as_echo "$XML2_CONFIG" >&6; } |
| 10931 | else |
| 10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10933 | $as_echo "no" >&6; } |
| 10934 | fi |
| 10935 | |
| 10936 | |
| 10937 | if test "$XML2_CONFIG" = "no"; then |
| 10938 | as_fn_error $? "Missing development package of libxml2." "$LINENO" 5 |
| 10939 | fi |
| 10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxml2" >&5 |
| 10941 | $as_echo_n "checking for main in -lxml2... " >&6; } |
| 10942 | if ${ac_cv_lib_xml2_main+:} false; then : |
| 10943 | $as_echo_n "(cached) " >&6 |
| 10944 | else |
| 10945 | ac_check_lib_save_LIBS=$LIBS |
| 10946 | LIBS="-lxml2 $LIBS" |
| 10947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10948 | /* end confdefs.h. */ |
| 10949 | |
| 10950 | |
| 10951 | int |
| 10952 | main () |
| 10953 | { |
| 10954 | return main (); |
| 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
| 10959 | if ac_fn_c_try_link "$LINENO"; then : |
| 10960 | ac_cv_lib_xml2_main=yes |
| 10961 | else |
| 10962 | ac_cv_lib_xml2_main=no |
| 10963 | fi |
| 10964 | rm -f core conftest.err conftest.$ac_objext \ |
| 10965 | conftest$ac_exeext conftest.$ac_ext |
| 10966 | LIBS=$ac_check_lib_save_LIBS |
| 10967 | fi |
| 10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_main" >&5 |
| 10969 | $as_echo "$ac_cv_lib_xml2_main" >&6; } |
| 10970 | if test "x$ac_cv_lib_xml2_main" = xyes; then : |
| 10971 | LIBS="`xml2-config --libs` $LIBS" CFLAGS="`xml2-config --cflags` $CFLAGS" |
| 10972 | else |
| 10973 | as_fn_error $? "Libxml2 not found " "$LINENO" 5 |
| 10974 | fi |
| 10975 | |
| 10976 | fi |
| 10977 | |
| 10978 | # Add VOLTHA library |
| 10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvoltha" >&5 |
| 10980 | $as_echo_n "checking for main in -lvoltha... " >&6; } |
| 10981 | if ${ac_cv_lib_voltha_main+:} false; then : |
| 10982 | $as_echo_n "(cached) " >&6 |
| 10983 | else |
| 10984 | ac_check_lib_save_LIBS=$LIBS |
| 10985 | LIBS="-lvoltha $LIBS" |
| 10986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10987 | /* end confdefs.h. */ |
| 10988 | |
| 10989 | |
| 10990 | int |
| 10991 | main () |
| 10992 | { |
| 10993 | return main (); |
| 10994 | ; |
| 10995 | return 0; |
| 10996 | } |
| 10997 | _ACEOF |
| 10998 | if ac_fn_c_try_link "$LINENO"; then : |
| 10999 | ac_cv_lib_voltha_main=yes |
| 11000 | else |
| 11001 | ac_cv_lib_voltha_main=no |
| 11002 | fi |
| 11003 | rm -f core conftest.err conftest.$ac_objext \ |
| 11004 | conftest$ac_exeext conftest.$ac_ext |
| 11005 | LIBS=$ac_check_lib_save_LIBS |
| 11006 | fi |
| 11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_voltha_main" >&5 |
| 11008 | $as_echo "$ac_cv_lib_voltha_main" >&6; } |
| 11009 | if test "x$ac_cv_lib_voltha_main" = xyes; then : |
| 11010 | cat >>confdefs.h <<_ACEOF |
| 11011 | #define HAVE_LIBVOLTHA 1 |
| 11012 | _ACEOF |
| 11013 | |
| 11014 | LIBS="-lvoltha $LIBS" |
| 11015 | |
| 11016 | fi |
| 11017 | |
| 11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvoltha-netconf-model" >&5 |
| 11019 | $as_echo_n "checking for main in -lvoltha-netconf-model... " >&6; } |
| 11020 | if ${ac_cv_lib_voltha_netconf_model_main+:} false; then : |
| 11021 | $as_echo_n "(cached) " >&6 |
| 11022 | else |
| 11023 | ac_check_lib_save_LIBS=$LIBS |
| 11024 | LIBS="-lvoltha-netconf-model $LIBS" |
| 11025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11026 | /* end confdefs.h. */ |
| 11027 | |
| 11028 | |
| 11029 | int |
| 11030 | main () |
| 11031 | { |
| 11032 | return main (); |
| 11033 | ; |
| 11034 | return 0; |
| 11035 | } |
| 11036 | _ACEOF |
| 11037 | if ac_fn_c_try_link "$LINENO"; then : |
| 11038 | ac_cv_lib_voltha_netconf_model_main=yes |
| 11039 | else |
| 11040 | ac_cv_lib_voltha_netconf_model_main=no |
| 11041 | fi |
| 11042 | rm -f core conftest.err conftest.$ac_objext \ |
| 11043 | conftest$ac_exeext conftest.$ac_ext |
| 11044 | LIBS=$ac_check_lib_save_LIBS |
| 11045 | fi |
| 11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_voltha_netconf_model_main" >&5 |
| 11047 | $as_echo "$ac_cv_lib_voltha_netconf_model_main" >&6; } |
| 11048 | if test "x$ac_cv_lib_voltha_netconf_model_main" = xyes; then : |
| 11049 | cat >>confdefs.h <<_ACEOF |
| 11050 | #define HAVE_LIBVOLTHA_NETCONF_MODEL 1 |
| 11051 | _ACEOF |
| 11052 | |
| 11053 | LIBS="-lvoltha-netconf-model $LIBS" |
| 11054 | |
| 11055 | fi |
| 11056 | |
| 11057 | |
| 11058 | # Checks for header files. |
| 11059 | for ac_header in stdlib.h libnetconf.h |
| 11060 | do : |
| 11061 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11062 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11063 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 11064 | cat >>confdefs.h <<_ACEOF |
| 11065 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11066 | _ACEOF |
| 11067 | |
| 11068 | fi |
| 11069 | |
| 11070 | done |
| 11071 | |
| 11072 | |
| 11073 | # Checks for typedefs, structures, and compiler characteristics. |
| 11074 | #AC_TYPE_UINT32_T |
| 11075 | |
| 11076 | # Checks for library functions. |
| 11077 | #AC_CHECK_FUNCS([strdup]) |
| 11078 | |
| 11079 | ac_config_files="$ac_config_files Makefile" |
| 11080 | |
| 11081 | cat >confcache <<\_ACEOF |
| 11082 | # This file is a shell script that caches the results of configure |
| 11083 | # tests run on this system so they can be shared between configure |
| 11084 | # scripts and configure runs, see configure's option --config-cache. |
| 11085 | # It is not useful on other systems. If it contains results you don't |
| 11086 | # want to keep, you may remove or edit it. |
| 11087 | # |
| 11088 | # config.status only pays attention to the cache file if you give it |
| 11089 | # the --recheck option to rerun configure. |
| 11090 | # |
| 11091 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11092 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11093 | # following values. |
| 11094 | |
| 11095 | _ACEOF |
| 11096 | |
| 11097 | # The following way of writing the cache mishandles newlines in values, |
| 11098 | # but we know of no workaround that is simple, portable, and efficient. |
| 11099 | # So, we kill variables containing newlines. |
| 11100 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11101 | # and sets the high bit in the cache file unless we assign to the vars. |
| 11102 | ( |
| 11103 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11104 | eval ac_val=\$$ac_var |
| 11105 | case $ac_val in #( |
| 11106 | *${as_nl}*) |
| 11107 | case $ac_var in #( |
| 11108 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 11109 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 11110 | esac |
| 11111 | case $ac_var in #( |
| 11112 | _ | IFS | as_nl) ;; #( |
| 11113 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 11114 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 11115 | esac ;; |
| 11116 | esac |
| 11117 | done |
| 11118 | |
| 11119 | (set) 2>&1 | |
| 11120 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11121 | *${as_nl}ac_space=\ *) |
| 11122 | # `set' does not quote correctly, so add quotes: double-quote |
| 11123 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 11124 | sed -n \ |
| 11125 | "s/'/'\\\\''/g; |
| 11126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 11127 | ;; #( |
| 11128 | *) |
| 11129 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 11130 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 11131 | ;; |
| 11132 | esac | |
| 11133 | sort |
| 11134 | ) | |
| 11135 | sed ' |
| 11136 | /^ac_cv_env_/b end |
| 11137 | t clear |
| 11138 | :clear |
| 11139 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11140 | t end |
| 11141 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11142 | :end' >>confcache |
| 11143 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11144 | if test -w "$cache_file"; then |
| 11145 | if test "x$cache_file" != "x/dev/null"; then |
| 11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 11147 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 11148 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11149 | cat confcache >"$cache_file" |
| 11150 | else |
| 11151 | case $cache_file in #( |
| 11152 | */* | ?:*) |
| 11153 | mv -f confcache "$cache_file"$$ && |
| 11154 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11155 | *) |
| 11156 | mv -f confcache "$cache_file" ;; |
| 11157 | esac |
| 11158 | fi |
| 11159 | fi |
| 11160 | else |
| 11161 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 11162 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 11163 | fi |
| 11164 | fi |
| 11165 | rm -f confcache |
| 11166 | |
| 11167 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11168 | # Let make expand exec_prefix. |
| 11169 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11170 | |
| 11171 | # Transform confdefs.h into DEFS. |
| 11172 | # Protect against shell expansion while executing Makefile rules. |
| 11173 | # Protect against Makefile macro expansion. |
| 11174 | # |
| 11175 | # If the first sed substitution is executed (which looks for macros that |
| 11176 | # take arguments), then branch to the quote section. Otherwise, |
| 11177 | # look for a macro that doesn't take arguments. |
| 11178 | ac_script=' |
| 11179 | :mline |
| 11180 | /\\$/{ |
| 11181 | N |
| 11182 | s,\\\n,, |
| 11183 | b mline |
| 11184 | } |
| 11185 | t clear |
| 11186 | :clear |
| 11187 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 11188 | t quote |
| 11189 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 11190 | t quote |
| 11191 | b any |
| 11192 | :quote |
| 11193 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 11194 | s/\[/\\&/g |
| 11195 | s/\]/\\&/g |
| 11196 | s/\$/$$/g |
| 11197 | H |
| 11198 | :any |
| 11199 | ${ |
| 11200 | g |
| 11201 | s/^\n// |
| 11202 | s/\n/ /g |
| 11203 | p |
| 11204 | } |
| 11205 | ' |
| 11206 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 11207 | |
| 11208 | |
| 11209 | ac_libobjs= |
| 11210 | ac_ltlibobjs= |
| 11211 | U= |
| 11212 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11213 | # 1. Remove the extension, and $U if already installed. |
| 11214 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 11215 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 11216 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11217 | # will be set to the directory where LIBOBJS objects are built. |
| 11218 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11219 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 11220 | done |
| 11221 | LIBOBJS=$ac_libobjs |
| 11222 | |
| 11223 | LTLIBOBJS=$ac_ltlibobjs |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | : "${CONFIG_STATUS=./config.status}" |
| 11228 | ac_write_fail=0 |
| 11229 | ac_clean_files_save=$ac_clean_files |
| 11230 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 11232 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11233 | as_write_fail=0 |
| 11234 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 11235 | #! $SHELL |
| 11236 | # Generated by $as_me. |
| 11237 | # Run this file to recreate the current configuration. |
| 11238 | # Compiler output produced by configure, useful for debugging |
| 11239 | # configure, is in config.log if it exists. |
| 11240 | |
| 11241 | debug=false |
| 11242 | ac_cs_recheck=false |
| 11243 | ac_cs_silent=false |
| 11244 | |
| 11245 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11246 | export SHELL |
| 11247 | _ASEOF |
| 11248 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11249 | ## -------------------- ## |
| 11250 | ## M4sh Initialization. ## |
| 11251 | ## -------------------- ## |
| 11252 | |
| 11253 | # Be more Bourne compatible |
| 11254 | DUALCASE=1; export DUALCASE # for MKS sh |
| 11255 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 11256 | emulate sh |
| 11257 | NULLCMD=: |
| 11258 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 11259 | # is contrary to our usage. Disable this feature. |
| 11260 | alias -g '${1+"$@"}'='"$@"' |
| 11261 | setopt NO_GLOB_SUBST |
| 11262 | else |
| 11263 | case `(set -o) 2>/dev/null` in #( |
| 11264 | *posix*) : |
| 11265 | set -o posix ;; #( |
| 11266 | *) : |
| 11267 | ;; |
| 11268 | esac |
| 11269 | fi |
| 11270 | |
| 11271 | |
| 11272 | as_nl=' |
| 11273 | ' |
| 11274 | export as_nl |
| 11275 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11276 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11277 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11278 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11279 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11280 | # but without wasting forks for bash or zsh. |
| 11281 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11282 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11283 | as_echo='print -r --' |
| 11284 | as_echo_n='print -rn --' |
| 11285 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11286 | as_echo='printf %s\n' |
| 11287 | as_echo_n='printf %s' |
| 11288 | else |
| 11289 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11290 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11291 | as_echo_n='/usr/ucb/echo -n' |
| 11292 | else |
| 11293 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11294 | as_echo_n_body='eval |
| 11295 | arg=$1; |
| 11296 | case $arg in #( |
| 11297 | *"$as_nl"*) |
| 11298 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11299 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11300 | esac; |
| 11301 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11302 | ' |
| 11303 | export as_echo_n_body |
| 11304 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11305 | fi |
| 11306 | export as_echo_body |
| 11307 | as_echo='sh -c $as_echo_body as_echo' |
| 11308 | fi |
| 11309 | |
| 11310 | # The user is always right. |
| 11311 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11312 | PATH_SEPARATOR=: |
| 11313 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11314 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11315 | PATH_SEPARATOR=';' |
| 11316 | } |
| 11317 | fi |
| 11318 | |
| 11319 | |
| 11320 | # IFS |
| 11321 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11322 | # there to prevent editors from complaining about space-tab. |
| 11323 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11324 | # splitting by setting IFS to empty value.) |
| 11325 | IFS=" "" $as_nl" |
| 11326 | |
| 11327 | # Find who we are. Look in the path if we contain no directory separator. |
| 11328 | as_myself= |
| 11329 | case $0 in #(( |
| 11330 | *[\\/]* ) as_myself=$0 ;; |
| 11331 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11332 | for as_dir in $PATH |
| 11333 | do |
| 11334 | IFS=$as_save_IFS |
| 11335 | test -z "$as_dir" && as_dir=. |
| 11336 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11337 | done |
| 11338 | IFS=$as_save_IFS |
| 11339 | |
| 11340 | ;; |
| 11341 | esac |
| 11342 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11343 | # in which case we are not to be found in the path. |
| 11344 | if test "x$as_myself" = x; then |
| 11345 | as_myself=$0 |
| 11346 | fi |
| 11347 | if test ! -f "$as_myself"; then |
| 11348 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 11349 | exit 1 |
| 11350 | fi |
| 11351 | |
| 11352 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11353 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11354 | # suppresses any "Segmentation fault" message there. '((' could |
| 11355 | # trigger a bug in pdksh 5.2.14. |
| 11356 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11357 | do eval test x\${$as_var+set} = xset \ |
| 11358 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 11359 | done |
| 11360 | PS1='$ ' |
| 11361 | PS2='> ' |
| 11362 | PS4='+ ' |
| 11363 | |
| 11364 | # NLS nuisances. |
| 11365 | LC_ALL=C |
| 11366 | export LC_ALL |
| 11367 | LANGUAGE=C |
| 11368 | export LANGUAGE |
| 11369 | |
| 11370 | # CDPATH. |
| 11371 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11372 | |
| 11373 | |
| 11374 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11375 | # ---------------------------------------- |
| 11376 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11377 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11378 | # script with STATUS, using 1 if that was 0. |
| 11379 | as_fn_error () |
| 11380 | { |
| 11381 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11382 | if test "$4"; then |
| 11383 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11384 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 11385 | fi |
| 11386 | $as_echo "$as_me: error: $2" >&2 |
| 11387 | as_fn_exit $as_status |
| 11388 | } # as_fn_error |
| 11389 | |
| 11390 | |
| 11391 | # as_fn_set_status STATUS |
| 11392 | # ----------------------- |
| 11393 | # Set $? to STATUS, without forking. |
| 11394 | as_fn_set_status () |
| 11395 | { |
| 11396 | return $1 |
| 11397 | } # as_fn_set_status |
| 11398 | |
| 11399 | # as_fn_exit STATUS |
| 11400 | # ----------------- |
| 11401 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11402 | as_fn_exit () |
| 11403 | { |
| 11404 | set +e |
| 11405 | as_fn_set_status $1 |
| 11406 | exit $1 |
| 11407 | } # as_fn_exit |
| 11408 | |
| 11409 | # as_fn_unset VAR |
| 11410 | # --------------- |
| 11411 | # Portably unset VAR. |
| 11412 | as_fn_unset () |
| 11413 | { |
| 11414 | { eval $1=; unset $1;} |
| 11415 | } |
| 11416 | as_unset=as_fn_unset |
| 11417 | # as_fn_append VAR VALUE |
| 11418 | # ---------------------- |
| 11419 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11420 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11421 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11422 | # implementations. |
| 11423 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11424 | eval 'as_fn_append () |
| 11425 | { |
| 11426 | eval $1+=\$2 |
| 11427 | }' |
| 11428 | else |
| 11429 | as_fn_append () |
| 11430 | { |
| 11431 | eval $1=\$$1\$2 |
| 11432 | } |
| 11433 | fi # as_fn_append |
| 11434 | |
| 11435 | # as_fn_arith ARG... |
| 11436 | # ------------------ |
| 11437 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11438 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11439 | # must be portable across $(()) and expr. |
| 11440 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11441 | eval 'as_fn_arith () |
| 11442 | { |
| 11443 | as_val=$(( $* )) |
| 11444 | }' |
| 11445 | else |
| 11446 | as_fn_arith () |
| 11447 | { |
| 11448 | as_val=`expr "$@" || test $? -eq 1` |
| 11449 | } |
| 11450 | fi # as_fn_arith |
| 11451 | |
| 11452 | |
| 11453 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11454 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11455 | as_expr=expr |
| 11456 | else |
| 11457 | as_expr=false |
| 11458 | fi |
| 11459 | |
| 11460 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11461 | as_basename=basename |
| 11462 | else |
| 11463 | as_basename=false |
| 11464 | fi |
| 11465 | |
| 11466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11467 | as_dirname=dirname |
| 11468 | else |
| 11469 | as_dirname=false |
| 11470 | fi |
| 11471 | |
| 11472 | as_me=`$as_basename -- "$0" || |
| 11473 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11474 | X"$0" : 'X\(//\)$' \| \ |
| 11475 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 11476 | $as_echo X/"$0" | |
| 11477 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11478 | s//\1/ |
| 11479 | q |
| 11480 | } |
| 11481 | /^X\/\(\/\/\)$/{ |
| 11482 | s//\1/ |
| 11483 | q |
| 11484 | } |
| 11485 | /^X\/\(\/\).*/{ |
| 11486 | s//\1/ |
| 11487 | q |
| 11488 | } |
| 11489 | s/.*/./; q'` |
| 11490 | |
| 11491 | # Avoid depending upon Character Ranges. |
| 11492 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11493 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11494 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11495 | as_cr_digits='0123456789' |
| 11496 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11497 | |
| 11498 | ECHO_C= ECHO_N= ECHO_T= |
| 11499 | case `echo -n x` in #((((( |
| 11500 | -n*) |
| 11501 | case `echo 'xy\c'` in |
| 11502 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 11503 | xy) ECHO_C='\c';; |
| 11504 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11505 | ECHO_T=' ';; |
| 11506 | esac;; |
| 11507 | *) |
| 11508 | ECHO_N='-n';; |
| 11509 | esac |
| 11510 | |
| 11511 | rm -f conf$$ conf$$.exe conf$$.file |
| 11512 | if test -d conf$$.dir; then |
| 11513 | rm -f conf$$.dir/conf$$.file |
| 11514 | else |
| 11515 | rm -f conf$$.dir |
| 11516 | mkdir conf$$.dir 2>/dev/null |
| 11517 | fi |
| 11518 | if (echo >conf$$.file) 2>/dev/null; then |
| 11519 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11520 | as_ln_s='ln -s' |
| 11521 | # ... but there are two gotchas: |
| 11522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11524 | # In both cases, we have to default to `cp -pR'. |
| 11525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 11526 | as_ln_s='cp -pR' |
| 11527 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11528 | as_ln_s=ln |
| 11529 | else |
| 11530 | as_ln_s='cp -pR' |
| 11531 | fi |
| 11532 | else |
| 11533 | as_ln_s='cp -pR' |
| 11534 | fi |
| 11535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11536 | rmdir conf$$.dir 2>/dev/null |
| 11537 | |
| 11538 | |
| 11539 | # as_fn_mkdir_p |
| 11540 | # ------------- |
| 11541 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11542 | as_fn_mkdir_p () |
| 11543 | { |
| 11544 | |
| 11545 | case $as_dir in #( |
| 11546 | -*) as_dir=./$as_dir;; |
| 11547 | esac |
| 11548 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11549 | as_dirs= |
| 11550 | while :; do |
| 11551 | case $as_dir in #( |
| 11552 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11553 | *) as_qdir=$as_dir;; |
| 11554 | esac |
| 11555 | as_dirs="'$as_qdir' $as_dirs" |
| 11556 | as_dir=`$as_dirname -- "$as_dir" || |
| 11557 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11558 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11559 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11560 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11561 | $as_echo X"$as_dir" | |
| 11562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11563 | s//\1/ |
| 11564 | q |
| 11565 | } |
| 11566 | /^X\(\/\/\)[^/].*/{ |
| 11567 | s//\1/ |
| 11568 | q |
| 11569 | } |
| 11570 | /^X\(\/\/\)$/{ |
| 11571 | s//\1/ |
| 11572 | q |
| 11573 | } |
| 11574 | /^X\(\/\).*/{ |
| 11575 | s//\1/ |
| 11576 | q |
| 11577 | } |
| 11578 | s/.*/./; q'` |
| 11579 | test -d "$as_dir" && break |
| 11580 | done |
| 11581 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11582 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 11583 | |
| 11584 | |
| 11585 | } # as_fn_mkdir_p |
| 11586 | if mkdir -p . 2>/dev/null; then |
| 11587 | as_mkdir_p='mkdir -p "$as_dir"' |
| 11588 | else |
| 11589 | test -d ./-p && rmdir ./-p |
| 11590 | as_mkdir_p=false |
| 11591 | fi |
| 11592 | |
| 11593 | |
| 11594 | # as_fn_executable_p FILE |
| 11595 | # ----------------------- |
| 11596 | # Test if FILE is an executable regular file. |
| 11597 | as_fn_executable_p () |
| 11598 | { |
| 11599 | test -f "$1" && test -x "$1" |
| 11600 | } # as_fn_executable_p |
| 11601 | as_test_x='test -x' |
| 11602 | as_executable_p=as_fn_executable_p |
| 11603 | |
| 11604 | # Sed expression to map a string onto a valid CPP name. |
| 11605 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11606 | |
| 11607 | # Sed expression to map a string onto a valid variable name. |
| 11608 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11609 | |
| 11610 | |
| 11611 | exec 6>&1 |
| 11612 | ## ----------------------------------- ## |
| 11613 | ## Main body of $CONFIG_STATUS script. ## |
| 11614 | ## ----------------------------------- ## |
| 11615 | _ASEOF |
| 11616 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 11617 | |
| 11618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11619 | # Save the log message, to keep $0 and so on meaningful, and to |
| 11620 | # report actual input values of CONFIG_FILES etc. instead of their |
| 11621 | # values after options handling. |
| 11622 | ac_log=" |
| 11623 | This file was extended by voltha $as_me 1.0, which was |
| 11624 | generated by GNU Autoconf 2.69. Invocation command line was |
| 11625 | |
| 11626 | CONFIG_FILES = $CONFIG_FILES |
| 11627 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11628 | CONFIG_LINKS = $CONFIG_LINKS |
| 11629 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11630 | $ $0 $@ |
| 11631 | |
| 11632 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11633 | " |
| 11634 | |
| 11635 | _ACEOF |
| 11636 | |
| 11637 | case $ac_config_files in *" |
| 11638 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11639 | esac |
| 11640 | |
| 11641 | |
| 11642 | |
| 11643 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11644 | # Files that config.status was made for. |
| 11645 | config_files="$ac_config_files" |
| 11646 | config_commands="$ac_config_commands" |
| 11647 | |
| 11648 | _ACEOF |
| 11649 | |
| 11650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11651 | ac_cs_usage="\ |
| 11652 | \`$as_me' instantiates files and other configuration actions |
| 11653 | from templates according to the current configuration. Unless the files |
| 11654 | and actions are specified as TAGs, all are instantiated by default. |
| 11655 | |
| 11656 | Usage: $0 [OPTION]... [TAG]... |
| 11657 | |
| 11658 | -h, --help print this help, then exit |
| 11659 | -V, --version print version number and configuration settings, then exit |
| 11660 | --config print configuration, then exit |
| 11661 | -q, --quiet, --silent |
| 11662 | do not print progress messages |
| 11663 | -d, --debug don't remove temporary files |
| 11664 | --recheck update $as_me by reconfiguring in the same conditions |
| 11665 | --file=FILE[:TEMPLATE] |
| 11666 | instantiate the configuration file FILE |
| 11667 | |
| 11668 | Configuration files: |
| 11669 | $config_files |
| 11670 | |
| 11671 | Configuration commands: |
| 11672 | $config_commands |
| 11673 | |
| 11674 | Report bugs to <BUG-REPORT-ADDRESS>." |
| 11675 | |
| 11676 | _ACEOF |
| 11677 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11678 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 11679 | ac_cs_version="\\ |
| 11680 | voltha config.status 1.0 |
| 11681 | configured by $0, generated by GNU Autoconf 2.69, |
| 11682 | with options \\"\$ac_cs_config\\" |
| 11683 | |
| 11684 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 11685 | This config.status script is free software; the Free Software Foundation |
| 11686 | gives unlimited permission to copy, distribute and modify it." |
| 11687 | |
| 11688 | ac_pwd='$ac_pwd' |
| 11689 | srcdir='$srcdir' |
| 11690 | INSTALL='$INSTALL' |
| 11691 | AWK='$AWK' |
| 11692 | test -n "\$AWK" || AWK=awk |
| 11693 | _ACEOF |
| 11694 | |
| 11695 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11696 | # The default lists apply if the user does not specify any file. |
| 11697 | ac_need_defaults=: |
| 11698 | while test $# != 0 |
| 11699 | do |
| 11700 | case $1 in |
| 11701 | --*=?*) |
| 11702 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11703 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 11704 | ac_shift=: |
| 11705 | ;; |
| 11706 | --*=) |
| 11707 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11708 | ac_optarg= |
| 11709 | ac_shift=: |
| 11710 | ;; |
| 11711 | *) |
| 11712 | ac_option=$1 |
| 11713 | ac_optarg=$2 |
| 11714 | ac_shift=shift |
| 11715 | ;; |
| 11716 | esac |
| 11717 | |
| 11718 | case $ac_option in |
| 11719 | # Handling of the options. |
| 11720 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11721 | ac_cs_recheck=: ;; |
| 11722 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 11723 | $as_echo "$ac_cs_version"; exit ;; |
| 11724 | --config | --confi | --conf | --con | --co | --c ) |
| 11725 | $as_echo "$ac_cs_config"; exit ;; |
| 11726 | --debug | --debu | --deb | --de | --d | -d ) |
| 11727 | debug=: ;; |
| 11728 | --file | --fil | --fi | --f ) |
| 11729 | $ac_shift |
| 11730 | case $ac_optarg in |
| 11731 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11732 | '') as_fn_error $? "missing file argument" ;; |
| 11733 | esac |
| 11734 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 11735 | ac_need_defaults=false;; |
| 11736 | --he | --h | --help | --hel | -h ) |
| 11737 | $as_echo "$ac_cs_usage"; exit ;; |
| 11738 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11739 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11740 | ac_cs_silent=: ;; |
| 11741 | |
| 11742 | # This is an error. |
| 11743 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 11744 | Try \`$0 --help' for more information." ;; |
| 11745 | |
| 11746 | *) as_fn_append ac_config_targets " $1" |
| 11747 | ac_need_defaults=false ;; |
| 11748 | |
| 11749 | esac |
| 11750 | shift |
| 11751 | done |
| 11752 | |
| 11753 | ac_configure_extra_args= |
| 11754 | |
| 11755 | if $ac_cs_silent; then |
| 11756 | exec 6>/dev/null |
| 11757 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11758 | fi |
| 11759 | |
| 11760 | _ACEOF |
| 11761 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11762 | if \$ac_cs_recheck; then |
| 11763 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 11764 | shift |
| 11765 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 11766 | CONFIG_SHELL='$SHELL' |
| 11767 | export CONFIG_SHELL |
| 11768 | exec "\$@" |
| 11769 | fi |
| 11770 | |
| 11771 | _ACEOF |
| 11772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11773 | exec 5>>config.log |
| 11774 | { |
| 11775 | echo |
| 11776 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11777 | ## Running $as_me. ## |
| 11778 | _ASBOX |
| 11779 | $as_echo "$ac_log" |
| 11780 | } >&5 |
| 11781 | |
| 11782 | _ACEOF |
| 11783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11784 | # |
| 11785 | # INIT-COMMANDS |
| 11786 | # |
| 11787 | |
| 11788 | |
| 11789 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 11790 | # if CDPATH is set. |
| 11791 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11792 | |
| 11793 | sed_quote_subst='$sed_quote_subst' |
| 11794 | double_quote_subst='$double_quote_subst' |
| 11795 | delay_variable_subst='$delay_variable_subst' |
| 11796 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 11797 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 11798 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 11799 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 11800 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 11801 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 11802 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 11803 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 11804 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 11805 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 11806 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 11807 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 11808 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 11809 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 11810 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 11811 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 11812 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 11813 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 11814 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 11815 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 11816 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 11817 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 11818 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 11819 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 11820 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 11821 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 11822 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 11823 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 11824 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 11825 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 11826 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 11827 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 11828 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 11829 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 11830 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 11831 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 11832 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 11833 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 11834 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 11835 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 11836 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 11837 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 11838 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 11839 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 11840 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 11841 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 11842 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 11843 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 11844 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 11845 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 11846 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 11847 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 11848 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 11849 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 11850 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 11851 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 11852 | 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"`' |
| 11853 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 11854 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 11855 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 11856 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 11857 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 11858 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 11859 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 11860 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 11861 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 11862 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 11863 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 11864 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 11865 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 11866 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 11867 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 11868 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 11869 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 11870 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 11871 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 11872 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 11873 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 11874 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 11875 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 11876 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 11877 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 11878 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 11879 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 11880 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 11881 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 11882 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 11883 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 11884 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 11885 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 11886 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 11887 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 11888 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 11889 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 11890 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 11891 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 11892 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 11893 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 11894 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 11895 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 11896 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 11897 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 11898 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 11899 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 11900 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 11901 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 11902 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 11903 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 11904 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 11905 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 11906 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 11907 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 11908 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 11909 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 11910 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 11911 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 11912 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 11913 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 11914 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 11915 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 11916 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 11917 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 11918 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 11919 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 11920 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 11921 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 11922 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 11923 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 11924 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 11925 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 11926 | |
| 11927 | LTCC='$LTCC' |
| 11928 | LTCFLAGS='$LTCFLAGS' |
| 11929 | compiler='$compiler_DEFAULT' |
| 11930 | |
| 11931 | # A function that is used when there is no print builtin or printf. |
| 11932 | func_fallback_echo () |
| 11933 | { |
| 11934 | eval 'cat <<_LTECHO_EOF |
| 11935 | \$1 |
| 11936 | _LTECHO_EOF' |
| 11937 | } |
| 11938 | |
| 11939 | # Quote evaled strings. |
| 11940 | for var in SHELL \ |
| 11941 | ECHO \ |
| 11942 | PATH_SEPARATOR \ |
| 11943 | SED \ |
| 11944 | GREP \ |
| 11945 | EGREP \ |
| 11946 | FGREP \ |
| 11947 | LD \ |
| 11948 | NM \ |
| 11949 | LN_S \ |
| 11950 | lt_SP2NL \ |
| 11951 | lt_NL2SP \ |
| 11952 | reload_flag \ |
| 11953 | OBJDUMP \ |
| 11954 | deplibs_check_method \ |
| 11955 | file_magic_cmd \ |
| 11956 | file_magic_glob \ |
| 11957 | want_nocaseglob \ |
| 11958 | DLLTOOL \ |
| 11959 | sharedlib_from_linklib_cmd \ |
| 11960 | AR \ |
| 11961 | AR_FLAGS \ |
| 11962 | archiver_list_spec \ |
| 11963 | STRIP \ |
| 11964 | RANLIB \ |
| 11965 | CC \ |
| 11966 | CFLAGS \ |
| 11967 | compiler \ |
| 11968 | lt_cv_sys_global_symbol_pipe \ |
| 11969 | lt_cv_sys_global_symbol_to_cdecl \ |
| 11970 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11971 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 11972 | nm_file_list_spec \ |
| 11973 | lt_prog_compiler_no_builtin_flag \ |
| 11974 | lt_prog_compiler_pic \ |
| 11975 | lt_prog_compiler_wl \ |
| 11976 | lt_prog_compiler_static \ |
| 11977 | lt_cv_prog_compiler_c_o \ |
| 11978 | need_locks \ |
| 11979 | MANIFEST_TOOL \ |
| 11980 | DSYMUTIL \ |
| 11981 | NMEDIT \ |
| 11982 | LIPO \ |
| 11983 | OTOOL \ |
| 11984 | OTOOL64 \ |
| 11985 | shrext_cmds \ |
| 11986 | export_dynamic_flag_spec \ |
| 11987 | whole_archive_flag_spec \ |
| 11988 | compiler_needs_object \ |
| 11989 | with_gnu_ld \ |
| 11990 | allow_undefined_flag \ |
| 11991 | no_undefined_flag \ |
| 11992 | hardcode_libdir_flag_spec \ |
| 11993 | hardcode_libdir_separator \ |
| 11994 | exclude_expsyms \ |
| 11995 | include_expsyms \ |
| 11996 | file_list_spec \ |
| 11997 | variables_saved_for_relink \ |
| 11998 | libname_spec \ |
| 11999 | library_names_spec \ |
| 12000 | soname_spec \ |
| 12001 | install_override_mode \ |
| 12002 | finish_eval \ |
| 12003 | old_striplib \ |
| 12004 | striplib; do |
| 12005 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 12006 | *[\\\\\\\`\\"\\\$]*) |
| 12007 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 12008 | ;; |
| 12009 | *) |
| 12010 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12011 | ;; |
| 12012 | esac |
| 12013 | done |
| 12014 | |
| 12015 | # Double-quote double-evaled strings. |
| 12016 | for var in reload_cmds \ |
| 12017 | old_postinstall_cmds \ |
| 12018 | old_postuninstall_cmds \ |
| 12019 | old_archive_cmds \ |
| 12020 | extract_expsyms_cmds \ |
| 12021 | old_archive_from_new_cmds \ |
| 12022 | old_archive_from_expsyms_cmds \ |
| 12023 | archive_cmds \ |
| 12024 | archive_expsym_cmds \ |
| 12025 | module_cmds \ |
| 12026 | module_expsym_cmds \ |
| 12027 | export_symbols_cmds \ |
| 12028 | prelink_cmds \ |
| 12029 | postlink_cmds \ |
| 12030 | postinstall_cmds \ |
| 12031 | postuninstall_cmds \ |
| 12032 | finish_cmds \ |
| 12033 | sys_lib_search_path_spec \ |
| 12034 | sys_lib_dlsearch_path_spec; do |
| 12035 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 12036 | *[\\\\\\\`\\"\\\$]*) |
| 12037 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 12038 | ;; |
| 12039 | *) |
| 12040 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12041 | ;; |
| 12042 | esac |
| 12043 | done |
| 12044 | |
| 12045 | ac_aux_dir='$ac_aux_dir' |
| 12046 | xsi_shell='$xsi_shell' |
| 12047 | lt_shell_append='$lt_shell_append' |
| 12048 | |
| 12049 | # See if we are running on zsh, and set the options which allow our |
| 12050 | # commands through without removal of \ escapes INIT. |
| 12051 | if test -n "\${ZSH_VERSION+set}" ; then |
| 12052 | setopt NO_GLOB_SUBST |
| 12053 | fi |
| 12054 | |
| 12055 | |
| 12056 | PACKAGE='$PACKAGE' |
| 12057 | VERSION='$VERSION' |
| 12058 | TIMESTAMP='$TIMESTAMP' |
| 12059 | RM='$RM' |
| 12060 | ofile='$ofile' |
| 12061 | |
| 12062 | |
| 12063 | |
| 12064 | |
| 12065 | _ACEOF |
| 12066 | |
| 12067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12068 | |
| 12069 | # Handling of arguments. |
| 12070 | for ac_config_target in $ac_config_targets |
| 12071 | do |
| 12072 | case $ac_config_target in |
| 12073 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 12074 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 12075 | |
| 12076 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 12077 | esac |
| 12078 | done |
| 12079 | |
| 12080 | |
| 12081 | # If the user did not use the arguments to specify the items to instantiate, |
| 12082 | # then the envvar interface is used. Set only those that are not. |
| 12083 | # We use the long form for the default assignment because of an extremely |
| 12084 | # bizarre bug on SunOS 4.1.3. |
| 12085 | if $ac_need_defaults; then |
| 12086 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 12087 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12088 | fi |
| 12089 | |
| 12090 | # Have a temporary directory for convenience. Make it in the build tree |
| 12091 | # simply because there is no reason against having it here, and in addition, |
| 12092 | # creating and moving files from /tmp can sometimes cause problems. |
| 12093 | # Hook for its removal unless debugging. |
| 12094 | # Note that there is a small window in which the directory will not be cleaned: |
| 12095 | # after its creation but before its name has been assigned to `$tmp'. |
| 12096 | $debug || |
| 12097 | { |
| 12098 | tmp= ac_tmp= |
| 12099 | trap 'exit_status=$? |
| 12100 | : "${ac_tmp:=$tmp}" |
| 12101 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 12102 | ' 0 |
| 12103 | trap 'as_fn_exit 1' 1 2 13 15 |
| 12104 | } |
| 12105 | # Create a (secure) tmp directory for tmp files. |
| 12106 | |
| 12107 | { |
| 12108 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 12109 | test -d "$tmp" |
| 12110 | } || |
| 12111 | { |
| 12112 | tmp=./conf$$-$RANDOM |
| 12113 | (umask 077 && mkdir "$tmp") |
| 12114 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12115 | ac_tmp=$tmp |
| 12116 | |
| 12117 | # Set up the scripts for CONFIG_FILES section. |
| 12118 | # No need to generate them if there are no CONFIG_FILES. |
| 12119 | # This happens for instance with `./config.status config.h'. |
| 12120 | if test -n "$CONFIG_FILES"; then |
| 12121 | |
| 12122 | |
| 12123 | ac_cr=`echo X | tr X '\015'` |
| 12124 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12125 | # But we know of no other shell where ac_cr would be empty at this |
| 12126 | # point, so we can use a bashism as a fallback. |
| 12127 | if test "x$ac_cr" = x; then |
| 12128 | eval ac_cr=\$\'\\r\' |
| 12129 | fi |
| 12130 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12131 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 12132 | ac_cs_awk_cr='\\r' |
| 12133 | else |
| 12134 | ac_cs_awk_cr=$ac_cr |
| 12135 | fi |
| 12136 | |
| 12137 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 12138 | _ACEOF |
| 12139 | |
| 12140 | |
| 12141 | { |
| 12142 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12143 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12144 | echo "_ACEOF" |
| 12145 | } >conf$$subs.sh || |
| 12146 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12147 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 12148 | ac_delim='%!_!# ' |
| 12149 | for ac_last_try in false false false false false :; do |
| 12150 | . ./conf$$subs.sh || |
| 12151 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12152 | |
| 12153 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12154 | if test $ac_delim_n = $ac_delim_num; then |
| 12155 | break |
| 12156 | elif $ac_last_try; then |
| 12157 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12158 | else |
| 12159 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12160 | fi |
| 12161 | done |
| 12162 | rm -f conf$$subs.sh |
| 12163 | |
| 12164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12165 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 12166 | _ACEOF |
| 12167 | sed -n ' |
| 12168 | h |
| 12169 | s/^/S["/; s/!.*/"]=/ |
| 12170 | p |
| 12171 | g |
| 12172 | s/^[^!]*!// |
| 12173 | :repl |
| 12174 | t repl |
| 12175 | s/'"$ac_delim"'$// |
| 12176 | t delim |
| 12177 | :nl |
| 12178 | h |
| 12179 | s/\(.\{148\}\)..*/\1/ |
| 12180 | t more1 |
| 12181 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12182 | p |
| 12183 | n |
| 12184 | b repl |
| 12185 | :more1 |
| 12186 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12187 | p |
| 12188 | g |
| 12189 | s/.\{148\}// |
| 12190 | t nl |
| 12191 | :delim |
| 12192 | h |
| 12193 | s/\(.\{148\}\)..*/\1/ |
| 12194 | t more2 |
| 12195 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12196 | p |
| 12197 | b |
| 12198 | :more2 |
| 12199 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12200 | p |
| 12201 | g |
| 12202 | s/.\{148\}// |
| 12203 | t delim |
| 12204 | ' <conf$$subs.awk | sed ' |
| 12205 | /^[^""]/{ |
| 12206 | N |
| 12207 | s/\n// |
| 12208 | } |
| 12209 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12210 | rm -f conf$$subs.awk |
| 12211 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12212 | _ACAWK |
| 12213 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 12214 | for (key in S) S_is_set[key] = 1 |
| 12215 | FS = "" |
| 12216 | |
| 12217 | } |
| 12218 | { |
| 12219 | line = $ 0 |
| 12220 | nfields = split(line, field, "@") |
| 12221 | substed = 0 |
| 12222 | len = length(field[1]) |
| 12223 | for (i = 2; i < nfields; i++) { |
| 12224 | key = field[i] |
| 12225 | keylen = length(key) |
| 12226 | if (S_is_set[key]) { |
| 12227 | value = S[key] |
| 12228 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12229 | len += length(value) + length(field[++i]) |
| 12230 | substed = 1 |
| 12231 | } else |
| 12232 | len += 1 + keylen |
| 12233 | } |
| 12234 | |
| 12235 | print line |
| 12236 | } |
| 12237 | |
| 12238 | _ACAWK |
| 12239 | _ACEOF |
| 12240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12241 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12242 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12243 | else |
| 12244 | cat |
| 12245 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12246 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 12247 | _ACEOF |
| 12248 | |
| 12249 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12250 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 12251 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12252 | # (actually we leave an empty line to preserve line numbers). |
| 12253 | if test "x$srcdir" = x.; then |
| 12254 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12255 | h |
| 12256 | s/// |
| 12257 | s/^/:/ |
| 12258 | s/[ ]*$/:/ |
| 12259 | s/:\$(srcdir):/:/g |
| 12260 | s/:\${srcdir}:/:/g |
| 12261 | s/:@srcdir@:/:/g |
| 12262 | s/^:*// |
| 12263 | s/:*$// |
| 12264 | x |
| 12265 | s/\(=[ ]*\).*/\1/ |
| 12266 | G |
| 12267 | s/\n// |
| 12268 | s/^[^=]*=[ ]*$// |
| 12269 | }' |
| 12270 | fi |
| 12271 | |
| 12272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12273 | fi # test -n "$CONFIG_FILES" |
| 12274 | |
| 12275 | |
| 12276 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 12277 | shift |
| 12278 | for ac_tag |
| 12279 | do |
| 12280 | case $ac_tag in |
| 12281 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12282 | esac |
| 12283 | case $ac_mode$ac_tag in |
| 12284 | :[FHL]*:*);; |
| 12285 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 12286 | :[FH]-) ac_tag=-:-;; |
| 12287 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12288 | esac |
| 12289 | ac_save_IFS=$IFS |
| 12290 | IFS=: |
| 12291 | set x $ac_tag |
| 12292 | IFS=$ac_save_IFS |
| 12293 | shift |
| 12294 | ac_file=$1 |
| 12295 | shift |
| 12296 | |
| 12297 | case $ac_mode in |
| 12298 | :L) ac_source=$1;; |
| 12299 | :[FH]) |
| 12300 | ac_file_inputs= |
| 12301 | for ac_f |
| 12302 | do |
| 12303 | case $ac_f in |
| 12304 | -) ac_f="$ac_tmp/stdin";; |
| 12305 | *) # Look for the file first in the build tree, then in the source tree |
| 12306 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12307 | # because $ac_f cannot contain `:'. |
| 12308 | test -f "$ac_f" || |
| 12309 | case $ac_f in |
| 12310 | [\\/$]*) false;; |
| 12311 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12312 | esac || |
| 12313 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 12314 | esac |
| 12315 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 12316 | as_fn_append ac_file_inputs " '$ac_f'" |
| 12317 | done |
| 12318 | |
| 12319 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12320 | # use $as_me), people would be surprised to read: |
| 12321 | # /* config.h. Generated by config.status. */ |
| 12322 | configure_input='Generated from '` |
| 12323 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12324 | `' by configure.' |
| 12325 | if test x"$ac_file" != x-; then |
| 12326 | configure_input="$ac_file. $configure_input" |
| 12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 12328 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 12329 | fi |
| 12330 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12331 | case $configure_input in #( |
| 12332 | *\&* | *\|* | *\\* ) |
| 12333 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12334 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12335 | *) ac_sed_conf_input=$configure_input;; |
| 12336 | esac |
| 12337 | |
| 12338 | case $ac_tag in |
| 12339 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12340 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 12341 | esac |
| 12342 | ;; |
| 12343 | esac |
| 12344 | |
| 12345 | ac_dir=`$as_dirname -- "$ac_file" || |
| 12346 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12347 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12348 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12349 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 12350 | $as_echo X"$ac_file" | |
| 12351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12352 | s//\1/ |
| 12353 | q |
| 12354 | } |
| 12355 | /^X\(\/\/\)[^/].*/{ |
| 12356 | s//\1/ |
| 12357 | q |
| 12358 | } |
| 12359 | /^X\(\/\/\)$/{ |
| 12360 | s//\1/ |
| 12361 | q |
| 12362 | } |
| 12363 | /^X\(\/\).*/{ |
| 12364 | s//\1/ |
| 12365 | q |
| 12366 | } |
| 12367 | s/.*/./; q'` |
| 12368 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 12369 | ac_builddir=. |
| 12370 | |
| 12371 | case "$ac_dir" in |
| 12372 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12373 | *) |
| 12374 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 12375 | # A ".." for each directory in $ac_dir_suffix. |
| 12376 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 12377 | case $ac_top_builddir_sub in |
| 12378 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12379 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12380 | esac ;; |
| 12381 | esac |
| 12382 | ac_abs_top_builddir=$ac_pwd |
| 12383 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12384 | # for backward compatibility: |
| 12385 | ac_top_builddir=$ac_top_build_prefix |
| 12386 | |
| 12387 | case $srcdir in |
| 12388 | .) # We are building in place. |
| 12389 | ac_srcdir=. |
| 12390 | ac_top_srcdir=$ac_top_builddir_sub |
| 12391 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12392 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 12393 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 12394 | ac_top_srcdir=$srcdir |
| 12395 | ac_abs_top_srcdir=$srcdir ;; |
| 12396 | *) # Relative name. |
| 12397 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12398 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12399 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 12400 | esac |
| 12401 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 12402 | |
| 12403 | |
| 12404 | case $ac_mode in |
| 12405 | :F) |
| 12406 | # |
| 12407 | # CONFIG_FILE |
| 12408 | # |
| 12409 | |
| 12410 | case $INSTALL in |
| 12411 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 12412 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 12413 | esac |
| 12414 | _ACEOF |
| 12415 | |
| 12416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12417 | # If the template does not know about datarootdir, expand it. |
| 12418 | # FIXME: This hack should be removed a few years after 2.60. |
| 12419 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 12420 | ac_sed_dataroot=' |
| 12421 | /datarootdir/ { |
| 12422 | p |
| 12423 | q |
| 12424 | } |
| 12425 | /@datadir@/p |
| 12426 | /@docdir@/p |
| 12427 | /@infodir@/p |
| 12428 | /@localedir@/p |
| 12429 | /@mandir@/p' |
| 12430 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 12431 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12432 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 12433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 12434 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 12435 | _ACEOF |
| 12436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12437 | ac_datarootdir_hack=' |
| 12438 | s&@datadir@&$datadir&g |
| 12439 | s&@docdir@&$docdir&g |
| 12440 | s&@infodir@&$infodir&g |
| 12441 | s&@localedir@&$localedir&g |
| 12442 | s&@mandir@&$mandir&g |
| 12443 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 12444 | esac |
| 12445 | _ACEOF |
| 12446 | |
| 12447 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12448 | # Shell code in configure.ac might set extrasub. |
| 12449 | # FIXME: do we really want to maintain this feature? |
| 12450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12451 | ac_sed_extra="$ac_vpsub |
| 12452 | $extrasub |
| 12453 | _ACEOF |
| 12454 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12455 | :t |
| 12456 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 12457 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 12458 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 12459 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 12460 | s&@srcdir@&$ac_srcdir&;t t |
| 12461 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12462 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12463 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12464 | s&@builddir@&$ac_builddir&;t t |
| 12465 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12466 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12467 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12468 | $ac_datarootdir_hack |
| 12469 | " |
| 12470 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 12471 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12472 | |
| 12473 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12474 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 12475 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 12476 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 12478 | which seems to be undefined. Please make sure it is defined" >&5 |
| 12479 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 12480 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 12481 | |
| 12482 | rm -f "$ac_tmp/stdin" |
| 12483 | case $ac_file in |
| 12484 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 12485 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 12486 | esac \ |
| 12487 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12488 | ;; |
| 12489 | |
| 12490 | |
| 12491 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 12492 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 12493 | ;; |
| 12494 | esac |
| 12495 | |
| 12496 | |
| 12497 | case $ac_file$ac_mode in |
| 12498 | "libtool":C) |
| 12499 | |
| 12500 | # See if we are running on zsh, and set the options which allow our |
| 12501 | # commands through without removal of \ escapes. |
| 12502 | if test -n "${ZSH_VERSION+set}" ; then |
| 12503 | setopt NO_GLOB_SUBST |
| 12504 | fi |
| 12505 | |
| 12506 | cfgfile="${ofile}T" |
| 12507 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 12508 | $RM "$cfgfile" |
| 12509 | |
| 12510 | cat <<_LT_EOF >> "$cfgfile" |
| 12511 | #! $SHELL |
| 12512 | |
| 12513 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 12514 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 12515 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12516 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 12517 | # |
| 12518 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 12519 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 12520 | # Foundation, Inc. |
| 12521 | # Written by Gordon Matzigkeit, 1996 |
| 12522 | # |
| 12523 | # This file is part of GNU Libtool. |
| 12524 | # |
| 12525 | # GNU Libtool is free software; you can redistribute it and/or |
| 12526 | # modify it under the terms of the GNU General Public License as |
| 12527 | # published by the Free Software Foundation; either version 2 of |
| 12528 | # the License, or (at your option) any later version. |
| 12529 | # |
| 12530 | # As a special exception to the GNU General Public License, |
| 12531 | # if you distribute this file as part of a program or library that |
| 12532 | # is built using GNU Libtool, you may include this file under the |
| 12533 | # same distribution terms that you use for the rest of that program. |
| 12534 | # |
| 12535 | # GNU Libtool is distributed in the hope that it will be useful, |
| 12536 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12537 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12538 | # GNU General Public License for more details. |
| 12539 | # |
| 12540 | # You should have received a copy of the GNU General Public License |
| 12541 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 12542 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 12543 | # obtained by writing to the Free Software Foundation, Inc., |
| 12544 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 12545 | |
| 12546 | |
| 12547 | # The names of the tagged configurations supported by this script. |
| 12548 | available_tags="" |
| 12549 | |
| 12550 | # ### BEGIN LIBTOOL CONFIG |
| 12551 | |
| 12552 | # Which release of libtool.m4 was used? |
| 12553 | macro_version=$macro_version |
| 12554 | macro_revision=$macro_revision |
| 12555 | |
| 12556 | # Whether or not to build shared libraries. |
| 12557 | build_libtool_libs=$enable_shared |
| 12558 | |
| 12559 | # Whether or not to build static libraries. |
| 12560 | build_old_libs=$enable_static |
| 12561 | |
| 12562 | # What type of objects to build. |
| 12563 | pic_mode=$pic_mode |
| 12564 | |
| 12565 | # Whether or not to optimize for fast installation. |
| 12566 | fast_install=$enable_fast_install |
| 12567 | |
| 12568 | # Shell to use when invoking shell scripts. |
| 12569 | SHELL=$lt_SHELL |
| 12570 | |
| 12571 | # An echo program that protects backslashes. |
| 12572 | ECHO=$lt_ECHO |
| 12573 | |
| 12574 | # The PATH separator for the build system. |
| 12575 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 12576 | |
| 12577 | # The host system. |
| 12578 | host_alias=$host_alias |
| 12579 | host=$host |
| 12580 | host_os=$host_os |
| 12581 | |
| 12582 | # The build system. |
| 12583 | build_alias=$build_alias |
| 12584 | build=$build |
| 12585 | build_os=$build_os |
| 12586 | |
| 12587 | # A sed program that does not truncate output. |
| 12588 | SED=$lt_SED |
| 12589 | |
| 12590 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 12591 | Xsed="\$SED -e 1s/^X//" |
| 12592 | |
| 12593 | # A grep program that handles long lines. |
| 12594 | GREP=$lt_GREP |
| 12595 | |
| 12596 | # An ERE matcher. |
| 12597 | EGREP=$lt_EGREP |
| 12598 | |
| 12599 | # A literal string matcher. |
| 12600 | FGREP=$lt_FGREP |
| 12601 | |
| 12602 | # A BSD- or MS-compatible name lister. |
| 12603 | NM=$lt_NM |
| 12604 | |
| 12605 | # Whether we need soft or hard links. |
| 12606 | LN_S=$lt_LN_S |
| 12607 | |
| 12608 | # What is the maximum length of a command? |
| 12609 | max_cmd_len=$max_cmd_len |
| 12610 | |
| 12611 | # Object file suffix (normally "o"). |
| 12612 | objext=$ac_objext |
| 12613 | |
| 12614 | # Executable file suffix (normally ""). |
| 12615 | exeext=$exeext |
| 12616 | |
| 12617 | # whether the shell understands "unset". |
| 12618 | lt_unset=$lt_unset |
| 12619 | |
| 12620 | # turn spaces into newlines. |
| 12621 | SP2NL=$lt_lt_SP2NL |
| 12622 | |
| 12623 | # turn newlines into spaces. |
| 12624 | NL2SP=$lt_lt_NL2SP |
| 12625 | |
| 12626 | # convert \$build file names to \$host format. |
| 12627 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 12628 | |
| 12629 | # convert \$build files to toolchain format. |
| 12630 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 12631 | |
| 12632 | # An object symbol dumper. |
| 12633 | OBJDUMP=$lt_OBJDUMP |
| 12634 | |
| 12635 | # Method to check whether dependent libraries are shared objects. |
| 12636 | deplibs_check_method=$lt_deplibs_check_method |
| 12637 | |
| 12638 | # Command to use when deplibs_check_method = "file_magic". |
| 12639 | file_magic_cmd=$lt_file_magic_cmd |
| 12640 | |
| 12641 | # How to find potential files when deplibs_check_method = "file_magic". |
| 12642 | file_magic_glob=$lt_file_magic_glob |
| 12643 | |
| 12644 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 12645 | want_nocaseglob=$lt_want_nocaseglob |
| 12646 | |
| 12647 | # DLL creation program. |
| 12648 | DLLTOOL=$lt_DLLTOOL |
| 12649 | |
| 12650 | # Command to associate shared and link libraries. |
| 12651 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 12652 | |
| 12653 | # The archiver. |
| 12654 | AR=$lt_AR |
| 12655 | |
| 12656 | # Flags to create an archive. |
| 12657 | AR_FLAGS=$lt_AR_FLAGS |
| 12658 | |
| 12659 | # How to feed a file listing to the archiver. |
| 12660 | archiver_list_spec=$lt_archiver_list_spec |
| 12661 | |
| 12662 | # A symbol stripping program. |
| 12663 | STRIP=$lt_STRIP |
| 12664 | |
| 12665 | # Commands used to install an old-style archive. |
| 12666 | RANLIB=$lt_RANLIB |
| 12667 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12668 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12669 | |
| 12670 | # Whether to use a lock for old archive extraction. |
| 12671 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 12672 | |
| 12673 | # A C compiler. |
| 12674 | LTCC=$lt_CC |
| 12675 | |
| 12676 | # LTCC compiler flags. |
| 12677 | LTCFLAGS=$lt_CFLAGS |
| 12678 | |
| 12679 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12680 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12681 | |
| 12682 | # Transform the output of nm in a proper C declaration. |
| 12683 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12684 | |
| 12685 | # Transform the output of nm in a C name address pair. |
| 12686 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12687 | |
| 12688 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 12689 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 12690 | |
| 12691 | # Specify filename containing input files for \$NM. |
| 12692 | nm_file_list_spec=$lt_nm_file_list_spec |
| 12693 | |
| 12694 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 12695 | lt_sysroot=$lt_sysroot |
| 12696 | |
| 12697 | # The name of the directory that contains temporary libtool files. |
| 12698 | objdir=$objdir |
| 12699 | |
| 12700 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 12701 | MAGIC_CMD=$MAGIC_CMD |
| 12702 | |
| 12703 | # Must we lock files when doing compilation? |
| 12704 | need_locks=$lt_need_locks |
| 12705 | |
| 12706 | # Manifest tool. |
| 12707 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 12708 | |
| 12709 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 12710 | DSYMUTIL=$lt_DSYMUTIL |
| 12711 | |
| 12712 | # Tool to change global to local symbols on Mac OS X. |
| 12713 | NMEDIT=$lt_NMEDIT |
| 12714 | |
| 12715 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 12716 | LIPO=$lt_LIPO |
| 12717 | |
| 12718 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 12719 | OTOOL=$lt_OTOOL |
| 12720 | |
| 12721 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 12722 | OTOOL64=$lt_OTOOL64 |
| 12723 | |
| 12724 | # Old archive suffix (normally "a"). |
| 12725 | libext=$libext |
| 12726 | |
| 12727 | # Shared library suffix (normally ".so"). |
| 12728 | shrext_cmds=$lt_shrext_cmds |
| 12729 | |
| 12730 | # The commands to extract the exported symbol list from a shared archive. |
| 12731 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12732 | |
| 12733 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12734 | # restored at link time. |
| 12735 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 12736 | |
| 12737 | # Do we need the "lib" prefix for modules? |
| 12738 | need_lib_prefix=$need_lib_prefix |
| 12739 | |
| 12740 | # Do we need a version for libraries? |
| 12741 | need_version=$need_version |
| 12742 | |
| 12743 | # Library versioning type. |
| 12744 | version_type=$version_type |
| 12745 | |
| 12746 | # Shared library runtime path variable. |
| 12747 | runpath_var=$runpath_var |
| 12748 | |
| 12749 | # Shared library path variable. |
| 12750 | shlibpath_var=$shlibpath_var |
| 12751 | |
| 12752 | # Is shlibpath searched before the hard-coded library search path? |
| 12753 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12754 | |
| 12755 | # Format of library name prefix. |
| 12756 | libname_spec=$lt_libname_spec |
| 12757 | |
| 12758 | # List of archive names. First name is the real one, the rest are links. |
| 12759 | # The last name is the one that the linker finds with -lNAME |
| 12760 | library_names_spec=$lt_library_names_spec |
| 12761 | |
| 12762 | # The coded name of the library, if different from the real name. |
| 12763 | soname_spec=$lt_soname_spec |
| 12764 | |
| 12765 | # Permission mode override for installation of shared libraries. |
| 12766 | install_override_mode=$lt_install_override_mode |
| 12767 | |
| 12768 | # Command to use after installation of a shared archive. |
| 12769 | postinstall_cmds=$lt_postinstall_cmds |
| 12770 | |
| 12771 | # Command to use after uninstallation of a shared archive. |
| 12772 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12773 | |
| 12774 | # Commands used to finish a libtool library installation in a directory. |
| 12775 | finish_cmds=$lt_finish_cmds |
| 12776 | |
| 12777 | # As "finish_cmds", except a single script fragment to be evaled but |
| 12778 | # not shown. |
| 12779 | finish_eval=$lt_finish_eval |
| 12780 | |
| 12781 | # Whether we should hardcode library paths into libraries. |
| 12782 | hardcode_into_libs=$hardcode_into_libs |
| 12783 | |
| 12784 | # Compile-time system search path for libraries. |
| 12785 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12786 | |
| 12787 | # Run-time system search path for libraries. |
| 12788 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12789 | |
| 12790 | # Whether dlopen is supported. |
| 12791 | dlopen_support=$enable_dlopen |
| 12792 | |
| 12793 | # Whether dlopen of programs is supported. |
| 12794 | dlopen_self=$enable_dlopen_self |
| 12795 | |
| 12796 | # Whether dlopen of statically linked programs is supported. |
| 12797 | dlopen_self_static=$enable_dlopen_self_static |
| 12798 | |
| 12799 | # Commands to strip libraries. |
| 12800 | old_striplib=$lt_old_striplib |
| 12801 | striplib=$lt_striplib |
| 12802 | |
| 12803 | |
| 12804 | # The linker used to build libraries. |
| 12805 | LD=$lt_LD |
| 12806 | |
| 12807 | # How to create reloadable object files. |
| 12808 | reload_flag=$lt_reload_flag |
| 12809 | reload_cmds=$lt_reload_cmds |
| 12810 | |
| 12811 | # Commands used to build an old-style archive. |
| 12812 | old_archive_cmds=$lt_old_archive_cmds |
| 12813 | |
| 12814 | # A language specific compiler. |
| 12815 | CC=$lt_compiler |
| 12816 | |
| 12817 | # Is the compiler the GNU compiler? |
| 12818 | with_gcc=$GCC |
| 12819 | |
| 12820 | # Compiler flag to turn off builtin functions. |
| 12821 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 12822 | |
| 12823 | # Additional compiler flags for building library objects. |
| 12824 | pic_flag=$lt_lt_prog_compiler_pic |
| 12825 | |
| 12826 | # How to pass a linker flag through the compiler. |
| 12827 | wl=$lt_lt_prog_compiler_wl |
| 12828 | |
| 12829 | # Compiler flag to prevent dynamic linking. |
| 12830 | link_static_flag=$lt_lt_prog_compiler_static |
| 12831 | |
| 12832 | # Does compiler simultaneously support -c and -o options? |
| 12833 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 12834 | |
| 12835 | # Whether or not to add -lc for building shared libraries. |
| 12836 | build_libtool_need_lc=$archive_cmds_need_lc |
| 12837 | |
| 12838 | # Whether or not to disallow shared libs when runtime libs are static. |
| 12839 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 12840 | |
| 12841 | # Compiler flag to allow reflexive dlopens. |
| 12842 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 12843 | |
| 12844 | # Compiler flag to generate shared objects directly from archives. |
| 12845 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 12846 | |
| 12847 | # Whether the compiler copes with passing no objects directly. |
| 12848 | compiler_needs_object=$lt_compiler_needs_object |
| 12849 | |
| 12850 | # Create an old-style archive from a shared archive. |
| 12851 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 12852 | |
| 12853 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12854 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 12855 | |
| 12856 | # Commands used to build a shared archive. |
| 12857 | archive_cmds=$lt_archive_cmds |
| 12858 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 12859 | |
| 12860 | # Commands used to build a loadable module if different from building |
| 12861 | # a shared archive. |
| 12862 | module_cmds=$lt_module_cmds |
| 12863 | module_expsym_cmds=$lt_module_expsym_cmds |
| 12864 | |
| 12865 | # Whether we are building with GNU ld or not. |
| 12866 | with_gnu_ld=$lt_with_gnu_ld |
| 12867 | |
| 12868 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12869 | allow_undefined_flag=$lt_allow_undefined_flag |
| 12870 | |
| 12871 | # Flag that enforces no undefined symbols. |
| 12872 | no_undefined_flag=$lt_no_undefined_flag |
| 12873 | |
| 12874 | # Flag to hardcode \$libdir into a binary during linking. |
| 12875 | # This must work even if \$libdir does not exist |
| 12876 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 12877 | |
| 12878 | # Whether we need a single "-rpath" flag with a separated argument. |
| 12879 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 12880 | |
| 12881 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 12882 | # DIR into the resulting binary. |
| 12883 | hardcode_direct=$hardcode_direct |
| 12884 | |
| 12885 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 12886 | # DIR into the resulting binary and the resulting library dependency is |
| 12887 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 12888 | # library is relocated. |
| 12889 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 12890 | |
| 12891 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 12892 | # into the resulting binary. |
| 12893 | hardcode_minus_L=$hardcode_minus_L |
| 12894 | |
| 12895 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 12896 | # into the resulting binary. |
| 12897 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 12898 | |
| 12899 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 12900 | # into the library and all subsequent libraries and executables linked |
| 12901 | # against it. |
| 12902 | hardcode_automatic=$hardcode_automatic |
| 12903 | |
| 12904 | # Set to yes if linker adds runtime paths of dependent libraries |
| 12905 | # to runtime path list. |
| 12906 | inherit_rpath=$inherit_rpath |
| 12907 | |
| 12908 | # Whether libtool must link a program against all its dependency libraries. |
| 12909 | link_all_deplibs=$link_all_deplibs |
| 12910 | |
| 12911 | # Set to "yes" if exported symbols are required. |
| 12912 | always_export_symbols=$always_export_symbols |
| 12913 | |
| 12914 | # The commands to list exported symbols. |
| 12915 | export_symbols_cmds=$lt_export_symbols_cmds |
| 12916 | |
| 12917 | # Symbols that should not be listed in the preloaded symbols. |
| 12918 | exclude_expsyms=$lt_exclude_expsyms |
| 12919 | |
| 12920 | # Symbols that must always be exported. |
| 12921 | include_expsyms=$lt_include_expsyms |
| 12922 | |
| 12923 | # Commands necessary for linking programs (against libraries) with templates. |
| 12924 | prelink_cmds=$lt_prelink_cmds |
| 12925 | |
| 12926 | # Commands necessary for finishing linking programs. |
| 12927 | postlink_cmds=$lt_postlink_cmds |
| 12928 | |
| 12929 | # Specify filename containing input files. |
| 12930 | file_list_spec=$lt_file_list_spec |
| 12931 | |
| 12932 | # How to hardcode a shared library path into an executable. |
| 12933 | hardcode_action=$hardcode_action |
| 12934 | |
| 12935 | # ### END LIBTOOL CONFIG |
| 12936 | |
| 12937 | _LT_EOF |
| 12938 | |
| 12939 | case $host_os in |
| 12940 | aix3*) |
| 12941 | cat <<\_LT_EOF >> "$cfgfile" |
| 12942 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 12943 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 12944 | # vanish in a puff of smoke. |
| 12945 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 12946 | COLLECT_NAMES= |
| 12947 | export COLLECT_NAMES |
| 12948 | fi |
| 12949 | _LT_EOF |
| 12950 | ;; |
| 12951 | esac |
| 12952 | |
| 12953 | |
| 12954 | ltmain="$ac_aux_dir/ltmain.sh" |
| 12955 | |
| 12956 | |
| 12957 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 12958 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 12959 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 12960 | # is reportedly fixed, but why not run on old versions too? |
| 12961 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 12962 | || (rm -f "$cfgfile"; exit 1) |
| 12963 | |
| 12964 | if test x"$xsi_shell" = xyes; then |
| 12965 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 12966 | func_dirname ()\ |
| 12967 | {\ |
| 12968 | \ case ${1} in\ |
| 12969 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 12970 | \ * ) func_dirname_result="${3}" ;;\ |
| 12971 | \ esac\ |
| 12972 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 12973 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 12974 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 12975 | test 0 -eq $? || _lt_function_replace_fail=: |
| 12976 | |
| 12977 | |
| 12978 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 12979 | func_basename ()\ |
| 12980 | {\ |
| 12981 | \ func_basename_result="${1##*/}"\ |
| 12982 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 12983 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 12984 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 12985 | test 0 -eq $? || _lt_function_replace_fail=: |
| 12986 | |
| 12987 | |
| 12988 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 12989 | func_dirname_and_basename ()\ |
| 12990 | {\ |
| 12991 | \ case ${1} in\ |
| 12992 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 12993 | \ * ) func_dirname_result="${3}" ;;\ |
| 12994 | \ esac\ |
| 12995 | \ func_basename_result="${1##*/}"\ |
| 12996 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 12997 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 12998 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 12999 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13000 | |
| 13001 | |
| 13002 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 13003 | func_stripname ()\ |
| 13004 | {\ |
| 13005 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 13006 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 13007 | \ func_stripname_result=${3}\ |
| 13008 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 13009 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 13010 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13011 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13012 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13013 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13014 | |
| 13015 | |
| 13016 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 13017 | func_split_long_opt ()\ |
| 13018 | {\ |
| 13019 | \ func_split_long_opt_name=${1%%=*}\ |
| 13020 | \ func_split_long_opt_arg=${1#*=}\ |
| 13021 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13022 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13023 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13024 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13025 | |
| 13026 | |
| 13027 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 13028 | func_split_short_opt ()\ |
| 13029 | {\ |
| 13030 | \ func_split_short_opt_arg=${1#??}\ |
| 13031 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 13032 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13033 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13034 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13035 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13036 | |
| 13037 | |
| 13038 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 13039 | func_lo2o ()\ |
| 13040 | {\ |
| 13041 | \ case ${1} in\ |
| 13042 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 13043 | \ *) func_lo2o_result=${1} ;;\ |
| 13044 | \ esac\ |
| 13045 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13046 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13047 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13048 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13049 | |
| 13050 | |
| 13051 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 13052 | func_xform ()\ |
| 13053 | {\ |
| 13054 | func_xform_result=${1%.*}.lo\ |
| 13055 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13056 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13057 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13058 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13059 | |
| 13060 | |
| 13061 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 13062 | func_arith ()\ |
| 13063 | {\ |
| 13064 | func_arith_result=$(( $* ))\ |
| 13065 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13066 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13067 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13068 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13069 | |
| 13070 | |
| 13071 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 13072 | func_len ()\ |
| 13073 | {\ |
| 13074 | func_len_result=${#1}\ |
| 13075 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13076 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13077 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13078 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13079 | |
| 13080 | fi |
| 13081 | |
| 13082 | if test x"$lt_shell_append" = xyes; then |
| 13083 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 13084 | func_append ()\ |
| 13085 | {\ |
| 13086 | eval "${1}+=\\${2}"\ |
| 13087 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13088 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13089 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13090 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13091 | |
| 13092 | |
| 13093 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 13094 | func_append_quoted ()\ |
| 13095 | {\ |
| 13096 | \ func_quote_for_eval "${2}"\ |
| 13097 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 13098 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 13099 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13100 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13101 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13102 | |
| 13103 | |
| 13104 | # Save a `func_append' function call where possible by direct use of '+=' |
| 13105 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 13106 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13107 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13108 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13109 | else |
| 13110 | # Save a `func_append' function call even when '+=' is not available |
| 13111 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 13112 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 13113 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 13114 | test 0 -eq $? || _lt_function_replace_fail=: |
| 13115 | fi |
| 13116 | |
| 13117 | if test x"$_lt_function_replace_fail" = x":"; then |
| 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 13119 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 13120 | fi |
| 13121 | |
| 13122 | |
| 13123 | mv -f "$cfgfile" "$ofile" || |
| 13124 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 13125 | chmod +x "$ofile" |
| 13126 | |
| 13127 | ;; |
| 13128 | |
| 13129 | esac |
| 13130 | done # for ac_tag |
| 13131 | |
| 13132 | |
| 13133 | as_fn_exit 0 |
| 13134 | _ACEOF |
| 13135 | ac_clean_files=$ac_clean_files_save |
| 13136 | |
| 13137 | test $ac_write_fail = 0 || |
| 13138 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 13139 | |
| 13140 | |
| 13141 | # configure is writing to config.log, and then calls config.status. |
| 13142 | # config.status does its own redirection, appending to config.log. |
| 13143 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 13144 | # by configure, so config.status won't be able to write to it; its |
| 13145 | # output is simply discarded. So we exec the FD to /dev/null, |
| 13146 | # effectively closing config.log, so it can be properly (re)opened and |
| 13147 | # appended to by config.status. When coming back to configure, we |
| 13148 | # need to make the FD available again. |
| 13149 | if test "$no_create" != yes; then |
| 13150 | ac_cs_success=: |
| 13151 | ac_config_status_args= |
| 13152 | test "$silent" = yes && |
| 13153 | ac_config_status_args="$ac_config_status_args --quiet" |
| 13154 | exec 5>/dev/null |
| 13155 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 13156 | exec 5>>config.log |
| 13157 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 13158 | # would make configure fail if this is the last instruction. |
| 13159 | $ac_cs_success || as_fn_exit 1 |
| 13160 | fi |
| 13161 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 13163 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 13164 | fi |
| 13165 | |